Expand description
Byte-based congestion control, ECN validation, and shared-bottleneck caps.
Application super::credit::CreditTable is not a congestion window.
TRANSPORT-A: a 16-slot packet-number map retires in-flight bytes once.
Structs§
- Congestion
- EcnState
- Path
CcTable - Connection congestion. Extra paths share one window unless independent.
- Pmtu
State - Fail-closed path MTU. Unknown is not a silent 1280-byte assumption.
Constants§
- CC_
SEGMENT_ BYTES - Controller segment (not discovered PMTU).
- INITIAL_
WINDOW_ BYTES - MIN_
WINDOW_ BYTES
Functions§
- admit_
send - Congestion first (BudgetExhausted), then application credit (Capacity).
- application_
credit_ is_ congestion true— application credit exhaustion maps to the congestion (not capacity) class.- apply_
ecn - Apply an ECN signal — collapse on CE only when the ECN state is validated.
- can_
send Okwhenpayloadfits within the remaining congestion window.- on_
acked - ACK of
bytes— shrink in-flight and grow the window. - on_
acked_ pn - ACK by packet number — reject forged/unknown pns, account the bytes once.
- on_ecn
- Unvalidated CE never increments
ce_countand never collapses the window. - on_lost
- Loss of
bytes— shrink in-flight and collapse the window. - on_
lost_ pn - Loss by packet number — collapse the window, mark the pn dead so a later ack can’t double-count.
- on_send
- Record
bytesunderpn. Duplicate live PN is Replay; full map is Capacity. - path_
cc_ is_ connection_ authority true— the shared connection window is authoritative when paths share a bottleneck.