Network shapes, three planes and how switches forward

8 min 5 sections 4 practice questions 14 sources citedISC2 objective 4.1

A network has a shape, the way its links join its devices, and that shape decides what one broken cable or failed box takes down. Inside each device the work is split into three parts: moving traffic, deciding where it goes, and being managed. No background is assumed beyond the seven layers. Security staff use these terms to judge resilience and to know which part of a device an attack has reached.

By the end of this unit you will be able to:

  • Tell apart bus, ring, star, tree, full mesh and partial mesh, and say how each fails
  • Calculate the number of links in a full mesh
  • Explain how devices take turns on a shared medium: CSMA/CD, CSMA/CA, token passing and polling
  • Tell apart the data, control and management planes, with an attack on each
  • Tell apart store-and-forward and cut-through switching

Every computer in the school went quiet at once

An illustrative example

A primary school's twelve classroom computers are each cabled to one network switch in a cupboard. During half-term a cleaner unplugs the switch to use the socket for a vacuum cleaner and forgets to plug it back in.

On Monday no classroom can print, reach the internet or open shared files. The cables, the computers and the internet line are all fine. The office manager says the school needs better computers.

Why did one unplugged box stop all twelve classrooms, and what would have limited the damage?

Six network shapes and what one failure does to each

A topology is the pattern in which a network's devices are linked. It is drawn like a map of roads between towns, and it decides how many roads must close before a town is cut off.

Network topologies and how each one fails
TopologyHow devices are linkedWhat one failure does
BusAll share one cable, with a terminator at each endA break in the cable stops the whole network
RingEach device joins the next, closing a loopOne break stops a single ring; a second, reverse ring survives it
StarEvery device has its own cable to a central switchA cable failure cuts off one device; a switch failure cuts off all
TreeStars joined to each other in levelsA failure high in the tree cuts off every branch below it
Full meshEvery device has a direct link to every otherSurvives many failures; costly in links
Partial meshOnly the important devices have several linksImportant paths survive; others behave like a star

Each network shape fails in its own way

Each network shape fails in its own wayThree frames of one size. Bus: three PCs hang off one shared cable. Star: three PCs each have their own cable to one switch. Full mesh: four PCs, each joined to the other three. The cable and the switch are marked as single points of failure.Busa cable break stops allPCPCPCCableStara switch failure cuts off allSwitchPCPCPCFull meshsurvives many failuresPCPCPCPCsingle point of failureEach network shape fails in its own wayThree frames of one size. Bus: three PCs hang off one shared cable. Star: three PCs each have their own cable to one switch. Full mesh: four PCs, each joined to the other three. The cable and the switch are marked as single points of failure.Busa cable break stops allPCPCPCCableStara switch failure cuts off allSwitchPCPCPCFull meshsurvives many failuresPCPCPCPCsingle point of failure
Read this figure as text

A topology is the pattern in which a network's devices are linked, and it decides how many links must fail before a device is cut off. The figure draws three shapes side by side: bus, star and full mesh. Ring, tree and partial mesh are described in the unit's table.

  1. Bus: all devices share one cable, which is marked as the single point of failure. A break in the cable stops the whole network.
  2. The first PC hangs off the shared cable.
  3. The second PC hangs off the same cable.
  4. The third PC hangs off the same cable, so all three depend on it.
  5. Star: every device has its own cable to a central switch, which is marked as the single point of failure. A cable failure cuts off one device; a switch failure cuts off all.
  6. The first PC has its own cable to the switch.
  7. The second PC has its own cable to the switch.
  8. The third PC has its own cable to the switch, so all three depend on the switch.
  9. Full mesh: every device has a direct link to every other, so it survives many failures and has no single point of failure.
  10. The top PC is linked to the left PC.
  11. The top PC is linked to the right PC.
  12. The top PC is linked to the bottom PC.
  13. The left PC is linked to the right PC.
  14. The left PC is linked to the bottom PC.
  15. The right PC is linked to the bottom PC. Four devices need 4 × 3 ÷ 2 = 6 links, which is why a full mesh is costly in links.

Most office networks today are stars, or trees of stars. The school's network was a single star, so its central switch was a single point of failure: one part whose failure stops the whole. A second switch with a second cable to each room, a small partial mesh, would have kept the classrooms working.

Links needed for a full mesh

links = n × (n − 1) ÷ 2

n
the number of devices to be joined

