As work on Time-Sensitive Networking (TSN) for industrial applications is established in the IEC/IEEE 60802 standard and with TSN-capable products becoming increasingly available, itās a good time to get up to speed with TSN-related terminology, associated devices, and their configuration.
Michael Zapke, industrial marketing lead at Xilinx (a supplier of programmable logic devices) for the companyās industrial, vision, healthcare & sciences operations, offers a list of the technical methods used in TSN. In his list below, the terms at the end of each bullet define the corresponding element in IEEE 802.1Q-2018. All of these methods are key to industrial automation use of TSN.
Zapkeās list is as follows:
Centralized Configuration
- Identifies traffic relations and bridges between them and calculates a scheduleāCentral Network Configuration
- Defines the departure and arrival timeāCentral User Configuration
Terminals/(End) Stations
- All points are synchronized, i.e., they work with the same time of dayāGeneralized Precision Time Protocol
- The network is aware of which conveyance belongs to which service and has awareness of the valid timetable for departuresāStream Identification
- Sequence of components so that their individual timetables are metāQueues
Connections and Bridges
- Awareness of timetablesāGate Control List
- The network can stop other traffic in an urgent caseāPre-emption and Interspersing Traffic
- The network knows methods and algorithms to control unplanned peaksāPer Stream Filtering and Policing
āThe upcoming standard IEC/IEEE 60802 defines the profile for the selection of functions and their dimensioning for industrial applications,ā says Zapke. āThe term āTSN-IAā has been introduced for this profile.ā
A continuous connection between the Central Network Configuration and the bridges exists and allows access to topology information and the download of updated configurations to the bridges.
Zapke explains the Central User Configuration communicates with each station on the network. In TSN, stations are nodes that send and receive units to the connections. The Central User Configuration takes care to send the right service at the right time, which can include: Traffic with strict deadline for arrival, cyclic traffic with latency bounds, AVB (audio video bridging) traffic with bandwidth requirements, control traffic with strict priority and reliability requirements, and best effort traffic that is sent when possible, but which may be discarded.
A microcontroller embedded in a station will have a prioritized service called Generalized Precision Time Protocol. āTwo adjacent stations can achieve an accuracy of some 10 nanoseconds; between all stations in a network a few hundred nanoseconds should not be exceeded,ā Zapke says.
āBecause stations are both a source and a destination for traffic, it is their responsibility to label the transport units correctly,ā he says. āThis label is a tag in the Ethernet Frame (Layer 2). Most common is the use of VLAN Priorities to identify the type of traffic. In newer proposals, more options for tagging streams are also discussed so that any pattern in the Ethernet frame can be used. Beyond this, there are also methods to use the Layer 3 with IP Interception to determine the traffic type.ā
Streams, queues, and bridges
The term used to assign characteristics to a frame is Stream Identification. āEvery single frame must be scanned at every station for the tag to determine how to handle it at the egress point of the station,ā says Zapke. āStations sort the Ethernet frames and send scheduled traffic exactly at the right time to meet the given schedule.ā
Up to eight parallel Queues at the exit point of a station can contain multiple Ethernet frames. Time-controlled gates let data leave the queue at the right time.
āThis all must be done for every single egress packet and may result in high processing load for the station,ā Zapke says. āThe use of stream identification, queue management and time-controlled gates are normally in dedicated logic to offload software and increase time accuracy. Such network elements use programmable logic in FPGAs (field programmable gate arrays), or microcode programmable SoCs (systems on chip) to realize this function.ā
Connections and Bridges are the infrastructure used to connect stations. While the cabling between bridges is static, bridges actively handle the traffic distribution between multiple connections. Stream identification is required there as it is in stations. At every exit port, Ethernet frames must pass Time Controlled Gates that follow a Gate Control List (GCL). Intervals to control the gates are in the range of a few hundred microseconds to some milliseconds. Opening times for gates range from 50 µs to Milliseconds.
āA gate that is open for an unnecessarily long time reduces the capacity of the network,ā Zapke explains. āThat is why bridges normally know exactly when a scheduled frame arrives. Open gates with high time accuracy are a hardware function in modern TSN-enabled SoCs, as well as some FPGAs.ā
Zapke says TSN introduces āPre-emption and Interspersing Trafficā to āreduce this loss of throughput. Traffic with lower priority can be cut into smaller fragments so that the guard band becomes very small. This allows traffic with higher priority to be transported, even if a long frame with lower priority is already using the connection.ā
All of this works well, Zapke says, as long as there is no overload with high priority traffic on the network. An overload could be the result of a crashed application that exceeds its traffic limits. Compensating for this is āPer Stream Filtering and Policingā, which can apply metrics and filter traffic according to policies. āThis is a network security feature that keeps the network operational,ā says Zapke.