Time sensitive network data forwarding method and related device

By adopting the odd-even period queue mode and time slot offset setting in the time-sensitive network, the problem of rate mismatch between the receiving port and the sending port of the bridge node is solved, the data transmission efficiency and resource utilization are improved, and the end-to-end guarantee is ensured. Delay certainty.

CN118714094APending Publication Date: 2024-09-27GLOBAL ENERGY INTERCONNECTION RES INST CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410839470.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In time-sensitive networks, the rate of the receiving port of the bridge node does not match the rate of the sending port, resulting in low data transmission efficiency, low resource utilization, and difficult to determine the end-to-end delay.

Method used

Using the odd-even period queue mode, data is received through the receiving port of the bridge node during the odd transmission period and data in the even-period queue is sent through the sending port; data is received through the receiving port during the even transmission period and data in the odd-period queue is sent through the sending port. And set the time slot offset on the sending port to match the time slot period of the receiving port, improving resource utilization and delay certainty.

Benefits of technology

It effectively improves the resource utilization of the sending port of the bridge node, increases the number of access terminal devices, ensures efficient sharing of network resources for different types of traffic, and achieves end-to-end delay certainty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714094A
    Figure CN118714094A
Patent Text Reader

Abstract

The invention belongs to the technical field of communication, and discloses a time-sensitive network data forwarding method and a related device, and the method comprises the steps: in an odd transmission period, receiving data through an odd period queue of each receiving port of a network bridge node, and transmitting data received by an even period queue of each receiving port of the network bridge node through a transmitting port of the network bridge node; and in the even transmission period, receiving data through the even period queue of each receiving port of the network bridge node, and sending the data received by the odd period queue of each receiving port of the network bridge node through the sending port of the network bridge node. The outlet forwarding time of the high-rate sending port is effectively compressed, so that the sending port can forward more data packets in a unit period, the resource utilization rate of the sending port of the network bridge node is greatly improved, different types of traffic can efficiently share network resources, and the network resource utilization rate is improved. And the access quantity of the terminal equipment is effectively increased in the same network capacity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication technology and relates to a time-sensitive network data forwarding method and related devices. Background Art

[0002] With the construction of new power systems and the widespread application of new energy sources such as wind, solar and storage, microgrids that integrate multiple energy systems and users are characterized by being multi-point, wide-ranging, scattered and disordered. The flexible grid connection and efficient regulation of large-scale and diversified distributed power sources in microgrids require the support of low-latency, highly reliable power site deterministic communication networks. TSN (Time-Sensitive Networking) technology provides a variety of TSN mechanisms with latency guarantees to ensure that its transmission process is not interfered with by other business traffic, thereby ensuring its transmission delay is minimized and ensuring high stability and reliability during transmission.

[0003] At present, the traffic scheduling strategies of TSN mainly include credit-based shaper CBS, time-aware shaper TAS, periodic queuing and forwarding model CQF, and asynchronous transmission shaper ATS. Among them, CBS is difficult to meet the control service transmission requirements with lower latency and jitter requirements when transmitting large amounts of data, and TAS has end-to-end gating coordination problems in complex time-sensitive network environments, so it has not been widely used. The end-to-end delay of data forwarding based on CQF is independent of the network topology and only depends on the size of the time slot cycle and the number of path hops. It is widely used in multi-device networking and multi-service flow coexistence scenarios.

[0004] However, at the edge of the TSN network, the rate from the terminal node to the bridge node is usually low, while the data forwarding rate between the bridge nodes is high. In this scenario where the data rate between the receiving port and the sending port does not match, if the egress queue table of the bridge node CQF still uses the traditional setting method, that is, the data frame arrives in the i-th time slot cycle and is forwarded to the next node in the i+1-th time slot, it will result in a small number of terminal nodes connected, which will lead to low utilization of TSN network resources, thereby reducing the data transmission efficiency of the TSN network. Summary of the invention

