Switch deterministic transmission method, device, equipment and storage medium

By adding a counter gate control CGC module to the Ethernet chip of the switch, deterministic transmission of data packets is achieved, and the problem that traditional switching chips cannot meet the TSN function is solved, the scope of use of switching chips is expanded, and the economic benefits and production efficiency of the equipment are improved.

CN116366736BActive Publication Date: 2025-09-02FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310345724.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2025-09-02
Estimated Expiration
2043-03-31

AI Technical Summary

Technical Problem

Traditional switching chips cannot achieve deterministic transmission, cannot meet the needs of industrial Internet and intelligent manufacturing, and cannot realize the functions of TSN chips.

Method used

By adding a counter gate to the Ethernet chip of the switch, the data to be processed is divided according to the preset time length, periodic data packets are obtained, and the switch of the transmission channel is controlled through the CGC module to achieve deterministic transmission of data packets.

Benefits of technology

Use traditional Ethernet chips to realize TSN functions, expand the scope of use of switching chips, enhance compatibility, reduce operational costs, improve production efficiency and product quality, and promote the integration of Internet technology, communication technology and operation technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116366736B_ABST
    Figure CN116366736B_ABST
Patent Text Reader

Abstract

The present invention discloses a switch deterministic transmission method, apparatus, equipment and storage medium. The method controls the counter gate of the Ethernet chip of the switch according to the counter gate control CGC module; determines a preset time length through the CGC module, and divides the to-be-processed data of the Ethernet switch chip according to the preset time length to obtain a periodic data packet; controls the switch of the sending channel through the CGC module, and transmits the periodic data packet through the sending channel. The method can use traditional Ethernet chips to implement TSN functions, expand the scope of use of traditional Ethernet switching chips, enhance the compatibility of chips, and improve the economic benefits of equipment, promote the integration of Internet technology (IT), communication technology (CT) and operation technology (OT), effectively shorten the product development cycle, and can replace the equipment of professional TSN chips, thereby reducing operating costs and improving production efficiency and product quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data communication technology, and in particular to a switch deterministic transmission method, device, equipment and storage medium. Background Art

[0002] The global manufacturing landscape is undergoing significant changes, with new development trends and dynamics emerging. With the continuous advancement of technology and evolving consumer demand for products, traditional industrial communication methods have become a significant shortcoming. This is particularly true in scenarios such as industrial automation and product testing, where traditional industrial communication methods can only function to the best of their ability and cannot adapt to the demands of the Industrial Internet and intelligent manufacturing. To better keep pace with digitalization and transition from traditional to intelligent production models, factories require new technologies to help the manufacturing industry achieve this shift from traditional to intelligent production, from consumer to production, and from the virtual economy to the real economy. These technologies will provide critical infrastructure that connects the entire industrial system, the entire industrial chain, and the entire value chain, supporting the development of intelligent industry. Time-sensitive networking (TSN) technology has become widely recognized within the industry as the next-generation evolutionary direction for industrial networks. Within the Industrial Internet architecture, networks, as the foundational supporting technology, must possess stronger interoperability, high-quality transmission, and intelligent operation and maintenance capabilities. Therefore, using Ethernet physical interfaces for industrial wired connections is a necessity. Traditional switching chips cannot provide deterministic transmission and cannot implement TSN chip features. Summary of the Invention

[0003] The main purpose of the present invention is to provide a switch deterministic transmission method, device, equipment and storage medium, aiming to solve the technical problem in the prior art that traditional switching chips cannot complete deterministic transmission and cannot realize TSN chip functions.

[0004] In a first aspect, the present invention provides a switch deterministic transmission method, the switch deterministic transmission method comprising the following steps:

[0005] The counter gate control CGC module controls the Ethernet chip of the switch.

[0006] Determining a preset time length through the CGC module, dividing the data to be processed by the Ethernet switch chip according to the preset time length to obtain periodic data packets;

[0007] The CGC module controls the switch of the sending channel, and transmits the periodic data packet through the sending channel.

[0008] Optionally, performing counter gate control on the Ethernet chip of the switch according to the counter gate control CGC module includes:

[0009] Add a counter gate control CGC module to the Ethernet chip of the switch;

[0010] Each network node in the switch is configured through the CGC module.

[0011] Optionally, configuring each network node in the switch through the CGC module includes:

[0012] Obtaining preset queue data flow characteristics in the CGC module;

[0013] The preset in-queue data flow characteristics are configured for each network node in the switch through the CGC module.

[0014] Optionally, determining a preset time length by the CGC module, segmenting the data to be processed by the Ethernet switch chip according to the preset time length, and obtaining periodic data packets includes:

[0015] Obtaining a minimum gating length of a network node of the switch from the CGC module, and using the minimum gating length as a preset time length;

