First exams 2027 · SL & HL

A2.3.3 · Data transmissions

Packet Switching

Mailing a whole novel in one giant envelope is risky: lose it, and the entire book is gone. Split it into several smaller parcels, each numbered, and losing one parcel only means resending that one page range, not starting over. Packet switching applies exactly that idea to data.

Core for SL & HL Typically 4–6 marks · AO2 Command term: explain

Explainer

Df

Packet switching works by chopping a piece of data into smaller units called packets, sending each one across the network on its own, and putting them back together into the original data once every packet has arrived.

Each packet carries two very different kinds of content: the actual data (the payload), and information ABOUT that data (the header), which is what makes independent transmission and correct reassembly possible at all.

Header source & destination address, sequence number, checksum
Payload a chunk of the actual data
Header fieldWhat it's for
Source & destination addressTells every router along the way where the packet came from and where it still needs to go, this is the "routing header" the statement names.
Sequence numberRecords this packet's position in the original data, so the destination can put every packet back in the right order even if they don't arrive in that order.
ChecksumA value calculated from the payload that lets the destination detect whether the packet arrived correctly, or was corrupted in transit and needs to be resent.

The header, sequence number and checksum together are exactly the "control information" the statement refers to: none of it is the actual message, all of it exists purely to get the message there correctly.

Worked example

Sending a photo across a network

Amelia sends a 4200-byte photo to Jack. Their network's maximum packet size is 1500 bytes (a real limit called the MTU, maximum transmission unit), so the photo has to be split before it can be sent at all.

Tracing the photo from Amelia to Jack Step 1 of 5

Segmentation. Amelia's device splits the 4200-byte photo into three packets, each carrying part of the payload, since no single packet can exceed the 1500-byte limit.

Packet 1: bytes 0-1399 (seq 1) Packet 2: bytes 1400-2799 (seq 2) Packet 3: bytes 2800-4199 (seq 3)

Header attached. Each packet gets its own header: Amelia's address as the source, Jack's as the destination, its sequence number, and a checksum calculated from its own payload.

Packet 2 header: src=Amelia, dst=Jack, seq=2, checksum=0x4F1A

Independent routing. The three packets are sent separately, and each one is free to take a different path if that's what current network conditions favour. Here, packet 2 hits congestion on its usual route and gets sent the long way round.

Packet 1 -> Route A -> arrives 1st Packet 3 -> Route A -> arrives 2nd Packet 2 -> Route B (rerouted around congestion) -> arrives 3rd, last

Arrival, out of order. Jack's device receives packets 1, 3, then 2, in that literal arrival order, not the order Amelia sent them in. This is completely normal for packet switching and has to be expected, not treated as an error.

Arrived so far: [seq 1, seq 3, seq 2]

Reassembly. Jack's device uses each packet's sequence number to put the payloads back in the correct order (1, 2, 3), and checks each checksum along the way. If any checksum had failed, Jack's device would simply request that one specific packet be resent, not the whole photo.

Reordered by seq: [1, 2, 3] -> all checksums valid -> photo reassembled correctly

Explainer

Switches vs routers

Both devices forward packets, and both get confused with each other constantly, but they operate at a genuinely different scale and use a genuinely different piece of information to decide where a packet goes next.

Switch

Real example: the box on the wall connecting every desktop computer in one office to each other.

  • Works within one local network (forwards packets between devices that are already on the same network, it has no concept of a different network beyond its own)
  • Reads the MAC address (media access control address, a unique ID built into every device's network hardware; the switch learns which device sits on which physical port by watching traffic, then forwards each packet only to the port that specific device is actually on, not to every device)
Router

Real example: the box that connects that same office's whole local network out to the internet.

  • Connects different networks together (decides how a packet gets from one network to a genuinely different one, which is the whole reason data can travel between two different buildings, or out to the wider internet, at all)
  • Reads the IP address (inspects the destination IP address and consults its own routing table to work out the best next hop toward it, a genuinely different decision to a switch's)
!

The one-line version worth memorising: a switch moves a packet to the right device inside one network; a router moves a packet from one network to another network entirely.

Check your understanding

A file is broken into 4 packets and sent across the internet. Packet 3 arrives corrupted, and its checksum fails. What actually happens next?

Common mistake

Markers reported this pattern on switch/router function questions

RecurringA genuinely documented pattern: candidates use "switch" and "router" interchangeably, or describe one device while naming the other, losing marks reserved for the specific mechanism each one actually uses.

✕

Devices swapped: "The router connects all the computers in the office together, and the switch sends the data out to the internet." Has the two devices' jobs backwards, and never mentions the actual mechanism (MAC address vs IP address) either device uses.

✓

Correct device, correct mechanism: "The switch reads each packet's MAC address to forward it to the right device on the same local network. The router reads the destination IP address and uses its routing table to send the packet out toward a different network, like the internet." Names the right device for each role AND the specific piece of information each one reads, which is what actually earns the marks.

Revision questions

Past-paper style. Write an answer, then reveal the marking points and mark yourself.

Question 1 · 2 marks

[2]State two pieces of information a packet's header typically contains.

Question 2 · 4 marks

[4]Explain how a sequence number allows a large file to be correctly reassembled after being sent as separate packets.

Question 3 · 3 marks

[3]Distinguish between the roles of a switch and a router in forwarding a packet toward its destination.

Flashcards

Active recall for this statement’s key terms.