O Level Computer Science 2210 · Area 1 · Computer systems

Data transmission methods and the USB interface

Every message between two devices has to choose how its bits travel and which way they may go. This page covers serial and parallel transmission, the three direction modes, and the USB interface that most peripherals now use. Marks are usually lost by describing a mode without saying which direction the data actually flows.

Not started

Syllabus coverage

  • Describe how data is transmitted from one device to another using different methods of data transmission, including serial and parallel
  • Describe the transmission modes simplex, half-duplex and full-duplex, including the advantages and disadvantages of each method
  • Explain the suitability of each method of data transmission for a given scenario
  • Understand the universal serial bus (USB) interface and explain how it is used to transmit data
  • Explain the benefits and drawbacks of the USB interface

Part of the O Level Computer Science syllabus 2210.

Serial and parallel, and who may speakParallel sends several bits at once; serial sends them one after another, in order.The direction of travel is a separate choice: simplex, half-duplex or full-duplex.Parallel: eight bits at oncesimplex: one direction onlySerial: one bit after another010101one lane, sent in ordersimplex: one way only half-duplex: both ways, one at a time full-duplex: both ways at once
Two lanes drawn side by side: the upper lane shows a parallel link with eight bits travelling together on separate wires and one clock tick, the lower lane shows a serial link with the same bits following one another down a single wire, and beside them three arrow pairs showing one-way flow for simplex, alternating flow for half-duplex and simultaneous two-way flow for full-duplex.

Two questions every connection has to answer

When one device sends data to another, two separate decisions have been made about the link. The first is how the bits travel along the wires: either one bit at a time, which is serial, or several bits side by side, which is parallel. The second is which direction the data is allowed to move: one way only, both ways in turn, or both ways at once.

These two decisions are independent of each other. A parallel cable can still be simplex, and a serial cable can be full-duplex. Exam questions often mix them up, so keep the two ideas in separate boxes in your mind: the type of transmission describes the shape of the signal, and the method, or mode, describes its direction.

The choice is not about which method is 'best'. It is about what the link has to do. A connection that must send a large amount of data a short distance has different needs from one that must send a few characters a long way, and a link that must carry a conversation in both directions has different needs again.

Serial/parallel answers 'how many wires carry bits at once'. Simplex/half-duplex/full-duplex answers 'who may send, and when'. Never use one to answer the other.

Serial transmission

In serial transmission the bits of each byte are sent one after another down a single channel. The eight bits of a byte leave the sender in order and arrive in the same order, one clock tick apart.

The strength of serial transmission is that there is nothing to keep in step apart from a single stream. Because all the bits follow the same path, they cannot drift apart from one another, so the method stays accurate over long distances. A single wire or pair of wires is also cheap to make and less exposed to interference than a wide cable, and it is easy to run through a long cable or a telephone line.

The weakness is speed per wire: only one bit arrives per clock tick, so for a given clock speed serial is slower than a parallel link of the same width. Modern serial standards compensate with very high clock rates, which is why almost every cable in current use, including network cable and USB, is serial.

  • One bit is sent at a time along one channel.
  • The bits cannot become skewed, because they all travel the same path.
  • Cheap cable, and reliable over long distances.
  • Slower than parallel for the same clock speed.

Parallel transmission

In parallel transmission several bits are sent at the same moment, each on its own wire. An eight-bit parallel link has eight data wires, so a whole byte leaves the sender in one clock tick and the transfer is roughly eight times faster than a serial link running at the same clock speed.

That advantage only survives over short distances. The wires in the cable are never perfectly identical, so bits that left together arrive at slightly different moments; this is called skew. If the difference grows larger than one clock tick, the receiver samples the wires while some bits of the byte are still arriving and reads the wrong value. Crosstalk between the closely packed wires adds interference on top of this.

Parallel links are therefore found inside a machine and over short external runs, such as the old printer ports and the ribbon cables inside a computer case, rather than between buildings. The wide cable is also bulkier and more expensive than a single serial pair.

