GoalDescribe a star topology, explain how a switch passes packets on by IP address, and give its advantages and disadvantages.
New words
network topology Ā· the layout of a network: which devices there are and how they are connectedpacket Ā· a small chunk of data with a number, the senderās IP address and the receiverās IP addressIP address Ā· a number that identifies one device on a networksingle point of failure Ā· a part that, if it breaks, stops the whole network
Explanation
A network topology is the plan of how the devices in a network are joined. In a star topology every device is connected to one central device, usually a switch. A hub can also be the centre, but a hub copies every packet to all of its devices, while a switch is cleverer and sends a packet only to the device it is meant for. A big file is cut into packets. Each packet carries its number, the senderās IP address and the receiverās IP address. The switch compares the receiverās address with the address of each device and forwards the packet to the match. The receiving device puts the packets back in order using their numbers. A star is easy to manage from the centre, and a broken cable only cuts off one device, but if the centre breaks, the whole network stops.
Star topology
Advantage or disadvantage
One cable fails
only that device is cut off (advantage)
Managed from the centre
easy to set up and look after (advantage)
More devices can join
easy to add, but too many slows the network (disadvantage)
A cable for every device
more cable, so more cost (disadvantage)
The central device fails
the whole network stops (disadvantage)
Worked examples
A small design studio has three computers, a printer and a file server, all connected by cables to one switch in the middle. Every message goes to the switch first. The computers do not talk directly to each other.
Packet
From
To
Data
1
192.0.2.12
192.0.2.13
1.5 MB part A
2
192.0.2.12
192.0.2.13
1.5 MB part B
3
192.0.2.12
192.0.2.13
1.5 MB part C
4
192.0.2.12
192.0.2.13
1.5 MB part D
Sending a file. PC 2 (192.0.2.12) sends a 6 MB drawing to PC 3 (192.0.2.13). The file is cut into 4 packets of 1.5 MB each. Each packet has a number, the senderās address and the receiverās address. The switch reads the receiverās address on each packet and sends it only to 192.0.2.13. The packets may arrive in a different order, such as 3, 1, 4, 2, so PC 3 uses the numbers to put them in order 1, 2, 3, 4 and rebuild the drawing.
Failure
Effect on the network
Cable to the printer breaks
only the printer is cut off
PC 1 is switched off
the other devices still work
The switch breaks
no devices can communicate
What if something fails? If the cable to the printer breaks, only the printer is cut off and the computers can still work together. If the switch breaks, no device can send anything to any other device: it is a single point of failure. A studio that cannot afford to stop can keep a spare switch.
Class activity
Pass the packet (no computer). Five people sit in a circle and each takes a number from 1 to 5 as their address. One person sits in the middle as the switch. Write a short sentence on four strips of paper and number the strips 1 to 4. The sender writes the receiverās number on each strip and hands them one at a time to the switch, who reads the address and passes the strip to that person only. Shuffle the strips before the receiver puts them in order. Then ask: what happens to the game if the person in the middle leaves?
Practice
1
The central device of this network is hidden. Name it, and explain what it does when a packet arrives.
It is a switch (or a hub). A switch reads the receiverās IP address on the packet and forwards the packet only to the device with that address.
2
A file is split into 5 packets that arrive in the order 4, 1, 5, 3, 2. In what order are they rebuilt, and what tells the receiver the order?
Order of arrival
Packet number
first
4
second
1
third
5
fourth
3
fifth
2
They are rebuilt in the order 1, 2, 3, 4, 5. The packet number tells the receiver the order.
3
In a school office the star network has a hub in the middle. PC 1 sends a packet to the printer. How many devices receive a copy of the packet from the hub, and which is different if a switch is used?
The hub copies the packet to all 4 other devices (PC 2, PC 3, the printer and the file server); only the printer uses it. A switch sends it only to the printer, so only 1 device receives it.
4
Give one advantage and one disadvantage of a star topology for a school computer room, and explain each.
Advantage: if one computer breaks, the others keep working, because each has its own cable. Disadvantage: if the central switch breaks, the whole room loses the network, because it is a single point of failure.