Skip to content
    Blockchain notesPeer-to-Peer (P2P) Network

    Unit 3 – Blockchain Categories · 31

    Peer-to-Peer (P2P) Network

    A peer-to-peer network lets computers exchange data directly with one another rather than relying on one central server for every message. Blockchain P2P networks propagate transactions and blocks among connected peers.

    Animated diagram

    Students pass a verified class update to one another instead of waiting for one teacher’s computer to send every copy

    Peer A → Relay data → Peer B → Peer C. Follow the flow to see how peer-to-peer (p2p) network fits into a blockchain system.

    Make the invisible feel visible.

    A peer-to-peer network lets computers exchange data directly with one another rather than relying on one central server for every message. Blockchain P2P networks propagate transactions and blocks among connected peers.

    Think of it like this

    Students pass a verified class update to one another instead of waiting for one teacher’s computer to send every copy.

    Under the hood

    How it works, step by step

    01

    Start with the idea

    A peer-to-peer network lets computers exchange data directly with one another rather than relying on one central server for every message. Blockchain P2P networks propagate transactions and blocks among connected peers.

    02

    Follow the example

    A wallet broadcasts a transaction to one peer, which forwards it to other connected nodes until much of the network has heard about it.

    03

    Notice the benefit

    Peer-to-peer communication can reduce dependence on a single message relay and improve reach across the network.

    04

    Check the limitation

    Messages can arrive at different times, be delayed or be withheld, so consensus must handle imperfect communication.

    Make it concrete

    Peer-to-Peer (P2P) Network in practice

    Peer-to-Peer (P2P) Network in practice

    A wallet broadcasts a transaction to one peer, which forwards it to other connected nodes until much of the network has heard about it.

    Key point: Messages can arrive at different times, be delayed or be withheld, so consensus must handle imperfect communication.

    Balanced view

    Advantages & disadvantages

    Advantages

    • Peer-to-peer communication can reduce dependence on a single message relay and improve reach across the network.

    Disadvantages

    • Messages can arrive at different times, be delayed or be withheld, so consensus must handle imperfect communication.

    Keep these close

    Takeaways & common traps

    What to remember

    • A peer-to-peer network lets computers exchange data directly with one another rather than relying on one central server for every message. Blockchain P2P networks propagate transactions and blocks among connected peers.
    • Peer-to-peer communication can reduce dependence on a single message relay and improve reach across the network.
    • Messages can arrive at different times, be delayed or be withheld, so consensus must handle imperfect communication.

    Watch out for

    • Do not assume peer-to-peer (p2p) network guarantees more than its design can prove.
    • Do not ignore the trade-off: Messages can arrive at different times, be delayed or be withheld, so consensus must handle imperfect communication.

    Quick check

    Questions people ask

    Why is peer-to-peer (p2p) network useful?

    Peer-to-peer communication can reduce dependence on a single message relay and improve reach across the network.

    What is an important limitation?

    Messages can arrive at different times, be delayed or be withheld, so consensus must handle imperfect communication.