CN108075934B - Network quality monitoring method, device and system - Google Patents

Network quality monitoring method, device and system Download PDF

Info

Publication number
CN108075934B
CN108075934B CN201611005377.1A CN201611005377A CN108075934B CN 108075934 B CN108075934 B CN 108075934B CN 201611005377 A CN201611005377 A CN 201611005377A CN 108075934 B CN108075934 B CN 108075934B
Authority
CN
China
Prior art keywords
link
test
proxy server
loss rate
packet
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.)
Active
Application number
CN201611005377.1A
Other languages
Chinese (zh)
Other versions
CN108075934A (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.)
Yunnan Tengyun Information Industry Co.,Ltd.
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201611005377.1A priority Critical patent/CN108075934B/en
Publication of CN108075934A publication Critical patent/CN108075934A/en
Application granted granted Critical
Publication of CN108075934B publication Critical patent/CN108075934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

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

Abstract

The invention discloses a network quality monitoring method, a device and a system, which are used for monitoring the network quality under the condition of not increasing the network pressure, and the method comprises the following steps: establishing a first communication link between the client and the first proxy server, wherein the first communication link comprises a data link and a test link; sending a test data packet to a first proxy server through a test link at a first frequency, receiving response information of the test data packet, and acquiring a time difference between the received response information and the time difference between the sending of the test data packet as network delay data; detecting the packet loss rate of a communication data packet on a data link; when the packet loss rate of the communication data packet on the data link is greater than a first threshold value, sending a test data packet to the first proxy server through the test link at a second frequency, and detecting the packet loss rate on the test link, wherein the second frequency is greater than the first frequency; and when the network delay data is larger than a second threshold value or the packet loss rate on the test link is larger than a third threshold value, determining that the first communication link has a problem.

Description

