Network quality monitoring methods, terminal equipment and user plane functional UPF network elements

By monitoring the communication path latency parameters of terminal equipment and UPF network elements, alarm logs are generated, which solves the problem of accurately locating communication path faults in 5G communication and improves the efficiency of fault diagnosis and optimization.

CN120091351BActive Publication Date: 2025-11-14SHENZHEN AI LINK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510319226.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-18
Publication Date
2025-11-14
Estimated Expiration
2045-03-18

AI Technical Summary

Technical Problem

In 5G communication, the communication path of industrial control equipment becomes longer, resulting in greater wireless transmission latency and reduced stability. When communication failures occur, it is impossible to pinpoint the specific fault location in the network.

Method used

By interacting with terminal devices and user plane function UPF network elements, the uplink and downlink latency parameters of multiple communication paths are monitored, alarm logs are generated to identify faulty paths and optimize communication paths.

Benefits of technology

It enables precise location of communication paths and improves the efficiency of fault diagnosis, allowing for targeted optimization of communication paths and enhanced network quality monitoring efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120091351B_ABST
    Figure CN120091351B_ABST
Patent Text Reader

Abstract

This application provides a network quality monitoring method, a terminal device, and a User Plane Function (UPF) network element, relating to the field of communication technology. The method includes: receiving a first process data packet sent by a target industrial device connected to the terminal device; calculating a first uplink delay parameter for a first communication path between the target industrial device and the terminal device based on the packet reception timestamp of the first process data packet; calculating a second uplink delay parameter for a second communication path within the terminal device based on the packet reception timestamp and uplink pending transmission timestamp of the first process data packet; generating an uplink data packet based on the first process data packet, the first uplink delay parameter, and the second uplink delay parameter; and sending the uplink data packet to a User Plane Function (UPF) network element in the industrial control network system. This application improves the efficiency of troubleshooting network anomalies, thereby enabling targeted optimization of communication paths.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and more specifically, to a network quality monitoring method, terminal equipment, and a user plane function (UPF) network element. Background Technology

[0002] In the field of modern industrial automation, real-time control and precise operation are key to improving production efficiency and product quality. Industrial control systems typically include various sensors, actuators, controllers, and monitors, which need to exchange data and transmit commands through reliable network communication protocols.

[0003] Currently, the connection between industrial control equipment and 5G terminals is mainly achieved through 5G communication. The industrial control equipment accesses the 5G network through its built-in 5G communication module, and communicates with the 5G core network through the 5G network base station, thereby realizing communication with the industrial control equipment.

[0004] However, the connection of industrial control equipment via 5G communication and 5G terminals increases the communication path, leads to greater wireless transmission latency and reduced stability, and increases the probability of timeouts causing communication failures. When a failure occurs, users cannot clearly understand the current network status, thus making it impossible to pinpoint the specific location of the fault in the current network transmission. Summary of the Invention

[0005] The purpose of this application is to address the shortcomings of the prior art by providing a network quality monitoring method, terminal equipment, and user plane function UPF network element, thereby improving the efficiency of troubleshooting network anomalies and enabling targeted optimization of communication paths.

