Network quality monitoring method and device

By obtaining and marking packet information in the cloud server, it solves the problem of dynamic changes in network paths and difficulty in locking packet loss paths caused by container migration in cloud native environments, and achieves fine-grained network quality monitoring and observability.

CN118740691AInactive Publication Date: 2024-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310365252.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In cloud-native cloud network systems, container migration causes dynamic changes in network paths, making it difficult to lock the path where packet loss occurs when packets are lost.

Method used

By obtaining the data packet information of the application layer and interface layer in the cloud server, using the marking information to mark and count the data packets, and determining the packet loss path, fine-grained network observability is achieved.

Benefits of technology

It can accurately locate the packet loss path, improve the accuracy and efficiency of network quality monitoring, and adapt to dynamic network changes in the cloud native environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740691A_ABST
    Figure CN118740691A_ABST
Patent Text Reader

Abstract

A network quality monitoring method and device, the method comprising: acquiring first information, the first information comprising information of a data packet of a first service on an application layer; obtaining second information, wherein the second information comprises information of a data packet received by at least one interface; and analyzing the network quality based on the first information and the second information. By adopting the embodiment of the invention, the packet loss path can be determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a network quality monitoring method and device. Background Art

[0002] A containerized cloud network system can include many infrastructures, such as hosts, virtual machines, containers, etc. From hosts to virtual machines to containers, each layer has a corresponding network interface. This makes the network path of the network microservices carried by the container long. For example, the network path of the service data from container 1 to container 2 is: container 1 → virtual machine → virtual switch → host network card → switch → host network card → virtual switch → virtual machine → container 2.

[0003] In a cloud-native cloud network system, containers can be migrated, and the network environment is dynamically changing. Therefore, the transmission path of business data from container 1 to container 2 on the cloud network system is not fixed. For example, the business data of container 1 needs to pass through one or more containers to be transmitted to container 2. When container 1 or container 2 or other containers are migrated, the transmission path of business data from container 1 to container 2 will change. Therefore, when packet loss occurs in the business, it is difficult to lock the path where the packet loss occurs. Summary of the invention

[0004] The embodiments of the present application disclose a network quality monitoring method and device, which can determine the packet loss path.

[0005] In a first aspect, an embodiment of the present application provides a network quality monitoring method, which is applied to a cloud server, or can also be executed by a component of a cloud server (such as a chip or circuit), or can also be implemented by a logical node, a logical module or software that can implement all or part of the cloud server functions, without limitation. The method includes:

[0006] Acquire first information, wherein the first information includes information of a data packet of a first service at an application layer; acquire second information, wherein the second information includes information of the data packet received by at least one interface; and analyze network quality based on the first information and the second information.

[0007] In the embodiment of the present application, at least one interface can be understood as an interface on the network path corresponding to the first service, and the data packet of the first service can start from the application layer and pass through the at least one interface in sequence. The cloud server can obtain the information of the data packet on the application layer and the information of the data packet on at least one interface, and by comparing the information of the data packet on the application layer and the data packet received on at least one interface, it can determine whether the first service has packet loss, etc., so that when the first service has packet loss, the path where the packet loss occurs can be determined based on the number of data packets on each interface.

[0008] In combination with the first aspect, in a possible implementation manner, the data packet includes marking information, and obtaining the second information includes:

[0009] The data packets are identified and counted on the at least one interface based on the tag information to obtain the second information.

[0010] In the embodiment of the present application, the cloud server can use the marking information to mark the data packets of the first service, identify and count the marked data packets on each interface, and obtain the second information, that is, the second information may include information of the marked data packets received on at least one interface. The cloud server can use the marking information to mark the data packets of the first service, so as to track the data packets of the first service on each interface through which the data packets pass, so as to achieve observation of the data packets of the first service, that is, the cloud server can achieve fine-grained network observability by network observation at the granularity of the service (or application, microservice).

[0011] In combination with the first aspect, in a possible implementation manner, the method further includes:

[0012] Based on the marking information and the software development kit (SDK) of the application layer, the differentiated services code point (DSCP) field of the Internet protocol (IP) message header of the data packet of the first service is marked at the application layer.

[0013] In an embodiment of the present application, the application layer of the cloud server may integrate an SDK, which may also be referred to as a probe SDK (Probe-SDK), which is used to mark the data packets of the first service. Exemplarily, the marking information may include a first numerical value, and the SDK may write the first numerical value into the DSCP field of the IP header of the data packet. For example, the first numerical value may be a non-zero number, and before the data packet of the first service departs from the application layer, when the network protocol stack processes it, the cloud server writes a non-zero mark into the DSCP field of the IP header of the data packet of the first service through the SDK. The cloud server marks the data packets of the first service at the application layer through the SDK of the application layer, so that the data packets of the first service are marked from the beginning of the communication, so that the cloud server can track the data packets of the first service from the beginning.

[0014] In combination with the first aspect, in a possible implementation manner, the method further includes:

[0015] Allocating a first identifier for the first service, wherein the data packet includes the first identifier;

[0016] The step of identifying and counting the data packets on the at least one interface based on the tag information to obtain the second information includes:

[0017] The second information is obtained by identifying and counting the data packets on the at least one interface based on the marking information and the first identifier.

[0018] In an embodiment of the present application, the cloud server may further assign a first identifier to the first service, and carry the first identifier in a data packet of the first service, so that each interface can identify the identifier of the first service.

[0019] In combination with the first aspect, in a possible implementation manner, the method further includes:

[0020] When the allocation duration of the first identifier exceeds a first duration, the first identifier is released.

[0021] In the embodiment of the present application, the cloud server can set a timeout period (such as a first duration) for the first identifier. When the allocation time of the first identifier exceeds the first duration, the first identifier is released to avoid the first identifier being occupied for a long time and save resources.

[0022] In combination with the first aspect, in a possible implementation, the second information includes at least one of the following items: information about the number of data packets received by the at least one interface, information about erroneous data packets among the data packets received by the at least one interface, information about retransmitted data packets among the data packets received by the at least one interface, the size of the data packets received by the at least one interface, and the transmission time interval of the data packets received by the at least one interface.

[0023] In an embodiment of the present application, the cloud server can count the data packets of the marked first service received by at least one interface. For example, the cloud server can count at least one of the following items to obtain the second information: the number of data packets received by each interface of the at least one interface, the number of erroneous data packets in the data packets received by each interface, the number of retransmitted data packets in the data packets received by each interface, the size of the data packets received by each interface, the transmission time interval of the data packets received by each interface, etc. So that the cloud server can analyze the network quality based on the second information, for example, determine the number of packet losses of the first service, the transmission delay of the data packet, etc. based on the second information.

[0024] In combination with the first aspect, in a possible implementation manner, the first information includes first quantity information of the data packet at the application layer, the second information includes second quantity information of the data packet received by the at least one interface, and the analyzing the network quality based on the first information and the second information includes:

[0025] The number of packet losses corresponding to the first service is determined based on the first number information and the second number information.

[0026] In an embodiment of the present application, the first quantity information may include the number of data packets of the first service received at the application layer, or in other words, the first quantity information includes the number of data packets of the first service marked at the application layer. The second quantity information includes the number of data packets of the first service received by each interface on the at least one interface. The cloud server can determine whether packet loss occurs in the first service based on the difference between the number of data packets received at the application layer and the number of data packets received by each interface, as well as the number of packet loss and the path of packet loss.

[0027] In combination with the first aspect, in a possible implementation manner, the at least one interface includes a first interface and a second interface, and the first interface and the second interface are respectively included in any two of a container, a virtual machine, and a network card.