[0005] The purpose of the present invention is to overcome the above-mentioned shortcomings of the prior art and provide a time-sensitive network data forwarding method and related devices.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] In a first aspect, the present invention provides a method for forwarding data in a time-sensitive network, comprising: in an odd transmission cycle, receiving data through the odd cycle queue of each receiving port of a bridge node, and sending the data received by the even cycle queue of each receiving port of the bridge node through the sending port of the bridge node; in an even transmission cycle, receiving data through the even cycle queue of each receiving port of the bridge node, and sending the data received by the odd cycle queue of each receiving port of the bridge node through the sending port of the bridge node; wherein, when sending the data received by the even cycle queue of each receiving port of the bridge node or sending the data received by the odd cycle queue of each receiving port of the bridge node, there is a time slot offset of T / N between the time slot periods of adjacent odd cycle queues in each odd cycle queue or adjacent even cycle queues in each even cycle queue; wherein T is the transmission cycle, N is the number of receiving ports and N is not less than 2.

[0008] Optionally, the time-sensitive network data forwarding method also includes a bridge node setting step; the bridge node setting step includes: determining the number of receiving ports of the bridge node to be N, setting an odd-cycle queue and an even-cycle queue for each receiving port, and setting the transmission cycles of the odd-cycle queue and the even-cycle queue to T; setting the odd-cycle queue to receive data in the odd transmission cycle and to send data in the even transmission cycle; setting the even-cycle queue to receive data in the even transmission cycle and to send data in the odd transmission cycle; setting the time slot offset of each receiving port relative to the adjacent previous receiving port to T / N through the gating queue of the bridge node, and at the exit end of the bridge node, allocating 1 sending port to N receiving ports, and the execution cycle of the sending gating of the sending port is set according to T / N.

[0009] Optionally, the maximum value of the number of receiving ports N is the rate ratio of the bridge node and the terminal device node.

[0010] Optionally, when sending data received by the even-cycle queues of each receiving port of the sending bridge node or the data received by the odd-cycle queues of each receiving port of the sending bridge node, the data received by each even-cycle queue or the data received by each odd-cycle queue are sent in sequence according to the priority order of each receiving port of the bridge node.

[0011] Optionally, when sending data received by the even-cycle queues of each receiving port of the bridge node through the sending port of the bridge node or sending data received by the odd-cycle queues of each receiving port of the bridge node through the sending port of the bridge node, the sending window time of the sending port is postponed by a preset first time offset to start sending, and the sending is ended in advance by a preset second time offset.

[0012] Optionally, the first time offset and the second time offset are determined according to a time synchronization error of a time-sensitive network and a delay jitter between upstream and downstream nodes; wherein the nodes include bridge nodes and terminal device nodes.

[0013] Optionally, the states of the odd-cycle queue and the even-cycle queue are controlled by a preset static gating list.

[0014] According to a second aspect of the present invention, a time-sensitive network data forwarding system is provided, comprising: an odd transmission cycle control module, which is used to receive data through the odd cycle queue of each receiving port of a bridge node in an odd transmission cycle, and send the data received by the even cycle queue of each receiving port of the bridge node through the sending port of the bridge node; an even transmission cycle control module, which is used to receive data through the even cycle queue of each receiving port of the bridge node in an even transmission cycle, and send the data received by the odd cycle queue of each receiving port of the bridge node through the sending port of the bridge node; wherein, when sending the data received by the even cycle queue of each receiving port of the bridge node or sending the data received by the odd cycle queue of each receiving port of the bridge node, there is a time slot offset of T / N between the time slot periods of adjacent odd cycle queues in each odd cycle queue or adjacent even cycle queues in each even cycle queue; wherein, T is the transmission cycle, N is the number of receiving ports and N is not less than 2.

[0015] According to a third aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned time-sensitive network data forwarding method when executing the computer program.

[0016] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned time-sensitive network data forwarding method are implemented.

[0017] Compared with the prior art, the present invention has the following beneficial effects:

[0018] The time-sensitive network data forwarding method of the present invention aims at the scenario where the receiving port rate of the bridge node does not match the sending port rate, by setting multiple receiving ports and configuring odd cycle queues and even cycle queues, and in the odd transmission cycle, receiving data through the odd cycle queues of each receiving port of the bridge node, and sending the data received by the even cycle queues of each receiving port of the bridge node through the sending port of the bridge node, and in the even transmission cycle, receiving data through the even cycle queues of each receiving port of the bridge node, and sending the data received by the odd cycle queues of each receiving port of the bridge node through the sending port of the bridge node, effectively compressing the export forwarding time of the high-speed sending port, so that the sending port can forward more data packets within a unit cycle, greatly improving the resource utilization rate of the sending port of the bridge node, ensuring that different types of traffic can efficiently share network resources, and effectively increasing the number of access terminals in the same network capacity. In addition, the odd-even cycle queue mode is adopted to realize data flow reception and transmission at the same time without affecting each other, and each node can process and forward data packets at a fixed cycle, thereby ensuring the certainty of end-to-end delay. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a flow chart of a method for forwarding time-sensitive network data according to an embodiment of the present invention.

[0020] Figure 2 This is a flow chart of the steps for setting up a bridge node according to an embodiment of the present invention.

[0021] Figure 3 Schematic diagram of receiving port time arrangement according to an embodiment of the present invention.

[0022] Figure 4 Schematic diagram of the sending port time arrangement according to an embodiment of the present invention.

[0023] Figure 5 Schematic diagram of the data forwarding principle of the port queue gating list cyclically alternating according to an embodiment of the present invention.

[0024] Figure 6 Schematic diagram of the receiving port timing arrangement of the traditional CQF model.

[0025] Figure 7 Schematic diagram of the sending port timing arrangement of the traditional CQF model.

[0026] Figure 8 This is a structural block diagram of a time-sensitive network data forwarding system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0030] See also Figure 1 In one embodiment of the present invention, a time-sensitive network data forwarding method is provided, specifically a time-sensitive network data forwarding method based on cyclic alternation of port queue gating lists. For the scenario where the rate of time-sensitive network data from edge terminal nodes to bridge nodes is low, while the data forwarding rate between bridge nodes is high, a mechanism for setting a periodic cyclic alternation of gating lists at sending ports with high data sending rates is performed to compress the forwarding time of the egress sending ports, thereby improving the utilization rate of the high-rate sending ports.

[0031] Specifically, the time-sensitive network data forwarding method of the present invention includes the following steps:

[0032] S1: In an odd transmission cycle, data is received through the odd cycle queue of each receiving port of the bridge node, and data received by the even cycle queue of each receiving port of the bridge node is sent through the sending port of the bridge node.

[0033] S2: In an even transmission cycle, data is received through the even cycle queue of each receiving port of the bridge node, and data received by the odd cycle queue of each receiving port of the bridge node is sent through the sending port of the bridge node.

[0034] Among them, when sending data received by the even-cycle queues of each receiving port of the sending bridge node or the odd-cycle queues of each receiving port of the sending bridge node, there is a time slot offset of T / N between the time slot periods of adjacent odd-cycle queues in each odd-cycle queue or adjacent even-cycle queues in each even-cycle queue; wherein T is the transmission period, N is the number of receiving ports and N is not less than 2.

[0035] The time-sensitive network data forwarding method of the present invention aims at the scenario where the receiving port rate of the bridge node does not match the sending port rate, by setting multiple receiving ports and configuring odd cycle queues and even cycle queues, and in the odd transmission cycle, receiving data through the odd cycle queues of each receiving port of the bridge node, and sending the data received by the even cycle queues of each receiving port of the bridge node through the sending port of the bridge node, and in the even transmission cycle, receiving data through the even cycle queues of each receiving port of the bridge node, and sending the data received by the odd cycle queues of each receiving port of the bridge node through the sending port of the bridge node, effectively compressing the export forwarding time of the high-speed sending port, so that the sending port can forward more data packets within a unit cycle, greatly improving the resource utilization rate of the sending port of the bridge node, ensuring that different types of traffic can efficiently share network resources, and effectively increasing the number of access terminals in the same network capacity. In addition, the odd-even cycle queue mode is adopted to realize data flow reception and transmission at the same time without affecting each other, and each node can process and forward data packets at a fixed cycle, thereby ensuring the certainty of end-to-end delay.

