Computer Networks / Lecture / Lecture 3
Lecture · Computer Networks

Network Topologies: Star, Ring, Bus, Full Mesh and Others

Look at a metro map: some lines spread from the center like rays, one circles the city as a ring, and some stations link several lines. Network devices are connected in different “shapes” too — we call this topology. In this lesson you will build star, ring, bus, mesh and hybrid topologies yourself in a simulator, “cut” the cables, and prove with calculations which one is best where.

:ik-kitob: Lecture 3 ⏱ 2 academic hours (80 minutes) 🚇 Packet simulators ⚡ Shape is destiny
03

Lesson goals and plan

By the end of the lesson you will…

  • define network topology and distinguish physical from logical topology
  • explain, using a hub, a switch, Token Ring and Wi-Fi as examples, that physical and logical topology may not match
  • draw and show how star, ring, bus, mesh and hybrid topologies work
  • calculate the number of cables and ports for each topology
  • predict how each topology “behaves” when a failure occurs
  • choose a suitable topology for a given situation and justify it with its advantages and disadvantages

Plan (according to the syllabus)

  1. The concept of network topology and the differences between physical and logical topologies
  2. How star, ring, bus, mesh and hybrid topologies work, and their advantages and disadvantages

When choosing a topology, always ask three questions: 1) how many cables and ports are needed (cost)? 2) what happens if one cable or device breaks (reliability)? 3) how easy is it to add a new computer (scalability)? “Interrogate” every topology in the simulator with these three questions.

If one cable is cut, does the whole computer lab stop working?

Answer: it depends on the topology. In some networks one cut cable isolates only one computer, in others the whole network “dies”. In some, nobody even notices — the packet finds another path. By the end of the lesson you will create all three cases in the simulator and explain the reason.

Key terms

The concept of network topology and the differences between physical and logical topologies

The Tashkent metro map is a set of neat colored lines on the wall — a logical picture of where the trains “go”. The real tunnels underground are crooked and at different depths — that is the physical structure. It is the same in a network: the cables may be laid in one way, while the data moves in a completely different “direction”.

Definition

Network topology is the scheme of how network nodes (computers, switches, routers) and the communication channels connecting them are arranged and linked. It is viewed at two levels: physical topology — the actual connection of cables and devices; logical topology — the path of the data signal through the network and the rules for accessing the medium.

Physical view: star Logical view: bus HUB PC1PC2PC3PC4 PC1PC2PC3PC4 the hub repeats the incoming signal to all ports — it is as if everyone sits on “one wire”
Fig. 3.1. Hub-based Ethernet: the cables form a star, but the data spreads to everyone as on a bus

Physical and logical topology may not match

Table 3.1. Physical and logical topologies: classic examples
TechnologyPhysical topologyLogical topologyNote
Hub-based EthernetstarbusThe hub repeats the signal to all ports; everyone shares one medium, and collisions occur.
Switch-based Ethernetstarstar (point-to-point)The switch forwards a frame only to the required port; each port is a separate channel.
Token Ring (IBM)star (via a MAU device)ringThe cables go to a central device, but inside it they are connected as a ring; a token passes from node to node.
Classic coaxial Ethernet (10BASE2)busbusOne coaxial cable with terminators at the ends. Almost never used today.
Wi-Fi (one access point)radio “star” (everyone to the AP)shared medium (bus-like)The radio channel is shared by everyone: only one device can “speak” at a time.

Physical topology answers:

  • How much cable is needed, and how long?
  • Where will the devices be installed?
  • Where are the cable cabinet and the wall sockets?
  • If a cable is cut, which device is physically cut off?

Logical topology answers:

  • To whom and in what order does the data go?
  • Who has the right to “speak”, and when?
  • Will there be collisions?
  • By which path does a packet reach its destination?
Did you know?

Today the term “logical topology” is also used in a broader sense: for example, computers connected to one physical switch can be divided into several logical networks using VLANs (an independent-work topic). That is, several logical “maps” on one piece of “hardware”.

How star, ring, bus, mesh and hybrid topologies work, and their advantages and disadvantages

We will look at five basic shapes. Read about each one first, then build and “break” it in the simulator below — draw the conclusion yourself.

How it works: each computer is connected by its own cable to a central device (today — a switch). Any data between two computers passes through the center.