Network quality monitoring method, device and system
Technical Field
The invention relates to the technical field of internet, in particular to a network quality monitoring method, device and system.
Background
Currently, a proxy server can be used to relay a communication data packet between a client and a target server, and the network quality of a communication link between the client and the proxy server affects the communication speed between the client and the target server.
In the prior art, a special test link can be established between a client and a proxy server, the client sends a heartbeat data packet to the proxy server at regular time by using the test link to detect whether the link is disconnected, the network delay of the proxy link can be calculated on the basis of the heartbeat data packet, and the network quality of the proxy link is judged according to the size of the network delay. The network quality is judged to be one-sided only through network delay, the client can also send a sufficient amount of test data packets to the proxy server by using the test link to obtain the packet loss rate of the proxy link, the more the test data packets are sent, the more accurate the obtained packet loss rate is, and if the number of the test data packets is too small, the calculated packet loss rate has no reference significance.
However, to calculate a relatively accurate packet loss rate, a large number of additional test packets need to be sent, and the additional test packets increase the pressure of the proxy link, increase network congestion, and possibly deteriorate the original proxy link with quality problems. That is, in the prior art, in order to obtain more accurate network quality information such as packet loss rate, network pressure is increased.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus and a system for monitoring network quality, so as to solve the technical problem in the prior art that network pressure is increased in order to obtain more accurate network quality information by detection.
In order to solve the above problems, the technical scheme provided by the invention is as follows:
the embodiment of the invention provides a network quality monitoring method, which is used for establishing a first communication link between a client and a first proxy server, wherein the first communication link comprises a data link and a test link, and the method comprises the following steps:
sending a test data packet to the first proxy server through the test link at a first frequency, receiving response information of the test data packet, and acquiring a time difference between the receiving of the response information and the sending of the test data packet as network delay data;
detecting the packet loss rate of a communication data packet on the data link;
when the packet loss rate of the communication data packet on the data link is greater than a first threshold value, sending a test data packet to the first proxy server through the test link at a second frequency, and detecting the packet loss rate on the test link, wherein the second frequency is greater than the first frequency;
and when the network delay data is larger than a second threshold value or the packet loss rate on the test link is larger than a third threshold value, determining that the first communication link has a problem.
An embodiment of the present invention further provides a network quality monitoring apparatus, where the apparatus includes:
the system comprises a first establishing unit, a second establishing unit and a third establishing unit, wherein the first establishing unit is used for establishing a first communication link between a client and a first proxy server, and the first communication link comprises a data link and a test link;
an obtaining unit, configured to send a test data packet to the first proxy server through the test link at a first frequency, receive response information of the test data packet, and obtain a time difference between receiving the response information and sending the test data packet as network delay data;
the first detection unit is used for detecting the packet loss rate of the communication data packet on the data link;
a second detecting unit, configured to send a test packet to the first proxy server through the test link at a second frequency when a packet loss rate of the communication packet on the data link is greater than a first threshold, and detect the packet loss rate on the test link, where the second frequency is greater than the first frequency;
and the determining unit is used for determining that the first communication link has a problem when the network delay data is greater than a second threshold or the packet loss rate on the test link is greater than a third threshold.
An embodiment of the present invention further provides a network quality monitoring system, where the system includes:
the system comprises a client, a first proxy server and a target server; the client communicates with the target server through the first proxy server;
the client is the network quality monitoring device.
Therefore, the embodiment of the invention has the following beneficial effects:
the method comprises the steps of sending a test data packet to a first proxy server at a lower first frequency on a test link to obtain network delay data, wherein the test data packet is sent at a lower frequency without reducing the network quality, and simultaneously detecting the packet loss rate of a real communication data packet transmitted on the data link, when the packet loss rate on the data link is greater than a first threshold, it needs to be verified whether the packet loss rate is high due to poor network quality or inaccurate due to less real communication data packets transmitted on the current data link, so that the test data packet needs to be further sent to the first proxy server at a higher second frequency on the test link to detect the packet loss rate on the test link, and if the network delay data is greater than a second threshold or the packet loss rate on the test link is greater than a third threshold, it can be determined that a problem exists in the first communication link between a client and the first proxy server, in the process of monitoring the network quality, the packet loss rate is mainly detected by using the actually sent communication data packet, the network pressure is not increased, and more accurate network quality information can be obtained. In addition, when a communication link between the client and the current proxy server has a problem, other proxy servers can be switched to use in time, and the problem that the client cannot normally communicate with the target server is avoided.
Drawings
FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present invention;
fig. 2 is a flowchart of a first embodiment of a network quality monitoring method according to the present invention;
fig. 3 is a flowchart of a second embodiment of a network quality monitoring method according to the present invention;
fig. 4 is a schematic view of an application scenario of the network quality monitoring method according to the embodiment of the present invention;
fig. 5 is a schematic view of an application scenario of the network quality monitoring method according to the embodiment of the present invention;
fig. 6 is a schematic diagram of an embodiment of a network quality monitoring apparatus provided in the embodiment of the present invention;
fig. 7 is a schematic diagram of a first embodiment of a network quality monitoring system provided in an embodiment of the present invention;
fig. 8 is a schematic diagram of a second embodiment of a network quality monitoring system provided in the embodiments of the present invention;
fig. 9 is a schematic diagram of a terminal provided in an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Referring to fig. 1, an application scenario of the embodiment of the present invention will be explained first. When the client needs to communicate with the target server, whether the proxy server needs to be used or not can be judged based on the address of the target server, for example, a network where the client is located belongs to a first network operator, a network where the target server is located belongs to a second network operator, cross-network communication is involved, the communication speed of the network where the client and the target server directly communicate is possibly poor, at the moment, the proxy server can be used, and the proxy server transfers data packets between the client and the target server, so that the communication speed is accelerated. In the embodiment of the invention, the direct communication link between the client and the proxy server comprises a data link and a test link, and the client can automatically monitor the network quality of the communication link between the client and the proxy server. In the embodiment of the present invention, there may be a plurality of proxy servers, for example, when there is a problem in the communication link between the client and the first proxy server, the client may automatically switch to communicate with the second proxy server, and the switching process is transparent to the user using the client, that is, the switching process does not require user intervention. In addition, the first proxy server and the second proxy server can also communicate with the target server through the third proxy server, so that the data source of the target server is not changed in the switching process, and the target server is not influenced. The implementation of network quality monitoring and transparent link switching in the embodiments of the present invention will be described in detail in the following embodiments.
The embodiment of the present invention will be described from the perspective of a network quality monitoring device, which may be specifically integrated in a client, where the client may be loaded in a terminal, and the terminal may specifically be a smart phone, a tablet computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compressed standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compressed standard Audio Layer 3) player, a laptop portable computer, a desktop computer, and the like.
Referring to fig. 2, a first embodiment of a network quality monitoring method provided in the embodiment of the present invention may include the following steps:
step 201: a first communication link between the client and the first proxy server is established, the first communication link including a data link and a test link.
The first proxy server may be a proxy server currently connected to the client, a communication link between the client and the first proxy server is a first communication link, and the first communication link may include a data link and a test link, where the test link is used to transmit a test data packet, and the data link is used to transmit a communication data packet of normal communication.
Step 202: and sending a test data packet to the first proxy server through the test link at a first frequency, receiving response information of the test data packet, and acquiring a time difference between the received response information and the time difference between the sending of the test data packet as network delay data.
Because the test link is established by the client, the client can control the frequency of sending the test data packet on the test link, the first frequency can be set according to the actual situation, and the test data packet is sent to the first proxy server at a lower frequency on the test link, so that the network quality cannot be reduced. The test data packets may have a transmission sequence number, for example, the transmission sequence number of the first test data packet is 1, the transmission sequence number of the second test data packet is 2, and so on. The first proxy server may return response information of the test data packet to the client after receiving the test data packet, the response information of the test data packet may also include a sending sequence number, and any test data packet is the same as the sending sequence number of the response information thereof, so that a time difference between a time of receiving the response information of the test data packet and a time of sending the corresponding test data packet may be obtained as network delay data.
Step 203: and detecting the packet loss rate of the communication data packets on the data link.
In general, communication data packets normally generated between the client and the first proxy server are more, and in the embodiment of the invention, the packet loss rate is calculated by directly utilizing the communication data packets on the data link, so that the calculated packet loss rate is more accurate and the network pressure is not increased.
In some possible implementation manners of the present invention, the communication data packet includes an uplink communication data packet and a downlink communication data packet, and both the uplink communication data packet and the downlink communication data packet include the transmission sequence number.
Similarly, the uplink communication data packet and the downlink communication data packet may both include a transmission sequence number, the transmission sequence number in the uplink communication data packet represents the sequence in which the client transmits the communication data packets, and the transmission sequence number in the downlink communication data packet represents the sequence in which the first proxy server transmits the communication data packets.
The specific implementation of step 203 may include:
sending an uplink communication data packet to a first proxy server through a data link, and receiving a data link uplink packet loss rate sent by the first proxy server, wherein the data link uplink packet loss rate is calculated by the first proxy server according to a sending sequence number in the uplink communication data packet;
receiving a downlink communication data packet sent by a first proxy server, and calculating the downlink packet loss rate of a data link according to a sending sequence number in the downlink communication data packet;
and determining the packet loss rate of the communication data packet on the data link according to the uplink packet loss rate of the data link and the downlink packet loss rate of the data link.
The first proxy server can determine the total number and the loss number of the uplink communication data packets according to the continuity of the sending sequence numbers in the uplink communication data packets, and then divides the loss number of the uplink communication data packets by the total number of the uplink communication data packets to obtain the uplink packet loss rate of the data link, and the first proxy server can send the uplink packet loss rate of the data link to the client. Similarly, the client can determine the total number and the loss number of the downlink communication data packets according to the continuity of the sending sequence numbers in the downlink communication data packets, and then divide the loss number of the downlink communication data packets by the total number of the downlink communication data packets to calculate the downlink packet loss rate of the data link. The packet loss rate of the communication data packet on the data link can be obtained by calculating the uplink packet loss rate of the data link and the downlink packet loss rate of the data link.
Step 204: when the packet loss rate of the communication data packet on the data link is larger than a first threshold value, the test data packet is sent to the first proxy server through the test link at a second frequency, and the packet loss rate on the test link is detected, wherein the second frequency is larger than the first frequency.
In view of the fact that the effectiveness of the packet loss rate is proportional to the input data sampling amount for calculating the packet loss rate, if the number of communication data packets actually sent on the data link is lower than a basic value, that is, no communication data packet is sent and received between the client and the proxy server currently, the normal behavior is adopted, the calculated packet loss rate of the communication data packets on the data link may be inaccurate, and when the packet loss rate of the communication data packets on the data link is greater than a first threshold, in order to eliminate the above situation, further verification needs to be performed with reference to the packet loss rate when test data packets are sent and received on the test link. And if the packet loss rate on the test link is low, the network is still normal. Thus, when the packet loss rate of the communication data packet on the data link is greater than the first threshold, the test data packet needs to be sent to the first proxy server through the test link at the second frequency to detect the packet loss rate on the test link, where the second frequency is greater than the first frequency, that is, the response information of the test data packet received by the test data packet is sent on the test link at a higher frequency to calculate the packet loss rate on the test link. Because the packet loss rate on the data link is possibly inaccurate due to less data of the transceiving communication data packets on the data link, the transmission frequency of the test data packets on the test link is increased, and the actual network communication cannot be influenced too much.
In some possible implementation manners of the present invention, the sending, by the test link, the test data packet to the first proxy server at the second frequency, and the specific implementation of detecting the packet loss rate on the test link may include:
sending a test data packet to the first proxy server through the test link at a second frequency, and receiving the uplink packet loss rate of the test link sent by the first proxy server, wherein the uplink packet loss rate of the test link is calculated by the first proxy server according to a sending sequence number in the test data packet;
receiving response information of the test data packet, and calculating the downlink packet loss rate of the test link according to the sending sequence number in the response information of the test data packet;
and determining the packet loss rate on the test link according to the uplink packet loss rate of the test link and the downlink packet loss rate of the test link.
Similarly, the first proxy server may determine the total number and the loss number of the test data packets according to the continuity of the transmission sequence numbers in the test data packets, and further calculate the uplink packet loss rate of the test link by dividing the loss number of the test data packets by the total number of the test data packets, and the first proxy server may transmit the uplink packet loss rate of the test link to the client. The client can determine the total number and the loss number of the response information of the test data packet according to the continuity of the sending sequence number in the response information of the test data packet, and then the response information loss number of the test data packet is divided by the total number of the response information of the test data packet to calculate the downlink packet loss rate of the test link. The packet loss rate on the test link can be obtained by synthesizing the uplink packet loss rate of the test link and the downlink packet loss rate of the test link.
It should be noted that, the step 202 is a process of obtaining network delay data, and the steps 203-.
Step 205: and when the network delay data is larger than a second threshold value or the packet loss rate on the test link is larger than a third threshold value, determining that the first communication link has a problem.
The first threshold, the second threshold, and the third threshold may be set according to an actual situation, and when the packet loss rate on the test link is greater than the third threshold, it may be determined that the first communication link has a problem by further verifying that the packet loss rates on the data link and the test link are both greater than the thresholds, and meanwhile, when the network delay data is greater than the second threshold, it may also be determined that the first communication link has a problem.
In this embodiment, network delay data is obtained by sending a test data packet to a first proxy server at a lower first frequency on a test link, where the test data packet is sent at a lower frequency without reducing network quality, and at the same time, a packet loss rate of a real communication data packet transmitted on the data link is detected, when the packet loss rate on the data link is greater than a first threshold, it needs to be verified whether the packet loss rate is high due to poor network quality or is inaccurate due to less real communication data packets transmitted on the current data link, so it needs to further send the test data packet to the first proxy server at a higher second frequency on the test link, detect the packet loss rate on the test link, and if the network delay data is greater than a second threshold or the packet loss rate on the test link is greater than a third threshold, it can be determined that a problem exists in the first communication link between the client and the first proxy server, in the process of monitoring the network quality, the packet loss rate is mainly detected by using the actually sent communication data packet, the network pressure is not increased, and more accurate network quality information can be obtained.
Referring to fig. 3, a second embodiment of a network quality monitoring method provided in the embodiment of the present invention may include the following steps:
step 301: triggering network quality monitoring.
Step 302: network latency data is detected.
Step 303: and judging whether the network delay data is larger than a first threshold value, if so, entering the step 308, and if not, returning to the step 301.
Step 304: and detecting the packet loss rate on the data link.
Step 305: and judging whether the packet loss rate on the data link is greater than a second threshold value, if so, entering a step 306, and if not, returning to the step 301.
Step 306: and detecting the packet loss rate on the test link.
Step 307: and judging whether the packet loss rate on the test link is greater than a third threshold value, if so, entering the step 308, and if not, returning to the step 301.
Step 308: and carrying out proxy server switching.
In this embodiment, reference may be made to the above embodiments for ways of detecting network delay data, detecting a packet loss rate on a data link, and detecting a packet loss rate on a test link, which are not described herein again. The important point in this embodiment is that when it is determined that the first communication link has a problem when the network delay data is greater than the second threshold or the packet loss rate on the test link is greater than the third threshold, the proxy server needs to be switched, and the step of switching the proxy server may include: establishing a second communication link between the client and a second proxy server, wherein the second communication link comprises a data link and a test link; migrating session information of a first communication link into a second communication link; releasing the first communication link; the second proxy server is changed to the first proxy server.
In practical application, the client may store a candidate list of proxy servers, and when a problem exists in a first communication link with a first proxy server currently connected, one proxy server is selected from the candidate list of proxy servers as a second proxy server, where the second proxy server is a proxy server connected to the client after handover. After the second proxy server is selected, a second communication link between the client and the second proxy server may be established, the communication link between the client and the second proxy server is the second communication link, the second communication link may include a data link and a test link, the test link is used to transmit a test data packet, and the data link is used to transmit a communication data packet of normal communication. After the new second communication link is created, the data link of the first communication link and the session information related to the test link, such as the transmission sequence number of the received communication data packet, are migrated to the new second communication link. The original first communication link is then discarded, the resources are released, and the second proxy server operates completely in place of the first proxy server.
In this embodiment, when a communication link between the client and the current proxy server has a problem, other proxy servers can be switched to use in time, so as to avoid that the client and the target server cannot normally communicate. Compared with the prior art that if a communication link has a problem, the user can only be prompted, and the user can use a new proxy server when the user restarts the application program to communicate with the target server to establish new network connection next time.
Referring to fig. 4, which is a schematic diagram illustrating an application scenario of the network quality monitoring method provided in the embodiment of the present invention, a client may communicate with a first proxy server, and the first proxy server may communicate with a target server through a third proxy server. The client in this embodiment may implement the network quality monitoring method provided in the foregoing embodiments.
Referring to fig. 5, which is a schematic diagram illustrating another application scenario of the network quality monitoring method provided in the embodiment of the present invention, a client may communicate with a first proxy server, and when a proxy server switch is required, the client may communicate with a second proxy server, and the second proxy server may communicate with a target server through a third proxy server. The client in this embodiment may implement the network quality monitoring method provided in the foregoing embodiments.
Before switching, the first proxy server can access the target server through the third proxy server, after switching, the second proxy server can access the target server through the third proxy server, and the target server does not exclude a new proxy server as to the fact that the data source of the target server is not changed. For the client, the first communication node to the outside is a network quality monitoring device in the client, no change occurs in the proxy server switching process, the client does not reject a new proxy server, and the whole proxy server transparent switching process can be smoothly realized.
Correspondingly, referring to fig. 6, an embodiment of the network quality monitoring apparatus provided in the embodiment of the present invention may include:
a first establishing unit 601, configured to establish a first communication link between the client and the first proxy server, where the first communication link includes a data link and a test link.
An obtaining unit 602, configured to send a test data packet to the first proxy server through the test link at the first frequency, receive response information of the test data packet, and obtain a time difference between receiving the response information and sending the test data packet as network delay data.
A first detecting unit 603, configured to detect a packet loss rate of the communication data packet on the data link.
In some possible implementation manners of the present invention, the communication data packet may include an uplink communication data packet and a downlink communication data packet, and both the uplink communication data packet and the downlink communication data packet may include a sending sequence number;
the first detection unit may include:
the first receiving subunit is configured to send an uplink communication data packet to the first proxy server through the data link, and receive a data link uplink packet loss rate sent by the first proxy server, where the data link uplink packet loss rate is calculated by the first proxy server according to a sending sequence number in the uplink communication data packet;
the first calculating subunit is configured to receive a downlink communication data packet sent by the first proxy server, and calculate a downlink packet loss rate of the data link according to a sending sequence number in the downlink communication data packet;
the first determining subunit is configured to determine, according to the uplink packet loss rate of the data link and the downlink packet loss rate of the data link, a packet loss rate of the communication data packet on the data link.
A second detecting unit 604, configured to send a test packet to the first proxy server through the test link at a second frequency when a packet loss rate of the communication packet on the data link is greater than a first threshold, and detect the packet loss rate on the test link, where the second frequency is greater than the first frequency.
In some possible implementation manners of the present invention, the test data packet and the response information of the test data packet may both include a sending sequence number;
the second detection unit may include:
the second receiving subunit is configured to, when the packet loss rate of the communication data packet on the data link is greater than a first threshold, send a test data packet to the first proxy server through the test link at a second frequency, receive a test link uplink packet loss rate sent by the first proxy server, where the test link uplink packet loss rate is calculated by the first proxy server according to a sending sequence number in the test data packet;
the second receiving subunit is used for receiving the response information of the test data packet and calculating the downlink packet loss rate of the test link according to the sending sequence number in the response information of the test data packet;
and the second determining subunit is configured to determine the packet loss rate on the test link according to the uplink packet loss rate of the test link and the downlink packet loss rate of the test link.
The determining unit 605 is configured to determine that the first communication link has a problem when the network delay data is greater than the second threshold or the packet loss rate on the test link is greater than a third threshold.
In some possible implementation manners of the present invention, an embodiment of the network quality monitoring apparatus provided in the embodiment of the present invention may further include:
the second establishing unit is used for establishing a second communication link between the client and the second proxy server when the first communication link is determined to have problems, and the second communication link comprises a data link and a test link;
the migration unit is used for migrating the session information of the first communication link into the second communication link;
a releasing unit configured to release the first communication link;
a changing unit for changing the second proxy server to the first proxy server.
In some possible implementations of the invention, the first proxy server may communicate with the target server through a third proxy server; the second proxy server may communicate with the target server through a third proxy server.
Thus, by sending the test data packet to the first proxy server at a lower first frequency on the test link to obtain network delay data, the test data packet is sent at a lower frequency without reducing the network quality, and at the same time, the packet loss rate of the real communication data packet transmitted on the data link is detected, when the packet loss rate on the data link is greater than a first threshold, it needs to be verified whether the packet loss rate is high due to poor network quality or the packet loss rate is inaccurate due to less real communication data packets transmitted on the current data link, so it needs to further send the test data packet to the first proxy server at a higher second frequency on the test link to detect the packet loss rate on the test link, and if the network delay data is greater than a second threshold or the packet loss rate on the test link is greater than a third threshold, it can be determined that there is a problem in the first communication link between the client and the first proxy server, in the process of monitoring the network quality, the packet loss rate is mainly detected by using the actually sent communication data packet, the network pressure is not increased, and more accurate network quality information can be obtained. In addition, when a communication link between the client and the current proxy server has a problem, other proxy servers can be switched to use in time, and the problem that the client cannot normally communicate with the target server is avoided.
Referring to fig. 7, a first embodiment of a network quality monitoring system provided in the embodiment of the present invention may include:
a client 701, a first proxy server 702, and a target server 703. Wherein the client may communicate with the target server through the first proxy server.
The client may be the network quality monitoring apparatus embodiment in the above embodiments. For related descriptions, reference may be made to the above embodiments, which are not described herein again.
Referring to fig. 7, a second embodiment of the network quality monitoring system provided in the embodiment of the present invention may further include, on the basis of the first embodiment of the network quality monitoring system:
a second proxy server 801; the second proxy server operates in place of the first proxy server when there is a problem with the first communication link between the client and the first proxy server.
A third proxy server 802; the first proxy server communicates with the target server through a third proxy server; the second proxy server communicates with the target server through a third proxy server.
Thus, by sending the test data packet to the first proxy server at a lower first frequency on the test link to obtain network delay data, the test data packet is sent at a lower frequency without reducing the network quality, and at the same time, the packet loss rate of the real communication data packet transmitted on the data link is detected, when the packet loss rate on the data link is greater than a first threshold, it needs to be verified whether the packet loss rate is high due to poor network quality or the packet loss rate is inaccurate due to less real communication data packets transmitted on the current data link, so it needs to further send the test data packet to the first proxy server at a higher second frequency on the test link to detect the packet loss rate on the test link, and if the network delay data is greater than a second threshold or the packet loss rate on the test link is greater than a third threshold, it can be determined that there is a problem in the first communication link between the client and the first proxy server, in the process of monitoring the network quality, the packet loss rate is mainly detected by using the actually sent communication data packet, the network pressure is not increased, and more accurate network quality information can be obtained. In addition, when a communication link between the client and the current proxy server has a problem, other proxy servers can be switched to use in time, and the problem that the client cannot normally communicate with the target server is avoided.
Correspondingly, an embodiment of the present invention further provides a terminal, as shown in fig. 9, where the terminal may include:
a processor 901, a memory 902, an input device 903, and an output device 904. The number of the processors 901 in the terminal may be one or more, and one processor is taken as an example in fig. 9. In some embodiments of the present invention, the processor 901, the memory 902, the input device 903 and the output device 904 may be connected through a bus or other means, wherein the connection through the bus is exemplified in fig. 9.
The memory 902 may be used to store software programs and modules, and the processor 901 may execute various functional applications and data processing of the terminal by operating the software programs and modules stored in the memory 902. The memory 902 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The input device 903 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal.
Specifically, in this embodiment, the processor 901 loads an executable file corresponding to one or more processes of an application program into the memory 902 according to the following instructions, and the processor 901 runs the application program stored in the memory 902, thereby implementing various functions:
establishing a first communication link between a client and a first proxy server, wherein the first communication link comprises a data link and a test link;
sending a test data packet to the first proxy server through the test link at a first frequency, receiving response information of the test data packet, and acquiring a time difference between the receiving of the response information and the sending of the test data packet as network delay data;
detecting the packet loss rate of a communication data packet on the data link;
when the packet loss rate of the communication data packet on the data link is greater than a first threshold value, sending a test data packet to the first proxy server through the test link at a second frequency, and detecting the packet loss rate on the test link, wherein the second frequency is greater than the first frequency;
and when the network delay data is larger than a second threshold value or the packet loss rate on the test link is larger than a third threshold value, determining that the first communication link has a problem.
Optionally, the method further includes:
when the first communication link is determined to have a problem, establishing a second communication link between the client and a second proxy server, wherein the second communication link comprises a data link and a test link;
migrating session information of the first communication link into the second communication link;
releasing the first communication link;
changing the second proxy server to the first proxy server.
Optionally, the communication data packet includes an uplink communication data packet and a downlink communication data packet, and both the uplink communication data packet and the downlink communication data packet include a sending sequence number;
the detecting a packet loss rate of the communication data packet on the data link includes:
sending an uplink communication data packet to the first proxy server through the data link, and receiving a data link uplink packet loss rate sent by the first proxy server, wherein the data link uplink packet loss rate is calculated by the first proxy server according to a sending sequence number in the uplink communication data packet;
receiving a downlink communication data packet sent by the first proxy server, and calculating the downlink packet loss rate of a data link according to a sending sequence number in the downlink communication data packet;
and determining the packet loss rate of the communication data packet on the data link according to the uplink packet loss rate of the data link and the downlink packet loss rate of the data link.
Optionally, the test data packet and the response information of the test data packet both include a sending sequence number;
the sending a test data packet to the first proxy server through the test link at a second frequency, and detecting a packet loss rate on the test link, includes:
sending a test data packet to the first proxy server through the test link at a second frequency, and receiving a test link uplink packet loss rate sent by the first proxy server, wherein the test link uplink packet loss rate is calculated by the first proxy server according to a sending sequence number in the test data packet;
receiving response information of the test data packet, and calculating the downlink packet loss rate of the test link according to the sending sequence number in the response information of the test data packet;
and determining the packet loss rate on the test link according to the uplink packet loss rate of the test link and the downlink packet loss rate of the test link.
Thus, by sending the test data packet to the first proxy server at a lower first frequency on the test link to obtain network delay data, the test data packet is sent at a lower frequency without reducing the network quality, and at the same time, the packet loss rate of the real communication data packet transmitted on the data link is detected, when the packet loss rate on the data link is greater than a first threshold, it needs to be verified whether the packet loss rate is high due to poor network quality or the packet loss rate is inaccurate due to less real communication data packets transmitted on the current data link, so it needs to further send the test data packet to the first proxy server at a higher second frequency on the test link to detect the packet loss rate on the test link, and if the network delay data is greater than a second threshold or the packet loss rate on the test link is greater than a third threshold, it can be determined that there is a problem in the first communication link between the client and the first proxy server, in the process of monitoring the network quality, the packet loss rate is mainly detected by using the actually sent communication data packet, the network pressure is not increased, and more accurate network quality information can be obtained. In addition, when a communication link between the client and the current proxy server has a problem, other proxy servers can be switched to use in time, and the problem that the client cannot normally communicate with the target server is avoided.
It should be noted that, in the present specification, 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 may be referred to each other. For the system or the device disclosed by the embodiment, the description is simple because the system or the device corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
It is further noted that, 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 necessarily 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, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1. A method for monitoring network quality, wherein a first communication link between a client and a first proxy server is established, the first communication link comprising a data link and a test link, the method comprising:
sending a test data packet to the first proxy server through the test link at a first frequency, receiving response information of the test data packet, and acquiring a time difference between the receiving of the response information and the sending of the test data packet as network delay data;
detecting the packet loss rate of the communication data packet on the data link by using the communication data packet on the data link;
when the packet loss rate of the communication data packet on the data link is greater than a first threshold value, sending a test data packet to the first proxy server through the test link at a second frequency, receiving response information of the test data packet, and calculating the packet loss rate on the test link, wherein the second frequency is greater than the first frequency;
when the network delay data is larger than a second threshold value or the packet loss rate on the test link is larger than a third threshold value, determining that the first communication link has a problem;
the communication data packet comprises an uplink communication data packet and a downlink communication data packet, and the uplink communication data packet and the downlink communication data packet both comprise sending sequence numbers;
the detecting, by using the communication data packet on the data link, a packet loss rate of the communication data packet on the data link includes:
sending an uplink communication data packet to the first proxy server through the data link, and receiving a data link uplink packet loss rate sent by the first proxy server, wherein the data link uplink packet loss rate is calculated by the first proxy server according to a sending sequence number in the uplink communication data packet;
receiving a downlink communication data packet sent by the first proxy server, and calculating the downlink packet loss rate of a data link according to a sending sequence number in the downlink communication data packet;
and determining the packet loss rate of the communication data packet on the data link according to the uplink packet loss rate of the data link and the downlink packet loss rate of the data link.
2. The method of claim 1, further comprising:
when the first communication link is determined to have a problem, establishing a second communication link between the client and a second proxy server, wherein the second communication link comprises a data link and a test link;
migrating session information of the first communication link into the second communication link;
releasing the first communication link;
changing the second proxy server to the first proxy server.
3. The method according to claim 1, wherein the response information of the test data packet and the response information of the test data packet each include a transmission sequence number;
sending a test data packet to the first proxy server through the test link at a second frequency, and detecting a packet loss rate on the test link, including:
sending a test data packet to the first proxy server through the test link at a second frequency, and receiving a test link uplink packet loss rate sent by the first proxy server, wherein the test link uplink packet loss rate is calculated by the first proxy server according to a sending sequence number in the test data packet;
receiving response information of the test data packet, and calculating the downlink packet loss rate of the test link according to the sending sequence number in the response information of the test data packet;
and determining the packet loss rate on the test link according to the uplink packet loss rate of the test link and the downlink packet loss rate of the test link.
4. The method of any of claims 1-3, wherein the first proxy server communicates with the target server through a third proxy server; the second proxy server communicates with the target server through the third proxy server.
5. A network quality monitoring apparatus, the apparatus comprising:
the system comprises a first establishing unit, a second establishing unit and a third establishing unit, wherein the first establishing unit is used for establishing a first communication link between a client and a first proxy server, and the first communication link comprises a data link and a test link;
an obtaining unit, configured to send a test data packet to the first proxy server through the test link at a first frequency, receive response information of the test data packet, and obtain a time difference between receiving the response information and sending the test data packet as network delay data;
a first detection unit, configured to detect, by using a communication data packet on the data link, a packet loss rate of the communication data packet on the data link;
a second detecting unit, configured to send a test packet to the first proxy server through the test link at a second frequency when a packet loss rate of the communication packet on the data link is greater than a first threshold, receive response information of the test packet, and calculate a packet loss rate on the test link, where the second frequency is greater than the first frequency;
a determining unit, configured to determine that the first communication link has a problem when the network delay data is greater than a second threshold or a packet loss rate on the test link is greater than a third threshold;
the communication data packet comprises an uplink communication data packet and a downlink communication data packet, and the uplink communication data packet and the downlink communication data packet both comprise sending sequence numbers; the first detection unit includes:
a first receiving subunit, configured to send an uplink communication data packet to the first proxy server through the data link, and receive a data link uplink packet loss rate sent by the first proxy server, where the data link uplink packet loss rate is calculated by the first proxy server according to a sending sequence number in the uplink communication data packet;
the first calculating subunit is configured to receive a downlink communication data packet sent by the first proxy server, and calculate a downlink packet loss rate of a data link according to a sending sequence number in the downlink communication data packet;
a first determining subunit, configured to determine, according to the uplink packet loss rate of the data link and the downlink packet loss rate of the data link, a packet loss rate of the communication data packet on the data link.
6. The apparatus of claim 5, further comprising:
the second establishing unit is used for establishing a second communication link between the client and a second proxy server when the first communication link is determined to have problems, and the second communication link comprises a data link and a test link;
a migration unit, configured to migrate the session information of the first communication link into the second communication link;
a releasing unit configured to release the first communication link;
a changing unit configured to change the second proxy server to the first proxy server.
7. The apparatus according to claim 5, wherein the response information of the test packet and the response information of the test packet each include a transmission sequence number; the second detection unit includes:
a second receiving subunit, configured to send, through the test link and at a second frequency, a test data packet to the first proxy server when a packet loss rate of the communication data packet on the data link is greater than a first threshold, and receive a test link uplink packet loss rate sent by the first proxy server, where the test link uplink packet loss rate is calculated by the first proxy server according to a sending sequence number in the test data packet;
the second receiving subunit is configured to receive the response information of the test data packet, and calculate a downlink packet loss rate of the test link according to a sending sequence number in the response information of the test data packet;
and the second determining subunit is configured to determine the packet loss rate on the test link according to the uplink packet loss rate of the test link and the downlink packet loss rate of the test link.
8. The apparatus of any of claims 5-7, wherein the first proxy server communicates with the target server through a third proxy server; the second proxy server communicates with the target server through the third proxy server.
9. A network quality monitoring system, the system comprising:
the system comprises a client, a first proxy server and a target server; the client communicates with the target server through the first proxy server;
the client is the network quality monitoring apparatus of any one of claims 5-8.
10. The system of claim 9, further comprising: a second proxy server;
the second proxy server operates in place of the first proxy server when there is a problem with the first communication link between the client and the first proxy server.
11. The system of claim 10, further comprising: a third proxy server;
the first proxy server communicates with a target server through a third proxy server; the second proxy server communicates with the target server through the third proxy server.
12. A terminal, comprising: a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute a computer program stored in the memory;
the computer program is for performing the network quality monitoring method of any one of claims 1-4.
13. A computer-readable storage medium, having stored thereon a computer-executable program which, when loaded and executed by a processor, implements the network quality monitoring method as claimed in any one of claims 1 to 4.
CN201611005377.1A 2016-11-15 2016-11-15 Network quality monitoring method, device and system Active CN108075934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611005377.1A CN108075934B (en) 2016-11-15 2016-11-15 Network quality monitoring method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611005377.1A CN108075934B (en) 2016-11-15 2016-11-15 Network quality monitoring method, device and system

