A method, system and device for testing and verifying a cyclic queue of a TSN switch, and a storage medium
Patent Information
- Application Number
- CN202410427144.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-10
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2044-04-10
AI Technical Summary
在本领域中面对多种流量类别以及采用CQF机制的变电站TSN交换机,需要进行测试验证CQF机制门控功能对时间敏感流的有效性,以及CQF机制在有更高数据速率端口上循环交织方案的有效性,目前尚无测试验证方法
[0024] The present invention provides a storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, it implements any one of the TSN switch circular queue test and verification methods.
Smart Images

Figure CN118449887B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Ethernet switch testing technology, specifically to a TSN switch circular queue test verification method, system, device, and storage medium. Background Technology
[0002] With the rapid development of data communication technology, traditional industrial Ethernet switches can no longer meet the high requirements of some application scenarios in terms of bandwidth, latency, jitter, reliability, and stability. This is especially true in smart substation networks, where the IEC 61850 standard is used, leading to a dramatic increase in network data traffic. Simultaneously, many substation services have an urgent need for low latency and low packet loss rates in the transmission of control signaling and acquired data. Time-Sensitive Networking (TSN) technology, through a series of tools, achieves deterministic services in IEEE 802 networks, ensuring low-latency, high-reliability data packet transmission. While guaranteeing communication bandwidth requirements, it can also meet the needs of high-real-time business data interaction. Therefore, introducing switches with TSN characteristics into smart substations to provide low-latency, low-jitter services for time-sensitive flows is a new approach to improving the QoS of smart grid IMS systems.
[0003] In the CQF shaper, the time-gating logic in the Single Flow Filtering and Controlling (PSPF) mechanism controls the time when time-sensitive packets enter the buffer queue, while the output gating mechanism in the Time-Sensitive Flow Enhanced Scheduling (EST) mechanism controls the time when packets leave the output queue. In the odd-numbered round-robin of CQF, data buffered in the odd queue is forwarded to the next node, while data arriving at that switch port enters the even queue; in the even-numbered round-robin of CQF, the situation is reversed, i.e., the odd queue is buffered, and the even queue is forwarded. Different configurations of the PSPF and EST mechanisms in CQF can enable diverse deterministic forwarding in TSN switches to meet the needs of different scenarios. In this field, facing various traffic categories and substation TSN switches using the CQF mechanism, it is necessary to test and verify the effectiveness of the CQF mechanism's gating function for time-sensitive flows, as well as the effectiveness of the CQF mechanism's cyclic interleaving scheme on ports with higher data rates. Currently, there is no testing and verification method for this. Summary of the Invention
[0004] Purpose of the invention: The purpose of this invention is to provide a TSN switch circular queue test verification method, system, device, and storage medium to test the traffic latency at the receiving end under different transmission latency conditions for different types of service flows, as well as the circular interleaving scheme on ports with higher data rates under different link speeds, and to test in a network environment to determine whether the performance and function of Qch protocol, one of the key protocols of TSN, can meet the requirements.
[0005] Technical Solution: The present invention provides a TSN switch circular queue test verification method for performing CQF test verification when TSN switches have the same link speed, including the following steps: Equipment initialization includes IEEE 802.1 AS synchronization between the network tester and the TSN switch, setting up gating and scheduling policies for the TSN switch according to the substation scenario, and configuring traffic for different types of services. The network tester sends data to the TSN switch: The network tester sends time-sensitive flow services and non-time-sensitive flow services to the first receiving port Rx1 of the TSN switch according to the data transmission delay. The network tester compares and matches the data latency feedback from the first sending port Tx1 of the TSN switch and the data latency of the sent data with the preset test traffic model within the port. The CQF mechanism gate function then judges the validity of the time-sensitive flow. The receiving rate of the first receiving port Rx1 is equal to the sending rate of the first transmitting port Tx1.
[0006] The present invention discloses a TSN switch circular queue test verification method for performing CQF test verification when TSN switch link speeds are different, comprising the following steps: Equipment initialization includes IEEE 802.1 AS synchronization between the network tester and the TSN switch, setting up gating and scheduling policies for the TSN switch according to the substation scenario, and configuring traffic for different types of services. The network tester sends data to the TSN switch; at the same time, the network tester sends time-sensitive flow services and non-time-sensitive flow services to the first receiving port Rx1 and the second receiving port Rx2, respectively. The network tester compares and matches the data latency feedback from the first transmitting port Tx1, the data rate of the second port, and the preset test traffic model within the port. The CQF mechanism then performs an effectiveness judgment on the cyclic interleaving scheme with a port having a higher data rate. Among these, the receiving rates of the first receiving port Rx and the second receiving port Rx2 are lower than the transmitting rate of the first transmitting port Tx1.
[0007] Furthermore, the gating scheduling strategy is the scheduling strategy when the link speeds of TSN switches are the same; The services include: time-sensitive SR-type A streams and non-time-sensitive streams; The preset port-based test traffic model is the CQF test model when the link speeds of TSN switches are the same; Furthermore, the gating scheduling strategy is: the scheduling strategy under different TSN switch link speeds; The services include: time-sensitive SR-type A streams and non-time-sensitive streams; The preset port-based test traffic model is the CQF test model when the link speeds of TSN switches are different.
[0008] Furthermore, the scheduling strategy for TSN switches with the same link speed is as follows: the gating period is set to 10kμs, and the gating list is set as follows: the entry control for service class queue 2 (0~kμs) is enabled, the entry control for service class queue 3 (k~2kμs) is enabled, the exit control for service class queue 3 (0~kμs) is enabled, the exit control for service class queue 2 (k~2kμs) is enabled, and the 2k~10kμs period is shared by other non-time-sensitive flows; time-sensitive flows do not have contention on the transmission channel and do not need to queue, so the transmission delay and jitter can be determined.
[0009] Furthermore, the scheduling strategy for different link speeds on the TSN switch is as follows: The gating period T is selected based on the actual situation. Time-sensitive flow services received on the first receiving port Rx1 are sent to service class queue 7 during odd-numbered periods and to service class queue 6 during even-numbered periods. The period on the second receiving port Rx2 is offset by T / 2 relative to the period on the first receiving port Rx1. Time-sensitive flow services received on the second receiving port Rx2 are sent to service class queue 5 during odd-numbered periods and to service class queue 4 during even-numbered periods. On the first transmitting port Tx1, each queue is in the Open state for T / 2 of the time and in the Close state for 3T / 2 of the time, ensuring that only one service class queue is transmitting at any given time.
[0010] Furthermore, for time-sensitive SSR-class A-flow services: the data packet length is less than 500 bytes, the message type is Goose message, and the traffic priority is set to 3; Non-time-sensitive flow services: data packet length is less than 1250 bytes, message type is MMS message, and traffic priority is set to 3.
[0011] Furthermore, the traffic model configures traffic for different types of services, including: When TSN switch link speeds are the same, the CQF test model configures traffic for different types of services: for time-sensitive SR class A flow services, the data transmission rate is 100% of the port rate, and the packet transmission delays are 0, k / 2μs, kμs, and 2kμs respectively; for non-time-sensitive flow services, the data transmission rate is 100% of the port rate, and the packet transmission delays are 0, k / 2μs, kμs, and 2kμs respectively. When TSN switch link speeds differ, the CQF test model configures traffic for different types of services: for time-sensitive SR-type A-flow services, the data transmission rate is 50% of the port rate, and the packet transmission latency is 0; for non-time-sensitive flow services, the data transmission rate is 50% of the port rate, and the packet transmission latency is 0.
[0012] Furthermore, when sending SR-class A-flow services with time-sensitive characteristics to perform CQF testing and verification with the same TSN switch link speed, the judgment logic is as follows: if the data delay feedback from the first sending port Tx1 is consistent with the data delay of the sent data and the gating scheduling policy, then the CQF mechanism gating function is determined to be effective for time-sensitive flows. Sending non-time-sensitive stream services for CQF testing and verification with the same TSN switch link speed serves as a control group for sending time-sensitive stream services, showing the transmission of data traffic with different packet transmission delays when there is no CQF mechanism.
[0013] Furthermore, when sending SR-type A-stream services with time-sensitive characteristics to perform CQF testing and verification when TSN switch link speeds are different, the judgment logic is as follows: if the data delay feedback from the first sending port Tx1 is consistent with the port data rate and the gating scheduling strategy, then the CQF mechanism is determined to be effective in the cyclic interleaving scheme on the port with a higher data rate. Sending non-time-sensitive stream services to perform CQF tests with different TSN switch link speeds serves as a control group for sending time-sensitive stream services, showing the transmission of data traffic through ports at different speeds without a CQF mechanism.
[0014] The TSN switch circular queue test verification system of the present invention includes CQF test verification when the link speed of TSN switches is the same, comprising: Device initialization module: used for IEEE 802.1 AS synchronization between the network tester and the TSN switch, setting gating and scheduling policies for the TSN switch according to the substation scenario, and configuring traffic for different types of services; Sending module: Used by the network tester to send time-sensitive flow services and non-time-sensitive flow services to the first receiving port Rx1 of the TSN switch according to different packet sending delays; Judgment and verification module: The network tester uses the data latency feedback from the first transmitting port Tx1 of the TSN switch, the data transmission latency, and the preset judgment logic that matches the test traffic model within the port to perform the CQF mechanism gating function to determine the validity of time-sensitive flows; wherein, the receiving rate of the first receiving port Rx1 is equal to the sending rate of the first transmitting port Tx1.
[0015] The present invention discloses a TSN switch circular queue test and verification system, which performs CQF test and verification when TSN switch link speeds are different, including... Device initialization module: used for IEEE 802.1 AS synchronization between the network tester and the TSN switch, setting gating scheduling policies for the TSN switch according to different link speed scenarios, and configuring traffic for different types of services; Transmitting module: Used for the network tester to simultaneously transmit time-sensitive flow services and non-time-sensitive flow services to the first receiving port Rx1 and the second receiving port Rx2, respectively; Judgment and verification module: used to judge the effectiveness of the CQF mechanism on the port with a higher data rate based on the data delay feedback from the first transmitting port Tx1, the port data rate, and the preset judgment logic that matches the test traffic model within the port; the receiving rate of the first receiving port Rx and the second receiving port Rx2 is less than the sending rate of the first transmitting port Tx1.
[0016] Furthermore, in the device initialization module, the gating scheduling strategy is the scheduling strategy when the TSN switch link speed is the same; the services include: SRC A flow with time-sensitive characteristics and non-time-sensitive flow; the preset port test traffic model is the CQF test model when the TSN switch link speed is the same. Furthermore, in the device initialization module, the gating scheduling strategy is: a scheduling strategy for different TSN switch link speeds; the services include: time-sensitive SSR-type A flows and non-time-sensitive flows; the preset port-internal test traffic model is the CQF test model for different TSN switch link speeds.
[0017] Furthermore, in the device initialization module, the scheduling strategy under the condition that the TSN switch link speed is the same is as follows: the gating period is set to 10kμs, and the gating list is set as follows: the entry control of service class queue 2 in the 0~kμs range is enabled, the entry control of service class queue 3 in the k~2kμs range is enabled, the exit control of service class queue 3 in the 0~kμs range is enabled, the exit control of service class queue 2 in the k~2kμs range is enabled, and the 2k~10kμs range is shared by other non-time-sensitive flows; time-sensitive flows do not have contention on the transmission channel and do not need to queue, so the transmission delay and jitter can be determined.
[0018] Furthermore, in the device initialization module, the scheduling strategy for different TSN switch link speeds is as follows: Based on the actual situation, a gating period T is selected. Time-sensitive flow services received on the first receiving port Rx1 are sent to service class queue 7 during odd-numbered periods and to service class queue 6 during even-numbered periods. The period on the second receiving port Rx2 is offset by T / 2 relative to the period on the first receiving port Rx1. Time-sensitive flow services received on the second receiving port Rx2 are sent to service class queue 5 during odd-numbered periods and to service class queue 4 during even-numbered periods. On the first transmitting port Tx1, each queue is in the Open state for T / 2 of the time and in the Close state for 3T / 2 of the time, ensuring that only one service class queue is transmitting at any given time.
[0019] Furthermore, in the sending module, the SR-type A-flow service with time-sensitive characteristics has the following characteristics: the data packet length is less than 500 bytes, the message type is Goose message, and the traffic priority is set to 3; Non-time-sensitive flow services: data packet length is less than 1250 bytes, message type is MMS message, and traffic priority is set to 3.
[0020] Furthermore, in the sending module, the traffic model configures traffic for different types of services, including: When TSN switch link speeds are the same, the CQF test model configures traffic for different types of services: for time-sensitive SR class A flow services, the data transmission rate is 100% of the port rate, and the packet transmission delays are 0, k / 2μs, kμs, and 2kμs respectively; for non-time-sensitive flow services, the data transmission rate is 100% of the port rate, and the packet transmission delays are 0, k / 2μs, kμs, and 2kμs respectively. The CQF test model configures traffic for different types of services when the TSN switch link speed is different: for time-sensitive SR class A flow services, the data transmission rate is 50% of the port rate and the packet transmission delay is 0; for non-time-sensitive flow services, the data transmission rate is 50% of the port rate (500Mbit / s) and the packet transmission delay is 0.
[0021] Furthermore, in the judgment module, when sending SR-type A-flow services with time-sensitive characteristics to perform CQF test verification with the same TSN switch link speed, the judgment logic is as follows: if the data delay situation fed back by the first sending port Tx1 is consistent with the data delay situation sent and the gating scheduling strategy, then it is determined that the CQF mechanism gating function is effective for time-sensitive flows. Sending non-time-sensitive stream services for CQF testing and verification with the same TSN switch link speed serves as a control group for sending time-sensitive stream services, showing the transmission of data traffic with different packet transmission delays when there is no CQF mechanism.
[0022] Furthermore, in the judgment module, when sending SR-type A-stream services with time-sensitive characteristics to perform CQF test verification when the TSN switch link speed is different, the judgment logic is as follows: if the data delay situation fed back by the first sending port Tx1 is consistent with the port data rate situation and the gating scheduling strategy, then the CQF mechanism is determined to be effective in the cyclic interleaving scheme on the port with a higher data rate. Sending non-time-sensitive stream services to perform CQF tests with different TSN switch link speeds serves as a control group for sending time-sensitive stream services, showing the transmission of data traffic through ports at different speeds without a CQF mechanism.
[0023] The device of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the computer program, when loaded onto the processor, implements any one of the TSN switch circular queue test verification methods.
[0024] The present invention provides a storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, it implements any one of the TSN switch circular queue test and verification methods.
[0025] Beneficial Effects: Compared with existing technologies, this invention has the following significant advantages: It configures traffic for different types of services, sets gating scheduling strategies for TSN switches according to the same link speed (substation scenario) and different situations, and sends data to the receiving port of the TSN switch according to a preset port-based test traffic model. Based on the sent and received data, the effectiveness of the CQF mechanism's gating function for time-sensitive flows can be verified: on the outgoing port, one queue receives data, and another queue forwards buffered data; the two queues are transmitted in a periodic alternation manner. Traffic still queued when the selected transmission interval expires is discarded, thus achieving precise forwarding control of traffic and realizing collision-free, bounded low-latency transmission. Simultaneously, the effectiveness of the CQF mechanism's cyclic interleaving scheme on ports with higher data rates can also be verified. Attached Figure Description
[0026] Figure 1 This is a flowchart of the present invention; Figure 2 This is a schematic diagram of the CQF test verification method for TSN switches with the same link speed according to the present invention. Figure 3 This is a schematic diagram of the CQF test verification method for TSN switch link speeds of the present invention. Figure 4 This is the physical topology diagram for the implementation of the TSN switch circular queue test verification of the present invention; Figure 5 This is a flowchart of the CQF test and verification method for TSN switch link speeds under different networking environments according to the present invention. Detailed Implementation
[0027] The technical solution of the present invention will be further described below with reference to the accompanying drawings.
[0028] like Figure 1 As shown, this embodiment of the invention provides a TSN switch circular queue test verification method. If performing CQF test verification with the same link speed, the method includes the following steps: The network tester synchronizes with the TSN switch via IEEE 802.1 AS. It sets up a gating and scheduling strategy for the TSN switch according to a substation scenario, configures traffic for different types of services, and sends time-sensitive and non-time-sensitive flow services to the first receiving port Rx1 with different packet transmission delays. Based on the data delay feedback from the first sending port Tx1, the data transmission delay, and the preset judgment logic matching the test traffic model within the port, it performs a CQF mechanism gating function to determine the validity of time-sensitive flows. The receiving rate of the first receiving port Rx1 is equal to the sending rate of the first sending port Tx1.
[0029] The above method configures traffic for different types of services, sets gating scheduling policies for TSN switches with the same link speed (in substation scenarios), and sends data to the receiving port of the TSN switch according to the preset test traffic model within the port. Based on the sent and returned data, the effectiveness of the CQF mechanism gating function for time-sensitive flows can be effectively verified. This provides a simple and effective test verification method for the functional reliability and performance superiority of the CQF mechanism of industrial Ethernet switches using TSN technology.
[0030] In addition to testing CQF at the same link speed, the test also includes verification steps for CQF at different link speeds. Specifically, the network tester synchronizes with the TSN switch using IEEE 802.1 AS. Gating scheduling policies are set for the TSN switch according to different link speeds. Traffic configuration is performed for different types of services. Simultaneously, time-sensitive flow services and non-time-sensitive flow services are sent to the first receiving port Rx1 and the second receiving port Rx2, respectively. Based on the data latency feedback from the first sending port Tx1, the port data rate, and the preset judgment logic matching the test traffic model within the port, the effectiveness of the CQF mechanism's cyclic interleaving scheme on ports with higher data rates is determined. The receiving rates of the first receiving port Rx1 and the second receiving port Rx2 are lower than the sending rate of the first sending port Tx1.
[0031] Figure 2This is a schematic diagram of CQF testing when link speeds are the same, including gating and scheduling strategies for the receive and transmit ports. The gating list is set as follows: entry control for service class queue 2 (0~100μs) is on; entry control for service class queue 3 (100~200μs) is on; exit control for service class queue 3 (0~100μs) is on; exit control for service class queue 2 (100~200μs) is on; and 200~1000μs is shared by other non-time-sensitive flows. Time-sensitive flows do not have contention on the transmission channel and do not need to queue, so transmission delay and jitter can be determined.
[0032] Figure 3 This diagram illustrates the CQF test principle when link speeds differ, including the gating and scheduling strategies for the receiving and transmitting ports. Time-sensitive stream traffic received on the first receiving port Rx1 is sent to service class queue 7 during odd-numbered periods and to service class queue 6 during even-numbered periods. The period on the second receiving port Rx2 is offset by T / 2 relative to the period on the first receiving port Rx1. Time-sensitive stream traffic received on the second receiving port Rx2 is sent to service class queue 5 during odd-numbered periods and to service class queue 4 during even-numbered periods. On the first transmitting port Tx1, each queue is in the open state for T / 2 of the time and in the closed state for 3T / 2 of the time; only one service class queue is transmitting at any given time.
[0033] To implement the above method, it is necessary to construct, as follows: Figure 4 The structure shown includes a network tester and a TSN switch. The above method is mainly implemented in the network tester. The TSN switch in the figure uses two receiving ports Rx1 and Rx2, and one transmitting port Tx1.
[0034] Based on the above structure, testing and verification can be carried out. During testing and verification, business models can be used to configure different types of applications in different scenarios. The main businesses include time-sensitive SRF A streams and non-time-sensitive streams, denoted as Business 1 and Business 2, respectively. These two types of businesses can be configured using different business modules, as detailed below: The business module is configured as follows: Business 1: data packet length is less than 500 bytes, message type is Goose message, traffic priority is set to 3, and business 1 is used as test traffic.
[0035] The business module is configured with business 2: the data packet length is less than 1250 bytes, the message type is MMS message, the traffic priority is set to 3, and business 2 is used as the comparison traffic.
[0036] The above methods mainly include CQF test verification when the link speed is the same and CQF test verification when the link speed is different. When the link speed is the same, the CQF test verification takes the first receiving port Rx1 as an example and mainly detects the data delay fed back by the first transmitting port Tx1. When the link speed is different, the CQF test verification takes the first receiving port Rx1 and the second receiving port Rx2 as examples and mainly detects the data delay fed back by the first transmitting port Tx1.
[0037] When link speeds are the same, the CQF test verification method can be as follows: 1) The network tester and the TSN switch perform IEEE 802.1 AS synchronization on the first receiving port Rx1 of the switch.
[0038] 2) Configure traffic for different types of services according to the preset port test traffic model to simulate different types of applications in a substation scenario; For time-sensitive SSR-type A stream services, the data transmission rate is 100% of the port rate (1 Gbit / s), with packet transmission delays of 0, 50 μs, 100 μs, and 200 μs, respectively. For non-time-sensitive stream services, the data transmission rate is 100% of the port rate (1 Gbit / s), with packet transmission delays of 0, 50 μs, 100 μs, and 200 μs, respectively.
[0039] 3) Set the gate control cycle and gate control list according to the substation scenario: Typically, the uplink output of a switch in a substation is a gigabit interface, and a frame length of 1250 bytes can be transmitted in 10μs. Considering that the latency requirement for time-sensitive streams is less than 3ms, the gating period is set to 1ms. The gating list is set as follows: the entry control for business queue 2 (0~100μs) is enabled, the entry control for business queue 3 (100~200μs) is enabled, the exit control for business queue 3 (0~100μs) is enabled, the exit control for business queue 2 (100~200μs) is enabled, and the 200~1000μs period is shared by other non-time-sensitive streams.
[0040] 4) Different types of services are configured to send data to the first receiving port Rx1 respectively.
[0041] 5) Receive data fed back from the first transmitting port Tx1.
[0042] 6) Based on the data latency feedback from the first sending port Tx1, the data transmission latency, and the preset service matching judgment logic, perform the CQF mechanism gating function to determine the validity of time-sensitive streams; The judgment logic for testing and verifying the sending of SSR-type A stream services with time-sensitive characteristics is as follows: if the data delay situation reported by the first sending port Tx1 is consistent with the data delay situation and the gating scheduling policy, that is, packet sending delay 0μs, average traffic delay at Tx1 100μs, packet sending delay 50μs, average traffic delay at Tx1 50μs, packet sending delay 100μs, average traffic delay at Tx1 900μs, packet sending delay 200μs, and no packets are received at Tx1, then it is determined that the CQF mechanism gating function is effective for time-sensitive streams.
[0043] When performing CQF testing and verification at the same link speed, you can first disable the TSN function to verify the non-time-sensitive flow case as a reference, and then enable the TSN function to verify the time-sensitive flow case. Of course, the above order can be determined according to the actual situation.
[0044] The CQF test verification method can be as follows when link speeds are different: a) The network tester and the TSN switch perform IEEE 802.1 AS synchronization on the first receiving port Rx1 and the second receiving port Rx2 of the switch.
[0045] b) Configure traffic for different types of services according to the preset port in-port test traffic model to simulate different types of applications under different link speeds; The time-sensitive SSR class A stream sends data at 50% of the port rate (500 Mbit / s) with a packet transmission delay of 0; the non-time-sensitive stream sends data at 50% of the port rate (500 Mbit / s) with a packet transmission delay of 0.
[0046] c) Set the gating period and gating list: The gating period T should be selected according to the actual situation. It should be no less than the class measurement interval and an integer multiple of the class measurement interval to accommodate the stream data that can be received during the class measurement interval of the relevant stream.
[0047] Time-sensitive stream traffic received on the first receiving port Rx1 is sent to service class queue 7 during odd-numbered periods and to service class queue 6 during even-numbered periods. The period on the second receiving port Rx2 is offset by T / 2 relative to the period on the first receiving port Rx1. Time-sensitive stream traffic received on the second receiving port Rx2 is sent to service class queue 5 during odd-numbered periods and to service class queue 4 during even-numbered periods. On the first transmitting port Tx1, each queue is in the open state for T / 2 of the time and in the closed state for 3T / 2 of the time; only one service class queue is transmitting at any given time.
[0048] d) Different types of services are configured to send data to the first receiving port Rx1 and the second receiving port Rx2 simultaneously.
[0049] e) Receive data fed back from the first transmitting port Tx1.
[0050] f) Based on the data delay feedback from the first sending port Tx1, the port data rate, and the preset judgment logic matching the test traffic model within the port, determine the effectiveness of the CQF mechanism's cyclic interleaving scheme on ports with higher data rates. The judgment logic for testing and verifying the sending of SSR-type A stream services with time-sensitive characteristics is as follows: If the data delay reported by the first sending port Tx1 is consistent with the data delay of the sending port and the gating scheduling strategy, that is, the first sending port Tx1 transmits data from the first receiving port Rx1 and the second receiving port Rx2 in the same time according to the gating list order, and relative to the data delay time T of the first receiving port Rx1 and the second receiving port Rx2, it achieves interleaving on the faster port to maximize the use of the available higher bandwidth, then the scheme of cyclic interleaving on the port with higher data rate of the CQF mechanism is deemed to be effective.
[0051] When performing CQF testing and verification at different link speeds, you can first disable the TSN function to verify the non-time-sensitive flow case as a reference, and then enable the TSN function to verify the time-sensitive flow case. Of course, the above order can be determined according to the actual situation.
[0052] like Figure 5 This invention also provides a CQF test verification method for TSN switch link speeds differing in a network environment, including: CQF testing and verification were performed on three TSN switches with different link speeds. The network tester synchronized with the three TSN switches via IEEE 802.1 AS. Gating and scheduling policies were set for the TSN switches according to different link speeds, and traffic configurations were performed for different types of services. Data was sent to the first receiving port Rx1 and the second receiving port Rx2 of TSN switch 1 and TSN switch 2. Based on the data latency feedback from the first sending port Tx1 of TSN switch 3, the port data rate, and the preset judgment logic matching the test traffic model within the port, the effectiveness of the CQF mechanism's cyclic interleaving scheme on the port with the higher data rate was judged. The receiving rate of all first receiving ports Rx1 and second receiving ports Rx2 was 50% of the sending rate of the first sending port Tx1, and the sending rate of the first sending port Tx1 of TSN switch 1 and TSN switch 2 was equal to the receiving rate of the first receiving port Rx1 and the second receiving port Rx2 of TSN switch 3.
[0053] The above method configures traffic for different types of services, sets gating scheduling policies for TSN switches according to different link speeds, and sends data to the receiving port of the TSN switch according to a preset test traffic model within the port. Based on the sent and returned data, the effectiveness of the CQF mechanism in the cyclic interleaving scheme on ports with higher data rates can be effectively verified. This provides a simple and practical test and verification method for the functional reliability and performance superiority of the CQF mechanism of industrial Ethernet switches using TSN technology.
[0054] To implement the above method, a structure needs to be built, including a network tester and three TSN switches. The above method is mainly implemented on the network tester. Each TSN switch uses two receive ports Rx1 and Rx2 and one transmit port Tx1.
[0055] Based on the above structure, testing and verification can be carried out. During testing and verification, different types of application services can be configured using the business model. The services mainly include SSR-type A streams with time-sensitive characteristics and non-time-sensitive streams, with the traffic priority set to 3 for both.
[0056] In a network environment, the CQF test verification method can be used when link speeds are different as follows: S1) The network tester and three TSN switches perform IEEE 802.1 AS synchronization on the first receiving port Rx1 and the second receiving port Rx2 of the switches.
[0057] S2) Configure traffic for different types of services to simulate different types of applications. The services mainly include time-sensitive SR-type A streams and non-time-sensitive streams. Time-sensitive SR class A flow packets are less than 500 bytes long, use the Goose message type, have a traffic priority of 3, a data transmission rate of 25% of the port rate (250 Mbit / s), and a packet transmission delay of 0. Non-time-sensitive flow packets are less than 1250 bytes long, use the MMS message type, have a traffic priority of 3, a data transmission rate of 25% of the port rate (250 Mbit / s), and a packet transmission delay of 0.
[0058] S3) Set the gate control period and gate control list: TSN switch 1 and TSN switch 2 should select the gating period T according to the actual situation. It should not be less than the class measurement interval and should be an integer multiple of the class measurement interval to accommodate the flow data that can be received during the class measurement interval of the relevant flow.
[0059] Time-sensitive flow traffic received on the first receive port Rx1 of TSN switch 1 and TSN switch 2 is sent to service class queue 7 during odd-numbered periods and to service class queue 6 during even-numbered periods. The period on the second receive port Rx2 is offset by T / 2 relative to the period on the first receive port Rx1. Time-sensitive flow traffic received on the second receive port Rx2 is sent to service class queue 5 during odd-numbered periods and to service class queue 4 during even-numbered periods. On the first transmit port Tx1, each queue is in the open state for T / 2 of the time and in the closed state for 3T / 2 of the time; only one service class queue is transmitting at any given time.
[0060] The gating scheduling strategy of TSN switch 3 is the same as that of TSN switch 1 and TSN switch 2, with a period T'=T / 2.
[0061] S4) Different types of traffic configurations send data simultaneously to the first receiving port Rx1 and the second receiving port Rx2 of TSN switch 1 and TSN switch 2 respectively.
[0062] S5) Receive data fed back from the first transmitting port Tx1 of TSN switch 3.
[0063] S6) Based on the data delay, port data rate, and preset judgment logic matching the test traffic model within the port, the effectiveness of the CQF mechanism's cyclic interleaving scheme on ports with higher data rates is judged. The judgment logic for testing and verifying the transmission of time-sensitive SSR-type A-stream services is as follows: If the data delay reported by the first transmitting port Tx1 of TSN switch 3 is consistent with the data transmission delay and the gating scheduling policy, that is, the first transmitting port Tx1 of each TSN switch transmits data from the first receiving port Rx1 and the second receiving port Rx2 in the same time according to the gating list order, and the data delay time of TSN switch 3 is T / 2, realizing interleaving on faster ports and maximizing the use of available higher bandwidth, then the scheme of cyclic interleaving of the CQF mechanism on ports with higher data rates is deemed effective.
[0064] When performing CQF testing and verification under different link speeds in a network environment, you can first disable the TSN function to verify the non-time-sensitive flow situation as a reference, and then enable the TSN function to verify the time-sensitive flow situation. Of course, the above order can be determined according to the actual situation.
[0065] This invention also provides a TSN switch circular queue test verification system, which performs CQF test verification when TSN switch link speeds are the same, including: Device initialization module: Used for IEEE 802.1 AS synchronization between the network tester and the TSN switch, setting gating and scheduling policies for the TSN switch according to the substation scenario, and configuring traffic for different types of services; the gating and scheduling policy is the scheduling policy when the TSN switch link speed is the same; services include: time-sensitive SSR class A flow and non-time-sensitive flow; the preset port test traffic model is the CQF test model when the TSN switch link speed is the same; the specific scheduling policy when the TSN switch link speed is the same is: the gating period is set to 10kμs, the gating list is set as follows: the entry control of service class queue 2 in the 0~kμs range is open, the entry control of service class queue 3 in the k~2kμs range is open, the exit control of service class queue 3 in the 0~kμs range is open, the exit control of service class queue 2 in the k~2kμs range is open, and the 2k~10kμs range is shared by other non-time-sensitive flows; time-sensitive flows do not have contention on the transmission channel and do not need to queue, so the transmission delay and jitter can be determined.
[0066] Sending module: Used by the network tester to send time-sensitive flow services and non-time-sensitive flow services to the first receiving port Rx1 of the TSN switch according to different packet sending delays; SR class A flow service with time-sensitive characteristics: data packet length is less than 500 bytes, message type is Goose message, and traffic priority is set to 3; Non-time-sensitive flow services: data packet length is less than 1250 bytes, message type is MMS message, and traffic priority is set to 3.
[0067] Judgment and verification module: The network tester uses the data latency feedback from the first transmitting port Tx1 of the TSN switch, the data transmission latency, and the preset judgment logic that matches the test traffic model within the port to perform the CQF mechanism gating function to determine the validity of time-sensitive flows; wherein, the receiving rate of the first receiving port Rx1 is equal to the sending rate of the first transmitting port Tx1. When sending time-sensitive SR-type A-flow services for CQF testing with the same TSN switch link speed, the judgment logic is as follows: if the data latency reported by the first sending port Tx1 is consistent with the data latency and gating policy, then the CQF gating function is deemed effective for time-sensitive flows. The CQF test model configures traffic for different types of services when the TSN switch link speed is the same: for time-sensitive SR-type A-flow services, the data transmission rate is 100% of the port rate, with packet transmission latencies of 0, k / 2μs, kμs, and 2kμs respectively; for non-time-sensitive flow services, the data transmission rate is 100% of the port rate, with packet transmission latencies of 0, k / 2μs, kμs, and 2kμs respectively. Sending non-time-sensitive stream services for CQF testing and verification with the same TSN switch link speed serves as a control group for sending time-sensitive stream services, showing the transmission of data traffic with different packet transmission delays when there is no CQF mechanism.
[0068] This invention also provides a TSN switch circular queue test verification system, which performs CQF test verification when TSN switch link speeds are different, including... Device initialization module: Used for IEEE 802.1 AS synchronization between the network tester and the TSN switch, setting gating scheduling policies for the TSN switch according to different link speeds, and configuring traffic for different types of services. The gating scheduling policy is the scheduling policy under different TSN switch link speeds. Services include: time-sensitive SSR class A flows and non-time-sensitive flows. The preset port in-port test traffic model is the CQF test model under different TSN switch link speeds. The specific scheduling policy under different TSN switch link speeds is as follows: Select the gating period T according to the actual situation. Time-sensitive flow services received on the first receiving port Rx1 are sent to service class queue 7 during odd periods and to service class queue 6 during even periods. The period on the second receiving port Rx2 is offset by T / 2 relative to the period on the first receiving port Rx1. Time-sensitive flow services received on the second receiving port Rx2 are sent to service class queue 5 during odd periods and to service class queue 4 during even periods. On the first transmission port Tx1, each queue is in the Open state for T / 2 of the time and in the Close state for 3T / 2 of the time. At any given time, only one service class queue is transmitting.
[0069] The sending module is used to simultaneously send time-sensitive flow services and non-time-sensitive flow services to the first receiving port Rx1 and the second receiving port Rx2, respectively, using the network tester; the traffic model configures traffic for different types of services, including: The CQF test model configures traffic for different types of services when the TSN switch link speed is different: for time-sensitive SR class A flow services, the data transmission rate is 50% of the port rate and the packet transmission delay is 0; for non-time-sensitive flow services, the data transmission rate is 50% of the port rate (500Mbit / s) and the packet transmission delay is 0.
[0070] The judgment and verification module is used to determine the effectiveness of the CQF mechanism's cyclic interleaving scheme on ports with higher data rates based on the data latency feedback from the first transmitting port Tx1, the port data rate, and a preset judgment logic that matches the test traffic model within the port. The receiving rates of the first receiving port Rx and the second receiving port Rx2 are lower than the transmitting rate of the first transmitting port Tx1. When sending time-sensitive SR-class A stream services for CQF testing and verification at different TSN switch link speeds, the judgment logic is as follows: if the data latency feedback from the first transmitting port Tx1 is consistent with the port data rate and the gating scheduling policy, then the cyclic interleaving scheme of the CQF mechanism on ports with higher data rates is deemed effective. Sending non-time-sensitive stream services to perform CQF tests with different TSN switch link speeds serves as a control group for sending time-sensitive stream services, showing the transmission of data traffic through ports at different speeds without a CQF mechanism.
[0071] This invention also provides a device including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded onto the processor, it implements any of the TSN switch circular queue test verification methods described in the invention.
[0072] This invention also provides a storage medium storing a computer program, which, when executed by a processor, implements any of the TSN switch circular queue test verification methods described in the present invention.
[0073] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The solutions in the embodiments of this application can be implemented in various computer languages, such as the object-oriented programming language Java and the interpreted scripting language JavaScript.
[0074] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0075] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0076] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0077] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0078] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for testing and verifying the circular queue of a TSN switch, characterized in that, CQF testing verification with TSN switch link speeds being the same includes the following steps: Device initialization includes IEEE 802.1 AS synchronization between the network tester and the TSN switch, setting a gating and scheduling policy for the TSN switch, and configuring traffic for different types of services. The gating and scheduling policy is the same as the TSN switch link speed. Specifically, the gating period is set to 10kμs, and the gating list is set as follows: the entry gate for service queue 2 (0~kμs) is enabled, the entry gate for service queue 3 (k~2kμs) is enabled, the exit gate for service queue 3 (0~kμs) is enabled, the exit gate for service queue 2 (k~2kμs) is enabled, and other non-time-sensitive flows are sent according to traffic priority (2k~10kμs). On the first transmission port Tx1, service queues 2 and 3 alternately perform data reception and forwarding operations, and the two queues transmit in a periodic alternation manner. Time-sensitive flows do not have contention on the transmission channel and do not need to queue, so the transmission delay and jitter are deterministic. The network tester sends data to the TSN switch: The network tester sends time-sensitive flow services and non-time-sensitive flow services to the first receiving port Rx1 of the TSN switch according to the configured delay. The network tester compares and matches the data latency feedback from the first sending port Tx1 of the TSN switch and the data transmission latency with the preset test traffic model within the port, and then determines whether the gating function of the CQF mechanism is effective for time-sensitive flows. Specifically, the same link speed for TSN switches means that the receiving rate of the first receiving port Rx1 is equal to the sending rate of the first sending port Tx1.
2. The TSN switch circular queue test and verification method according to claim 1, characterized in that, The network tester sends time-sensitive SR class A streams and non-time-sensitive streams to the first receiving port Rx1 of the TSN switch according to the data transmission latency. The preset test traffic model within the port is the CQF test model when the receiving rate of the first receiving port Rx1 is equal to the sending rate of the first sending port Tx1.
3. The TSN switch circular queue test and verification method according to claim 2, characterized in that, The time-sensitive SR-class A-flow service is defined as follows: data packet length is less than 500 bytes, message type is Goose message, and traffic priority is set to 3. Non-time-sensitive flow services are defined as follows: data packet length is less than 1250 bytes, message type is MMS message, and traffic priority is set to 3.
4. The TSN switch circular queue test and verification method according to claim 2, characterized in that, The CQF test model judgment logic is as follows: if the data delay feedback from the first sending port Tx1 matches the preset test traffic model within the port, then the CQF mechanism gating function is determined to be effective for time-sensitive flows. Sending non-time-sensitive stream services serves as a control group for sending time-sensitive stream services, demonstrating the transmission of data traffic with different packet transmission delays when there is no CQF mechanism.
5. A method for testing and verifying the circular queue of a TSN switch, characterized in that, When the receiving rate of the first receiving port Rx1 is different from the transmitting rate of the first transmitting port Tx1, the CQF test verification includes the following steps: Device initialization includes IEEE 802.1 AS synchronization between the network tester and the TSN switch, setting gating and scheduling policies for the TSN switch, and configuring traffic for different types of services. The gating and scheduling policy is a scheduling policy for different TSN switch link speeds. Specifically, the gating period T is selected according to the actual situation. Time-sensitive flow services received on the first receiving port Rx1 are sent to service class queue 7 during the period T~3T / 2 and to service class queue 6 during the period 0~T / 2. The period on the second receiving port Rx2 is offset by T / 2 relative to the period on the first receiving port Rx1. Time-sensitive flow services received on the second receiving port Rx2 are sent to service class queue 5 during the period 3T / 2~2T and to service class queue 4 during the period T / 2~T. On the first transmitting port Tx1, each queue is in the open state for T / 2 time and in the closed state for 3T / 2 time. Only one service class queue is transmitting at any given time. The network tester sends data to the TSN switch: The network tester simultaneously sends time-sensitive flow services and non-time-sensitive flow services to the first receiving port Rx1 and the second receiving port Rx2. The network tester compares and matches the data latency feedback from the first transmitting port Tx1, the data rate feedback from the second receiving port Rx2, and a preset in-port test traffic model to determine the effectiveness of the cyclic interleaving scheme of the CQF mechanism gating function. Specifically, the receiving rates of the first receiving port Rx1 and the second receiving port Rx2 are less than the transmitting rate of the first transmitting port Tx1. The preset in-port test traffic model is a CQF test model where the receiving rate of the first receiving port Rx1 is different from the transmitting rate of the first transmitting port Tx1. The CQF test model judgment logic is: if the data latency feedback from the first transmitting port Tx1 and the port data rate are consistent with the preset in-port test traffic model, then the cyclic interleaving scheme is deemed effective. Sending non-time-sensitive stream services serves as a control group for sending time-sensitive stream services, showing the transmission of data traffic through different rate ports without a CQF mechanism.
6. The TSN switch circular queue test and verification method according to claim 5, characterized in that, Traffic configuration is applied to different types of services, including: for time-sensitive SSR-type A stream services, the data transmission rate is set to 50% of the port rate, and the packet transmission latency is 0; for non-time-sensitive stream services, the data transmission rate is set to 50% of the port rate, and the packet transmission latency is 0.
7. A TSN switch circular queue test and verification system, characterized in that, CQF testing verification was performed when TSN switch link speeds were the same, including: Device initialization module: Used for IEEE 802.1 communication between the network tester and the TSN switch. AS synchronization and gating scheduling policies are set for TSN switches to configure traffic for different types of services. The gating scheduling policy is the same as the TSN switch link speed. Specifically, the gating period is set to 10kμs, and the gating list is set as follows: the entry control for service queue 2 (0~kμs) is enabled, the entry control for service queue 3 (k~2kμs) is enabled, the exit control for service queue 3 (0~kμs) is enabled, the exit control for service queue 2 (k~2kμs) is enabled, and other non-time-sensitive flows are sent according to traffic priority (2k~10kμs). On the first sending port Tx1, one queue receives data, and the other queue forwards buffered data. The two queues are transmitted in a periodic alternation manner. Time-sensitive flows do not have contention on the transmission channel and do not need to queue. The transmission delay and jitter are deterministic. Specifically, the same TSN switch link speed means that the receiving rate of the first receiving port Rx1 is equal to the sending rate of the first sending port Tx1. Sending module: Used for the network tester to send data to the TSN switch: The network tester sends time-sensitive flow services and non-time-sensitive flow services to the first receiving port Rx1 of the TSN switch according to the data transmission delay. Judgment and verification module: The network tester compares and matches the data latency feedback from the first sending port Tx1 of the TSN switch and the data transmission latency with the preset test traffic model within the port, and then determines whether the gating function of the CQF mechanism is effective for time-sensitive flows.
8. The TSN switch circular queue test and verification system according to claim 7, characterized in that, In the device initialization module, the network tester sends time-sensitive SR class A streams and non-time-sensitive streams to the first receiving port Rx1 of the TSN switch according to the data transmission delay. The preset port test traffic model is the CQF test model when the receiving rate of the first receiving port Rx1 is equal to the sending rate of the first sending port Tx1.
9. A TSN switch circular queue test and verification system according to claim 8, characterized in that, In the sending module, the SR-type A-flow service with time-sensitive characteristics is: the data packet length is less than 500 bytes, the message type is Goose message, and the traffic priority is set to 3; Non-time-sensitive flow services are defined as follows: data packet length is less than 1250 bytes, message type is MMS message, and traffic priority is set to 3.
10. A TSN switch circular queue test and verification system according to claim 8, characterized in that, In the judgment and verification module, the judgment logic of the CQF test model is as follows: if the data delay situation fed back by the first sending port Tx1 matches the preset test traffic model within the port, then the CQF mechanism gating function is determined to be effective for time-sensitive flows. Sending non-time-sensitive stream services serves as a control group for sending time-sensitive stream services, demonstrating the transmission of data traffic with different packet transmission delays when there is no CQF mechanism.
11. A TSN switch circular queue test and verification system, characterized in that, CQF testing was conducted to verify the different link speeds of TSN switches, including... Device initialization module: Used for device initialization, including IEEE 802.1 AS synchronization between the network tester and the TSN switch, setting gating and scheduling policies for the TSN switch, and configuring traffic for different types of services. The gating and scheduling policy is a scheduling policy for different TSN switch link speeds. Specifically, the gating period T is selected according to the actual situation. Time-sensitive flow services received on the first receiving port Rx1 are sent to service class queue 7 during the period from T to 3T / 2, and sent to service class queue 6 during the period from 0 to T / 2. The period on the second receiving port Rx2 is offset by T / 2 relative to the period on the first receiving port Rx1. Time-sensitive flow services received on the second receiving port Rx2 are sent to service class queue 5 during the period from 3T / 2 to 2T, and sent to service class queue 4 during the period from T / 2 to T. On the first transmission port Tx1, each queue gate is in the Open state for T / 2 hours and in the Close state for 3T / 2 hours. At any given time, only one service class queue is transmitting. Sending module: Used for the network tester to send data to the TSN switch: The network tester simultaneously sends time-sensitive flow services and non-time-sensitive flow services to the first receiving port Rx1 and the second receiving port Rx2; Verification Module: The network tester compares and matches the data latency feedback from the first transmitting port Tx1, the data rate feedback from the second receiving port Rx2, and a preset in-port test traffic model to determine whether the cyclic interleaving scheme of the CQF mechanism gated function is effective. Specifically, the receiving rates of the first receiving port Rx1 and the second receiving port Rx2 are less than the transmitting rate of the first transmitting port Tx1. The preset in-port test traffic model is a CQF test model where the receiving rate of the first receiving port Rx1 is different from the transmitting rate of the first transmitting port Tx1. The CQF test model judgment logic is: if the data latency feedback from the first transmitting port Tx1 and the port data rate are consistent with the preset in-port test traffic model, then the cyclic interleaving scheme is deemed effective. Sending non-time-sensitive stream services serves as a control group for sending time-sensitive stream services, showing the transmission of data traffic through different rate ports without a CQF mechanism.
12. The TSN switch circular queue test and verification system according to claim 11, characterized in that, In the sending module, traffic configuration is performed for different types of services, including: for time-sensitive SSR-type A stream services, the data sending rate is 50% of the port rate and the packet sending latency is 0; for non-time-sensitive stream services, the data sending rate is 50% of the port rate and the packet sending latency is 0.
13. An apparatus comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the computer program is loaded into the processor, it implements a TSN switch circular queue test and verification method according to any one of claims 1-6.
14. A storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements a TSN switch circular queue test and verification method according to any one of claims 1-6.
Citation Information
Patent Citations
Flow shaping test method, system, equipment and medium
CN115277519A
Switch security test method for time-sensitive network
CN115967644A