Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints
Full text
BACHELOR DEGREE THESIS TITLE: Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints DEGREE: Double Bachelor Degree on Network Engineering and Telecommunications Systems Engineering AUTHOR: Jordi Cros Mompart DIRECTORS: David Rincon Rivera Anna Agustí Torra DATE: 21 June 2021
Títol: Desenvolupament d’un pla de control SDN per terminals de Time- Sensitive Networking (TSN). Autor: Jordi Cros Mompart Director: David Rincón Rivera Anna Agustí Torra Data: 21 Juny 2021 Resum Dins el món industrial i d’automatització, com ara indústria 4.0 o busos de comunicació de vehicles, l’extensió d’Ethernet amb capacitats relacionades amb la sincronia i la qualitat de servei (reserves d’ample de banda o garanties de retard) es defineix a una sèrie d’estàndards que descriuen com es podrien unificar les comunicacions deterministes amb les best-effort dins d’una mateixa xarxa. Aquesta extensió a l’Ethernet convencional s’anomena Time-Sensitive Networking (TSN) i ha estat creada pel TSN task group del comitè IEEE 802.1. Per una altra banda, la gestió del pla de control de les xarxes locals (LAN) evoluciona cap al concepte Software Defined Networking (SDN). En aquesta arquitectura, un controlador centralitzat s’encarrega de configurar els nodes de xarxa per tal de satisfer els requeriments dels usuaris. Les capacitats lògiques del controlador SDN venen a partir d’implementacions de codi obert i propietàries, permetent una gran flexibilitat en la gestió de la xarxa. Finalment, OPC-UA és una arquitectura que permet la interconnexió de qualsevol tipus de dispositiu industrial o administratiu, i que obre la porta a l’automatització i digitalització dels processos industrials. Ofereix molts graus de llibertat, ja que tan sols defineix interfícies entre elements, la seva estructura de dades i diferents modalitats de transmissió de dades. L’objectiu d’aquest projecte és desenvolupar un prototip de l’arquitectura de gestió de terminals TSN basada en SDN, tal com es defineix a l’estàndard IEEE 802.1Qcc. Aquest element, la Centralized User Configuration (CUC), es comunicarà a través de OPC-UA amb els dispositius que vulguin enviar fluxos TSN per proporcionar-los la configuració necessària. També es comunicarà amb el controlador de xarxa, per tal d’establir correctament el flux TSN extrem a extrem (des del terminal emissor fins al receptor, passant pels commutadors TSN). Addicionalment, es dissenyaran els dispositius que consumiran el trànsit time-sensitive, que necessiten aplicar la configuració que els arriba de manera automatitzada. S’ha aconseguit implementar la CUC i els terminals de l’arquitectura seguint l’arquitectura SDN. A més, s’ha deixat preparada la interfície amb el component que falta, la Centralized Network Configuration (CNC).
Overview In the industrial and automation world, such as Industry 4.0 or vehicle communication buses, an Ethernet extension that provides timing and quality of service (bandwidth reservations or delay guarantees) has been defined in a series of standards whose aim is to describe how deterministic, time-sensitive and best-effort communications can use the same network. This Ethernet extension is called Time-Sensitive Networking (TSN) and it has been defined by the TSN Task Group of the IEEE 802.1 committee. The field of the management of the control plane of Local Area Networks (LANs) is evolving towards the Software Defined Networking (SDN) concept, based on a centralized network controller. This controller configures all of the network nodes to satisfy user requirements. The capabilities in SDN controllers come from both open-source and proprietary implementations. Due to this, the SDN controller is a flexible element in terms of network management. Finally, OPC-UA is an architecture that interconnects any kind of industrial or administrative device, with the aim to standardize and automate industrial communications in the application layer. It achieves this goal by only defining the interfaces between elements, its data structure and different communication modes, which allows it to be versatile. The goal of this thesis is to build a prototype part of the TSN endpoint management architecture, based on SDN as defined in the IEEE 802.1Qcc standard. This element, the Centralized User Configuration (CUC), will establish a session using OPC-UA with the endpoints that want to take part in a TSN flow, so that they can be properly configured, and it will also communicate with the network controller, so that the TSN flow is established end-to-end (from the talker endpoint to the listener endpoint, passing through the TSN switches). Additionally, this thesis includes the design of the endpoints that will generate and listen to the TSN flow, which will be automatically configured. The results of this thesis include the development of the CUC and the endpoints following the SDN concept. In addition, the interface with the Centralized Network Configuration is prepared for further integrations. Title: Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints Author: Jordi Cros Mompart Directors: David Rincón Rivera Anna Agustí Torra Date: 06/21/2021
Acknowledgements Gràcies als meus pares per la vida plena d’oportunitats que m’han donat, el recolzament i la seva companyia. Especial agraïment als meus tutors David Rincón i Anna Agustí. A banda del seguiment, valoro molt el seu rigor en la docència. A Gabriel, mi compañero de laboratorio, por su ayuda e interesantísimas aportaciones a este proyecto. Finally, my sincere love and gratitude to Julie Kim, since nothing would be the same without her by my side. “No one wants to learn by mistakes, but we cannot learn enough from successes to go beyond the state of the art.” – Henry Petroski
TABLE OF CONTENTS INTRODUCTION ................................................................................................ 1 CHAPTER 1. DATA LINK LAYER AND IEEE STANDARDS ........................... 5 1.1. Data Link layer ................................................................................................................... 5 1.1.1 IEEE 802.1Q - VLAN .............................................................................................. 6 1.1.2 IEEE 1588/ 802.1AS – Precision Time Protocol .................................................... 7 1.2. Time Sensitive Network standards ................................................................................ 10 1.2.1 IEEE 802.Qbv – Enhancements for Scheduled Traffic ........................................ 10 1.2.2 IEEE 802.Qav – Credit Based Shaper ................................................................. 13 1.2.3 Standards in process ............................................................................................ 14 CHAPTER 2. NETWORK MANAGEMENT AND OPC-UA .............................. 16 2.1 NETCONF, RESTCONF, YANG and Configuration Data Models ................................ 16 2.1.1 Information models and data models ................................................................... 16 2.1.2 YANG .................................................................................................................... 18 2.1.3 NETCONF ............................................................................................................ 22 2.1.4 RESTCONF .......................................................................................................... 25 2.2 OPC-UA ............................................................................................................................. 26 2.2.1 Clients and Servers .............................................................................................. 29 CHAPTER 3. IEEE 802.1QCC ......................................................................... 32 3.1 IEEE 802.1Qcc clause 46 – Time Sensitive Networking Configuration...................... 32 3.1.1 UNI Integration ..................................................................................................... 33 3.1.2 Stream Transformation ......................................................................................... 36 3.1.3 Example workflow ................................................................................................. 37 CHAPTER 4. SOFTWARE AND HARDWARE FOR TSN ENDPOINTS ......... 40 4.1 Kalycito – Linux and TSN using open62541 ................................................................. 41 4.2 Linux, kernel and Linux Network Stack ........................................................................ 41 4.2.1 General system architecture ................................................................................. 42 4.2.2 Linux kernel .......................................................................................................... 43 4.2.3 Linux Network Stack ............................................................................................. 44 4.3 Intel i210 features related to TSN ................................................................................... 45 CHAPTER 5. ARCHITECTURE DESIGN ........................................................ 46 5.1 Statement of the objectives ............................................................................................ 46 5.2 Centralized User Configuration...................................................................................... 47 5.2.1 OPC-UA Client...................................................................................................... 48 5.2.2 Logic Unit Center .................................................................................................. 48 5.2.3 RESTCONF Client ................................................................................................ 57
5.3 Endpoints ......................................................................................................................... 58 5.3.1 Address Space definition ...................................................................................... 59 5.3.2 Interface configuration .......................................................................................... 62 CHAPTER 6. IMPLEMENTATION ................................................................... 63 6.1 LAN ................................................................................................................................... 63 6.2 Time synchronization between Endpoints and the TSN switch ................................. 63 6.2.1 Installation and use of linuxptp ............................................................................. 64 6.2.2 Interconnection with the TSN switches ................................................................ 66 6.3 Details on OPC-UA Address Spaces ............................................................................. 67 6.4 Endpoint configuration ................................................................................................... 68 6.5 Prototype integration and set up ................................................................................... 70 6.5.1 System requirements ............................................................................................ 70 6.5.2 Set up of the components ..................................................................................... 70 CHAPTER 7. TESTS AND RESULTS ............................................................. 76 7.1 Basic scheduling test and evaluation with OPC-UA Pub/Sub implementation ........ 76 7.1.1 Set up and configuration properties ..................................................................... 76 7.1.2 Results .................................................................................................................. 78 7.1.3 Test conclusions ................................................................................................... 87 7.2 Scheduling performance test with TSN traffic generated by iperf ............................. 87 7.2.1 Set up and configuration properties ..................................................................... 87 7.2.2 Results .................................................................................................................. 89 7.2.3 Test conclusions ................................................................................................... 94 CHAPTER 8. CONCLUSIONS AND FUTURE LINES ..................................... 96 8.1 Conclusions ..................................................................................................................... 96 8.2 Future lines of development ........................................................................................... 97 8.3 Sustainability considerations ......................................................................................... 98 REFERENCES ................................................................................................. 99 GLOSSARY ................................................................................................... 105 ANNEX A. IEEE AND TSN STANDARDS ..................................................... 108 A.1 IEEE 802.1d – Spanning Tree Protocol ....................................................................... 108 A.2 IEEE 802.1aq – Shortest Path Bridging and Shortest Path First .............................. 108 A.3 IEEE 802.1ab – Link Layer Discovery Protocol .......................................................... 109 A.4 IEEE 802.1Qat - Stream Reservation Protocol ............................................................ 110 A.5 IEEE 802.1Qch – Cyclic Queuing and Forwarding ..................................................... 111
A.6 IEEE 802.1Qci – Per Stream Filtering and Policing .................................................... 112 A.7 IEEE 802.1Qbu / 802.3br – Frame Preemption ............................................................ 112 A.8 IEEE 802.1Qcr – Asynchronous Traffic Shaping ........................................................ 112 A.9 IEEE 802.1Qca – Path Control and Reservation ......................................................... 113 A.10 IEEE 802.1CB – Frame Replication and Elimination for Reliability .......................... 113 A.11 IEEE 802.1CM – Time Sensitive Networking for Fronthaul ....................................... 115 A.12 IEEE 802.1AX – Link Aggregation ................................................................................ 115 ANNEX B. UNI YANG MODULE ................................................................... 116 ANNEX C. PROJECT DEVELOPER’S GUIDE .............................................. 120 C.1 Project Structure ............................................................................................................... 120 C.2 CUC .................................................................................................................................... 121 C.2.1 OPC-UA Client.................................................................................................... 122 C.2.2 Logic Unit Center ................................................................................................ 123 C.2.3 RESTCONF Client .............................................................................................. 124 C.3 Endpoints .......................................................................................................................... 124 C.3.1 Talker .................................................................................................................. 124 C.3.2 Listener ............................................................................................................... 126 ANNEX D. ENDPOINT CONFIGURATION EXAMPLE ................................. 128 D.1 iptables .............................................................................................................................. 128 D.2 tc qdisc .............................................................................................................................. 129 D.2.1 taprio ................................................................................................................... 129 D.2.2 etf ........................................................................................................................ 131 D.2.3 cbs ...................................................................................................................... 132 ANNEX REFERENCES ................................................................................. 133
LIST OF FIGURES AND TABLES Fig. 0.1 Fully centralized architecture applies to an SDN network Fig. 1.1 Frame format for 802.3 - Ethernet and 802.11 – WiFi [8] Fig. 1.2 Ethernet frame format adapted with the VLAN tag [11] Fig. 1.3 BMCA clock distribution tree [12]. The blue lines are the logical tree that distributes the timing Fig. 1.4 PTP synchronization establishment [13] [14] Fig. 1.5 gPTP port-bounded mechanism [13] Fig. 1.6 802.1Qbv Cycle schema [15] Fig. 1.7 802.1Qbv Cycle schema with guard band [15] Fig. 1.8 Management of priority queues [16] Fig. 1.9 Credit Based Shaper bandwidth limiter [17] Fig. 2.1 Module definition in YANG language Fig. 2.2 Header definition of the YANG module Fig. 2.3 Core definition of the YANG module Fig. 2.4 Configuration data definition of the YANG module Fig. 2.5 State data definition of the YANG module Fig. 2.6 Instance data of the YANG module Fig. 2.7 Schema of a data model server Fig. 2.8 OPC-UA schematic overview, from [28] Fig. 2.9 OPC-UA over a Time Sensitive Network [29] Fig. 2.10 Address Space Node classes [32] Fig. 2.11 OPC-UA Pub/Sub logical overview [29] Fig. 3.1 Fully Centralized model scheme, from [34] Fig. 3.2 Stream Transformation in an endpoint device [34] Fig. 4.1 Intel i210 Network Card Interface [36] Fig. 4.2 Visual representation of a Linux system [38] Fig. 4.3 Packet processing in a Linux system [35] Fig. 5.1 Scenario of the project Fig. 5.2 CUC overview Fig. 5.3 Transmission selection choices [43] Fig. 5.4 Stream Identification types [44] Fig. 5.5 Sequence encoding and decoding method types [45] Fig. 5.6 Error types on the Status group [46] Fig. 5.7 Time aware shaper example Fig. 5.8 Endpoint overview Fig. 5.9 Overview of the architecture of the prototype Fig. 6.1 LAN created for the prototype Fig. 6.2 gPTP.cfg file Fig. 6.3 Captures from ptp4l and phc2sys processes Fig. 6.4 SoC-e MTSN 802.1AS synchronization tab Fig. 6.5 Wireshark capture of gPTP protocol in interface enp2s0 Fig. 6.6 Address Space instances for Talker and Listener
4 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints followed by the instantiation of the OPC-UA endpoints and the details on how their time-sensitive configurations will be performed. At the end of the chapter, a final prototype architecture is presented. The last block consists of testing the prototype, and discussing the results and the conclusions. Additionally, it proposes future directions that the project may follow with the current development of new TSN standards. 7. Chapter 7 is the presentation of the testbed where the solution has been tested. Practical results of TSN configurations are evaluated to determine the reliability of the configuration computed by the CUC and the configuration of the endpoints. 8. Chapter 8 describes the conclusions obtained throughout the research, development and implementation of the project, and discusses future directions. The document includes some annexes with additional information. It is recommended to read them to fully understand the software implementation of this project, as well as broaden the context of the project. The annexes are as follows: 1. Annex A includes a list of the standards that are related with Time Sensitive Networking. Other standards are also mentioned because they may interfere with some of the qualities that TSN brings. For example, Spanning Tree Protocol may limit the number of disjoint paths for a TSN stream. Some of the TSN standards specify protocols and methodologies for network elements, such as Frame Replication and Elimination for Redundancy. 2. Annex B provides a description of the UNI YANG module, the data interface that defines the communication between the CUC and the CNC. 3. Annex C is the project developer’s guide for the software implementation. Based on NodeJS, CUC can be set up in any device, while the endpoints need to have a TSN compatible interface. This annex aims to describe the project’s structure and some of its insights to help future developers. 4. Annex D gives a sample of an endpoint configuration, providing specific details on how the Linux system tools are used. Its content is very important to understand how the devices are automated from the CUC configuration, since these tools are used in the prototype.
CHAPTER 1. DATA LINK LAYER AND IEEE STANDARDS 5 CHAPTER 1. DATA LINK LAYER AND IEEE STANDARDS This chapter describes some technologies and implementations related to the design and deployment of the thesis’ prototype. It provides information from standards that helps the reader to completely understand the current status of TSN. 1.1. Data Link layer Time Sensitive Networking is aimed to be implemented within the Layer 2 of the OSI model, the Data Link layer. The Data Link layer is responsible for preparing the data that will be transmitted through a physical channel. Its goal is to transmit the data without errors between two adjacent network nodes. To achieve that, it offers medium access mechanisms, by performing device addressing and defining the network topology. The functionalities that are closer to the physical layer rely on frames, composed of payload and headers (additional information related to routing and forwarding). This frame’s format is not unique, it depends on the physical access they have been designed for. Figure 1.1 shows the generic Ethernet and WiFi frames. Their definition belongs to the Medium Access Control (MAC) sublayer, defined in IEEE 802.3 and 802.11 standards, respectively. Fig. 1.1 Frame format for 802.3 - Ethernet and 802.11 – WiFi [8]. In a higher level there is Logical Link Control (LLC), in charge of offering to upper layers an interface that is independent from the physical device that will be used.
6 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints From a practical point of view, we can consider the LLC as the network driver that uses the Network Interface Card (NIC) and the MAC handles the protocol performance that will be executed at the system kernel, before sending a payload to the physical device. The services that the Data Link layer provides are the following [9]: 1. Generic a. Conforming frames from upper layer data packets. b. Frame synchronization 2. LLC a. Flow and error control, commonly used in wireless protocols, since wired Ethernet is nowadays practically error free. 3. MAC a. Medium Access Control (CSMA/CA, CSMA/CD) b. Physical addressing. c. LAN switching, including Spanning Tree Protocol or Shortest Path Bridging. d. Queues and scheduling e. Quality of Service (QoS) f. Virtual LAN (VLAN) As we can see, the second OSI layer includes a wide variety of functions. Some of them are not related to our working context, but others are important, such as VLAN, QoS, queuing or scheduling. IEEE 802.1 group is responsible for developing LAN standards (see [10] for more information about the standards). The number of protocols that this group defines is quite big, so short a list with the ones that are related in some way or another with our project follows. 1.1.1 IEEE 802.1Q - VLAN TSN relies on VLANs to distinguish different streams and priorities. A Virtual LAN is an independent logical network that uses a shared physical network, so that several logical networks can coexist. Thanks to this concept, different flows can be maintained as if they were all in separate networks with its
CHAPTER 1. DATA LINK LAYER AND IEEE STANDARDS 7 own broadcasting domain. VLANs can be defined in various manners, such as in/out port, MAC address based or other static methodologies, but VLAN tagging, as defined in IEEE 802.1Q, is the predominant solution. If we consider the Ethernet in Figure 1.1 frame with the VLAN tag, the frame is modified as Figure 1.2 shows: Fig. 1.2 Ethernet frame format adapted with the VLAN tag [11]. 802.1Q adds four extra bytes to the original Ethernet frame, and the original’s EtherType value is assigned to 0x8100 in order to flag the altered format of the frame and avoid compatibility issues with non-VLAN devices. The 802.1Q tag found in the modified Ethernet frame provides the VLAN information, as follows: 1. User priority (three bits): used by TSN (and other protocols) to determine the priority of the flow in the network. 2. Canonical Format Indicator (one bit) 3. VLAN ID (12 bits): used to uniquely identify the VLAN 1.1.2 IEEE 1588/ 802.1AS – Precision Time Protocol The goal of this protocol is to synchronize the internal clocks of the elements inside a LAN. These clocks may have distinct features, and the first goal of generic Precision Time Protocol (gPTP) is to find the clock with the highest accuracy (Grand Master, GM). That will be the reference for all the other clocks in the network. This process is called Best Master Clock Algorithm (BMCA) and it generates a time distribution tree with the GM as root, as Figure 1.3 shows. In addition, it also handles faults from the Master Clock and resynchronizes all devices.
8 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints Fig. 1.3 BMCA clock distribution tree [12]. The blue lines are the logical tree that distributes the timing. Once the Master Clock is chosen, other devices will be considered Slaves and will be synched to the Master. Figure 1.3 also shows how network elements set their ports states, to obtain the synchronization from the port with the best timing source. Once the type of every device’s clock is determined, the synchronization process begins, as shown in Figure 1.4: 1. Slave clocks periodically receive a Sync message from the Master, which includes the time as seen from the Master (T1), which is received at local time T2 by the slave, but it is still not correct because of the delay between the slave and the master (offset). 2. Slaves send the Delay Request message in the instance T3 and the Master marks the timestamp before sending it back (T4) using the Delay Response. 3. Slave clocks can calculate their offset with the Master, and use it correctly.
CHAPTER 1. DATA LINK LAYER AND IEEE STANDARDS 9 Fig. 1.4 PTP synchronization mechanism [13] [14]. The offset between Master and Slave clocks is determined by the following expressions: 𝑂𝑓𝑓𝑠𝑒𝑡 = (𝑇2 − 𝑇1)− 𝑃𝑎𝑡ℎ 𝐷𝑒𝑙𝑎𝑦 (1.1) 𝑃𝑎𝑡ℎ 𝐷𝑒𝑙𝑎𝑦 = (𝑇2−𝑇1)+(𝑇4−𝑇3) 2 (1.2) The precision level depends on the network’s performance, since a high jitter implies an inaccurate path delay estimation and, consequently, an imprecise offset. Once all clocks are synchronized, PTP/gPTP protocols are only useful to maintain this status in case of failures or disconnections. In order to improve the accuracy, and since the actual time of emission of the Sync message may not be exactly the same T1 that appears in the message, a Follow Up message (carrying the actual time the previous Sync message was sent) can be used. The process is shown in Figure 1.5, where the middle bridge computes its own clock before forwarding a new generated Follow Up message. Note that Figure 1.4 shows the Sync and Follow up transmissions into a single one to simplify the communication between endpoints, even though both are separate transmissions.
10 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints Fig. 1.5 gPTP port-bounded mechanism [13]. All devices that take part in a TSN network must implement gPTP, since an accurate synchronization is crucial for a good performance of the real time standards. 1.2. Time Sensitive Network standards Since TSN is the most important field of knowledge of this document, there is a need to review all the contents inside 802.1 standards and, specifically, the amendments to 802.1Q standard. Each one of the standards gives different approaches on TSN. 1.2.1 IEEE 802.Qbv – Enhancements for Scheduled Traffic The Time Aware Scheduler (TAS) defines a periodical cycle in which it is possible to specify slices of the link capacity. These slices are slots of time in which the data transmission is reserved only from specified queues. Its objective is to distribute all the different TSN priorities and best-effort flows in this interval and ensure a reservation of the bandwidth for all of them. An example of this idea is shown in Figure 1.6.
CHAPTER 1. DATA LINK LAYER AND IEEE STANDARDS 11 Fig. 1.6 802.1Qbv Cycle schema [15]. The only problems that may emerge from this time distribution is that the sending of the frame starts too close to the next reserved slot. Therefore, the transmission may invade the next slot. In order to avoid that, it is necessary to add a guard interval. The size of the interval should correlate with the transmit time that it takes to send the maximum size Ethernet frame, 1524 bytes. This guard avoids the current data to overlap with the next priority slot. Because of the guard intervals, the transmission time will be reduced, as shown in Figure 1.7. Fig. 1.7 802.1Qbv Cycle schema with guard band [15]. Since the publication of IEEE 802.1Q-2014, a new enhancement proposal named Enhancements for Scheduled Traffic (EST) dynamically establishes a status for every different priority. A gate is associated with each different traffic priority, and the gate state determines if it is possible to transmit a packet from a certain queue or not. More specifically:
12 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints 1. Open: frames are selected to be transmitted according to the algorithm in the queue, such as Credit Based Shaper (seen in the following section 1.2.2) or First in First Out (FIFO). 2. Closed: frames from this priority will not be transmitted. In order to have control over the gates’ status, there is a list known as Gate Control List (GCL), which every entry in it contains the gate status for all priorities. Figure 1.8 shows an example with different priorities, all with their own transmission algorithm and a gate controlled by the GCL pointer. Fig. 1.8 Management of priority queues [16]. Thanks to this gate management, it is possible to prioritize the frames from a given VLAN tag, ensuring a deterministic transmission time and bandwidth. The operations that can be performed on the gates include: 1. SetGateState: changes the gate state of the gate, specifying a duration interval to avoid premature changes. 2. Set-And-Hold-MAC: acts as SetGateState, but it indicates the moment in which the sending of a preemptible frame shall be interrupted (check an introduction to Frame Preemption in section A.7 of the annexes). 3. Set-And-Release-MAC: equivalent to the previous one, but instead of indicating the interruption point it indicates the resume point.
CHAPTER 1. DATA LINK LAYER AND IEEE STANDARDS 13 One of the main goals of prototype developed in this thesis is to provide the TSN endpoints with the necessary configuration to perform this traffic scheduling. 1.2.2 IEEE 802.Qav – Credit Based Shaper Originally, the 802.1Qav standard was independent, but since the release of 802.1Q-2011 we can find it inside 802.1Q standard. The important content of 802.1Qav is the Credit Based Shaper (CBS), which is used as a bandwidth limiter for different traffic queues that follow VLAN’s priority codes. The bandwidth limiter relies on several parameters, as follows: 1. portTransmitRate: link speed. 2. idleSlope: when the queue is not transmitting, it gains credits based on this rate. It can never be higher than the portTransmitRate. 3. transmit: boolean value that maps the current door status (transmitting or idle). If combined with frame pre-emption, the door status will be idle every time that pre-emption takes part. Because of that combination, the CBS is not losing credits from overheads, for example. 4. credit: number of bits available to be sent. 5. sendSlope: when the queue is transmitting, it loses credits based on this rate. It is a value obtained straight from idleSlope and portTransmitRate: 𝑠𝑒𝑛𝑑𝑆𝑙𝑜𝑝𝑒 = 𝑖𝑑𝑙𝑒𝑆𝑙𝑜𝑝𝑒 − 𝑝𝑜𝑟𝑡𝑇𝑟𝑎𝑛𝑠𝑚𝑖𝑡𝑅𝑎𝑡𝑒 (1.3) 6. transmitAllowed: boolean value that maps if the credit is positive or negative to determine the possibility to dequeue data. Figure 1.9 illustrates how the process works and the role of these parameters. More details of this standard may be found in Annex L of the official IEEE 802.1Q- 2018 standard [18].
20 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints status. Also, it can contain state data, read-only properties of a module, such as the number of packets transmitted by the given interface. First, let’s take a look at the configuration data, an easy example compared to the ones used by the IEEE standards. In Figure 2.4 there is a definition of four leaves, which maps information from an interface. Each leaf specifies its own type and description, but also can include various inner properties. As an example, the pattern used in Figure 2.3 or the default flag found in the “enabled” property. Notice that the “address” and “subnet-mask” are defined as dotted-quad types, so the pattern designed in it will be applied. Fig. 2.4 Configuration data definition of the YANG module. After the definition of the configuration data, the state data definition is presented. All state data is embedded in a list that contains more than a subtype of every element. Every entry on the list will have a specific leaf “name” and another named “oper-status”. The “name” is a common string and “oper-status” is an enumeration defined inside the leaf. This enumeration can only be used by the “oper-status” variable, different to the type definition defined in Figure 2.3. If we take a look to Figure 2.5, the “interface-state” list has a property “config” set to false. This means that the list is a state variable and cannot be modified as a
CHAPTER 2. NETWORK MANAGEMENT AND OPC-UA 21 configuration variable. In addition, the “key” property sets the attribute that will be used as unique reference to the element. Fig. 2.5 State data definition of the YANG module. With all these definitions, this is a built YANG module. This module can be instantiated with data, like example is shown in the Figure 2.6. YANG instances intend to be sent to a network element that has the same YANG module. Since they share the same module definition, a correct configuration is ensured. The following XML contains two distinct interfaces that contain an IP address and a subnet mask assigned to each of them. Since the “enable” field is not included, both will adopt the default state, which is set to “false”.
22 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints Fig. 2.6 Instance data of the YANG module. According to this example, the YANG modules specify formats on the configuration of the different protocols that a machine can implement. Additionally, it offers the possibility to give these configurations with a well-formed guarantee to avoid misconfigurations. Despite having a clear definition of the YANG modules, there is a need to set up an environment and logic on them that sends and receives the instance data. This point is where NETCONF or RESTCONF come in play, since they equip the logic on the establishment and monitoring of the configuration, as well as the status of the devices based on the YANG modules shared by the controller and the device. 2.1.3 NETCONF NETCONF [25] appeared as an answer to the inefficiency of SNMP and other network configuring protocols, not user friendly or standardized. It needs specific implementations for each device model. NETCONF is based on a client – server communication, where the controller acts as a client and the network element as the server. In summary, this protocol performs two different operations: read the operational status of a device or update its configuration. Moreover, it allows the servers to perform actions, configuration or management processes triggered by the clients. In addition, clients can subscribe to notifications, so that they receive the updated information without the need of a request. Normally, every message exchanged between client and server is a Remote Procedure Call (RPC) or RPC-Reply, the response generated by the server. An RPC-Reply can be a simple OK indicating the success of the operation or it may contain the entire device configuration, depending on what is requested. By standard, RPC is encoded in XML and the
CHAPTER 2. NETWORK MANAGEMENT AND OPC-UA 23 communication between client and server is performed by SSH using the port 830, as default. Before diving into the contents of the different RPCs, the architecture of a server based on data models will be presented, as it helps the understanding of NETCONF and RESTCONF functionalities. 2.1.3.1 Data model-based server architecture Figure 2.7 summarizes the general architecture of a server, valid for both NETCONF and RESTCONF servers. Fig. 2.7 Schema of a data model server. YANG modules follow a model-based server architecture because, as mentioned, they are used to defining the servers’ needs in terms of implementation and monitoring. These YANG modules will be integrated in the system, so that the server’s configuration and status can be mapped to the instance YANG data and treated with RPCs. When the NETCONF core receives a request from a client, it parses the content, verifies the YANG models and executes the demanded actions. This process includes setting the configuration database and the configuration of the device in a strict controlled manner. If an error occurs, a roll back of the steps is performed by the server. In some cases, the actions will be to poll data to update the client. Others can be to modify any configuration entry in the configuration database, which is the storage that maps the actual configuration of the device. After processing all the different requests
24 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints that a client has sent, a single response will be generated, containing the results for all the requests. 2.1.3.2 NETCONF features This protocol provides several improvements over CLI or SNMP-based management: 1. NETCONF transactions guarantee that the configuration is applied entirely, following the ACID concept used in databases: a. Atomicity: if all changes are not applied, all new configuration will be discarded. This avoids the chance to abort during the middle of the configuration process. b. Consistency: all in one. All the new configurations that are included in the instance YANG data are applied at the same time, avoiding transactional states and increasing the simplicity in servers. c. Independence: multiple clients can perform changes in the configuration without interfering. d. Durability: when a transaction has been performed, there are guarantees of not losing them, even with a total disconnection from the device. 2. NETCONF can manage different contexts, such as global configuration and specific YANG modules. 3. NETCONF servers offer the distinction between distributing data model instances and applying them. This means that a certain configuration may be received and processed by the server, but not applied until the client specifies to do so. These features come from the fact that NETCONF includes mechanisms to control the configuration database. However, the server does not only have one database; it has three, all of them modifiable: 1. Startup configuration datastore: its content is read and applied to the running datastore when the device is powered on. This means that the device will be configured at power on as stated in the content of this database. 2. Running datastore: contains the actual configuration of the device. 3. Candidate datastore: space to apply changes without affecting the active configuration. When a server receives an RPC “commit
CHAPTER 2. NETWORK MANAGEMENT AND OPC-UA 25 configuration”, the content of this datastore will be transferred to the running datastore. Prior to the RPC exchange between a client and a server, the NETCONF protocol starts by sending a hello message, where parties specify the protocol version and expose the supported YANG modules. After this first exchange, RPC and RPC- Reply can be performed. The main different calls are listed below: 1. get-config: to obtain a part or the whole configuration datastore. 2. edit-config: change the content of the configuration datastore. 3. copy-config: copy content from a datastore to another. For example, to set the startup datastore with the content of the running one. 4. delete-config: deletes the specified contents of the given datastore. 5. lock: locks a datastore, avoiding it to be changed by another client or datastore. 6. unlock: releases the locking of a datastore. 7. get: returns the running datastore and the device status information. 8. close-session: finishes the NETCONF session. 9. kill-session: forces the finalization of the NETCONF session. 10. get-data: a more flexible manner to get configuration and state information. 11. edit-data: also, a more flexible way to modify the contents of a datastore. As a result of the configuration datastores and the types of operations that RPCs perform to the server, the transactions that include changes in the configuration can be protected from interferences. As an example, the configuration is sent to the configuration datastore (locking it) and the update to the running datastore is triggered. By locking the configuration datastore, others cannot interfere in the current configuration process, so that all configuration processes can be handled in a controlled manner. 2.1.4 RESTCONF This protocol can be considered an adaptation from NETCONF to the known RESTful APIs, basing the communication on HTTPS requests, instead of a persistent communication like SSH that NETCONF uses. Due to this, RESTCONF [26] is considered a subset of NETCONF, with some differences:
26 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints 1. RESTCONF considers in its standard both JSON and XML encodings for the requests (YANG data instances). NETCONF only takes XML into account. 2. Due to the nature of HTTPS, it is not possible to split requests in different messages. All of the information is sent together. 3. RESTCONF does not have any manner to validate the changes before applying a new configuration. Instead, RESTCONF implicitly checks the data during the request, validating the YANG module. In other terms, the only datastore available in RESTCONF is the running datastore, so it is not possible to modify the candidate datastore to perform more complex testing before commitment. To summarize, RESTCONF does not have any notion about the lock, candidate datastore or operation commitment. We could conclude that it is not an optimal protocol to manage different devices, since clients have less control over the servers. Nevertheless, it is interesting to rely on this protocol to communicate with the network controller’s northbound interface (explanation extended in Chapter 3). 2.2 OPC-UA OPC-UA [27] is the evolution from OPC Classic, and can be described as a workspace or architecture that aims to communicate different platforms in a secure way. It is arranged for services in the industrial or business environment, to interconnect every single device to the processes. All communications performed in OPC-UA are done between a client and a server. The client and the server identity may be confusing at first for some software developers, due to the fact that in automation, all endpoints (such as sensors or actuators), are considered servers. Then, the clients are typically the controllers or managers. The clients obtain as much information as needed from the servers distributed on the industrial floor, being able to have control over all these elements. Figure 2.8 shows an overview on how a server can receive requests from several different clients. Each of the clients performs an operation with the server, which may include, for example, an action or a data poll.
CHAPTER 2. NETWORK MANAGEMENT AND OPC-UA 27 Fig. 2.8 OPC-UA schematic overview, from [28]. The main differences between OPC-UA and OPC Classic are the following ones: 1. OPC Classic is strictly dependent on Microsoft, since the communication relies on DCOM, a technology considered today as deprecated. 2. Insufficient data models: OPC Classic is not able to represent data types and their relations, which may be essential for an accurate industrial design and data treatment. 3. Security: DCOM is not a safe protocol. As an enhancement, OPC-UA bases all its communications in secure channels, using TLS and certificates to authenticate every device. OPC-UA is designed to connect all levels of data management that may partake in an activity. For example, in an industrial context, for example, OPC-UA can communicate databases, the ERP (SAP, Odoo, among others), sensors, controllers or monitoring devices. OPC-UA aims to be scalable, because it does not provide many specifications on how to configure a device to take part in the system. This offers the possibility to very different elements to take part in the architecture. It intends to be secure, since it uses the TLS protocol for the communications, as well as being resilient, offering alarms, events, discovering, reading or writings, among others. OPC-UA is a service-oriented architecture, which includes: 1. Discovery: clients can get to know which data is available, its relation with other fields and which metadata can be processed. 2. Publish and Subscribe: clients use this type of communication to choose how and when they want to receive the desired data. For instance, a Publish/Subscribe communication requires time-sensitive handling.
28 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints 3. Node: used to create, delete or modify the data structure, known as Address Space, which the server maintains. 4. Methods: nodes used to call functions in the servers. OPC-UA extends beyond the boundaries for this project, because it brings all the necessary parts to interconnect any system in an industrial network. However, its utilization between endpoints and the controller element of a TSN network may be a viable solution. There also is growing research on the combination of both architectures, which state that implementing OPC-UA over a TSN network may provide real time and loss guarantees between OPC-UA components. Using this solution, there can be a temporal synchronization in the critical processes that may require a strict synchronization with other elements. The idea of OPC-UA over TSN is shown in Figure 2.9. Fig. 2.9 OPC-UA over a Time Sensitive Network [29]. OPC-UA allows communication between any elements in the industrial network. If TSN network is the infrastructure used, then OPC-UA communications become deterministic [30]. In addition, open standards are used throughout all the OSI layers, avoiding any proprietary protocol. By this, it is much easier to combine real time-aware devices with common ones. The time-aware devices need determinism in the network, while others flood the network with best-effort traffic, congesting it.
CHAPTER 2. NETWORK MANAGEMENT AND OPC-UA 29 2.2.1 Clients and Servers It is important to remark how the concept of client and server differs from what non-automation developers are used to. Clients are the centralized controlling elements and the servers are the distributed endpoints that perform some actions on the industrial network. Due to this, servers are prepared to receive more than one connection from clients to receive data, process some logic or call asynchronous functions [31]. All the communication between the client and a server is based on the server’s Address Space. 2.2.1.1 Address Space Address Space is the way that an OPC-UA server structures and presents the content to its clients. It is organized in folders, so that the client has a controlled and orderly access to the contents. For example, it is possible to distribute the content of an Endpoint in two different sections: “InterfaceConfiguration” and “TrafficSpecification”. The Address Space has different types of entries, called nodes, whose types can be seen in Figure 2.10: Fig. 2.10 Address Space Node classes [32]. 1. Object: represents a system, a component or other objects. For example, a network interface card. 2. Variable: used to represent objects’ properties. 3. Method: represents a function that can be called and executed in the server. 4. ReferenceType: used to reference other nodes instances. 5. ObjectType: straight analogy to objects in Object Oriented Programming.
36 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints 4. InterfaceConfiguration 5. FailedInterfaces For every talker or listener, the groups “AccumulatedLatency” and “InterfaceConfiguration” are different. Then, the separation between “Status” instances must be highlighted, so that it is splitted and treated independently in the CUC. “StreamID” and “StatusInfo” must be included in every response, both for “Join” or “Leave” events. “AccumulatedLatency” must be included in the “Join” responses, meanwhile “InterfaceConfiguration” is optional. Every time that a group is optional it is recommended to be included anyways, because it provides better details, thus a better network optimization. “FailedInterfaces” is an optional subgroup that specifies which and why network interfaces have failed in the configuration. These three groups, “Talker”, “Listener” and “Status” are mapped onto a YANG module interface that the 802.1Qcc standard provides in one of their annexes. This module interface needs an implementation, that can be found in Annex B of this document. With this YANG module, it is possible to establish a NETCONF or RESTCONF communication between the CUC and the CNC. 3.1.2 Stream Transformation In order to apply the TSN behavior to the network interface of the endpoints, the network needs a way to identify which streams take part in the TSN domain and which ones are best-effort. Commonly, the TSN streams are identified according to the VLAN ID (see Section 1.1.1). Nevertheless, it is possible that this VLAN ID differs from the endpoint and the network. To mitigate this difference, the groups “InterfaceCapabilities” and “EndStationInterfaces” are used. This distinction and adaptation between different VLAN IDs may be performed by the endpoint or the gateway switch. When the endpoint sends the “InterfaceCapabilities” it informs the CNC about the Stream Transformation features of the device. Then, the CNC will return the “InterfaceConfiguration” subgroup, the stream identifier in the network. With this information, the endpoint can perform the stream transformation, if necessary. This transformation can be seen in Figure 3.2.
CHAPTER 3. IEEE 802.1QCC 37 Fig. 3.2 Stream Transformation in an endpoint device [34]. This previous case supposes that the endpoint is not applying any specific VLAN or destination MAC address indicated by the TSN configuration. Due to the lack of this, the Stream Transfer Function uses IP header fields to identify the packets from the given stream and applies the desired values for VLAN ID and/or destination MAC address. In the same manner, the Stream Transfer Function (STF) is able to map the incoming VLAN or MAC in order to place the endpoint’s values back for the upper layer application. 3.1.3 Example workflow The 802.1Qcc standard provides an example case for the “Fully Centralized” architecture, showing the needed steps to establish a TSN stream and network configuration. This workflow only considers a single CUC and CNC. Next, each step will be listed in order to give the needed details to extrapolate ideas for our design. Some of the steps do not need to occur sequentially. Rather, they can be performed in a parallel fashion. 3.1.3.1 CUC discovers Talkers and Listeners The protocol used to communicate the CUC with the endpoints is out of the scope of the 802.1Qcc standard. As we have already described, OPC-UA is a good candidate framework to handle this communication interface. The servers will be the endpoints and the client will be the CUC, that will perform requests against the endpoints’ Address Space. 3.1.3.2 CUC reads each endpoint capabilities and requirements This information includes TSN capabilities, the details about the device and its requirements in order to fill all the UNI fields. All these features must be handled in the Address Space of the endpoints, since the CUC will poll the data from it.
38 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints 3.1.3.3 CUC generates the UNI instance data When the CUC realizes it has enough information to perform a request to the CNC, it instantiates the UNI YANG module groups. All the logic that the CUC must perform in order to determine the moment of generating groups and sending to the CNC is out of the specification. It is noticeable that the specification defines the flow, the architecture, some of the interfaces between components and components’ functionalities, but it is not specified how the implementation shall be done. 3.1.3.4 CNC discovers network elements Simultaneously to the first three steps, the CNC discovers the network elements until it is able to describe the network topology, thanks to Link Layer Discovery Protocol (LLDP). 3.1.3.5 CNC reads TSN capabilities Thanks to the remote management protocol, such as NETCONF, that is based on different YANG modules, specifically designed for TSN standards. 3.1.3.6 CUC sends the Talker and Listener groups to the CNC The CUC sends a “Join” operation with the talker and listeners groups for a given stream. The subgroups “EndStationInterfaces” identify the endpoints in the network thanks to the MAC address, so that the CNC is able to identify them. The communication protocol between the CUC and the CNC is again out of the scope of the standard. However, our proposal will use RESTCONF, since it is the best option for the communication with network controllers. As commented in Section 2.1.4, RESTCONF uses NETCONF’s principles, which brings all the advantages of using YANG modules. Since the information that the CUC does not configure the CNC, it is not needed to use the bigger datastore system that NETCONF provides. 3.1.3.7 CNC configures the TSN domain for the given stream Assuming that steps in the Sections 3.1.3.4 and 3.1.3.5 are already performed and the CNC knows the network topology and details, the CNC has to compute the configuration of each network element. By this, the incoming TSN stream gets its reservation established in the network. CNC will base the configuration on the location of the endpoints involved and the VLAN ID, which will be provided back in the “Status” groups.
CHAPTER 3. IEEE 802.1QCC 39 3.1.3.8 CNC configures the stream features CNC uses its capabilities in order to enable the TSN features to the stream domain. This configuration will give all the real time requirements, if possible. If the configuration is unsuccessful, the following status groups will contain the details in the “FailedInterfaces” subgroup. 3.1.3.9 CNC returns the Status groups When the CNC is finished with the device configuration, it generates the “Status” groups and gives them back to the CUC. 3.1.3.10 CUC configures each endpoint If the CUC received the results of a bad “Status” group, it can retry the attempt after rechecking the sending Listener and Talker groups. Assuming that the CUC has received a successful response, it will generate the needed configuration for each endpoint that takes part. It will also send them through the OPC-UA interface, calling the configuration of the interface. All the logic required to perform all of these steps are in the hands of the designer. This means that it can be implemented in different workflows. As a simple example, the first discovery step can be performed during several minutes before starting to instance the UNI groups. As another example, the prototype designed in this project knows the number of endpoints that participate in the network. Thus, it connects to both of them and proceeds with the pending steps.
40 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints CHAPTER 4. SOFTWARE AND HARDWARE FOR TSN ENDPOINTS This chapter describes the endpoints. It introduces the basics of computer systems and how a Linux system can be managed to configure TSN requirements. This analysis is focused on the Intel i210 network card, used in this thesis’ prototype. The Intel i210 will be an important piece of our testbed, and therefore it deserves a detailed description. It is a network interface designed for real-time Ethernet applications; thus, it can be the ideal network interface for an endpoint in a TSN network [35]. It is a device that provides a hardware-based timestamping mechanism embedded in it. Thanks to this timestamping, it is able to support standards such as 802.1AS (gPTP, for clock synchronization with each network element) or different implementations found for 802.1Qbv and 802.1Qav specifications, all of them mentioned and treated in the other sections of this document. Fig. 4.1 Intel i210 Network Card Interface [36]. There are several software implementations that take advantage of the physical timestamping of the network card. Some of the implementations come from Intel, others from open-source communities. The majority of them use similar processes and configuration tools, but with different final goals.
CHAPTER 4. SOFTWARE AND HARDWARE FOR TSN ENDPOINTS 41 One of the objectives of this project is to extract the necessary information from these implementations. After understanding them, we can provide the endpoints with the capacity of applying dynamically the configuration provided by the CUC. An interesting source found is a prototype from Kalycito, which is helpful in terms of introducing to the configuration of the endpoints’ interfaces. 4.1 Kalycito – Linux and TSN using open62541 This project [37] uses two endpoints with Intel i210 network cards and a switch to build a small TSN domain. This domain is used by an OPC-UA open-source software written in C, establishing a Publish/Subscribe communication between endpoints. In order to give the endpoints enough tools to handle a TSN communication, the device must be prepared in the following aspects: 1. The device must have a real-time kernel. For Linux devices, this means that the kernel must be the low latency version, if possible. Also, the kernel contains several tools that are only found in latest versions. 2. The network interfaces must be configured to participate in the network. This process is done as with any other network interface (providing the IP address and network mask). 3. Configure the interfaces to support the TSN stream. 4. Start the OPC-UA Pub/Sub to send and receive data between endpoints over the TSN domain created. Kalycito’s project provides the introduction to the tools that will be used to set up the network cards for TSN stream requirements. In addition, it presents certain parts of the Linux operating system and its tools. All the details regarding the used tools will be given later in the document (see Section 5.3.2, Section 6.4 and Annex D), but before that it is interesting to introduce some concepts about Linux and its kernel. 4.2 Linux, kernel and Linux Network Stack Linux is an operating system used by many developers and researchers. Since it is open-source, different communities, companies, associations and individuals take part on its constant enhancement. They all contribute in adding new features and optimizing the system. At first, it was designed for computers, but nowadays servers, routers, TVs, mobile phones and other embedded systems are Linuxbased. For example, the Android operating system is based on the Linux Kernel.
42 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints 4.2.1 General system architecture A system architecture is represented in Figure 4.2, which is appliable to any operating system. In general terms, the goal of this architecture is to offer computing resources to applications and services. Fig. 4.2 Visual representation of a Linux system [38]. At the center of the figure there is the Hardware. Basically, it represents all the physical devices that build up the computer. For example, the Intel i210 network card belongs in the Hardware. The responsibility of the kernel is to virtualize all the hardware resources. Because of this, the processes can use them. Also, the kernel handles the conflicts that may occur in order to gain access to the resources. In an upper layer there are the Shell and the System Library. Both of them offer an interface to the kernel, so that its complexity is hidden to upper layer users. These upper layer applications will use these interfaces to interact and use the kernel. Then, the kernel will communicate with the physical components. The applications mentioned are, basically, the System Utilities and the Applications. These applications are, in general, all the different software developed for the user of the system. Having a look at this general architecture, we may guess that the kernel must perform the packet communication from the software to the NIC. Since this communication will need to comply with TSN requirements, the kernel packet management must be modified accordingly. Also, there has to be a way of identifying a given application traffic in the system kernel, because this specific
CHAPTER 4. SOFTWARE AND HARDWARE FOR TSN ENDPOINTS 43 traffic needs to be handled. To have a good understanding of all the packet processing starting from an application to the network interface, we will take a deeper look in the Linux kernel. Afterwards, the Linux Networking Stack will be described. 4.2.2 Linux kernel Linux kernel [39] is the most important piece of the operating system. In order to complement its definition, the kernel takes the responsibility of four different tasks: 1. Memory management 2. Process management 3. Device drivers 4. Security and system calls Of the 28 million lines of code in the kernel, the majority of it goes to the drivers’ section. This means that it ensures compatibility with a lot of different devices, but at the same time, its performance is a little worsened. As we saw in the previous section, the kernel is responsible for sending and receiving data through the network interfaces. Thus, we need to understand how it works to understand the modifications to handle TSN flows. The kernel is responsible to control up to the Transport Layer, meaning that Ethernet and IP Layers are controlled and managed by the system kernel. A kernel user that needs to communicate data to the NIC will create and use a socket [40]. This socket is used to identify the application’s traffic in the kernel, allowing to establish rules for this specific flow. Even though it is mentioned that the kernel works in Layers 2, 3 and 4, it is possible to implement higher layers, just by adding this feature to its source code. To modify Linux kernel’s behavior regarding different sockets, we have different interfaces. For instance, netfilter is an interface of the kernel used by the module iptables that manages the treatment of the packets at the network layer (NAT, firewall, etc.). There is also netcat, which enables the user to manage the Transport layer inside the kernel, so that it can be used by other applications. These two examples are configuration tools for both network and transport layers. Since TSN is implemented in the link layer, there is a need to know about the link layer tool, called qdisc. Queuing Disciplines (qdisc) is a tool found between the IP Stack and the network card driver. It is the orchestrator of the traffic that is being sent to the driver’s buffers [41]. With this tool it is possible to determine how packets will be sent through the network interface, being able to prioritize and conform the outgoing
44 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints traffic. Later in this document this tool will be recovered, since it is the best one to configure the endpoints’ interfaces. Linux kernel is being constantly updated. Its versions are based on an “a.b.c.d” format. Nowadays, the newest main version (‘a’) is 5.0. This version already includes the tools that are used in this thesis to configure the TSN endpoints. With this overview of the kernel, focused on the network stack, it is the best moment to describe how Linux processes the network packets. 4.2.3 Linux Network Stack To develop the endpoints in our prototype, it is important to understand how a Linux system treats the packets before being sent to the NIC. Figure 4.3 summarizes the process that a packet follows before arriving to the network interface. Fig. 4.3 Packet processing in a Linux system [35].
CHAPTER 4. SOFTWARE AND HARDWARE FOR TSN ENDPOINTS 45 According to the configuration established in the kernel, the data pointed by the socket will be processed by the system and sent. In a more detailed view, the kernel treats the upper layers of the packet (transport and network) and right before the driver’s buffers we have the Queuing Disciplines. These queues take care of prioritizing the order of the frames and, basically, act as schedulers/shapers to determine how the frames will be sent to the driver’s buffers. 4.3 Intel i210 features related to TSN In the Intel i210 overview webpage and its datasheet [42], we can find useful information to implement our prototype. Nowadays, there are different kernel interfaces that allow us to configure TSN parameters to some given outgoing traffic. These interfaces are called TAPRIO (Time Aware Priority), CBS (Credit Based Shaper) and ETF (Earliest TxTime First). All these interfaces can be configured with the qdisc tool. Actually, qdisc will hold different rules, so that traffic that coincides with them is accordingly scheduled [35]: 1. Earliest TxTime First: gives a scheduling temporally based on the transmission queues. It permits the application to determine the time to send the frame. It has a feature called Launch Time that gives the opportunity to give the exact time of transmission for TSN applications. 2. TAPRIO: this algorithm performs the scheduling based on priorities as defined in 802.1Qbv (see Section 1.2.1). It includes a way to parse the incoming different priorities to traffic classes perform traffic scheduling with them. 3. CBS: implementation of the 802.1Qav (see Section 1.2.2), acting as a bandwidth limiter and requiring the same parameters as specified in the previous section. Understanding basic system architecture is recommended to contextualize how the TSN requirements can be satisfied in the endpoints from the thesis’ prototype. In addition, tools provided since the release of kernel 5.0 can interact with Intel i210 buffers and become a TSN device The prototype designed for the thesis needs to use these tools to apply the configuration coming from the CUC.
52 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints Fig. 5.5 Sequence encoding and decoding method types [45]. After reviewing the fields for the Talker and Listener groups, we will now focus on the Status group fields. The CUC has to parse this last group and compute a correct configuration for the endpoints involved. 1. status-info: provides information about the status of the configuration for a given stream. a. talker-status: enumeration that may specify “No Talker”, “Talker ready” or “Failed”. b. listener-status: another enumeration that may be “Listener ready”, “Failed” or “Partial failed”, which means that in scenarios with more than a listener, some of them succeeded and some of them did not. c. failure-code: error code according to Figure 5.6.
CHAPTER 5. ARCHITECTURE DESIGN 53 Fig. 5.6 Error types on the Status group [46]. 2. accumulated-latency: integer value that represents the value in picoseconds of the worst-case latency for a stream. The talker receives the maximum delay over all the listeners. If received by a listener, only the latency to this same listener is given. 3. group-interface-configuration:interface-list: list that contains different configurations for every combination of MAC address and interface-name of a device. a. group-interface-id: tuple with the MAC address and the interfacename.
54 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints b. config-list: i. index: identifier for the element of the list ii. ieee802-mac-address: source and destination MAC addresses. Tend to be the same as the request, even though the destination MAC address may be turned to multicast. iii. ieee802-vlan-tag: specifies the VLAN tag that will be used in the network for this TSN stream. iv. ipv4-tuple: IPv4 address of the received to use for Stream Identification purposes. v. ipv6-tuple: analogous of the previous field for a IPv6 address. vi. time-aware-offset: instant if time determined by the CNC. The Talker must transmit its data at this precise moment. This value is between the “earliest-transmit-offset” and “latest-transmit-offset” given by the same Talker (see Section 5.2.2.1.4.e). 5.2.2.2 Gate Control List The CUC also has a logical part aimed to compute the entries of the GCL [16] of the TAS (see Section 1.2.1). To automate the GCL creation, the CUC must manage every variable that may be involved in the scheduling of the endpoints. Because of the complexity derived from the calculation of the GCL, a simplified sample will be shown, in order to describe the process that the UNI needs to take to create this field. Traffic specification Traffic 1: • Interval: 100 ms • Max frames per interval: 1 • Max frame size: 500 bytes • Earl/Lat transmit offsets: 10/20 ms • Jitter: 1 ms Traffic specification Traffic 2: • Interval: 1 s • Max frames per interval: 2 • Max frame size: 500 bytes • Earliest/Latest transmit offsets: 250-300 ms • Jitter: 1 ms
CHAPTER 5. ARCHITECTURE DESIGN 55 A sample response from the CNC for all these values could be the one below. Note that both traffics get a VLAN priority assigned and a transmit time. If we compare them to the earliest/latest transmit offsets, all of them can transmit at their correct moment. 1. time-aware-offset traffic 1: 10 ms 2. VLAN priority traffic 1: 6 3. Time-aware-offset traffic 2: 250 ms 4. VLAN priority traffic 2: 5 With these values combined with the ones obtained from the Talker, the CUC must be able to compute the Time Aware Scheduler, as shown in Figure 5.7. Fig. 5.7 Time aware shaper example. 1. The time slots in which the TSN traffic can be transmitted coincides with the “time-aware-offset” that the CNC is providing to the talker. This restriction would imply that the second traffic “Traffic 2” is splitted in another priority. By this, both TSN traffics are able to transmit at the exact “time-aware-offset” the CNC has proposed. 2. There is a need to specify how long a gate status will be held. In other words, each GCL value needs to provide the amount of time that the gates will have a state mapped (either transmit or idle).
56 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints 3. There is a need to have synchronization regarding the instant of time in which the TAS cycle begins. If not, the “time-aware-offset” cannot be placed correctly inside. This can be done easily by matching the “interval” time given from the Talker with the cycle duration of the traffic scheduler. In conclusion, the CUC needs to specify the following for a GCL: TAS interval duration and GCL. This last element includes the status of the gates for each priority and the amount of time. Table 5.1 shows an example of a GCL that complies with the aforementioned requirements. Table 5.1 Example GCL 0 1 2 3 4 5 6 7 g0 (10ms) 1 1 1 1 1 0 0 1 g1 (1ms) 0 0 0 0 0 0 1 1 g2 (39ms) 1 1 1 1 1 0 0 1 g3 (1ms) 0 0 0 0 0 1 0 1 g4 (49ms) 1 1 1 1 1 0 0 1 1. g0: best-effort traffic, since we know frames from priorities 5 and 6 will not be transmitted during this time. Open from 0 to 10ms. 2. g1: priority 6 transmission interval. Open from 10 to 11 ms. 3. g2: best-effort traffic, open from 11 to 50 ms. 4. g3: priority 5 transmission. Open from 50 to 51 ms. 5. g4: best-effort traffic, open until the end of the cycle. An alternative, for example, is that a CBS assigns a higher throughput and weight to the priority 5 queue. By doing this, that particular traffic would be prioritized against others. Other approaches can also comply with the requirements. It is important to note that the computation of the GCL is not simple. The IEEE provides a paper with guidelines on how to implement the computation [47]. Since our focus is on the design of the prototype and not on the scheduling, a simple GCL computation is implemented in the prototype.
CHAPTER 5. ARCHITECTURE DESIGN 57 5.2.3 RESTCONF Client As seen in Section 2.1.4, RESTCONF relies on the HTTP client/server architecture. This forces the same configuration data to not be splitted in different requests, since there is no datastore other than the running datastore. The datastore directly sets the configuration to the device. This means that our RESTCONF client shall send only fully prepared requests, including the talker and listener’s information all in once. In addition, to enhance the data control (one of the lacks of RESTCONF), different assertions should be checked by the LUC before sending a request: 1. Check the information coming from the OPC-UA client and parse all the fields. 2. Use the parsed fields in order to build an instance YANG module (described in Annex B). 3. Use a YANG validator to check the instanced data against the YANG module definition. Apart from preparing the data to be send later to the CNC, the RESTCONF client also may request configuration from it. Then, it needs to have an interface with the Logic Unit Center to perform any kind of request. Keep in mind that this interface has been designed and implemented. However, it is not used by the final prototype, because a prototype of a CNC is under development. 5.2.3.1 HTTP/2 details Since RESTCONF is implemented over HTTP/2 [48], it requires HTTPS Mutual Authentication. This means that a TLS Handshake authenticating both the server and the client must be performed. In order to do this, we need to build a root certificate for the RESTCONF server and different certificates signed by it. This client certificates can be used by clients. In addition, since requests are performed as a RESTful service, API endpoints should be defined by the CNC to give the clients the best detail about how to use them. In the current state of the CNC, these endpoints are defined as follows. 1. “https://{{host}}:{{port}}/restconf/data/ieee802-dot1q-tsn-types-upc- version:tsn-uni ▪ POST method ▪ Body type: JSON ▪ Content expected: instance of the YANG module referenced in Annex B. ▪ Response: HTTP status code
58 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints 2. “https://{{host}}:{{port}}/restconf/data/ieee802-dot1q-tsn-types-upc- version:tsn-uni ▪ Same endpoint used, but with a GET method. ▪ Response type: JSON ▪ Response content: current status groups from the UNI, including TSN information to configure the endpoints. As previously mentioned, at the moment of finishing this document, there is no CNC prototype, since it is under development. This means that all the API endpoints cannot be fully provided and the generation of the information from the CNC is mocked. For this project, the CUC uses sample values that can later be used to configure the endpoints as if they were real. 5.3 Endpoints Our endpoints are software-based, running on common PCs equipped with an Intel i210 network interface card. On the one hand, the endpoints need to establish their features and requirements in their Address Spaces to offer them to the CUC. On the other hand, they need to receive the information from the CUC and perform an automated TSN configuration of its interface. It has two virtual interfaces against the rest of the setup, as follows: 1. OPC-UA Interface: the other side of the CUC OPC-UA Interface. This device needs to prepare an optimal Address Space in order to publish all the requirements for the TSN stream. Also, a method to configure itself with the incoming configuration from the CUC, when the endpoint is a Talker. If it is a Listener, there is a need to set up the traffic receiver in order to evaluate the TSN flow. 2. TSN Interface: the interface that will be used to transmit or receive the TSN stream, having its performance adapted to the configuration received by the CUC. Both interfaces can be seen in Figure 5.8.
CHAPTER 5. ARCHITECTURE DESIGN 59 Fig. 5.8 Endpoint overview. The workflow that the endpoints follow to obtain configuration and apply it is defined below. 1. On wake up, set the interface details and flow requirements at the Address Space of an OPC-UA instanced server. 2. Flush any previous TSN configuration that may be applied to the TSN Interface and load the actual ones. 3. Enable write permissions on the configuration variables coming from the CUC, so that they can be under the endpoint’s control. 4. Expose a method node to trigger the applying of the new earned configuration or start a receiver, depending on endpoint’s nature. 5. TSN Flow will be established. 5.3.1 Address Space definition Most of the variables that need to be in the OPC-UA servers will be basic wellknown types. However, the aforementioned method node will be used to apply the received configuration. All the properties described below make a direct reference to the different fields on the UNI defined in Section 3.1.1.
60 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints 5.3.1.1 EndpointFeatures It contains the device’s features and requirements used both by a talker and a listener. 1. endpointType: String that determines if the endpoint is Talker o Listener. 2. identificationType: UInt32 reserved for future use for Stream Identification. 3. interfaceName: String with the name of the TSN interface of the endpoint. 4. macAddress: String that contains the MAC address of the TSN interface. 5. maxDelay: UInt32 that expresses the maximum latency required in nanoseconds. Reserved for future use. 6. redundancy: Boolean expressing the requirement of path redundancy. Reserved for future use. 7. streamId: String that uniquely identifies the TSN flow. 8. streamIdTypes: String reserved for future use for Stream Identification. 9. vlanCapable: Boolean to determine if the endpoint manages VLANs. The talkers, in addition, have extra variables in EndpointFeatures in order to specify the traffic to be transmitted: 1. earliestTransmitOffset: UInt32 expressed in nanoseconds. 2. intervalDenominator: UInt32 that gives the numerator of a rational value to express the time interval in seconds. 3. intervalNumerator: UInt32 that gives the denominator of the same previous value. 4. jitter: UInt32 expressed in nanoseconds. 5. latestTransmitOffset: UInt32 expressed in nanoseconds 6. maxFrameNumber: UInt32 during the interval 7. maxFrameSize: UInt32 of the TSN frames. 8. priority: UInt32 that states the priority for the given TSN stream.
CHAPTER 5. ARCHITECTURE DESIGN 61 9. transmissionSelection: UInt32 identifying the transmission selection algorithm. 5.3.1.2 TSNInterfaceConfig In addition, as stated in the previous lines, the Address Space also needs an object to store the configuration from the CUC and trigger its setting. The variables that will be used in that object, called TSNInterfaceConfig, are as follows: 1. LaunchConfig: Method that triggers the setting of the TSN configuration and the flow transmission. 2. gclGates: [UInt32] array of gate status. It indicates which priority is able to dequeue data. 3. gclGatesTimeInterval: [UInt32] time associated to each state in the previous variable. 4. interval: UInt32 expressing the interval duration of the scheduler. 5. latency: UInt32 maximum latency among all listeners. Reserved for future use 6. vlanIdValue: UInt32 that determines the VLAN ID to be used. 5.3.1.3 PublishObject Moreover, for testing purposes, talkers need to have a changing variable that will be published through the TSN Flow to listeners. The object is called PublishObject and it only has one variable, which its content defines the traffic specification of the emitting TSN flow based on OPC-UA Publish/Subscribe: 1. publishObjectData: String 5.3.1. SubscribeClientObject Finally, the listeners need an entry point on their Address Spaces in order to start a subscription or any other data receiver. To do that, the following object is present in the Address Space. It is called SubscribeClientObject and contains only a variable that will trigger an OPC-UA Client instance to Subscribe for the talker’s changing variable.
68 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints Fig. 6.6 Address Space instances for Talker and Listener. The figure includes an overview of all the variables that the OPC-UA servers manage. For more detail on each field, see Section 5.3.1. For all fields used in the sample demo, the namespace is the same, set as 1. The identifier value “i” points to each variable node. 6.4 Endpoint configuration Setting up the endpoints to act as Talkers or Listeners in a TSN stream requires the configuration received from the OPC-UA client to be mapped to different configuration commands. In fact, as shown in Figure 6.6, variables LaunchConfig and InitSubcription are method types. This means that a call to these nodes will trigger a function. Therefore, we need to implement the configuration function to perform the following steps:
CHAPTER 6. IMPLEMENTATION 69 1. Parse the Address Space TSNInterfaceConfig in order to retrieve the Gate Control List and the other properties that customize the endpoint for a specific TSN flow. 2. Delete any previous set configuration to avoid overlapping. 3. Build the tc qdisc, iptables and ip link commands in order to apply the new scheduling and shaping. 4. Apply the created commands by calling a generated script or a CLI handler in the server. As seen in Section 4.2, the use of qdisc tools will modify the standard queuing of the system. In order to ensure the best performance, the iptables tool may be used in order to map the chosen traffic into a custom socket priority. By doing so, endpoints will be able to handle all traffic types in the scheduler, because it will be distinguished by kernel socket priorities. The details of the use of all these tools mentioned below are described in Annex D. These tools are automated in the prototype by a JavaScript function based on the commands below: 1. “iptables -t mangle -F” – Flushes the Mangle table entries. 2. “iptables -t mangle -X” – Resets the Mangle table. 3. “"tc qdisc del dev {{interfaceName}} root" – Deletes any existing configuration on the queuing disciplines. 4. "iptables -t mangle -A POSTROUTING -o {{interfaceName}} -p tcp -- sport 4333 -j CLASSIFY --set-class 0:2" – Maps the TSN traffic into the second socket priority. 5. “"iptables -t mangle -A POSTROUTING -o {{interfaceName}} -j CLASSIFY --set-class 0:3" – Maps all IP traffic to the third socket priority, in order to perform traffic scheduling with both different priorities. 6. “"tc qdisc replace dev "+interfaceName.value+" parent root handle 100 taprio num_tc 3 map 0 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 queues 1@0 1@1 2@2 base-time 1536883100000000000 {{sched-entries}} clockid CLOCK_TAI" – Establishes the parsed Time Aware Scheduler to the queuing disciplines of the network interface. It maps every socket priority into a defined traffic class. In addition, it defines how the traffic classes are mapped into the NIC’s queues.
70 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints 6.5 Prototype integration and set up This section links all the previous steps in order to fully instantiate the prototype of the thesis. In order to do that, it is recommended to read Annex C, which specifies the developer’s guide of the software implementation [55], giving details on how the flow is explicitly implemented and how it could be modified for different setups. Anyways, the current implementation is the one used for the model presented during this section. 6.5.1 System requirements All endpoints that take part in the environment are required to have the following: 1. Ubuntu 20.04 [56] or any distribution that uses a Linux kernel 5.0 or newer. a. Older distributions from Ubuntu can be used, but a manual kernel and iptables update is required. 2. Intel i210 Network Interface Card. a. Time synchronization running in all endpoints and the SoC-e MTSN switch, as described in Section 6.2. Apart, all systems that take part on the architecture need to: 1. Install Node [57], which includes the npm packet manager, in order to install all applications on the devices. 2. Be in the same LAN (see Section 6.1). With all these conditions satisfied, the software implementation can be set up in the components. It is important to state that the scenario may work even though the time synchronization is not set in the network. However, results would be totally unpredictable, since the time offsets between elements is unknown and, therefore, deterministic performance cannot be guaranteed. 6.5.2 Set up of the components Even though the prototype considers the CUC and the Talker in the same computer, the setting up of the components is treated separately, because both software implementations are independent and it can be easily separated by modifying the configuration files. In order to install all the required external libraries of the Node projects for any of the components (Talker, Listener and CUC), call command “npm i” in the following directories:
CHAPTER 6. IMPLEMENTATION 71 1. /TSN-CNC-CUC-UPC/CUC 2. /TSN-CNC-CUC-UPC/ENDPOINTS/Talker 3. /TSN-CNC-CUC-UPC/CUC/Listener Then, this prototype will install the Talker/CUC solutions to the same PC and the Listener software solution will be set up in the other machine. 6.5.2.1 Endpoints The “config.json” file provides different parameters regarding the endpoint properties and stream identifier to publish or subscribe. The Listener configuration file is shown in Figure 6.7. Fig. 6.7 Listener’s config.json. If we test TSN flow that is used is the OPC-UA Publish/Subscribe, the Listener needs to specify the URL of the Talker that will publish the TSN stream. For the Talker case, Figure 6.8 shows the configuration properties. Fig. 6.8 Talker’s config.json. In order to easily modify the traffic specifications (only for the OPC-UA Publish/Subscribe case), the property “interval” sets the amount of time in
72 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints seconds in which a variable is updated periodically, triggering the Publish of the “publishObjectData (ns=1i=1027)” node. The length of this Address Space node is set by the field “dataLength” in the configuration file, in Mbytes. After setting the configuration files for both endpoints, they can be run by the command “node ./index.js” in their respective root folders. The Talker, after waking up, will set the values of its Address Space and start modifying the “publishObjectData”. The Listener, instead, sets its Address Space properties and waits for an action from the CUC. If the action of the CUC is not triggered in the Listener, the OPC-UA Subscription does not occur, thus the TSN flow generated by the Node application is never sent through the network. This is a valid use case to test the TSN features with other tools, such as iperf. Once the CUC sends the configuration back to the devices, the Talker configures the interface based from its own information and the one received by the CUC, confirming it with the logs, as shown in Figure 6.9. Fig. 6.9 Configuration values for the Talker’s interface configuration. The Listener, when it receives the action from the CUC, will perform a Subscribe to the Talker’s variable in its Address Space, as follows in Figure 6.10. Fig. 6.10 Subscription triggered and received in Listener.
CHAPTER 6. IMPLEMENTATION 73 Note that the implemented prototype can be tested with OPC-UA traffic, but also with any kind of traffic the Talker would want to give guarantees. We only need to reset the TSN requirements in the Talker to use a different traffic. 6.5.2.2 Centralized User Control After installing all the npm packages, we set the OPC-UA Client URLs in the file “config.json”, shown in Figure 6.11. Fig. 6.11 config.json for the CUC. In this example the URL of the Talker is in the localhost, the same machine as the CUC. Both CUC and Talker can run separately if this variable points to the Talker OPC-UA Server in a different machine. Apart from the OPC-UA Servers addresses, there is also the URL to the CNC, the RESTCONF server, mocked. However, for development purposes, it can be changed to use the RESTCONF Client module (see Annex C). After setting correctly all the Endpoints’ URLs, the project can be started by calling the command “node ./index.js” in the root directory of the CUC project. If the OPC-UA Servers are awake, we can see how the connection is established by checking the logs, as shown in Figure 6.12. Fig. 6.12 CUC waking up process logs. Once the Servers’ Address Systems has been accessed, the CUC generates a YANG instance group and sends it to the CNC, as shown in Figure 6.13.
74 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints Fig. 6.13 CUC logs regarding the instantiation of the UNI groups. After receiving the network configuration from the CNC, the CUC computes the Talker’s GCL and sends it to the Talker, including the timeOffset and variables to help the Endpoint support several flows and interfaces, such as interface, vlanId, streamId and macAddress. It also has the latency to the listener (mocked property, which is supposed to be obtained from the CNC response), as shown in Figure 6.13. Fig. 6.14 CUC generated GCL for the Talker. After the configuration is successfully sent by the CUC, it triggers the methods to the endpoints, starting the TSN flow. Fig. 6.15 CUC sending TSN and Subscription config. Figure 6.16 shows the testbed scenario running at EETAC’s laboratory C4-325.
CHAPTER 6. IMPLEMENTATION 75 Fig. 6.16 Equipment used in the testbed. From left to right: Linux PC running the Talker, TSN switch, Linux PC running the Listener.
76 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints CHAPTER 7. TESTS AND RESULTS This chapter describes the tests performed on the prototype and the results obtained. All test reports are provided with the following information: 1. Test objective 2. Set up and configuration properties 3. Results 4. Test conclusions The two main tests reported here are: 1. Basic scheduling test and evaluation with OPC-UA Pub/Sub implementation 2. Scheduling performance test with TSN traffic generated by iperf All tests performed and its results can be found in the project repository [58]. This resource contains more tests than the ones reported. This is because this document aims to give the most remarkable results. In the following figures and charts, the TSN flow is always colored green, the best-effort traffic is orange and gPTP traffic (which is very light and it cannot be seen in most of the figures) is dark. 7.1 Basic scheduling test and evaluation with OPC-UA Pub/Sub implementation The goal of this test is to evaluate the scheduling that is being performed by the Talker. The test is performed using the OPC-UA traffic generated in the Javascript program. To achieve this, different traffics and different congestion status are used. An analysis of the transmission and system delays is provided to bound the performance of the implementation. In addition, the use of a Node application to generate high-sensitive traffic is tested. 7.1.1 Set up and configuration properties The prototype is tested with several traffic scenarios: 1. First, only TSN traffics are sent by the device. This helps to determine the behavior of the scheduling mechanism and the traffic generation
CHAPTER 7. TESTS AND RESULTS 77 implementation (handled by a Node application). In order to put the system under stress, transmission times are reduced and the traffic is analyzed. Figure 7.1 provides more details of the scenario: Fig. 7.1 First scenario, with the TSN flow. 2. In a second step, similar TSN traffics are used combined with a besteffort flooding. This is to determine how the time slots of the scheduler are used by the different priorities, proving the correct performance of the configuration received by the CUC. In addition, the behavior of the generated TSN traffic is analyzed. Figure 7.2 illustrates the scenario: Fig. 7.2 Second scenario: similar to the first one, with an additional best-effort traffic. 3. Finally, the second case is repeated without any TSN configuration on the Talker. Because of this, both performances can be compared and extract conclusions from them. Figure 7.3 presents this scenario.
84 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints Fig. 7.12 Delay for the TSN flow (100ms interval) when there is best-effort traffic, in milliseconds (Y axis), versus Subscribe message sequence number (X axis). These gaps, such as the one that happens around packet 86, could be caused by the fact that the Node application cannot synchronize, and therefore one of the Publish packets has been created in a moment in which the TAS slot was about to trigger, minimizing the time this message waits in buffer. After it, the subsequent packets keep drifting in time, increasing again the delay. This event can be seen in Figure 7.13. Fig. 7.13 Desynchronization coming from the Node application. 0 20 40 60 80 100 120 140 160 180 1 7 13 19 25 31 37 43 49 55 61 67 73 79 85 91 97 103 109 115 121 127 133 139 145 151 157 Application delay(ms)
CHAPTER 7. TESTS AND RESULTS 85 The arrows in Figure 7.13 point to undefined behavior of the traffic generation. Note that one of these frames (the one pointed by the first arrow) is sent in the same interval than the previous one. This leads to a delay gap between the consecutive frames. In addition, the second misplaced frame leaves a slot without any transmission. If the Node App generated synchronously the frames, this would not happen. The scheduling is working properly, but TSN traffic is not being correctly generated. Now that we seem to have isolated the problems to the traffic generator, it may be possible that the lack of synchronization in the Talker endpoint Node application generates a worse behavior with the TSN configuration applied. Because of that, we will compare now delay and jitter with some of the previous used traffics without any TSN configuration. Going back to the traffic used in the first test (1 s interval), Figure 7.14 shows that the scheduling is not being performed. Fig. 7.14 Listener receiving nonscheduled traffic. A best-effort traffic is being constantly transmitted with a bitrate of 1 Gbps. Iperf is the tool used to generate this traffic. When the OPC-UA traffic appears, just after t = 41 s and t = 42 s, the bandwidth is shared – we can see how the increase in the green traffic (OPC-UA) is compensated by the decrease in yellow traffic (best-effort). Regarding delay and jitter, even though the interface is full of best-effort traffic, it may still have some degree of determinism, since no other elements are flooding the network. Because of that (and the fact that the Talker is not able to fully synchronize with TSN configuration), the delay is similar or even lower, as seen in Figure 7.15 and Figure 7.16.
86 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints Fig. 7.15 Delay for the non-TSN configuration case and 1MB every 1s, in milliseconds (Y axis), versus Subscribe message sequence number (X axis). Fig. 7.16 Jitter for the non-TSN configuration case and 1MB every 1s, in milliseconds (Y axis), versus Subscribe message sequence number (X axis). The shape of the delay and jitter graphs cannot be described, because there is not any known configuration in the NIC and all traffics are treated as best-effort. Because of that, the scheduling performed is FIFO, meaning that the frames are sent as they arrive to the buffers. This is not a deterministic behavior that can be described. As mentioned, the average value of the delay is similar to the one tested with time-scheduling. This confirms that the Node application generated traffic is not deterministic at all. 0 50 100 150 200 250 1357911 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 Application delay (ms) -80 -60 -40 -20 0 20 40 60 80 1357911 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 Application jitter (ms)
CHAPTER 7. TESTS AND RESULTS 87 7.1.3 Test conclusions After testing the system limits with this set up, the main conclusions are: 1. The traffic scheduling is performed successfully by the Talker, allowing gPTP to transmit at any time slot of the TAS and slotting the different traffic priorities, as shown in Figure 7.4 and Figure 7.11. 2. The OPC-UA Publish/Subscribe traffic generated by the Node application Publish does not generate traffic synchronously. Strict TSN requirements will never be achieved with it. 3. This scenario does not permit the testing of shorter time intervals, since the traffic generation already brings dozens of milliseconds of jitter. With this condition, it is not possible to test schedulers in the order of the microseconds. 4. If the generated traffic is not scheduled correctly, the applied TSN configuration does not guarantee determinism to the system. In fact, the system gets worse in terms of latency and jitter. 5. The computation of the TSN configuration for the endpoints (as described in Section 6.5) works properly. This means that the architecture designed achieves to establish a TSN domain. Even though, it still needs to be tested at smaller time scales. Therefore, we must change the data source for the TSN flow and evaluate the TSN performance of the Talker endpoint. In the following test, the traffic generator is switched from a Node application to iperf. 7.2 Scheduling performance test with TSN traffic generated by iperf The goal of this test is to bring the system to its limits regarding time scale. To achieve this, two TCP/UDP traffics (with constant bitrate) are generated with iperf. One is considered the best-effort and the other the TSN flow. By lowering the time scale, the minimum supported TAS interval and priority slot can be identified for the current system. 7.2.1 Set up and configuration properties Similarly to the previous test, different traffics and congestion conditions are applied. The scenarios include:
88 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints 1. A basic scheduling with an interval of one second, to check that the incoming TSN configuration is still valid when the generator is changed to iperf. Figure 7.17 shows the scenario of the test: Fig 7.17 First scenario with iperf traffic. Basic scheduling in a large TAS cycle. 2. In the same time interval, the time slot is reduced until a reasonable minimum is found. Figure 7.18 provides more details of the traffics used: Figure 7.18. Second scenario, with the shortest time slot for a given gate state. 3. The TAS interval is reduced to 200µs (two slots of 100µs), the hypothetical shortest period obtained in the previous case. Figure 7.19 shows the traffics used and how the scheduler’s cycle is reduced.
CHAPTER 7. TESTS AND RESULTS 89 Fig. 7.19 Third scenario, for testing the shortest possible scheduler cycle in the prototype endpoints. The TCP/UDP traffics used are both generated with the iperf tool between Talker and Listener. Due to the constant bitrate generation, set to 1 Gbps in both cases, the evaluation of the scheduling performed by the endpoint is optimal. This means that the TSN traffic does not depend on a synchronized frame generation, since frames are constantly generated in the maximum network bandwidth and frames will be available from the beginning until the end of the time slot. By this, it is possible to keep reducing the time slots and intervals of the scheduler and evaluate the use of these slots by the talker endpoint. 7.2.2 Results The first thing to check is if the incoming configuration from the CUC is still correctly set for the iperf traffics. Figure 7.20 shows how the interface starts transmitting both traffics without any kind of scheduling. Between time instants 12:35:41 and 12:35:42, the TAS it is set and starts performing the time slots.
90 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints Fig. 7.20 Basic scheduling performance with iperf traffic. During the scheduling, the TSN configuration defines that the scheduling starts exactly when the system clock ticks a new second. Figure 7.20 does not provide enough detail of the scheduling starting time. Since the Wireshark plotting system time sensitivity is in the order of milliseconds, it is better to check directly the reception timestamps from Figure 7.21. Fig. 7.21 Some Ethernet frames captured with Wireshark. The theoretical time when the scheduler starts is 12:35:42,000000000. However, the first frame of the TSN flow is received by the Listener 113.044 µs later. By checking the network delay calculated in Figure 7.7, its average value is 110.728µs. If both values are subtracted, 2.316 µs are obtained. This value is not exact, because the taken delay in the network is the average value. The 2.316 µs that the Talker has delayed its ideal transmission can perfectly come from the phc2sys synchronization offset, observable in Figure 6.3. This synchronization may be higher and worse results may happen in other tests, because phc2sys suffers offset peaks in the order of 100 µs.
CHAPTER 7. TESTS AND RESULTS 91 The TSN flow slot duration given by the CUC is 80,028 ms. Between instants 12:35:42,080349037 and 12:35:42,083012244 there is a transitory state during 2,663 ms. Here, the TAS is switching from one time slot to the next one, but it transmits both traffic classes during this small period of time. In addition, in the following transition (back to the TSN time slot) there is a transitory state during 1,327 ms. Considering the network delay, the first TSN frame has been transmitted 221,500 µs late. This high value may come from the overall desynchronization between clocks, that includes: 1. Desynchronization between Talker’s system clock and Talker’s NIC clock (microseconds). 2. Offset between Talker’s NIC and Listener’s NIC clocks (nanoseconds). 3. Desynchronization between Listener’s NIC clock and Listener’s system clock (microseconds). It is possible to test that the current performance fulfills the TSN requirements in terms of scheduling and time precision. By shortening the used time slots and intervals, a good analysis can now be performed (as opposed to the NodeJS App generated traffic case). Note that for shorter intervals, the TSN flow is switched to use UDP, with the same port 4333. TCP is only used with the longer time slots. This is because the acknowledge timers and sliding windows of the protocol may the sending of the data during short intervals. First, to find the minimum usable time slot inside any TAS cycle, the transmission time slot for the TSN flow has been shortened until it is 100 µs long, as shown in Figure 7.22. Again, the precision of Wireshark plotting is not enough to manage the microsecond scale, forcing to check the packets with Wireshark. Fig. 7.22 Wireshark capture with a transmission time slot of 100 µs for the TSN flow.
92 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints The transmission time window is set during 135.409 µs, a reasonable value given the synchronization precision of the network and system clocks. Shorter time slot durations are not transmitting any frame, 100 µs is the minimum configurable time slot duration. We can conclude that the TSN prototype can work properly with 100 µs time slots at the jitter level measured from the gPTP and the phc2sys processes. To finish with this testbench, the TSN flow and the best-effort traffic will be set both in 100 µs time slots inside a 200 µs cycle of the scheduler. By this, the performance of the endpoint is tested using its smallest time slots in a TAS cycle. Figure 7.23 shows the output of the Wireshark graph. Due to the fact that the slots are 100 µs long, the sensitivity of the Wireshark’s plotting system cannot distinguish any scheduling. Fig. 7.23 Incorrect plotting of the 100µs time slot scheduling. Again, it is better to check the capture directly, as shown in Figure 7.24:
CHAPTER 7. TESTS AND RESULTS 93 Fig. 7.24 Scheduling performed in 100µs time slots for the TSN filter. Thick lines separate cycles, approximately every 200 µs. The TSN flow is perfectly placed in its assigned transmission slot. In addition, the receiving timestamp from Figure 7.24 marks the duration of the intervals. 1. First cycle (frames from 14:22:40,000074332 to 14:22:40,000086436): 191.045 µs, in which only 12.104 µs (first group of eight frames) there is a transmission of the TSN flow (it should be during 100 µs). 2. Second cycle (frames from 14:22:40,000265377 to 14:22:40,000276572): 192.752 µs. Only 11.195 µs (second group of eight frames) are used to send TSN flow. 3. Third cycle (frames from 14:22:40,000458129 to 14:22:40,000469003): 174.429 µs of time interval, emitting the TSN flow during 10.874µs (last group of eight frames). If we compare these values with the measured desynchronization (in the order of tens or hundreds of microseconds), the TAS cycle durations make sense. Nevertheless, the time during which the TSN flow is being sent is too short. The difference with the results shown in Figure 7.22 is that since the best-effort traffic has been added and the TAS interval lowered to 200 µs, we may have surpassed the system limits. Regarding the bandwidth, it is expected that the value obtained for the TSN flow is equivalent to the transmit rate multiplied by the transmit time. iperf computes
100 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints how-are-ethernet-vlans-tagged [Accessed 06 01 2021] [Published 02 25 2014]. [12] Hyung-Taek Lim, Daniel Herrscher, Martin Johannes Waltl and Firas Chaari, “Performance Analysis of the IEEE 802.1 Ethernet Audio/Video Bridging Standard”, figure 2 [Online]. Available: https://www.researchgate.net/publication/262323002_Performance_Anal ysis_of_the_IEEE_8021_Ethernet_AudioVideo_Bridging_Standard [Accessed 06 07 2021] [Published 03 2012]. [13] Henning Puttnies, Peter Danielis, Enkhtuvshin Janchivnyambuu and Dirk Timmermann, “A Simulation Model of IEEE 802.1AS gPTP for Clock Synchronization in OMNeT++” [Online]. Available: https://easychair.org/publications/open/Q4kL [Accessed 06 01 2021]. [14] Silicon Labs, “The IEEE 1588 Standard” [Online]. Available: https://www.silabs.com/whitepapers/ieee-1588-standard [Accessed 06 01 2021]. [15] Wikipedia, “Time-Sensitive Networking” [Online]. Available: https://en.wikipedia.org/wiki/Time-Sensitive_Networking, section 6 [Accessed 06 01 2021]. [16] IEEE Standards Association, “Bridges and Bridged Networks”, section 8.6.8.4 [Online]. Available (private) https://standards.ieee.org/standard/802_1Q-2018.html [Accessed 06 01 2021] [Published 05 07 2018]. [17] Wikipedia, “Credit-based fair queuing” [Online]. Available: https://en.wikipedia.org/wiki/Credit-based_fair_queuing [Accessible 06 07 2021]. [18] IEEE Standards Association, “Bridges and Bridged Networks”, section 8.6.8.2 [Online]. Available (private) https://standards.ieee.org/standard/802_1Q-2018.html [Accessed 06 01 2021] [Published 05 07 2018]. [19] Time Sensitive Networking Task Group, “Time-Sensitive Networking (TSN) Task Group” [Online]. Available: https://1.ieee802.org/tsn/, “Ongoing TSN Projects” section. [Accessed 06 01 2021]. [20] Benoit Claise, Joe Clarke and Jan Lindblad, “Network Programmability With YANG”, Chapter 1 “The Network Management World Must Change: Why Should You Care?” and Chapter 2 “Data Model-Driven Management”, pp. 2-95, Pearson Addison-Weasley, USA [Published in 01 18 2019]. [21] SNMP Center, “Why use NETCONF/YANG when you can use SNMP and CLI?” [Online]. Available: https://snmpcenter.com/why-use-netconf/ [Accessed 06 01 2021].
REFERENCES 101 [22] Benoit Claise, Joe Clarke and Jan Lindblad, “Network Programmability With YANG”, Chapter 3 “YANG Explained”, pp. 96-149, Pearson Addison- Weasley, USA [Published in 01 18 2019]. [23] IETF, “RFC 3444 – Information Models and Data Models” [Online]. Available: https://datatracker.ietf.org/doc/html/rfc3444 [Accessed 06 01 2021] [Published 01 2003]. [24] Matt Albrecht, “Learn YANG. Full Tutorial For Beginners” [Online]. Available: https://ultraconfig.com.au/blog/learn-yang-full-tutorial-for- beginners/ [Accessed 06 01 2021] [Published 01 03 2020]. [25] Benoit Claise, Joe Clarke and Jan Lindblad, “Network Programmability With YANG”, Chapter 4 “NETCONF, RESTCONF, and gNMI Explained”, pp. 158-189, Pearson Addison-Weasley, USA [Published in 01 18 2019]. [26] Benoit Claise, Joe Clarke and Jan Lindblad, “Network Programmability With YANG”, Chapter 4 “NETCONF, RESTCONF, and gNMI Explained”, pp. 190-213, Pearson Addison-Weasley, USA [Published in 01 18 2019]. [27] “AGM” – Laiarroz Elektronika, “OPC: Desde el clásico al nuevo OPC-UA” [Online]. Available: https://larraioz.com/articulos/opc-desde-el-clasico-al- nuevo-opc-ua [Accessed 06 01 2021] [Published 10 04 2016]. [28] B&R Automation, “OPC UA” [Online]. Available: https://www.brautomation.com/es-es/tecnologias/opc-ua/ [Accessed 06 07 2021]. [29] B&R Automation, “OPC UA para el control de movimiento, seguridad y aplicaciones en tiempo real” [Online]. Available: https://www.brautomation.com/es-es/tecnologias/opc-ua/opc-ua-para-el-control-de- movimiento-seguridad-y-aplicaciones-en-tiempo-real/ [Accessed 06 01 2021]. [30] TTTech Industrial, “Time Sensitive Networking and OPC UA (OPC UA over TSN)” [Online]. Available: https://www.tttechindustrial.com/technologies/opc-ua-over-tsn/ [Accessed 06 01 2021]. [31] John S Rinaldi, “OPC UA Client vs Server” [Online]. Available: https://www.rtautomation.com/rtas-blog/opc-ua-client-vs-server/ [Accessed 06 01 2021] [Published 10 16 2018]. [32] Unified Automation, “UA Bundle SDK .NET”, section “Address Space Concepts” [Online]. Available: https://documentation.unifiedautomation.com/uasdkdotnet/2.5.2/html/L2UaAddressSpaceConcepts.ht ml [Accessed 06 01 2021]. [33] Exorint, “The introduction of opc ua publish-subscribe and its importance to manufacturers” [Online]. Available: https://www.exorint.com/en/blog/the-introduction-of-opc-ua-pubsub-
102 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints publish-subscribe-and-its-importance-to-manufacturers [Accessed 06 01 2021]. [34] IEEE Standards Association, “Bridges and Bridged Networks. Amendment 31: Stream Reservation Protocol (SRP) Enhancements and Performance Improvements”, Chapter 46 “Time-Sensitive Networking (TSN) Configuration” [Online]. Available (private) https://standards.ieee.org/standard/802_1Qcc-2018.html [Accessed 06 01 2021] [Published 06 14 2018]. [35] Intel Corporation, “Adopting Time-Sensitive Networking (TSN) for Automation Systems”, section “TSN Products from Intel” [Online]. Available: https://software.intel.com/content/www/us/en/develop/articles/adoptingtime-sensitive-networking-tsn-for-automation-systems-0.html [Accessed 06 01 2021] [Last updated 03 13 2020]. [36] Intel Corporation, “Controladora Ethernet Intel® I210” [Online]. Available: https://www.intel.es/content/www/es/es/products/details/ethernet/gigabitcontrollers/i210-controllers.html [Accessible 06/07/2021]. [37] Gopiga S K, Keerthivasan A S, Nikhil Vannan K, Selva Suba Jenifer J, Shriya Chaurasia, Suriya Narayanan P V and Thangavaila K T, “How to run OPC UA PubSub on real-time Linux and TSN using open62541” [Online]. Available: https://www.kalycito.com/how-to-run-opc-ua-pubsub- tsn/ [Accessed 06 01 2021]. [38] ankita_saini, “Introduction to Linux Operating System” [Online]. Available: https://www.geeksforgeeks.org/introduction-to-linux-operating-system/ [Accessed 06 01 2021] [Published 02 18 2021]. [39] Rubén Velasco, “Kernel Linux, descubre cómo es el corazón de este sistema operativo” [Online]. Available: https://www.softzone.es/programas/linux/kernel-nucleo-linux/ [Accessed 06 01 2021] [Last update 03 30 2021]. [40] Grégoire Monet, “From Sockets to NIC: A Big Picture” [Online]. Available: https://medium.com/swlh/from-sockets-to-nic-a-big-picture-7494356cfcd4 [Accessed 06 01 2021] [Published 12 10 2020]. [41] Dan Siemon, “Queuing in the Linux Network Stack” [Online]. Available: https://www.linuxjournal.com/content/queueing-linux-network-stack [Accessed 06 01 2021] [Published 11 23 2013]. [42] Intel Corporation, “Intel® Ethernet Controller I210 Datasheet”, Cover of the document [Online]. Available: https://datasheet.octopart.com/WGI210IS-S-LJXX-Intel-datasheet- 138896048.pdf [Accessed 06 01 2021] [Published 06 2018].
REFERENCES 103 [43] IEEE Standards Association, “Bridges and Bridged Networks”, section 8.6.8, figure 8.6 [Online]. Available (private) https://standards.ieee.org/standard/802_1Q-2018.html [Accessed 06 01 2021] [Published 05 07 2018]. [44] IEEE Standards Association, “Frame Replication and Elimination for Redundancy”, section 9.1.1.6, table 9.1 [Online]. Available (private): https://standards.ieee.org/standard/802_1CB-2017.html [Accessed 06 01 2021] [Published 09 28 2017]. [45] IEEE Standards Association, “Frame Replication and Elimination for Redundancy”, section 10.5.1.6, table 10.2 [Online]. Available (private): https://standards.ieee.org/standard/802_1CB-2017.html [Accessed 06 01 2021] [Published 09 28 2017]. [46] IEEE Standards Association, “Bridges and Bridged Networks. Amendment 31: Stream Reservation Protocol (SRP) Enhancements and Performance Improvements”, section 46.2.5.1.3, table 46.15 [Online]. Available (private) https://standards.ieee.org/standard/802_1Qcc- 2018.html [Accessed 06 01 2021] [Published 06 14 2018]. [47] Ramon Serna Oliver, Silviu S. Craciunas, Wilfried Steiner, “IEEE 802.1Qbv Gate Control List Synthesis using Array Theory Encoding” [Online]. Available: https://www.researchgate.net/publication/324476736_IEEE_8021Qbv_G ate_Control_List_Synthesis_using_Array_Theory_Encoding [Accessed 06 11 2021] [Published 04 2018]. [48] Ilya Grigorik and Surma, “Introduction to HTTP/2” [Online]. Available: https://developers.google.com/web/fundamentals/performance/http2 [Accessed 06 01 2021] [Last update 12 02 2019]. [49] SoC-e, “1G MTSN-Multiport TSN Switch IP Core” [Online]. Available: https://soc-e.com/mtsn-multiport-tsn-switch-ip-core/ [Accessed 06 01 2021]. [50] Josep Oriol Castaño Cid, “Proves amb equipament Time-Sensitive Networking (TSN)” [Online]. Available: https://upcommons.upc.edu/handle/2117/119626 [Accessed 06 20 2021] [Published 07 27 2018]. [51] Joan Feliu Castaño Cid, “Design and proof of concept of a centralized controller for time-sensitive networks” [Online]. Available: https://upcommons.upc.edu/handle/2117/119626 [Accessed 06 20 2021] [Published 07 13 2018]. [52] Vinicius Gomes, “TSN Documentation Project for Linux”, section “Synchronizing Time with Linux* PTP” [Online]. Available: https://tsn.readthedocs.io/timesync.html [Accessed 06 01 2021]
104 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints [53] Ubuntu manuals, “ptp4l” [Online]. Available: http://manpages.ubuntu.com/manpages/xenial/man8/ptp4l.8.html [Accessed 06 01 2021]. [54] Ubuntu manuals, “phc2sys” [Online]. Available: http://manpages.ubuntu.com/manpages/cosmic/man8/phc2sys.8.html [Accessed 06 01 2021]. [55] Gabriel David Orozco Urrutia and Jordi Cros Mompart, “TSN-CNC-CUC- UPC” [Online repository]. Available (private access): https://github.com/gabriel-david-orozco/TSN-CNC-CUC-UPC. [56] Ubuntu, “Ubuntu 20.04.2.0 LTS (Focal Fossa)” [Online downloadable OS Image]. Available: https://releases.ubuntu.com/20.04/ [Accessed 06 01 2021] [Released 04 23 2020]. [57] Node JS, NodeJS Download for Windows” [Online downloadable development software]. Available: https://nodejs.org/en/ [Accessed 06 01 2021] [Released 04 21 2020]. [58] Jordi Cros Mompart, “Development of an SDN control plane for Time- Sensitive Networking (TSN) endpoints” Downloadable content [Online]. Available: https://drive.google.com/file/d/1DPcwr7XWd9zfzqvXiy0uo7xjvsNd7YTX/v iew?usp=sharing [Accessed 06 20 2021] [Published 06 20 2021] [59] Gigabit Wireless, “What is the actual maximum throughput on Gigabit Ethernet?” [Online]. Available: https://www.gigabit-wireless.com/gigabitwireless/actual-maximum-throughput-gigabit-ethernet/ [Accessed 06 13 2021].
GLOSSARY 105 GLOSSARY ACID Atomicity, Consistency, Independence and Durability API Application Programming Interface BMCA Best Master Clock Algorithm BS Base Station CBS Credit Based Shaper CDP Cisco Discovery Protocol CID Caller Identifier CLI Command Line Interface CNC Centralized Network Configuration CQF Cyclic Queuing and Forwarding CSMA/CA Carrier Sense Multiple Access / Collision Avoidance CSMA/CD Carrier Sense Multiple Access / Collision Detection CUC Centralized User Configuration DCOM Distributed Component Object Model ERP Enterprise Resource Planning EST Enhancements for Scheduled Traffic ETF Earliest TxTime First ETS Enhanced Transmission Selection FDP Foundry Discovery Protocol FIFO First In First Out FRER Frame Replication and Elimination for Reliability GCL Gate Control List gPTP Generic Precision Time Protocol HTTP Hypertext Transfer Protocol HTTPS Hypertext Transfer Protocol Secure IEEE Institute of Electrical and Electronics Engineers IETF Internet Engineering Task Force IP Internet Protocol IPv4 Internet Protocol version 4 IPv6 Internet Protocol version 6 IS-IS Intermediate System to Intermediate System ISIS-PCR IS-IS Path Control Reservation ITU-T International Telecommunication Union - Telecommunication JSON JavaScript Object Notation LAG Link Aggregation Group LAN Local Area Network LLC Logical Link Control LLDP Link Layer Discovery Protocol LUC Logic Unit Center MAC Medium Access Control MB MegaByte
106 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints MIB Management Information Base MMRP Multiple MAC Registration Protocol MRP Multiple Registration Protocol MSRP Multiple Stream Reservation Protocol MVRP Multiple VLAN Registration Protocol NAT Network Address Translation NETCONF Network Configuration Protocol NIC Network Interface Card ODL OpenDaylight ONOS Operating Network Operating System OPC-UA OPC Unified Architecture OS Operating System OSI Open Systems Interconnection OUI Organizational Unique Identifier PCE Path Computation Element PHY Physical Interface PSFP Per Stream Filtering and Policing Pub/Sub OPC-UA Publish / Subscribe communication QDISC Queuing Disciplines QoS Quality of Service REST Representational State Transfer RESTCONF Network Configuration Protocol over REST RFC Request for Comments RPC Remote Procedure Call SDN Software Defined Networking SNMP Simple Network Management Protocol SPB Shortest Path Bridging SPF Shortest Path First SRP Stream Reservation Protocol SSH Secure Shell STF Stream Transfer Function STP Spanning Tree Protocol TAI International Atomic Time TAPRIO Time Aware Priority TAS Time Aware Scheduler TCP Transmission Control Protocol TLS Transport Layer Security TLV Type Length Value TSN Time Sensitive Networking UDP User Datagram Protocol UID Unique Identifier UNI User to Network Interface URI Uniform Resource Identifier URL Uniform Resource Locator
GLOSSARY 107 UTC Universal Time Coordinated VID VLAN Identifier VLAN Virtual Local Area Network WiFi Wireless Fidelity XML Extensible Markup Language YANG Yet Another Next Generation
108 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints ANNEX A. IEEE AND TSN STANDARDS This annex contains all the protocols and standards that may be related to the project, but do not have any impact in its development. Some of them belong to the field of the Link Layer protocols, such as Spanning Tree Protocol, Shortest Path Bridging / Shortest Path First and Link Layer Discovery Protocol. The following ones are closer to Time Sensitive Networking, trying to provide new features to the setting of a TSN domain and flows in a network. Others are mentioned since they overlap in come aspects. By introducing these standards, including all the ones mentioned in Chapter 1, we want the reader with a general overview of the whole TSN-related content described in this project. Most of them will take part in the future lines of this field and others are mentioned in order to state a possible overlapping in functionalities. A.1 IEEE 802.1d – Spanning Tree Protocol Spanning Tree Protocol (STP) [1] is a generic used protocol in LAN, aimed to avoid loop forwarding issues at layer 2 networks. 1. From link cost, priority or MAC address, the root switch is determined inside a LAN. 2. The rest of the switches set the root port, which is the one with minor cost to the root switch. 3. For every link, we select as designed port the one with less cost to the root switch. 4. If in a link there is a designed port and the other one is not the root port, this last will be disabled from being used. SPT is implemented in each different VLAN in the infrastructure. As VLANs are being used to distinguish between different TSN streams, it is important not to perform SPT [2] in them. By not using Spanning Tree Protocol, the virtual network does not get its links disabled, permitting redundancy and other features needed to comply with TSN standards. A.2 IEEE 802.1aq – Shortest Path Bridging and Shortest Path First The reason to consider these protocols is that some TSN standards (specifically 802.1Qbv and 802.1Qca) mention them and there could be a need of an analysis of them for future lines after this project.
ANNEX A. IEEE AND TSN STANDARDS 109 The Shortest Path Bridging (SPB) [3] standard aims to be a substitute of STP, offering several advantages: 1. More scalability and convergence speed. 2. More robust meshed topologies (no loop avoidance) 3. Forwarding redundancies, easing the recovery process against failures and load distribution. Even though this protocol looks better than STP, it is recommended not to use it either, since it still interferes with critical TSN functionalities. Apart from SPB, there is also Shortest Path First (SPF) with all its variants, since they value the different link features for future decisions. A.3 IEEE 802.1ab – Link Layer Discovery Protocol This protocol, also known as Station and Media Access Control Connectivity Discovery is fundamental for the implementation of a TSN network. It lets devices announce its identity, properties and adjacent connections in the network. It is the standardization of several proprietary protocols, such as Cisco Discovery Protocol (CDP) or Foundry Discovery Protocol (FDP). Typically, information obtained thanks to Link Layer Discovery Protocol (LLDP) [4] is stored in the Management Information Base (MIB). This information can be queried using, typically, Simple Management Network Protocol (SNMP). Information obtained contains the following: 1. System name and description. 2. Port name and description. 3. VLANs in the device. 4. Management IP. 5. System capabilities (including TSN features). 6. Low level information (LLC/PHY). 7. Link aggregations. Within a certain interval, devices multicast their LLDP data in Type Length Value (TLV) format and a given multicast address.
116 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints ANNEX B. UNI YANG MODULE The following tree is a representation of all the fields in the designed YANG module, found in the project’s repository [18]: “Module: ieee802-dot1q-tsn-types-upc-version +--rw tsn-uni +--rw stream-list* [stream-id] | +--rw stream-id stream-id-type | +--rw request | | +--rw talker | | | +--rw stream-rank | | | | +--rw rank? uint8 | | | +--rw end-station-interfaces* [mac-address interface-name] | | | | +--rw mac-address string | | | | +--rw interface-name string | | | +--rw data-frame-specification* [index] | | | | +--rw index uint8 | | | | +--rw (field)? | | | | +--:(ieee802-mac-addresses) | | | | | +--rw ieee802-mac-addresses | | | | | +--rw destination-mac-address? string | | | | | +--rw source-mac-address? string | | | | +--:(ieee802-vlan-tag) | | | | | +--rw ieee802-vlan-tag | | | | | +--rw priority-code-point? uint8 | | | | | +--rw vlan-id? uint16 | | | | +--:(ipv4-tuple) | | | | | +--rw ipv4-tuple | | | | | +--rw source-ip-address? inet:ipv4-address | | | | | +--rw destination-ip-address? inet:ipv4-address | | | | | +--rw dscp? uint8 | | | | | +--rw protocol? uint16 | | | | | +--rw source-port? uint16 | | | | | +--rw destination-port? uint16 | | | | +--:(ipv6-tuple) | | | | +--rw ipv6-tuple | | | | +--rw source-ip-address? inet:ipv6-address | | | | +--rw destination-ip-address? inet:ipv6-address | | | | +--rw dscp? uint8 | | | | +--rw protocol? uint16 | | | | +--rw source-port? uint16 | | | | +--rw destination-port? uint16 | | | +--rw traffic-specification | | | | +--rw interval | | | | | +--rw numerator? uint32 | | | | | +--rw denominator? uint32 | | | | +--rw max-frames-per-interval? uint16 | | | | +--rw max-frame-size? uint16
ANNEX B. UNI YANG MODULE 117 | | | | +--rw transmission-selection? uint8 | | | | +--rw time-aware! | | | | +--rw earliest-transmit-offset? uint32 | | | | +--rw latest-transmit-offset? uint32 | | | | +--rw jitter? uint32 | | | +--rw user-to-network-requirements | | | | +--rw num-seamless-trees? uint8 | | | | +--rw max-latency? uint32 | | | +--rw interface-capabilities | | | +--rw vlan-tag-capable? boolean | | | +--rw cb-stream-iden-type-list* uint32 | | | +--rw cb-sequence-type-list* uint32 | | +--rw listeners-list* [index] | | | +--rw index uint16 | | | +--rw end-station-interfaces* [mac-address interface-name] | | | | +--rw mac-address string | | | | +--rw interface-name string | | | +--rw user-to-network-requirements | | | | +--rw num-seamless-trees? uint8 | | | | +--rw max-latency? uint32 | | | +--rw interface-capabilities | | | +--rw vlan-tag-capable? boolean | | | +--rw cb-stream-iden-type-list* uint32 | | | +--rw cb-sequence-type-list* uint32 | | +---x compute-request | +--ro configuration | +--ro status-info | | +--ro talker-status? enumeration | | +--ro listener-status? enumeration | | +--ro failure-code? uint8 | +--ro failed-interfaces* [mac-address interface-name] | | +--ro mac-address string | | +--ro interface-name string | +--ro talker | | +--ro accumulated-latency? uint32 | | +--ro interface-configuration | | +--ro interface-list* [mac-address interface-name] | | +--ro mac-address string | | +--ro interface-name string | | +--ro config-list* [index] | | +--ro index uint8 | | +--ro (config-value)? | | +--:(ieee802-mac-addresses) | | | +--ro ieee802-mac-addresses | | | +--ro destination-mac-address? string | | | +--ro source-mac-address? string | | +--:(ieee802-vlan-tag) | | | +--ro ieee802-vlan-tag | | | +--ro priority-code-point? uint8 | | | +--ro vlan-id? uint16
118 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints | | +--:(ipv4-tuple) | | | +--ro ipv4-tuple | | | +--ro source-ip-address? inet:ipv4-address | | | +--ro destination-ip-address? inet:ipv4-address | | | +--ro dscp? uint8 | | | +--ro protocol? uint16 | | | +--ro source-port? uint16 | | | +--ro destination-port? uint16 | | +--:(ipv6-tuple) | | | +--ro ipv6-tuple | | | +--ro source-ip-address? inet:ipv6-address | | | +--ro destination-ip-address? inet:ipv6-address | | | +--ro dscp? uint8 | | | +--ro protocol? uint16 | | | +--ro source-port? uint16 | | | +--ro destination-port? uint16 | | +--:(time-aware-offset) | | +--ro time-aware-offset? uint32 | +--ro listener-list* [index] | | +--ro index uint16 | | +--ro accumulated-latency? uint32 | | +--ro interface-configuration | | +--ro interface-list* [mac-address interface-name] | | +--ro mac-address string | | +--ro interface-name string | | +--ro config-list* [index] | | +--ro index uint8 | | +--ro (config-value)? | | +--:(ieee802-mac-addresses) | | | +--ro ieee802-mac-addresses | | | +--ro destination-mac-address? string | | | +--ro source-mac-address? string | | +--:(ieee802-vlan-tag) | | | +--ro ieee802-vlan-tag | | | +--ro priority-code-point? uint8 | | | +--ro vlan-id? uint16 | | +--:(ipv4-tuple) | | | +--ro ipv4-tuple | | | +--ro source-ip-address? inet:ipv4-address | | | +--ro destination-ip-address? inet:ipv4-address | | | +--ro dscp? uint8 | | | +--ro protocol? uint16 | | | +--ro source-port? uint16 | | | +--ro destination-port? uint16 | | +--:(ipv6-tuple) | | | +--ro ipv6-tuple | | | +--ro source-ip-address? inet:ipv6-address | | | +--ro destination-ip-address? inet:ipv6-address | | | +--ro dscp? uint8 | | | +--ro protocol? uint16
ANNEX B. UNI YANG MODULE 119 | | | +--ro source-port? uint16 | | | +--ro destination-port? uint16 | | +--:(time-aware-offset) | | +--ro time-aware-offset? uint32 | +---x deploy-configuration | +---x undeploy-configuration | +---x delete-configuration +---x compute-all-configuration +---x deploy-all-configuration +---x undeploy-all-configuration +---x delete-all-configuration”
120 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints ANNEX C. Project developer’s guide This annex provides details to developers and any reader that is interested on knowing details about the implementation. It covers the project structure and the explicit implementation, mentioning every function. C.1 Project Structure Currently, the project is held in a private repository found in [18]. In the following lines, the project structure is shown as a tree. “ TSN-CNC-CUC-UPC │ │─ CNC │ │─ **Not on the scope of this project** │─ CUC │ │─ index.js │ │─ logic │ │ │─ core.js │ │─ opc-ua-client │ │ │─ opcua-client.js │ │─ package-lock.json │ │─ package.json │ │─ resources │ │ │─ ca.pem │ │ │─ client-certificate.pem │ │ │─ client-key.pem │ │ │─ clientCertificate.pem │ │─ restconf-client │ │ └─ restconf-client.js │ │─ utils │ │─ arrayUtils.js │ │─ gate-control-list │ │ └─ gateControlListUtils.js │ │─ yang │ │─ [email protected] │ │─ ieee802-dot1q-tsn-types.js │ │─ json-samples │ │ │─ cncResponse.json │ │ │─ fieldsNotUsed.json │ │ │─ sampleData.json │ │ │─ talker.json │ │─ yangUtils.js │─ ENDPOINTS │ │─ Listener │ │ │─ config.json
ANNEX C. Project developer’s guide 121 │ │ │─ index.js │ │ │─ opc-ua-server │ │ │ │─ opcua-server.js │ │ │─ package-lock.json │ │ │─ package.json │ │─ package-lock.json │ │─ Talker │ │─ config.json │ │─ index.js │ │─ opc-ua-server │ │ │─ opcua-server.js │ │─ package-lock.json │ │─ package.json │─ README.md │─ Yang_models │─ [email protected] │─ieee802-dot1q-tsn-types-upc-version@2018-02- 15(COMPLETE_VERSION).yang │─ [email protected] │─ ieee802-dot1q-tsn-types.json │─ ieee802-dot1q-tsn-types.yang │─ [email protected] │─ ietf-inet-types.yang │─ ietf-yang-types.yang │─ README.md ” Note that there are two main folders that correspond to our projects: CUC and ENDPOINTS. The first one is a project itself, but the ENDPOINTS one contains two projects: TALKER and LISTENER. C.2 CUC The Centralized User Configuration project logic is based on the three following components: the OPC-UA Client, the Logic Unit Center and the RESTCONF Client. 1. CUC needs to know the OPC-UA Server addresses it will manage. 2. After polling their identity and configurations, the information is handled at the LUC. 3. It sends the generated information through the RESTCONF Client. 4. Finally, it generates the TSN Endpoint’s configuration, sent through the OPC-UA Client. This process already described is shown in Figure C.1, which is the index.js, the entry file of the CUC Node project.
122 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints Fig. C.1 Workflow of the CUC project. After reviewing the general flow that the CUC is set into, we can check the details of every step. C.2.1 OPC-UA Client opcua-client.js file. C.2.1.1 connectOpcUaServer(endpointUrl) This function connects to the specified endpointUrl and, after creating a session against it, reads all known Address Space variables. After obtaining all of these variables, it places them in a single object instance. *Note that if your own implementation has different node IDs, you would need to change them in this function. C.2.1.1 sendConfigToEndpoint(endpointUrl, config, isTalker) This method writes the computed TSN configuration to the specified endpointUrl. Since Talkers and Listeners need different configuration values, the boolean value isTalker is specified as a parameter. After writing all the necessary configuration to the Endpoints, a method is triggered on them to apply it. This triggering is the one that starts the performance of the TSN flow.
ANNEX C. Project developer’s guide 123 C.2.2 Logic Unit Center core.js file. C.2.2.1 receiveDataFromOpcUaServer(receivedData) This function checks the presence of every needed field from a Talker or a Listener, reporting any possible error. If information is complete, all the data is pushed to dynamic arrays called talkerInformation and listenerInformation. The streamId obtained from the OPC-UA Server is returned. C.2.2.2 checkStreamInformationReadyAndSend(idStream) This function is called when there is a certainty that a stream is ready to be configured. The idStream is the identification used to locate the configurations that will be sent. If configurations for a Talker and a Listener are found, the generateUniGroups function is called to generate the instance of the YANG module (presented in the Annex B). Once the YANG instance is created a validated through the submodule yangUtils.js, it is sent through the RESTCONF client. *Since the current status of the CNC implementation does not provide the interface yet, the requests and the configuration results are mocked. More information will be provided in the following RESTCONF Client section. C.2.2.3 generateUniGroups(ctrTalker, ctrListener) This method generates a JSON encoded variable that maps and instance of our designed YANG module. C.2.2.4 parseConfigurationData() Used in order to decode the response JSON containing the Status groups (see 3.1.1) from the CNC. It fetches the incoming configuration and adds it to the correct entry of the talkerInformation and listenerInformation variables and returns true if the operation is successful. However, if the incoming configuration data contains an error code, it returns false. C.2.2.5 generateGclAndSendConfig(gclType) This function computes the Gate Control List for a given Talker. It looks for all of its Streams and performs a time-scheduling design. Currently, it generates a simple TAS between a TSN traffic and best-effort classes.
124 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints After its computation, the GCL is returned. C.2.3 RESTCONF Client In the current implementation, the RESTCONF Client implements only one method to post a configuration to the CNC. RESTCONF requires mutual authentication, this means that our client needs a certificate that can be verified by the CNC, the server. The certificate used comes with the project, but needs to be changed when it is connected to a different CNC. *Note that having a certificate trusted by the CNC is essential, since all HTTP/2 communications are forced to establish a secure session based on Mutual Authentication. If a certificate is not provided, the communication will never work. C.2.3.1 restconfRequest(body) This method posts the instance data generated by the LUC method generateUniGroups. It establishes a session with the CNC and checks that the response is successful. This function is currently commented, because despite of being able to send the configuration to the CNC successfully, there was no configuration returned. All kinds of request can be coded from this function changing the desired parameters. Also, if another CNC or YANG module is used, remind to check the path used in the current implementation: /restconf/data/ieee802-dot1q-tsn-types-upc- version:tsn-uni C.3 Endpoints Both Talker and Listener follow the same project structure, where the main file is the opcua-server.js. When it starts running, it initializes an OPC-UA server. During the initialization, all the Address Space variables are set, reading values from config.json when the method post_initialize is triggered. After the initialization, the only interface these projects are providing are through the Address Space calls. By this. The CUC reads/writes data or triggers some function in the Endpoints. Since the Talker and Listener projects are not the same, it is better to check them separately to give better details. C.3.1 Talker Apart from the base OPC-UA sever, the Talker has a process that updates an Address Space node. This node data is the one that is sent through the Pub/Sub communication between Talker and Listener. It also needs to perform autoconfiguration thanks to the method triggering from the CUC.
ANNEX C. Project developer’s guide 125 C.3.1.1 post_initialize() Talker peculiarities As mentioned, apart from having extra nodes indicating the traffic specification, it performs a periodical update in one of their variables. The following figure shows how this value rawData is being updated following an interval obtained from the config.json. It also registers the variable to the Address Space, to make it available for Subscriptions. Note that the updated variable is printed with a timestamp, for debugging purposes. Fig. C.2 Set up of the node that will be published. Notice that the rawData variable is assigned with the expression ctr + generatePayload(). C.3.1.2 generatePayload() This function generates a fixed length payload by getting the dataLength from the config.json file. After generating the payload, it is returned as a String. This function is used to generate the fixed length payload. C.3.1.3 configureInterface(interfaceName, gclGates, gclGatesTimeDuration, interval, latency, vlanIdValue) This is the method triggered by the OPC-UA Client requests. It reads all the values previously set by the CUC, such as interfaceName, gclGates, gclGatesTimeDuration, interval, latency and vlanIdValue. With all this values, this function sets the configuration using iptables and tc qdisc tools. For more information regarding these tools, see Annex D.
132 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints D.2.3 cbs This tool [22] is aimed to shape the output of a given traffic priority and limit its bandwidth. The command looks as below: “Sudo tc qdisc replace dev eth0 parent 100:2 cbs idleslope 98688 sendslope -901312 hicredit 153 locredit -1389 offload 1” 1. As etf, it is placed under a given traffic class from taprio. In this example, the second traffic class is set to have a credit-based shaper in its output. 2. idleslope and sendslope are parameters than can be check previously in this document (see section 1.2.2). 3. hicredit and locredit is the maximum and minimum number of credits that the shaper can accumulate in excess or in debt. By checking taprio, cbs and etf, all of them can be used according to the incoming TSN configuration, so that a TAS, a CBS and a controlled transmit time can be mapped to a working endpoint. With the help of iptables and the socket priorities, it is possible to distinguish all the traffic to be treated by these three tools.
ANNEX REFERENCES 133 ANNEX REFERENCES [1] Área de Ingenieria Telemática – Universidad de Navarra, “Spanning Tree Protocol” [Online]. Available: https://www.tlm.unavarra.es/~daniel/docencia/rba/rba11_12/slides/07- STP.pdf [Accessed 06 01 2021]. [2] Cisco, “About Time-Sensitive Networking”, section “CNC to Bridge Control Plane” [Online]. Available: https://www.cisco.com/c/en/us/td/docs/switches/lan/cisco_ie4000/tsn/b_t sn_ios_support/b_tsn_ios_support_chapter_01.pdf [Accessed 06 01 2021]. [3] Wikipedia, “IEEE 802.1aq” [Online]. Available: https://es.wikipedia.org/wiki/IEEE_802.1aq [Accessed 06 01 2021]. [4] Wikipedia, “Link Layer Discovery Protocol” [Online]. Available: https://en.wikipedia.org/wiki/Link_Layer_Discovery_Protocol [Accessed 06 01 2021]. [5] Frederik Hauser, Mark Schmidt, Marco Häberle and Michael Menth, “P4- MACsec: Dynamic Topology Monitoring and Data Layer Protection with MACsec in P4-Based SDN”, figure 3 [Online]. Available: https://www.researchgate.net/publication/340112340_P4- MACsec_Dynamic_Topology_Monitoring_and_Data_Layer_Protection_w ith_MACsec_in_P4-Based_SDN [Accessed 06 07 2021]. [6] Leonardo Ochoa-Aday, Cristina Cervello-Pastor, ´ Member, IEEE, and Adriana Fernandez-Fernández, “Current Trends of Topology Discovery in OpenFlow-based Software Defined Networks” [Online]. Available: https://upcommons.upc.edu/bitstream/handle/2117/77672/Current%20Tr ends%20of%20Discovery%20Topology%20in%20SDN.pdf [Accessed 06 01 2021]. [7] Levi Person, “Stream Reservation Protocol” [Online]. Available: https://avnu.org/wp-content/uploads/2014/05/AVnu_Stream-Reservation- Protocol-v1.pdf [Accessed 06 01 2021] [Published 11 03 2014]. [8] IEEE Standards Association, “Bridges and Bridged Networks”, annex T [Online]. Available (private) https://standards.ieee.org/standard/802_1Q- 2018.html [Accessed 06 01 2021] [Published 05 07 2018]. [9] IEEE Standards Association, “Bridges and Bridged Networks”, section 8.6.5.1 [Online]. Available (private) https://standards.ieee.org/standard/802_1Q-2018.html [Accessed 06 01 2021] [Published 05 07 2018]. [10] Erich Brockard, “Everything You Need To Know About TSN Sub- Standards & How To Combine Them” [Online]. Available:
134 Development of an SDN control plane for Time-Sensitive Networking (TSN) endpoints https://blog.ebv.com/combining-tsn-sub-standards-knowhow/ [Accessed 06 01 2021] [Published 07 27 2016]. [11] Josep Oriol Castaño Cid, “Proves amb equipament Time-Sensitive Networking (TSN)”, section 1.1.2.3, Bachelor Degree Thesis, UPC [Online]. Available: https://upcommons.upc.edu/bitstream/handle/2117/121567/memoria.pdf [Accessed 06 01 2021] [Published 07 06 2018]. [12] Time Sensitive Networking Task Group, “P802.1Qcr – Bridges and Bridged Networks Amendment: Asynchronous Traffic Shaping” [Online]. Available: https://1.ieee802.org/tsn/802-1qcr/ [Accessed 06 01 2021] [Last update 07 09 2020]. [13] IEEE Standards Association, “Bridges and Bridged Networks”, Chapter 45 “Path Control and Reservation” [Online]. Available (private) https://standards.ieee.org/standard/802_1Q-2018.html [Accessed 06 01 2021] [Published 05 07 2018]. [14] Josep Oriol Castaño Cid, “Proves amb equipament Time-Sensitive Networking (TSN)”, section 1.1.3.3, Bachelor Degree Thesis, UPC [Online]. Available: https://upcommons.upc.edu/bitstream/handle/2117/121567/memoria.pdf [Accessed 06 01 2021] [Published 07 06 2018]. [15] IEEE Standards Association, “Frame Replication and Elimination for Redundancy” [Online]. Available (private): https://standards.ieee.org/standard/802_1CB-2017.html [Accessed 06 01 2021] [Published 09 28 2017]. [16] IEEE Standards Association, “Time-Sensitive Networking for Fronthaul” [Online]. Available (private): https://standards.ieee.org/standard/802_1CM-2018.html [Accessed 06 01 2021] [Published 05 07 2018]. [17] Time Sensitive Networking Task Group, “802.1AX-2020 – Link Aggregation” [Online]. Available: https://1.ieee802.org/tsn/802-1ax-rev/ [Accessed 06 01 2021] [Last update 01 16 2019]. [18] Gabriel David Orozco Urrutia and Jordi Cros Mompart, “TSN-CNC-CUC- UPC” [Online repository]. Available (private access): https://github.com/gabriel-david-orozco/TSN-CNC-CUC-UPC. [19] Herve Eychenne, “iptables (8) – Linux man page” [Online]. Available: https://linux.die.net/man/8/iptables [Accessed 06 01 2021]. [20] Vinicius Costa Gomes, “tc-taprio (8) – Linux man page” [Online]. Available: https://man7.org/linux/man-pages/man8/tc-taprio.8.html [Accessed 06 01 2021] [Published 09 25 2018].
ANNEX REFERENCES 135 [21] Jesus Sanchez-Palencia and Vinicius Costa Gomes, “tc-etf (8) – Linux man page” [Online]. Available: https://man7.org/linux/manpages/man8/tc-etf.8.html [Accessed 06 01 2021] [Published 07 05 2018]. [22] Vinicius Costa Gomes, “tc-cbs (8) – Linux man page” [Online]. Available: https://www.man7.org/linux/man-pages/man8/CBS.8.html [Accessed 06 01 2021] [Published 09 17 2017].