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
1

The star and its centre

Computing 9: Topic 3.1, pp. 257–272
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 topologyAdvantage or disadvantage
One cable failsonly that device is cut off (advantage)
Managed from the centreeasy to set up and look after (advantage)
More devices can joineasy to add, but too many slows the network (disadvantage)
A cable for every devicemore cable, so more cost (disadvantage)
The central device failsthe whole network stops (disadvantage)
Worked examples
switchPC 1PC 2printerPC 3file server
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.
PacketFromToData
1192.0.2.12192.0.2.131.5 MB part A
2192.0.2.12192.0.2.131.5 MB part B
3192.0.2.12192.0.2.131.5 MB part C
4192.0.2.12192.0.2.131.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.
FailureEffect on the network
Cable to the printer breaksonly the printer is cut off
PC 1 is switched offthe other devices still work
The switch breaksno 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.
?laptopPCprinterserver
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 arrivalPacket number
first4
second1
third5
fourth3
fifth2
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?
hubPC 1PC 2PC 3printerfile server
4
Give one advantage and one disadvantage of a star topology for a school computer room, and explain each.