Network Topology & Propagation
Bitcoin is a global “gossip” network. Nodes randomly connect to other nodes and pass along (relay) messages about new transactions and blocks as fast and as efficiently as possible.
Simple definitions:
- •Node: A computer running Bitcoin software that validates and relays data.
- •Peer: Another node you are connected to.
- •Gossip: The way nodes tell peers what they've seen (transactions/blocks).
- •Latency: Travel time for data over the internet. Lower latency → faster relay.
- •Bandwidth: How much data per second you can send/receive.
- •Stale/Orphan block: A valid block that lost the race because another block reached most nodes first.
- •Mempool: Each node's local list of unconfirmed transactions.
- •Compact Blocks (BIP152): A method to send only the “missing pieces” of a block to save time and bandwidth.
- •FIBRE: A specialized high‑speed relay network for miners to spread blocks quickly.
- •Erlay (proposal): Makes transaction relay more efficient and bandwidth‑friendly.
Network topology (plain English):
- •Random mesh: Most nodes make ~10 outbound connections to random peers; they also accept inbound peers.
- •Diversity helps: Connecting to peers in different regions/ISPs/Tor reduces single‑region slowdowns.
- •Miners/large nodes: Often maintain extra, reliable links (including FIBRE) to minimize stale risk.
How transactions propagate:
1) Your wallet sends the tx to a node (yours or a public one). 2) That node checks basic validity/policy (signatures, fees, standardness). 3) If acceptable, it adds the tx to its mempool and announces it to peers (inv → getdata → tx). 4) Within seconds, most reachable nodes have the transaction.
How blocks propagate:
1) A miner finds a block header that meets difficulty. 2) The miner announces the new block to peers. 3) Using Compact Blocks, peers reconstruct from transactions they already have, only fetching missing ones. 4) The faster this happens, the fewer competing blocks → lower stale risk.
Why speed matters for miners:
- •Every extra second of delay increases the chance someone else's block wins the race.
- •Tools to reduce risk: low‑latency peers, multiple datacenters/ISPs, Compact Blocks, FIBRE, good upstream bandwidth, and geographic peering.
Test Your Knowledge
This lesson includes a 5-question quiz (passing score: 75%).
Quiz functionality available in the mobile app.