[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows:

[0007] In a first aspect, one embodiment of this application provides a network quality monitoring method, the method comprising:

[0008] Receives a first process data packet sent by the target industrial equipment connected to the terminal device;

[0009] Based on the timestamp of the first process data packet received and the timestamp of the previous first process data packet received for the target industrial equipment, the first uplink delay parameter of the first communication path between the target industrial equipment and the terminal equipment is calculated.

[0010] Based on the packet reception timestamp and uplink pending transmission timestamp of the first process data packet, calculate the second uplink delay parameter of the second communication path inside the terminal device;

[0011] An uplink data packet is generated based on the first process data packet, the first uplink delay parameter, and the second uplink delay parameter;

[0012] The uplink data packet is sent to the User Plane Function (UPF) network element in the industrial control network system, so that the UPF network element determines the third uplink delay parameter of the third communication path between the terminal device and the UPF network element, and the fourth uplink delay parameter of the fourth communication path within the UPF network element, based on the packet reception timestamp of the uplink data packet.

[0013] Optionally, the method further includes:

[0014] If the first uplink delay parameter exceeds the preset delay of the first communication path, then based on the first uplink delay parameter and the identification information of the target industrial equipment, an uplink alarm log of the first communication path is generated and sent to the network management device of the industrial control network system.

[0015] If the second uplink delay parameter exceeds the preset delay of the second communication path, then an alarm log for the second communication path is generated and sent to the network management device based on the first uplink delay parameter, the second uplink delay parameter, and the identification information of the target industrial equipment.

[0016] Optionally, the method further includes:

[0017] The system receives downlink data packets sent by the UPF network element; wherein the downlink data packet is a packet generated by the UPF network element based on the second process data packet, the fifth downlink delay parameter, and the fourth downlink delay parameter of the industrial control equipment; the fifth downlink delay parameter is the transmission delay of the fifth communication path determined by the UPF network element based on the packet reception timestamp of the second process data packet; the fourth downlink delay parameter is the transmission delay of the fourth communication path determined by the UPF network element based on the packet reception timestamp and the downlink pending transmission timestamp of the second process data packet; and the fifth communication path is the communication path between the UPF network element and the industrial control equipment.

[0018] Obtain the second process data packet, the fifth downlink delay parameter, and the fourth downlink delay parameter from the downlink data packet;

[0019] The third downlink delay parameter of the third communication path is calculated based on the packet reception timestamp of the downlink data packet and the packet reception timestamp of the previous downlink data packet for the target industrial equipment.

[0020] The second downlink delay parameter of the second communication path is calculated based on the downlink data packet reception timestamp and the downlink pending transmission timestamp.

[0021] Optionally, the method further includes:

[0022] If the third downlink delay parameter exceeds the preset delay of the third communication path, then based on the fifth downlink delay parameter, the fourth downlink delay parameter, the third downlink delay parameter, and the identification information of the target industrial equipment, a downlink alarm log for the third communication path is generated and sent to the network management device of the industrial control network system.

[0023] If the second downlink delay parameter exceeds the preset delay of the second communication path, then based on the fifth downlink delay parameter, the fourth downlink delay parameter, the third downlink delay parameter, the second downlink delay parameter, and the identification information of the target industrial equipment, a downlink alarm log for the second communication path is generated and sent to the network management device.

[0024] Secondly, another embodiment of this application provides another network quality monitoring method, applied to the User Plane Function (UPF) network element in an industrial control network system, the method comprising:

[0025] The terminal device receives uplink data packets sent by the terminal device, wherein the uplink data packets are packets generated by the terminal device based on the first process data packets of the industrial equipment, a first uplink delay parameter, and a second uplink delay parameter. The first uplink delay parameter is the transmission delay of a first communication path determined by the terminal based on the packet reception timestamp of the first process data packets. The second uplink delay parameter is the transmission delay of a second communication path determined by the terminal device based on the packet reception timestamp and the uplink pending transmission timestamp of the first process data packets. The first communication path is the communication path between the terminal device and the industrial equipment, and the second communication path is the communication path within the terminal device.

[0026] Obtain the first process data packet, the first uplink delay parameter, and the second uplink delay parameter from the uplink data packet;

[0027] Based on the timestamp of the uplink data packet received and the timestamp of the previous uplink data packet received for the target industrial equipment, the third uplink delay parameter of the third communication path between the terminal equipment and the UPF network element is calculated.

[0028] Based on the received timestamp of the uplink data packet and the pending transmission timestamp of the first process data packet, the fourth uplink delay parameter of the fourth communication path within the UPF network element is calculated.

[0029] Optionally, the method further includes:

[0030] If the third uplink delay parameter exceeds the preset delay of the third communication path, then based on the first uplink delay parameter, the second uplink delay parameter, the third uplink delay parameter, and the identification information of the target industrial equipment, an uplink alarm log for the third communication path is generated and sent to the network management device of the industrial control network system.

[0031] If the fourth uplink delay parameter exceeds the preset delay of the fourth communication path, then based on the fourth uplink delay parameter, the third uplink delay parameter, the second uplink delay parameter, the first uplink delay parameter, and the identification information of the target industrial equipment, an uplink alarm log for the fourth communication path is generated and sent to the network management device.

[0032] Optionally, the method further includes:

[0033] Receive the second process data message sent by the target industrial control equipment connected to the UPF network element;

[0034] Based on the packet reception timestamp of the second process data message and the packet reception timestamp of the previous process data message for the target industrial equipment, calculate the fifth downlink delay parameter of the fifth communication path between the target industrial control equipment and the UPF network element;

[0035] Based on the packet reception timestamp and downlink transmission timestamp of the second process data message, calculate the fourth downlink delay parameter of the fourth communication path within the UPF network element;

[0036] A downlink data packet is generated based on the second process data packet, the fifth downlink delay parameter, and the fourth downlink delay parameter;

[0037] The downlink data packet is sent to the terminal device in the industrial control network system, so that the terminal device determines the third downlink delay parameter of the third communication path between the terminal device and the UPF network element, and the second downlink delay parameter of the second communication path within the terminal device, based on the packet reception timestamp of the downlink data packet.

[0038] Optionally, the method further includes:

[0039] If the fifth downlink delay parameter exceeds the preset delay of the fifth communication path, then based on the fifth downlink delay parameter and the identification information of the target industrial equipment, a downlink alarm log for the fifth communication path is generated and sent to the network management device of the industrial control network system.

[0040] If the fourth downlink delay parameter exceeds the preset delay of the fourth communication path, then based on the fifth downlink delay parameter, the fourth downlink delay parameter, and the identification information of the target industrial equipment, an alarm log for the fourth communication path is generated and sent to the network management device.

[0041] Thirdly, another embodiment of this application provides a network quality monitoring device, applied to terminal equipment in an industrial control network system, the device comprising:

[0042] The first receiving module is used to receive the first process data message sent by the target industrial equipment connected to the terminal device;

[0043] The first calculation module is used to calculate the first uplink delay parameter of the first communication path between the target industrial equipment and the terminal equipment based on the packet receiving timestamp of the first process data message and the packet receiving timestamp of the previous first process data message for the target industrial equipment.

[0044] The first calculation module is used to calculate the second uplink delay parameter of the second communication path inside the terminal device based on the packet reception timestamp and uplink to be sent timestamp of the first process data packet;

[0045] The first generation module is used to generate an uplink data packet based on the first process data packet, the first uplink delay parameter, and the second uplink delay parameter;

[0046] The first sending module is used to send the uplink data packet to the User Plane Function (UPF) network element in the industrial control network system, so that the UPF network element determines the third uplink delay parameter of the third communication path between the terminal device and the UPF network element, and the fourth uplink delay parameter of the fourth communication path within the UPF network element, based on the packet reception timestamp of the uplink data packet.

[0047] Fourthly, another embodiment of this application provides another network quality monitoring device, applied to terminal equipment in an industrial control network system, the device comprising:

[0048] The second receiving module is used to receive uplink data packets sent by the terminal device. The uplink data packets are packets generated by the terminal device based on the first process data packets of the industrial equipment, a first uplink delay parameter, and a second uplink delay parameter. The first uplink delay parameter is the transmission delay of a first communication path determined by the terminal based on the packet reception timestamp of the first process data packet. The second uplink delay parameter is the transmission delay of a second communication path determined by the terminal device based on the packet reception timestamp and the uplink pending transmission timestamp of the first process data packet. The first communication path is the communication path between the terminal device and the industrial equipment, and the second communication path is the communication path within the terminal device.

[0049] The second acquisition module is used to acquire the first process data packet, the first uplink delay parameter, and the second uplink delay parameter from the uplink data packet;

[0050] The second calculation module is used to calculate the third uplink delay parameter of the third communication path between the terminal device and the UPF network element based on the packet reception timestamp of the uplink data packet and the packet reception timestamp of the previous uplink data packet for the target industrial equipment.

[0051] The second calculation module is used to calculate the fourth uplink delay parameter of the fourth communication path inside the UPF network element based on the packet reception timestamp of the uplink data packet and the pending transmission timestamp of the first process data packet.

[0052] Fifthly, another embodiment of this application provides a terminal device, including: a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the terminal device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of any of the methods described in the first aspect above.

[0053] In a sixth aspect, another embodiment of this application provides a User Plane Function (UPF) network element, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the UPF network element is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of any of the methods described in the first aspect above.

[0054] Fourthly, another embodiment of this application provides a storage medium storing a computer program, which, when executed by a processor, performs the steps of the network quality monitoring method as described in either the first or second aspect above.

[0055] The beneficial effects of this application are:

[0056] A network quality monitoring method, terminal equipment, and User Plane Function (UPF) network element are disclosed. First, the terminal equipment receives a first process data packet sent by a target industrial device. Based on the receive timestamp of the first process data packet and the receive timestamp of the previous first process data packet for the target industrial device, a first uplink delay parameter is calculated. Then, based on the receive timestamp of the first process data packet and the uplink pending transmission timestamp, a second uplink delay parameter is calculated. Next, based on the first process data packet, the first uplink delay parameter, and the second uplink delay parameter, an uplink data packet is generated and sent to the UPF network element. The UPF network element calculates a third uplink delay parameter based on the receive timestamp of the uplink data packet and the receive timestamp of the previous uplink data packet for the target industrial device. Finally, based on the receive timestamp of the uplink data packet and the pending transmission timestamp of the first process data packet, a fourth uplink delay parameter is calculated. In this application, the uplink delay parameters of multiple communication paths are calculated separately, and the communication status of multiple communication paths is monitored in real time. When the communication system fails, the communication path corresponding to the failure can be accurately located based on the delay parameters, thereby improving the efficiency of troubleshooting abnormal network conditions and optimizing the communication paths in a targeted manner. Attached Figure Description

[0057] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0058] Figure 1 A communication diagram illustrating an industrial control scenario provided in an embodiment of this application;

[0059] Figure 2 A schematic diagram illustrating the uplink data transmission process in a network quality monitoring method provided in this application embodiment;

[0060] Figure 3 A schematic diagram of the process for generating alarm logs in the first network quality monitoring method provided in this application embodiment;

[0061] Figure 4 A schematic diagram illustrating the downlink data transmission process in a network quality monitoring method provided in this application embodiment;

[0062] Figure 5 A schematic diagram illustrating the process of generating alarm dates in the second network quality monitoring method provided in this application embodiment;

[0063] Figure 6 A schematic diagram of a network quality monitoring device provided in an embodiment of this application;

[0064] Figure 7 A schematic diagram of another network quality monitoring device provided in the embodiments of this application;

[0065] Figure 8 This application provides a schematic diagram of a terminal device structure.

