CN104486156A - Method and device for monitoring network performance - Google Patents

Method and device for monitoring network performance Download PDF

Info

Publication number
CN104486156A
CN104486156A CN201410779173.8A CN201410779173A CN104486156A CN 104486156 A CN104486156 A CN 104486156A CN 201410779173 A CN201410779173 A CN 201410779173A CN 104486156 A CN104486156 A CN 104486156A
Authority
CN
China
Prior art keywords
packet
sequence
target data
data packet
monitoring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410779173.8A
Other languages
Chinese (zh)
Inventor
罗鹰
王勇
林康
侯勇军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHENGDU COLASOFT Co Ltd
Original Assignee
CHENGDU COLASOFT 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 CHENGDU COLASOFT Co Ltd filed Critical CHENGDU COLASOFT Co Ltd
Priority to CN201410779173.8A priority Critical patent/CN104486156A/en
Publication of CN104486156A publication Critical patent/CN104486156A/en
Priority to CN201510907149.2A priority patent/CN105553758B/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays

Abstract

The invention provides a method and a device for monitoring the network performance. The method comprises the steps: firstly determining a plurality of monitoring points in a network, acquiring a plurality of data packets belonging to the same session from each monitoring point so as to obtain a plurality of data packet sets, respectively sequencing the data packets in each data packet set according to sequence number identifications of the data packets, and respectively determining a target data packet sequence in each sequenced data packet set, wherein an attribute value of a first data packet in each target data packet sequence is the same as those of first data packet in other target data packet sequences, so that a performance parameter of the network can be determined according to the multiple target data packet sequences; therefore, monitoring on the network performance is realized; furthermore, the method for monitoring the network performance is simple and quick.

Description

