For a complete guide including API usage, see Cellular Mesh.
Topology Overview
Traditional mesh networks create O(N²) connections. Cellular mesh reduces this to O(N) through strategic peer organization.Cell Assignment Algorithm
Peers are deterministically assigned to cells based on a sorted roster:Network Structure
Bridge Selection
Bridges are peers elected to maintain connections between adjacent cells.Edge Group Selection
Health Score Calculation
Message Routing
Intra-Cell Routing
Messages within a cell are delivered directly via full mesh:Inter-Cell Routing
Messages between cells hop through bridges:TTL-Based Propagation
Scalability Analysis
Connection Count Formula
Comparison Table
| Peers | Cell Size | Cells | Bridges | Cell Connections | Bridge Connections | Total | Traditional Mesh |
|---|---|---|---|---|---|---|---|
| 100 | 10 | 10 | 2 | 1,000 | 36 | ~1,036 | ~4,950 |
| 1,000 | 10 | 100 | 2 | 10,000 | 396 | ~10,396 | ~499,500 |
| 10,000 | 50 | 200 | 2 | 50,000 | 796 | ~50,796 | ~49,995,000 |
Massive Efficiency
At 10,000 peers, cellular mesh uses 1,000x fewer connections than traditional mesh!
Hop Count Analysis
Average hops for a message to traverse the network:| Peers | Cells | Avg Hops | Max Hops |
|---|---|---|---|
| 100 | 10 | ~3 | 10 |
| 1,000 | 100 | ~10 | 100 |
| 10,000 | 200 | ~14 | 150 (capped) |
Failure Scenarios and Resilience
Bridge Failure
bridgesPerEdge = 2, if one bridge fails:
- Remaining bridge continues forwarding
- Next heartbeat detects failure
- New bridge is elected from edge group
- Network self-heals within 5-10 seconds
Cell Partitioning
If an entire cell goes offline:- Messages from cell-0 can still reach cell-1
- Messages cannot reach cell-2 directly
- Messages can reach cell-3 via alternative paths (if ring topology)
Optimization Strategies
Dynamic Cell Sizing
Bridge Redundancy
Health-Based Re-Election
Bridges are continuously monitored. If a bridge’s health score drops below threshold:Related Pages
Cellular Mesh
Complete cellular mesh guide
GenosRTC Architecture
P2P networking overview