Gating scheduling method, system, device and storage medium of network protocol

CN122802094APending Publication Date: 2026-09-22THE 711TH RES INST OF CHINA STATE SHIPBUILDING CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610886597.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-18
Publication Date
2026-09-22

AI Technical Summary

Technical Problem

这就使得在网络设备发生变化时,例如设备重启等,不同设备间的门控状态难以保持同步

Benefits of technology

[0016]有益效果:本申请实施例提供一种网络协议的门控调度方法、系统、设备和存储介质,该网络协议的门控调度方法包括:在检测到网络中的设备发生变化的情况下,确定目标门控周期和目标基准时间;根据目标门控周期、目标基准时间以及预设的预留周期数,确定网络中所有设备的门控开启时间;根据门控开启时间配置网络中所有设备的门控状态。本申请实施例提供的网络协议的门控调度方法通过在检测到网络中设备发生变化时确定目标基准时间和目标门控周期,实现目标基准时间和目标门控周期的动态调整,并根据动态调整的目标基准时间和目标门控周期动态确定网络中所有设备的门控开启时间,从而根据动态调整的门控开启时间配置所有设备的门控状态,以实现在门控调度中网络设备发生变化时仍然能够保持同步。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122802094A_ABST
    Figure CN122802094A_ABST
Patent Text Reader

Abstract

The application discloses a network protocol gating scheduling method, system, device and storage medium, and belongs to the technical field of industry. The method comprises the following steps: in the case that it is detected that the device in the network changes, a target gating period and a target reference time are determined; according to the target gating period, the target reference time and a preset reserved period number, the gating opening time of all devices in the network is determined; and according to the gating opening time, the gating state of all devices in the network is configured. The application determines the target reference time and the target gating period when detecting that the device in the network changes, realizes dynamic adjustment of the target reference time and the target gating period, dynamically determines the gating opening time of all devices in the network according to the dynamically adjusted target reference time and the target gating period, and configures the gating state of all devices according to the dynamically adjusted gating opening time, so that synchronization can be maintained when the network device changes in the gating scheduling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of general industrial technology, specifically to gating scheduling methods, systems, devices, and storage media for network protocols. Background Technology

[0002] In Time-Sensitive Networking (TSN), the gating mechanism of the IEEE 802.1 Qbv protocol is a key technology for achieving deterministic transmission. Related technologies use a static configuration method for Qbv scheduling, with fixed gating times. This makes it difficult to maintain synchronization of gating states between different devices when network devices change, such as during device restarts. Summary of the Invention

[0003] A gating scheduling method, system, device, and storage medium for network protocols are provided to enable network devices to maintain synchronization even when changes occur during gating scheduling.

[0004] Firstly, a gating scheduling method for network protocols is provided, including: Upon detecting changes in devices within the network, determine the target gating period and target reference time; Based on the target gating period, the target reference time, and the preset number of reserved periods, determine the gating opening time for all devices in the network; Configure the gating status of all devices in the network based on the gating opening time.

[0005] In some embodiments, a method for determining a target reference time includes: The target reference time is determined based on the start point of the next operating cycle when a device in the network undergoes a change.

[0006] In some embodiments, the formula for calculating the target reference time is: ; in, Indicates the target reference time; This indicates the number of cycles during which changes occur in devices within the network. This indicates the initial gating period.

[0007] In some embodiments, determining the gating start time for all devices in the network based on the target gating period, the target reference time, and a preset number of reserved periods includes: Based on the target gating period, the target reference time, and the current time, determine the target number of periods from the current time to the target reference time; Based on the target number of cycles, the target gating cycle, and the reserved number of cycles, determine the gating start time for all devices in the network.

[0008] In some embodiments, the formula for calculating the target number of cycles is: ; in, Indicates the target number of cycles; Indicates the current time; Indicates the target reference time; Indicates the target gating period.

[0009] In some embodiments, the formula for calculating the gate opening time is: ; in, Indicates the gate opening time; Indicates the target number of cycles; n represents the reserved number of cycles; Indicates the target gating period.