A kind of monitoring method of network performance and device
Technical field
The application relates to network monitor technical field, especially a kind of monitoring method of the network performance based on many monitoring points and device.
Background technology
Network, can realize the data interaction between two equipment, such as, and the access between client and server and response.The quality of network condition, directly affect the interaction success rate between data, and network condition can be reflected by network performance parameter.As the time delay, packet drop, retransmission packet situation etc. of the three-way handshake in time delay, TCP connection, TCP connection procedure.Can determine that network condition is in shape or malfunction by network performance parameter, and when being in malfunction, fault point can being determined further, and then fault point is repaired, to ensure the normal operation of network.
Therefore, need a kind of monitoring method, to realize the monitoring to network performance parameter.
Summary of the invention
In view of this, this application provides a kind of monitoring method and device of network performance, in order to realize the monitoring to network performance.For realizing described goal of the invention, technical scheme provided by the invention is as follows:
A monitoring method for network performance, comprising:
Determine the multiple monitoring points in network;
At each described monitoring point place, obtain multiple packet respectively, obtain multiple packet set; Wherein, the equal corresponding same session of each described packet;
According to packet sequence number mark, respectively to the data packet sequencing in each described packet set;
In packet set after each sequence, determine target data packet sequence respectively; Wherein, described in each, the first packet of target data packet sequence has same alike result value;
Utilize multiple described target data packet sequence, determine the performance parameter of described network.
The monitoring method of above-mentioned network performance, preferably, describedly utilizes multiple described target data packet sequence, determines that the performance parameter of described network comprises:
In each described target data packet sequence, determine the time delay of each packet and respective corresponding data bag respectively; Wherein, the corresponding data bag of packet is the packet adjacent with this packet, and has the packet of same alike result value in other target data packet sequences with this packet;
In each described target data packet sequence, add up the number of packet loss respectively; Wherein, described packet loss is comprise in other target data packet sequences but the packet do not comprised in this target data packet sequence;
In each described target data packet sequence, add up the number of retransmission packet respectively; Wherein, described retransmission packet is the packet in same target data packet sequence with same alike result value.
The monitoring method of above-mentioned network performance, preferably, described according to packet sequence number mark, respectively the data packet sequencing in each described packet set is comprised:
According to packet type, send sequence number and Receive sequence number, respectively to the data packet sequencing in each described packet set;
Wherein, the type of packet comprises packet that client sends and the packet that server returns, and in packet set after each sequence, sending sequence number of the packet that the preceding client that sorts sends is less than or equal to the Receive sequence number of the packet that the posterior server of sequence returns.
The monitoring method of above-mentioned network performance, preferably, describedly obtains multiple packet respectively at each described monitoring point place, obtains multiple packet set and comprise:
Packet is captured at each described monitoring point place, and the packet grabbed is put into respectively each described monitoring point buffer queue separately, after buffer queue is full, packet in buffer queue is stored to storage area corresponding to this buffer queue, return and capture packet at each described monitoring point place, until the time span capturing packet meets predetermined time period;
In each described storage area, obtain the packet of corresponding same session, obtain multiple packet set.
The monitoring method of above-mentioned network performance, preferably, in described packet set after each sequence, determine that target data packet sequence comprises respectively:
According to the ordering of packet in the packet set after each sequence, search first have identically to send sequence number, the packet of Receive sequence number and payload length;
In packet set after each sequence, using the packet after the described packet that finds and this packet as target data packet sequence.
The monitoring method of above-mentioned network performance, preferably, also comprises:
In the mode of coordinate system, show target data packet sequence described in each respectively;
Wherein, the transverse axis of described coordinate system is the timestamp of target data bag, and the longitudinal axis is monitoring point mark.
Present invention also provides a kind of monitoring device of network performance, comprising:
Multiple monitoring points determining unit, for determining the multiple monitoring points in network;
Packet set acquiring unit, at each described monitoring point place, obtains multiple packet respectively, obtains multiple packet set; Wherein, the equal corresponding same session of each described packet;
Packet set sequencing unit, for according to packet sequence number mark, respectively to the data packet sequencing in each described packet set;
Sequence of data packet determining unit, in the packet set after each sequence, determines target data packet sequence respectively; Wherein, described in each, the first packet of target data packet sequence has same alike result value;
Performance parameter determining unit, for utilizing multiple described target data packet sequence, determines the performance parameter of described network.
The monitoring device of above-mentioned network performance, preferably, described performance parameter determining unit comprises:
Time delay determination subelement, in each described target data packet sequence, determines the time delay of each packet and respective corresponding data bag respectively; Wherein, the corresponding data bag of packet is the packet adjacent with this packet, and has the packet of same alike result value in other target data packet sequences with this packet;
Packet loss statistics subelement, in each described target data packet sequence, adds up the number of packet loss respectively; Wherein, described packet loss is comprise in other target data packet sequences but the packet do not comprised in this target data packet sequence;
Retransmission packet statistics subelement, in each described target data packet sequence, adds up the number of retransmission packet respectively; Wherein, described retransmission packet is the packet in same target data packet sequence with same alike result value.
The monitoring device of above-mentioned network performance, preferably, described packet set sequencing unit comprises:
Packet set sequence subelement, for according to packet type, send sequence number and Receive sequence number, respectively to the data packet sequencing in each described packet set;
Wherein, the type of packet comprises packet that client sends and the packet that server returns, and in packet set after each sequence, sending sequence number of the packet that the preceding client that sorts sends is less than or equal to the Receive sequence number of the packet that the posterior server of sequence returns.
The monitoring device of above-mentioned network performance, preferably, also comprises:
Coordinate system display unit, in the mode of coordinate system, shows target data packet sequence described in each respectively; Wherein, the transverse axis of described coordinate system is the timestamp of target data bag, and the longitudinal axis is monitoring point mark.
The monitoring method of the network performance that the embodiment of the present invention provides and device, the method comprises: first determine the multiple monitoring points in network, multiple packet belonging to same session is obtained at each monitoring point place, thus obtain multiple packet set, the sequence number of packet is utilized to identify, respectively the packet in each packet set is sorted, in packet set after each sequence, divide and determine a target data packet sequence, the property value of the first packet of each target data packet sequence is identical with the property value of other the first packet of target data packet sequence, and then utilize multiple target data packet sequence, determine the performance parameter of network, thus the monitoring achieved network performance, and the monitoring method simple and fast of this kind of network performance.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The flow chart of the monitoring method of the network performance that Fig. 1 provides for the embodiment of the present invention;
The flow chart of network performance parameter is determined in the monitoring method of the network performance that Fig. 2 embodiment of the present invention provides;
The exemplary plot of the packet in the display-object sequence of data packet that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the monitoring device of the network performance that Fig. 4 provides for the embodiment of the present invention;
The structural representation of capabilities determination unit in the monitoring device of the network performance that Fig. 5 embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
With reference to Fig. 1, it illustrates the monitoring method of the network performance that the embodiment of the present invention provides, specifically comprise following flow process:
Step S101: determine the multiple monitoring points in network.
When needs monitoring network performance, according to topology of networks to be monitored, choose multiple monitoring point.Preferably, the monitoring point chosen, at the different network segments, can expand monitoring range like this.Such as, network topology comprises egress router, fire compartment wall, router and server etc. for load balancing, can using egress router, load balancing router and server as monitoring point.
Step S102: at each described monitoring point place, obtain multiple packet respectively, obtain multiple packet set; Wherein, the equal corresponding same session of each described packet.
Wherein, monitoring point is the network equipment of network consisting, and therefore each monitoring point can flow through packet, obtains packet at each described monitoring point place, and need to illustrate, each packet got is all the packets in same session.In addition, each monitoring point corresponding packet set separately.In network field, session is a kind of lasting procotol, associates with creating between server end at user (or user agent) end, thus exchange data packets each other.Same session, refers to the session of the swapping data of identical user (or user agent) end and identical server end.Alternatively, session is TCP session.
Step S103: according to packet sequence number mark, respectively to the data packet sequencing in each described packet set.
In the present embodiment, the packet got has packet sequence number mark.Utilize sequence number to identify, respectively to all data packet sequencings in each packet set, like this, the packet in each packet set is according to the arrangement of sequence number mark.Concrete sequencer procedure can with reference to hereafter describing.
Step S104: in the packet set after each sequence, determine target data packet sequence respectively; Wherein, described in each, the first packet of target data packet sequence has same alike result value.
Wherein, in the packet set after each sequence, all determine a target data packet sequence.The first packet of multiple target data packet sequence has same alike result value, and property value is identical can think same packet, and namely same packet different time points arrives through each monitoring point is crawled.It should be noted that, because each packet in packet set is through sequence, after determining first packet, just can determine target data packet sequence, the sequence of data packet that target data packet sequence is exactly the first packet determined is head.Briefly, namely this step is the packet set after alignment sequence, thus can realize the comparison between sequence of data packet more quickly.
Particularly, property value can be send sequence number, Receive sequence number and payload length, the sending sequence number of the first packet namely in each target data packet sequence, Receive sequence number and payload length are identical.Certainly, property value is not limited to above-mentioned form, can also be to utilize other property values to determine identical packet.
Step S105: utilize multiple described target data packet sequence, determine the performance parameter of described network.
In the present embodiment, the packet of multiple monitoring point can be obtained simultaneously, the packet of multiple monitoring point is chosen, sort and after the step such as alignment, generate multiple target data packet sequence.Target data packet sequence, has following characteristic: packet is the packet in same session, sort successively, and the first packet in sequence is same packet according to sequence number mark.
Analyze and there is such performance data packet sequence, the various performance parameters of network can be determined quickly and easily, as the packet of time delay, re-transmission and the packet etc. of loss.Certainly, when evaluating objects sequence of data packet is to determine network performance parameter, can be that the packet in each target data packet sequence is carried out longitudinal comparison, can also be the packet analyzed separately in each target data packet sequence, can also be both combinations.
From above technical scheme, the monitoring method of the network performance that the embodiment of the present invention provides, first the multiple monitoring points in network are determined, multiple packet belonging to same session is obtained at each monitoring point place, thus obtain multiple packet set, the sequence number of packet is utilized to identify, respectively the packet in each packet set is sorted, in packet set after each sequence, divide and determine a target data packet sequence, the property value of the first packet of each target data packet sequence is identical with the property value of other the first packet of target data packet sequence, and then utilize multiple target data packet sequence, determine the performance parameter of network, thus the monitoring achieved network performance, and the monitoring method simple and fast of this kind of network performance.
Particularly, shown in Figure 2, above-mentioned steps S105 utilizes multiple described target data packet sequence, determines that the process of the performance parameter of described network can comprise the following steps:
Step S201: in each described target data packet sequence, determine the time delay of each packet and respective corresponding data bag respectively; Wherein, the corresponding data bag of packet is the packet adjacent with this packet, and has the packet of same alike result value in other target data packet sequences with this packet.
This step is used for utilizing each target data packet sequence determination delay parameter, detailed process can be, each packet in each described target data packet sequence of comparison and the timestamp of respective corresponding data bag, with the difference between computing time stamp, thus determine time delay.Wherein, timestamp refers to the time point of the monitoring point of packet in network.
It should be noted that, the corresponding data bag of certain packet refers to the packet adjacent with this packet, and has the packet of same alike result value with this packet in other target data packet sequences except the target data packet sequence at this packet place.Wherein, adjacent packet refers to the last data bag of this packet and a rear packet, headed by this packet during individual packet, then refers to a rear packet of this packet, when this packet is end packet, then refer to the last data bag of this packet.
Wherein, the time delay that the timestamp of comparing data bag and adjacent data bag obtains, refers to the time delay that comparing data bag and the timestamp of adjacent data bag through same monitoring point obtain, and such as, packet 1 and packet 2 are respectively through the time delay of monitoring point R.This time delay be continuous print two packets through the time difference of same monitoring point, this time difference can reflect that certain monitoring point receives the frequency of packet.Such as, the time difference of two continuous data bags is 4ms, then a packet after have received after monitoring point receives last data bag 4ms is described.Certainly, two packets can be mutual packets, are namely that client issues the packet of server and server feedback to the packet of client respectively.
In addition, the time delay that the timestamp having same alike result value with this packet in comparing data bag and other target data packet sequences obtains, refers to the time delay that more identical packet obtains at the timestamp through different monitoring points.Such as, same packet is respectively through three monitoring points R1, R2 and R3, crawledly respectively three monitoring points to arrive, and the packet be confirmed as in each self-corresponding target data packet sequence in each monitoring point, time delay time relatively, this packet is confirmed as the packet with same alike result value, then compares the timestamp of this packet three monitoring points, thus obtain the time delay of this packet through R1 and R2, the time delay through R2 and R3.
Step S202: in each described target data packet sequence, add up the number of packet loss respectively; Wherein, described packet loss is comprise in other target data packet sequences but the packet do not comprised in this target data packet sequence.
Particularly, when adding up packet loss number in each target data packet sequence, need to find in this target data packet sequence and comprise but the packet do not comprised in other target data packet sequences, and then statistics number.Wherein, the mode of searching packet is identical with above-mentioned mode of searching identical data packet, i.e. the property value of comparison data bag.Property value is identical, thinks same packet, otherwise is different packets.
Visible, this step needs longitudinally each target data packet sequence of contrast, thus counts packet loss number.It should be noted that, packet loss might not be the packet that this monitoring point is lost, but by with other monitoring point comparisons after, find not flow through the number of the packet of this monitoring point, may be the fault of this monitoring point, also may be the fault of intermediate conveyor equipment.
Step S203: in each described target data packet sequence, add up the number of retransmission packet respectively; Wherein, described retransmission packet is the packet in same target data packet sequence with same alike result value.
Wherein, when adding up the number of retransmission packet in each target data packet sequence, need to find the packet in this target data packet sequence with same alike result, and then statistics number.
From above technical scheme, the present embodiment determination network performance parameter specifically refers to statistics time delay, retransmission packet and packet loss three aspect parameter.
Alternatively, the step S103 in above-described embodiment, according to packet sequence number mark, to the specific implementation of the data packet sequencing in each described packet set is respectively:
According to packet type, send sequence number and Receive sequence number, respectively to the data packet sequencing in each described packet set; Wherein, the type of packet comprises packet that client sends and the packet that server returns, and in packet set after each sequence, sending sequence number of the packet that the preceding client that sorts sends is less than or equal to the Receive sequence number of the packet that the posterior server of sequence returns.
It should be noted that, packet is the packet belonging to same session, and that is, above-mentioned two kinds of packets comprise the packet that client sends to server, and this server returns to the packet of this client.
To send sequence number and Receive sequence number is in a session, in order to mark the order of the packet of transmission and the sequence number arranged.Such as, the seq mark of the packet in TCP session and ack mark, seq mark refers to the sequence number of the packet that transmitting terminal sends, and ack mark refers to the sequence number that transmitting terminal wants the packet received.
It should be noted that, in the packet set of sequence, sending sequence number of the packet that the preceding client that sorts sends is less than or equal to the Receive sequence number of the packet that the posterior server end of sequence sends.Specifically, the data interaction of client and server is, client sends packet, and both having comprised in packet sends sequence number also comprises Receive sequence number, sending sequence number is the sequence number of this packet, and Receive sequence number shows the sequence number of the packet wanting server end to return.When after this packet that received server-side sends to client, sending sequence number in the packet returned is the Receive sequence number of client, and the Receive sequence number in the packet returned is that sending sequence number of client adds the payload length of 1 or packet.
Monitoring point is the intermediate equipment of client and server, then can get the packet of above-mentioned two types in monitoring point, packet is according to necessarily sequentially passing through monitoring point.Such as, user end to server send packet 1, packet 1 send sequence number as m, Receive sequence number is n, server return data bag 2, packet 2 send sequence number as n, Receive sequence number is m+1 (or payload length of m+ packet 2).
It should be noted that there is re-transmission situation, namely client or server resend certain packet sent in the past.Like this, may there is the situation of the Receive sequence number equaling the packet that server returns that sends sequence number of the packet that client sends in the packet after sequence.
Be specifically described the process of data packet sequencing below, optional a kind of sortord is as described below.Need to illustrate, determine multiple monitoring point, each monitoring point all can a corresponding packet set, sorts respectively to the packet in each data acquisition system.Following sequence is described using any one packet set as object, and the sequencer procedure of other packet set can see following method.
Preset buffer memory queue and chained list, and initialization in advance first identifies and the second mark, be set to by the first mark the sending sequence number of packet that first client that monitoring point grabs sends and add 1 or loading length, and the second mark is set to the sending sequence number of packet that first server that this monitoring point grabs returns and adds 1 or loading length.
Above-mentioned two first packets in packet set are put into buffer queue, order standard is that the packet of client transmission is front, the packet that server returns is rear, that is, sending sequence number of the packet that the preceding client that sorts sends is less than or equal to the Receive sequence number of the packet that the posterior server of sequence returns.Then, perform according to circulation step below, until packet set is empty.
S1: obtain a packet in remaining data bag in packet set, judges that the type of this packet is the packet that the packet that sends of client or server return.If the packet that client sends, then perform S2, if the packet that server returns, then perform S3.
S2: sending sequence number this packet to identify with first and compare; If the former is little, then illustrates that this packet is retransmission packet, this packet is put into buffer queue, then return S1 and obtain next packet in packet set; If both are equal, this packet is put into buffer queue, the first mark is added 1 or add the payload length of packet, and when there being packet in chained list, all packets are put in buffer queue, then returns S1 and obtain next packet in packet set; If the former is large, then this packet is put into chained list, then return S1 and obtain next packet in packet set.
S3: sending sequence number this packet to identify with second and compare; If the former is little, then illustrates that this packet is retransmission packet, this packet is put into buffer queue, then return S1 and obtain next packet in packet set; If both are equal, this packet is put into buffer queue, the second mark is added 1 or add the payload length of packet, and when there being packet in chained list, all packets are put in buffer queue, then returns S1 and obtain next packet in packet set; If the former is large, then this packet is put into chained list, then return S1 and obtain next packet in packet set.
It should be noted that, in above-mentioned S2 and S3 when there being packet in chained list, the method put into by all packets in buffer queue is identical with above-mentioned circulation step and S1, S2 and S3, does not repeat.
In addition, above-mentioned steps S102, at each described monitoring point place, obtains multiple packet respectively, and the specific implementation obtaining multiple packet set can be:
Packet is captured at each described monitoring point place, and the packet grabbed is put into respectively each described monitoring point buffer queue separately, after buffer queue is full, packet in buffer queue is stored to storage area corresponding to this buffer queue, return and capture packet at each described monitoring point place, until the time span capturing packet meets predetermined time period;
In each described storage area, obtain the packet of corresponding same session, obtain multiple packet set.
It should be noted that, for each monitoring point pre-sets a buffer queue, for the packet that buffer memory grabs.Utilize buffer queue to be stored in the storage area separately of monitoring point by the packet grabbed, and return and repeat to capture and put into the process of storage, until the time span capturing packet meets predetermined time period.Like this, in each storage area, store the packet grabbed, and then, in each storage area, obtain the packet belonging to same session, thus obtain multiple packet set.
Further, in the packet set of above-mentioned steps S105 after each sequence, determine that the specific implementation of target data packet sequence can be respectively:
According to the ordering of packet in the packet set after each sequence, search first have identically to send sequence number, the packet of Receive sequence number and payload length; In packet set after each sequence, using the packet after the described packet that finds and this packet as target data packet sequence.
Such as, the packet in the packet set A after sequence is followed successively by packet A1, packet A2, packet A3 ... packet An; Packet in packet set B after sequence is followed successively by packet B1, packet B2, packet B3 ... packet Bm; Packet in packet set C after sequence is followed successively by packet C1, packet C2, packet C3 ... packet Ck.
Wherein, sending sequence number of packet A1 is 5, Receive sequence number is 7, and payload length is 254; Sending sequence number of packet B3 is 5, Receive sequence number is 7, and payload length is 254; Sending sequence number of packet C2 is 5, Receive sequence number is 7, and payload length is 254.
Thus, packet A1 and packet afterwards thereof are defined as target data packet sequence, packet B3 and packet afterwards thereof are defined as another target data packet sequence, packet C2 and packet afterwards thereof are defined as another target data packet sequence.
In order to help monitoring personnel to check each target data packet sequence intuitively, can show.Particularly, on the basis of each embodiment above-mentioned, in the mode of coordinate system, target data packet sequence described in each can also be shown respectively; Wherein, the transverse axis of described coordinate system is the timestamp of target data bag, and the longitudinal axis is monitoring point mark.
Particularly, obtain timestamp and the sequence identifier of the packet in each target data packet sequence, according to the transverse axis position of timestamp determination packet, according to the longitudinal axis positions of sequence identifier determination packet.Wherein, alternatively, sequence identifier is the mark of the monitoring point capturing packet.In addition, the same packet in different target sequence of data packet can also be marked, mark the retransmission packet in target data packet sequence and packet loss.
In addition, the packet that the connecting line of diagram couples together is same packet, when the grid that connecting line connects is solid, represent that this packet is the packet lost, when there is retransmission packet in the target data packet sequence of same monitoring point, this retransmission packet and packet thick line corresponding to retransmission packet are highlighted.
Suppose, monitoring point is three, then get three target data packet sequences, the coordinate system of display as shown in Figure 3, grid represents packet, the longitudinal axis is respectively monitoring point A, monitoring point B and monitoring point C, the target data packet sequence that monitoring point A is corresponding comprises packet A1, packet A2, packet A3, packet A4 and packet A5, the target data packet sequence that monitoring point B is corresponding comprises packet B1, packet B2, packet B3 and packet B5, the target data packet sequence that monitoring point C is corresponding comprises packet C1, packet C2, packet C3, packet C4 and packet C5.Packet loss in diagram is packet B4, and the retransmission packet in diagram is packet A2 and packet A3, packet B2 and packet B3, packet C2 and packet C3.
Certainly, the representation of packet, the connected mode of connecting line, retransmission packet and packet loss can also be other modes, are not limited to shown in Fig. 3.
Can visually see the difference of timestamp of adjacent packet from figure, also can find out the difference of same packet at the timestamp of different monitoring points, can also find out retransmission packet and packet loss, be more conducive to monitor network performance.
Further, the fault point in network can be determined according to the data of monitoring.Such as, the packet loss quantity between two monitoring points is more and/or time delay is comparatively large, can determine that the network between two monitoring points or two monitoring points exists fault.
Be introduced the monitoring device of the network performance that the embodiment of the present invention provides below, it should be noted that, the explanation about the monitoring device of network performance provided below can refer to the monitoring method of network performance provided above, does not repeat below.
With reference to Fig. 4, it illustrates the structure of the monitoring device of the network performance that the embodiment of the present invention provides, specifically comprise:
Multiple monitoring points determining unit 100, for determining the multiple monitoring points in network;
Packet set acquiring unit 200, at each described monitoring point place, obtains multiple packet respectively, obtains multiple packet set; Wherein, the equal corresponding same session of each described packet;
Packet set sequencing unit 300, for according to packet sequence number mark, respectively to the data packet sequencing in each described packet set;
Sequence of data packet determining unit 400, in the packet set after each sequence, determines target data packet sequence respectively; Wherein, described in each, the first packet of target data packet sequence has same alike result value;
Performance parameter determining unit 500, for utilizing multiple described target data packet sequence, determines the performance parameter of described network.
By above technical scheme, the monitoring to network performance can be realized.
Alternatively, as shown in Figure 5, described performance parameter determining unit 500 comprises:
Time delay determination subelement 501, in each described target data packet sequence, determines the time delay of each packet and respective corresponding data bag respectively; Wherein, the corresponding data bag of packet is the packet adjacent with this packet, and has the packet of same alike result value in other target data packet sequences with this packet;
Packet loss statistics subelement 502, in each described target data packet sequence, adds up the number of packet loss respectively; Wherein, described packet loss is comprise in other target data packet sequences but the packet do not comprised in this target data packet sequence;
Retransmission packet statistics subelement 503, in each described target data packet sequence, adds up the number of retransmission packet respectively; Wherein, described retransmission packet is the packet in same target data packet sequence with same alike result value.
Alternatively, described packet set sequencing unit 300 comprises:
Packet set sequence subelement, for according to packet type, send sequence number and Receive sequence number, respectively to the data packet sequencing in each described packet set;
Wherein, the type of packet comprises packet that client sends and the packet that server returns, and in packet set after each sequence, sending sequence number of the packet that the preceding client that sorts sends is less than or equal to the Receive sequence number of the packet that the posterior server of sequence returns.
Alternatively, described packet set acquiring unit 200 comprises:
Packet captures subelement, for capturing packet at each described monitoring point place, and the packet grabbed is put into respectively each described monitoring point buffer queue separately, after buffer queue is full, packet in buffer queue is stored to storage area corresponding to this buffer queue, return and capture packet at each described monitoring point place, until the time span capturing packet meets predetermined time period;
Packet determination subelement, in each described storage area, obtains the packet of corresponding same session, obtains multiple packet set.
Alternatively, described sequence of data packet determining unit 400 comprises:
First packet searches subelement, for the ordering according to packet in the packet set after each sequence, search first have identically to send sequence number, the packet of Receive sequence number and payload length;
Sequence of data packet determination subelement, in the packet set after each sequence, using the packet after the described packet that finds and this packet as target data packet sequence.
Alternatively, on the basis of each device embodiment above-mentioned, can also comprise:
Coordinate system display unit, in the mode of coordinate system, shows target data packet sequence described in each respectively; Wherein, the transverse axis of described coordinate system is the timestamp of target data bag, and the longitudinal axis is monitoring point mark.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising above-mentioned key element and also there is other identical element.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a monitoring method for network performance, is characterized in that, comprising:
Determine the multiple monitoring points in network;
At each described monitoring point place, obtain multiple packet respectively, obtain multiple packet set; Wherein, the equal corresponding same session of each described packet;
According to packet sequence number mark, respectively to the data packet sequencing in each described packet set;
In packet set after each sequence, determine target data packet sequence respectively; Wherein, described in each, the first packet of target data packet sequence has same alike result value;
Utilize multiple described target data packet sequence, determine the performance parameter of described network.
2. the monitoring method of network performance according to claim 1, is characterized in that, describedly utilizes multiple described target data packet sequence, determines that the performance parameter of described network comprises:
In each described target data packet sequence, determine the time delay of each packet and respective corresponding data bag respectively; Wherein, the corresponding data bag of packet is the packet adjacent with this packet, and has the packet of same alike result value in other target data packet sequences with this packet;
In each described target data packet sequence, add up the number of packet loss respectively; Wherein, described packet loss is comprise in other target data packet sequences but the packet do not comprised in this target data packet sequence;
In each described target data packet sequence, add up the number of retransmission packet respectively; Wherein, described retransmission packet is the packet in same target data packet sequence with same alike result value.
3. the monitoring method of network performance according to claim 1, is characterized in that, described according to packet sequence number mark, comprises respectively to the data packet sequencing in each described packet set:
According to packet type, send sequence number and Receive sequence number, respectively to the data packet sequencing in each described packet set;
Wherein, the type of packet comprises packet that client sends and the packet that server returns, and in packet set after each sequence, sending sequence number of the packet that the preceding client that sorts sends is less than or equal to the Receive sequence number of the packet that the posterior server of sequence returns.
4. the monitoring method of network performance according to claim 1, is characterized in that, describedly obtains multiple packet respectively at each described monitoring point place, obtains multiple packet set and comprises:
Packet is captured at each described monitoring point place, and the packet grabbed is put into respectively each described monitoring point buffer queue separately, after buffer queue is full, packet in buffer queue is stored to storage area corresponding to this buffer queue, return and capture packet at each described monitoring point place, until the time span capturing packet meets predetermined time period;
In each described storage area, obtain the packet of corresponding same session, obtain multiple packet set.
5. the monitoring method of network performance according to claim 1, is characterized in that, in described packet set after each sequence, determines that target data packet sequence comprises respectively:
According to the ordering of packet in the packet set after each sequence, search first have identically to send sequence number, the packet of Receive sequence number and payload length;
In packet set after each sequence, using the packet after the described packet that finds and this packet as target data packet sequence.
6. the monitoring method of network performance according to claim 1, is characterized in that, also comprises:
In the mode of coordinate system, show target data packet sequence described in each respectively;
Wherein, the transverse axis of described coordinate system is the timestamp of target data bag, and the longitudinal axis is monitoring point mark.
7. a monitoring device for network performance, is characterized in that, comprising:
Multiple monitoring points determining unit, for determining the multiple monitoring points in network;
Packet set acquiring unit, at each described monitoring point place, obtains multiple packet respectively, obtains multiple packet set; Wherein, the equal corresponding same session of each described packet;
Packet set sequencing unit, for according to packet sequence number mark, respectively to the data packet sequencing in each described packet set;
Sequence of data packet determining unit, in the packet set after each sequence, determines target data packet sequence respectively; Wherein, described in each, the first packet of target data packet sequence has same alike result value;
Performance parameter determining unit, for utilizing multiple described target data packet sequence, determines the performance parameter of described network.
8. the monitoring device of network performance according to claim 7, is characterized in that, described performance parameter determining unit comprises:
Time delay determination subelement, in each described target data packet sequence, determines the time delay of each packet and respective corresponding data bag respectively; Wherein, the corresponding data bag of packet is the packet adjacent with this packet, and has the packet of same alike result value in other target data packet sequences with this packet;
Packet loss statistics subelement, in each described target data packet sequence, adds up the number of packet loss respectively; Wherein, described packet loss is comprise in other target data packet sequences but the packet do not comprised in this target data packet sequence;
Retransmission packet statistics subelement, in each described target data packet sequence, adds up the number of retransmission packet respectively; Wherein, described retransmission packet is the packet in same target data packet sequence with same alike result value.
9. the monitoring device of network performance according to claim 7, is characterized in that, described packet set sequencing unit comprises:
Packet set sequence subelement, for according to packet type, send sequence number and Receive sequence number, respectively to the data packet sequencing in each described packet set;
Wherein, the type of packet comprises packet that client sends and the packet that server returns, and in packet set after each sequence, sending sequence number of the packet that the preceding client that sorts sends is less than or equal to the Receive sequence number of the packet that the posterior server of sequence returns.
10. the monitoring device of network performance according to claim 7, is characterized in that, also comprises:
Coordinate system display unit, in the mode of coordinate system, shows target data packet sequence described in each respectively; Wherein, the transverse axis of described coordinate system is the timestamp of target data bag, and the longitudinal axis is monitoring point mark.
CN201410779173.8A 2014-12-15 2014-12-15 Method and device for monitoring network performance Pending CN104486156A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410779173.8A CN104486156A (en) 2014-12-15 2014-12-15 Method and device for monitoring network performance
CN201510907149.2A CN105553758B (en) 2014-12-15 2015-12-09 A kind of monitoring method and device of network performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410779173.8A CN104486156A (en) 2014-12-15 2014-12-15 Method and device for monitoring network performance

