The Idea of Packet Switching
Learn how Paul Baran and Donald Davies independently invented packet switching, why it suits computer data, and calculate how files split into packets.
Welcome back!
Step 1 of 12Learn
Two inventors, one idea
In the early 1960s, Paul Baran, an engineer at the RAND Corporation in California, was working on a grim problem: how could the US keep communicating after a nuclear attack? A centralized network, with everything routed through a few hubs, could be destroyed by hitting those hubs.
Baran proposed a distributed network, a mesh in which each node connects to several neighbors, so there are many possible paths between any two points. Messages would be broken into small "message blocks," each sent separately and routed around damage. His reports, published in 1964, met skepticism from the telephone company AT&T, whose engineers thought in terms of circuits.
Across the Atlantic, Donald Davies at Britain's National Physical Laboratory had the same core idea independently in 1965, for a different reason: computer traffic comes in short bursts, so reserving a full circuit for a terminal session wastes most of its capacity. Davies called the small chunks of data packets, and his name stuck. His team built a working local packet network at the NPL.
In the United States, Leonard Kleinrock had studied the mathematics of queues in data networks, which helped show that such networks could perform well. When ARPA began planning its network in 1967, these ideas came together.
Step 2 of 12Practice · Match the pairs
Match each pioneer with their contribution.
Tap an answer, then tap the place where it belongs (or drag it there).
- Paul Baran
- Donald Davies
- Leonard Kleinrock
- J. C. R. Licklider
Step 3 of 12Learn
How packet switching works
Imagine mailing a 300-page book to a friend, but the post office only accepts postcards. You would number each page, write your friend's address on every card, and send them off. Some cards might travel through Chicago, others through Denver. They could arrive out of order, and your friend would reassemble the book by page number. If a card went missing, your friend could ask for that page again.
That is packet switching. A file or message is split into packets, each carrying:
- a header with the destination address, the source address and a sequence number;
- a payload, a slice of the actual data.
Specialized computers called routers (in the ARPANET, they were called IMPs) receive each packet, look at its destination and forward it to the next hop along a good path. Each router makes its own decision based on current conditions, so if a line fails or gets congested, packets flow around it.
The big advantage over circuit switching is efficiency. Lines are shared by many conversations at once, carrying packets from whoever has data to send. During silences in your session, others' packets use the line. The cost is that packets may be delayed, lost or reordered, so the computers at the ends must handle reassembly and retransmission.
Step 4 of 12Practice · Diagram
A message as packets
A router on one path fails. Which step lets the message still get through?
Tap the shape that answers the question, then press Check.
- Split
Break the data into numbered chunks.
- Address
Each packet carries source and destination.
- Route separately
Packets may take different paths and arrive out of order.
- Reassemble
The receiver puts them back in order by number.
- Resend missing
Lost packets are requested again.
Step 5 of 12Try the calculator
Splitting a file into packets
Enter a file size and the payload each packet carries. Many networks today carry up to about 1,500 bytes per packet, with roughly 1,460 bytes of that available for data.
- Packets needed
- 2,055
- Header overhead
- 0.082 MB
- Overhead as a share of the file
- 2.7 %
Step 6 of 12Practice · Work it out
A 1 MB file (1,000,000 bytes) is sent in packets that each carry 1,000 bytes of data. How many packets are needed?
Step 7 of 12Compare
Circuit switching vs. packet switching
| Aspect | Circuit switching | Packet switching |
|---|---|---|
| Connection | Dedicated path reserved for the whole session | No reserved path; each packet routed separately |
| Use of capacity | Wasted during silences | Shared among many users at once |
| If a link fails | The call drops | Packets are routed around the failure |
| Typical early use | Telephone calls | Bursty computer data |
| Trade-off | Predictable timing | Variable delay; endpoints must reassemble |
Step 8 of 12Learn
Why the phone company said no
AT&T, which held a near-monopoly on US long-distance communication, was not impressed by packet switching. Its engineers had spent decades perfecting circuit-switched voice networks. Baran later recalled one AT&T official telling him, in effect, that he didn't understand how telephones worked. The company declined to build his network.
This pattern repeats throughout internet history. Established companies, highly skilled at an existing technology, tend to underestimate a new approach that looks crude, unprofitable or strange by their standards. Telephone engineers wanted guaranteed quality for every call; packet networks offered "best effort" delivery with no guarantees, which seemed unprofessional.
Packet switching won because computer traffic grew far faster than voice and because the approach was cheaper and more flexible. Today the situation has flipped completely: phone calls themselves are usually carried as packets, using Voice over IP, including most mobile calls on 4G and 5G networks.
The lesson for technology history is not that experts are foolish. It is that the assumptions built into a successful system, such as "communication means a continuous connection," can make it hard to see that a different design might serve new needs better.
Step 9 of 12Diagram
One request, many hops
Traceroute lists each hop. Each router only decides the next step, not the whole route.
Tap a shape with to see more.
- Home router
- Your provider
Your internet service provider's network.
- Backbone network
Long-distance carriers.
- Undersea cable
Most intercontinental traffic travels on fiber under the ocean.
- Destination network
The website's hosting network.
Step 10 of 12Note
Step 11 of 12Note
Step 12 of 12Practice · Select all that apply
Which statements about packet switching are true? Select all that apply.
Select all that apply.
Lesson complete!