Multi-protocol planning and scheduling method and device based on time-sensitive network
By integrating scheduling methods of multiple protocols in time-sensitive networks, calculating and generating a set of scheduling plans, the problem in the existing technology that single-protocol scheduling cannot guarantee the certainty of message delay is solved, and the key point is achieved under large traffic conditions. Signal transmission reliability.
Patent Information
- Application Number
- CN202410963111.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-27
AI Technical Summary
Existing protocol scheduling technical solutions focus more on the advantages of a single protocol, without integrating multiple protocols, and cannot guarantee the certainty of message delay. Moreover, the bandwidth of the transmission method is small, making it difficult to ensure the reliability of key signals under the impact of heavy traffic.
Provides a multi-protocol planning and scheduling method based on time-sensitive networks. By configuring and parsing basic network information, it calculates available forwarding paths and generates scheduling tables. It combines traffic identification, filtering tables and scheduling tables to generate a set of scheduling plans and distribute them. to the switching device to achieve deterministic transmission of traffic.
It achieves data transmission certainty under different traffic and cycle scenarios, ensures reliable transmission of key signals, and improves network performance under large traffic conditions.
Smart Images

Figure CN118714092A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a multi-protocol planning and scheduling method and device based on a time-sensitive network. Background Art
[0002] TSN (Time Sensitive Networking) refers to a set of "sub-standards" developed under the IEEE802.1 standard framework based on specific application requirements, aiming to establish a universal time-sensitive mechanism for the Ethernet protocol to ensure the time certainty of network data transmission. TSN is located at the data link layer, changing the uncertainty of Ethernet from the underlying architecture, triggering a self-iteration of Ethernet itself.
[0003] In the TSN protocol cluster, each protocol is responsible for different modules. Currently, more attention is paid to the advantages of a single protocol. For example, the Qbv protocol focuses on its own scheduling advantages, but cannot filter out other interference messages of the same priority. The CB protocol focuses on redundant links to improve message security, but cannot guarantee the certainty of message delay.
[0004] For example, in L3 and above vehicle networks, deterministic transmission of critical control signals is particularly important. Traditional transmission methods, such as CAN, FlexRay, EtherCAT, Modbus, etc., have small transmission bandwidths. As the number and quality of sensors increase, under the impact of large traffic, traditional transmission methods are difficult to guarantee the transmission of critical signals. If you want to schedule traffic and ensure security, you need to integrate multiple protocols and perform multi-protocol planning and scheduling. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a multi-protocol planning and scheduling method and device based on a time-sensitive network to eliminate or improve one or more defects existing in the prior art, and to solve the problems that the existing protocol scheduling technical solutions focus more on the advantages of a single protocol, do not integrate multiple protocols, and cannot guarantee the certainty of message delays, and the existing transmission method has a small bandwidth, and it is difficult to ensure the reliability of key signal transmission under large traffic impact.
[0006] On the one hand, the present invention provides a multi-protocol planning and scheduling method based on a time-sensitive network, the method comprising the following steps:
[0007] Configure and parse basic network information, including topology information, traffic information, link information, and device information;
[0008] Sort the traffic information according to priority, calculate the available forwarding path storage according to the forwarding table of the switching device, and add the forwarding path to the forwarding table; traverse the traffic information and the forwarding path, traverse the switching devices in each forwarding path, query whether the current traffic information has traffic identification, if not, add a new traffic identification information, if so, query the next switching device in the forwarding path, until all traffic information is queried; traverse the traffic information, calculate the filter table items containing traffic characteristics, build a traffic filter table, and generate a scheduling table item according to the scheduling protocol used by the traffic, and build a traffic scheduling table; generate a scheduling plan set based on the combination of the traffic identification information, the forwarding table, the traffic filter table and the traffic scheduling table;
[0009] The scheduling plan set is formatted according to the device dimension and sent to the switching device for execution.
[0010] In some embodiments of the present invention, configuring and parsing basic network information includes:
[0011] Based on the topology information, identify and classify each device in the time-sensitive network, analyze the physical connection between each device, and analyze the forwarding table of the switching device;
[0012] With respect to the traffic information, the traffic is prioritized according to preset standards, and for non-periodic traffic, a minimum sending interval is extracted as its traffic period; wherein the minimum sending interval is the minimum time interval between different data frames sent by this traffic.
[0013] In some embodiments of the present invention, calculating the available forwarding paths according to the forwarding table of the switching device further includes:
[0014] If the traffic uses the CB protocol, the available redundant paths are calculated and stored, and the redundant paths are added to the forwarding table.
[0015] In some embodiments of the present invention, traversing the traffic information, calculating the filter table items including the traffic characteristics, and constructing the traffic filter table include:
[0016] If the traffic uses the Qci protocol, calculate the filter table entry containing the traffic characteristics;
[0017] If the traffic uses the Qci protocol and the Qbv scheduling protocol, when generating the traffic scheduling table, the gated time slots therein are converted into time slots through which the traffic can pass, and are configured in the filter table entry of the Qci protocol;
[0018] If the traffic uses the Qci protocol and the Qav scheduling protocol, when the traffic scheduling table is generated, the traffic passing time slot is calculated according to the traffic size and the bandwidth value, and is configured in the filter table item of the Qci protocol.
[0019] In some embodiments of the present invention, if the traffic uses the Qci protocol and the CB protocol, it includes:
[0020] Determine the traffic replication equipment point and the redundant traffic equipment point in the redundant path according to the forwarding table, and combine the traffic replication equipment point and the redundant traffic equipment point to construct a redundant message replication and elimination equipment table;
[0021] The scheduling table entry information of the traffic replication device point and the time slot point in the redundant path is obtained from the traffic scheduling table, and the time slot difference between the two devices is used as the overall delay value of the redundant path, and is configured in the filter table entry and the traffic table entry.
[0022] In some embodiments of the present invention, the method for calculating the passable time slots of each device in the redundant path includes:
[0023] According to the expected delay, according to the bandwidth proportion of the current link, the expected delay is allocated to each link; or according to the fuzzy calculation method, the delay is allocated to each link according to the principle of satisfying all.
[0024] In some embodiments of the present invention, traversing the traffic information, calculating the filter table items including the traffic characteristics, and constructing the traffic filter table include:
[0025] Set the maximum frame and minimum frame. If the single frame length of the traffic is not within the range from the minimum frame to the maximum frame, the traffic will be discarded.
[0026] Set a flow size threshold. If the accumulated flow size or the flow size per unit time exceeds the threshold, the flow will be discarded.
[0027] Set the time slot that traffic can pass through. If traffic arrives in a time slot that is not passable, the traffic is discarded.
[0028] In some embodiments of the present invention, generating a scheduling table entry according to a scheduling protocol used by traffic and constructing a traffic scheduling table includes:
[0029] If the traffic uses the Qbv scheduling protocol, different gating states are set for different time slots to control the traffic of corresponding priorities to pass through the egress port in the corresponding time slot;
[0030] If the traffic uses the Qbu scheduling protocol, the priority of the traffic is mapped into high priority and low priority, and the high priority interrupts the sending of the low priority by preemption;
[0031] If the traffic uses the Qch scheduling protocol, dual queues are set according to the traffic priority, and the latency is guaranteed by controlling the queue switch duration;
[0032] If the traffic uses the Qav scheduling protocol, different bandwidth ratios are configured for the traffic based on the traffic identification information so that the same traffic is transmitted with the same bandwidth;
[0033] If the traffic uses the Qcr scheduling protocol, it is timed by a local independent clock, shaped asynchronously, and then forwarded according to the preset plan.
[0034] On the other hand, the present invention also provides a multi-protocol planning and scheduling device based on a time-sensitive network, comprising a processor, a memory, and a computer program or instructions stored in the memory, characterized in that the processor is used to execute the computer program or the instructions, and when the computer program or the instructions are executed, the device implements the steps of any one of the methods mentioned above.
[0035] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods mentioned above.
[0036] The beneficial effects of the present invention are at least:
[0037] The present invention provides a multi-protocol planning and scheduling method and device based on a time-sensitive network, including: configuring and parsing basic network information; calculating available forwarding path storage according to the forwarding table of the switching device, and adding the forwarding path to the forwarding table; traversing the flow information and the forwarding path, traversing the switching devices in each forwarding path, and querying whether the current flow information has flow identification; traversing the flow information, calculating the filter table items containing the flow characteristics, constructing the flow filter table, and generating the scheduling table items according to the scheduling protocol used by the flow, and constructing the flow scheduling table; generating a scheduling planning set based on the combination of flow identification information, forwarding table, flow filter table and flow scheduling table; formatting the scheduling planning set and sending it to the switching device for execution. The method provided by the present invention realizes the determinism of data flow based on the controller system and the scheduling algorithm on the basis of Ethernet, and ensures the determinism of transmission under different flows, different cycles and different size scenes through flow identification and flow scheduling planning.
[0038] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention may be achieved and obtained by the structures specifically indicated in the specification and the accompanying drawings.
[0039] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of the present application, and do not constitute a limitation of the present invention. In the drawings:
[0041] Figure 1 The figure is a schematic diagram of the steps of a multi-protocol planning and scheduling method based on a time-sensitive network in one embodiment of the present invention.
[0042] Figure 2 The figure is a flow chart of a multi-protocol planning and scheduling method based on a time-sensitive network in one embodiment of the present invention.
[0043] Figure 3 Schematic diagram of device connection relationship in one embodiment of the present invention.
[0044] Figure 4 Schematic diagram of the internal functions of a device in one embodiment of the present invention.
[0045] Figure 5 Schematic diagram of the data flow model structure in one embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0047] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.
[0048] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.
[0049] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection with an intermediate.
[0050] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.
[0051] It should be emphasized here that the step marks mentioned below are not intended to limit the order of the steps, but it should be understood that the steps can be executed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be executed simultaneously.
[0052] In order to solve the problems that the existing protocol scheduling technology solutions focus more on the advantages of a single protocol, do not integrate multiple protocols, cannot guarantee the certainty of message delay, and the existing transmission mode has a small bandwidth and is difficult to guarantee the reliability of key signal transmission under large traffic impact, the present invention proposes a multi-protocol planning and scheduling method based on time-sensitive network, such as Figure 1 As shown, the method includes the following steps S101 to S103:
[0053] Step S101: configure and parse basic network information, wherein the basic network information includes topology information, flow information, link information and device information.
[0054] Step S102: Sort the traffic information according to priority, calculate the available forwarding path storage according to the forwarding table of the switching device, and add the forwarding path to the forwarding table; traverse the traffic information and forwarding path, traverse the switching devices in each forwarding path, query whether there is traffic identification in the current traffic information, if not, add a new traffic identification information, if so, query the next switching device in the forwarding path, until all traffic information is queried; traverse the traffic information, calculate the filter table items containing the traffic characteristics, build a traffic filter table, and generate scheduling table items according to the scheduling protocol used by the traffic, and build a traffic scheduling table; generate a scheduling plan set based on the combination of traffic identification information, forwarding table, traffic filter table and traffic scheduling table.
[0055] Step S103: Format the scheduling plan set according to the device dimension and send it to the switching device for execution.
[0056] like Figure 2 As shown, it is a flowchart of a multi-protocol planning and scheduling method based on a time-sensitive network.
[0057] In step S101, basic network information is configured and parsed, wherein the basic network information includes topology information, flow information, link information and device information.
[0058] In some embodiments, the configuration network basic information may be obtained through automatic discovery or manual configuration.
[0059] In some embodiments, parsing the basic network information mainly involves classifying the basic information.
[0060] For topology information, the device type, device name, and connection information between devices are parsed. Specifically, different types of devices in the network, such as routers, switching devices, hosts, etc., are identified, and each device's unique name or identifier is identified for identification and operation, and the physical or logical connection relationship between devices is analyzed, including the connected ports, bandwidth, latency, etc. At the same time, the existing forwarding table of the switching device is analyzed, which refers to the forwarding port list determined according to the destination address and virtual subnet identifier.
[0061] For the traffic information, the traffic is prioritized according to preset standards, such as quality of service (QoS), and for non-periodic traffic, the minimum sending interval is extracted as its traffic period, where the minimum sending interval is the minimum time interval between different data frames sent by this traffic.
[0062] For link information, analyze the link bandwidth size and connection material between devices.
[0063] For device information, analyze device type, brand information, etc.
[0064] In step S102, a scheduling plan set is calculated according to basic network information.
[0065] First, the traffic information is sorted according to the priority, the available forwarding path storage is calculated according to the forwarding table of the switching device, and the forwarding path is added to the forwarding table.
[0066] In some embodiments, if the traffic uses the CB protocol, it is also necessary to calculate the available redundant paths for storage and add the redundant paths to the forwarding table.
[0067] Then traverse the traffic information and the forwarding path of the traffic. If there are redundant paths, they must also be traversed. Traverse the switching devices in each path and query whether there is traffic identification in the current traffic information. If not, add a new traffic identification information. If so, query the next switching device in the forwarding path until all traffic information is queried. Traffic identification refers to when different flows are in the same switching device, determine whether they are the same flow according to whether the destination address and virtual subnet identifier of the flow are consistent. If one of the two is different, it can be considered to belong to different flows.
[0068] Then the traffic information is traversed. If the traffic uses the Qci protocol, the filter table items containing the traffic characteristics are calculated to build a traffic filter table. It should be noted that the filter table items do not include the passable time slots, and the passable time slots need to be calculated based on other scheduling protocols.
[0069] Then traverse the traffic information. If the traffic uses other scheduling protocols, calculate the scheduling performance of each scheduling protocol according to the different protocol types and build a traffic scheduling table.
[0070] In some embodiments, if the traffic uses the Qci protocol and the Qbv scheduling protocol, when the traffic scheduling table is generated, the gated time slots therein are converted into time slots through which the traffic can pass, and are configured in the filter table entry of the Qci protocol. If the traffic uses the Qci protocol and the Qav scheduling protocol, when the traffic scheduling table is generated, the time slots through which the traffic can pass are calculated according to the traffic size and the bandwidth value, and are configured in the filter table entry of the Qci protocol.
[0071] In some embodiments, if the traffic uses the Qci protocol and the CB protocol, the configuration can be divided into two steps, including:
[0072] The traffic replication device points and the redundant traffic device points in the redundant path are determined according to the forwarding table, and the traffic replication device points and the redundant traffic device points are merged to construct a redundant message replication and elimination device table.
[0073] The forwarding table is extracted based on the forwarding path and redundant path calculated above, and is combined with each device in the two paths, the device exit, the destination address and the virtual subnet identifier in the traffic, to determine which port the same traffic needs to be sent from in the device. The redundant message replication and elimination device table records the device that determines the traffic needs to be replicated based on traffic identification, the port that sends out after the traffic is replicated from the device, and the device information that determines the duplicate traffic needs to be eliminated based on traffic identification.
[0074] The scheduling table entry information of the traffic replication device point and the time slot point in the redundant path is obtained from the traffic scheduling table, and the time slot difference between the two devices is used as the overall delay value of the redundant path, and is configured in the filter table entry and the traffic table entry.
[0075] In some embodiments, a method for calculating a passable time slot of each device in a redundant path includes:
[0076] According to the expected delay and the bandwidth ratio of the current link, the expected delay is allocated to each link; or according to the fuzzy calculation method, the delay is allocated to each link according to the principle of satisfying all requirements.
[0077] In some embodiments, the traffic information is traversed, the filter table items containing the traffic characteristics are calculated, and the traffic filter table is constructed, which mainly includes the following three aspects: setting the maximum frame and the minimum frame. If the single frame length of the traffic is not in the range from the minimum frame to the maximum frame, the traffic is discarded; setting the traffic size threshold. If the accumulated size of the traffic or the size per unit time exceeds the threshold, the traffic is discarded; setting the time slot that the traffic can pass. If the traffic arrives in a non-passable time slot, the traffic is discarded.
[0078] In some embodiments, a scheduling table entry is generated according to a scheduling protocol used by traffic, and a traffic scheduling table is constructed, wherein the traffic scheduling table refers to generating different scheduling methods corresponding to different protocols. The scheduling methods are all for the output ports of the switching device. Therefore, the same output port of the same switching device can only use the same scheduling method. Multiple scheduling methods of the output ports of the same device constitute a scheduling table, including:
[0079] If the traffic uses the Qbv scheduling protocol, different gating states are set for different time slots to control the traffic of corresponding priorities to pass through the egress port within the corresponding time slot; if the traffic uses the Qbu scheduling protocol, the priority of the traffic is mapped to high priority and low priority, and the high priority interrupts the sending of the low priority by preempting; if the traffic uses the Qch scheduling protocol, dual queues are set according to the traffic priority, and the delay is guaranteed by controlling the queue switch (the dual queues remain one on and one off, and flip the state in the next time slot); if the traffic uses the Qav scheduling protocol, different bandwidth ratios are configured for the traffic based on the traffic identification information, so that the same traffic is transmitted with the same bandwidth; if the traffic uses the Qcr scheduling protocol, the traffic is shaped asynchronously through local independent clock timing and then forwarded according to the preset plan.
[0080] In step S103, the scheduling plan set is formatted according to the device dimension and sent to the switching device for execution. The switching device performs traffic parsing, traffic forwarding and traffic scheduling according to the scheduling plan set.
[0081] The present invention also provides a multi-protocol planning and scheduling device based on a time-sensitive network, which is used to implement the steps of the multi-protocol planning and scheduling method based on a time-sensitive network as described above when executed.
[0082] For ease of understanding, further description is given below in conjunction with a specific embodiment.
[0083] like Figure 3 and Figure 4 As shown, it is a diagram of the connection relationship and internal functional structure of each device. Terminal devices 1, 2 and the receiving terminal are TSN devices, and the rest are TSN switches and the device of the present invention. Terminal devices 1 and 2 are responsible for sending and receiving data and encapsulating data into TSN protocols; the receiving terminal device is responsible for parsing TSN protocol data; the device of the present invention is used to discover, configure, and parse basic network information, calculate the scheduling plan set, format and send the scheduling plan set to the switching device; the TSN switch combines the scheduling plan set sent by the controller to perform traffic parsing, traffic forwarding and traffic scheduling.
[0084] In order to better illustrate the calculation method of the present invention, Figure 5As shown in the figure, a data traffic model is given. The main parameters of device1 traffic are: period 1 millisecond, start sending time within the traffic period 0 milliseconds, traffic size 500B, highest traffic priority, destination address device4, VLAN ID set to 10, delay requirement 100 microseconds, use CB protocol, use Qci protocol, use Qbv protocol. The main parameters of device2 traffic are: period 250 microseconds, start sending time within the traffic period 0 milliseconds, traffic size 1200B, second highest traffic priority, destination address device4, VLAN ID set to 11, delay requirement 120 microseconds, the link bandwidth along the way is 1 Gbps, and the Qbv protocol is used.
[0085] The above network basic information is configured in the device of the present invention, and steps S201 to S203 of the multi-protocol planning and scheduling method based on time-sensitive network are executed:
[0086] Step S201: parse and classify basic network information, sort the two flows according to priority, load topology information (links and bandwidth), and calculate the super cycle as 1 millisecond.
[0087] Step S202: cyclically calculate and process each sorted flow, and first process the flow of device 1 according to the priority. If all flows are processed, proceed to step S203.
[0088] Step S2021: Find all available paths from the sending device to the destination device and sort them according to the shortest path.
[0089] Step S2022: Select the first one in the result set S2021 to start calculation (device1-switch1-switch2-device4). If the CB protocol is used, go to step S2023; otherwise, go to step S2024.
[0090] Step S2023: Calculate the available redundant paths. For the traffic of device1, the calculated redundant path is switch1-switch3-device4.
[0091] Step S2024: Traffic identification: traffic identification is performed on the switching devices in the path for the traffic of device1, and the flow ID is identified as 1; traffic identification is performed on the switching devices in the path for the traffic of device2, and the flow ID is identified as 2.
[0092] Step S2025: Calculate the traffic filter table entries. For the traffic of device1, the maximum frame length is calculated to be 558B, and the traffic size is 4464Kbps. For the traffic of device2, the maximum frame length is calculated to be 1258B, and the traffic size is 40256Kbps.
[0093] Step S2026: Calculate the traffic scheduling table entry. For the traffic of device1, first calculate the first hop delay, that is, the transmission delay transit1 = 558B / 1Gbps, the transmission time slot is [0, transit1], the remaining required delay requiredtime = 100us-transtime1, and the sending time of the next hop switch1 starttranstime2 = 0+transtime1;
[0094] Step S2027: Calculate each hop schedule from the second hop. For the Qbv protocol, the delay allocation value is requiredtime / 3, and the second hop transmission time slot is [starttranstime1, starttranstime1+requiretime / 3]. Then, the next hop is derived based on the second hop. Similarly, the third hop is [starttranstime1+requiretime / 3, starttranstime1+requiretime*2 / 3], and the fourth hop is [starttranstime1+requiretime*2 / 3, starttranstime1+requiretime].
[0095] Step S2028: The CB protocol is configured for the traffic of device 1. Therefore, it is necessary to configure a scheduling table for the redundant path according to the scheduling table of the original path, configure the time slot [starttranstime1, starttranstime1+requiretime / 3] for switch1 to switch3, and configure the time slot [starttranstime1+requiretime / 3, starttranstime1+requiretime*2 / 3] for switch3 to switch4.
[0096] Step S2029: The Qci protocol is configured for the traffic of device1, so the time slots in the scheduling table need to be configured in the filter table items of the Qci protocol. The filter time slots for switch1 are increased to [0,transtime1], the filter time slots for switch2 are increased to [starttranstime1, starttranstime1+requiretime / 3], the filter time slots for switch3 are increased to [starttranstime1, starttranstime1+requiretime / 3], and the filter time slots for switch4 are increased to [starttranstime1+requiretime / 3, starttranstime1+requiretime*2 / 3];
[0097] Step S20210: record the calculated traffic identification, filtering entries and scheduling set, and repeat step S202.
[0098] Step S203: Format the scheduling plan set calculated in step S202 and send it to switches switch1, switch2, switch3 and switch4. Each switch loads and executes according to the scheduling plan set.
[0099] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of a multi-protocol planning and scheduling method based on a time-sensitive network are implemented.
[0100] Corresponding to the above method, the present invention also provides a device, which includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, the processor is used to execute the computer instructions stored in the memory, and when the computer instructions are executed by the processor, the device implements the steps of the method described above.
[0101] The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned edge computing server deployment method are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.
[0102] In summary, the present invention provides a multi-protocol planning and scheduling method and device based on a time-sensitive network, including: configuring and parsing basic network information; calculating available forwarding path storage according to the forwarding table of the switching device, and adding the forwarding path to the forwarding table; traversing the traffic information and forwarding path, traversing the switching devices in each forwarding path, and querying whether the current traffic information has traffic identification; traversing the traffic information, calculating the filter table items containing traffic characteristics, constructing a traffic filter table, and generating scheduling table items according to the scheduling protocol used by the traffic, and constructing a traffic scheduling table; generating a scheduling plan set based on the combination of traffic identification information, forwarding table, traffic filter table and traffic scheduling table; formatting the scheduling plan set and sending it to the switching device for execution. The method provided by the present invention realizes the determinism of data traffic based on the controller system and scheduling algorithm on the basis of Ethernet, and ensures the determinism of transmission under different traffic, different cycles and different size scenes through traffic identification and traffic scheduling planning.
[0103] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.
[0104] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0105] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.
[0106] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A multi-protocol planning and scheduling method based on time-sensitive network, It is characterized in that The method comprises the following steps: Configure and parse basic network information, including topology information, traffic information, link information, and device information; Sort the traffic information according to priority, calculate the available forwarding path storage according to the forwarding table of the switching device, and add the forwarding path to the forwarding table; traverse the traffic information and the forwarding path, traverse the switching devices in each forwarding path, query whether the current traffic information has traffic identification, if not, add a new traffic identification information, if so, query the next switching device in the forwarding path, until all traffic information is queried; traverse the traffic information, calculate the filter table items containing traffic characteristics, build a traffic filter table, and generate a scheduling table item according to the scheduling protocol used by the traffic, and build a traffic scheduling table; generate a scheduling plan set based on the combination of the traffic identification information, the forwarding table, the traffic filter table and the traffic scheduling table; The scheduling plan set is formatted according to the device dimension and sent to the switching device for execution.
2. According to claim 1, the multi-protocol planning and scheduling method based on time-sensitive network, It is characterized in that Configure and parse basic network information, including: Based on the topology information, identify and classify each device in the time-sensitive network, analyze the physical connection between each device, and analyze the forwarding table of the switching device; With respect to the traffic information, the traffic is prioritized according to preset standards, and for non-periodic traffic, a minimum sending interval is extracted as its traffic period; wherein the minimum sending interval is the minimum time interval between different data frames sent by this traffic.
3. The multi-protocol planning and scheduling method based on time-sensitive network according to claim 1, It is characterized in that Calculate the available forwarding paths based on the forwarding table of the switching device, including: If the traffic uses the CB protocol, the available redundant paths are calculated and stored, and the redundant paths are added to the forwarding table.
4. The multi-protocol planning and scheduling method based on time-sensitive network according to claim 1, It is characterized in that Traversing the traffic information, calculating the filter table items containing the traffic characteristics, and constructing a traffic filter table, including: If the traffic uses the Qci protocol, calculate the filter table entry containing the traffic characteristics; If the traffic uses the Qci protocol and the Qbv scheduling protocol, when generating the traffic scheduling table, the gated time slots therein are converted into time slots through which the traffic can pass, and are configured in the filter table entry of the Qci protocol; If the traffic uses the Qci protocol and the Qav scheduling protocol, when the traffic scheduling table is generated, the traffic passing time slot is calculated according to the traffic size and the bandwidth value, and is configured in the filter table item of the Qci protocol.
5. The multi-protocol planning and scheduling method based on time-sensitive network according to claim 3, It is characterized in that If the traffic uses the Qci protocol and the CB protocol, it includes: Determine the traffic replication equipment point and the redundant traffic equipment point in the redundant path according to the forwarding table, and combine the traffic replication equipment point and the redundant traffic equipment point to construct a redundant message replication and elimination equipment table; The scheduling table entry information of the traffic replication device point and the time slot point in the redundant path is obtained from the traffic scheduling table, and the time slot difference between the two devices is used as the overall delay value of the redundant path, and is configured in the filter table entry and the traffic table entry.
6. The multi-protocol planning and scheduling method based on time-sensitive network according to claim 5, It is characterized in that The method for calculating the passable time slots of each device in the redundant path includes: According to the expected delay, according to the bandwidth proportion of the current link, the expected delay is allocated to each link; or according to the fuzzy calculation method, the delay is allocated to each link according to the principle of satisfying all.
7. The multi-protocol planning and scheduling method based on time-sensitive network according to claim 1, It is characterized in that Traversing the traffic information, calculating the filter table items containing the traffic characteristics, and constructing a traffic filter table, including: Set the maximum frame and minimum frame. If the single frame length of the traffic is not within the range from the minimum frame to the maximum frame, the traffic will be discarded. Set a flow size threshold. If the accumulated flow size or the flow size per unit time exceeds the threshold, the flow will be discarded. Set the time slot that traffic can pass through. If traffic arrives in a time slot that is not passable, the traffic is discarded.
8. The multi-protocol planning and scheduling method based on time-sensitive network according to claim 1, It is characterized in that Generate scheduling table items according to the scheduling protocol used by traffic, and build a traffic scheduling table, including: If the traffic uses the Qbv scheduling protocol, different gating states are set for different time slots to control the traffic of corresponding priorities to pass through the egress port in the corresponding time slot; If the traffic uses the Qbu scheduling protocol, the priority of the traffic is mapped into high priority and low priority, and the high priority interrupts the sending of the low priority by preemption; If the traffic uses the Qch scheduling protocol, dual queues are set according to the traffic priority, and the latency is guaranteed by controlling the queue switch duration; If the traffic uses the Qav scheduling protocol, different bandwidth ratios are configured for the traffic based on the traffic identification information so that the same traffic is transmitted with the same bandwidth; If the traffic uses the Qcr scheduling protocol, it is timed by a local independent clock, shaped asynchronously, and then forwarded according to the preset plan.
9. A multi-protocol scheduling device based on a time-sensitive network, comprising a processor, a memory, and a computer program or instruction stored in the memory, It is characterized in that The processor is configured to execute the computer program or the instructions. When the computer program or the instructions are executed, the device implements the steps of the method according to any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
