GoalDescribe how packets travel in a bus and in a ring topology, and compare their advantages and disadvantages with the star.
New words
backbone · the long main cable in a bus topology to which all devices connectterminator · a device at each end of the backbone that stops signals bouncing backring topology · a layout in which each device is joined to two neighbours, forming a loopcollision · data signals meeting on a cable, which spoils the data
Explanation
In a bus topology all devices connect to one long cable, the backbone. A terminator at each end stops signals bouncing back and colliding with new ones. Every packet sent on the backbone reaches every device. Each device compares its own IP address with the receiver’s address, so the match keeps the packet and the others discard it. A bus needs fewer cables than a star and is easy to extend, but a break in the backbone cuts off the devices beyond it, and the network slows as devices are added. In a ring, each device has two neighbours and packets travel round in one direction, each device keeping a packet if the address matches and forwarding it if not. A ring needs no central device, but one failed device or cable breaks the loop for everyone. Rings are old and rarely used today.
Bus
Ring
Layout
one backbone with terminators
loop of devices
Packet travels
to every device on the backbone
from device to device, one direction
Extra hardware
two terminators
none
One cable breaks
devices beyond the break lose contact
whole network affected
Security worry
every device gets a copy of every packet
packets pass through other devices
Worked examples
A bus. A workshop has two computers, a printer and a server joined to a backbone by short cables. A terminator is fixed to each end of the backbone. There is no central device: one long cable joins everything.
Device
Has the receiver’s address?
Action
PC 2
no
discards
printer
yes
keeps
server
no
discards
Who sees a packet on a bus? PC 1 sends a packet to the printer. All the other 3 devices on the backbone receive a copy, because a bus is a broadcast. Each compares the receiver’s address with its own. The printer’s address matches, so it keeps the packet. The 2 other devices discard it.
Following a packet round a ring. The five computers are in the order P, Q, R, S, T and then back to P. Q sends a packet to T (192.0.2.15). R compares the receiver’s address with its own and forwards it. S does the same. T finds a match and keeps the packet. The packet passed through 2 forwarding devices.
Class activity
Human bus and ring (no computer). Six players stand in a line to form a bus: the two ends are the terminators who must not move. A sender calls a message and an address aloud. Every player hears it, and the matching player raises a hand while the others say ‘discard’. Then make a ring: players stand in a circle, a note is passed hand to hand in one direction only, and each player reads the address before passing it on. Time both versions for the same message. What happens in the ring if one player sits down and refuses to pass the note?
Practice
1
The five computers are in a ring in the order P, Q, R, S, T, as in the example. S sends a packet to P (192.0.2.11). List the devices the packet passes through and say which one forwards it.
The packet goes S → T → P. T compares the address, finds that it does not match, and forwards it. P finds a match and keeps the packet.
2
In a bus with six devices numbered 1 to 6, device 2 sends a packet to device 5. How many devices receive a copy, how many keep it and how many discard it?
5 devices receive a copy (all but the sender). 1 keeps it (device 5) and 4 discard it (devices 1, 3, 4 and 6).
3
The backbone of a bus breaks between devices 3 and 4. Which devices lose contact with each other? Compare with a ring where the cable between two computers breaks.
Devices 1, 2 and 3 are cut off from devices 4, 5 and 6. In the ring, a broken cable breaks the loop, so the whole network is affected.
4
Explain why a bus usually needs fewer cables than a star for the same devices, and give one disadvantage of a bus.
In a bus each device needs only a short cable to the nearest point on the backbone, while in a star each device needs a cable all the way to the centre, which may be far away. Disadvantage: if the backbone breaks, the devices beyond the break lose contact.