Data Transmission

Data Transmission

Data packets and packet switching

Types and Methods of Data Transmission Paper 1 12 min read

On this page
  1. In this note
  2. What you should already know
  3. Why data is split into packets
  4. The structure of a packet
  5. Packet switching
  6. Summary
  7. Ways they test it
  8. What the examiner looks for
  9. Past-paper questions, solved
  10. Common mistakes
  11. Practice
  12. Can I do this?
  13. Quiz

In this note

Syllabus 2.1 Types and methods of data transmission
  • 2.1.1aUnderstand that data is broken down into packets to be transmitted.
  • 2.1.1bDescribe the structure of a packet: packet header (destination address, packet number, originator's address), payload, trailer.
  • 2.1.1cDescribe the process of packet switching, including the role of the router.

Next: Serial, parallel and duplex.

Part 1Learn the topic

The notes: every idea from the start, with our own examples.

What you should already know

Everything is binary

A file, an email or a web page is just a long string of bits when it is sent.

Quick check: what is a file made of when it is sent?

A long string of bits (binary).

Networks

A network is devices connected so they can share data. The internet is a huge network of networks.

Quick check: what do we call a network of networks?

The internet.

Why data is split into packets

When a file is sent across a network it is not sent in one go. It is broken down into small units called packets. Each packet is sent independently and the file is put back together at the other end.

Why? A small packet is quick to send. If one packet is lost or damaged, only that packet has to be sent again, not the whole file. And many people can share the same network, because packets from different users take turns on the cables.

The structure of a packet

Every packet has three sections: a header, a payload and a trailer.

Headersender + destination IP,packet numberPayloadthe actual data being sentTrailerend of packet,error checkfirstlast
A packet: the header goes first, then the data (payload), then the trailer.
SectionWhat it holds
Headerthe destination address (IP address of the receiver), the originator's address (IP address of the sender) and the packet number (so the packets can be put back in order). It can also give the size of the packet and the total number of packets.
Payloadthe actual data being sent: one small piece of the file
Trailerdata that shows the end of the packet, and error checking data (e.g. a checksum value)
Memory hook: the header is like the address and number written on an envelope, the payload is the letter inside, the trailer says "end of letter" and how to check it arrived complete.

Try it yourself

1
Which section of a packet holds the packet number?
Show answer

Answer The header

2
Which section holds the actual data being sent?
Show answer

Answer The payload

3
Give one item of data stored in the trailer.
Show answer

Answer End of packet notification / error checking data such as a checksum

Packet switching

Packet switching is the method used to send the packets across a network such as the internet. A device called a router sits at each junction of the network and decides where each packet goes next.

General methodHow packet switching works

  1. The data is broken down into packets.
  2. Each packet is given a header with the destination address and its packet number.
  3. Each packet is sent independently: it could take a different route across the network.
  4. At each router, the router reads the destination address in the header and sends the packet on towards its destination, choosing the shortest / fastest available route at that moment.
  5. Packets may arrive out of order (some routes are slower or busier).
  6. When the last packet has arrived, the packets are reordered using their packet numbers.
  7. If a packet is missing or corrupted, it is requested again.
Device ADevice BR1R2R3R4R5packet 1packet 2packet 3arrive 2, 3, 1reordered: 1, 2, 3
Three packets of one file take three different routes through the routers, arrive in the order 2, 3, 1 and are put back in order at B.
Advantages of packet switchingDisadvantages
packets can avoid busy or broken routes, so data still gets throughpackets can arrive out of order and must be reordered
only a lost / damaged packet is resent, not the whole filepackets can be lost and need resending, which causes delay
many users can share the network at the same timethe receiver must wait for every packet before the file is complete

Try it yourself

1
Name the device that controls the route each packet takes.
Show answer

Answer Router

2
Why might packets arrive in a different order from the order they were sent?
Show answer

Answer Each packet can take a different route; some routes are longer or busier, so some packets take longer

Summary

  • Data is broken down into packets; each packet is sent independently.
  • Header: destination address, originator's address, packet number. Payload: the data. Trailer: end of packet + error checking.
  • Packet switching: each packet may take a different route; routers read the destination address and send it on by the best route.
  • Packets can arrive out of order; they are reordered (packet numbers) once the last one arrives; missing ones are requested again.

If you see …

  • "describe the structure of a packet"three sections · header (with 2 examples) · payload (the data) · trailer (end + error check)
  • "explain how packet switching works"split into packets · different routes · router · out of order · reordered · resent
  • "purpose of a router"reads destination address · sends packet towards destination · chooses the route
Part 2How it is examined

Question types, what the examiner gives marks for, and real past-paper questions solved.

Ways they test it

Type 1 Header items

"Identify two items of data contained in a packet header" [2]

Spot it "header".

  1. Destination IP address · originator's (sender's) IP address · packet number. Not "the data" (that is the payload).

Type 2 Structure

"Describe the structure of a data packet" [3-6]; a labelled diagram to complete

Spot it "structure", "sections".

  1. Name all three sections in order AND say what each holds: one mark per name, one per example.

Type 3 Process

"Explain how the file is transmitted using packet switching" [5]; "complete and annotate the diagram" [4]

Spot it "packet switching", "routers".

  1. Write the method steps in order: split, different routes, router, out of order, reordered, resent.

Type 4 Router

"Give the purpose of a router in packet switching" [1]; "identify the component that …" [1]

Spot it "controls the route".

  1. Router: reads the destination address and sends the packet towards its destination by the best route.

Type 5 Cloze

"Complete the statements … use the terms from the list" [4]

