# Mesh Topology
## What is Mesh Topology
Mesh topology is a network configuration in which each device is connected directly to every other device in the network. This creates multiple redundant paths between any two devices. There are two types of mesh topology. In a full mesh topology, every device has a direct connection to every other device. In a partial mesh topology, only some devices are connected to multiple other devices, not all of them.
## How Mesh Topology Works
Because every device has multiple paths to reach any other device, data can take any available path from source to destination. If one path fails, data simply takes an alternative path. Routing protocols determine the best path to use at any given time based on factors such as link speed, congestion, and hop count.
## Full Mesh Calculation
In a full mesh network with n devices, the number of connections required is n multiplied by n minus one, divided by two. For example, a full mesh network with 5 devices requires 10 connections. For 10 devices, 45 connections are required. This formula shows why full mesh becomes impractical as the number of devices grows.
## Advantages of Mesh Topology
Mesh topology provides the highest level of redundancy and fault tolerance. If any link or device fails, data can be rerouted through alternative paths, maintaining connectivity. Mesh topology eliminates single points of failure. It provides multiple paths for load balancing, distributing traffic across different connections.
## Disadvantages of Mesh Topology
Full mesh requires a very large number of cables and connections, making it expensive and complex to implement for large networks. The large number of connections makes maintenance and troubleshooting more complex. The cost of cabling and the number of ports required on each device makes full mesh practical only for small networks or for connecting a small number of critical devices such as core routers.
## Where Mesh is Used
Mesh topology is used in the core of the internet and in the backbone networks of large service providers, where multiple redundant paths are essential. Military communication networks use mesh topology for resilience. Wireless mesh networks are used in situations like city-wide WiFi or disaster response networks where wires are impractical.Back to Subject