CN115426284A - Network quality detection method, device, terminal equipment and storage medium - Google Patents

Network quality detection method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN115426284A
CN115426284A CN202211022816.5A CN202211022816A CN115426284A CN 115426284 A CN115426284 A CN 115426284A CN 202211022816 A CN202211022816 A CN 202211022816A CN 115426284 A CN115426284 A CN 115426284A
Authority
CN
China
Prior art keywords
detection
udp
packet
probe
packets
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.)
Pending
Application number
CN202211022816.5A
Other languages
Chinese (zh)
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.)
Shanghai Jiuchi Network Technology Co ltd
Original Assignee
Shanghai Jiuchi Network Technology 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 Shanghai Jiuchi Network Technology Co ltd filed Critical Shanghai Jiuchi Network Technology Co ltd
Priority to CN202211022816.5A priority Critical patent/CN115426284A/en
Publication of CN115426284A publication Critical patent/CN115426284A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/087Jitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a network quality detection method, a device, terminal equipment and a storage medium, wherein after receiving a detection task issued by a task server, the embodiment of the invention confirms a detection target and detection packet parameters according to the detection task and generates a plurality of UDP detection packets according to the detection packet parameters; and then sending a plurality of UDP detection packets to the detection target so as to receive the UDP detection packets returned by the detection target, generate detection packet transmission information, and finally determining the network quality according to the detection packet transmission information. The embodiment of the invention detects the network quality of the client and the target object in the data transmission process by adopting the UDP detection packet, thereby simulating a real data transmission scene, more accurately determining the network quality of the client and the target object in the data transmission process compared with the existing detection mode, and solving the technical problem that the network quality can not be accurately reflected when data transmission is carried out between the client and the server in the prior art.

Description

