Path: blob/main/crypto/openssl/doc/designs/quic-design/quic-statm.md
34876 views
QUIC Statistics Manager
The statistics manager keeps track of RTT statistics for use by the QUIC implementation.
It provides the following interface:
Instantiation
The QUIC statistics manager is instantiated as follows:
The structure is defined in headers, so it may be initialised without needing its own memory allocation. However, other code should not examine the fields of OSSL_STATM
directly.
Get RTT Info
The current RTT info is retrieved using the function ossl_statm_get_rtt_info
, which fills an OSSL_RTT_INFO
structure:
Update RTT
New RTT samples are provided using the ossl_statm_update_rtt
function:
ack_delay
. This is the ACK Delay value; see RFC 9000.override_latest_rtt
provides a new latest RTT sample. If it isOSSL_TIME_ZERO
, the existing Latest RTT value is used when updating the RTT.
The maximum ACK delay configured using ossl_statm_set_max_ack_delay
is not enforced automatically on the ack_delay
argument as the circumstances where this should be enforced are context sensitive. It is the caller's responsibility to retrieve the value and enforce the maximum ACK delay if appropriate.
Set Max. Ack Delay
Sets the maximum ACK delay field reported by OSSL_RTT_INFO
.