[0036] In one possible implementation, see Figure 2 The time-sensitive network data forwarding method further includes: a bridge node setting step; the bridge node setting step includes:

[0037] S11: Determine that the number of receiving ports of the bridge node is N, set an odd-cycle queue and an even-cycle queue for each receiving port, and set the transmission period of the odd-cycle queue and the even-cycle queue to T.

[0038] S12: setting the odd cycle queue to receive data in the odd transmission cycle and send data in the even transmission cycle; setting the even cycle queue to receive data in the even transmission cycle and send data in the odd transmission cycle.

[0039] S13: The time slot offset of each receiving port relative to the adjacent previous receiving port is set to T / N through the gating queue of the bridge node, and at the exit end of the bridge node, 1 sending port is allocated to N receiving ports, and the execution cycle of the sending gating of the sending port is set according to T / N.

[0040] Specifically, before forwarding time-sensitive network data, N receiving ports and one sending port are set for the bridge node, that is, N receiving ports are assigned 1 sending port. Among them, each receiving port is configured with an odd-cycle queue and an even-cycle queue, and the transmission period of the odd-cycle queue and the even-cycle queue is T. By setting the switch state of each receiving port, the transmission operation at each time point is performed in sequence. Among them, the bridge node is a TSN device directly connected to the terminal device node; the receiving port refers to the Ethernet receiving port of the bridge node connected to the terminal device node.

[0041] Optionally, for switches that support CQF, i.e. bridge nodes, two queues controlled by time gates are set at the sending port for time-sensitive frames: odd-cycle queue Q0 and even-cycle queue Q1; even-numbered time slots: Q0 stores the frames received by the receiving port, while Q1 sends the data frames cached in the previous odd-numbered time slot; odd-numbered time slots: the operations of Q0 and Q1 are exactly the opposite.

[0042] Among them, the execution cycle of the sending port is set according to T / N, that is, there is a time slot offset of T / N between the time slot cycles of adjacent odd-cycle queues in each odd-cycle queue or adjacent even-cycle queues in each even-cycle queue. Specifically, it can be understood as: numbering N receiving ports, respectively, receiving port 1, receiving port 2, ... and receiving port N, wherein the time slot offset of receiving port 2 relative to receiving port 1 is T / N, and so on, receiving port N is T / N relative to receiving port N-1. The purpose is to match the receiving time slot of each odd-cycle queue and even-cycle queue in the entire transmission cycle with the minimum sending time slot, so as to ensure that each received data can be forwarded within the entire transmission cycle.

[0043] In a possible implementation manner, the maximum value of the number of receiving ports N is a rate ratio between a bridge node and a terminal device node.

[0044] Specifically, the rate ratio of the bridge node and the terminal device node is calculated, and the calculated result is used as the maximum value of the number of receiving ports N to prevent the failure to effectively forward all data. In practical applications, the calculated value can be configured as the number of receiving ports to maximize the performance of the bridge node; or, the number of receiving ports of the bridge node can be appropriately reduced according to actual needs.

[0045] In a possible implementation, when sending data received by the even-cycle queues of each receiving port of the bridge node or sending data received by the odd-cycle queues of each receiving port of the bridge node, the data received by each even-cycle queue or the data received by each odd-cycle queue are sent in sequence according to the priority order of each receiving port of the bridge node.

