CN117997802A - Network jitter detection method, device, equipment and medium - Google Patents

Network jitter detection method, device, equipment and medium Download PDF

Info

Publication number
CN117997802A
CN117997802A CN202410405349.7A CN202410405349A CN117997802A CN 117997802 A CN117997802 A CN 117997802A CN 202410405349 A CN202410405349 A CN 202410405349A CN 117997802 A CN117997802 A CN 117997802A
Authority
CN
China
Prior art keywords
target message
client
function
timestamp
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410405349.7A
Other languages
Chinese (zh)
Other versions
CN117997802B (en
Inventor
韩春超
许鑫
戴纯兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202410405349.7A priority Critical patent/CN117997802B/en
Publication of CN117997802A publication Critical patent/CN117997802A/en
Application granted granted Critical
Publication of CN117997802B publication Critical patent/CN117997802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a network jitter detection method, device, equipment and medium, and relates to the technical field of electronic information. In the scheme, in the process of transmitting the target message between the client and the server, the time information of each key point of processing and transmitting the target message is recorded through the target message; the network delay information of each key point in the application layer and the kernel layer of the client and the server and the network delay information transmitted by the link layer can be calculated through different time information, so that the network delay problem can be more finely positioned, and the maintenance efficiency of network transmission is improved.

Description

Network jitter detection method, device, equipment and medium
Technical Field
The present invention relates to the field of electronic information technologies, and in particular, to a method, an apparatus, a device, and a medium for detecting network jitter.
Background
Network jitter refers to the change in delay time of information in a network from transmission to reception, and is typically composed of transmission delay and processing delay. With the development of internet technology, in a cloud computing scene, complicated network topology, diversified business applications, different infrastructures, operating systems and the like make the positioning of network jitter complicated and diversified.
Currently, in order to implement network jitter positioning under the condition of poor network connectivity or high system load, a Ping command carried by the system is generally used to send a request packet to an internet protocol (Internet Protocol, IP) address of a target system, so as to detect connectivity and response time of the network, thereby judging whether the network is abnormal or delayed. Although the method can judge whether the network delay occurs conveniently, the network delay caused by service reasons, system reasons or network reasons cannot be determined, and the time delay of data on each transmission node cannot be collected, so that the system problem is not favorable for further positioning.
In view of the above, how to solve the problem that the specific cause, location and corresponding specific delay of the network jitter cannot be determined currently is a urgent problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a network jitter detection method, device, equipment and medium, which are used for solving the problem that the specific reason and position of network jitter and the corresponding specific time delay cannot be determined currently.
In order to solve the technical problems, the invention provides a network jitter detection method which is applied to a client; the method comprises the following steps:
generating a target message based on an application layer of a client, and transmitting the target message to a kernel layer of the client;
Transmitting the target message to a kernel layer of a server based on the kernel layer of the client, and recording time information of processing and transmitting the target message by the client through the target message;
Receiving the target message transmitted by the kernel layer of the server through the kernel layer of the client; the target message records time information of the target message transmitted in a link layer and time information of the server side for processing and transmitting the target message;
Distributing the target message to an application layer of a client, and recording time information for processing and distributing the target message by the client through the target message;
And acquiring each piece of time information in the target message based on an application layer of the client so as to determine network jitter in the transmission process of the target message according to each piece of time information.
In one aspect, the generating, by the client-based application layer, a target packet includes:
Setting an internet control message protocol message header of the target message; the internet control message protocol message header comprises an internet control message protocol type, a code, a checksum, an internet control message protocol identifier and an internet control message protocol serial number;
setting a target message header of the target message; the target message header comprises an internet control message protocol version, the number, a flag bit, an internet control message protocol magic number, reserved bytes, a target message header identifier and a target message header serial number;
setting a plurality of table items; the table entry is used for recording node information, function information and a corresponding time stamp of function triggering involved in the transmission process of the target message.
On the other hand, the kernel layer based on the client transmits the target message to the kernel layer of the server, and records the time information of the client for processing and transmitting the target message through the target message, including:
based on the kernel layer of the client, monitoring an internet control message protocol receiving function by an extended data packet filtering technology, and recording a sending time stamp of the target message transmitted from the application layer of the client to the kernel layer of the client by the target message;
when triggering of an internet control message protocol receiving function is monitored, node information representing a client, the internet control message protocol receiving function information and a first timestamp corresponding to the triggering of the internet control message protocol receiving function are recorded based on a first table item of the target message;
Based on the kernel layer of the client, monitoring a network device sending data function through an extended data packet filtering technology;
And when the triggering of the network equipment sending data function is monitored, the node information of the characterization client, the network equipment sending data function information and the corresponding second timestamp of the network equipment sending data function trigger are recorded based on the second table entry of the target message.
On the other hand, the client-based application layer obtains each time information in the target message, so as to determine the network jitter in the transmission process of the target message according to each time information, including:
Acquiring a sending time stamp of the target message transmitted from an application layer of the client to a kernel layer of the client;
acquiring a first timestamp corresponding to triggering of an internet control message protocol receiving function in a first table item of the target message;
acquiring a second timestamp corresponding to triggering of a network equipment sending data function in a second table entry of the target message;
Determining a difference value between the sending timestamp and the first timestamp to determine delay information of the target message transmitted from an application layer of the client to a kernel layer of the client;
And determining the difference value between the second timestamp and the first timestamp to determine the delay information of the processing of the target message at the kernel layer of the client.
On the other hand, the kernel layer based on the client transmits the target message to the kernel layer of the server, and records the time information of the client for processing and transmitting the target message through the target message, including:
Based on the kernel layer of the client, monitoring a data packet sending function through an extended data packet filtering technology;
When the triggering of the data packet sending function is monitored, node information representing the client, the data packet sending function information and a corresponding third timestamp of the triggering of the data packet sending function are recorded based on a third table entry of the target message.
On the other hand, the client-based application layer obtains each time information in the target message, so as to determine the network jitter in the transmission process of the target message according to each time information, including:
acquiring a second timestamp corresponding to triggering of a network equipment sending data function in a second table entry of the target message;
acquiring a third timestamp corresponding to triggering of a data packet sending function in a third table entry of the target message;
and determining the difference value between the third timestamp and the second timestamp to determine the time delay information sent by the network equipment of the core layer of the client side by the target message.
On the other hand, the target message records the time information of the target message transmitted in the link layer, and the time information of the server side for processing and transmitting the target message, including:
Based on a kernel layer of the server, monitoring a data packet processing function by an extended data packet filtering technology;
When the triggering of the data packet processing function is monitored, recording node information representing a server, the data packet processing function information and a fourth timestamp corresponding to the triggering of the data packet processing function based on a fourth table entry of the target message;
Based on the kernel layer of the server, monitoring an Internet control message protocol receiving function by an extended data packet filtering technology;
When triggering of the internet control message protocol receiving function is monitored, recording node information representing a service end, the internet control message protocol receiving function information and a fifth timestamp corresponding to triggering of the internet control message protocol receiving function based on a fifth table item of the target message;
Based on the kernel layer of the server, monitoring a network device sending data function through an extended data packet filtering technology;
when the triggering of the network equipment sending data function is monitored, the node information of the characterization server, the network equipment sending data function information and the corresponding sixth timestamp of the network equipment sending data function trigger are recorded based on a sixth table item of the target message;
based on the kernel layer of the client, monitoring a data packet processing function through an extended data packet filtering technology;
when the triggering of the data packet processing function is monitored, the node information, the data packet processing function information and the corresponding seventh timestamp of the triggering of the data packet processing function, which characterize the client side, are recorded based on the seventh table entry of the target message.
On the other hand, the client-based application layer obtains each time information in the target message, so as to determine the network jitter in the transmission process of the target message according to each time information, including:
acquiring a third timestamp corresponding to triggering of a data packet sending function in a third table entry of the target message;
acquiring a fourth timestamp corresponding to the triggering of the data packet processing function in the fourth table entry of the target message;
Determining a difference value between the fourth timestamp and the third timestamp to determine time delay information of a link layer when the target message is transmitted to the server side based on the client side;
Acquiring a fifth timestamp corresponding to triggering of an internet control message protocol receiving function in a fifth table item of the target message;
determining the difference value between the fifth timestamp and the fourth timestamp to determine the time delay information of the target message processed at the kernel layer of the server;
acquiring a sixth timestamp corresponding to triggering of a network equipment sending data function in a sixth table entry of the target message;
determining a difference value between the sixth timestamp and the fifth timestamp to determine delay information of the target message sent by the network equipment at the kernel layer of the server;
acquiring a seventh timestamp corresponding to the triggering of the data packet processing function in the seventh table entry of the target message;
And determining a difference value between the seventh timestamp and the sixth timestamp to determine the time delay information of the link layer when the target message is transmitted to the client side based on the server side.
On the other hand, the distributing the target message to the application layer of the client, and recording, by the target message, time information for processing and distributing the target message by the client includes:
based on a kernel layer of the client, monitoring a soft interrupt trigger function through an extended data packet filtering technology;
When the soft interrupt trigger function trigger is monitored, recording node information, soft interrupt trigger function information and an eighth timestamp corresponding to the soft interrupt trigger function trigger of the characterization client based on an eighth table entry of the target message;
Based on a kernel layer of the client, monitoring a data analysis uploading function through an extended data packet filtering technology;
When the triggering of the data analysis uploading function is monitored, node information, data analysis uploading function information and a ninth timestamp corresponding to the triggering of the data analysis uploading function of the client are represented based on a ninth item record of the target message;
based on a kernel layer of the client, monitoring a kernel scheduling function through an expanded data packet filtering technology;
When the triggering of the kernel scheduling function is monitored, recording node information representing the client, the kernel scheduling function information and a tenth timestamp corresponding to the triggering of the kernel scheduling function based on a tenth table entry of the target message;
Monitoring an Internet control message protocol receiving function through an extended data packet filtering technology based on an application layer of a client;
when the triggering of the internet control message protocol receiving function is monitored, node information representing the client, the internet control message protocol receiving function information and an eleventh timestamp corresponding to the triggering of the internet control message protocol receiving function are recorded based on the eleventh table entry of the target message.
On the other hand, the client-based application layer obtains each time information in the target message, so as to determine the network jitter in the transmission process of the target message according to each time information, including:
acquiring a seventh timestamp corresponding to the triggering of the data packet processing function in the seventh table entry of the target message;
Acquiring an eighth timestamp corresponding to the triggering of the soft interrupt trigger function in an eighth table entry of the target message;
Determining a difference value between the eighth timestamp and the seventh timestamp to determine delay information of the target message for soft interrupt processing at a kernel layer of the client;
acquiring a ninth timestamp corresponding to triggering of a data analysis uploading function in a ninth table entry of the target message;
Determining a difference value between the ninth timestamp and the eighth timestamp to determine delay information of the target message for network message processing at a kernel layer of the client;
acquiring a tenth timestamp corresponding to the kernel scheduling function trigger in a tenth table entry of the target message;
Determining a difference value between the tenth timestamp and the ninth timestamp to determine delay information of scheduling of the target message at a kernel layer of the client;
acquiring an eleventh timestamp corresponding to triggering of an internet control message protocol receiving function in an eleventh table of the target message;
and determining the difference value between the eleventh timestamp and the tenth timestamp to determine the time delay information of the processing of the target message at the application layer of the client.
In order to solve the technical problems, the invention also provides another network jitter detection method which is applied to the server; the method comprises the following steps:
Receiving a target message transmitted by a kernel layer of a client based on the kernel layer of the server; the target message is generated by an application layer of the client and comprises time information for processing and transmitting the target message by the client and time information for transmitting the target message at a link layer;
recording time information of processing and transmitting the target message through the target message recording server;
and transmitting the target message to a kernel layer of the client so that the kernel layer of the client distributes the target message to an application layer of the client, recording time information for the client to process and distribute the target message through the target message, and acquiring each time information in the target message based on the application layer of the client so as to determine network jitter in the transmission process of the target message according to each time information.
In order to solve the technical problems, the invention also provides a network jitter detection device which is applied to the client; the device comprises:
The generating module is used for generating a target message based on an application layer of the client and transmitting the target message to a kernel layer of the client;
the first recording module is used for transmitting the target message to the kernel layer of the server based on the kernel layer of the client, and recording time information of the client for processing and transmitting the target message through the target message;
The first receiving module is used for receiving the target message transmitted by the kernel layer of the server through the kernel layer of the client; the target message records time information of the target message transmitted in a link layer and time information of the server side for processing and transmitting the target message;
The second recording module is used for distributing the target message to an application layer of the client and recording time information for processing and distributing the target message by the client through the target message;
The determining module is used for acquiring each piece of time information in the target message based on the application layer of the client so as to determine the network jitter in the transmission process of the target message according to each piece of time information.
In order to solve the technical problems, the invention also provides another network jitter detection device which is applied to the server; the device comprises:
The second receiving module is used for receiving the target message transmitted by the kernel layer of the client based on the kernel layer of the server; the target message is generated by an application layer of the client and comprises time information for processing and transmitting the target message by the client and time information for transmitting the target message at a link layer;
the third recording module is used for recording time information of processing and transmitting the target message through the target message recording server;
The transmission module is used for transmitting the target message to the kernel layer of the client so that the kernel layer of the client distributes the target message to the application layer of the client, the time information of processing and distributing the target message by the client is recorded through the target message, and each time information in the target message is acquired based on the application layer of the client so as to determine the network jitter in the transmission process of the target message according to each time information.
In order to solve the above technical problem, the present invention further provides a network jitter detection apparatus, including:
A memory for storing a computer program;
and the processor is used for realizing the steps of the network jitter detection method when executing the computer program.
In order to solve the above technical problem, the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program implements the steps of the network jitter detection method when executed by a processor.
The network jitter detection method provided by the invention is applied to the client; generating a target message based on an application layer of the client, and transmitting the target message to a kernel layer of the client; transmitting the target message to the kernel layer of the server based on the kernel layer of the client, and recording time information for processing and transmitting the target message by the client through the target message; receiving a target message transmitted by a kernel layer of a server through the kernel layer of the client; the method comprises the steps that a target message records time information of transmission of the target message in a link layer and time information of processing and transmitting the target message by a server side; distributing the target message to an application layer of the client, and recording time information for processing and distributing the target message by the client through the target message; and acquiring each piece of time information in the target message based on an application layer of the client so as to determine network jitter in the transmission process of the target message according to each piece of time information. The invention has the beneficial effects that an active network time delay detection mode is provided; specifically, in the process of transmitting the target message between the client and the server, recording time information of key points of processing and transmitting each target message through the target message; the network delay information of each key point in the application layer and the kernel layer of the client and the server and the network delay information transmitted by the link layer can be calculated through different time information, so that the network delay problem can be more finely positioned, and the maintenance efficiency of network transmission is improved.
In addition, the invention also provides a network jitter detection device, equipment and medium, and the effects are the same as the above.
Drawings
For a clearer description of embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
Fig. 1 is a flowchart of a network jitter detection method according to an embodiment of the present invention;
Fig. 2 is a schematic structural diagram of a target packet according to an embodiment of the present invention;
Fig. 3 is a flowchart of another network jitter detection method according to an embodiment of the present invention;
Fig. 4 is a schematic diagram of a network jitter detection apparatus according to an embodiment of the present invention;
Fig. 5 is a schematic diagram of another network jitter detection apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a network jitter detection apparatus according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present invention.
The core of the invention is to provide a network jitter detection method, a device, equipment and a medium, so as to solve the problem that the specific reason and the position of the network jitter and the corresponding specific time delay can not be determined currently.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description.
With the development of internet technology, in a cloud computing scene, complicated network topology, diversified business applications, different infrastructures, operating systems and the like make the positioning of network jitter complicated and diversified. The concrete implementation is as follows: a request may go through heterogeneous platforms such as routers, operators, cloud services physical networks, virtual networks, containers, and virtual machines; during the transmission of the request, each node may have a delay phenomenon. The user's business is generally deployed on the operating system, and there is network jitter in the scheduling operation of business processes, the request and processing of business in the operating system. It can be seen that determining the specific location of network jitter is relatively complex.
Currently, a Ping command carried by a system is generally used to send a request packet to an IP address of a target system, so as to detect connectivity and response time of a network, thereby judging whether the network is abnormal or delayed. Although the method can judge whether the network delay occurs conveniently, the network delay caused by service reasons, system reasons or network reasons cannot be determined, and the time delay of data on each transmission node cannot be collected, so that the system problem is not favorable for further positioning. In view of the above, the present invention provides a network jitter detection method.
It should be noted that the method provided by the present invention is based on a Server-Client (CS) architecture, and is specifically applied to a Client under the CS architecture.
Fig. 1 is a flowchart of a network jitter detection method according to an embodiment of the present invention. As shown in fig. 1, the method includes:
S10: and generating a target message based on an application layer of the client and transmitting the target message to a kernel layer of the client.
Specifically, a target message is generated at an application layer of the client. The target message is used for transmitting between the client and the server, specifically starts from the application layer of the client, sequentially passes through the kernel layer of the client, the kernel layer of the server and the kernel layer of the client, and finally returns to the application layer of the client. During message transmission, the target message can record the time information of the key points of the processing and transmission of the target message by the client and the server.
It should be noted that, in this embodiment, the specific format of the target message is not limited, but it is required to ensure that the time information of the key points where the target message is processed and transmitted can be recorded, depending on the specific implementation.
S11: and transmitting the target message to the kernel layer of the server based on the kernel layer of the client, and recording the time information of processing and transmitting the target message by the client through the target message.
Further, based on the kernel layer of the client, the target message is transmitted to the kernel layer of the server through the link layer, so that the target message is sent from the client to the server. In this period, the target message may record time information of a key point of the kernel layer of the client for processing the target message, and may record time information of a key point of the kernel layer of the client for transmitting the target message, so as to determine time delay information of message processing and transmission in the kernel layer of the client according to the time information. In this embodiment, the specific process of processing and transmitting the time information of the target message by the target message recording client is not limited, and depends on the specific implementation situation.
S12: and receiving the target message transmitted by the kernel layer of the server through the kernel layer of the client.
The target message records time information of the target message transmitted in a link layer and time information of the target message processed and transmitted by the server side.
After the target message is transmitted to the kernel layer of the server, the kernel layer of the server also processes and analyzes the target message, and after the processing is completed, the target message is sent to the kernel layer of the client, so that the kernel layer of the client receives the target message transmitted by the kernel layer of the server.
It should be noted that, when the client receives the target message transmitted by the kernel layer of the server, the target message already includes time information of the target message transmitted by the link layer, and time information of the server processing and transmitting the target message. And determining the time delay information of the link layer and the kernel layer of the server according to the time information. In this embodiment, the specific process of recording the time information of the target message transmitted in the link layer and the time information of the target message processed and transmitted by the server is not limited, and depends on the specific implementation situation.
S13: and distributing the target message to an application layer of the client, and recording time information for processing and distributing the target message by the client through the target message.
After the kernel layer of the client obtains the target message again, the target message needs to be processed, and specifically, the following is mainly completed: analyzing the header information of the target message to determine the destination of the target message and the next processing mode; according to the protocol type and the destination address of the target message, searching a proper processing function or module to process the target message; distributing the target message to a corresponding processing function or module for further processing, which may include protocol processing, routing, etc.; and finally, delivering the processed target message to an application program or service in the local system, namely distributing the target message. In the process of processing and distributing the target message, the time information of processing and distributing the target message by the client is recorded by the target message, so that the time delay information of the kernel layer of the client in the process of distributing the message is determined later according to the time information.
It should be noted that, in this embodiment, the specific process of distributing the target message to the application layer of the client and recording, by the target message, the time information for processing and distributing the target message by the client is not limited, and depends on the specific implementation situation.
S14: and acquiring each piece of time information in the target message based on an application layer of the client so as to determine network jitter in the transmission process of the target message according to each piece of time information.
Finally, the target message transmitted to the application layer of the client records the time information of all key points executed by the application layer of the client from the application layer of the client to the kernel layer of the client, from the kernel layer of the client to the kernel layer of the server, from the kernel layer of the server to the kernel layer of the client, and the time information of all key points executed by the application layer of the client is returned from the kernel layer of the client, and the time delay condition of the target message in different stages can be obtained through the time information, so that the network delay problem can be more finely positioned.
In this embodiment, a target message is generated based on an application layer of a client, and the target message is transmitted to a kernel layer of the client; transmitting the target message to the kernel layer of the server based on the kernel layer of the client, and recording time information for processing and transmitting the target message by the client through the target message; receiving a target message transmitted by a kernel layer of a server through the kernel layer of the client; the method comprises the steps that a target message records time information of transmission of the target message in a link layer and time information of processing and transmitting the target message by a server side; distributing the target message to an application layer of the client, and recording time information for processing and distributing the target message by the client through the target message; and acquiring each piece of time information in the target message based on an application layer of the client so as to determine network jitter in the transmission process of the target message according to each piece of time information. Therefore, the above scheme provides an active network delay detection mode; specifically, in the process of transmitting the target message between the client and the server, recording time information of key points of processing and transmitting each target message through the target message; the network delay information of each key point in the application layer and the kernel layer of the client and the server and the network delay information transmitted by the link layer can be calculated through different time information, so that the network delay problem can be more finely positioned, and the maintenance efficiency of network transmission is improved.
Fig. 2 is a schematic structural diagram of a target packet according to an embodiment of the present invention. Based on the foregoing embodiments, in some embodiments, as shown in fig. 2, generating a target packet based on an application layer of a client includes:
S101: setting the internet control message protocol message header of the target message.
The internet control message protocol message header comprises an internet control message protocol type, a code, a checksum, an internet control message protocol identifier and an internet control message protocol serial number.
S102: setting a target message header of the target message.
The target message header comprises an internet control message protocol version, the number, a flag bit, an internet control message protocol magic number, reserved bytes, a target message header identifier and a target message header serial number.
S103: a plurality of entries are set.
The table entry is used for recording node information, function information and corresponding time stamp of function trigger involved in the transmission process of the target message.
In order to generate the target message, an internet control message protocol (Internet Control Message Protocol, ICMP) header of the target message needs to be set first. As shown in fig. 2, the ICMP header mainly includes an ICMP type (type), a code (code), a checksum (checksum), an ICMP identifier (id), and an ICMP sequence number (seq), and it is understood that the header is consistent with the format of the conventional ICMP header. And further setting a target message header of the target message. The target message header is a custom message header and mainly comprises ICMP version (version), number (num), flag bit (flags), ICMP magic number (magic), reserved byte (reserve), target message header identifier (id) and target message header serial number (seq).
It should be noted that each component of the ICMP header and the destination header has a fixed size. As shown in fig. 2, in the ICMP header, ICMP type occupies 8 bits (bits), code occupies 8 bits, checksum occupies 16 bits, ICMP identifier id occupies 16 bits, and ICMP sequence number seq occupies 16 bits. In the target message header, ICMP version occupies 8 bits, number num occupies 8 bits, flag bit flags occupies 16 bits, ICMP magic number magic occupies 16 bits, reserved byte reserve occupies 16 bits, target message header identifier id occupies 32 bits, and target message header sequence number seq occupies 32 bits.
Besides the two message heads, the target message also comprises a plurality of table items. It can be understood that the table entry is used for recording time information of key points of processing and transmitting the target message by the client and the server in the transmission process. It should be noted that, whether the client or the server is the same, the triggering of multiple functions is involved when the target message is processed and transmitted, so that each function is specifically used as a key point of network delay positioning in the scheme, and the time information of the key point is stored as the function triggering time.
Specifically, the table entry is used for recording node information (node_id) involved in the transmission process of the target message, namely, recording whether the current node of the target message is a client or a server; at the same time, the entry also records the function information (function_id) involved and the corresponding timestamp (timestamp) of the function trigger. As shown in fig. 2, the node information node_id, the function information function_id and the timestamp corresponding to the function trigger occupy the message space with the size of 32 bits respectively. In addition, the size of the general target message is 256 bits, so the remaining target message space can be filled with 0 or 1.
In summary, by generating the target message, the table entry is used to store the function execution time of different nodes, so as to calculate the network delay of each key point of the client and the server in the user layer and the kernel mode.
The following will specifically describe the function execution time of the target message stored in the table entry of the target message by combining with different nodes, and the network delay calculated by using the function execution time:
the method comprises the steps of (1) collecting time information and determining time information in the processing process of a target message by a kernel layer of a client;
based on the above embodiments, in some embodiments, the core layer based on the client transmits the target message to the core layer of the server, and records, through the target message, time information of processing and transmitting the target message by the client, including:
S111: based on the kernel layer of the client, the internet control message protocol receiving function is monitored through an extended data packet filtering technology, and a sending time stamp of the target message transmitted from the application layer of the client to the kernel layer of the client is recorded through the target message.
S112: when the triggering of the internet control message protocol receiving function is monitored, node information representing the client, the internet control message protocol receiving function information and a first timestamp corresponding to the triggering of the internet control message protocol receiving function are recorded based on a first table item of the target message.
S113: based on the kernel layer of the client, the network equipment transmitting data function is monitored through an extended data packet filtering technology.
S114: when the triggering of the network equipment sending data function is monitored, the node information of the characterization client, the network equipment sending data function information and the corresponding second timestamp of the network equipment sending data function trigger are recorded based on a second table entry of the target message.
The extended packet filtering technique (extended Berkeley PACKET FILTER, EBPF) is a technique that performs secure, efficient, programmable network packet filtering and monitoring in the Linux kernel. It can be used to monitor the execution of a function. The eBPF technique implements monitoring of functions by inserting a specific piece of code, the eBPF program, into the kernel. This piece of code may be dynamically loaded into the kernel at runtime and executed in the kernel. The eBPF program may insert itself into the execution path of the objective function by means of a hook function (hook). When the objective function is called, eBPF programs are triggered to execute. During execution, eBPF programs can access parameters, return values, and other relevant context information for the function. By analyzing and processing the information, monitoring and statistics of the functions can be realized. eBPF technology has advantages in its efficiency and safety. Because eBPF programs are executed in the kernel, frequent switching between the user space and the kernel space can be avoided, and the monitoring efficiency is improved. Meanwhile, eBPF programs are strictly limited by security, and only can access specified data and execute specified operations, so that the security of the system is ensured.
In a specific implementation, based on a kernel layer of the client, an internet control message protocol receiving (icmp_rcv) function is monitored through eBPF technology, and a sending time stamp of a target message transmitted from an application layer of the client to the kernel layer of the client is recorded through the target message. It should be noted that, the icmp_rcv function is mainly used for analyzing the header information of the ICMP data packet and delivering the processing result to the subsequent processing function, so as to implement effective processing and response to the ICMP data packet. That is, when the icmp_rcv function is triggered, it is considered that the kernel layer of the client has already received the target message transmitted by the application layer at this time. Thus, when the icmp_rcv function trigger is monitored, node information characterizing the client, icmp_rcv function information, and a corresponding first timestamp of the icmp_rcv function trigger are recorded based on the first entry of the target message.
Further, based on the kernel layer of the client, the network device transmit data (net_dev_xmit) function is monitored through eBPF technology. It should be noted that the net_dev_xmit function is a function in the Linux kernel network subsystem, and is used for actually transmitting a data packet to a network device. That is, when the net_dev_xmit function trigger is monitored, the kernel layer of the client is considered to have completed processing the target message at this time, and is ready to send. Therefore, when the net_dev_xmit function trigger is monitored, node information characterizing the client, net_dev_xmit function information and a corresponding second timestamp of net_dev_xmit function trigger are recorded based on a second table entry of the target message.
Therefore, time information acquisition in the processing process of the target message by the kernel layer of the client is realized.
Correspondingly, the application layer based on the client side obtains each time information in the target message to determine the network jitter in the transmission process of the target message according to each time information, and the method comprises the following steps:
s140: and acquiring a sending time stamp of the target message transmitted from an application layer of the client to a kernel layer of the client.
S141: and acquiring a first timestamp corresponding to the triggering of the internet control message protocol receiving function in the first table entry of the target message.
S142: and acquiring a second timestamp corresponding to the triggering of the network equipment sending data function in the second table entry of the target message.
S143: determining a difference value between the sending timestamp and the first timestamp to determine delay information of a target message transmitted from an application layer of the client to a kernel layer of the client;
S144: and determining the difference value between the second timestamp and the first timestamp to determine the delay information of processing the target message at the kernel layer of the client.
Specifically, a sending time stamp of a target message transmitted from an application layer of a client to a kernel layer of the client is obtained, and a first time stamp corresponding to the triggering of an icmp_rcv function in a first table entry of the target message is obtained. Since the triggering of the icmp_rcv function characterizes that the kernel layer of the client has received the target message transmitted by the application layer, the difference between the sending timestamp and the first timestamp can be determined, so as to determine the time delay information tx_user of the target message transmitted from the application layer of the client to the kernel layer of the client.
Further, a corresponding second timestamp is triggered by the net_dev_xmit function in the second table entry of the target message. Since the triggering of the net_dev_xmit function characterizes that the kernel layer of the client has completed processing the target message, a difference value between the second timestamp and the first timestamp can be determined, so as to determine delay information tx_kern1 of processing the target message at the kernel layer of the client.
Therefore, the time delay information determination of the kernel layer of the client in the processing process of the target message is realized, and the network delay problem of the kernel layer of the client in the processing process of the message is more finely positioned.
The kernel layer of the client acquires and determines time information in the transmission process of the target message;
based on the above embodiments, in some embodiments, the core layer based on the client transmits the target message to the core layer of the server, and records, through the target message, time information of processing and transmitting the target message by the client, including:
S115: based on the kernel layer of the client, the data packet sending function is monitored through an extended data packet filtering technology.
S116: when the triggering of the data packet sending function is monitored, the node information, the data packet sending function information and the corresponding third timestamp of the data packet sending function trigger, which characterize the client side, are recorded based on a third table entry of the target message.
In an implementation, a data packet transmission (dev_hard_start_xmit) function is monitored by eBPF techniques based on the kernel layer of the client. It should be noted that the dev_hard_start_xmit function is a function in a network device driver in the Linux kernel, and is used to start the sending process of the data packet. In the process of forwarding a network packet, when a data packet needs to be sent out from a network device, the sending of the data packet is usually triggered by calling the dev_hard_start_xmit function. That is, when the dev_hard_start_xmit function trigger is detected, it is considered that the kernel layer of the client side completes the preparation for sending the target message at this time, and the sending program is executed. Therefore, when the dev_hard_start_xmit function trigger is monitored, the node information characterizing the client, the dev_hard_start_xmit function information and the dev_hard_start_xmit function trigger corresponding third time stamps are recorded based on the third table entry of the target message.
Therefore, time information acquisition in the process of transmitting the target message by the kernel layer of the client is realized.
Correspondingly, the application layer based on the client side obtains each time information in the target message to determine the network jitter in the transmission process of the target message according to each time information, and the method comprises the following steps:
S145: and acquiring a second timestamp corresponding to the triggering of the network equipment sending data function in the second table entry of the target message.
S146: and acquiring a third timestamp corresponding to the triggering of the data packet sending function in the third table entry of the target message.
S147: and determining the difference value between the third timestamp and the second timestamp to determine the time delay information sent by the network equipment of the kernel layer of the client side by the target message.
In a specific implementation, a corresponding second timestamp is triggered by a net_dev_xmit function in a second table entry of the target message. And acquiring a corresponding third timestamp triggered by the dev_hard_start_xmit function in a third table entry of the target message. Since the triggering of the net_dev_xmit function indicates that the kernel layer of the client has completed processing the target message, and the triggering of the dev_hard_start_xmit function indicates that the kernel layer of the client has completed preparation for sending the target message, a difference value between the third timestamp and the second timestamp can be determined, so that the network device sending delay information tx_ qdisc of the target message at the kernel layer of the client is determined.
Therefore, the time delay information determination of the kernel layer of the client in the process of transmitting the target message is realized, and the network delay problem of the kernel layer of the client in the process of transmitting the message is more finely positioned.
Time information acquisition and time delay information determination of the target message transmitted in the link layer, and time information acquisition and time delay information determination of processing and transmitting the target message by the kernel layer of the server side;
based on the foregoing embodiments, in some embodiments, the target message records time information of transmission of the target message at the link layer, and time information of processing and transmitting the target message by the server side, including:
s121: based on the kernel layer of the server, the data packet processing function is monitored by an extended data packet filtering technology.
S122: when the triggering of the data packet processing function is monitored, the node information, the data packet processing function information and the corresponding fourth timestamp of the triggering of the data packet processing function of the service end are represented based on the fourth table entry record of the target message.
S123: based on the kernel layer of the server, the Internet control message protocol receiving function is monitored through an extended data packet filtering technology.
S124: when the triggering of the internet control message protocol receiving function is monitored, the node information of the characterization server, the internet control message protocol receiving function information and the fifth timestamp corresponding to the triggering of the internet control message protocol receiving function are recorded based on a fifth table item of the target message.
S125: based on the kernel layer of the server, the network device sending data function is monitored through an extended data packet filtering technology.
S126: when the triggering of the network equipment sending data function is monitored, the node information of the characterization server, the network equipment sending data function information and the corresponding sixth timestamp of the network equipment sending data function trigger are recorded based on a sixth table item of the target message.
S127: based on the kernel layer of the client, the data packet processing function is monitored through an extended data packet filtering technology.
S128: when the triggering of the data packet processing function is monitored, the node information, the data packet processing function information and the corresponding seventh timestamp of the triggering of the data packet processing function, which characterize the client side, are recorded based on the seventh table entry of the target message.
In an implementation, a packet processing (netif _receive_skb) function is monitored by eBPF technology based on the kernel layer of the server. It should be noted that the netif _receive_skb function functions as a function for processing the received network packet in the Linux kernel. That is, when the kernel layer of the server triggers netif _receive_skb function, it is considered that the target message is already transmitted from the kernel layer of the client to the kernel layer of the server through the link layer. Therefore, when the kernel layer of the server detects that the netif _receive_skb function triggers, the fourth table entry record based on the target message characterizes the node information of the server, the netif _receive_skb function information and the netif _receive_skb function trigger corresponding fourth timestamp.
After receiving the target message, the kernel layer of the server needs a series of processing performed by the Linux kernel of the server: and sending the target message data frame to a system memory for storage through direct memory access (Direct Memory Access, DMA) through a network card, and obtaining the information of the target message packet through unpacking operation. This process is typically monitored using the icmp_rcv function. Therefore, based on the kernel layer of the server, the icmp_rcv function is monitored through eBPF technology. It can be understood that when the icmp_rcv function trigger is monitored, the kernel layer of the server side is considered to start processing the target message. Therefore, when the icmp_rcv function trigger is monitored, the node information, the icmp_rcv function information and the corresponding fifth timestamp of the icmp_rcv function trigger, which characterize the service end, are recorded based on the fifth table entry of the target message.
Further, after the kernel layer of the server finishes processing the target message, the kernel layer of the server returns the target message to the kernel layer of the client. Therefore, based on the kernel layer of the server, the net_dev_xmit function is monitored through eBPF technology. When the net_dev_xmit function trigger is monitored, the kernel layer of the server side is considered to execute the sending of the target message to the kernel layer of the client side at the moment, so that the node information, the net_dev_xmit function information and the net_dev_xmit function trigger corresponding sixth time stamp of the server side are characterized based on the sixth table entry record of the target message.
And the target message is transmitted at a link layer of data transmission, and finally returns to a kernel layer of the client again to be received by a network card of the client. The function received by the network card is usually netif _receiver_skb function, and when the trigger of netif _receiver_skb function is detected, the kernel layer of the client side is considered to receive the target message transmitted by the kernel layer of the server side through the link layer. Thus, the netif _receive_skb function is monitored by eBPF techniques based on the kernel layer of the client. When the netif _receiver_skb function trigger is monitored, node information characterizing the client, netif _receiver_skb function information and netif _receiver_skb function trigger corresponding seventh time stamps are recorded based on a seventh table entry of the target message.
Therefore, the time information acquisition of the target message transmitted in the link layer and the time information acquisition of the processing and transmission of the target message by the kernel layer of the server side are realized.
Correspondingly, the application layer based on the client side obtains each time information in the target message to determine the network jitter in the transmission process of the target message according to each time information, and the method comprises the following steps:
S148: and acquiring a third timestamp corresponding to the triggering of the data packet sending function in the third table entry of the target message.
S149: and acquiring a fourth timestamp corresponding to the triggering of the data packet processing function in the fourth table entry of the target message.
S150: and determining the difference value between the fourth timestamp and the third timestamp to determine the time delay information of the link layer when the target message is transmitted to the server side based on the client side.
S151: and acquiring a fifth timestamp corresponding to the triggering of the internet control message protocol receiving function in the fifth table item of the target message.
S152: determining the difference value between the fifth timestamp and the fourth timestamp to determine the delay information of the processing of the target message at the kernel layer of the server;
s153: and acquiring a sixth timestamp corresponding to the triggering of the network equipment sending data function in the sixth table entry of the target message.
S154: and determining the difference value between the sixth timestamp and the fifth timestamp to determine the time delay information of the target message sent by the network equipment at the kernel layer of the server.
S155: and acquiring a corresponding seventh timestamp triggered by the data packet processing function in the seventh table entry of the target message.
S156: and determining a difference value between the seventh timestamp and the sixth timestamp to determine the time delay information of the link layer when the target message is transmitted to the client based on the server.
In a specific implementation, a dev_hard_start_xmit function trigger in a third table entry of the target packet is acquired to trigger a corresponding third timestamp. And acquiring a corresponding fourth timestamp triggered by the netif _receive_skb function in a fourth table entry of the target message. Since the triggering of the dev_hard_start_xmit function characterizes that the kernel layer of the client has completed the preparation for sending the target message, and the triggering of the netif _receive_skb function characterizes that the kernel layer of the server prepares to process and receive the target message, the difference between the fourth timestamp and the third timestamp is determined, so that the determination of the target message is based on the delay information tx_ outlink of the link layer when the client transmits to the server.
And acquiring a fifth timestamp corresponding to the triggering of the icmp_rcv function in the fifth table entry of the target message, and acquiring a sixth timestamp corresponding to the triggering of the net_dev_xmit function in the sixth table entry of the target message. The method comprises the steps that a kernel layer of a service end starts to process a target message by triggering an icmp_rcv function, and the kernel layer of the service end executes the transmission of the target message to the kernel layer of a client end by triggering the netdev xmit function, so that the difference value between a fifth timestamp and a fourth timestamp is determined to determine delay information rx_kern1 of processing the target message at the kernel layer of the service end; and determining the difference value between the sixth timestamp and the fifth timestamp to determine delay information tx_kern2 of the target message sent by the network equipment at the kernel layer of the server.
And acquiring a corresponding seventh timestamp triggered by the netif _receive_skb function in a seventh table entry of the target message. Since triggering of netif _receive_skb functions characterizes that the kernel layer of the client receives the target message transmitted by the kernel layer of the server through the link layer, a difference value between the seventh timestamp and the sixth timestamp is determined, so that the target message is determined based on the delay information rx_ outlink of the link layer when the server transmits the target message to the client.
Therefore, the time delay information determination of the target message transmitted in the link layer and the time delay information determination of the processing and the transmission of the target message by the core layer of the server are realized, and the problems of network delay of the target message transmitted in the link layer and the processing and the transmission of the target message by the core layer of the server are more finely positioned.
Fourthly, in the process that the kernel layer of the client distributes the target message to the application layer of the client, the client processes the target message and distributes time information acquisition and time delay information determination;
Based on the foregoing embodiments, in some embodiments, distributing the target message to an application layer of the client, and recording, by the target message, time information for processing and distributing the target message by the client, including:
S131: based on the kernel layer of the client, the soft interrupt trigger function is monitored through an extended data packet filtering technology.
S132: when the soft interrupt trigger function trigger is monitored, node information, soft interrupt trigger function information and an eighth timestamp corresponding to the soft interrupt trigger function trigger of the client are represented based on an eighth table entry record of the target message.
S133: based on the kernel layer of the client, the data analysis uploading function is monitored through an extended data packet filtering technology.
S134: when the triggering of the data analysis uploading function is monitored, the node information, the data analysis uploading function information and the corresponding ninth timestamp of the triggering of the data analysis uploading function of the client are represented based on the ninth table entry record of the target message.
S135: based on the kernel layer of the client, the kernel scheduling function is monitored through an extended data packet filtering technology.
S136: when the triggering of the kernel scheduling function is monitored, node information, kernel scheduling function information and a tenth timestamp corresponding to the triggering of the kernel scheduling function, which characterize the client side, are recorded based on a tenth table entry of the target message.
S137: based on the application layer of the client, the Internet control message protocol receiving function is monitored through an extended data packet filtering technology.
S138: when the triggering of the internet control message protocol receiving function is monitored, node information, internet control message protocol receiving function information and an eleventh timestamp corresponding to the triggering of the internet control message protocol receiving function of the client are represented based on an eleventh table entry record of the target message.
In a specific implementation, after receiving a target message, a kernel layer of the client informs a central processing unit (Central Processing Unit, CPU) of the arrival of the message, and the CPU responds to the hard interrupt, and sends out a soft interrupt after simple processing, and waits for the kernel to process the target message. It should be noted that hard interrupts and soft interrupts are two different types of interrupts in a computer system. A hard interrupt is an interrupt triggered by a hardware device for informing the processor of the occurrence of a certain event. When the hardware device requires the attention of the processor, it sends an interrupt signal to the processor, which immediately stops the task currently being executed, saves the current context, and jumps to the corresponding interrupt handler to handle the event. Hard interrupts are commonly used to handle input/output operations of external devices, such as keyboard inputs, mouse clicks, network data transmissions, and the like. A soft interrupt is an interrupt actively triggered by a software program for actively requesting an operating system to provide a certain service or perform a certain operation during program execution. Soft interrupts are triggered by software instructions that cause the processor to switch from a user state to a kernel state and jump to the corresponding interrupt handler to perform a particular operation. Soft interrupts are commonly used for system calls, exception handling, interprocess communications, etc.
Thus, to monitor for the triggering of a soft interrupt, the soft interrupt trigger (softirq _trigger) function is monitored by eBPF technology based on the kernel layer of the client. When softirq _track function triggering is monitored, node information, softirq _track function information and softirq _track function triggering corresponding eighth time stamps of the client are represented based on an eighth table entry record of the target message.
The method comprises the steps of processing a target message by soft interruption, and mainly analyzing head information of the target message to determine a destination of the target message and a processing mode of the next step; according to the protocol type and the destination address of the target message, searching a proper processing function or module to process the target message; distributing the target message to a corresponding processing function or module for further processing, which may include protocol processing, routing, etc.; and finally, delivering the processed target message to an application program or service in the local system. It should be noted that delivering the processed target message to an application or service in the local system is typically implemented by a data parsing upload (raw_local_ deviver) function. Thus, based on the kernel layer of the client, the raw_local_ deviver function is monitored by eBPF techniques. When the triggering of the data analysis uploading function is monitored, the kernel layer of the client side is considered to complete the processing of the target message, the processed target message is ready to be distributed to an application program or service of an application layer, and the node information, the raw_local_ deviver function information and the raw_local_ deviver function triggering corresponding ninth time stamp representing the client side are recorded based on a ninth table entry of the target message.
After the kernel of the client finishes processing the target message, the kernel needs to send the target message to an application layer. The scheduling needs to be performed by a kernel scheduler before the sending, and the time delay of the kernel scheduling can reflect the busyness of the kernel of the client. Wherein, the kernel scheduling function is usually sched _wakeup function in Linux kernel. Thus, the sched _wakeup function is monitored by eBPF technology based on the kernel layer of the client. When sched _wakeup trigger is monitored, the client kernel layer is considered to complete scheduling of the target message, and node information, sched _wakeup function information and sched _wakeup function trigger of the client are further characterized based on a tenth table entry record of the target message, wherein the tenth table entry record corresponds to a tenth timestamp.
The application layer of the client end finally receives the target message sent by the kernel layer of the client end. Thus, based on the application layer of the client, the icmp_rcv function is monitored by eBPF techniques. When the icmp_rcv function trigger is monitored, the application layer of the client starts to process the target message, and node information, icmp_rcv function information and an eleventh timestamp corresponding to the icmp_rcv function trigger of the client are further characterized based on an eleventh table entry record of the target message.
Therefore, in the process that the kernel layer of the client distributes the target message to the application layer of the client, the client processes the target message and distributes time information acquisition.
Correspondingly, the application layer based on the client side obtains each time information in the target message to determine the network jitter in the transmission process of the target message according to each time information, and the method comprises the following steps:
S157: acquiring a seventh timestamp corresponding to the triggering of the data packet processing function in the seventh table entry of the target message;
S158: acquiring an eighth timestamp corresponding to the soft interrupt trigger function trigger in an eighth table entry of the target message;
s159: determining a difference value between the eighth timestamp and the seventh timestamp to determine delay information of the target message for soft interrupt processing at a kernel layer of the client;
s160: acquiring a ninth timestamp corresponding to the triggering of the data analysis uploading function in the ninth table entry of the target message;
S161: determining a difference value between the ninth timestamp and the eighth timestamp to determine delay information of the target message for network message processing at a kernel layer of the client;
s162: acquiring a tenth timestamp corresponding to the kernel scheduling function trigger in a tenth table entry of the target message;
S163: determining a difference value between the tenth timestamp and the ninth timestamp to determine delay information of scheduling of the target message at a kernel layer of the client;
S164: acquiring an eleventh timestamp corresponding to triggering of an internet control message protocol receiving function in an eleventh table item of the target message;
S165: and determining the difference value between the eleventh timestamp and the tenth timestamp to determine the time delay information of processing the target message at the application layer of the client.
In a specific implementation, a seventh timestamp corresponding to the netif _receive_skb function trigger in a seventh table entry of the target message is obtained, and an eighth timestamp corresponding to the softirq _track function trigger in an eighth table entry of the target message is obtained; because the triggering of the net_dev_xmit function characterizes that the kernel layer of the client receives the target message transmitted by the kernel layer of the server through the link layer, and the triggering of the softirq _track function characterizes that the kernel layer of the client starts to perform soft interrupt processing on the target message, the difference value between the eighth timestamp and the seventh timestamp is determined, and therefore the time delay information rx_ softirq that the target message performs soft interrupt processing on the kernel layer of the client is determined.
Acquiring a ninth timestamp corresponding to the raw_local_ deviver function trigger in a ninth table entry of the target message; because the kernel layer of the client is triggered by the raw_local_ deviver function to complete processing of the target message and prepare an application program or service for distributing the processed target message to an application layer, the difference value between the ninth timestamp and the eighth timestamp is determined, so that the time delay information rx_kern2 of the target message for processing the network message in the kernel layer of the client is determined.
Acquiring a tenth timestamp corresponding to sched _wakeup function trigger in a tenth table entry of the target message; since triggering of sched _wakeup function characterizes that the client kernel layer has completed scheduling the target message, a difference value between the tenth timestamp and the ninth timestamp is determined, so that delay information rx_task_queue of scheduling the target message at the client kernel layer is determined.
Acquiring an eleventh timestamp corresponding to the trigger of the icmp_rcv function in the eleventh table entry of the target message; since triggering of the icmp_rcv function in the eleventh table entry characterizes that the application layer of the client starts to process the target message, a difference value between the eleventh timestamp and the tenth timestamp is determined, so that delay information rx_user of processing the target message at the application layer of the client is determined.
Therefore, in the process that the kernel layer of the client distributes the target message to the application layer of the client, the delay information of the processing and distribution of the target message by the client is determined, and the network delay problem of the processing and distribution of the target message by the client is more finely determined.
The network jitter detection method applied to the client is described in detail above. The invention also provides another network jitter detection method. Fig. 3 is a flowchart of another network jitter detection method according to an embodiment of the present invention. The method is applied to the server; as shown in fig. 3, the method includes:
s20: receiving a target message transmitted by a kernel layer of a client based on the kernel layer of the server; the target message is generated by an application layer of the client and comprises time information for processing and transmitting the target message by the client and time information for transmitting the target message at a link layer.
S21: and recording time information of processing and transmitting the target message by the server side through the target message.
S22: and transmitting the target message to a kernel layer of the client so that the kernel layer of the client distributes the target message to an application layer of the client, recording time information for processing and distributing the target message by the client through the target message, and acquiring each time information in the target message based on the application layer of the client to determine network jitter in the transmission process of the target message according to each time information.
Specifically, a kernel layer based on a server receives a target message transmitted by a kernel layer of a client. It should be noted that, the target message is generated at the application layer of the client. The target message is used for transmitting between the client and the server, specifically starts from the application layer of the client, sequentially passes through the kernel layer of the client, the kernel layer of the server and the kernel layer of the client, and finally returns to the application layer of the client. During message transmission, the target message can record the time information of the key points of the processing and transmission of the target message by the client and the server. Therefore, before sending, the time information of the key point of the kernel layer of the client for processing the target message is recorded in the target message, and the time information of the key point of the kernel layer of the client for transmitting the target message is recorded, so that the time delay information of message processing and transmission in the kernel layer of the client is determined conveniently according to the time information.
Further, after receiving the target message, the kernel layer of the server side processes and analyzes the target message, and sends the target message to the kernel layer of the client side after the processing is completed, so that the kernel layer of the client side receives the target message transmitted by the kernel layer of the server side. In this process, the time information of the target message transmitted in the link layer and the time information of the kernel layer of the server for processing and transmitting the target message are recorded in the target message. And determining the time delay information of the link layer and the kernel layer of the server according to the time information.
Then, the target message is transmitted to the kernel layer of the client, and after the kernel layer of the client obtains the target message again, the target message needs to be processed, and specifically, the following steps are mainly completed: analyzing the header information of the target message to determine the destination of the target message and the next processing mode; according to the protocol type and the destination address of the target message, searching a proper processing function or module to process the target message; distributing the target message to a corresponding processing function or module for further processing, which may include protocol processing, routing, etc.; and finally, delivering the processed target message to an application program or service in the local system, namely distributing the target message. In the process of processing and distributing the target message, the time information of processing and distributing the target message by the client is recorded by the target message, so that the time delay information of the kernel layer of the client in the process of distributing the message is determined later according to the time information.
Finally, the target message transmitted to the application layer of the client records the time information of all key points executed by the application layer of the client from the application layer of the client to the kernel layer of the client, from the kernel layer of the client to the kernel layer of the server, from the kernel layer of the server to the kernel layer of the client, and the time information of all key points executed by the application layer of the client is returned from the kernel layer of the client, and the time delay condition of the target message in different stages can be obtained through the time information, so that the network delay problem can be more finely positioned.
In the above embodiments, the detailed description is given to the network jitter detection method, and the present invention further provides a corresponding embodiment of the network jitter detection device.
Fig. 4 is a schematic diagram of a network jitter detection apparatus according to an embodiment of the present invention. The device is applied to the client; as shown in fig. 4, the apparatus includes:
The generating module 10 is configured to generate a target message based on an application layer of the client, and transmit the target message to a kernel layer of the client;
The first recording module 11 is configured to transmit the target message to the kernel layer of the server based on the kernel layer of the client, and record, through the target message, time information for processing and transmitting the target message by the client;
the first receiving module 12 is configured to receive, through a kernel layer of the client, a target packet transmitted by the kernel layer of the server; the method comprises the steps that a target message records time information of transmission of the target message in a link layer and time information of processing and transmitting the target message by a server side;
The second recording module 13 is configured to distribute the target message to an application layer of the client, and record, through the target message, time information for processing and distributing the target message by the client;
the determining module 14 is configured to obtain each time information in the target message based on the application layer of the client, so as to determine network jitter in the transmission process of the target message according to each time information.
In some embodiments, the generating module 10 includes:
The first setting submodule is used for setting an internet control message protocol message header of the target message; the internet control message protocol message header comprises an internet control message protocol type, a code, a checksum, an internet control message protocol identifier and an internet control message protocol serial number;
The second setting submodule is used for setting a target message header of the target message; the target message header comprises an internet control message protocol version, the number, a flag bit, an internet control message protocol magic number, reserved bytes, a target message header identifier and a target message header serial number;
the third setting submodule is used for setting a plurality of table items; the table entry is used for recording node information, function information and corresponding time stamp of function trigger involved in the transmission process of the target message.
In some embodiments, the first recording module 11 comprises:
the first monitoring submodule is used for monitoring an internet control message protocol receiving function through an extended data packet filtering technology based on the kernel layer of the client, and recording a sending time stamp of a target message transmitted from the application layer of the client to the kernel layer of the client through the target message;
The first recording sub-module is used for recording node information representing the client, internet control message protocol receiving function information and a first timestamp corresponding to the internet control message protocol receiving function trigger based on a first table item of the target message when the internet control message protocol receiving function trigger is monitored;
The second monitoring submodule is used for monitoring a network device sending data function through an extended data packet filtering technology based on a kernel layer of the client;
And the second recording sub-module is used for recording node information representing the client, network equipment sending data function information and a corresponding second timestamp of the network equipment sending data function trigger based on a second table entry of the target message when the triggering of the network equipment sending data function is monitored.
In some embodiments, the determination module 14 includes:
The first acquisition sub-module is used for acquiring a sending time stamp of a target message transmitted from an application layer of the client to a kernel layer of the client;
the second acquisition sub-module is used for acquiring a first timestamp corresponding to triggering of the internet control message protocol receiving function in the first table item of the target message;
The third acquisition sub-module is used for acquiring a second timestamp corresponding to the triggering of the network equipment sending data function in the second table entry of the target message;
A first determining submodule, configured to determine a difference between the sending timestamp and the first timestamp, so as to determine delay information of a target message transmitted from an application layer of the client to a kernel layer of the client;
and the second determining submodule is used for determining the difference value between the second timestamp and the first timestamp so as to determine the delay information of processing the target message at the kernel layer of the client.
In some embodiments, the first recording module 11 comprises:
The third monitoring submodule is used for monitoring a data packet sending function through an extended data packet filtering technology based on a kernel layer of the client;
and the third recording sub-module is used for recording node information, data packet sending function information and data packet sending function triggering corresponding third time stamps of the characterization client based on a third table entry of the target message when the triggering of the data packet sending function is monitored.
In some embodiments, the determination module 14 includes:
A fourth obtaining sub-module, configured to obtain a second timestamp corresponding to the triggering of the network device sending data function in the second table entry of the target packet;
A fifth obtaining sub-module, configured to obtain a third timestamp corresponding to the triggering of the data packet sending function in the third table entry of the target packet;
And the third determining submodule is used for determining the difference value between the third timestamp and the second timestamp so as to determine the time delay information sent by the network equipment of the kernel layer of the client side by the target message.
In some embodiments, the target message records time information of transmission of the target message at the link layer, and time information of processing and transmitting the target message by the server, which specifically includes:
Based on a kernel layer of the server, monitoring a data packet processing function by an extended data packet filtering technology;
When the triggering of the data packet processing function is monitored, recording node information representing a server, data packet processing function information and a fourth timestamp corresponding to the triggering of the data packet processing function based on a fourth table item of the target message;
Based on the kernel layer of the server, monitoring an Internet control message protocol receiving function by an extended data packet filtering technology;
When the triggering of the internet control message protocol receiving function is monitored, the node information of the characterization server, the internet control message protocol receiving function information and the fifth timestamp corresponding to the triggering of the internet control message protocol receiving function are recorded based on a fifth table item of the target message;
Based on the kernel layer of the server, monitoring a network device sending data function through an extended data packet filtering technology;
When the triggering of the network equipment sending data function is monitored, the node information of the characterization server, the network equipment sending data function information and the corresponding sixth timestamp of the network equipment sending data function trigger are recorded based on a sixth table item of the target message;
based on the kernel layer of the client, monitoring a data packet processing function through an extended data packet filtering technology;
When the triggering of the data packet processing function is monitored, the node information, the data packet processing function information and the corresponding seventh timestamp of the triggering of the data packet processing function, which characterize the client side, are recorded based on the seventh table entry of the target message.
In some embodiments, the determination module 14 includes:
a sixth obtaining sub-module, configured to obtain a third timestamp corresponding to the triggering of the data packet sending function in the third table entry of the target packet;
A seventh obtaining sub-module, configured to obtain a fourth timestamp corresponding to the triggering of the packet processing function in the fourth table entry of the target packet;
A fourth determining submodule, configured to determine a difference between the fourth timestamp and the third timestamp, so as to determine delay information of the link layer when the target packet is transmitted to the server based on the client;
An eighth obtaining sub-module, configured to obtain a fifth timestamp corresponding to triggering of the internet control message protocol receiving function in a fifth table entry of the target message;
A fifth determining submodule, configured to determine a difference value between the fifth timestamp and the fourth timestamp, so as to determine delay information of processing the target packet at a kernel layer of the server;
a ninth obtaining sub-module, configured to obtain a sixth timestamp corresponding to the triggering of the network device sending data function in the sixth table entry of the target packet;
A sixth determining submodule, configured to determine a difference value between the sixth timestamp and the fifth timestamp, so as to determine delay information of the target packet sent by the network device at the kernel layer of the server;
A tenth acquisition sub-module, configured to acquire a seventh timestamp corresponding to the triggering of the packet processing function in the seventh table entry of the target packet;
And a seventh determining submodule, configured to determine a difference between the seventh timestamp and the sixth timestamp, so as to determine delay information of the link layer when the target packet is transmitted to the client based on the server.
In some embodiments, the second recording module 13 comprises:
The fourth monitoring submodule is used for monitoring a soft interrupt trigger function through an extended data packet filtering technology based on a kernel layer of the client;
The fourth recording sub-module is used for recording node information, soft interrupt trigger function information and an eighth timestamp corresponding to the soft interrupt trigger function trigger of the characterization client based on an eighth table entry of the target message when the soft interrupt trigger function trigger is monitored;
The fifth monitoring sub-module is used for monitoring a data analysis uploading function through an extended data packet filtering technology based on a kernel layer of the client;
the fifth recording sub-module is used for recording node information, data analysis uploading function information and a ninth timestamp corresponding to the data analysis uploading function trigger of the characterization client based on a ninth table entry of the target message when the data analysis uploading function trigger is monitored;
The sixth monitoring submodule is used for monitoring a kernel scheduling function through an extended data packet filtering technology based on a kernel layer of the client;
the sixth recording sub-module is used for recording node information, kernel scheduling function information and a tenth timestamp corresponding to kernel scheduling function triggering representing a client based on a tenth table entry of the target message when kernel scheduling function triggering is monitored;
A seventh monitoring sub-module, configured to monitor an internet control message protocol receiving function through an extended packet filtering technology based on an application layer of the client;
And the seventh recording sub-module is used for recording node information, internet control message protocol receiving function information and an eleventh timestamp corresponding to the internet control message protocol receiving function trigger of the characterization client based on the eleventh table entry of the target message when the internet control message protocol receiving function trigger is monitored.
In some embodiments, the determination module 14 includes:
an eleventh obtaining sub-module, configured to obtain a seventh timestamp corresponding to the triggering of the packet processing function in the seventh table entry of the target packet;
a twelfth obtaining submodule, configured to obtain an eighth timestamp corresponding to the triggering of the soft interrupt trigger function in the eighth table entry of the target packet;
An eighth determining submodule, configured to determine a difference value between the eighth timestamp and the seventh timestamp, so as to determine delay information of performing soft interrupt processing on the kernel layer of the client by using the target packet;
a thirteenth obtaining sub-module, configured to obtain a ninth timestamp corresponding to the triggering of the data analysis uploading function in the ninth table entry of the target packet;
a ninth determining submodule, configured to determine a difference value between the ninth timestamp and the eighth timestamp, so as to determine delay information of the target packet for processing the network packet at the kernel layer of the client;
a fourteenth obtaining sub-module, configured to obtain a tenth timestamp corresponding to the kernel scheduling function trigger in a tenth table entry of the target packet;
a tenth determining submodule, configured to determine a difference value between a tenth timestamp and a ninth timestamp, so as to determine delay information of scheduling of the target packet at a kernel layer of the client;
a fifteenth obtaining sub-module, configured to obtain an eleventh timestamp corresponding to triggering of the internet control message protocol receiving function in the eleventh table entry of the target message;
an eleventh determining submodule, configured to determine a difference between the eleventh timestamp and the tenth timestamp, so as to determine delay information of processing the target packet at an application layer of the client.
Fig. 5 is a schematic diagram of another network jitter detection apparatus according to an embodiment of the present invention. The device is applied to the server; as shown in fig. 5, the apparatus includes:
The second receiving module 15 is configured to receive, based on a kernel layer of the server, a target packet transmitted by a kernel layer of the client; the method comprises the steps that a target message is generated by an application layer of a client, and the target message comprises time information for processing and transmitting the target message by the client and time information for transmitting the target message at a link layer;
A third recording module 16, configured to record, by using the target message, time information 17 for processing and transmitting the target message by the server;
The transmission module is used for transmitting the target message to the kernel layer of the client so that the kernel layer of the client distributes the target message to the application layer of the client, the time information for processing and distributing the target message by the client is recorded through the target message, and each time information in the target message is acquired based on the application layer of the client so as to determine the network jitter in the transmission process of the target message according to each time information.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
Fig. 6 is a schematic diagram of a network jitter detection apparatus according to an embodiment of the present invention. As shown in fig. 6, the network jitter detection apparatus includes:
a memory 20 for storing a computer program;
A processor 21 for implementing the steps of the network jitter detection method as mentioned in the above embodiments when executing a computer program.
The network jitter detection device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The Processor 21 may be implemented in at least one hardware form of a digital signal Processor (DIGITAL SIGNAL Processor, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 21 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a central processor (Central Processing Unit, CPU); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may integrate a graphics processor (Graphics Processing Unit, GPU) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, where the computer program, when loaded and executed by the processor 21, is capable of implementing the relevant steps of the network jitter detection method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. Operating system 202 may include Windows, unix, linux, among other things. The data 203 may include, but is not limited to, data related to a network jitter detection method.
In some embodiments, the network jitter detection apparatus may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the structure shown in fig. 6 is not limiting of the network jitter detection apparatus and may include more or fewer components than shown.
Finally, the invention also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps described in the above method embodiments (the method may be a method corresponding to a client side, a method corresponding to a server side, or a method corresponding to a client side and a server side).

Claims (15)

1. The network jitter detection method is characterized by being applied to a client; the method comprises the following steps:
generating a target message based on an application layer of a client, and transmitting the target message to a kernel layer of the client;
Transmitting the target message to a kernel layer of a server based on the kernel layer of the client, and recording time information of processing and transmitting the target message by the client through the target message;
Receiving the target message transmitted by the kernel layer of the server through the kernel layer of the client; the target message records time information of the target message transmitted in a link layer and time information of the server side for processing and transmitting the target message;
Distributing the target message to an application layer of a client, and recording time information for processing and distributing the target message by the client through the target message;
And acquiring each piece of time information in the target message based on an application layer of the client so as to determine network jitter in the transmission process of the target message according to each piece of time information.
2. The network jitter detection method of claim 1, wherein the client-based application layer generating the target message comprises:
Setting an internet control message protocol message header of the target message; the internet control message protocol message header comprises an internet control message protocol type, a code, a checksum, an internet control message protocol identifier and an internet control message protocol serial number;
setting a target message header of the target message; the target message header comprises an internet control message protocol version, the number, a flag bit, an internet control message protocol magic number, reserved bytes, a target message header identifier and a target message header serial number;
setting a plurality of table items; the table entry is used for recording node information, function information and a corresponding time stamp of function triggering involved in the transmission process of the target message.
3. The network jitter detection method according to claim 2, wherein the client-based kernel layer transmits the target message to a server-based kernel layer, and records, through the target message, time information of processing and transmitting the target message by the client, including:
based on the kernel layer of the client, monitoring an internet control message protocol receiving function by an extended data packet filtering technology, and recording a sending time stamp of the target message transmitted from the application layer of the client to the kernel layer of the client by the target message;
when triggering of an internet control message protocol receiving function is monitored, node information representing a client, the internet control message protocol receiving function information and a first timestamp corresponding to the triggering of the internet control message protocol receiving function are recorded based on a first table item of the target message;
Based on the kernel layer of the client, monitoring a network device sending data function through an extended data packet filtering technology;
And when the triggering of the network equipment sending data function is monitored, the node information of the characterization client, the network equipment sending data function information and the corresponding second timestamp of the network equipment sending data function trigger are recorded based on the second table entry of the target message.
4. The network jitter detection method according to claim 3, wherein the client-based application layer obtains each time information in the target message to determine the network jitter in the transmission process of the target message according to each time information, comprising:
Acquiring a sending time stamp of the target message transmitted from an application layer of the client to a kernel layer of the client;
acquiring a first timestamp corresponding to triggering of an internet control message protocol receiving function in a first table item of the target message;
acquiring a second timestamp corresponding to triggering of a network equipment sending data function in a second table entry of the target message;
Determining a difference value between the sending timestamp and the first timestamp to determine delay information of the target message transmitted from an application layer of the client to a kernel layer of the client;
And determining the difference value between the second timestamp and the first timestamp to determine the delay information of the processing of the target message at the kernel layer of the client.
5. The network jitter detection method according to claim 3, wherein the client-based kernel layer transmits the target message to a server-based kernel layer, and records time information of processing and transmitting the target message by the client through the target message, including:
Based on the kernel layer of the client, monitoring a data packet sending function through an extended data packet filtering technology;
When the triggering of the data packet sending function is monitored, node information representing the client, the data packet sending function information and a corresponding third timestamp of the triggering of the data packet sending function are recorded based on a third table entry of the target message.
6. The method for detecting network jitter according to claim 5, wherein the client-based application layer obtains each time information in the target message to determine the network jitter in the transmission process of the target message according to each time information, comprising:
acquiring a second timestamp corresponding to triggering of a network equipment sending data function in a second table entry of the target message;
acquiring a third timestamp corresponding to triggering of a data packet sending function in a third table entry of the target message;
and determining the difference value between the third timestamp and the second timestamp to determine the time delay information sent by the network equipment of the core layer of the client side by the target message.
7. The method for detecting network jitter according to claim 5, wherein the target message records time information of transmission of the target message in a link layer, and time information of processing and transmitting the target message by a server side, comprising:
Based on a kernel layer of the server, monitoring a data packet processing function by an extended data packet filtering technology;
When the triggering of the data packet processing function is monitored, recording node information representing a server, the data packet processing function information and a fourth timestamp corresponding to the triggering of the data packet processing function based on a fourth table entry of the target message;
Based on the kernel layer of the server, monitoring an Internet control message protocol receiving function by an extended data packet filtering technology;
When triggering of the internet control message protocol receiving function is monitored, recording node information representing a service end, the internet control message protocol receiving function information and a fifth timestamp corresponding to triggering of the internet control message protocol receiving function based on a fifth table item of the target message;
Based on the kernel layer of the server, monitoring a network device sending data function through an extended data packet filtering technology;
when the triggering of the network equipment sending data function is monitored, the node information of the characterization server, the network equipment sending data function information and the corresponding sixth timestamp of the network equipment sending data function trigger are recorded based on a sixth table item of the target message;
based on the kernel layer of the client, monitoring a data packet processing function through an extended data packet filtering technology;
when the triggering of the data packet processing function is monitored, the node information, the data packet processing function information and the corresponding seventh timestamp of the triggering of the data packet processing function, which characterize the client side, are recorded based on the seventh table entry of the target message.
8. The method for detecting network jitter according to claim 7, wherein the client-based application layer obtains each time information in the target message to determine the network jitter in the transmission process of the target message according to each time information, comprising:
acquiring a third timestamp corresponding to triggering of a data packet sending function in a third table entry of the target message;
acquiring a fourth timestamp corresponding to the triggering of the data packet processing function in the fourth table entry of the target message;
Determining a difference value between the fourth timestamp and the third timestamp to determine time delay information of a link layer when the target message is transmitted to the server side based on the client side;
Acquiring a fifth timestamp corresponding to triggering of an internet control message protocol receiving function in a fifth table item of the target message;
determining the difference value between the fifth timestamp and the fourth timestamp to determine the time delay information of the target message processed at the kernel layer of the server;
acquiring a sixth timestamp corresponding to triggering of a network equipment sending data function in a sixth table entry of the target message;
determining a difference value between the sixth timestamp and the fifth timestamp to determine delay information of the target message sent by the network equipment at the kernel layer of the server;
acquiring a seventh timestamp corresponding to the triggering of the data packet processing function in the seventh table entry of the target message;
And determining a difference value between the seventh timestamp and the sixth timestamp to determine the time delay information of the link layer when the target message is transmitted to the client side based on the server side.
9. The method for detecting network jitter according to claim 7, wherein the distributing the target message to the application layer of the client, and recording, by the target message, time information of processing and distributing the target message by the client, includes:
based on a kernel layer of the client, monitoring a soft interrupt trigger function through an extended data packet filtering technology;
When the soft interrupt trigger function trigger is monitored, recording node information, soft interrupt trigger function information and an eighth timestamp corresponding to the soft interrupt trigger function trigger of the characterization client based on an eighth table entry of the target message;
Based on a kernel layer of the client, monitoring a data analysis uploading function through an extended data packet filtering technology;
When the triggering of the data analysis uploading function is monitored, node information, data analysis uploading function information and a ninth timestamp corresponding to the triggering of the data analysis uploading function of the client are represented based on a ninth item record of the target message;
based on a kernel layer of the client, monitoring a kernel scheduling function through an expanded data packet filtering technology;
When the triggering of the kernel scheduling function is monitored, recording node information representing the client, the kernel scheduling function information and a tenth timestamp corresponding to the triggering of the kernel scheduling function based on a tenth table entry of the target message;
Monitoring an Internet control message protocol receiving function through an extended data packet filtering technology based on an application layer of a client;
when the triggering of the internet control message protocol receiving function is monitored, node information representing the client, the internet control message protocol receiving function information and an eleventh timestamp corresponding to the triggering of the internet control message protocol receiving function are recorded based on the eleventh table entry of the target message.
10. The network jitter detection method according to claim 9, wherein the client-based application layer obtains each time information in the target message to determine the network jitter in the transmission process of the target message according to each time information, comprising:
acquiring a seventh timestamp corresponding to the triggering of the data packet processing function in the seventh table entry of the target message;
Acquiring an eighth timestamp corresponding to the triggering of the soft interrupt trigger function in an eighth table entry of the target message;
Determining a difference value between the eighth timestamp and the seventh timestamp to determine delay information of the target message for soft interrupt processing at a kernel layer of the client;
acquiring a ninth timestamp corresponding to triggering of a data analysis uploading function in a ninth table entry of the target message;
Determining a difference value between the ninth timestamp and the eighth timestamp to determine delay information of the target message for network message processing at a kernel layer of the client;
acquiring a tenth timestamp corresponding to the kernel scheduling function trigger in a tenth table entry of the target message;
Determining a difference value between the tenth timestamp and the ninth timestamp to determine delay information of scheduling of the target message at a kernel layer of the client;
acquiring an eleventh timestamp corresponding to triggering of an internet control message protocol receiving function in an eleventh table of the target message;
and determining the difference value between the eleventh timestamp and the tenth timestamp to determine the time delay information of the processing of the target message at the application layer of the client.
11. The network jitter detection method applied to the server side is characterized by comprising the following steps of:
Receiving a target message transmitted by a kernel layer of a client based on the kernel layer of the server; the target message is generated by an application layer of the client and comprises time information for processing and transmitting the target message by the client and time information for transmitting the target message at a link layer;
recording time information of processing and transmitting the target message through the target message recording server;
and transmitting the target message to a kernel layer of the client so that the kernel layer of the client distributes the target message to an application layer of the client, recording time information for the client to process and distribute the target message through the target message, and acquiring each time information in the target message based on the application layer of the client so as to determine network jitter in the transmission process of the target message according to each time information.
12. A network jitter detection device, which is characterized by being applied to a client; the device comprises:
The generating module is used for generating a target message based on an application layer of the client and transmitting the target message to a kernel layer of the client;
the first recording module is used for transmitting the target message to the kernel layer of the server based on the kernel layer of the client, and recording time information of the client for processing and transmitting the target message through the target message;
The first receiving module is used for receiving the target message transmitted by the kernel layer of the server through the kernel layer of the client; the target message records time information of the target message transmitted in a link layer and time information of the server side for processing and transmitting the target message;
The second recording module is used for distributing the target message to an application layer of the client and recording time information for processing and distributing the target message by the client through the target message;
The determining module is used for acquiring each piece of time information in the target message based on the application layer of the client so as to determine the network jitter in the transmission process of the target message according to each piece of time information.
13. A network jitter detection apparatus applied to a server, comprising:
The second receiving module is used for receiving the target message transmitted by the kernel layer of the client based on the kernel layer of the server; the target message is generated by an application layer of the client and comprises time information for processing and transmitting the target message by the client and time information for transmitting the target message at a link layer;
the third recording module is used for recording time information of processing and transmitting the target message through the target message recording server;
The transmission module is used for transmitting the target message to the kernel layer of the client so that the kernel layer of the client distributes the target message to the application layer of the client, the time information of processing and distributing the target message by the client is recorded through the target message, and each time information in the target message is acquired based on the application layer of the client so as to determine the network jitter in the transmission process of the target message according to each time information.
14. A network jitter detection apparatus, comprising:
A memory for storing a computer program;
Processor for implementing the steps of the network jitter detection method according to any of claims 1 to 10 when executing said computer program.
15. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the network jitter detection method according to any of claims 1 to 10.
CN202410405349.7A 2024-04-07 2024-04-07 Network jitter detection method, device, equipment and medium Active CN117997802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410405349.7A CN117997802B (en) 2024-04-07 2024-04-07 Network jitter detection method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410405349.7A CN117997802B (en) 2024-04-07 2024-04-07 Network jitter detection method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN117997802A true CN117997802A (en) 2024-05-07
CN117997802B CN117997802B (en) 2024-06-21

Family

ID=90901212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410405349.7A Active CN117997802B (en) 2024-04-07 2024-04-07 Network jitter detection method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117997802B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200726124A (en) * 2005-12-30 2007-07-01 Shinewave Int Inc Assembly information supply system of production line
CN106604355A (en) * 2016-12-09 2017-04-26 深圳市吉祥腾达科技有限公司 Vlan id method for detecting Internet support and router
CN110958153A (en) * 2019-11-01 2020-04-03 上海盈赞通信科技有限公司 Network transmission rate detection system, method and storage medium
WO2022166932A1 (en) * 2021-02-05 2022-08-11 中国移动通信有限公司研究院 Communication authentication method, device, and storage medium
CN115811484A (en) * 2022-11-10 2023-03-17 阿里巴巴(中国)有限公司 Network detection method, device and storage medium
CN116303710A (en) * 2023-01-31 2023-06-23 中国工商银行股份有限公司 Method, device, equipment and medium for detecting format of transaction request message
CN116996419A (en) * 2023-07-06 2023-11-03 东南大学 Method and system for monitoring lightweight transmission delay jitter in data center network
CN117061394A (en) * 2023-08-21 2023-11-14 浙江大学 eBPF-based container network TCP connection time delay monitoring method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200726124A (en) * 2005-12-30 2007-07-01 Shinewave Int Inc Assembly information supply system of production line
CN106604355A (en) * 2016-12-09 2017-04-26 深圳市吉祥腾达科技有限公司 Vlan id method for detecting Internet support and router
CN110958153A (en) * 2019-11-01 2020-04-03 上海盈赞通信科技有限公司 Network transmission rate detection system, method and storage medium
WO2022166932A1 (en) * 2021-02-05 2022-08-11 中国移动通信有限公司研究院 Communication authentication method, device, and storage medium
CN115811484A (en) * 2022-11-10 2023-03-17 阿里巴巴(中国)有限公司 Network detection method, device and storage medium
CN116303710A (en) * 2023-01-31 2023-06-23 中国工商银行股份有限公司 Method, device, equipment and medium for detecting format of transaction request message
CN116996419A (en) * 2023-07-06 2023-11-03 东南大学 Method and system for monitoring lightweight transmission delay jitter in data center network
CN117061394A (en) * 2023-08-21 2023-11-14 浙江大学 eBPF-based container network TCP connection time delay monitoring method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
耿道渠;陈慧;柴俊;李小龙;: "6LoWPAN接入互联网的自适应联合网关的设计与实现", 传感技术学报, no. 03, 15 March 2015 (2015-03-15) *

Also Published As

Publication number Publication date
CN117997802B (en) 2024-06-21

Similar Documents

Publication Publication Date Title
US8826274B2 (en) Virtual machine system, networking device and monitoring method of virtual machine system
US20160330067A1 (en) Network Service Fault Handling Method, Service Management System, and System Management Module
CN108449239B (en) Heartbeat packet detection method, device, equipment and storage medium
CN109831318A (en) A kind of system, method and server obtaining network topology
CN102801737B (en) A kind of asynchronous network communication means and device
CN110851371A (en) Message processing method and related equipment
US11500666B2 (en) Container isolation method and apparatus for netlink resource
CN113992588B (en) Data transmission method, device, electronic equipment and readable storage medium
WO2021208682A1 (en) Data sampling method, apparatus and device for network device, and medium
KR20150018764A (en) Method, apparatus, terminal, and server for synchronizing terminal mirror
CN112261142A (en) Data retransmission method and device for RDMA (remote direct memory Access) network and FPGA (field programmable Gate array)
CN110399329B (en) RDMA data processing method and related device
CN115023919A (en) Firewall rule updating method and device, server and storage medium
JP2010198491A (en) Virtual machine server, and virtual machine network monitoring system using the same
CN117176802B (en) Full-link monitoring method and device for service request, electronic equipment and medium
CN108063809B (en) Machine equipment data acquisition method and acquisition system
CN117997802B (en) Network jitter detection method, device, equipment and medium
CN111494938A (en) Speed measuring method and device, storage medium and electronic device
CN113079152B (en) Data transmission method, device and medium
CN115002028A (en) Message processing method, device and medium
EP3136251B1 (en) Flit transmission method and device of network on chip
JP2016012801A (en) Communication apparatus, communication system, and communication apparatus control method
CN111813621A (en) Data processing method, device, equipment and medium based on Flume data middlebox
CN111130968A (en) Method and terminal for solving Modbus bus communication packet sticking
CN110753043A (en) Communication method, device, server and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant