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?

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.

Sending data, if one bit travels along a wire in each tick of a clock
Bytes sentTicks needed by serial (one wire)Ticks needed by parallel (eight wires)
181
2
4

    Show the completed table
    Bytes sentTicks needed by serial (one wire)Ticks needed by parallel (eight wires)
    181
    2162
    4324

    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?

    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 transmissionParallel transmission
    How the bits travelOne after another, on one wireSeveral at once, one wire per bit
    AdvantagesReliable over longer distances; no skew; fewer wires, so a cheaper, thinner cableSends several bits per tick, so it can be faster over a short distance
    DisadvantagesSends one bit per tick, so slower at the same tick rateSkew over longer distances; interference between neighbouring wires; more wires, so a bulkier, dearer cable
    SuitsLonger distances, such as links between buildings or to the internetShort distances, such as between parts inside a computer

    Check your understanding

    A parallel cable that works perfectly over 1 metre starts to make mistakes over 50 metres. Which is the best explanation?
    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.

    Which method does the statement describe?
    StatementSerial 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

      Show the completed table
      StatementSerial or parallel?
      Bits of one byte may arrive at slightly different times over a long cableparallel
      Stays reliable over a longer distanceserial
      Sends a whole byte in a single tickparallel
      Needs just one data wire (or one pair of wires) to carry the bitsserial

      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.

      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.

      AdvantageDisadvantage
      SimplexSimple and cheap, and the whole channel is used for one directionThe receiver cannot reply or ask for a packet to be sent again
      Half-duplexTwo-way communication over a single channel, so it costs less than full-duplexThe two sides must take turns, so there are delays, and the channel is idle while one side waits
      Full-duplexThe fastest conversation: both sides send and receive togetherNeeds a way for both directions to be carried at once (for example a channel for each direction), so it is more complex and costly
      Simplex, half-duplex or full-duplex?
      ScenarioMethod
      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

        Show the completed table
        ScenarioMethod
        A keyboard sending key presses to a computersimplex
        A police officer on a radio who has to say “over” before the other person replieshalf-duplex
        A video call between two pupilsfull-duplex
        A temperature sensor reporting readings to a heating controllersimplex

        Check your understanding

        Two security guards share a pair of radios. Each guard presses a button to talk and has to let go of it to hear the other. Which method is this?
        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?

        1. 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.
        2. Look at the direction. The camera only sends pictures; the screen sends nothing back. So the direction is simplex.
        3. 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.
        4. 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

        Two schools set up a live video link between their classrooms, 20 kilometres apart, so that pupils can talk to one another. Which pair of methods suits it best?
        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

        Tom says: “Parallel is always better than serial, because it sends more bits at once. So we should connect two school buildings 300 metres apart with a parallel cable.” What is the best reply to Tom?
        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?

        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 USBDrawbacks of USB
        One standard socket suits many kinds of deviceThe cable can only be a few metres long before the signal weakens
        The computer detects a new device automaticallyIts transmission speed is lower than some other connections, and older versions are slower than newer ones
        It can supply power to small devicesConnectors come in several shapes and sizes, and older ones fit only one way round
        Serial transmission is reliable, and the cables are thin and cheapIt supplies limited power, so large devices need their own supply
        New versions still work with older devices (backward compatible), though at the older speedPlugging in an unknown device, such as a memory stick, can bring malware into the computer

        Check your understanding

        Which of these is a drawback of USB, and not a benefit?
        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

        A pupil connects a printer to a classroom computer with a USB cable. Which statement is correct?
        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.

        Show a model answer

        A good answer gives reasons from the situation: “A few metres is short, so skew is not a problem, but most modern cables still use serial because it is cheap and reliable, and it can be made very fast. Pictures and sound go one way, from console to TV, so the data on the cable is simplex.”

        • 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.