CN106161052A - Network line system of selection and network speed-measuring method - Google Patents

Network line system of selection and network speed-measuring method Download PDF

Info

Publication number
CN106161052A
CN106161052A CN201510148197.8A CN201510148197A CN106161052A CN 106161052 A CN106161052 A CN 106161052A CN 201510148197 A CN201510148197 A CN 201510148197A CN 106161052 A CN106161052 A CN 106161052A
Authority
CN
China
Prior art keywords
speed
network
network line
tests
instrument
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510148197.8A
Other languages
Chinese (zh)
Other versions
CN106161052B (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.)
Beijing Changyou Tianxia Network Technologies Co Ltd
Original Assignee
Beijing Changyou Tianxia Network Technologies 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 Beijing Changyou Tianxia Network Technologies Co Ltd filed Critical Beijing Changyou Tianxia Network Technologies Co Ltd
Priority to CN201510148197.8A priority Critical patent/CN106161052B/en
Publication of CN106161052A publication Critical patent/CN106161052A/en
Application granted granted Critical
Publication of CN106161052B publication Critical patent/CN106161052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • 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

Abstract

The invention discloses a kind of network line system of selection and network speed-measuring method.This network line system of selection includes: utilizes first to test the speed on the instrument every network line in a plurality of network line between the client and server-side of network application to carry out above network and tests the speed, and more than one first meansigma methods testing the speed value utilizing that the first instrument of testing the speed records is tested the speed result as the first of this network line;If the first difference tested the speed between result of any two network lines in described a plurality of network line is more than the first predetermined threshold, the fastest network line of the network speed that then selects to utilize the first instrument of testing the speed to record in described a plurality of network line as network line actually used between client and server-side, otherwise selects the fastest network line of the network speed utilizing the second instrument of testing the speed to record in described a plurality of network line as network line actually used between client and server-side.

Description