SerialParallel
Bits per clock tickOneSeveral, one per wire
CableOne channel, thin and cheapMany wires, thick and more expensive
Behaviour over distanceReliable, because the bits cannot become skewedUnreliable, because skew and crosstalk grow with length
Typical useLong-distance links, networks, USBShort internal runs and older short external cables
Speed at the same clock rateSlowerFaster
The mark for the disadvantage of parallel is the word skew, followed by the effect: the bits arrive at different times so the receiver reads them in the wrong order and the byte is corrupted.

Simplex: data in one direction only

Simplex allows data to travel in one direction only. One device is permanently the sender and the other is permanently the receiver; the receiver has no way of sending anything back along that link.

Because only one direction is ever used, the link needs only one channel and the circuitry at each end is simple, so simplex is the cheapest mode to build. The obvious cost is that the receiver can never reply: it cannot ask for a lost item to be sent again, cannot confirm that the data arrived, and cannot report an error.

Simplex suits one-way flows of information where a reply would be pointless. A keyboard sends each keypress to the computer and never needs an answer, a computer sends the picture to a monitor, and a sensor in a weather station sends readings to a logger. A television broadcast is simplex for the same reason: the transmitter has no interest in what any individual receiver wants to say.

Half-duplex: both directions, taking turns

Half-duplex allows data to travel in both directions, but only one direction at a time. The two devices take turns: while one is transmitting the other listens, and then the roles swap.

This is cheaper than a full-duplex link because the same channel is reused for both directions rather than being duplicated. The cost is the delay while the link changes direction, and the need for the two ends to agree whose turn it is; if both transmit at once, the signals collide and both are lost.

A walkie-talkie is the standard example, and it shows the turn-taking clearly: you hold the button to speak and release it to listen, which is why people say 'over' when they finish. Older network hubs and some radio links also work in half-duplex, sharing one channel between devices in both directions.

Full-duplex: both directions at once

Full-duplex allows data to travel in both directions at the same time. Each end can transmit while it is receiving, so no time is wasted waiting for the channel to be handed over and no turn-taking rules are needed.

A telephone call is the everyday example, because both people can talk and listen simultaneously without pressing anything. Full-duplex is the fastest and most convenient of the three modes, but it needs a link that can carry two signals at once, either as two separate channels or by splitting the bandwidth, so the hardware is more expensive than a simplex or half-duplex link.

Modern network connections are commonly full-duplex for exactly this reason: a computer can be sending a request to a server while the reply to the previous request is still arriving, which keeps the link busy in both directions.

ModeDirectionExampleAdvantageDisadvantage
SimplexOne way onlyKeyboard to computer; computer to monitorCheapest, simplest link; the whole capacity is used in one directionThe receiver can never reply, confirm or request a re-send
Half-duplexBoth ways, one at a timeWalkie-talkieOne channel serves both directions, so it costs less than full-duplexThere is a delay while the direction changes, and both ends must take turns
Full-duplexBoth ways at the same timeTelephone callFastest and most convenient; no waiting to change directionNeeds two channels or split bandwidth, so the hardware costs more
If the question asks you to choose a mode for a scenario, name the mode, give the direction it allows, then tie one advantage to what the scenario needs. 'Full-duplex because the operator must speak and hear instructions at the same time' earns more than 'full-duplex is fastest'.

The USB interface

USB (universal serial bus) is a standard interface for connecting devices to a computer and carrying data between them. As the name says, it uses serial transmission: the bits of each packet travel one at a time along a twisted pair inside the cable rather than side by side on many wires.

The word 'universal' describes the real benefit. USB is a published standard, so a port built by one manufacturer accepts a device made by another with no adapter and no special card. The host computer detects the device when it is connected, identifies it and loads the correct driver automatically, which is what plug and play means. The connection is also hot-swappable: devices can be attached and removed while the computer is running, without restarting it. A hub lets several devices share one port, and the same cable can supply power to the device as well as carry data, which is why a single lead is enough for many peripherals.

Data is transferred in one direction at a time on each of the two data wires, with the host controlling when each device may send. The host polls the devices in turn, so no two devices transmit at once and the data does not collide.