[0028] In the embodiment of the present application, each interface of at least one interface may be included in a different network layer (or called system layer, virtual layer). For example, the cloud network system corresponding to the cloud server may include different network layers such as containers, virtual machines, and hosts. The first interface and the second interface are respectively included in different network layers. For example, the first interface may be included in the container, and the second interface may be included in the virtual machine or the host network card.

[0029] In combination with the first aspect, in a possible implementation, each of the at least one interface corresponds to an identification module, and the identification module is used to identify the data packet received by the corresponding interface and obtain information about the data packet received by the corresponding interface.

[0030] In an embodiment of the present application, the cloud server may include at least one identification module, each identification module corresponding to an interface, for identifying data packets received by the corresponding interface and counting data packets received on the interface to obtain information about data packets received on the interface. The identification module can be identified and count marked data packets (such as data packets of the first business mentioned above). The identification module can be embedded in the corresponding interface, for example, the identification module can be embedded in the network protocol stack of the interface. By embedding the corresponding identification module on each interface, it is possible to track the marked data packets on each interface, thereby determining the transmission path of the data packets and ensuring fine-grained observability in a cloud-native dynamic network environment.

[0031] In combination with the first aspect, in a possible implementation manner, the method further includes:

[0032] The first information and the second information are mapped to a digital twin network, where the digital twin network is used to express a network environment of the first service.

[0033] In an embodiment of the present application, the cloud server may also map the first information and the second information into a digital twin network so that the digital twin network can represent the network environment of the first business.

[0034] In a second aspect, an embodiment of the present application provides a network quality monitoring device, which includes a first acquisition module, a second acquisition module and a digital agent module; the first acquisition module is used to acquire first information, wherein the first information includes information about a data packet of a first service on the application layer; the second acquisition module is used to acquire second information, wherein the second information includes information about the data packet received by at least one interface; the digital agent module is used to analyze the network quality based on the first information and the second information.

[0035] In the embodiment of the present application, at least one interface can be understood as an interface on the network path corresponding to the first service, and the data packet of the first service can start from the application layer and pass through the at least one interface in sequence. The digital proxy module can determine whether the first service has packet loss by comparing the information of the data packet on the application layer and the data packet received on at least one interface, so that when the first service has packet loss, the interface and path where the packet loss occurs can be determined based on the number of data packets on each interface.

[0036] In combination with the second aspect, in a possible implementation, the second acquisition module includes at least one identification module, each of the at least one identification module corresponds to an interface, and the identification module is used to identify the data packet received by the corresponding interface and obtain information about the data packet received by the corresponding interface.

[0037] In an embodiment of the present application, each of the at least one identification module corresponds to an interface, and the identification module can be identified and count the data packets of the first service to obtain information about the data packets received on the interface, and transmit the obtained information to the digital proxy module. The identification module can be embedded in the corresponding interface, for example, the identification module can be embedded in the network protocol stack of the interface. The application layer can obtain information about the data packets of the first service received on the application layer, and the information is transmitted to the digital proxy module. By embedding the corresponding identification module on each interface, it is possible to track the data packets of the first service on each interface, thereby determining the transmission path of the data packet, and ensuring fine-grained observability in a cloud-native dynamic network environment.

[0038] In combination with the second aspect, in a possible implementation, the data packet includes marking information, and the second acquisition module is specifically used to identify and count the data packets on the at least one interface based on the marking information to obtain the second information.

[0039] In the embodiment of the present application, the application layer can use the marking information to mark the data packets of the first service, and each identification module of at least one identification module can identify and count the marked data packets on the corresponding interface to obtain the second information, that is, the second information may include information of the marked data packets received on at least one interface. In order to track the data packets of the first service on each interface through which the data packets pass, the data packets of the first service can be observed, that is, the cloud server can observe the network at the granularity of the service (or application, microservice), and realize fine-grained network observability.

[0040] In combination with the second aspect, in a possible implementation, the device also includes a marking module, which is used to mark the Differentiated Services Code Point (DSCP) field of the Internet Protocol (IP) message header of the data packet of the first service at the application layer based on the marking information and a software development kit (SDK) of the application layer.

[0041] In an embodiment of the present application, the application layer may integrate an SDK, which may also be referred to as a probe SDK (Probe-SDK), which is used to mark the data packets of the first service. Exemplarily, the marking information may include a first numerical value, and the SDK may write the first numerical value into the DSCP field of the IP header of the data packet. For example, the first numerical value may be a non-zero number, and before the data packet of the first service departs from the application layer, when the network protocol stack processes the data packet, the application layer writes a non-zero mark into the DSCP field of the IP header of the data packet of the first service through the SDK. The application layer marks the data packet of the first service at the application layer through the SDK, so that the data packet of the first service is marked from the beginning of the communication, so that the data packet of the first service can be tracked from the beginning.

[0042] In conjunction with the second aspect, in a possible implementation manner, the digital agent module is further configured to allocate a first identifier to the first service, and the data packet includes the first identifier;

[0043] The second acquisition module is specifically configured to identify and count the data packets on the at least one interface based on the marking information and the first identifier to obtain the second information.

[0044] In the embodiment of the present application, the digital proxy module may further assign a first identifier to the first service so that the data packet of the first service carries the first identifier, so that each identification module can identify the identifier of the first service.

[0045] In combination with the second aspect, in a possible implementation manner, the digital agent module is further configured to release the first identifier when an allocated duration of the first identifier exceeds a first duration.

[0046] In the embodiment of the present application, the digital identification module can set a timeout period (such as a first duration) for the first identifier. When the allocation time of the first identifier exceeds the first duration, the first identifier is released to avoid the first identifier being occupied for a long time and save resources.

[0047] In combination with the second aspect, in a possible implementation, the second information includes at least one of the following items: information about the number of data packets received by the at least one interface, information about erroneous data packets among the data packets received by the at least one interface, information about retransmitted data packets among the data packets received by the at least one interface, the size of the data packets received by the at least one interface, and the transmission time interval of the data packets received by the at least one interface.

[0048] In an embodiment of the present application, at least one identification module can count the data packets of the marked first service received by at least one interface. For example, each identification module can count at least one of the following items to obtain the second information: the number of data packets received by the corresponding interface, the number of erroneous data packets among the data packets received by the interface, the number of retransmitted data packets among the data packets received by the interface, the size of the data packets received by the interface, the transmission time interval of the data packets received by the interface, etc. This allows the digital proxy module to analyze the network quality based on the second information, for example, determine the number of packet losses of the first service, the transmission delay of the data packet, etc. based on the second information.

[0049] In combination with the second aspect, in a possible implementation, the first information includes first quantity information of the data packets at the application layer, the second information includes second quantity information of the data packets received by the at least one interface, and the digital proxy module is specifically used to determine the number of packet losses corresponding to the first service based on the first quantity information and the second quantity information.

[0050] In an embodiment of the present application, the first quantity information may include the number of data packets of the first service received at the application layer, or in other words, the first quantity information includes the number of data packets of the first service marked at the application layer. The second quantity information includes the number of data packets of the first service received by each interface on the at least one interface. The digital proxy module can determine whether packet loss occurs in the first service based on the difference between the number of data packets received at the application layer and the number of data packets received by each interface, and determine the number of packet loss and the path of packet loss.

[0051] In combination with the second aspect, in a possible implementation manner, the at least one interface includes a first interface and a second interface, and the first interface and the second interface are respectively included in any two of a container, a virtual machine, and a network card.

[0052] In the embodiment of the present application, each interface of at least one interface may be included in a different network layer (or called system layer, virtual layer). For example, the cloud network system corresponding to the cloud server may include different network layers such as containers, virtual machines, and hosts. The first interface and the second interface are respectively included in different network layers. For example, the first interface may be included in the container, and the second interface may be included in the virtual machine or the host network card.

[0053] In combination with the second aspect, in a possible implementation manner, the digital agent module is also used to map the first information and the second information to a digital twin network, and the digital twin network is used to express the network environment of the first business.

