Edge & Traffic Policy

activereferenceverified 2026-07-20

This document describes the authority boundaries at the network edge: where routing and policy decisions are made, where congestion is enforced, and what happens when an adaptive component fails.

The goal is consistent latency and predictable behavior under load, not maximum aggregate throughput.

Design principles: see Lab Philosophy.


Authority Model

The edge is intentionally split across two roles:

LAN → router classifier / firewall / NAT / route selection → inline bridge shaper / CAKE → WAN

The router owns:

The inline bridge shaper owns:

This is not duplicate QoS on two systems. The router decides traffic intent while the bridge enforces that intent at the physical bottleneck.


WAN Routing and Failover

Two independent WAN circuits provide a preferred path and a lower-capacity alternate path. Normal routing preference and hard-outage failover remain router-side responsibilities.

Congestion steering is separate from failover and separate from queue priority. When enabled, steering is bounded to explicitly eligible new connections. Established connections retain their original route and NAT affinity, while bulk traffic remains on its normal path.

Adaptive congestion state is not sufficient authority to replace whole-network routing. Active route mutation remains guarded while the existing outage mechanism owns default-route failover. A degraded primary circuit must not, by itself, move the entire network onto the alternate circuit.


Traffic Classification Contract

The router emits a small normalized set of standards-based classes:

IntentMarkingCAKE treatment
Realtime or criticalEFVoice
Interactive or videoAF31Video
NormalCS0Best effort
Sustained or scavengerCS1Bulk

The bridge trusts those markings only on the router-facing side. Carrier-facing traffic is washed before locally learned class state is restored, preventing an upstream network from selecting privileged CAKE tins.

Unclassified traffic stays best effort. Fast-path behavior must not bypass the classification boundary unless equivalence has been mechanically demonstrated.


Trust Zones and Firewall Posture

The router enforces explicit trust boundaries:

VLANs express trust boundaries. They do not move routing, firewalling, or classification into the switching fabric.


Failure and Safety Boundaries

The design prefers loss of optimization over uncontrolled mutation:

These safeguards reduce blast radius; they do not make the edge highly available. The router, switching core, and physical circuits remain explicit failure domains.


Operational Invariants