USB is not without limits. A standard cable is short, typically a few metres, so it cannot connect a device in another room without an active extension. The achievable speed depends on the USB version supported at both ends, so an old device in a new port runs at the older, slower rate. Earlier versions also share bandwidth between all the devices on one host controller, so many busy devices on one hub can slow each other down.

  • Uses serial transmission, one bit at a time, along a twisted pair.
  • A standard connector, so devices from different manufacturers fit the same port.
  • Plug and play: the driver is detected and installed automatically.
  • Hot-swappable: devices can be connected and removed while the computer is on.
  • Carries power as well as data, and a hub allows several devices on one port.
  • Drawbacks: limited cable length, and speed set by the oldest USB version in the link.
For 'explain how USB is used to transmit data', the credit comes from the mechanism: serial transmission of bits, the host controlling which device sends, and the standard connector plus driver. Listing 'it is fast' earns nothing.

Choosing a method: worked reasoning

Suitability questions give you a scenario and expect a method, a reason drawn from the properties of the method, and a link to the scenario. Three short examples show the pattern.

A security camera fixed to a wall sends video to a recorder a few metres away and never receives data. Simplex would match the one-way flow, but USB is normally chosen because the same cable supplies power and the standard connector means any recorder accepts it.

A desktop computer sending print data to a printer beside it on an old wide cable is parallel: the distance is short, so skew does not have time to build up, and the extra width buys speed. The same printer today would use USB, because serial links now run fast enough for the short run and the cable is cheaper.

A radio link between two handheld units where each operator speaks in turn is half-duplex: one channel is shared, the operators take turns, and the delay when the direction changes is accepted because a second channel would cost more.

Key terms you must be able to define

Serial transmission
A method of transmission in which the bits are sent one at a time along a single channel. It is reliable over long distances because the bits cannot become skewed.
Parallel transmission
A method of transmission in which several bits are sent at the same time, each on its own wire. It is faster than serial at the same clock speed but suffers from skew over distance.
Skew
The effect in parallel transmission where bits sent together arrive at slightly different times because the wires are not identical, so the receiver may read them in the wrong order.
Simplex
A transmission mode in which data travels in one direction only, for example from a keyboard to a computer.
Half-duplex
A transmission mode in which data can travel in both directions, but only one direction at a time, for example a walkie-talkie.
Full-duplex
A transmission mode in which data can travel in both directions at the same time, for example a telephone call.
USB (universal serial bus)
A standard serial interface for connecting devices to a computer. It is plug and play, hot-swappable, can supply power, and allows several devices to share a port through a hub.
Plug and play
The property of an interface such as USB by which the computer recognises a newly connected device and installs the driver for it automatically, with no setup by the user.
Hot-swappable
The property of an interface such as USB by which a device can be connected or disconnected while the computer is running, without restarting it.
Interface
The hardware and rules that let two devices connect and exchange data, such as the USB port, plug and cable standard.

In context

2210 sets its questions inside systems a student already uses - a school network, a phone, a supermarket till, a vending machine, a website. These show how the theory is applied to a context you have not seen before, then you answer for the system you are given.

In a school computer room

Each machine connects to its keyboard and mouse by USB. The link is serial and, in practice, half-duplex on the shared data pair: the host asks a device to send, the device replies, and then the next device is polled. The standard connector means a replacement keyboard from any manufacturer works in any machine without an adapter, and no one has to restart the computer to swap it.

In a supermarket checkout

The barcode scanner sits on the counter and sends each scanned code to the till. Only one direction matters on that link, so simplex would be enough to describe the flow. USB is used because it also powers the scanner, and because the scanner can be unplugged and replaced mid-shift without switching the till off.

In a lecture theatre

The presenter's laptop drives a projector across the room. The cable run is long enough that a wide parallel cable would suffer from skew, so a serial connection is used instead: one stream of bits, no wires to keep in step, and a thinner cable that is easier to route. The projector never sends picture data back, so that part of the link is one-way.

In a warehouse radio system