[0054] In an embodiment of the present application, the digital agent module may also map the first information and the second information into the digital twin network so that the digital twin network can represent the network environment of the first business.

[0055] In a third aspect, an embodiment of the present application provides a computer device, the computer device including a processor for executing the method shown in the first aspect or any possible implementation. Alternatively, the processor is used to execute a program stored in a memory, and when the program is executed, the method shown in the first aspect or any possible implementation is executed. Exemplarily, the computer device may be a cloud server or a component of a cloud server (such as a chip or circuit) for executing the method in the first aspect or any possible implementation, or a logical node, logic module or software that can implement all or part of the cloud server functions.

[0056] In a possible implementation, the memory is located outside the above-mentioned computer device.

[0057] In a possible implementation, the memory is located in the above-mentioned computer device.

[0058] In the embodiment of the present application, the processor and the memory may also be integrated into one device, that is, the processor and the memory may also be integrated together.

[0059] In a possible implementation, the computer device further includes a transceiver, where the transceiver is used to receive a signal or send a signal.

[0060] In a fourth aspect, an embodiment of the present application provides a chip, comprising a logic circuit and an interface, wherein the logic circuit and the interface are coupled; the logic circuit is used to obtain first information and second information, and analyze network quality based on the first information and the second information.

[0061] It can be understood that the description of the first information and the second information can refer to the method shown in the first aspect or any possible implementation method, and will not be described in detail here.

[0062] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program. When the computer-readable storage medium is run on a computer, the method shown in the above-mentioned first aspect or any possible implementation of the first aspect is executed.

[0063] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer program or a computer code. When the computer program product is run on a computer, the method shown in the above-mentioned first aspect or any possible implementation of the first aspect is executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The following is an introduction to the drawings related to the embodiments of the present application.

[0065] Figure 1 It is a structural diagram of a cloud network system provided in an embodiment of the present application;

[0066] Figure 2 It is a structural diagram of another cloud network system provided in an embodiment of the present application;

[0067] Figure 3 It is a flowchart of a network quality monitoring method provided by an embodiment of the present application;

[0068] Figure 4 It is a flowchart of another network quality monitoring method provided by an embodiment of the present application;

[0069] Figure 5 It is a structural diagram of a network quality monitoring device provided in an embodiment of the present application;

[0070] Figure 6 It is a structural diagram of a network system provided by an embodiment of the present application;

[0071] Figure 7 It is a flowchart of another network quality monitoring method provided in an embodiment of the present application;

[0072] Figure 8 is a structural diagram of another network system provided in an embodiment of the present application;

[0073] Fig. 9 It is a structural diagram of another network system provided in an embodiment of the present application;

[0074] Fig.10 It is a schematic diagram of the interaction of various modules of a network system provided in an embodiment of the present application;

[0075] Fig.11 is a schematic diagram of the interaction of various modules of another network system provided in an embodiment of the present application;

[0076] Fig.12 is a structural schematic diagram of a computer device provided in an embodiment of the present application;

[0077] Fig.13 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;

[0078] Fig.14 It is a structural diagram of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0079] The terms "first" and "second" in the specification, claims and drawings of the present application are only used to distinguish different objects, rather than to limit the order, timing, priority or importance of multiple objects. In the embodiment of the present application, "multiple" refers to two or more. In addition, the terms "including" and "having" and any variation thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. In addition, the character " / ", unless otherwise specified, generally indicates that the objects associated before and after are in an "or" relationship.

[0080] The "embodiment" mentioned in this article means that the specific features, structures or characteristics described in conjunction with the embodiment can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0081] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application.

[0082] See also Figure 1 , Figure 1 Schematic diagram of a cloud network system provided by an embodiment of the present application. Figure 1 As shown, the cloud network system may include container 1, container 2, container 1 virtual interface, container 2 virtual interface, docker bridge virtual interface (such as docker0), logical host interface and physical network interface. The container 1 may include a private interface and a loopback interface. Exemplarily, container 1 may transmit a data packet to container 1 virtual interface through its private interface, container 1 virtual interface then transmits the data packet to docker bridge virtual interface, the docker bridge virtual interface transmits the data packet to container 2 virtual interface, and the container 2 virtual interface then transmits the data packet to container 2. That is, the service path from container 1 to container 2 is: container 1→container 1 virtual interface→docker bridge virtual interface→container 2 virtual interface→container 2.

[0083] Exemplarily, when container 1 and container 2 are not on the same host, the service path from container 1 to container 2 is: container 1 → container 1 virtual interface → docker bridge virtual interface → logical host interface → physical network interface → switch → physical network interface → logical host interface → docker bridge virtual interface → container 2 virtual interface → container 2.

[0084] In some possible implementations, the service flow from container 1 to container 2 needs to pass through other containers. For example, the service path from container 1 to container 2 is: container 1→container 3 or container 4 or container 5→container 2.

[0085] It is understandable that the several service paths from container 1 to container 2 shown above are only examples, and the service paths from container 1 to container 2 shown above should not be understood as limitations on the present application.

[0086] In some possible implementations, the container can be directly connected to the host network card, that is, container 1 is connected to the host interface. Figure 1 The cloud network system shown may not include a container 1 virtual interface, a container 2 virtual interface, a docker bridge virtual interface, or a logical host interface.

[0087] Exemplarily, in an embodiment of the present application, an interface may correspond to a network layer (or referred to as a system layer, virtual layer, etc.), and the interface may be a virtual network interface (VIF) or a physical network interface (physicalnetworkinterface). A service data packet may pass through multiple network interfaces, which may be understood as a data packet passing through multiple network layers. When a service data packet passes through each interface, each interface may modify or forward the data packet. Therefore, in the present application, an interface that modifies a data packet or an interface that forwards a data packet to the next hop may be understood as a network layer. Exemplarily, Figure 1 Each interface shown (such as container 1 virtual interface, container 2 virtual interface, docker bridge virtual interface, logical host interface, physical network interface) can modify the data packet of the service or forward the data packet to the next hop, so Figure 1 Each interface shown can be understood as a network layer. For example, Figure 1 After receiving the data packet of the service, the container 1 virtual interface can modify the data packet or forward the data packet to its next hop (ie, the dockerbridge virtual interface). Therefore, the container 1 virtual interface can be understood as a network layer.

[0088] Understandable, Figure 1The various network layers of the cloud network system and the connection relationships between the network layers are shown for example only. The cloud network system can combine the various network layers and the connections between the network layers based on actual business, and this application does not impose any restrictions.

[0089] See also Figure 2 , Figure 2 It is a structural diagram of another cloud network system provided in an embodiment of the present application. The cloud network system includes a virtual machine (VM), a virtual switch (vSwitch), a host, and a switch. Exemplarily, the network path between two virtual machines (such as VM_A and VM_B) can be: VM_A→virtual switch→host network card→switch→host network card→virtual switch→VM_B. In some possible implementations, the network path from VM_A to VM_B can be variable, for example, the service flow from VM_A to VM_B needs to pass through one or more VMs in VM_1~VM_n.

[0090] Understandable, Figure 2 The devices included in the cloud network system shown are only examples. Figure 2 The cloud network system shown may also include other devices such as containers, which should not be Figure 2 The individual devices shown are to be understood as limitations of the present application.

[0091] In a cloud-native cloud network system, containers can be migrated, and the network environment is dynamically changing. Therefore, the transmission path of business data from container 1 to container 2 on the cloud network system is not fixed. For example, the business data of container 1 needs to pass through one or more containers to be transmitted to container 2. When container 1 or container 2 or other containers are migrated, the transmission path of business data from container 1 to container 2 will change. Therefore, when packet loss occurs in the business, it is difficult to lock the path where the packet loss occurs.