Network quality detection method, device, terminal equipment and storage medium
Technical Field
The embodiment of the application relates to the field of networks, in particular to a network quality detection method, a network quality detection device, a terminal device and a storage medium.
Background
At present, when a task server provides corresponding business services, the quality of the network environment affects the quality of the business services, and when the network is abnormal, the business services are also abnormal. For example, for traffic services mainly based on data forwarding, the requirements on network performance are high, and thus the quality of the network is particularly sensitive. The conventional network quality detection method generally uses a ping value based on an internet control packet protocol (ICMP) to detect the network quality, but the detection method cannot truly and accurately reflect the network quality when data is transmitted between a client and a task server.
In summary, how to truly and accurately reflect the network quality when data transmission is performed between the client and the server becomes a technical problem which needs to be solved urgently at present.
Disclosure of Invention
The embodiment of the invention provides a network quality detection method, which solves the technical problem that the prior art cannot accurately reflect the network quality when data transmission is carried out between a client and a server.
In a first aspect, an embodiment of the present invention provides a network quality detection method, including:
receiving a detection task issued by a task server, and confirming a detection target and a detection packet parameter according to the detection task;
generating a plurality of UDP detection packets according to the detection packet parameters, and sending the plurality of UDP detection packets to the detection target;
receiving a UDP detection packet returned by the detection target and generating detection packet transmission information;
and determining the network quality according to the detection packet transmission information.
Preferably, the confirming the detection target according to the detection task includes:
acquiring IP address information and port information from the detection task;
and confirming a detection target according to the IP address information and the port information.
Preferably, the probe packet parameters include a transmission interval of UDP probe packets, a size of the UDP probe packets, and a number of the UDP probe packets.
Preferably, the generating a plurality of UDP probe packets according to the probe packet parameter, and sending the plurality of UDP probe packets to the probe target includes:
generating a plurality of detection packets according to the size of the UDP detection packets and the number of the UDP detection packets;
and sequentially sending the UDP detection packets to the detection target according to the sending interval.
Preferably, the probe packet transmission information includes a timestamp for each time of transceiving the UDP probe packet, where the timestamp includes a transmission time and a corresponding reception time of each UDP probe packet.
Preferably, the determining the network quality according to the probe packet transmission information includes:
generating a network index according to the timestamp information of the UDP detection packet;
and determining the network quality according to the network index.
Preferably, the network index includes network delay, network jitter, and packet loss rate.
In a second aspect, an embodiment of the present invention provides a network quality detection apparatus, including:
the information confirmation module is used for receiving a detection task issued by the task server and confirming a detection target and detection packet parameters according to the detection task;
a detection packet sending module, configured to generate a plurality of UDP detection packets according to the detection packet parameters, and send the plurality of UDP detection packets to the detection target;
the detection packet receiving module is used for receiving the UDP detection packet returned by the detection target and generating detection packet transmission information;
and the network quality determining module is used for determining the network quality according to the detection packet transmission information.
Preferably, the information confirmation module is specifically configured to obtain IP address information and port information from the probe task; and confirming a detection target according to the IP address information and the port information.
Preferably, the probe packet parameters include a transmission interval of UDP probe packets, a size of the UDP probe packets, and a number of the UDP probe packets.
Preferably, the detection packet sending module is specifically configured to generate a plurality of detection packets according to the size of the UDP detection packet and the number of the UDP detection packets; and sequentially sending the UDP detection packets to the detection target according to the sending interval.
Preferably, the probe packet transmission information includes a timestamp for each time the UDP probe packet is received and transmitted, where the timestamp includes a transmission time and a corresponding reception time of each UDP probe packet.
Preferably, the network quality determining module is specifically configured to generate a network index according to timestamp information of the UDP detection packet; and determining the network quality according to the network index.
Preferably, the network index includes network delay, network jitter, and packet loss rate.
In a third aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes a processor and a memory;
the memory is used for storing a computer program and transmitting the computer program to the processor;
the processor is adapted to perform a network quality probing method according to instructions in the computer program as described in the first aspect.
In a fourth aspect, embodiments of the present invention provide a storage medium storing computer-executable instructions for performing a network quality detection method as described in the first aspect when executed by a computer processor.
As described above, in the embodiments of the present invention, after receiving a probe task issued by a task server, a probe target and probe packet parameters are determined according to the probe task, and a plurality of UDP probe packets are generated according to the probe packet parameters; and then sending a plurality of UDP detection packets to the detection target so as to receive the UDP detection packets returned by the detection target, generate detection packet transmission information, and finally determining the network quality according to the detection packet transmission information. The embodiment of the invention adopts the UDP detection packet to detect the network quality of the client and the target object in the data transmission process, thereby simulating a real data transmission scene, more accurately determining the network quality of the client and the target object in the data transmission process compared with the existing detection mode, and solving the technical problem that the network quality of the client and the target object in the data transmission process can not be accurately reflected in the prior art.
Drawings
Fig. 1 is a schematic flowchart of a network quality detection method according to an embodiment of the present invention.
Fig. 2 is a schematic view of a scenario for selecting a client according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a format of a UDP probe packet according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a timestamp according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a network quality real-time monitoring platform according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of a network quality detection apparatus according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The following description and the annexed drawings set forth in detail certain illustrative embodiments of the application so as to enable those skilled in the art to practice them. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. The scope of the embodiments of the present application includes the full ambit of the claims, as well as all available equivalents of the claims. Embodiments may be referred to, individually or collectively, herein by the term "invention" merely for convenience and without intending to voluntarily limit the scope of this application to any single invention or inventive concept if more than one is in fact disclosed. Herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed. The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the structures, products and the like disclosed by the embodiments, the description is relatively simple because the structures, the products and the like correspond to the parts disclosed by the embodiments, and the relevant parts can be just described by referring to the method part.
As shown in fig. 1, fig. 1 is a flowchart of a network quality detection method according to an embodiment of the present invention. The network quality detection method provided by the embodiment of the invention can be executed by terminal equipment, the terminal equipment can be realized in a software and/or hardware mode, and the terminal equipment can be composed of two or more physical entities or one physical entity. For example, the terminal device can be a computer, an upper computer, a tablet and other devices. The method comprises the following steps:
and S101, receiving a detection task issued by a task server, and confirming a detection target and a detection packet parameter according to the detection task.
In this embodiment, the probe task for probing the network quality is generated by a dedicated task server, and when the user needs to probe the network quality, parameters of the probe task, such as setting a probe target and parameters of a probe packet, need to be set on the task server. After the setting is finished, the task server can generate a detection task according to the task parameters set by the user and sends the detection task to the client of the terminal equipment. After receiving the detection task issued by the task server, the client can determine the corresponding detection target, the detection packet parameters and the like according to the detection task. In one embodiment, in order to probe the network quality between the client and the data forwarding server during data transmission, the probe target may be set as the data forwarding server, where the data forwarding server refers to a server for performing a data forwarding task, such as a server performing a media data forwarding service. In addition, it should be further explained that, in order to avoid the influence on the client during the actual use process, only the client that has no data transmission with the server currently can execute the probing task, that is, the idle client can execute the probing task. For example, as shown in fig. 2, if two terminal devices are currently installed with a client a and a client B respectively, the client a currently needs to perform data transmission with a forwarding server, and the client B currently does not need to perform data transmission with the forwarding server. At this time, in order to avoid affecting the data transmission process between the client a and the forwarding server, an idle client B needs to be selected to perform the probing task.
On the basis of the above embodiment, the step S1 of confirming the detection target according to the detection task includes:
step S1011 acquires IP address information and port information from the probe task.
In one embodiment, the detection task includes IP address information and port information of the detection target, and after receiving the detection task, the client first analyzes the IP address information and the port information of the detection target from the detection task, so as to determine a machine room where the detection target is located and a corresponding port in the machine room.
Step S1012, confirming the detection target according to the IP address information and the port information.
After the IP address information and the port information are confirmed, since one port is generally connected to only one device, the corresponding detection target can be confirmed through the IP address information and the port information.
In one embodiment, the probe packet parameters include a transmission interval of the UDP probe packet, a size of the UDP probe packet, and a number of the UDP probe packets.
In an embodiment, when setting the probing task parameter, the user needs to set not only the probing target but also the probing packet parameter, so that the client can obtain the probing packet parameter from the probing task after receiving the probing task, so as to subsequently configure the UDP probing packet. In the present embodiment, the probe packet parameters include a transmission interval of the UDP probe packet, a size of the UDP probe packet, and the number of UDP probe packets. In one embodiment, in order to simulate the size of the UDP probe packet in actual traffic, the transmission interval of the UDP probe packet may be set to 100ms, the size of the UDP probe packet is set to 1000 bytes, and the number of the probe packets is set to 10, so as to accurately detect the network quality in a real scene in the following. It can be understood that the sounding packet parameters in this embodiment may be set according to actual needs, and the sounding packet parameters are not specifically limited in this embodiment.
And step S102, generating a plurality of UDP detection packets according to the detection packet parameters, and sending the plurality of UDP detection packets to the detection target.
After confirming the detection target and the detection packet parameters according to the detection task, the client side can generate a plurality of UDP detection packets according to the detection packet parameters and send the plurality of UDP detection packets to the detection target so as to receive UDP detection packets returned by the detection target subsequently, thereby carrying out network quality detection on the data forwarding server through a UDP protocol. In one embodiment, the generating a plurality of UDP probe packets according to the probe packet parameters in step 102, and sending the plurality of UDP probe packets to the probe target includes:
and step 1021, generating a plurality of detection packets according to the size of the UDP detection packets and the number of the UDP detection packets.
First, a plurality of detection packets are generated according to the size of the UDP detection packets and the number of the UDP detection packets in the detection packet parameters. It should be noted that, in this embodiment, the format of the generated UDP detection packet is as shown in fig. 3, where the first part is the length of the detection packet and includes a message of the UDP detection packet; the second part is a check ticket which comprises a ticket used for checking whether the check ticket is a UDP detection packet; the third part is a sequence number of the UDP detection packet, and the sequence number is used for identifying the UDP detection packet; the fourth part is padding, which is used to complement the UDP probe packet size since UDP probe packets are large.
And 1022, according to the sending interval, sending UDP detection packets to the detection target in sequence.
After UDP detection packets with corresponding quantity are generated according to the quantity of the UDP detection packets in the detection packet parameters, the UDP detection packets can be sequentially sent to the detection target according to the sending intervals in the detection packet parameters. Illustratively, the number of UDP probe packets in the probe packet parameters is 10, the transmission interval of the UDP probe packets is 100ms, and after 10 UDP probe packets are generated according to the probe packet parameters, the client transmits one probe packet to the probe target every 100ms until all probe packets are completely transmitted.
And step S103, receiving the UDP detection packet returned by the detection target and generating detection packet transmission information.
After the detection target receives the UDP detection packet sent by the client, whether the UDP detection packet is a legal detection packet or not can be judged according to the message length, token and the serial number of the UDP detection packet, if yes, the detection packet is returned to the client, otherwise, the UDP detection packet is ignored. And after receiving the detection packet returned by the detection target, the client generates corresponding detection packet transmission information. In one embodiment, the probe packet transmission information includes a timestamp for each transceiving of the UDP probe packets, the timestamp including a transmission time and a corresponding reception time of each UDP probe packet. For example, as shown in fig. 4, the timestamp records a timestamp of each time when the UDP probe packet is received and sent, where TX1 is a sending time of a first UDP probe packet, RX1 is a receiving time of the first UDP probe packet, TX2 is a sending time of a second UDP probe packet, RX2 is a receiving time of the second UDP probe packet, and the sending times and the receiving times of other UDP probe packets are analogized in sequence, which is not described again in this embodiment.
In one embodiment, if the client does not receive the UDP probe packet returned by the data forwarding server within a preset time period after sending the UDP probe packet, for example, the client does not receive the UDP probe packet returned by the data forwarding server within 5 seconds after sending the UDP probe packet, it is recorded that the UDP probe packet is not received. It can be understood that, in this embodiment, the preset time length may be set according to actual needs, and specific data of the preset time length is not limited in this embodiment.
And step S104, determining the network quality according to the detection packet transmission information.
And finally, determining the network quality when data transmission is carried out between the client and the data forwarding server according to the detection packet transmission information. For example, a network index for evaluating the network quality may be generated according to the probe packet transmission information, and finally the network quality may be determined according to the network index.
Specifically, in an embodiment, the determining the network quality according to the probe packet transmission information in step S104 includes:
and 1041, generating a network index according to the timestamp information of the UDP detection packet.
First, a network index for evaluating the network quality is generated based on the time stamp of each UDP probe packet transmission and reception. In one embodiment, the network metrics include network latency, network jitter, and packet loss rate; wherein, the network delay is an average value of the difference between the receiving time and the sending time of each UDP probe packet. If the UDP detection packet which is not received exists, ignoring the UDP detection packet when calculating the delay; if the UDP detection packets less than 3 are received, the numerical value of the network delay is considered to be inaccurate, and the network delay is not calculated. The network jitter is calculated by calculating an average of absolute time delay differences of adjacent UDP probe packets, for example, the absolute time delay differences of the first UDP probe packet and the second UDP probe packet = (RX 1-TX 1) - (RX 2-TX 2), and after calculating the absolute time delay differences of all adjacent UDP probe packets, the average is calculated to obtain a specific value of the network jitter. Similarly, if less than 3 UDP detection packets are received, the network jitter value is considered to be inaccurate, and the network jitter is not calculated. The packet loss rate is a ratio of the number of the received UDP probe packets to the number of the transmitted UDP probe packets, and for example, if the number of the transmitted UDP probe packets is 10 and the number of the received UDP probe packets is 8, the packet loss rate is 20%.
And 1042, determining the network quality according to the network index.
And finally, determining the network quality according to the network index. If the network delay, the network jitter and the packet loss rate are smaller, it is indicated that the network quality of data transmission between the client and the data forwarding server is better, and if the network delay, the network jitter and the packet loss rate are larger, it is indicated that the network quality of data transmission between the client and the data forwarding server is worse. In one embodiment, normalization may be performed on the network delay, the network jitter, and the packet loss rate, different weights may be set for the network delay, the network jitter, and the packet loss rate, and then the network delay, the network jitter, and the packet loss rate are weighted and averaged according to the normalized values to obtain the network quality value.
In one embodiment, the detection tasks are issued to the idle clients, and after the network quality of the clients of the same type (the same province and operator) and the same detection target in the same machine room during data transmission is obtained, the network quality can be further aggregated, so that the network quality in hours and the network quality in days are obtained, and therefore a user can select the optimal target object to connect according to the current time, and the network connection quality is improved.
In the above, after receiving the probe task issued by the task server, the embodiment of the present invention determines the probe target and the probe packet parameters according to the probe task, and generates a plurality of UDP probe packets according to the probe packet parameters; and then sending a plurality of UDP detection packets to the detection target so as to receive the UDP detection packets returned by the detection target, generate detection packet transmission information, and finally determining the network quality according to the detection packet transmission information. The embodiment of the invention detects the network quality of the client and the target object in the data transmission process by adopting the UDP detection packet, thereby simulating a real data transmission scene, more accurately determining the network quality of the client and the target object in the data transmission process compared with the existing detection mode, and solving the technical problem that the network quality can not be accurately reflected when data transmission is carried out between the client and the server in the prior art. In addition, for some users, after establishing TCP connection with the data forwarding server, data cannot be received and sent through UDP, and the embodiment of the present invention can successfully discover such users, and in some regions, the proportion of such users can reach 10%.
In an embodiment, a network quality real-time monitoring platform is further provided, as shown in fig. 5, the network quality real-time monitoring platform is remotely connected to a terminal device, a network quality real-time query module and an alarm module are arranged in the network quality real-time monitoring platform, the network quality real-time query module can issue a detection task to a client on the terminal device so as to query the network quality during data transmission between the client and a server in real time, and the alarm module can issue an alarm to remind a worker to pay attention when the network quality meets a preset alarm condition, so that the influence of a network/machine room fault on a user is reduced. The embodiment of the invention adopts the UDP detection packet to detect the network quality of the client and the target object in the data transmission process, thereby simulating a real data transmission scene, more accurately determining the network quality of the client and the target object in the data transmission process compared with the existing detection mode, and solving the technical problem that the network quality in the data transmission process between the client and the server cannot be accurately reflected in the prior art
As shown in fig. 6, fig. 6 is a network quality detection apparatus provided in an embodiment of the present invention, including:
the information confirmation module 201 is configured to receive a probe task issued by the task server, and confirm a probe target and probe packet parameters according to the probe task;
a detection packet sending module 202, configured to generate a plurality of UDP detection packets according to the detection packet parameters, and send the plurality of UDP detection packets to a detection target;
a detection packet receiving module 203, configured to receive a UDP detection packet returned by the detection target, and generate detection packet transmission information;
and a network quality determining module 204, configured to determine the network quality according to the probe packet transmission information.
On the basis of the foregoing embodiment, the information confirmation module 201 is specifically configured to obtain IP address information and port information from the probe task; and confirming the detection target according to the IP address information and the port information.
On the basis of the above-described embodiment, the probe packet parameters include the transmission interval of the UDP probe packet, the size of the UDP probe packet, and the number of UDP probe packets.
On the basis of the foregoing embodiment, the detection packet sending module 202 is specifically configured to generate a plurality of detection packets according to the size of the UDP detection packets and the number of the UDP detection packets; and according to the sending interval, sequentially sending UDP detection packets to the detection target.
On the basis of the above embodiment, the probe packet transmission information includes a timestamp for each time the UDP probe packet is received and transmitted, and the timestamp includes a transmission time and a corresponding reception time of each UDP probe packet.
On the basis of the foregoing embodiment, the network quality determining module 204 is specifically configured to generate a network index according to timestamp information of a UDP detection packet; and determining the network quality according to the network index.
On the basis of the above embodiment, the network indicators include network delay, network jitter, and packet loss rate.
As described above, in the embodiments of the present invention, the UDP detection packet is used to detect the network quality of the client and the target object during the data transmission process, so as to simulate a real data transmission scenario, and compared to the existing detection method, the network quality of the client and the target object during the data transmission process can be more accurately determined, thereby solving the technical problem that the network quality during the data transmission between the client and the server cannot be accurately reflected in the prior art
The present embodiment further provides a terminal device, as shown in fig. 7, a terminal device 30, where the terminal device includes a processor 300 and a memory 301;
the memory 301 is used for storing a computer program 302 and transmitting the computer program 302 to the processor;
the processor 300 is configured to execute the steps in one of the above embodiments of the network quality detection method according to the instructions in the computer program 302.
Illustratively, the computer program 302 may be partitioned into one or more modules/units that are stored in the memory 301 and executed by the processor 300 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 302 in the terminal device 30.
The terminal device 30 may be a desktop computer, a notebook, a palm computer, a cloud task server, or other computing devices. The terminal device 30 may include, but is not limited to, a processor 300, a memory 301. Those skilled in the art will appreciate that fig. 7 is merely an example of the terminal device 30, and does not constitute a limitation of the terminal device 30, and may include more or less components than those shown, or combine some of the components, or different components, for example, the terminal device 30 may further include an input-output device, a network access device, a bus, etc.
The Processor 300 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 301 may be an internal storage unit of the terminal device 30, such as a hard disk or a memory of the terminal device 30. The memory 301 may also be an external storage device of the terminal device 30, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 30. Further, the memory 301 may also include both an internal storage unit and an external storage device of the terminal device 30. The memory 301 is used for storing the computer program and other programs and data required by the terminal device 30. The memory 301 may also be used to temporarily store data that has been output or is to be output.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may substantially or partially contribute to the prior art, or all or part of the technical solution may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a task server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing computer programs.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for network quality detection, the method comprising the steps of:
receiving a detection task issued by a task server, and confirming a detection target and a detection packet parameter according to the detection task;
generating a plurality of UDP detection packets according to the detection packet parameters, and sending the plurality of UDP detection packets to the detection target;
receiving a UDP detection packet returned by the detection target and generating detection packet transmission information;
and determining the network quality according to the detection packet transmission information.
It should be noted that the foregoing is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will appreciate that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, adaptations, and substitutions are possible, without departing from the scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments can be included without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for network quality detection, comprising:
receiving a detection task issued by a task server, and confirming a detection target and a detection packet parameter according to the detection task;
generating a plurality of UDP detection packets according to the detection packet parameters, and sending the plurality of UDP detection packets to the detection target;
receiving a UDP detection packet returned by the detection target and generating detection packet transmission information;
and determining the network quality according to the detection packet transmission information.
2. The method according to claim 1, wherein the confirming of the probe target according to the probe task comprises:
acquiring IP address information and port information from the detection task;
and confirming a detection target according to the IP address information and the port information.
3. The method of claim 1, wherein the probe parameters include a transmission interval of UDP probe packets, a size of the UDP probe packets, and a number of the UDP probe packets.
4. The method according to claim 2, wherein the generating a plurality of UDP probe packets according to the probe packet parameters, and sending the plurality of UDP probe packets to the probe target includes:
generating a plurality of detection packets according to the size of the UDP detection packets and the number of the UDP detection packets;
and sequentially sending the UDP detection packets to the detection target according to the sending interval.
5. The method according to claim 1, wherein the probe packet transmission information includes a timestamp for each sending and receiving of the UDP probe packet, and the timestamp includes a sending time and a corresponding receiving time of each UDP probe packet.
6. The method according to claim 5, wherein the determining the network quality according to the probe packet transmission information comprises:
generating a network index according to the timestamp information of the UDP detection packet;
and determining the network quality according to the network index.
7. The method according to claim 6, wherein the network indicators include network delay, network jitter, and packet loss ratio.
8. A network quality detection apparatus, comprising:
the information confirmation module is used for receiving a detection task issued by the task server and confirming a detection target and detection packet parameters according to the detection task;
a detection packet sending module, configured to generate a plurality of UDP detection packets according to the detection packet parameters, and send the plurality of UDP detection packets to the detection target;
the detection packet receiving module is used for receiving the UDP detection packet returned by the detection target and generating detection packet transmission information;
and the network quality determining module is used for determining the network quality according to the detection packet transmission information.
9. A terminal device, characterized in that the terminal device comprises a processor and a memory;
the memory is used for storing a computer program and transmitting the computer program to the processor;
the processor is configured to perform a network quality probing method according to instructions in the computer program as claimed in any of claims 1 to 7.
10. A storage medium storing computer executable instructions for performing a network quality probing method as claimed in any one of claims 1 to 7 when executed by a computer processor.
CN202211022816.5A 2022-08-25 2022-08-25 Network quality detection method, device, terminal equipment and storage medium Pending CN115426284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211022816.5A CN115426284A (en) 2022-08-25 2022-08-25 Network quality detection method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211022816.5A CN115426284A (en) 2022-08-25 2022-08-25 Network quality detection method, device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115426284A true CN115426284A (en) 2022-12-02