[0016] The data to be processed of the Ethernet switching chip is divided according to the preset time length to obtain periodic data packets.

[0017] Optionally, after dividing the data to be processed by the Ethernet switch chip according to the preset time length to obtain periodic data packets, the switch deterministic transmission method further includes:

[0018] The CGC module counts the periodic data packets to obtain the number of data packets, so as to realize the transformation of the data driving mode from the event-driven data plane to the time-driven data plane.

[0019] Optionally, controlling a switch of a sending channel through the CGC module to transmit the periodic data packet through the sending channel includes:

[0020] Upon receiving a packet start instruction, calling the CGC module to synchronously count data packets of each time-sensitive network node in the switch;

[0021] When receiving the gate control request sent by the controller, the counter gate control table of the CGC module is cyclically queried according to the gate control request, the switch of the sending channel is controlled according to the table query result, and the periodic data packet is transmitted through the sending channel.

[0022] Optionally, upon receiving a gate control request sent by the controller, cyclically querying a counter gate control table entry of the CGC module according to the gate control request, controlling a switch of a sending channel according to a table query result, and transmitting the periodic data packet through the sending channel includes:

[0023] Upon receiving a gate control request sent by the controller, cyclically querying the counter gate control table entries of the CGC module according to the gate control request, obtaining a table query result, and obtaining a highest priority queue and a lowest priority queue from the table query result;

[0024] Obtaining a configuration package feature of the access control list of the switch, and representing a time-sensitive data flow in the data to be transmitted with the highest priority queue and representing ordinary service data in the data to be transmitted with data in the lowest priority queue according to the configuration package feature;

[0025] The gating state of each time slot in each queue is acquired according to the table query result, and the sending channel is controlled to transmit the periodic data packet according to the gating state.

[0026] In a second aspect, to achieve the above-mentioned objectives, the present invention further provides a switch deterministic transmission device, the switch deterministic transmission device comprising:

[0027] Configuration module, used for performing counter gate control on Ethernet chip of switch according to counter gate control CGC module;

[0028] a driving conversion module, configured to determine a preset time length through the CGC module, and segment the data to be processed by the Ethernet switching chip according to the preset time length to obtain periodic data packets;

[0029] The data transmission module is used to control the switch of the transmission channel through the CGC module, and transmit the periodic data packet through the transmission channel.

[0030] In a third aspect, to achieve the above-mentioned objectives, the present invention further proposes a switch deterministic transmission device, comprising: a memory, a processor, and a switch deterministic transmission program stored in the memory and executable on the processor, wherein the switch deterministic transmission program is configured to implement the steps of the switch deterministic transmission method described above.

[0031] In a fourth aspect, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a switch deterministic transmission program is stored. When the switch deterministic transmission program is executed by a processor, the steps of the switch deterministic transmission method described above are implemented.

[0032] The switch deterministic transmission method proposed in the present invention performs counter gate control on the Ethernet chip of the switch according to the counter gate control CGC module; determines a preset time length through the CGC module, and divides the data to be processed of the Ethernet switching chip according to the preset time length to obtain periodic data packets; controls the switch of the sending channel through the CGC module, and transmits the periodic data packets through the sending channel, which solves the problem that special TSN chips or special hardware must be used in industrial Internet networks. It can use traditional Ethernet chips to implement TSN functions, expand the scope of use of traditional Ethernet switching chips, enhance chip compatibility, and improve the economic benefits of equipment, promote the integration of Internet technology IT, communication technology CT and operation technology OT, effectively shorten the product development cycle, and can replace equipment with professional TSN chips for networking, so that related products have better economic benefits, reduce operating costs, and improve production efficiency and product quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention;

[0034] Figure 2 This is a flow chart of a first embodiment of a switch deterministic transmission method according to the present invention;

[0035] Figure 3 This is a flow chart of a second embodiment of the switch deterministic transmission method of the present invention;

[0036] Figure 4 This is a flow chart of a third embodiment of the switch deterministic transmission method of the present invention;

[0037] Figure 5 This is a flow chart of a fourth embodiment of the switch deterministic transmission method of the present invention;

[0038] Figure 6 1. This is a flow chart of a fifth embodiment of a switch deterministic transmission method according to the present invention;

[0039] Figure 7 This is a functional module diagram of the first embodiment of the switch deterministic transmission device of the present invention.

