Skip to main content

Module congestion

Module congestion 

Source
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
PathCcTable
Connection congestion. Extra paths share one window unless independent.
PmtuState
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
Ok when payload fits 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_count and 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 bytes under pn. 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.