Publications (1)

Publication Number Publication Date
CN104486156A true CN104486156A (en) 2015-04-01

Family

ID=52760663

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201410779173.8A Pending CN104486156A (en) 2014-12-15 2014-12-15 Method and device for monitoring network performance
CN201510907149.2A Active CN105553758B (en) 2014-12-15 2015-12-09 A kind of monitoring method and device of network performance

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510907149.2A Active CN105553758B (en) 2014-12-15 2015-12-09 A kind of monitoring method and device of network performance

Country Status (1)

Country Link
CN (2) CN104486156A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301934A (en) * 2016-08-23 2017-01-04 成都科来软件有限公司 A kind of based on multilink data bag excavation search method and device
CN113098668A (en) * 2021-03-31 2021-07-09 中国光大银行股份有限公司 Method for judging whether packet loss in TCP session is retransmitted or not by multiple data acquisition points
CN113453024A (en) * 2020-03-25 2021-09-28 华为技术有限公司 Method, device and system for monitoring service

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108075934B (en) * 2016-11-15 2021-05-25 腾讯科技(深圳)有限公司 Network quality monitoring method, device and system
CN108156056B (en) * 2017-12-28 2021-07-09 华为技术有限公司 Network quality measuring method and device
CN112994965B (en) * 2019-12-13 2022-09-02 北京金山云网络技术有限公司 Network anomaly detection method and device and server

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8238253B2 (en) * 2006-08-22 2012-08-07 Embarq Holdings Company, Llc System and method for monitoring interlayer devices and optimizing network performance
CN101174995B (en) * 2006-11-03 2010-05-12 中兴通讯股份有限公司 Method and system for monitoring multimedia service performance
CN102096634A (en) * 2010-12-31 2011-06-15 中国航空工业集团公司第六三一研究所 Airborne distributed node debugging method based on event level
US8817649B2 (en) * 2012-04-13 2014-08-26 Tektronix, Inc. Adaptive monitoring of telecommunications networks

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301934A (en) * 2016-08-23 2017-01-04 成都科来软件有限公司 A kind of based on multilink data bag excavation search method and device
CN106301934B (en) * 2016-08-23 2019-10-29 成都科来软件有限公司 One kind excavating search method and device based on multilink data packet
CN113453024A (en) * 2020-03-25 2021-09-28 华为技术有限公司 Method, device and system for monitoring service
WO2021190050A1 (en) * 2020-03-25 2021-09-30 华为技术有限公司 Service monitoring method, apparatus and system
CN113453024B (en) * 2020-03-25 2022-06-14 华为技术有限公司 Method, device and system for monitoring service
CN113098668A (en) * 2021-03-31 2021-07-09 中国光大银行股份有限公司 Method for judging whether packet loss in TCP session is retransmitted or not by multiple data acquisition points

