A haulage firm wants each of its 8 depots joined to every other depot by a direct link of its own.
Network shapes, three planes and how switches forward
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.
| Topology | How devices are linked | What one failure does |
|---|---|---|
| Bus | All share one cable, with a terminator at each end | A break in the cable stops the whole network |
| Ring | Each device joins the next, closing a loop | One break stops a single ring; a second, reverse ring survives it |
| Star | Every device has its own cable to a central switch | A cable failure cuts off one device; a switch failure cuts off all |
| Tree | Stars joined to each other in levels | A failure high in the tree cuts off every branch below it |
| Full mesh | Every device has a direct link to every other | Survives many failures; costly in links |
| Partial mesh | Only the important devices have several links | Important paths survive; others behave like a star |
Each network shape fails in its own way
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.
- Bus: all devices share one cable, which is marked as the single point of failure. A break in the cable stops the whole network.
- The first PC hangs off the shared cable.
- The second PC hangs off the same cable.
- The third PC hangs off the same cable, so all three depend on it.
- 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.
- The first PC has its own cable to the switch.
- The second PC has its own cable to the switch.
- The third PC has its own cable to the switch, so all three depend on the switch.
- Full mesh: every device has a direct link to every other, so it survives many failures and has no single point of failure.
- The top PC is linked to the left PC.
- The top PC is linked to the right PC.
- The top PC is linked to the bottom PC.
- The left PC is linked to the right PC.
- The left PC is linked to the bottom PC.
- 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.
| Plane | What it does | Example | An attack on it |
|---|---|---|---|
| Data, or forwarding | Moves each or frame to the right port | A router sending a packet out of one interface | Flooding it with traffic until it cannot keep up |
| Control | Decides where traffic should go | Routing protocols building the routing table | False routes that send traffic to the wrong place |
| Management | Lets people configure and monitor the device | An administrator signing in to change settings | A 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.
| Family | How it works | Example | Used |
|---|---|---|---|
| Distance vector | Each router tells its neighbours how far away each network is | Routing Information Protocol (RIP): 15 hops at most | Inside one network |
| Link state | Each router shares its links, and every router builds a full map | Inside one network | |
| Path vector | Each route carries the list of autonomous systems it passes through | Border 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.
| Point | Store-and-forward | Cut-through |
|---|---|---|
| When it starts sending | After the whole frame has arrived | As soon as the header has been read |
| Checks the FCS first | Yes | No: the frame is already leaving |
| Damaged frames | Dropped at the switch | Passed on to the next device |
| Delay | Higher: the whole frame must arrive first | Lower |
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?
Decide on your answer, then open the reasoning
- 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.
- 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.
- 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.
- Between a and b: TLS would stop the diverted traffic being read, but customers still could not reach their websites. The availability problem stays.
- 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
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
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.
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.
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.
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.
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.
Sources
- ATIS Telecom Glossary: network topology, Alliance for Telecommunications Industry SolutionsBus, ring, star, tree and mesh topologies, a star's failed line isolating one node, a tree's single failures cutting off nodes below, and a fully connected network of n nodes having n(n-1)/2 direct paths.
- IEEE 802.3-2018: IEEE Standard for Ethernet, IEEE Standards AssociationEthernet's CSMA/CD media access control covers shared-medium half-duplex operation, and the standard also specifies full-duplex operation.
- CITS3002 Computer Networks, lecture 4: 802.11 Collision Avoidance, The University of Western AustraliaWireless cards generally cannot detect collisions while sending, so 802.11 uses collision avoidance, CSMA/CA, with control frames that can reserve the medium, where wired 802.3 uses CSMA/CD.
- IEEE 802.5 Token Ring Working Group, IEEE 802 LAN/MAN Standards CommitteeIEEE 802.5 is the Token Ring access method and physical layer specification.
- RFC 7426: Software-Defined Networking Layers and Architecture Terminology, Internet Research Task ForceThe forwarding plane forwards traffic, the control plane instructs devices how to process and forward packets, and the management plane monitors, configures and maintains devices.
- RFC 2453: RIP Version 2, IETFRIP is a distance vector protocol limited to networks whose longest path is 15 hops, uses a metric of 16 for an unreachable network and can count to infinity.
- RFC 2328: OSPF Version 2, IETFOSPF is a link-state routing protocol run inside a single autonomous system.
- RFC 4271: A Border Gateway Protocol 4 (BGP-4), IETFBGP is an inter-autonomous system routing protocol that exchanges reachability with the list of autonomous systems a route traverses.
- RFC 4274: BGP-4 Protocol Analysis, IETFBGP uses a modified distance vector algorithm called path vector, pairing each destination with path information.
- RFC 4272: BGP Security Vulnerabilities Analysis, IETFBGP speakers can inject bogus routing information, including a false announcement that an autonomous system originates a network, and misconfigured routers have caused widespread disruption.
- RFC 6480: An Infrastructure to Support Secure Internet Routing, IETFThe RPKI lets address holders issue signed route origin authorisations stating which autonomous systems may originate routes to their addresses.
- RFC 6811: BGP Prefix Origin Validation, Internet Engineering Task ForceA BGP route has one of three validation states: Valid when a record matches it, Invalid when a record covers the prefix but none matches, NotFound when no record covers it; rejecting invalid routes is a policy the specification suggests.
- RFC 7115: Origin Validation Operation Based on the Resource Public Key Infrastructure (RPKI), Internet Engineering Task ForceOperators should still use NotFound announcements, at a lower preference, while signed records remain incomplete, and drop or give very low preference to Invalid ones.
- Understand Cyclic Redundancy Check (CRC) Errors on Nexus Switches, Cisco SystemsEthernet frames end in a 32-bit frame check sequence; store-and-forward devices validate it and drop corrupt frames, while cut-through devices may already be transmitting a frame before its check is calculated.