Skip to main content

Module loss

Module loss 

Source
Expand description

ACK ranges, PTO backoff, and sent-packet history (NET-05.08 partial).

At most eight inclusive ACK ranges. Retransmits use fresh packet numbers (reuse_packet_number_on_retransmit is false). Sent history is 32 in-flight slots. Independent of packet.rs (plain u64 packet numbers). Packages remain open.

Structs§

AckFrame
AckRange
SentTable
Thirty-two slots of in-flight packet numbers.

Constants§

MAX_ACK_RANGES
Duplicate of credit.rs — do not import that module from here.
PTO_BACKOFF_CAP
pto_count saturates here: pto_us = rtt_us * 2^min(pto_count, cap).
SENT_HISTORY
In-flight packet-number slots (sent history bound).

Functions§

ack_range_cap
Maximum ack ranges per frame (MAX_ACK_RANGES).
pto_us
PTO microseconds: rtt_us * 2^pto_count with pto_count capped at PTO_BACKOFF_CAP. Overflow or rtt_us == 0 → QdnfError::Range.
reuse_packet_number_on_retransmit
Honest invariant probe: false — QDNF never reuses packet numbers on retransmit.