LinkQuality

data class LinkQuality(val rttMillis: Double, val rttVarianceMillis: Double, val packetLossRatio: Double, val probesSent: Long, val probesDelivered: Long)(source)

A point-in-time snapshot of one connection's measured link quality, produced by the opt-in probe (MultiConnectionUDPClient.startProbe / Connection.startProbe). All figures come from the same instant, so RTT and loss are mutually consistent.

Constructors

Link copied to clipboard
constructor(rttMillis: Double, rttVarianceMillis: Double, packetLossRatio: Double, probesSent: Long, probesDelivered: Long)

Properties

Link copied to clipboard

fraction of recently-resolved probes that went unanswered within the loss horizon, 0.0..1.0; lagging and windowed - not a fast congestion trigger

Link copied to clipboard

total probes answered with a matching PONG

Link copied to clipboard

total probes this side has sent since MultiConnectionUDPClient.startProbe / Connection.startProbe

Link copied to clipboard

smoothed round-trip time (EWMA, RFC 6298 SRTT), milliseconds

Link copied to clipboard

smoothed RTT variation (RFC 6298 RTTVAR) - a jitter proxy; size an interpolation delay from rttMillis + k * rttVarianceMillis