[0066] Figure 9 This is a schematic diagram of the structure of a User Plane Function (UPF) network element provided in an embodiment of this application. Detailed Implementation

[0067] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.

[0068] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0069] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.

[0070] In real-time industrial control scenarios, industrial equipment and industrial control equipment typically use the Industrial Ethernet protocol for network communication. The industrial control equipment and industrial equipment are configured with parameters via User Datagram Protocol (UDP), including watchdog parameters: packet sending cycle and frequency. After successful negotiation, the industrial control equipment and industrial equipment periodically send process data packets to each other. These process data packets contain the equipment's own operating status and data, ensuring the normal operation of both parties and the network communication. Figure 1 This application provides a communication diagram for an industrial control scenario, as shown in the embodiment. Figure 1 As shown, the specific equipment includes: industrial equipment, industrial Ethernet switches, terminal equipment, base stations, user plane function UPF network elements, data network-side switches, and industrial control equipment. The industrial equipment communicates with the terminal equipment through the industrial Ethernet switches, and the industrial control equipment communicates with the UPF network elements through the data network-side switches. Specifically, the communication paths are as follows: first, between the industrial equipment and the terminal equipment; second, within the terminal equipment; third, between the terminal equipment and the user plane function UPF network elements; fourth, within the UPF network elements; and fifth, between the UPF network elements and the industrial control equipment. The uplink data transmission process is as follows: the industrial equipment sends the first process data packet to the terminal equipment through the industrial Ethernet switch; the terminal equipment sends the first process data packet to the UPF network element through the base station; and the UPF network element sends the first process data packet to the industrial control equipment through the data network-side switches. The downlink data transmission process is as follows: the industrial control equipment sends the second process data packet to the UPF network element through the data network-side switch; the UPF network element sends the second process data packet to the terminal equipment through the base station; and the terminal equipment sends the second process data packet to the industrial equipment through the industrial Ethernet switch. However, in the existing technology, when a communication failure occurs, the user can only see the communication result and cannot clearly identify which specific communication path has a problem, making it impossible to pinpoint the specific communication issue.

[0071] Therefore, this application provides a network quality monitoring method that monitors multiple communication paths during the communication process. When a communication failure occurs, the specific faulty communication path is identified, and the corresponding communication problem is addressed in a targeted manner, improving the efficiency of fault resolution. The network quality monitoring method provided by this application is described below with reference to several accompanying drawings. The network monitoring method in this application is executed interactively between a terminal device and a UPF network element. The terminal device and the UPF network element typically communicate via the PROFINET protocol, and the process data message in this application is a PROFINET protocol process data message. When executing the method of this application, the terminal device and the UPF network element monitor the connection request messages sent between industrial control devices. Based on the parsing results of the connection request messages, the communication cycle and number of times are determined, and the corresponding watchdog parameters are determined. Multiple delay parameters are judged based on the watchdog parameters. The connection request message can be a ConnectRequest type message of the PNIO-CM protocol.

[0072] First, the uplink data transmission process will be explained. Figure 2 This is a schematic diagram of the uplink data transmission process in a network quality monitoring method provided in an embodiment of this application, as shown below. Figure 2 As shown, the method includes:

[0073] Step 201: Receive the first process data message sent by the target industrial equipment connected to the terminal equipment.

[0074] The target industrial equipment can be a servo motor, frequency converter, input device, and output device, etc. Input devices can be sensors, and output devices can be actuators; this application embodiment does not limit this. The terminal device can be an industrial handheld device, industrial tablet, or other types of industrial terminal device; this application embodiment does not limit this. The first process data message can include process data, real-time data, diagnostic data, synchronization information, etc., of the industrial equipment; this application embodiment does not limit this. The first process data message can be a PNIO process data message.

[0075] Optionally, the target industrial equipment connects to the local area network interface (LAN interface) of the terminal equipment via an industrial Ethernet switch, thereby sending the first process data packet to the terminal equipment.

[0076] Step 202: Calculate the first uplink delay parameter of the first communication path between the target industrial equipment and the terminal equipment based on the packet receiving timestamp of the first process data message and the packet receiving timestamp of the previous first process data message for the target industrial equipment.

[0077] Optionally, if the target industrial equipment sends first process data packets at the same time interval, then the terminal equipment receives first process data packets at the same time interval. If the terminal equipment receives first process data packets at different time intervals, then the first uplink delay parameter of the first communication path between the target industrial equipment and the terminal equipment can be calculated based on the packet reception timestamp of the first industrial Ethernet for the target industrial equipment and the packet reception timestamp of the previous first process data packet. The first uplink delay parameter includes: the packet reception timestamp of the first industrial Ethernet, the packet reception timestamp of the previous first process data packet, and the time interval between the packet reception timestamp of the first industrial Ethernet and the packet reception timestamp of the previous first process data packet.

[0078] For example, if the time interval between the target industrial equipment sending the first process data packet is 8 milliseconds, then the time interval between the first process data packets received by the terminal equipment is also 8 milliseconds. If the time interval between the first industrial Ethernet and the previous first process data packet is calculated to be 9 milliseconds based on the packet receiving timestamp of the first industrial Ethernet of the target industrial equipment and the packet receiving timestamp of the previous first process data packet, then the first uplink delay parameter is the difference between 9 milliseconds and 8 milliseconds.

[0079] Step 203: Calculate the second uplink delay parameter of the second communication path inside the terminal device based on the packet reception timestamp and uplink pending transmission timestamp of the first process data message.

[0080] Optionally, the local area network (LAN) interface of the terminal device is used to receive packets, and the wide area network (WAN) interface of the terminal device is used to send packets. If the timestamp intervals of packets received by the LAN interface are the same, and if there is no delay, then the intervals of the timestamps to be sent by the WAN interface are the same. When the time interval between the timestamp to be sent by the WAN interface and the timestamp to be received by the LAN interface for a certain packet is greater than the time intervals of other packets, it indicates that a second uplink delay parameter exists in the second communication path, and the time interval between the timestamp to be sent by the WAN interface and the timestamp to be received by the LAN interface is used as the second uplink delay parameter. The second delay parameter also includes: the timestamp to be received and the uplink timestamp to be sent.

[0081] Step 204: Generate an uplink data packet based on the first process data packet, the first uplink delay parameter, and the second uplink delay parameter.

[0082] The uplink data packet includes: a first process data packet, a first uplink delay parameter, and a second uplink delay parameter. The uplink data packet is obtained by adding the first uplink delay parameter and the second uplink delay parameter to the first process data packet.

[0083] Step 205: Send the uplink data packet to the User Plane Function (UPF) network element in the industrial control network system, so that the UPF network element can determine the third uplink delay parameter of the third communication path between the terminal device and the UPF network element, and the fourth uplink delay parameter of the fourth communication path within the UPF network element, based on the packet reception timestamp of the uplink data packet.

[0084] Optionally, the WAN interface of the terminal device forwards the uplink data packets to the User Plane Function (UPF) network element in the industrial control network system through the base station, so that the UPF network element determines the third uplink delay parameter of the third communication path between the terminal device and the UPF network element, and the fourth uplink delay parameter of the fourth communication path within the UPF network element, based on the packet reception timestamp of the uplink data packets.

[0085] Step 206: Receive uplink data packets sent by the terminal device.

