Network quality monitoring method, system and device and readable storage medium

Through the 1bit message status field monitoring packet loss and delay, the impact of network quality monitoring on DSCP and ECN functions in the prior art is solved, and high-precision network quality monitoring and fault traceability are achieved.

CN120474990APending Publication Date: 2025-08-12SUZHOU CENTEC COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510738394.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-04
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

The existing network quality monitoring methods occupy the TOS field of IP packets, causing ECN or DSCP related functions to be unable to be used normally, affecting network protocol compatibility and operation and maintenance complexity.

Method used

The 1bit message status field is used to monitor packet loss staining bits and delayed staining bits. The delayed staining bit status values are derived using the packet loss staining bit transformation rules under different cycles, and the measurement points are extended for network quality monitoring, reducing the impact on DSCP and ECN functions.

Benefits of technology

It improves the accuracy of packet loss and delay measurement of IP network, reduces the impact of network monitoring solutions on DSCP and ECN functions, and improves the accuracy and efficiency of fault traceability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120474990A_ABST
    Figure CN120474990A_ABST
Patent Text Reader

Abstract

The invention discloses a network quality monitoring method, system and device and a readable storage medium, and the method comprises the steps: matching an ingress port access control list based on the quintuple information of a message, and obtaining a flow identifier, an ingress port statistical pointer and a state pointer corresponding to the message; obtaining a packet loss dyeing bit state value and a time delay dyeing bit state value corresponding to the message based on a flow state table corresponding to the state pointer index node; based on the packet loss dyeing bit state value, updating the number of messages accumulated and stored in the storage space pointed by the ingress port statistical pointer and the value of the number of message bytes; generating a mirror image copy of the message of which the time delay dyeing bit state value is a first preset value, and sending the mirror image copy to a central processing unit; and sending the message to a node output port processing engine, and carrying a flow identifier, a packet loss dyeing bit state value and a time delay dyeing bit state value corresponding to the message. Compared with the prior art, the method has the advantage that the influence on related functions such as DSCP and ECN in the quality monitoring and analysis process is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of network communication technology, and in particular relates to a network quality monitoring method, system, device and readable storage medium. Background Art

[0002] With the widespread use of the Internet and the development of communication technologies, various network services have emerged one after another, and these new services have placed higher demands on network performance. Among them, voice and video services are the most widely used network services. They are very sensitive to network packet loss, delay, and delay jitter.

[0003] In real-time audio and video services, network transmission quality directly determines the success or failure of the user experience. For example, in video conferencing systems, when end-to-end latency exceeds 150 milliseconds, participants will notice a noticeable missynchronization between speech and lip movements. If jitter exceeds 50 milliseconds, the video decoder will struggle to maintain smooth rendering, resulting in keyframe loss and a pixelated effect. More importantly, these services exhibit a significant "barrel effect" in their tolerance for network defects—even if average latency is within ideal limits, occasional network fluctuations can still cause a catastrophic experience degradation. When voice and video service quality degrades, users expect to quickly locate and troubleshoot network faults. Currently, IP network packet loss and latency measurement methods primarily include indirect and direct measurement, with INQA being a direct measurement method.

[0004] However, the implementation of the INQA measurement solution will occupy the TOS field in the IP packet, which will cause ECN or DSCP related functions to fail to work properly.

[0005] Therefore, in order to solve the above technical problems, it is necessary to provide a network quality monitoring method, system, device and readable storage medium.

[0006] The information disclosed in this background technology section is only intended to enhance understanding of the overall background of the invention and should not be regarded as an admission or any form of suggestion that the information constitutes the prior art already known to a person skilled in the art. Summary of the Invention

[0007] The object of the present invention is to provide a network quality monitoring method, system, device and readable storage medium, which can realize the intelligent network quality monitoring function with one bit, and effectively reduce the impact of the network monitoring solution on DSCP and ECN related functions.

[0008] In order to achieve the above object, a specific embodiment of the present invention provides the following technical solutions:

[0009] In a first aspect, the present invention provides a network quality monitoring method, applied to an ingress port processing engine of a node, comprising:

[0010] Match the ingress port access control list based on the message five-tuple information, and obtain the flow identifier, ingress port statistics pointer and status pointer corresponding to the message;

[0011] Indexing the flow state table corresponding to the node based on the state pointer, obtaining the packet loss coloring bit state value and the delay coloring bit state value corresponding to the message;

[0012] Based on the packet loss coloring bit status value, updating the value of the number of packets and the number of bytes of packets accumulated and stored in the storage space pointed to by the ingress port statistics pointer;

[0013] Generate and upload a mirror copy of the message with a delay coloring bit state value of a first preset value, the mirror copy including a timestamp when the message enters the ingress port processing engine;

