Week 12 · Unit 5: Network devices and websites · 3 lessons
1
Switches share the wires
Computing 5: Unit 5, pp. 58–69
GoalSay what a computer network is and what a switch does.
New words
network · a group of connected devices that can share data and share things such as a printerswitch · a box that joins the wired devices in a network and sends each message only to the device it is forcable · a wire that carries data between devicesdestination · the device that a message is going to
Explanation
A network is a group of devices that are joined together. They can share data, and they can share things such as a printer. A school library might join its computers, a scanner and a printer in one network. A network needs hardware to join the devices. One important piece of hardware is the switch. A cable goes from each wired device to the switch. When a message arrives, the switch reads its destination and sends it along the right cable only. This is quicker and safer than sending every message to every device.
Worked examples
The front-desk computer sends a page to the printer. The message travels along the cable to the switch. The switch sends it along the printer’s cable only. The scanner and the reading-room computer do not get it.
A switch has a fixed number of sockets, called ports. A small switch may have 8 ports, so it can join 8 wired devices. To join more devices, we can join two switches with a cable. Then the devices on both switches are in the same network.
What goes wrong
Which devices lose the network
one cable is cut
only the device on that cable
the switch has no power
all the devices joined to that switch
Not every fault is the same. When one cable breaks, only the device on that cable loses the network. When the switch loses power, every device that is joined to it by cable loses the network.
Class activity
Human switch (5 or 6 players). One player is the switch and sits in the middle. The others are devices and sit around: for example a printer, a scanner, a computer and a server. Each device writes a short note on paper, such as ‘please print page 3’, and puts the name of the destination at the top. The device passes the note to the switch. The switch reads the name and hands the note to that device only. Play three rounds. Then remove the switch and try to pass notes. What can the devices do now? What happens if one player cannot hear the switch, as if their cable were cut?
Practice
1
Which part of a network joins the wired devices and sends each message only to the device it is for?
The switch.
2
The laptop sends a message for the scanner. Which devices receive the message?
The switch receives it first and sends it to the scanner. The printer and the desk computer do not get it.
3
A club has 11 wired devices to join. One switch has 8 ports. Is one switch enough? What can the club do?
No. 11 devices need 11 ports and one switch has only 8. The club can join two switches with a cable. Two switches have 16 ports. Two ports are used for the link, so 14 are left, which is enough for 11 devices.
4
Only the laptop has lost its network. The other devices still work. Is it more likely that the cable to the laptop is broken or that the switch has failed? Explain.
It is more likely that the laptop’s cable is broken. If the switch had failed, every device on that switch would lose the network, not just one.