Skip to content

Deterministic Real-Time Networking (TSN) for Airside Autonomous GSE

Table of Contents

  1. Introduction & Motivation
  2. TSN Standards Overview
  3. Automotive TSN Architecture
  4. CAN Bus Limitations and Migration
  5. Mixed-Criticality Scheduling
  6. Clock Synchronization (IEEE 802.1AS / gPTP)
  7. TSN for Multi-Sensor Fusion
  8. CAN-to-Ethernet Gateway Architecture
  9. 5G TSN Integration for V2X
  10. In-Vehicle Network Architecture for reference airside AV stack
  11. Functional Safety and TSN
  12. Production Deployments and Case Studies
  13. Implementation Roadmap
  14. Key Takeaways
  15. References

1. Introduction & Motivation

1.1 The Networking Gap in Autonomous GSE

the reference airside AV stack's current in-vehicle network architecture relies on:

  • CAN bus (ISO 11898): Vehicle control, actuators, safety signals — 500 kbps to 1 Mbps
  • Ethernet (standard, non-deterministic): LiDAR point clouds, compute interconnect — 1 Gbps
  • Two separate domains with no unified timing or priority management

This creates fundamental problems:

ProblemImpactCurrent Workaround
CAN bandwidth ceiling1 Mbps cannot carry sensor fusion dataSeparate Ethernet for sensors, CAN for control
No common time referenceLiDAR, IMU, GPS, cameras have independent timestampsSoftware synchronization (ms-level jitter)
No traffic priorityEmergency stop competes with diagnostic loggingSeparate CAN buses for safety vs. non-safety
Non-deterministic EthernetLiDAR burst can delay control commands by msOver-provisioning (hope for the best)
No end-to-end latency guaranteeCannot certify max latency from sensor to actuatorConservative timing margins waste compute budget

1.2 Why TSN Matters for Airside AV

CURRENT STATE:                          TSN-ENABLED STATE:

  LiDAR ──[Ethernet]──→ Orin          LiDAR ──[TSN Ethernet]──→ Orin
  Camera ──[MIPI/Eth]──→ Orin          Camera ──[TSN Ethernet]──→ Orin
  Radar ──[Ethernet]──→ Orin           Radar ──[TSN Ethernet]──→ Orin
                                        IMU ──[TSN Ethernet]──→ Orin
  IMU ──[SPI]──→ Orin                  
                                        ↕ All on ONE unified network
  Orin ──[CAN]──→ Steering              ↕ with guaranteed timing
  Orin ──[CAN]──→ Brakes               
  Orin ──[CAN]──→ Drive motor          Orin ──[TSN Ethernet]──→ TSN-CAN GW
                                              ──→ Steering
  Safety MCU ──[CAN]──→ E-Stop               ──→ Brakes
                                              ──→ Drive motor
  Result: Two domains, no              
  timing guarantees,                   Safety MCU ──[TSN Ethernet]──→ E-Stop
  ms-level synchronization             
                                        Result: ONE deterministic network,
                                        sub-μs synchronization,
                                        guaranteed <500μs latency

1.3 Market Context

The automotive TSN market reached $1.8B in 2025 and is projected to reach $7.2B by 2034 (CAGR 16.7%). ADAS/autonomous driving accounts for ~39% of revenue. Production TSN networks are deployed in BMW iX, Mercedes S-Class, and Volvo EX90 as of 2025.


2. TSN Standards Overview

2.1 IEEE 802.1 TSN Task Group Standards

TSN is not a single standard but a collection of IEEE 802.1 amendments that together provide deterministic, time-synchronized, fault-tolerant Ethernet networking.

┌──────────────────────────────────────────────────────────────┐
│                    TSN STANDARD STACK                         │
├──────────────────────────────────────────────────────────────┤
│                                                              │
│  TIME SYNCHRONIZATION                                        │
│  ┌────────────────────────────────────────┐                  │
│  │ IEEE 802.1AS-2020 (gPTP)              │ Sub-μs clock sync│
│  │ Generalized Precision Time Protocol    │ across network   │
│  └────────────────────────────────────────┘                  │
│                                                              │
│  TRAFFIC SCHEDULING                                          │
│  ┌────────────────────────────────────────┐                  │
│  │ IEEE 802.1Qbv (TAS)                   │ Time-aware gates │
│  │ Time-Aware Shaper                      │ per queue        │
│  ├────────────────────────────────────────┤                  │
│  │ IEEE 802.1Qbu (Frame Preemption)      │ Interrupt low-   │
│  │ + IEEE 802.3br (Interspersing Express) │ priority frames  │
│  ├────────────────────────────────────────┤                  │
│  │ IEEE 802.1Qav (CBS)                   │ Credit-based     │
│  │ Credit-Based Shaper                    │ bandwidth limit  │
│  └────────────────────────────────────────┘                  │
│                                                              │
│  RELIABILITY                                                 │
│  ┌────────────────────────────────────────┐                  │
│  │ IEEE 802.1CB (FRER)                   │ Frame             │
│  │ Frame Replication and Elimination      │ redundancy       │
│  ├────────────────────────────────────────┤                  │
│  │ IEEE 802.1Qci (PSFP)                 │ Per-stream        │
│  │ Per-Stream Filtering and Policing      │ filtering        │
│  └────────────────────────────────────────┘                  │
│                                                              │
│  STREAM MANAGEMENT                                           │
│  ┌────────────────────────────────────────┐                  │
│  │ IEEE 802.1Qcc (SRP Enhancement)      │ Centralized or   │
│  │ Stream Reservation Protocol            │ distributed      │
│  │                                        │ configuration    │
│  └────────────────────────────────────────┘                  │
│                                                              │
│  SECURITY                                                    │
│  ┌────────────────────────────────────────┐                  │
│  │ IEEE 802.1AE (MACsec)                │ L2 encryption    │
│  │ Media Access Control Security          │ + authentication │
│  └────────────────────────────────────────┘                  │
└──────────────────────────────────────────────────────────────┘

2.2 Key Standards for Airside AV

StandardFunctionAirside RelevancePriority
802.1AS (gPTP)Clock synchronizationMulti-sensor timestamp alignmentCritical
802.1Qbv (TAS)Time-aware schedulingGuaranteed latency for safety commandsCritical
802.1Qbu/802.3brFrame preemptionE-stop preempts LiDAR data transferHigh
802.1CB (FRER)Frame redundancyDual-path safety message deliveryHigh
802.1Qci (PSFP)Stream filteringIsolate safety from non-safety trafficMedium
802.1QccStream managementCentralized network configurationMedium
802.1AE (MACsec)L2 securityPrevent spoofed safety commandsHigh

3. Automotive TSN Architecture

3.1 Zonal Architecture

Modern automotive networks are transitioning from domain-based (powertrain CAN, body CAN, chassis CAN) to zonal architecture with TSN backbone:

TRADITIONAL (Domain):               ZONAL with TSN:

  ┌─── Powertrain CAN ───┐         ┌─── Zone 1 (Front) ───┐
  │ Engine, Transmission  │         │ LiDAR, Camera, Radar  │
  └───────────────────────┘         │ Steering, Brakes      │
  ┌─── Chassis CAN ──────┐         └───────┬───────────────┘
  │ Steering, Brakes, ABS │                 │ TSN Ethernet
  └───────────────────────┘         ┌───────┴───────────────┐
  ┌─── ADAS Ethernet ────┐         │   Central Compute     │
  │ LiDAR, Camera, Radar  │         │   (Orin + Safety MCU) │
  └───────────────────────┘         └───────┬───────────────┘
  ┌─── Body CAN ─────────┐                 │ TSN Ethernet
  │ Lights, HVAC, Doors   │         ┌───────┴───────────────┐
  └───────────────────────┘         │ Zone 2 (Rear)         │
                                    │ LiDAR, Drive motor    │
  4-6 separate networks             │ Lights, power mgmt    │
  No common timing                  └───────────────────────┘
  Limited bandwidth sharing         
                                    1 unified TSN network
                                    Sub-μs synchronized
                                    Guaranteed latency

3.2 TSN Ethernet Physical Layer Options

PHYSpeedCableMax DistanceAutomotive GradeCost/Port
100BASE-T1 (BroadR-Reach)100 MbpsSingle UTP pair15mOPEN Alliance TC8$2-5
1000BASE-T11 GbpsSingle UTP pair15-40mOPEN Alliance TC10$5-10
2.5GBASE-T1 (MultiGBASE-T1)2.5 GbpsSingle UTP pair15mEmerging$8-15
10GBASE-T110 GbpsSingle UTP pair15mAnnounced (Marvell)$15-30
Standard Ethernet (1000BASE-T)1 GbpsCat5e/Cat6100mNo (consumer-grade)$1-3

For reference airside AV stack: 1000BASE-T1 is the optimal choice — sufficient bandwidth for LiDAR point clouds (each RoboSense at ~100 Mbps), automotive-grade, single-pair wiring reduces cable weight and connector count.

3.3 Bandwidth Requirements Analysis

Data SourceRaw RateAfter CompressionPeriodPriority
RoboSense RSHELIOS (×6)6 × 100 Mbps = 600 Mbps6 × 40 Mbps = 240 Mbps100 ms (10 Hz)High
Cameras (×4)4 × 200 Mbps = 800 Mbps4 × 50 Mbps = 200 Mbps33 ms (30 Hz)Medium
4D Radar (×2)2 × 10 Mbps = 20 MbpsMinimal compression50 ms (20 Hz)High
IMU (500 Hz)0.1 MbpsN/A2 msCritical
GPS/RTK0.01 MbpsN/A100 msHigh
Safety commands0.01 MbpsN/A1-10 msCritical
Diagnostic/logging50-100 MbpsVariableBest-effortLow
V2X communication1-10 MbpsVariable10-100 msHigh
Total~1.5 Gbps~500 Mbps

A 1 Gbps TSN backbone is sufficient for compressed sensor data. 2.5 Gbps provides headroom for uncompressed or additional sensors.


4. CAN Bus Limitations and Migration

4.1 CAN Bus in Current reference airside AV stack Stack

Current reference airside AV stack CAN Architecture (estimated):

  CAN Bus 1 (Safety, 500 kbps):
  ├── Safety MCU (STM32H725)
  ├── Emergency stop relay
  ├── Watchdog signals
  └── Speed limiter

  CAN Bus 2 (Drive, 500 kbps):
  ├── Steering actuator (third-generation tug: Ackermann + crab)
  ├── Drive motor controller
  ├── Brake controller
  └── Wheel odometry encoder

  CAN Bus 3 (Body/Accessories, 250 kbps):
  ├── Lights (indicators, headlights)
  ├── Horn
  ├── Battery management system (BMS)
  └── HVAC (if equipped)

  Total: 3 CAN buses, 1.25 Mbps aggregate bandwidth

4.2 CAN Bus Limitations

LimitationImpact on Autonomous OperationsSeverity
500 kbps max per busCannot carry sensor data — separate Ethernet neededHigh
8-byte payload (Classic CAN)Complex messages need multi-frame transport protocolMedium
No global clockCAN timestamps are per-node, not synchronizedHigh
Priority inversionLow-priority frame in transmission delays high-priorityMedium
Bus-level contentionMore nodes = more collisions = unpredictable latencyMedium
No redundancySingle wire fault disables entire busHigh
Distance limit40m at 1 Mbps (sufficient for vehicle, not for fleet)Low

4.3 CAN FD as Intermediate Step

CAN FD (Flexible Data-rate) extends CAN while maintaining backward compatibility:

ParameterClassic CANCAN FDEthernet TSN
Data rate500 kbps - 1 Mbps2-8 Mbps100 Mbps - 10 Gbps
Payload8 bytes64 bytes1500+ bytes
ArbitrationCSMA/CRCSMA/CR (same)Scheduled (TAS)
Time syncNoneNone nativegPTP (sub-μs)
DeterminismPriority-based, boundedSame as CANTime-triggered, guaranteed
RedundancyNoneNoneFRER (802.1CB)
Backward compatibleWith CANRequires gateway

CAN FD verdict for reference airside AV stack: Useful upgrade for actuator control (8x payload, 8x speed), but does not solve the fundamental problems of no clock sync, no deterministic scheduling, and no redundancy. CAN FD is a tactical improvement; TSN is the strategic solution.


5. Mixed-Criticality Scheduling

5.1 Traffic Classes for Airside AV

TSN enables multiple traffic classes with different timing guarantees on a single network:

Traffic ClassASILMax LatencyBandwidthExample Traffic
Safety-Critical (SC)ASIL D<100 μs<1 MbpsE-stop, brake command, geofence violation
Time-Triggered (TT)ASIL B<500 μs~10 MbpsSteering command, speed setpoint, safety heartbeat
Rate-Constrained (RC)QM-ASIL A<2 ms~500 MbpsLiDAR point clouds, camera frames, radar data
Best-Effort (BE)QMNo guaranteeRemainingDiagnostics, logging, software updates, telemetry

5.2 Time-Aware Shaper (802.1Qbv) Configuration

The Time-Aware Shaper (TAS) uses Gate Control Lists (GCL) to open and close traffic queues according to a periodic schedule:

Time (μs)    0    125    250    375    500    625    750    875   1000
             │     │      │      │      │      │      │      │      │
Queue 7 (SC) █░░░░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░
Queue 6 (TT) ░░░██░░░░░░░░░░░░░░░░░██░░░░░░░░░░░░░░░░░░██░░░░░░░░░░
Queue 5 (RC) ░░░░░██████████████░░░░░██████████████░░░░░░░██████████░
Queue 0 (BE) ░░░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░█
             │     │      │      │      │      │      │      │      │
             
█ = Gate OPEN (traffic can transmit)
░ = Gate CLOSED (traffic blocked)

Cycle time: 500 μs (2 kHz — matches 500 Hz IMU rate)

SC window:  10 μs every 500 μs — guaranteed slot for safety commands
TT window:  20 μs every 500 μs — steering, speed setpoints
RC window: 400 μs every 500 μs — bulk sensor data
BE window:  70 μs every 500 μs — diagnostics, logging (fills gaps)

5.3 Frame Preemption (802.1Qbu/802.3br)

Frame preemption allows high-priority "express" traffic to interrupt an in-progress low-priority "preemptable" frame:

Without preemption:
  
  BE frame (1500B)    SC frame (waiting)
  ─────────────────── ─── 
  ├── 12 μs at 1 Gbps ──┤ ← SC delayed by up to 12 μs
  
With preemption:
  
  BE frame (start)  SC frame  BE frame (resume)
  ──────── ──────── ─── ──────────────────
  ├── 4 μs ┤       ├── 2 μs ┤  ← SC delayed <1 μs
           Preempt!         Resume
           
Benefit: Worst-case SC latency drops from 12 μs to <1 μs

Critical for airside: An emergency stop command must never wait for a LiDAR point cloud frame to finish transmitting. Frame preemption guarantees this.

5.4 GCL Configuration Example

python
"""
TSN Gate Control List configuration for a reference airside AV.
Uses tc (traffic control) on Linux with TAPRIO qdisc.
"""

import subprocess

TSN_INTERFACE = "eth0"  # TSN-capable NIC

def configure_taprio():
    """
    Configure Time-Aware Shaper using Linux tc TAPRIO.
    
    Priority mapping:
    TC 0: Best-effort (diagnostics, logging)
    TC 1: Rate-constrained (LiDAR, camera, radar)
    TC 2: Time-triggered (steering, speed commands)
    TC 3: Safety-critical (e-stop, brake, geofence)
    """
    
    # Remove existing qdisc
    subprocess.run([
        "tc", "qdisc", "del", "dev", TSN_INTERFACE, "root"
    ], check=False)
    
    # Configure TAPRIO with 500 μs cycle
    cmd = [
        "tc", "qdisc", "add", "dev", TSN_INTERFACE, "parent", "root",
        "handle", "100",
        "taprio",
        "num_tc", "4",
        # Map socket priorities to traffic classes
        "map", "0", "0", "0", "0", "1", "1", "2", "3",
        # Queue assignments per TC
        "queues", "1@0", "1@1", "1@2", "1@3",
        # Base time (aligned to gPTP epoch)
        "base-time", "0",
        # Gate Control List entries: gate_mask duration_ns
        # Bit mask: TC3=8, TC2=4, TC1=2, TC0=1
        # Entry 1: Safety-critical only (10 μs)
        "sched-entry", "S", "08", "10000",
        # Entry 2: Time-triggered + safety (20 μs)  
        "sched-entry", "S", "0C", "20000",
        # Entry 3: Rate-constrained + TT + SC (400 μs)
        "sched-entry", "S", "0E", "400000",
        # Entry 4: All open including best-effort (70 μs)
        "sched-entry", "S", "0F", "70000",
        # Flags: full offload to hardware
        "flags", "0x2",
    ]
    
    subprocess.run(cmd, check=True)
    print(f"TAPRIO configured on {TSN_INTERFACE} with 500 μs cycle")


def configure_vlan_priorities():
    """
    Map ROS topics to VLAN priorities for TSN classification.
    """
    priority_map = {
        # Safety-critical: VLAN priority 7 → TC 3
        '/safety/estop': 7,
        '/safety/brake_cmd': 7,
        '/safety/geofence_violation': 7,
        '/safety/watchdog': 7,
        
        # Time-triggered: VLAN priority 5-6 → TC 2
        '/control/steering_cmd': 6,
        '/control/speed_cmd': 6,
        '/control/actuator_feedback': 5,
        
        # Rate-constrained: VLAN priority 3-4 → TC 1
        '/rslidar_points': 4,
        '/camera/image_raw': 3,
        '/radar/detections': 4,
        '/imu/data_raw': 4,
        
        # Best-effort: VLAN priority 0-2 → TC 0
        '/diagnostics': 1,
        '/rosout': 0,
        '/telemetry': 1,
    }
    return priority_map

6. Clock Synchronization (IEEE 802.1AS / gPTP)

6.1 Why Sub-Microsecond Synchronization Matters

Current reference airside AV stack sensor synchronization relies on software timestamps:

MethodAccuracyProblem
ROS Time (rospy.Time.now())~1-10 msOS scheduling jitter, network delay variation
NTP~1-10 msSame — NTP over IP, not deterministic
PTP (IEEE 1588)~100 ns - 1 μsGood, but requires PTP-aware switches
gPTP (802.1AS)<100 nsNative to TSN, integrated with TAS
PPS (Pulse-Per-Second)~10-100 nsHardware only, point-to-point

Impact of timing error on sensor fusion:

At 25 km/h (typical airside speed), 1 ms timing error = 7 mm position error per sensor. For 6 LiDARs with independent 1 ms jitter, worst-case fusion error = ~17 mm (root-sum-square). This exceeds the ±5 cm docking tolerance if timing errors are correlated.

With gPTP (<100 ns synchronization): position error < 0.001 mm — effectively zero.

6.2 gPTP Architecture

gPTP Clock Hierarchy:

  ┌───────────────┐
  │ GPS/GNSS      │ ← External reference (UTC)
  │ Grandmaster   │
  └───────┬───────┘
          │ PPS + NMEA
  ┌───────┴───────┐
  │ TSN Switch    │ ← Grandmaster clock (802.1AS)
  │ (Grandmaster) │    Distributes time to all endpoints
  └───┬───┬───┬───┘
      │   │   │
  ┌───┴┐ ┌┴──┐ ┌┴───────┐
  │Orin│ │IMU│ │LiDAR   │ ← Slave clocks (synchronized to GM)
  │    │ │   │ │Driver  │    All timestamps in common timebase
  └────┘ └───┘ └────────┘

Synchronization process (Peer-to-Peer):
1. Switch sends Sync message with timestamp T1
2. Endpoint receives with timestamp T2
3. Endpoint sends PDelay_Req, receives PDelay_Resp
4. Calculate: offset = (T2 - T1) - propagation_delay
5. Adjust local clock by offset
6. Repeat every 125 ms (8 Hz sync rate)

Result: All nodes within <100 ns of Grandmaster clock

6.3 Benefits for reference airside AV stack Sensor Fusion

python
"""
Unified timestamp management with gPTP for GTSAM factor graph.
Replaces per-sensor software timestamps with hardware gPTP time.
"""

class GPTPTimestampManager:
    """
    Provides a single time domain for all sensors via IEEE 802.1AS.
    
    Before gPTP: Each sensor has independent clock
      - LiDAR scan start: sensor internal clock (±1-5 ms from true time)
      - IMU sample: sensor internal clock (±0.1-1 ms)
      - Camera frame: sensor internal clock (±1-5 ms)
      - GPS: GPS time (±10-50 ns, but different domain)
    
    After gPTP: All sensors synchronized to GPS-disciplined grandmaster
      - All timestamps in TAI (International Atomic Time) ± <100 ns
      - No interpolation or approximation needed for sensor fusion
    """
    
    def __init__(self, ptp_device='/dev/ptp0'):
        self.ptp_fd = open(ptp_device, 'rb')
    
    def get_gptm_time(self):
        """Get current gPTP time from hardware clock."""
        # ioctl to read PTP hardware clock
        import fcntl, struct
        PTP_CLOCK_GETTIME = 0xC0106A01
        buf = struct.pack('ll', 0, 0)  # timespec
        result = fcntl.ioctl(self.ptp_fd, PTP_CLOCK_GETTIME, buf)
        sec, nsec = struct.unpack('ll', result)
        return sec + nsec * 1e-9
    
    def align_sensor_data(self, lidar_msg, imu_msg, camera_msg):
        """
        All messages already in gPTP time domain.
        No software synchronization needed — hardware guarantees <100ns.
        
        Before gPTP: needed complex interpolation and extrapolation
        After gPTP: direct lookup, temporal alignment is trivial
        """
        target_time = lidar_msg.header.stamp  # Reference: LiDAR scan start
        
        # IMU at target_time: direct lookup (no interpolation needed at <100ns)
        imu_at_target = self.imu_buffer.get_nearest(target_time)
        
        # Camera at target_time: direct lookup
        camera_at_target = self.camera_buffer.get_nearest(target_time)
        
        return AlignedSensorData(
            lidar=lidar_msg,
            imu=imu_at_target,
            camera=camera_at_target,
            max_temporal_error_ns=100,  # gPTP guarantee
        )