[0086] The uplink data packet is a packet generated by the terminal device based on the first process data packet of the industrial equipment, the first uplink delay parameter, and the second uplink delay parameter. The first uplink delay parameter is the transmission delay of the first communication path determined by the terminal based on the packet reception timestamp of the first process data packet. The second uplink delay parameter is the transmission delay of the second communication path determined by the terminal device based on the packet reception timestamp and the uplink pending transmission timestamp of the first process data packet. The first communication path is the communication path between the terminal device and the industrial equipment, and the second communication path is the communication path within the terminal device.

[0087] Step 207: Obtain the first process data packet, the first uplink delay parameter, and the second uplink delay parameter from the uplink data packet.

[0088] Optionally, the UPF network element parses the uplink message data to obtain the first process data message, the first uplink delay parameter, and the second uplink delay parameter.

[0089] Step 208: Calculate the third uplink delay parameter of the third communication path between the terminal device and the UPF network element based on the uplink data packet reception timestamp and the previous uplink data packet reception timestamp for the target industrial device.

[0090] Optionally, if the time intervals between uplink data packets sent by the terminal devices are the same, then the time intervals between uplink data packets received by the UPF network element are also the same. If the time intervals between uplink data packets received by the UPF network element are not the same, then the third uplink delay parameter of the third communication path from the terminal device to the UPF network element can be calculated based on the timestamp of the uplink data packet received for the target industrial equipment and the timestamp of the previous uplink data packet. The third uplink delay parameter includes: the timestamp of the uplink data packet received, the timestamp of the previous uplink data packet received, and the time interval.

[0091] Step 209: Calculate the fourth uplink delay parameter of the fourth communication path within the UPF network element based on the receive timestamp of the uplink data packet and the send timestamp of the first process data packet.

[0092] The UPF network element receives uplink data packets through the N3 interface and sends the first process data packets through the N6 structure.

[0093] Optionally, if the timestamps of uplink data packets received by the UPF network element are at the same interval, and there is no delay, N6 sets the intervals of the timestamps to be sent for the packets to be the same. If the time interval between the timestamp to be sent and the timestamp to be received for a certain packet is greater than the time intervals of other packets, it indicates the existence of a fourth uplink delay parameter in the fourth communication path. The time interval between the timestamp to be received for the uplink data packet and the timestamp to be sent for the first process data packet is used as the fourth uplink delay parameter. The fourth uplink delay parameter also includes the timestamp to be received for the uplink data packet and the timestamp to be sent for the first process data packet.

[0094] In this embodiment, a first process data packet sent by the target industrial equipment is first received by a terminal device. A first uplink delay parameter is calculated based on the receive timestamp of the first process data packet and the receive timestamp of the previous first process data packet for the target industrial equipment. A second uplink delay parameter is calculated based on the receive timestamp of the first process data packet and the uplink transmission timetamp. An uplink data packet is generated based on the first process data packet, the first uplink delay parameter, and the second uplink delay parameter, and is sent to the UPF network element. The UPF network element calculates a third uplink delay parameter based on the receive timestamp of the uplink data packet and the receive timestamp of the previous uplink data packet for the target industrial equipment. A fourth uplink delay parameter is calculated based on the receive timestamp of the uplink data packet and the transmission timetamp of the first process data packet. In this application, the uplink delay parameters of multiple communication paths are calculated separately, and the communication status of multiple communication paths is monitored in real time. When the communication system fails, the communication path corresponding to the failure can be accurately located based on the delay parameters, thereby improving the efficiency of troubleshooting abnormal network conditions and optimizing the communication paths in a targeted manner.

[0095] Based on the above embodiments, this application also provides a process for generating alarm logs in the first network quality monitoring method. Figure 3 This is a schematic diagram of the process for generating alarm logs in the first network quality monitoring method provided in this application embodiment, as shown below. Figure 3 As shown, based on steps 201-209 above, the method further includes:

[0096] Step 301: If the first uplink delay parameter exceeds the preset delay of the first communication path, then based on the first uplink delay parameter and the identification information of the target industrial equipment, generate and send the uplink alarm log of the first communication path to the network management device of the industrial control network system.

[0097] Optionally, the preset delay can be determined according to the actual situation, for example, it can be 1 millisecond. That is, the difference between the timestamp of the terminal device receiving the first process data packet and the timestamp of the previous first process data packet is taken as the difference between the timestamp of the target industrial device sending the first process data packet and the timestamp of the previous first process data packet is taken as the difference again. If the resulting first uplink delay parameter exceeds the preset delay of the first communication path, it indicates that there is a problem with the operation of the industrial Ethernet switch. The fault can be troubleshooted by checking the network latency status of the subnet of the downstream devices of the target terminal device. Then, based on the first uplink delay parameter and the identification information of the target industrial device, the uplink alarm log of the first communication path is generated and sent to the network management device of the industrial control network system.

[0098] Optionally, when viewing the uplink alarm logs of the first communication path in the network management device, one can view the alarm logs for the target industrial device or for all industrial devices based on the fault time.

[0099] Step 302: If the second uplink delay parameter exceeds the preset delay of the second communication path, then based on the first uplink delay parameter, the second uplink delay parameter, and the identification information of the target industrial equipment, generate and send the alarm log of the second communication path to the network management device.

[0100] Optionally, if the first difference between the received timestamp and the uplink pending transmission timestamp of the first process data packet is greater than the second difference between the received timestamp and the uplink pending transmission timestamp of a normal first process data packet, then the difference between the first and second differences is calculated. If the difference between the first and second differences exceeds the preset delay of the second communication path, it indicates an internal operational abnormality of the terminal device. Based on the first uplink delay parameter, the second uplink delay parameter, and the identification information of the target industrial device, an alarm log for the second communication path is generated and sent to the network management device. The preset delay of the second communication path can be determined according to actual conditions, for example, it can be 0.5 milliseconds.

[0101] Optionally, when viewing the uplink alarm logs of the second communication path in the network management device, you can view the alarm logs of the target industrial device or view the alarm logs of all industrial devices based on the time of the failure.

[0102] Step 303: If the third uplink delay parameter exceeds the preset delay of the third communication path, then based on the first uplink delay parameter, the second uplink delay parameter, the third uplink delay parameter and the identification information of the target industrial equipment, an uplink alarm log for the third communication path is generated and sent to the network management device.

[0103] Optionally, the difference between the received timestamp of the uplink data packet and the received timestamp of the previous uplink data packet, and the difference between the timestamp of the uplink data packet sent by the terminal device and the timestamp of the previous uplink data packet, is calculated again. If the resulting third uplink delay parameter exceeds the preset delay of the third communication path, it indicates that the uplink quality of the wireless network is poor and the risk of communication timeout is increasing. The preset delay of the third communication path can be 2 / 3 of the watchdog time of the UPF network element. This embodiment does not impose a limitation on this; it can be determined based on the actual situation.

[0104] Optionally, when viewing the uplink alarm logs of the third communication path in the network management device, you can view the alarm logs of the target industrial device or view the alarm logs of all industrial devices based on the time of the failure.

[0105] Step 304: If the fourth uplink delay parameter exceeds the preset delay of the fourth communication path, then based on the fourth uplink delay parameter, the third uplink delay parameter, the second uplink delay parameter, the first uplink delay parameter, and the identification information of the target industrial equipment, generate and send the uplink alarm log of the fourth communication path to the network management device.

