How mesh topology works
Mesh topology is a network layout in which each device connects to several others, so there is more than one path between any two points. If one link or node fails, traffic takes another route. A mesh network can be wired, with switches and routers linked by cable or fibre, or wireless, with radios relaying traffic for each other.
Because a mesh has loops, it needs a protocol that chooses paths and stops traffic circling. Wired meshes use routing protocols such as OSPF at layer 3, or layer 2 protocols such as Shortest Path Bridging (IEEE 802.1aq) and the Multiple Spanning Tree Protocol in IEEE 802.1Q. Wireless meshes use their own path selection, for example the HWMP protocol in IEEE 802.11s.
Each node in a mesh relays traffic for others as well as sending its own. That is what lets a mesh route around damage, and it is also why a mesh is harder to plan and troubleshoot than a star.
Full mesh vs partial mesh
A full mesh links every node directly to every other node. A partial mesh adds redundant links only between the nodes that need them. The difference shows most clearly in the link count, which grows quickly in a full mesh.
| Feature | Full mesh | Partial mesh |
|---|---|---|
| Links for n nodes | n(n−1)/2 | Fewer, chosen by design |
| Links for 5 nodes | 10 | Typically 5 to 8 |
| Links for 10 nodes | 45 | Typically 12 to 20 |
| Ports per node | n − 1 | Two or more |
| Redundancy | Any node reaches any other directly | Several paths between key nodes |
| Cost and cabling | High, rises with the square of n | Moderate |
| Typical use | Small cores, WAN links between a few sites | Data centre spine-leaf, campus and plant backbones |
Because the link count of a full mesh grows with the square of the number of nodes, full meshes stay small. Most real networks are partial meshes: a well-linked core with simpler layouts hanging off it.
Advantages and disadvantages of mesh topology
A mesh buys resilience with cabling, ports and configuration effort.
-
//
Advantage: no single point of failure. Traffic routes around a failed link, switch or radio.
-
//
Advantage: load sharing. Routing protocols and link aggregation can spread traffic over several paths at once.
-
//
Advantage: easy to extend wirelessly. A wireless mesh grows by adding a node within radio range of an existing one, with no new cable.
-
//
Disadvantage: cost. Every extra link needs a port at each end, plus cable or fibre and the labour to install it.
-
//
Disadvantage: complexity. Path selection, loop prevention and troubleshooting all need a managed or layer 3 device and a clear design.
-
//
Disadvantage: wireless hops add delay. Each relay hop in a wireless mesh adds latency and shares airtime, so throughput falls with distance from the gateway.
Wired mesh networks
Wired meshes are built from managed switches and routers. In a data centre, a spine-leaf design links every leaf switch to every spine switch, a partial mesh that gives each server rack several equal paths. In a campus or plant backbone, core switches are cross-linked so the loss of one does not isolate a building.
Routing at layer 3 is the usual way to run a large wired mesh, because routing protocols use every link rather than blocking the redundant ones. Our guide to when you need a layer 3 switch explains that choice, and our comparison of layer 3 switches and routers covers the overlap with routers. Smaller layer 2 meshes can run on managed industrial switches using MSTP to block redundant links until they are needed.
Wireless mesh networks
Wireless meshes suit sites where cable is impractical. Several standards use them:
-
//
Wi-Fi mesh. Home and office mesh Wi-Fi systems relay traffic between access points, with IEEE 802.11s and the Wi-Fi Alliance EasyMesh specification as the standards. Our explainer on how wireless access points connect to a network covers the wired alternative.
-
//
Sensor meshes. Zigbee and Thread run on IEEE 802.15.4 radios, and Bluetooth Mesh comes from the Bluetooth SIG. They suit low-power sensors and lighting.
-
//
Industrial wireless. WirelessHART (IEC 62591) and ISA100.11a (IEC 62734) are mesh standards for process instruments, with each field device able to relay for its neighbours.
-
//
Tactical and outdoor meshes. Vehicle, drone and field radios form ad hoc meshes that re-route as nodes move.
Mesh networks on industrial sites
Few plants run a true full mesh. The usual pattern is a partial mesh at the core, where two or more backbone switches are cross-linked, with rings or stars of switches feeding the cabinets on the plant floor. That keeps the redundant paths where an outage would stop the most equipment, and keeps the edge simple to maintain.
When designing one, decide first which failures the network must survive: a single cable, a whole switch or a whole cabinet. Then add links only where they cover that failure, choose one protocol to manage them, and document which links are blocked or preferred. Wireless meshes on outdoor sites need a radio survey, because each hop shares airtime and the slowest link sets the pace for everything behind it.
Quick answers on mesh topology
Mesh topology: common questions
Where is mesh topology used?
Wherever losing a link is costly. Data centre and campus cores, WAN links between key sites, wireless sensor networks, industrial wireless instruments and mesh Wi-Fi.
How many links does a full mesh need?
n(n−1)/2. Five nodes need 10 links and 10 nodes need 45, which is why full meshes stay small.
Is mesh Wi-Fi a mesh topology?
Yes, at the wireless layer. The access points relay traffic between themselves. Client devices usually connect in a star to the nearest access point.
What is the main disadvantage of mesh topology?
Cost and complexity. Each extra link needs ports, cable and configuration, and paths have to be managed so traffic does not loop.
Can you combine mesh and star topologies?
Yes, and most networks do. A meshed core of switches with stars of devices hanging off each one is a common hybrid layout.
We supply the managed and layer 3 switches for meshed backbones and configure the redundancy protocols, VLANs and routing before the system ships.