Publications (2)

Publication Number Publication Date
CN108075934A CN108075934A (en) 2018-05-25
CN108075934B true CN108075934B (en) 2021-05-25

Family

ID=62163007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611005377.1A Active CN108075934B (en) 2016-11-15 2016-11-15 Network quality monitoring method, device and system

Country Status (1)

Country Link
CN (1) CN108075934B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924005B (en) * 2018-06-29 2020-05-12 优刻得科技股份有限公司 Network detection method, network detection apparatus, medium, and device
CN110876158B (en) * 2018-08-29 2023-07-14 阿里巴巴集团控股有限公司 LoRa network condition monitoring method, device, system, equipment and storage medium
CN109150665A (en) * 2018-09-27 2019-01-04 视联动力信息技术股份有限公司 A kind of bandwidth test method and apparatus
CN110046794B (en) * 2019-03-01 2021-09-28 深圳和而泰数据资源与云技术有限公司 Network quality evaluation method and device, computer equipment and storage medium
CN109873878B (en) * 2019-04-01 2021-08-24 宁波奥克斯电气股份有限公司 Communication connection method and device of electronic terminal, electronic terminal and storage medium
CN111756850B (en) * 2020-06-29 2022-01-18 金电联行(北京)信息技术有限公司 Automatic proxy IP request frequency adjustment method and system serving internet data acquisition
CN111935441B (en) * 2020-07-30 2022-06-21 北京佳讯飞鸿电气股份有限公司 Network state detection method and device
CN112583669B (en) * 2020-12-11 2022-06-24 北京字节跳动网络技术有限公司 On-line link pressure testing method and device, electronic equipment and medium
CN112637020B (en) * 2020-12-31 2022-05-31 中国信息通信研究院 Network quality evaluation method, device and system for networks among data centers
CN113163002B (en) * 2021-04-09 2022-06-17 深圳市腾讯网络信息技术有限公司 Server switching method and device and storage medium
CN114172600A (en) * 2021-12-03 2022-03-11 中国电信集团系统集成有限责任公司 Automatic transmission link path calculation method and device
CN114500330A (en) * 2021-12-28 2022-05-13 芯讯通无线科技(上海)有限公司 Test method, system, equipment and storage medium of Internet of things platform
CN115378860A (en) * 2022-08-22 2022-11-22 南方电网科学研究院有限责任公司 DPMU test method, device, equipment, readable storage medium and system
CN116760878B (en) * 2023-08-21 2023-12-01 每日互动股份有限公司 Processing method, device, equipment and medium for network connection and transmission

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925483A (en) * 2005-08-31 2007-03-07 华为技术有限公司 Method and system for realizing determination of wireless interface protocol depot allocation position
CN102571292A (en) * 2012-02-29 2012-07-11 浙江中控研究院有限公司 Communication maintenance scheme matching method, link monitor and wireless sensor network
CN103379360A (en) * 2012-04-23 2013-10-30 华为技术有限公司 Assessment method and device for video quality
CN103634165A (en) * 2013-12-05 2014-03-12 北京奇虎科技有限公司 Method, terminal device and system for realizing network testing based on reverse proxy
CN103957538A (en) * 2014-04-04 2014-07-30 杭州华三通信技术有限公司 Method and device for detecting network quality
CN105553758A (en) * 2014-12-15 2016-05-04 成都科来软件有限公司 Network performance monitoring method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925483A (en) * 2005-08-31 2007-03-07 华为技术有限公司 Method and system for realizing determination of wireless interface protocol depot allocation position
CN102571292A (en) * 2012-02-29 2012-07-11 浙江中控研究院有限公司 Communication maintenance scheme matching method, link monitor and wireless sensor network
CN103379360A (en) * 2012-04-23 2013-10-30 华为技术有限公司 Assessment method and device for video quality
CN103634165A (en) * 2013-12-05 2014-03-12 北京奇虎科技有限公司 Method, terminal device and system for realizing network testing based on reverse proxy
CN103957538A (en) * 2014-04-04 2014-07-30 杭州华三通信技术有限公司 Method and device for detecting network quality
CN105553758A (en) * 2014-12-15 2016-05-04 成都科来软件有限公司 Network performance monitoring method and device

