CSE Roadmap

Specialist tier · about 2 hours · 5 parts

Part 3 of 5 · 2 min read

Unreliable networks

A message sent over a network might be delayed, lost, duplicated, or delivered out of order, and the sender often cannot tell which happened.

Think of mailing a letter with no tracking number. It might arrive quickly, arrive late, get lost entirely, or even arrive twice if a postal worker accidentally processes it more than once. The sender has no way to know which of these happened just by looking at their own mailbox.

In plain words: a network connecting two machines offers no guarantee that a sent message will arrive, arrive only once, or arrive in the order it was sent, since the message physically travels through many intermediate devices, any of which can delay, drop, duplicate, or reorder it. When a sender does not receive an expected response, it cannot distinguish between several very different underlying causes: the original message was lost, the response was lost on its way back, or the receiving machine is simply slow and a response is still coming. This ambiguity is exactly why distributed systems typically rely on timeouts, an arbitrary cutoff after which a sender gives up waiting, rather than a timeout ever being proof that something actually failed.

A worked example. A node sends a write request to another node and receives no response after five seconds. The sending node cannot tell whether the write request itself was lost, whether it succeeded but the confirmation was lost on the way back, or whether the receiving node is just unusually slow right now.

The key lines. No new SQL; handling network unreliability, retries, timeouts, and duplicate detection, is implemented inside a distributed database's internal communication layer.

Unreliable network

An unreliable network, in the distributed-systems sense, is a network that offers no guarantee a sent message arrives, arrives exactly once, or arrives in order, leaving a sender unable to distinguish a lost message from a slow response.

Example: an untracked mailed letter that might arrive late, never, or twice, with no way for the sender to know which, mirrors an unreliable network.