Network quality monitoring method, terminal device and user plane function (UPF) network element
By interacting between the terminal device and the UPF network element, monitoring the data packets between industrial control devices, calculating the delay parameters of multiple communication paths and generating alarm logs, the communication failure problem caused by 5G communication of industrial control devices is solved, and the efficiency of network quality monitoring and troubleshooting is improved.
Patent Information
- Application Number
- CN202510319226.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-06-03
- Estimated Expiration
- 2045-03-18
AI Technical Summary
In the field of industrial automation, when industrial control equipment is connected to terminal equipment through 5G communication, the communication path becomes longer, the delay increases and stability decreases, resulting in an increase in the probability of communication failure, and it is difficult for users to clarify the fault point of network transmission conditions.
A network quality monitoring method is provided, which receives data packets sent by target industrial equipment through a terminal device, calculates the delay parameters of multiple communication paths, and generates an alarm log, and sends it to a network management device in order to accurately locate the fault path.
It improves the efficiency of troubleshooting abnormal network conditions and can accurately locate fault paths, thereby optimizing communication paths in a targeted manner and improving network stability and communication efficiency.
Smart Images

Figure CN120091351A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and in particular, to a network quality monitoring method, a terminal device, and a User Plane Function (UPF) network element. Background Art
[0002] In the field of modern industrial automation, real-time control and precise operation are the keys to improving production efficiency and product quality. Industrial control systems usually include various devices such as sensors, actuators, controllers, and monitors. These devices need to exchange data and transmit instructions through a reliable network communication protocol.
[0003] Currently, the connection between industrial control devices and 5G terminals is mainly achieved through 5G communication. The industrial control devices are connected to the 5G network through built-in 5G communication modules. The industrial control devices communicate with the 5G core network through the base stations of the 5G network, thereby realizing communication with the industrial control devices.
[0004] However, the connection between industrial control devices and 5G terminals through 5G communication will make the communication path longer, the wireless transmission delay larger, and the stability lower, increasing the probability of communication failures caused by timeouts. When a failure occurs, the user cannot clearly understand the current network status, and thus cannot determine the specific fault points of the current network transmission status. Summary of the Invention
[0005] The purpose of this application is to provide a network quality monitoring method, a terminal device, and a User Plane Function (UPF) network element for the deficiencies in the above-mentioned existing technologies, so as to improve the efficiency of troubleshooting network status anomalies and optimize the communication path accordingly.
[0006] To achieve the above purpose, the technical solutions adopted in the embodiments of this application are as follows:
[0007] In a first aspect, an embodiment of this application provides a network quality monitoring method, and the method includes:
[0008] Receiving a first process data packet sent by a target industrial device connected to the terminal device;
[0009] Calculating a first uplink delay parameter of a first communication path between the target industrial device and the terminal device according to the packet reception timestamp of the first process data packet and the packet reception timestamp of the previous first process data packet for the target industrial device;
[0010] Calculating a second uplink delay parameter of a second communication path inside the terminal device according to the packet reception timestamp of the first process data packet and the uplink time-to-send timestamp;
[0011] Generate an uplink data packet according to the first process data packet, the first uplink delay parameter, and the second uplink delay parameter;
[0012] 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 a third uplink delay parameter of a third communication path between the terminal device and the UPF network element, and a fourth uplink delay parameter of a fourth communication path inside the UPF network element according to 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, generate and send an uplink alarm log of the first communication path to the network management device in the industrial control network system according to the first uplink delay parameter and the identification information of the target industrial device;
[0015] If the second uplink delay parameter exceeds the preset delay of the second communication path, generate and send an alarm log of the second communication path to the network management device according to the first uplink delay parameter, the second uplink delay parameter, and the identification information of the target industrial device.
[0016] Optionally, the method further includes:
[0017] Receive a downlink data packet sent by the UPF network element; wherein, the downlink data packet is a packet generated by the UPF network element according to a second process data packet of an industrial control device, a fifth downlink delay parameter, and a fourth downlink delay parameter, the fifth downlink delay parameter is the transmission delay of a fifth communication path determined by the UPF network element according to 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 according to 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 device;
[0018] Obtain the second process data packet, the fifth downlink delay parameter, and the fourth downlink delay parameter from the downlink data packet;
[0019] Calculate a third downlink delay parameter of the third communication path according to the packet reception timestamp of the downlink data packet and the packet reception timestamp of the previous downlink data packet for the target industrial device;
[0020] Calculate a second downlink delay parameter of the second communication path according to the packet reception timestamp and the downlink pending transmission timestamp of the downlink data packet.
[0021] Optionally, the method further includes:
[0022] If the third downlink delay parameter exceeds the preset delay of the third communication path, then according to the fifth downlink delay parameter, the fourth downlink delay parameter, the third downlink delay parameter, and the identification information of the target industrial device, generate and send the downlink alarm log of the third communication path 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 according to 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 device, generate and send the downlink alarm log of the second communication path to the network management device.
[0024] In a second aspect, another embodiment of the present application provides another network quality monitoring method, which is applied to a user plane function (UPF) network element in an industrial control network system. The method includes:
[0025] Receive an uplink data packet sent by a terminal device, where the uplink data packet is a packet generated by the terminal device according to a first process data packet of an industrial device, 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 according to the packet reception timestamp of the first process data packet, and the second uplink delay parameter is the transmission delay of a second communication path determined by the terminal device according to the packet reception timestamp and the uplink to-be-sent timestamp of the first process data packet. The first communication path is the communication path between the terminal device and the industrial device, and the second communication path is the communication path inside 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] According to the packet reception timestamp of the uplink data packet and the packet reception timestamp of the previous uplink data packet for the target industrial device, calculate the third uplink delay parameter of the third communication path between the terminal device and the UPF network element;
[0028] According to the packet reception timestamp of the uplink data packet and the to-be-sent timestamp of the first process data packet, calculate the fourth uplink delay parameter of the fourth communication path inside the UPF network element.
[0029] Optionally, the method further includes:
[0030] If the third upstream delay parameter exceeds the preset delay of the third communication path, an upstream alarm log of the third communication path is generated and sent to the network management device of the industrial control network system according to the first upstream delay parameter, the second upstream delay parameter, the third upstream delay parameter, and the identification information of the target industrial device;
[0031] If the fourth upstream delay parameter exceeds the preset delay of the fourth communication path, an upstream alarm log of the fourth communication path is generated and sent to the network management device according to the fourth upstream delay parameter, the third upstream delay parameter, the second upstream delay parameter, the first upstream delay parameter, and the identification information of the target industrial device.
[0032] Optionally, the method further includes:
[0033] Receiving a second process data packet sent by a target industrial control device connected to the UPF network element;
[0034] Calculating a fifth downstream delay parameter of a fifth communication path between the target industrial control device and the UPF network element according to the packet reception timestamp of the second process data packet and the packet reception timestamp of the previous process data packet for the target industrial device;
[0035] Calculating a fourth downstream delay parameter of a fourth communication path inside the UPF network element according to the packet reception timestamp and the downstream pending transmission timestamp of the second process data packet;
[0036] Generating a downstream data packet according to the second process data packet, the fifth downstream delay parameter, and the fourth downstream delay parameter;
[0037] Sending the downstream data packet to a terminal device in the industrial control network system, so that the terminal device determines a third downstream delay parameter of a third communication path between the terminal device and the UPF network element, and a second downstream delay parameter of a second communication path inside the terminal device according to the packet reception timestamp of the downstream data packet.
[0038] Optionally, the method further includes:
[0039] If the fifth downstream delay parameter exceeds the preset delay of the fifth communication path, a downstream alarm log of the fifth communication path is generated and sent to the network management device of the industrial control network system according to the fifth downstream delay parameter and the identification information of the target industrial device;
[0040] If the fourth downstream delay parameter exceeds the preset delay of the fourth communication path, an alarm log of the fourth communication path is generated and sent to the network management device according to the fifth downstream delay parameter, the fourth downstream delay parameter, and the identification information of the target industrial device.
[0041] In a third aspect, another embodiment of the present application provides a network quality monitoring device, which is applied to a terminal device in an industrial control network system. The device includes:
[0042] A first receiving module, configured to receive a first process data packet sent by a target industrial device connected to the terminal device;
[0043] A first calculation module, configured to calculate a first upstream delay parameter of a first communication path between the target industrial device and the terminal device according to the packet reception timestamp of the first process data packet and the packet reception timestamp of the previous first process data packet for the target industrial device;
[0044] A first calculation module, configured to calculate a second upstream delay parameter of a second communication path inside the terminal device according to the packet reception timestamp and the upstream pending transmission timestamp of the first process data packet;
[0045] A first generation module, configured to generate an upstream data packet according to the first process data packet, the first upstream delay parameter, and the second upstream delay parameter;
[0046] A first sending module, configured to send the upstream data packet to a user plane function (UPF) network element in the industrial control network system, so that the UPF network element determines a third upstream delay parameter of a third communication path between the terminal device and the UPF network element, and a fourth upstream delay parameter of a fourth communication path inside the UPF network element according to the packet reception timestamp of the upstream data packet.
[0047] In a fourth aspect, another embodiment of the present application provides another network quality monitoring device, which is applied to a terminal device in an industrial control network system. The device includes:
[0048] A second receiving module, configured to receive an uplink data packet sent by a terminal device, where the uplink data packet is a packet generated by the terminal device according to a first process data packet of an industrial device, a first uplink delay parameter, and a second uplink delay parameter, the first uplink delay parameter being a transmission delay of a first communication path determined by the terminal according to a packet reception timestamp of the first process data packet, the second uplink delay parameter being a transmission delay of a second communication path determined by the terminal device according to the packet reception timestamp and an uplink time-to-send timestamp of the first process data packet, the first communication path being a communication path between the terminal device and the industrial device, and the second communication path being a communication path inside the terminal device;
[0049] A second obtaining module, configured to obtain the first process data packet, the first uplink delay parameter, and the second uplink delay parameter from the uplink data packet;
[0050] A second calculation module, configured to calculate a third uplink delay parameter of a third communication path between the terminal device and the UPF network element according to a packet reception timestamp of the uplink data packet and a packet reception timestamp of a previous uplink data packet for the target industrial device;
[0051] A second calculation module, configured to calculate a fourth uplink delay parameter of a fourth communication path inside the UPF network element according to a packet reception timestamp of the uplink data packet and a time-to-send timestamp of the first process data packet.
[0052] In a fifth aspect, another embodiment of the present application provides a terminal device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the terminal device runs, the processor communicates with the storage medium through the bus. The processor executes the machine-readable instructions to perform the steps of any method described in the first aspect above.
[0053] In a sixth aspect, another embodiment of the present 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 user plane function UPF network element runs, the processor communicates with the storage medium through the bus. The processor executes the machine-readable instructions to perform the steps of any method described in the first aspect above.
[0054] In a fourth aspect, another embodiment of the present application provides a storage medium, on which a computer program is stored. When the computer program is run by a processor, it performs the steps of any network quality monitoring method described in the first aspect and the second aspect above.
[0055] The beneficial effects of this application are as follows:
[0056] A network quality monitoring method, a terminal device, and a user plane function (UPF) network element. First, the terminal device receives a first process data packet sent by a target industrial device, and calculates a first uplink delay parameter based on the packet reception timestamp of the first process data packet and the packet reception timestamp of the previous first process data packet for the target industrial device. A second uplink delay parameter is calculated based on the packet reception timestamp of the first process data packet and the uplink pending transmission timestamp. 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 the uplink data packet is sent to the UPF network element. The UPF network element calculates a third uplink delay parameter 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 device. A fourth uplink delay parameter is calculated based on the packet reception timestamp of the uplink data packet and the pending transmission timestamp 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 a communication system fails, the communication path corresponding to the fault can be accurately located according to the delay parameters, improving the efficiency of troubleshooting network status anomalies, and thus optimizing the communication path targeted. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] To more clearly illustrate the technical solutions of the embodiments of this application, the following will briefly introduce the drawings required in the embodiments. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0058] Figure 1 A communication schematic diagram of an industrial control scenario provided by an embodiment of this application;
[0059] Figure 2 A flowchart of uplink data transmission in a network quality monitoring method provided by an embodiment of this application;
[0060] Figure 3 A flowchart of generating an alarm log in the first network quality monitoring method provided by an embodiment of this application;
[0061] Figure 4 A flowchart of downlink data transmission in a network quality monitoring method provided by an embodiment of this application;
[0062] Figure 5 A flowchart of generating an alarm log in the second network quality monitoring method provided by an embodiment of this application;
[0063] Figure 6 Schematic diagram of a network quality monitoring device provided by an embodiment of the present application;
[0064] Figure 7 Schematic diagram of another network quality monitoring device provided by an embodiment of the present application;
[0065] Figure 8 Schematic diagram of the structure of a terminal device provided by an embodiment of the present application;
[0066] Figure 9 Schematic diagram of the structure of a user plane function (UPF) network element provided by an embodiment of the present application. Detailed implementation manners
[0067] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the accompanying drawings in the present application are only for the purposes of illustration and description, and are not used to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to actual scale. The flowcharts used in the present application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical context may be reversed in order or implemented simultaneously. In addition, those skilled in the art may add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of the present application.
[0068] In addition, the described embodiments are only some embodiments of the present application, rather than all embodiments. The components of the embodiments of the present application usually described and illustrated in the accompanying drawings here may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application claimed, but merely represents selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts fall within the protection scope of the present application.
[0069] It should be noted that the term "including" will be used in the embodiments of the present application to indicate the existence of the features stated hereinafter, but does not exclude the addition of other features.
[0070] In a real-time industrial control scenario, industrial devices and industrial control devices usually use the industrial Ethernet protocol for network communication. The industrial control device and the industrial device configure parameters through the User Datagram Protocol, and the configured parameters include watchdog parameters: packet sending period and number of times. After successful negotiation, the industrial control device and the industrial device periodically send process data packets to each other. The process data packet contains the operating status and data of the device itself, which is used to ensure the normal status of both communication parties and normal network communication. Figure 1 The figure is a communication schematic diagram of an industrial control scenario provided by an embodiment of the present application. As Figure 1 shown, the specific devices include: industrial devices, industrial Ethernet switches, terminal devices, base stations, user plane function UPF network elements, data network side switches, and industrial control devices. The industrial device communicates with the terminal device through the industrial Ethernet switch, and the industrial control device communicates with the UPF network element through the data network side switch. Among them, the first communication path is between the industrial device and the terminal device, the second communication path is inside the terminal device, the third communication path is between the terminal device and the user plane function UPF network element, the fourth communication path is inside the UPF network element, and the fifth communication path is between the UPF network element and the industrial control device. The process of sending uplink data is as follows: The industrial device sends the first process data packet to the terminal device through the industrial Ethernet switch, and the terminal device sends the first process data packet to the UPF network element through the base station. The UPF network element sends the first process data packet to the industrial control device through the data network side switch. The process of sending downlink data is as follows: The industrial control device sends the second process data packet to the UPF network element through the data network side switch, and the UPF network element sends the second process data packet to the terminal device through the base station. The terminal device sends the second process data packet to the industrial device through the industrial Ethernet switch. However, in the prior art, when a communication failure occurs, users can only see the communication result and cannot clearly identify which specific communication path has a problem, resulting in the inability to specifically determine the communication problem targeted.
[0071] To this end, the present application provides a network quality monitoring method, which monitors multiple communication paths during the communication process, and when a communication failure occurs, it clarifies the specific faulty communication path and solves the corresponding communication problem in a targeted manner, improving the efficiency of fault resolution. As follows, the network quality monitoring method provided by the embodiments of the present application will be described in conjunction with multiple drawings. The network monitoring method in the present application is executed through the interaction between the terminal device and the UPF network element. The terminal device and the UPF network element usually communicate through the PROFINET protocol, and the process data packet in the present application is a PROFINET protocol process data packet. When executing the method of the present application, the terminal device and the UPF network element monitor the connection request packets sent between industrial control devices for industrial equipment, determine the communication cycle and the number of times according to the parsing result of the connection request packet to determine the corresponding watchdog parameters, and judge multiple delay parameters according to the watchdog parameters. Among them, the connection request packet can be a ConnectRequest type packet of the PNIO-CM protocol.
[0072] First, the process of uplink data transmission will be described. Figure 2 It is a schematic flow diagram of uplink data transmission in a network quality monitoring method provided by an embodiment of the present application, as Figure 2 shown, the method includes:
[0073] Step 201, receive the first process data packet sent by the target industrial device connected to the terminal device.
[0074] Among them, the target industrial device can be a servo motor, a frequency converter, an input device, an output device, etc. The input device can be a device such as a sensor, and the output device can be an actuator device. The embodiments of the present application do not limit this. The terminal device can be an industrial handheld device, an industrial tablet, or other types of industrial terminal devices. The embodiments of the present application do not limit this. The first process data packet can include process data, real-time data, diagnostic data, synchronization information, etc. of the industrial device. The embodiments of the present application do not limit this. The first process data packet can be a PNIO process data packet.
[0075] Optionally, the target industrial device is connected to the local area network interface (LAN interface) of the terminal device through an industrial Ethernet switch, so as to send the first process data packet to the terminal device.
[0076] Step 202, calculate the first uplink delay parameter of the first communication path from the target industrial device to the terminal device according to the packet reception timestamp of the first process data packet and the packet reception timestamp of the previous first process data packet for the target industrial device.
[0077] Optionally, if the time intervals at which the target industrial device sends the first process data packets are the same, then the time intervals at which the terminal device receives the first process data packets are the same. If the time intervals at which the terminal device receives the first process data packets are different, then based on the packet reception timestamps of the first industrial Ethernet for the target industrial device and the packet reception timestamp of the previous first process data packet, the first uplink delay parameter of the first communication path between the target industrial device and the terminal device can be calculated. 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] Exemplarily, when the time interval at which the target industrial device sends the first process data packets is 8 milliseconds, then the time interval at which the terminal device receives the first process data packets is also 8 milliseconds. When, based on the packet reception timestamp of the first industrial Ethernet for the target industrial device and the packet reception timestamp of the previous first process data packet, the time interval between the first industrial Ethernet and the previous first process data packet is calculated to be 9 milliseconds, 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 of the first process data packet and the uplink time-to-send timestamp.
[0080] Optionally, the local area network interface (LAN interface) of the terminal device is used to receive packets, and the wide area network interface (WAN interface) of the terminal device is used to send packets. If the time intervals of the packet timestamps received by the LAN interface are the same, and there is no delay, then the time intervals of the time-to-send timestamps of the packets by the WAN interface are the same. When there is a time interval between the time-to-send timestamp of a certain packet by the WAN interface and the packet reception timestamp of the LAN interface, which is greater than the time intervals of other packets, it indicates that there is a second uplink delay parameter in the second communication path, and the time interval between the time-to-send timestamp of the WAN interface and the packet reception timestamp of the LAN interface is used as the second uplink delay parameter. The second delay parameter also includes: the packet reception timestamp and the uplink time-to-send timestamp.
[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] Among them, the uplink data packet includes: the first process data packet, the first uplink delay parameter, and the second uplink delay parameter. The uplink data packet is a packet 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 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 inside the UPF network element according to the packet reception timestamp of the uplink data packet.
[0084] Optionally, the wide area network interface of the terminal device forwards the uplink data packet 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 inside the UPF network element according to the packet reception timestamp of the uplink data packet.
[0085] Step 206: Receive the uplink data packet sent by the terminal device.
[0086] Among them, the uplink data packet is a packet generated by the terminal device according to the first process data packet, the first uplink delay parameter, and the second uplink delay parameter of the industrial device. The first uplink delay parameter is the transmission delay of the first communication path determined by the terminal according to 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 according to the packet reception timestamp of the first process data packet and the uplink pending transmission timestamp. The first communication path is the communication path between the terminal device and the industrial device, and the second communication path is the communication path inside 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 packet data to obtain the first process data packet, 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 according to the packet reception timestamp of the uplink data packet and the packet reception timestamp of the previous uplink data packet for the target industrial device.
[0090] Optionally, if the time intervals for the terminal device to send uplink data packets are the same, then the time intervals for the UPF network element to receive the uplink data packets are the same. If the time intervals for the UPF network element to receive the uplink data packets are different, then based on the packet reception timestamps of the uplink data packets for the target industrial device and the packet reception timestamp of the previous uplink data packet, the third uplink delay parameter of the third communication path from the terminal device to the UPF network element can be calculated. The third uplink delay parameter includes: the packet reception timestamp of the uplink data packet, the packet reception timestamp of the previous uplink data packet, and the time interval.
[0091] Step 209: 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 timestamp to be sent of the first process data packet.
[0092] Among them, the UPF network element receives the uplink data packet through the N3 interface and sends the first process data packet through the N6 structure.
[0093] Optionally, if the intervals of the timestamps of the uplink data packets received by the UPF network element are the same, when there is no delay, the intervals of the timestamps to be sent of the packets by N6 are the same. When there is a time interval between the timestamp to be sent and the packet reception timestamp of a certain packet that is greater than the time intervals of other packets, it indicates that there is a fourth uplink delay parameter in the fourth communication path, and the time interval between the packet reception timestamp of the uplink data packet and the timestamp to be sent of the first process data packet is used as the fourth uplink delay parameter. The fourth uplink delay parameter also includes: the packet reception timestamp of the uplink data packet and the timestamp to be sent of the first process data packet.
[0094] In the embodiments of the present application, first, the terminal device receives the first process data packet sent by the target industrial device, and calculates the first uplink delay parameter based on the packet reception timestamp of the first process data packet and the packet reception timestamp of the previous first process data packet for the target industrial device. The second uplink delay parameter is calculated based on the packet reception timestamp of the first process data packet and the uplink timestamp to be sent. 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 the uplink data packet is sent to the UPF network element. The UPF network element calculates the third uplink delay parameter 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 device. The fourth uplink delay parameter is calculated based on the packet reception timestamp of the uplink data packet and the timestamp to be sent of the first process data packet. In the present application, the uplink delay parameters of multiple communication paths are calculated separately, and the communication states of multiple communication paths are monitored in real time. When a communication system fails, the communication path corresponding to the fault can be accurately located according to the delay parameters, improving the efficiency of troubleshooting abnormal network conditions, and thus optimizing the communication path targeted.
[0095] Based on the above embodiments, the present application further provides a process for generating an alarm log in the first network quality monitoring method. Figure 3 It is a schematic flow diagram of generating an alarm log in the first network quality monitoring method provided by an embodiment of the present application. As Figure 3 shown, based on the above steps 201 - 209, the method further includes:
[0096] Step 301: 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 according to the first uplink delay parameter and the identification information of the target industrial device.
[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 receiving the first process data packet by the terminal device and the receiving timestamp of the previous first process data packet, and the difference between the timestamp of sending the first process data packet by the target industrial device and the receiving timestamp of the previous first process data packet are subtracted again. If the obtained first uplink delay parameter exceeds the preset delay of the first communication path, it indicates that there is a problem with the operating state of the industrial Ethernet switch. Fault troubleshooting can be performed by checking the network delay status of the subnet of the devices connected to the target terminal device. Then, according to the first uplink delay parameter and the identification information of the target industrial device, generate and send the uplink alarm log of the first communication path to the network management device of the industrial control network system.
[0098] Optionally, when viewing the uplink alarm log of the first communication path in the network management device, it can be viewed for the target industrial device, or the alarm logs of all industrial devices can be viewed according to the fault time.
[0099] Step 302: If the second uplink delay parameter exceeds the preset delay of the second communication path, generate and send the alarm log of the second communication path to the network management device according to the first uplink delay parameter, the second uplink delay parameter, and the identification information of the target industrial device.
[0100] Optionally, if the first difference between the packet reception timestamp and the uplink pending transmission timestamp of the first process data packet is greater than the second difference between the packet reception timestamp and the uplink pending transmission timestamp of a normal first process data packet, then subtract the second difference from the first difference. When the difference between the first difference and the second difference exceeds the preset delay of the second communication path, it indicates an abnormal internal operation of the terminal device. Then, based on the first uplink delay parameter, the second uplink delay parameter, and the identification information of the target industrial device, generate and send an alarm log of the second communication path to the network management device. The preset delay of the second communication path can be determined according to the actual situation, for example, it can be 0.5 milliseconds.
[0101] Optionally, when viewing the uplink alarm log of the second communication path in the network management device, it can be viewed for the target industrial device, or the alarm logs of all industrial devices can be viewed according to the fault time.
[0102] Step 303: If the third uplink delay parameter exceeds the preset delay of the third communication path, then generate and send an 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 device.
[0103] Optionally, subtract the packet reception timestamp of the uplink data packet from the packet reception timestamp of the previous uplink data packet, and then subtract the difference between the timestamp when the terminal device sends the uplink data packet and the timestamp of the uplink data packet again. If the obtained 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 communication timeout risk is increasing. The preset delay of the third communication path can be 2 / 3 of the watchdog time of the UPF network element. This application embodiment does not limit this, and it is specifically determined according to the actual situation.
[0104] Optionally, when viewing the uplink alarm log of the third communication path in the network management device, it can be viewed for the target industrial device, or the alarm logs of all industrial devices can be viewed according to the fault time.
[0105] Step 304: If the fourth uplink delay parameter exceeds the preset delay of the fourth communication path, then generate and send an alarm log of the fourth communication path to the network management device 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 device.
[0106] Optionally, if the third difference between the packet reception timestamp of the uplink data packet and the transmission timestamp of the first process data packet is greater than the fourth difference between the packet reception timestamp of a normal uplink data packet and the transmission timestamp of the first process data packet, then the difference between the third difference and the fourth difference is calculated. When the difference between the third difference and the fourth difference exceeds the preset delay of the fourth communication path, it indicates an abnormal internal operation of the UPF network element. Then, according to 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 device, 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 the actual situation, for example, it can be 0.5 milliseconds.
[0107] Optionally, when viewing the uplink alarm log of the fourth communication path in the network management device, it can be viewed for the target industrial device, or the alarm logs of all industrial devices can be viewed for the fault time.
[0108] In the embodiment of the present application, when any one of the first uplink delay parameter, the second uplink delay parameter, the third uplink delay parameter, and the fourth uplink delay parameter 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. That is to say, the communication fault of the corresponding communication path can be determined in the network management device, thereby improving the efficiency of determining the communication fault. And the corresponding alarm log can be viewed according to the industrial device and time, helping the maintenance personnel quickly identify the problems occurring in the device, so as to perform effective fault diagnosis and location.
[0109] Based on the above embodiment, the downlink data transmission process is described. Figure 4 It is a schematic flowchart of downlink data transmission in a network quality monitoring method provided by an embodiment of the present application, as Figure 4 shown. The method includes:
[0110] Step 401: Receive a second process data packet sent by a target industrial control device connected to the UPF network element.
[0111] Among them, the target industrial control device can be a programmable logic controller. The second process data packet can include an Ethernet frame type, data payload, frame check sequence, etc., and the embodiment of the present application does not limit this.
[0112] Optionally, the N6 interface of the UPF network element is connected to the target industrial control device through a network data side switch, and receives the second process data packet sent by the target industrial control device.
[0113] Step 402: Calculate the fifth downlink delay parameter of the fifth communication path between the target industrial control device and the UPF network element based on the packet reception timestamp of the second process data packet and the packet reception timestamp of the previous process data packet for the target industrial device.
[0114] Optionally, if the time intervals for the target industrial control device to send the second process data packets are the same, then the time intervals for the UPF network element to receive the second process data packets are the same. If the time intervals for the UPF network element to receive the second process data packets are not the same, then based on the packet reception timestamp of the second industrial Ethernet for the target industrial device and the packet reception timestamp of the previous second process data packet, the fifth downlink delay parameter of the fifth communication path between the target industrial control device and the UPF network element can be calculated. 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 inside the UPF network element based on the packet reception timestamp of the second process data packet and the downlink pending transmission timestamp.
[0116] Optionally, if the intervals of the timestamps of the second process data packets received by the UPF network element are the same, when there is no delay, the intervals of the pending transmission timestamps of the packets on the N3 interface are the same. When the time interval between the pending transmission timestamp and the packet reception timestamp of a certain packet is greater than that of other packets, it indicates that there is a fourth downlink delay parameter in the fourth communication path, and the time interval between the packet reception timestamp of the second process data packet and the downlink pending transmission timestamp is used as the fourth downlink delay parameter. The fourth downlink delay parameter also includes: the packet reception timestamp of the second process data packet and the downlink pending transmission timestamp.
[0117] Step 404: Generate a downlink data packet based on the second process data packet, 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 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 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 the downlink data packet to the terminal device in the industrial control network system through the base station, 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 inside the terminal device according to the packet reception timestamp of the downlink data packet.
[0120] Step 406: Receive the downlink data packet sent by the UPF network element.
[0121] Among them, the downlink data packet is a packet generated by the UPF network element according to the second process data packet of the industrial control device, the fifth downlink delay parameter, and the fourth downlink delay parameter. The fifth downlink delay parameter is the transmission delay of the fifth communication path determined by the UPF network element according to 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 according to the packet reception timestamp of the second process data packet and the downlink pending transmission timestamp. The fifth communication path is the communication path between the UPF network element and the industrial control device.
[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 packet data to obtain the second process data packet, 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 according to the packet reception timestamp of the downlink data packet and the packet reception timestamp of the previous downlink data packet for the target industrial device.
[0125] Optionally, the time intervals for the UPF network element to send downlink data packets are the same, and then the time intervals for the terminal device to receive uplink data packets are the same. If the time intervals for the terminal device to receive downlink data packets are different, then according to the packet reception timestamp of the downlink data packet for the target industrial device and the packet reception timestamp of the previous downlink data packet, the third downlink delay parameter of the third communication path from the UPF network element to the terminal device can be calculated. The third downlink delay parameter includes: the packet reception timestamp of the downlink data packet, the packet reception timestamp of the previous downlink data packet, and the time interval.
[0126] Step 409: Calculate the second downlink delay parameter of the second communication path according to the packet reception timestamp of the downlink data packet and the downlink pending transmission timestamp.
[0127] Among them, the terminal device receives the downlink data packet through the Ethernet interface and sends the second process data packet through the local area network interface.
[0128] Optionally, if the intervals of the timestamps of the uplink data packets received by the terminal device are the same, when there is no delay, the intervals of the timestamps of the packets to be sent by the LAN interface are the same. When there is a time interval between the timestamp of a packet to be sent and the timestamp of the packet received, which is greater than the time intervals of other packets, it indicates that there is a second downlink delay parameter in the second communication path. The time interval between the timestamp of the received packet of the downlink data packet and the timestamp of the packet to be sent of the second process data packet is used as the second downlink delay parameter. The second downlink delay parameter also includes: the timestamp of the received packet of the downlink data packet and the timestamp of the packet to be sent of the second process data packet.
[0129] In the embodiment of the present application, the second process data packet sent by the target industrial control device connected to the UPF network element is received, and the fifth downlink delay parameter is calculated according to the timestamp of the received packet of the second process data packet and the timestamp of the received packet of the previous process data packet for the target industrial device. The fourth downlink delay parameter is calculated according to the timestamp of the received packet of the second process data packet and the downlink timestamp to be sent. The third downlink delay parameter is calculated according to the timestamp of the received packet of the downlink data packet and the timestamp of the received packet of the previous downlink data packet for the target industrial device. The second downlink delay parameter is calculated according to the timestamp of the received packet of the downlink data packet and the downlink timestamp to be sent. In the present application, the downlink delay parameters of multiple communication paths are calculated separately, and the communication status of multiple communication paths is monitored in real time. When a communication system failure occurs, the communication path corresponding to the failure can be accurately located according to the delay parameters, improving the efficiency of troubleshooting abnormal network conditions, and thus optimizing the communication path targeted.
[0130] Based on the above embodiments, the present application also provides a process for generating an alarm log in the second network quality monitoring method. Figure 5 It is a schematic diagram of the process for generating an alarm log in the second network quality monitoring method provided by the embodiment of the present application, as Figure 5 shown. Based on the above steps 401 - step 409, the method further includes:
[0131] Step 501, 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 according to the fifth downlink delay parameter and the identification information of the target industrial device.
[0132] Optionally, the preset time delay can be determined according to the actual situation. For example, it can be 1 millisecond, that is, the difference between the timestamp when the UPF network element receives the second process data packet and the packet reception timestamp of the previous second process data packet, and the difference between the timestamp when the target industrial control device sends the second process data packet and the packet reception timestamp of the previous second process data packet are subtracted again. If the obtained fifth downlink time delay parameter exceeds the preset time delay of the fifth communication path, it indicates that there is a problem with the operating state of the data network side switch. Then, according to the fifth downlink time delay parameter and the identification information of the target industrial device, 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 log of the fifth communication path in the network management device, it can be viewed for the target industrial device, or the alarm logs of all industrial devices can be viewed according to the fault time.
[0134] Step 502: If the fourth downlink time delay parameter exceeds the preset time delay of the fourth communication path, then according to the fifth downlink time delay parameter, the fourth downlink time delay parameter, and the identification information of the target industrial device, an alarm log for the fourth communication path is generated and sent to the network management device.
[0135] Optionally, if the fifth difference between the packet reception timestamp of the second process data packet and the downlink pending transmission timestamp is greater than the sixth difference between the packet reception timestamp of the normal second process data packet and the downlink pending transmission timestamp, then the fifth difference is subtracted from the sixth difference. When the difference between the fifth difference and the sixth difference exceeds the preset time delay of the fourth communication path, it indicates that there is an internal operation abnormality in the UPF network element. Then, according to the fifth downlink time delay parameter, the fourth downlink time delay parameter, and the identification information of the target industrial device, an alarm log for the fourth communication path is generated and sent to the network management device. Among them, the preset time delay of the fourth communication path can be determined according to the actual situation. For example, it can be 0.5 millisecond.
[0136] Optionally, when viewing the uplink alarm log of the fourth communication path in the network management device, it can be viewed for the target industrial device, or the alarm logs of all industrial devices can be viewed according to the fault time.
[0137] Step 503: If the third downlink time delay parameter exceeds the preset time delay of the third communication path, then according to the fifth downlink time delay parameter, the fourth downlink time delay parameter, the third downlink time delay parameter, and the identification information of the target industrial device, an alarm log for the third communication path is generated and sent to the network management device.
[0138] Optionally, the difference between the packet reception timestamp of the downlink data packet and the packet reception timestamp of the previous downlink data packet is further differentiated from the difference between the timestamp when the UPF network element sends the uplink data packet and the timestamp of the uplink data packet. If the obtained 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 communication timeout risk is increasing. The preset delay of the third communication path may be 2 / 3 of the watchdog time of the UPF network element. This application embodiment does not limit this and is specifically determined according to the actual situation.
[0139] Optionally, when viewing the downlink alarm log of the third communication path in the network management device, it can be viewed for the target industrial device or the alarm logs of all industrial devices can be viewed according to the fault time.
[0140] Step 504: If the second downlink delay parameter exceeds the preset delay of the second communication path, generate and send the downlink alarm log of the second communication path to the network management device according to 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 device.
[0141] Optionally, if the seventh difference between the packet reception timestamp of the downlink data packet and the to-be-sent timestamp of the second process data packet is greater than the eighth difference between the packet reception timestamp of a normal downlink data packet and the to-be-sent timestamp of the second process data packet, then the seventh difference and the eighth difference are differentiated. When the difference between the seventh difference and the eighth difference exceeds the preset delay of the second communication path, it indicates that the internal operation of the terminal device is abnormal. Then, generate and send the downlink alarm log of the second communication path to the network management device according to 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 device. The preset delay of the second communication path can be determined according to the actual situation. For example, it can be 0.5 milliseconds.
[0142] Optionally, when viewing the downlink alarm log of the second communication path in the network management device, it can be viewed for the target industrial device or the alarm logs of all industrial devices can be viewed according to the fault time.
[0143] In the embodiments of this application, when any one of the fifth downlink delay parameter, the fourth downlink delay parameter, the third downlink delay parameter, and the second downlink delay parameter 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. That is to say, the communication fault of the corresponding communication path can be determined in the network management device, thereby improving the efficiency of determining the communication fault. And the corresponding alarm log can be viewed according to the industrial device and the time, helping the maintenance personnel quickly identify the problems occurring in the device, so as to perform effective fault diagnosis and positioning.
[0144] Based on the same inventive concept, an embodiment of the present application further provides a network quality monitoring device corresponding to a network quality monitoring method. Since the principle of problem-solving of the device in the embodiment of the present application is similar to that of the above-mentioned network quality monitoring method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be elaborated.
[0145] Figure 6 It is a schematic diagram of a network quality monitoring device provided by an embodiment of the present application, as Figure 6 shown, the device includes:
[0146] A first receiving module 601, configured to receive a first process data packet sent by a target industrial device connected to a terminal device;
[0147] A first calculation module 602, configured to calculate a first uplink delay parameter of a first communication path between the target industrial device and the terminal device according to the packet reception timestamp of the first process data packet and the packet reception timestamp of the previous first process data packet for the target industrial device;
[0148] The first calculation module 602 is configured to calculate a second uplink delay parameter of a second communication path inside the terminal device according to the packet reception timestamp of the first process data packet and the uplink pending transmission timestamp;
[0149] A first generation module 603, configured to generate an uplink data packet according to the first process data packet, the first uplink delay parameter, and the second uplink delay parameter;
[0150] A first sending module 604, configured to send the uplink data packet to a user plane function UPF network element in an industrial control network system, so that the UPF network element determines a third uplink delay parameter of a third communication path between the terminal device and the UPF network element and a fourth uplink delay parameter of a fourth communication path inside the UPF network element according to the packet reception timestamp of the uplink data packet.
[0151] In a possible implementation manner, 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 an uplink alarm log of the first communication path to a network management device of the industrial control network system according to the first uplink delay parameter and the identification information of the target industrial device;
[0152] If the second uplink delay parameter exceeds the preset delay of the second communication path, generate and send an alarm log of the second communication path to the network management device according to the first uplink delay parameter, the second uplink delay parameter, and the identification information of the target industrial device.
[0153] In a possible implementation, the first receiving module 601 is further configured to: receive a downlink data packet sent by a UPF network element; wherein, the downlink data packet is a packet generated by the UPF network element according to the second process data packet of the industrial control device, the fifth downlink delay parameter, and the fourth downlink delay parameter, and the fifth downlink delay parameter is the transmission delay of the fifth communication path determined by the UPF network element according to the packet reception timestamp of the second process data packet, and the fourth downlink delay parameter is the transmission delay of the fourth communication path determined by the UPF network element according to 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 device;
[0154] In a possible implementation, the network quality monitoring device further includes: a first obtaining module, and the obtaining module is configured to obtain the second process data packet, the fifth downlink delay parameter, and the fourth downlink delay parameter from the downlink data packet;
[0155] In a possible implementation, the first calculation module 602 is further configured to: calculate the third downlink delay parameter of the third communication path according to the packet reception timestamp of the downlink data packet and the packet reception timestamp of the previous downlink data packet for the target industrial device;
[0156] In a possible implementation, the first calculation module 602 is further configured to: calculate the second downlink delay parameter of the second communication path according to the packet reception timestamp and the downlink pending transmission timestamp of the downlink data packet.
[0157] In a 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 according to the fifth downlink delay parameter, the fourth downlink delay parameter, the third downlink delay parameter, and the identification information of the target industrial device;
[0158] If the second downlink delay parameter exceeds the preset delay of the second communication path, generate and send the downlink alarm log of the second communication path to the network management device according to 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 device.
[0159] The description of the processing flow of each module in the device and the interaction flow between the modules can refer to the relevant descriptions in the above method embodiments and will not be elaborated here.
[0160] Based on the same inventive concept, an embodiment of the present application also provides a network quality monitoring device corresponding to another network quality monitoring method. Since the principle of problem-solving of the device in the embodiment of the present application is similar to that of the above-mentioned network quality monitoring method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be elaborated.
[0161] Figure 7 It is a schematic diagram of another network quality monitoring device provided by an embodiment of the present application. As Figure 7 shown, the device includes:
[0162] A second receiving module 701, configured to receive an uplink data packet sent by a terminal device. The uplink data packet is a packet generated by the terminal device according to a first process data packet, a first uplink delay parameter, and a second uplink delay parameter of an industrial device. The first uplink delay parameter is the transmission delay of a first communication path determined by the terminal according to the packet reception timestamp of the first process data packet, and the second uplink delay parameter is the transmission delay of a second communication path determined by the terminal device according to the packet reception timestamp of the first process data packet and the uplink pending transmission timestamp. The first communication path is the communication path between the terminal device and the industrial device, and the second communication path is the communication path inside the terminal device;
[0163] A second obtaining module 702, configured to obtain the first process data packet, the first uplink delay parameter, and the second uplink delay parameter from the uplink data packet;
[0164] A second calculation module 703, configured to calculate a third uplink delay parameter of a third communication path between the terminal device and the UPF network element according to the packet reception timestamp of the uplink data packet and the packet reception timestamp of the previous uplink data packet for the target industrial device;
[0165] A second calculation module 703, configured to calculate a fourth uplink delay parameter of a fourth communication path inside the UPF network element according to the packet reception timestamp of the uplink data packet and the pending transmission timestamp of the first process data packet.
[0166] In a possible implementation manner, the network quality monitoring device further includes: a second generating module, configured to, if the third uplink delay parameter exceeds the preset delay of the third communication path, generate and send an uplink alarm log of the third communication path to the network management device according to the first uplink delay parameter, the second uplink delay parameter, the third uplink delay parameter, and the identification information of the target industrial device;
[0167] If the fourth upstream delay parameter exceeds the preset delay of the fourth communication path, an upstream alarm log of the fourth communication path is generated and sent to the network management device according to the fourth upstream delay parameter, the third upstream delay parameter, the second upstream delay parameter, the first upstream delay parameter, and the identification information of the target industrial device.
[0168] In a possible implementation manner, the second receiving module 701 is further configured to: receive a second process data packet sent by a target industrial control device connected to the UPF network element;
[0169] In a possible implementation manner, the second calculation module 703 is further configured to: obtain the fifth downstream delay parameter of the fifth communication path between the target industrial control device and the UPF network element according to the packet reception timestamp of the second process data packet and the packet reception timestamp of the previous process data packet for the target industrial device;
[0170] In a possible implementation manner, the second calculation module 703 is further configured to: calculate the fourth downstream delay parameter of the fourth communication path inside the UPF network element according to the packet reception timestamp of the second process data packet and the downstream pending transmission timestamp;
[0171] In a possible implementation manner, the second generation module is further configured to: generate a downstream data packet according to the second process data packet, the fifth downstream delay parameter, and the fourth downstream delay parameter.
[0172] In a possible implementation manner, the network quality monitoring device further includes a second sending module: The second sending module is specifically configured to:
[0173] Send the downstream data packet to a terminal device in the industrial control network system, so that the terminal device determines the third downstream delay parameter of the third communication path between the terminal device and the UPF network element, and the second downstream delay parameter of the second communication path inside the terminal device according to the packet reception timestamp of the downstream data packet.
[0174] In a possible implementation manner, the second generation module is further configured to: if the fifth downstream delay parameter exceeds the preset delay of the fifth communication path, generate and send a downstream alarm log of the fifth communication path to the network management device of the industrial control network system according to the fifth downstream delay parameter and the identification information of the target industrial device;
[0175] If the fourth downstream delay parameter exceeds the preset delay of the fourth communication path, an alarm log of the fourth communication path is generated and sent to the network management device according to the fifth downstream delay parameter, the fourth downstream delay parameter, and the identification information of the target industrial device.
[0176] Descriptions of the processing flows of the various modules in the device and the interaction flows between the modules can refer to the relevant descriptions in the above method embodiments and will not be elaborated here.
[0177] An embodiment of this application also provides a terminal device. Figure 8 As shown in the schematic structural diagram of a terminal device provided for an embodiment of this application, Figure 8 the terminal device includes: a processor 801, a memory 802, and optionally, a bus 803 may also be included. The memory 802 stores machine-readable instructions executable by the processor 801. When the terminal device runs, the processor 801 communicates with the memory 802 through the bus 803. When the machine-readable instructions are executed by the processor 801, the steps of the above-mentioned network quality monitoring method are performed.
[0178] An embodiment of this application also provides a user plane function (UPF) network element. Figure 9 As shown in the schematic structural diagram of a user plane function (UPF) network element provided for an embodiment of this application, Figure 9 the user plane function (UPF) network element includes: a processor 901, a memory 902, and optionally, a bus 903 may also be included. The memory 902 stores machine-readable instructions executable by the processor 901. When the terminal device runs, the processor 901 communicates with the memory 902 through the bus 903. When the machine-readable instructions are executed by the processor 901, the steps of the above-mentioned another network quality monitoring method are performed.
[0179] An embodiment of this application also provides a computer-readable storage medium. A computer program is stored on this computer-readable storage medium. When the computer program is run by a processor, the steps of the above-mentioned network quality monitoring method are performed.
[0180] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the method embodiments and will not be elaborated in this application. 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 the modules is only a logical function division, and there may be other division methods in actual implementation. For another example, 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 couplings or direct couplings or communication connections to each other can be through some communication interfaces. The indirect couplings or communication connections of the devices or modules can be electrical, mechanical, or other forms.
[0181] In addition, each functional unit in various embodiments of the present application may be integrated into one processing unit, may exist physically alone for each unit, or two or more units may be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0182] The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should all be covered by the protection scope of the present application.
Claims
1. A network quality monitoring method, characterized in that: Applied to a terminal device in an industrial control network system, the method comprises: Receiving a first process data message sent by a target industrial device connected to the terminal device; Calculate a first uplink delay parameter of a first communication path between the target industrial device and the terminal device according to a packet receiving timestamp of the first process data message and a packet receiving timestamp of a previous first process data message for the target industrial device; Calculate a second uplink delay parameter of a second communication path within the terminal device according to a packet receiving timestamp and an uplink to-be-sent timestamp of the first process data message; generating an uplink data message according to the first process data message, the first uplink delay parameter and the second uplink delay parameter; The uplink data message 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 inside the UPF network element according to the packet receiving timestamp of the uplink data message.
2. The method according to claim 1, characterized in that The method further comprises: If the first uplink delay parameter exceeds the preset delay of the first communication path, generating and sending an uplink alarm log of the first communication path to a network management device of the industrial control network system according to the first uplink delay parameter and the identification information of the target industrial device; If the second uplink delay parameter exceeds the preset delay of the second communication path, an alarm log of the second communication path is generated and sent to the network management device according to the first uplink delay parameter, the second uplink delay parameter and the identification information of the target industrial device.
3. The method according to claim 1, characterized in that The method further comprises: Receive a downlink data message sent by the UPF network element; wherein the downlink data message is a message generated by the UPF network element according to the second process data message of the industrial control equipment, the fifth downlink delay parameter and the fourth downlink delay parameter, the fifth downlink delay parameter is the transmission delay of the fifth communication path determined by the UPF network element according to the packet receiving timestamp of the second process data message, the fourth downlink delay parameter is the transmission delay of the fourth communication path determined by the UPF network element according to the packet receiving timestamp of the second process data message and the downlink to-be-sent timestamp, and the fifth communication path is the communication path between the UPF network element and the industrial control equipment; Acquire the second process data message, the fifth downlink delay parameter and the fourth downlink delay parameter from the downlink data message; Calculating a third downlink delay parameter of the third communication path according to a packet receiving timestamp of the downlink data message and a packet receiving timestamp of a previous downlink data message for the target industrial device; A second downlink delay parameter of the second communication path is calculated according to a packet receiving timestamp and a downlink to-be-sent timestamp of the downlink data message.
4. The method according to claim 3, characterized in that The method further comprises: If the third downlink delay parameter exceeds the preset delay of the third communication path, a downlink alarm log of the third communication path is generated and sent to the network management device of the industrial control network system according to the fifth downlink delay parameter, the fourth downlink delay parameter, the third downlink delay parameter and the identification information of the target industrial device; If the second downlink delay parameter exceeds the preset delay of the second communication path, a downlink alarm log of the second communication path is generated and sent to the network management device 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.
5. A network quality monitoring method, characterized in that: Applied to a user plane function UPF network element in an industrial control network system, the method comprises: Receive an uplink data message sent by a terminal device, wherein the uplink data message is a message generated by the terminal device according to a first process data message of an industrial device, a first uplink delay parameter, and a second uplink delay parameter, the first uplink delay parameter is a transmission delay of a first communication path determined by the terminal device according to a packet receiving timestamp of the first process data message, the second uplink delay parameter is a transmission delay of a second communication path determined by the terminal device according to a packet receiving timestamp and an uplink to-be-sent timestamp of the first process data message, the first communication path is a communication path between the terminal device and a target industrial device, and the second communication path is a communication path inside the terminal device; Acquire the first process data message, the first uplink delay parameter, and the second uplink delay parameter from the uplink data message; Calculate a third uplink delay parameter of a third communication path between the terminal device and the UPF network element according to a packet receiving timestamp of the uplink data message and a packet receiving timestamp of a previous uplink data message for the target industrial device; According to the packet receiving timestamp of the uplink data message and the to-be-sent timestamp of the first process data message, the fourth uplink delay parameter of the fourth communication path inside the UPF network element is calculated.
6. The method according to claim 5, characterized in that The method further comprises: If the third uplink delay parameter exceeds the preset delay of the third communication path, an uplink alarm log of the third communication path is generated and sent to the network management device of the industrial control network system according to the first uplink delay parameter, the second uplink delay parameter, the third uplink delay parameter and the identification information of the target industrial device; If the fourth uplink delay parameter exceeds the preset delay of the fourth communication path, an uplink alarm log of the fourth communication path is generated and sent to the network management device 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.
7. The method according to claim 5, characterized in that The method further comprises: Receiving a second process data message sent by a target industrial control device connected to the UPF network element; Calculate a fifth downlink delay parameter of a fifth communication path between the target industrial control device and the UPF network element according to the packet receiving timestamp of the second process data message and the packet receiving timestamp of the previous process data message for the target industrial device; Calculate a fourth downlink delay parameter of a fourth communication path within the UPF network element according to a packet receiving timestamp and a downlink to-be-sent timestamp of the second process data message; generating a downlink data message according to the second process data message, the fifth downlink delay parameter and the fourth downlink delay parameter; The downlink data message 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 inside the terminal device according to the packet receiving timestamp of the downlink data message.
8. The method according to claim 7, characterized in that The method further comprises: If the fifth downlink delay parameter exceeds the preset delay of the fifth communication path, generating and sending a downlink alarm log of the fifth communication path to a network management device of the industrial control network system according to the fifth downlink delay parameter and the identification information of the target industrial device; If the fourth downlink delay parameter exceeds the preset delay of the fourth communication path, an alarm log of the fourth communication path is generated and sent to the network management device according to the fifth downlink delay parameter, the fourth downlink delay parameter and the identification information of the target industrial device.
9. A network terminal device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor executes the machine-readable instructions to perform the steps of the network quality monitoring method according to any one of claims 1 to 4.
10. A user plane function UPF network element, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor executes the machine-readable instructions to perform the steps of the network quality monitoring method as claimed in any one of claims 5 to 8.
Citation Information
Patent Citations
Time delay determination method and device
CN111162971A
Service quality monitoring method, device and system
CN113630796A
Time delay measurement method, device and equipment and computer readable storage medium
CN114978961A
Time delay monitoring method, device and network element
CN115623505A
Time delay display method and device
CN115842756A