CN108092837A - Network communication quality detection method tests the speed server and network tests the speed plug-in unit - Google Patents

Network communication quality detection method tests the speed server and network tests the speed plug-in unit Download PDF

Info

Publication number
CN108092837A
CN108092837A CN201611043010.9A CN201611043010A CN108092837A CN 108092837 A CN108092837 A CN 108092837A CN 201611043010 A CN201611043010 A CN 201611043010A CN 108092837 A CN108092837 A CN 108092837A
Authority
CN
China
Prior art keywords
speed
network
tests
bag
test
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
CN201611043010.9A
Other languages
Chinese (zh)
Other versions
CN108092837B (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.)
Tencent Technology Shenzhen 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 CN201611043010.9A priority Critical patent/CN108092837B/en
Publication of CN108092837A publication Critical patent/CN108092837A/en
Application granted granted Critical
Publication of CN108092837B publication Critical patent/CN108092837B/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
    • 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/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate

Landscapes

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

Abstract

An embodiment of the present invention provides a kind of network communication quality detection method, test the speed server and network tests the speed plug-in unit, the network plug-in unit that tests the speed is based on application layer and calls that connection request is tested the speed in transport layer protocol generation and network tests the speed bag;The server that tests the speed is based on application layer and transport layer protocol generation connection of testing the speed is called to establish response and the response bag that tests the speed, compared with being applied to the network communication quality detection method of transport layer in the prior art, the embodiment of the present application is applied in application layer, application layer is the top of OSI systems, it is directly to provide service for application process, it is unrelated with the underlying protocol of terminal, therefore used suitable for the terminal of various underlying protocols.

Description