6.4 Multi-LiDAR Synchronization

Currently, synchronizing 4-8 RoboSense LiDARs uses PTP/PPS (IEEE 1588). With gPTP:

AspectCurrent (PTP/PPS)With gPTP (802.1AS)
Sync accuracy<1 μs<100 ns
ConfigurationPer-sensor PTP configAutomatic (802.1AS profile)
Network requirementPTP-aware switchesTSN switches (superset)
Failure detectionManual monitoringgPTP fault annunciation
Integration with TASSeparateNative (same time domain)

6.5 Whole-Vehicle Timebase Policy

gPTP is not only a sensor convenience. It should be the whole-vehicle evidence timebase for autonomy, safety, diagnostics, logging, and incident reconstruction. As of 2026, IEEE 802.1DG-2025 defines the automotive in-vehicle TSN profile for secure, reliable, deterministic Ethernet networks, and IEEE 802.1AS-2020 plus its 2024 hot-standby amendment provide the TSN timing foundation. AUTOSAR Adaptive R24-11 also treats time synchronization as a platform service with time-base resources, synchronization status, and status-change notification.

Policy:

Time domainOwnerConsumersRule
vehicle_global_timeTSN grandmaster, GPS-disciplined when availableSensor timestamps, fusion, control logs, DTC freeze frames, event recorderPrimary mission and evidence timebase.
safety_local_timeSafety MCU / safety PLC oscillatorE-stop, brake watchdogs, safety scanner outputsIndependent local watchdog time; mapped to global time when available.
compute_monotonic_timeOrin/HPC steady clockReal-time scheduling, process supervision, latency timersNever used alone for incident ordering unless mapped to global time.
wall_utc_timeGNSS/NTP/backend when authenticatedFleet UI, maintenance tickets, human-readable reportsPresentation layer; not trusted without provenance.
sensor_native_timeSensor hardware clockRaw capture, driver diagnostics, vendor toolsPreserved for debugging; converted with offset/uncertainty metadata.

The vehicle should publish a timebase-status message at 1-10 Hz:

yaml
vehicle_timebase_status:
  global_time_valid: true
  grandmaster_id: "tsn-sw-central-01"
  clock_domain: "gptp-domain-0"
  source: "gnss_disciplined_gptp"
  offset_from_gm_ns: 42
  offset_uncertainty_ns: 100
  rate_error_ppb: 8
  holdover_state: "locked"
  holdover_age_s: 0
  last_leap_or_step_time: null
  config_id: "timebase-profile-adt3-r4"

Any module that stamps safety-relevant data must also log the current timebase_status or a compact reference to it. A timestamp without its clock domain is not evidence; it is just a number.

6.6 Timestamp Provenance

Timestamp provenance answers four questions: where was the timestamp captured, which clock produced it, how was it converted, and how uncertain is it?

Timestamp classExampleProvenance requirementUse in fusion and forensics
Hardware ingress timestampEthernet MAC RX timestamp on LiDAR packetPHC ID, gPTP domain, switch path, driver versionBest for packet arrival and network latency analysis.
Sensor acquisition timestampCamera exposure start, LiDAR firing time, IMU sample timeSensor clock ID, sync method, offset estimate, trigger sourceBest for multi-sensor alignment.
Driver publish timestampROS message creation timeHost clock, process, queue depth, conversion from PHC if anyUseful for software latency, not physical acquisition time.
Fusion frame timestampPerception cycle reference timeInput sensor timestamps, fusion window, interpolation policyUsed by tracking, prediction, planning, and replay.
Actuator command timestampSteering/brake command send timeControl clock, network clock, gateway timestampUsed for command-to-actuation latency and incident reconstruction.
DTC freeze-frame timestampFault first seen / confirmedTimebase status, local fallback counter, power stateUsed to sequence faults across power and network events.

Implementation rules:

  • Store both acquisition time and receive/publish time for high-rate sensors.
  • Preserve raw sensor-native counters when available; do not overwrite them with ROS time.
  • Convert timestamps through a single timebase library that returns (global_time, uncertainty, source_clock, conversion_status).
  • Mark data as time_uncertain when offset, domain, or holdover quality exceeds the fusion or safety-case threshold.
  • Include timestamp provenance in bag/MCAP logs, DTC freeze frames, and incident bundles.

6.7 Holdover and Grandmaster Failover

GNSS-disciplined gPTP is valuable, but airport stands, warehouses, metal yards, and depots can block or degrade GNSS. The vehicle needs a holdover policy:

StateConditionVehicle action
LockedGrandmaster valid, offsets within thresholdFull timing-dependent ODD allowed.
Holdover warmGrandmaster lost, oscillator age within validated limitContinue mission with increasing timestamp uncertainty.
Holdover degradedHoldover age or rate error exceeds fusion thresholdReduce speed, widen fusion windows, restrict docking and close-clearance maneuvers.
Time unsafeClock step, domain split, failover disagreement, or uncertainty above safety thresholdSafe stop or refuse mission depending on current maneuver.
ReacquiringGrandmaster returns after holdoverSlew where possible; block timestamp jumps from silently reordering logs.

Design points:

  • Use hot-standby grandmaster design where the TSN switch/silicon and profile support it.
  • Keep the safety controller capable of stopping the vehicle using local time if the global timebase fails.
  • Bound the maximum allowed holdover age per ODD. A warehouse AMR may tolerate a longer GNSS-free mission than an airside vehicle performing aircraft docking.
  • Record every grandmaster change, clock step, holdover entry/exit, and domain change as a diagnostic event.
  • Treat time reacquisition like a state transition. Applications should receive a status-change callback and must not assume monotonic global time across a failover.

6.8 Clock-Domain Failure Modes

