Automotive Performance Metrics · Network metric
Packet Loss
Also known as frame loss, message loss, loss ratio, drop rate, dropped packets
Packet loss is the failure of a packet, frame or message to reach its destination within an acceptable time. It is reported as a loss ratio (lost / sent), stating where loss is counted and how long the receiver waits.
Explanation
RFC 7680 (IETF STD 82) defines one-way packet loss for IP networks: a packet counts as lost if it does not arrive within a waiting time Tmax, so a very late packet is treated as lost. Its sample statistic, Type-P-One-way-Packet-Loss-Ratio, is the number of losses divided by the number of packets sent, and Tmax must be reported because it changes the result.
Loss occurs at many layers, each counted differently. In Linux, rx_missed_errors counts packets the network device dropped because it ran out of buffers, rx_dropped counts received packets the host did not process, and higher layers such as socket buffers or middleware queues can drop data that never appears in interface counters. End-to-end loss is therefore best measured with sequence numbers at the application level.
Whether loss matters depends on the traffic: periodic sensor streams often prefer fresh data to retransmission, while configuration or diagnostic data must arrive reliably. Values are only comparable with the same counting point, waiting time and traffic pattern.
How it works
Number each packet or message at the sender. At the receiver, record which sequence numbers arrive within Tmax and count the gaps; loss ratio = missing / sent. Separately, read interface counters, for example with ip -s link or under /sys/class/net/<dev>/statistics, to locate where drops occur, and correlate loss bursts with CPU load or link errors.
Automotive applications
- Validating automotive Ethernet links and middleware
- Diagnosing dropped camera or LiDAR data
- Assessing V2X and telematics radio links
- Sizing receive buffers and queues
Example
A LiDAR sends numbered UDP packets. Application-level sequence checks show 0.3% loss, and the network interface's missed-error counter accounts for nearly all of it, pointing to receive-buffer exhaustion on the host rather than cabling or link faults.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- RFC 7680: A One-Way Loss Metric for IP Performance Metrics (IPPM) (opens in a new tab)
- Interface statistics (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.