Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Quic.Path

Feature notes: Asynchronous QUIC server and HTTP/3 component

Classes, interfaces and records

recordtQuicPathKey

LocalAddress: tSocketAddress; RemoteAddress: tSocketAddress;

classtQuicPathManager

Sockets remain the caller's responsibility. A candidate cannot carry application data until a matching response validates a challenge sent in a datagram of at least 1200 bytes. Challenge tokens must be generated unpredictably by the caller and cannot be reused within an attempt. Preview methods do not commit a send; commit only after successful UDP. Times are monotone microseconds supplied by the caller.

constructor Create(aRole: tQuicRole; const aInitialPath: tQuicPathKey; aInitialValidated: Boolean); procedure ValidateActivePath;
Authenticated Handshake receipt or an independently validated token proves the active peer address before TLS handshake confirmation.
procedure SetHandshakeConfirmed; procedure AbandonCandidate;
A hard candidate-socket failure never closes the working path.
function BeginCandidate(const aPath: tQuicPathKey; aCause: tQuicPathCause; aNowMicros: UInt64): Boolean; function ChallengeDue(aNowMicros: UInt64; out aPath: tQuicPathKey; out aMinimumBytes: Integer): Boolean; procedure ChallengeSent(const aPath: tQuicPathKey; const aToken: TBytes; aWireBytes: Integer; aNowMicros, aPtoMicros: UInt64);
Call before DatagramSent so its amplification check sees unspent credit.
function PathResponse(const aToken: TBytes; aNowMicros: UInt64; out aResetCongestion: Boolean): Boolean;
RFC 9000 permits the matching response to arrive on any receive path. The opaque token identifies the path where the challenge was sent. True commits the candidate; False explicitly returns no CC reset.
procedure DatagramReceived(const aPath: tQuicPathKey; aWireBytes: Integer); procedure DatagramSent(const aPath: tQuicPathKey; aWireBytes: Integer); function CanSend(const aPath: tQuicPathKey; aWireBytes: Integer; aProbing: Boolean; aPendingBytes: UInt64 = 0): Boolean;
aPendingBytes: datagrams granted but not yet reported by DatagramSent, counted as sent against the amplification limit.
function Poll(aNowMicros: UInt64): Boolean; function NextTimeout(out aDeadline: UInt64): Boolean; property ActivePath: tQuicPathKey read fActivePath; property CandidatePath: tQuicPathKey read fCandidatePath; property ActiveValidated: Boolean read fActiveValidated; property CandidatePending: Boolean read fCandidatePending; property CandidateAddressValidated: Boolean read fCandidateAddressValidated; property ChallengeAttempts: Integer read fChallengeAttempts; property PeerDisableActiveMigration: Boolean read fPeerDisableActiveMigration write fPeerDisableActiveMigration;

classtQuicPathMtu

Conservative DPLPMTUD policy with one outstanding PING/PADDING probe. A configured ceiling of 1200 disables growth. Authenticated exact packet number AND datagram-size acknowledgement is required for promotion. A matched probe loss is reported separately so its loss does not imply congestion; the probe still consumes congestion window while in flight. No unauthenticated ICMP input can alter the proven datagram size.

constructor Create(aCeiling: Integer = cQuicBaseDatagramSize); procedure Reset(aCeiling: Integer); function NextProbe(aNowMicros: UInt64; out aWireBytes: Integer): Boolean; procedure ProbeSent(aPacketNumber: UInt64; aWireBytes: Integer; aNowMicros, aPtoMicros: UInt64); function IsProbe(aPacketNumber: UInt64; aWireBytes: Integer): Boolean; function PacketAcknowledged(aPacketNumber: UInt64; aWireBytes: Integer; aNowMicros: UInt64): Boolean; function PacketLost(aPacketNumber: UInt64; aWireBytes: Integer; aNowMicros, aPtoMicros: UInt64): Boolean; procedure OrdinaryPacketAcknowledged(aPacketNumber: UInt64; aWireBytes: Integer; aNowMicros: UInt64); procedure OrdinaryPacketLost(aPacketNumber: UInt64; aWireBytes: Integer; aNowMicros, aPtoMicros: UInt64); function Poll(aNowMicros, aPtoMicros: UInt64): Boolean; function NextTimeout(out aDeadline: UInt64): Boolean; property CurrentMtu: Integer read fCurrentMtu; property Ceiling: Integer read fCeiling; property ProbePending: Boolean read fProbePending; property ProbeSize: Integer read fProbeSize; property ProbePacketNumber: UInt64 read fProbePacketNumber; property ProbeAttempts: Integer read fProbeAttempts;

Types (enumerations, sets, aliases)

enumtQuicPathCause

  tQuicPathCause = (qpcLocalMigration, qpcPeerRebinding, qpcPreferredAddress);

Routines