[0106] Optionally, if the third difference between the received timestamp of the uplink data packet and the pending transmission timestamp of the first process data packet is greater than the fourth difference between the received timestamp of the normal uplink data packet and the pending transmission timestamp of the first process data packet, then the difference between the third and fourth differences is calculated. If the difference between the third and fourth differences exceeds the preset delay of the fourth communication path, it indicates an internal operational anomaly of the UPF network element. Based on the fourth uplink delay parameter, the third uplink delay parameter, the second uplink delay parameter, the first uplink delay parameter, and the identification information of the target industrial equipment, an uplink alarm log for the fourth communication path is generated and sent to the network management device. The preset delay of the fourth communication path can be determined according to actual conditions, for example, it can be 0.5 milliseconds.

[0107] Optionally, when viewing the uplink alarm logs of the fourth communication path in the network management device, one can view the alarm logs for the target industrial device or for all industrial devices based on the time of the fault.

[0108] In this embodiment, when any one of the first, second, third, or fourth uplink delay parameters exceeds the preset delay of the corresponding path, a corresponding alarm log is generated and sent to the network management device of the industrial control network system. This means that communication failures along the corresponding communication path can be identified within the network management device, thereby improving the efficiency of fault diagnosis. Furthermore, the alarm logs can be viewed based on the industrial equipment and time, helping maintenance personnel quickly identify equipment problems and thus perform effective fault diagnosis and location.

[0109] Based on the above embodiments, the downlink data transmission process will be described. Figure 4 This is a schematic diagram of the downlink data transmission process in a network quality monitoring method provided in an embodiment of this application, as shown below. Figure 4 As shown, the method includes:

[0110] Step 401: Receive the second process data message sent by the target industrial control equipment connected to the UPF network element.

[0111] The target industrial control equipment can be a programmable logic controller (PLC). The second process data message may include Ethernet frame type, data payload, frame check sequence, etc., which are not limited in this embodiment.

[0112] Optionally, the N6 interface of the UPF network element is connected to the target industrial control equipment through a network data-side switch to receive the second process data packets sent by the target industrial control equipment.

[0113] Step 402: Based on the packet reception timestamp of the second process data message and the packet reception timestamp of the previous process data message for the target industrial equipment, calculate the fifth downlink delay parameter of the fifth communication path between the target industrial control equipment and the UPF network element.

[0114] Optionally, if the time intervals between the target industrial control equipment sending the second process data packets are the same, then the time intervals between the second process data packets received by the UPF network element are also the same. If the time intervals between the second process data packets received by the UPF network element are not the same, then the fifth downlink delay parameter of the fifth communication path between the target industrial control equipment and the UPF network element can be calculated based on the packet reception timestamp of the second industrial Ethernet for the target industrial equipment and the packet reception timestamp of the previous second process data packet. The fifth downlink delay parameter includes: the packet reception timestamp of the second industrial Ethernet, the packet reception timestamp of the previous second process data packet, and the time interval between the packet reception timestamp of the second industrial Ethernet and the packet reception timestamp of the previous second process data packet.

[0115] Step 403: Calculate the fourth downlink delay parameter of the fourth communication path within the UPF network element based on the packet reception timestamp and downlink transmission timestamp of the second process data message.

[0116] Optionally, if the timestamps of the second process data packets received by the UPF network element are at the same interval, and there is no delay, the N3 interface will have the same interval for the timestamps to be sent. If the time interval between the timestamp to be sent and the timestamp to be received of a certain packet is greater than the time interval of other packets, it indicates the existence of a fourth downlink delay parameter in the fourth communication path. The time interval between the timestamp to be received and the timestamp to be sent of the second process data packet is used as the fourth downlink delay parameter. The fourth downlink delay parameter also includes the timestamp to be received and the timestamp to be sent of the second process data packet.

[0117] Step 404: Generate a downlink data message based on the second process data message, the fifth downlink delay parameter, and the fourth downlink delay parameter.

[0118] Step 405: Send the downlink data packet to the terminal device in the industrial control network system, so that the terminal device can determine the third downlink delay parameter of the third communication path between the terminal device and the UPF network element, and the second downlink delay parameter of the second communication path inside the terminal device, based on the packet reception timestamp of the downlink data packet.

[0119] Optionally, the N3 interface of the UPF network element forwards downlink data packets to the terminal equipment in the industrial control network system through the base station, so that the terminal equipment determines the third downlink delay parameter of the third communication path between the terminal equipment and the UPF network element, as well as the second downlink delay parameter of the second communication path within the terminal equipment, based on the packet reception timestamp of the downlink data packets.

[0120] Step 406: Receive downlink data packets sent by the UPF network element.

[0121] Among them, the downlink data packet is a packet generated by the UPF network element based on the second process data packet, the fifth downlink delay parameter, and the fourth downlink delay parameter of the industrial control equipment. The fifth downlink delay parameter is the transmission delay of the fifth communication path determined by the UPF network element based on the packet reception timestamp of the second process data packet. The fourth downlink delay parameter is the transmission delay of the fourth communication path determined by the UPF network element based on the packet reception timestamp and the downlink pending transmission timestamp of the second process data packet. The fifth communication path is the communication path between the UPF network element and the industrial control equipment.

[0122] Step 407: Obtain the second process data packet, the fifth downlink delay parameter, and the fourth downlink delay parameter from the downlink data packet.

[0123] Optionally, the terminal device parses the downlink message data to obtain the second process data message, the fifth downlink delay parameter, and the fourth downlink delay parameter.

[0124] Step 408: Calculate the third downlink delay parameter of the third communication path based on the downlink data packet reception timestamp and the previous downlink data packet reception timestamp for the target industrial equipment.

[0125] Optionally, if the UPF network elements send downlink data packets at the same time interval, then the terminal devices receive uplink data packets at the same time interval. If the terminal devices receive downlink data packets at different time intervals, then the third downlink delay parameter of the third communication path from the UPF network element to the terminal device can be calculated based on the timestamp of the downlink data packet received for the target industrial equipment and the timestamp of the previous downlink data packet received. The third downlink delay parameter includes: the timestamp of the downlink data packet received, the timestamp of the previous downlink data packet received, and the time interval.

[0126] Step 409: Calculate the second downlink delay parameter of the second communication path based on the downlink data packet reception timestamp and downlink pending transmission timestamp.

[0127] The terminal device receives downlink data packets through the Ethernet interface and sends second-process data packets through the LAN interface.

[0128] Optionally, if the timestamps of the uplink data packets received by the terminal device are at the same interval, and there is no delay, the intervals of the pending transmission timestamps for the packets on the local area network interface are also the same. If the time interval between the pending transmission timestamp and the received timestamp of a certain packet is greater than the time intervals of other packets, it indicates the existence of a second downlink delay parameter in the second communication path. The time interval between the received timestamp of the downlink data packet and the pending transmission timestamp of the second process data packet is used as the second downlink delay parameter. The second downlink delay parameter also includes: the received timestamp of the downlink data packet and the pending transmission timestamp of the second process data packet.

