It's a working morning, and a bank's Dhaka head office is talking to its Chattogram regional office over one fibre route. At 11:02 a digging crew cuts that fibre. Nobody at the bank notices anything. A few seconds later the same traffic is flowing again, this time by a longer route via another city, as if nothing had happened. No engineer logged in and nobody typed a new route. The routers found the new path by themselves.
How did they do it? Each router has a routing table, and in the last lesson you learned to read one: a row says "for packets to this network, send them to this next hop, out of this interface". But who writes the rows? A person can type a few. A few thousand rows, changing every time a cable is cut or a branch opens, is work no person can keep up with. So the routers talk to each other in a fixed language called a routing protocol, and this lesson is about those languages: RIP, OSPF, EIGRP and BGP.
A quick reminder from the last lesson, in case it has faded. A table's rows are connected (networks the router has an interface in), static (typed in by an administrator), dynamic (learned through a routing protocol), or the default route 0.0.0.0/0 (the row for "everything else"). Among all the rows that contain a packet's destination, the router uses the one with the longest prefix, the most specific; the default route matches everything but loses to anything more specific. This lesson is about how the dynamic rows get there, and how a router chooses when several sources offer the same network.