Network line system of selection and network speed-measuring method
Technical field
The present invention relates to computer realm, relate more specifically to a kind of network line system of selection and network Speed-measuring method.
Background technology
Generally, the network application of such as online game, JICQ, information promulgating platform etc Including for running client (that is, client-side program) on the subscriber terminal and being used for operating in clothes Server-side (that is, server program) two parts on business device.Client and servo when network application During end communication, due to performance, the performance of Virtual network operator equipment and server by user terminal The impact of the reasons such as load, sometimes network speed can be very slow, has a strong impact on Consumer's Experience.
Along with the requirement of the fluency of network application is grown with each passing day by user, a lot of application providers start The server-side of network application is arranged in the server with a plurality of network line, so that network application Client can be led to by the server-side of any one in this plurality of network line and network application Letter.Specifically, when the client of network application asks the server-side with network application to communicate, The client of network application can be by any one in following two network line selection scheme from net A plurality of network line between client and the server-side of network application selects network line as with Network line actually used when the server-side of network application communicates: 1) by network application A plurality of network line between client and the server-side of network application is surveyed by original mechanism of testing the speed Speed, thus select network condition preferably;With 2) by Ping test the speed mechanism to network application Client and server-side between a plurality of network line test the speed, thus it is more excellent to select network condition One.
But, there is following defect in the above two mechanism of testing the speed: 1) original in network application tests the speed Mechanism is affected due to the logical process of the process by network application, it is impossible to accurately reflect current network Quality;Meanwhile, in network application, original mechanism of testing the speed depends on the server-side of network application, thus When the abnormal conditions such as network congestion, broken string occurring between the client and server-side of network application, nothing Method carries out the detection of network connectivty and delay, thus cause being difficult to analyzing occur above-mentioned abnormal former Cause;2) although the Ping mechanism of testing the speed is the scheme that tests the speed of a kind of more bottom, it is possible to accurately reflect net Network situation, but the success rate of the general only 60%-70% of the Ping mechanism of testing the speed.
Summary of the invention
One or more problems in view of the above, the invention provides the network line of a kind of novelty System of selection and network speed-measuring method.
Network line system of selection according to embodiments of the present invention, for from the client of network application with A plurality of network line between server-side select a network line as between client and server-side Actually used network line, the method includes: utilize first to test the speed instrument in a plurality of network line Every network line on carry out above network and test the speed, and the first instrument of testing the speed will be utilized to record More than one first meansigma methods testing the speed value tests the speed result as the first of this network line;If institute State the first difference testing the speed between result of any two articles of network lines in a plurality of network line more than the One predetermined threshold, then the network speed selecting to utilize the first instrument of testing the speed to record in described a plurality of network line is A fast network line, as network line actually used between client and server-side, otherwise selects Select the network line that the network speed utilizing the second instrument of testing the speed to record in described a plurality of network line is the fastest As network line actually used between client and server-side.
Network speed-measuring method according to embodiments of the present invention, including: utilize first to test the speed instrument at network Carry out above network on network line actually used between client and the server-side of application to survey Speed, and more than one utilizing that the first instrument of testing the speed records first is tested the speed the meansigma methods of value as this net The first of winding thread road is tested the speed result;If first result that tests the speed is not more than the second predetermined threshold, then should The first of network line test the speed result as this network line network speed characterize, otherwise will utilize the second survey The second of this network line result that tests the speed that speed instrument records characterizes as the network speed of this network line.
The present invention is by combining the multiple instrument of testing the speed, and the advantage utilizing the multiple instrument that tests the speed is multiple at height Network connectivty when providing the various state of network application under miscellaneous network condition and delay, thus can To provide server delays data accurately in complex situations, and then promote the server of network application Network fluency.
Accompanying drawing explanation
Fig. 1 is the client from network application and the server-side illustrating the example embodiment according to the present invention Between a plurality of network line in select a network line make as actual between client and server-side The flow chart of method of network line;
Fig. 2 be illustrate another example embodiment according to the present invention from the client of network application with watch Take and a plurality of network line between end selects a network line as real between client and server-side The flow chart of the method for the network line that border uses;
Fig. 3 be illustrate the example embodiment according to the present invention in network application properly functioning period to net Between client and the server-side of network application, actually used network line carries out the flow process of the method tested the speed Figure;And
Fig. 4 be illustrate another example embodiment according to the present invention network application client with watch Take the network between end to connect when disconnecting actually used between client and the server-side of network application Network line carries out the flow chart of the method tested the speed.
Detailed description of the invention
Feature and the exemplary embodiment of various aspects of the invention are described more fully below.Following In detailed description, it is proposed that many details, in order to complete understanding of the present invention is provided.But It is to it will be apparent to those skilled in the art that the present invention can be to need not these concrete Implement in the case of some details in details.Description to embodiment below is only used to by showing Go out the example of the present invention to provide the present invention is better understood from.The present invention is never limited to be carried below Any concrete configuration gone out and algorithm, but cover unit under the premise of without departing from the spirit of the present invention Element, parts and any amendment of algorithm, replace and improve.In the the accompanying drawings and the following description, do not have Known structure and technology are shown, in order to avoid the present invention causes unnecessary obscuring.
In order to know that current network quality increases the probability of success that network tests the speed, here more accurately simultaneously Propose such a design: build Ping in the server side of network application and test the speed server so that Test the speed server and the server of network application of Ping shares a plurality of network line and can be many by this The client communication of any one in bar network line and network application;Server in network application Side is built TCP (transmission control protocol) and is tested the speed server so that TCP tests the speed server should with network Server share a plurality of network line and can be by any one in this plurality of network line Client communication with network application;Ping tests the speed server and TCP tests the speed, and server is many network interface cards The server of multiple internet agreement (IP) address, and it is provided which network speed measuring function;Preferably, The TCP server that tests the speed, in addition to having network speed measuring function, has abnormality processing and daily record note simultaneously The function of record;Preferably, in network application, build the instrument of testing the speed, and add respectively in network application Adding uplink and downlink to test the speed message bag, server-side and the client of carrying network application in message bag are current Timestamp, by timestamp and time difference during reception message, obtains up-downgoing respectively and postpones.
It should be understood that to improve the reliability that network tests the speed, build two Ping the most simultaneously Testing the speed server and two TCP test the speed server, wherein these two Ping test the speed server bag Include a main Ping and test the speed server and a backup Ping tests the speed server, and these two TCP The server that tests the speed includes that a main TCP tests the speed server and a backup TCP tests the speed server.
Below in conjunction with Fig. 1 and Fig. 2, describe network line selecting party according to embodiments of the present invention in detail Method.
Fig. 1 is the client from network application and the server-side illustrating the example embodiment according to the present invention Between a plurality of network line in select a network line make as actual between client and server-side The flow chart of method of network line.As it is shown in figure 1, the method includes:
At 102a, the user in network application applies via the client logging in network of network application Before server-side, Ping is utilized to test the speed the instrument (that is, first the test the speed instrument) client to network application Every network line in a plurality of network line between end and server-side is carried out once (the most not More than 10 times) network tests the speed, and tested the speed by more than one Ping utilizing the Ping instrument of testing the speed to record The meansigma methods of value (that is, first test the speed value) tests the speed result (i.e., as the Ping of this network line First tests the speed result).
At 102b, test the speed between instrument client and server-side to network application utilizing Ping A plurality of network line carry out while network tests the speed, (that is, second tests the speed instrument to utilize TCP to test the speed Instrument) every grid line in a plurality of network line between the client and server-side of network application Carry out above network on road to test the speed, and more than one TCP that the second instrument of testing the speed will be utilized to record The meansigma methods of the value that tests the speed (that is, second test the speed value) tests the speed result as the second of this network line.
At 104, it is judged that in a plurality of network line between client and the server-side of network application Whether the Ping of any two network lines tests the speed the difference between result more than the first predetermined threshold.As Fruit is then to proceed at 106, otherwise proceeds at 108.It addition, when the client of network application And a plurality of network line between server-side does not has the Ping of the network line result that tests the speed be acquired Then, also go at 108.
At 106, select profit in a plurality of network line between client and the server-side of network application The fastest network line of the network speed that records with the Ping instrument of testing the speed as network application client with Network line actually used between server-side.
At 108, appointing in a plurality of network line between the client and server-side of network application The Ping of two network lines of the meaning difference between result that tests the speed when being all not more than the first predetermined threshold, is selected Select a plurality of network line between the client of network application and server-side utilizes TCP test the speed instrument survey The fastest network line of network speed make as actual between client and the server-side of network application Network line.
Below, the application example of the network line system of selection shown in Fig. 1 is described in detail.
In the first example, between client and the server-side of network application, existence includes first network line Road and the second network line are at two interior network lines, and the first predetermined threshold is 5 milliseconds (ms). Use the Ping instrument that tests the speed to carry out 10 networks on first network circuit and test the speed, obtain first network The Ping of the circuit result that tests the speed is 49ms;The Ping instrument that tests the speed is used to carry out on the second network line 10 times network tests the speed, and obtaining the Ping of the second network line result that tests the speed is 56ms;TCP is used to survey Speed instrument carries out 8 networks on first network circuit and tests the speed, and the TCP obtaining first network circuit surveys Speed result is 49ms;The TCP instrument that tests the speed is used to carry out 8 networks on the second network line and survey Speed, obtaining the TCP of the second network line result that tests the speed is 55ms.In this example, first network The Ping of circuit tests the speed the difference (7ms) that the Ping of result and the second network line tests the speed between result More than the first predetermined threshold, therefore the Ping that utilizes in first network circuit and the second network line tests the speed The network speed that instrument a records network line (that is, first network circuit) faster is as network application Client and server-side between actually used network line.
In the second example, exist between client and the server-side of network application and include first network line Road and the second network line are 5ms at two interior network lines, the first predetermined threshold.Use Ping The instrument that tests the speed carries out 10 networks on first network circuit and tests the speed, and obtains first network circuit The Ping result that tests the speed is 51ms;The Ping instrument that tests the speed is used to carry out 10 secondary nets on the second network line Network tests the speed, and obtaining the Ping of the second network line result that tests the speed is 49ms;TCP is used to test the speed instrument First network circuit carries out 10 networks test the speed, obtain the TCP of first network circuit and test the speed knot Fruit is 49ms;The TCP instrument that tests the speed is used to carry out 10 networks on the second network line and test the speed, TCP to the second network line result that tests the speed is 53ms.In this example, first network circuit Ping tests the speed difference (2ms) that the Ping of result and the second network line tests the speed between result less than the One predetermined threshold, therefore selects the TCP that utilizes in first network circuit and the second network line to test the speed work The network speed network line (that is, first network circuit) faster that tool records is as network application Network line actually used between client and server-side.
In the 3rd example, exist between client and the server-side of network application and include first network line Road, the second network line and the 3rd network line are at three articles of interior network lines, the first predetermined threshold Value is 5ms.Use the Ping instrument that tests the speed to carry out 8 networks on first network circuit and test the speed, obtain The Ping of the first network circuit result that tests the speed is 56ms;Ping is used to test the speed instrument at the second grid line Carrying out 8 networks on road to test the speed, obtaining the Ping of the second network line result that tests the speed is 50ms;Make On the 3rd network line, carry out 8 networks test the speed with the Ping instrument that tests the speed, obtain the 3rd network line The Ping result that tests the speed be 49ms;The TCP instrument that tests the speed is used to carry out on first network circuit 7 times Network tests the speed, and obtaining the TCP of the first network circuit result that tests the speed is 52ms;TCP is used to test the speed work Tool carries out 7 networks on the second network line and tests the speed, and obtains the TCP of the second network line and tests the speed knot Fruit is 56ms;The TCP instrument that tests the speed is used to carry out 7 networks on the 3rd network line and test the speed, TCP to the 3rd network line result that tests the speed is 49ms.In this example, first network circuit Ping tests the speed difference (7ms) that the Ping of result and the 3rd network line tests the speed between result more than the One predetermined threshold, therefore selects first network circuit, the second network line and the 3rd network line In a fastest network line (that is, the 3rd grid line of the network speed utilizing the Ping instrument of testing the speed to record Road) as network line actually used between client and the server-side of network application.
In the 4th example, exist between client and the server-side of network application and include first network line Road, the second network line and the 3rd network line are at three articles of interior network lines, the first predetermined threshold Value is 5ms.Use the Ping instrument that tests the speed to carry out 8 networks on first network circuit and test the speed, obtain The Ping of the first network circuit result that tests the speed is 53ms;Ping is used to test the speed instrument at the second grid line Carrying out 8 networks on road to test the speed, obtaining the Ping of the second network line result that tests the speed is 54ms;Make On the 3rd network line, carry out 8 networks test the speed with the Ping instrument that tests the speed, obtain the 3rd network line The Ping result that tests the speed be 51ms;The TCP instrument that tests the speed is used to carry out on first network circuit 7 times Network tests the speed, and obtaining the TCP of the first network circuit result that tests the speed is 52ms;TCP is used to test the speed work Tool carries out 7 networks on the second network line and tests the speed, and obtains the TCP of the second network line and tests the speed knot Fruit is 56ms;The TCP instrument that tests the speed is used to carry out 7 networks on the 3rd network line and test the speed, TCP to the 3rd network line result that tests the speed is 49ms.In this example, first network circuit Ping test the speed difference (1ms) that the Ping of result and the second network line tests the speed between result, first The Ping of network line tests the speed the difference that the Ping of result and the 3rd network line tests the speed between result (2ms), the test the speed Ping of result and the 3rd network line of the Ping of the second network line tests the speed result Between difference (3ms) no more than the first predetermined threshold, therefore select first network circuit, the The network speed utilizing the TCP instrument of testing the speed to record in two network lines and the 3rd network line is the fastest Article one, network line (that is, the 3rd network line) is as between client and the server-side of network application Actually used network line.
Fig. 2 be illustrate another example embodiment according to the present invention from the client of network application with watch Take and a plurality of network line between end selects a network line as real between client and server-side The flow chart of the method for the network line that border uses.As in figure 2 it is shown, the method includes:
At 202, the user in network application applies via the client logging in network of network application Before server-side, Ping is utilized to test the speed a plurality of between client and the server-side of network application of instrument Every network line in network line carries out once above (no more than 10 times) network and surveys Speed, and the meansigma methods of the value that tested the speed by more than one Ping utilizing the Ping instrument of testing the speed to record is as this The Ping of bar network line tests the speed result.
At 204, it is judged that in a plurality of network line between client and the server-side of network application Whether the Ping of any two network lines tests the speed the difference between result more than the first predetermined threshold.As Fruit is to proceed at 206, otherwise proceeds at 208.It addition, when network application client and A plurality of network line between server-side does not have the Ping of the network line result that tests the speed be acquired Time, also go at 208.
At 206, select in a plurality of network line between client and the server-side of network application The fastest network line of the network speed that utilizes the Ping instrument of testing the speed to record is as the client of network application And network line actually used between server-side.
At 208, utilize the TCP instrument that tests the speed many between the client and server-side of network application Carry out above network on every network line in bar network line to test the speed, and TCP will be utilized to survey The meansigma methods of value of testing the speed speed more than one TCP of recording of instrument tests the speed as the second of this network line Result.
At 210, select profit in a plurality of network line between client and the server-side of network application The fastest network line of the network speed that records with the TCP instrument of testing the speed as network application client with Network line actually used between server-side.
Below, the application example of the network line system of selection shown in Fig. 2 is described in detail.
In the first example, between client and the server-side of network application, existence includes first network line Road and the second network line are 5ms at two interior network lines, the first predetermined threshold.Use Ping The instrument that tests the speed carries out 10 networks on first network circuit and tests the speed, and obtains first network circuit The Ping result that tests the speed is 49ms;The Ping instrument that tests the speed is used to carry out 10 secondary nets on the second network line Network tests the speed, and obtaining the Ping of the second network line result that tests the speed is 56ms.In this example, first The Ping of network line tests the speed the difference that the Ping of result and the second network line tests the speed between result (7ms) more than the first predetermined threshold, therefore select in first network circuit and the second network line Utilize the network speed network line (that is, first network circuit) faster that the Ping instrument of testing the speed records As network line actually used between client and the server-side of network application.
In the second example, exist between client and the server-side of network application and include first network line Road and the second network line are 5ms at two interior network lines, the first predetermined threshold.Use Ping The instrument that tests the speed carries out 8 networks on first network circuit and tests the speed, and obtains the Ping of first network circuit The result that tests the speed is 49ms;The Ping instrument that tests the speed is used to carry out 8 networks on the second network line and survey Speed, obtaining the Ping of the second network line result that tests the speed is 51ms;Due to first network circuit Ping tests the speed difference (2ms) that the Ping of result and the second network line tests the speed between result less than the One predetermined threshold, is therefore continuing with TCP and tests the speed instrument at first network circuit and the second network line Upper carry out 10 networks respectively and test the speed, obtain the TCP of first network circuit test the speed result be 49ms, The TCP of the second network line result that tests the speed is 53ms.In this example, first network circuit is selected With the second network line utilizes the network speed network line faster that the TCP instrument of testing the speed records (that is, first network circuit) is as net actually used between client and the server-side of network application Winding thread road.
In the 3rd example, exist between client and the server-side of network application and include first network line Road, the second network line and the 3rd network line are at three articles of interior network lines, the first predetermined threshold Value is 5ms.Use the Ping instrument that tests the speed to carry out 8 networks on first network circuit and test the speed, obtain The Ping of the first network circuit result that tests the speed is 56ms;Ping is used to test the speed instrument at the second grid line Carrying out 8 networks on road to test the speed, obtaining the Ping of the second network line result that tests the speed is 50ms;Make On the 3rd network line, carry out 8 networks test the speed with the Ping instrument that tests the speed, obtain the 3rd network line The Ping result that tests the speed be 49ms.In this example, the Ping of first network circuit test the speed result and The difference (7ms) that the Ping of the 3rd network line tests the speed between result is more than the first predetermined threshold, because of This selects the Ping that utilizes in first network circuit, the second network line and the 3rd network line to survey The fastest network line (that is, the 3rd network line) of the speed network speed that records of instrument should as network Client and server-side between actually used network line.
In the 4th example, exist between client and the server-side of network application and include first network line Road, the second network line and the 3rd network line are at three articles of interior network lines, the first predetermined threshold Value is 5ms.Use the Ping instrument that tests the speed to carry out 8 networks on first network circuit and test the speed, obtain The Ping of the first network circuit result that tests the speed is 53ms;Ping is used to test the speed instrument at the second grid line Carrying out 8 networks on road to test the speed, obtaining the Ping of the second network line result that tests the speed is 54ms;Make On the 3rd network line, carry out 8 networks test the speed with the Ping instrument that tests the speed, obtain the 3rd network line The Ping result that tests the speed be 51ms;Owing to the Ping of first network circuit tests the speed result and the second network The test the speed difference (1ms) between result, the Ping of first network circuit of the Ping of circuit tests the speed result And the 3rd the Ping of network line test the speed the difference (2ms) between result, the second network line The Ping difference (3ms) that the Ping of result and the 3rd network line tests the speed between result that tests the speed is the most little In the first predetermined threshold, be therefore continuing with TCP test the speed instrument respectively first network circuit, second Carry out 7 networks on network line and the 3rd network line to test the speed, obtain first network circuit TCP test the speed result be 52ms, the TCP of the second network line test the speed result be 56ms, the 3rd network The TCP of the circuit result that tests the speed is 49ms.In this example, first network circuit, the second net are selected The fastest one article of the network speed utilizing the TCP instrument of testing the speed to record in winding thread road and the 3rd network line Network line (that is, the 3rd network line) is as actual between client and the server-side of network application The network line used.
Fig. 3 be illustrate the example embodiment according to the present invention in network application properly functioning period to net Between client and the server-side of network application, actually used network line carries out the flow process of the method tested the speed Figure.As it is shown on figure 3, the method includes:
At 302a, Ping is utilized to test the speed instrument client and servo periodically to network application Network line actually used between end carries out above network and tests the speed (such as, every 1s utilization Network line actually used between client and the server-side of network application is carried out by the Ping instrument that tests the speed Above network tests the speed), and more than one Ping utilizing the Ping instrument of testing the speed to record is tested the speed The meansigma methods of value tests the speed result as the Ping of this network line.
At 302b, test the speed instrument periodically to the client of network application with watch utilizing Ping Take network line actually used between end to carry out while network tests the speed, utilizing TCP to test the speed instrument week Phase property network line actually used between client and the server-side of network application carried out once with Upper network test the speed (such as, every 1s utilize TCP test the speed instrument to the client of network application with watch Take network line actually used between end to carry out above network and test the speed), and TCP will be utilized to survey Speed more than one TCP of recording of instrument tests the speed the meansigma methods of value as the TCP survey of this network line Speed result.
At 302c, carrying out at 102a and while operation at 102b, in utilizing network application The instrument that tests the speed periodically to grid line actually used between client and the server-side of network application Road carry out above network test the speed (such as, every 1s to the client of network application and server-side it Between actually used network line carry out above network and test the speed), and survey in more than one application The meansigma methods of speed value is as the result that tests the speed in application.
At 304, it is judged that network line actually used between client and the server-side of network application Ping test the speed result whether more than the second predetermined threshold.The work if it is not, then explanation Ping tests the speed The network speed that tool records within the acceptable range, proceeds at 306;If it is, explanation The network speed that the Ping instrument of testing the speed records is the slowest, proceeds at 308.It addition, when network application The Ping of network line actually used between client and the server-side result that tests the speed is when cannot obtain, also Proceed at 308.
At 306, the result that tested the speed by Ping is as actual between the client and server-side of network application The network speed of the network line used characterizes.
At 308, the result that tested the speed by TCP is as actual between the client and server-side of network application The network speed of the network line used characterizes.
At 310, utilize Ping to test the speed result or TCP tests the speed the knot that tests the speed in result and application Really, i.e. by calculating Ping and test the speed result or TCP testing the speed and tests the speed between result in result and application Difference, obtains the logical delay of the server-side of network application.
Below, the application example of the method shown in Fig. 3 is described in detail.
In the first example, the second predetermined threshold is 100ms.Using Ping to test the speed instrument should at network Client and server-side between carry out 10 networks on actually used network line and test the speed, It is 49ms to the Ping result that tests the speed;TCP is used to test the speed instrument in the client of network application and servo Carrying out 10 networks on network line actually used between end to test the speed, obtaining the TCP result that tests the speed is 55ms;Owing to the Ping result that tests the speed is less than the second predetermined threshold, the result that therefore Ping tested the speed as The network speed of this network line characterizes;Test the speed in utilizing the application that the instrument of testing the speed in network application obtains knot Fruit is 11ms;Calculate Ping test the speed result and application in test the speed between result difference, obtain network The logical delay of the server-side of application is 38ms.
In the second example, the second predetermined threshold is 100ms.Using Ping to test the speed instrument should at network Client and server-side between carry out 10 networks on actually used network line and test the speed, It is 105ms to the Ping result that tests the speed;The TCP instrument that tests the speed is used in the client of network application and to watch Take and carry out 10 networks on network line actually used between end and test the speed, obtain TCP and test the speed result For 60ms;Owing to Ping tests the speed result more than the second predetermined threshold, the result that therefore tested the speed by TCP work Network speed for this network line characterizes;Test the speed in utilizing the application that the instrument of testing the speed inside network application obtains Result is 11ms;Calculate TCP test the speed result and application in test the speed between result difference, obtain net The logical delay of the server-side of network application is 49ms.
Fig. 4 be illustrate another example embodiment according to the present invention network application client with watch Take the network between end to connect when disconnecting actually used between client and the server-side of network application Network line carries out the flow chart of the method tested the speed.As shown in Figure 4, the method includes:
At 402, Ping is utilized to test the speed instrument client and server-side periodically to network application Between actually used network line carry out above network test the speed (such as, every 1s utilize Network line actually used between client and the server-side of network application is carried out by the Ping instrument that tests the speed Above network tests the speed), and more than one Ping utilizing the Ping instrument of testing the speed to record is tested the speed The meansigma methods of value tests the speed result as the Ping of this network line.
At 404, it is judged that network line actually used between client and the server-side of network application Ping test the speed result whether more than the second predetermined threshold.If it is not, proceed at 406;If It is to proceed at 408.It addition, it is actually used between client and the server-side of network application The Ping of the network line result that tests the speed when cannot obtain, also goes at 408.
At 406, on network line actually used between the client and server-side of network application Re-establish network to connect.
At 408, TCP is utilized to test the speed instrument client and server-side periodically to network application Between actually used network line carry out above network test the speed (such as, every 1s utilize Network line actually used between client and the server-side of network application is carried out by the TCP instrument that tests the speed Above network tests the speed), and more than one TCP utilizing the TCP instrument of testing the speed to record is tested the speed The meansigma methods of value tests the speed result as the TCP of this network line.
At 410, it is judged that network line actually used between client and the server-side of network application TCP test the speed result whether more than the 3rd predetermined threshold.If it is, return to continue at 402 profit Test the speed on the network line actually used between the client and server-side of network application of instrument with Ping Carry out network to test the speed, otherwise proceed to 406.
Here it is possible to the client in network application increases speed measuring module, this speed measuring module is provided with Ping tests the speed interface and TCP tests the speed interface is also realized above in association with Fig. 1 to Fig. 4 by single thread The route selection described and/or the process that tests the speed.
In sum, the present invention by the multiple instrument of testing the speed is combined (such as, Ping is tested the speed and TCP tests the speed and combines, or Ping is tested the speed, TCP tests the speed and the phase that tests the speed in network application In conjunction with), utilize the multiple instrument that tests the speed advantage (low consumption that such as, Ping tests the speed with high accuracy, The high stability tested the speed with TCP and independence, or the low consumption tested the speed of Ping and high accuracy, The logical coherence tested the speed in high stability that TCP tests the speed and independence and network application) at height Network connectivty when providing the various state of network application under complicated network condition and delay, thus Server delays data accurately can be provided in complex situations, and then promote the service of network application The network fluency of device.
It will be understood by those skilled in the art that there is also and can be used for realizing the more optional of the embodiment of the present invention Embodiment and improved procedure, and above-mentioned embodiment and example be only one or more embodiment Explanation.Therefore, the scope of the present invention is limited only by the appended claims.