Advantages: if one cable is cut, only one computer is cut off; it is easy to add a new device (plug into a free port); faults are easy to find; traffic can be managed at the center.

Disadvantages: the central device is a single point of failure (SPOF): if it goes down, everyone is cut off; it uses more cable than a bus; the number of ports is limited.

Where: almost all modern LANs, the home Wi-Fi network (a radio star).

How it works: each node is connected to its two neighbors, forming a closed ring. Data is passed in one direction from node to node; each node receives the signal, amplifies it and passes it on. Access to the medium is often by a token: whoever holds the token transmits.

Advantages: no collisions; predictable performance even under heavy load; little cable.

Disadvantages: in a simple (single) ring, if one cable or node fails, the ring breaks; adding a new node requires temporarily breaking the ring. The solution is a dual ring (for example, FDDI): the second ring serves as a backup.

Where: providers’ city optical rings (MAN), industrial networks; classic Token Ring is now history.

How it works: all nodes are connected to one shared cable (the bus). A signal sent by one node spreads along the cable to everyone, and only the addressee accepts it. Terminators are placed at the ends of the cable so that the signal is not reflected back.

Advantages: the least cable, simple and cheap, quick to install for a small network.

Disadvantages: if the bus breaks or a terminator is missing, the signal is reflected and the whole segment stops working; only one node can transmit at a time (collisions); speed drops sharply as nodes are added; faults are hard to locate.

Where: coaxial Ethernet of the 1980s–90s; today the logical bus idea lives on in the CAN bus in cars and in industrial buses.

How it works: in a full mesh each node is connected directly to every other node; in a partial mesh there are several paths only between important nodes. If one path is cut, the data goes another way.

Advantages: the highest reliability and redundancy; the load is spread across paths; a dedicated channel between every pair.

Disadvantages: very expensive: in a full mesh the number of cables is n·(n−1)/2, and each device needs n−1 ports; setup and management are complex.

Where: the Internet backbone and providers’ routers (partial mesh), data centers, “Wi-Fi mesh” systems for the home, military and emergency communication networks.

How it works: several topologies are combined. The most common is the tree (hierarchical star): each floor has a star (a floor switch), and the floor switches are connected to the building’s central switch. Another example is a star inside each branch, with a ring or partial mesh between branches.

Advantages: the best-suited solution for each part; a large network is easy to expand step by step; a balance of reliability and cost.

Disadvantages: complex to design and document; if a higher-level switch fails, the whole “branch” is cut off (so a backup is placed at the upper level).

Where: a university campus, an enterprise, a hospital — in practice almost all large networks are hybrid.

Simulator: topology lab

Choose a topology and change the number of nodes. Then click a cable to cut it (it turns red) or click a device to turn it off. “Send packet” carries a packet along the shortest working path. The counter below shows how many pairs are still connected.

:ik-tarmoq: Topology lab

Number of computers: 6
Packet:→
Cables (links)
Most ports (on one device)
Cut / switched off
Connected pairs

Calculation: cables and ports

Table 3.2. Resources for n computers (n ≥ 3)
TopologyNumber of cablesPorts on one computerCentral deviceCables at n = 10
Starn1switch, n ports10
Ringn2none10
Bus1 bus + n connections1none (2 terminators)1 + 10
Full meshn·(n−1)/2n−1none45

General comparison

Table 3.3. Comparative characteristics of topologies
CriterionStarRingBusMeshHybrid
Cost (cables, ports)mediumlowlowesthighestmedium–high
If one cable is cut1 device is cut offthe ring stops (with a dual ring — no)on a bus — everythingnot noticeablea part may be cut off
Single point of failurethe centerevery nodethe bus cablenonethe upper-level switch
Expansioneasyhardeasy, but speed dropshard and expensiveeasy
Finding faultseasymediumhardcomplexmedium
Use todayalmost all LANsMAN optical ringsindustrial and automotive busesInternet backbone, Wi-Fi meshcampus, enterprise
:ik-xarita:Tashkent metroThe radial lines meet at the center (like a star), and the Ring line connects them at the edge — a small hybrid topology.
:ik-wifi:Home Wi-Fi meshIn a large house 2–3 mesh devices connect to each other: if one is switched off, the others pass the signal along another path.
:ik-mashina:CarThe units in a modern car (engine, brakes, windows) “talk” over the CAN bus — the bus idea is still alive.