[0010] In some embodiments, all devices in the network have the same target gating period and the same target base time.

[0011] In some embodiments, changes in devices in the network include: devices in the network being rebooted and / or hot-plugged, or new devices being added to the network.

[0012] In some embodiments, the method further includes: during the network initialization phase, synchronizing the time of all devices in the network using a preset time synchronization protocol to set the initial reference time and initial gating period for all devices.

[0013] Secondly, embodiments of this application also provide a gating and scheduling system for a network protocol, comprising: The first determining module is used to determine the target gating period and the target reference time when a change in a device in the network is detected. The second determining module is used to determine the gating opening time of all devices in the network based on the target gating cycle, the target reference time, and the preset number of reserved cycles. The configuration module is used to configure the gating status of all devices in the network according to the gating opening time.

[0014] Thirdly, embodiments of this application also provide an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the computer program, when executed by the processor, implements the method described in the first aspect.

[0015] Fourthly, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform the steps of the method described in the first aspect.

[0016] Beneficial Effects: This application provides a gating scheduling method, system, device, and storage medium for a network protocol. The gating scheduling method includes: determining a target gating period and a target reference time when a change in a device in the network is detected; determining the gating start time of all devices in the network based on the target gating period, the target reference time, and a preset number of reserved periods; and configuring the gating state of all devices in the network according to the gating start time. The gating scheduling method provided in this application determines the target reference time and the target gating period when a change in a device in the network is detected, enabling dynamic adjustment of the target reference time and the target gating period. It then dynamically determines the gating start time of all devices in the network based on the dynamically adjusted target reference time and the target gating period, thereby configuring the gating state of all devices according to the dynamically adjusted gating start time. This ensures that synchronization can be maintained even when network devices change during gating scheduling. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart of a network protocol gating scheduling method provided in the embodiments of this application; Figure 2 This is a schematic diagram illustrating the Qbv gate opening time calculation principle provided in the embodiments of this application; Figure 3 This is a schematic diagram of the gating synchronization system and time synchronization relationship provided in the embodiments of this application; Figure 4 This is a flowchart of the gating state alignment provided in the embodiments of this application; Figure 5 This is a schematic diagram of the principle structure of a network protocol gating scheduling system provided in the embodiments of this application. Detailed Implementation

[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0020] In the description of this application, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.

[0021] "A and / or B" includes the following three combinations: A only, B only, and a combination of A and B.

[0022] The use of "applies to" or "configured to" in this application implies open and inclusive language, which does not exclude the applicability to or configuration to devices performing additional tasks or steps. Additionally, the use of "based on" implies openness and inclusivity, because processes, steps, calculations, or other actions "based on" one or more of the stated conditions or values ​​may in practice be based on additional conditions or values ​​beyond those stated.

[0023] In this application, the term "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.

[0024] The applicant's research revealed that the gating mechanism of the IEEE 802.1 Qbv protocol in time-sensitive networks is a key technology for achieving deterministic transmission. Related technologies employ a static configuration method for Qbv scheduling, with fixed gating activation times. This makes it difficult to maintain gating state synchronization when network devices restart or reconfigure, leading to difficulties in aligning gating states between different devices and impacting network determinism. Therefore, the related technologies suffer from the following problems: First, gating states may become misaligned after device restarts. Second, gating synchronization is difficult when adding new devices during network expansion. Third, inconsistent responses from different devices occur when dynamically adjusting gating parameters. Fourth, inconsistent handling of reserved time leads to scheduling conflicts.

[0025] In view of this, embodiments of this application provide a gating scheduling method, system, device, and storage medium for network protocols. Embodiments of this application determine a target reference time and a target gating period when a change in a device in the network is detected, thereby achieving dynamic adjustment of the target reference time and the target gating period. Based on the dynamically adjusted target reference time and the target gating period, the gating opening time of all devices in the network is dynamically determined, and the gating status of all devices is configured according to the dynamically adjusted gating opening time, so as to maintain synchronization even when network devices change during gating scheduling.