Family

ID=84199192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211022816.5A Pending CN115426284A (en) 2022-08-25 2022-08-25 Network quality detection method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115426284A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116033264A (en) * 2023-01-05 2023-04-28 中国联合网络通信集团有限公司 Image processing parameter adjusting method, device and equipment
CN117675716A (en) * 2024-01-26 2024-03-08 北京天维信通科技股份有限公司 Method and device for accelerating file transmission based on modification of TCP sliding window parameters

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021078061A1 (en) * 2019-10-21 2021-04-29 中兴通讯股份有限公司 Data transmission quality measurement method, forwarding device and readable storage medium
CN113347286A (en) * 2021-06-17 2021-09-03 深圳前海微众银行股份有限公司 Method, device and equipment for determining domain name server and storage medium
CN114584485A (en) * 2022-01-30 2022-06-03 阿里巴巴(中国)有限公司 Method, device, equipment and computer readable storage medium for detecting edge network quality

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021078061A1 (en) * 2019-10-21 2021-04-29 中兴通讯股份有限公司 Data transmission quality measurement method, forwarding device and readable storage medium
CN113347286A (en) * 2021-06-17 2021-09-03 深圳前海微众银行股份有限公司 Method, device and equipment for determining domain name server and storage medium
CN114584485A (en) * 2022-01-30 2022-06-03 阿里巴巴(中国)有限公司 Method, device, equipment and computer readable storage medium for detecting edge network quality

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116033264A (en) * 2023-01-05 2023-04-28 中国联合网络通信集团有限公司 Image processing parameter adjusting method, device and equipment
CN117675716A (en) * 2024-01-26 2024-03-08 北京天维信通科技股份有限公司 Method and device for accelerating file transmission based on modification of TCP sliding window parameters

