Skip to main content
The Cellular Mesh topology is an advanced P2P architecture that organizes peers into logical cells connected by bridge nodes, enabling massive scalability.
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

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:

Failure Scenarios and Resilience

Bridge Failure

With bridgesPerEdge = 2, if one bridge fails:
  1. Remaining bridge continues forwarding
  2. Next heartbeat detects failure
  3. New bridge is elected from edge group
  4. 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)
Current implementation uses linear topology, so partitioning can split the network. Future versions may implement ring or graph topologies for enhanced resilience.

Optimization Strategies

Dynamic Cell Sizing

Bridge Redundancy

Health-Based Re-Election

Bridges are continuously monitored. If a bridge’s health score drops below threshold:

Cellular Mesh

Complete cellular mesh guide

GenosRTC Architecture

P2P networking overview