Cambridge IGCSE Computer Science (0478) · Data transmission
Mini-Lesson
Data transmission
When data moves between devices it is split into packets and sent along wires or wirelessly. This mini-lesson covers data packets, serial vs parallel and simplex / half-duplex / full-duplex, USB, error detection (parity, checksum, echo check, check digit) and encryption (symmetric & asymmetric).
Work through each screen, answer the questions, and collect ⭐ stars. Press Start when ready.
Data packets
Data packets
Large data is broken into small packets before being sent, then reassembled at the other end. Each packet has three parts:
Header — the sender’s and receiver’s IP addresses, the packet number, and how many packets there are in total.
Payload — the actual data being carried.
Trailer — a marker for the end of the packet, plus an error-check (e.g. a checksum).
Packet switching: packets can take different routes across the network and may arrive out of order — the packet numbers let the receiver reassemble them correctly.
Quick check
Inside a packet
?Which part of a data packet contains the destination IP address and the packet number?
Serial / parallel · duplex
Serial, parallel & direction
Serial transmission sends bits one at a time down a single wire — reliable over long distances. Parallel sends several bits at once down many wires — faster but only reliable over short distances (bits can arrive skewed).
Direction of flow can be:
Simplex — one direction only (e.g. computer → printer, or a sensor sending readings).
Half-duplex — both directions, but only one at a time (e.g. a walkie-talkie).
Full-duplex — both directions at the same time (e.g. a phone call, broadband).
Sort it
Serial, parallel or simplex?
Tap a statement, then tap the group it belongs to.
📤 Serial
🚚 Parallel
➡️ Simplex
Quick check
Which direction mode?
?During a phone call, both people can speak and be heard at the same time. Which transmission mode is this?
USB
USB
USB (Universal Serial Bus) is the standard wired connection for peripherals. It uses serial transmission. Benefits:
Connectors only fit one way, so it is hard to plug in wrongly.
It is a widely supported standard — devices are recognised automatically and drivers are often installed for you.
It can carry power as well as data, and can charge devices.
Drawback: the maximum cable length is limited (a few metres) and older USB versions have lower maximum transfer speeds than some alternatives.
Quick check
USB benefit
?Which of these is a genuine advantage of using USB to connect a device?
Error detection
Error detection methods
Transmission can corrupt bits, so we add checks:
Parity check — an extra parity bit makes the number of 1s even (even parity) or odd (odd parity). If the count is wrong on arrival, an error is detected.
Checksum — a value calculated from the data is sent with it; the receiver recalculates and compares.
Echo check — the received data is sent back to the sender and compared with the original.
Check digit — an extra digit added to the end of a number (e.g. barcodes, ISBNs) calculated from the other digits.
Worked example — even parity
The 7 data bits 0110100 contain three 1s (odd). For even parity the parity bit must be 1, making four 1s in total (even).
Calculate
Your turn — parity bit
1Using even parity, the 7 data bits are 1011001. How many 1s are in these data bits? (This tells you what the parity bit must be.)
ones
Hint: count the 1s in 1011001. (Since it is already even, the parity bit would be 0.)
Quick check
Which check?
?After receiving data, a computer sends the whole received copy back to the sender to be compared with the original. Which error-detection method is this?
Quick check
Parity limitation
?Why might a simple parity check fail to detect an error?
Encryption
Encryption
Encryption scrambles data (plaintext) into unreadable ciphertext using a key. It does not stop data being intercepted — it makes it meaningless to anyone without the key. Two types:
Symmetric encryption — the same key is used to encrypt and decrypt. Fast, but the key must be shared securely, which is a risk.
Asymmetric encryption — uses a key pair: a public key (shared with anyone) to encrypt, and a matching private key (kept secret) to decrypt. Solves the key-sharing problem.
Key idea: in asymmetric encryption, data encrypted with a person’s public key can only be decrypted with their private key.
Quick check
Symmetric vs asymmetric
?In asymmetric encryption, which key is used to decrypt a message?