[0092] In view of this, an embodiment of the present application provides a network quality monitoring method, which can track and monitor data packets of a service, and when packet loss occurs in the service, can determine the path where the packet loss occurs.

[0093] See also Figure 3 , Figure 3 A flow chart of a network quality monitoring method provided in an embodiment of the present application. The method can be applied to a cloud server, such as Figure 3 As shown, the method includes but is not limited to the following steps.

[0094] 301. Obtain first information, where the first information includes information about a data packet of a first service at an application layer.

[0095] Exemplarily, the first information may include one or more of the number of data packets of the first service received by the application layer, the size of the data packets, the transmission time interval of the data packets, and the like.

[0096] In one possible implementation, the cloud server may obtain the first information upon receiving a trigger instruction for the first service. Exemplarily, the trigger instruction may be generated by an application corresponding to the first service. For example, when the application detects that the network quality has deteriorated (for example, the network delay does not meet the requirements, or the network packet loss rate does not meet the requirements, etc.), the trigger instruction is generated to monitor the network quality of the link where the first service is located. For another example, the application may generate the trigger instruction periodically based on service requirements.

[0097] 302. Obtain second information, where the second information includes information about a data packet received by at least one interface.

[0098] Exemplarily, the at least one interface may be an interface on the network path corresponding to the first service (i.e., the transmission path of the data packet of the first service), and the data packet of the first service may start from the application layer and pass through at least one interface in sequence. Exemplarily, each interface of the at least one interface may be included in different network layers (or called system layer, virtual layer). For example, the at least one interface includes a first interface and a second interface, and the first interface and the second interface are respectively included in any two of a container, a virtual machine, and a network card. For example, the cloud network system corresponding to the cloud server may include different network layers such as containers, virtual machines, virtual switches, and hosts. The first interface and the second interface are respectively included in different network layers. For example, the first interface may be included in a container, and the second interface may be included in a virtual machine or a host network card.

[0099] In a possible implementation manner, each of the at least one interface corresponds to an identification module, and the identification module is used to identify a data packet received by the corresponding interface and obtain information about the data packet received by the corresponding interface.

[0100] The cloud server may include at least one identification module, each identification module corresponding to an interface, for identifying data packets received by the corresponding interface and counting data packets received on the interface to obtain information about data packets received on the interface. The identification module can be identified and count data packets of the first service. The identification module can be embedded in the corresponding interface, for example, the identification module can be embedded in the network protocol stack of the interface. By embedding the corresponding identification module on each interface, it is possible to track the data packets of the first service on each interface, thereby determining the transmission path of the data packets and ensuring fine-grained observability in a cloud-native dynamic network environment.

[0101] 303: Analyze the network quality based on the first information and the second information.

[0102] Exemplarily, the first information includes information about data packets of a first service received at the application layer, and the second information includes information about data packets received by each interface in at least one interface. The cloud server can compare and analyze the information about data packets received at the application layer with the information about data packets received by each interface, or the information about data packets received by any two different interfaces in the at least one interface, so as to determine whether packet loss occurs in the first service, or determine the transmission rate, transmission delay, etc. of the data packet.

[0103] In one possible implementation, the second information includes at least one of the following: information about the number of data packets received by at least one interface, information about erroneous data packets among data packets received by at least one interface, information about retransmitted data packets among data packets received by at least one interface, the size of data packets received by at least one interface, and the transmission time interval of data packets received by at least one interface.

[0104] Exemplarily, the cloud server may count the data packets of the first service received by at least one interface. For example, the cloud server may count at least one of the following items to obtain the second information: the number of data packets received by each interface of the at least one interface, the number of erroneous data packets in the data packets received by each interface, the number of retransmitted data packets in the data packets received by each interface, the size of the data packets received by each interface, the transmission time interval of the data packets received by each interface, etc. So that the cloud server can analyze the network quality based on the second information, for example, determine the number of packet losses of the first service, the transmission delay of the data packet, the network transmission rate, etc. based on the second information.

[0105] For example, the cloud server may obtain the number of data packets received by each of the at least one interface, and determine whether the first service has packet loss and the interface and path where the packet loss occurs based on the number of data packets received by each interface. For another example, the cloud server may obtain the size of the data packet received by each of the at least one interface to determine the network transmission rate of the first service. For another example, the cloud server may obtain the time interval between two different data packets received by each interface to determine the transmission delay of the data packet, etc.

[0106] In one possible implementation, the first information includes first quantity information of data packets at the application layer, and the second information includes second quantity information of data packets received by at least one interface. The cloud server determines the number of packet losses corresponding to the first service based on the first quantity information and the second quantity information.

[0107] Exemplarily, the first quantity information includes the number of data packets of the first service received by the application layer. The second quantity information may include at least one quantity, and the at least one quantity is the number of data packets received by each interface in at least one interface. For example, the at least one interface includes N interfaces, and the second quantity information includes N quantities, one of the N interfaces corresponds to one of the N quantities, and N is a positive integer. The cloud server can determine whether the first service has packet loss based on the difference between the number of data packets received by the application layer and the number of data packets received by each interface, and determine the number of packet loss and the path of packet loss.

[0108] For example, the at least one interface includes three interfaces, namely interface 1, interface 2 and interface 3. The number of data packets received on the application layer is 200, the number of data packets received on interface 1 is 200, the number of data packets received on interface 2 is 195, and the number of data packets received on interface 3 is 195. The difference between the number of data packets received on interface 1 and the application layer is 0, the difference between the number of data packets received on interface 1 and interface 2 is 5, and the difference between the number of data packets received on interface 2 and interface 3 is 0. Then, the cloud server can determine that packet loss occurs in the first service, the number of packet loss is 5, and the packet loss path is from interface 1 to interface 2.

[0109] In an embodiment of the present application, the cloud server can obtain information about data packets received by the application layer and information about data packets received by each interface of the transmission path. By comparing the information about data packets on the application layer and data packets received on at least one interface, it can determine whether the first service has packet loss, etc., so that when packet loss occurs in the first service, the path where the packet loss occurs can be determined based on the number of data packets on each interface.

[0110] See also Figure 4 , Figure 4 A flowchart of another network monitoring method provided in an embodiment of the present application is shown below. The method can be applied to a cloud server, such as Figure 4 As shown, the method includes but is not limited to the following steps.

[0111] In one possible implementation, Figure 4 The method shown includes step 401 and step 402 .

[0112] 401. Allocate a first identifier for a first service.

[0113] Exemplarily, when the application determines that the network quality corresponding to the first service needs to be monitored, the application can request the first identifier from the cloud server. The first identifier can also be called an application identifier (or service identifier), which is used to identify the data packet of the first service so that at least one interface (or network layer) can identify the data packet of the first service and count the information of the data packet.

[0114] 402: When the allocation duration of the first identifier exceeds the first duration, release the first identifier.

[0115] Exemplarily, the cloud server can set a timeout period (such as a first duration) for the first identifier. When the allocation time of the first identifier exceeds the first duration, the first identifier is released to avoid the first identifier being occupied for a long time, so that the first identifier can be used by other services, thereby saving resources.

[0116] 403 : Based on the marking information and the software development kit SDK of the application layer, mark the DSCP field of the IP header of the data packet of the first service at the application layer.

[0117] For example, the cloud server may integrate an SDK (also called a detection SDK) at the application layer (or embedded in user code), and the SDK is used to mark the data packets of the first service at the application layer. The SDK may interact with the network protocol library, and mark (or dye, colorize) the data packets of the first service through the SDK before the data packets of the first service depart from the application layer and when the network protocol stack processes the data packets.