[0014] The message is sent to the node egress port processing engine, and carries the flow identifier, packet loss coloring bit status value, and delay coloring bit status value corresponding to the message.

[0015] In one or more embodiments of the present invention, if the node is an intermediate node or a terminal node, obtaining the packet loss coloring bit status value and the delay coloring bit status value corresponding to the message includes:

[0016] Obtaining a packet loss coloring status value written into the status field of the message;

[0017] Based on the state pointer indexing the flow state table corresponding to the current node, obtaining the packet loss coloring bit state value stored in the previous message, and updating the packet loss coloring bit state value corresponding to the current message into the flow state table;

[0018] If the packet loss coloring bit state value stored in the previous message is different from the packet loss coloring bit state value written in the current message state field, the delay coloring bit state value corresponding to the current message is the first preset value;

[0019] If the packet loss coloring bit status value stored in the previous message is the same as the packet loss coloring bit status value written in the status field of the current message, the delay coloring bit status value corresponding to the current message is the second preset value.

[0020] In one or more embodiments of the present invention, if the node is an initial node, the method further includes:

[0021] In the flow state table corresponding to the initial node, the packet loss coloring bit state values corresponding to the same detection cycle are the same, and the packet loss coloring bit state values corresponding to adjacent detection cycles are different.

[0022] In one or more embodiments of the present invention, if the node is an initial node, the method further includes:

[0023] At the beginning of each detection cycle, the delay coloring bit state value corresponding to the current detection cycle in the flow state table corresponding to the initial node is set to a first preset value;

[0024] After forwarding the message with the delay coloring bit state value of the first preset value to the egress processing engine, the delay coloring bit state value corresponding to the current detection cycle in the flow state table corresponding to the initial node is set to a second preset value.

[0025] In a second aspect, the present invention provides a network quality monitoring method, which is applied to a node egress processing engine, and includes:

[0026] Matching the outbound port access control list based on the flow identifier carried by the message, and obtaining the outbound port statistics pointer corresponding to the message;

[0027] Based on the packet loss coloring bit status value carried by the message, updating the value of the number of messages and the number of message bytes accumulated and stored in the storage space pointed to by the egress port statistics pointer;

[0028] Generate and upload a mirror copy of the message with a delay coloring bit state value of a first preset value, the mirror copy including a timestamp when the message enters the egress port processing engine;

[0029] Based on the current node type, the preset status field of the message is edited, and the edited message is forwarded to the address corresponding to the next hop.

[0030] In one or more embodiments of the present invention, editing the status field preset in the message based on the current node type includes:

[0031] If the node is an initial node, the packet loss coloring bit status value corresponding to the message is written into a preset status field in the message, overwriting the original value of the initial field;

[0032] If the node is a terminal node, the packet loss coloring bit status value written in the preset status field of the message is restored to the original value.

[0033] In one or more embodiments of the present invention, if the node is an intermediate node, processing of the status field of the message is skipped.

[0034] In one or more embodiments of the present invention, the length of the status field is 1 bit.

[0035] In a third aspect, the present invention provides a network quality monitoring system, comprising:

[0036] A matching module, configured to match an ingress port access control list based on the message five-tuple information, and obtain a flow identifier, an ingress port statistics pointer, and a status pointer corresponding to the message;

[0037] An acquisition module, configured to index a flow state table corresponding to the node based on the state pointer, and acquire a packet loss coloring bit state value and a delay coloring bit state value corresponding to the message;

[0038] An updating module, based on the packet loss coloring bit status value, updates the value of the number of packets and the number of bytes of packets accumulated and stored in the storage space pointed to by the ingress port statistics pointer;

[0039] A reporting module, configured to generate and upload a mirror copy of the message having a delay coloring bit state value of a first preset value, wherein the mirror copy includes a timestamp when the message enters the ingress port processing engine;

[0040] The forwarding module is used to send the message to the node egress port processing engine, and carry the flow identifier, packet loss coloring bit status value and delay coloring bit status value corresponding to the message.

[0041] In a fourth aspect, the present invention provides a computer device comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the network quality monitoring method by executing the computer instructions.

[0042] In a fifth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the network quality monitoring method.

[0043] Compared to existing technologies, the network quality monitoring method provided by the present invention improves the accuracy of IP network packet loss and delay measurements and the speed of identifying packet loss locations by expanding counting points. Furthermore, by improving the color bit status value, the present invention significantly reduces the message field length required for intelligent network quality analysis, thus avoiding the impact on related functions such as DSCP and ECN during quality monitoring and analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0045] Figure 1is a flow chart of a network quality monitoring method according to one embodiment of the present invention;