Similar Documents

Publication Publication Date Title
CN115426284A (en) Network quality detection method, device, terminal equipment and storage medium
CN109194551B (en) Method, device and system for testing performance of real-time Ethernet equipment
CN109656574B (en) Transaction time delay measurement method and device, computer equipment and storage medium
CN101035037B (en) Method, system and related device for detecting the network communication quality
EP3368997A1 (en) Network aware distributed business transaction anomaly detection
JP2006270961A (en) Packet trace diagnostic system
EP3682595B1 (en) Obtaining local area network diagnostic test results
CN109921962A (en) Bandwidth Measurement Method, device, computer readable storage medium and computer equipment
CN110958161B (en) Block chain link point monitoring method and device and storage medium
CN111510345A (en) Method and device for detecting edge node abnormity
US9935853B2 (en) Application centric network experience monitoring
CN104967540A (en) Server status detection method and apparatus thereof
CN111431772B (en) Network delay measuring method, system, readable storage medium and terminal equipment
CN114422412B (en) Equipment detection method and device and communication equipment
WO2020135429A1 (en) Traffic analysis method and apparatus, and traffic detection method and apparatus
CN107306200B (en) Network fault early warning method and gateway for network fault early warning
US9509581B2 (en) Methods for monitoring data traffic in a gateway device
CN112118151A (en) Network speed measuring method, device, system, electronic equipment and storage medium
CN111343135A (en) Network security situation detection method
JP2014523671A (en) Assessing the overall performance of interactive application services
US8228813B2 (en) Network quality measurement based on quality measurement packet
CN105611406B (en) One kind access net service provider monitors user to video server lag characteristic method
CN110222084B (en) Method and device for reporting monitoring information of hotspot equipment, storage medium and terminal
CN112637055A (en) Multi-link aggregation method, system and storage medium based on VPN tunnel
CN115225530B (en) Asset state monitoring method, device, equipment 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