Staff speak to a controller over handheld radios on one shared channel. Both directions are needed, but only one person can speak at a time, so the system is half-duplex. The operators take turns and accept the short pause when the channel changes hands, which is cheaper than providing a separate channel for each direction.

Flashcards

Click a card to flip it. Mark honestly — the tracker uses this.

Q1What is the difference between serial and parallel transmission?
Serial sends the bits one at a time along a single channel; parallel sends several bits at the same time, each on its own wire.
Q2Why does parallel transmission fail over long distances?
The wires are not identical, so the bits become skewed and arrive at slightly different times; the receiver then reads them in the wrong order. The wide cable also picks up more interference.
Q3Give one advantage of serial transmission.
It is reliable over long distances because all the bits follow the same path and cannot become skewed; it also needs only one channel, so the cable is cheap.
Q4Define simplex transmission.
Data travels in one direction only, so the receiver can never send anything back. A keyboard sending to a computer is an example.
Q5Define half-duplex transmission and give an example.
Data can travel in both directions but only one direction at a time; the devices take turns. A walkie-talkie is the standard example.
Q6Define full-duplex transmission and give an example.
Data can travel in both directions at the same time. A telephone call is the standard example.
Q7What is the main disadvantage of a simplex link?
The receiver cannot reply, so it cannot acknowledge the data, report an error or ask for anything to be re-sent.
Q8What is USB and what type of transmission does it use?
Universal serial bus: a standard interface for connecting devices to a computer. It uses serial transmission, sending the bits one at a time along a twisted pair.
Q9What does plug and play mean?
The computer detects a newly connected device, identifies it and installs the correct driver automatically, with no setup by the user.
Q10What does hot-swappable mean?
A device can be connected or disconnected while the computer is running, without restarting it.
Q11Give two drawbacks of the USB interface.
The cable length is limited to a few metres, and the transfer speed depends on the USB version supported at both ends, so the slowest device in the chain sets the rate.
Q12Why can USB carry several devices on one port?
A hub can be used, and the host controller polls each device in turn so that only one transmits at a time and the data does not collide.
0 of 12 marked as known

Exam-style questions

6 questions, 19 marks. Write your answer and press Mark my answer — it is marked against the scheme and tells you which points you made and what would gain the next mark. You can still reveal the scheme and mark it yourself instead.

IdentifyAO11 mark
A computer sends a page of text to a printer. Identify the transmission mode in which data can travel in both directions but only one direction at a time.

Mark scheme — tick each point you actually made

Examiner tip: Read the wording closely: 'both directions' rules out simplex, and 'one at a time' rules out full-duplex, so only half-duplex fits.
StateAO12 marks
State two ways in which the USB interface makes it easy to connect a new device to a computer.

Mark scheme — tick each point you actually made

Examiner tip: Two marks, so two distinct points. Naming the property is enough here, but say what it means in one clause so the examiner cannot mistake it for a guess.
DescribeAO13 marks
Describe how data is transmitted between a computer and a USB flash drive.

Mark scheme — tick each point you actually made

Examiner tip: Describe the mechanism rather than the benefits. The three credit points are the serial bit stream, the host controlling the transfer, and the automatic detection with power over the cable.
ExplainAO24 marks
A hospital needs to send scan images from a scanner to a computer in the same room, a distance of about two metres. A technician suggests a parallel cable. Explain whether parallel transmission is a suitable choice.

Mark scheme — tick each point you actually made

Examiner tip: This is a judgement question: give the case for parallel, admit the drawback, then state a conclusion. The distance is the key fact, because skew is what limits parallel and it grows with length.
CompareAO14 marks
Compare simplex, half-duplex and full-duplex transmission, giving one advantage and one disadvantage of each.

Mark scheme — tick each point you actually made

Examiner tip: Compare means all three, each with both sides. A table in your answer book is quicker than prose and makes it obvious that you have covered each mode twice.
ExplainAO25 marks
A company is fitting out a new office with desktop computers, keyboards, mice and printers. Explain why the company should use USB connections rather than a mixture of older parallel and serial ports.

Mark scheme — tick each point you actually made

Examiner tip: Five marks, so five separate benefits, each tied to the office scenario. Keep the order logical: standard connector, no setup, no restart, power, hub and cable.