[0046] Figure 2 is a flow chart of a network quality monitoring method in another embodiment of the present invention;

[0047] Figure 3 This is a structural block diagram of a network quality monitoring system according to one embodiment of the present invention;

[0048] Figure 4 is a structural block diagram of a network quality monitoring system in another embodiment of the present invention;

[0049] Figure 5 It is a structural block diagram of an electronic device in one embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to enable those skilled in the art to better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0051] Unless expressly stated otherwise, throughout the specification and claims, the term "comprise" or variations such as "include" or "comprising", etc., will be understood to include the stated elements or components but not to exclude other elements or other components.

[0052] Existing solutions include intelligent network quality analysis methods that specifically include periodic packet coloring at network source nodes, including packet loss coloring and delay coloring. The source node, intermediate nodes, and / or terminal nodes each count the number and byte count of the colored packets. A copy of the delay-colored packets is also sent to the central processing unit (CPU). Each node reports the packet and byte count statistics, along with the timestamp information received by the CPU, to an analyzer. Based on this information, the analyzer calculates packet loss and delay between each node, thereby analyzing the overall network quality.

[0053] Current intelligent network quality analysis solutions primarily use two of the eight bits in the ToS field of IP packets to represent the packet loss and delay coloring bits, respectively. This solution occupies the ToS field in IP packets, preventing ECN and DSCP-related functions from functioning properly. It is also understandable that occupying too many packet fields during network quality monitoring can lead to potential issues such as protocol compatibility risks, increased operational complexity, and data integrity vulnerabilities. The more fields occupied, the greater the risk of these issues.

[0054] The inventors of the present invention have discovered the main shortcomings of the existing technology, and based on the shortcomings of the existing technology, have proposed a new technical implementation idea: only a 1-bit message status field is used to write the packet loss coloring bit status value of the message, and the delay coloring bit status value corresponding to the current message is derived based on the transformation law of the packet loss coloring bit in different cycles during the transmission process. This can achieve network quality monitoring based on delay coloring and packet loss coloring. Furthermore, each node will report the statistical information of the number of messages and the number of bytes, as well as the timestamp information received by the CPU to the analyzer. The analyzer calculates the number of packet losses and delays between each node based on the information of each node, thereby analyzing the network quality of the entire network. At the same time, the present invention expands the measurement points, and the input port processing engine and the output port processing engine of each node perform corresponding coloring message counting and delay message reporting, thereby improving the accuracy and efficiency of detection and fault tracing.

[0055] Example 1

[0056] In this embodiment, the network quality monitoring method of the present invention is applied to the initial node inbound direction engine, such as Figure 1 The process shown specifically includes:

[0057] S101: Match the ingress port access control list based on the message quintuple information to obtain the flow identifier, ingress port statistics pointer, and status pointer corresponding to the message;

[0058] The five-tuple information is the core information of a data flow in network communications. It typically refers to the five fields: source IP address (source IP), source port number (source port), destination IP address (destination IP), destination port number (destination port), and transport layer protocol. The five-tuple information uniquely identifies a network session. Access Control Lists (ACLs) are a packet filtering-based access control technology that can filter data packets on an interface based on set conditions, allowing them to pass or discard them. With the help of ACLs, user access to the network can be effectively controlled.

[0059] It should be noted that in this embodiment of the present invention, an independent access control list is maintained on both the ingress and egress sides of the same node. The ingress access control list determines whether to allow or deny a packet by matching it with the packet's five-tuple information. In this embodiment of the present invention, when a packet matches the ingress ACL, the network device further generates a flow identifier, ingress statistics pointer, and status pointer corresponding to the packet.

[0060] The flow identifier is used to uniquely identify a data flow, distinguish data flows with different sources, destinations and characteristics, avoid repeated matching of ACL rules, and improve forwarding efficiency. The statistical pointer is used to point to the memory location where statistical information is stored. In an embodiment of the present invention, it is used to record and track the number and number of bytes of specific colored messages. These statistical information can be quickly accessed and updated through this pointer. The state pointer is used to point to a storage area representing the state of an object or system. In an embodiment of the present invention, the flow state table can be indexed based on the state pointer, and the state information of the required object can be obtained according to the different node types. The state pointer allows the program to easily obtain and modify the state information to achieve effective control and adjustment of the network quality monitoring process.

[0061] S102: Indexing the flow state table corresponding to the node based on the state pointer to obtain a packet loss coloring bit state value and a delay coloring bit state value corresponding to the message;

