Back to all posts
The Technology Behind ThePublic's Mesh Network
Technical

The Technology Behind ThePublic's Mesh Network

July 8, 2023
David Park
10 min read

# The Technology Behind ThePublic's Mesh Network

ThePublic's decentralized WiFi network represents a significant innovation in internet infrastructure. In this technical deep dive, we'll explore the architecture, protocols, and systems that make our network possible.

Network Architecture Overview

At its core, ThePublic is a sophisticated mesh network with blockchain-based incentives and governance. The network consists of several key components:

1. Node Hardware

Our network relies on two types of nodes:

#### Standard Nodes - Raspberry Pi 4 (or equivalent) with 4GB+ RAM - Dual-band WiFi 6 capable network interfaces - Optional: Directional antennas for extended range - Power consumption: 5-10W (can be solar-powered)

#### Gateway Nodes - Higher capacity hardware with 8GB+ RAM - Gigabit ethernet backhaul connection - Enhanced cooling systems for 24/7 operation - Supports up to 200 simultaneous connections

Both node types run our custom Linux distribution, PublicOS, which handles routing, security, and blockchain interactions.

2. Mesh Networking Protocol

We've developed a modified version of the B.A.T.M.A.N. Advanced (Better Approach To Mobile Ad-hoc Networking) protocol that incorporates:

  • Dynamic route optimization based on network conditions
  • Load balancing across multiple paths
  • QoS (Quality of Service) prioritization for different traffic types
  • Automatic failover when nodes go offline

This creates a self-healing network that can adapt to changing conditions and node availability.

Blockchain Integration

ThePublic uses a purpose-built blockchain to handle:

1. Node Registration and Identity

Each node generates a unique cryptographic identity when it joins the network. This identity: - Prevents Sybil attacks through hardware attestation - Builds reputation over time based on performance - Enables secure and anonymous authentication

2. Micropayment Channels

Our network uses state channels for efficient micropayments: - Users can pre-fund accounts for seamless connectivity - Node operators receive compensation in near real-time - Only settlement transactions hit the main blockchain - Transaction fees are kept below 0.1% of transferred value

3. Consensus Mechanism

We employ a Proof of Coverage consensus mechanism that: - Verifies node locations and coverage claims - Rewards honest reporting and penalizes false claims - Operates with minimal energy consumption - Achieves finality in under 3 seconds

Security Architecture

Security is paramount in a decentralized network. Our approach includes:

1. Encrypted Traffic

All data passing through ThePublic is encrypted using: - WPA3 for client connections - Wireguard tunnels between nodes - Optional end-to-end encryption for sensitive applications

2. Threat Detection

Our distributed threat detection system: - Identifies anomalous traffic patterns - Blocks known malicious actors - Prevents DDoS attacks through traffic dispersion - Isolates compromised nodes automatically

3. Privacy Preservation

We've designed the network to maximize user privacy: - No logging of browsing history - IP address rotation - Onion routing option for enhanced anonymity - Zero-knowledge proofs for authentication without identification

Performance Optimizations

To deliver a seamless user experience, we've implemented several performance enhancements:

1. Edge Caching

Popular content is cached at the edge of the network: - Reduces latency for frequently accessed resources - Decreases backhaul bandwidth requirements - Updates automatically as content changes - Respects cache control headers

2. Adaptive Bandwidth Management

Our network dynamically allocates bandwidth: - Prioritizes real-time applications during congestion - Implements fair usage policies automatically - Provides burst capacity when available - Degrades gracefully under heavy load

3. Predictive Scaling

The network anticipates demand increases: - Analyzes historical usage patterns - Activates standby nodes during peak hours - Redirects traffic to optimize path efficiency - Notifies operators of capacity constraints

Future Technical Roadmap

We're continuously evolving ThePublic's technology. Upcoming developments include:

  1. **Multi-spectrum Support**: Expanding beyond WiFi to include CBRS and TV whitespace frequencies 2. **AI-Powered Optimization**: Using machine learning to predict network issues before they occur 3. **IoT Integration**: Specialized protocols for low-power IoT devices 4. **Satellite Backhaul**: Partnerships with LEO satellite providers for truly remote areas 5. **Quantum-Resistant Cryptography**: Future-proofing our security systems

Developer Resources

For those interested in building on or contributing to ThePublic:

  • Our core protocols are open-source and available on GitHub
  • We offer a comprehensive API for developing applications on the network
  • Developer grants are available for projects that enhance the network
  • Regular hackathons focus on solving specific network challenges

By combining cutting-edge wireless technology with blockchain incentives and community governance, ThePublic is creating a new model for internet infrastructure—one that's more resilient, accessible, and equitable than traditional approaches.

David Park

Written by David Park

Published on July 8, 2023

Continue Reading

Introducing ThePublic: A New Era of Decentralized WiFi

How Node Operators Earn Rewards on ThePublic Network