Systems Engineering • Peer-to-Peer Networks • Technical Whitepaper

SCREAM

An open-source exploration of smartphone-centric peer-to-peer mesh networking, transport abstraction, and communication resilience beyond conventional telecom infrastructure.

Project SCREAM (S-C-R-E-A-M)
Co-Creators Alwin Madhu • Nejin Bejoy
Lead Architecture Alwin Madhu (Mobile/P2P Phase)
Primary Target Android (Kotlin, BLE, Wi-Fi Direct, LAN)
License MIT Open Source
Documentation Version v2.4 (September 2026)
Core Project Thesis

SCREAM is not merely a chat application or messaging UI. It is an exploration of a fundamental distributed-systems question: When conventional telecommunications and Internet backbones become congested, physically damaged, or unavailable, can commodity consumer smartphones dynamically self-organize into an ad-hoc local forwarding mesh to preserve basic social communication and data exchange?

Table of Contents

01. Why Infrastructure-Independent Communication Matters

Modern digital society operates on a single pervasive assumption: uninterrupted, ubiquitous telecommunication infrastructure. Every standard mobile interaction—from a text message on WhatsApp or Signal to a post on Instagram or X—relies on an unbroken chain of physical and logical intermediaries:

Figure 1A: Conventional Centralized Communication Model Synchronous • Infrastructure-Dependent
[Sender Device]
       │  (Local RF link)
       ▼
[Cellular Base Station / Wi-Fi Access Point]
       │  (Fiber backhaul / ISP backbone)
       ▼
[Internet Exchange Point (IXP) / Gateway]
       │  (Global transit)
       ▼
[Centralized Application Server / Cloud Cluster]
       │  (Routing & database storage)
       ▼
[Internet Transit / ISP Backhaul]
       │
       ▼
[Receiver Base Station]
       │  (RF link)
       ▼
[Recipient Device]
In the conventional model, two smartphones sitting three meters apart cannot exchange a byte of information if the cellular tower loses power or the backhaul link fails.

This centralized architecture is extraordinarily fast, efficient, and scalable under normal operating conditions. However, it creates a single point of environmental failure: if the local base station is congested, if undersea cables are damaged, if the electrical grid collapses during a natural disaster, or if mobile data is throttled or suspended, all digital communication between nearby humans ceases immediately.

Peer-to-peer (P2P) and ad-hoc mesh networks explore an alternative, localized topology:

Figure 1B: Infrastructure-Independent Ad-Hoc Mesh Model Opportunistic • Multi-Hop Forwarding
[Device A] ──(BLE / Wi-Fi Direct)──> [Device B] ──(Multi-hop Relay)──> [Device C] ──> [Device D]
Participating nodes collaborate locally to forward encrypted packets across short-range radio links without consulting a central routing registry or external server.

Clarifying the Scope: Infrastructure-independent communication does not render the global Internet obsolete, nor is it intended to replace long-haul fiber optics. Rather, its purpose is resilience: establishing a fallback layer of communication when primary connectivity is unavailable, congested, prohibitively expensive, unreliable, or physically disrupted.

Technical Integrity & Terminology Note

In accordance with rigorous systems engineering standards, SCREAM is not an "Internet replacement," nor is it marketed with sensationalist buzzwords such as "untraceable," "anonymous," "unhackable," "military-grade," or "government-proof." Wireless radio broadcasts are inherently detectable by physical spectrum analyzers, and packet routing across untrusted relay devices presents well-documented security trade-offs described in Section 5.

02. Technology Lineage & Historical Precedents

SCREAM is not an isolated experiment. It stands within a multi-decade tradition of academic research and open-source engineering focused on mobile ad-hoc networks (MANETs), delay-tolerant networking (DTN), and decentralized peer discovery. Understanding SCREAM requires analyzing the systems that pioneered these principles:

The Serval Project (2010–Present)

