System design paper · 1984

End-to-end arguments

Saltzer, Reed and Clark · ACM Transactions on Computer Systems 1984

Why checking for damage, loss and repeats must be done by the programs at both ends of a conversation, and what the network in the middle can still do.

A file copy passes five stages, and damage can strike at each. A reliable network covers only the middle one. The end-to-end check, from the first disk to the last, covers all five. A crash can hit either host at any point.

You’ll learn to

  • Trace a file copy step by step and name where it can be damaged, including places a reliable network cannot see.
  • Explain why a checksum and a retry at the two ends are still needed when every link in between is reliable.
  • Judge when extra reliability inside a network is worth its cost, as a speed question and not a correctness one.
  • Apply the same argument to acknowledgements, repeated messages and encryption, and say where it stops.

The idea in short

When one program sends data to another over a network, the data can be damaged anywhere on the way: on a disk, in memory, inside a router (a machine that forwards packets), on the cable or radio link. The authors argue that only the two programs at the ends can check that what arrived is what was sent. So they should do it themselves: attach a short number worked out from the data, recompute it at the far end, compare, and try again if the numbers differ.

Once the ends do this, extra checking inside the network is not needed to make the copy come out right. It is worth having only when it makes the end check fail less often, which is a question of speed. Checks in the middle can still serve other goals, such as stopping a misbehaving user, which is a separate matter. The same reasoning applies to confirming delivery, ignoring repeated messages and encrypting data.

The problem

A common approach to network design was to make the network itself fix damage and loss. A network can add a to every . A packet is a small chunk of data with an address on it, which a network carries on its own. A checksum is a short number worked out from the data, so that a changed byte almost always changes the number. The network can also number packets and resend the ones that go missing. The programs on top could then treat the network as reliable.

That sounds like plain good engineering. J. H. Saltzer, D. P. Reed and D. D. Clark asked whether it was. Saltzer and Clark were at MIT, and Reed was at Software Arts, a software company. Their paper, first presented in 1981 and published in 1984, is short and has almost no measurements. It is an argument, and it is one of the most quoted in computing.

They start from an everyday task they call “careful file transfer”: copy a file from the disk of computer A to the disk of computer B, without damage, knowing that failures can happen along the way. A computer on the network is a host. The program that does the copying runs partly on host A and partly on host B.

The question the paper answers is: when a job such as reliable delivery can be done in the network or in the programs at the ends, which one should do it?

The design choices

The paper’s answer fits in one rule. A function belongs in the network only if the network can do the whole job. If doing it properly needs knowledge that only the programs at the ends have, the network can offer at best a partial version. For example, a network can check each packet for damage, but data can also be damaged before it reaches the network and after it leaves. The program has to check the whole journey anyway. Once it does, the network’s check adds nothing to correctness. It only means the program’s check fails less often, which saves time. That is why a partial version is useful only as a speed-up. The authors call this the . The abstract puts the consequence plainly: low-level mechanisms for these functions are “justified only as performance enhancements.”

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan

About the paper

End-to-End Arguments in System Design by Saltzer, Reed and Clark, ACM Transactions on Computer Systems 1984.

Read the original paper

More System design papers

All papers