Skip to content

Communication & standards

Automotive Ethernet and TSN

The physical layer that makes everything else possible — why a car needed its own Ethernet, and why raw speed was never the hard part.

Intermediate5 minEthernet · TSN · Networking

Everything in this module rests on the network. Services, data brokers and central compute all assume that moving data around the vehicle is fast and predictable — which, on , it is not.

What CAN could and could not do#

CAN has been the vehicle backbone since the 1980s, and it earned that position. It is extremely robust, cheap, needs only two wires, and degrades gracefully.

Its limits, though, are structural:

CANWhat a modern vehicle needs
SpeedUp to 1 Mbit/sCamera and sensor data: hundreds of Mbit/s
Payload8 bytes per frameStructured messages, sometimes kilobytes
TopologyShared bus, everyone hears everythingSwitched, point-to-point
AddressingNone — messages are numbered, not addressedNamed endpoints
GrowthAdding traffic loads the whole busCapacity that scales

Why ordinary Ethernet was not enough#

Office Ethernet is fast, cheap and universal. Two things made it unusable in a vehicle without modification.

Cabling. Standard Ethernet uses four twisted pairs and bulky connectors. Automotive Ethernet (100BASE-T1, 1000BASE-T1) runs over a single twisted pair with automotive connectors, tolerating vehicle temperature ranges and electromagnetic conditions.

Timing. This is the important one.

What TSN adds#

— Time-Sensitive Networking — is a set of IEEE standards that add guarantees to Ethernet. The pieces that matter in a vehicle:

Time synchronisation. Every device shares a common clock, accurate to microseconds. Everything else depends on this.

Scheduled traffic. The network runs on a repeating schedule with reserved slots. A control message has a slot; nothing else may transmit during it.

Frame preemption. A large, low-priority frame already in transmission can be interrupted so an urgent frame goes first, then resumed.

Stream reservation. A talker declares its bandwidth and latency needs up front; the network either guarantees them or refuses the stream.

What this means in practice#

The network is designed, not grown. Schedules and reservations are computed offline from a description of all traffic. Adding a stream is a configuration change, not something that happens spontaneously.

CAN does not disappear. Automotive Ethernet is the backbone; CAN remains at the edges, connecting simple sensors and actuators where its cost and robustness still win. A gateway translates between them, and that gateway is significant, ongoing work on every real programme.

The realistic topology
   sensors/actuators ──CAN/LIN──> zone controller

                                   Automotive
                                    Ethernet
                                    (+ TSN)

                                 central compute

Diagnostics change. Debugging shifts from a CAN analyser to Ethernet packet capture. Familiar tools work, with automotive-specific dissectors.

Looking at the wire
# CAN, at the edges
candump can0
 
# Ethernet backbone
tcpdump -i eth0 -w capture.pcap
# then analyse SOME/IP and DDS traffic in Wireshark

What to check on a programme#

  • Is TSN actually enabled, or is it Ethernet without timing guarantees? This is a real distinction and the answer is sometimes "not yet".
  • Who owns the network schedule, and what does adding a stream cost?
  • Where is the CAN boundary, and who owns the gateway?
  • Is there reserved headroom for streams added later in the programme?

Next#

The protocol that carries services over this network.

References & further reading

Code links target the main branch on cs.android.com. AOSP moves — if a path 404s, search the symbol instead.