Pioneered by Dr. Paul Gardner-Stephen and the Serval Project team at Flinders University, Serval was conceived in the aftermath of the 2010 Haiti earthquake to provide communications when cellular infrastructure is completely obliterated. The project produced Serval DNA (Distributed Network Architecture) and the Batphone software stack, demonstrating that commodity Android smartphones could form an ad-hoc Wi-Fi mesh to support voice calls (MeshMS) and store-and-forward file synchronization (Rhizome) without cell towers.

Serval's academic documentation established formal protocols for ad-hoc wireless links under extreme packet loss, high bit-error rates, and severe node churn. While SCREAM does not derive source code directly from Serval DNA, it shares the fundamental thesis that consumer mobile hardware contains sufficient radio capability to sustain autonomous communication. [Source: Serval Project GitHub]

Briar (2018–Present)

Briar is a mature, peer-reviewed, open-source peer-to-peer messaging system engineered primarily for activists, journalists, and civil society under adverse network conditions. Unlike centralized messaging systems, Briar operates without a central server: messages are stored locally on each user's device and synchronized directly between peers via Bluetooth, local Wi-Fi, or over the Tor onion network when Internet access is available.

Briar demonstrates that end-to-end encryption, asynchronous message passing, and transport-agnostic synchronization (BTP - Briar Transport Protocol) can coexist securely without metadata leakage to central intermediaries. SCREAM shares Briar’s commitment to local storage and multi-transport connectivity, while focusing specifically on lightweight social-networking primitives and consumer-friendly mobile ad-hoc discovery. [Source: Briar Project Documentation]

Bridgefy (2014–Present)

Bridgefy is a proprietary communication framework and consumer application that demonstrated the viability of Bluetooth-based multi-hop relay behavior on consumer smartphones. By utilizing Bluetooth Low Energy (BLE) peripheral and central modes simultaneously, Bridgefy demonstrated that messages could hop across intermediate bystander phones to reach recipients several hundred meters away during large stadium events, concerts, natural disasters, and school campuses.

While Bridgefy achieved substantial public visibility during connectivity blackouts, academic cryptographic evaluations (such as research published at USENIX Security 2022) revealed critical vulnerabilities in early iterations of its proprietary protocol regarding plaintext metadata and relay impersonation. These historical findings underscore the absolute necessity of open-source peer-reviewed protocol design, cryptographic envelope validation, and transparent threat modeling in mesh applications. [Source: Bridgefy Architecture]

Meshtastic (2019–Present)

Meshtastic represents a fundamentally different architectural category within off-grid communication: an open-source decentralized mesh routing protocol running on dedicated low-power, sub-GHz LoRa (Long Range) microcontroller hardware (such as ESP32, nRF52, and RP2040 radio boards).

The distinction between Meshtastic and SCREAM is architectural and physical:

Both projects solve complementary resilience problems through different radio spectrum and hardware trade-offs. [Source: Meshtastic Documentation]

BitChat & the 2026 Regulatory Landscape

BitChat emerged as a prominent contemporary open-source decentralized Bluetooth Low Energy messaging system. By implementing BLE peripheral advertising and central GATT client connections, BitChat demonstrated peer discovery and hop-by-hop decentralized packet forwarding on mobile devices without account registration, central phone numbers, or server backbones.

The July 2026 Regulatory Incident: In July 2026, technology reporting by TechCrunch and digital rights organizations documented that India's Ministry of Home Affairs reportedly directed GitHub to restrict access to repositories associated with BitChat under Section 69A of the Information Technology Act. The reported government rationale cited concerns that decentralized, serverless Bluetooth mesh tools could facilitate coordination during communication restrictions and complicate conventional lawful interception and subscriber attribution. Digital rights advocates (including Civicus Monitor and internet freedom bodies) contested the takedown, arguing that blocking open-source software repositories based on decentralized architecture sets a concerning precedent for software developers and disaster-resilience tools. [Source: TechCrunch Reporting, July 2026]

