Topologies

A topology is the arrangement of nodes and links.

  1. Star: all nodes connect to a central hub or gateway. It is simple and easy to manage, and a node failure does not affect others, but the hub is a single point of failure. Used by BLE and Wi-Fi, and LoRaWAN as a star of stars.
  2. Mesh: nodes relay for each other. It is self-healing, has wide coverage and no single point of failure, but is more complex and uses more energy for relaying. Used by Zigbee, Thread and Bluetooth mesh. A full mesh with n nodes has n(n − 1)/2 links.
  3. Tree (cluster tree): nodes form a hierarchy, with parents relaying for children. It scales well, but a parent failure cuts off its branch.
  4. Bus and ring: used in wired systems such as industrial buses.
  5. Hybrid: combinations such as a mesh of routers with star end devices.

Data Transmission in IoT

Data flows from a sensor to the application in steps: sensing, local processing (filtering or averaging), packetisation (adding headers and a timestamp), transmission over the radio, gateway forwarding, cloud ingestion and delivery to applications. Transmission may be periodic (every n seconds), event-driven (only on change or threshold) or on demand (when requested). Event-driven reporting and aggregation (sending an average instead of every reading) save energy and bandwidth. Data is usually sent in compact forms such as JSON, CBOR or binary with a timestamp and device ID. Reliability uses acknowledgements, retries and buffering when the link is down. Communication patterns include request/response, publish/subscribe, push and polling.

Definition: Mesh topology. A network in which nodes relay data for each other so that messages can reach the destination by several routes, which makes the network self-healing and extends its range.

Table 2.4: Topologies compared

Topology Strength Weakness Example
Star Simple, easy to manage Hub is a single point of failure BLE, Wi-Fi, LoRaWAN
Mesh Self-healing, wide coverage Complex, more energy Zigbee, Thread
Tree Scales well Parent failure cuts a branch Cluster-tree sensor net
Hybrid Balances needs Design is complex Zigbee routers with end devices

Problem: Find the number of links needed to connect 6 nodes in a star (with one hub among them), a ring and a full mesh, and the effect of one node failing in the star (a non-hub node) and mesh.

Solution:

  1. Star: the hub links to the 5 other nodes, so 5 links.
  2. Ring: each node links to two neighbours, so 6 links.
  3. Full mesh: n(n − 1)/2 = 6 × 5 / 2 = 15 links.
  4. In the star, if a non-hub node fails only that node is lost; if the hub fails all 5 nodes are cut off.
  5. In a full mesh, any one node failing leaves the other 5 still connected.

Result: Star 5, ring 6 and mesh 15 links; the mesh costs three times the star but has no single point of failure.

n = 6
star, ring, mesh = n - 1, n, n * (n - 1) // 2
print("Star:", star, "| Ring:", ring, "| Full mesh:", mesh)
print("Mesh / star:", mesh / star)
print("Nodes lost if hub fails:", n - 1)

Output

Star: 5 | Ring: 6 | Full mesh: 15
Mesh / star: 3.0
Nodes lost if hub fails: 5

Common mistakes

  • Using a star network where the hub's failure would be critical.
  • Using a full mesh for hundreds of nodes, as links grow quickly.
  • Sending every raw reading when an average would do.
  • Dropping data silently when the link is down instead of buffering.

Key takeaways

  • Star, mesh, tree, bus, ring, hybrid.
  • Full mesh links = n(n − 1)/2.
  • Data path: sense, process, packetise, transmit, gateway, cloud, application.
  • Aggregation and event-driven reporting save energy.

Practice questions

  1. Give one weakness of a star topology.
  2. How many links are in a full mesh of 5 nodes?
  3. Why aggregate data before sending?

Answers to the practice questions

  1. The central hub is a single point of failure.
  2. 5 × 4 / 2 = 10.
  3. To save energy and bandwidth.

Sources

  • Official BCA syllabus Internet of Things, course code 25BCA406DS01, Unit II