Also Published As

Publication number Publication date
CN108075934A (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN108075934B (en) Network quality monitoring method, device and system
US11122067B2 (en) Methods for detecting and mitigating malicious network behavior and devices thereof
WO2016127811A1 (en) Information processing method and terminal, and computer storage medium
CN108134816B (en) Access to data on remote device
US10178569B1 (en) Adaptive application behavior based on assessed network characteristics
US10771358B2 (en) Data acquisition device, data acquisition method and storage medium
CN105025080A (en) Overload protection method for distributed system and servers
CN113472900A (en) Message processing method, device, storage medium and computer program product
CN109560976B (en) Message delay monitoring method and device
CN109818997A (en) A kind of load-balancing method, system and storage medium
US10873530B2 (en) Method for controlling data transmission, device, and storage medium
CN109597800B (en) Log distribution method and device
US9727394B2 (en) Establishing causality order of computer trace records
WO2017080386A1 (en) Method and device for processing message
US10412778B2 (en) Data transmission method and apparatus for data service
CN107547468B (en) Network protocol switching device, method and terminal
KR20140098390A (en) Apparatus and method for detecting attack of network system
JP2017506847A (en) Method and system for providing failover and failback in a multi-network router
US20150163131A1 (en) Online application testing of grown application capacity
CN108156247B (en) Data communication method, device, system, terminal and readable storage medium
CN107343037B (en) Data transmission method and device of distributed storage system
CN110535959B (en) Method and device for transmitting data and computer readable storage medium
CN107438268B (en) Method and device for accelerating wireless network for mobile device
CN106656912B (en) Method and device for detecting denial of service attack
WO2017185632A1 (en) Data transmission method and electronic device

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
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211227

Address after: Room 19F, Kungang science and technology building, 777 Huancheng South Road, Xishan District, Kunming City, Yunnan Province, 650000

Patentee after: Yunnan Tengyun Information Industry Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.