Separation of Fact & Neutrality: This controversy was specific to BitChat. There is no record or evidence that the Indian government has issued any order, restriction, or ban against SCREAM. Furthermore, SCREAM maintainers do not adopt political positions; SCREAM is an academic and engineering exploration of distributed systems principles, disaster resilience, and local networking.

03. Why Crowded Environments Matter

Dense physical gatherings—such as music festivals, athletic stadiums, university campuses, international conferences, peaceful public demonstrations, high-volume transportation hubs, and disaster evacuation centers—present a fascinating paradox in telecommunications:

The Paradox of Dense Environments

Maximum Physical Proximity ≠ High Digital Connectivity.
In a stadium with 60,000 spectators or a campus quad during an event, thousands of people are separated by mere meters. Yet, precisely because of this density, cellular base stations experience radio resource exhaustion, upstream backhauls choke, and mobile data drops to zero. Users are physically adjacent but digitally isolated.

This physical reality transforms dense crowds into an ideal environment for ad-hoc radio networking:

Physical Proximity (Meters Apart) │ ▼ Local RF Reachability (BLE / Wi-Fi Direct) │ ▼ Autonomous Peer Discovery (No Central Server) │ ▼ Multi-Hop Opportunistic Relay (Node-to-Node) │ ▼ Decentralized Social & Data Propagation

The Fallacy of "More Nodes = Better Mesh"

A common misconception in mesh marketing is that adding more people automatically improves the network. In distributed wireless systems, uncontrolled node density creates severe radio degradation:

Therefore, SCREAM does not treat a crowd as a naive broadcast medium. The engineering challenge is implementing controlled forwarding: algorithmic deduplication, hop limits, probabilistic relaying, and bounded packet lifespans.

04. What Makes SCREAM a Networking Project?

SCREAM is frequently mistaken for a "chat app" because it provides social feeds and direct messaging interfaces. However, the chat screen is merely an application-layer presentation. The substantive engineering challenges in SCREAM reside within the transport, discovery, and routing layers:

1. Multi-Transport Architecture & Abstraction

SCREAM decouples the application layer from the physical transport layer. A post or message envelope does not know whether it will be transmitted over a local LAN socket, a Bluetooth Low Energy GATT link, or a Wi-Fi Direct P2P group:

2. Dynamic Peer Discovery

Devices broadcast ephemeral cryptographic beacons containing their node identifier. Nearby devices parse these advertisements, verify protocol compatibility, and establish transient connection state without querying any remote server or DNS provider.

3. Algorithmic Deduplication

To eliminate infinite forwarding loops ($A \to B \to C \to A$), SCREAM assigns every packet a unique deterministic hash derived from its sender public key, timestamp, and payload nonce. Each node maintains an in-memory and SQLite-backed Bloom filter / LRU sliding window of recently observed message IDs. If a packet has already been processed or forwarded, it is dropped immediately.

4. Bounded Hop Count (TTL) & Expiry Epochs

Every packet envelope contains a strictly decremented Time-To-Live (TTL) field and an absolute expiration epoch. Stale packets that have traversed too many hops or exceeded their validity window are discarded to protect network capacity and node storage.

5. Opportunistic Store-and-Forward

In intermittently connected networks, Node A may have a message for Node C, but Node C is currently out of range. If Node B moves between Node A and Node C, Node B can temporarily store the encrypted packet in local persistent storage and transmit it when Node C appears in its radio neighborhood.

Accuracy Note: SCREAM currently implements a bounded opportunistic cache rather than a full RFC 5050 Delay-Tolerant Networking (DTN) bundle stack. Full DTN custody-transfer mechanisms remain an experimental research area.

05. Security Architecture & Threat Model

Security in decentralized systems cannot rely on TLS certificates issued by central Certificate Authorities (CAs). SCREAM anchors trust directly in the device's cryptographic identity:

Security Subsystem Status Implementation Details & Cryptographic Primitives
Cryptographic Identity Current Implementation Ed25519 asymmetric keypairs generated on-device. The public key serves as the canonical node address and author signature.
Hardware Key Storage Current Implementation Cryptographic private keys are generated and stored within the hardware-backed Android Keystore (utilizing Secure Element / StrongBox where available on supported hardware).
Payload Encryption Current Implementation AES-256-GCM symmetric encryption providing authenticated data integrity and confidentiality for channel payloads.
Envelope Validation Current Implementation Cryptographic signature verification on packet headers before payload parsing, preventing packet spoofing by non-originating nodes.
Replay & Flood Protection Current Implementation Sliding sequence window, timestamp delta enforcement (±120s), and token-bucket rate limiting per peer interface.
Packet Quarantine Current Implementation Malformed, truncated, or signature-invalid frames are isolated and dropped without triggering application exceptions.
Multi-Hop Routing Heuristics Experimental Probabilistic relay selection based on observed link quality (RSSI) and peer reliability scores.
Pairwise Double Ratchet Planned Signal-style per-peer asynchronous ratchet providing forward secrecy and post-compromise security for private direct messages.
Metadata Padding Planned Fixed-size packet chunking and dummy frame injection to prevent traffic-analysis timing attacks.

Honest Threat Modeling & Limitations

Responsible security engineering requires an unvarnished declaration of what the architecture cannot defend against:

06. Chronological Development History

SCREAM’s architecture evolved deliberately through rigorous conceptual and technical milestones:

2024 — Origin Phase

College Minor Project (PHP & HTML)

SCREAM was initiated in 2024 as a college academic minor project co-created by Alwin Madhu and Nejin Bejoy. To satisfy academic curriculum requirements, the first implementation was built as a conventional server-based PHP/MySQL web application. However, early design notes already explored the philosophical desire for infrastructure-independent social networking.

2025 — Architectural Pivot

Research into Distributed Protocols & Ad-Hoc Systems

Recognizing the limitations of centralized client-server web apps, research shifted toward mobile distributed systems, BLE advertising protocols, and local-first data storage. Alwin Madhu spearheaded architectural research into decentralized node coordination.

Developer-Reported Experiment

December 8, 2025 — Pala Jubilee Festival Field Trial

On December 8, 2025, during the annual festival gathering in Pala, Kerala, a field test was conducted by approximately 10 participating associates in an environment where cellular towers were congested and conventional data was unreliable. Participants successfully exchanged text and media over local radio links. (Note: Labeled explicitly as a developer-reported informal field experiment, not an independently audited industrial deployment.)

May 2026 — Mobile Transformation

Transition to Native Android APK & Mesh Stack

In May 2026, Alwin Madhu began the complete ground-up redevelopment of SCREAM into a modern native Android application written in Kotlin. This phase established:

  • Local Area Network (UDP Multicast & TCP Socket delivery).
  • Bluetooth Low Energy GATT mesh protocol and advertiser/scanner alternation.
  • Hardware-backed cryptographic identity via Android Keystore.
  • Jetpack Compose reactive UI with offline-first Room database synchronization.
  • Experimental BitChat protocol interoperability research and Kotlin Multiplatform (KMP) architecture abstractions.

Attribution Record: While Nejin Bejoy was an essential co-creator of the original 2024 college web application, the subsequent 2025–2026 mobile APK architecture, BLE mesh stack, and cryptographic implementations were engineered independently by Alwin Madhu. Any third-party forks or community modifications are strictly labeled as "Community-reported" and not attributed to the official maintainers.

Late 2026 — Present

Refinement, Hardening & Academic Documentation

Continuous stabilization of packet rate-limiting, deduplication filters, and cross-platform transport abstractions.

07. Real-World Context & Environmental Catalysts

Infrastructure-independent networking is not an academic toy. Real-world events continuously demonstrate the vulnerability of centralized telecommunication architectures:

Emergency Services Disclaimer

SCREAM is an experimental open-source research and engineering platform. It is NOT an emergency-certified communications system. Under no circumstances should users rely on SCREAM in place of official emergency services, police, medical first responders, or government disaster evacuation infrastructure.