[0118] Exemplarily, the data packet of the first service includes identification information, and the identification information may be included in the DSCP field of the IP header of the data packet. For example, the marking information may include a first value, and the SDK may write the first value into the DSCP field of the IP header of the data packet, thereby completing the marking of the data packet. For example, the first value may be non-zero data (such as 1), and before the data packet of the first service is sent from the application layer, the SDK writes a non-zero mark into the DSCP field of the IP header of the data packet.

[0119] It can be understood that the value of the first numerical value is only an example, and the embodiment of the present application does not limit the value of the first numerical value.

[0120] 404. Obtain first information, where the first information includes information about a data packet of the first service at the application layer.

[0121] 405 , identifying and counting data packets on at least one interface based on the tag information to obtain second information.

[0122] Exemplarily, the cloud server can identify the marked data packets (i.e., the data packets carrying the marking information) on at least one interface, and count the marked data packets to obtain the second information. For example, when each interface on the at least one interface receives a data packet with a non-zero field written in the DSCP field of the IP packet header, the data packet can be counted.

[0123] In one possible implementation, the cloud server may include at least one identification module, each identification module corresponds to an interface, and is used to identify and count the data packets marked on the corresponding interface to obtain information about the marked data packets received on the interface. In other words, on the cloud network system or network protocol stack corresponding to the cloud server, each network layer or each network protocol stack corresponds to an identification module for identifying and processing marked data packets. The identification module can be awakened by a marked data packet. For example, when the corresponding interface or network layer or network protocol stack receives a marked data packet, the identification module is awakened and the marked data packet is counted, thereby obtaining information that the corresponding interface or network layer or network protocol stack receives a marked data packet.

[0124] It is understandable that the "identification module" in the embodiment of the present application can also replace the "proxy module", "layer-proxy", "filter", etc. It is understandable that the identification module is only a name for a module that can identify and count marked data packets, and the present application does not limit the name of the module for identifying and counting marked data packets.

[0125] It is understandable that the specific description of the second information can be referred to the relevant description above, and will not be described in detail here.

[0126] In a possible implementation manner, the cloud server identifies and counts data packets of the first service on at least one interface based on the marking information and the first identifier to obtain the second information.

[0127] Exemplarily, each interface of the at least one interface may receive data packets of different services. The cloud server may assign an identifier to each service so that each interface can identify data packets of different services based on the corresponding identifier. The data packet of the first service carries a first identifier, and the cloud server may identify the data packets of the first service received on each interface based on the first identifier.

[0128] Exemplarily, the cloud server may also assign a second identifier (or layer identifier) ​​to each interface or each network layer or each identification module. When each interface receives a marked data packet (such as a data packet of the first service), the cloud server may record information such as the first identifier carried by the data packet, the second identifier corresponding to the interface, the number of data packets received, and the time when the data packet was received.

[0129] 406. Analyze the network quality based on the first information and the second information.

[0130] It is understood that the specific implementation of step 406 can be found in Figure 3 The specific implementation of step 303 is not repeated here.

[0131] In one possible implementation, the cloud server can also map the first information and the second information to a digital twin network so that the digital twin network can represent the network environment of the first business, so as to facilitate digital mapping and statistical prediction based on the digital twin network to obtain prediction and proactive planning of a highly stable network.

[0132] In the embodiment of the present application, the cloud server marks the data packets of the first service at the application layer through the SDK of the application layer, so as to mark the data packets of the first service from the beginning of the communication, so that the cloud server can track the data packets of the first service from the beginning. In addition, the cloud server can identify and track the data packets of the first service received on each interface based on the first identification and marking information, thereby realizing the detection, management, delimitation and prediction of network quality in the cloud native environment, and ensuring fine-grained observability in the cloud native dynamic network environment.

[0133] See also Figure 5 , Figure 5 A schematic diagram of the structure of a network quality monitoring device provided in an embodiment of the present application. Figure 5 As shown, the network quality monitoring device includes a first acquisition module 501 , a second acquisition module 502 and a digital agent module 503 .

[0134] The first acquisition module 501 is used to acquire first information, where the first information includes information about a data packet of a first service at the application layer.

[0135] The second acquisition module 502 is used to acquire second information, where the second information includes information about a data packet of a first service received by at least one interface.

[0136] The digital agent module 503 is used to analyze the network quality based on the first information and the second information.

[0137] In a possible implementation, the second acquisition module 502 includes at least one identification module, each of which corresponds to an interface, and the identification module is used to identify a data packet received by the corresponding interface and obtain information about the data packet received by the corresponding interface.

[0138] Exemplarily, the at least one identification module may perform network communication with the digital agent module, for example, the identification module negotiates registration with the digital agent module, or the identification module transmits acquired information to the digital agent module.

[0139] In a possible implementation, the data packet includes marking information, and the second acquisition module 502 is specifically configured to identify and count the data packet on at least one interface based on the marking information to obtain second information.

[0140] In a possible implementation, the network quality monitoring device further includes a marking module 504, which is used to mark the DSCP field of the IP header of the data packet of the first service at the application layer based on the marking information and a software development kit SDK of the application layer.

[0141] In a possible implementation, the digital proxy module 503 is further configured to allocate a first identifier to the first service, and the data packet includes the first identifier;

[0142] The second acquisition module 502 is specifically configured to identify and count data packets of the first service on at least one interface based on the marking information and the first identifier to obtain second information.

[0143] In a possible implementation, the digital agent module 503 is further configured to release the first identifier when the allocated duration of the first identifier exceeds a first duration.

[0144] In one possible implementation, the second information includes at least one of the following: information about the number of data packets received by at least one interface, information about erroneous data packets among data packets received by at least one interface, information about retransmitted data packets among data packets received by at least one interface, the size of data packets received by at least one interface, and the transmission time interval of data packets received by at least one interface.

[0145] In one possible implementation, the first information includes first quantity information of data packets at the application layer, and the second information includes second quantity information of data packets received by at least one interface. The digital proxy module 503 is specifically used to determine the number of packet losses corresponding to the first service based on the first quantity information and the second quantity information.

[0146] In a possible implementation, the at least one interface includes a first interface and a second interface, and the first interface and the second interface are respectively included in any two of a container, a virtual machine, and a network card.

[0147] In a possible implementation, the digital agent module 503 is also used to map the first information and the second information to a digital twin network, and the digital twin network is used to express the network environment of the first business.

[0148] Optionally, the digital proxy module 503 may perform local statistical calculations based on the first information and the second information to analyze the network quality, or the digital proxy module 503 may transmit the first information and the second information to other devices (or modules), and the other devices (or modules) may perform network quality analysis based on the first information and the second information, so as to support the analysis and processing of massive data packets.

[0149] In an optional implementation, the network quality monitoring device further includes a microservice module, which provides a network observed service. The digital agent module can transmit the first information and the second information to the microservice module in a synchronous manner, and the microservice module stores the first information and the second information, and analyzes the network quality based on the first information and the second information.

[0150] It can be understood that, regarding the network quality monitoring device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0151] Exemplarily, the above-mentioned digital proxy module can be included in the network card device of the cloud server. For example, the digital proxy module can be included in the network card device firmware driver, so that the network card device can identify marked data packets during data packet exchange, and then the network card device can perform statistics and forwarding processing on the marked data packets.

[0152] It is understandable that the "digital proxy module" in the embodiment of the present application can also be replaced by "network interface card (NIC) proxy (NIC-proxy)" etc. It is understandable that the digital proxy module is only the name of the module that can process the information of the data packet on the application layer and the information of the data packet on each interface, and the present application does not limit the name of the module used to process the information of the data packet on the application layer and the information of the data packet on each interface.

[0153] It is understandable that the above-mentioned first acquisition module, second acquisition module, at least one identification module, digital proxy module and marking module can be implemented by software or by hardware. Exemplarily, the implementation of the digital proxy module is introduced below by taking the digital proxy module as an example. Similarly, the implementation of the first acquisition module, the second acquisition module, at least one identification module and marking module can refer to the implementation of the digital proxy module.

