Architecture Explorer Reference
Architecture Explorer Reference
Clickable visual layered diagrams
KSP separates responsibilities into independent layers to facilitate code maintenance, module isolation, and clean APIs.
Logical Layer Stack
- Application Layer: High-level read/write operations (unaware of framing or keys).
- Stream Layer: Handles logical channel sorting and concurrency flow limits.
- Session Layer: Evaluates packet sequence numbers, timeouts, and state loops.
- Encryption Layer: Performs AEAD GCM / ChaCha20-Poly1305 payload cipher protection.
- Handshake Layer: Executes ephemeral X25519 DH parameter negotiations.
- Framing Layer: Serializes bytes, enforces length prefixes, and parses boundaries.