Claims (12)

1. a network line system of selection, between the client and server-side of network application A plurality of network line select a network line as actual between described client and described server-side The network line used, described method includes:
Utilize first to test the speed on the instrument every network line in described a plurality of network line to carry out once Above network tests the speed, and more than one utilizing that described first instrument of testing the speed records first is tested the speed value Meansigma methods tests the speed result as the first of this network line;
If first of any two network lines in described a plurality of network line tests the speed between result Difference is more than the first predetermined threshold,
The network speed then selecting to utilize described first instrument of testing the speed to record in described a plurality of network line is A fast network line is as network actually used between described client and described server-side Circuit,
Otherwise select the network speed utilizing the second instrument of testing the speed to record in described a plurality of network line the fastest A network line as grid line actually used between described client and described server-side Road.
Network line system of selection the most according to claim 1, it is characterised in that also include:
Utilize described second to test the speed on the instrument every network line in described a plurality of network line to carry out Above network tests the speed, and more than one utilizing that described second instrument of testing the speed records second is tested the speed The meansigma methods of value tests the speed result as the second of this network line.
Network line system of selection the most according to claim 1, it is characterised in that described first The instrument of testing the speed is that Ping tests the speed instrument, and described second instrument of testing the speed is that TCP tests the speed instrument.
Network line system of selection the most according to claim 3, it is characterised in that
Utilize described first instrument and described second that tests the speed to test the speed instrument at described a plurality of network line simultaneously On carry out network and test the speed, or
On described a plurality of network line, carry out network test the speed first with described first instrument that tests the speed, then profit On described a plurality of network line, carry out network test the speed with described second instrument that tests the speed.
5. a network speed-measuring method, including:
Utilize first instrument that tests the speed actually used between the client and server-side of described network application Carry out above network on network line to test the speed, and described first instrument of testing the speed records one will be utilized Individual above first meansigma methods testing the speed value tests the speed result as the first of described network line;
If described first result that tests the speed is not more than the second predetermined threshold,
Then test the speed the result network speed table as described network line using the first of described network line Levy,
The result that otherwise tests the speed the second of the described network line utilizing the second instrument of testing the speed to record is made Network speed for described network line characterizes.
Network speed-measuring method the most according to claim 5, it is characterised in that also include:
Described second instrument that tests the speed is utilized to carry out above network on described network line and test the speed, and More than one utilizing that described second instrument of testing the speed records second is tested the speed the meansigma methods of value as described net The second of winding thread road is tested the speed result.
Network speed-measuring method the most according to claim 5, it is characterised in that simultaneously utilize described First test the speed instrument and described second test the speed instrument carry out on described network line network test the speed or First with described first test the speed instrument carry out on described network line network test the speed recycling described second The instrument that tests the speed carries out network on described network line and tests the speed.
Network speed-measuring method the most according to claim 5, it is characterised in that also include:
Utilize the instrument that tests the speed in described network application to carry out network on described network line to test the speed, with Obtain the 3rd of described network line to test the speed result.
Network speed-measuring method the most according to claim 8, it is characterised in that also include:
The first of the described network line result or second that tests the speed is utilized to test the speed result and described network line The 3rd test the speed result, obtain the logical delay of described network application.
Network speed-measuring method the most according to claim 5, it is characterised in that described first surveys Speed instrument is that Ping tests the speed instrument, and described second instrument of testing the speed is that TCP tests the speed instrument.
The client of 11. 1 kinds of network applications, including for realizing any one of claim 1 to 10 The functional module of described method.
12. 1 kinds of storages have the computer-readable recording medium of computer executable instructions, described calculating Machine executable instruction is operable to realize according to any one of claim 1 to 10 when executed Method.
CN201510148197.8A 2015-03-31 2015-03-31 Network line selection method and network speed-measuring method Active CN106161052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510148197.8A CN106161052B (en) 2015-03-31 2015-03-31 Network line selection method and network speed-measuring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510148197.8A CN106161052B (en) 2015-03-31 2015-03-31 Network line selection method and network speed-measuring method

