A brief analysis of the Time Sensitive Network (TSN) technology for deterministic networks

A brief analysis of the Time Sensitive Network (TSN) technology for deterministic networks

Author: Lu Yingchuan, unit: China Mobile Smart Home Operation Center

Labs Guide

Compared with other deterministic network technologies, such as Flexible Ethernet (FlexE) working at layer 1.5 and Deterministic Network (DetNet) working at layer 3, TSN mainly solves the problem of deterministic guarantee in layer 2 networks. It achieves zero congestion and packet loss transmission through a series of protocol standards, provides low latency and jitter with upper bounds, and provides deterministic transmission guarantees for latency-sensitive traffic.

The existing Ethernet technology was first proposed in 1973 and officially put into commercial use in 1982 (Ethernet V2). It quickly defeated the token ring and FDDI technologies of the same period and was gradually adopted by the world. Although relying on the quality of service (QoS) technology to classify and mark all data packets, it can achieve the purpose of forwarding according to different priorities under certain conditions. However, the characteristics of network serial transmission and the best effort forwarding mechanism make the delay, jitter and service quality of data uncontrollable during end-to-end transmission. Based on this, the IEEE 802.1 task group formulated the Audio Video Bridging (AVB) specification in 2005, which is a set of Ethernet protocols for real-time audio and video transmission. The task group was officially renamed Time Sensitive Network (TSN) in November 2012. At the same time, it became a new generation of network standards based on Ethernet, with real-time functions such as time synchronization and delay guarantee. It has gradually been widely used in industrial control, intelligent manufacturing and 5G.

Part 01 Definition of TSN

Compared with other deterministic network technologies, such as Flexible Ethernet (FlexE) working at layer 1.5 and Deterministic Network (DetNet) working at layer 3, TSN mainly solves the problem of deterministic guarantee in layer 2 networks. It achieves zero congestion and packet loss transmission through a series of protocol standards, provides low latency and jitter with upper bounds, and provides deterministic transmission guarantees for latency-sensitive traffic.

Figure 1 TSN protocol layers

TSN is a VLAN that complies with the IEEE802.1Q standard and inserts a 4-byte VLAN tag into a standard Ethernet frame. TSN defines different priority protocol levels for flows through the PCP (Priority Code Point) and VID (VLAN ID) in the VLAN tag [1].

  • Tag Protocol Identifier: 16-bit length, tag protocol identification, identifies the TSN network, the value is 0X8100.
  • Priority Code Point: 3 bits in length, priority code, identifies the traffic priority, 3-bit PCP defines 8 priorities.
  • Drop Eligible Indicator: 1 bit in length, drop indicator. It can be set for data with low QoS requirements and can be dropped when the network is congested to ensure the QoS of high-priority data.
  • VLAN Identifier (VID): 12 bits in length, the identification number of the VLAN network. VID=0 is used to identify the frame priority, VID=FFF is reserved, and the remaining values ​​are used to identify the VLAN.

Figure 2 TSN frame structure

Part 02 TSN Technology

In order to achieve deterministic transmission in the local area network, time-sensitive networking (TSN) implements precise network time synchronization mechanism, flow shaping, classification and traffic scheduling mechanism of different priority traffic, as well as end-to-end, network switch configuration to provide systematic network configuration mechanism for services such as reserved bandwidth for time-sensitive data.

Figure 3 TSN key technologies

Figure 4 TSN protocol component set

2.1 Time Synchronization

Time synchronization is the foundation of TSN and the key to subsequent traffic scheduling based on time slots. TSN uses the IEEE 802.1AS protocol to achieve the purpose of clock synchronization for the entire network. This is a precise time protocol that ensures that the clocks of related network devices are consistent and does not need to be synchronized with the clocks in nature. This protocol is an extension of the precision time protocol (PTP) of IEEE 1588-2008, and proposes a generalized precision time protocol (gPTP). Global time synchronization is the basis for TSN to truly achieve the end-to-end deterministic delay and queue-free transmission requirements of communication flows. It is a further improvement of the Ethernet synchronization protocol, adding the synchronization of distributed networks, and using a two-way information channel to improve the accuracy of the transmission signal. At the same time, the updated and revised IEEE802.1 AS-REV protocol adds the ability to synchronize time for multiple time domains, which can quickly switch to other domains when the global clock in a domain fails.

2.2 Flow Control