[0046] Specifically, at the sending port of the bridge node, the sending cycle is divided into T / N time slot cycles in the odd transmission cycle time period, and according to the priority order and the data received in each T / N time slot cycle, all data packets in the even transmission cycle of the N receiving ports are sent in sequence, and all data packets in the odd transmission cycle of the N receiving ports are sent in the even transmission cycle using the same steps as the odd transmission cycle. After processing the data packets in an odd-even transmission cycle, the above method is used to cyclically process the next odd-even transmission cycle. Sending data according to the priority order of each receiving port of the bridge node not only helps to improve the overall performance and stability of the network, but also meets the needs of different services for data transmission, and improves the manageability and flexibility of the network.

[0047] In a possible implementation, when sending data received by the even-cycle queues of each receiving port of the bridge node through the sending port of the bridge node or sending data received by the odd-cycle queues of each receiving port of the bridge node through the sending port of the bridge node, the sending window time of the sending port is delayed by a preset first time offset to start sending, and the sending is ended in advance by a preset second time offset.

[0048] Specifically, there are errors in the node synchronization of the actual TSN network. When the sending port of the previous bridge node sends the last data frame, due to link transmission and data synchronization errors, the state of the downstream node inlet queue happens to change (that is, the original receiving queue currently becomes the sending queue, and the original sending queue becomes the receiving queue), which may cause the data frame of the upstream node to be placed in the wrong queue.

[0049] In order to solve the above problems, the sending window time of the sending port is fine-tuned, and two time offsets are set, that is, the sending port is opened after the first time offset is delayed, and the sending time of the sending port is ended in advance by the second time offset. By using the sending window time offset mechanism to fine-tune the sending time window, it is ensured that each TSN network node can accurately receive the correct data packet.

[0050] Optionally, the first time offset and the second time offset are determined according to a time synchronization error of a time-sensitive network and a delay jitter between upstream and downstream nodes; wherein the nodes include bridge nodes and terminal device nodes.

[0051] Specifically, the time offset is determined by the time synchronization error of the time-sensitive network and the delay jitter between upstream and downstream nodes, which improves the tolerance of the TSN network time synchronization error and inter-node jitter indicators. It can effectively ensure the accuracy of data transmission and reception between adjacent nodes while reducing the cost of network construction.

[0052] In a possible implementation manner, the states of the odd-cycle queue and the even-cycle queue are controlled by a preset static gating list.

[0053] Specifically, by using a static gating list, it is only necessary to control the gating status of the receiving port and the sending port of the bridge node according to the predetermined time slot, without dynamically calculating and configuring the gating list for each queue, which simplifies the configuration process of traffic shaping in the TSN network.

[0054] In a possible implementation, a bridge node having two receiving ports (receiving port 1 and receiving port 2) and one sending port in a TSN (assuming that the data rate of the sending port is twice the data rate of the receiving port) is taken as an example to explain in detail the implementation principle of the present invention.

[0055] See also Figure 3 and 4 , assuming that the service flow priorities of different receiving ports are the same, the PSFP (stream filtering and control strategy) of TSN configures the odd-cycle queue and even-cycle queue of receiving port 1 as queue 7 and queue 6. Queue 7 receives data in the odd transmission cycle and sends data in the even transmission cycle, while queue 6 receives data in the even transmission cycle and sends data in the odd transmission cycle. The odd-cycle queue and even-cycle queue configured by PSFP for receiving port 2 are queue 5 and queue 4. Queue 5 receives data in the odd transmission cycle and sends data in the even transmission cycle, while queue 4 receives data in the even transmission cycle and sends data in the odd transmission cycle; but there is an offset of T / 2 between the time slot cycle of receiving port 2 and the time slot cycle of receiving port 1. In the first transmission cycle, the receiving gates of queue 7 and queue 5 are open and are in the state of receiving data, and the receiving gates of queue 6 and queue 4 are closed and are in the state of sending data; in the second transmission cycle, the sending gates of queue 7 and queue 5 are open and are in the state of sending data, and the receiving gates of queue 6 and queue 4 are open and are in the state of receiving data.

[0056] Since the rate of the sending port is twice that of the receiving port, when setting the data port gating, the sending gating execution cycle is set as T / 2, that is, in the T / 2 time period, only the data of one queue can be sent, thereby realizing the alternating forwarding of two business flows at the sending port. The specific process is as follows:

[0057] Within the 0-T / 2 period, the sending port can complete sending the data stream of queue 6. Within the T / 2-T period, the sending port can complete sending the data stream of queue 4. Within the T-(3 / 2)T period, the sending port can complete sending the data stream of queue 7. Within the (3 / 2)T-2T period, the sending port can complete sending the data stream of queue 5.

[0058] See also Figure 5, which shows the data forwarding principle of the port queue gating list cyclic alternation. It can be seen that the data transmission rate difference between the receiving port and the sending port is used to perform cyclic alternation forwarding of the gating list period in the egress queue. The sending time for all queues received by the receiving port 1 and the receiving port 2 within the 2T period is 2T.

[0059] See also Figure 6 and 7 ,If the traditional CQF model is adopted, the data flow of queue 6 is sent in the 0-T period, the data flow of queue 7 is sent in the 2T-2T period, the data flow of queue 4 is sent in the 2T-3T period, and the data flow of queue 5 is sent in the 3T-4T period. The sending time of the egress queue is 4T.

[0060] The time-sensitive network data forwarding method of the present invention takes into account the scenario where the data rate between the receiving port and the sending port of the TSN network bridge node does not match, and reasonably sets the minimum time slot for TSN data processing according to the rate difference between the bridge node and the terminal device node, and realizes cyclic scheduling of the odd-even cycle queue by setting the gating list of the receiving port and the sending port, so as to realize the cyclic alternating sending of TSN edge network data at the sending port with a large data sending rate. Compared with the traditional CQF forwarding method, while ensuring the end-to-end delay of the network, the resource utilization rate of the edge node data sending port is greatly improved.

[0061] The following are device embodiments of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments, please refer to the method embodiments of the present invention.

[0062] See also Figure 8 In another embodiment of the present invention, a time-sensitive network data forwarding system is provided, which can be used to implement the above-mentioned time-sensitive network data forwarding method. Specifically, the time-sensitive network data forwarding system includes an odd transmission cycle control module and an even transmission cycle control module.

[0063] Among them, the odd transmission cycle control module is used to receive data through the odd cycle queue of each receiving port of the bridge node in the odd transmission cycle, and send the data received by the even cycle queue of each receiving port of the bridge node through the sending port of the bridge node; the even transmission cycle control module is used to receive data through the even cycle queue of each receiving port of the bridge node in the even transmission cycle, and send the data received by the odd cycle queue of each receiving port of the bridge node through the sending port of the bridge node; wherein, when sending the data received by the even cycle queue of each receiving port of the bridge node or sending the data received by the odd cycle queue of each receiving port of the bridge node, there is a time slot offset of T / N between the time slot periods of adjacent odd cycle queues in each odd cycle queue or adjacent even cycle queues in each even cycle queue; wherein T is the transmission cycle, N is the number of receiving ports and N is not less than 2.

[0064] In a possible implementation, when sending data received by the even-cycle queues of each receiving port of the bridge node through the sending port of the bridge node or sending data received by the odd-cycle queues of each receiving port of the bridge node through the sending port of the bridge node, the sending window time of the sending port is delayed by a preset first time offset to start sending, and the sending is ended in advance by a preset second time offset.

[0065] All relevant contents of each step involved in the embodiment of the aforementioned time-sensitive network data forwarding method can be referred to the functional description of the functional modules corresponding to the time-sensitive network data forwarding system in the embodiment of the present invention, and will not be repeated here.

[0066] The division of modules in the embodiments of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present invention may be integrated into one processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0067] In another embodiment of the present invention, a computer device is provided, the computer device including a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc., which are the computing core and control core of the terminal, which are suitable for implementing one or more instructions, and are specifically suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the time-sensitive network data forwarding method.

[0068] In another embodiment of the present invention, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It can be understood that the computer-readable storage medium here can include both built-in storage media in the computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the time-sensitive network data forwarding method in the above embodiment.

