Method for realizing automatic configuration of gating parameters of time-sensitive equipment
Automatically constructing the network topology and adjusting the gate time through the TSN controller, solving the difficulty of manually configuring gate parameters in the TSN network, realizing automatic configuration, and improving the stability and reliability of the network.
Patent Information
- Application Number
- CN202510767936.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-10
- Publication Date
- 2025-08-12
AI Technical Summary
In the TSN network, the calculation and configuration of gate start-up and shutdown times between each TSN switch device specified in the 802.1Qbv protocol cannot achieve automatic planning and calculation, resulting in a large amount of network administrator configuration work and prone to abnormalities, affecting the stability and reliability of the network.
The interconnection relationship with the switching device is determined through the TSN controller, the port neighbor information is obtained to build a network topology, the traffic information is counted, and the gate time is adjusted according to the forwarding delay, without manually configuring the Qbv protocol parameters, and automatic configuration is achieved.
It reduces the configuration workload of network administrators, reduces the possibility of network failure caused by configuration abnormalities, and improves the transmission reliability and stability of TSN networks.
Smart Images

Figure CN120474908A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computer networks, and in particular relates to a method for automatically configuring gating parameters of a time-sensitive device. Background Art
[0002] With the advancement of industrial automation technology, sensor data (such as temperature, humidity, pressure, and position) and control instructions in robotic control, intelligent manufacturing, and distributed control systems must be transmitted extremely quickly to ensure system stability and efficiency. Traditional commercial Ethernet protocols (such as IEEE 802.3), while fast, lack deterministic latency guarantees. In industrial environments, data packets can be delayed due to network congestion, preventing control signals from reaching equipment in a timely manner, potentially leading to production failures or safety hazards.
[0003] 802.1Qbv, defined in Time-Sensitive Networking (TSN), uses time-sensitive shaping technology to reserve dedicated bandwidth and transmission time slots for mission-critical traffic in Ethernet networks, ensuring that such traffic can be transmitted within fixed time intervals. This enables industrial automation systems to achieve higher real-time performance and reliability.
[0004] 802.1Qbv specifies methods for opening and closing transmission queues. Between TSN switching devices, the forwarding delay and link transmission delay at each node during data transmission must be considered. Different TSN switching device data traffic flows result in different data packet forwarding delays. When a TSN network contains a large number of TSN switching devices, the network topology is complex, and critical service transmission paths and the number of TSN switching devices involved in transmission are numerous, manual calculation and configuration of gating parameters on each TSN switching device becomes extremely difficult. Inappropriate or incorrect parameter configurations can lead to increased uncertainty in critical service transmission times and, under high traffic conditions, packet loss in critical service data packets. Summary of the Invention
[0005] This invention provides a method for automatically configuring gating parameters for time-sensitive devices. This method addresses the problem of automated planning and calculation of the gate activation and deactivation times between TSN switching devices, as specified by the 802.1Qbv protocol, in TSN networks. This method eliminates the need for network administrators to manually configure Qbv protocol gating parameters for TSN switching devices, reducing their configuration workload and lowering the likelihood of network failures caused by configuration anomalies.
[0006] To achieve the above object, the technical solution adopted by the present invention is:
[0007] A method for automatically configuring gating parameters of a time-sensitive device comprises the following steps:
[0008] (1) Determine the interconnection relationship between the TSN controller and the TSN switching equipment;
[0009] (2) The TSN controller communicates with all TSN switching devices in the TSN network through the TSN management dedicated channel and obtains the port neighbor information of each TSN switching device. Then, the TSN controller builds the full network topology of the current TSN switching network.
[0010] (3) The TSN controller obtains the information of each TSN switching device in the current TSN switching network through the TSN management dedicated channel;
[0011] (4) The TSN controller calculates the cycle time of all traffic based on the pre-set traffic information; and calculates the total traffic information of all devices in the current network based on the known data flow sending cycle; and then consults the TSN switch device data forwarding delay table based on the traffic information to obtain the forwarding delay of each data flow between each TSN switch device;
[0012] (5) The TSN controller adjusts the forwarding path of the data flow between different TSN switching devices and adjusts the gate opening and closing time according to the forwarding path and forwarding delay of each data flow between TSN switching devices and the link transmission delay.
[0013] Preferably, in step (3), the TSN switching device information mainly includes two aspects of information, namely, the TSN core service switching chip model and the data packet forwarding delay time table of the current TSN switching device.
[0014] Preferably, in step (3), when the TSN controller fails to obtain the TSN switching device information,
[0015] If only the TSN core business switching chip model is obtained, the TSN switching device data forwarding delay table is automatically constructed using the delay time preset by the core switching chip;
[0016] If no information is obtained, the default TSN switching device data forwarding delay table pre-stored in the TSN controller is used as the delay forwarding table of the device.
[0017] Preferably, in step (3), in the TSN switching device information obtained by the TSN controller,
[0018] The highest priority is the TSN switching device data forwarding delay table. When the device has this table, the TSN controller will give priority to using the contents of this data table.
[0019] The second highest priority is the core business chip model of the TSN switching device. The forwarding delay information of the service message is determined by the switching core business chip. The TSN controller stores the commonly used TSN core business handover chip delay forwarding table. When the TSN controller cannot obtain the switching device data forwarding delay table in the TSN switching device, but can obtain the core business chip model in the TSN switching device, the TSN controller uses the switching device data forwarding delay table of the corresponding chip stored in the controller itself as the switching device data forwarding delay table of the TSN switching device;
[0020] When the TSN controller cannot obtain TSN switching information or the obtained TSN switching information does not contain a switching device data forwarding delay table, or the TSN control has no matching TSN core business chip model, the TSN controller uses the default switching device data forwarding delay table. The default switching device data forwarding delay table time is 2 to 3 times the commonly used TSN core business chip forwarding time.
[0021] Preferably, in step (5), the TSN controller calculates the gate opening and closing time according to the duration of the service flow and the forwarding delay between TSN switching devices and automatically sends the time parameters to the TSN switching devices.
[0022] Preferably, step (4) comprises,
[0023] (4.1) In a TSN network, the data traffic flows of various terminals are known traffic flows. That is, the length, transmission time, and transmission cycle of the data packets are clearly known. Based on the characteristics of the data packets, the flow rate of each traffic flow can be calculated. Based on the cycle time of the packets, the cycle transition time of the gating control is determined.
[0024] (4.2) According to the reference values in the data forwarding delay table of the switching device, find out the minimum forwarding time Ttmin and the maximum forwarding time Ttmax of the core business flow on a single TSN switching device.
[0025] Preferably, step (5) comprises,
[0026] (5.1) The TSN controller obtains the TSN switching devices that the key data flows pass through in sequence based on the network topology information. Based on the order of the TSN switching devices, it extracts the minimum forwarding time Ttmin and Ttmax of the TSN switching devices on the corresponding links.
[0027] (5.2) The TSN controller calculates the earliest arrival time Trx_min as the earliest sending time + minimum forwarding delay, and calculates the latest arrival time Trx_max as the latest sending time + maximum forwarding delay;
[0028] (5.3) The TSN controller calculates the gate opening time of the current TSN switch device as the earliest arrival time Trx_min of the critical service flow, and the gate duration is the time difference between the latest arrival time Trx_max and the earliest arrival time Trx_min;
[0029] (5.4) The TSN controller sends the calculated gate opening time and gate duration to each TSN switching device.
[0030] Compared with the prior art, the present invention has the following advantages:
[0031] The present invention only requires the TSN controller to obtain the neighbor information of each TSN switching device in the current TSN network and the TSN switching device data forwarding delay table to automatically construct the current TSN network topology information, and automatically calculate and configure the gating time of key business data on different switching devices based on the parameter information in the switching device data forwarding delay table. Through this method, the network administrator does not need to manually configure the Qbv protocol gating parameters of the TSN switching device, which not only reduces the network administrator's configuration workload and thus reduces the possibility of network failures caused by configuration anomalies; it also effectively reduces the complexity of TSN switching device configuration and greatly improves the transmission reliability and stability of key data in the TSN network. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 Key data transmission topology diagram for TSN controller and TSN switching equipment;
[0033] Figure 2 Build a TSN switching network diagram for TSN network management;
[0034] Figure 3 The flowchart for constructing the data forwarding delay table of the switching device. DETAILED DESCRIPTION
[0035] In order to make the objects and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0036] The present invention provides a method for automatically configuring the gate control parameters of time-sensitive devices. This method can realize the automatic configuration of the gate start and close time defined by the QBV protocol on the key data transmission path in a network composed of TSN switching devices. The specific implementation process is as follows: Figure 1 As shown in the figure, a network topology diagram is constructed. Assume that a set of critical data needs to be transmitted from TSN1 to TSN4 device, passing through two TSN switching devices, TSN2 and TSN3.
[0037] Step (1) determines the interconnection relationship between the TSN switching device controller and the TSN switching device. The TSN switching device controller accesses the TSN switching network through the TSN network service line, and the TSN switching device controller realizes the interconnection connection with all devices in the TSN switching network through a dedicated management VLAN channel. The network topology diagram obtained by the TSN switching device controller is as follows Figure 1 shown.
[0038] Step (2): After the TSN controller is connected to the TSN network, the TSN controller communicates with all TSN switching devices in the TSN network through the TSN management dedicated channel and obtains the port neighbor information of each TSN switching device. The TSN controller device builds the full network topology of the current TSN switching network. Figure 2 The figure shows a schematic diagram of a TSN switching network built by a TSN network manager.
[0039] Step (3), the TSN switching device controller obtains the information of each TSN switching device in the current TSN switching network through the TSN management dedicated channel. The TSN switching device information mainly includes two aspects of information: the TSN core business switching chip model and the data packet forwarding delay table of the current TSN switching device. The construction process of the switching device data forwarding delay table is as follows: Figure 3 The contents of the switching device data forwarding delay table are shown in Table 1 below:
[0040] Table 1 Data forwarding delay of TSN switching equipment
[0041]
[0042] Assuming that TSN1 and TSN2 devices use the same core service forwarding chip, the switching device data forwarding delay tables of the TSN switching devices are consistent.
[0043] Assuming that TSN3-TSN4 devices do not store core service forwarding chip information and switch device data forwarding delay table, TSN control uses the default delay forwarding table. The data table is shown in Table 2 below:
[0044] Table 2. Data forwarding delay of TSN controller default storage switching equipment
[0045]
[0046] Step (4): In the TSN network, the traffic between each terminal device is a known data traffic. The TSN controller calculates the cycle time of all traffic based on the pre-set traffic information. The total traffic information of all devices in the current network is calculated based on the known data flow transmission cycle. Based on the traffic information, the data forwarding delay table of the TSN switching device is consulted to obtain the forwarding delay of each data flow between each TSN switching device.
[0047] In step (4.1), assume that the core business data to be transmitted over the TSN network is 200 bytes long and transmitted once every 1 millisecond. The data flow is 200*8*1000=1600Kbps=1.6Mbps, which is approximately 0.16% of the total bandwidth of 1000Mbps. Service message forwarding can also use a link load percentage of 10. The data message length is 256 bytes. On TSN1 and TSN2 devices, the maximum forwarding delay is 6.6us per row of data. The minimum delay using the previous level packet method is 5.0us.
[0048] In step (4.2), on TSN3 and TSN4 devices, since there is no TSN switch device data forwarding delay table, the TSN controller uses the default representation value stored in its memory, with a minimum forwarding delay of 2.5us and a maximum forwarding delay of 13.2us.
[0049] Step (5): After determining the forwarding delay parameters of TSN1 to TSN4 devices based on the key business data flow, the earliest arrival time and the latest arrival time of the data flow after passing through each node can be calculated.
[0050] Step (5.1), the earliest arrival time is the earliest sending time + the minimum forwarding delay.
[0051] Step (5.2), the latest arrival time is the latest sending time + maximum forwarding delay.
[0052] In step (5.3), the gate opening time is the earliest arrival time.
[0053] In step (5.4), the gate duration is the time difference between the latest arrival time and the earliest arrival time.
[0054] After the time parameters of each TSN1 to TSN4 device are determined in step (4), the gate start time and gate duration information table of the TSN1 to TSN4 devices can be automatically calculated inside the TSN controller, as shown in Table 3:
[0055] Table 3 TSN controller calculation of gate start and gate duration
[0056]
[0057] Step (5.5): After the TSN controller calculates the gate start time and gate duration of each TSN switching device, it sends the information to each designated TSN switching device through the VLAN management channel.
[0058] Through the above process, critical data can be transmitted in the TSN switching network. By setting the independent gated on-time of different devices, the transmission control of critical business data with deterministic delay can be achieved.
[0059] The above embodiments are only specific examples to further illustrate the purpose, technical solutions and beneficial effects of the present invention, and the present invention is not limited thereto. Any modifications, equivalent replacements, improvements, etc. made within the scope of the disclosure of the present invention are included in the scope of protection of the present invention.
Claims
1. A method for automatically configuring gating parameters of a time-sensitive device, characterized by: The following steps are involved: (1) Determine the interconnection relationship between the TSN controller and the TSN switching equipment; (2) The TSN controller communicates with all TSN switching devices in the TSN network through the TSN management dedicated channel and obtains the port neighbor information of each TSN switching device. Then, the TSN controller builds the full network topology of the current TSN switching network. (3) The TSN controller obtains the information of each TSN switching device in the current TSN switching network through the TSN management dedicated channel; (4) The TSN controller calculates the cycle time of all traffic based on the pre-set traffic information; and calculates the total traffic information of all devices in the current network based on the known data flow sending cycle; and then consults the TSN switch device data forwarding delay table based on the traffic information to obtain the forwarding delay of each data flow between each TSN switch device; (5) The TSN controller adjusts the forwarding path of the data flow between different TSN switching devices and adjusts the gate opening and closing time according to the forwarding path and forwarding delay of each data flow between TSN switching devices and the link transmission delay.
2. The method for automatically configuring gating parameters of a time-sensitive device according to claim 1, characterized in that: In step (3), the TSN switching device information mainly includes two aspects of information, namely, the TSN core business switching chip model and the data packet forwarding delay time table of the current TSN switching device.
3. The method for automatically configuring gating parameters of a time-sensitive device according to claim 1, characterized in that: In step (3), when the TSN controller fails to obtain the TSN switching device information, If only the TSN core business switching chip model is obtained, the TSN switching device data forwarding delay table is automatically constructed using the delay time preset by the core switching chip; If no information is obtained, the default TSN switching device data forwarding delay table pre-stored in the TSN controller is used as the delay forwarding table of the device.
4. The method for automatically configuring gating parameters of a time-sensitive device according to claim 1, characterized in that: In step (3), in the TSN switching device information obtained by the TSN controller, The highest priority is the TSN switching device data forwarding delay table. When the device has this table, the TSN controller will give priority to using the contents of this data table. The second highest priority is the core business chip model of the TSN switching device. The forwarding delay information of the service message is determined by the switching core business chip. The TSN controller stores the commonly used TSN core business handover chip delay forwarding table. When the TSN controller cannot obtain the switching device data forwarding delay table in the TSN switching device, but can obtain the core business chip model in the TSN switching device, the TSN controller uses the switching device data forwarding delay table of the corresponding chip stored in the controller itself as the switching device data forwarding delay table of the TSN switching device; When the TSN controller cannot obtain TSN switching information or the obtained TSN switching information does not contain a switching device data forwarding delay table, or the TSN control has no matching TSN core business chip model, the TSN controller uses the default switching device data forwarding delay table. The default switching device data forwarding delay table time is 2 to 3 times the commonly used TSN core business chip forwarding time.
5. The method for automatically configuring gating parameters of a time-sensitive device according to claim 1, characterized in that: In step (5), the TSN controller calculates the gate opening and closing time according to the duration of the service flow and the forwarding delay between TSN switching devices and automatically sends the time parameters to the TSN switching devices.
6. The method for automatically configuring gating parameters of a time-sensitive device according to claim 1, characterized in that: Step (4) comprises, (4.1) In a TSN network, the data traffic flows of various terminals are known traffic flows. That is, the length, transmission time, and transmission cycle of the data packets are clearly known. Based on the characteristics of the data packets, the flow rate of each traffic flow can be calculated. Based on the cycle time of the packets, the cycle transition time of the gating control is determined. (4.2) According to the reference values in the data forwarding delay table of the switching device, find out the minimum forwarding time Ttmin and the maximum forwarding time Ttmax of the core business flow on a single TSN switching device.
7. The method for automatically configuring gating parameters of a time-sensitive device according to claim 1, characterized in that: Step (5) includes, (5.1) The TSN controller obtains the TSN switching devices that the key data flows pass through in sequence based on the network topology information. Based on the order of the TSN switching devices, it extracts the minimum forwarding time Ttmin and Ttmax of the TSN switching devices on the corresponding links. (5.2) The TSN controller calculates the earliest arrival time Trx_min as the earliest sending time + minimum forwarding delay, and calculates the latest arrival time Trx_max as the latest sending time + maximum forwarding delay; (5.3) The TSN controller calculates the gate opening time of the current TSN switch device as the earliest arrival time Trx_min of the critical service flow, and the gate duration is the time difference between the latest arrival time Trx_max and the earliest arrival time Trx_min; (5.4) The TSN controller sends the calculated gate opening time and gate duration to each TSN switching device.