Network communication quality detection method tests the speed server and network tests the speed plug-in unit
Technical field
This application involves fields of communication technology, more particularly relate to a kind of network communication quality detection method, the service of testing the speed Device and network test the speed plug-in unit.
Background technology
Many applications clients are installed in terminal at present, such as《Pass through firewire》Applications client,《Swordsman's love》It should With client,《Celestial being is put to death in illusion》Applications client, applications client can all be related to network interaction, network communication in the process of running Quality influences the normal operation of applications client very big.
At present to the network communication quality detection method of applications client, the communication protocol of terminal bottom is all required, Such as using ping instruments detect applications client network communication quality when, it is necessary to which the communication protocol of terminal bottom is Linux procotols are not suitable for the terminal that basic communication protocol is other procotols.
To sum up, the limitation of current network communication quality detection method is larger, is not suitable for all terminals.
The content of the invention
In view of this, the present invention provides a kind of network communication quality detection method, test the speed server and network test the speed it is slotting Part, the problem of to overcome the limitation of network communication quality detection method in the prior art larger, not be suitable for all terminals.
To achieve the above object, the present invention provides following technical solution:
A kind of network communication quality detection method, including:
According to the mailing address of the preconfigured server that tests the speed, transport layer protocol generation is called to test the speed connection foundation please It asks;
To the connection foundation request of testing the speed described in server transmission of testing the speed;
After testing the speed and being connected with the server foundation of testing the speed, the transport layer protocol generation network is called to test the speed bag;
The network is sent to the server that tests the speed to test the speed bag;
The response bag that tests the speed of the calling transport layer protocol generation for the server feedback that tests the speed described in reception, to determine State the corresponding network communication quality of applications client.
A kind of network communication quality detection method, applied to the server that tests the speed, the network communication quality detection method bag It includes:
Receive network test the speed plug-in unit transmission callings transport layer protocol generation test the speed connection establish ask, the company of testing the speed It connects and establishes request and include testing the speed with the network mailing address of the associated applications client of plug-in unit;
According to the mailing address of the applications client, the transport layer protocol is called to generate connection of testing the speed and establishes response;
Response is established to network connection of testing the speed described in plug-in unit feedback of testing the speed;
The test the speed network of calling transport layer protocol generation of plug-in unit transmission of the network is received to test the speed bag;
Transport layer protocol generation and the network is called to test the speed the corresponding response bag that tests the speed of bag;
The response bag that tests the speed is sent to the network to test the speed plug-in unit.
A kind of network tests the speed plug-in unit, including:
Connection request module is established in generation, for the mailing address according to the preconfigured server that tests the speed, calls transmission Layer protocol generation, which tests the speed to connect, establishes request;
Send connection request module, for it is described test the speed server send described in test the speed connection establish request;
Generation is tested the speed bag module, for after testing the speed and being connected with the server foundation of testing the speed, the transport layer being called to assist View generation network tests the speed bag;
Transmission is tested the speed bag module, is tested the speed bag for sending the network to the server that tests the speed;
Response bag module is received, for receiving the survey of the calling of the server feedback that the tests the speed transport layer protocol generation Fast response bag, to determine the corresponding network communication quality of the applications client.
One kind tests the speed server, including:
Receive connection request module, for receive network test the speed plug-in unit transmission call transport layer protocol generation the company of testing the speed Connect foundation request, request is established in the connection of testing the speed to be included testing the speed with the network communication of the associated applications client of plug-in unit Address;
Connection reply module is established in generation, for the mailing address according to the applications client, calls the transport layer Response is established in protocol generation connection of testing the speed;
Connection reply module is sent, for establishing response to network connection of testing the speed described in plug-in unit feedback of testing the speed;
Reception is tested the speed bag module, is tested the speed the calling transport layer protocol generation of plug-in unit transmission for receiving the network Network tests the speed bag;
Response bag module is generated, it should for the transport layer protocol generation and the network to be called to test the speed corresponding test the speed of bag Answer bag;
Response bag module is sent, is tested the speed plug-in unit for the response bag that tests the speed to be sent to the network.
It can be seen via above technical scheme that compared with prior art, an embodiment of the present invention provides a kind of network communication matter Quantity measuring method tests the speed server and network tests the speed plug-in unit, and the network plug-in unit that tests the speed is based on application layer and calls transport layer protocol generation It tests the speed connection request and network tests the speed bag;The server that tests the speed is based on application layer and transport layer protocol is called to generate connection foundation of testing the speed Response and the response bag that tests the speed, compared with being applied to the network communication quality detection method of transport layer in the prior art, the application Embodiment is applied in application layer, and application layer is the top of OSI systems, is directly to provide service for application process, with terminal Underlying protocol it is unrelated, therefore suitable for various underlying protocols terminal use.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention, for those of ordinary skill in the art, without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the structure diagram of network communication quality detecting system provided by the embodiments of the present application;
Fig. 2 is a kind of signaling diagram of communication quality detection method provided by the embodiments of the present application;
Fig. 3 tests the speed for a kind of network provided by the embodiments of the present application, and repeatedly poll detection is shown before for plug-in unit and the server that tests the speed It is intended to;
Fig. 4 for each network provided by the embodiments of the present application tests the speed the sending time of bag and corresponding response is tested the speed bag Receiving time transmitting-receiving temporal information schematic diagram;
Fig. 5 is that a kind of network provided by the embodiments of the present application tests the speed the structure diagram of plug-in unit;
Fig. 6 is a kind of structure diagram for the server that tests the speed provided by the embodiments of the present application;
Fig. 7 is the hardware block diagram for the terminal that network provided in an embodiment of the present invention tests the speed where plug-in unit;
Fig. 8 is the hardware block diagram of the server provided in an embodiment of the present invention that tests the speed.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment belongs to the scope of protection of the invention.
The embodiment of the present application provides a kind of communication quality detection method, which can be applied to net Network communication quality detecting system, as shown in Figure 1, the structural frames for network communication quality detecting system provided by the embodiments of the present application Figure.
Network communication quality detecting system includes:Terminal 11 and the server 12 that tests the speed.It can be provided in terminal 11 more A applications client 13, such as《Pass through firewire》Applications client,《Swordsman's love》Applications client,《Celestial being is put to death in illusion》Using visitor Family end, the network that each applications client 13 can include having the function of described by communication quality detection method test the speed plug-in unit 14, Test the speed plug-in unit 14 and the server 12 that tests the speed of network is completed pair to test the speed with network the network of the associated applications client of plug-in unit jointly The detection of communication quality.
With reference to above-mentioned network communication quality detecting system, test the speed to the network in an above-mentioned applications client plug-in unit Communication quality detection method illustrates, referring to Fig. 2, being a kind of communication quality detection method provided by the embodiments of the present application Signaling diagram.
Step S201:Network tests the speed mailing address of the plug-in unit 14 according to the preconfigured server that tests the speed, and calls transport layer Protocol generation, which tests the speed to connect, establishes request.
OSI (Open System Interconnect, open system interconnection reference model), includes successively from bottom to up: Physical layer, data link layer, network layer, transport layer, session layer, expression layer and application layer, the network in the embodiment of the present application lead to Letter quality determining method can be applied to application layer.Application layer can call the transport layer protocol of transport layer, test the speed so as to generate Request is established in connection.
Above-mentioned transport layer protocol can be UDP (User Datagram Protocol, User Datagram Protocol) or TCP (Transmission Control Protocol transmission control protocols).
Data packet using transport layer protocol generation includes heading part and data content part, wherein heading part Including source port number and destination port number, in the embodiment of the present application, source port number is the end that network tests the speed where plug-in unit 14 End 11 mailing address (including IP address and port numbers), destination port number be test the speed server 12 mailing address (including survey The IP address and port numbers of fast server).Data content portion is the connection request corresponding contents that test the speed.
Since multiple terminals can be included in an equipment, the terminal can be uniquely determined by IP address and port numbers. And multiple servers can also be included in an equipment, the server that tests the speed can be uniquely determined by IP address and port numbers.
Step S202:The network plug-in unit 14 that tests the speed is built by the terminal 11 where it to the transmission of server 12 connection of testing the speed of testing the speed Vertical request.
Step S203:The server 12 that tests the speed receive network test the speed plug-in unit transmission call transport layer protocol generation the company of testing the speed Foundation request is connect, according to the mailing address of the applications client, the transport layer protocol generation is called to test the speed connection foundation should It answers.
Request is established in connection of testing the speed to be included testing the speed with the network mailing address of the associated applications client of plug-in unit, i.e., Network tests the speed the mailing address of the terminal where plug-in unit and applications client, such as IP address and port numbers.
Network communication quality detection method applied to the server 12 that tests the speed can be applied to application layer, and application layer can be adjusted With the transport layer protocol of transport layer, such as udp protocol or Transmission Control Protocol.Heading part in the data packet of connection reply that tests the speed Source port number is the mailing address of server of testing the speed, and destination port number tests the speed the mailing address of the terminal where plug-in unit for network, Data content portion is that the corresponding contents of response are established in connection of testing the speed, such as agrees to establish connection or forbid establishing connection etc..
The embodiment of the present application is agreed to establish on the basis of connection based on the server 12 that tests the speed to be realized, therefore to this part Content describes in detail.
Step S204:The server 12 that tests the speed test the speed plug-in unit 14 to network where the feedback of terminal 11 test the speed that connection establishes should It answers.
Step S205:Network tests the speed plug-in unit 14 after testing the speed and being connected with the foundation of server 12 of testing the speed, and calls the biography Defeated layer protocol generation network tests the speed bag.
Step S206:The network plug-in unit 14 that tests the speed sends the network to the server 12 that tests the speed and tests the speed bag.
Step S207:The server 12 that tests the speed receives the network and tests the speed the calling transport layer protocol life of the transmission of plug-in unit 14 Into network test the speed bag, the transport layer protocol generation and the network is called to test the speed the corresponding response bag that tests the speed of bag.
The server 12 that tests the speed can call transport layer protocol on the application layer, so as to generate with the network test the speed bag pair The response bag that tests the speed answered.
Step S208:The response bag that tests the speed is sent to the network and tested the speed plug-in unit 14 by the server 12 that tests the speed.
Step S209:The network plug-in unit 14 that tests the speed receives the calling transport layer protocol generation of the feedback of server 12 that tests the speed Test the speed response bag, to determine the corresponding network communication quality of the applications client.
In network communication quality detection method provided by the embodiments of the present application, network tests the speed plug-in unit 14 based on application layer calling Connection request is tested the speed in transport layer protocol generation and network tests the speed bag;The server 12 that tests the speed is based on application layer and calls transport layer protocol Generation connection of testing the speed establishes response and the response bag that tests the speed, and the network communication quality with being applied to transport layer in the prior art detects Method is compared, and the embodiment of the present application is applied in application layer, and application layer is the top of OSI systems, is directly to be carried for application process It is unrelated with the underlying protocol of terminal for service, therefore used suitable for the terminal of various underlying protocols.
In order to which those skilled in the art more understand network communication quality detection method provided by the embodiments of the present application, below A specific example is lifted to illustrate, with《Swordsman's love》It is illustrated exemplified by applications client, Ke Yi《Swordsman's love》Using Client adds in network and tests the speed plug-in unit, such as GSDK (Game Software Development Kit, Games Software exploitation work Tool bag) plug-in unit.When user installs in terminal《Swordsman's love》During applications client, also GSDK plug-in units are mounted with simultaneously.So when User opens in terminal《Swordsman's love》When applications client plays game,《Swordsman's love》It is right with it that applications client can be triggered The GSDK plug-in units answered, GSDK plug-in units will perform Signalling exchange shown in FIG. 1 with the server that tests the speed.When user closes《Swordsman's feelings Edge》After applications client,《Swordsman's love》Applications client can trigger the survey between the release of GSDK plug-in units and the server that tests the speed Speed connection.Alternatively,《Swordsman's love》Applications client provides human-computer interaction interface to the user, and user can pass through the human-computer interaction Interface triggering GSDK plug-in units start and test the speed server and establish test the speed connection and the release of triggering GSDK plug-in units and the server that tests the speed The connection of testing the speed established.
GSDK plug-in units can include starting sniffing interface and stop sniffing interface, when user opens in terminal《Swordsman's feelings Edge》Applications client object for appreciation game (or,《Swordsman's love》In human-computer interaction interface in applications client, user, which performs, to be started The operation tested the speed) when,《Swordsman's love》Applications client can call the beginning sniffing interface of GSDK plug-in units, the beginning of GSDK plug-in units It is that GSDK plug-in units receive opening network and test the speed instruction, GSDK plug-in units start execution step at this time after sniffing interface is triggered S201.When user closes《Swordsman's love》Applications client (or,《Swordsman's love》Human-computer interaction interface in applications client In, user performs the operation for stopping testing the speed) when,《Swordsman's love》Applications client can call the stopping of GSDK plug-in units to detect and connect Mouthful, it is that GSDK plug-in units receive and stop network and test the speed instruction after the stopping sniffing interfaces of GSDK plug-in units is called, GSDK at this time Plug-in unit just will disconnect and test the speed the connection of testing the speed of server.
Specifically, network test plug-in unit 14 can be also used for:
Receive stop network testing the speed instruction when, according to the mailing address of the server that tests the speed, call transport layer protocol Generation, which tests the speed to connect, terminates request.
To the connection termination request of testing the speed described in server transmission of testing the speed.
When the connection of testing the speed of the transport layer protocol generation being called to terminate response of the server feedback that tests the speed is received, It discharges and is connected with the testing the speed for server foundation of testing the speed.
Correspondingly, the server that tests the speed can be also used for:
Receive the network test the speed plug-in unit transmission callings transport layer protocol generation test the speed connection terminate ask.
According to the mailing address of the applications client, the transport layer protocol generation is called to test the speed and connects termination response.
To the network test the speed plug-in unit transmission test the speed connection terminate response, and discharge with the network test the speed plug-in unit foundation It tests the speed connection.
Network test plug-in unit 14 is in the mailing address according to the preconfigured server that tests the speed, calling transport layer protocol generation When request is established in connection of testing the speed, it is specifically used for:
Receive opening network test the speed instruction when, determine the mailing address of the preconfigured server that tests the speed.
The mailing address according to the preconfigured server that tests the speed calls transport layer protocol generation to test the speed and connects foundation Request.
The network plug-in unit 14 that tests the speed is sent primary network to the server 12 that tests the speed and tested the speed bag, the server that tests the speed tests the speed to network Plug-in unit 14 feeds back a corresponding response and tests the speed bag, is known as a poll and detects.It is understood that it can be visited by a poll It surveys to determine network communication quality.It can also detect to determine network communication quality by multiple poll.
When needing the detection of multiple poll come when determining network communication quality, the network plug-in unit 14 that tests the speed needs the downlink service of testing the speed Device 12 sends multiple networks and tests the speed bag, and the server 12 that tests the speed needs to feed back multiple responses to the network plug-in unit 14 that tests the speed and test the speed bag, is The network plug-in unit 14 that tests the speed can tell that test the speed bag and which network of each response of the feedback of server 12 that tests the speed tests the speed bag phase It is corresponding, it similarly tests the speed bag in order to which the server 12 that tests the speed can tell each network, is wrapped pair to generate to test the speed with each network The response answered tests the speed bag, it is necessary to test the speed plug-in unit in network and the server that tests the speed is pre-set, i.e., tests the speed in network on plug-in unit The corresponding measurement data content of each order of transmission is set, is set in the server that tests the speed in the corresponding reply data of each order of transmission Hold.
At this point, network tests the speed, plug-in unit 14 is specifically used for when the calling transport layer protocol generation network tests the speed bag:
Determine that network tests the speed the currently transmitted order of bag.
From the corresponding measurement data content of preconfigured each order of transmission, surveys corresponding with currently transmitted order is obtained Fast data content.
The transport layer protocol is called, in the data area of the data packet of the transport layer protocol, is tested the speed described in filling Data content is tested the speed bag with generating the network that need to currently send.
Correspondingly, transport layer protocol generation is called to test the speed with the network, bag is corresponding to test the speed the server 12 that tests the speed During response bag, it is specifically used for:
It determines that the network tests the speed and wraps corresponding order of transmission.
From the corresponding reply data content of the preconfigured each order of transmission of the server that tests the speed, obtain and the hair Send order corresponding reply data content.
The transport layer protocol is called, in the data area of the data packet of the transport layer protocol, fills the response Data content is tested the speed bag with generating the response that need to currently send.
So it is assured which network tests the speed bag and the response bag that tests the speed is corresponding.
It is understood that the server 12 that tests the speed can detect simultaneously multiple applications clients (such as《Pass through firewire》It should With client,《Swordsman's love》Applications client,《Celestial being is put to death in illusion》Applications client) network communication quality, in order to test the speed clothes It is currently that the test the speed network of plug-in unit transmission of network of which applications client tests the speed bag that business device 12, which can be told, and network tests the speed bag In also need to can be identified for that the identification information of applications client, in order to which the network plug-in unit 14 that tests the speed can tell the server that tests the speed 12 feedback which response test the speed bag to one's name, the server 12 that tests the speed generation response test the speed bag in need to include can be identified for that The identification information of applications client.I.e. network test the speed bag in measurement data content include:The corresponding transmission of measurement data content It order and tests the speed the identification information of the associated applications client of plug-in unit for identifying network.Response test the speed bag in answer number Include according to content:It the corresponding order of transmission of reply data content and tests the speed the associated application client of plug-in unit for identifying network The identification information at end.
Referring to Fig. 3, it tests the speed plug-in unit and the repeatedly wheel that tests the speed before server for a kind of network provided by the embodiments of the present application Ask detection schematic diagram.
From figure 3, it can be seen that terminal 11 includes 3 applications clients, it is respectively《Pass through firewire》Applications client 1、《Swordsman's love》Applications client 2,《Celestial being is put to death in illusion》Applications client 3.
Assuming that it can be identified for that《Pass through firewire》The identification information of applications client 1 is 1, be can be identified for that《Swordsman's love》Using The identification information of client 2 is 2, be can be identified for that《Celestial being is put to death in illusion》The identification information of applications client 3 is 3, each applications client Order of transmission since 0, be expressed as network with " A " and test the speed bag, being expressed as response with " B " tests the speed bag.
《Pass through firewire》The test the speed network of from plug-in unit 14 to the transmission of server 12 of testing the speed of network in applications client 1 tests the speed bag In measurement data content be followed successively by 100A, 101A ..., 109A ..., wherein " 0 ", " 1 " ..., " 9 " ... represent order of transmission; Correspondingly, test the speed server 12 feedback response test the speed bag be followed successively by 100B, 101B ..., 109B ..., wherein " 0 ", " 1 " ..., " 9 " ... represent order of transmission.
《Swordsman's love》The test the speed network of from plug-in unit 14 to the transmission of server 12 of testing the speed of network in applications client 2 tests the speed bag In measurement data content be followed successively by 200A, 201A ..., 209A ..., wherein " 0 ", " 1 " ..., " 9 " ... represent order of transmission; Correspondingly, test the speed server 12 feedback response test the speed bag be followed successively by 200B, 201B ..., 209B ..., wherein " 0 ", " 1 " ..., " 9 " ... represent order of transmission.
《Celestial being is put to death in illusion》The test the speed network of from plug-in unit 14 to the transmission of server 12 of testing the speed of network in applications client 3 tests the speed bag In measurement data content be followed successively by 300A, 301A ..., 309A ..., wherein " 0 ", " 1 " ..., " 9 " ... represent order of transmission; Correspondingly, test the speed server 12 feedback response test the speed bag be followed successively by 300B, 301B ..., 309B ..., wherein " 0 ", " 1 " ..., " 9 " ... represent order of transmission.
Do not consider that bag is tested the speed in response or network tests the speed the situation of packet loss in Fig. 3, bag or response are surveyed if a certain network tests the speed Corresponding network in Fig. 3 is then tested the speed bag or the response bag that tests the speed is deleted by fast packet loss.
There are many poll detection modes that network tests the speed between plug-in unit 14 and the server 12 that tests the speed, and Fig. 3 is with a poll After detection, preset time is spaced, sending network to the server 12 that tests the speed again tests the speed bag, waiting to receive the server 12 that tests the speed The corresponding response of feedback is tested the speed after bag, and sending network to the server that tests the speed again tests the speed bag, and so on.I.e. network tests the speed slotting Part 14 is specifically used for when testing the speed bag to the server transmission network that tests the speed:Determine the corresponding net of currently transmitted order Network tests the speed bag;Receive the corresponding network of an order of transmission test the speed the corresponding response of bag test the speed bag when, be spaced preset time, to The server that tests the speed sends the currently transmitted corresponding network of order and tests the speed bag.
Above-mentioned preset time can be 5 seconds, 6 seconds etc., specifically can be according to actual conditions depending on.
It is understood that network tests the speed, plug-in unit 14 to the server transmission network that tests the speed when testing the speed bag, also It can be specifically used for:It is to test the speed every to the server transmission network corresponding with currently transmitted order that tests the speed between preset time Bag.
Prefixed time interval herein, can be identical with a upper preset time, can not also be same.
The network plug-in unit 14 that tests the speed can test the speed the transmission situation of bag and response is tested the speed the reception condition of bag according to network, to sentence Circuit network tests the speed the network communication quality of 14 associated applications client of plug-in unit.
The network plug-in unit 14 that tests the speed can be also used for:
It determines to send each network to test the speed the sending time of bag.
It determines to receive each response to test the speed the receiving time of bag.
The sending time of bag is tested the speed according to each network and the corresponding response is tested the speed the receiving time of bag, It determines that the network tests the speed and wraps corresponding transmitting-receiving temporal information.
The network plug-in unit 14 that tests the speed can test the speed to wrap and lays timestamp in each network of transmission, and the server 12 that tests the speed can be with It tests the speed to wrap in each response of feedback and lays timestamp, the timestamp for the bag that can be tested the speed according to each network determines hair Send the time;Can test the speed the timestamp of bag according to response, determine receiving time, and transmitting-receiving temporal information can refer to each net The difference of the receiving time of network tests the speed the sending time of bag and the corresponding response is tested the speed bag.
As shown in figure 4, for each network provided by the embodiments of the present application test the speed bag sending time and it is corresponding should Answer the schematic diagram of the transmitting-receiving temporal information of the receiving time for the bag that tests the speed.
From Fig. 4 in Fig. 3《Pass through firewire》Network in applications client 1 tests the speed for plug-in unit 14, and makes Network tests the speed plug-in unit 14 as GSDK plug-in units.Therefore not shown in Fig. 4《Pass through firewire》The identification information of applications client 1, It illustrates only《Pass through firewire》The order of transmission of applications client 1 and reception order.
1 receive head is of Send head is, 1 back is B refer to that the test the speed order of transmission of bag of network is " 1 ", the response received test the speed in bag order of transmission for " 1 " and with " B ".
Socket cost time is 34 refer to the network that order of transmission is 1 to test the speed the response that bag and order of transmission be 1 Test the speed bag transmitting-receiving temporal information be 34ms.Other and so on, no longer explain one by one.
As can see from Figure 4《Pass through firewire》Applications client 1 tests the speed bag according to the transmission network shown in Fig. 3 Method, in 12 polls detect, during the reception of each network tests the speed the sending time of bag and corresponding response is tested the speed bag Between transmitting-receiving temporal information be respectively:34ms、46ms、49ms、48ms、49ms、50ms、47ms、35ms、47ms、48ms、 75ms、35ms。
Network test the speed plug-in unit 14 obtain each network test the speed bag it is corresponding transmitting-receiving temporal information after, can be according to each institute It states network to test the speed the corresponding transmitting-receiving temporal information of bag, determines the network communication quality, and be sent to the Analysis server, The corresponding transmitting-receiving temporal information of the bag that each network can be tested the speed is sent to Analysis server, so that the Analysis server is true The fixed network communication quality.
Analysis server can be located at the developer one side of applications client, and such developer is receiving application client During the problem of end feedback, it can first judge whether the applications client problem is to be led because of the problem of network communication quality It causes.If when problem occurs for applications client, network communication quality is good, you can to support the normal fortune of applications client The problem of row, then explanation is strictly applications client itself, so as to formula developer's application client.
If without above-mentioned network communication quality detection method, developer do not know applications client go wrong be due to Network communication quality still due to applications client itself the drawbacks of it is caused, blindly applications client is improved, may Substantial amounts of human and material resources and financial resources can be wasted.
If network tests the speed, plug-in unit 14 oneself tests the speed according to each network and wraps corresponding transmitting-receiving temporal information, determines application The network communication quality of client, then the network plug-in unit that tests the speed test the speed the corresponding transmitting-receiving temporal information of bag according to each network, (following methods are also applied for Analysis server, are corresponded to according to each network bag that tests the speed when determining the network communication quality Transmitting-receiving temporal information, determine the concrete methods of realizing of the network communication quality of applications client), be specifically used for:
Test the speed the corresponding transmitting-receiving temporal information of bag according to each network, determine maximum transmitting-receiving temporal information and/or, Minimum transmitting-receiving temporal information and/or, averagely receive and dispatch temporal information.
According to the maximum transmitting-receiving temporal information and/or, the minimum transmitting-receiving temporal information and/or, the average receipts Temporal information is sent out, determines the network communication quality.
By taking 12 transmitting-receiving temporal informations shown in Fig. 4 as an example, maximum transmitting-receiving temporal information is 75ms, minimum transmitting-receiving time letter It ceases for 34ms, it is 46.9ms averagely to receive and dispatch temporal information.
The network plug-in unit 14 that tests the speed can be also used for:
The network for determining to send in the default transmitting-receiving time test the speed bag quantity and within the default transmitting-receiving time The response received is tested the speed the theoretical quantity of bag.
Determine that the response that is an actually-received in the default transmitting-receiving time is tested the speed the actual quantity of bag.
Due to being likely to occur the situation of packet loss, if plug-in unit 14 can follow after one network of transmission tests the speed bag for example, network tests the speed Ring is monitored to test the speed bag with the network corresponding response of bag of testing the speed, if more than after certain time (such as 3s), abandoning reception and be somebody's turn to do to answer The bag that tests the speed is answered, such case is just the situation of packet loss.
Network test the speed plug-in unit 14 can oneself according to the theoretical quantity and the actual quantity, determine the network communication Quality, and it is sent to the Analysis server;Alternatively, the theoretical quantity and the actual quantity are sent to Analysis Service Device, so that the Analysis server determines the network communication quality.
Network tests the speed plug-in unit 14 according to theoretical quantity and actual quantity, when determining network communication quality, specifically for (should Method is also applied for Analysis server):
Determine the theoretical quantity and the difference of the actual quantity.
When the difference is less than or equal to margin threshold, determine that the network communication quality is good.
When the difference is more than the margin threshold, determine that the network communication quality is not good enough.
Assuming that the network sent in the default transmitting-receiving time tests the speed, the quantity of bag is 30, theoretical within the default transmitting-receiving time On the response that receives test the speed the quantity of bag, i.e., theoretical quantity should be 30, if being an actually-received within the default transmitting-receiving time Response test the speed bag, i.e., actual quantity is 10, shows that the network communication quality of applications client is not good enough;When actual quantity is 30 It is a or 29, show that the network communication quality of applications client is good.Margin threshold can be 1,2,3 etc..
The embodiment of the present application additionally provides a kind of network and tests the speed plug-in unit, referring to Fig. 5, being provided by the embodiments of the present application one Kind of network tests the speed the structure diagram of plug-in unit, and the network plug-in unit that tests the speed can include:Connection request module 51, the company of transmission are established in generation Request module 52 is connect, the bag module 53 that tests the speed is generated, sends and test the speed bag module 54 and receive response bag module 55, wherein:
Connection request module 51 is established in generation, for the mailing address according to the preconfigured server that tests the speed, is called and is passed Defeated layer protocol generation, which tests the speed to connect, establishes request.
Connection request module 51 is established in generation to be included:Receive command unit, for receive opening network test the speed instruction when, Determine the mailing address of the preconfigured server that tests the speed;Connection request unit is generated, for described according to preconfigured survey The mailing address of fast server calls transport layer protocol generation to test the speed and connects foundation request.
Connection request module 52 is sent, request is established for connection of testing the speed described in being sent to the server that tests the speed.
Generation is tested the speed bag module 53, for after testing the speed and being connected with the server foundation of testing the speed, calling the transport layer Protocol generation network tests the speed bag.
Transmission is tested the speed bag module 54, is tested the speed bag for sending the network to the server that tests the speed.
Response bag module 55 is received, for receiving the transport layer protocol generation of the calling of the server feedback that tests the speed Test the speed response bag, to determine the corresponding network communication quality of the applications client.
Network provided by the embodiments of the present application tests the speed in plug-in unit, and generation is established connection request module 51 and called based on application layer Transport layer protocol generates to test the speed connection request and generate the bag module 53 that tests the speed calls transport layer protocol generation network in application layer Test the speed bag;The server 12 that tests the speed is based on application layer and transport layer protocol generation connection of testing the speed is called to establish response and response of testing the speed Bag, compared with being applied to the network communication quality detection method of transport layer in the prior art, the embodiment of the present application, which is applied, to be applied Layer, application layer is the top of OSI systems, is directly to provide service for application process, unrelated with the underlying protocol of terminal, because This terminal for being suitable for various underlying protocols uses.
Calling the data packet of the transport layer protocol generation includes data area, and generating the bag module 43 that tests the speed includes:It determines Order of transmission unit, for determining that the network tests the speed the currently transmitted order of bag;Measurement data unit is obtained, for from advance In the corresponding measurement data content of each order of transmission of configuration, measurement data content corresponding with currently transmitted order is obtained;It is raw Into the bag unit that tests the speed, for calling the transport layer protocol, in the data area of the data packet of the transport layer protocol, fill The measurement data content is tested the speed bag with generating the network that need to currently send.
Network tests the speed plug-in unit can be associated with applications client.
There are many realization methods for sending the bag module 44 that tests the speed, and the embodiment of the present application provides two kinds and sends the bag module that tests the speed Realization method:
The first, sending the bag module 44 that tests the speed includes:
The bag unit that tests the speed is determined, for determining that the corresponding network of currently transmitted order tests the speed bag;Transmission is tested the speed bag unit, is used In receive the upper corresponding network of an order of transmission test the speed the corresponding response of bag test the speed bag when, preset time is spaced, to the survey Fast server sends the currently transmitted corresponding network of order and tests the speed bag.
Second, sending the bag module 44 that tests the speed includes:
Interval sends and tests the speed bag unit, for using preset time for interval to it is described test the speed server transmission with it is currently transmitted The corresponding network of order tests the speed bag.
Determine network communication quality mode can there are many, the embodiment of the present application provide but be not limited to following two.
The first, the network plug-in unit that tests the speed further includes:
Determine sending time module, the sending time for the bag that tests the speed for definite each network of transmission;Determine receiving time Module, the receiving time for the bag that tests the speed for definite each response of reception;Transmitting-receiving time module is determined, for according to each described The receiving time of network tests the speed the sending time of bag and the corresponding response is tested the speed bag determines that the network tests the speed bag Corresponding transmitting-receiving temporal information.
The network plug-in unit that tests the speed can also include:Send transmitting-receiving temporal information module, for by each network test the speed bag pair The transmitting-receiving temporal information answered is sent to Analysis server, so that the Analysis server determines the network communication quality;Or, really Determine network communication quality module, wrap corresponding transmitting-receiving temporal information for testing the speed according to each network, determine that the network leads to Believe quality, and be sent to the Analysis server.
Determine that network communication quality module can include:It determines to receive information unit, for testing the speed according to each network Wrap corresponding transmitting-receiving temporal information, determine maximum transmitting-receiving temporal information and/or, minimum transmitting-receiving temporal information and/or, it is average Receive and dispatch temporal information;Determine network communication quality unit, for according to the maximum transmitting-receiving temporal information and/or, the minimum Receive and dispatch temporal information and/or, it is described averagely to receive and dispatch temporal information, determine the network communication quality.
Second, the network plug-in unit that tests the speed further includes:
Determine theory quantity module, for determining that the network sent in the default transmitting-receiving time tests the speed the quantity of bag, with And the response that receives is tested the speed the theoretical quantity of bag within the default transmitting-receiving time;Actual quantity module is determined, for determining The response that is an actually-received is tested the speed the actual quantity of bag in the default transmitting-receiving time.
The network plug-in unit that tests the speed further includes:Quantity forwarded module, for the theoretical quantity and the actual quantity to be sent To Analysis server, so that the Analysis server determines the network communication quality;Or, definite network communication quality module, For according to the theoretical quantity and the actual quantity, determining the network communication quality, and being sent to the Analysis Service Device.
The network plug-in unit that tests the speed further includes:
Processing module, for receive stop network testing the speed instruction when, according to the mailing address of the server that tests the speed, adjust It tests the speed to connect with transport layer protocol generation and terminates request;Transmission, which tests the speed to connect, terminates module, for being sent out to the server that tests the speed The connection of testing the speed is sent to terminate request;The link block that tests the speed is discharged, for receiving the calling institute of the server feedback that tests the speed When stating the connection of testing the speed of transport layer protocol generation and terminating response, release is tested the speed and is connected with what the server that tests the speed was established.
The embodiment of the present application additionally provides one kind and tests the speed server, referring to Fig. 6, being one kind provided by the embodiments of the present application Test the speed the structure diagram of server, which includes:Receive connection request module 61, connection reply mould is established in generation Block 62 sends connection reply module 63, receives the bag module 64 that tests the speed, generation response bag module 65 and send response bag module 66, wherein:
Connection request module 61 is received, is tested the speed the testing the speed of generating of callings transport layer protocol of plug-in unit transmission for receiving network Request is established in connection, and request is established in the connection of testing the speed to be included testing the speed the logical of the associated applications client of plug-in unit with the network Believe address.
Connection reply module 62 is established in generation, for the mailing address according to the applications client, calls the transmission Layer protocol generates connection of testing the speed and establishes response.
Connection reply module 63 is sent, response is established in connection of testing the speed described in plug-in unit feedback for testing the speed to the network.
Reception is tested the speed bag module 64, is tested the speed the calling transport layer protocol generation of plug-in unit transmission for receiving the network Network test the speed bag.
Response bag module 65 is generated, bag is corresponding to test the speed for the transport layer protocol generation to be called to test the speed with the network Response bag.
Response bag module 66 is sent, is tested the speed plug-in unit for the response bag that tests the speed to be sent to the network.
Calling the data packet of the transport layer protocol generation includes data area, and generation response bag module 65 includes:
It determines order of transmission unit, corresponding order of transmission is wrapped for determining that the network tests the speed;It obtains in reply data Hold unit, for from the corresponding reply data content of the preconfigured each order of transmission of the server that tests the speed, obtaining and institute State the corresponding reply data content of order of transmission;Generation response is tested the speed bag unit, for calling the transport layer protocol, described In the data area of the data packet of transport layer protocol, fill the reply data content, with generation need to currently send described in should Answer the bag that tests the speed.
The server that tests the speed further includes:
Reception test the speed connection terminate module, for receive the network test the speed plug-in unit transmission calling transport layer protocol generation Test the speed connection terminate request;Generation connection of testing the speed terminates responder module, for the mailing address according to the applications client, The transport layer protocol generation is called to test the speed and connects termination response;The link block that tests the speed is discharged, it is slotting for testing the speed to the network Part transmission connection of testing the speed terminates response, and discharges and test the speed and be connected with what the network tested the speed that plug-in unit establishes.
Fig. 7 show it is provided in an embodiment of the present invention comprising network test the speed plug-in unit terminal hardware block diagram, reference Fig. 7, the terminal can include:Processor 71, communication interface 72, memory 73 and communication bus 74;
Wherein processor 71, communication interface 72, memory 73 complete mutual communication by communication bus 74;
Optionally, communication interface 72 can be the interface of communication module, such as the interface of gsm module;
Processor 71, for performing program;
Memory 73, for storing program and data;
Program can include program code, and said program code includes computer-managed instruction;Data can include advance The mailing address and transport layer protocol of the server that tests the speed of configuration.
Processor 71 may be a central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit) or be arranged to implement the embodiment of the present invention one or more integrate electricity Road.
Memory 73 may include high-speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile Memory), a for example, at least magnetic disk storage.
Wherein, program can be specifically used for:
According to the mailing address of the preconfigured server that tests the speed, transport layer protocol generation is called to test the speed connection foundation please It asks.
To the connection foundation request of testing the speed described in server transmission of testing the speed.
After testing the speed and being connected with the server foundation of testing the speed, the transport layer protocol generation network is called to test the speed bag.
The network is sent to the server that tests the speed to test the speed bag.
The response bag that tests the speed of the calling transport layer protocol generation for the server feedback that tests the speed described in reception, to determine State the corresponding network communication quality of applications client.
Fig. 8 shows the hardware block diagram of the server provided in an embodiment of the present invention that tests the speed, and with reference to Fig. 8, which can To include:Processor 81, communication interface 82, memory 83 and communication bus 84;
Wherein processor 81, communication interface 8, memory 83 complete mutual communication by communication bus 84;
Optionally, communication interface 82 can be the interface of communication module, such as the interface of gsm module;
Processor 81, for performing program;
Memory 83, for storing program and data;
Program can include program code, and said program code includes computer-managed instruction;Data can include network The mailing address and transport layer protocol of the terminal to test the speed where plug-in unit.
Processor 81 may be a central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit) or be arranged to implement the embodiment of the present invention one or more integrate electricity Road.
Memory 83 may include high-speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile Memory), a for example, at least magnetic disk storage.
Wherein, program can be specifically used for:
Receive network test the speed plug-in unit transmission callings transport layer protocol generation test the speed connection establish ask, the company of testing the speed It connects and establishes request and include testing the speed with the network mailing address of the associated applications client of plug-in unit;
According to the mailing address of the applications client, the transport layer protocol is called to generate connection of testing the speed and establishes response;
Response is established to network connection of testing the speed described in plug-in unit feedback of testing the speed;
The test the speed network of calling transport layer protocol generation of plug-in unit transmission of the network is received to test the speed bag;
Transport layer protocol generation and the network is called to test the speed the corresponding response bag that tests the speed of bag;
The response bag that tests the speed is sent to the network to test the speed plug-in unit.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related part is said referring to method part It is bright.
Professional further appreciates that, with reference to each exemplary unit of the embodiments described herein description And algorithm steps, can be realized with the combination of electronic hardware, computer software or the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is performed actually with hardware or software mode, specific application and design constraint depending on technical solution.Specialty Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
It can directly be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the present invention. A variety of modifications of these embodiments will be apparent for those skilled in the art, it is as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and the principles and novel features disclosed herein phase one The most wide scope caused.

