AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Shapes of networks

Week 20 · 3.1 Network topologies · 3 lessons
2

Bus and ring

Computing 9: Topic 3.1, pp. 257–272
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.

BusRing
Layoutone backbone with terminatorsloop of devices
Packet travelsto every device on the backbonefrom device to device, one direction
Extra hardwaretwo terminatorsnone
One cable breaksdevices beyond the break lose contactwhole network affected
Security worryevery device gets a copy of every packetpackets pass through other devices
Worked examples
terminatorterminatorPC 1printerPC 2server
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.
DeviceHas the receiver’s address?Action
PC 2nodiscards
printeryeskeeps
servernodiscards
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.
PC PPC QPC RPC SPC Tto T
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.
PC PPC QPC RPC SPC Tto P
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?
terminatorterminatorPC 1PC 2PC 3PC 4PC 5PC 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.
4
Explain why a bus usually needs fewer cables than a star for the same devices, and give one disadvantage of a bus.