Five sites in a full mesh need 5 × 4 ÷ 2 = 10 links. Ten sites need 10 × 9 ÷ 2 = 45. The count grows far faster than the number of sites, which is why most meshes are partial.

Taking turns on a shared medium

On a shared cable or a shared radio channel, two devices that send at the same moment garble each other. That is a collision, and the set of devices that can collide with one another is a collision domain. Four methods decide who may send.

CSMA/CD
Carrier sense multiple access with collision detection, used by Ethernet on a shared cable. Listen first, send when quiet, and if a collision is detected, stop and try again after a random wait.
CSMA/CA
Carrier sense multiple access with collision avoidance, used by . A radio cannot hear a collision while it is sending, so devices listen, wait a random time and may reserve the channel before sending.
Token passing
A special message, the token, travels round the network. Only the device holding it may send. Token Ring used this method.
Polling
One central device asks each of the others in turn whether it has anything to send.

A switch gives each device its own link and can run both directions at once, full duplex. Each port is then its own collision domain and CSMA/CD is not needed. A hub repeats everything to every port, so all its devices share one collision domain.

Data, control and management planes, and an attack on each

Inside every router or switch the work falls into three parts, called planes. The terms come from network engineering and are used for ordinary devices and for alike.

The three planes of a network device
PlaneWhat it doesExampleAn attack on it
Data, or forwardingMoves each or frame to the right portA router sending a packet out of one interfaceFlooding it with traffic until it cannot keep up
ControlDecides where traffic should goRouting protocols building the routing tableFalse routes that send traffic to the wrong place
ManagementLets people configure and monitor the deviceAn administrator signing in to change settingsA stolen administrator password, or a management page open to everyone

The planes differ in what a successful attack gives the attacker. An attack on the data plane slows or stops traffic. An attack on the quietly redirects it. Whoever controls the controls the device, including the other two planes, so it needs the strongest protection: a separate management network, strong sign-in and records of every change.

Routing protocols by family, and false routes in BGP

Routers learn their routes from each other through routing protocols. An autonomous system is a network, or group of networks, run by one organisation under one routing . Protocols inside one autonomous system are interior; the protocol between them is exterior.

Three families of routing protocol
FamilyHow it worksExampleUsed
Distance vectorEach router tells its neighbours how far away each network isRouting Information Protocol (RIP): 15 hops at mostInside one network
Link stateEach router shares its links, and every router builds a full mapInside one network
Path vectorEach route carries the list of autonomous systems it passes throughBorder Gateway Protocol (BGP)Between networks on the internet

RIP treats a count of 16 hops as unreachable, so it suits only small networks. A distance vector protocol can be slow to notice a lost route, because news travels one neighbour at a time.

BGP trusts what its neighbours announce. In BGP hijacking, a network announces that it is the origin of addresses that belong to someone else, or offers a false path to them. Routers that believe it send the traffic to the wrong network, where it can be dropped, read or altered. Mistakes by faulty routers have caused the same effect. The defence is to check announcements against signed records of which autonomous system may originate which addresses, a system called the Resource Public Key Infrastructure (RPKI).

Each check has one of three results. A route is valid when a signed record matches its origin. It is invalid when a signed record covers the addresses but names a different origin, and such a route is normally rejected. It is not found when no signed record covers the addresses. Many addresses still have no record, so a not found route is normally still accepted, at a lower preference.

Store-and-forward and cut-through switching

Every ends with a frame check sequence (FCS): a 32-bit value calculated from the frame's contents. A device that recalculates it and gets a different answer knows the frame was damaged on the way. A switch can forward a frame in one of two ways.

The two switching methods compared
PointStore-and-forwardCut-through
When it starts sendingAfter the whole frame has arrivedAs soon as the header has been read
Checks the FCS firstYesNo: the frame is already leaving
Damaged framesDropped at the switchPassed on to the next device
DelayHigher: the whole frame must arrive firstLower

Store-and-forward is the safer default because it stops damaged frames where they are found. Cut-through is chosen where every microsecond counts, such as some data centres, and relies on the receiving end to discard bad frames.

A question, worked through

Customers of a small internet provider report that their website cannot be reached from much of the internet. Investigation shows that another provider began announcing the customers' address range as its own, and many routers on the internet believed it.