[0062] It should be noted that the network quality monitoring method implemented by the present invention requires coloring and counting the message based on the coloring bit status value of the message at the initial node, so that the data analyzer can determine the packet loss and delay conditions based on the count difference of each subsequent node. The coloring bit status value includes a packet loss coloring bit status value and a delay coloring bit status value. The packet loss coloring bit status value is used to characterize the packet loss coloring type of the message, and the delay coloring bit status value is used to characterize whether it is necessary to upload a mirror copy of the message with a timestamp.

[0063] Specifically, in one embodiment of the present invention, after network quality monitoring is turned on, the packet loss rate and delay of the network will be continuously measured based on a preset period. For packet loss coloring, the initial node will set the packet loss coloring bit of the message to a third preset value (corresponding to the first period) and a fourth preset value (corresponding to the second period) alternately according to the period. In the first period, each node only counts the number of messages whose packet loss coloring bit status value is the third preset value and the cumulative number of bytes of the message; in the second period, each node only counts the number of messages whose packet loss coloring bit status value is the fourth preset value and the cumulative number of bytes of the message. For delay coloring, each test point uploads a mirror copy of the message whose delay coloring bit is the first preset value in the detection period to the central processing unit to record the timestamp of the current message entering the test point.

[0064] The initial node is configured with a flow state table, which records the packet loss coloring bit state value and the delay coloring bit state value corresponding to the current message. Based on the state pointer corresponding to the message, the flow state table corresponding to the node can be indexed to obtain the packet loss coloring bit state value and the delay coloring bit state value corresponding to the message. In the flow state table corresponding to the initial node, the packet loss coloring bit state value corresponding to the same detection cycle is the same, and the packet loss coloring bit state value corresponding to adjacent detection cycles is different, thereby forming alternating coloring.

[0065] For example, the packet loss coloring bit of the first detection cycle in the flow state table configured by the initial node is 1, indicating that the messages in this cycle are colored; the packet loss coloring bit of the next adjacent detection cycle is 0, indicating that the messages in this cycle are not colored. In the first detection cycle, the message in the inbound direction processing engine of the initial node indexes the corresponding packet loss coloring bit state value as 1 based on the state pointer. Subsequently, in the coloring cycle, only the number of messages and the number of bytes with the packet loss coloring bit state value of 1 in the target flow are counted; in the non-coloring cycle, only the number of messages and the number of bytes with the packet loss coloring bit state value of 0 in the target flow are counted.

[0066] It is understandable that the node delay is relatively stable and there will be no drastic fluctuations in the delay in a short period of time. Therefore, it is sufficient to upload and save the timestamps of one or more messages within the same cycle. Based on this, in one embodiment of the present invention, the initial node can set the delay coloring bit state value corresponding to the current detection cycle in the flow state table corresponding to the initial node to the first preset value at the beginning of each detection cycle; after forwarding the message with the delay coloring bit state value of the first preset value to the output port processing engine, the delay coloring bit state value corresponding to the current detection cycle in the flow state table corresponding to the initial node is set to the second preset value.

[0067] In this implementation, the first message in each detection cycle can be configured as a "delay detection message" to be uploaded, with a lower error rate. After uploading this message, the flow state table is automatically set to the second preset value, eliminating the need to upload subsequent messages in the cycle, thus saving computing and transmission resources. The present invention does not limit the specific value of the Xth preset value in this specification.

[0068] S103: Based on the packet loss coloring bit status value, updating the value of the number of packets and the number of bytes of packets accumulated and stored in the storage space pointed to by the ingress port statistics pointer;

[0069] It's important to note that statistics on the number of packets and bytes can be used by the analyzer to calculate packet loss-related data. For example, the total number of packets lost between node A and node B is equal to the number of inbound packets from node A minus the number of outbound packets from node B. The packet loss rate between node A and node B is equal to the total number of packets lost between node A and node B divided by the number of inbound packets from node A.

[0070] It is understood that whether the inbound processing engine at each node counts packets depends on whether packet loss data is calculated based on the inbound direction of the current node. If computing or memory resources are limited, or if the accuracy of packet loss location screening is not required, the inbound processing engine can be skipped for some nodes. This is not a limitation in the present embodiment.

[0071] Since packet loss is almost non-existent at the initial node, a relatively accurate number of packets in the initial phase can be provided. To enable the analyzer to perform packet loss analysis for the same period, instance, and traffic, it is preferable to count the number of packets and total bytes in the inbound direction of the initial node after obtaining the packet loss coloring bit status value and the delay coloring bit status value corresponding to the packet.

