Types and Methods of Data Transmission
How data is split into packets and routed across a network, and how bits travel down a cable: one at a time or several at once, one way or both ways.
WATCH IT EXPLAINED
EXPLORE IT IN 3D
Packets across the city
Night on a rooftop, the city's roofs wired with fibre. Build a packet and send it across town, race serial against parallel, set which way each link talks, plug in USB — then pick the right link for each job.
Why data is sent in packets
A file is cut into small packets before it is sent, so links are shared and only lost pieces are sent again.
Before a file or message is sent across a network, it is broken down into small pieces called packets. Each packet is sent separately.
Think of moving house with many small boxes instead of one giant crate. Why do this?
- Packets from many users can take turns on the same cables and routers. One big transfer does not block a link.
- Each packet can take whichever route is best at that moment.
- If one packet is lost or damaged, only that packet has to be sent again, not the whole file.
What is in a packet
Every packet has a header with addresses and a number, a payload of data, and a trailer with an error check.
Every packet has three parts, like a parcel with a label:
| Part | What it holds |
|---|---|
| Packet header | the destination address, the originator's (sender's) address and the packet number |
| Payload | the actual data being carried |
| Trailer | an error check, such as a checksum; it also marks the end of the packet |
- The packet number lets the receiver put the packets back in order.
- The error check lets the receiver tell whether the packet was damaged on the way.
Packet switching: routers choose the route
Routers send each packet on the best route at that moment, and the receiver puts the packets back in order.
In packet switching, each packet is sent on its own.
- The routers along the way decide where to send it next, using the destination address in its header. A router is like a post office: it reads the address and picks the next road.
- A router picks the best route at that moment, avoiding busy or broken links.
- So packets from the same message can take different routes, and arrive out of order.
- Once the last packet has arrived, the receiver puts them back in order, using the packet numbers. It asks for any missing packet to be sent again.
Watch out:The routers do not reorder the packets. The receiver does.
In the figure, the number on each link is how many ticks it takes to cross.
Serial transmission
Serial sends one bit at a time down one wire, so the bits stay in order, even over long distances.
Serial transmission sends data one bit at a time, one after another, down a single wire or channel. Think of cars driving through a single-lane tunnel.
- It sends fewer bits at once than parallel.
- But the bits arrive in the order they were sent. So they cannot get out of step with each other.
- That makes serial reliable over long distances.
- It also needs fewer wires, so its cables are cheaper.
Modern serial links are very fast. Most connections between devices are serial; USB is one.
Parallel transmission and skew
Parallel sends many bits at once on many wires; it is fast, but only over very short distances.
Parallel transmission sends several bits at the same time, each down its own wire. For example, 8 wires can carry a whole byte at once. So over a short distance, parallel is faster than serial.
Over a longer distance, problems start:
- The bits on different wires arrive at slightly different times. This is called skew. It can mix bits of one byte into the next, corrupting the data.
- More wires make cables more expensive.
- More wires also cause more interference between the wires.
| Serial | Parallel | |
|---|---|---|
| Bits at a time | one | several |
| Skew | none: the bits stay in order | yes, over distance |
| Used for | long distances | very short distances |
Remember:So parallel is only used over very short distances, such as inside a computer, between the processor and memory.
Simplex, half-duplex and full-duplex
Simplex is one way only, half-duplex is both ways in turns, and full-duplex is both ways at once.
These three words describe the direction of transmission.
| Method | Direction | Example |
|---|---|---|
| Simplex | one direction only | a radio broadcast; a sensor sending readings to a computer |
| Half-duplex | both directions, but only one direction at a time | a walkie-talkie |
| Full-duplex | both directions at the same time | a phone call; a broadband internet connection |
Watch out:A computer sending to a printer is not a good simplex example. The printer sends messages back, such as "out of paper".
Choosing a method for a scenario
First choose the direction, then serial or parallel, and always give a reason from the scenario.
Answer in two parts:
- Direction. Does data only ever go one way (simplex)? Both ways but taking turns (half-duplex)? Or both ways at once (full-duplex)?
- Serial or parallel. Over anything more than a very short distance, choose serial, because it has no skew. Keep parallel for inside a device.
Exam:Always give a reason from the scenario. For example: full-duplex, because both people can talk at the same time.
| Scenario | Direction | Serial or parallel |
|---|---|---|
| a video call between two cities | full-duplex: both people can talk at once | serial: a long distance, and serial has no skew |
| a weather station sending readings to a school server | simplex: the readings only ever go one way | serial: a long cable, and serial has no skew |
| the data bus inside a computer | half-duplex: data goes both ways between the processor and memory, one direction at a time | parallel: only a few centimetres, so skew is tiny |
USB: how it sends data
USB sends data serially; plug a device in, and the computer recognises it and loads its driver.
USB (Universal Serial Bus) is an interface (a standard way to connect devices) that sends data serially.
What happens when you plug in a device:
- The computer detects it.
- The device sends information identifying what it is.
- The computer finds and loads the right driver (the software that controls the device) automatically.
- If the computer does not have the driver, it must download or install it first.
The same cable also carries power, so it can run or charge the device.
USB: benefits and drawbacks
USB is standard, automatic and supplies power, but its cable is short and older versions are slow.
| Benefits | Drawbacks |
|---|---|
| It is an industry standard, so most devices and computers support it. | The cable can only be a few metres long. |
| Devices are detected and set up automatically. | Older versions transfer data much more slowly. |
| The connector cannot be plugged in the wrong way. | A very new device may not work until the right driver is installed. |
| It supplies power, so it can run or charge a device. | |
| Newer versions are backward compatible with older ones, and support different transfer speeds. |
Backward compatible means a newer version still works with older ones.
- Click the stages below in the order they happen.
KEY TERMS
CHECK YOURSELF
1.Why is parallel transmission unsuitable over long distances?
2.A phone call, where both people can talk at once, is an example of:
3.Why might packets arrive out of order?
4.Which three items does a packet header hold?
5.Who puts the packets of a message back in order, and when?
6.What does half-duplex mean?
7.How does USB send data down its cable?