[0129] In this embodiment, a second process data packet sent by the target industrial control equipment connected to the UPF network element is received. A fifth downlink delay parameter is calculated based on the receive timestamp of the second process data packet and the receive timestamp of the previous process data packet for the target industrial equipment. A fourth downlink delay parameter is calculated based on the receive timestamp of the second process data packet and the downlink pending transmission timestamp. A third downlink delay parameter is calculated based on the receive timestamp of the downlink data packet and the receive timestamp of the previous downlink data packet for the target industrial equipment. A second downlink delay parameter is calculated based on the receive timestamp of the downlink data packet and the downlink pending transmission timestamp. This application calculates downlink delay parameters for multiple communication paths separately and monitors the communication status of multiple communication paths in real time. When a communication system failure occurs, the communication path corresponding to the failure can be accurately located based on the delay parameters, improving the efficiency of troubleshooting network anomalies and enabling targeted optimization of communication paths.

[0130] Based on the above embodiments, this application also provides a process for generating alarm logs in a second network quality monitoring method. Figure 5 This is a flowchart illustrating the process of generating alarm dates in the second network quality monitoring method provided in this application embodiment, as shown below. Figure 5 As shown, based on steps 401-409 above, the method further includes:

[0131] Step 501: If the fifth downlink delay parameter exceeds the preset delay of the fifth communication path, then based on the fifth downlink delay parameter and the identification information of the target industrial equipment, generate and send the downlink alarm log of the fifth communication path to the network management device of the industrial control network system.

[0132] Optionally, the preset delay can be determined according to the actual situation. For example, it can be 1 millisecond. That is, the difference between the timestamp of the UPF network element receiving the second process data packet and the timestamp of the previous second process data packet is taken as the difference between the timestamp of the target industrial control equipment sending the second process data packet and the timestamp of the previous second process data packet is taken as the difference again. If the resulting fifth downlink delay parameter exceeds the preset delay of the fifth communication path, it indicates that there is a problem with the operation of the data network-side switch. Then, based on the fifth downlink delay parameter and the identification information of the target industrial equipment, a downlink alarm log for the fifth communication path is generated and sent to the network management device of the industrial control network system.

[0133] Optionally, when viewing the downlink alarm logs of the fifth communication path in the network management device, you can view the alarm logs of the target industrial device or view the alarm logs of all industrial devices based on the time of the failure.

[0134] Step 502: If the fourth downlink delay parameter exceeds the preset delay of the fourth communication path, then based on the fifth downlink delay parameter, the fourth downlink delay parameter, and the identification information of the target industrial equipment, generate and send the alarm log of the fourth communication path to the network management device.

[0135] Optionally, if the fifth difference between the received timestamp and the downlink transmission timestamp of the second process data packet is greater than the sixth difference between the received timestamp and the downlink transmission timestamp of a normal second process data packet, then the difference between the fifth and sixth differences is calculated. If the difference between the fifth and sixth differences exceeds the preset delay of the fourth communication path, it indicates an internal operational anomaly of the UPF network element. Based on the fifth downlink delay parameter, the fourth downlink delay parameter, and the identification information of the target industrial equipment, an alarm log for the fourth communication path is generated and sent to the network management device. The preset delay of the fourth communication path can be determined according to actual conditions, for example, it can be 0.5 milliseconds.

[0136] Optionally, when viewing the uplink alarm logs of the fourth communication path in the network management device, one can view the alarm logs for the target industrial device or for all industrial devices based on the time of the fault.

[0137] Step 503: If the third downlink delay parameter exceeds the preset delay of the third communication path, then based on the fifth downlink delay parameter, the fourth downlink delay parameter, the third downlink delay parameter, and the identification information of the target industrial equipment, a downlink alarm log for the third communication path is generated and sent to the network management device.

[0138] Optionally, the difference between the downlink data packet reception timestamp and the reception timestamp of the previous downlink data packet, and the difference between the timestamp of the uplink data packet sent by the UPF network element and the timestamp of the uplink data packet, is calculated again. If the resulting third downlink delay parameter exceeds the preset delay of the third communication path, it indicates that the downlink quality of the wireless network is poor and the risk of communication timeout is increasing. The preset delay of the third communication path can be 2 / 3 of the watchdog time of the UPF network element; this embodiment does not impose a limitation on this, and it can be determined based on the actual situation.

[0139] Optionally, when viewing the downlink alarm logs of the third communication path in the network management device, you can view the alarm logs of the target industrial device or view the alarm logs of all industrial devices based on the time of the failure.

[0140] Step 504: If the second downlink delay parameter exceeds the preset delay of the second communication path, then based on the fifth downlink delay parameter, the fourth downlink delay parameter, the third downlink delay parameter, the second downlink delay parameter, and the identification information of the target industrial equipment, a downlink alarm log for the second communication path is generated and sent to the network management device.

[0141] Optionally, if the seventh difference between the received timestamp of the downlink data packet and the pending transmission timestamp of the second process data packet is greater than the eighth difference between the received timestamp of the normal downlink data packet and the pending transmission timestamp of the second process data packet, then the difference between the seventh and eighth differences is calculated. If the difference between the seventh and eighth differences exceeds the preset delay of the second communication path, it indicates an internal operational abnormality of the terminal device. Then, based on the fifth, fourth, third, and second downlink delay parameters, as well as the identification information of the target industrial equipment, a downlink alarm log for the second communication path is generated and sent to the network management device. The preset delay of the second communication path can be determined according to actual conditions, for example, it can be 0.5 milliseconds.

[0142] Optionally, when viewing the downlink alarm logs of the second communication path in the network management device, one can view the alarm logs for the target industrial device or for all industrial devices based on the time of the failure.

[0143] In this embodiment, when any one of the fifth, fourth, third, and second downlink delay parameters exceeds the preset delay of the corresponding path, a corresponding alarm log is generated and sent to the network management device of the industrial control network system. This means that communication failures along the corresponding communication path can be identified within the network management device, thereby improving the efficiency of fault diagnosis. Furthermore, the alarm logs can be viewed based on the industrial equipment and time, helping maintenance personnel quickly identify equipment problems and thus perform effective fault diagnosis and location.

[0144] Based on the same inventive concept, this application also provides a network quality monitoring device corresponding to a network quality monitoring method. Since the principle of the device in this application is similar to that of the network quality monitoring method described above, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.

[0145] Figure 6 This is a schematic diagram of a network quality monitoring device provided in an embodiment of this application, as shown below. Figure 6 As shown, the device includes:

[0146] The first receiving module 601 is used to receive the first process data message sent by the target industrial equipment connected to the terminal equipment;

[0147] The first calculation module 602 is used to calculate the first uplink delay parameter of the first communication path between the target industrial equipment and the terminal equipment based on the packet receiving timestamp of the first process data message and the packet receiving timestamp of the previous first process data message for the target industrial equipment.

[0148] The first calculation module 602 is used to calculate the second uplink delay parameter of the second communication path inside the terminal device based on the packet receiving timestamp and uplink to be sent timestamp of the first process data message;

[0149] The first generation module 603 is used to generate an uplink data packet based on the first process data packet, the first uplink delay parameter, and the second uplink delay parameter.

[0150] The first sending module 604 is used to send uplink data packets to the user plane function (UPF) network element in the industrial control network system, so that the UPF network element determines the third uplink delay parameter of the third communication path between the terminal device and the UPF network element, and the fourth uplink delay parameter of the fourth communication path within the UPF network element, based on the packet reception timestamp of the uplink data packet.

[0151] In one possible implementation, the first generation module 603 is further configured to: if the first uplink delay parameter exceeds the preset delay of the first communication path, generate and send the uplink alarm log of the first communication path to the network management device of the industrial control network system based on the first uplink delay parameter and the identification information of the target industrial equipment.