[0026] It should be noted that the network in this application embodiment is a time-sensitive network, and the network protocol is the Qbv protocol of time-sensitive network.

[0027] Figure 1 This is a flowchart illustrating a network protocol gating scheduling method provided in an embodiment of this application. This embodiment provides a network protocol gating scheduling method applicable to network control systems, ensuring that all devices in a Time-Sensitive Networking (Qbv) protocol gating scheduling system remain synchronized even when network devices change. This method can be executed by a network protocol gating scheduling system, which can be implemented in software and / or hardware, and can be configured in the processor or controller of the network control system. Please refer to... Figure 1 The method includes the following steps: Step 110: If a change is detected in a device in the network, determine the target gating period and the target reference time.

[0028] The target gating period and target reference time refer to the gating period and reference time of each device in the network. These are dynamically changing parameters.

[0029] In some embodiments, all devices in the network have the same target gating period and the same target base time.

[0030] All devices in the network use the same target gating period and the same target base time.

[0031] In some embodiments, changes in devices in the network include: devices in the network being rebooted and / or hot-plugged, or new devices being added to the network.

[0032] A device restart in a network refers to, for example, assuming 10 devices are running on the network, and a malfunction or power outage causes them to need to restart. Hot-swapping of devices in a network refers to the need to hot-swap devices due to adjustments in their operating schedules (related to actual operating conditions). The addition of new devices to the network refers to, for example, assuming 10 devices are running on the network, and one or more new devices need to be added to the network.

[0033] The network protocol gating scheduling method provided in this application dynamically adjusts the target gating period and target base time of all devices in the network (including the determination of the target gating period and target base time for new devices if new devices are added) when changes such as device restarts, hot-plugging, and the addition of new devices are detected in the network. This facilitates the subsequent dynamic adjustment of the gating opening time of all devices, thereby enabling all devices to remain synchronized when network devices change, ensuring the determinism and scalability of the TSN network.

[0034] In some embodiments, the gating scheduling method of the network protocol further includes: during the network initialization phase, synchronizing the time of all devices in the network through a preset time synchronization protocol to set the initial reference time and initial gating period of all devices.

[0035] The preset time synchronization protocol can be the Precision Time Protocol (PTP).

[0036] Specifically, during the network initialization phase, all devices in the network synchronize their time to the same time using a preset time synchronization protocol, setting a globally unified initial reference time. and initial gating period .

[0037] It should be noted that even if changes are detected in devices within the network, the target gating period may still be the initial gating period. It could be any other value, and the specific setting can be adjusted according to the actual situation. No specific restrictions are made here.

[0038] In some embodiments, a method for determining a target reference time includes: The target reference time is determined based on the start point of the next operating cycle when a device in the network undergoes a change.

[0039] Specifically, when a change is detected in a device in the network, the target reference time and target gating period need to be adjusted. Assuming that the operating period when the device in the network changes is the current operating period, the starting point of the next operating period of the current operating period is selected as the new time reference time (i.e., the target reference time is determined).

[0040] In some embodiments, the formula for calculating the target reference time is: ; in, Indicates the target reference time; This indicates the number of cycles during which changes occur in devices within the network. This indicates the initial gating period.

[0041] Step 120: Determine the gating opening time of all devices in the network based on the target gating cycle, the target reference time, and the preset number of reserved cycles.

[0042] Since configuring the register for the gating opening time requires a certain amount of time, a certain amount of time needs to be reserved for configuring the opening, specifically n cycles (i.e., the number of reserved cycles). Here, n is a configurable parameter, and typically n≥1.

[0043] All devices in the network use the same number of reserved cycles.

[0044] In some embodiments, determining the gating start time of all devices in the network based on the target gating period, the target reference time, and the preset number of reserved periods includes: determining the target number of periods from the current time to the target reference time based on the target gating period, the target reference time, and the current time; and determining the gating start time of all devices in the network based on the target number of periods, the target gating period, and the number of reserved periods.