Claims (19)

1. a kind of network communication quality detection method, which is characterized in that including:
According to the mailing address of the preconfigured server that tests the speed, transport layer protocol generation is called to test the speed and connects foundation request;
To the connection foundation request of testing the speed described in server transmission of testing the speed;
After testing the speed and being connected with the server foundation of testing the speed, the transport layer protocol generation network is called to test the speed bag;
The network is sent to the server that tests the speed to test the speed bag;
The response bag that tests the speed of the calling transport layer protocol generation for the server feedback that tests the speed described in reception, to determine described answer With the corresponding network communication quality of client.
2. network communication quality detection method according to claim 1, which is characterized in that the transport layer protocol is called to generate Data packet include data area;It is described that the transport layer protocol generation network bag that tests the speed is called to include:
Determine that the network tests the speed the currently transmitted order of bag;
From the corresponding measurement data content of preconfigured each order of transmission, the number that tests the speed corresponding with currently transmitted order is obtained According to content;
The transport layer protocol is called, in the data area of the data packet of the transport layer protocol, fills the measurement data Content is tested the speed bag with generating the network that need to currently send.
3. network communication quality detection method according to claim 2, which is characterized in that the network communication quality detection side Method tests the speed plug-in unit applied to network, and the network plug-in unit that tests the speed is associated with applications client, preconfigured each survey Fast data content includes:The corresponding order of transmission of the measurement data content and the mark for identifying the applications client Information.
4. network communication quality detection method according to claim 1, which is characterized in that described to the server hair that tests the speed The network bag that tests the speed is sent to include:
Determine that the corresponding network of currently transmitted order tests the speed bag;
Receive the corresponding network of an order of transmission test the speed the corresponding response of bag test the speed bag when, preset time is spaced, to described The server that tests the speed sends the currently transmitted corresponding network of order and tests the speed bag.
5. network communication quality detection method according to claim 1, which is characterized in that described to the server hair that tests the speed The network bag that tests the speed is sent to include:
Corresponding with currently transmitted order network is sent using preset time to the server that tests the speed as interval to test the speed bag.
6. the network communication quality detection method according to claim 4 or 5, which is characterized in that further include:
It determines to send each network to test the speed the sending time of bag;
It determines to receive each response to test the speed the receiving time of bag;
The sending time of bag is tested the speed according to each network and the corresponding response is tested the speed the receiving time of bag, is determined Go out the network to test the speed the corresponding transmitting-receiving temporal information of bag.
7. network communication quality detection method according to claim 6, which is characterized in that further include:
By each network test the speed bag it is corresponding transmitting-receiving temporal information be sent to Analysis server, so that the Analysis server is true The fixed network communication quality;
Or, tested the speed according to each network and wrap corresponding transmitting-receiving temporal information, it determines the network communication quality, and is sent to institute State Analysis server.
8. network communication quality detection method according to claim 7, which is characterized in that described to be tested the speed according to each network Corresponding transmitting-receiving temporal information is wrapped, determines that the network communication quality includes:
Test the speed the corresponding transmitting-receiving temporal information of bag according to each network, determine maximum transmitting-receiving temporal information and/or, it is minimum Receive and dispatch temporal information and/or, averagely receive and dispatch temporal information;
According to the maximum transmitting-receiving temporal information and/or, the minimum transmitting-receiving temporal information and/or, it is described when averagely receiving and dispatching Between information, determine the network communication quality.
9. the network communication quality detection method according to claim 4 or 5, which is characterized in that further include:
The network for determining to send in the default transmitting-receiving time test the speed bag quantity and received within the default transmitting-receiving time To response test the speed the theoretical quantity of bag;
Determine that the response that is an actually-received in the default transmitting-receiving time is tested the speed the actual quantity of bag.
10. network communication quality detection method according to claim 9, which is characterized in that further include:
The theoretical quantity and the actual quantity are sent to Analysis server, so that the Analysis server determines the net Network communication quality;
Or, it according to the theoretical quantity and the actual quantity, determines the network communication quality, and is sent to the analysis clothes Business device.
11. network communication quality detection method according to claim 1, which is characterized in that further include:
Receive stop network testing the speed instruction when, according to the mailing address of the server that tests the speed, call transport layer protocol generation Connection of testing the speed terminates request;
To the connection termination request of testing the speed described in server transmission of testing the speed;
Receive when the connection of testing the speed of the transport layer protocol generation being called to terminate response of the server feedback that tests the speed, release It is connected with the testing the speed for server foundation of testing the speed.
12. according to the network communication quality detection method of claim 1 or 11, which is characterized in that the basis is pre-configured with The server that tests the speed mailing address, call transport layer protocol generation test the speed connection establish request include:
Receive opening network test the speed instruction when, determine the mailing address of the preconfigured server that tests the speed;
The mailing address according to the preconfigured server that tests the speed, transport layer protocol generation is called to test the speed connection foundation please It asks.
13. a kind of network communication quality detection method, which is characterized in that applied to the server that tests the speed, the network communication quality Detection method includes:
It receives the test the speed connection of testing the speed of callings transport layer protocol generation of plug-in unit transmission of network to establish and ask, the connection of testing the speed builds Vertical request includes testing the speed with the network mailing address of the associated applications client of plug-in unit;
According to the mailing address of the applications client, the transport layer protocol is called to generate connection of testing the speed and establishes response;
Response is established to network connection of testing the speed described in plug-in unit feedback of testing the speed;
The test the speed network of calling transport layer protocol generation of plug-in unit transmission of the network is received to test the speed bag;
Transport layer protocol generation and the network is called to test the speed the corresponding response bag that tests the speed of bag;
The response bag that tests the speed is sent to the network to test the speed plug-in unit.
14. the network communication quality detection method according to claim 13, which is characterized in that the transport layer protocol is called to give birth to Into data packet include data area, it is described that transport layer protocol generation and the network corresponding test the speed of bag of testing the speed is called to answer Answering bag includes:
It determines that the network tests the speed and wraps corresponding order of transmission;
From the corresponding reply data content of the preconfigured each order of transmission of the server that tests the speed, obtain and sent time with described The corresponding reply data content of sequence;
The transport layer protocol is called, in the data area of the data packet of the transport layer protocol, fills the reply data Content is tested the speed bag with generating the response that need to currently send.
15. the network communication quality detection method according to claim 14, which is characterized in that it is preconfigured it is each it is described should Answering data content includes:The corresponding order of transmission of the reply data content and the mark for identifying the applications client Information.
16. the network communication quality detection method according to claim 13, which is characterized in that further include:
Receive the network test the speed plug-in unit transmission callings transport layer protocol generation test the speed connection terminate ask;
According to the mailing address of the applications client, the transport layer protocol generation is called to test the speed and connects termination response;
To the network test the speed plug-in unit transmission test the speed connection terminate response, and discharge with the network test the speed plug-in unit establish test the speed Connection.
The plug-in unit 17. a kind of network tests the speed, which is characterized in that including:
Connection request module is established in generation, for the mailing address according to the preconfigured server that tests the speed, calls transport layer association View generation, which tests the speed to connect, establishes request;
Send connection request module, for it is described test the speed server send described in test the speed connection establish request;
Generation is tested the speed bag module, for after testing the speed and being connected with the server foundation of testing the speed, the transport layer protocol being called to give birth to It tests the speed bag into network;
Transmission is tested the speed bag module, is tested the speed bag for sending the network to the server that tests the speed;
Response bag module is received, it should for receiving the calling of the server feedback that tests the speed the testing the speed for transport layer protocol generation Bag is answered, to determine the corresponding network communication quality of the applications client.
The plug-in unit 18. network according to claim 17 tests the speed, which is characterized in that the network tests the speed plug-in unit and applications client It is associated.
The server 19. one kind tests the speed, which is characterized in that including:
Receive connection request module, for receive network test the speed plug-in unit transmission callings transport layer protocol generate connection of testing the speed build Vertical request, request is established in the connection of testing the speed to be included testing the speed the associated applications client of plug-in unit communicatedly with the network Location;
Connection reply module is established in generation, for the mailing address according to the applications client, calls the transport layer protocol It generates connection of testing the speed and establishes response;
Connection reply module is sent, for establishing response to network connection of testing the speed described in plug-in unit feedback of testing the speed;
Reception is tested the speed bag module, for receive the network test the speed plug-in unit transmission the calling transport layer protocol generation network Test the speed bag;
Response bag module is generated, for the transport layer protocol being called to generate and the network tests the speed the corresponding response of testing the speed of bag Bag;
Response bag module is sent, is tested the speed plug-in unit for the response bag that tests the speed to be sent to the network.
CN201611043010.9A 2016-11-21 2016-11-21 Network communication quality detection method, speed measurement server and network speed measurement plug-in Active CN108092837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611043010.9A CN108092837B (en) 2016-11-21 2016-11-21 Network communication quality detection method, speed measurement server and network speed measurement plug-in

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611043010.9A CN108092837B (en) 2016-11-21 2016-11-21 Network communication quality detection method, speed measurement server and network speed measurement plug-in

