Study Guide
Data Transmission Methods
How bits travel between two devices: one after another or side by side, in one direction or both, and how the USB interface uses these ideas, with the strengths and weaknesses of each method for a given situation.
Lesson 4.2 Networks, the Internet and Security
For: Cambridge IGCSE Computer Science learners, or anyone curious about why cables and connections are built the way they are
Stage: Think
One door or eight doors
At the end of break, eight pupils in a fictional school have to get inside. One school has a single narrow door, and the pupils go through one after another. Another school has eight doors side by side, and all eight pupils walk in together.
Think it through
Which school gets all eight pupils inside faster, if every pupil takes the same time to walk through a door? What might go wrong at the school with eight doors?
- Hint 1: Count how many “walks through a door” each school needs.
- Hint 2: Think about eight pupils who must arrive at exactly the same moment: is that always easy to arrange?
Show what happens
The school with eight doors is faster: all eight pupils go in during one walk, while the single door needs eight walks. But eight doors cost more to build, and eight pupils may not stay level, so some arrive a little before others.
A byte has eight bits, and the same choice exists when a byte is sent to another device. In serial transmission, the bits are sent one after another, along a single wire (or channel). In parallel transmission, several bits are sent at the same moment, each along its own wire: eight wires for the eight bits of a byte.
| Bytes sent | Ticks needed by serial (one wire) | Ticks needed by parallel (eight wires) |
|---|---|---|
| 1 | 8 | 1 |
| 2 | ||
| 4 |
- One byte is 8 bits. Serial sends one bit per tick, so how many ticks for one byte?
- Parallel sends all eight bits of a byte in one tick.
Show the completed table
| Bytes sent | Ticks needed by serial (one wire) | Ticks needed by parallel (eight wires) |
|---|---|---|
| 1 | 8 | 1 |
| 2 | 16 | 2 |
| 4 | 32 | 4 |
Stage: Predict
Why not always send bits side by side?
If parallel takes one tick per byte and serial takes eight, parallel looks like the clear winner. Yet most long cables, including the one from a home to the internet, send data serially.
Think it through
Eight runners start together in eight lanes. No two lanes are ever exactly alike, so the runners are very slightly different in speed. Over a track of 5 metres they cross the finish line within a blink of one another. Over a track of 5 kilometres, what do you expect, and what problem does that cause for a receiver that needs all eight to arrive together?
- Hint 1: Tiny differences between lanes get bigger the longer the track.
- Hint 2: What does the receiver do if some bits of a byte have arrived and others have not?
Show what happens
Over a long distance the small differences add up, so the runners cross the line at noticeably different times. A receiver waiting for all eight bits of a byte to arrive together can no longer tell which bits belong to the same byte.
The wires in a cable are never exactly equal, so bits sent at the same moment arrive at slightly different times. This drifting apart of the bits is called skew. The longer the cable, the worse the skew becomes, until bits from different bytes get mixed up. Parallel transmission has a second problem: the eight wires lie side by side, and the signal in one wire can disturb its neighbours. That disturbance, also called interference, can change bits (the lesson Error Detection looks at what can be done about it).
A serial link has one wire to carry the bits, so there is nothing to drift apart from and nothing alongside it to interfere. It is slower per tick, but the tick can be made very fast, and it stays reliable over a longer distance. A serial cable is also thinner and cheaper, because it needs fewer wires.
| Serial transmission | Parallel transmission | |
|---|---|---|
| How the bits travel | One after another, on one wire | Several at once, one wire per bit |
| Advantages | Reliable over longer distances; no skew; fewer wires, so a cheaper, thinner cable | Sends several bits per tick, so it can be faster over a short distance |
| Disadvantages | Sends one bit per tick, so slower at the same tick rate | Skew over longer distances; interference between neighbouring wires; more wires, so a bulkier, dearer cable |
| Suits | Longer distances, such as links between buildings or to the internet | Short distances, such as between parts inside a computer |
Check your understanding
Show the answer
Answer: B. The bits of one byte drift apart in time, so the receiver cannot match them up: skew.
Skew grows with distance, which is why parallel transmission suits short distances.
| Statement | Serial or parallel? |
|---|---|
| Bits of one byte may arrive at slightly different times over a long cable | |
| Stays reliable over a longer distance | |
| Sends a whole byte in a single tick | |
| Needs just one data wire (or one pair of wires) to carry the bits |
- Does the statement mention one wire or several?
- Skew and crosstalk between wires can only happen if there is more than one wire.
Show the completed table
| Statement | Serial or parallel? |
|---|---|
| Bits of one byte may arrive at slightly different times over a long cable | parallel |
| Stays reliable over a longer distance | serial |
| Sends a whole byte in a single tick | parallel |
| Needs just one data wire (or one pair of wires) to carry the bits | serial |
Stage: Discover
Which way does the data go?
So far the data has gone one way. But two devices can talk in different ways. Think of three everyday links: a baby monitor in a nursery, a walkie-talkie used by two park rangers, and a telephone call.
Think it through
For each of the baby monitor, the walkie-talkie and the telephone call, say whether the data can go one way only, both ways but not at the same moment, or both ways at the same moment.
- Hint 1: With a walkie-talkie, can you talk and listen at once?
- Hint 2: What happens if both people in a phone call speak together?
Show what happens
The baby monitor goes one way only (nursery to parent). The walkie-talkie goes both ways, but only one person can talk at a time (you press a button to talk, then release it to listen). The telephone call goes both ways at once, so you can hear the other person while you speak.
Do not confuse: Three directions for a transmission
- One way onlySimplex
- Data can travel in one direction only: the receiver cannot send anything back.A keyboard sending key presses to a computer; a temperature sensor reporting to a controller.
- Both ways, one at a timeHalf-duplex
- Data can travel in both directions, but only one direction at any moment.A walkie-talkie: each person waits for the other to finish.
- Both ways, at the same timeFull-duplex
- Data can travel in both directions at the same moment.A telephone or video call: both people can speak and hear together.
Simplex is one-way, half-duplex is two-way in turns, full-duplex is two-way together.
Each has its own strengths and weaknesses.
| Advantage | Disadvantage | |
|---|---|---|
| Simplex | Simple and cheap, and the whole channel is used for one direction | The receiver cannot reply or ask for a packet to be sent again |
| Half-duplex | Two-way communication over a single channel, so it costs less than full-duplex | The two sides must take turns, so there are delays, and the channel is idle while one side waits |
| Full-duplex | The fastest conversation: both sides send and receive together | Needs a way for both directions to be carried at once (for example a channel for each direction), so it is more complex and costly |
| Scenario | Method |
|---|---|
| A keyboard sending key presses to a computer | |
| A police officer on a radio who has to say “over” before the other person replies | |
| A video call between two pupils | |
| A temperature sensor reporting readings to a heating controller |
- Can the receiver send anything back? If so, can both sides send at the same moment?
Show the completed table
| Scenario | Method |
|---|---|
| A keyboard sending key presses to a computer | simplex |
| A police officer on a radio who has to say “over” before the other person replies | half-duplex |
| A video call between two pupils | full-duplex |
| A temperature sensor reporting readings to a heating controller | simplex |
Check your understanding
Show the answer
Answer: C. Half-duplex, because data goes both ways but only one way at a time.
Two-way, but in turns: half-duplex.
Stage: Apply
Choosing a method for a scenario
An examiner’s question often describes a situation and asks which method suits it. The answer must give a reason that comes from the situation, not just a name. Here is one worked through.
A fixed security camera on the school gate sends its pictures to a screen in the school office, 80 metres away. Which methods of transmission suit it?
- Look at the distance. 80 metres is far for a parallel cable, because skew and interference grow with distance. So the choice for the way the bits are sent is serial.
- Look at the direction. The camera only sends pictures; the screen sends nothing back. So the direction is simplex.
- Say why, using the situation. Serial is reliable over 80 metres and needs only a thin cable. Simplex is enough, because the office never needs to reply to the camera, and it is the simplest and cheapest of the three.
- Say what would change the answer. If the office needed to turn the camera, a message would have to travel back, and the link would need to be half-duplex or full-duplex.
Apply it
Show the answer
Answer: A. Serial and full-duplex: reliable over a long distance, and both sides can talk at once.
The distance suggests serial. A conversation needs both directions at the same moment, so full-duplex.
Apply it
Show the answer
Answer: C. Tom is partly right, but skew and interference make parallel unreliable over 300 metres.
Parallel sends more bits per tick, but over a long cable skew and interference make it unreliable. Serial is the better choice.
Stage: Explain
One plug for everything: USB
Look at the side of a laptop: a keyboard, a mouse, a phone charger, a memory stick and a printer can all be connected through the same kind of socket.
Think it through
Imagine every device needed its own different plug and socket. What problems would that cause for a user, and for a computer maker? What would be the benefits of one standard socket?
- Hint 1: How many different cables would you have to carry or buy?
- Hint 2: Would a computer need a different socket for each device?
Show a model answer
Users would need a different cable for every device, and might not be able to connect a new one at all. A computer maker would have to fit many different sockets. A single standard socket means one cable type suits many devices, and any computer can talk to any device made to the standard.
The universal serial bus (USB) is a standard interface for connecting devices to a computer. The “serial” in its name tells you how it sends data: bit by bit along a data wire, one after another. As the lesson has shown, that keeps the bits in step and lets the cable be thin and a few metres long. A USB cable also carries power, so a small device can run from it without its own supply. When a device is plugged in, the computer detects it and can set it up itself.
| Benefits of USB | Drawbacks of USB |
|---|---|
| One standard socket suits many kinds of device | The cable can only be a few metres long before the signal weakens |
| The computer detects a new device automatically | Its transmission speed is lower than some other connections, and older versions are slower than newer ones |
| It can supply power to small devices | Connectors come in several shapes and sizes, and older ones fit only one way round |
| Serial transmission is reliable, and the cables are thin and cheap | It supplies limited power, so large devices need their own supply |
| New versions still work with older devices (backward compatible), though at the older speed | Plugging in an unknown device, such as a memory stick, can bring malware into the computer |
Check your understanding
Show the answer
Answer: D. A USB cable can only be a few metres long before the signal gets weaker.
A limited cable length is a drawback of USB. The other three statements are benefits.
Go deeper USB and the direction of the data
Older USB cables carry data in one direction at a time, so they are half-duplex, and the computer decides which side may send. Newer versions add extra wires so that data can travel in both directions at once, which makes them full-duplex.
Stage: Consolidate
Show what you know
Apply it
Show the answer
Answer: B. The data is sent serially, bit by bit, and a nearby printer is within the cable length.
USB is serial, and a printer next to the computer is easily within its cable length.
Think it through
A school wants to connect a games console to a TV across the room, with a cable. In your own words, say whether serial or parallel would suit it better, and which direction method describes the data on the cable. Give reasons.
- Hint 1: How far is across the room: a few metres or hundreds?
- Hint 2: Does the TV send anything back? Does the console send both pictures and sound?
Show a model answer
- Serial transmission sends bits one after another along one wire; parallel transmission sends several bits at once along several wires. Parallel is quicker over short distances, but over longer ones skew and interference make it unreliable. Serial is slower per tick, but reliable over distance, with a thinner, cheaper cable.
- Simplex goes one way only; half-duplex goes both ways, but one way at a time; full-duplex goes both ways at the same time.
- To choose a method for a scenario, look at the distance and the direction, and give a reason that comes from the situation.
- USB transmits data serially. Its benefits are one standard socket, automatic detection and power for small devices; its drawbacks are a short cable, limited speed and power, and several connector shapes.
Sources and scope
- What this lesson is. The second lesson of the Networks, the Internet and Security module, written for this site. Its curriculum links are provisional: the wording of each linked specification point has been checked against the published specification, but no link has been verified by the site owner, and the links imply no endorsement by any examination board.
- Original material. The pupils at the doors, the runners, the baby monitor, the walkie-talkie and security guards, the camera at the school gate, the video link between two schools, Tom’s claim and the other scenarios are fictional examples written for this lesson.
- Simplified on purpose. A “tick” is a simplification of a clock signal; real links send millions or billions of bits every second. Modern computers use very fast serial links even inside the machine, so the advice that parallel suits short distances describes the idea behind the exam question and is not a rule about every circuit. The wiring of a USB cable and its different versions are not explained, beyond the optional note about direction.
A single binary digit: 0 or 1. The smallest unit of data a computer stores.
A group of eight bits, which can hold one of 256 different patterns.
Transmission in both directions at the same time.
Transmission in both directions, but only one direction at a time.
A disturbance of a signal on its way that can cause data loss, data gain or data change.
Software written to harm a device or its data, or to give someone unauthorised access to them.
A small piece of data sent across a network, with a header, a payload and a trailer.
Sending several bits at the same moment, each along its own wire.
Sending data one bit after another along a single wire or channel.
Transmission in one direction only: the receiver cannot send anything back.
The drifting apart in time of bits sent together along different wires, which gets worse over a longer cable.
A standard interface for connecting devices to a computer, which sends data serially and can also supply power.
Your progress on this lesson
Saved in this browser only. It is not sent anywhere, does not follow you to another device, and is lost if you clear this site’s data.
This browser is not allowing the site to save progress, so it will be forgotten when you leave the page.