[0040] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0042] The solution of the embodiment of the present invention is mainly: by controlling the counter gate of the Ethernet chip of the switch according to the counter gate control CGC module; determining the preset time length through the CGC module, dividing the data to be processed of the Ethernet switching chip according to the preset time length, and obtaining periodic data packets; controlling the switch of the sending channel through the CGC module, and transmitting the periodic data packets through the sending channel, which solves the problem that special TSN chips or special hardware must be used in industrial Internet networks, can use traditional Ethernet chips to implement TSN functions, expand the scope of use of traditional Ethernet switching chips, enhance chip compatibility, and improve the economic benefits of equipment, promote the integration of Internet technology IT, communication technology CT and operation technology OT, effectively shorten the product development cycle, can replace the equipment of professional TSN chips, and perform networking, so that related products have better economic benefits, reduce operating costs, improve production efficiency and product quality, and solve the technical problems in the prior art that traditional switching chips cannot complete deterministic transmission and cannot implement TSN chip functions.

[0043] Reference Figure 1 , Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.

[0044] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory or a stable memory (Non-Volatile Memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0045] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation of the device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0046] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating device, a network communication module, a user interface module, and a switch deterministic transmission program.

[0047] The device of the present invention calls the switch deterministic transmission program stored in the memory 1005 through the processor 1001 and performs the following operations:

[0048] The counter gate control CGC module controls the Ethernet chip of the switch.

[0049] Determining a preset time length through the CGC module, dividing the data to be processed by the Ethernet switch chip according to the preset time length to obtain periodic data packets;

[0050] The CGC module controls the switch of the sending channel, and transmits the periodic data packet through the sending channel.

[0051] The device of the present invention calls the switch deterministic transmission program stored in the memory 1005 through the processor 1001, and further performs the following operations:

[0052] Add a counter gate control CGC module to the Ethernet chip of the switch;

[0053] Each network node in the switch is configured through the CGC module.

[0054] The device of the present invention calls the switch deterministic transmission program stored in the memory 1005 through the processor 1001, and further performs the following operations:

[0055] Obtaining preset queue data flow characteristics in the CGC module;

[0056] The preset in-queue data flow characteristics are configured for each network node in the switch through the CGC module.

[0057] The device of the present invention calls the switch deterministic transmission program stored in the memory 1005 through the processor 1001, and further performs the following operations:

[0058] Obtaining a minimum gating length of a network node of the switch from the CGC module, and using the minimum gating length as a preset time length;

[0059] The data to be processed of the Ethernet switching chip is divided according to the preset time length to obtain periodic data packets.

[0060] The device of the present invention calls the switch deterministic transmission program stored in the memory 1005 through the processor 1001, and further performs the following operations:

[0061] The CGC module counts the periodic data packets to obtain the number of data packets, so as to realize the transformation of the data driving mode from the event-driven data plane to the time-driven data plane.

[0062] The device of the present invention calls the switch deterministic transmission program stored in the memory 1005 through the processor 1001, and further performs the following operations:

[0063] Upon receiving a packet start instruction, calling the CGC module to synchronously count data packets of each time-sensitive network node in the switch;

[0064] When receiving the gate control request sent by the controller, the counter gate control table of the CGC module is cyclically queried according to the gate control request, the switch of the sending channel is controlled according to the table query result, and the periodic data packet is transmitted through the sending channel.

[0065] The device of the present invention calls the switch deterministic transmission program stored in the memory 1005 through the processor 1001, and further performs the following operations:

[0066] Upon receiving a gate control request sent by the controller, cyclically querying the counter gate control table entries of the CGC module according to the gate control request, obtaining a table query result, and obtaining a highest priority queue and a lowest priority queue from the table query result;

[0067] Obtaining a configuration package feature of the access control list of the switch, and representing a time-sensitive data flow in the data to be transmitted with the highest priority queue and representing ordinary service data in the data to be transmitted with data in the lowest priority queue according to the configuration package feature;

[0068] The gating state of each time slot in each queue is acquired according to the table query result, and the sending channel is controlled to transmit the periodic data packet according to the gating state.

[0069] Through the above scheme, this embodiment controls the counter gate of the Ethernet chip of the switch by controlling the CGC module according to the counter gate; determines the preset time length through the CGC module, and divides the data to be processed of the Ethernet switching chip according to the preset time length to obtain periodic data packets; controls the switch of the sending channel through the CGC module, and transmits the periodic data packets through the sending channel, which solves the problem of having to use special TSN chips or dedicated hardware in industrial Internet networks, can use traditional Ethernet chips to implement TSN functions, expand the scope of use of traditional Ethernet switching chips, enhance chip compatibility, and improve the economic benefits of equipment, promote the integration of Internet technology IT, communication technology CT and operation technology OT, effectively shorten the product development cycle, and can replace equipment with professional TSN chips for networking, so that related products have better economic benefits, reduce operating costs, and improve production efficiency and product quality.

[0070] Based on the above hardware structure, an embodiment of the switch deterministic transmission method of the present invention is proposed.

[0071] Reference Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a switch deterministic transmission method according to the present invention.

