Computer ScienceFoundation18 min read

Types and Methods of Data Transmission

Packets, wires and directions — how data actually gets from one machine to another

This topic appears in:

01

Data travels in packets

A file is not sent as one continuous stream. It is broken into packets, each sent separately and reassembled at the far end. That arrangement seems roundabout and is the reason networks work at all.

Packets from many different transfers can share the same cable, so one large download does not block everything else. A packet lost or corrupted can be resent on its own rather than restarting the whole file. And packets can take different routes, so a broken link is routed around rather than stopping the transfer.

Part of a packetContains
Headersender address, receiver address, packet number, total packets
Payloadthe actual data, typically around 64 KB
Traileran end marker and an error-checking value

Why the packet number matters

Packets may arrive out of order, because different packets can take different routes and some routes are slower. The header carries the packet number and the total, so the receiver can reassemble them correctly and knows when none are missing. Without that number the data would arrive scrambled, which is why it is part of every header.

02

Serial and parallel

Serial transmission sends one bit at a time along a single wire. Parallel sends several bits simultaneously along separate wires — eight wires carry eight bits at once.

Parallel is faster over a very short distance, which is why it is used inside a computer between the processor and memory. Over any real distance it fails, because the bits travel at very slightly different speeds down different wires and arrive out of step — a problem called skew. Parallel cables also suffer crosstalk, where the signal in one wire interferes with its neighbours.

Serial avoids both, so every long-distance and external connection is serial: USB, Ethernet, HDMI and the entire internet.

Set Parallel and imagine the wires stretched over a hundred metres. The eight bits set off together and arrive at slightly different times — that is skew, and it is why long-distance links are always serial.

03

Simplex, half duplex and full duplex

Separately from how many wires there are, transmission has a direction, and there are three possibilities.

Simplex travels one way only, ever — a keyboard to a computer, or a computer to a printer with no status reporting. Half duplex travels both ways but only one at a time, like a walkie-talkie where one person must stop before the other can speak. Full duplex travels both ways simultaneously, like a telephone call or a broadband connection downloading while uploading.

The two classifications are independent

Serial or parallel describes the wires; simplex, half or full duplex describes the direction. A link can be serial full duplex, or parallel half duplex, or any other combination. Exam questions ask for both, and answering only one of the two loses half the marks.

04

USB

The Universal Serial Bus is the standard the syllabus names, and its advantages are worth knowing as a list.

It is a universal standard, so one connector serves many devices. The connector fits only one way round, so it cannot be inserted incorrectly. Devices are detected automatically and the correct driver loaded — plug and play. It supplies power as well as data, so small devices need no separate supply. And later versions are backward compatible with earlier ones.

Its limits: the cable is restricted to a few metres, and older versions are slow by modern standards, though USB 3 and later are fast enough for external storage.

Before you leave this chapter

  1. Data is sent in packets: header with addresses and packet number, payload, trailer with error check.
  2. Packets allow sharing, resending one packet alone, and routing around failures.
  3. Serial is one bit at a time on one wire; parallel is several at once on several wires.
  4. Parallel suffers skew and crosstalk over distance, so long links are always serial.
  5. Simplex one way, half duplex one way at a time, full duplex both at once — independent of serial or parallel.
05

Choosing a transmission method

Exam questions describe a situation and ask which method suits it. The answer is decided by three questions, asked in order, and each one narrows the choice.

How far does the data travel? Beyond a few centimetres, serial is the only sensible option. Does data need to flow both ways, and simultaneously? That settles simplex, half duplex or full duplex. And how much does reliability matter relative to speed — which decides how much error checking is worth its overhead.

SituationMethodWhy
CPU to RAM inside a machineparalleldistance is tiny, so speed wins
Computer to external driveserial full duplexa metre or more, reading and writing
Keyboard to computerserial simplexone direction only
Two-way radioserial half duplexone party transmits at a time
Broadband connectionserial full duplexupload and download together
Across the internetserial, packet switchedlong distance, shared infrastructure

Answer both classifications

