Worth about 12 of the 75 marks on a typical Paper 1. Packet switching, parity and encryption come up most.
1. Packets and their structure
Data is broken down into small units called packets before it is sent across a network.
| Part | What it contains |
|---|---|
| Packet header | The destination address, the packet number and the originator’s (sender’s) address |
| Payload | The actual data being sent |
| Trailer | Marks the end of the packet and holds error-checking data, such as a checksum |
2. Packet switching
- The data is broken down into packets.
- Each packet can take a different route across the network.
- Routers control the route each packet takes, choosing the best path at that moment.
- Packets may arrive out of order.
- When the last packet arrives, the packets are reordered using their packet numbers.
3. Serial and parallel transmission
| Serial | Parallel | |
|---|---|---|
| How | One bit at a time along a single wire | Several bits at the same time along several wires |
| Speed | Slower over short distances | Faster transmission over short distances |
| Distance | Reliable over long distances: bits arrive in order | Bits can arrive out of sync (skew) over long distances |
| Cost | Cheaper: fewer wires | More expensive: more wires |
| Used for | USB, long-distance networks | Inside a computer, e.g. internal buses |
4. Simplex, half-duplex and full-duplex
| Method | Direction | Example |
|---|---|---|
| Simplex | One direction only | A computer sending data to a monitor; a radio broadcast |
| Half-duplex | Both directions, but only one way at a time | Walkie-talkies |
| Full-duplex | Both directions at the same time | A phone call; broadband internet |
Methods combine: for example, serial full-duplex sends one bit at a time, in both directions at once.
5. USB
Universal serial bus (USB) is a standard interface that sends data using serial transmission.
| Benefits | Drawbacks |
|---|---|
| Devices are detected automatically and the right driver is loaded | Maximum cable length is short (a few metres) |
| Industry standard: works with almost any computer | Older USB versions transfer data slowly |
| Can supply power to devices, e.g. charging a phone | Different connector types (USB-A, USB-C, micro-USB) can need adapters |
| Connectors only fit one way (USB-C fits either way) |
6. Why errors happen
Data can be corrupted during transmission by interference, for example electrical noise or a weak signal. Bits can be lost (data loss), extra bits can appear (data gain), or bits can flip from 0 to 1 or 1 to 0 (data change). So the receiver needs a way to check the data.
7. Parity checks
- The sender and receiver agree on even or odd parity.
- The sender sets a parity bit (here, the leftmost bit) so the number of 1s in each byte is even (or odd).
- The receiver counts the 1s in each byte. If the count does not match the agreed parity, an error is detected.
- A parity check cannot spot an even number of flipped bits, or say which bit is wrong.
Try it: parity checker
Click the 7 data bits. The leftmost bit is the parity bit, set by the sender. Then send the byte and add an error.
Parity block check
Several bytes are sent together with a parity byte. Parity is checked for every row (byte) and every column. The row and column that both fail point to the exact bit that is wrong, so it can be corrected.
8. Checksum
- The sender calculates a value (the checksum) from the data using an agreed algorithm.
- The checksum is sent with the data.
- The receiver recalculates the checksum from the data it received.
- If the two values do not match, an error is detected and the data is sent again.
9. Echo check
The receiver sends a copy of the data back to the sender, which compares it with the original. If they are different, the data is sent again.
Drawback: if the copy is different, the sender cannot tell whether the error happened on the way there or on the way back.
10. Check digits
A check digit is an extra digit calculated from the other digits of a number. It detects errors in data entry, such as a digit typed wrongly or two digits swapped. It is used in ISBNs and barcodes.
ISBN-13 example: 978-0-306-40615-?. Multiply the digits alternately by 1 and 3 and add them: 9 + 21 + 8 + 0 + 3 + 0 + 6 + 12 + 0 + 18 + 1 + 15 = 93. Take the remainder after dividing by 10 (3), then subtract from 10: the check digit is 7. When the ISBN is scanned or typed, the calculation is repeated; if the result differs from the check digit, the entry is wrong.
11. Automatic repeat query (ARQ)
- The receiver checks each packet for errors, for example with a checksum.
- If it is correct, the receiver sends a positive acknowledgement. If not, it sends a negative acknowledgement, asking for the packet again.
- The sender starts a timeout when it sends a packet. If no acknowledgement arrives before the timeout ends, it sends the packet again.
- This repeats until the packet is received correctly.
12. Encryption
Encryption scrambles data (plaintext) into ciphertext using a key. It does not stop data being intercepted or stolen; it makes the data meaningless to anyone without the key.
| Symmetric | Asymmetric | |
|---|---|---|
| Keys | One key, used to both encrypt and decrypt | A pair: a public key to encrypt, and a private key to decrypt |
| How it works | The same key must be shared with the receiver | The receiver shares their public key with anyone; only their private key can decrypt the message |
| Weakness | If the key is intercepted while being shared, the data can be read | Slower to encrypt and decrypt |
13. Examiner tips
- Packet header = destination address, packet number, originator’s address. Name all three.
- Routers choose the route each packet takes; it is not decided by the sender.
- Say what parallel is faster at: “faster transmission of data over short distances”, not just “faster”.
- Skew is a parallel problem, not a serial one.
- Describe parity fully: a parity bit is added to each byte, and the receiver counts the 1s to check the agreed parity.
- Encryption does not stop data being stolen; it makes stolen data meaningless without the key.
- A firewall does not protect data in transit. Encryption does.
- Use technical terms: payload, acknowledgement, timeout, public key, private key.
- Choose a method for the scenario: long distance → serial; both ways at once → full-duplex.
- Check digits are for data entry, not transmission errors.
14. Practice questions
Practice: answer and check instantly
Type a short answer, then press Check or Enter.
Show answer
The packet header.
Show answer
A router.
Show answer
Full-duplex.
Show answer
0: there are already four 1s, which is even.
Show answer
1: there are four 1s, so one more makes the total odd.
Show answer
An echo check.
Show answer
The receiver’s private key.
Show answer
7: the weighted sum is 93, remainder 3, and 10 − 3 = 7.
Exam-style questions
9. Describe how packet switching is used to send a file across the internet. [4]
Show mark guide
Any four: the file is broken down into packets · each packet has a header with the destination address, packet number and originator’s address · packets can take different routes · routers decide the route for each packet · packets may arrive out of order · they are reordered using the packet numbers when the last one arrives.
10. A company sends data between two offices 20 km apart. Explain why serial transmission is more suitable than parallel. [2]
Show mark guide
Serial sends bits one at a time along a single wire, so the bits arrive in order and do not skew over a long distance [1]; it needs fewer wires, so it is cheaper over 20 km [1].
15. Topic test: predict your grade
Topic test: predict your grade
15 questions, about 10 minutes. Answer them all, then press Mark my test.
Frequently asked questions
What is the difference between serial and parallel transmission?
Serial transmission sends bits one at a time along a single wire, so it is reliable over long distances. Parallel transmission sends several bits at once along multiple wires, so it is faster but suffers from skew over long distances.
How does a parity check work?
An extra parity bit is added so the number of 1s is even (even parity) or odd (odd parity). The receiver counts the 1s; if the count is wrong, an error has occurred during transmission.
What is the difference between symmetric and asymmetric encryption?
Symmetric encryption uses one shared key to encrypt and decrypt. Asymmetric encryption uses a public key to encrypt and a matching private key to decrypt.