[0152] If the second uplink delay parameter exceeds the preset delay of the second communication path, an alarm log for the second communication path will be generated and sent to the network management device based on the first uplink delay parameter, the second uplink delay parameter, and the identification information of the target industrial equipment.

[0153] In one possible implementation, the first receiving module 601 is further configured to: receive downlink data packets sent by the UPF network element; wherein the downlink data packet is a packet generated by the UPF network element based on the second process data packet, the fifth downlink delay parameter, and the fourth downlink delay parameter of the industrial control equipment; the fifth downlink delay parameter is the transmission delay of the fifth communication path determined by the UPF network element based on the packet reception timestamp of the second process data packet; the fourth downlink delay parameter is the transmission delay of the fourth communication path determined by the UPF network element based on the packet reception timestamp and the downlink pending transmission timestamp of the second process data packet; and the fifth communication path is the communication path between the UPF network element and the industrial control equipment.

[0154] In one possible implementation, the network quality monitoring device further includes: a first acquisition module, which is used to acquire a second process data packet, a fifth downlink delay parameter, and a fourth downlink delay parameter from the downlink data packet;

[0155] In one possible implementation, the first calculation module 602 is further configured to: calculate the third downlink delay parameter of the third communication path based on the packet reception timestamp of the downlink data packet and the packet reception timestamp of the previous downlink data packet for the target industrial equipment;

[0156] In one possible implementation, the first calculation module 602 is further configured to: calculate the second downlink delay parameter of the second communication path based on the downlink data packet reception timestamp and the downlink pending transmission timestamp.

[0157] In one possible implementation, the first generation module 603 is further configured to: if the third downlink delay parameter exceeds the preset delay of the third communication path, generate and send the downlink alarm log of the third communication path to the network management device based on the fifth downlink delay parameter, the fourth downlink delay parameter, the third downlink delay parameter and the identification information of the target industrial equipment;

[0158] If the second downlink delay parameter exceeds the preset delay of the second communication path, then based on the fifth downlink delay parameter, the fourth downlink delay parameter, the third downlink delay parameter, the second downlink delay parameter, and the identification information of the target industrial equipment, a downlink alarm log for the second communication path is generated and sent to the network management device.

[0159] The processing flow of each module in the device and the interaction flow between each module can be referred to the relevant descriptions in the above method embodiments, and will not be detailed here.

[0160] Based on the same inventive concept, this application also provides a network quality monitoring device corresponding to another network quality monitoring method. Since the principle of the device in this application is similar to the above-mentioned network quality monitoring method in this application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.

[0161] Figure 7 This is a schematic diagram of another network quality monitoring device provided in the embodiments of this application, as shown below. Figure 7 As shown, the device includes:

[0162] The second receiving module 701 is used to receive uplink data packets sent by the terminal device. The uplink data packets are packets generated by the terminal device based on the first process data packets of the industrial equipment, the first uplink delay parameter, and the second uplink delay parameter. The first uplink delay parameter is the transmission delay of the first communication path determined by the terminal based on the packet receiving timestamp of the first process data packets. The second uplink delay parameter is the transmission delay of the second communication path determined by the terminal device based on the packet receiving timestamp and the uplink pending transmission timestamp of the first process data packets. The first communication path is the communication path between the terminal device and the industrial equipment, and the second communication path is the communication path within the terminal device.

[0163] The second acquisition module 702 is used to acquire the first process data packet, the first uplink delay parameter, and the second uplink delay parameter from the uplink data packet;

[0164] The second calculation module 703 is used to calculate the third uplink delay parameter of the third communication path between the terminal device and the UPF network element based on the packet receiving timestamp of the uplink data packet and the packet receiving timestamp of the previous uplink data packet for the target industrial device.

[0165] The second calculation module 703 is used to calculate the fourth uplink delay parameter of the fourth communication path inside the UPF network element based on the packet reception timestamp of the uplink data packet and the pending transmission timestamp of the first process data packet.

[0166] In one possible implementation, the network quality monitoring device further includes: a second generation module, which is used to generate and send an uplink alarm log of the third communication path to the network management device based on the first uplink delay parameter, the second uplink delay parameter, the third uplink delay parameter and the identification information of the target industrial equipment if the third uplink delay parameter exceeds the preset delay of the third communication path.

[0167] If the fourth uplink delay parameter exceeds the preset delay of the fourth communication path, then based on the fourth uplink delay parameter, the third uplink delay parameter, the second uplink delay parameter, the first uplink delay parameter, and the identification information of the target industrial equipment, an uplink alarm log for the fourth communication path is generated and sent to the network management device.

[0168] In one possible implementation, the second receiving module 701 is further configured to: receive a second process data message sent by the target industrial control equipment connected to the UPF network element;

[0169] In one possible implementation, the second calculation module 703 is further configured to: obtain the receiving timestamp of the second process data message and the receiving timestamp of the previous process data message for the target industrial equipment, and calculate the fifth downlink delay parameter of the fifth communication path between the target industrial control equipment and the UPF network element.

[0170] In one possible implementation, the second calculation module 703 is further configured to: calculate the fourth downlink delay parameter of the fourth communication path within the UPF network element based on the packet reception timestamp and downlink transmission timestamp of the second process data message;

[0171] In one possible implementation, the second generation module is further configured to: generate a downlink data packet based on the second process data packet, the fifth downlink delay parameter, and the fourth downlink delay parameter.

[0172] In one possible implementation, the network quality monitoring device further includes a second sending module: the second sending module is specifically used for:

[0173] The downlink data packets are sent to the terminal devices in the industrial control network system, so that the terminal devices can determine the third downlink delay parameters of the third communication path between the terminal devices and the UPF network element, as well as the second downlink delay parameters of the second communication path within the terminal devices, based on the packet reception timestamp of the downlink data packets.

[0174] In one possible implementation, the second generation module is further configured to: if the fifth downlink delay parameter exceeds the preset delay of the fifth communication path, generate and send the downlink alarm log of the fifth communication path to the network management device of the industrial control network system based on the fifth downlink delay parameter and the identification information of the target industrial equipment;

[0175] If the fourth downlink delay parameter exceeds the preset delay of the fourth communication path, an alarm log for the fourth communication path will be generated and sent to the network management device based on the fifth downlink delay parameter, the fourth downlink delay parameter, and the identification information of the target industrial equipment.

[0176] The processing flow of each module in the device and the interaction flow between each module can be referred to the relevant descriptions in the above method embodiments, and will not be detailed here.

[0177] This application also provides a terminal device. Figure 8 This application provides a schematic diagram of a terminal device structure, as shown in the embodiment of the present application. Figure 8 As shown, the terminal device includes a processor 801 and a memory 802, and optionally, a bus 803. The memory 802 stores machine-readable instructions executable by the processor 801. When the terminal device is running, the processor 801 and the memory 802 communicate via the bus 803. When the machine-readable instructions are executed by the processor 801, the steps of the aforementioned network quality monitoring method are performed.

[0178] This application also provides a User Plane Function (UPF) network element. Figure 9 This application provides a schematic diagram of the structure of a User Plane Function (UPF) network element, as shown in the embodiments of this application. Figure 9 As shown, the User Plane Function (UPF) network element includes a processor 901 and a memory 902, and optionally, a bus 903. The memory 902 stores machine-readable instructions executable by the processor 901. When the terminal device is running, the processor 901 and the memory 902 communicate via the bus 903. When the machine-readable instructions are executed by the processor 901, the steps of the other network quality monitoring method described above are performed.

