10.2 What is Mesh?

10.2.1 What is a Mesh Network?

image

A mesh network is a topology where each device (node) is interconnected, creating multiple paths for data. Unlike traditional networks that rely on a single central point (such as a router), a mesh network is decentralized.

How It Works

In a mesh network, each ESP32 node acts as both a sender and receiver, functioning as a repeater. This differs from a star network where communication only goes through one central hub. A mesh network is more decentralized, thus improving coverage and network reliability.

In this setup, one ESP32 acts as the root node, which connects the mesh network to an external network, while other nodes can serve as intermediate parents that forward data or as leaf nodes that only send and receive their own data. Data in the network is automatically routed through available nodes until it reaches the final destination, either another node within the mesh or an external network via the root node. This creates an efficient, flexible, and fault-tolerant network.

Key characteristics include:


10.2.2 Topology Comparison: Mesh vs. Star

To understand the advantages, let’s compare it with the commonly used Star topology in home Wi-Fi.

Component Mesh Topology Star Topology
Resilience Very High. Supports self-healing. Low. If the hub/router fails, the entire network fails.
Coverage Wide and flexible. Easy to expand. Limited by the hub/router’s range.
Complexity More complex to configure. Simple and easy to set up.

10.2.3 Types of Nodes in a Mesh Network

In this lab, we will learn about 4 types of nodes:


Revision #7
Created 2025-08-29 01:40:56 UTC by YP
Updated 2025-09-15 04:27:24 UTC by YP