Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

7.3 (3 of 8): Network shapes: topologies

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

45 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

Draw the shape of a network

Somebody trips over a cable in the IT room. Does one PC go offline, or the whole college? It depends on the shape.

You can join six computers in many ways. Put one box in the middle and join every computer to it. Or join every computer to every other one. Each shape works differently when a cable breaks. A network is a group of computers joined together. A topology is the shape of a network.

Key words

WordWhat it meansExample
TopologyThe shape of a network: how its devices are joined.Star, mesh, tree
NetworkComputers joined to share data.The college network
StarEvery device cabled to one central device.An office with one switch
MeshDevices with many links between them, giving many paths.The middle of the internet
TreeStars joined in layers, like branches.A large college
SwitchA box that joins network cables and passes data to the right device.The box in the network room
Physical topologyThe real layout of devices and cables.What you can see
VLANVirtual LAN: one switch split into separate networks.Staff and visitors
Logical topologyHow the data flows from one device to another.Staff PCs and visitor PCs kept apart

The cells students fill in are left blank in this preview.

Match the shape to its picture in words

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

A star network

flowchart TD
  sw(["Central switch"])
  sw --- a["PC 1"]
  sw --- b["PC 2"]
  sw --- c["PC 3"]
  sw --- d["Printer"]
  sw --- e["Server"]

A full mesh of four

flowchart LR
  a["A"] --- b["B"]
  a --- c["C"]
  a --- d["D"]
  b --- c
  b --- d
  c --- d

A tree network

flowchart TD
  root(["Main switch"])
  root --- s1(["Switch: floor 1"])
  root --- s2(["Switch: floor 2"])
  s1 --- p1["PC"]
  s1 --- p2["PC"]
  s2 --- p3["PC"]
  s2 --- p4["Printer"]

Which shape is it?

Have a go

Which shape is it?

4 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

What each shape does well and badly

TopologyBenefitsDrawbacks
StarEasy to add a device. One broken cable affects one device. Easy to manage from the centre.If the central switch fails, the whole network fails. It needs a lot of cable.
MeshVery reliable: many paths. Data can go around a fault.Costs a lot. Many cables and ports. Hard to set up and manage.
TreeGrows easily. Each branch can be managed on its own.If the main switch fails, whole branches lose the network. You must buy more switches.

The cells students fill in are left blank in this preview.

Try it: links in a full mesh

Code: python
# In a full mesh, every new device links to every device already there.
devices = 6
links = 0
for new_device in range(1, devices):
    links = links + new_device
    print(new_device + 1, "devices: links =", links)

# Change 6 to 10. See how fast the links grow.

Make a free account to save your work and track your progress.

Cables show one shape, data flow another

The physical topology is the real layout: where the devices and cables are. You can see it.

The logical topology is how the data flows between devices. You cannot see it by looking at the cables.

One switch with every computer cabled to it is a physical star. But the settings can keep staff computers and visitor computers apart. Logically, they are two separate networks.

Physical or logical?

QuestionPhysicalLogical
What does it describe?Cables and devicesData flow and groups
Can you see it?Yes, in the network roomNo, only in settings and diagrams
ExampleTen PCs cabled to one switchStaff PCs and visitor PCs kept apart by settings
Changed byMoving cablesChanging settings

The cells students fill in are left blank in this preview.

Extra: Look at one switch and its computers

Command
vlanlab status

A command for the lesson’s lab terminal. It is shown here and not run.

Extra: Can the other group hear the server?

Command
sudo ip netns exec h20 arping -c 2 -I eth0 10.10.0.100

A command for the lesson’s lab terminal. It is shown here and not run.

Extra: What the lab shows

Note

Physically, all the computers are cabled to one switch: a star. Logically, they are meant to be two networks, in two VLAN groups. Notice that the server still answers the other group. The switch has not been told yet, so every computer can hear every other. Making them two is the lab's own task.

Your turn: draw a star network

The college computer room has a switch, a server, a printer and five student PCs. The diagram has the switch and one PC.

  1. Add the other devices. Join each one to the switch. This is a star network.
  2. Add a second switch for the library. Join it to the first switch.
  3. Add one more box at the bottom. Write in it the name of the topology you have now.
flowchart TD
  sw(["Switch"])
  sw --- pc1["PC 1"]

Make a free account to save your work, or press Start lab to work through the whole lesson.

True or false?

Have a go

True or false?

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Final check

Have a go

Final check

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.