pub struct AssociationStats { /* private fields */ }Expand description
Association statistics
Implementations§
Source§impl AssociationStats
impl AssociationStats
Sourcepub fn get_num_datas(&mut self) -> u64
pub fn get_num_datas(&mut self) -> u64
The number of DATA chunks received.
Sourcepub fn get_num_sacks(&mut self) -> u64
pub fn get_num_sacks(&mut self) -> u64
The number of SACK chunks received.
Sourcepub fn inc_t3timeouts(&mut self)
pub fn inc_t3timeouts(&mut self)
Counts one T3-rtx retransmission timeout.
Sourcepub fn get_num_t3timeouts(&mut self) -> u64
pub fn get_num_t3timeouts(&mut self) -> u64
The number of T3-rtx retransmission timeouts, a signal of loss or a stalled path.
Sourcepub fn inc_ack_timeouts(&mut self)
pub fn inc_ack_timeouts(&mut self)
Counts one delayed-acknowledgement timeout.
Sourcepub fn get_num_ack_timeouts(&mut self) -> u64
pub fn get_num_ack_timeouts(&mut self) -> u64
The number of delayed-acknowledgement timeouts.
Sourcepub fn inc_fast_retrans(&mut self)
pub fn inc_fast_retrans(&mut self)
Counts one fast retransmission.
Sourcepub fn get_num_fast_retrans(&mut self) -> u64
pub fn get_num_fast_retrans(&mut self) -> u64
The number of fast retransmissions, triggered by SACK gap reports rather than a timeout.
Sourcepub fn inc_retransmissions(&mut self)
pub fn inc_retransmissions(&mut self)
Counts one DATA chunk sent again (by T3-rtx, Fast Retransmit or with a repeated COOKIE ACK).
Sourcepub fn get_num_retransmissions(&mut self) -> u64
pub fn get_num_retransmissions(&mut self) -> u64
The number of DATA chunks sent again, whatever made them go again.
Sourcepub fn inc_partially_reliable_retransmissions(&mut self)
pub fn inc_partially_reliable_retransmissions(&mut self)
Counts one DATA chunk of a partially reliable message (RFC 3758: a lifetime or a retransmission limit, RFC 7496) sent again.
Sourcepub fn get_num_partially_reliable_retransmissions(&mut self) -> u64
pub fn get_num_partially_reliable_retransmissions(&mut self) -> u64
Of Self::get_num_retransmissions, the DATA chunks of partially reliable messages
(RFC 3758, RFC 7496: sent with a lifetime or a retransmission limit) sent again; the rest
are reliable messages (on a WebRTC association, the DCEP messages, RFC 8832 section 5,
beside the reliable channels). With a limit of zero retransmissions (RFC 8831 section
6.6, maxRetransmits 0) and the peer’s support for partial reliability, a message’s
chunks are never counted here. Without that support (RFC 3758 3.3) partially reliable
messages are retransmitted as reliable ones, and counted here.
Sourcepub fn inc_abandoned_messages(&mut self)
pub fn inc_abandoned_messages(&mut self)
Counts one message abandoned (RFC 3758 3.5 A2): sent in part or whole and never to be sent again, or dropped before it was sent.
Sourcepub fn get_num_abandoned_messages(&mut self) -> u64
pub fn get_num_abandoned_messages(&mut self) -> u64
The number of messages abandoned under their partial reliability policy.
Sourcepub fn inc_forward_tsns(&mut self)
pub fn inc_forward_tsns(&mut self)
Counts one FORWARD TSN (or I-FORWARD TSN) chunk sent.
Sourcepub fn get_num_forward_tsns(&mut self) -> u64
pub fn get_num_forward_tsns(&mut self) -> u64
The number of FORWARD TSN (or I-FORWARD TSN) chunks sent (RFC 3758 3.5 C3, A5).
Sourcepub fn inc_fast_retrans_abandoned(&mut self)
pub fn inc_fast_retrans_abandoned(&mut self)
Counts one chunk that Fast Retransmit would have sent again and abandoned instead: its message’s retransmission budget was spent (RFC 3758 3.5 A2, RFC 7496).
Sourcepub fn get_num_fast_retrans_abandoned(&mut self) -> u64
pub fn get_num_fast_retrans_abandoned(&mut self) -> u64
The number of losses Fast Retransmit found in partially reliable messages whose budget was spent, so that they were abandoned (and skipped by FORWARD TSN) without waiting for T3-rtx.
Sourcepub fn add_t3_wait(&mut self, rto_ms: u64)
pub fn add_t3_wait(&mut self, rto_ms: u64)
Adds the RTO, in milliseconds, that a T3-rtx expiry waited out.
Sourcepub fn get_t3_wait(&mut self) -> Duration
pub fn get_t3_wait(&mut self) -> Duration
The sum of the RTOs the T3-rtx expiries waited out (each the RTO in force when the timer expired, before the back-off of RFC 9260 6.3.3 E2): how much of a transfer’s time the retransmission timer accounts for.
Sourcepub fn inc_sack_losses(&mut self)
pub fn inc_sack_losses(&mut self)
Counts one SACK loss found from a Duplicate TSN report (RFC 9260 6.2).
Sourcepub fn get_num_sack_losses(&mut self) -> u64
pub fn get_num_sack_losses(&mut self) -> u64
The SACKs found lost (RFC 9260 6.2: the sender “MAY use the duplicate TSN information to determine if SACK chunk loss is occurring”): DATA this side sent again on a retransmission timeout that the peer then reported as a duplicate, which it had received before, so the SACK that acknowledged it did not arrive in time.
Sourcepub fn inc_reneged(&mut self)
pub fn inc_reneged(&mut self)
Counts one DATA chunk this receiver dropped from those it held above its cumulative TSN.
Sourcepub fn get_num_reneged(&mut self) -> u64
pub fn get_num_reneged(&mut self) -> u64
The DATA chunks this receiver reneged on (RFC 9260 6.2.1): held above its cumulative TSN,
which a SACK reports in a Gap Ack Block, and dropped, so the peer has to send them again.
Only
TransportConfig::with_zero_window_renege does so (RFC 9260 6.2: a chunk filling a
gap through a closed window takes the place of the largest TSN held for reordering).