Data transmission: modes, methods and error checking

A-Level Computer Science · Communication

Serial and parallel

Serial sends one bit at a time down one wire; parallel sends several bits at once down several wires. Parallel looks faster and is, over very short distances. Over longer distances it suffers skew (bits arriving at slightly different times because the wires are not identical) and crosstalk (signals interfering between adjacent wires). That is why USB, SATA and network cables are all serial — the exam wants this reasoning, not just the definitions.

Simplex, half-duplex, full-duplex

Simplex: one direction only (keyboard to computer). Half-duplex: both directions, one at a time (walkie-talkie). Full-duplex: both directions at once (telephone call).

Why errors happen

Electrical interference, signal attenuation over distance, and timing problems all flip bits. Every method below detects errors; only one corrects them.

Four checking methods

Parity adds one bit so the number of 1s is even (or odd). Cheap, but fails when two bits flip. Checksum adds the data values, sends the total, and the receiver recalculates. Echo check sends the data back for comparison — doubles the traffic and cannot tell whether the error happened going or coming back. Check digit (ISBN, barcodes) catches typing and transposition errors at the point of entry.

Automatic Repeat reQuest

ARQ combines error detection with acknowledgements and timeouts: no ACK before the timeout, and the sender retransmits. This is detection plus retransmission, not correction. Genuine correction needs a parity block (row and column parity), where the intersection of the failing row and failing column identifies the exact bit to flip.

Worked example: locating the wrong bit with a parity block

Data is sent using an EVEN parity block, with a parity bit for each row and each column. The receiver gets:

Row $1$: $1\ 0\ 1\ 1\ 0\ 0\ 1$ (the last bit is the row parity bit)
Row $2$: $0\ 1\ 1\ 0\ 1\ 1\ 0$
Row $3$: $1\ 1\ 0\ 0\ 1\ 0\ 1$
Row $4$ (column parity bits): $0\ 0\ 0\ 1\ 0\ 1\ 0$

Find the wrong bit.

Solution

Step 1: check each row (count the $1$ bits, which must be EVEN).

Row $1$: $1+0+1+1+0+0+1=4$ ✓ even
Row $2$: $0+1+1+0+1+1+0=4$ ✓ even
Row $3$: $1+1+0+0+1+0+1=4$ ✓ even

All three rows are valid. Pause and read what this means.

Step 2: check each column. Column $j$ consists of three data bits plus the parity bit in row $4$:

Column $1$: $1+0+1+0=2$ ✓
Column $2$: $0+1+1+0=2$ ✓
Column $3$: $1+1+0+0=2$ ✓
Column $4$: $1+0+0+1=2$ ✓
Column $5$: $0+1+1+0=2$ ✓
Column $6$: $0+1+0+1=2$ ✓
Column $7$: $1+0+1+0=2$ ✓

Step 3: conclusion. No row and no column is wrong, so this block detects no error: the received data is consistent.

What you must understand. "No error detected" is different from "definitely no error". If two bits in the same row AND the same two columns are flipped at the same time (four bits forming a rectangle), every parity check still matches and the error slips through. A parity block corrects a single-bit error: when exactly one row and exactly one column report an error, their intersection is the bit to flip.

Common mistake

Writing "parity bit corrects errors". A single parity bit only DETECTS an odd number of bit errors and does not know which bit is wrong. Only a two-dimensional parity block can locate the wrong bit so it can be corrected. Mixing this up loses marks in almost every exam session.

Key takeaway

Serial beats parallel over long distances because of skew and crosstalk. The four error-checking methods only detect; ARQ adds retransmission; only the two-dimensional parity block locates the wrong bit.

← Character sets, and why ASCII was not enough · All A-Level Computer Science lessons · Practice A-Level Computer Science questions (free, instant scoring) · Networks: topologies, hardware and the client-server model →