Publications (2)

Publication Number Publication Date
CN108092837A true CN108092837A (en) 2018-05-29
CN108092837B CN108092837B (en) 2021-04-27

Family

ID=62170194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611043010.9A Active CN108092837B (en) 2016-11-21 2016-11-21 Network communication quality detection method, speed measurement server and network speed measurement plug-in

Country Status (1)

Country Link
CN (1) CN108092837B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379249A (en) * 2018-09-30 2019-02-22 福建星瑞格软件有限公司 A method of monitoring network interface card can bear maximum packet sending speed
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
CN110677312A (en) * 2019-08-15 2020-01-10 北京百度网讯科技有限公司 SDK packet delay monitoring method and system, computer device and readable medium
CN112311628A (en) * 2020-10-30 2021-02-02 中移(杭州)信息技术有限公司 Network speed measuring method, system, network equipment and storage medium
CN114244758A (en) * 2021-12-13 2022-03-25 武汉斗鱼鱼乐网络科技有限公司 Network diagnosis method, storage medium, electronic device and system of android platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035037A (en) * 2007-04-17 2007-09-12 华为技术有限公司 Method, system and related device for detecting the network communication quality
CN103067217A (en) * 2012-12-14 2013-04-24 北京思特奇信息技术股份有限公司 Indicating system and method of communication network service quality
CN103763156A (en) * 2014-01-28 2014-04-30 中国移动(深圳)有限公司 Network speed measurement method and system
CN104348680A (en) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 Method and device for detecting network speed
CN104955095A (en) * 2015-06-15 2015-09-30 腾讯科技(深圳)有限公司 Communication network detection method and communication network detection device
CN106067854A (en) * 2016-08-16 2016-11-02 中国联合网络通信集团有限公司 A kind of network quality detection method and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035037A (en) * 2007-04-17 2007-09-12 华为技术有限公司 Method, system and related device for detecting the network communication quality
CN103067217A (en) * 2012-12-14 2013-04-24 北京思特奇信息技术股份有限公司 Indicating system and method of communication network service quality
CN104348680A (en) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 Method and device for detecting network speed
CN103763156A (en) * 2014-01-28 2014-04-30 中国移动(深圳)有限公司 Network speed measurement method and system
CN104955095A (en) * 2015-06-15 2015-09-30 腾讯科技(深圳)有限公司 Communication network detection method and communication network detection device
CN106067854A (en) * 2016-08-16 2016-11-02 中国联合网络通信集团有限公司 A kind of network quality detection method and equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109379249A (en) * 2018-09-30 2019-02-22 福建星瑞格软件有限公司 A method of monitoring network interface card can bear maximum packet sending speed
CN110677312A (en) * 2019-08-15 2020-01-10 北京百度网讯科技有限公司 SDK packet delay monitoring method and system, computer device and readable medium
CN110677312B (en) * 2019-08-15 2023-07-25 北京百度网讯科技有限公司 Time delay monitoring method and system for SDK (software development kit) package, computer equipment and readable medium
CN112311628A (en) * 2020-10-30 2021-02-02 中移(杭州)信息技术有限公司 Network speed measuring method, system, network equipment and storage medium
CN112311628B (en) * 2020-10-30 2023-02-24 中移(杭州)信息技术有限公司 Network speed measuring method, system, network equipment and storage medium
CN114244758A (en) * 2021-12-13 2022-03-25 武汉斗鱼鱼乐网络科技有限公司 Network diagnosis method, storage medium, electronic device and system of android platform