[0179] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the network quality monitoring method described above.

[0180] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection can be through some communication interfaces; the indirect coupling or communication connection of devices or modules can be electrical, mechanical, or other forms.

[0181] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0182] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A network quality monitoring method, characterized in that, A terminal device applied in an industrial control network system, the method comprising: Receives a first process data packet sent by the target industrial equipment connected to the terminal device; Based on the timestamp of the first process data packet received and the timestamp of the previous first process data packet received for the target industrial equipment, the first uplink delay parameter of the first communication path between the target industrial equipment and the terminal equipment is calculated. Based on the packet reception timestamp and uplink pending transmission timestamp of the first process data packet, calculate the second uplink delay parameter of the second communication path inside the terminal device; An uplink data packet is generated based on the first process data packet, the first uplink delay parameter, and the second uplink delay parameter; The uplink data packet is sent to the User Plane Function (UPF) network element in the industrial control network system, so that the UPF network element determines the third uplink delay parameter of the third communication path between the terminal device and the UPF network element, and the fourth uplink delay parameter of the fourth communication path within the UPF network element, based on the packet reception timestamp of the uplink data packet.

2. The method according to claim 1, characterized in that, The method further includes: If the first uplink delay parameter exceeds the preset delay of the first communication path, then based on the first uplink delay parameter and the identification information of the target industrial equipment, an uplink alarm log of the first communication path is generated and sent to the network management device of the industrial control network system. If the second uplink delay parameter exceeds the preset delay of the second communication path, then an alarm log for the second communication path is generated and sent to the network management device based on the first uplink delay parameter, the second uplink delay parameter, and the identification information of the target industrial equipment.

3. The method according to claim 1, characterized in that, The method further includes: The system receives downlink data packets sent by the UPF network element; wherein the downlink data packet is a packet generated by the UPF network element based on the second process data packet, the fifth downlink delay parameter, and the fourth downlink delay parameter of the industrial control equipment; the fifth downlink delay parameter is the transmission delay of the fifth communication path determined by the UPF network element based on the packet reception timestamp of the second process data packet; the fourth downlink delay parameter is the transmission delay of the fourth communication path determined by the UPF network element based on the packet reception timestamp and the downlink pending transmission timestamp of the second process data packet; and the fifth communication path is the communication path between the UPF network element and the industrial control equipment. Obtain the second process data packet, the fifth downlink delay parameter, and the fourth downlink delay parameter from the downlink data packet; The third downlink delay parameter of the third communication path is calculated based on the packet reception timestamp of the downlink data packet and the packet reception timestamp of the previous downlink data packet for the target industrial equipment. The second downlink delay parameter of the second communication path is calculated based on the downlink data packet reception timestamp and the downlink pending transmission timestamp.

4. The method according to claim 3, characterized in that, The method further includes: If the third downlink delay parameter exceeds the preset delay of the third communication path, then based on the fifth downlink delay parameter, the fourth downlink delay parameter, the third downlink delay parameter, and the identification information of the target industrial equipment, a downlink alarm log for the third communication path is generated and sent to the network management device of the industrial control network system. If the second downlink delay parameter exceeds the preset delay of the second communication path, then based on the fifth downlink delay parameter, the fourth downlink delay parameter, the third downlink delay parameter, the second downlink delay parameter, and the identification information of the target industrial equipment, a downlink alarm log for the second communication path is generated and sent to the network management device.

5. A network quality monitoring method, characterized in that, The method, applied to the User Plane Function (UPF) network element in an industrial control network system, includes: The terminal device receives uplink data packets sent by the terminal device, wherein the uplink data packets are packets generated by the terminal device based on the first process data packets of the industrial equipment, a first uplink delay parameter, and a second uplink delay parameter. The first uplink delay parameter is the transmission delay of a first communication path determined by the terminal device based on the packet reception timestamp of the first process data packets. The second uplink delay parameter is the transmission delay of a second communication path determined by the terminal device based on the packet reception timestamp and the uplink pending transmission timestamp of the first process data packets. The first communication path is the communication path between the terminal device and the target industrial equipment, and the second communication path is the communication path within the terminal device. Obtain the first process data packet, the first uplink delay parameter, and the second uplink delay parameter from the uplink data packet; Based on the timestamp of the uplink data packet received and the timestamp of the previous uplink data packet received for the target industrial equipment, the third uplink delay parameter of the third communication path between the terminal equipment and the UPF network element is calculated. Based on the received timestamp of the uplink data packet and the pending transmission timestamp of the first process data packet, the fourth uplink delay parameter of the fourth communication path within the UPF network element is calculated.

6. The method according to claim 5, characterized in that, The method further includes: If the third uplink delay parameter exceeds the preset delay of the third communication path, then based on the first uplink delay parameter, the second uplink delay parameter, the third uplink delay parameter, and the identification information of the target industrial equipment, an uplink alarm log for the third communication path is generated and sent to the network management device of the industrial control network system. If the fourth uplink delay parameter exceeds the preset delay of the fourth communication path, then based on the fourth uplink delay parameter, the third uplink delay parameter, the second uplink delay parameter, the first uplink delay parameter, and the identification information of the target industrial equipment, an uplink alarm log for the fourth communication path is generated and sent to the network management device.

7. The method according to claim 5, characterized in that, The method further includes: Receive the second process data message sent by the target industrial control equipment connected to the UPF network element; Based on the packet reception timestamp of the second process data message and the packet reception timestamp of the previous process data message for the target industrial equipment, calculate the fifth downlink delay parameter of the fifth communication path between the target industrial control equipment and the UPF network element; Based on the packet reception timestamp and downlink transmission timestamp of the second process data message, calculate the fourth downlink delay parameter of the fourth communication path within the UPF network element; A downlink data packet is generated based on the second process data packet, the fifth downlink delay parameter, and the fourth downlink delay parameter; The downlink data packet is sent to the terminal device in the industrial control network system, so that the terminal device determines the third downlink delay parameter of the third communication path between the terminal device and the UPF network element, and the second downlink delay parameter of the second communication path within the terminal device, based on the packet reception timestamp of the downlink data packet.

8. The method according to claim 7, characterized in that, The method further includes: If the fifth downlink delay parameter exceeds the preset delay of the fifth communication path, then based on the fifth downlink delay parameter and the identification information of the target industrial equipment, a downlink alarm log for the fifth communication path is generated and sent to the network management device of the industrial control network system. If the fourth downlink delay parameter exceeds the preset delay of the fourth communication path, then based on the fifth downlink delay parameter, the fourth downlink delay parameter, and the identification information of the target industrial equipment, an alarm log for the fourth communication path is generated and sent to the network management device.

9. A network terminal device, characterized in that, include: A processor and a memory, the memory storing machine-readable instructions executable by the processor, which, when the computer device is running, are executed by the processor to perform the steps of the network quality monitoring method as described in any one of claims 1 to 4.

10. A User Plane Function (UPF) network element, characterized in that, include: A processor and a memory, the memory storing machine-readable instructions executable by the processor, which, when the computer device is running, are executed by the processor to perform the steps of the network quality monitoring method as described in any one of claims 5 to 8.

Citation Information

Patent Citations

  • Service quality monitoring method, device and system

    CN113630796A

  • Method and apparatus to monitor and analyze end to end flow control in an ethernet / enhanced ethernet environment

    US20140177455A1