Posts tagged #networking
-
How a load balancer spreads requests
A load balancer takes requests sent to one address and hands each one to one of several servers, skipping a server that is failing.
-
How a packet finds its way across the internet
Each router looks up the next hop in its own table and picks the longest matching prefix. A time-to-live counter stops packets from looping forever.
-
How TCP makes sure data arrives
TCP numbers every byte, waits for the receiver to confirm, and resends the oldest unconfirmed segment when a timer runs out.
-
How DNS turns a name into an address
DNS is the internet's phone book. A resolver follows referrals from the root to the right server and caches the answer.