[0072] In a first embodiment, the switch deterministic transmission method includes the following steps:

[0073] Step S10: Perform counter gate control on the Ethernet chip of the switch according to the counter gate control CGC module.

[0074] It should be noted that the Ethernet chip of the switch in this embodiment is a traditional switch chip that supports programmable features. By adding a Counter Gate Control (CGC) module to the traditional Ethernet chip, the network deterministic feature can be achieved through the CGC module.

[0075] Step S20: Determine a preset time length through the CGC module, and segment the data to be processed of the Ethernet switching chip according to the preset time length to obtain periodic data packets.

[0076] It can be understood that calling the CGC module can complete the time synchronization function and can transform the event-driven data plane of the application-specific integrated circuit (ASIC) chip into a time-driven data plane, that is, transforming the data driving mode of the Ethernet switching chip from an event-driven data plane to a time-driven data plane.

[0077] Step S30: Control the switch of the sending channel through the CGC module to transmit the periodic data packet through the sending channel.

[0078] It should be understood that calling the CGC module can implement the function of time gating, that is, controlling the switch of the transmission channel and transmitting the data to be transmitted through the transmission channel.

[0079] Through the above scheme, this embodiment controls the counter gate of the Ethernet chip of the switch by controlling the CGC module according to the counter gate; determines the preset time length through the CGC module, and divides the data to be processed of the Ethernet switching chip according to the preset time length to obtain periodic data packets; controls the switch of the sending channel through the CGC module, and transmits the periodic data packets through the sending channel, which solves the problem of having to use special TSN chips or dedicated hardware in industrial Internet networks, can use traditional Ethernet chips to implement TSN functions, expand the scope of use of traditional Ethernet switching chips, enhance chip compatibility, and improve the economic benefits of equipment, promote the integration of Internet technology IT, communication technology CT and operation technology OT, effectively shorten the product development cycle, and can replace equipment with professional TSN chips for networking, so that related products have better economic benefits, reduce operating costs, and improve production efficiency and product quality.

[0080] Furthermore, Figure 3 FIG. 1 is a flow chart of a second embodiment of a switch deterministic transmission method according to the present invention. Figure 3 As shown, a second embodiment of the switch deterministic transmission method of the present invention is proposed based on the first embodiment. In this embodiment, step S10 specifically includes the following steps:

[0081] Step S11: Add a counter gate control CGC module to the Ethernet chip of the switch.

[0082] It should be noted that a counter gate is added to the traditional Ethernet chip of the switch to control the CGC module.

[0083] In a specific implementation, a switching chip that supports programmable features is selected, such as the Broadcom Trident 4 series or the Intel Tofino series. Of course, other types of switching chips can be used, and this embodiment does not limit this. The actual implementation of the data plane depends on the target hardware, and chip differences have no effect on the implementation.

[0084] Step S12: Configure each network node in the switch through the CGC module.

[0085] It can be understood that each network node in the switch can be quickly configured through the CGC module.

[0086] Furthermore, the step S12 includes the following steps:

[0087] Obtaining preset queue data flow characteristics in the CGC module;

[0088] The preset in-queue data flow characteristics are configured for each network node in the switch through the CGC module.

[0089] It should be understood that the enqueued data flow characteristics need to be configured before the counter is synchronized. After obtaining the preset enqueued data flow characteristics in the CGC module, the preset enqueued data flow characteristics can be configured for each network node in the switch through the CGC module.

[0090] Through the above solution, this embodiment adds a counter gate control CGC module to the Ethernet chip of the switch; the CGC module is used to configure each network node in the switch, which can quickly implement the configuration of each network node, and can use traditional Ethernet chips to implement TSN functions, thereby expanding the scope of use of traditional Ethernet switching chips and enhancing the compatibility of chips.

[0091] Furthermore, Figure 4 FIG. 1 is a flow chart of a third embodiment of a switch deterministic transmission method according to the present invention. Figure 4 As shown, a third embodiment of the switch deterministic transmission method of the present invention is proposed based on the first embodiment. In this embodiment, step S20 specifically includes the following steps:

[0092] Step S21: Obtain the minimum gating length of the network node of the switch from the CGC module, and use the minimum gating length as the preset time length.

[0093] It should be noted that the minimum gating length of the network node of the switch is obtained from the CGC module, and the minimum gating length can be used as the preset time length.

[0094] Step S22: Segment the data to be processed by the Ethernet switching chip according to the preset time length to obtain periodic data packets.

[0095] It is understandable that the counter can be transformed into a time counter by the preset time length, thereby realizing the transformation of the data driving mode of the Ethernet switch chip from an event-driven data plane to a time-driven data plane.

[0096] Furthermore, after step S22, the switch deterministic transmission method further includes the following steps:

[0097] The CGC module counts the periodic data packets to obtain the number of data packets, so as to realize the transformation of the data driving mode from the event-driven data plane to the time-driven data plane.

[0098] It should be understood that the core idea of ​​changing the data-driven mode of the Ethernet switching chip from the event-driven data plane to the time-driven data plane is to change the event-driven mode and construct a corresponding time-driven function, that is, to use periodic events to coordinate the execution of time-driven. Periodic events are realized by generating periodic data packets. The data to be processed of the Ethernet switching chip is divided according to the preset time length to obtain periodic data packets, and the periodic data packets are counted by the CGC module to obtain the number of data packets.

[0099] Through the above solution, this embodiment obtains the minimum gating length of the network node of the switch from the CGC module and uses the minimum gating length as the preset time length; divides the data to be processed of the Ethernet switching chip according to the preset time length to obtain periodic data packets; can enhance the compatibility of the chip and improve the economic benefits of the equipment, promote the integration of Internet technology (IT), communication technology (CT) and operation technology (OT), and effectively shorten the product development cycle.

[0100] Furthermore, Figure 5 FIG. 4 is a flow chart of a fourth embodiment of a switch deterministic transmission method according to the present invention. Figure 5 As shown, a fourth embodiment of the switch deterministic transmission method of the present invention is proposed based on the first embodiment. In this embodiment, step S30 specifically includes the following steps:

[0101] Step S31: upon receiving a packet sending start instruction, calling the CGC module to synchronously count data packets of each time-sensitive network node in the switch.

[0102] It should be noted that when a packet start instruction is received, the CGC module can be called to synchronously count data packets for each time-sensitive network node in the switch. Generally, after the controller sends a packet counter start command, the time-sensitive network node is controlled to synchronously start the packet generator, and the counter of each device detects the packet and starts synchronous counting.

[0103] Step S32: upon receiving the gate control request sent by the controller, cyclically querying the counter gate control table of the CGC module according to the gate control request, controlling the switch of the sending channel according to the table query result, and transmitting the periodic data packet through the sending channel.

[0104] It can be understood that when the gate control requirement issued by the controller is received, the counter gate control table entry of the CGC module can be cyclically queried according to the gate control requirement, and then the switch of the sending channel can be controlled according to the table query result, and the periodic data packet can be transmitted through the sending channel.

[0105] It should be understood that by configuring the packet generator module through a programmable language, the switching chip can send packets at intervals of 1us, and then the packet count of the generator is monitored through the counter module. Every increase of 1 in the counter represents the passage of 1us. This time length is also the minimum gating length of the network node. The packet count is meaningfully converted into a tick, and cyclic control is performed according to the gating requirements issued by the controller. Generally, this accuracy can meet the needs of most industrial control scenarios.

[0106] In the specific implementation, as shown in the following table, a GCL table entry is constructed using a programming language. The table entry is divided into eight queues (Q0 to Q7). The highest priority queue represents time-sensitive data flows, and the lowest priority queue represents normal service data. Each queue is divided into 128 time slots (T0-T127). Each time slot has 16 bits. The highest bit is the gate enable bit. Setting it to 1 indicates normal forwarding, and setting it to 0 indicates discarding.

[0107]

[0108] According to the 1us tick in step 1, the length of a single time slot that can be controlled is 2 15 us.

[0109] Through the above scheme, this embodiment calls the CGC module to synchronously count data packets for each time-sensitive network node in the switch when receiving a packet start instruction; when receiving a gate control requirement issued by the controller, cyclically queries the counter gate control table entry of the CGC module according to the gate control requirement, controls the switch of the sending channel according to the table query result, and transmits the periodic data packet through the sending channel. It can use traditional Ethernet chips to implement TSN functions, expand the scope of use of traditional Ethernet switching chips, enhance chip compatibility, and improve the economic benefits of equipment, promote the integration of Internet technology IT, communication technology CT and operation technology OT, effectively shorten the product development cycle, and can replace equipment with professional TSN chips for networking, so that related products have better economic benefits, reduce operating costs, and improve production efficiency and product quality.

[0110] Furthermore, Figure 6 FIG. 5 is a flow chart of a fifth embodiment of a switch deterministic transmission method according to the present invention. Figure 6 As shown, a fifth embodiment of the switch deterministic transmission method of the present invention is proposed based on the fourth embodiment. In this embodiment, step S32 specifically includes the following steps:

[0111] Step S321: upon receiving a gate control request from a controller, cyclically querying the counter gate control table entries of the CGC module according to the gate control request, obtaining a table query result, and obtaining a highest priority queue and a lowest priority queue from the table query result.

[0112] It should be noted that when the gate control requirement issued by the controller is received, the counter gate control table items of the CGC module can be cyclically queried according to the gate control requirement to obtain the corresponding table query results. There are queues with different priority levels in the table query results, and the highest priority queue and the lowest priority queue are obtained from the table query results.

