2.1 Types and Methods of Data Transmission
Data is broken into packets before it is sent across a network. Sending small packets means many users can share the same connection, a failed packet can be resent on its own, and traffic can be routed around congestion.
| Part of packet | Contents |
|---|---|
| Header | Destination IP address, source IP address, packet number (so packets can be reassembled in order), protocol being used |
| Payload | The actual data being transmitted |
| Trailer | A method of error checking, such as a checksum, so the receiver can tell whether the packet was corrupted |
Packet switching
- Data is broken into packets, each with a header containing the destination address and a packet number.
- Each packet is sent independently and may take a different route.
- Routers read the destination address in each header and forward the packet along the best available route.
- Packets may arrive out of order; the receiving device reassembles them using the packet numbers.
- If a packet is corrupted or missing, the receiver requests it again.
Serial and parallel
| Method | Description | Advantages | Disadvantages |
|---|---|---|---|
| Serial | Bits sent one at a time down a single wire | Reliable over long distances; cheaper cable; no skew between bits | Slower than parallel over very short distances |
| Parallel | Several bits sent simultaneously down multiple wires | Fast over very short distances | Bits can arrive skewed; crosstalk; only suitable for short runs |
Direction of transmission
- Simplex — data travels in one direction only (keyboard to computer, TV broadcast).
- Half-duplex — data can travel in both directions but not at the same time (walkie-talkie).
- Full-duplex — data can travel in both directions simultaneously (telephone call, broadband).
2.2 Transmission Media
| Medium | How it works | Notes |
|---|---|---|
| Copper cable (UTP / coaxial) | Electrical pulses along a metal conductor | Cheap and easy to install, but suffers from interference and attenuation over distance |
| Fibre optic | Pulses of light reflected along a glass core | Very high bandwidth, immune to electrical interference, secure, works over long distances; more expensive and fragile |
| Radio waves | Electromagnetic waves through the air | Used for Wi-Fi, Bluetooth and mobile networks; no cable needed but can be intercepted and affected by other signals |
| Microwaves | High-frequency radio waves, line of sight | Used for point-to-point links between buildings; affected by weather and obstacles |
| Satellite | Microwaves to and from an orbiting satellite | Covers remote areas; high latency and expensive |
Bandwidth and speed
- Bandwidth — the range of frequencies a channel can carry, or loosely the maximum amount of data per second. Higher bandwidth means more data can be transferred in a given time.
- Bit rate — the number of bits transmitted per second (bps, kbps, Mbps).
- Latency — the delay between sending and receiving data. Satellite links have high latency.
2.3 IP and MAC Addresses
| Address | What it is | Key points |
|---|---|---|
| IP address | A unique address given to a device on a network | Can be static (fixed, needed for servers and printers) or dynamic (assigned by DHCP and can change). Public IPs are visible on the internet; private IPs are used inside a LAN. |
| MAC address | A 48-bit hardware address burned into the network interface card | Fixed by the manufacturer, written in hexadecimal, used to identify a device on a LAN. Cannot normally be changed by the user. |
A router forwards packets between networks using IP addresses. A switch forwards frames within a LAN using MAC addresses. A NIC (network interface card) connects a device to a network and holds its MAC address.
2.4 Error Detection
| Method | How it works | Limitation |
|---|---|---|
| Parity | An extra parity bit is added so the number of 1s is always odd (or always even). On arrival the receiver counts the 1s. | Only detects an odd number of errors; cannot detect two bits changing |
| Checksum | The sender calculates a value from the data and sends it with the data; the receiver recalculates and compares | Some errors can still produce the same checksum |
| Echo check | The receiver sends the data back and the sender compares it with the original | Doubles the traffic; slow |
| Check digit | An extra digit calculated from the others (ISBN, barcode) validates the whole number | Only suitable for numbers such as codes and identifiers |
| ARQ | Automatic repeat request: the receiver acknowledges good packets and asks for damaged ones to be resent, using a timeout | Adds delay and extra traffic |
2.5 Encryption
Encryption scrambles data using a key so that anyone intercepting it cannot read it. It protects data during transmission, for example on banking and shopping websites.
| Type | How it works | Use |
|---|---|---|
| Symmetric | The same key encrypts and decrypts | Fast, but the key must be shared securely with the receiver |
| Asymmetric | A public key encrypts and a matching private key decrypts | Used to exchange keys safely; slower, so used for small amounts of data |
SSL/TLS combines both: asymmetric encryption is used to agree a shared session key, then symmetric encryption protects the actual data. A padlock and https in the address bar show this is in use.
Exam trap
Do not say a MAC address is used to route packets across the internet — that is the IP address. MAC addresses only work inside a local network.
Five-minute drill
- State three items of information stored in a packet header.
- Explain why fibre optic cable is used for undersea links.
- Give one difference between a static and a dynamic IP address.
- A byte 1011 0011 is sent with even parity. What parity bit is added?
- Explain the difference between half-duplex and full-duplex.
A video is streamed from a server to a student's laptop. Describe how packet switching is used to deliver the video.
- The video file is broken into packets (1).
- Each packet has a header containing the destination IP address and a packet number (1).
- Routers read the destination address and forward each packet along the best available route (1).
- Packets may take different routes and arrive out of order (1).
- The laptop reassembles the packets in the correct order using the packet numbers (1).
- Missing or corrupted packets are requested again (1).
A school sends exam results to another school over the internet. Explain two ways the school can keep the data secure during transmission.
- Encryption (1): data is scrambled using a key so that if it is intercepted it cannot be understood (1).
- Password protection / access rights (1): only authorised staff can open the file (1).
- Also accept: a secure protocol such as HTTPS/TLS (1); sending over a private network or VPN (1).