197 lines
13 KiB
Markdown
197 lines
13 KiB
Markdown
<div align="center">
|
||
|
||
<table border="0" style="border: none; background: transparent;">
|
||
<tr style="border: none; background: transparent;">
|
||
<td align="center" valign="middle" style="border: none; padding-right: 25px;">
|
||
<a href="https://airaaigroup.in" target="_blank">
|
||
<img src="assets/logo.png" width="95" alt="Aira Group of Technology Logo" style="border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);" />
|
||
</a>
|
||
</td>
|
||
<td align="center" valign="middle" style="border: none; padding: 0 15px;">
|
||
<h1 align="center" style="margin: 0; font-size: 2.3em; font-weight: 800; border-bottom: none;">
|
||
π‘ Aira Internet Tower (AIT)
|
||
</h1>
|
||
<p align="center" style="margin: 8px 0 0 0; font-size: 1.05em; color: #38bdf8; font-weight: 600;">
|
||
Sovereign Open-Source Community Cellular (4G/5G) & Wireless Mesh Telecommunications Blueprint
|
||
</p>
|
||
</td>
|
||
<td align="center" valign="middle" style="border: none; padding-left: 25px;">
|
||
<img src="assets/tower.svg" width="95" alt="Aira Internet Tower Icon" style="border-radius: 50%; box-shadow: 0 4px 20px rgba(37,99,235,0.4);" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<p align="center">
|
||
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT"></a>
|
||
<a href="https://open5gs.org/"><img src="https://img.shields.io/badge/Core-Open5GS-008080.svg" alt="Core: Open5GS"></a>
|
||
<a href="https://www.srsran.com/"><img src="https://img.shields.io/badge/RAN-srsRAN-orange.svg" alt="RAN: srsRAN"></a>
|
||
<a href="https://openwrt.org/"><img src="https://img.shields.io/badge/Mesh-OpenWrt%20%7C%20B.A.T.M.A.N.--adv-0099e5.svg" alt="Mesh: OpenWrt"></a>
|
||
<a href="https://www.wireguard.com/"><img src="https://img.shields.io/badge/Tunnel-WireGuard-88171a.svg" alt="Security: WireGuard"></a>
|
||
<a href="https://grafana.com/"><img src="https://img.shields.io/badge/Telemetry-Prometheus%20%2B%20Grafana-F46800.svg" alt="Telemetry"></a>
|
||
<a href="https://github.com/adameehanairagroup"><img src="https://img.shields.io/badge/Architect-Er.%20Adam%20Eehan-gold.svg" alt="Architect: Er. Adam Eehan"></a>
|
||
<a href="https://airaaigroup.in"><img src="https://img.shields.io/badge/Organization-Aira%20Group%20of%20Technology-blueviolet.svg" alt="Organization: Aira Group of Technology"></a>
|
||
</p>
|
||
|
||
</div>
|
||
|
||
---
|
||
|
||
## π Executive Overview
|
||
|
||
**Aira Internet Tower (AIT)** is a complete, sovereign telecommunications architecture designed to eliminate the digital divide in rural, island, and community clusters. Built from the ground up by **Aira Group of Technology**, AIT provides a modular, production-ready framework combining:
|
||
|
||
1. **Rooftop-to-Rooftop Wireless Mesh** (OpenWrt + B.A.T.M.A.N.-adv Layer 2 routing)
|
||
2. **Private Lab 4G/LTE & 5G SA Cellular Stack** (Open5GS + srsRAN SDR Core)
|
||
3. **Hardened Sovereign Edge Gateway** (nftables firewall, WireGuard backhaul tunnels, CoovaChilli captive portal)
|
||
4. **Telecom Telemetry & Network Operations Center (NOC)** (Prometheus + Grafana)
|
||
5. **Low-Level Socket Communication Primitives** (TCP/UDP, chat relays, packet-level transfer)
|
||
|
||
Designed specifically for emerging community models (such as **K-FON / BharatNet** integration in Kerala/India, Panchayat-backed village Wi-Fi grids, and university testbeds), this repository contains the complete hardware schematics, software configurations, and deployment scripts necessary to operate a community-owned ISP.
|
||
|
||
---
|
||
|
||
> βοΈ **Important Regulatory & Legal Compliance Note (India / DoT / WPC):**
|
||
> Transmitting on cellular licensed spectrum (700 MHz, 800 MHz, 900 MHz, 1800 MHz, 2100 MHz, 2300 MHz, 2500 MHz, and 3.3β3.6 GHz) without an explicit DoT/WPC license or experimental trial authorization is illegal under the Indian Telegraph Act.
|
||
> The 4G/5G components in `lab-4g5g/` are strictly designed for **cable-connected RF attenuators or Faraday shielded enclosure testing** using the non-interfering test PLMN `001/01` at sub-milliwatt power. For public unlicenced community transmission, always utilize Wi-Fi unlicenced bands (2.4 GHz & 5.8 GHz) via `mesh/openwrt/`. See [`docs/01-legal-india.md`](docs/01-legal-india.md).
|
||
|
||
---
|
||
|
||
## ποΈ End-to-End System Architecture
|
||
|
||
```text
|
||
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
||
β AIRA INTERNET TOWER TOPOLOGY β
|
||
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
||
|
||
[ COMMUNITY SUBSCRIBERS ] [ TOWER ACCESS & RADIO LAYER ]
|
||
βββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββ
|
||
β Smartphones & Laptops β β-Wi-Fi-βΊ β Outdoor APs / Directional Ant. β
|
||
β (Unlicensed 2.4/5.8 GHz) β β OpenWrt + B.A.T.M.A.N.-adv Meshβ
|
||
βββββββββββββββββββββββββββββ ββββββββββββββββ¬ββββββββββββββββββ
|
||
β
|
||
βββββββββββββββββββββββββββββ β Layer 2 Mesh
|
||
β LTE / 5G Test Devices β β--RF---βΊ ββββββββββββββββΌββββββββββββββββββ
|
||
β (Shielded / Lab Box) β (SMA/Att) β srsRAN eNB/gNB (SDR Transceiverβ
|
||
βββββββββββββββββββββββββββββ ββββββββββββββββ¬ββββββββββββββββββ
|
||
β S1-MME / N2-N3
|
||
ββββββββββββββββΌββββββββββββββββββ
|
||
β Open5GS 4G/5G Cellular Core β
|
||
β (MME / SGW / SMF / UPF / HSS) β
|
||
ββββββββββββββββ¬ββββββββββββββββββ
|
||
β SGi / N6 Interface
|
||
ββββββββββββββββΌββββββββββββββββββ
|
||
β Aira Sovereign Edge Gateway β
|
||
β β’ nftables NAT / Security β
|
||
β β’ CoovaChilli Captive Portal β
|
||
β β’ WireGuard Uplink Tunnel β
|
||
ββββββββββββββββ¬ββββββββββββββββββ
|
||
β
|
||
ββββββββββββββββββββββββ΄ββββββββββββββββββ
|
||
βΌ βΌ
|
||
βββββββββββββββββββββββββββββββ βββββββββββββββββββ΄ββββββββ
|
||
β Upstream Backhaul β β Sovereign Telecom NOC β
|
||
β (K-FON / BharatNet / Fibre) β β (Prometheus + Grafana) β
|
||
βββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββ
|
||
```
|
||
|
||
---
|
||
|
||
## π Repository Module Breakdown
|
||
|
||
| Directory | Component | Purpose & Technologies |
|
||
|---|---|---|
|
||
| [`gateway/`](gateway/) | **Sovereign Edge Gateway** | Production `nftables` stateful NAT, WireGuard encrypted backhaul overlay (`wg0`), and CoovaChilli captive portal authentication. |
|
||
| [`lab-4g5g/`](lab-4g5g/) | **Private 4G/5G Cellular Core** | Full Open5GS containerized core (MME, AMF, SMF, UPF, PCRF, HSS) + srsRAN SDR configurations and automated SIM provisioning scripts. |
|
||
| [`mesh/openwrt/`](mesh/openwrt/) | **Decentralized Rooftop Mesh** | OpenWrt router configurations utilizing B.A.T.M.A.N.-adv for self-healing, multi-hop community Wi-Fi backhaul without single points of failure. |
|
||
| [`monitoring/`](monitoring/) | **Telemetry & NOC Dashboard** | Automated Prometheus metrics scrapers and Grafana dashboards tracking packet loss, SNR, active subscribers, and gateway bandwidth. |
|
||
| [`sockets/`](sockets/) | **Low-Level Network Primitives** | Pure Python socket engines demonstrating raw TCP state machines, UDP telemetry echoes, and resilient chunked file transmission. |
|
||
| [`docs/`](docs/) | **Engineering & Legal Blueprints** | In-depth technical documentation covering Indian telecom regulations, architecture designs, roadmaps, and community funding models. |
|
||
|
||
---
|
||
|
||
## β‘ Hardware Bill of Materials (Recommended Specs)
|
||
|
||
To deploy an Aira Internet Tower station for a village or campus hub, the following standard off-the-shelf hardware is recommended:
|
||
|
||
| Subsystem | Recommended Hardware | Approximate Cost (INR) |
|
||
|---|---|---|
|
||
| **Tower Edge Gateway & Core** | Raspberry Pi 5 (8GB) or Intel N100 Mini PC | βΉ7,500 β βΉ14,000 |
|
||
| **Mesh Distribution Nodes** | GL.iNet / TP-Link Archer running OpenWrt | βΉ2,500 β βΉ4,500 / node |
|
||
| **Long-Range Outdoor APs** | Ubiquiti NanoStation Loco M5 / TP-Link Pharos | βΉ4,000 β βΉ6,000 / link |
|
||
| **SDR Radio (Lab 4G/5G)** | LimeSDR USB / BladeRF x40 / HackRF One (Shielded) | Research bench |
|
||
| **Power Autonomy** | 100W Monocrystalline Solar Panel + 12V 30Ah LiFePO4 Battery + MPPT | βΉ9,000 β βΉ12,000 |
|
||
| **Enclosure & Antennas** | IP67 Weatherproof Outdoor Box + Lightning Surge Protector | βΉ3,000 |
|
||
|
||
---
|
||
|
||
## π Quick Start Guide
|
||
|
||
### 1. Run Socket Foundations Demo
|
||
Test the low-level socket server locally:
|
||
```bash
|
||
# Clone the repository
|
||
git clone https://github.com/adameehanairagroup/AiraInternetTower.git
|
||
cd AiraInternetTower
|
||
|
||
# Launch TCP Chat Relay
|
||
make sockets-demo
|
||
```
|
||
In another terminal, connect as a client:
|
||
```bash
|
||
python3 sockets/python/tcp_chat_client.py 127.0.0.1 5000
|
||
```
|
||
|
||
### 2. Deploy Containerized 4G/5G Open5GS Core (Lab)
|
||
Start the complete 4G EPC and 5G Core network stack:
|
||
```bash
|
||
make lab-up
|
||
```
|
||
Provision a test SIM into MongoDB HSS/UDR:
|
||
```bash
|
||
./lab-4g5g/scripts/provision_sim.sh 001010000000001 465B5CE8B199B49FAA5F0A2EE238A6BC
|
||
```
|
||
|
||
### 3. Spin up Telecom Telemetry & NOC Dashboard
|
||
Launch Prometheus and Grafana for real-time bandwidth and signal tracking:
|
||
```bash
|
||
make monitoring-up
|
||
```
|
||
* **Grafana Dashboard:** Visit `http://localhost:3000` (Default login: `admin` / `admin`).
|
||
* **Prometheus Targets:** Visit `http://localhost:9090`.
|
||
|
||
### 4. Deploy OpenWrt B.A.T.M.A.N.-adv Mesh Node
|
||
On your OpenWrt wireless node, copy and apply the mesh configuration:
|
||
```bash
|
||
scp -r mesh/openwrt/config/* root@192.168.1.1:/etc/config/
|
||
ssh root@192.168.1.1 "/etc/init.d/network restart"
|
||
```
|
||
|
||
---
|
||
|
||
## π€ Community Ownership & Governance Model
|
||
|
||
The **Aira Internet Tower** architecture is rooted in sustainable community participation:
|
||
|
||
* **Panchayat & Rural Fiber Tie-ups:** Connecting community towers to State and Central high-speed backhauls (**K-FON** in Kerala, **BharatNet** nationwide).
|
||
* **Zero-Rated Civic Tier:** Unlimited free access to government services (e-District, DigiLocker, educational resources, Kiwix offline Wikipedia).
|
||
* **Student Network Engineers:** Empowering local polytechnic and engineering students to maintain and audit their own community nodes.
|
||
* **Cooperative Cost Sharing:** Transparent maintenance funds pooled through local resident associations or CSR grants.
|
||
|
||
---
|
||
|
||
## π¨βπ» Founder, Principal Architect & Leadership
|
||
|
||
* **Er. Adam Eehan**
|
||
*Founder & CEO, Aira Group of Technology*
|
||
*Google Student Ambassador 2026*
|
||
*Website:* [airaaigroup.in](https://airaaigroup.in)
|
||
*Email:* [adameehan34@gmail.com](mailto:adameehan34@gmail.com) β’ [noreply@airaaigroup.in](mailto:noreply@airaaigroup.in)
|
||
*GitHub:* [@adameehanairagroup](https://github.com/adameehanairagroup)
|
||
|
||
---
|
||
|
||
## π License & Acknowledgments
|
||
|
||
Distributed under the **MIT License**. See [`LICENSE`](LICENSE) for full details.
|
||
Built with deep appreciation for the open-source telecom pioneers behind **Open5GS**, **srsRAN**, **OpenWrt**, **B.A.T.M.A.N.-adv**, and the **Linux Kernel Networking Subsystem**.
|