Which measure would BEST prevent a repeat?

  1. Publish signed records of which network may originate the addresses, and check others' announcements
  2. Encrypt all traffic to the customers' websites with TLS so diverted traffic cannot be read
  3. Move management of the provider's own routers onto a separate out-of-band network
  4. Replace BGP on the provider's links with OSPF, which builds a full map of its links
Decide on your answer, then open the reasoning
  1. The traffic was sent to the wrong network because of a false announcement. That is an attack or error in the control plane, through BGP.
  2. Rule out c: out-of-band management protects the management plane of the provider's own routers. The false announcement came from another provider and touched no router of its own.
  3. Rule out d: OSPF works inside one organisation's network. Traffic between providers on the internet is routed by BGP, so it cannot be replaced.
  4. Between a and b: TLS would stop the diverted traffic being read, but customers still could not reach their websites. The availability problem stays.
  5. Signed origin records let other networks reject the false announcement, which stops the diversion itself. The answer is a.

Answer: A. Publish signed records of which network may originate the addresses, and check others' announcements

Choosing between good answers

A question describes one device whose failure stops everything
name it a single point of failure and look for the answer that adds a second path, such as a partial mesh.
An attack redirects traffic without stopping it
think control plane: false routes, BGP hijacking. When an attacker changes a device's settings, think management plane.
A question asks which switching method drops damaged frames
choose store-and-forward. Cut-through is the low-delay choice that passes them on.
Wired and wireless access methods are compared
Ethernet on a shared cable uses CSMA/CD; Wi-Fi uses CSMA/CA because a radio cannot hear a collision while it sends.

Try it

Follow a request from an office to a website and mark which device would cut off the office if it failed.

Loading the preview.

Check your understanding

4 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 4

A haulage firm wants each of its 8 depots joined to every other depot by a direct link of its own.

How many links will this full mesh need?

What to remember

  • A bus fails with one cable break, a star with its centre, a tree with any high branch; a full mesh survives most failures and needs n × (n − 1) ÷ 2 links.
  • CSMA/CD detects collisions on wired Ethernet, CSMA/CA avoids them on Wi-Fi, token passing lets only the token holder send, and polling asks each device in turn.
  • The data plane moves traffic, the control plane decides where it goes and the management plane configures the device; the management plane needs the strongest protection.
  • RIP is distance vector, OSPF link state and BGP path vector; BGP hijacking is a false announcement of someone else's addresses, checked by RPKI.
  • Store-and-forward checks the frame check sequence before sending and drops damaged frames; cut-through sends sooner and passes them on.

Say it from memory

  1. Name the main topologies with how each fails, the three planes with what each does, and the difference between cut-through and store-and-forward switching.

    Bus: one break stops all. Ring: one break stops it unless there is a second ring. Star: the centre is a single point of failure. Tree: a high failure cuts off branches. Mesh: survives failures, full mesh needs n(n−1)/2 links. Data plane forwards, control plane decides routes, management plane configures. Store-and-forward checks the frame check sequence and drops bad frames; cut-through starts sending after the header and passes them on.

    Read this part again

  2. How many links does a full mesh of ten sites need, and why are most meshes partial?

    A full mesh needs n × (n − 1) ÷ 2 links, so ten sites need 10 × 9 ÷ 2 = 45. The count grows far faster than the number of sites. A partial mesh gives several links only to the important devices, so important paths survive failures at lower cost.

    Read this part again

  3. How do CSMA/CD, CSMA/CA, token passing and polling decide who may send?

    CSMA/CD, used by Ethernet on a shared cable, listens first and, on detecting a collision, stops and retries after a random wait. CSMA/CA, used by Wi-Fi, listens, waits a random time and may reserve the channel before sending. In token passing only the device holding the token may send. In polling a central device asks each in turn.

    Read this part again

  4. Name the three families of routing protocol with an example of each, and say what defends against BGP hijacking.

    Distance vector, such as RIP, which treats 16 hops as unreachable. Link state, such as OSPF, where every router builds a full map. Path vector, such as BGP, used between networks on the internet. The defence against BGP hijacking is checking announcements against signed records of which autonomous system may originate which addresses: RPKI.

    Read this part again

  5. What is the frame check sequence, and why is store-and-forward the safer default?

    The frame check sequence (FCS) is a 32-bit value at the end of every Ethernet frame, calculated from its contents, which shows whether the frame was damaged. Store-and-forward waits for the whole frame and checks the FCS, so damaged frames are dropped at the switch. Cut-through starts after the header and passes damaged frames on.

    Read this part again

Sources