[0072] The ingress port statistics pointer points to a preset storage space for counting the number of packets and the number of bytes in the packets. If, in the current period, statistics are collected for a packet whose packet loss coloring bit status value is a third preset value, and the packet loss coloring bit status value of the current packet is indeed the third preset value and the number of bytes is m, then, in the storage space pointed to by the ingress port statistics pointer for the packet, the number of packets corresponding to the third preset value is incremented by one, and the number of bytes in the packet corresponding to the third preset value is incremented by m.

[0073] S104: Generate and upload a mirror copy of the message with a delay coloring bit state value of a first preset value, the mirror copy including a timestamp when the message enters the ingress port processing engine;

[0074] Similar to the aforementioned calculation of packet loss-related data, counting packets at each node is performed. The uploaded packet timestamps can serve as the basis for the analyzer to calculate latency-related data. For example, the latency between node A and node B is equal to the time interval between the inbound timestamp of node A and the outbound timestamp of node B; the packet processing latency within node A is equal to the time interval between the inbound timestamp of node A and the outbound timestamp of node A, and so on.

[0075] Similarly, whether each node uploads a timestamped copy of the message depends on whether the message latency data is calculated based on the current node's inbound direction. In specific scenarios, the inbound processing engine of some nodes can be instructed to skip uploading a timestamped copy of the message. This is also not limited in the embodiments of the present invention.

[0076] Since delay calculation typically considers the entire transmission delay of a message, and the delay at any node is typically calculated based on the initial node, it is preferable to generate and upload a mirror copy of the message with the delay coloring bit state value set to a first preset value in the inbound direction of the initial node. This upload location is typically a central processing unit or other analyzer, but this is not limited in this embodiment of the present invention.

[0077] S105: Send the message to the node egress port processing engine, and carry the flow identifier, packet loss coloring bit status value, and delay coloring bit status value corresponding to the message.

[0078] A single node includes an inbound processing engine and an outbound processing engine. Each inbound processing engine and outbound processing engine maintain independent access control lists. Only through the outbound processing engine can the message be sent to the address corresponding to the next hop. For the same reasons as above, the present invention does not limit whether each node's outbound processing engine performs packet loss and / or delay coloring on message uploads.

[0079] Example 2

[0080] In this embodiment, the network quality monitoring method of the present invention is applied to the initial node egress processing engine, such as Figure 2 The process shown specifically includes:

[0081] S201: Matching an outbound port access control list based on a flow identifier carried in a message, and obtaining an outbound port statistics pointer corresponding to the message;

[0082] As mentioned above, the flow identifier uniquely identifies a data flow, distinguishing data flows with different sources, destinations, and characteristics, avoiding duplicate ACL rule matches and improving forwarding efficiency. Furthermore, because the egress processing engine maintains independent ACL entries, the subsequent egress statistics pointer and the aforementioned ingress statistics pointer will point to different storage spaces.

[0083] S202: Based on the packet loss coloring bit status value carried by the message, update the value of the number of messages and the number of message bytes accumulated and stored in the storage space pointed to by the egress port statistics pointer;

[0084] Similar to step S103, the egress port statistics pointer points to another preset storage space for counting the number of packets and the number of bytes in the packets. If, in the current period, statistics are collected for packets whose packet loss coloring bit status value is the third preset value, and the packet loss coloring bit status value carried by the current packet is indeed the third preset value and the number of bytes is m, then, in the storage space pointed to by the egress port statistics pointer for the packet, the number of packets corresponding to the third preset value is incremented by one, and the number of bytes in the packet corresponding to the third preset value is incremented by m.

[0085] S203: Generate and upload a mirror copy of the message with a delay coloring bit state value of a first preset value, wherein the mirror copy includes a timestamp when the message enters the egress port processing engine;

[0086] Similar to step S104, the outbound processing engine at the initial node, unless otherwise specified, generates and uploads a mirror copy of the message with the delay coloring bit state value set to the first preset value. The upload location is typically a central processing unit or other analyzer, and this is not limited in this embodiment of the present invention.

[0087] S204: Based on the current node type, edit the status field preset in the message, and forward the edited message to the address corresponding to the next hop.

[0088] In an exemplary embodiment of the present invention, if the node is an initial node, the packet loss coloring bit status value corresponding to the message is written into a preset status field in the message, overwriting the original value of the initial field.

[0089] It should be noted that the status field may include, but is not limited to, a Frag rsv field, a TOS field, or other redundant fields. This embodiment of the present invention does not impose any restrictions on this. Since only the packet loss coloring bit status value is written, the length of the status field can be only 1 bit.

[0090] Example 3

[0091] In this embodiment, the network quality monitoring method of the present invention is applied to an ingress processing engine of an intermediate node / termination node, and specifically includes:

[0092] S301: Match the ingress port access control list based on the message quintuple information to obtain the flow identifier, ingress port statistics pointer, and status pointer corresponding to the message;