08. Related Projects Comparison Matrix

Different decentralized projects make fundamentally different architectural, hardware, and cryptographic trade-offs. The following table provides an objective, factual comparison of peer projects without rankings or subjective scoring:

Project Primary Technology Internet Required? Device-to-Device Multi-Hop Mesh Primary Platform / Hardware Security Approach Primary Design Focus
SCREAM BLE, Wi-Fi Direct, LAN (UDP/TCP) No (Optional WAN sync) Yes Yes (Controlled routing) Android Smartphones (Commodity consumer devices) Ed25519 identity, Keystore, AES-256-GCM, Envelope checks Local-first social feeds, transport abstraction, consumer smartphone mesh
BitChat Bluetooth Low Energy (BLE) No Yes Yes Smartphones (iOS, Android) Cryptographic identity, packet envelope encryption Decentralized lightweight P2P text messaging over BLE
Briar Bluetooth, Wi-Fi, Tor Onion Services No (Bluetooth/Wi-Fi) / Yes (Tor) Yes Yes (Store-and-forward) Android, Desktop (Linux, Windows, macOS) Peer-reviewed cryptographic protocol (BTP), Tor integration High-security peer-to-peer messaging for activists & journalists
Bridgefy Bluetooth Low Energy (Proprietary SDK) No Yes Yes Smartphones (iOS, Android) Proprietary symmetric encryption & SDK controls Commercial SDK for offline events, sports, and crowd messaging
Meshtastic LoRa (Long Range Sub-GHz RF) No Yes Yes (Managed flooding / routing) Dedicated LoRa microcontrollers (ESP32, nRF52, etc.) AES-256 pre-shared channel encryption Long-range, low-power off-grid telemetry and text mesh
Serval Project Ad-Hoc Wi-Fi (802.11b/g), Rhizome protocol No Yes Yes (Serval DNA mesh) Android Smartphones (Requires ad-hoc Wi-Fi support) Cryptographic subscriber IDs (DID), Rhizome payload signing Disaster-resilient voice telephony (MeshMS) & file distribution

Table Note: Architectural data compiled from official documentation, project source repositories, and published technical papers. No single architecture is universally superior; each prioritizes distinct constraints across hardware accessibility, physical transmission range, bandwidth, and threat models.

09. What SCREAM Is Trying to Contribute

SCREAM does not claim to have invented the mathematical principles of mesh routing or radio ad-hoc networking. Its engineering contribution lies in synthesizing modern mobile primitives into an accessible, open-source smartphone platform:

10. The Core Engineering Challenge: Density vs. Storms

The central difficulty of decentralized mobile networking is not transmitting a message between two isolated phones in a laboratory. The monumental challenge is scale without centralized coordination:

The Fundamental Question

How do hundreds or thousands of intermittently connected mobile nodes exchange data efficiently without collapsing the wireless spectrum into an unrecoverable broadcast storm?

SCREAM addresses this through a series of interlocking systems constraints:

11. Network Topology & Forwarding Architecture

Every participating device running SCREAM acts simultaneously as an endpoint (client) and a cooperative routing node (relay). The useful network topology emerges organically from the spatial distribution of participating devices:

Figure 2: Multi-Hop Topology & Forwarding Flow Controlled Forwarding Heuristic
[Origin Node A]
       │
   (BLE 1-Hop)
       ▼
 [Relay Node B]  ──(LAN / Local Wi-Fi)──>  [Relay Node C]
                                                 │
                                            (BLE 1-Hop)
                                                 ▼
                                         [Destination Node D]

─────────────────────────────────────────────────────────────────
[Packet Life Cycle at Each Relay]:
1. Inbound Radio Frame Received (BLE Advertisement or Socket Frame)
2. Signature & Envelope Validation (Ed25519 public key checked)
3. Hash Deduplication Lookup (Is Message ID in Bloom Filter / Cache?)
   ├─ YES ──> Drop immediately (Loop prevented)
   └─ NO  ──> Store Message ID in Cache