TSN traffic control mainly involves traffic classification, traffic shaping, and traffic scheduling and preemption. The type and priority of the corresponding traffic are determined through the relevant attribute information of the VLAN tag in the frame; the identified TSN flow is shaped by speed limiting or temporary caching to control the traffic to be sent and received at a preset rate; through a certain scheduling algorithm and mechanism, the shaped or queued flow is scheduled to the output end and forwarded in the switch in the corresponding order, while the service quality requirements of various flow transmissions are guaranteed according to QoS. In this process, low-priority frame transmission is interrupted by inter-frame slicing to ensure the timely forwarding of high-priority flows, ultimately achieving the real-time and ultra-low latency requirements of high-priority frame transmission [2]. The main ones are CBS shaper (Credit-based Shaper, based on IEEE 802.1Qav), TAS shaper (Time-aware Shaper, based on IEEE 802.1Qbv), CQF shaper (Cyclic Queuing and Forwarding, based on 802.1Qch) and IEEE ATS shaper (Asynchronous Traffic Shaping, based on 802.1Qcr).

2.3 Network Configuration

Using the configuration model defined for time-sensitive networking (TSN) in the IEEE 802.1Qcc protocol, TSN can currently provide three different configuration models: fully centralized, hybrid, and fully distributed, according to specific needs. It can customize the configuration of the sender, receiver, and switches in the network, and provide services such as reserved bandwidth for subsequent time-sensitive data transmitted on this network.

Part 03 Characteristics of TSN

Compared with standard Ethernet, the most significant feature of TSN is its ability to ensure the determinism of data exchange. By determining in advance the transmission cycle of time-sensitive data flows (called scheduled traffic) and the size of data transmitted in each cycle, TSN can ensure that the data will be exchanged to the receiver at a certain time as long as the data sender sends the data as agreed [3].

Part 04 Application of TSN

TSN guarantees the deterministic service quality of local area networks. With the integration of OT (operational technology), IT (information technology) and CT (communication technology), TSN can send periodic and non-periodic data streams in these integrated local area networks. With broad application prospects in the fields of Internet of Vehicles, industrial control, smart grid, 5G, etc., TSN networks will develop faster.

4.1 Industrial Internet

TSN can effectively take into account the requirements of high-efficiency data transmission and high reliability in the industrial Internet of Things scenario, and effectively promote the integration of industrial OT systems and IT systems. At the same time, combined with the deterministic transmission technology of URLLC under 5G, existing industrial equipment such as sensors and actuators can be wirelessly connected to the TSN network, which can achieve flexible deployment and application without the restrictions of cable installation. The whole system can be more automated, reducing human intervention and dependence, and will continue to promote the evolution of the underlying architecture of the industrial Internet.

4.2 In-vehicle Network

With the development of automobile intelligence and automation, in-vehicle networks need to meet the requirements of advanced driver assistance systems (ADAS), intelligent on-board diagnostic systems (OBD), in-vehicle multimedia systems, and other types of in-vehicle systems for carrying and interconnection. Existing in-vehicle networks are still based on the coexistence of various buses, and media signals and control signals cannot be uniformly transmitted on the same link. Therefore, how to ensure that the requirements of various types of traffic for end-to-end transmission delay, jitter, packet loss rate, etc. are met under mixed flow conditions is the technical difficulty and question faced by in-vehicle networks. TSN can provide different degrees of end-to-end bounded delay guarantees and smaller jitter according to the different priorities of data traffic. In addition, the quality of service can be verified by theory. These characteristics can meet the development needs of in-vehicle networks and thus meet the application requirements of in-vehicle Ethernet [4].

References

[1] Internet document, Understanding TSN in one article, https://www.sdnlab.com/25482.html.

[2] SDNLAB, A Brief Analysis of TSN Time-Sensitive Network Technology, 2022.4.

[3] Internet document, TNS exchange based on FAST, https://blog.csdn.net/m0_37537704/article/details/86747622.

[4] Industrial Internet Alliance, Time-Sensitive Networking Industry White Paper, August 2020.​

<<:  How to Make Ethernet Cable Longer

>>:  Let you understand the MQTT protocol

Recommend

5G deployment plan postponed to 2021, will operators agree?

In 2020, the sudden outbreak of COVID-19 is havin...

DesiVPS: Los Angeles/Netherlands/India data centers, KVM VPS from $20 per year

DesiVPS acquired LosAngelesVPS a month ago and is...

Contact centers meet the needs of more connected customers

Call centers took center stage when the coronavir...

What network automation certification options are available today?

Networks are increasingly reliant on software and...

Wi-Fi 7: What is it and when can you expect it to arrive?

[[380191]] Wi-Fi 7 is expected to have higher dat...

What exactly is BRAS?

Students who are good at English may be a little ...

The Implications of the ZTE Incident for Operators

Although the ZTE incident has not yet reached a f...

Want to save power on your 5G phone? Wake it up first!

With the development of 5G networks, everyone has...