[0093] The process is the same as step S101 and will not be described in detail in this embodiment.

[0094] S302: Indexing the flow state table corresponding to the node based on the state pointer to obtain the packet loss coloring bit state value and the delay coloring bit state value corresponding to the message;

[0095] It's understandable that each node maintains a separate flow state table. Because packets may have been lost during transmission, the inbound processing engine at the intermediate / terminating node cannot retrieve the packet loss coloring bit and delay coloring bit values corresponding to the packet by re-indexing the flow state table. Instead, the flow state table maintained by the intermediate / terminating node records the packet loss coloring bit value stored for the previous packet.

[0096] At this time, in an exemplary embodiment, obtaining the packet loss coloring bit status value and the delay coloring bit status value corresponding to the message includes: obtaining the packet loss coloring bit status value written in the status field of the message; indexing the flow state table corresponding to the current node based on the state pointer, obtaining the packet loss coloring bit status value stored in the previous message, and updating the packet loss coloring bit status value corresponding to the current message into the flow state table; if the packet loss coloring bit status value stored in the previous message is different from the packet loss coloring bit status value written in the status field of the current message, then the delay coloring bit status value corresponding to the current message is a first preset value; if the packet loss coloring bit status value stored in the previous message is the same as the packet loss coloring bit status value written in the status field of the current message, then the delay coloring bit status value corresponding to the current message is a second preset value.

[0097] For example, in the inbound processing engine of the intermediate node / terminal node, the packet loss coloring bit status value of a message is 1. Since an alternating coloring strategy is adopted, that is, the packet loss coloring bit status values of messages corresponding to adjacent detection cycles must be different, therefore, under the premise of sending the first message of each cycle, the flow state table corresponding to the current node can be indexed based on the state pointer. If the packet loss coloring bit status value stored in the previous message is also 1, it can be considered that the message is not the first message of the current detection cycle, and therefore the experimental coloring bit of the message is considered to be the second preset value. Conversely, if the packet loss coloring bit status value stored in the previous message is not 1, it can be considered that the message is the first message of the current detection cycle, and therefore the experimental coloring bit of the message is considered to be the first preset value.

[0098] The above embodiment uses the first message in each cycle as the delay-stained message. In another embodiment of the present invention, a counter can also be configured to realize the free setting of the delay-stained message within the cycle. Specifically, for example, it is set that within each monitoring cycle, the jth message needs to be copied and uploaded. When the first message with a different packet loss staining bit status value from the one indexed to the previous message storage appears, the counter is set to 1. Subsequently, each time a message is received, the counter is incremented by one. If the counter reading is not j, the delay staining bit status value of the corresponding message is the second preset value; if the counter reading is j, the delay staining bit status value of the corresponding message is the first preset value.

[0099] It should be noted that before message forwarding begins, the user can configure an initial value for the flow forwarding table of the intermediate / terminating node based on the terminal. If the current message is the first message forwarded to the intermediate / terminating node, the initial value is indexed to ensure smooth network quality monitoring. It is important to note that the initial value should be different from the packet loss coloring bit status value corresponding to the first message.

[0100] S303: Based on the packet loss coloring bit status value, update the value of the number of packets and the number of packet bytes accumulated and stored in the storage space pointed to by the ingress port statistics pointer;

[0101] This step is consistent with S202 and will not be described again in this embodiment.

[0102] S304: Generate and upload a mirror copy of the message with a delay coloring bit state value of a first preset value, wherein the mirror copy includes a timestamp when the message enters the ingress port processing engine;

[0103] This step is consistent with S203 and will not be described again in this embodiment.

[0104] S305: Send the message to the node egress port processing engine, and carry the flow identifier, packet loss coloring bit status value, and delay coloring bit status value corresponding to the message.

[0105] Example 4

[0106] In this embodiment, the network quality monitoring method of the present invention is applied to an intermediate node egress port processing engine.

[0107] Except for the following technical features, the message processing flow of the egress port processing engine of the intermediate node is consistent with the message processing flow of the egress port processing engine of the initial node, and will not be described in detail in this embodiment.

[0108] It should be noted that at the initial node's egress processing engine, the packet loss coloring bit status value corresponding to the message is written into the message's preset status field, overwriting the original value of the initial field. Because the correspondence between the packet loss coloring bit status value and the message remains valid, and subsequent nodes need to identify this field to obtain the packet loss coloring bit status value and delay coloring bit status value corresponding to the message, to ensure smooth network quality testing at subsequent nodes, the processing of the message's status field needs to be skipped at the intermediate node.

[0109] Example 5

