Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Quic.Ecn

Feature notes: Asynchronous QUIC server and HTTP/3 component

Classes, interfaces and records

recordtQuicEcnCounts

ECT0, ECT1, CE: UInt64;

classtQuicEcnController

One serialized controller serves one connection. PacketSent records every actual protected QUIC packet, including ACK-only packets. Marking is a preflight choice; rejected sends consume neither testing nor ledger credit. Only marked packets retain bounded scalar metadata. ACK ranges must be validated against sent-number history before AckReceived. Reordered ACKs cannot fail validation; their newly acknowledged markings remain accounted for when later feedback advances the largest acknowledged packet number. PacketReceived counts each newly authenticated and processed QUIC packet, using its UDP datagram's marking. Duplicates do not increase counters. RestartPath preserves cumulative PN-space counters and marks retained packets as old-path. Ambiguous old-path feedback never reduces a new path's congestion window. All outputs are explicit, including a zero event time. The ledger is kept per space in packet-number order, so an ACK frame costs the logarithm of the packets in flight for each of its ranges plus the packets it newly acknowledges, not a pass over every tracked packet.

constructor Create(aMaxTrackedPackets: Integer = 12288; aTestingPackets: Integer = 10); function Marking(aSpace: tQuicPacketSpace): tDatagramEcn; overload; function Marking(aSpace: tQuicPacketSpace; aPending: Integer): tDatagramEcn; overload;
For a packet of a send batch whose aPending earlier packets, all marked ECT(0) as the batch is, will be recorded before it: what Marking would answer once they were - Not-ECT where they would spend the testing budget or fill the ledger. It never changes the controller, also for aPending 0 (below 0 counts as 0); Marking(aSpace) still fails it at the limit.
procedure PacketSent(aSpace: tQuicPacketSpace; aPacketNumber, aSentMicros: UInt64; aMarking: tDatagramEcn); procedure PacketLost(aSpace: tQuicPacketSpace; aPacketNumber: UInt64); function AckReceived(aSpace: tQuicPacketSpace; const aAck: tQuicFrame; out aCongestionSentMicros: UInt64): Boolean;
True identifies a newly validated, unambiguous CE increase. The host passes its returned send time to the path congestion controller once.
procedure PacketReceived(aSpace: tQuicPacketSpace; aMarking: tDatagramEcn); procedure DecorateAck(aSpace: tQuicPacketSpace; var aAck: tQuicFrame); function ReceiveCounts(aSpace: tQuicPacketSpace): tQuicEcnCounts; procedure RestartPath(aMarkingAvailable: Boolean = True); procedure Disable; procedure DiscardSpace(aSpace: tQuicPacketSpace); property State: tQuicEcnState read fState; property TrackedPacketCount: Integer read GetTrackedPacketCount; property OldPathPending: Integer read GetOldPathPending; property TestingSentCount: Integer read fTestSent; property TestingLostCount: Integer read fTestLost;

Types (enumerations, sets, aliases)

enumtQuicEcnState

  tQuicEcnState = (qesTesting, qesUnknown, qesFailed, qesCapable);