Publications (2)

Publication Number Publication Date
CN106161052A true CN106161052A (en) 2016-11-23
CN106161052B CN106161052B (en) 2019-10-08

Family

ID=57337894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510148197.8A Active CN106161052B (en) 2015-03-31 2015-03-31 Network line selection method and network speed-measuring method

Country Status (1)

Country Link
CN (1) CN106161052B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106953805A (en) * 2017-03-17 2017-07-14 广州爱九游信息技术有限公司 Network line control method, device and service terminal
CN109379247A (en) * 2018-09-27 2019-02-22 腾讯科技(深圳)有限公司 The method and device that the network delay of a kind of pair of application program is detected
CN109474497A (en) * 2018-12-19 2019-03-15 四川艾贝斯科技发展有限公司 A kind of reliable network maintenance terminal deep learning algorithm
CN115499346A (en) * 2022-09-15 2022-12-20 巨擎网络科技(济南)有限公司 Multi-network-card speed measuring method, device, equipment and medium
CN115499346B (en) * 2022-09-15 2024-04-26 巨擎网络科技(济南)有限公司 Speed measuring method, device, equipment and medium for multiple network cards

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075924A (en) * 2006-09-21 2007-11-21 腾讯科技(深圳)有限公司 Method for accessing server by customer end
CN103533016A (en) * 2013-01-24 2014-01-22 中国联合网络通信有限公司重庆市分公司 Broadband network speed measuring and intelligent analyzing system
CN103763156A (en) * 2014-01-28 2014-04-30 中国移动(深圳)有限公司 Network speed measurement method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075924A (en) * 2006-09-21 2007-11-21 腾讯科技(深圳)有限公司 Method for accessing server by customer end
CN103533016A (en) * 2013-01-24 2014-01-22 中国联合网络通信有限公司重庆市分公司 Broadband network speed measuring and intelligent analyzing system
CN103763156A (en) * 2014-01-28 2014-04-30 中国移动(深圳)有限公司 Network speed measurement method and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106953805A (en) * 2017-03-17 2017-07-14 广州爱九游信息技术有限公司 Network line control method, device and service terminal
CN109379247A (en) * 2018-09-27 2019-02-22 腾讯科技(深圳)有限公司 The method and device that the network delay of a kind of pair of application program is detected
CN109379247B (en) * 2018-09-27 2022-02-15 腾讯科技(深圳)有限公司 Method and device for detecting network delay of application program
CN109474497A (en) * 2018-12-19 2019-03-15 四川艾贝斯科技发展有限公司 A kind of reliable network maintenance terminal deep learning algorithm
CN115499346A (en) * 2022-09-15 2022-12-20 巨擎网络科技(济南)有限公司 Multi-network-card speed measuring method, device, equipment and medium
CN115499346B (en) * 2022-09-15 2024-04-26 巨擎网络科技(济南)有限公司 Speed measuring method, device, equipment and medium for multiple network cards