Failure modeSymptomImpactMitigation
Grandmaster lossNo announce/sync, rising holdover ageFusion timestamps drift; logs remain ordered only locallyHoldover state, speed reduction, safe-stop threshold.
Dual grandmastersTwo valid sources in one vehicleSplit-brain timestamps and contradictory event orderBMCA policy, configured GM priority, domain monitoring.
Clock stepSudden time jump after reacquisition or manual setReplay and incident timeline can reorder eventsPrefer slew; if step occurs, emit leap/step event and segment logs.
Sensor in wrong domainOne LiDAR/camera follows a different PTP domain or free-runsGhosting, tracking jitter, false calibration driftDomain ID checks, source-clock metadata, quarantine sensor.
PHC to system-clock mapping failureHardware timestamps valid but ROS/system time wrongBad software latency and misleading logsLog both PHC and system time; monitor phc2sys or equivalent.
Network asymmetry changeCable/switch path changes cause offset biasSensor alignment bias under otherwise "locked" statusPath-change diagnostics, calibrated asymmetry, post-service validation.
Holdover oscillator agingRate error grows with temperature and ageIncreasing timestamp uncertainty in GNSS-denied operationTemperature-compensated oscillator, drift model, holdover limit.
Power brownout resets time nodeTime service restarts with stale or default timeFault sequence corrupted near power eventSafe rail hold-up for time/event recorder; persist last valid timestamp.

6.9 Incident Reconstruction Implications

Incident reconstruction depends on trustworthy time more than on high log volume. For a near miss, E-stop, aircraft proximity event, or unexpected stop, the evidence bundle should include:

Evidence itemTiming requirement
Sensor frames and detectionsAcquisition timestamp, receive timestamp, clock domain, uncertainty.
Planner and control decisionsCycle start/end time, input frame set, output command time.
DBW feedbackCommand send time, gateway time, actuator feedback time, CAN/TSN receive time.
Safety eventsSafety local counter, mapped global time if available, input/output state.
Power eventsRail voltage/current timestamped through safe-stop rail hold-up.
DiagnosticsDTC first-seen and confirmed times with timebase status.
Operator/fleet actionsUTC presentation time plus vehicle global-time mapping.

Forensics rules:

  1. Never merge logs from two clock domains without an explicit offset and uncertainty interval.
  2. Preserve raw local counters so investigators can recover ordering even when global time failed.
  3. Flag intervals affected by clock steps, holdover, grandmaster changes, and PHC/system-clock mapping faults.
  4. Include the timebase configuration ID in the incident package so replay uses the same clock-domain assumptions as the vehicle.
  5. Make timestamp uncertainty visible in replay tools. A 50 ms uncertainty band can change whether an object was inside braking distance.

Current source anchors for this extension: IEEE 802.1DG-2025 automotive TSN profile, IEEE 1588-2019 precision time protocol, IEEE 802.1AS-2020 and 802.1ASdm-2024 timing synchronization, AUTOSAR Adaptive R24-11 Time Synchronization, Linux kernel hardware timestamping documentation, and NVIDIA DRIVE/Jetson Orin PTP timestamping documentation.


7. TSN for Multi-Sensor Fusion

7.1 Deterministic Sensor Data Delivery

The key challenge: delivering LiDAR, camera, radar, and IMU data to the Orin compute platform with guaranteed latency and ordering.

Sensor Fusion Timing with TSN:

Time (ms)  0     1     2     3     4     5     6     7     8     9    10
           │     │     │     │     │     │     │     │     │     │     │
IMU        ████  ████  ████  ████  ████  ████  ████  ████  ████  ████ 
(500 Hz)   ↑guaranteed <100μs delivery

Radar      ██████████████████████████████████████████████████████████████
(20 Hz)    ↑                                        ↑ guaranteed <500μs

LiDAR      ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
(10 Hz)    ├─ each LiDAR: ~40MB/s, delivered over 80ms window ─────────┤
           ↑ guaranteed completion before next cycle

Camera     ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
(30 Hz)    ↑ rate-constrained, no hard deadline

Safety     ▌                    ▌                    ▌
E-stop     ↑ preempts ALL — guaranteed <100μs end-to-end

7.2 Worst-Case Latency Analysis

For safety certification (ISO 3691-4), we need provable worst-case end-to-end latency:

PathHopsPer-Hop LatencyStore-and-ForwardWorst Case
E-stop sensor → Safety MCU1-21-3 μs (wire)1.2 μs (64B @ 1Gbps)<10 μs
Safety MCU → Brake actuator1-21-3 μs1.2 μs<10 μs
Orin → Steering actuator2-33-9 μs1.2 μs<20 μs
LiDAR → Orin (full scan)1-2~3 ms (400KB @ 1Gbps)<5 ms
IMU → Orin (single sample)1-21-3 μs0.5 μs (32B)<10 μs

Comparison with CAN bus:

  • E-stop over CAN: worst case = message length (134 bits / 500kbps) + arbitration delay = ~0.5-2 ms
  • E-stop over TSN Ethernet: worst case = <10 μs50-200x faster

7.3 Bandwidth Allocation with Credit-Based Shaper

For non-time-triggered traffic (sensor streams), IEEE 802.1Qav Credit-Based Shaper (CBS) limits bandwidth per stream to prevent starvation:

python
# Credit-Based Shaper configuration for sensor streams
CBS_CONFIG = {
    'lidar_stream_0': {
        'idle_slope': 200_000_000,   # 200 Mbps allocated for 6 LiDARs (compressed)
        'send_slope': -800_000_000,  # 1 Gbps link - 200 Mbps
        'hi_credit': 25_000,         # Max burst: 25 KB (1 LiDAR packet)
        'lo_credit': -100_000,       # Recovery after burst
    },
    'camera_stream': {
        'idle_slope': 200_000_000,   # 200 Mbps for 4 cameras (compressed)
        'send_slope': -800_000_000,
        'hi_credit': 50_000,
        'lo_credit': -200_000,
    },
    'radar_stream': {
        'idle_slope': 20_000_000,    # 20 Mbps for 2 radars
        'send_slope': -980_000_000,
        'hi_credit': 5_000,
        'lo_credit': -20_000,
    },
    # Remaining ~580 Mbps for best-effort (diagnostics, telemetry, updates)
}

8. CAN-to-Ethernet Gateway Architecture

8.1 Gateway Design

During migration from CAN to TSN Ethernet, a gateway bridges the two domains:

┌────────────────────────────────────────────────────────┐
│                 CAN-TSN GATEWAY                         │
│                                                        │
│  TSN Ethernet Side              CAN Side               │
│  ┌──────────────┐              ┌──────────────┐       │
│  │ TSN MAC      │              │ CAN FD       │       │
│  │ + gPTP slave │              │ Controller   │       │
│  │ + TAS aware  │              │ (500kbps/    │       │
│  │              │              │  2-8 Mbps)   │       │
│  └──────┬───────┘              └──────┬───────┘       │
│         │                             │               │
│  ┌──────┴─────────────────────────────┴───────┐       │
│  │            Protocol Converter               │       │
│  │  CAN ID → Ethernet VLAN PCP mapping         │       │
│  │  CAN timestamp → gPTP timestamp alignment   │       │
│  │  CAN DLC → Ethernet payload encapsulation   │       │
│  │  Priority preservation across domains       │       │
│  └────────────────────────────────────────────┘       │
│                                                        │
│  CAN IDs 0x000-0x0FF → VLAN PCP 7 (Safety-Critical)  │
│  CAN IDs 0x100-0x1FF → VLAN PCP 5-6 (Time-Triggered) │
│  CAN IDs 0x200-0x3FF → VLAN PCP 3-4 (Rate-Constrained│
│  CAN IDs 0x400-0x7FF → VLAN PCP 0-2 (Best-Effort)    │
│                                                        │
│  Latency overhead: <50 μs (protocol conversion)       │
│  Jitter: <10 μs (bounded by TAS schedule)             │
└────────────────────────────────────────────────────────┘

8.2 Gateway Hardware Options

OptionVendorCAN PortsEthernetTSN SupportPrice (est.)Notes
S32G3 (GoldVIP)NXP20 CAN FD4× 1GbE TSNFull (AS, Qbv, CB)$30-50Automotive SoC, ASIL D capable
TC4xxInfineon/AURIX12 CAN FD2× 1GbEPartial TSN$20-40Strong safety heritage
R-Car S4Renesas16 CAN FD8× 1GbE TSNFull$40-60Gateway-focused SoC
Custom (Xilinx)AMD/XilinxFPGA-basedFPGA-basedConfigurable$50-100Maximum flexibility

Recommendation for reference airside AV stack: NXP S32G3 — best combination of CAN FD port count, TSN support, ASIL D capability, and automotive ecosystem support. The GoldVIP software platform provides pre-certified CAN-Ethernet gateway functionality.

8.3 Migration Phases

Phase 1: Gateway-bridged (Minimal change)
  
  [LiDAR] ──Eth──→ [Orin] ──CAN──→ [Actuators]
  [Camera] ──Eth──→        ──CAN──→ [Safety MCU]
                           ──CAN──→ [BMS]
  
  Change: None (status quo)
  TSN: Not yet

Phase 2: TSN backbone + CAN gateway
  
  [LiDAR] ──TSN──→ [TSN Switch] ←─TSN─→ [Orin]
  [Camera] ──TSN──→              ←─TSN─→ [CAN-TSN GW] ──CAN──→ [Actuators]
  [IMU] ──TSN──→                 ←─TSN─→ [Safety MCU]
  
  Change: Sensors moved to TSN, actuators still on CAN via gateway
  Benefit: Deterministic sensor delivery, unified timestamps

Phase 3: Full TSN (no CAN for new actuators)
  
  [LiDAR] ──TSN──→ [TSN Switch] ←─TSN─→ [Orin]
  [Camera] ──TSN──→              ←─TSN─→ [New actuators with TSN]
  [IMU] ──TSN──→                 ←─TSN─→ [Safety MCU (TSN)]
  [Radar] ──TSN──→               ←─TSN─→ [CAN GW] ──→ [Legacy only]
  
  Change: New actuators natively on TSN; CAN only for legacy
  Benefit: Full determinism sensor-to-actuator

9. 5G TSN Integration for V2X

9.1 3GPP 5G-TSN Bridge

3GPP Release 16+ defines 5G as a "TSN bridge" — making the 5G network appear as a standard TSN switch to endpoints:

┌──────────────────────────────────────────────────────────┐
│                  5G TSN BRIDGE (Logical View)             │
│                                                          │
│  Vehicle TSN     ┌──────────────────┐     Airport TSN    │
│  Domain          │    5G Network    │     Domain         │
│                  │  (appears as a   │                    │
│  [Orin] ──TSN──→ │  TSN bridge with │ ←─TSN── [Fleet    │
│                  │  known latency   │          Mgmt]     │
│  gPTP slave ←──→ │  gPTP relay      │ ←──→ gPTP GM      │
│                  │  TAS schedule    │                    │
│                  │                  │                    │
│                  │  5G-internal:    │                    │
│                  │  - URLLC slice   │                    │
│                  │  - QoS flow map  │                    │
│                  │  - Scheduling    │                    │
│                  └──────────────────┘                    │
└──────────────────────────────────────────────────────────┘

9.2 5G TSN for Airside V2X

V2X Message TypeTSN Priority5G QoSMax LatencyBandwidth
Emergency vehicle priority (EVP)SC (PCP 7)URLLC<10 ms<1 Kbps
Runway incursion prevention (RIP)SC (PCP 7)URLLC<10 ms<1 Kbps
Jet blast warning (JBW)SC (PCP 6)URLLC<20 ms<10 Kbps
Cooperative perceptionRC (PCP 4)eMBB<50 ms~160 Kbps
Fleet task assignmentTT (PCP 5)URLLC<100 ms<10 Kbps
Telemetry/diagnosticsBE (PCP 1)eMBBBest-effort~1 Mbps

9.3 End-to-End Determinism

With 5G TSN bridge, the entire path from vehicle sensor to fleet management has bounded latency:

End-to-end path: Vehicle LiDAR detection → Fleet emergency broadcast

  LiDAR scan    Orin detection    TSN in-vehicle    5G URLLC    Fleet broadcast
  ├─ 100 ms ──┤├── 15 ms ──────┤├── <1 ms ──────┤├─ <10 ms ─┤├── <1 ms ──┤
  
  Total worst-case: ~126 ms (dominated by LiDAR scan period, not networking)
  
  Network contribution: <12 ms out of 126 ms total
  
  With frame preemption and URLLC: network contribution drops to <5 ms

10. In-Vehicle Network Architecture for reference airside AV stack

10.1 Proposed TSN Architecture

┌──────────────────────────────────────────────────────────────┐
│           REFERENCE AIRSIDE AV STACK GSE — TSN NETWORK ARCHITECTURE             │
│                                                              │
│  ┌────────────┐  ┌────────────┐  ┌────────────┐            │
│  │ LiDAR ×6   │  │ Camera ×4  │  │ Radar ×2   │            │
│  │ (RoboSense)│  │ (GMSL2/    │  │ (Conti     │            │
│  │ 1GbE TSN   │  │  TSN)      │  │  ARS548)   │            │
│  └──────┬─────┘  └──────┬─────┘  └──────┬─────┘            │
│         │               │               │                    │
│  ┌──────┴───────────────┴───────────────┴──────┐            │
│  │           FRONT ZONE TSN SWITCH              │            │
│  │  (Marvell 88Q5050 / NXP SJA1110)            │            │
│  │  8-port 1GbE TSN, 802.1AS GM-capable        │            │
│  └──────────────────┬──────────────────────────┘            │
│                     │ 2.5GbE / 10GbE TSN uplink             │
│  ┌──────────────────┴──────────────────────────┐            │
│  │         CENTRAL TSN SWITCH                   │            │
│  │  (NXP SJA1110A / Marvell 88Q6113)           │            │
│  │  Grandmaster clock (GPS-disciplined)         │            │
│  │  12+ port 1GbE + 2× 10GbE TSN               │            │
│  └──┬──────┬──────┬──────┬──────┬──────────────┘            │
│     │      │      │      │      │                            │
│  ┌──┴──┐┌──┴──┐┌──┴──┐┌──┴──┐┌──┴──────────────┐           │
│  │Orin ││Orin ││Safety││CAN- ││ 5G/LTE Module   │           │
│  │ #1  ││ #2  ││ MCU  ││TSN  ││ (TSN bridge     │           │
│  │(GPU)││(GPU)││(STM) ││ GW  ││  for V2X)       │           │
│  └─────┘└─────┘└──────┘└──┬──┘└─────────────────┘           │
│                            │                                 │
│                     CAN Bus (legacy)                         │
│                     ┌──┬──┬──┬──┐                           │
│                     │St│Br│Dr│BM│                           │
│                     │ee│ak│iv│S │                           │
│                     │r │e │e │  │                           │
│                     └──┴──┴──┴──┘                           │
│  Legend:                                                     │
│  St=Steering, Br=Brake, Dr=Drive motor, BMS=Battery Mgmt   │
└──────────────────────────────────────────────────────────────┘

10.2 Switch Selection

SwitchVendorPortsTSN FeaturesASILPriceNotes
SJA1110ANXP10× 100M + 1× 1GFull TSN (AS, Qbv, CB, Qci)ASIL B$15-25Best automotive TSN ecosystem
88Q5050Marvell8× 1GFull TSNQM (ASIL B capable)$20-30Higher bandwidth per port
88Q6113Marvell11× 1G + 2× 2.5G/10GFull TSN + MACsecASIL B$30-50Premium, highest bandwidth
KSZ9897Microchip7× 1GPartial TSN (AS, Qbv)QM$8-12Low cost, limited features

Recommendation: NXP SJA1110A for zone switches (cost-effective, ASIL B), Marvell 88Q6113 for central switch (high bandwidth, MACsec for security).

10.3 Orin TSN Support

NVIDIA Orin AGX includes TSN-capable Ethernet:

  • 1× 10GbE MGBE (Multi-Gigabit Ethernet) with hardware timestamping
  • 4× 1GbE EQOS with IEEE 802.1AS, 802.1Qbv, 802.1Qav support
  • Linux kernel TSN support via tc TAPRIO and ETF qdiscs
  • PTP hardware clock (/dev/ptp0) for gPTP synchronization
bash
# Verify Orin TSN capabilities
$ ethtool -T eth0
Time stamping parameters for eth0:
Capabilities:
        hardware-transmit     (SOF_TIMESTAMPING_TX_HARDWARE)
        hardware-receive      (SOF_TIMESTAMPING_RX_HARDWARE)
        hardware-raw-clock    (SOF_TIMESTAMPING_RAW_HARDWARE)
PTP Hardware Clock: 0
Hardware Transmit Timestamp Modes:
        off                   (HWTSTAMP_TX_OFF)
        on                    (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
        ptpv2-event           (HWTSTAMP_FILTER_PTP_V2_EVENT)

11. Functional Safety and TSN

11.1 TSN Safety Standards

StandardScopeRelevance
IEC 61784-3 (PROFIsafe, CIP Safety)Functional safety over industrial EthernetSafety protocol patterns applicable to TSN
IEC 62443Industrial cybersecurityNetwork security for TSN infrastructure
ISO 26262 Part 11Semiconductor functional safetyTSN switch silicon qualification
ISO 21111-1 (draft)Automotive Ethernet safetyDirect applicability to in-vehicle TSN

11.2 Safety Communication over TSN

TSN provides mechanisms but does not itself guarantee functional safety. A safety communication layer is needed:

┌──────────────────────────────────────────────────┐
│         SAFETY COMMUNICATION STACK                │
│                                                   │
│  ┌────────────────────────────────────────────┐  │
│  │ Safety Application Layer                    │  │
│  │ (E-stop command, brake request, heartbeat)  │  │
│  ├────────────────────────────────────────────┤  │
│  │ Safety Protocol (Black Channel)             │  │
│  │ - Sequence number (detect loss/repetition)  │  │
│  │ - Timestamp (detect delay)                  │  │
│  │ - CRC-32 (detect corruption)                │  │
│  │ - Source/Destination ID (detect masquerade)  │  │
│  │ - Watchdog timeout                          │  │
│  ├────────────────────────────────────────────┤  │
│  │ TSN Transport (treated as "black channel")  │  │
│  │ - 802.1CB FRER (frame redundancy)           │  │
│  │ - 802.1Qbv TAS (deterministic delivery)     │  │
│  │ - 802.1Qci PSFP (stream policing)           │  │
│  ├────────────────────────────────────────────┤  │
│  │ Ethernet Physical Layer                     │  │
│  │ (1000BASE-T1 automotive)                    │  │
│  └────────────────────────────────────────────┘  │
│                                                   │
│  "Black channel" principle (IEC 61508):           │
│  Safety does NOT depend on network correctness.   │
│  Safety protocol detects all failure modes.       │
│  TSN provides performance, not safety.            │
└──────────────────────────────────────────────────┘

11.3 FRER (Frame Replication and Elimination) for Safety

IEEE 802.1CB provides redundant paths for safety-critical messages:

Safety MCU sends E-stop:

  Path A (primary):
  [Safety MCU] ──→ [Switch A] ──→ [Brake ECU]
  
  Path B (redundant):
  [Safety MCU] ──→ [Switch B] ──→ [Brake ECU]
  
  Brake ECU receives TWO copies, eliminates duplicate.
  If Path A fails: Path B delivers within same timing window.
  If both fail: Safety protocol watchdog detects and triggers safe state.
  
  Fault tolerance: Survives single switch failure, single link failure,
                   or single path corruption.

11.4 TSN for ASIL Decomposition

TSN enables cleaner ASIL decomposition (see fail-operational-architecture.md):

Without TSNWith TSN
Safety and non-safety on separate CAN busesSafety and non-safety on same TSN network, isolated by PSFP + TAS
No latency guarantee → must assume worst-caseProvable worst-case latency → tighter safety timing analysis
Redundancy requires duplicate CAN busesFRER provides redundancy within TSN
Safety certification must analyze each CAN busOne TSN network with certified isolation

12. Production Deployments and Case Studies

12.1 Automotive TSN Deployments (2025)

VehicleOEMTSN StandardNetwork SpeedApplicationSince
BMW iXBMW802.1AS + Qbv100M/1G mixedADAS sensor backbone2022
Mercedes S-ClassMercedes802.1AS + Qbv1 GbEDrive Pilot L3 networking2022
Volvo EX90VolvoFull TSN1 GbE + 10 GbELuminar LiDAR + compute2024
Zeekr 001 (updated)Geely802.1AS1 GbEADAS domain controller2024

12.2 Commercial Vehicle TSN Pilots

CompanyApplicationTSN FeaturesStatus
Daimler TruckL4 autonomous truckingFull TSN backboneProduction 2026-2027
Volvo TrucksHighway pilotTSN + CAN FD bridgePilot 2025
ScaniaPlatooning V2VTSN + 5G bridgeResearch 2024
NAVYA (now dissolved)Autonomous shuttleTSN evaluationDiscontinued

12.3 Industrial TSN Deployments (Relevant Parallels)

ApplicationIndustryTSN Use CaseLessons for Airside
Profinet over TSNFactory automationReal-time robot control + IT traffic on one networkMixed-criticality scheduling proven at scale
OPC UA over TSNProcess controlDeterministic pub/sub for sensor dataSensor data delivery pattern directly applicable
EtherCAT over TSNMotion controlSub-μs synchronization of multiple axesMulti-actuator synchronization for steering+drive
CC-Link IE TSNSemiconductor fabHigh-bandwidth + deterministicClean-room environment parallels (contamination-free)

12.4 Lessons Learned

  1. Start with gPTP (802.1AS): Time synchronization provides immediate value even without TAS scheduling. Improved sensor fusion accuracy is measurable on day one.

  2. TAS configuration is complex: Gate Control List design requires careful analysis of all traffic flows. Incorrect GCL causes network failure, not graceful degradation. Use automated GCL solvers.

  3. CAN gateway latency is manageable: NXP SJA1110 CAN-TSN gateway adds <50 μs, well within requirements. Gateway is not the bottleneck.

  4. Switch silicon matters: Not all "TSN-capable" switches implement all standards. Verify 802.1Qbv hardware offload — software TAS adds 10-100x latency.

  5. Testing requires TSN-aware tools: Standard network analyzers don't understand TSN timing. Need tools like Spirent TestCenter or Anritsu MT1000A for TSN validation.


13. Implementation Roadmap

13.1 Phased Implementation

PhaseDurationCostDeliverable
Phase 1: gPTP time sync4 weeks$8-12KAll sensors synchronized via gPTP, improved GTSAM fusion
Phase 2: TSN backbone8 weeks$15-25KTSN switches installed, TAS configured, deterministic sensor delivery
Phase 3: CAN-TSN gateway6 weeks$10-18KActuator commands via TSN→CAN gateway, safety protocol layer
Phase 4: FRER redundancy4 weeks$8-12KDual-path safety communication, single-fault tolerance
Phase 5: 5G TSN bridge6 weeks$12-20KV2X communication with deterministic QoS
Total28 weeks$53-87KFull TSN-enabled autonomous GSE

13.2 Hardware BOM (Per Vehicle)

ComponentQuantityUnit CostTotal
Central TSN switch (Marvell 88Q6113)1$30-50$30-50
Zone TSN switch (NXP SJA1110A)2$15-25$30-50
CAN-TSN gateway (NXP S32G3 module)1$40-60$40-60
TSN-capable 1GbE PHY (Marvell 88Q2112)6-10$5-8$30-80
GPS-disciplined oscillator (gPTP GM)1$50-100$50-100
Automotive Ethernet cable + connectorsSet$50-100$50-100
Total hardware per vehicle$230-440

13.3 Risk Analysis

RiskProbabilityImpactMitigation
LiDAR drivers don't support TSN timestampingMediumMediumUse PTP/PPS fallback, request vendor support
GCL misconfiguration causes network failureMediumHighExtensive simulation with OMNEST/OMNeT++, conservative schedules
CAN actuators require hardware upgrade for TSNLowHighCAN-TSN gateway bridges indefinitely; new actuators with TSN
TSN switch silicon errataLowMediumUse proven automotive-grade silicon (NXP, Marvell)
5G TSN bridge latency too variableMediumLow5G bridge is Phase 5; in-vehicle TSN independent

14. Key Takeaways

  1. TSN reduces safety-critical message latency 50-200x — E-stop delivery drops from ~0.5-2 ms (CAN) to <10 μs (TSN with frame preemption)

  2. gPTP provides <100 ns sensor synchronization — eliminates software timestamp jitter (1-10 ms) that causes mm-level fusion errors at airside speeds

  3. Mixed-criticality on one network — safety, control, sensors, and diagnostics share a single TSN Ethernet backbone with guaranteed isolation via TAS and PSFP

  4. CAN gateway enables incremental migration — existing CAN actuators continue working via CAN-TSN gateway ($40-60). No big-bang replacement needed

  5. Orin natively supports TSN — hardware timestamping, gPTP, and TAPRIO qdisc available on Orin's Ethernet ports. No additional hardware for compute side

  6. BMW, Mercedes, Volvo already in production — TSN is not experimental. Automotive-grade silicon (NXP SJA1110, Marvell 88Q6113) is available and proven

  7. 5G TSN bridge extends determinism to V2X — 3GPP Release 16+ makes 5G network appear as TSN switch, enabling deterministic fleet communication

  8. Hardware cost is minimal: $230-440 per vehicle — negligible compared to compute ($1,000-2,000) or LiDAR ($6,000-24,000) costs

  9. FRER provides safety communication redundancy — dual-path frame delivery survives single switch/link failure, complementing black-channel safety protocol

  10. Certification benefit: Provable worst-case latency via TSN formal analysis (network calculus) supports ISO 3691-4 and IEC 61508 safety cases — eliminates need for conservative "assume worst case" timing margins


15. References

Standards

  1. IEEE 802.1AS-2020, "Timing and Synchronization for Time-Sensitive Applications (gPTP)"
  2. IEEE 802.1Q-2022, "Bridges and Bridged Networks" (includes Qbv TAS, Qav CBS, Qci PSFP amendments)
  3. IEEE 802.1CB-2017, "Frame Replication and Elimination for Reliability (FRER)"
  4. IEEE 802.3br-2016, "Interspersing Express Traffic"
  5. IEC 61508, "Functional Safety of Electrical/Electronic/Programmable Electronic Safety-Related Systems"
  6. ISO 26262, "Road vehicles — Functional safety"
  7. 3GPP TS 23.501 (Release 16), "5G System Architecture — TSN Integration"

Papers

  1. Craciunas, S. et al., "Real-Time Scheduling for 802.1Qbv Time-Sensitive Networking (TSN): A Systematic Review and Experimental Study," IEEE RTSS, 2024
  2. Park, T. and Samii, S., "Time-Sensitive Networking in automotive embedded systems: State of the art and research opportunities," Journal of Systems Architecture, 2021
  3. Tamas-Selicean, D. et al., "A Survey on Time-Sensitive Networking Standards and Applications for Intelligent Driving," Processes, 2023
  4. NXP Semiconductors, "Architecting Network Latencies for Mixed Criticality In-Vehicle Networks using IEEE 802.1Qbv," White Paper, 2023

Product Documentation

  1. NXP, "SJA1110A — Automotive TSN Ethernet Switch," Product Brief, 2024
  2. Marvell, "88Q6113 — Automotive Ethernet Switch with TSN and MACsec," Product Brief, 2024
  3. NVIDIA, "Jetson AGX Orin — Ethernet and TSN Configuration Guide," Developer Documentation, 2024
  4. Excelfore, "Automotive Ethernet TSN for ADAS and Autonomous Driving," Technical Guide, 2025

Market Analysis

  1. Research and Markets, "Time-Sensitive Networking (TSN) Time Aware Shaper Market Report 2026"
  2. Dataintelo, "Automotive Ethernet Time-Sensitive Networking Market Research Report 2034"
  • 20-av-platform/networking-connectivity/airport-5g-cbrs.md — Airport 5G infrastructure (TSN bridge endpoint)
  • 60-safety-validation/runtime-assurance/fail-operational-architecture.md — Fail-operational architecture (TSN enables ASIL decomposition)
  • 60-safety-validation/cybersecurity/cybersecurity-airside-av.md — Cybersecurity (MACsec over TSN)
  • 30-autonomy-stack/multi-agent-v2x/v2x-protocols-airside.md — V2X protocols (transported over 5G TSN bridge)
  • 20-av-platform/sensors/multi-lidar-calibration.md — Multi-LiDAR calibration (gPTP synchronization)
  • 20-av-platform/drive-by-wire/can-bus-dbw.md — Current CAN architecture (migration source)

Public research notes collected from public sources.