4. TTL Verification (Is TTL > 0 and Timestamp < Expiry?)
   ├─ NO  ──> Drop packet (Expired)
   └─ YES ──> Decrement TTL by 1
5. Is this device the intended recipient or is it a channel broadcast?
   ├─ If Recipient ──> Decrypt payload with Keystore & Render in UI
   └─ If Relay     ──> Evaluate forward probability & Queue for nearby peers
Controlled packet progression: Packets travel hop-by-hop across heterogeneous transports while strict deduplication and TTL decrements guarantee bounded network lifetimes.

12. What SCREAM Does NOT Promise (Honest Limitations)

Credibility in distributed systems research requires absolute clarity regarding engineering limitations. SCREAM does not promise and does not guarantee:

Explicit Non-Guarantees & Boundaries
  • No Global Coverage: SCREAM is a local-first ad-hoc mesh. It cannot bridge across geographic oceans or cities unless an intermediate peer physically travels or connects through an optional internet gateway.
  • No Internet-Equivalent Bandwidth: Bluetooth Low Energy GATT links offer effective throughput measured in kilobytes per second, not megabits. It is suited for text, structured state, and compressed imagery, not 4K video streaming.
  • No Guaranteed Delivery: Because nodes move unpredictably and radio links suffer interference, delivery is opportunistic and best-effort. Packets may expire before reaching their destination.
  • No Anonymity or Invisibility: Radio broadcasts are inherently physical. Direction-finding hardware can detect transmission presence and approximate device location.
  • No Protection for Compromised Endpoints: If a host smartphone has malware or OS-level vulnerabilities, hardware keystore protections cannot prevent memory-scraping attacks.
  • No Complete Traffic-Analysis Immunity: Packet sizes and transmission timing can reveal conversational patterns to sophisticated observers monitoring RF spectrum.
  • No Emergency Service Certification: SCREAM is not certified under ITU, FCC, or national telecommunications emergency protocols.
  • No Immunity from Physical Jamming: Intentional or unintentional broad-spectrum 2.4 GHz radio-frequency interference will degrade or sever local mesh links.
  • No Immunity from Regulatory Authority: Software does not override physical telecommunications laws or jurisdictional regulatory mandates.

13. Source Citations & References

All technological lineages, architectural comparisons, and historical events cited in this document are grounded in verified primary and secondary documentation:

  1. The Serval Project: Gardner-Stephen, P., et al. "The Serval Project: Practical Wireless Ad-Hoc Mobile Telecommunications." Flinders University. Official repository: github.com/servalproject/serval-dna.
  2. Briar Project: Briar Project Technical Architecture & The Briar Transport Protocol (BTP). Official documentation: briarproject.org.
  3. Bridgefy Security Evaluation: Albrecht, M., et al. "A Cryptographic Analysis of the Bridgefy Mesh Messaging Protocol." USENIX Security Symposium. Official site: bridgefy.me.
  4. Meshtastic Open-Source Project: Meshtastic Architecture, LoRa Radio Layer, and Protocol Buffers Specification. Official documentation: meshtastic.org.
  5. BitChat & Indian Regulatory Reporting: Singh, M. "India's Move Against Jack Dorsey's BitChat Sparks Legal Debate." TechCrunch, July 24, 2026. techcrunch.com.
  6. Civic Space & Communication Conditions: "India: Student Protests Met with Internet Restrictions and Civic Space Clampdown." Civicus Monitor, 2026. civicus.org.
  7. RFC 5050: Scott, K. and S. Burleigh, "Delay-Tolerant Networking Architecture & Bundle Protocol Specification," IETF RFC 5050.
  8. Android Open Source Project (AOSP): Android Developers Guide: Bluetooth Low Energy & Wi-Fi P2P (Wi-Fi Direct) Overview. Google LLC.