Debian Codegraph @

README.md

raw symbols SCIP
1 # Linux RealTime Communication Testbench
2
3 ## About
4
5 The Linux RealTime Communication `Testbench` is a real-time and non-real time traffic validation
6 tool for converged Ethernet networks with and without utilization of TSN mechanisms. PROFINET as
7 well as OPC/UA PubSub and other configurable protocols are supported. Furthermore, the performance
8 validation of security algorithms for a particular hardware can be validated. The evaluation
9 application generates RT and non-RT traffic, mirrors traffic and performs consistency and latency
10 checks. The Linux RealTime Communication `Testbench` is split into two applications:
11
12 - `reference`: Traffic generation and checking simulation
13 - `mirror`: Traffic mirror application for traffic generated by `reference`
14 application
15
16 The concept is shown below.
17
18 <img src="Documentation/images/overview.png" width="600" alt="Linux RealTime Communication Testbench" />
19
20 ### Motivation
21
22 Over the last years the Linux kernel and open source ecosystem is more and more optimized for
23 hard-realtime applications with the resulting Ethernet communication capabilities. Time
24 synchronization with PTP via 802.1AS and various traffic shapers defined by IEEE enable
25 deterministic frame reception and transmission. Furthermore, the PREEMPT_RT preemption model turns
26 Linux into a real-time Operating-System. How well do these mechanisms perform for real world use
27 cases? For instance, is it possible to run protocols like PROFINET or OPC UA Pub/Sub with the help
28 of TSN mechanisms on top of Linux? Which jitter, cycle times, throughputs and latencies can be
29 achieved on a given hardware and firmware platform? Which measures can be taken to optimize these
30 figures?
31
32 To answer these questions, the Linux RealTime Communication `Testbench` has been developed. The
33 purpose of that tool is to evaluate the robustness and realtime-performance of manufacturer’s
34 hardware as well as underlying drivers and the Linux network stack itself. It is not intended to be
35 used as a TSN conformance testing tool, it is intended for platform evaluations and
36 optimizations. The tool itself is independent of any hardware manufacturers. All used TSN mechanisms
37 are utilizing mainline Linux only utilities for data and control plane.
38
39 While the development of the tool started for PROFINET RT and later TSN, it is now able to generate
40 any kind of cyclic Ethernet payload. This way, different middlewares next to PROFINET such as OPC/UA
41 can be simulated and tested.
42
43 Driven by legal requirements like EU Cyber Resilience Act (CRA), security for industrial
44 communication systems is more and more playing a crucial role. The RTC `Testbench` can also be used
45 to measure and optimize the performance of a particular security implementation for authentication
46 and/or encryption of each processed frame.
47
48 ### Architecture
49
50 The application itself performs cyclic Ethernet communication. There are
51 different traffic classes ranging from real time Layer 2 up to UDP
52 communication. The cyclic receivers and transmitters utilize either traditional
53 `AF_PACKET` or modern `AF_XDP` sockets. For both socket types the receive
54 flow is configured via either BPF filters or eBPF XDP programs. Based on the
55 configuration, or profiles, the Linux RealTime Communication `Testbench` can simulate different
56 traffic types such as PROFINET or OPC/UA PubSub. The image below shows an
57 example of three different middlewares in combination with non-real time
58 applications utilizing XDP.
59
60 <img src="Documentation/images/ref_test_app_architecture_xdp.png" width="600" alt="Linux RealTime Communication Testbench XDP Architecture" />
61
62 ## Resources
63
64 Project home: https://github.com/Linutronix/RTC-Testbench
65
66 Project documentation: https://linutronix.github.io/RTC-Testbench
67
68 Contribution: See [CONTRIBUTING](https://github.com/Linutronix/RTC-Testbench/blob/main/CONTRIBUTING.md)
69
70 This project is maintained by: [Linutronix](https://www.linutronix.de/)
71
72 ## Features
73
74 Linux RealTime Communication `Testbench` features include:
75
76 - Real-time and non-real time protocols
77 - Configurable traffic class mapping
78 - Configurable cycle time, frames, frame size, vid
79 - Real-time security support with configurable algorithms like AES256
80 - Multiple middleware simulation like PROFINET and OPC/UA
81 - Usage of PTP for time synchronization
82 - Flexible Linux Ethernet interface usage like XDP, XDP/ZC, AF/PACKET, busy polling
83 - End station Qbv
84
85 ## ToDo
86
87 The following list contains ideas for further development:
88
89 - Rework busy polling configuration
90 - Add configurations for other hardware platforms (hybrid!) and NIC(s)
91 - Add integration with `ClockManager`
92 - Package for Debian
93
94 ## Documentation
95
96 The documentation includes information on how to build, use and run the Linux
97 RealTime Communication `Testbench`. The documentation is available at
98 https://linutronix.github.io/RTC-Testbench
99
100 ## Credits
101
102 Idea and initial funding by Phoenix Contact Electronics GmbH
103
104 Supported by Siemens AG and Intel Corporation
105
106 ## Copyright
107
108 Copyright (C) 2020-2025 Linutronix GmbH
109
110 Copyright (C) 2024 Intel Corporation
111
112 ## License
113
114 BSD-2 Clause and Dual BSD/GPL for all eBPF programs