/ docs / notebooklm / 02_Network_Architecture.md
02_Network_Architecture.md
 1  # Abzu Network Architecture
 2  
 3  ## Hybrid Topology
 4  
 5  Abzu utilizes a **hybrid routing architecture** to balance latency, reliability, and privacy.
 6  
 7  ### 1. The Spanning Tree (Fast Path)
 8  
 9  - **Purpose**: Low-latency message delivery within Trust Circles.
10  - **Mechanism**: The network constructs a spanning tree rooted at high-capacity nodes. Messages flood strictly down the tree branches.
11  - **Benefit**: Optimal for real-time chat and ensuring all members of a group receive updates.
12  
13  ### 2. Kademlia DHT (Discovery & Storage)
14  
15  - **Purpose**: Decentralized storage of metadata, offline messages, and peer discovery.
16  - **Mechanism**: XOR-metric distance based on SHA-256 node IDs.
17  - **Keyspace**: 256-bit address space.
18  - **Content**:
19    - **PeerInfo**: IP/Port for connecting.
20    - **Mailbox**: Encrypted messages for offline peers.
21    - **Token Data**: Balances, Bonds, and Service Offers.
22  
23  ## Transport Layer
24  
25  - **FakeTLS**: All traffic mimics TLS 1.3 to resist DPI (Deep Packet Inspection).
26  - **Transport Agnostic**: Runs over TCP, UDP (QUIC), or WebSocket.
27  - **Ghost Mode**: Enhances privacy by generating cover traffic to mask communication patterns.