pub struct PathStats {Show 24 fields
pub local_addr: SocketAddr,
pub peer_addr: SocketAddr,
pub validation_state: PathState,
pub active: bool,
pub recv: usize,
pub sent: usize,
pub lost: usize,
pub retrans: usize,
pub total_pto_count: usize,
pub dgram_recv: usize,
pub dgram_sent: usize,
pub rtt: Duration,
pub min_rtt: Option<Duration>,
pub max_rtt: Option<Duration>,
pub rttvar: Duration,
pub cwnd: usize,
pub sent_bytes: u64,
pub recv_bytes: u64,
pub lost_bytes: u64,
pub stream_retrans_bytes: u64,
pub pmtu: usize,
pub delivery_rate: u64,
pub max_bandwidth: Option<u64>,
pub startup_exit: Option<StartupExit>,
}Expand description
Statistics about the path of a connection.
A connection’s path statistics can be collected using the path_stats()
method.
The local address of the path.
The peer address of the path.
The path validation state.
Whether the path is marked as active.
The number of QUIC packets received.
The number of QUIC packets sent.
The number of QUIC packets that were lost.
The number of sent QUIC packets with retransmitted data.
The number of times PTO (probe timeout) fired.
Loss usually happens in a burst so the number of packets lost will depend on the volume of inflight packets at the time of loss (which can be arbitrary). PTO count measures the number of loss events and provides a normalized loss metric.
The number of DATAGRAM frames received.
The number of DATAGRAM frames sent.
The estimated round-trip time of the connection.
The minimum round-trip time observed.
The maximum round-trip time observed.
The estimated round-trip time variation in samples using a mean variation.
The size of the connection’s congestion window in bytes.
The number of sent bytes.
The number of received bytes.
The number of bytes lost.
The number of stream bytes retransmitted.
The current PMTU for the connection.
The most recent data delivery rate estimate in bytes/s.
Note that this value could be inaccurate if the application does not
respect pacing hints (see SendInfo.at and Pacing for more
details).
max_bandwidth: Option<u64>The maximum bandwidth estimate for the connection in bytes/s.
Note: not all congestion control algorithms provide this metric; it is currently only implemented for bbr2_gcongestion.
Statistics from when a CCA first exited the startup phase.