TSN network adaptive gate control method
By dynamically modifying the gating list and adjusting the gating cycle time, the problem of TSN switches being unable to cope with changes in real-time data traffic is solved, reducing data packet loss and ensuring the transmission security of key data.
Patent Information
- Application Number
- CN202410710871.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-23
AI Technical Summary
During the operation of existing time-sensitive network (TSN) switches, the gate control list is fixed and immutable, and cannot respond to changes in the number of different types of data in the network in real time, resulting in data packet loss.
By classifying data packets into several queues within a timing period, counting changes in the number of data packets in each queue, dynamically modifying the gate control list, increasing or reducing the number of times the transmission gate is opened, and adjusting according to the longest number of bytes of the data packet Gating cycle time, and preferentially allocate bandwidth resources to high-priority queues to achieve adaptive gating management.
This enables TSN switches to quickly adapt to real-time data traffic requirements, reduce data packet loss, and ensure the security and reliability of key data transmission.
Smart Images

Figure CN118540271A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of time-sensitive network control methods, and in particular to a TSN network adaptive gate control method. Background Art
[0002] The data of some sensors or robotic arms in the automotive network or industrial network needs to communicate using the UDP protocol. UDP is an unreliable communication, so the physical layer needs to perform timing protection when transmitting such data to prevent congestion in the network interaction center and packet loss. For example, the data cycle of the automotive radar is 10ms, and the data is communicated using the UDP protocol. The data of the automotive radar must send data packets to the intelligent driving domain processing unit every 10ms to ensure the safety of intelligent driving behavior. However, ordinary switch communication adopts the data first-in-first-out method. Because the network device not only has one radar, but also other devices, the behavior of this network data is unpredictable. When the instantaneous data interaction volume is greater than the cache capacity of the switch, the switch will discard the excess data packets. The traditional interaction processing method will pose a potential hazard to self-driving cars.
[0003] In order to prevent the switch from discarding critical data, a switch that supports TSN (time-sensitive networking) technology is generally used as the data conversion hub of automotive Ethernet, and the 802.1Qbv network protocol is used for data transmission. However, it is necessary to plan the size and burst cycle of each critical data flow in advance, and then calculate the cycle and opening time of the gating list, and configure it in the switch before starting TSN interaction.
[0004] However, the gating list of switches that support TSN 802.1Qbv networks is fixed and immutable during operation, and the gating logic items cannot be changed in real time. It is difficult to cope with sudden changes in the number of different types of data in the network, resulting in data packet loss. Summary of the invention
[0005] In order to overcome the above-mentioned deficiencies of the prior art, the present invention provides a TSN network adaptive gate control method, which enables the TSN switch to quickly adapt to the real-time data flow requirements to improve the problem of data packet loss.
[0006] In order to achieve the above object, the present invention is implemented through the following technical solutions: A TSN network adaptive gate control method: performing the following steps within a timing period T: Classify incoming data packets into several queues; Count the total number of data packets corresponding to each queue and calculate the change in the number of packets in each queue in the current period; For a queue with an increased number of messages in the current cycle, the gate control list is modified to increase the number of transmission gate opening times for the queue; For the queue with a reduced number of messages in the current cycle, modify the gating list to reduce the number of transmission gate opening times for the queue; For a queue with a constant number of messages in the current cycle, the number of times the transmission gate of the queue is opened remains unchanged; The gating list includes a gating instruction group under a gating cycle, the gating instruction group includes gating instructions of each queue under the current gating cycle, and the gating instructions correspond to the transmission gate switch commands of each queue under the current gating cycle; The gating instructions corresponding to each gating cycle are executed in sequence according to the new gating list.
[0007] The TSN network adaptive gate control method described in the present application can dynamically modify the gate list according to the change of the data message volume under different categories to reasonably allocate network bandwidth. By dynamically modifying the gate list, it can be achieved in different network environments that the TSN (time sensitive network) switch can quickly adapt to the real-time data flow requirements to improve the problem of data packet loss.
[0008] Furthermore, a TSN network adaptive gate control method described in the present application determines the time of the gated cycle according to the longest number of bytes of the data message in each queue in each gated cycle. As a preferred solution of the present application, a TSN network adaptive gate control method described in the present application calculates the required transmission gate time according to the longest number of bytes of the data message in each queue in each gated cycle, dynamically adjusts the gate time of the queue, and realizes flexible adaptation to network data packets of various sizes and reasonable allocation of traffic resources. By dynamically updating the time of the gated cycle (i.e., the size of the gate opening time), it can be achieved in different network environments that the TSN (time-sensitive network) switch can quickly adapt to real-time data traffic requirements to improve the problem of data packet loss.
[0009] Furthermore, in a TSN network adaptive gate control method described in the present application, each queue corresponds to a different data priority level, and when modifying the gate control list, priority is given to ensuring the increased demand for opening the transmission gate of the high priority queue. As a preferred solution of the present application, network bandwidth resources are preferentially allocated to high priority queues to prevent critical data packet loss.
[0010] Furthermore, in a TSN network adaptive gate control method described in the present application, when modifying the gate control list, the step of giving priority to the increased demand for opening the transmission gate of the high priority queue includes: Apply for network bandwidth when the queue needs to increase the number of transmission gate openings. If the bandwidth resources are occupied by the queue with higher priority, the modification of the gating list is abandoned; If the bandwidth resource is occupied by a low-priority queue, the number of transmission gate openings of the queue is increased, and the number of transmission gate openings of the low-priority queue occupying the bandwidth resource is simultaneously reduced; If there is surplus bandwidth resources, the number of transmission gate opening times is directly increased. As a preferred solution of the present application, a high priority queue is enabled to preferentially occupy network bandwidth resources.
[0011] Furthermore, the TSN network adaptive gate control method described in the present application sets a byte length filter for each queue to count the byte length of each data message in each queue. As a preferred solution of the present application, the classified data messages are queued and passed through a byte length filter, and the byte length filter is used to count the byte length of each message. After the data message of each queue passes through the data byte length filter, it enters the corresponding queue data container.
[0012] Furthermore, the TSN network adaptive gate control method described in the present application sets a queue data container for each queue to store data packets, and counts the total amount of data packets in each queue.
[0013] Furthermore, in a TSN network adaptive gate control method described in the present application, the process of calculating the change in the number of messages in each queue in the current cycle includes: calculating the flow difference ΔP in each queue = the total number of messages in the current cycle - the total number of messages in the previous cycle.
[0014] Furthermore, in the TSN network adaptive gate control method described in the present application, the formula for determining the gate control cycle time is: , Nx indicates that the maximum number of bytes of the data message in the x queue in each gating cycle is N, and the number of the queue corresponding to x indicates the queue number. When the physical layer is Gigabit Ethernet, a is 9, and when the physical layer is 100M Ethernet, a is 8.
[0015] It can be seen from the above technical solution that the present invention has the following beneficial effects: 1. The present invention provides a TSN network adaptive gate control method, which can dynamically modify the gate control list according to the change of the data message volume under different categories to reasonably allocate network bandwidth. By dynamically modifying the gate control list, it can be achieved in different network environments that the TSN (time sensitive network) switch can quickly adapt to the real-time data flow requirements to improve the problem of data packet loss.
[0016] 2. The present invention provides a TSN network adaptive gate control method, which calculates the required transmission gate time according to the longest number of bytes of data packets in each queue in each gate control cycle, dynamically adjusts the gate control time of the queue, realizes flexible adaptation to network data packets of various sizes, and reasonably allocates traffic resources. By dynamically updating the gate control cycle time (i.e., the gate opening time), it can be achieved in different network environments that the TSN (time sensitive network) switch can quickly adapt to the real-time data traffic demand to improve the problem of data packet loss.
[0017] 3. The present invention provides a TSN network adaptive gate control method, which can preferentially allocate network bandwidth resources to high-priority queues to prevent key data packet loss. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A control structure diagram of a TSN network adaptive gate control method described in an embodiment of the present application. DETAILED DESCRIPTION Example
[0019] A TSN network adaptive gate control method: performing the following steps within a timing period T: Classify the incoming data packets into several queues. Specifically, set a data feature classifier to classify according to the features of the data packets. After the data packets enter from the MAC media access control layer, they first pass through the data feature classifier. The features of the data packets include: source address, destination address, etc. In this embodiment, the number of queues is 8; Count the total number of data packets corresponding to each queue and calculate the change in the number of packets in each queue in the current period; For a queue with an increased number of messages in the current cycle, the gate control list is modified to increase the number of transmission gate opening times for the queue; For the queue with a reduced number of messages in the current cycle, modify the gating list to reduce the number of transmission gate opening times for the queue; For a queue with a constant number of messages in the current cycle, the number of times the transmission gate of the queue is opened remains unchanged; Combination Figure 1 As shown, the gating list includes a gating instruction group under a gating cycle, the gating instruction group includes the gating instructions of each queue under the current gating cycle, and the gating instructions correspond to the transmission gate switch commands of each queue under the current gating cycle; According to the new gating list, the gating instructions corresponding to each gating cycle are executed in sequence. Specifically, the newly generated gating list is sent to the switch to execute the gating instructions. Figure 1As shown, when the gate control instruction is 1, the transmission gate switch is controlled to start and send the data in the container to the exit. When the gate control instruction is 0, the transmission gate is closed to allow the data in other queues to occupy the network bandwidth.
[0020] Therefore, the TSN network adaptive gate control method described in this application can dynamically modify the gate list according to the changes in the amount of data packets under different categories to reasonably allocate network bandwidth. By dynamically modifying the gate list, it can be achieved in different network environments that the TSN (time sensitive network) switch can quickly adapt to the real-time data flow requirements to improve the problem of data packet loss.
[0021] During the operation of traditional switches that support TSN 802.1Qbv networks, the gate list is fixed and immutable, which also makes it difficult to adjust the gate time to cope with the length of data in the network. Specifically, the time for the data message in the queue to pass through the transmission gate is determined by the gate opening time, that is, the gate cycle time. If the forwarding time of a single data packet in the queue is greater than the gate opening time, the complete data packet will not be sent to the network, causing large-capacity data packets to be blocked.
[0022] In order to solve the above problem, further, in this embodiment, the time of the gating cycle is determined according to the longest number of bytes of the data message in each queue in each gating cycle, that is, Figure 1 The gate time in .
[0023] The TSN network adaptive gate control method described in the present application calculates the required transmission gate time according to the longest number of bytes of data packets in each queue in each gated cycle, dynamically adjusts the gated time of the queue, and realizes flexible adaptation to network data packets of various sizes and reasonable allocation of traffic resources. By dynamically updating the time of the gated cycle (i.e., the gate opening time), it can be achieved in different network environments that the TSN (time-sensitive network) switch can quickly adapt to the real-time data traffic demand to improve the problem of data packet loss.
[0024] Furthermore, in this embodiment, each queue corresponds to a different data priority level, and when modifying the gating list, priority is given to ensuring the increased demand for opening the transmission gate of the high priority queue. Network bandwidth resources are preferentially allocated to the high priority queue to prevent key data packet loss.
[0025] Furthermore, in this embodiment, when modifying the gating list, the step of giving priority to increasing the demand for opening the transmission gate of the high priority queue includes: Apply for network bandwidth when the queue needs to increase the number of transmission gate openings. If the bandwidth resources are occupied by the queue with higher priority, the modification of the gating list is abandoned; If the bandwidth resource is occupied by a low-priority queue, the number of transmission gate openings of the queue is increased, and the number of transmission gate openings of the low-priority queue occupying the bandwidth resource is simultaneously reduced; If there is excess bandwidth resources, the number of transmission gate openings will be increased directly, so that high-priority queues can grab network bandwidth resources first.
[0026] Furthermore, in this embodiment, a byte length filter is set corresponding to each queue to count the byte length of each data message in each queue. The classified data messages are queued and passed through the byte length filter, and the byte length filter is used to count the byte length of each message. After the data message of each queue passes through the data byte length filter, it enters the corresponding queue data container.
[0027] Furthermore, in this embodiment, a queue data container is set corresponding to each queue to store data packets, and the total amount of data packets in each queue is counted. The transmission gate corresponds to the exit of the queue data container.
[0028] Furthermore, in this embodiment, the process of calculating the change in the number of packets in each queue in the current cycle includes: calculating the flow difference ΔP in each queue = the total number of packets in the current cycle - the total number of packets in the previous cycle.
[0029] When ΔP>0, it means that the traffic entering the queue is increasing. At this time, the corresponding queue will apply for network bandwidth from the scheduling controller. The scheduling controller will increase the transmission gate opening command of the queue after confirming that it does not occupy higher priority network bandwidth resources, so as to send more data and reduce the number of data packets in the corresponding queue. If the total bandwidth is not enough, this adjustment will be abandoned, and the corresponding data may be delayed or discarded; when ΔP<0, it means that the current traffic of the channel is reduced. At this time, a transmission gate opening command will be deleted, that is, the corresponding gate control instruction in the queue will be changed from 1 to 0 to close the corresponding transmission gate and release more bandwidth resources for other queue traffic; when ΔP=0, the gate control list will not be increased or decreased.
[0030] Furthermore, in this embodiment, the formula for determining the gate control cycle time is: , N x It indicates that the maximum number of bytes of the data message in the x queue in each gating cycle is N. The number of the queue corresponding to x indicates the queue number. When the physical layer is Gigabit Ethernet, a is 9, and when the physical layer is 100M Ethernet, a is 8.
[0031] The technical principles of the present invention are described above in conjunction with specific embodiments. These descriptions are only for explaining the principles of the present invention and cannot be interpreted as limiting the scope of protection of the present invention in any way. Based on the explanations herein, those skilled in the art can associate other specific implementations of the present invention without creative work, and these methods will fall within the scope of protection of the present invention.
Claims
1. A TSN network adaptive gate control method, Features: The following steps are performed within the timing period T: Classify incoming data packets into several queues; Count the total number of data packets corresponding to each queue and calculate the change in the number of packets in each queue in the current period; For a queue with an increased number of messages in the current cycle, the gate control list is modified to increase the number of transmission gate opening times for the queue; For the queue with a reduced number of messages in the current cycle, modify the gating list to reduce the number of transmission gate opening times for the queue; For a queue with a constant number of messages in the current cycle, the number of times the transmission gate of the queue is opened remains unchanged; The gating list includes a gating instruction group under a gating cycle, the gating instruction group includes gating instructions of each queue under the current gating cycle, and the gating instructions correspond to the transmission gate switch commands of each queue under the current gating cycle; The gating instructions corresponding to each gating cycle are executed in sequence according to the new gating list.
2. A TSN network adaptive gate control method according to claim 1, Features: The duration of each gating cycle is determined according to the longest number of bytes of data messages in each queue in each gating cycle.
3. A TSN network adaptive gate control method according to claim 1, Features: Each of the queues corresponds to a different data priority level. When modifying the gating list, priority is given to ensuring the increased demand for opening the transmission gate of the high priority queue.
4. A TSN network adaptive gate control method according to claim 3, Features: When modifying the gate list, the steps to increase the demand for ensuring that the transmission gates of the high priority queues are opened first include: Apply for network bandwidth when the queue needs to increase the number of transmission gate openings. If the bandwidth resources are occupied by the queue with higher priority, the modification of the gating list is abandoned; If the bandwidth resource is occupied by a low-priority queue, the number of transmission gate openings of the queue is increased, and the number of transmission gate openings of the low-priority queue occupying the bandwidth resource is simultaneously reduced; If there is surplus bandwidth resources, the number of transmission gate opening times is directly increased.
5. A TSN network adaptive gate control method according to claim 2, Features: Set a byte length filter for each queue to count the byte length of each data message in each queue.
6. A TSN network adaptive gate control method according to claim 1, Features: A queue data container is set corresponding to each queue to store data packets, and the total amount of data packets in each queue is counted.
7. A TSN network adaptive gate control method according to claim 1, Features: The process of calculating the change in the number of packets in each queue in the current period includes: calculating the flow difference ΔP in each queue = the total number of packets in the current period - the total number of packets in the previous period.
8. A TSN network adaptive gate control method according to claim 2, Features: The formula for determining the gate cycle time is: , N x It indicates that the maximum number of bytes of the data message in the x queue in each gating cycle is N. The number of the queue corresponding to x indicates the queue number. When the physical layer is Gigabit Ethernet, a is 9, and when the physical layer is 100M Ethernet, a is 8.
Citation Information
Patent Citations
Gate control list generation method, network equipment and computer readable storage medium
CN113163450A
Process layer network communication method, device and system based on TSN, and TSN controller
CN115484140A
Data stream scheduling method and device, electronic equipment and storage medium
CN116599913A
Scheduling Data Traffic in Wireless Time Sensitive Networks
US20210306910A1
