Data is split into packets
A packet is a small, fixed-size piece of data sent across a network.
A big file, like a photo, is cut into many packets before it is sent.
Small pieces are easier to send. If one piece is damaged, only that piece is sent again, not the whole file.
e.g.ExampleA 3 MB photo sent over WhatsApp might be split into about 2,000 packets of around 1,500 bytes each.
?Why?Splitting data lets many people share the same cables at the same time. Your packets and your neighbour's packets take turns on the line.
The three parts of a packet
The header holds the control information: the destination address, the originator's (source) address and the packet number.
The payload is the actual data being carried, such as part of the photo.
The trailer holds error-checking data (for example a checksum) and marks the end of the packet.
!Watch outStudents often put the error check in the header. In Cambridge answers, the error-checking data goes in the trailer.
There is a diagram for this step in the IGCSE library.
Packet switching
In packet switching, each packet is sent on its own across the network.
A router is a device that reads the destination address and forwards each packet along the best route it can find at that moment.
So packets from the same file can take different routes. They can arrive out of order.
At the destination, the computer uses the packet numbers to put them back in the right order.
e.g.ExampleTry it: type a short message and press Send. Watch the packets take different routes and arrive mixed up. Then press Reorder and see the packet numbers fix the order.
?Why?If one route is busy or broken, packets go another way. The network keeps working, and no single line is blocked by one big file.
!Watch outIf a packet is lost, the receiver asks for it again. Packet switching does not need every packet to use the same path.
There is something to try for this step in the IGCSE library.
Serial and parallel transmission
Serial transmission sends data one bit at a time down a single wire (or channel).
Parallel transmission sends several bits at the same time, each down its own wire. Eight wires can send a whole byte at once.
Over long distances, parallel bits can arrive at slightly different times. This is called skewing, and it corrupts the data.
Serial bits always arrive in the order they were sent, so serial is reliable over long distances.
?Why?Today most cables are serial. Serial links can run at very high speeds without skew, so they beat old parallel cables even for printers.
Extra: how long will it take to send?
This calculation is not in the syllabus. It helps you feel why speed matters.
Speed is measured in bits per second (bps). File sizes are usually given in bytes, so first multiply by 8 to get bits.
Then divide the number of bits by the speed.
e.g.ExampleA photo is 1,500,000 bytes. It is sent over a serial link at 12,000,000 bits per second.
Step 1: bits = 1,500,000 × 8 = 12,000,000 bits
Step 2: time = 12,000,000 ÷ 12,000,000 = 1 second
If eight wires send at the same rate in parallel: 12,000,000 ÷ (8 × 12,000,000) = 0.125 seconds.
!Watch outRemember to change bytes into bits first (× 8). Forgetting this makes the answer 8 times too small.
Simplex, half-duplex and full-duplex
These words describe the direction data can travel.
Simplex: data travels in one direction only. Example: a computer sending to a printer that never replies, or a TV broadcast.
Half-duplex: data can travel in both directions, but only one way at a time. Example: walkie-talkies, where you press to talk.
Full-duplex: data travels in both directions at the same time. Example: a phone call, or a broadband internet connection.
!Watch outDo not mix these up with serial and parallel. Serial/parallel is about how many bits at once. Simplex/half/full is about which direction. A connection is described by both, e.g. serial full-duplex.
USB: universal serial bus
USB is a standard way to connect devices to a computer. It uses serial transmission.
When you plug in a USB device, the computer detects it and loads the right driver (a small program that lets the computer control the device).
USB can also carry power, so a phone can charge from the same cable.