[0069] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may 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.

[0070] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0071] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0072] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A time-sensitive network data forwarding method, characterized in that: include: In an odd transmission cycle, data is received through the odd cycle queue of each receiving port of the bridge node, and data received by the even cycle queue of each receiving port of the bridge node is sent through the sending port of the bridge node; In an even transmission cycle, data is received through the even cycle queue of each receiving port of the bridge node, and data received by the odd cycle queue of each receiving port of the bridge node is sent through the sending port of the bridge node; Among them, when sending data received by the even-cycle queues of each receiving port of the sending bridge node or the odd-cycle queues of each receiving port of the sending bridge node, there is a time slot offset of T / N between the time slot periods of adjacent odd-cycle queues in each odd-cycle queue or adjacent even-cycle queues in each even-cycle queue; wherein T is the transmission period, N is the number of receiving ports and N is not less than 2.

2. The time-sensitive network data forwarding method according to claim 1, characterized in that: The time-sensitive network data forwarding method further includes a bridge node setting step; The bridge node setting step includes: Determine the number of receiving ports of the bridge node as N, set an odd-cycle queue and an even-cycle queue for each receiving port, and set the transmission period of the odd-cycle queue and the even-cycle queue to T; Set the odd-cycle queue to receive data in odd transmission cycles and send data in even transmission cycles; set the even-cycle queue to receive data in even transmission cycles and send data in odd transmission cycles; The time slot offset of each receiving port relative to the adjacent previous receiving port is set to T / N through the gating queue of the bridge node, and at the exit end of the bridge node, 1 sending port is allocated to N receiving ports, and the execution cycle of the sending gating of the sending port is set according to T / N.

3. The time-sensitive network data forwarding method according to claim 1, characterized in that: The maximum value of the number of receiving ports N is the rate ratio of the bridge node and the terminal device node.

4. The time-sensitive network data forwarding method according to claim 1, characterized in that: When sending data received by the even-cycle queues of each receiving port of the bridge node or sending data received by the odd-cycle queues of each receiving port of the bridge node, the data received by each even-cycle queue or the data received by each odd-cycle queue are sent in sequence according to the priority order of each receiving port of the bridge node.

5. The time-sensitive network data forwarding method according to claim 1, characterized in that: When sending data received by the even-cycle queues of each receiving port of the bridge node through the sending port of the bridge node or sending data received by the odd-cycle queues of each receiving port of the bridge node through the sending port of the bridge node, the sending window time of the sending port is postponed by a preset first time offset to start sending, and the sending is ended in advance by a preset second time offset.

6. The time-sensitive network data forwarding method according to claim 5, characterized in that: The first time offset and the second time offset are determined according to the time synchronization error of the time-sensitive network and the delay jitter between the upstream and downstream nodes; wherein the nodes include bridge nodes and terminal device nodes.

7. The time-sensitive network data forwarding method according to claim 1, characterized in that: The states of the odd-cycle queue and the even-cycle queue are controlled by a preset static gating list.

8. A time-sensitive network data forwarding system, characterized in that: include: An odd transmission cycle control module, used to receive data through the odd cycle queues of each receiving port of the bridge node in an odd transmission cycle, and send data received by the even cycle queues of each receiving port of the bridge node through the sending port of the bridge node; An even transmission cycle control module is used to receive data through the even cycle queues of each receiving port of the bridge node in the even transmission cycle, and send the data received by the odd cycle queues of each receiving port of the bridge node through the sending port of the bridge node; Among them, when sending data received by the even-cycle queues of each receiving port of the sending bridge node or the odd-cycle queues of each receiving port of the sending bridge node, there is a time slot offset of T / N between the time slot periods of adjacent odd-cycle queues in each odd-cycle queue or adjacent even-cycle queues in each even-cycle queue; wherein T is the transmission period, N is the number of receiving ports and N is not less than 2.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the time-sensitive network data forwarding method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the time-sensitive network data forwarding method according to any one of claims 1 to 7 are implemented.