Skip to main content

CAN Gateway Analysis Specification

Latency and Message Loss

  • Measure the time difference between the gateway source channel and destination channel for the specified CAN frame.
  • Report maximum, minimum, and average latency, as well as the average interval at the source.
  • Detect message loss when a frame appears on the source channel but never on the destination, or when the destination fails to appear before the source buffer reaches 30 frames.
  • Matching considers payload length; when lengths differ, the comparison uses the shorter length.

Configuration Parameters

For each analysis entry you can register:

  1. Frame information (protocol and ID).
  2. Gateway mapping (source channel and destination channel).

Residence Peak Analysis

  • Track the difference between the number of frames observed on the source and destination to identify peak queue lengths.
  • Also calculate the peak per destination channel when multiple sources feed the same destination.

Output Metrics

  • Latency: Maximum/minimum timestamps, average latency, average source interval, maximum-latency ratio, and sample count.
  • Message Loss: Timestamp of loss events.
  • Residence Peaks: Peak value and timestamp per destination and per frame, along with sample counts.

These calculations exclude frames detected on the destination before they appear on the source. Use them to evaluate gateway performance under various conditions.