Spot it a word list.

  1. Each gap uses a keyword from the notes: header, destination address, routers, last.

What the examiner looks for

"Describe the structure of a packet of data" [4]

Marking points (one mark each, up to the marks shown)

  • The data packet has three sections
  • It has a packet header …
  • … that contains data such as the destination address
  • It has a payload …
  • … that contains the main data
  • It has a trailer …
  • … that contains data such as the error detection method used

Keywords header payload trailer destination address packet number

"Explain how the file is transmitted using packet switching" [5]

Marking points (one mark each, up to the marks shown)

  • Data is broken / split / divided into packets
  • Each packet (could) take a different route
  • A router controls the route / path a packet takes …
  • … selecting the shortest / fastest available route
  • Packets may arrive out of order
  • Once the last packet has arrived, packets are reordered
  • If a packet is missing / corrupted, it is requested again

Keywords packets different route router out of order reordered

Packet header

0478/11/M/J/25 Q4Paper 1 · Computer systems1 mark
Which item would NOT be included in a packet's header? A destination address · B originator's address · C packet number · D payload
Credited
  • D, payload: the payload is a separate section, the data itself
Not credited
  • A, B or C: these three are exactly what the header holds
Why

The header describes the packet; the payload IS the data.

From: 0478/11/M/J/25 Q4(c)(i) mark scheme

Past-paper questions, solved

0478/13/O/N/25 Q3Paper 1 · Computer systems6 marksFull size
Name the three sections of a packet and give an example of what each stores

How to start Three sections, three examples: one mark each. Write them in order: first, second, third.

Show a full-mark answer and the mark scheme

First section: the header. Example: the destination IP address (or packet number, or sender's IP address).

Second section: the payload. Example: the data itself.

Third section: the trailer. Example: error checking data (or end of packet notification).

PartAnswer / workingMarksGuidance
3(a)Header · e.g. originator's / destination (IP) address, packet numberB2
Payload · the data itselfB2
Trailer · e.g. end of packet notification, error checking dataB2
Total: 6 marks
0478/11/M/J/23 Q2Paper 1 · Computer systems7 marksFull size
Header items and how a sound file is sent by packet switching

How to start (i) is two of the three header items. (ii) is the seven-step method: aim for five clear points.

Show a full-mark answer and the mark scheme

(c)(i) The destination IP address. The packet number.

(c)(ii) The file is broken down into packets. Each packet can take a different route across the network. Routers control the route each packet takes, choosing the fastest available route. The packets may arrive out of order, so once the last packet has arrived they are reordered using the packet numbers. If a packet is missing or corrupted it is requested again.

PartAnswer / workingMarksGuidance
2(c)(i)Any two: destination (IP) address · packet number · originator's (IP) addressB2
2(c)(ii)Any five: split into packets · different routes · router controls the route · … shortest / fastest route · may arrive out of order · reordered once the last arrives · missing / corrupted packet requested againB5
Total: 7 marks
0478/11/O/N/23 Q7Paper 1 · Computer systems4 marksFull size
Complete the statements about packets and packet switching

How to start Read the whole paragraph first. Each gap matches one keyword from the notes; not every word in the list is used.

Show a full-mark answer and the mark scheme

header · destination address · routers · last

(A packet has a packet header that contains the packet number and the destination address. The path is controlled by routers. When the last packet arrives, the packets are reordered.)

PartAnswer / workingMarksGuidance
7header · destination address · routers · last, one mark each in the correct orderB4
Total: 4 marks

Common mistakes

  • ✗ "The header contains the data"✓ "The payload contains the data"The header only describes the packet.
  • ✗ "All packets take the same route"✓ "Each packet can take a different route"
  • ✗ "The router puts the packets back in order"✓ "The receiving device reorders the packets"The router only sends each packet on.
  • ✗ "Address" on its own✓ "Destination IP address" or "sender's IP address"Say which address.

Practice

Practice: easy, medium, hard

Easy

1
What is the name given to the small units that data is broken into for transmission?
Show answer

Answer Packets

2
Name the three sections of a packet, in order.
Show answer

Answer Header, payload, trailer

3
Give the purpose of the packet number.
Show answer

Answer So the packets can be put back in the correct order when they arrive

Medium

1
Give two items of data stored in a packet header.
Show answer

Answer Two of: destination IP address, originator's IP address, packet number

2
Explain why packets may need to be reordered when they arrive. [2]
Show answer

Answer Each packet can take a different route; some take longer, so they arrive in the wrong order

3
Describe the role of a router in packet switching.
Show answer

Answer Reads the destination address in the header and sends the packet towards its destination by the best available route

Hard

1
A video is sent across the internet using packet switching. Explain how the video is transmitted. [5]
Show answer

Answer Split into packets with header (destination address, packet number); each packet sent independently, may take a different route; routers read the destination address and choose the fastest route; packets arrive out of order; reordered when the last arrives; missing / corrupted packets requested again

PartAnswer / workingMarksGuidance
split into packetsB1
different routesB1
router chooses routeB1
out of order → reordered when last arrivesB1
missing packets requested againB1
Total: 5 marks
2
Give one benefit and one drawback of packet switching.
Show answer

Answer Benefit: packets avoid busy / broken routes, only lost packets resent. Drawback: packets arrive out of order / can be lost, causing delay

Can I do this?

Anything unticked: revise that section first. All ticked: take the quiz.

Quiz

The multiple-choice and guided questions need JavaScript. The concept checks and exam practice below work without it.

Your progress on this note is saved when JavaScript is on.

⬇️ Download this chapter as a PDF: Full notes