Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::packet::LinkMetrics Struct Reference

Link metrics. More...

#include <ilink_meter.h>

Public Attributes

packet::ext_seqnum_t ext_first_seqnum
 Extended lowest RTP seqnum received. The low 16 bits contain the lowest sequence number received in an RTP data packet, and the rest bits extend that sequence number with the corresponding count of seqnum cycles. More...
 
packet::ext_seqnum_t ext_last_seqnum
 Extended highest RTP seqnum received. The low 16 bits contain the highest sequence number received in an RTP data packet, and the rest bits extend that sequence number with the corresponding count of seqnum cycles. More...
 
uint64_t total_packets
 Total amount of packets sent or expected to be received. On sender, this counter is just incremented every packet. On receiver, it is derived from seqnums. More...
 
int64_t lost_packets
 Cumulative count of lost packets. The total number of RTP data packets that have been lost since the beginning of reception. Defined to be the number of packets expected minus the number of packets actually received, where the number of packets received includes any which are late or duplicates. Packets that arrive late are not counted as lost, and the loss may be negative if there are duplicates. More...
 
core::nanoseconds_t jitter
 Estimated interarrival jitter. An estimate of the statistical variance of the RTP data packet interarrival time. More...
 
core::nanoseconds_t rtt
 Estimated round-trip time between sender and receiver. Computed based on NTP-like timestamp exchange implemennted by RTCP protocol. Read-only field. You can read it on sender, but you should not set it on receiver. More...
 

Detailed Description

Link metrics.

Definition at line 23 of file ilink_meter.h.

Member Data Documentation

◆ ext_first_seqnum

packet::ext_seqnum_t roc::packet::LinkMetrics::ext_first_seqnum

Extended lowest RTP seqnum received. The low 16 bits contain the lowest sequence number received in an RTP data packet, and the rest bits extend that sequence number with the corresponding count of seqnum cycles.

Definition at line 28 of file ilink_meter.h.

◆ ext_last_seqnum

packet::ext_seqnum_t roc::packet::LinkMetrics::ext_last_seqnum

Extended highest RTP seqnum received. The low 16 bits contain the highest sequence number received in an RTP data packet, and the rest bits extend that sequence number with the corresponding count of seqnum cycles.

Definition at line 34 of file ilink_meter.h.

◆ jitter

core::nanoseconds_t roc::packet::LinkMetrics::jitter

Estimated interarrival jitter. An estimate of the statistical variance of the RTP data packet interarrival time.

Definition at line 52 of file ilink_meter.h.

◆ lost_packets

int64_t roc::packet::LinkMetrics::lost_packets

Cumulative count of lost packets. The total number of RTP data packets that have been lost since the beginning of reception. Defined to be the number of packets expected minus the number of packets actually received, where the number of packets received includes any which are late or duplicates. Packets that arrive late are not counted as lost, and the loss may be negative if there are duplicates.

Definition at line 47 of file ilink_meter.h.

◆ rtt

core::nanoseconds_t roc::packet::LinkMetrics::rtt

Estimated round-trip time between sender and receiver. Computed based on NTP-like timestamp exchange implemennted by RTCP protocol. Read-only field. You can read it on sender, but you should not set it on receiver.

Definition at line 58 of file ilink_meter.h.

◆ total_packets

uint64_t roc::packet::LinkMetrics::total_packets

Total amount of packets sent or expected to be received. On sender, this counter is just incremented every packet. On receiver, it is derived from seqnums.

Definition at line 39 of file ilink_meter.h.


The documentation for this struct was generated from the following file: