Expand description
Metrics Measurement Protocol compatibility exports.
Runtime-agnostic MMP logic lives under proto::mmp; this module keeps the
existing public crate::mmp path stable.
Modules§
- algorithms
- MMP algorithmic building blocks.
- metrics
- MMP derived metrics.
- receiver
- MMP receiver state machine.
- report
- MMP report wire format: SenderReport and ReceiverReport.
- sender
- MMP sender state machine.
Structs§
- Dual
Ewma - Dual EWMA for trend detection on a single metric.
- Jitter
Estimator - Interarrival jitter estimator using RFC 3550 algorithm.
- MmpConfig
- MMP configuration (
node.mmp.*). - MmpMetrics
- Derived MMP metrics, updated from incoming ReceiverReports.
- MmpPeer
State - Combined MMP state for a single peer link.
- MmpSession
State - Combined MMP state for a single end-to-end session.
- OwdTrend
Detector - OWD trend detector using linear regression over a ring buffer.
- Path
MtuState - Path MTU tracking for a single session.
- Receiver
Report - ReceiverReport (msg_type 0x02, 68-byte body including type byte)
- Receiver
State - Per-peer receiver-side MMP state.
- Sender
Report - Link-layer sender report.
- Sender
State - Per-peer sender-side MMP state.
- Spin
BitState - Spin bit state for passive RTT estimation.
- Srtt
Estimator - Smoothed RTT estimator using Jacobson’s algorithm.
Enums§
- MmpMode
- MMP operating mode.
Constants§
- COLD_
START_ SAMPLES - Number of SRTT samples before transitioning from cold-start to normal floor.
- DEFAULT_
COLD_ START_ INTERVAL_ MS - Default report interval before SRTT is available (cold start).
- DEFAULT_
LOG_ INTERVAL_ SECS - Default operator log interval in seconds.
- DEFAULT_
OWD_ WINDOW_ SIZE - Default OWD ring buffer capacity.
- EWMA_
LONG_ ALPHA - Dual EWMA long-term: α = 1/32.
- EWMA_
SHORT_ ALPHA - Dual EWMA short-term: α = 1/4.
- JITTER_
ALPHA_ SHIFT - Jitter EWMA: α = 1/16 (RFC 3550 §6.4.1).
- MAX_
REPORT_ INTERVAL_ MS - Maximum report interval (SRTT clamp ceiling).
- MAX_
SESSION_ REPORT_ INTERVAL_ MS - Session-layer maximum report interval.
- MIN_
REPORT_ INTERVAL_ MS - Minimum report interval (SRTT clamp floor).
- MIN_
SESSION_ REPORT_ INTERVAL_ MS - Session-layer minimum report interval.
- RECEIVER_
REPORT_ BODY_ SIZE - ReceiverReport body size (after msg_type byte): 3 reserved + 64 payload = 67.
- RECEIVER_
REPORT_ WIRE_ SIZE - ReceiverReport total wire size including inner header: 5 + 67 = 72.
- RTTVAR_
BETA_ SHIFT - RTTVAR: β = 1/4 (Jacobson, RFC 6298).
- SENDER_
REPORT_ BODY_ SIZE - SenderReport body size (after msg_type byte): 3 reserved + 44 payload = 47.
- SENDER_
REPORT_ WIRE_ SIZE - SenderReport total wire size including inner header: 5 + 47 = 52.
- SESSION_
COLD_ START_ INTERVAL_ MS - Session-layer cold-start report interval (before SRTT is available).
- SRTT_
ALPHA_ SHIFT - SRTT: α = 1/8 (Jacobson, RFC 6298).
Functions§
- compute_
etx - Compute Expected Transmission Count from bidirectional delivery ratios.