Also Published As

Publication number Publication date
CN106161052B (en) 2019-10-08

Similar Documents

Publication Publication Date Title
US10986009B2 (en) Cross-layer troubleshooting of application delivery
US10057136B2 (en) Method and apparatus for visualized network operation and maintenance
US9992082B2 (en) Classifier based graph rendering for visualization of a telecommunications network topology
US10031815B2 (en) Tracking health status in software components
US9411787B1 (en) Cross-layer troubleshooting of application delivery
CN105306585B (en) A kind of method of data synchronization of multiple data centers
US20140304407A1 (en) Visualizing Ephemeral Traffic
KR101797185B1 (en) Efficiently collecting transaction-separated metrics in a distributed environment
US9514567B2 (en) Screen display device, system, and screen generation method displaying the state of a network
CN106034077A (en) Dynamic route configuration method, device and system thereof
CN105760950B (en) There is provided or obtain the method, apparatus and forecasting system of prediction result
JP2012221500A (en) Visualizing transaction traces as flows through map of logical subsystems
CN104850573A (en) Data collection method and device
US20150172185A1 (en) Offline queries in software defined networks
CN106161052A (en) Network line system of selection and network speed-measuring method
US10462031B1 (en) Network visibility for cotenant processes
EP3232620B1 (en) Data center based fault analysis method and device
US10904096B2 (en) Deep network path analysis for identifying network segments affecting application performance
CN107979506A (en) Flow obtains and high in the clouds display systems, method, apparatus and equipment
CN106411629A (en) Method used for monitoring state of CDN node and equipment thereof
CN108737204A (en) A kind of acquisition method and communication terminal of network performance information
US10659338B1 (en) Isolation of network segments affecting application performance
US20210227351A1 (en) Out of box user performance journey monitoring
CN108267760A (en) Acquisition methods, device, computer equipment and the readable storage medium storing program for executing of location data
CN109981386A (en) Test method, testing service device and the test macro of network quality

Legal Events

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