Exam technique for this topic

  • Answer the question that was asked. 'How many bits travel at once' is serial versus parallel; 'which way may the data go' is simplex, half-duplex or full-duplex. Mixing the two loses marks even when both facts are correct.
  • For parallel, the phrase that scores is 'the bits can become skewed', followed by the consequence: they arrive at different times and the receiver reads them in the wrong order.
  • For a suitability question, structure the answer as method, property, scenario. Name the method, state the property that matters, and say why that matters here; a list of advantages with no choice will not reach the top band.
  • For USB, the exam expects the mechanism and the properties: serial transmission, a standard connector, plug and play, hot-swappable, power over the same cable, and the drawbacks of cable length and version-dependent speed.
  • Do not write that USB is 'faster because it is newer'. The speed of a USB link is set by the slowest version in the chain, and the reason it is widely used is that it is a standard, not that it is the fastest option available.

Why students lose marks here

A student wroteA student wrote: 'Serial transmission sends data in both directions, and parallel transmission sends data in one direction.'
Why it loses marksThe two ideas have been confused. Serial and parallel describe how many bits travel at once, not which way they travel. Direction is described by simplex, half-duplex and full-duplex, and either type of link can use any of the three modes.
The answer that scoresSerial transmission sends the bits of a byte one after another along a single channel, while parallel transmission sends several bits at the same time, one on each of several wires. The direction of travel is a separate property: simplex means one direction only, half-duplex means both directions but only one at a time, and full-duplex means both directions at the same time. A serial link can therefore be full-duplex, and a parallel link can be simplex.
A student wroteA student wrote: 'Parallel transmission is always better than serial because it sends more bits per second, so it is used for long-distance network cables.'
Why it loses marksParallel is faster only at the same clock speed and only over a short run. Over distance the bits on the different wires become skewed and arrive at different times, so the receiver samples the wrong values, and the wide cable picks up more interference. Long-distance links are serial for that reason.
The answer that scoresParallel transmission sends several bits at once, one per wire, so it is faster than serial at the same clock speed, which suits short connections such as internal cables and older printer leads. Over a long distance the wires are not identical, so the bits become skewed and arrive at slightly different times; once the difference exceeds a clock tick the receiver reads the wrong order and the data is corrupted. A cable with many wires is also more expensive and more exposed to interference, so long-distance links use serial transmission, where a single stream of bits cannot become skewed.
A student wroteA student wrote: 'A full-duplex link is one where data can travel in both directions, and a half-duplex link is one where it can travel in one direction.'
Why it loses marksHalf-duplex is not one-way. It allows both directions, but only one at a time; the devices take turns. The one-way mode is simplex, and describing half-duplex as one-way throws away the whole distinction between the three modes.
The answer that scoresSimplex allows data in one direction only. Half-duplex allows data in both directions but not simultaneously: one device sends while the other listens, and then the roles reverse, as with a walkie-talkie. Full-duplex allows data in both directions at the same time, as in a telephone call, which needs two channels or split bandwidth and therefore costs more.
A student wroteA student wrote: 'USB is a parallel interface because it has four wires inside the cable, so it sends four bits at once.'
Why it loses marksThe number of wires is not what makes a link parallel. In a USB cable two of the wires are for power and earth, and the remaining pair carries a single serial data stream in each direction. Parallel transmission would need one wire per bit of the byte.
The answer that scoresUSB uses serial transmission: the bits of each packet travel one at a time along a twisted pair of data wires, with the other wires supplying power and earth. It is described as a bus because several devices can share one host controller through a hub, and the host polls each device in turn so that only one transmits at a time. Its advantages come from being a standard interface, not from sending several bits at once.

Where this fits in O Level Computer Science 2210

This page is one topic of Cambridge O Level Computer Science 2210. O Level Computer Science 2210 is the course home: every area and every topic in Cambridge's own order, the papers you sit and what each one tests, and the exam-practice tools. The full topic list, with each topic linked to its revision page, is on the O Level Computer Science 2210 syllabus page.