[0045] Specifically, the process for determining the gating start time of this network device is as follows: For example, assuming the network enters runtime after initialization, the devices in the network operate according to the initial reference time. and initial gating period Calculate the time from the current time to the initial reference time. The number of cycles (assuming it is the initial number of cycles) ), and according to the initial number of cycles. The gating start time for all devices in the network is calculated based on the reserved period number n. All devices in the network set their gating status according to this gating start time. When a change is detected in a device in the network (e.g., a fault, a power outage causing a restart, or the addition of a new device), parameters need to be adjusted, i.e., the target base time and target gating period need to be determined. Specifically, this is based on the operating cycle (i.e., the initial period number) when a change occurs in the network devices. The starting point of the next operating cycle (corresponding to the operating cycle) is used as the new reference time (i.e., the target reference time), and the gate control cycle is adjusted (i.e., the target gate control cycle is determined) based on the actual situation.

[0046] Then, based on the target reference time, target gating period, and current time, determine the target number of cycles from the current time to the target reference time. Next, based on the target number of cycles, target gating period, and reserved cycles, determine the gating start time for all devices in the network (including newly added devices if any). (The calculation formula is the same as the gating start time calculation formula; simply substitute the initial number of cycles.) Initial gating cycle (And the number of reserved cycles n).

[0047] When a change in a device is detected in the network again, the parameters are readjusted, i.e., the target base time and target gating period are redefined. This re-determination of the target base time and target gating period is based on the starting point of the next operating cycle of the device at the time of the change (i.e., the operating cycle corresponding to the previously calculated target cycle number) as the new base time (i.e., the target base time). The decision to adjust the gating period (i.e., determine the target gating period) is then made based on the actual situation. Then, the gating start time for all devices in the network (including newly added devices if any) is determined following the same process. This ensures that all devices in the network remain synchronized during Qbv protocol gating scheduling in the TSN network when changes occur, such as device restarts or the addition of new devices. For example, it prevents gating errors after a restart, ensures synchronization between gating of newly added devices and existing devices during network expansion, maintains consistent responses from all devices when dynamically adjusting gating parameters (e.g., adjusting the gating period and base time), and guarantees consistency across all devices during gating scheduling.

[0048] The formula for calculating the initial number of cycles is as follows: ; in, Indicates the initial number of cycles; Indicates the current time; Indicates the initial reference time; This indicates the initial gating period.

[0049] In some embodiments, the formula for calculating the target number of cycles is: ; in, Indicates the target number of cycles; Indicates the current time; Indicates the target reference time; Indicates the target gating period.

[0050] In some embodiments, the formula for calculating the gate opening time is: ; in, Indicates the gate opening time; Indicates the target number of cycles; n represents the reserved number of cycles; Indicates the target gating period.

[0051] Figure 2 This is a schematic diagram illustrating the Qbv gate opening time calculation principle provided in an embodiment of this application. For example, see [link to relevant documentation]. Figure 2 The basic implementation steps for Qbv gating start time calculation include: First, configuring the initial reference time during network initialization. Initial gating cycle And the reserved number of cycles n. Then, when the device joins the network, it synchronizes with the network time via the PTP protocol and calculates the current number of cycles. Set the gate opening time to Secondly, the time synchronization status is periodically checked during device operation (e.g., by verifying time synchronization via timestamps). Finally, a new base time is broadcast when parameters are adjusted, and all devices recalculate the gate opening time.

[0052] Specifically, the process of dynamically adjusting the parameters is as follows: when it is detected that the gating period needs to be adjusted... When that happens, the starting point of the next cycle is selected as the new reference time. Network management devices can obtain... and And configure it for all devices. Devices from Start using Gating calculations are performed. The value of n remains constant during the dynamic adjustment of parameters to ensure the continuity of gating scheduling.

[0053] Step 130: Configure the gating status of all devices in the network according to the gating opening time.