A question asking for "the method of transmission" usually expects two answers: serial or parallel, and simplex, half duplex or full duplex. They are independent, so a full answer names one from each list. Giving only "serial" typically scores half the available marks.

Practice questions

6 questions · 20 marks · full working on every one

Try each one on paper first, then open the working. The marks are shown where they are actually awarded, because that is where they are actually lost.

Short questions

3 · 6 marks

Two marks each, in the style of the short-question section of the paper. Answer in two or three lines.

SQ1[2 marks]
State two items contained in a packet header.
Model answer

Any two of: the sender's address, the receiver's address, the packet number, and the total number of packets making up the file.

Examiner tip. The packet number is the one that explains reassembly, so it is worth including as one of your two.

SQ2[2 marks]
Explain why parallel transmission is unsuitable over long distances.
Model answer

The bits travel at very slightly different speeds along different wires, so they arrive out of step — a problem called skew — and the data can no longer be read correctly. Long parallel cables also suffer crosstalk between adjacent wires.

Examiner tip. Naming skew is worth a mark. Saying "the wires get confused" describes the symptom without the term.

SQ3[2 marks]
Give an example of simplex transmission and explain why it is simplex.
Model answer

A keyboard to a computer: data travels from the keyboard to the machine and never in the other direction, so only one direction is ever used.

Examiner tip. Choose an example where a reply genuinely never occurs. A printer is riskier, since modern printers report status back and are therefore duplex.

Solved numericals

2 · 8 marks

Full working, one step per line, with the marks shown where they are awarded.

N1[4 marks]
Explain how a file is transmitted across the internet using packet switching, and give two advantages of doing so.
Full working
  1. The file is divided into packets, each with a header containing the addresses and its packet number[1]
  2. Packets travel independently and may take different routes; the receiver reassembles them in order using the packet numbers[1]
  3. Advantage: a single corrupted or lost packet can be resent on its own rather than restarting the whole file[1]
  4. Advantage: many transfers share the same links, and a broken route can be avoided rather than stopping transmission[1]

Split into numbered packets, routed independently, reassembled by number — allowing resends and rerouting.

Examiner tip. The advantages all follow from packets being independent. Saying that explicitly ties the answer together.

N2[4 marks]
Classify each of the following by wires and by direction: (i) a USB connection to an external drive, (ii) a walkie-talkie, (iii) the connection between a CPU and RAM.
Full working
  1. (i) Serial — USB sends one bit at a time[1]
  2. (i) Full duplex in modern versions — data is read and written in both directionsaccept half duplex for USB 1 and 2 with justification[1]
  3. (ii) Serial and half duplex — one party speaks at a time[1]
  4. (iii) Parallel, because the distance is very short, and full duplexinside the machine skew is not a problem[1]

(i) serial full duplex (ii) serial half duplex (iii) parallel

Examiner tip. Answer both classifications for every item. They are independent, and a question naming three devices is testing whether you know that.

Long questions

1 · 6 marks

Theory and numerical together, as they appear in the long-question section.

LQ1[6 marks]
A company is connecting devices in a new office.
  1. Explain why the network cabling between rooms will use serial transmission.
  2. Give three advantages of USB for connecting peripherals.
  3. Explain what happens if one packet of a file arrives corrupted.
Mark scheme
  1. The distances between rooms are far too great for parallel transmission[1]
  2. Skew and crosstalk would corrupt the data, and serial also needs fewer wires so the cabling is cheaper[1]
  3. USB is a universal standard, so one type of connector serves many different devices[1]
  4. The connector cannot be inserted the wrong way round, and devices are detected automatically with drivers loaded — plug and play[1]
  5. It also supplies power as well as data, so small peripherals need no separate supplyany three advantages[1]
  6. The error-checking value in the trailer fails, so the receiver requests that packet again — only the one packet is resent, not the whole filethe point is that just one packet is affected[1]

(a) skew and crosstalk over distance (b) universal, one-way connector, plug and play, supplies power (c) that packet alone is requested again

Examiner tip. Part (c) is really asking why packets are worth the complexity. One corrupted packet costs one resend; without packets it would cost the entire transfer.