Industrial network anti-downtime method, device and system and readable storage medium
By receiving and counting the number of timeout reports and determining and starting the corresponding anti-download strategy, the problem of single and poor performance of the medium and low-latency strategies in the existing technology is solved, and more effective network congestion relief and industrial network stability improvement are achieved.
Patent Information
- Application Number
- CN202510118721.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-04-11
AI Technical Summary
The low-latency strategy implemented by the existing wireless side is relatively single, and the delay improvement effect is poor, resulting in the risk of downtime in industrial production lines.
By receiving the timeout report sent by the core network element, count the number of receptions, and determine the target anti-download strategy based on the number of receptions, and start the corresponding policy to alleviate network congestion. Specific strategies include adjusting the delivery time of periodic services, increasing the VLAN_ID priority of profinet I/O, reducing the priority of non-real-time data, enabling pre-scheduling transmission mechanism, etc.
Effectively alleviate network congestion, reduce the probability of watchdog continuous timeout, and reduce the risk of industrial network downtime.
Smart Images

Figure CN119814663A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an industrial network anti-downtime method, device, system, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] The watchdog mechanism is a hardware or software mechanism whose main function is to prevent the system from freezing or being unresponsive for a long time. When the system is operating normally, the software or other system components need to send a reset signal to the watchdog periodically. If the watchdog does not receive the reset signal (i.e., timeout) within the specified time, it will be considered that the system has failed. At this time, the watchdog mechanism will be triggered, and it will send the timeout information to the wireless side. The wireless side uses a low-latency strategy to improve the latency. At the same time, the watchdog counter is increased by 1 until it reaches the specified threshold value, triggering the production line to enter a safe state. The equipment will be in an unavailable state and cannot be produced normally.
[0003] Currently, the low-latency strategy implemented on the wireless side is relatively simple, and the latency improvement effect is not good enough, resulting in the risk of downtime for industrial production lines. Summary of the invention
[0004] Based on this, it is necessary to provide an industrial network anti-downtime method, device, computer equipment, computer-readable storage medium and computer program product that can improve the latency improvement effect in response to the above technical problems.
[0005] In a first aspect, the present application provides an industrial network anti-downtime method, the method comprising:
[0006] Receiving a timeout report sent by a core network element, where the timeout report is sent to the core network element by the controller PLC through the application function AF when the controller PLC fails to receive a data packet within a timeout period;
[0007] Counting the number of times the timeout report is received, and when the number of times the timeout report is received is less than a downtime threshold, determining a target anti-downtime strategy according to the number of times the timeout report is received;
[0008] The target anti-downtime strategy is initiated to alleviate network congestion.
[0009] In one of the embodiments, determining a target anti-downtime strategy according to the number of times the timeout report is received includes:
[0010] When the number of times the timeout report is received is a first value, a first anti-downtime strategy is used as a target anti-downtime strategy, wherein the first anti-downtime strategy includes adjusting a packet sending time of a periodic service.
[0011] In one of the embodiments, determining a target anti-downtime strategy according to the number of times the timeout report is received includes:
[0012] When the number of times the timeout report is received is a second value, a second anti-downtime strategy is used as a target anti-downtime strategy, wherein the second anti-downtime strategy includes increasing the VLAN_ID priority of the process field network input / output profinet I / O;
[0013] The second value is smaller than the first value.
[0014] In one of the embodiments, determining a target anti-downtime strategy according to the number of times the timeout report is received includes:
[0015] When the number of times the timeout report is received is a third value, using a third anti-downtime strategy as a target anti-downtime strategy, wherein the third anti-downtime strategy includes at least one of lowering the priority of non-real-time data, enabling a pre-scheduled transmission mechanism, and increasing the communication resources allocated to real-time data;
[0016] The first value is greater than the third value, and the third value is greater than the second value.
[0017] In one embodiment, the starting the target anti-downtime strategy includes:
[0018] When it is determined that the factory meets the time-sensitive network TSN condition, sending a first clock adjustment request to the core network element, where the first clock adjustment request is used to instruct the core network element to obtain a target time offset value through a time-sensitive communication time synchronization function TSCTSF module;
[0019] Receiving a target time offset value sent by the core network element, and determining a target packet sending time based on the target time offset value;
[0020] Based on the target packet sending time, timing information is sent to the 5G module, so that the 5G module sends the timing information to the industrial terminal through the time-sensitive network TSN converter DS-TT, so that the industrial terminal controls data sending based on the target packet sending time.
[0021] In one embodiment, the starting the target anti-downtime strategy further includes:
[0022] When it is determined that the factory does not meet the time-sensitive network TSN conditions, a second clock adjustment request is sent to the core network network element, and the second clock adjustment request is used to instruct the core network network element to obtain the clock synchronization information of the industrial terminal through the TSCTSF module, and send the clock synchronization information to the AF, so that the AF sends the clock synchronization information to the industrial network, so that the industrial network determines the target time offset value based on the clock synchronization information, and sends the target packet sending time to the industrial terminal based on the target time offset value, so that the industrial terminal controls data sending based on the target packet sending time.
[0023] In one embodiment, the method further comprises:
[0024] If the next data packet is received before the timeout, the reception count of the timeout report is cleared.
[0025] In a second aspect, the present application provides an industrial network anti-downtime system, including a controller PLC, a base station, an application function AF, and a core network element, wherein:
[0026] When the PLC fails to receive the data packet within a timeout period, the PLC sends a timeout report to the core network element through the AF;
[0027] The core network element sends the timeout report to the base station;
[0028] The base station receives the timeout report and counts the number of times the timeout report is received. When the number of times the timeout report is received is less than the downtime threshold, a target anti-downtime strategy is determined according to the number of times the timeout report is received, and the target anti-downtime strategy is started to alleviate network congestion.
[0029] In a third aspect, the present application provides an industrial network anti-downtime device, which is applied to a base station, and the device includes:
[0030] A receiving module, used to receive a timeout report sent by a core network element, wherein the timeout report is sent to the core network element by the controller PLC through the application function AF when the controller PLC fails to receive a data packet within a timeout period;
[0031] A determination module, configured to count the number of times the timeout report is received, and determine a target anti-downtime strategy according to the number of times the timeout report is received when the number of times the timeout report is received is less than a downtime threshold;
[0032] The startup module is used to start the target anti-downtime strategy to alleviate network congestion.
[0033] In one embodiment, the determining module is specifically used to:
[0034] When the number of times the timeout report is received is a first value, a first anti-downtime strategy is used as a target anti-downtime strategy, wherein the first anti-downtime strategy includes adjusting a packet sending time of a periodic service.
[0035] In one embodiment, the determining module is further configured to:
[0036] When the number of times the timeout report is received is a second value, a second anti-downtime strategy is used as a target anti-downtime strategy, wherein the second anti-downtime strategy includes increasing the VLAN_ID priority of the process field network input / output profinet I / O;
[0037] The second value is smaller than the first value.
[0038] In one embodiment, the determining module is further configured to:
[0039] When the number of times the timeout report is received is a third value, using a third anti-downtime strategy as a target anti-downtime strategy, wherein the third anti-downtime strategy includes at least one of lowering the priority of non-real-time data, enabling a pre-scheduled transmission mechanism, and increasing the communication resources allocated to real-time data;
[0040] The first value is greater than the third value, and the third value is greater than the second value.
[0041] In one embodiment, the startup module is specifically used to:
[0042] When it is determined that the factory meets the time-sensitive network TSN condition, sending a first clock adjustment request to the core network element, where the first clock adjustment request is used to instruct the core network element to obtain a target time offset value through a time-sensitive communication time synchronization function TSCTSF module;
[0043] Receiving a target time offset value sent by the core network element, and determining a target packet sending time based on the target time offset value;
[0044] Based on the target packet sending time, timing information is sent to the 5G module, so that the 5G module sends the timing information to the industrial terminal through the time-sensitive network TSN converter DS-TT, so that the industrial terminal controls data sending based on the target packet sending time.
[0045] In one embodiment, the startup module is further used to:
[0046] When it is determined that the factory does not meet the time-sensitive network TSN conditions, a second clock adjustment request is sent to the core network network element, and the second clock adjustment request is used to instruct the core network network element to obtain the clock synchronization information of the industrial terminal through the TSCTSF module, and send the clock synchronization information to the AF, so that the AF sends the clock synchronization information to the industrial network, so that the industrial network determines the target time offset value based on the clock synchronization information, and sends the target packet sending time to the industrial terminal based on the target time offset value, so that the industrial terminal controls data sending based on the target packet sending time.
[0047] In one embodiment, the device further comprises:
[0048] The reset module clears the number of receptions of the timeout report if the next data packet is received before the timeout.
[0049] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements any of the above industrial network anti-downtime methods when executing the computer program.
[0050] In a fifth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, any of the above industrial network anti-downtime methods is implemented.
[0051] In a sixth aspect, the present application also provides a computer program product, including a computer program, which implements any of the above industrial network anti-downtime methods when executed by a processor.
[0052] The above-mentioned industrial network anti-downtime method, device, system, computer equipment, computer-readable storage medium and computer program product, the base station receives a timeout report sent by the core network element, the timeout report is sent to the core network element by the controller PLC through the application function AF when the data packet is not received within the timeout period; the number of times the timeout report is received is counted, and when the number of times the timeout report is received is less than the downtime threshold value, the target anti-downtime strategy is determined according to the number of times the timeout report is received; the target anti-downtime strategy is started to alleviate network congestion. Using the industrial network anti-downtime method, device, system, computer equipment, computer-readable storage medium and computer program product provided by the embodiments of the present application, the base station can enable the anti-downtime strategy in a graded manner according to the number of timeout reports, thereby effectively alleviating network congestion, reducing the probability of continuous timeouts of the door dog, and thus reducing the risk of industrial network downtime. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 A schematic diagram of a process flow of an industrial network anti-downtime method in one embodiment;
[0055] Figure 2 A schematic diagram of a process flow of an industrial network anti-downtime method in one embodiment;
[0056] Figure 3 is a flow chart of step 106 in one embodiment;
[0057] Figure 4 A schematic diagram of an industrial network anti-downtime method in one embodiment;
[0058] Figure 5 A structural block diagram of an industrial network anti-downtime device in one embodiment;
[0059] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0061] In an exemplary embodiment, Figure 1 As shown, a method for preventing downtime in an industrial network is provided, and the method is applied to a base station as an example for explanation, including the following steps 102 to 106. Among them:
[0062] Step 102, receiving a timeout report sent by a core network element, where the timeout report is sent by the controller PLC to the core network element through the application function AF when the controller PLC fails to receive a data packet within a timeout period.
[0063] In the disclosed embodiment, when a PLC (Programmable Logic Controller) fails to receive a data packet upon timeout, it may send a timeout report to an AF (Application Function), which in turn sends the timeout report to a core network element, which in turn sends the timeout report to a base station.
[0064] Exemplarily, after PLC sends a timeout report to AF, AF can send request messages to 5GC (5th Generation Core Network, the core network of the fifth generation mobile communication system) network elements such as NEF (Network Element Function) and PCF (Policy Control Function) based on the timeout report in turn, and the core network element responsible for communicating with the base station will send the timeout report to the core network element.
[0065] Step 104 , counting the number of times the timeout reports are received, and when the number of times the timeout reports are received is less than the downtime threshold, determining a target anti-downtime strategy according to the number of times the timeout reports are received.
[0066] In the disclosed embodiment, after receiving the timeout report, the base station can count the number of times the timeout report is received, and when the number of times the timeout report is received is less than the downtime threshold, the corresponding target anti-downtime strategy is matched from multiple anti-downtime strategies according to the number of times the timeout report is received, wherein the downtime strategy is a low-latency strategy for reducing latency. Alternatively, when the number of times the timeout report is received reaches the downtime threshold, it can be determined that the production line has entered a safe state.
[0067] Step 106: Start the target anti-downtime strategy to alleviate network congestion.
[0068] In the disclosed embodiment, after determining the target anti-downtime strategy, the base station can coordinate with the 5GC network element to execute the target anti-downtime strategy to reduce network latency, alleviate network congestion, and reduce the probability of continuous watchdog timeouts.
[0069] In the above-mentioned industrial network anti-downtime method, the base station receives a timeout report sent by a core network element, and the timeout report is sent to the core network element by the controller PLC through the application function AF when the controller PLC times out and fails to receive a data packet; the number of times the timeout report is received is counted, and when the number of times the timeout report is received is less than the downtime threshold value, the target anti-downtime strategy is determined according to the number of times the timeout report is received; and the target anti-downtime strategy is activated to alleviate network congestion. Using the industrial network anti-downtime method provided in the embodiment of the present application, the base station can enable the anti-downtime strategy in a graded manner according to the number of timeout reports, thereby effectively alleviating network congestion, reducing the probability of continuous timeouts of the door dog, and thus reducing the risk of industrial network downtime.
[0070] In an exemplary embodiment, determining a target anti-downtime strategy based on the number of times timeout reports are received may include: when the number of times timeout reports are received is a first value, using a first anti-downtime strategy as the target anti-downtime strategy, the first anti-downtime strategy including adjusting the packet sending time of periodic services.
[0071] In an exemplary embodiment, determining a target anti-downtime strategy based on the number of times a timeout report is received may also include: when the number of times a timeout report is received is a second value, using a second anti-downtime strategy as the target anti-downtime strategy, the second anti-downtime strategy including increasing the VLAN_ID priority of the process field network input / output profinet I / O; wherein the second value is less than the first value.
[0072] In an exemplary embodiment, determining a target anti-downtime strategy based on the number of times timeout reports are received may also include: when the number of times timeout reports are received is a third value, using the third anti-downtime strategy as the target anti-downtime strategy, the third anti-downtime strategy including at least one of lowering the priority of non-real-time data, enabling a pre-scheduled transmission mechanism, and increasing communication resources allocated to real-time data; wherein the first value is greater than the third value, and the third value is greater than the second value.
[0073] Exemplarily, assume that the second value is P1, the third value is P2, and the first value is P3, where P3>P2>P1. Then, when the number of times the timeout report is received is P1, the target anti-downtime strategy can be determined to be the second anti-downtime strategy; when the number of times the timeout report is received is P2, the target anti-downtime strategy can be determined to be the third anti-downtime strategy; when the number of times the timeout report is received is P3, the target anti-downtime strategy can be determined to be the first anti-downtime strategy. For example: taking the downtime threshold value of 4 as an example, P1 can be set to 1, P2 to 2, and P3 to 3, or taking the downtime threshold value of 5 as an example, P1 can be set to 1, P2 to 2, and P3 to 4. The values of P1, P2, and P3 are not specifically limited in the embodiments of the present disclosure.
[0074] Among them, the second anti-downtime strategy includes increasing the VLAN_ID priority of the process field network input / output profinet I / O. Profinet is an industrial Ethernet standard, mainly used in the field of industrial automation, to achieve communication between industrial equipment, such as information exchange and control between sensors, actuators, PLCs, etc. Profinet I / O is the input and output part of the profinet standard, responsible for processing the input and output data of industrial equipment, for example: the data collected by the sensor is transmitted to the PLC for processing through the profinet I / O, and the control command of the PLC is transmitted to the actuator through the profinet I / O to perform the corresponding action.
[0075] VLAN (Virtual Local Area Network) can divide a physical network into multiple logical networks. VLAN_ID is a number used to identify different VLANs. In industrial networks, PROFINET I / O data is often assigned a specific VLAN_ID to manage PROFINET I / O data.
[0076] When the timeout report is received for the first time (eg, the first time), the base station may initiate the second anti-downtime strategy, that is, increase the VLAN_ID priority of the profinet I / O, thereby reducing the transmission delay.
[0077] That is, in the embodiment of the present disclosure, in the industrial Internet of Things scenario, the 5G network is combined with industrial automation. In this scenario, the PLC controls various devices on the industrial production line. When an abnormal situation such as a timeout occurs, the information transmission and collaboration between multiple network elements of the 5G network are used to adopt a corresponding low-latency strategy to ensure the timely transmission of key data (such as PROFINET I / O data) and improve the efficiency and stability of industrial production. For example, in an industrial network, there may be multiple types of data being transmitted, including ordinary monitoring data and important control data (PROFINET I / O data). When the low-latency strategy is activated, the PROFINET I / O data will be processed first to ensure the timeliness of its transmission and avoid delays caused by network congestion and other problems.
[0078] The third anti-downtime strategy includes at least one of lowering the priority of non-real-time data, enabling a pre-scheduled transmission mechanism, and increasing the communication resources allocated for real-time data.
[0079] Among them, lowering the priority of non-RT (real time) data includes: RT data usually refers to real-time data, which is very time-sensitive and needs to be transmitted as soon as possible, such as key control signals in industrial control, real-time monitoring data, etc. Non-RT data is relatively less urgent data, such as some periodic status reports, historical data storage, etc. By lowering the priority of non-RT data, network resources can be tilted more towards RT data. For example, when the network bandwidth is limited, part of the bandwidth originally allocated to non-RT data will be transferred to RT data, which can ensure that real-time data can be transmitted faster, thereby improving the real-time performance of the system.
[0080] Enabling the pre-scheduled transmission mechanism includes: The pre-scheduled transmission mechanism is a measure taken to improve the timeliness of data transmission. Normally, data transmission is scheduled based on the request of the device or the dynamic allocation of the network. Enabling the pre-scheduled transmission mechanism means allocating transmission resources for RT data in advance, rather than waiting for the request of the device or following the regular scheduling order, thereby reducing the waiting time for data transmission and improving the certainty and timeliness of transmission.
[0081] Improving the communication resources allocated to real-time data includes: In addition to reducing the priority of non-RT data, it will also directly increase the communication resources allocated to RT data, mainly bandwidth. More bandwidth means that RT data can be transmitted faster, reducing transmission time and delay. For example, if the original bandwidth allocated to RT data is 10Mbps, it may now be increased to 20Mbps, so that more RT data can be transmitted simultaneously, increasing the data transmission rate and meeting the needs of real-time data transmission.
[0082] When the timeout report is received for the P2th time (for example, the second reception), the base station can start the third anti-downtime strategy. In this way, by adjusting the priority of the data, adopting at least one of the pre-scheduling mechanism and increasing the bandwidth, the problems caused by the timeout can be alleviated to a certain extent, thereby effectively ensuring the continuity and stability of industrial production.
[0083] The first anti-downtime strategy includes adjusting the packet sending time of periodic services. The first anti-downtime strategy refers to the service adaptation network, adjusting the service packet sending time to avoid congestion, thereby reducing the probability of watchdog timeout. When the timeout report is received for the P3th time (for example, the third time), the base station can start the first anti-downtime strategy.
[0084] In an exemplary embodiment, referring to Figure 2 As shown, in step 106, starting the target anti-downtime strategy may include the following steps 202 to 206, wherein:
[0085] Step 202: When it is determined that the factory meets the TSN condition, a first clock adjustment request is sent to a core network element, where the first clock adjustment request is used to instruct the core network element to obtain a target time offset value through a time sensitive communication time synchronization function TSCTSF module.
[0086] Step 204, receiving a target time offset value sent by a core network element, and determining a target packet sending time based on the target time offset value;
[0087] Step 206, sending timing information to the 5G module based on the target packet sending time, so that the 5G module sends timing information to the industrial terminal through the time sensitive network TSN converter DS-TT, so that the industrial terminal controls data sending based on the target packet sending time.
[0088] In the disclosed embodiment, the time-sensitive network TSN condition may include that the factory has a deterministic network, uses TSN (Time-Sensitive Networking) technology, and has a TSN converter (including DS-TT (Device-side TSN translator) and NW-TT (Network-side TSN translator). The base station may send a first clock adjustment request to the core network element based on the timeout report, and the first clock adjustment request is used to request service orchestration.
[0089] After the core network element receives the first clock adjustment request, the target time offset value can be obtained through the TSCTSF (Time SensitiveCommunication Time Synchronization Function) module. Exemplarily, the AF can establish PDU (Protocol Data Unit) session communications with the core network element and the industrial network in advance, so that the target time offset value can be jointly determined between the two heterogeneous systems of 5G and the industrial network, and stored in the TSCTSF module. After the core network element receives the first clock adjustment request, it can request to obtain the target time offset value from the TSCTSF module. Alternatively, the AF can also establish PDU (Protocol Data Unit) session communications with the core network element and the industrial network in response to the first clock adjustment request, so that the target time offset value can be jointly determined between the two heterogeneous systems of 5G and the industrial network, and the target time offset value is fed back to the AF through the TSCTSF module.
[0090] Exemplarily, the process of jointly determining the target time offset value between two heterogeneous systems, 5G and industrial network, may include: setting high-precision clocks at key nodes in 5G network and industrial network (such as 5G base station, controller PLC in industrial network, etc.), and recording local timestamps before communication. These timestamp information is exchanged through PDU session communication between AF and core network elements and industrial network, and the time difference is calculated after receiving timestamps from different systems. The target time offset value is calculated by multiple times of timestamp exchange and statistical methods, and the frequency of timestamp exchange can be adjusted according to actual conditions to improve the accuracy of time offset calculation. For example, multiple timestamps are exchanged and averaged, or the exchange frequency is dynamically adjusted according to the network status and device performance. The calculated time offset value is stored in the TSCTSF module, and the target time offset value is updated regularly to adapt to changes in the network environment, such as fluctuations in network delay, drift of device clocks, etc.
[0091] The above example is only an example of jointly determining the target time offset value between two different systems, 5G and industrial network, and is not to be understood as a limitation on the embodiments of the present disclosure. In fact, any scheme for jointly determining the time offset value is applicable to the embodiments of the present disclosure.
[0092] After the core network element receives the target time offset value fed back by AF, it can feed back the target event offset value to the core network element. The core network element can determine the target packet sending time based on the target time offset value and the packet sending time of the service, and send the target packet sending time to the 5G module through the timing information. The 5G module sends the timing information to the industrial terminal through DS-TT. After receiving the timing information, the industrial terminal controls data sending based on the target packet sending time.
[0093] Exemplarily, between the 5GC network element and the RAN (Radio Access Network), the target packet time can be sent to the RAN side through the N2 interface, and then sent to the 5G module by the RAN. For example: on the RAN side, the base station sends the timing information to the 5G module through the SIB9 message, and the 5G module that receives the message passes the time message to the industrial terminal device through DS-TT, and the industrial terminal sends the data packet based on the received target packet time.
[0094] In one example, referring to Figure 3 As shown in FIG. 1 , when the receiving end PLC fails to receive the data packet within the timeout period, it can send uplink data to the 5G module through DS-TT. The uplink data may include a timeout report. The 5G module can send the timeout report to the AF through the 5GC network element, and then the AF sends the timeout report to the base station (this process is in Figure 3Omitted in the figure, represented by the dotted signaling interaction process between the 5G module and the base station).
[0095] After receiving the timeout report, if the base station obtains the first value (for example, the third time) of the number of timeout reports currently received, it can send the first clock adjustment request to the 5GC network element. After receiving the first clock adjustment request, the 5GC network element can instruct the AF to establish a PDU session with the 5GC and the industrial network respectively, so that the two heterogeneous systems, 5GS and the industrial network, exchange time information through the AF, jointly determine the target time offset value, and update the target time offset value to the TSCTSF module.
[0096] The 5GC network element can obtain the target time offset data from the TSCTSF module and feed it back to the base station. The base station can determine the target packet sending time based on the target time offset data and send the target packet sending time to the 5G module through the AF and 5GC network element (this process is Figure 3 Omitted in the figure, represented by the dotted signaling interaction process between the 5G module and the base station).
[0097] After receiving the target packet sending time, the 5G module can send the target packet sending time to the industrial terminal and PLC through DS-TT, so that the industrial terminal can control data sending based on the target packet sending time.
[0098] In this way, before the watchdog overflows, the data transmission of the industrial terminal can avoid the network congestion period, reduce the probability of watchdog timeout, and prevent the production line from entering a safe state due to network congestion, making the equipment unavailable.
[0099] In an exemplary embodiment, starting the target anti-downtime strategy may further include:
[0100] When it is determined that the factory does not meet the time-sensitive network TSN conditions, a second clock adjustment request is sent to the core network network element. The second clock adjustment request is used to instruct the core network network element to obtain the clock synchronization information of the industrial terminal through the TSCTSF module, and send the clock synchronization information to the AF, so that the AF sends the clock synchronization information to the industrial network, so that the industrial network determines the target time offset value based on the clock synchronization information, and sends the target packet sending time to the industrial terminal based on the target time offset value, so that the industrial terminal controls data sending based on the target packet sending time.
[0101] In the disclosed embodiment, when it is determined that the factory does not meet the time-sensitive network TSN conditions, that is, the factory does not have DS-TT and NW-TT, the base station receives a timeout report and determines that the target anti-downtime strategy is the first anti-downtime strategy, and can send a second clock adjustment request to the core network network element. The clock synchronization information of the industrial terminal can be pre-stored in the TSCTSF module, and the core network network element can obtain the clock synchronization information of the industrial terminal from the TSCTSF module and send the clock synchronization information to the AF. After receiving the clock synchronization information, the AF can send the clock synchronization information to the industrial network, so that the industrial network determines the target time offset value of the industrial equipment based on the clock synchronization information, and then sends the target packet sending time to the industrial terminal based on the target time offset value, so that the industrial terminal controls data sending based on the target packet sending time.
[0102] Exemplarily, the core network element obtains the clock synchronization information of the industrial terminal through the TSCTSF module. The core network element sends the obtained clock synchronization information to the AF module. After receiving the clock synchronization information from the core network element, the AF module will cooperate with the industrial heterogeneous communication. The industrial heterogeneous communication here involves different types of industrial equipment and network protocols, which jointly determine the target time offset value. The target time offset value is to adjust the time difference between different industrial equipment so that they can achieve better synchronization in time to ensure the accuracy and coordination of industrial production. The industrial network can send the determined target time offset value to the industrial terminal through the internal protocol, or it can determine the target packet time based on the target offset time and send the target packet time to the industrial equipment. The internal protocol is a protocol used for information transmission and equipment management within the industrial network, which ensures that the target time offset value can be accurately transmitted to each industrial terminal. After receiving the target time offset value, the industrial terminal will adjust its own time according to the target time offset value, or directly send a data packet based on the received target packet time.
[0103] In an exemplary embodiment, the above method may further include:
[0104] If the next data packet is received before the timeout, the reception count of the timeout report is cleared.
[0105] In the embodiment of the present disclosure, if the base station receives the next data packet before the timeout, that is, the time interval between receiving the previous data packet and receiving the next data packet is less than the predetermined time, the number of receptions of the timeout report can be cleared. The method for preventing downtime in an industrial network provided by the embodiment of the present disclosure can be used to alleviate network congestion and avoid the probability of continuous watchdog timeouts before the watchdog overflows, thereby effectively alleviating the problem of production line downtime caused by watchdog overflow.
[0106] In an exemplary embodiment, an industrial network anti-downtime system is provided, including a controller PLC, a base station, an application function AF, and a core network element, wherein:
[0107] If the PLC fails to receive a data packet within a timeout period, it sends a timeout report to the core network element through the AF.
[0108] The core network element sends a timeout report to the base station;
[0109] The base station receives the timeout report and counts the number of times the timeout report is received. When the number of times the timeout report is received is less than the downtime threshold, the base station determines the target anti-downtime strategy according to the number of times the timeout report is received, and starts the target anti-downtime strategy to alleviate network congestion.
[0110] In the embodiments of the present disclosure, the signaling interaction between the controller PLC, the base station, the application function AF, and the core network element may refer to the relevant description of the aforementioned embodiments, which will not be repeated here in the embodiments of the present disclosure.
[0111] In order to enable those skilled in the art to better understand the embodiments of the present disclosure, the embodiments of the present disclosure are described below through specific examples.
[0112] Reference Figure 4 As shown in the figure, assuming that the downtime threshold value set by the watchdog is 4, when the first timeout occurs, the PLC can send a timeout report to the AF network element, and the AF can send a timeout report to the RAN side base station through 5GC network elements such as NEF and PCF in turn. After the base station receives the timeout report, the counter +1, the current counter is 1, then the first gear low latency strategy (that is, the second anti-downtime strategy) can be started, and the VLAN_ID priority of the profinet I / O data is increased. If the next arriving data packet does not time out, the counter is cleared.
[0113] When the second timeout occurs, the PLC will continue to send a timeout report to the base station via the AF and 5GC network elements. After the base station receives the timeout report, the counter is +1. The current counter is 2, then the base station can start the second low-latency strategy (that is, the third anti-downtime strategy), including reducing the priority of non-RT data, enabling the pre-scheduling transmission mechanism, and increasing the communication resources allocated to RT data (such as bandwidth). If the next arriving data packet does not time out, the counter is cleared.
[0114] If the third timeout occurs, the PLC will continue to send a timeout report to the base station via the AF and 5GC network elements. After the base station receives the timeout report, the counter +1, the current counter is 3, then the base station can start the third low latency strategy (that is, the first anti-downtime strategy), the first anti-downtime strategy includes two types:
[0115] The first one is that if the factory has a deterministic network, uses TSN technology, and has a TSN converter. The base station can send a first clock adjustment request to the core network and actively request service orchestration. The core network can obtain relevant time information (including the target time offset value) through the connection between the TSCTSF module and the AF module. The AF can establish PDU session communication with the core network and the industrial network respectively, so that the two heterogeneous systems of 5G and industrial network can jointly determine the target time offset value and store it in the TSCTSF module; between 5GC and RAN, it can be sent to the RAN side through the N2 interface, and then sent to the 5G module by the RAN; on the RAN side, the base station sends timing information through the SIB9 message, which includes the target packet time corrected based on the target time offset value. The 5G module that receives the message transmits the timing information to the industrial terminal through DS-TT, and the industrial terminal controls data transmission based on the target packet time.
[0116] The second type is that if the factory does not have the DS-TT and NW-TT modules in TSN technology, the base station can send a second clock adjustment request to the core network and actively request service orchestration. The core network can obtain the clock synchronization information of the target terminal through the TSCTSF module and send it to the AF module. The AF determines the target time offset value through industrial heterogeneous communication, and determines the target packet sending time based on the target time offset value. The industrial network sends the offset value to the industrial terminal through the internal protocol.
[0117] In summary, the anti-downtime classification mechanism based on industrial networks is as shown in the following formula (I):
[0118] Formula (I)
[0119] in, Characterizes the target anti-downtime strategy, t is the time interval between receiving the previous data packet and the next data packet, and CT is the preset time period.
[0120] The industrial network anti-downtime method provided by the embodiment of the present disclosure can alleviate the downtime caused by delay jitter under the watchdog mechanism based on the periodic transmission service of the Profinet protocol in the industrial terminal. The watchdog is an electronic timer used to detect and recover system failures. Under normal conditions, the value of the timer is always 0. If the timer times out and no data packet is detected, a timeout signal will be generated, and the watchdog counter will increase by 1 until it reaches the specified threshold value, triggering the production line to enter a safe state. The equipment will be in an unavailable state and cannot be produced normally. Because the watchdog mechanism lacks the ability to locate and delimit problems, it is easy to misjudge the availability of the wireless system and cause downtime by simply judging whether the interval time of receiving packets has timed out. Therefore, it is very important to enable timely low-latency protection measures.
[0121] In order to reduce the possibility of network congestion and downtime caused by the wirelessization of the industrial Internet, the embodiment of the present disclosure sets up a PLC and 5G network industry collaboration mode, proposes a low-latency strategy, quickly feedbacks timeouts, reduces the occurrence of continuous timeouts, and ensures that the production line does not crash and the business does not stop. The embodiment of the present disclosure proposes a hierarchical anti-downtime mechanism based on adjusting the time of round-robin business, and proposes low-latency measures for business and network coordination in the grading and grading. In the industrial production line, the method of business adaptation network is adopted, rather than the traditional method of network meeting business to solve network congestion. When the timeout is serious to a certain extent, the business sending cycle time is calibrated to fundamentally solve the congestion problem. Including: after the watchdog mechanism is triggered, different delay adjustment mechanisms are awakened according to different times. In particular, after a specified number of times (for example, the third time), a delay adjustment mechanism based on the TSCTSF module can be adopted. The embodiment of the present disclosure provides a complete business time offset message transmission method based on whether there is a TSN network.
[0122] The industrial network anti-downtime method provided by the embodiment of the present disclosure sets up different low-latency transmission strategies according to different delay count times, which can reduce the waste of signaling resources and reduce latency more accurately. By using service adjustment to adapt to the network, the problem of receiving packet timeout caused by network congestion is fundamentally avoided, and real-time communication with low latency and high reliability is guaranteed. Compared with slicing and QoS (Quality of Service) mechanisms to ensure latency, it can communicate with the industrial network through the core network AF and TSCTSF modules, and can reduce latency jitter by adjusting the periodic service packet sending time of the industrial network.
[0123] At the same time, the existing watchdog-based anti-downtime mechanism is relatively simple and can only notify the wireless side when a timeout occurs. At the same time, the low-latency solutions that can be adopted by the wireless side are limited, and the existing technical solutions cannot adopt personalized strategies with different priorities for different delay times. The above two points have not been more clearly and detailed. In addition, the watchdog mechanism itself lacks the ability to locate and delimit problems. It only judges the availability of the device by whether the receiving packet interval time has timed out. It is easy to misjudge the availability of the wireless system and cause downtime. Therefore, it is very important to enable effective hierarchical low-latency protection measures. After using the industrial network anti-downtime method provided by the embodiment of the present disclosure, the downtime caused by network congestion can be reduced as much as possible, and 5G NR can achieve a rapid response to the watchdog timeout, thereby shortening the air interface delay of real-time services under Profinet as much as possible, and improving the timeout monitoring solution for the wireless access network in the PLC north-down scenario to better support the application of fully connected factories.
[0124] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0125] Based on the same inventive concept, the embodiment of the present application also provides an industrial PON network protection switching device for implementing the industrial PON network protection switching method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more industrial PON network protection switching device embodiments provided below can refer to the limitations of the industrial PON network protection switching method above, and will not be repeated here.
[0126] In an exemplary embodiment, Figure 5 As shown, an industrial network anti-downtime device is provided, which is applied to a base station. The device includes: a receiving module 502, a determining module 504 and a starting module 506, wherein:
[0127] The receiving module 502 is used to receive a timeout report sent by a core network element, where the timeout report is sent to the core network element by the controller PLC through the application function AF when the controller PLC fails to receive a data packet within a timeout period;
[0128] A determination module 504 is used to count the number of times the timeout report is received, and when the number of times the timeout report is received is less than the downtime threshold, determine a target anti-downtime strategy according to the number of times the timeout report is received;
[0129] The start module 506 is used to start the target anti-downtime strategy to alleviate network congestion.
[0130] In the above-mentioned industrial network anti-downtime device, the base station receives a timeout report sent by a core network element. The timeout report is sent to the core network element by the controller PLC through the application function AF when the controller PLC times out and fails to receive a data packet; the number of times the timeout report is received is counted, and when the number of times the timeout report is received is less than the downtime threshold, the target anti-downtime strategy is determined according to the number of times the timeout report is received; the target anti-downtime strategy is activated to alleviate network congestion. By using the industrial network anti-downtime device provided in the embodiment of the present application, the base station can enable the anti-downtime strategy in a graded manner according to the number of timeout reports, thereby effectively alleviating network congestion and reducing the probability of continuous timeouts of the gatekeeper, thereby reducing the risk of industrial network downtime.
[0131] In one embodiment, the determining module 504 is specifically configured to:
[0132] When the number of times the timeout report is received is a first value, a first anti-downtime strategy is used as a target anti-downtime strategy, wherein the first anti-downtime strategy includes adjusting a packet sending time of a periodic service.
[0133] In one embodiment, the determining module 504 is further configured to:
[0134] When the number of times the timeout report is received is a second value, a second anti-downtime strategy is used as a target anti-downtime strategy, wherein the second anti-downtime strategy includes increasing the VLAN_ID priority of the process field network input / output profinet I / O;
[0135] The second value is smaller than the first value.
[0136] In one embodiment, the determining module 504 is further configured to:
[0137] When the number of times the timeout report is received is a third value, using a third anti-downtime strategy as a target anti-downtime strategy, wherein the third anti-downtime strategy includes at least one of lowering the priority of non-real-time data, enabling a pre-scheduled transmission mechanism, and increasing the communication resources allocated to real-time data;
[0138] The first value is greater than the third value, and the third value is greater than the second value.
[0139] In one embodiment, the startup module 506 is specifically used to:
[0140] When it is determined that the factory meets the time-sensitive network TSN condition, sending a first clock adjustment request to the core network element, where the first clock adjustment request is used to instruct the core network element to obtain a target time offset value through a time-sensitive communication time synchronization function TSCTSF module;
[0141] Receiving a target time offset value sent by the core network element, and determining a target packet sending time based on the target time offset value;
[0142] Based on the target packet sending time, timing information is sent to the 5G module, so that the 5G module sends the timing information to the industrial terminal through the time-sensitive network TSN converter DS-TT, so that the industrial terminal controls data sending based on the target packet sending time.
[0143] In one embodiment, the startup module 506 is further configured to:
[0144] When it is determined that the factory does not meet the time-sensitive network TSN conditions, a second clock adjustment request is sent to the core network network element, and the second clock adjustment request is used to instruct the core network network element to obtain the clock synchronization information of the industrial terminal through the TSCTSF module, and send the clock synchronization information to the AF, so that the AF sends the clock synchronization information to the industrial network, so that the industrial network determines the target time offset value based on the clock synchronization information, and sends the target packet sending time to the industrial terminal based on the target time offset value, so that the industrial terminal controls data sending based on the target packet sending time.
[0145] In one embodiment, the device further comprises:
[0146] The reset module clears the number of receptions of the timeout report if the next data packet is received before the timeout.
[0147] Each module in the above industrial network anti-downtime device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0148] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, an industrial network anti-downtime method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0149] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0150] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0151] Receiving a timeout report sent by a core network element, where the timeout report is sent to the core network element by the controller PLC through the application function AF when the controller PLC fails to receive a data packet within a timeout period;
[0152] Counting the number of times the timeout report is received, and when the number of times the timeout report is received is less than a downtime threshold, determining a target anti-downtime strategy according to the number of times the timeout report is received;
[0153] The target anti-downtime strategy is initiated to alleviate network congestion.
[0154] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0155] When the number of times the timeout report is received is a first value, a first anti-downtime strategy is used as a target anti-downtime strategy, wherein the first anti-downtime strategy includes adjusting a packet sending time of a periodic service.
[0156] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0157] When the number of times the timeout report is received is a second value, a second anti-downtime strategy is used as the target anti-downtime strategy, and the second anti-downtime strategy includes increasing the VLAN_ID priority of the process field network input / output profinet I / O; wherein the second value is less than the first value.
[0158] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0159] When the number of times the timeout report is received is a third value, a third anti-downtime strategy is used as a target anti-downtime strategy, and the third anti-downtime strategy includes at least one of lowering the priority of non-real-time data, enabling a pre-scheduled transmission mechanism, and increasing the communication resources allocated for real-time data; wherein the first value is greater than the third value, and the third value is greater than the second value.
[0160] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0161] When it is determined that the factory meets the time-sensitive network TSN condition, sending a first clock adjustment request to the core network element, where the first clock adjustment request is used to instruct the core network element to obtain a target time offset value through a time-sensitive communication time synchronization function TSCTSF module;
[0162] Receiving a target time offset value sent by the core network element, and determining a target packet sending time based on the target time offset value;
[0163] Based on the target packet sending time, timing information is sent to the 5G module, so that the 5G module sends the timing information to the industrial terminal through the time-sensitive network TSN converter DS-TT, so that the industrial terminal controls data sending based on the target packet sending time.
[0164] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0165] When it is determined that the factory does not meet the time-sensitive network TSN conditions, a second clock adjustment request is sent to the core network network element, and the second clock adjustment request is used to instruct the core network network element to obtain the clock synchronization information of the industrial terminal through the TSCTSF module, and send the clock synchronization information to the AF, so that the AF sends the clock synchronization information to the industrial network, so that the industrial network determines the target time offset value based on the clock synchronization information, and sends the target packet sending time to the industrial terminal based on the target time offset value, so that the industrial terminal controls data sending based on the target packet sending time.
[0166] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0167] If the next data packet is received before the timeout, the reception count of the timeout report is cleared.
[0168] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0169] Receiving a timeout report sent by a core network element, where the timeout report is sent to the core network element by the controller PLC through the application function AF when the controller PLC fails to receive a data packet within a timeout period;
[0170] Counting the number of times the timeout report is received, and when the number of times the timeout report is received is less than a downtime threshold, determining a target anti-downtime strategy according to the number of times the timeout report is received;
[0171] The target anti-downtime strategy is initiated to alleviate network congestion.
[0172] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0173] When the number of times the timeout report is received is a first value, a first anti-downtime strategy is used as a target anti-downtime strategy, wherein the first anti-downtime strategy includes adjusting a packet sending time of a periodic service.
[0174] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0175] When the number of times the timeout report is received is a second value, a second anti-downtime strategy is used as the target anti-downtime strategy, and the second anti-downtime strategy includes increasing the VLAN_ID priority of the process field network input / output profinet I / O; wherein the second value is less than the first value.
[0176] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0177] When the number of times the timeout report is received is a third value, a third anti-downtime strategy is used as a target anti-downtime strategy, and the third anti-downtime strategy includes at least one of lowering the priority of non-real-time data, enabling a pre-scheduled transmission mechanism, and increasing the communication resources allocated for real-time data; wherein the first value is greater than the third value, and the third value is greater than the second value.
[0178] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0179] When it is determined that the factory meets the time-sensitive network TSN condition, sending a first clock adjustment request to the core network element, where the first clock adjustment request is used to instruct the core network element to obtain a target time offset value through a time-sensitive communication time synchronization function TSCTSF module;
[0180] Receiving a target time offset value sent by the core network element, and determining a target packet sending time based on the target time offset value;
[0181] Based on the target packet sending time, timing information is sent to the 5G module, so that the 5G module sends the timing information to the industrial terminal through the time-sensitive network TSN converter DS-TT, so that the industrial terminal controls data sending based on the target packet sending time.
[0182] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0183] When it is determined that the factory does not meet the time-sensitive network TSN conditions, a second clock adjustment request is sent to the core network network element, and the second clock adjustment request is used to instruct the core network network element to obtain the clock synchronization information of the industrial terminal through the TSCTSF module, and send the clock synchronization information to the AF, so that the AF sends the clock synchronization information to the industrial network, so that the industrial network determines the target time offset value based on the clock synchronization information, and sends the target packet sending time to the industrial terminal based on the target time offset value, so that the industrial terminal controls data sending based on the target packet sending time.
[0184] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0185] If the next data packet is received before the timeout, the reception count of the timeout report is cleared.
[0186] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0187] Receiving a timeout report sent by a core network element, where the timeout report is sent to the core network element by the controller PLC through the application function AF when the controller PLC fails to receive a data packet within a timeout period;
[0188] Counting the number of times the timeout report is received, and when the number of times the timeout report is received is less than a downtime threshold, determining a target anti-downtime strategy according to the number of times the timeout report is received;
[0189] The target anti-downtime strategy is initiated to alleviate network congestion.
[0190] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0191] When the number of times the timeout report is received is a first value, a first anti-downtime strategy is used as a target anti-downtime strategy, wherein the first anti-downtime strategy includes adjusting a packet sending time of a periodic service.
[0192] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0193] When the number of times the timeout report is received is a second value, a second anti-downtime strategy is used as the target anti-downtime strategy, and the second anti-downtime strategy includes increasing the VLAN_ID priority of the process field network input / output profinet I / O; wherein the second value is less than the first value.
[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0195] When the number of times the timeout report is received is a third value, a third anti-downtime strategy is used as a target anti-downtime strategy, and the third anti-downtime strategy includes at least one of lowering the priority of non-real-time data, enabling a pre-scheduled transmission mechanism, and increasing the communication resources allocated for real-time data; wherein the first value is greater than the third value, and the third value is greater than the second value.
[0196] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0197] When it is determined that the factory meets the time-sensitive network TSN condition, sending a first clock adjustment request to the core network element, where the first clock adjustment request is used to instruct the core network element to obtain a target time offset value through a time-sensitive communication time synchronization function TSCTSF module;
[0198] Receiving a target time offset value sent by the core network element, and determining a target packet sending time based on the target time offset value;
[0199] Based on the target packet sending time, timing information is sent to the 5G module, so that the 5G module sends the timing information to the industrial terminal through the time-sensitive network TSN converter DS-TT, so that the industrial terminal controls data sending based on the target packet sending time.
[0200] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0201] When it is determined that the factory does not meet the time-sensitive network TSN conditions, a second clock adjustment request is sent to the core network network element, and the second clock adjustment request is used to instruct the core network network element to obtain the clock synchronization information of the industrial terminal through the TSCTSF module, and send the clock synchronization information to the AF, so that the AF sends the clock synchronization information to the industrial network, so that the industrial network determines the target time offset value based on the clock synchronization information, and sends the target packet sending time to the industrial terminal based on the target time offset value, so that the industrial terminal controls data sending based on the target packet sending time.
[0202] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0203] If the next data packet is received before the timeout, the reception count of the timeout report is cleared.
[0204] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0205] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0206] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0207] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for preventing downtime of an industrial network, characterized in that: Applied to a base station, the method comprises: Receiving a timeout report sent by a core network element, where the timeout report is sent to the core network element by the controller PLC through the application function AF when the controller PLC fails to receive a data packet within a timeout period; Counting the number of times the timeout report is received, and when the number of times the timeout report is received is less than a downtime threshold, determining a target anti-downtime strategy according to the number of times the timeout report is received; The target anti-downtime strategy is initiated to alleviate network congestion.
2. The method according to claim 1, characterized in that The determining of the target anti-downtime strategy according to the number of times the timeout report is received includes: When the number of times the timeout report is received is a first value, a first anti-downtime strategy is used as a target anti-downtime strategy, wherein the first anti-downtime strategy includes adjusting a packet sending time of a periodic service.
3. The method according to claim 2, characterized in that The determining of the target anti-downtime strategy according to the number of times the timeout report is received includes: When the number of times the timeout report is received is a second value, a second anti-downtime strategy is used as a target anti-downtime strategy, wherein the second anti-downtime strategy includes increasing the VLAN_ID priority of the process field network input / output profinet I / O; The second value is smaller than the first value.
4. The method according to claim 2 or 3, characterized in that: The determining of the target anti-downtime strategy according to the number of times the timeout report is received includes: When the number of times the timeout report is received is a third value, using a third anti-downtime strategy as a target anti-downtime strategy, wherein the third anti-downtime strategy includes at least one of lowering the priority of non-real-time data, enabling a pre-scheduled transmission mechanism, and increasing the communication resources allocated to real-time data; The first value is greater than the third value, and the third value is greater than the second value.
5. The method according to claim 2, characterized in that: The starting of the target anti-downtime strategy includes: When it is determined that the factory meets the time-sensitive network TSN condition, sending a first clock adjustment request to the core network element, where the first clock adjustment request is used to instruct the core network element to obtain a target time offset value through a time-sensitive communication time synchronization function TSCTSF module; Receiving a target time offset value sent by the core network element, and determining a target packet sending time based on the target time offset value; Based on the target packet sending time, timing information is sent to the 5G module, so that the 5G module sends the timing information to the industrial terminal through the time-sensitive network TSN converter DS-TT, so that the industrial terminal controls data sending based on the target packet sending time.
6. The method according to claim 5, characterized in that The starting of the target anti-downtime strategy also includes: When it is determined that the factory does not meet the time-sensitive network TSN conditions, a second clock adjustment request is sent to the core network network element, and the second clock adjustment request is used to instruct the core network network element to obtain the clock synchronization information of the industrial terminal through the TSCTSF module, and send the clock synchronization information to the AF, so that the AF sends the clock synchronization information to the industrial network, so that the industrial network determines the target time offset value based on the clock synchronization information, and sends the target packet sending time to the industrial terminal based on the target time offset value, so that the industrial terminal controls data sending based on the target packet sending time.
7. The method according to claim 1, characterized in that The method further comprises: If the next data packet is received before the timeout, the reception times of the timeout report are cleared.
8. An industrial network anti-downtime system, characterized in that: It includes controller PLC, base station, application function AF, and core network element, among which: When the PLC fails to receive the data packet within a timeout period, the PLC sends a timeout report to the core network element through the AF; The core network element sends the timeout report to the base station; The base station receives the timeout report and counts the number of times the timeout report is received. When the number of times the timeout report is received is less than the downtime threshold, a target anti-downtime strategy is determined according to the number of times the timeout report is received, and the target anti-downtime strategy is started to alleviate network congestion.
9. An industrial network anti-downtime device, characterized in that: Applied to a base station, the device comprises: A receiving module, used to receive a timeout report sent by a core network element, wherein the timeout report is sent to the core network element by the controller PLC through the application function AF when the controller PLC fails to receive a data packet within a timeout period; A determination module, configured to count the number of times the timeout report is received, and determine a target anti-downtime strategy according to the number of times the timeout report is received when the number of times the timeout report is received is less than a downtime threshold; The startup module is used to start the target anti-downtime strategy to alleviate network congestion.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.