Also Published As

Publication number Publication date
CN105553758A (en) 2016-05-04
CN105553758B (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN105553758A (en) Network performance monitoring method and device
CN107579923B (en) Link load balancing method of SDN and SDN controller
EP2661028A1 (en) Duplicate Packet Suppression
CN101729391B (en) Method, node and system for acquiring link aggregation group information
CN105357082A (en) Method and device for identifying network flow
US9276853B2 (en) Hashing of network packet flows for efficient searching
CN104702468B (en) Determine the method, apparatus and system of transmission path
CN106031094A (en) Accurate measurement of distributed counters
CN109428785A (en) A kind of fault detection method and device
CN104935476B (en) A kind of network traffics matrix measuring method based on SDN
WO2016161808A1 (en) Method and node for dynamic reconnection of trains
Latapy et al. A Radar for the Internet
CN102857354A (en) Method, device and system for reporting alarm information
CN106385363A (en) SDN data plane data-flow backup method and device
CN106789438A (en) A kind of device connectivity detection method and device
CN106487683A (en) A kind of processing method and processing device of message
CN102420797A (en) Topology mapping method and system
EP2460317A2 (en) System and method for identifying multiple paths between network nodes
CN105490827B (en) A kind of method and device obtaining network state
CN105577562A (en) Service data flow sending and forwarding methods and service data flow sending and forwarding devices
CN106453092B (en) A kind of route renewing method and device
CN101491019A (en) Apparatus for controlling tunneling loop detection
CN109150708B (en) Method and device for selecting data forwarding interface
CN106130790A (en) A kind of fault handling method and device
CN108809765A (en) Network quality test method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150401