[0113] Step S322: Acquire the configuration package characteristics of the access control list of the switch, and represent the time-sensitive data flow in the data to be transmitted with the highest priority queue according to the configuration package characteristics, and represent the ordinary service data in the data to be transmitted with the lowest priority queue data.

[0114] It can be understood that after obtaining the configuration package characteristics of the access control list of the switch, the time-sensitive data flow in the data to be transmitted can be represented by the highest priority queue, and the ordinary business data in the data to be transmitted can be represented by the lowest priority queue data. The data flow is classified and processed through the access control list (ACL) configuration package characteristics of the switch, and the time-sensitive data flow enters the high priority queue, and the general data flow enters the low priority queue.

[0115] Step S323: Obtain the gating status of each time slot in each queue according to the table query result, and control the sending channel to transmit the periodic data packet according to the gating status.

[0116] It should be understood that the gating status of different time slots in each queue is obtained through the table query result, and the sending channel can be controlled to transmit the data to be transmitted through the gating status.

[0117] In a specific implementation, as shown in the counter gate control table entry in the previous embodiment, the data stream at the device end is classified and enters one of the corresponding eight queues, such as the highest priority queue 7. The GCL table entry is used to query whether the gate control of the first time slot is closed, that is, to check whether Q7T0

[15] is 0. If the retrieval of Q7T0

[15] is 0, it means that it is closed, and the corresponding action is to discard all data streams in the queue. Assume that the value configured for Q7T0

[14] -Q7T0[0] is K. The moment when the closing ends is the moment when the value of the counter increases by K; the duration of the closing is K multiplied by the duration of a single tick, which is Kus in the example of this article; if the retrieval of Q7T0

[15] is 1, it means opening, and the corresponding action is to forward all data flows of the queue normally; assuming that the value configured for Q7T0

[14] -Q7T0[0] is K; the moment when the forwarding ends is the moment when the value of the counter increases by K; the duration of the forwarding is K multiplied by the duration of a single tick, which is Kus in the example of this article; after the gating of the first time slot of the queue is completed, the gating of the second time slot will continue to be executed, in the example of this article, from Q7T0 to Q7T127. After completing the gating of all 128 time slots, it will return to the first time slot and execute in an infinite loop.

[0118] From the perspective of networking, the controller can configure the GCL table entries of each network node, thereby accurately controlling time-sensitive data flows to arrive at the destination at a determined time.

[0119] In this embodiment, each tick is 1 μs. This value is not limiting and can be smaller or larger than 1 μs, depending on hardware capabilities and time sensitivity requirements. This embodiment does not impose any restrictions on this. The 128-slot cycle defined in the counter gate control table GCL is also not limiting; fewer or more time slots can be defined. In this example, each time slot is 16 bits, which is also not limiting.

[0120] Through the above-mentioned solution, this embodiment, upon receiving a gate control request issued by the controller, cyclically queries the counter gate control table entries of the CGC module according to the gate control request to obtain a table query result, and obtains the highest priority queue and the lowest priority queue from the table query result; obtains the configuration package characteristics of the access control list of the switch, and represents the time-sensitive data flow in the data to be transmitted with the highest priority queue and represents the ordinary service data in the data to be transmitted with the lowest priority queue data according to the configuration package characteristics; obtains the gating status of each time slot in each queue according to the table query result, and controls the transmission channel to transmit the periodic data packet according to the gating status. This allows the use of traditional Ethernet chips to implement TSN functions, expand the scope of use of traditional Ethernet switching chips, enhance chip compatibility, and improve the economic benefits of equipment, promote the integration of Internet technology (IT), communication technology (CT), and operation technology (OT), effectively shorten the product development cycle, and can replace equipment with professional TSN chips for networking, so that related products have better economic benefits, reduce operating costs, and improve production efficiency and product quality.

[0121] Accordingly, the present invention further provides a switch deterministic transmission device.

[0122] Reference Figure 7 , Figure 7 This is a functional module diagram of the first embodiment of the switch deterministic transmission device of the present invention.

[0123] In a first embodiment of a switch deterministic transmission device of the present invention, the switch deterministic transmission device includes:

[0124] The configuration module 10 is configured to perform counter gate control on the Ethernet chip of the switch according to the counter gate control CGC module.

[0125] The driving conversion module 20 is configured to determine a preset time length through the CGC module, and segment the data to be processed of the Ethernet switching chip according to the preset time length to obtain periodic data packets.

[0126] The data transmission module 30 is configured to control the switch of the transmission channel through the CGC module, and transmit the periodic data packet through the transmission channel.