[0154] As an example of a software functional unit, a digital proxy module may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, a digital proxy module may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple data centers with close geographical locations. Typically, a region may include multiple AZs.

[0155] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

[0156] As an example of a hardware functional unit, the digital proxy module may include at least one computing device, such as a server, etc. Alternatively, the digital proxy module may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0157] The multiple computing devices included in the digital proxy module can be distributed in the same region or in different regions. The multiple computing devices included in the digital proxy module can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the digital proxy module can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0158] It should be noted that, in other embodiments, the digital agent module can be used to perform the following Figure 3 or Figure 4 In any step of the method shown in FIG. 1 , the first acquisition module can be used to perform the following steps: Figure 3 or Figure 4 In any step of the method shown in FIG. 1 , the second acquisition module can be used to perform the following steps: Figure 3 or Figure 4 In any step of the method shown in the figure, the first acquisition module, the second acquisition module, at least one identification module, the digital proxy module and the marking module are responsible for implementing the steps that can be specified as needed, and the first acquisition module, the second acquisition module, the digital proxy module and the marking module are respectively implemented as follows Figure 3 or Figure 4 The different steps in the method shown implement all functions of the network quality monitoring device.

[0159] In some scenarios, the network system corresponding to the first service may include containers, virtual machines, hosts, etc. Among them, the identification module corresponding to the network interface of the container can be called a network digital agent (NDA), the identification module corresponding to the network interface of the virtual machine can be called a network digital filter (NDF), and the identification module corresponding to the network interface of the host can be included in the host network card. Figure 6 , Figure 6 This is an example of a network system provided in an embodiment of the present application. Figure 6 As shown, the network system includes a container, a virtual machine and a host. The container is contained in the virtual machine, and the virtual machine is contained in the host. Exemplarily, the container may include an application and a network digital agent, the virtual machine may include a network digital filter, and the host may include a NIC. The application may mark data packets of a specific service (such as the first service), and the NDA, NDF, and NIC may identify the marked data packets received on the corresponding network layer (or interface) and count the marked data packets.

[0160] Exemplarily, the network system may include multiple NDFs, and one NDF corresponds to one network layer.

[0161] For example, the network system can extract statistical data of data packets at the application layer and on different interfaces, and compare the statistical data of data packets at the application layer or on each interface to analyze the network quality. The specific process can be as follows: Figure 7 As shown:

[0162] 701. The application marks the data packet of the first service.

[0163] Exemplarily, the application may include an SDK network enhancer, which may be used to monitor data packets at the application layer (such as data packets of the first service). The application may generate a trigger instruction for the first service and mark the data packets of the first service. Exemplarily, the SDK network enhancer may add a bit to the DSCP field of the data packet of the first service and write a non-zero mark in the bit.

[0164] 702, NDA, NDF, and NIC receive data packets of the first service, and perform statistics on the data packets of the first service.

[0165] Exemplarily, after receiving the data packets of the first service, the NDA, NDF and the network card may start a data packet counter to count the number of data packets of the first service.

[0166] It is understandable that the node (such as a container) corresponding to the above NDA may include multiple business applications, and the multiple business applications mark their data packets respectively. NDA can identify the data packets of the multiple business applications and count the data packets of each of the multiple business applications respectively to obtain information about the data packets of the multiple business applications.

[0167] 703, after NDA, NDF and NIC have collected statistics about the control node, they stop collecting statistics.

[0168] Exemplarily, the control node may be a time node or a quantity node. For example, after receiving a command from the application, the NDA, NDF, and the network card start counting the data of the first service, and stop counting after the statistical time reaches a second duration (such as 10 seconds). For another example, after receiving a command from the application, the NDA, NDF, and the network card start counting the data of the first service, and stop counting after the number of data packets received by the corresponding interface reaches a preset number.

[0169] 704, the digital agent module in the NIC records the lost data packets and the timestamps of different layers when the statistical results of each network layer are different.

[0170] Exemplarily, NDA, NDF and the network card can synchronize the statistical results to the digital proxy module in real time, so that the digital proxy module can monitor the network quality of the first service in real time. The digital proxy module can compare the statistical results of NDA, NDF and the network card respectively to determine whether packet loss occurs. When the statistical results of NDA, NDF and the network card are different, the digital proxy module determines that the first service has lost packets, and starts counting the lost data packets and recording the network layer and time where the packet loss occurs.

[0171] In some possible implementations, the NDA, NDF and network card may also send the statistical results to the digital agent module after stopping the statistics, so that the digital agent module can analyze and monitor the network quality based on the statistical results of different network layers.

[0172] Optional, Figure 7 The process shown may also include step 705 .

[0173] At 705 , the digital agent module generates alarm information on the network card and maps the statistical results onto the digital twin network.

[0174] Exemplarily, when the digital agent module finds that packet loss occurs in the first service, it can generate alarm information on the network card and map the statistical results to the digital twin network so that the administrator can send the network problem of the first service.

[0175] In the embodiment of the present application, the network system can extract the statistical data of the data packets of a specific service (such as the first service) at the application layer and on different interfaces through NDA, NDF and the network card, and compare the statistical data of the data packets at the application layer or on each interface to analyze the network quality, so as to realize the tracking and monitoring of the data packets of the specific service, so that the network system can realize the network observation with the service (or application, microservice) as the granularity, and realize the fine-grained network observability. In addition, by mapping the statistical results of each network layer to the digital twin network, the detection, management, demarcation and prediction of network quality and the quantification of network quality in the cloud native environment can be realized by a real-time, low-resource digital mapping method.

[0176] In other scenarios, the network system corresponding to the first service may include containers, virtual machines, hosts, etc. The container interface may include an SDK, which is used to monitor data packets from applications, mark and count data packets. The identification module corresponding to the virtual machine interface may be called NDF, and the identification module corresponding to the host interface may be included in the host network card. Alternatively, the virtual machine interface and the host network card may also include an SDK, and the virtual machine interface or the host network card may identify, mark and count data packets of a specific service (such as the first service). See Figure 8 , Figure 8 This is another example of a network system provided in the embodiment of the present application. Figure 8 As shown, the network system includes a container, a virtual machine and a host, wherein the container is contained in the virtual machine, and the virtual machine is contained in the host.

[0177] Exemplarily, the container may include an application and an interface, the interface includes an SDK, the virtual machine may include an NDF, and the host may include a NIC. Among them, the application can be used to generate data packets of the first business, and the interface of the container can monitor the data packets of the first business from the application through the SDK, and mark and count the data packets. NDF and NIC can identify the marked data packets received on the corresponding network layer (or interface) and count the marked data packets. After the interface counts the data packets of the first business through the SDK, the statistical data can be transmitted to the digital agent module in the NIC, so that the digital agent module can perform network quality analysis based on the data packets on each interface.

[0178] In an embodiment of the present application, the SDK can be integrated on the interface of the container, that is, the SDK can be embedded in the container, so that the container can mark and count the application data packets through the interface, so that the network system can obtain statistical data of the data packets on each interface, and can track and monitor the data packets of specific services, so that the network system can observe the network at the service granularity and realize fine-grained network observability.