Common mistakes

ErrorCorrect answer
“If the cables form a star, the logical topology is a star too”With a hub — logically a bus; with a MAU — a ring. The logical topology is determined by how the signal moves.
“Mesh is the best — we should build it everywhere”A mesh is reliable, but n·(n−1)/2 cables is very expensive. Usually only the backbone (the important part) is made a mesh.
“A star never fails”If the center goes down, everyone is cut off. In important networks the center is backed up.
Counting mesh cables as n·n or n·(n−1)Each cable connects two nodes: n·(n−1)/2. The number of ports, on the other hand, is n·(n−1).
“A ring means computers placed in a circle”Topology is not the shape of the layout but the connection scheme. Even if the computers stand in a row, their connection can be a ring.
Thinking that on a bus only the cut spot stops workingThe reflected signal corrupts the whole segment — that is why terminators are mandatory.

Reinforcement

// REMEMBER IN 1 MINUTE

  1. Topology is the scheme of connecting nodes and channels; physical (cables) and logical (signal path).
  2. Hub: physical star + logical bus. Switch: star + star. Token Ring: star + ring.
  3. Star: an edge cut — 1 device, a center failure — everything.
  4. Simple ring: one break — the whole ring; a dual ring provides a backup.
  5. Bus: cheap, but if the cable breaks — the whole segment.
  6. Mesh: n·(n−1)/2 cables, the most reliable and the most expensive. Hybrid — a practical compromise.

Final test

Review questions

What is meant by network topology?

The scheme of how network nodes and the communication channels connecting them are arranged and connected.

What is the difference between physical and logical topology?

Physical — the actual connection of cables and devices; logical — the path of signal movement and the rules for accessing the medium.

Give two examples where the physical and logical topologies differ.

Ethernet with a hub: physical star, logical bus. Token Ring: physical star (MAU), logical ring.

What are the advantages and disadvantages of the star topology?

Advantage: faults are isolated, expansion and diagnostics are easy. Disadvantage: the center is a SPOF, more cable, a limited number of ports.

How does the ring topology work, and what is its weak point?

Data is passed from node to node in one direction (often with a token). In a simple ring one break stops the whole ring; the solution is a dual ring.

Why are terminators needed in a bus topology?

So that the signal is not reflected back from the end of the cable and does not corrupt transmissions.

Derive the formula for the number of cables in a full mesh.

Each node is connected to n−1 others: n·(n−1) ends; each cable has two ends — n·(n−1)/2.

What advantage does a partial mesh have over a full mesh?

Backup paths are built only between important nodes — reliability is high, while the cost is much lower.

Why are large networks usually hybrid?

The most suitable topology is chosen for each part: a star on the floors, a ring with backup or a mesh in the backbone — a balance of cost and reliability.

Independent work

Independent-work topic from the course syllabus: “Packet transmission, network topologies and network efficiency” (6 hours). The part related to this lesson is choosing and justifying a topology.

  1. Choose a topology for the object in your variant and draw its physical diagram (in draw.io or Cisco Packet Tracer).
  2. Calculate the number of cables and switch ports; also calculate how many cables a full mesh would need, and compare.
  3. Analyze at least 3 failure scenarios: “what gets cut, how many users are affected, what backup can be added?”
  4. Justify your choice by the criteria of Table 3.3 (cost, reliability, expansion, diagnostics).
Assessment criteria (individual assignment)
CriterionPoints
The topology diagram is drawn correctly and clearly2
The cable and port calculation is correct and compared with a mesh1
Failure scenarios are analyzed and a backup is proposed1
The choice is justified by the criteria1

Summary

TopologyThe scheme of connecting nodes and channels — the shape of the network.
Physical ≠ logicalThe cables may be the same while the signal path differs (hub, Token Ring).
StarToday’s LAN standard; the center is the single point of failure.
RingTaking turns with a token, no collisions; a dual ring for backup.
BusThe cheapest, but if the bus is cut — the whole segment.
Meshn·(n−1)/2 cables: the most reliable and the most expensive; in practice a partial mesh.
HybridThe real choice for large networks: the suitable shape for each part.
Three questionsCost, fault tolerance, ease of expansion.

Your lesson results

Your results are saved in this browser. Read all the sections and complete the exercises and assignments.

My personal notes