[0127] The configuration module 10 is further configured to add a counter gate control CGC module to the Ethernet chip of the switch; and configure each network node in the switch through the CGC module.

[0128] The configuration module 10 is further configured to obtain preset in-queue data flow characteristics in the CGC module; and configure the preset in-queue data flow characteristics for each network node in the switch through the CGC module.

[0129] The driving conversion module 20 is further used to obtain the minimum gating length of the network node of the switch from the CGC module, and use the minimum gating length as the preset time length; divide the data to be processed of the Ethernet switching chip according to the preset time length to obtain periodic data packets.

[0130] The driving conversion module 20 is further configured to count the periodic data packets through the CGC module to obtain the number of data packets, so as to realize the conversion of the data driving mode from the event-driven data plane to the time-driven data plane.

[0131] The data transmission module 30 is further configured to, upon receiving a packet start instruction, call the CGC module to synchronously count data packets for each time-sensitive network node in the switch; upon receiving a gate control request issued by the controller, cyclically query the counter gate control table entry of the CGC module according to the gate control request, control the switching of the sending channel according to the table query result, and transmit the periodic data packet through the sending channel.

[0132] The data transmission module 30 is further configured to, upon receiving a gate control requirement issued by the controller, cyclically query the counter gate control table entries of the CGC module according to the gate control requirement, obtain a table query result, and obtain a highest priority queue and a lowest priority queue from the table query result; obtain configuration package characteristics of the access control list of the switch, and represent the time-sensitive data stream in the data to be transmitted with the highest priority queue and represent the ordinary business data in the data to be transmitted with the lowest priority queue data according to the configuration package characteristics; obtain the gating status of each time slot in each queue according to the table query result, and control the sending channel to transmit the periodic data packet according to the gating status.

[0133] The steps implemented by the functional modules of the switch deterministic transmission device may refer to the various embodiments of the switch deterministic transmission method of the present invention, and will not be described in detail here.

[0134] In addition, an embodiment of the present invention further provides a storage medium, wherein a switch deterministic transmission program is stored on the storage medium. When the switch deterministic transmission program is executed by a processor, the following operations are implemented:

[0135] The counter gate control CGC module controls the Ethernet chip of the switch.

[0136] Determining a preset time length through the CGC module, dividing the data to be processed by the Ethernet switch chip according to the preset time length to obtain periodic data packets;

[0137] The CGC module controls the switch of the sending channel, and transmits the periodic data packet through the sending channel.

[0138] Furthermore, when the switch deterministic transmission program is executed by the processor, the following operations are also implemented:

[0139] Add a counter gate control CGC module to the Ethernet chip of the switch;

[0140] Each network node in the switch is configured through the CGC module.

[0141] Furthermore, when the switch deterministic transmission program is executed by the processor, the following operations are also implemented:

[0142] Obtaining preset queue data flow characteristics in the CGC module;

[0143] The preset in-queue data flow characteristics are configured for each network node in the switch through the CGC module.

[0144] Furthermore, when the switch deterministic transmission program is executed by the processor, the following operations are also implemented:

[0145] Obtaining a minimum gating length of a network node of the switch from the CGC module, and using the minimum gating length as a preset time length;

[0146] The data to be processed of the Ethernet switching chip is divided according to the preset time length to obtain periodic data packets.

[0147] Furthermore, when the switch deterministic transmission program is executed by the processor, the following operations are also implemented:

[0148] The CGC module counts the periodic data packets to obtain the number of data packets, so as to realize the transformation of the data driving mode from the event-driven data plane to the time-driven data plane.

[0149] Furthermore, when the switch deterministic transmission program is executed by the processor, the following operations are also implemented:

[0150] Upon receiving a packet start instruction, calling the CGC module to synchronously count data packets of each time-sensitive network node in the switch;

[0151] When receiving the gate control request sent by the controller, the counter gate control table of the CGC module is cyclically queried according to the gate control request, the switch of the sending channel is controlled according to the table query result, and the periodic data packet is transmitted through the sending channel.

[0152] Furthermore, when the switch deterministic transmission program is executed by the processor, the following operations are also implemented:

[0153] Upon receiving a gate control request sent by the controller, cyclically querying the counter gate control table entries of the CGC module according to the gate control request, obtaining a table query result, and obtaining a highest priority queue and a lowest priority queue from the table query result;

[0154] Obtaining a configuration package feature of the access control list of the switch, and representing a time-sensitive data flow in the data to be transmitted with the highest priority queue and representing ordinary service data in the data to be transmitted with data in the lowest priority queue according to the configuration package feature;

[0155] The gating state of each time slot in each queue is acquired according to the table query result, and the sending channel is controlled to transmit the periodic data packet according to the gating state.