[0179] In some other scenarios, the network system corresponding to the above-mentioned first service may include a container or a virtual machine and a host, etc. Among them, the identification module corresponding to the network interface of the container or virtual machine can be called a packet check filter (packet check filter), and the identification module corresponding to the network interface of the host can be included in the host network card, which can be called a firmware filter (firmware filter). Exemplarily, there can be other network layers (such as a virtual switch, etc.) between the container or virtual machine and the host network card. This network layer can be called an outer network layer (outer network layer), and the identification module corresponding to the network interface of the outer network layer can be called a filter on the outer network layer (filter on outer network layer). Please refer to Fig. 9 , Fig. 9 This is another example of a network system provided in the embodiment of the present application. Fig. 9 As shown, the network system includes a container or a virtual machine and a network card. Among them, the container or virtual machine may include an application (or called an application process) and a data packet inspection filter, and the network card may include a firmware filter. The application may include an SDK network enhancer for monitoring data packets at the application layer and marking data packets for specific services (such as the first service). The data packet inspection filter can identify and count the marked data packets received on the network interface of the container or virtual machine. The firmware filter can identify and count the marked data packets received on the network card.

[0180] Exemplarily, in a containerized environment, the packet inspection filter can exist separately or be embedded in a container network interface (CNI) component. Exemplarily, the packet inspection filter can be separated or embedded in a component for a virtual network interface (using network address translation (NAT), bridge mode) in a virtualized environment.

[0181] Exemplarily, in the network system, another network layer may be included between the container or virtual machine and the network card, which may be called an outer network layer. The outer network layer may include a filter on the outer network layer, and the filter on the outer network layer may identify and count the marked data packets received on the outer network layer.

[0182] Exemplarily, the transmission path of the data packet of the first service on the network system may be as follows: Fig. 9 As shown by the thick dotted line, the transmission path of the data packet of the first service on the network system can be: SDK network enhancer → data packet inspection filter → filter of the external network layer → firmware filter. Or the transmission path of the data packet of the first service on the network system is: firmware filter → filter of the external network layer → data packet inspection filter → SDK network enhancer.

[0183] Exemplarily, the network card also includes a digital proxy module, which is used to monitor the number of data packets received by each network layer (or interface), that is, the digital proxy module is used to monitor the inlet or outlet traffic of each network layer (or interface). The digital proxy module is respectively connected to the SDK network enhancer, the data packet inspection filter, the filter of the external network layer, and the firmware filter to receive the statistical results of the SDK network enhancer, the data packet inspection filter, the filter of the external network layer, and the firmware filter on the data packets of the first service.

[0184] As an example, the digital agent module can analyze the network quality based on the statistical results of the SDK network enhancer, the packet inspection filter, the filter of the external network layer, and the firmware filter.

[0185] As another example, the digital agent module can send the statistical results of the SDK network enhancer, packet inspection filter, external network layer filter, and firmware filter in a synchronous manner to an out-of-band metric processor (or microservice module), which can store the statistical results and perform network quality analysis based on the statistical results.

[0186] Exemplarily, the data interaction between the modules of the network system can be as follows: Fig.10 As shown. The application can mark the data packet of the first service through the SDK network enhancer. The SDK network enhancer can mark the DSCP field of the data packet. The SDK network enhancer transmits the marked data packet to the data packet inspection filter.

[0187] After receiving the data packet, the packet inspection filter determines whether the data packet is marked and transmits the data packet to the filter of the external network layer. If the data packet is marked, the packet inspection filter performs statistics and transmits the statistical results to the digital proxy module.

[0188] After receiving the data packet, the filter of the external network layer determines whether the data packet is marked and transmits the data packet to the firmware filter on the network card. If the data packet is marked, the filter of the external network layer performs statistics and transmits the statistical results to the digital proxy module.

[0189] After receiving the data packet, the firmware filter of the network card determines whether the data packet is marked and transmits the data packet to other devices. If the data packet is marked, the firmware filter performs statistics and transmits the statistical results to the digital proxy module.

[0190] Exemplarily, the data interaction process between the modules of the network system can also be as follows: Fig.11 As shown. When the SDK network enhancer determines that the network quality monitoring of the first service is required, the application can request an application identity (app_id) from the digital proxy module. The digital proxy module assigns an application identity to the application. Based on the application identity, the application can send a data packet of the first service to the data packet inspection filter, and the data packet carries the application identity.

[0191] The packet inspection filter sends the packet to the filter of the external network layer and records the information of the packet. Exemplarily, the packet inspection filter may request a layer identifier (layer_id) from the digital agent module, and the digital agent allocates a layer identifier to the packet inspection filter.

[0192] The filter of the external network layer sends the data packet to the firmware filter of the network card and records the information of the data packet. Exemplarily, the filter of the external network layer can request the layer identifier from the digital agent module, and the digital agent allocates the layer identifier.

[0193] In an embodiment of the present application, the digital proxy module can assign layer identifiers to the data packet inspection filter and the filter of the external network layer, so that the statistical results of the data packet inspection filter and the filter of the external network layer include corresponding layer identifiers, so that the transmission path of the data packet can be determined based on the layer identifier.

[0194] Exemplarily, the statistical results of the packet inspection filter and the external network layer may include application identification, layer identification, number of packets, time, etc. For example, the application identification assigned by the digital agent module to the application is 12, the layer identification of the packet inspection filter is 78, the layer identification of the filter of the external network layer is 89, and the layer identification of the firmware filter is 95. The statistical results of each filter received by the digital agent module may be shown in Table 1.

[0195] Table 1

[0196] Application Identification Layer ID Number of packets time 12 78 560 123456789013 12 89 560 123456789015 12 95 560 123456789017 12 78 600 123456789023 12 89 590 123456789025 12 95 590 123456789027

[0197] It is understandable that the statistical results shown in Table 1 are merely examples and should not be understood as limiting the embodiments of the present application.

[0198] In a possible implementation, the digital agent module sets a timeout period for the application identifier. When the allocation duration of the application identifier exceeds the timeout period, the digital agent module releases the application identifier, or the application removes the application identifier.

[0199] In an embodiment of the present application, the network system can mark the data packets of a specific service based on the SDK network enhancer in the application, and identify and obtain the information of the data packets of the service received on the corresponding network layer through the filters on each network layer, thereby enabling the network system to observe the network at the granularity of the service (or application, microservice), and achieve fine-grained network observability.

[0200] See also Fig.12 , the present application also provides a computing device 1200. Fig.12 As shown, the computing device 1200 includes: a bus 1202, a processor 1204, a memory 1206, and a communication interface 1208. The processor 1204, the memory 1206, and the communication interface 1208 communicate through the bus 1202. The computing device 1200 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 1200.

[0201] The bus 1202 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.12The bus 1202 may include a path for transmitting information between various components of the computing device 1200 (eg, the memory 1206, the processor 1204, and the communication interface 1208).

[0202] The processor 1204 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0203] The memory 1206 may include a volatile memory, such as a random access memory (RAM). The memory 1206 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0204] The memory 1206 stores executable program codes, and the processor 1204 executes the executable program codes to respectively implement the functions of the first acquisition module, the second acquisition module, the digital proxy module, and the marking module, thereby implementing the following: Figure 3 or Figure 4 That is, the memory 1206 stores the method for executing Figure 3 or Figure 4 Instructions for the method shown.

[0205] The communication interface 1208 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1200 and other devices or communication networks.

[0206] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.

[0207] like Fig.13As shown, the computing device cluster includes at least one computing device 1200. The memory 1206 in one or more computing devices 1200 in the computing device cluster may store the same Figure 3 or Figure 4 Instructions for the method shown.

[0208] In some possible implementations, the memory 1206 of one or more computing devices 1200 in the computing device cluster may also store respectively the memory 1206 for executing the following steps: Figure 3 or Figure 4 In other words, the combination of one or more computing devices 1200 can jointly execute instructions for performing the method shown in FIG. Figure 3 or Figure 4 Instructions for the method shown.

[0209] It should be noted that the memory 1206 in different computing devices 1200 in the computing device cluster may store different instructions, respectively used to execute Figure 5 Part of the functions of the network quality detection device shown. That is, the instructions stored in the memory 1206 in different computing devices 1200 can implement the functions of one or more modules of the first acquisition module, the second acquisition module, the digital agent module, and the marking module.