[0054] The gate status includes an open state or a closed state. For example, the open state corresponds to the logical number 1, and the closed state corresponds to the logical number 0.

[0055] Figure 3 This is a schematic diagram of the gating synchronization system and time synchronization relationship provided in the embodiments of this application. The gating synchronization system includes a time synchronization module, a period calculation module, a gating configuration module, and a communication module. The time synchronization module is used to maintain network time synchronization, the period calculation module is used to calculate the current period number, the gating configuration module is used to set the gating opening time, and the communication module is used to transmit reference parameters. For example, see [link to relevant documentation]. Figure 3 Taking a gated synchronization system comprising a first switch, a second switch, a first network interface card (NIC) 01, a second NIC 02, a third NIC 11, and a fourth NIC 12 as an example, S and M refer to the switch interfaces. This means that several modules (i.e., the first switch, the second switch, the first NIC 01, the second NIC 02, the third NIC 11, and the fourth NIC 12) are connected in a daisy-chain configuration. This daisy-chain connection is the basis for configuration, and time synchronization between these modules is achieved through the IEEE 802.1Qbv protocol.

[0056] Figure 4 This is a flowchart of the gating state alignment provided in the embodiments of this application. For example, see [link to relevant documentation]. Figure 4 The automatic alignment process for the gating state is as follows: First, Qbv is enabled, and the initial reference time is obtained. And the large cycle (i.e., the initial gating period P). Then, calculate the current cycle number. Secondly, calculate the gate opening time. Then, the start time (i.e., the gate opening time) is sent out. The parameters and enablement of P and Qbv for the large cycle are determined. Finally, the Qbv function is activated.

[0057] In summary, the network protocol gating scheduling method provided in this application dynamically determines the gating opening time by calculating the number of cycles from the current time to the reference time and combining this with the number of reserved cycles. In particular, by dynamically calculating the gating opening time, when a device experiences a power outage or malfunction, its gating time can still be aligned with the gating times of other devices after it resumes normal operation. This achieves dynamic adjustment of gating parameters without affecting existing gating scheduling. This method realizes automatic alignment of the gating status of all network devices, supports hot-swapping of devices and dynamic parameter adjustment, and improves the determinism and scalability of the TSN network. Furthermore, the network protocol gating scheduling method provided in this application has the following advantages: First, automatic synchronization: all devices automatically calculate and align their gating states.

[0058] Second, dynamic adaptation: supports hot-swapping of devices and dynamic expansion of the network.

[0059] Third, parameter unification: ensure the consistency of scheduling strategies across the entire network.

[0060] Fourth, certainty guarantee: precise control of reserved time to avoid scheduling conflicts.

[0061] Fifth, simplified configuration: only baseline parameters need to be configured, without the need to set up gating tables for each device individually.

[0062] Figure 5 This is a block diagram illustrating the principle structure of a network protocol gating and scheduling system provided in this application embodiment. This application embodiment also provides a network protocol gating and scheduling system; please refer to [link / reference]. Figure 5 The gating scheduling system 100 of the network protocol includes: a first determining module 101, used to determine the target gating period and the target reference time when a change is detected in the devices in the network; a second determining module 102, used to determine the gating opening time of all devices in the network according to the target gating period, the target reference time and the preset number of reserved periods; and a configuration module 103, used to configure the gating status of all devices in the network according to the gating opening time.

[0063] The technical solution of this application embodiment provides a network protocol gating scheduling system. By determining the target reference time and target gating period when a change in a device in the network is detected, the target reference time and target gating period are dynamically adjusted. The gating opening time of all devices in the network is dynamically determined according to the dynamically adjusted target reference time and target gating period. The gating status of all devices is configured according to the dynamically adjusted gating opening time, so as to maintain synchronization when network devices change during gating scheduling.

[0064] In some embodiments, the first determining module 101 is further configured to: The target reference time is determined based on the start point of the next operating cycle when a device in the network undergoes a change.

[0065] In some embodiments, the formula for calculating the target reference time is: ; in, Indicates the target reference time; This indicates the number of cycles during which changes occur in devices within the network. This indicates the initial gating period.

