Skip to main content

Module transport

Module transport 

Source
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 SessionTransport byte-pipe abstraction — the boundary between PhantomSession’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