[0210] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.14 A possible implementation is shown. Fig.14 As shown, two computing devices 1200A and 1200B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 1206 in the computing device 1200A stores instructions for executing the functions of the digital agent module. At the same time, the memory 1206 in the computing device 1200B stores instructions for executing the functions of the first acquisition module and the second acquisition module.

[0211] Fig.14 The connection mode between the computing device clusters shown may be that considering that the network quality monitoring method provided in the present application requires a large amount of data storage, it is considered that the functions implemented by the first acquisition module and the second acquisition module are handed over to the computing device 1200B for execution.

[0212] It should be understood that Fig.14 The functions of the computing device 1200A shown in FIG. 1200A may also be completed by multiple computing devices 1200. Similarly, the functions of the computing device 1200B may also be completed by multiple computing devices 1200.

[0213] The present application embodiment also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similar to that of Fig.13 and Fig.14 The difference is that the memory 1206 in one or more computing devices 1200 in the computing device cluster may store the same memory for executing Figure 3 or Figure 4 Instructions for the method shown.

[0214] In some possible implementations, the memory 1206 of one or more computing devices 1200 in the computing device cluster may also store a program for executing Figure 3 or Figure 4 In other words, the combination of one or more computing devices 1200 can jointly execute instructions for executing Figure 3 or Figure 4 Instructions for the method shown.

[0215] It should be noted that the memory 1206 in different computing devices 1200 in the computing device cluster may store different instructions for executing Figure 6 or Figure 8 or Fig. 9 Part of the functions of the system shown. That is, the instructions stored in the memory 1206 in different computing devices 1200 can implement the functions of one or more devices in the container, the virtual machine, and the host.

[0216] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the following steps: Figure 3 or Figure 4 The method shown.

[0217] The present application also provides a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be stored by a computing device or a data storage device such as a data center that contains one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the following: Figure 3 or Figure 4 The method shown.

[0218] The embodiment of the present application further provides a chip system, the chip system comprising at least one processor, a memory and an interface circuit, the memory, the transceiver and the at least one processor are interconnected through a line, the at least one memory stores a computer program; when the computer program is executed by the processor, Figure 3 or Figure 4 The method flow shown is realized.

[0219] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.

Claims

1. A network quality monitoring method, characterized in that: include: Acquire first information, where the first information includes information of a data packet of a first service at an application layer; Acquire second information, where the second information includes information about the data packet received by at least one interface; The network quality is analyzed based on the first information and the second information.

2. The method according to claim 1, characterized in that The data packet includes tag information, and the acquiring the second information includes: The data packets are identified and counted on the at least one interface based on the tag information to obtain the second information.

3. The method according to claim 2, characterized in that The method further comprises: Based on the marking information and the software development kit SDK of the application layer, the Differentiated Services Code Point (DSCP) field of the Internet Protocol (IP) message header of the data packet of the first service is marked at the application layer.

4. The method according to claim 2 or 3, characterized in that: The method further comprises: Allocating a first identifier for the first service, wherein the data packet includes the first identifier; The step of identifying and counting the data packets on the at least one interface based on the tag information to obtain the second information includes: The second information is obtained by identifying and counting the data packets on the at least one interface based on the marking information and the first identifier.

5. The method according to claim 4, characterized in that The method further comprises: When the allocation duration of the first identifier exceeds a first duration, the first identifier is released.

6. The method according to any one of claims 1 to 5, characterized in that: The second information includes at least one of the following: information about the number of the data packets received by the at least one interface, information about erroneous data packets among the data packets received by the at least one interface, information about retransmitted data packets among the data packets received by the at least one interface, size of the data packets received by the at least one interface, and transmission time interval of the data packets received by the at least one interface.

7. The method according to claim 6, characterized in that The first information includes first quantity information of the data packet at the application layer, the second information includes second quantity information of the data packet received by the at least one interface, and the analyzing the network quality based on the first information and the second information includes: The number of packet losses corresponding to the first service is determined based on the first number information and the second number information.

8. The method according to any one of claims 1 to 7, characterized in that: The at least one interface includes a first interface and a second interface, and the first interface and the second interface are respectively included in any two of a container, a virtual machine, and a network card.

9. The method according to any one of claims 1 to 8, characterized in that: Each of the at least one interface corresponds to an identification module, and the identification module is used to identify the data packet received by the corresponding interface and obtain information about the data packet received by the corresponding interface.

10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: The first information and the second information are mapped to a digital twin network, where the digital twin network is used to express a network environment of the first service.

11. A network quality monitoring device, characterized in that: It includes a first acquisition module, a second acquisition module and a digital agent module; A first acquisition module, used to acquire first information, where the first information includes information of a data packet of a first service at the application layer; A second acquisition module, used to acquire second information, where the second information includes information of the data packet received by at least one interface; The digital agent module is used to analyze the network quality based on the first information and the second information.

12. The device according to claim 11, characterized in that The second acquisition module includes at least one identification module, each of the at least one identification module corresponds to an interface, and the identification module is used to identify the data packet received by the corresponding interface and acquire information of the data packet received by the corresponding interface.

13. The device according to claim 11 or 12, characterized in that The data packet includes marking information, and the second acquisition module is specifically configured to identify and count the data packet on the at least one interface based on the marking information to obtain the second information.

14. The device according to claim 13, characterized in that The device also includes a marking module, which is used to mark the Differentiated Services Code Point (DSCP) field of the Internet Protocol (IP) message header of the data packet of the first service at the application layer based on the marking information and a software development kit (SDK) of the application layer.

15. The device according to any one of claims 11 to 14, characterized in that: The digital proxy module is further used to allocate a first identifier to the first service, and the data packet includes the first identifier; The second acquisition module is specifically configured to identify and count the data packets on the at least one interface based on the marking information and the first identifier to obtain the second information.

16. The device according to claim 15, characterized in that The digital proxy module is further configured to release the first identifier when the allocated duration of the first identifier exceeds a first duration.

17. The device according to any one of claims 11 to 16, characterized in that: The second information includes at least one of the following: information about the number of the data packets received by the at least one interface, information about erroneous data packets among the data packets received by the at least one interface, information about retransmitted data packets among the data packets received by the at least one interface, size of the data packets received by the at least one interface, and transmission time interval of the data packets received by the at least one interface.

18. The device according to claim 17, characterized in that The first information includes first quantity information of the data packets at the application layer, and the second information includes second quantity information of the data packets received by the at least one interface. The digital proxy module is specifically used to determine the number of packet losses corresponding to the first service based on the first quantity information and the second quantity information.

19. The device according to any one of claims 11 to 18, characterized in that: The at least one interface includes a first interface and a second interface, and the first interface and the second interface are respectively included in any two of a container, a virtual machine, and a network card.

20. The device according to any one of claims 11 to 19, characterized in that The digital agent module is also used to map the first information and the second information to a digital twin network, and the digital twin network is used to express the network environment of the first business.

21. A computer device, characterized in that: including a processor and a memory; The memory is used to store instructions; The processor is configured to execute the instructions so that the method according to any one of claims 1 to 10 is performed.

22. A chip, characterized in that: comprising a logic circuit and an interface, wherein the logic circuit and the interface are coupled; The interface is used to input and / or output code instructions, and the logic circuit is used to execute the code instructions so that the method described in any one of claims 1 to 10 is executed.

23. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program. When the computer program is executed, the method according to any one of claims 1 to 10 is executed.

24. A computer program, characterized in that When the computer program is executed, the method according to any one of claims 1 to 10 is performed.

Citation Information

Cited By

  • Cloud network data packet tracking method and related equipment

    CN119052140A

  • Data packet tracking method of cloud network and related equipment

    CN119052142A