[0110] In this embodiment, the network quality monitoring method of the present invention is applied to the egress port processing engine of the termination node.

[0111] Except for the following technical features, the message processing flow of the egress port processing engine of the termination node is consistent with the message processing flow of the egress port processing engine of the intermediate node, and will not be described in detail in this embodiment.

[0112] The termination node is usually the end point of the transmission path that requires network quality monitoring. Therefore, in order to ensure smooth subsequent forwarding / application of the message, preferably, when editing the status field preset in the message, the packet loss coloring bit status value written in the status field preset in the message is restored to the original value.

[0113] Please refer to Figure 3 As shown, based on the same inventive concept as the aforementioned network quality monitoring method, an embodiment of the present invention provides a network quality monitoring system 400, which includes: a matching module 401, an acquisition module 402, an update module 403, a reporting module 404 and a forwarding module 405.

[0114] Specifically, the matching module 301 is used to match the ingress port access control list based on the message five-tuple information, and obtain the flow identifier, ingress port statistics pointer and status pointer corresponding to the message; the acquisition module 402 is used to index the flow state table corresponding to the node based on the status pointer, and obtain the packet loss coloring bit status value and the delay coloring bit status value corresponding to the message; the update module 403 is used to update the value of the number of messages and the number of message bytes accumulated in the storage space pointed to by the ingress port statistics pointer based on the packet loss coloring bit status value; the reporting module 404 is used to generate and upload a mirror copy of the message with a delay coloring bit status value of a first preset value, and the mirror copy includes the timestamp when the message enters the ingress port processing engine; the forwarding module 405 is used to send the message to the node egress port processing engine, and carry the flow identifier, packet loss coloring bit status value and delay coloring bit status value corresponding to the message.

[0115] Please refer to Figure 4 As shown, based on the same inventive concept as the aforementioned network quality monitoring method, an embodiment of the present invention provides a network quality monitoring system 500, which includes: a second matching module 501, a second updating module 502, a second reporting module 503 and an editing module 504.

[0116] Specifically, the second matching module 501 is used to match the outbound port access control list based on the flow identifier carried by the message, and obtain the outbound port statistical pointer corresponding to the message; the second updating module 502 is used to update the value of the cumulative number of messages stored in the storage space pointed to by the outbound port statistical pointer and the number of message bytes based on the packet loss coloring bit status value carried by the message; the second reporting module 503 is used to generate and upload a mirror copy of the message with a delay coloring bit status value of a first preset value, and the mirror copy includes a timestamp when the message enters the outbound port processing engine; the editing module 504 is used to edit the preset status field of the message based on the current node type, and forward the edited message to the address corresponding to the next hop.

[0117] Please refer to Figure 5 As shown, an embodiment of the present invention further provides an electronic device 600, which includes at least one processor 601, a memory 602 (e.g., a non-volatile memory), a storage 603, and a communication interface 604, and the at least one processor 601, the memory 602, the storage 603, and the communication interface 604 are connected together via an internal bus 605. The at least one processor 601 is configured to call at least one program instruction stored or encoded in the memory 602, so that the at least one processor 601 performs various operations and functions of the network quality monitoring method described in various embodiments of this specification.

[0118] In the embodiments of the present specification, the electronic device 600 may include but is not limited to: a personal computer, a server computer, a workstation, a desktop computer, a laptop computer, a notebook computer, a mobile electronic device, a smart phone, a tablet computer, a cellular phone, a personal digital assistant (PDA), a handheld device, a messaging device, a wearable electronic device, a consumer electronic device, and the like.

[0119] An embodiment of the present invention further provides a computer-readable medium carrying computer-executable instructions. When the computer-executable instructions are executed by a processor, they can be used to implement various operations and functions of the network quality monitoring method described in various embodiments of this specification.

[0120] The computer-readable medium in the present invention can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.

[0121] In the present invention, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.

[0122] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0123] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatuses, systems, and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0124] The foregoing descriptions of specific exemplary embodiments of the present invention are for purposes of illustration and description. These descriptions are not intended to limit the invention to the precise forms disclosed, and it is apparent that many variations and modifications are possible in light of the foregoing teachings. The exemplary embodiments have been selected and described for the purpose of explaining the specific principles of the invention and their practical application, thereby enabling those skilled in the art to realize and utilize a variety of exemplary embodiments of the invention and various options and modifications. The scope of the invention is intended to be defined by the claims and their equivalents.

[0125] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above and that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims, not the foregoing description, and all variations within the meaning and range of equivalents of the claims are intended to be included therein. Any reference sign in a claim should not be construed as limiting the claim to which it relates.

[0126] In addition, it should be understood that although this specification is described in terms of implementation methods, not every implementation method contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment can also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.