[0156] Through the above scheme, this embodiment controls the counter gate of the Ethernet chip of the switch by controlling the CGC module according to the counter gate; determines the preset time length through the CGC module, and divides the data to be processed of the Ethernet switching chip according to the preset time length to obtain periodic data packets; controls the switch of the sending channel through the CGC module, and transmits the periodic data packets through the sending channel, which solves the problem of having to use special TSN chips or dedicated hardware in industrial Internet networks, can use traditional Ethernet chips to implement TSN functions, expand the scope of use of traditional Ethernet switching chips, enhance chip compatibility, and improve the economic benefits of equipment, promote the integration of Internet technology IT, communication technology CT and operation technology OT, effectively shorten the product development cycle, and can replace equipment with professional TSN chips for networking, so that related products have better economic benefits, reduce operating costs, and improve production efficiency and product quality.

[0157] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0158] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0159] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A switch deterministic transmission method, characterized in that: The switch deterministic transmission method includes: The counter gate control CGC module controls the Ethernet chip of the switch. Determining a preset time length through the CGC module, dividing the data to be processed by the Ethernet chip according to the preset time length to obtain periodic data packets; Counting the periodic data packets through the CGC module to obtain the number of data packets, so as to realize the transformation of the data driving mode from the event-driven data plane to the time-driven data plane; The CGC module controls the switch of the sending channel, and transmits the periodic data packet through the sending channel.

2. The switch deterministic transmission method according to claim 1, wherein: The counter gate control CGC module performs counter gate control on the Ethernet chip of the switch, including: Add a counter gate control CGC module to the Ethernet chip of the switch; Each network node in the switch is configured through the CGC module.

3. The switch deterministic transmission method according to claim 2, wherein: Configuring each network node in the switch through the CGC module includes: Obtaining preset queue data flow characteristics in the CGC module; The preset in-queue data flow characteristics are configured for each network node in the switch through the CGC module.

4. The switch deterministic transmission method according to claim 1, wherein: The step of determining a preset time length by the CGC module and segmenting the data to be processed by the Ethernet chip according to the preset time length to obtain periodic data packets includes: Obtaining a minimum gating length of a network node of the switch from the CGC module, and using the minimum gating length as a preset time length; The data to be processed by the Ethernet chip is divided according to the preset time length to obtain periodic data packets.

5. The switch deterministic transmission method according to claim 1, wherein: The step of controlling the switch of the transmission channel by the CGC module and transmitting the periodic data packet through the transmission channel includes: Upon receiving a packet start instruction, calling the CGC module to synchronously count data packets of each time-sensitive network node in the switch; When receiving the gate control request sent by the controller, the counter gate control table of the CGC module is cyclically queried according to the gate control request, the switch of the sending channel is controlled according to the table query result, and the periodic data packet is transmitted through the sending channel.

6. The switch deterministic transmission method according to claim 5, characterized in that: Upon receiving a gate control request sent by the controller, cyclically querying a counter gate control table entry of the CGC module according to the gate control request, controlling a switch of a sending channel according to a table query result, and transmitting the periodic data packet through the sending channel, including: Upon receiving a gate control request sent by the controller, cyclically querying the counter gate control table entries of the CGC module according to the gate control request, obtaining a table query result, and obtaining a highest priority queue and a lowest priority queue from the table query result; Obtaining a configuration package feature of the access control list of the switch, and representing a time-sensitive data flow in the data to be transmitted with the highest priority queue and representing ordinary service data in the data to be transmitted with the lowest priority queue according to the configuration package feature; The gating state of each time slot in each queue is acquired according to the table query result, and the sending channel is controlled to transmit the periodic data packet according to the gating state.

7. A switch deterministic transmission device, characterized in that: The switch deterministic transmission device includes: Configuration module, used for performing counter gate control on Ethernet chip of switch according to counter gate control CGC module; a driving conversion module, configured to determine a preset time length through the CGC module, and segment the data to be processed of the Ethernet chip according to the preset time length to obtain periodic data packets; The driving conversion module is further configured to count the periodic data packets through the CGC module to obtain the number of data packets, so as to realize the transformation of the data driving mode from the event-driven data plane to the time-driven data plane; The data transmission module is used to control the switch of the transmission channel through the CGC module, and transmit the periodic data packet through the transmission channel.

8. A switch deterministic transmission device, characterized in that: The switch deterministic transmission device includes: a memory, a processor, and a switch deterministic transmission program stored in the memory and executable on the processor, wherein the switch deterministic transmission program is configured to implement the steps of the switch deterministic transmission method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium stores a switch deterministic transmission program, which, when executed by a processor, implements the steps of the switch deterministic transmission method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Deterministic traffic scheduling method and device suitable for predictable time-critical service

    CN114884904A

  • Network control method and system adopting time scribing data scheduling strategy

    CN115622942A