[0066] In some embodiments, the second confirming module 102 is further configured to: Based on the target gating period, the target reference time, and the current time, determine the target number of periods from the current time to the target reference time; Based on the target number of cycles, the target gating cycle, and the reserved number of cycles, determine the gating start time for all devices in the network.

[0067] In some embodiments, the formula for calculating the target number of cycles is: ; in, Indicates the target number of cycles; Indicates the current time; Indicates the target reference time; Indicates the target gating period.

[0068] In some embodiments, the formula for calculating the gate opening time is: ; in, Indicates the gate opening time; Indicates the target number of cycles; n represents the reserved number of cycles; Indicates the target gating period.

[0069] In some embodiments, all devices in the network have the same target gating period and the same target base time.

[0070] In some embodiments, changes in devices in the network include: devices in the network being rebooted and / or hot-plugged, or new devices being added to the network.

[0071] In some embodiments, the gating scheduling system 100 of the network protocol further includes a synchronization module, which is used to synchronize the time of all devices in the network through a preset time synchronization protocol during the network initialization phase, so as to set the initial reference time and initial gating period of all devices.

[0072] This embodiment also provides an electronic device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, it implements the method of any of the above embodiments.

[0073] This embodiment also provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform the steps of any of the methods in the above embodiments.

[0074] In the embodiments of this application, the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.

[0075] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0076] The above provides a detailed description of a network protocol gating scheduling method, system, device, and storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A gating scheduling method for a network protocol, characterized in that, include: Upon detecting changes in devices within the network, a target gating period and a target reference time are determined; Based on the target gating period, the target reference time, and the preset number of reserved periods, the gating opening time of all devices in the network is determined; Configure the gating status of all devices in the network according to the gating opening time.

2. The method according to claim 1, characterized in that, The method for determining the target reference time includes: The target reference time is determined based on the start point of the next operating cycle when a device in the network undergoes a change.

3. The method according to claim 2, characterized in that, The formula for calculating the target reference time is: ; in, Indicates the target reference time; This indicates the number of cycles during which changes occur in the devices within the network; This indicates the initial gating period.

4. The method according to claim 1, characterized in that, The step of determining the gating start time for all devices in the network based on the target gating period, the target reference time, and the preset number of reserved periods includes: Based on the target gating period, the target reference time, and the current time, determine the target number of periods from the current time to the target reference time; The gating start time for all devices in the network is determined based on the target number of cycles, the target gating cycle, and the reserved number of cycles.

5. The method according to claim 4, characterized in that, The formula for calculating the target number of cycles is: ; in, Indicates the target number of cycles; Indicates the current time; Indicates the target reference time; This indicates the target gating period.

6. The method according to claim 4, characterized in that, The formula for calculating the gate opening time is: ; in, Indicates the gate opening time; n represents the target number of cycles; n represents the reserved number of cycles; This indicates the target gating period.

7. The method according to claim 1, characterized in that, The target gating period is the same for all devices in the network, and the target reference time is the same for all devices.

8. The method according to claim 1, characterized in that, Changes in devices in the network include: devices in the network being restarted and / or hot-swapped, or new devices being added to the network.

9. The method according to claim 1, characterized in that, The method further includes: During the network initialization phase, the time of all devices in the network is synchronized using a preset time synchronization protocol to set the initial reference time and initial gating period for all devices.

10. A gating scheduling system for a network protocol, characterized in that, include: The first determining module is used to determine the target gating period and the target reference time when a change in a device in the network is detected. The second determining module is used to determine the gating opening time of all devices in the network based on the target gating period, the target reference time, and the preset number of reserved periods. The configuration module is used to configure the gating status of all devices in the network according to the gating opening time.

11. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, implements the method as described in any one of claims 1-9.

12. A computer-readable storage medium, characterized in that, It stores a computer program, which is loaded by a processor to perform the steps of the method as described in any one of claims 1-9.