Claims

1. A network quality monitoring method, applied to an ingress processing engine of a node, characterized in that: include: Match the ingress port access control list based on the message five-tuple information, and obtain the flow identifier, ingress port statistics pointer and status pointer corresponding to the message; Indexing the flow state table corresponding to the node based on the state pointer, obtaining the packet loss coloring bit state value and the delay coloring bit state value corresponding to the message; Based on the packet loss coloring bit status value, updating the value of the number of packets and the number of bytes of packets accumulated and stored in the storage space pointed to by the ingress port statistics pointer; Generate and upload a mirror copy of the message with a delay coloring bit state value of a first preset value, the mirror copy including a timestamp when the message enters the ingress port processing engine; The message is sent to the node egress port processing engine, and carries the flow identifier, packet loss coloring bit status value, and delay coloring bit status value corresponding to the message.

2. The network quality monitoring method according to claim 1, wherein: If the node is an intermediate node or a terminal node, obtaining the packet loss coloring bit status value and the delay coloring bit status value corresponding to the message includes: Obtaining a packet loss coloring status value written into the status field of the message; Based on the state pointer indexing the flow state table corresponding to the current node, obtaining the packet loss coloring bit state value stored in the previous message, and updating the packet loss coloring bit state value corresponding to the current message into the flow state table; If the packet loss coloring bit state value stored in the previous message is different from the packet loss coloring bit state value written in the current message state field, the delay coloring bit state value corresponding to the current message is the first preset value; If the packet loss coloring bit status value stored in the previous message is the same as the packet loss coloring bit status value written in the status field of the current message, the delay coloring bit status value corresponding to the current message is the second preset value.

3. The network quality monitoring method according to claim 1, wherein: If the node is an initial node, the method further includes: In the flow state table corresponding to the initial node, the packet loss coloring bit state values corresponding to the same detection cycle are the same, and the packet loss coloring bit state values corresponding to adjacent detection cycles are different.

4. The network quality monitoring method according to claim 1, wherein: If the node is an initial node, the method further includes: At the beginning of each detection cycle, the delay coloring bit state value corresponding to the current detection cycle in the flow state table corresponding to the initial node is set to a first preset value; After forwarding the message with the delay coloring bit state value of the first preset value to the egress processing engine, the delay coloring bit state value corresponding to the current detection cycle in the flow state table corresponding to the initial node is set to a second preset value.

5. A network quality monitoring method, applied to a node egress processing engine, characterized in that: include: Matching the outbound port access control list based on the flow identifier carried by the message, and obtaining the outbound port statistics pointer corresponding to the message; Based on the packet loss coloring bit status value carried by the message, updating the value of the number of messages and the number of message bytes accumulated and stored in the storage space pointed to by the egress port statistics pointer; Generate and upload a mirror copy of the message with a delay coloring bit state value of a first preset value, the mirror copy including a timestamp when the message enters the egress port processing engine; Based on the current node type, the preset status field of the message is edited, and the edited message is forwarded to the address corresponding to the next hop.

6. The network quality monitoring method according to claim 5, characterized in that: Based on the current node type, the status field preset in the message is edited, including: If the node is an initial node, the packet loss coloring bit status value corresponding to the message is written into a preset status field in the message, overwriting the original value of the initial field; If the node is a terminal node, the packet loss coloring bit status value written in the preset status field of the message is restored to the original value.

7. The network quality monitoring method according to claim 5, characterized in that: If the node is an intermediate node, processing of the status field of the message is skipped.

8. The network quality monitoring method according to claim 5, characterized in that: The length of the status field is 1 bit.

9. A network quality monitoring system, characterized in that: include: A matching module, configured to match an ingress port access control list based on the message five-tuple information, and obtain a flow identifier, an ingress port statistics pointer, and a status pointer corresponding to the message; An acquisition module, configured to acquire a packet loss coloring bit state value and a delay coloring bit state value corresponding to the message based on a flow state table corresponding to the state pointer index node; An updating module, based on the packet loss coloring bit status value, updates the value of the number of packets and the number of bytes of packets accumulated and stored in the storage space pointed to by the ingress port statistics pointer; A reporting module, configured to generate and upload a mirror copy of the message having a delay coloring bit state value of a first preset value, wherein the mirror copy includes a timestamp when the message enters the ingress port processing engine; The forwarding module is used to send the message to the node egress port processing engine, and carry the flow identifier, packet loss coloring bit status value and delay coloring bit status value corresponding to the message.

10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the network quality monitoring method according to any one of claims 1 to 8 by executing the computer instructions.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the network quality monitoring method according to any one of claims 1 to 8.