← 💻 Computer Science

Cambridge IGCSE 0478 · Topic 2 of 10

Data transmission

How data is split into packets and sent between devices, the different methods of transmission, how errors are detected, and how encryption keeps data secure.

📌 Key points

  1. Data is split into packets. Each packet has a header (destination IP address, packet number, originator's IP address), a payload (the actual data) and a trailer (an error-detection value such as a checksum, and a marker to show the end of the packet).
  2. In packet switching, each packet can take a different route; routers decide the best route for each packet, so packets may arrive out of order and are put back in order using their packet numbers.
  3. Serial transmission sends one bit at a time down a single wire, so it is reliable over long distances; parallel sends several bits at once down several wires, which is faster but only over short distances because the bits can become skewed (out of sync).
  4. Simplex sends data in one direction only, half-duplex in both directions but not at the same time, and full-duplex in both directions at the same time.
  5. USB is a serial connection: devices are detected automatically and the right drivers loaded, it is an industry standard, it can supply power, but the cable length is limited.
  6. Interference can cause data to be lost, gained or changed. A parity check adds a parity bit so the number of 1s is even (even parity) or odd (odd parity); a parity byte and parity block can find the exact bit in error, but a parity check cannot detect an even number of changed bits.
  7. In a checksum, the sender calculates a value from the data and sends it with the data; the receiver recalculates it and, if the values do not match, the data is sent again. In an echo check the receiver sends a copy of the data back to the sender to compare.
  8. Automatic Repeat Query (ARQ) uses acknowledgements and a timeout: the receiver sends a positive acknowledgement if the data is correct (or a negative one if not); if the sender gets no positive acknowledgement within the timeout, it resends the data.
  9. A check digit is an extra digit calculated from the other digits of a number (e.g. ISBN, barcodes) and is used to detect data entry errors such as an incorrect or transposed digit.
  10. Encryption turns plaintext into ciphertext so intercepted data cannot be understood. Symmetric encryption uses the same key to encrypt and decrypt; asymmetric encryption uses a public key to encrypt and a matching private key to decrypt.

📖 Key terms

Packet
A small unit of data sent across a network, made of a header, payload and trailer.
Payload
The part of a packet that contains the actual data being sent.
Packet switching
Data is sent in packets that may take different routes and are reordered at the destination.
Half-duplex
Data can travel in both directions, but only one direction at a time.
Parity bit
An extra bit added to a byte to make the number of 1s even or odd, used to detect errors.
Checksum
A value calculated from a block of data and sent with it so the receiver can check for errors.
Automatic Repeat Query (ARQ)
Error-control method using acknowledgements and timeouts so data is resent if not received correctly.
Asymmetric encryption
Encryption that uses a public key to encrypt and a different, private key to decrypt.

✏️ Worked example

A system uses even parity, with the parity bit as the leftmost bit. Write the byte sent for the 7-bit data 1101011, and explain how an error in 11101111 is detected.

  1. Count the 1s in 1101011: 1, 1, 0, 1, 0, 1, 1 gives five 1s.
  2. Five is odd, so the parity bit must be 1 to make the total even.
  3. Byte sent: 11101011 (six 1s, which is even).
  4. The receiver counts the 1s in 11101111: there are seven.
  5. Seven is odd, but the system uses even parity, so an error is detected and the data is resent.
💡 Exam tip

"Describe" questions on error checks need the full process: who calculates what, where it is sent, what is compared, and what happens if there is an error (the data is resent).

Test yourself8 questions from a bank of 17. A new mix every time.
Start the quiz →

It’s bedtime! 😴

It’s late, and even Numo is getting sleepy. The best thing you can do for your learning now is… go to sleep!

✨ Sleep helps you

  • 🧠 remember what you learned today: your brain saves it while you sleep
  • 🌱 grow and stay healthy
  • ⚡ wake up with energy, ready to learn and play
  • 😊 feel happy and calm

🦉 Going to bed late can make you

  • 😩 tired and sleepy at school tomorrow
  • 🤯 find it harder to focus and to remember
  • 😠 grumpy and easily upset
  • 🤧 catch colds more easily

Children your age need 9 to 12 hours of sleep every night. Numo will be right here tomorrow!