Also Published As

Publication number Publication date
CN108092837B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN108092837A (en) Network communication quality detection method tests the speed server and network tests the speed plug-in unit
US9043491B2 (en) Proximity detection for media proxies
CN110417915B (en) Push message transmission method and device, storage medium and electronic equipment
US9325596B2 (en) Adaptive signaling for network performance measurement, access, and control
CN106027326B (en) Link healthprobe method and device
CN105681385B (en) Information-pushing method and device
CN110034972A (en) Server stress test method and device
CN109510878A (en) A kind of long connection session keeping method and device
US10033612B2 (en) Adaptive signaling for network performance measurement, access, and control
CN107733890A (en) The inter-network means of communication, electronic equipment, storage medium, system based on web protocol
CN101184134A (en) Method and system for processing billing of including qos information
CN109696867A (en) Method, user terminal and the GNSS device management system of user terminal processes GNSS device data
US8879538B2 (en) Method and gateway for connecting IP communication entities via a residential gateway
CN112492109B (en) Communication method, device and system
CN106341342A (en) Communication connection maintaining method and device, terminal and server
CN110351159A (en) A kind of network performance test method and device across Intranet
CN104954187B (en) A kind of method and apparatus of determining user side equipment state
CN113890950A (en) VOIP terminal network detection method and device and VOIP terminal
US8023502B2 (en) Load testing for IP PBX systems
CN107306282B (en) A kind of link keep-alive method and device
CN110768981A (en) Remote maintenance method for handset
CN110324277A (en) Connection method, device, storage medium and the electronic device of real time communication
CN104468514B (en) Information processing method, electronic equipment and server
EP3433996A1 (en) Adaptive signaling for network performance measurement, access, and control
US6950498B1 (en) External detection of optional telephone services

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