Computer ScienceExam code: 0984

Types and Methods of Data Transmission

Data Transmission

Packet switching is the way networks (including the internet) move packets from sender to receiver. The five stages every time:

  1. The sender's device breaks the data into and adds a header and trailer to each.
  2. Each packet is assigned a destination IP address.
  3. Packets are handed to a router. The router consults its routing table and forwards each packet to a nearby router that is closer to the destination.
  4. Packets may take different paths through the network. If one route is congested, a router can send the next packet down a less busy route.
  5. Packets arrive at the destination, possibly out of order. The receiver uses the packet numbers to reassemble them, checks for missing or corrupted packets, and requests any missing packets to be resent.
Packet switching between two computers. Three packets (shown in green, blue and red) leave the sending computer and travel through a mesh of routers, each packet following a different path across the network before all three arrive at the receiving computer
Source: Packet Switching by Save My Exams

Common exam question

Describing or drawing packet switching

Question: Complete and annotate a diagram, or complete statements, showing how packet switching carries data from one device to another, including the part the routers play (1–4 marks).

Asked in 4 of the 17 papers. The diagram version gives one mark for each of four ideas: the packets pass through several routers; they take different routes to the destination; they arrive out of order; and they are reordered once they have all arrived. The question asks you to annotate, so label all four: boxes and arrows alone cannot show the last two.

The router's purpose in packet switching is a one-mark answer: it controls the route each packet takes, forwarding it towards its destination by the most efficient path. Naming questions want packet switching itself and the router as the device that chooses each packet's path. In the fill-in-the-terms version, the packets are reordered once the last packet has arrived, not the first.

Advantages of packet switching

  • Routes around congestion. If one path is busy, packets can take a different one.
  • Resilient to loss. If a packet is corrupted or lost, only that one packet has to be resent, not the whole message.
  • Efficient use of the network. Many transmissions share the same links because packets are interleaved, rather than each transmission having its own dedicated wire.
  • Harder to eavesdrop on a whole message because each packet may go a different way and an attacker would have to intercept all of them.

Quick check

4 short questions on this note. See what has stuck, and where to look if something hasn't.

About 2 minutes

Build on this topic