Expand description
Phantom Protocol
A meta-transport layer combining SCTP, QUIC, and KCP advantages:
- Multi-homing (seamless Wi-Fi ↔ LTE)
- Multi-streaming (independent streams, no HoL blocking)
- 0-RTT connection establishment
- Connection migration (session persists across IP changes)
- Adaptive fallback (Turbo → Reliable → Stealth)
Re-exports§
pub use fallback::FallbackStateMachine;pub use fallback::TransportMode;pub use scheduler::Scheduler;pub use session::Session;pub use stream::Stream;pub use types::*;
Modules§
- api
- Phantom Protocol - Public API
- bandwidth_
estimator - BBR-like Bandwidth Estimator
- buffer_
pool - Pre-allocated Buffer Pool
- compression
- Production Adaptive Compression
- device_
profile - Device Profile System
- fallback
- Phantom Protocol - Fallback State Machine
- fragmentation
- framing
- Zero-Copy TCP Framing Pipeline
- handshake
- Unified Phantom Protocol Handshake
- legs
- Transport Legs Module
- liveness
- Path-liveness decision logic (Phase 4 / P4.3).
- multiplexer
- Stream Demultiplexer
- pacer
- Token Bucket Pacer
- packet_
coalescer - Packet Coalescer — UDP Datagram Batching
- packet_
coalescer_ codec - V2 wire-format bridge for the packet coalescer (Phase 2.5).
- path
- Multi-path / connection migration state (Phase 4.2).
- path_
validation_ codec - Wire-format helpers for PATH_VALIDATION packets (Phase 4.2).
- phantom_
udp - PhantomUDP — native datagram transport over raw UDP (Phase 1).
See
docs/plans/phantomudp-phase1-design.md. - reputation
- sack
- Selective-acknowledgement (SACK) range codec.
- scheduler
- Phantom Protocol - Multi-Path Scheduler
- session
- Phantom Protocol - Session Management
- session_
cache - 0-RTT Session Resumption
- session_
transport - The
SessionTransportbyte-pipe abstraction — the boundary betweenPhantomSession’s background data pump and a concrete physical transport (TcpSessionTransport,WebSocketLeg,EmbeddedLeg, …). - shaping
- Traffic shaping — anti-fingerprint size padding (WIRE v6, deliverable (c)).
- stream
- Phantom Protocol - Stream Management
- types
- Phantom Protocol - Types
- udp_
transport - High-Performance UDP Transport