2.4. Test Standards
To evaluate the effects of TSN on time-sensitive applications and general traffic, test specifications are gradually worked out. The main contributor is OA, which was jointly established by related companies such as NXP, Broadcom and BMW in 2011 and currently has more than 340 members. To apply Ethernet-based communications and TSN to automotive networks, OA formulates and unifies the physical layer, protocol consistency and interoperability specifications of IEEE 100 base-t1, 1000 base-t1 and 1000 base-rh communication methods. OA presents some specifications on the tests of the wiring harness, switch, ECU and other functional requirements, e.g., ECU-level physical layer, data link layer, TCP/IP protocol layer, SOME/IP test specifications formulated by the technology committee (TC) 8, and the automotive wiring harness and connector test specifications formulated by TC 2, and interoperability, compliance, and electro-magnetic compatibility (EMC) requirements and test methods for 10 BASE-T1 PHYs standardized by TC 14.
Most of the 14 TCs of OA focus on the PHY layer, protocol consistency and interoperability, which are the basis of TSN implementation. The TC focusing on the TSN protocol test itself is TC 11, which creates specification and qualification requirements for Ethernet switches. In detail, TC 11 defines functional features for switch semiconductors (standalone or built-in), and gives the interfacing, configuration diagnostics and monitoring of switches, which can be used for TSN test. In addition, TC 11 specifies tests on TSN requirements and characteristics, such as QoS requirements, queuing, time stamping, policing, and filtering
[27]. In TC 11
[27], the requirements and test points of switches are specified. For example, it indicates that the Ethernet switch shall support at least eight different levels of priorities according to IEEE 802.1Q and provide a queue for each priority on each egress port to support different QoSs of TSN. The Ethernet switch can overwrite the priority of a frame at an ingress port independent of the incoming priority (i.e., support global priority overwrite). Incoming priorities shall be freely mapped to internal queues by the ingress filter. Frames of internal queues shall be freely mapped to priorities according to IEEE 802.1Q
[28] on the egress port. For each queue at the egress port, it has a shaper to schedule frames. The shaper supports strict priority scheduling and the CBS algorithm according to IEEE 802.1Qav
[17]. And each queue can deactivate each shaper individually to cancel TSN scheduling. For time synchronization, TC 11 specifies that the Ethernet switch should support both the PTP 1588 protocol and IEEE 802.1AS
[13] protocol. In addition, each port should synchronize with each other. For the diagnostics and robustness, the Ethernet switch shall provide at least the following counters individually for each port: number of received frames, number of received bytes, number of dropped frames after reception, number of sent frames, number of unsuccessful sent frames, number of sent bytes, and maximum fill level of the queues since clearing the counter.
In
[27], TC 11 also provides a collection of all test cases which are recommended to be considered for automotive use cases and should be referred by car manufacturers within their quality-control processes. In detail, it presents the test procedures of time synchronization based on TSN, which checks the 1-step frame forwarding mechanism, including the correct implementation of residence time measurement. The test station sends sync frames to the PTP slave port and receives frames on all PTP master ports of the device under test (DUT). The corresponding time stamps of the test station are recorded. The correction time of the sync message is checked if the value correlates to the timestamp measurements of the test station. In addition, it checks whether the switch supports priority-based QoS or not by using all eight possible values. The strict priority algorithm is utilized as a forwarding selection mechanism in order to verify that forwarding is based on priorities.
3. TSN-Related Products
Early TSN products were generally used for industrial automation with the realization of main protocols, such as EEE 802.1AS
[13], IEEE 802.1Qav
[17], and IEEE 802.1Qat
[22]. With the development of TSN and autonomous driving, some TSN products for automotive are designed. Active manufacturers in this area mainly include TTTech, Microchip, NXP, Excelfore, Broadcom, Marvell’s, Spirent, etc.
In terms of TSN switch chip, a NXP product, NXP sja1110, is the first automotive Ethernet switch, which was designed to solve the huge challenges faced by current in-vehicle networks, including scalability, reliability, security, and high-speed traffic engineering. This switch complies with the AVB/TSN synchronization standard. In addition, NXP designed the SJA1105T chip, which is a core of multi-functional product. This switch chip supports a network with standard Ethernet, which not only supports best-effort business but also QoS-required traffic by using TSN for clock synchronization and time-aware shaping. The Microchip Corporation designed a series of Ethernet switches, such as KSZ8565, KSZ8765 and KSZ8842, which support TSN characters, including IEEE 1588 v2 PTP. Broadcom BCM8956X series devices are Broadcom’s fifth-generation fully integrated L2+ multilayer switch solution, which supports AVB protocol stack (IEEE 802.1AS
[13] time synchronization and IEEE 802.1Qat
[22]). Except for the realization of the basic specifications of AVB, Marvell developed a series of products with more TSN specifications. For example, the switches 88Q5072 and 88Q6113 of Marvell addeds TSN features to achieve the filtering and control of data streams (IEEE 802.1Qci
[24]) and frame preemption (IEEE 802.1Qbu
[15]). The integrated L3 hardware accelerator allows a gigabit routing throughput of up to 10 Gbps to be achieved without internal processor intervention. To promote big data transmission in the vehicle network, these devices provide efficient sleep/wake functions that support the TC 10 standard, reducing the overall power consumption. Marvell 88Q5050 is an eight-port, high-security automotive gigabit Ethernet switching chip, which has advanced security features to prevent cyber threats, such as DoS attacks. The eight-port Ethernet switch chip has four fixed IEEE 100 BASET1
[9] ports and four configurable ports. The switch chip provides local and remote management functions, and users can easily access and configure the device.
In terms of the TSN protocol stack, Excelfore eAVB/TSN now runs in cameras, video displays, head units and ECUs from numerous vendors. The Excelfore eAVB/TSN has already been ported to automotive-grade operating systems, including Linux, Mentor automotive open system architecture (AUTOSAR) and Green Hills Software INTEGRITY
[29]. The Excelfore protocol stacks integrated and optimized for use with the safe and secure INTEGRITY RTOS from Green Hills Software
[29], including support for Ethernet AVB/TSN Talker/Listener, DoIP, SOME/IP, and RTP/RTCP (including IEEE 1733) and 802.1AS
[13] slave/bridging.
In terms of TSN testing, TTTech designed a combination switch ECU called DESwitch Hermes 3/1 BRR, which is used for evaluating a variety of communication standards, including AVB, TSN and time-triggered Ethernet (SAE AS6802). With these technologies, users can evaluate the convergence of Ethernet control traffic, including security applications and the vehicle backbone architecture. Polelink developed a TSN test tool for automotive Ethernet called the TSN box. This TSN box is a network interface and gateway for TSN network. It was developed based on field programmable gate array (FPGA) technology to serve as a data collection medium for TSN tools, which supports nanosecond timestamps for time synchronization among multiple TSN boxes.
In addition, the TSN box provides rich functional support for AVB and TSN protocols commonly used in automotive Ethernet architectures, which can be used for exploring PTPv2, 802.1ASrev
[14] and different TSN shaping algorithms, such as CBS, time-sensitive or asynchronous shaping. Xinertai launched an automotive Ethernet test program based on the proprietary BigTao hardware test platform. Cooperating with Xinerta’s software Renix
[30], the Ethernet test program can realize Layer 2–7 traffic test and protocol simulation for automotive Ethernet, support 100/1000 Base-T1 port connectivity test, RFC2889/RFC2544/RFC3918 standard test suite, routing and switching protocol testing, AVB/TSN protocol testing, distributed denial-of-service (DDoS) attack testing, long-term (such as
10*2410*24 h) stability and streaming testing, etc. Spirent issued the AUTOSAR conformance test suite pack, which provides different protocol conformance test suites according to the OA test specification. Through this test suite, automotive Ethernet tests can be run on Spirent C1 and C50 devices, which supports testing on clock synchronization and 802.1 Qav
[17] scheduling of TSN.
For the vehicle Ethernet PHY chip, it must firstly meet the IEEE 802.3bw or IEEE 802.3bp protocol, and then must pass the AEC-Q 100 standard. The existing semiconductor manufacturers that have launched automotive Ethernet PHY chips include BCM 89610, BCM 89611, BCM 8988X, BCM 89810, BCM 89811 and BCM 89820 of Broadcom, AR 8031 of Artheros, TJA 1100, TJA 1101 and TJA 1102 of NXP. For example, NXP TJA 1101 is based on the IEEE 100 BASE-T1 standard, with the single-port Ethernet PHY transceiver. NXP TJA 1101 meets the needs of automotive applications and supports 100 Mb/s transmission, and its receiving capacity is over 15 m of the unshielded twisted pair. TJA 1100 can achieve the lowest system cost, and meet the strict restrictions on area and heat dissipation of the sensors of the new generation of ECU and ADAS. It complies with AEC-Q 100 level 1, and the original design intention has the smallest package size, the lowest external component overhead and low power consumption.
4. Demo Setup of TSN
To realize basic functions of TSN and provide a deterministic network for autonomous driving, the least complete set of standards to be realized should be considered. The complete set of most TSN products is usually constructed by standards of AVB, i.e., 802.1AS
[13], 802.1Qav
[17], and 802.1Qat
[22], which are mainly used for A/V streams.
Safety-relevant devices, such as multiple kinds of sensors, need synchronization with each other to infuse them. In addition, synchronization is the preliminary step of many scheduling and management schemes. Thus, the 802.1AS
[13] specification needs to be realized first. To provide deterministic transmission for critical traffic, such as the control comment, bandwidth reservation is needed. On the other hand, the traffic class is finite and fixed, compared with that of industry. Thus, a preferred bandwidth reservation method is pre-allocating the bandwidth for different application traffic instead of 802.1Qat
[22] to reduce the signaling overhead and related information storage brought by the stream register of 802.1Qat. Correspondingly, a scheduling method is needed for bridges and end stations to queue and forward frames with different classes. 802.1Qav
[17] is preferred for data transmission within a domain. For data transmission among multiple domains, 802.1Qbv
[18] is an alternative method. In addition, 802.1CB can provide a baseline for giving redundant paths and supporting robustness. 802.1Qcc
[23] can provide corresponding configuration for these protocols. Other specifications can be further realized for a more robust and deterministic network. The basic TSN protocol stack model of the switch of in-vehicle networks is shown in
Figure 1, where blue blocks construct a minimum complete set of standards to be realized for a TSN-supported bridge of automotive networks. The end station can be seen as a bridge with a port.
Figure 1. A basic TSN protocol stack model of automobile networks.
For the TSN demo set up, the above functions are expected to be examined and displayed. Here, a demo setup for some typical functions is given, such as that of 802.1AS, 802.1Qbv, and 802.1CB, which is shown in
Figure 2.
Figure 2. A demo setup for some typical TSN functions.
As shown in this figure, synchronization is examined by observing whether two A/V traffic generators are synchronized or not. They can be two AVB cameras recording the same view. In Display 1, it shows the views of two cameras, respectively. When they are synchronized, the displayed views of the two cameras are the same. This is an intuitive show. More accurately, it can be tested by using time-record software. Two cameras photograph the software with the time display and transmit them to DCU 1. Then, whether the transmitted pictures with time are the same or not can be seen. 802.1Qbv
[18] is checked by using three traffic generators, i.e., A/V traffic, best-effort traffic and control traffic. With the interfering traffic (BE traffic and A/V traffic), the delay and jitter performance of control traffic can be observed, which should not be affected by the interfering traffic and have guaranteed latency and low jitter based on Qbv. For the 802.1CB demo, redundant routing is used for critical traffic. The robustness of the traffic transmission can be observed by allowing routing congestion with abundant traffic.
The simulation environment developed here is based on FPGA, and the PHY chip is Realtek RTL8201CP, which has a clock frequency of 25 MHz at 100 Mbps, i.e., the clock accuracy is 40 ns. The corresponding waveforms were obtained and analyzed experimentally.
As shown in
Figure 3, the vertical coordinate time offset represents the time deviation between nodes measured at each time in
μs, and the horizontal coordinate time represents the time-synchronization interval, which is 1 s. After a short period of jitter at the beginning of the time synchronization, the time deviation between nodes tends to converge; the final value of this time-synchronous convergence converges to 14.5
μs. The simulation experimental results show the effectiveness of the time synchronization, which shows that AS is feasible in the demo setup.
Figure 3. Time offset between two nodes.
In
Figure 4, the vertical axis end-to-end latency represents the total time it takes for a data packet to be sent from the sender to the receiver, measured in microseconds (
μs). The horizontal coordinate sampling times indicates the number of times the data are sampled at the same time interval. The impact of enabling the time-synchronization feature on the traffic-scheduling performance of the TAS algorithm is verified by comparing with and without enabling time synchronization, and the results show that the end-to-end delay of traffic is reduced by an average of 80
μs when time synchronization is enabled. In addition, simulation experiments show that Qbv achieves end-to-end low latency performance under time synchronization, which also validates the effectiveness and feasibility of the demo setup.
Figure 4. End-to-end delay of traffic transmission.
In Figure 4, the vertical axis end-to-end latency represents the total time it takes for a data packet to be sent from the sender to the receiver, measured in microseconds (µs). The horizontal coordinate sampling times indicates the number of times the data are sampled at the same time interval. The impact of enabling the time-synchronization feature on the traffic-scheduling performance of the TAS algorithm is verified by comparing with and without enabling time synchronization, and the results show that the end-to-end delay of traffic is reduced by an average of 80 µs when time synchronization is enabled. In addition, simulation experiments show that Qbv achieves end-to-end low latency performance under time synchronization, which also validates the effectiveness and feasibility of the demo setup.