A topology is the arrangement of the nodes and links of a network. It affects cost, performance and reliability.

Physical and Logical Topology

The physical topology is the actual layout of cables and devices: how they are physically connected. The logical topology is the way data actually flows between devices, regardless of the physical layout. For example, older Ethernet with a hub was physically a star but logically a bus, since every frame reached every node; Token Ring was physically a star but logically a ring.

Definition: Network topology. The arrangement of nodes and links in a network, either physically (the layout of cables and devices) or logically (the path that data follows).

Common Topologies

In a bus topology, all nodes are connected to a single cable, the backbone, with terminators at each end. It is cheap and easy to install, but a break in the backbone stops the whole network, collisions increase with more nodes, and faults are hard to find. In a star topology, every node is connected to a central hub or switch. It is easy to install, manage and extend, and a failed cable affects only one node, but the central device is a single point of failure and more cable is needed. It is the most common LAN topology. In a ring topology, each node connects to exactly two neighbours, forming a closed loop, and data travels round it, often using a token. Its performance is predictable, but one failure can break the ring (unless it is a dual ring), and adding nodes disturbs it. In a mesh topology, nodes are interconnected with many links; in a full mesh, every node links to every other, needing n(n − 1)/2 links for n nodes. It is very reliable and has no traffic problems, but is expensive and complex; it is used in WAN backbones and wireless mesh networks. A tree topology connects star networks in a hierarchy. A hybrid topology combines two or more types, such as stars joined by a bus or ring backbone, and is common in large organisations.

Table 1.4: Comparison of topologies

Topology Advantage Disadvantage
Bus Cheap, little cable Backbone failure stops all
Star Easy to manage and extend Hub or switch is a single point of failure
Ring Predictable performance One break can stop the ring
Mesh Very reliable, redundant paths Costly, many links
Hybrid Flexible for large networks Complex to design

Example 1.4: Cabling cost

Problem: An office has 8 computers. How many links are needed for (a) a full mesh, (b) a star, (c) a ring, (d) a bus?

Solution:

  1. Full mesh: n(n − 1)/2 = 8 × 7 / 2 = 28 links.
  2. Star: one link from each computer to the switch: 8 links.
  3. Ring: each computer joins the next, closing the loop: 8 links.
  4. Bus: one backbone cable with 8 drop connections.

Result: 28 for a mesh against 8 for a star or ring, which is why mesh is used only where reliability matters most.

def links(topology, n):
    return {"mesh": n * (n - 1) // 2, "star": n, "ring": n,
            "bus": 1}[topology]
for t in ("mesh", "star", "ring", "bus"):
    print(f"{t:<5} with 8 nodes: {links(t, 8)} link(s)",
          "(backbone)" if t == "bus" else "")

Output

mesh  with 8 nodes: 28 link(s)
star  with 8 nodes: 8 link(s)
ring  with 8 nodes: 8 link(s)
bus   with 8 nodes: 1 link(s) (backbone)

Common mistakes

  • Confusing the physical layout with the logical data flow.
  • Forgetting that a star depends on its central device.
  • Using a full mesh for a large LAN, which needs far too many links.

Key takeaways

  • Physical topology is the layout; logical topology is the data flow.
  • Bus, star, ring, mesh, tree and hybrid are the common topologies.
  • Star is the most common LAN topology.
  • A full mesh of n nodes needs n(n − 1)/2 links.

Practice questions

  1. Distinguish physical and logical topology.
  2. What is the main drawback of a star topology?
  3. How many links does a full mesh of 6 nodes need?

Answers to the practice questions

  1. Physical topology is the actual layout of devices and cables; logical topology is how data flows among them.
  2. The central hub or switch is a single point of failure.
  3. 6 × 5 / 2 = 15.

Sources

  • Official BCA syllabus Computer Networks, course code 26BCA404DS02, Unit I