CN102118278B - Method and system for measuring network conditions as well as method for monitoring network coverage - Google Patents

Method and system for measuring network conditions as well as method for monitoring network coverage Download PDF

Info

Publication number
CN102118278B
CN102118278B CN 201010620171 CN201010620171A CN102118278B CN 102118278 B CN102118278 B CN 102118278B CN 201010620171 CN201010620171 CN 201010620171 CN 201010620171 A CN201010620171 A CN 201010620171A CN 102118278 B CN102118278 B CN 102118278B
Authority
CN
China
Prior art keywords
packet
syn
response
sequence number
packet loss
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 201010620171
Other languages
Chinese (zh)
Other versions
CN102118278A (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN 201010620171 priority Critical patent/CN102118278B/en
Publication of CN102118278A publication Critical patent/CN102118278A/en
Application granted granted Critical
Publication of CN102118278B publication Critical patent/CN102118278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and system for measuring network conditions as well as a method for monitoring network coverage, which can be used for obtaining network connection delay, network data transmission delay, packet loss ratio and network conditions from a monitoring node to a target network between two host machines. In a technical scheme provided by the invention, the method for measuring network conditions comprises the steps of: sending a syn (synchronize) packet to a machine to be measured by utilizing a measuring machine, measuring the sending time and the time interval of receiving syn-ack (acknowledge character), and when the syn-ack is not received beyond a preset time, judging that syn packet loss occurs; sending a packet of a first sequence number to the machine to be measured and measuring the time interval from the sending time to the receiving response time after an ack response is received by utilizing the measuring machine, when the ack response is not received beyond the preset time, sending the packet of a second sequence number which is less than the first sequence number to the machine to be measured, when the ack response is not received beyond the preset time, judging that the packet loss occurs, and if the ack response is received in the preset time, judging whether the packet loss is a downlink packet loss or an uplink packet loss according to the response to the first sequence number or to the second sequence number.

Description

Network condition method of measurement, system and network coverage method for supervising
Technical field
The present invention relates to Network Measurement Technologies, relate in particular to a kind of monitoring method and system to cdn network of network situation based on existing Transmission Control Protocol.
Background technology
In network measure at present, main is exactly round-trip delay and the packet loss of measuring between main frame, the most frequently used method is ping, ping responds request by sending an icmp to destination host, according to the icmp agreement, destination host can be responded a respond packet, sends time interval between bag and respond packet by measurement, obtains the machine with the round-trip delay between destination host.And by repeatedly sending ping, can obtain the packet loss data.
But because the attack of icmp is often arranged on network, and the response request bag use of icmp is little, and fire compartment wall can mask this bag, also may be placed on low priority on route.And the actual network communication network service of cdn service particularly, it is most of that what use is Transmission Control Protocol, network to its processing and be different from icmp, ping just is not easy to measure the network condition of reality like this.
Transmission Control Protocol has been realized a kind of reliable connection mechanism, and reliable connection need to guarantee by connecting sequence number.Therefore each tcp data bag is with sequence number, and sequence number is along with content increases progressively.According to Transmission Control Protocol, after target machine is received a tcp data bag, can respond an ack bag and confirm.But this ack bag is not to respond at once, and it can wait for that a little meeting looked at not have more packets need to respond, and like this, even monitoring is received this ack, the round-trip delay of this moment is the real conditions of reaction network accurately.If TCP has data-bag lost, the packet sequence number that target machine is received is discontinuous with what receive before, and it can trigger an ack or sack immediately, tells the other side that data-bag lost is arranged.Because this packet produces immediately, can utilize this to measure network delay.In addition, TCP is based on connection, and the three-way handshake when connection is set up also can be measured a time delay.The syn bag that the three-way handshake of TCP uses, belong to parcel, and syn-flood commonly used attacks and can use this bag, so fire compartment wall and route may be different to the processing of syn bag, causes the time delay that three-way handshake is measured might be inconsistent with the time delay of packet.
The coverage effect monitoring of cdn network is the critical function of cdn service, by the monitoring to the overlay network state, can determine load allocation method, also can determine to be fit to the coverage of node.Using suitable method to measure network state, is also the pith of monitoring.In overlay network, terminal use's line duration is random, and ip is fixing, and the terminating gateway address can not obtain, so monitoring target must dynamic instrumentation.
Summary of the invention
The object of the invention is to address the above problem, a kind of network condition method of measurement is provided, the network that has obtained between two main frames connects time delay, network data transmission time delay, packet loss.
Another object of the present invention is to provide a kind of network condition measuring system.
Another purpose of the present invention is to provide a kind of network coverage method for supervising, obtains each monitored network segment to the network quality between monitor node.
Technical scheme of the present invention is: the present invention has disclosed a kind of network condition method of measurement, comprising:
Measuring machine sends syn and wraps machine to be measured, if receive the response syn-ack to the syn bag that machine to be measured sends, measure the time that sends the syn bag and receive the time interval between syn-ack and be output as network and connect time delay, also do not receive syn-ack if exceed Preset Time, be judged to be the syn packet loss;
After the connection of measuring machine and the machine of being connected is set up, measuring machine sends the packet of the first sequence number to machine to be measured, measure transmitting time to receiving the interval between the response time and being output as data transmission delay after receiving the ack response of machine to be measured to packet, if exceed the ack response that Preset Time is not also received packet, the packet of measuring machine transmission the second sequence number is to machine to be measured, and wherein the first sequence number is greater than the second sequence number;
If exceed the ack response that Preset Time is not also received packet, be judged to be the packet packet loss, if received the ack response of packet in Preset Time, the ack response that further judges packet is for the packet of the first sequence number or the packet of the second sequence number, if for the packet of the first sequence number, the descending packet loss of packet, if for the packet of the second sequence number, be the up packet loss of packet.
According to an embodiment of network condition method of measurement of the present invention, the ratio according to syn number of dropped packets and syn bag sum after being judged to be the syn packet loss obtains the syn packet loss.
An embodiment according to network condition method of measurement of the present invention, the ratio of number of dropped packets descending according to packet and packet downstream packets sum obtains the descending packet loss of packet after being judged to be the descending packet loss of packet, and the ratio of number of dropped packets up according to packet and packet uplink packet sum obtains the up packet loss of packet after being judged to be the up packet loss of packet.
the present invention has also disclosed a kind of network condition measuring system, comprise measuring machine and machine to be measured, measuring machine comprises network connection state measurement module and Internet Transmission state measurement module, wherein the network connection state measurement module comprises syn bag transmitting element, syn bag response receiving element, network connection time-delay calculation unit, syn packet loss computing unit, Internet Transmission state measurement module comprises the Packet Generation unit, the response package receiving element, the data delay computing unit, packet packet loss judging unit, the up packet loss computing unit of packet, the descending packet loss computing unit of packet, wherein:
Syn wraps transmitting element, sends syn and wraps machine to be measured;
Syn bag response receiving element receives the response syn-ack to the syn bag that machine to be measured sends;
Network connects the time-delay calculation unit, couples syn bag transmitting element and syn bag response receiving element, measures the time that sends the syn bag and receives that time interval between the response syn-ack of syn bag also is output as network and connects time delay;
Syn packet loss computing unit couples syn and wraps the response receiving element, and syn bag response receiving element exceeds Preset Time and also do not receive syn-ack, is judged to be the syn packet loss, obtains the syn packet loss according to syn number of dropped packets and the total ratio of syn bag;
The Packet Generation unit sends the packet of the first sequence number to machine to be measured, does not receive that also the packet of ack response transmission second sequence number of packet arrives machine to be measured in the situation that exceed Preset Time, and wherein the first sequence number is greater than the second sequence number;
The response package receiving element receives machine to be measured to the ack response of packet;
The data delay computing unit, couple Packet Generation unit and response package receiving element, receive machine to be measured to the ack of the packet of the first sequence number response after, the time of measuring the packet that sends the first sequence number to reception for the interval between the response time of the packet of the first sequence number and be output as data transmission delay;
Packet packet loss judging unit, couple the response package receiving element, if also do not receive the ack response of packet after the packet that sends the second sequence number, be judged as the packet packet loss, if received the ack response of packet after sending the packet of the second sequence number, responding according to the ack of packet is that packet or the packet of the second sequence number for the first sequence number judges the descending packet loss of packet or the up packet loss of packet;
The up packet loss computing unit of packet couples packet packet loss judging unit, and the ratio of number of dropped packets up according to packet and packet uplink packet sum obtains the up packet loss of packet after being judged as the up packet loss of packet;
The descending packet loss computing unit of packet couples packet packet loss judging unit, and the ratio of number of dropped packets descending according to packet and packet downstream packets sum obtains the descending packet loss of packet after being judged as the descending packet loss of packet.
The present invention has disclosed again a kind of network coverage method for supervising, comprising:
The first step reads the IP address in a plurality of monitored network segments, obtains that in each monitored network segment, an attachable IP address represents the IP address as the network segment, and the network segment of a plurality of monitored network segments represents that the IP address forms the IP list;
Second step reads the IP list and processes wherein IP address, and a monitor node as machine to be measured, is carried out the measurement of the network condition between current IP address and monitor node in current IP address as measuring machine;
The 3rd step, if inaccessible IP address is arranged, scan the monitored network segment under unreachable IP address, another the attachable IP address in the monitored network segment is represented as the network segment that the IP address replaces that inaccessible IP address re-starts and monitor node between the measurement of network condition.
According to an embodiment of network coverage method for supervising of the present invention, the first step comprises:
Read the IP address in the monitored network segment;
Default port or whole port to current IP address sends connection request successively, connect to set up or port is responded the rst bag and illustrated that the IP address can reach if having, the IP address is recorded in the IP list, otherwise reads the transmission that next IP address in the current monitored network segment repeats connection request.
According to an embodiment of network coverage method for supervising of the present invention, second step comprises:
The network segment that monitor node transmission syn wraps the monitored network segment represents the IP address, if receive that the network segment of the monitored network segment represents the response syn-ack to the syn bag of IP address transmission, measure the time that sends the syn bag and receive the time interval between syn-ack and be output as network and connect time delay, also do not receive syn-ack if exceed Preset Time, be judged to be the syn packet loss;
Monitor node be connected after the network segment of the network segment represents that the connection of IP address is set up, monitor node sends the packet of the first sequence number to monitored network segment current IP address, the network segment of receiving the monitored network segment is measured transmitting time to the interval between the reception response time and is output as data transmission delay after representing the ack response of IP address to packet, if exceed the ack response that Preset Time is not also received packet, the packet of monitor node transmission the second sequence number represents the IP address to the network segment of the monitored network segment, and wherein the first sequence number is greater than the second sequence number;
If exceed the ack response that Preset Time is not also received packet, be judged to be the packet packet loss, if received the ack response of packet in Preset Time, the ack response that further judges packet is for the packet of the first sequence number or the packet of the second sequence number, if for the packet of the first sequence number, be judged to be the descending packet loss of packet, if for the packet of the second sequence number, be judged to be the up packet loss of packet.
According to an embodiment of network coverage method for supervising of the present invention, the ratio according to syn number of dropped packets and syn bag sum after being judged to be the syn packet loss obtains the syn packet loss.
According to an embodiment of network coverage method for supervising of the present invention, the ratio of number of dropped packets descending according to packet and packet downstream packets sum obtains the descending packet loss of packet after being judged to be the descending packet loss of packet; The ratio of number of dropped packets up according to packet and packet uplink packet sum obtains the up packet loss of packet after being judged to be the up packet loss of packet.
The present invention contrasts prior art following beneficial effect: technical scheme of the present invention has been used syn bag and tcp data bag, can overcome the shutoff of network firewall.Use syn bag and tcp data bag, can be more near true application.Use the packet of inverted sequence, can trigger making an immediate response of target machine, overcome the deficiency of TCP delay confirmation.Use two packets, can be confirmed to be up packet loss or descending packet loss when packet loss.
Description of drawings
The flow chart of the preferred embodiment that shows network condition method of measurement of the present invention that Fig. 1 is exemplary.
The schematic diagram of the preferred embodiment that shows network condition measuring system of the present invention that Fig. 2 is exemplary.
The flow chart of the preferred embodiment that shows network coverage method for supervising of the present invention that Fig. 3 is exemplary.
Fig. 4 shows the refinement flow chart of Fig. 3 embodiment.
Fig. 5 shows the refinement flow chart of Fig. 3 embodiment.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
The embodiment of network condition method of measurement
Fig. 1 shows the flow process of the embodiment of network condition method of measurement of the present invention.See also Fig. 1, details are as follows for each step of the network condition method of measurement of the present embodiment.
Step S100: measuring machine sends syn and wraps machine to be measured.
Syn is coated is called syn packet, is called again " TCP packet with SYN flag ", namely has the TCP bag of syn label.
Step S101: judge whether measuring machine receives the response syn-ack to the syn bag that machine to be measured returns.If receive response syn-ack, enter step S103, if do not receive response, enter step S102.
Step S102: be judged to be the syn packet loss, and calculate the syn packet loss, obtain the syn packet loss according to syn number of dropped packets and the total ratio of syn bag.This syn packet loss is the situation that represents that network connects.
Step S103: calculate the syn time delay.
Measuring machine is sent interval between the time that time of syn bag and measuring machine receive the syn-ack that machine to be measured returns as the syn time delay, and this time delay is also that network connects time delay.
Step S104: after the connection of measuring machine and the machine of being connected was set up, measuring machine sent sequence number packet into seq2 to machine to be measured.
Step S105: judge whether measuring machine receives the response ack of the packet that machine to be measured returns.If receive response, enter step S106, if do not receive response, enter step S107.
Step S106: calculated data propagation delay time.
Account form is that measuring machine is sent interval between time of time of packet and the response of receive data bag as data transmission delay.
Step S107: measuring machine sends sequence number as the packet of seq1 to machine to be measured.
Wherein the numerical value of seq2 is greater than seq1.
Step S108: judge whether measuring machine receives the response ack of the packet that machine to be measured returns.If do not receive any response, enter step S109.If receive response package, enter step S110.
Step S109: be judged to be the packet packet loss.
Step S110: the response package that receives of judgement measuring machine is for the response of seq1 packet or for the response of seq2 packet.If for the response of seq1 packet, enter step S111, if for the response of seq2 packet, enter step S112.
Step S111: be judged to be the up packet loss of packet, the ratio of number of dropped packets up according to packet and packet uplink packet sum obtains the up packet loss of packet.
Step S112: be judged to be the descending packet loss of packet, the ratio of number of dropped packets descending according to packet and packet downstream packets sum obtains the descending packet loss of packet.
The embodiment of network condition measuring system
Fig. 2 shows the structure of the embodiment of network condition measuring system of the present invention.See also Fig. 2, the network condition measuring system of the present embodiment comprises measuring machine 1 and machine to be measured 2, and both set up the connection of data communication by network.
In measuring machine 1, be provided with network connection state measurement module 10 and Internet Transmission state measurement module 12.Network connection state measurement module 10 is divided into syn bag transmitting element 100, syn bag response receiving element 102, network and connects time-delay calculation unit 104, syn packet loss computing unit 106.
Annexation between these unit is: syn bag transmitting element 100 be connected response receiving element 102 and couples respectively network connection time-delay calculation unit 104 with syn.Syn bag response receiving element 102 couples syn packet loss computing unit 106.
Internet Transmission state measurement module 12 is divided into Packet Generation unit 120, response package receiving element 121, data delay computing unit 122, packet packet loss judging unit 123, the up packet loss computing unit 124 of packet, the descending packet loss computing unit 125 of packet.
Annexation between these unit is: Packet Generation unit 120 and response package receiving element 121 couple respectively data delay computing unit 122.Response package receiving element 121 couples packet packet loss judging unit 123, and the up packet loss computing unit 124 of packet and the descending packet loss computing unit 125 of packet all couple packet packet loss judging unit 123.
Syn bag transmitting element 100 sends syn and wraps machine 2 to be measured.Machine 2 to be measured can send a response syn-ack to measuring machine 1 after receiving the syn bag of sending.Syn bag response receiving element 102 receives the response syn-ack to the syn bag that machine 2 to be measured sends.
The time interval between the time that network connection time-delay calculation unit 104 measurement transmission syn wrap and the response syn-ack that receives the syn bag also is output as network connection time delay.
Syn bag response receiving element 102 exceeds Preset Time and does not also receive syn-ack, and syn packet loss computing unit 106 is judged to be the syn packet loss, and obtains the syn packet loss according to the ratio of syn number of dropped packets and syn bag sum.
After measuring machine 1 and machine to be measured 2 connect, Packet Generation unit 120 sends sequence number as the packet of seq2 to machine 2 to be measured, do not receive that also the ack of packet responds the packet that sends sequence number as seq1 and arrives machine 2 to be measured in the situation that exceed Preset Time, wherein seq2 is greater than seq1.
Response package receiving element 121 is used for receiving the ack response of 2 pairs of packets of machine to be measured.
Data delay computing unit 122 after the ack of the packet that to receive 2 pairs of sequence numbers of machine to be measured be seq2 response, time of packet of measuring the seq2 that sends sequence number to reception for the interval between the response time of the packet of sequence number seq2 and be output as data transmission delay.
Packet packet loss judging unit 123 carries out following judgement: if also do not receive the ack response of packet after the packet that sends seq1, be judged as the packet packet loss, if received the ack response of packet after sending the packet of seq1, responding according to the ack of packet is that packet or the packet of seq1 for seq2 judges the descending packet loss of packet or the up packet loss of packet;
The up packet loss computing unit 124 of packet ratio of number of dropped packets up according to packet and packet uplink packet sum after being judged as the up packet loss of packet obtains the up packet loss of packet;
The descending packet loss computing unit 125 of packet ratio of number of dropped packets descending according to packet and packet downstream packets sum after being judged as the descending packet loss of packet obtains the descending packet loss of packet.
The embodiment of network coverage method for supervising
Fig. 3 shows the flow process of the embodiment of network coverage method for supervising of the present invention.See also Fig. 3, details are as follows for each step of the network coverage method for supervising of the present embodiment.
Step S30: read the IP address in a plurality of monitored network segments, obtain that in each monitored network segment, an attachable IP address represents the IP address as the network segment, the network segment of a plurality of monitored network segments represents that the IP address forms the IP list.
Step S40: read the IP list and process wherein each IP address, a monitor node as machine to be measured, is carried out the measurement of the network condition between current IP address and monitor node in current IP address as measuring machine.
In step S30 and step S40, monitoring equipment carries out the operation of different IP in the IP list is parallel.
Step S50: if inaccessible IP address is arranged, scan the monitored network segment under unreachable IP address, another the attachable IP address in the monitored network segment is represented as the network segment that the IP address replaces that inaccessible IP address re-starts and monitor node between the measurement of network condition.
Monitor procedure is a lasting process, can not complete, and monitoring equipment real time output data in monitor procedure, and replace unreachable IP.
The last Output rusults of this method is to export in real time each monitored network segment to the network quality between monitor node, characterizes with packet loss, time delay.
The method of seeking another attachable IP address in step S50 is identical with step S30.
For step S30, the flow process of its further refinement as shown in Figure 4.
Step S300: read the IP address in the monitored network segment.
Step S302: default port or whole port to current IP address send the tcp connection request successively.
Step S304: whether what judge current IP address responds the rst bag when whether front port has the foundation of connection or port.Set up or the rst of response bag is arranged if having to connect, entering step S306.If connect to set up or respond the rst bag, return to step S302 and test next IP address in this network segment.
Step S306: current IP address is represented the IP address as the network segment of the monitored network segment, and namely the measuring object of this monitored network segment, be recorded in the IP list, then returns to step S100 and process the next monitored network segment until all monitored network segments are disposed.
For step S40, the flow process of its further refinement as shown in Figure 5.
Step S400: the network segment that monitor node transmission syn wraps the monitored network segment represents the IP address.
Step S401: judge whether monitor node receives response syn-ack corresponding to syn bag.If receive this response, enter step S403, if do not receive this response, enter step S402.
Step S402: be judged to be the syn packet loss, and calculate the syn packet loss.
Obtain the syn packet loss according to the ratio of syn number of dropped packets and syn bag sum.This syn packet loss is the situation that represents that network connects.
Step S403: calculate the syn time delay.
Monitor node is sent interval between the time that the time of syn bag and the network segment that monitor node receives the monitored network segment represent the syn-ack that the IP address is returned as the syn time delay, and this time delay is also that network connects time delay.
Step S404: monitor node be connected after the network segment of the network segment represents that the connection of IP address is set up, monitor node sends sequence number and is the packet of syn2.
Step S405: judge whether monitor node receives the response ack of packet, if receive this response, enters step S406, if do not receive this response, enters step S407.
Step S406: calculated data propagation delay time.
Account form is that monitor node is sent interval between time of time of packet and the response of receive data bag as data transmission delay.
Step S407: monitor node sends sequence number and represents the IP address to the network segment of the monitored network segment for the packet of seq1.
Wherein the numerical value of seq2 is greater than seq1.
Step S408: judge that the network segment that whether monitor node receives the monitored network segment represents the response ack of the packet that the IP address is returned.If do not receive any response, enter step S409.If receive response package, enter step S410.
Step S409: be judged to be the packet packet loss.
Step S410: the response package that receives of judgement monitor node is for the response of seq1 packet or for the response of seq2 packet.If for the response of seq1 packet, enter step S411, if for the response of seq2 packet, enter step S412.
Step S411: be judged to be the up packet loss of packet, the ratio of number of dropped packets up according to packet and packet uplink packet sum obtains the up packet loss of packet.
Step S412: be judged to be the descending packet loss of packet, the ratio of number of dropped packets descending according to packet and packet downstream packets sum obtains the descending packet loss of packet.
Above-described embodiment is to provide to those of ordinary skills and realizes or use of the present invention; those of ordinary skills can be in the situation that do not break away from invention thought of the present invention; above-described embodiment is made various modifications or variation; thereby protection scope of the present invention do not limit by above-described embodiment, and should be the maximum magnitude that meets the inventive features that claims mention.

Claims (8)

1. network condition method of measurement comprises:
Measuring machine sends syn and wraps machine to be measured, if receive the response syn-ack to the syn bag that machine to be measured sends, measure the time that sends the syn bag and receive the time interval between syn-ack and be output as network and connect time delay, also do not receive syn-ack if exceed Preset Time, be judged to be the syn packet loss;
After the connection of measuring machine and the machine of being connected is set up, measuring machine sends the packet of the first sequence number to machine to be measured, measure transmitting time to receiving the interval between the response time and being output as data transmission delay after receiving the ack response of machine to be measured to packet, if exceed the ack response that Preset Time is not also received packet, the packet of measuring machine transmission the second sequence number is to machine to be measured, and wherein the first sequence number is greater than the second sequence number;
If exceed the ack response that Preset Time is not also received packet, be judged to be the packet packet loss, if received the ack response of packet in Preset Time, the ack response that further judges packet is for the packet of the first sequence number or the packet of the second sequence number, if for the packet of the first sequence number, the descending packet loss of packet, if for the packet of the second sequence number, be the up packet loss of packet.
2. network condition method of measurement according to claim 1, is characterized in that, the ratio according to syn number of dropped packets and syn bag sum after being judged to be the syn packet loss obtains the syn packet loss.
3. network condition method of measurement according to claim 1, it is characterized in that, the ratio of number of dropped packets descending according to packet and packet downstream packets sum obtains the descending packet loss of packet after being judged to be the descending packet loss of packet, and the ratio of number of dropped packets up according to packet and packet uplink packet sum obtains the up packet loss of packet after being judged to be the up packet loss of packet.
4. network condition measuring system, comprise measuring machine and machine to be measured, measuring machine comprises network connection state measurement module and Internet Transmission state measurement module, wherein the network connection state measurement module comprises syn bag transmitting element, syn bag response receiving element, network connection time-delay calculation unit, syn packet loss computing unit, Internet Transmission state measurement module comprises the Packet Generation unit, the response package receiving element, the data delay computing unit, packet packet loss judging unit, the up packet loss computing unit of packet, the descending packet loss computing unit of packet, wherein:
Syn wraps transmitting element, sends syn and wraps machine to be measured;
Syn bag response receiving element receives the response syn-ack to the syn bag that machine to be measured sends;
Network connects the time-delay calculation unit, couples syn bag transmitting element and syn bag response receiving element, measures the time that sends the syn bag and receives that time interval between the response syn-ack of syn bag also is output as network and connects time delay;
Syn packet loss computing unit couples syn and wraps the response receiving element, and syn bag response receiving element exceeds Preset Time and also do not receive syn-ack, is judged to be the syn packet loss, obtains the syn packet loss according to syn number of dropped packets and the total ratio of syn bag;
The Packet Generation unit sends the packet of the first sequence number to machine to be measured, does not receive that also the packet of ack response transmission second sequence number of packet arrives machine to be measured in the situation that exceed Preset Time, and wherein the first sequence number is greater than the second sequence number;
The response package receiving element receives machine to be measured to the ack response of packet;
The data delay computing unit, couple Packet Generation unit and response package receiving element, receive machine to be measured to the ack of the packet of the first sequence number response after, the time of measuring the packet that sends the first sequence number to reception for the interval between the response time of the packet of the first sequence number and be output as data transmission delay;
Packet packet loss judging unit, couple the response package receiving element, if also do not receive the ack response of packet after the packet that sends the second sequence number, be judged as the packet packet loss, if received the ack response of packet after sending the packet of the second sequence number, responding according to the ack of packet is that packet or the packet of the second sequence number for the first sequence number judges the descending packet loss of packet or the up packet loss of packet;
The up packet loss computing unit of packet couples packet packet loss judging unit, and the ratio of number of dropped packets up according to packet and packet uplink packet sum obtains the up packet loss of packet after being judged as the up packet loss of packet;
The descending packet loss computing unit of packet couples packet packet loss judging unit, and the ratio of number of dropped packets descending according to packet and packet downstream packets sum obtains the descending packet loss of packet after being judged as the descending packet loss of packet.
5. network coverage method for supervising comprises:
The first step reads the IP address in a plurality of monitored network segments, obtains that in each monitored network segment, an attachable IP address represents the IP address as the network segment, and the network segment of a plurality of monitored network segments represents that the IP address forms the IP list;
Second step reads the IP list and processes wherein IP address, and a monitor node as machine to be measured, is carried out the measurement of the network condition between current IP address and monitor node in current IP address as measuring machine;
The 3rd step, if inaccessible IP address is arranged, scan the monitored network segment under unreachable IP address, another the attachable IP address in the monitored network segment is represented as the network segment that the IP address replaces that inaccessible IP address re-starts and monitor node between the measurement of network condition;
Wherein second step comprises:
The network segment that monitor node transmission syn wraps the monitored network segment represents the IP address, if receive that the network segment of the monitored network segment represents the response syn-ack to the syn bag of IP address transmission, measure the time that sends the syn bag and receive the time interval between syn-ack and be output as network and connect time delay, also do not receive syn-ack if exceed Preset Time, be judged to be the syn packet loss;
Monitor node be connected after the network segment of the network segment represents that the connection of IP address is set up, monitor node sends the packet of the first sequence number to monitored network segment current IP address, the network segment of receiving the monitored network segment is measured transmitting time to the interval between the reception response time and is output as data transmission delay after representing the ack response of IP address to packet, if exceed the ack response that Preset Time is not also received packet, the packet of monitor node transmission the second sequence number represents the IP address to the network segment of the monitored network segment, and wherein the first sequence number is greater than the second sequence number; And
If exceed the ack response that Preset Time is not also received packet, be judged to be the packet packet loss, if received the ack response of packet in Preset Time, the ack response that further judges packet is for the packet of the first sequence number or the packet of the second sequence number, if for the packet of the first sequence number, be judged to be the descending packet loss of packet, if for the packet of the second sequence number, be judged to be the up packet loss of packet.
6. network coverage method for supervising according to claim 5, is characterized in that, the first step comprises:
Read the IP address in the monitored network segment;
Default port or whole port to current IP address sends connection request successively, connect to set up or port is responded the rst bag and illustrated that the IP address can reach if having, the IP address is recorded in the IP list, otherwise reads the transmission that next IP address in the current monitored network segment repeats connection request.
7. network coverage method for supervising according to claim 5, is characterized in that, the ratio according to syn number of dropped packets and syn bag sum after being judged to be the syn packet loss obtains the syn packet loss.
8. network coverage method for supervising according to claim 5, is characterized in that, the ratio of number of dropped packets descending according to packet and packet downstream packets sum obtains the descending packet loss of packet after being judged to be the descending packet loss of packet; The ratio of number of dropped packets up according to packet and packet uplink packet sum obtains the up packet loss of packet after being judged to be the up packet loss of packet.
CN 201010620171 2010-12-31 2010-12-31 Method and system for measuring network conditions as well as method for monitoring network coverage Active CN102118278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010620171 CN102118278B (en) 2010-12-31 2010-12-31 Method and system for measuring network conditions as well as method for monitoring network coverage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010620171 CN102118278B (en) 2010-12-31 2010-12-31 Method and system for measuring network conditions as well as method for monitoring network coverage

Publications (2)

Publication Number Publication Date
CN102118278A CN102118278A (en) 2011-07-06
CN102118278B true CN102118278B (en) 2013-05-08

Family

ID=44216882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010620171 Active CN102118278B (en) 2010-12-31 2010-12-31 Method and system for measuring network conditions as well as method for monitoring network coverage

Country Status (1)

Country Link
CN (1) CN102118278B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103124265A (en) * 2013-01-31 2013-05-29 深信服网络科技(深圳)有限公司 Method for visiting websites and gateway device
CN103152223B (en) 2013-03-15 2016-08-03 华为技术有限公司 network performance monitoring method and device
WO2017128190A1 (en) * 2016-01-28 2017-08-03 郭子明 Method and device for pushing information during network status monitoring
CN108989152A (en) * 2018-08-08 2018-12-11 成都俊云科技有限公司 Obtain the method and device and computer storage medium of network delay
CN108809771A (en) * 2018-08-10 2018-11-13 锐捷网络股份有限公司 SDN network data stream monitoring method, SDN controllers, switching equipment and system
CN110876158B (en) * 2018-08-29 2023-07-14 阿里巴巴集团控股有限公司 LoRa network condition monitoring method, device, system, equipment and storage medium
CN109688031B (en) * 2019-03-04 2020-11-03 腾讯科技(深圳)有限公司 Network monitoring method and related equipment
CN110098981A (en) * 2019-04-29 2019-08-06 厦门网宿有限公司 TCP connection method, network delay determine method, apparatus and server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267293A (en) * 2008-04-18 2008-09-17 清华大学 Stream media hidden communication method based on hierarchical model
CN101800592A (en) * 2010-01-04 2010-08-11 北京航空航天大学 Supporting node mobility method based on node speed

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101491024B (en) * 2006-07-07 2012-06-20 日本电气株式会社 Estimation method, device, and program, and network measuring system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267293A (en) * 2008-04-18 2008-09-17 清华大学 Stream media hidden communication method based on hierarchical model
CN101800592A (en) * 2010-01-04 2010-08-11 北京航空航天大学 Supporting node mobility method based on node speed

Also Published As

Publication number Publication date
CN102118278A (en) 2011-07-06

Similar Documents

Publication Publication Date Title
CN102118278B (en) Method and system for measuring network conditions as well as method for monitoring network coverage
US8149722B2 (en) Method and apparatus for detecting VPN communication
CN106850455B (en) Wireless multilink bandwidth aggregation system
US20080117820A1 (en) Detection method, detecting device, reference value calculating device and recording medium
WO2000014931A1 (en) Device for measuring load on network server, and allotting device and method
EP1094640B1 (en) Network system
CN105141542A (en) TCP communication protocol-based congestion window control algorithm and system
KR101467137B1 (en) In-service throughput testing in distributed router/switch architectures
CN103763156A (en) Network speed measurement method and system
KR20060100512A (en) Method and system for estimating average bandwidth in a communication network based on transmission control protocol
EP2229023A1 (en) Communication apparatus
WO2018076580A1 (en) Two-sided acceleration transmission method and system for wireless network
CN104734909A (en) Network bio-directional testing method
CN107332735A (en) The network communication method of Auto-reconnect after disconnection
CN101277225B (en) Method for analyzing network quality as well as network quality analysis terminal-initiating equipment
CN114629822A (en) Link detection method and device, electronic equipment and storage medium
CN102083094B (en) Interference measuring method and apparatus in wireless communication system
CN104219111B (en) Link bundling method and communication system based on MLPPP
KR20110067871A (en) Network access apparatus and method for watching and controlling traffic using oam packet in ip network
CN111181810B (en) Performance test method and system for MoCA equipment
CN101237392A (en) A network failure testing method under asynchronous transmission mode
CN101262421B (en) Relay apparatus and relay method
US20180270151A1 (en) Communication apparatus and communication method
KR20100090362A (en) Apparatus and method for controlling congestion in mobile communication system
EP3989506A1 (en) Server communication method, broadband access server, and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP02 Change in the address of a patent holder

Address after: 200030 Shanghai city Xuhui District Xietu Road No. 2899 Building 5 floor A Kuangchi Cultural Square

Patentee after: ChinaNetCenter Co., Ltd.

Address before: 200030 Shanghai Xietu Road No. 15 building 2669

Patentee before: ChinaNetCenter Co., Ltd.