CN105281969B - A kind of statistical information acquisition methods and device - Google Patents

A kind of statistical information acquisition methods and device Download PDF

Info

Publication number
CN105281969B
CN105281969B CN201410318272.6A CN201410318272A CN105281969B CN 105281969 B CN105281969 B CN 105281969B CN 201410318272 A CN201410318272 A CN 201410318272A CN 105281969 B CN105281969 B CN 105281969B
Authority
CN
China
Prior art keywords
period
message
measurement
measurement period
tested
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
CN201410318272.6A
Other languages
Chinese (zh)
Other versions
CN105281969A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410318272.6A priority Critical patent/CN105281969B/en
Priority to PCT/CN2015/083286 priority patent/WO2016000659A1/en
Publication of CN105281969A publication Critical patent/CN105281969A/en
Application granted granted Critical
Publication of CN105281969B publication Critical patent/CN105281969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Landscapes

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

Abstract

The embodiment of the present invention provides a kind of statistical information method and device, it include: that transmitting terminal is numbered for one corresponding period of each measurement period setting at least one measurement period, and period number is added in corresponding measurement period in the header for the tested message for including;Transmitting terminal sends the tested message for carrying the period number to receiving end, and the statistical information in the specified measurement period at least one described measurement period is obtained based on period number, the statistical information is used to calculate the performance measurements for the network for carrying the tested message.Such scheme, rely on the insertion message except Business Stream compared with prior art to characterize measurement period, a possibility that statistical information obtains inaccuracy caused by can reducing because of abnormal conditions such as insertion message losss, and then improve the accuracy for calculating network performance measurement result;The problem of also Business Stream bandwidth will not be occupied generally there are insertion message such as the prior art simultaneously.

Description

A kind of statistical information acquisition methods and device
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of statistical information acquisition methods and device.
Background technique
With the continuous development of information technology, requirement of the user to network performance is higher and higher, currently used internetworking Energy detection mode can be presented as following two: initiative measures (active measurements), passivity measurement (passive measurements)。
Wherein, initiative measurement needs to inject test packet into network, in conjunction with the transmission situation analysis of test packet Network performance, this mode can make to generate added flow in network, and network operation situation is caused to change therewith, tie measurement There are certain deviations between fruit and the actual performance of network.Passivity measurement is then directly by the reality in equipment monitoring network Business Stream will not generate added flow, and measurement result can more reflect the truth of network, be widely used in failure boundary, Fault location, the network optimization etc..
Carry out passivity measurement when, to be inserted into Business Stream OAM (Operation, Administration, Maintenance) boundary message is tested message so that Business Stream is divided into multiple groups using OAM boundary message, and monitors every group of quilt The transmission situation of text is observed and predicted, obtains statistical information, and then calculate network performance measurement result using statistical information.Such as, for certain The reception message number that the tested message of group, the transmission message number obtained using transmitting terminal monitoring and receiving end monitoring are obtained, calculating are lost Packet detected value;Alternatively, the receiving time that the sending time stamp and receiving end monitoring that are obtained using transmitting terminal monitoring are obtained is stabbed, calculate Time delay detection value;Etc..
In summary, the measurement result of passivity measurement is somewhat dependent on OAM boundary message, if OAM demarcates Message goes wrong to the description of Business Stream grouping, and e.g., OAM boundary message loss leads to packet error, because transmitting terminal and connecing Receiving end is using adjacent two OAM boundary message come demarcation interval, therefore, if OAM boundary message is lost in transmission process, Transmitting terminal and receiving end be will lead to using different OAM boundary message demarcation intervals, the monitoring section of the two is caused to mismatch, It then will affect the accuracy of transmitting terminal, receiving end acquisition statistical information, and then the calculating for influencing network performance measurement result is accurate Property.Furthermore, it is contemplated that OAM boundary message can occupy certain bandwidth, inserts it into Business Stream, Business Stream will certainly be reduced Valid data transmission efficiency, and as insertion OAM boundary message number increasing, this problem is just more obvious.
Summary of the invention
Statistical information acquisition methods and device provided in an embodiment of the present invention obtain the accurate of statistical information to improve Property, and then improve the accuracy for calculating network performance measurement result.
For this purpose, the embodiment of the present invention provides the following technical solutions:
In a first aspect, the embodiment of the invention provides a kind of statistical information acquisition methods, which comprises
Transmitting terminal is that each measurement period at least one measurement period is arranged corresponding period number, and by institute Period number is stated to be added in corresponding measurement period in the header for the tested message for including;
The transmitting terminal sends the tested message for carrying the period number to receiving end, and is numbered based on the period The statistical information in the specified measurement period at least one described measurement period is obtained, the statistical information is for calculating carrying institute State the performance measurements of the network of tested message.
In the first possible implementation of the first aspect, the measurement period is divided according to cycle parameter, The cycle parameter is specified duration or specified tested message number.
With reference to first aspect or the first possible implementation of first aspect, in second of possible implementation In, it is described that period number is added in corresponding measurement period in the header for the tested message for including, comprising:
Period number is added to the header for all tested messages for including in corresponding measurement period by the transmitting terminal In;Alternatively,
Period number is added to the header for the specified tested message for including in corresponding measurement period by the transmitting terminal In, the specified tested message is to be selected from all tested messages for including in the corresponding measurement period according to preset rules Out.
With reference to first aspect or the first or second of possible implementation of first aspect, in the third possible reality It is described that period number is added in corresponding measurement period in the header for the tested message for including in existing mode, include:
Period number is added to the hop-by-hop options extension header of ipv6 header to the transmitting terminal or destination option expands Open up head;Alternatively,
Period number is added to the Option Field of IPV4 header by the transmitting terminal.
With reference to first aspect or first aspect the first to the third possible implementation, in the 4th kind of possible reality In existing mode, the statistical information is message number, then described to obtain at least one described measurement week based on period number The statistical information in interim specified measurement period, comprising:
The transmitting terminal counts the number that the tested message of same period number is carried in the specified measurement period.
With reference to first aspect or first aspect the first to the 4th kind of possible implementation, in the 5th kind of possible reality In existing mode, the statistical information is timestamp, then described to obtain at least one described measurement period based on period number In the specified measurement period statistical information, comprising:
The transmitting terminal records the sending time stamp of the specified tested message in the specified measurement period, the specified quilt Text is observed and predicted as positioned at the tested message for carrying period number of designated position.
In a first aspect, the embodiment of the invention provides a kind of statistical information acquisition methods, which comprises
Receiving end receives the tested message that transmitting terminal is sent, and period number, the period are carried in the tested message Number, the tested message carrying that the measurement period in includes identical period number corresponding with measurement period;
The receiving end obtains the statistical information of the measurement period based on period number, and the statistical information is used for Calculate the performance measurements for carrying the network of the tested message.
In the first possible implementation of the second aspect, the statistical information is message number, the then reception End group obtains the statistical information of the measurement period in period number, comprising:
The receiving end counts the number that the tested message of same period number is carried in the measurement period.
It is connect in the second possible implementation described in conjunction with the first possible implementation of second aspect Receiving end counts before the number for carrying the tested message of same period number in the measurement period, further includes:
Known according to the tested message of the corresponding period number of the first carrying measurement period received the receiving end The measurement starting point of the not described measurement period;
The receiving end identifies the measurement of the measurement period according to the variation of the corresponding period number of the measurement period Terminal;And/or the receiving end obtains specified duration, and according to the measurement starting point of the measurement period and the specified duration Identify the measurement terminal of the measurement period.
In the third possible implementation of the second aspect, the statistical information is message number, and receiving end is set It is equipped with permission lag parameter, then the receiving end obtains the statistical information of the measurement period based on period number, comprising:
The receiving end adjusts the measurement period, and the measurement period after statistical adjustment using the permission lag parameter The number of the interior tested message for carrying same period number.
In conjunction with the third possible implementation of second aspect, in the fourth possible implementation, the permission Lag parameter is to allow to lag duration or allow to lag tested message number.
In conjunction with the first of second aspect or second aspect to the 4th kind of possible implementation, in the 5th kind of possible reality In existing mode, the statistical information is timestamp, then the receiving end obtains the measurement period based on period number Statistical information, comprising:
The receiving end records the receiving time stamp of the specified tested message in the measurement period, and described specify is observed and predicted The tested message that text is numbered for the carrying period positioned at designated position, and the designated position and transmitting terminal record sending time stamp Designated position it is identical.
The third aspect, the embodiment of the invention provides a kind of statistical information acquisition device, described device includes:
Setting unit, for a corresponding period volume to be arranged for each measurement period at least one measurement period Number;
Adding unit, the period number for the setting unit to be arranged, which is added in corresponding measurement period, includes Tested message header in;
Transmission unit, for sending the tested message for carrying the period number to receiving end;
Obtaining unit, for obtaining institute based on period number when the transmission unit sends the tested message The statistical information in the specified measurement period at least one measurement period is stated, the statistical information is described tested for calculating carrying The performance measurements of the network of message.
In the first possible implementation of the third aspect, the setting unit is also used to that the measurement is being arranged Before period, the measurement period is divided according to cycle parameter, the cycle parameter is specified duration or specified tested message number.
In conjunction with the possible implementation of the first of the third aspect or the third aspect, in second of possible implementation In, the adding unit, specifically for period number is added to all tested messages for including in corresponding measurement period Header in;Alternatively,
The adding unit, specifically for period number to be added to include in corresponding measurement period specified tested In the header of message, the specified tested message is include all tested in the corresponding measurement period according to preset rules It is selected in message.
In conjunction with the first or second of possible implementation of the third aspect or the third aspect, in the third possible reality In existing mode, the adding unit, specifically for period number is added to ipv6 header hop-by-hop options extension header or Destination option extension head;Alternatively,
The adding unit, specifically for period number to be added to the Option Field of IPV4 header.
In conjunction with the first of the third aspect or the third aspect to the third possible implementation, in the 4th kind of possible reality In existing mode, the statistical information is message number, then the obtaining unit, is specifically used for counting in the specified measurement period Carry the number of the tested message of same period number.
In conjunction with the first of the third aspect or the third aspect to the 4th kind of possible implementation, in the 5th kind of possible reality In existing mode, the statistical information is timestamp, then the obtaining unit, specifically for recording in the specified measurement period The specified sending time stamp for being tested message, the specified tested message are being observed and predicted for the carrying period number positioned at designated position Text.
Fourth aspect, the embodiment of the invention provides a kind of statistical information acquisition device, described device includes:
Receiving unit carries period number, institute for receiving the tested message of transmitting terminal transmission in the tested message It is corresponding with measurement period to state period number, the tested message for including in the measurement period carries identical period number;
Obtaining unit, for obtaining the statistical information of the measurement period, the statistical information based on period number For calculating the performance measurements for carrying the network of the tested message.
In the first possible implementation of the fourth aspect, the statistical information is message number, the then acquisition Unit includes:
Subelement is obtained, for counting the number for carrying the tested message of same period number in the measurement period.
In conjunction with the first possible implementation of fourth aspect, in the second possible implementation, the acquisition Unit further include:
Starting point recognition unit, for according to the tested of the corresponding period number of the first carrying measurement period received Message identifies the measurement starting point of the measurement period;
Terminal recognition unit, for identifying the measurement period according to the variation of the corresponding period number of the measurement period Measurement terminal;And/or the receiving end obtains specified duration, and according to the measurement starting point of the measurement period and the finger The long measurement terminal for identifying the measurement period of timing.
In the third possible implementation of the fourth aspect, the statistical information is message number, and is provided with fair Perhaps lag parameter, then the obtaining unit include:
Adjustment unit, for adjusting the measurement period using the permission lag parameter, the permission lag parameter is Allow to lag duration or allows to lag tested message number;
Subelement is obtained, for counting the quilt for carrying same period number in adjustment unit measurement period adjusted Observe and predict the number of text.
In conjunction with the first of fourth aspect or fourth aspect to the third possible implementation, in the 4th kind of possible reality In existing mode, the statistical information is timestamp, then the obtaining unit includes:
Recording unit, for recording the receiving time stamp of the specified tested message in the measurement period, the specified quilt Observing and predicting text is the tested message for carrying period number positioned at designated position, and when the designated position and transmitting terminal record transmission Between the designated position stabbed it is identical.
The statistical information acquisition methods and device of the embodiment of the present invention, when carrying out network performance detection, transmitting terminal is every A measurement period configures a corresponding period number, and period number is written to the header of tested message.In this way, sending Hold to receiving end transmit it is above-mentioned carry the tested message that the period numbers when, transmitting terminal, receiving end can be quasi- based on period number The statistical information in specified measurement period is really obtained, and then calculates the performance measurement knot for carrying the network of the measurement period accordingly Fruit.The embodiment of the present invention characterizes measurement period by the period number being tested in heading, relies on industry compared to the prior art Insertion message except business stream characterizes measurement period, so that it may count letter caused by reducing because of abnormal conditions such as insertion message losss Breath obtains a possibility that inaccuracy, and then improves the accuracy for calculating network performance measurement result;Meanwhile the embodiment of the present invention is such as The problem of this characterizes the mode of measurement period, will not also occupy Business Stream bandwidth generally there are insertion message such as the prior art, therefore It also can effectively ensure that Business Stream valid data transmission efficiency.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application can also be obtained according to these attached drawings other for those of ordinary skill in the art Attached drawing.
Fig. 1 is the flow diagram of the statistical information acquisition methods of transmitting terminal of the embodiment of the present invention;
Fig. 2-1 is the schematic diagram that the first in the embodiment of the present invention divides measurement period;
Fig. 2-2 is the schematic diagram of second of division measurement period in the embodiment of the present invention;
Fig. 2-3 is the schematic diagram that the third in the embodiment of the present invention divides measurement period;
Fig. 2-4 is the schematic diagram of the 4th kind of division measurement period in the embodiment of the present invention;
Fig. 3-1 is the form schematic diagram for the header that the first in the embodiment of the present invention carries period number;
Fig. 3-2 is the form schematic diagram of the header of second of carrying period number in the embodiment of the present invention;
Fig. 3-3 is the form schematic diagram for the header that the third in the embodiment of the present invention carries period number;
Fig. 4 is the flow diagram of the statistical information acquisition methods of receiving end of the embodiment of the present invention;
Fig. 5-1 is the schematic diagram that a measurement period is only existed in the embodiment of the present invention;
Fig. 5-2 is another schematic diagram that a measurement period is only existed in the embodiment of the present invention;
Fig. 6 is the schematic diagram that packet out-ordering transmits in the embodiment of the present invention;
Fig. 7 is the composition schematic diagram for the statistical information acquisition device that the embodiment of the present invention sends end side;
Fig. 8 is the composition schematic diagram for the statistical information acquisition device that the embodiment of the present invention receives end side;
Fig. 9 is that the hardware of statistical information acquisition device of the embodiment of the present invention constitutes schematic diagram.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawing with embodiment to this Inventive embodiments are described in further detail.
Before introducing technical solution of the embodiment of the present invention, first the concrete application scene of the embodiment of the present invention is explained Explanation.
When carrying out network performance detection using passivity measurement method, the equipment for needing to flow through Business Stream is clearly divided The mode in section is monitored, and then the service message that can just obtain in this section of section of counting messages information monitoring in monitoring section passes Defeated situation obtains statistical information and calculates network performance measurement result.
In the prior art, it is monitored interval division by way of being inserted into OAM boundary message into Business Stream, in this way, Service message between the adjacent OAM boundary message of any two can be considered as one group of tested message by equipment, and it is tested to monitor the group The transmission situation of message.Such as, the transmission message number RX [i] when i-th group of tested message of sending ending equipment record transmission, receiving end is set Note receives the reception message number TX [i] when i-th group of tested message, in this way, can be calculated where i-th group of tested message Number of dropped packets=RX [the i]-TX [i] in section.
Because transmitting terminal and receiving end are using adjacent two OAM boundary message come demarcation interval, therefore, if OAM points Boundary's message is lost in transmission process, will lead to transmitting terminal and receiving end using different OAM boundary message demarcation intervals, causes The monitoring section of the two is mismatched, measurement result is caused to malfunction.
In addition, monitoring the size in section and the OAM boundary message number of insertion in this mode for dividing monitoring section It is inversely proportional, i.e. monitoring section is smaller, and the OAM boundary message for needing to be inserted into is more, and OAM boundary message itself can also occupy one Fixed bandwidth, therefore, with constantly becoming smaller for monitoring section, the bandwidth that OAM boundary message occupies in Business Stream will gradually become Greatly, the valid data transmission efficiency of Business Stream is caused to decline therewith.
Above using OAM boundary Receive message statistical information, calculate network performance measurement result when there are aiming at the problem that, The embodiment of the present invention provides a kind of scheme of new acquisition statistical information, and the accuracy for obtaining statistical information can be improved, And then improve the accuracy for calculating network performance measurement result.
The embodiment of the present invention is related to transmitting terminal and receiving end two sides, below first from transmitting terminal, to of the invention real The process for applying example acquisition statistical information is explained.
Referring to Fig. 1, the flow diagram of the statistical information acquisition methods of transmitting terminal of the embodiment of the present invention is shown, it may include Following steps:
Step 101, transmitting terminal is that a corresponding period volume is arranged in each measurement period at least one measurement period Number, and period number is added in corresponding measurement period in the header for the tested message for including.
Step 102, the transmitting terminal sends the tested message for carrying the period number to receiving end, and based on described Period number obtains the statistical information in the specified measurement period at least one described measurement period, and the statistical information is based on Calculate the performance measurements for carrying the network of the tested message.
Transmitting terminal is handled the tested message according to using the embodiment of the present invention, makes transmitting terminal, receiving end Using treated, the tested message obtains statistical information automatically, in case using when calculated performance measurement result.It needs to illustrate , the tested message in the embodiment of the present invention can be data message, is also possible to control management message.It is multiple tested Message forms a Business Stream.The embodiment of the present invention can not limit the concrete type of tested message.
Specifically, the treatment process of the embodiment of the present invention relates generally to the following: the setting period numbers, divides measurement week It phase, addition period number, monitoring and statistics information, is explained one by one below.
1. being numbered according to the predetermined manner setting period.
As an example, predetermined manner can be presented as monotonic increase, and incremental steps are 1, in this way, determining the initial period After number, so that it may sequentially determine other period numbers on its basis, e.g., initial period number is P1, then the week being provided Phase number can embody are as follows: P1, P2, P3 ....Herein, it should be noted that the predetermined manner of setting period number, initial week Value, the total period number number being provided etc. of phase number, can be depending on practical application request, present invention reality Example is applied to this and is not specifically limited.
2. dividing measurement period.
When transmitting terminal obtains statistical information according to the embodiment of the present invention, can be drawn from Business Stream according to cycle parameter At least one measurement period (it should be understood that measurement period, that is, surveying range) described in point.Wherein, cycle parameter is for dividing The parameter of measurement period is presented as that specified duration or specified tested message number (specifically can refer to carry period volume in measurement period Number tested message number).In addition, cycle parameter can be pre-configured to be in transmitting terminal, or can also be when needed by external defeated Enter, the embodiment of the present invention can be not specifically limited this.
As an example, cycle parameter can be input to this transmitting terminal by externally measured personnel, and e.g., survey crew passes through defeated The mode for entering order line makes transmitting terminal obtain cycle parameter;Alternatively, cycle parameter can also be input to this hair by external control devices Sending end, specifically, control equipment can be the concentration in SDN (software defined network, Software Defined Network) Controller is also possible to the equipment such as network management, or control equipment can also be a special equipment, and the embodiment of the present invention also may be used to this It is not specifically limited.
Below for dividing measurement period according to externally input cycle parameter, the period of the embodiment of the present invention is divided Mode is explained.
Mode one after transmitting terminal receives cycle parameter, that is, starts to handle the Business Stream for flowing through this transmitting terminal, tool Body embodies are as follows: the period set number is added in the message of Business Stream.By taking lifted period number above as an example, transmitting terminal (as an example, transmitting terminal can be triggered by externally input cycle parameter, or can also be externally input after being triggered Other parameters or instruction are triggered, wherein outside can be presented as externally measured personnel or external equipment, and the embodiment of the present invention is to this Can be not specifically limited), start the header that initial period number P1 is added to the message transmitted, and judge it is current whether The requirement for meeting cycle parameter (is explained this below in conjunction with different embody of cycle parameter, wouldn't say herein It is bright), if it is satisfied, then explanation completes the adding procedure of period number P1, next period number P2 can be called, P2 is added To the header of the message transmitted at this time, and the judgement of cycle parameter is carried out, such process moves in circles, until completing all settings The adding procedure of good period number, or executed until stopping adding procedure by control.
By the process of number of above-mentioned addition period it is found that every complete a kind of addition that the period numbers, that is, completing The division of one measurement period, to this it is to be understood that all tested messages for carrying same period number are divided into one Measurement period.In above-mentioned example, all tested messages for carrying P1 belong to a measurement period, understand for convenience, can It is defined as measurement period T1;Further all tested messages for carrying P2 belong to measurement period T2, and so on, so that it may At least one measurement period is marked off from Business Stream according to cycle parameter, details are not described herein again.
If cycle parameter is presented as specified duration, e.g., cycle parameter 1s, then whether judgement currently meets the period above The requirement of parameter, it is possible to understand that are as follows:
For number of each period, adds period number into the header of tested message for the first time from transmitting terminal and open Begin, carries out timing, and once judged after every addition for completing a tested message, whether timing reaches finger at this time for judgement Timing is long.That is, whether centre has been spaced specified duration until starting timing to current time certainly, if it is, determining currently completely The requirement of sufficient cycle parameter can terminate the adding procedure numbered to current period;If it is not, then determining not meet the period also currently The requirement of parameter can proceed with the processes such as the addition of current period number and addition duration judgement, until meeting cycle parameter Until it is required that.
It should be noted that when being added duration and judging, can as it is made above introduce it is every complete a tested message Addition is once judged;Alternatively, the form that can also sample according to other fixed cycles, variable cycle is judged, e.g., Judged with larger space (e.g., every addition for completing 5 messages, or at interval of 1/10s) timing early period, and with addition The progress of process can constantly adjust diminution judgement interval.Specifically, depending on judging that opportunity can be by actual demand, the present invention is implemented Example can be not specifically limited.
If cycle parameter is presented as specified tested message number, e.g., cycle parameter is 50 tested messages, then judgement above Currently whether meet the requirement of cycle parameter, it is possible to understand that are as follows:
For every kind of period number, adds period number into the header of tested message for the first time from transmitting terminal and open Begin, counted, and once judged after every addition for completing a tested message, whether judgement counts at this time reaches finger Surely it is tested message number, if it is, determining the requirement for currently meeting cycle parameter, the addition to current period parameter can be terminated Process;If it is not, then determining the requirement for not meeting cycle parameter also currently, the addition of current period number and addition can proceed with The processes such as number judgement, until meeting the requirement of cycle parameter.
Mode two can be first with cycle parameter from the Business Stream for flowing through this transmitting terminal after transmitting terminal receives cycle parameter In mark off at least one measurement period, then further according to measurement period and the period number between corresponding relationship, to each measurement Corresponding period number is added in the tested message for including in period.
If cycle parameter is presented as specified duration, if cycle parameter is 1s, transmitting terminal is then using the cycle parameter, by industry The corresponding message of first 1s is divided into the first measurement period in business stream, and the corresponding message of second 1s is divided into the second measurement Period, and so on, details are not described herein again.Still by taking lifted period number above as an example, P1 can be added to the first survey by transmitting terminal In the header for the tested message for including in the amount period, P2 is added in the second measurement period to the header for the tested message for including In, such process until completing the adding procedure of all period numbers set, or stops adding procedure by control execution and is Only.
If cycle parameter is presented as specified tested message number, if cycle parameter is 50 tested messages, transmitting terminal then can benefit With the cycle parameter, the 1st message to the message between the 50th message that the period to be added numbers is divided into the first survey The period is measured, the 51st message to the message between the 100th message that the period to be added numbers is divided into the second measurement week Phase, and so on, details are not described herein again.Still by taking lifted period number above as an example, P1 can be added to the first measurement by transmitting terminal In the header for the tested message for including in period, P2 is added in the second measurement period in the header for the tested message for including, Such process until completing the adding procedure of all period numbers set, or is executed until stopping adding procedure by control.
In addition, combining the process for dividing measurement period using cycle parameter above, the embodiment of the present invention can also do following two Point explanation:
(1) measurement period can embody are as follows: continuous cycles, discontinuous periodic.
For for the measurement period marked off in Business Stream, it can be presented as continuous cycles shown in Fig. 2-1, that is, send out After sending end is triggered, continual period division is carried out with regard to the Business Stream automatically to this transmitting terminal current transmission;Alternatively, can also body Now for discontinuous periodic shown in Fig. 2-2, that is, one section of several messages or interval may be spaced between each measurement period marked off Time.
For the non-continuous period marked off, it should be noted that when realizing, week can be configured in transmitting terminal in advance Period every (e.g., being spaced predetermined number message or interval preset duration etc., the embodiment of the present invention can be not specifically limited this), The setting in non-continuous period is carried out automatically according to configuration by transmitting terminal.Alternatively, transmitting terminal can also be according to externally input control Information processed carries out the setting in non-continuous period.Such as, control information is period distances, then after transmitting terminal receives control information The non-continuous period setting of rule can be carried out automatically;Alternatively, control information is measurement period sign on, then transmitting terminal Rule, the setting of irregular non-continuous period can be carried out accordingly, that is to say, that transmitting terminal, which once receives, to be started to refer to It enables, just marks off a measurement period using cycle parameter, if External Laws input sign on, transmitting terminal to transmitting terminal The non-continuous period being provided accordingly is rule, if external irregular to transmitting terminal input sign on, is sent out The non-continuous period that sending end is provided accordingly is irregular.
As an example, what Fig. 2-2 was indicated is 2, interval message regular between each measurement period.
(2) the tested message of addition period number can embody are as follows: all tested messages that measurement period includes, measurement period The specified tested message for including.
Such as introduction made above, the measurement period marked off from Business Stream can be continuously, be also possible to discontinuous , and whether which kind of situation, transmitting terminal can automatically record the message in the specified period in such a way that monitoring cycle is numbered Statistical information.
Specifically, after marking off measurement period, the tested message for including for each measurement period carries out period number When addition, it can also be subdivided into two kinds of concrete conditions.Below by taking continuous cycles as an example, both concrete conditions are explained It is bright.
Situation one, referring to fig. 2 it is found that all tested messages that measurement period includes carry this measurement period shown in -1 Corresponding period number, as shown, 50 messages that measurement period T1 includes all carry period number P1, in this way, sending End can precisely count the statistical information of the corresponding each message of T1 accordingly, and then accurately calculate performance measurements accordingly.
Situation two, referring to figure 2-3, shown in 2-4 it is found that being not that all tested messages that measurement period includes will carry Period number only can just carry period number according to the specified tested message that preset rules select.Specifically, preset rules It can embody are as follows: be located at designated position (rule or the irregular designated position determined), (be with the time according to certain intervals Interval, using message number as interval etc.), according to rules such as odd even intervals, the embodiment of the present invention can not do specific limit to this It is fixed.
In addition, also needing to add the embodiment of the present invention to specified tested message in conjunction with the specific manifestation form of cycle parameter The case where period number, is explained.As shown in Fig. 2-3,2-4, it is all made of identical preset rules and determines specified observed and predicted Text, but in conjunction with cycle parameter there is following difference in the latter two again:
Measurement period is divided according to specified tested message number in Fig. 2-3, it is found that the two is same compared with Fig. 2-1 The tested message number for including in measurement period is different, but the tested message number added with period number is identical.Such as institute in figure Show, the two is intended to that 50 tested messages is made to carry period number, but is observed and predicted in each measurement period comprising 50 in Fig. 2-1 Text, and in Fig. 2-3 in each measurement period include 100 tested messages.
Measurement period is divided according to duration is specified in Fig. 2-4, it is found that the two is in same measurement week compared with Fig. 2-1 The tested message number for including in phase is identical, but the tested message number added with period number is different.As shown in the figure, two Include 50 tested messages in each measurement period of person, but there are 50 carrying period numbers in Fig. 2-1 in each measurement period Tested message, and then have in each measurement period in Fig. 2-4 25 carry the periods number tested messages.
In addition, it is necessary to which explanation is observed and predicted for the non-continuous period to include in each measurement period When adding period number in text, above-mentioned two situations are equally existed, for details, reference can be made to introductions made above, and details are not described herein again.
3. the addition period number in the header of tested message.
The agreement that bonding apparatus is supported, the mode for making header carry period number the embodiment of the invention provides three kinds, under Face is explained one by one.
The corresponding period can be numbered (Period Number) and be added to by mode one if equipment supports IPv4 agreement The Option Option Field of header.As an example, reference can be made to the format of the header of carrying period number shown in Fig. 3-1 shows It is intended to.
The corresponding period can be numbered the Hop-by- for being added to header if equipment supports IPv6 agreement by mode two Hop hop-by-hop options extension header (HbH Header).As an example, reference can be made to the report of carrying period number shown in Fig. 3-2 The form schematic diagram of head.
The corresponding period can be numbered if equipment supports IPv6 agreement and be added to header by mode three The destination Destination option extension head (Dest Header).As an example, reference can be made to carrying week shown in Fig. 3-3 The form schematic diagram of the header of phase number.
Above-mentioned three kinds of modes can make tested message (in all tested headers or measurement period that include in measurement period The specified tested message for including) corresponding period number is carried, in comparison, the period number that Land use systems one, two add can Realize end-to-end detection, segmentation detection;End-to-end detection can be achieved in the period number that Land use systems three add, and in detection process Support without intermediate node, it is easier to dispose.
So-called end-to-end detection is it is to be understood that as the transmitting terminal of source node and as a purpose between the receiving end of node Network performance detection, that is, the statistical information that statistical information, the destination node monitored according to source node monitors, meter Calculation obtains the measurement result of network performance between the two.
At the same time, it is contemplated that the Business Stream that source node is sent may need to forward through intermediate node and just be sent to purpose Node, therefore, also using source node and intermediate node, upstream intermediate node and downstream intermediary nodes, (upstream, downstream are in Intermediate node is depending on the position on transmission path direction), intermediate node and destination node etc. combine, carry out the segmentation of network performance Detection.
That is, source node can form a detection combination with any intermediate node, source node monitoring Business Stream is started Statistical information, intermediate node monitoring Business Stream obtains connecing end statistical information, and then the corresponding network of the detection combination is calculated The performance measurements of segmentation.Alternatively, the detection combination that upstream intermediate node and downstream intermediary nodes are formed, Business Stream is via upper During trip intermediate node is forwarded to downstream intermediary nodes, upstream intermediate node can monitor Business Stream and obtain originator statistics letter Breath, downstream intermediary nodes can monitor Business Stream and obtain receiving end statistical information, and then the corresponding net of the detection combination is calculated The performance measurements of network segmentation.Alternatively, the detection combination that any intermediate node and destination node are formed, Business Stream is via centre During node is forwarded to destination node, intermediate node can monitor Business Stream and obtain originator statistical information, destination node monitoring Business Stream obtains receiving end statistical information, and then the performance measurements of the corresponding network segmentation of the detection combination are calculated.
To sum up, source node, destination node, intermediate node can be numbered according to the period carried in message, monitor industry automatically Business spreads defeated situation and obtains statistical information, and calculates network performance measurement result on this basis.It should be noted that Fig. 3-1 In header shown in~3-3, length Length is 6 bytes, and period number Period Number occupies 4 bytes, is only the present invention A kind of example when carry out scheme is introduced, specific format setting can according to the actual situation depending on, the embodiment of the present invention can to this It is not specifically limited.It is to carry the period by IP layers to number this information, however having in addition, above in examples cited When body is realized, other layers, such as MAC layer can be used also to carry period number, the embodiment of the present invention can not also do this specifically It limits.
4. monitoring Business Stream obtains statistical information.
After above three processing movement, it is sent in the Business Stream of receiving end by transmitting terminal and just carries the period and number this One information, in this way, transmitting terminal, receiving end can be numbered the statistical information for obtaining the specified measurement period based on the period, and then utilized The performance measurements of statistical information calculating network.
It should be noted that transmitting terminal, receiving end can in order to improve the flexibility that the embodiment of the present invention obtains statistical information The statistical information of each measurement period is obtained, or can also obtain the statistical information in specified measurement period as needed, the present invention Embodiment can be not specifically limited this, as long as transmitting terminal and receiving end well in advance are negotiated.
As an example, transmitting terminal obtains the statistical information in specified measurement period, it is possible to understand that are as follows: transmitting terminal obtains quilt The period number of text carrying is observed and predicted, if it is specified measurement period that period number is corresponding, is obtained by the embodiment of the present invention The statistical information in the specified measurement period;And once finding that the period numbers corresponding is the non-specified measurement period, then stops obtaining The statistical information of the non-designated measurement period.
In addition, it is necessary to explanation, network performance measurement can be presented as different measurement contents, for different measurement contents The statistical information for needing to obtain is also different, explains below with reference to measurement content to the process for obtaining statistical information It is bright.
(1) if measurement content is number of dropped packets, corresponding statistical information is exactly to send message number, and transmitting terminal can pass through system The number for carrying the tested message of same period number in the specified measurement period is counted, statistical information is obtained.
(a) it is tested message number if it is source node statistical, then may be accomplished by:
Mode one monitors that certain period number is passed for the first time in source node if cycle parameter refers to that timing is long When defeated, start a timer, (measurement starting point can be with by the measurement starting point of corresponding measurement period is numbered as the period at this time It is interpreted as the starting point of surveying range represented by measurement period, can be presented as time or message position, the embodiment of the present invention This can be not specifically limited), meanwhile, timing is reached into specified duration (i.e. above for the specified duration for determining measurement period) The Shi Zuowei measurement period measurement terminal (measurement terminal can be understood as the terminal of surveying range represented by measurement period, It can be presented as time or message position, the embodiment of the present invention can be not specifically limited this, as long as opposite with measurement starting point Should), the tested message number for carrying period number that statistics is sent in this period, the transmission report as this measurement period Literary number.
Such as, that current statistic is the corresponding measurement period T2 of period number P2, and it is specified when a length of 1s, then, in source node Start timing when being sent out the tested message of first carrying P2, while can also start counter and send message number to record. For the situation shown in Fig. 2-1, i.e., start timing when source node sends tested message 51 and count, and every sends a carrying The tested message of P2, counter just add 1, such process, count until timing stops timing when reaching 1s, and will count to get Message number realizes the embodiment of the present invention and is based on period number acquisition statistics letter as the corresponding transmission message number of measurement period T2 The process of breath.
Mode two, if cycle parameter is specified tested message number, because source node will not go out when being sent out Business Stream Therefore existing random ordering situation when monitoring that certain period number is transmitted for the first time, can only start a counter, by counting Device identifies that measurement terminal (still by taking above-mentioned transmission carries the example of the tested message of P2 as an example, is sent according to specified tested message number As soon as every transmission is held to carry a tested message of P2, counter adds 1, and such process is tested message number until counting and reaching specified When stop counting, the measurement terminal of measurement period T2 will be determined as at this time), and then obtain the period and number corresponding measurement period Transmission message number, in this way, also realize the embodiment of the present invention based on the period number obtain statistical information process.
(b) tested message number is counted if it is upstream intermediate node, then may be accomplished by:
Mode one, is tested that the mode one of message number is similar, and intermediate node monitors certain in upstream with source node statistical When period number is transmitted for the first time, start timing and count, and timing is reached to corresponding count results when specifying duration, makees The transmission message number that corresponding measurement period is numbered for the period, no longer illustrates herein.
Mode two starts counting, and will at this time when upstream intermediate node monitors that certain period number is transmitted for the first time The measurement starting point of corresponding measurement period is numbered as the period;Accordingly, in upstream, intermediate node monitors period number hair When changing, stop count, and by this time be used as the measurement terminal of the measurement period, using the count results of this period as this The transmission message number of measurement period.
Such as, that current statistic is the corresponding measurement period T2 of period number P2, then, in upstream, intermediate node is sent out It is started counting when the tested message of one carrying P2, when in upstream, intermediate node is sent out the tested message of first carrying P3 Stop counting, it is so just statistics available to obtain the corresponding transmission message number of measurement period T2.For the situation shown in Fig. 2-1, upper When trip intermediate node sends tested message 51, start counting;It is corresponding, when in upstream, intermediate node sends tested message 101, stop It only counts, and using count results when sending a upper message (i.e. tested message 100) as the corresponding transmission of measurement period T2 Message number.At the same time, it also needs to start another counter, measurement period T3 corresponding to the period number P3 monitored is carried out It counts (that is, measurement starting point by tested message 101 as measurement period T3), to obtain the corresponding transmission message of measurement period T3 Number.
It should be noted that the number of counter can be identical as the number of measurement period, that is, a counter is for recording The corresponding transmission message number of one measurement period;Alternatively, number of the number of counter fewer than measurement period, that is, pass through The mode that counter is recycled records corresponding transmission message number of each period.Such as, 5 measurement weeks are marked off from Business Stream Phase, and be configured with 3 counters, then, and the measurement period T4 that counter 1 can be used for the measurement period T1 to carrying P1, carry P4 It is counted;Counter 2 can be used for counting the measurement period T2 for carrying P2, the measurement period T5 for carrying P5;Counter 3 It can be used for counting the measurement period T3 for carrying P3.
(2) if measurement content is time delay, corresponding statistical information is exactly timestamp, and transmitting terminal can be specified by recording The sending time stamp of specified tested message in measurement period, obtains statistical information.Wherein, specifying tested message is positioned at specified The tested message for carrying period number of position.
Source node or upstream intermediate node, can be according to setting after determining the measurement starting point of some measurement period in advance It is fixed, the sending time stamp of specified tested message is recorded, and as the corresponding message sending time of the measurement period.
As a preferred embodiment, it can be recorded in when measuring starting point transmission message using measurement starting point as designated position Timestamp, for the measurement period T2 shown in Fig. 2-1, record is exactly the timestamp for sending tested message 51;Alternatively, also Any position between starting point and measurement terminal can will be measured as designated position, carry out timestamp record, the embodiment of the present invention This can be not specifically limited, as long as each end is made to consult designated position in advance, and carry out timestamp record according to negotiation.
(3) other measurement contents.Above be only by number of dropped packets, time delay two measurement contents for carry out for example, In addition to this, transmitting terminal can also obtain other statistics letters based on the Business Stream for carrying period number of the embodiment of the present invention, monitoring Breath, and the other statistical informations monitored with receiving end cooperate, and obtain the network measure knot for other measurement contents Fruit no longer illustrates herein.
5. calculating network performance measurement result according to statistical information.
It, can be based on the statistics of the embodiment of the present invention acquisition when using passivity measurement method measurement network performance Information calculates measurement result.Specifically, transmitting terminal carries the transmission situation of the Business Stream of period number by monitoring, is started Statistical information, accordingly, receiving end carry the statistical information of the Business Stream of period number by monitoring, and receiving end statistics can be obtained Information (for details, reference can be made to introducing below for scheme shown in Fig. 4, wouldn't illustrate) herein, in this way, net can be calculated The measurement result of network performance (according to actual needs, can be presented as the internetworking of network performance measurement result end to end or segmentation It is capable of measuring result).
When transmitting terminal is counted, the statistical information of each measurement period at least one measurement period can be counted, The statistical information of the part measurement period at least one measurement period can also be counted.Such as, it is assumed that there are 3 measurement weeks altogether Phase, then transmitting terminal can all count the statistical information of this 3 measurement periods, can also count some of them specified measurement week The statistical information of phase.
Specifically, network performance measurement result can be transmitting terminal and be calculated, at this time, it is necessary to receiving end be united by receiving end Meter information feeds back to transmitting terminal, uses when calculating measurement result for transmitting terminal.Alternatively, network performance measurement result can also be and connect Receiving end is calculated, at this time, it may be necessary to which transmitting terminal will start, statistical information feeds back to receiving end, when calculating measurement result for receiving end It uses.Alternatively, network performance measurement result can also be that external equipment is calculated, at this time, it may be necessary to which transmitting terminal counts originator Receiving end statistical information is fed back to external equipment by information, receiving end respectively, is used when calculating measurement result for external equipment.It needs Illustrate, external equipment can be presented as a special equipment, or can also be presented as control equipment mentioned above, the present invention Embodiment to main body, the external equipment etc. for calculating measurement result and without limitation, specifically can be depending on practical situations.
It introduces in conjunction with made above it is found that this period number carried message is come by way of characterizing measurement period, It can make the automatic easy clear interval range of transmitting terminal, receiving end, to depend on its except Business Stream without such as prior art Its message (e.g., being inserted into the OAM boundary message of Business Stream) carries out interval division, in this way, can reduce because of insertion message loss etc. Statistical information caused by abnormal conditions obtains a possibility that inaccuracy, and then improves and calculate the accurate of network performance measurement result Property.Meanwhile the embodiment of the present invention does not need to be inserted into other messages in Business Stream, also just there is no occupy Business Stream bandwidth The problem of, it can effectively ensure that the valid data transmission efficiency of Business Stream.In addition, also knowing that the present invention is real by introduction made above That applies the surveying range that measurement period indicates in a scheme depends mainly on the size of cycle parameter, big needing to adjust surveying range Hour, the value of cycle parameter need to be only modified accordingly, realize process simple and flexible, and will not influence acquisition statistical information Accuracy, calculate accuracy, the effective speed of Business Stream etc. of measurement result.
Corresponding with the statistical information acquisition methods of transmitting terminal above, the embodiment of the invention also provides a kind of receiving ends Statistical information acquisition methods, for details, reference can be made to flow charts shown in Fig. 4, it may include following steps:
Step 201, receiving end receives the tested message that transmitting terminal is sent, and period number is carried in the tested message, The period number is corresponding with measurement period, and the tested message for including in the measurement period carries identical period number.
Step 202, the receiving end obtains the statistical information of the measurement period, the statistics based on period number Information is used to calculate the performance measurements for the network for carrying the tested message.
Period number is added in the tested message of receiving end to be sent to by transmitting terminal according to introduction made above, this Sample, receiving end can obtain the statistical information of message during receiving tested message in such a way that monitoring cycle is numbered, In case being used when subsequent calculating network performance measurement result.It should be noted that the tested message in the embodiment of the present invention It can be data message, be also possible to control management message.Multiple tested messages form a Business Stream.The embodiment of the present invention can The concrete type of tested message is not limited.
The process of receiving end read cycle number, identification monitoring section, acquisition statistical information is explained below.
1. reading the period number information carried in header.
Corresponding with the mode that transmitting terminal above is numbered to the header addition period, the embodiment of the invention provides three kinds of readings The mode for taking the period to number, is explained one by one below.
Mode one, if equipment supports IPv4 agreement, and transmitting terminal is numbered according to the mode one above addition period, receiving end Period number can be then obtained by way of reading the Period Number in Option Option Field.
Mode two, if equipment supports IPv6 agreement, and transmitting terminal is numbered according to the mode two above addition period, receiving end Period number can be then obtained by way of reading the Period Number in Hop-by-hop extension header.
Mode three, if equipment supports IPv6 agreement, and transmitting terminal is numbered according to the mode three above addition period, receiving end Node can then obtain period number by way of reading the Period Number in Destination extension header as a purpose.
Such as introduction made above, end-to-end detection, segmentation detection is can be achieved in the period number that Land use systems one, two are read, Corresponding to this, the receiving end in the embodiment of the present invention can be presented as intermediate node or destination node;The week that Land use systems three are read End-to-end detection can be achieved in phase number, corresponds to this, destination node is then presented as in the receiving end in the embodiment of the present invention.
It should be noted that if transmitting terminal carries period number by other layers except IP layers, as long as receiving end exists Corresponding position read cycle number, no longer illustrates herein.
2. numbering identification monitoring section according to the period.
When receiving end receives the Business Stream for carrying period number of transmitting terminal transmission, it can be known according to period number The monitoring section that other measurement period indicates, this just needs receiving end that can specify the measurement starting point of each measurement period and corresponding Measure terminal.Determining measurement starting point, the process of measurement terminal are explained separately below.
(1) mode of measurement starting point is determined.
Specifically, receiving end can be according to the tested of the corresponding period number of the first carrying measurement period received Message identifies the measurement starting point of the measurement period, can be presented as following several implementations:
Mode one, receiving end receives the Business Stream that transmitting terminal is sent, and judges whether carry in the message being currently received There is period number, if not carrying period number, normally handles the Business Stream received;If carrying period number, Continue to judge whether the message is the message for carrying period number that this receiving end receives for the first time, and according to judging result according to A, scheme shown in b continues to determine measurement starting point:
(a) if it is, the clear measurement starting point for numbering corresponding measurement period for the period at this time.As shown in Fig. 2-1, Receiving end receives tested message 1, is judged that the message carries period number P1, and is received first carrying period number Message, therefore tested message 1 can be determined as to the measurement starting point of the corresponding measurement period T1 of P1.
(b) if it is not, then judging that the period numbers the period added in the message whether numbered with the previous carrying period Number it is identical, and according to judging result according to scheme shown in b1, b2 continue determine measurement starting point:
(b1) if it is different, then the clear measurement starting point for numbering corresponding measurement period for the period at this time.As Fig. 2-2 institute Show, receiving end receives the tested message 53 for carrying period number P2, is judged that the carrying period has been received before this compiles The tested message 50 of number P1, and the number of period entrained by the two is not identical, therefore it is corresponding tested message 53 can be determined as P2 The measurement starting point of measurement period T2, accordingly, the message 50 for carrying period number P1 are then confirmed as the measurement of measurement period T1 Terminal.
(b2) if identical, clear be not the measurement starting point for numbering corresponding measurement period the period at this time.Such as figure Shown in 2-3, receiving end receives the tested message 3 for carrying period number P1, is judged that carrying week has been received before this The tested message 1 of phase number P1, and the number of period entrained by the two is identical, therefore can determine that tested message 3 is not measurement period The measurement starting point of T1.
By the done introduction of mode one and examples cited it is found that it is suitable for continuous measurement period, the non-continuous period, All tested messages in measurement period carry period number, the specified tested message in measurement period carries period number, Etc. various situations, no longer it is illustrated one by one herein.
It should be noted that aforesaid way one is primarily directed to transmitting terminal, receiving end does not negotiate measurement period stroke in advance Point mode, and the case where there are at least two measurement periods, the case where for a measurement period is only existed, the embodiment of the present invention The mode of middle determining measurement starting point can embody are as follows: the message for the number of first carrying period for receiving receiving end is determined as surveying Measure the measurement starting point in period.
In addition, it is necessary to which explanation, does not negotiate the scene of measurement period division mode in advance in transmitting terminal, receiving end, connects Receiving end can automatically identify measurement starting point according to done introduction at mode one, but, if the two well in advance is negotiated, that , receiving end then can the measurement starting point of the easy each measurement period of identification in the following manner automatically.
Mode two, if transmitting terminal, receiving end negotiate to divide continuous measurement from Business Stream according to shown in Fig. 2-1 in advance Period, it is determined that measure the mode of starting point are as follows:
(a) for the message for receiving carrying period number for the first time for the case where, first measurement week can be determined it as The measurement starting point of phase.Such as, the tested message 1 for carrying period number P1 is received, and it is received first carrying period number Message, therefore tested message 1 can be determined as to the measurement starting point of measurement period T1.
(b) for for non-the case where receiving the message for carrying period number for the first time, it can will number in the period and change When be determined as variation after the period number the measurement starting point in corresponding tested period.Such as, it receives and carries the tested of period number P2 Message 51, and the period number that received tested message 50 carries before it is P1, i.e. period number is changed, therefore can Tested message 51 is determined as to the measurement starting point of measurement period T2.
Mode three, if transmitting terminal, receiving end negotiate to divide discrete survey from Business Stream according to shown in Fig. 2-2 in advance Measure the period, it is determined that measure the mode of starting point are as follows:
(a) for the message for receiving carrying period number for the first time it for the case where, determines and surveys with situation (a) in mode two The process for measuring starting point is identical, and details are not described herein again.
(b) it for for non-the case where receiving the message for carrying period number for the first time, is determined with situation (b) in mode two The process for measuring starting point is similar, the difference is that the period, which numbers, certain interval (interval between changed two messages It can be presented as several messages or a period of time, the embodiment of the present invention can be not specifically limited, as long as transmitting terminal, receiving end are assisted in advance Quotient is good).Such as, the tested message 53 for carrying period number P2 is received, and the tested message 50 of 2 messages with interval is taken The period number of band is P1, i.e. period number is changed, therefore tested message 53 can be determined as to the measurement of measurement period T2 Starting point.
It should be noted that for making the whole in each period under continuous measurement period shown in Fig. 2-3,2-4 or specifying tested Message carries period number, or compiles for the whole for making each period under the non-continuous period or specified tested message carrying period Number, it, can be according to the survey of above-mentioned two situations automatic identification measurement period as long as negotiating for transmitting terminal, receiving end well in advance Starting point is measured, detailed process can refer to introduction made above, no longer illustrate one by one herein.
(2) mode of measurement terminal is determined.
Mode one, receiving end obtain transmitting terminal and divide the cycle parameter used when measurement period, and it is (same such as to obtain specified duration The mode that transmitting terminal obtains cycle parameter is identical, and cycle parameter can be pre-configured to be in receiving end, or can also be when needed by outside It is input to receiving end, the embodiment of the present invention can be not specifically limited this), and measurement is being identified according to mode described above It is whole as the measurement of the measurement period when starting a timer, and timing being reached specified duration after the measurement starting point in period Point.As shown in Fig. 2-1, if a length of 1s when specified, identify that the measurement starting point of measurement period T2 (carries period volume from receiving end The tested message 51 of number P2) when, start timing, until stopping when timing reaches 1s, tested message corresponding at this time is determined as The measurement starting point of measurement period T2.
Mode two can also be according to week after receiving end identifies the measurement starting point of measurement period according to mode described above The phase variation of number identifies measurement terminal.As shown in Fig. 2-1, identify that the measurement starting point of measurement period T1 (is taken from receiving end Tested message 1 with period number P1) when, start to judge whether the period carried in received tested message again number becomes Change, determining that the period numbers from P1 variation when receiving tested message 51 is P2, therefore can carry period number P1's for upper one Tested message 50 is determined as the measurement terminal of measurement period T1, while the measurement that tested message 51 is determined as measurement period T2 being risen Point.
It should be noted that the scheme numbered above from a kind of number variation of period for another period, suitable for having The case where at least two measurement periods, the case where for only one measurement period, numbers in the embodiment of the present invention according to the period Variation identify that measurement terminal can embody are as follows: measurement terminal identified according to the variation of the rule of addition period number.Under Face combines two examples that identification process is explained.
As shown in fig. 5-1, a measurement period T1 is only existed in Business Stream, and by as shown in the figure it is found that measurement period T1 In each of tested message be added with period number P1, i.e. the rule of addition period number is that continuous addition connects corresponding to this The mode of receiving end identification measurement terminal are as follows: self-identifying goes out to measure starting point when being tested message 1, starts judgement received tested message again In whether carry period number P1, determine when receiving tested message 51 its do not carry the period number, then it is believed that the period The rule of number is changed, and the tested message 50 that upper one carries period number P1 can be determined as to the survey of measurement period T1 Measure terminal.
A measurement period T1 is only existed as shown in Fig. 5-2, in Business Stream, and by as shown in the figure it is found that measurement period T1 The rule of middle addition period number are as follows: the addition period number into the tested message for being located at odd positions is reported at interval of one Text adds a period number, corresponds to this, the mode of receiving end identification measurement terminal are as follows: self-identifying, which goes out to measure starting point, is observed and predicted When text 1, starting judgement, whether the received message for carrying period number P1 meets above-mentioned rule again, when receiving tested message 51 When determine its do not carry the period number, then it is believed that the period number rule changed, a upper carrying period can be compiled The tested message 49 of number P1 is determined as the measurement terminal of measurement period T1.
It should be noted that being only the act carried out in conjunction with two kinds of relatively simple rules to measurement terminal identification process above Example explanation, the addition that the embodiment of the present invention numbers the period is regular and is not specifically limited, as long as the addition with certain rule Above scheme identification measurement terminal can be used in mode.
Mode three, receiving end may also be combined with the variation of specified duration and period number to identify measurement terminal.It presses receiving end After the measurement starting point for identifying measurement period according to mode described above, start a timer, and it is specified to judge that timing reaches Before duration, whether period number is changed, and in case of variation, is then measured eventually with the variation of period number to identify Point, and stop timing;If do not changed, timing is waited to reach specified duration, and identify measurement using specified duration Terminal.When leading to not the variation identification measurement terminal numbered by the period, it can thus pass through in tested message abnormal transmission Specified duration terminates the monitoring process for the measurement period.
Mode four, in order to solve the problems, such as that statistical information caused by transmitting because of packet out-ordering obtains inaccuracy, the present invention is real Applying example can also provide a kind of scheme for determining fault-tolerant measurement terminal on the basis of mode one, two, three above, specifically: it receives One permission lag parameter of end setting, and Land use systems one or two or the measurement terminal of three identifications determine fault-tolerant measurement terminal=survey Measure terminal+permission lag parameter, wherein allowing lag parameter that can be presented as allows to lag duration or allow to lag message number. That is, waiting a Duan Shichang or several messages after arrival pattern one or two or the three measurement terminals determined again, and will survey Statistical information of the amount starting point to the statistical information monitored between fault-tolerant measurement terminal, as the correspondence monitoring cycle.
As shown in fig. 6, the tested message 49,50 for carrying period number P1 sends random ordering in transmission process, the two is being taken Receiving end is transmitted to after tested message 51 with period number P2, in this way, the measurement period T1 determined according to mode one Measuring terminal may be tested message 48, can be by out-of-order transfer if continuing waiting for one on this basis allows to lag duration Message 49,50 count in the statistical information of measurement period T1, improve the embodiment of the present invention obtain statistical information it is accurate Property.
3. monitoring Business Stream obtains statistical information.
After above-mentioned two processing movement, receiving end can get the statistical information in specified measurement period.Because counting When calculating the performance measurements of network, the originator statistical information and receiving end statistical information for needing to be matched each other, therefore, receiving end The statistical information of each measurement period can be obtained according to the preparatory negotiation with transmitting terminal, can also only obtain specified survey as needed The statistical information in period is measured, the embodiment of the present invention can be not specifically limited this.
As an example, receiving end obtains the statistical information in specified measurement period, it is possible to understand that are as follows: receiving end obtains and connects The period number that the tested message received carries, if it is specified measurement period that period number is corresponding, by the embodiment of the present invention Scheme obtains the statistical information in specified measurement period;And once finding that the period numbers corresponding is the non-specified measurement period, then Stop obtaining the statistical information of the non-designated measurement period.
It should be noted that network performance measurement can be presented as different measurement contents, needed for different measurement contents The statistical information of acquisition is also different, and the process for obtaining statistical information is explained below with reference to measurement content.
(1) if measurement content is number of dropped packets, corresponding statistical information is to receive message number, and receiving end can pass through statistics The number that the tested message of same period number is carried in the specified measurement period, obtains statistical information.
During receiving end receives the Business Stream of transmitting terminal transmission, each measurement week can be determined by mode described above The measurement starting point of phase acts the measurement that the tested message 51 for carrying period number P2 is determined as measurement period T2 as shown in Fig. 2-1 After point, start timer and counter, as soon as and often receive the tested message for carrying period number P2, counter adds 1, such as This process, until (the measurement terminal for reaching the measurement period) stops timing counting when timing reaches specified duration, and will meter The message number that number obtains is realized the embodiment of the present invention and is obtained based on period number as the corresponding reception message number of measurement period T2 Take the process of statistical information.
Alternatively, after the measurement starting point for determining measurement period T2, starting a counter, and according to week in above-mentioned example Phase number variation in measurement starting point and measures the message number counted between terminal as measurement to determine measurement terminal, using counter The corresponding reception message number of cycle T 2.
Alternatively, receiving end is numbered also using the mode three of above-identified measurement terminal by specified duration and period Counter in measurement starting point and is measured the message number counted between terminal as measurement period to identify measurement terminal by variation Corresponding reception message number.
Again alternatively, also using the mode four of above-identified measurement terminal fault-tolerant measurement terminal is arranged, and will meter in receiving end The message number that number device counts between measurement starting point and fault-tolerant measurement terminal is as the corresponding reception message number of measurement period.This hair Bright embodiment measures the mode of terminal to identification and is not specifically limited, and selects suitable mode in combination with practical application scene Identification measurement terminal.
Below in conjunction with the example of lifted out-of-order transfer above, statistical information is improved to the embodiment of the present invention and obtains accuracy Process be explained.
If receiving end records the reception message number of measurement period T1 using counter 1, is received at it and carry period volume The message 48 of number P1 after carrying the message 51 of period number P2, can start counter 2 to record the corresponding reception of measurement period T2 Message number, at the same time, counter 1 can't stop counting immediately, but continue waiting for receiving the message for carrying P1, and judge Currently whether meet permission lag parameter, if it is satisfied, stopping counting again, and using current record result as measurement period T1 Corresponding reception message number;If do not met, the process that is to be received and judging such as continue to execute.As shown in fig. 6, in counter During 1 waiting is received, and two messages 49,50 are received, and the period number carried through both judgements is P1, therefore can By the two counting messages into the corresponding reception message number of measurement period T1, in this way, just solving packet out-ordering transmission causes Statistical information obtain inaccuracy problem.
(2) if measurement content is time delay, corresponding statistical information is timestamp, and receiving end can be by recording specified survey The receiving time stamp for measuring the specified tested message in the period, obtains statistical information.Wherein, specifying tested message is positioned at specific bit That sets carries the tested message of period number.
Receiving end can be remembered after determining the measurement starting point of some measurement period according to the preparatory negotiation with transmitting terminal The receiving time stamp of the specified tested message of record, and as the corresponding message receiving time of the measurement period.
As a preferred embodiment, it can be recorded in measurement starting point using the measurement starting point of measurement period as designated position and connect Timestamp when receiving text, for the measurement period T2 shown in Fig. 2-1, record is exactly to receive the timestamp for being tested message 51; Alternatively, can will also measure any position between starting point and measurement terminal as designated position, timestamp record, the present invention are carried out Embodiment can be not specifically limited this, as long as transmitting terminal, receiving end is made to consult designated position in advance, and carry out according to negotiation Timestamp record.
(3) other measurement contents.Above be only by number of dropped packets, time delay two measurement contents for carry out for example, In addition to this, receiving end can also obtain other statistics letters based on the Business Stream for carrying period number of the embodiment of the present invention, monitoring Breath, and the other statistical informations monitored with transmitting terminal cooperate, and obtain the network measure knot for other measurement contents Fruit no longer illustrates herein.
4. calculating network performance measurement result according to statistical information.
It, can be based on the statistics of the embodiment of the present invention acquisition when using passivity measurement method measurement network performance Information calculates measurement result.Such as introduction made above, network performance measurement result can be calculated by transmitting terminal and also by Receiving end is calculated or can also be calculated by external equipment, and the embodiment of the present invention is to the main body for calculating measurement result Can without limitation, it specifically can be depending on practical situations.In addition, it is necessary to which explanation, all using each measurement is monitored The statistical information that phase obtains calculates network performance measurement as a result, the measurement period sampled out can also be utilized by sample mode Statistical information calculates network performance measurement as a result, the embodiment of the present invention can also be not specifically limited this.
It introduces in conjunction with made above it is found that this period number carried message is come by way of characterizing measurement period, It can make the clear interval range that receiving end is automatic, easy, and statistical information is obtained based on this, reduce the prior art because insertion is reported A possibility that statistical information caused by the abnormal conditions such as text loss obtains inaccuracy, and then improve and calculate network performance measurement result Accuracy.Meanwhile statistical information is obtained using the embodiment of the present invention, it can also simplify receiving end design, reduction obtained Extraneous intervention and cooperation in journey.
With method shown in Fig. 1 correspondingly, the embodiment of the invention also provides it is a kind of send end side statistical information acquisition Device, schematic diagram shown in Figure 7, described device can include:
Setting unit 301, for a corresponding period to be arranged for each measurement period at least one measurement period Number;
Adding unit 302, the period number for the setting unit to be arranged are added in corresponding measurement period In the header for the tested message for including;
Transmission unit 303, for sending the tested message for carrying the period number to receiving end;
Obtaining unit 304, for being obtained based on period number when the transmission unit sends the tested message The statistical information in the specified measurement period at least one described measurement period, the statistical information carry the quilt for calculating Observe and predict the performance measurements of the network of text.
Preferably, the setting unit is also used to before the measurement period is arranged, divided according to cycle parameter described in Measurement period, the cycle parameter are specified duration or specified tested message number.Specifically, cycle parameter can be pre-configured to be in transmission It in end, or can also be input from the outside when needed, the embodiment of the present invention can be not specifically limited this.
Preferably, the adding unit, specifically for period number to be added in corresponding measurement period and includes In the header of all tested messages;Alternatively, the adding unit, specifically for period number is added to corresponding measurement week Specifying of including in phase is tested in the header of message, and the specified tested message is to measure week from the correspondence according to preset rules It is selected in all tested messages for including in phase.
The embodiment of the present invention is mainly by period number come demarcation interval, in this way, the message in Business Stream need to be made to carry Period number, and according to different measurement periods, the period number that message carries is also different.Specifically, the present invention is implemented Period number can be carried in example scheme by header, corresponds to this, following three kinds is provided and adds period number into header Mode:
The adding unit, specifically for period number to be added to the hop-by-hop options extension header or mesh of ipv6 header Ground option extension head;Alternatively, the adding unit, specifically for period number to be added to the option word of IPV4 header Section.
After so that tested message is carried period number, the passivity measuring device of transmitting terminal can be by the industry comprising being tested message Business is streamed to receiving end, and monitoring obtains the statistical information in specified measurement period simultaneously.In conjunction with different network measure contents, Measuring device will obtain different statistical informations, and be directed to different statistical informations, and the constituted mode of obtaining unit again can be Difference is below illustrated this.
If measurement content is number of dropped packets, statistical information, which can be presented as, sends message number, and corresponding obtaining unit can be specific For counting the number for carrying the tested message of same period number in the specified measurement period.
If measurement content is time delay, statistical information can be presented as the timestamp for sending message, and corresponding obtaining unit can Specifically for recording the sending time stamp of the specified tested message in the specified measurement period, the specified tested message is position The tested message for carrying period number in designated position.
With method shown in Fig. 4 correspondingly, the embodiment of the invention also provides it is a kind of receive end side statistical information acquisition Device, schematic diagram shown in Figure 8, described device can include:
Receiving unit 401 carries period volume for receiving the tested message of transmitting terminal transmission in the tested message Number, the period number is corresponding with measurement period, and the tested message for including in the measurement period carries identical period volume Number;
Obtaining unit 402, for obtaining the statistical information of the measurement period, the statistics letter based on period number Breath is for calculating the performance measurements for the network for carrying the tested message.
The tested message for carrying period number is sent to by the statistical information acquisition device for sending end side receives end side Statistical information acquisition device, receiving end can also be numbered according to the period carried in message, automatic identification transmitting terminal measurement period, and Obtain the statistical information in specified measurement period.In conjunction with different network measure contents, measuring device will monitor different statistics letters Breath, and it is directed to different statistical informations, the constituted mode of acquiring unit will be different again, this be illustrated below.
If measurement content is number of dropped packets, statistical information, which can be presented as, receives message number, corresponding acquiring unit can include: Subelement is obtained, for counting the number for carrying the tested message of same period number in the measurement period.
Further, the obtaining unit may also include that recognition unit, for counting the quilt in the acquisition subelement Before the number for observing and predicting text, the measurement period is identified according to the variation of period number;And/or specified duration is obtained, and according to The specified duration identifies the measurement period.
As a preferred embodiment, (can be presented as allows to lag duration or allows the settable permission lag parameter in receiving end Lag message number etc.), then acquiring unit can include:
Adjustment unit, for adjusting the measurement period using the permission lag parameter, the permission lag parameter is Allow to lag duration or allows to lag tested message number;
Subelement is obtained, for counting the quilt for carrying same period number in adjustment unit measurement period adjusted Observe and predict the number of text.
If measurement content is time delay, statistical information can be presented as the timestamp for receiving message, and corresponding acquiring unit can It include: recording unit, for recording the receiving time stamp of the specified tested message in the measurement period, described specify is observed and predicted The tested message that text is numbered for the carrying period positioned at designated position, and the designated position and transmitting terminal record sending time stamp Designated position it is identical.
Further, the embodiment of the invention also provides the hardware of statistical information acquisition device compositions.It is shown in Figure 9 to show It is intended to, it may include at least one processor (such as CPU), at least one network interface or other communication interfaces, memory, and At least one communication bus, for realizing the connection communication between these devices.Processor is used to execute to store in memory Executable module, such as computer program.Memory may include high-speed random access memory (RAM:Random Access Memory), it is also possible to further include non-labile memory (non-volatile memory), a for example, at least disk is deposited Reservoir.The system gateway and at least one other network element are realized by least one network interface (can be wired or wireless) Between communication connection, internet, wide area network, local network, Metropolitan Area Network (MAN) etc. can be used.
Specifically, the schematic diagram shown in Fig. 9 for realizing the statistical information acquisition device for sending end side function when, storage Device stores program instruction, and processor is used to execute following steps according to these program instructions:
One corresponding period number is set for each measurement period at least one measurement period, and by the period Number is added in corresponding measurement period in the header for the tested message for including;
The tested message for carrying the period number is sent to receiving end, and described extremely based on period number acquisition The statistical information in the specified measurement period in a few measurement period, the statistical information carry the tested message for calculating Network performance measurements.
As an example, measurement period is divided according to cycle parameter, and the cycle parameter is specified duration or refers to Surely it is tested message number.
Specifically, period number can be added to include in corresponding measurement period tested by processor in the following manner In the header of message:
Period number is added in the header for all tested messages for including in corresponding measurement period;Alternatively, will The period number is added in the header for the specified tested message for including in corresponding measurement period, and the specified tested message is It is selected from all tested messages for including in the corresponding measurement period according to preset rules.
Specifically, period number can be added to include in corresponding measurement period tested by processor in the following manner In the header of message:
Period number is added to the hop-by-hop options extension header or destination option extension head of ipv6 header;Alternatively, Period number is added to the Option Field of IPV4 header.
Specifically, the statistical information is message number, and processor can obtain the specified measurement period in the following manner Statistical information: count in the specified measurement period carry same period number tested message number.
Specifically, the statistical information is timestamp, and processor can obtain the specified measurement period in the following manner Statistical information: recording the sending time stamp of the specified tested message in the specified measurement period, and the specified tested message is The tested message for carrying period number positioned at designated position.
Specifically, the schematic diagram shown in Fig. 9 for realizing the statistical information acquisition device for receiving end side function when, storage Device stores program instruction, and processor is used to execute following steps according to these program instructions:
Receive the tested message that transmitting terminal is sent, carry period number in the tested message, the period number with Measurement period is corresponding, and the tested message for including in the measurement period carries identical period number;
The statistical information of the measurement period is obtained based on period number, the statistical information is for calculating carrying institute State the performance measurements of the network of tested message.
Specifically, the statistical information is message number, and processor can obtain the statistics letter of measurement period in the following manner Breath: the number that the tested message of same period number is carried in the measurement period is counted.
As a preferred embodiment, processor is counting the tested message that same period number is carried in the measurement period Number before, be also used to execute:
The measurement is identified according to the tested message of the corresponding period number of the first carrying measurement period received The measurement starting point in period;
The measurement terminal of the measurement period is identified according to the variation of the corresponding period number of the measurement period;And/or Specified duration is obtained, and identifies the measurement of the measurement period according to the measurement starting point of the measurement period and the specified duration Terminal.
Specifically, the statistical information is message number, and receiving end is provided with permission lag parameter, processor can by with The statistical information of under type acquisition measurement period: the measurement period, and statistical adjustment are adjusted using the permission lag parameter The number of the tested message of same period number is carried in measurement period afterwards.Wherein, the permission lag parameter is that permission is stagnant Duration or allow to lag tested message number afterwards.
Specifically, the statistical information is timestamp, and processor can obtain the statistical information of measurement period in the following manner: The receiving time stamp of the specified tested message in the measurement period is recorded, the specified tested message is positioned at designated position The tested message of period number is carried, and the designated position is identical as the designated position of transmitting terminal record sending time stamp.
The present invention program can describe in the general context of computer-executable instructions executed by a computer, such as Program unit.Generally, program unit include routines performing specific tasks or implementing specific abstract data types, it is program, right As, component, data structure etc..The present invention program can also be practiced in a distributed computing environment, in these distributed computings In environment, by executing task by the connected remote processing devices of communication network.In a distributed computing environment, program Unit can be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and the highlights of each of the examples are differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description Unit may or may not be physically separated, component shown as a unit may or may not be Physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needs Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying In the case where creative work, it can understand and implement.
The embodiment of the present invention has been described in detail above, and specific embodiment used herein carries out the present invention It illustrates, the above description of the embodiments is only used to help understand the method and apparatus of the present invention;Meanwhile for the one of this field As technical staff, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, to sum up institute It states, the contents of this specification are not to be construed as limiting the invention.

Claims (23)

1. a kind of statistical information acquisition methods, which is characterized in that the described method includes:
Transmitting terminal is that each measurement period at least one measurement period is arranged corresponding period number, and by the week Phase number is added in corresponding measurement period in the header for the tested message for including, a cycle number unique identification one measurement Period;The tested message is service message;
The transmitting terminal sends the tested message for carrying the period number to receiving end, and is obtained based on period number The statistical information in the specified measurement period at least one described measurement period, the statistical information carry the quilt for calculating Observe and predict the performance measurements of the network of text.
2. the method according to claim 1, wherein the measurement period is divided according to cycle parameter, institute Stating cycle parameter is specified duration or specified tested message number.
3. method according to claim 1 or 2, which is characterized in that described that period number is added to corresponding measurement In the header for the tested message for including in period, comprising:
Period number is added in the header for all tested messages for including in corresponding measurement period by the transmitting terminal;Or Person,
Period number is added in the header for the specified tested message for including in corresponding measurement period by the transmitting terminal, institute Stating specified tested message is to be selected from all tested messages for including in the corresponding measurement period according to preset rules.
4. method according to claim 1 or 2, which is characterized in that described that period number is added to corresponding measurement In the header for the tested message for including in period, include:
Period number is added to the hop-by-hop options extension header or destination option extension head of ipv6 header by the transmitting terminal; Alternatively,
Period number is added to the Option Field of IPV4 header by the transmitting terminal.
5. method according to claim 1 or 2, which is characterized in that the statistical information is message number, then described to be based on The period number obtains the statistical information in the specified measurement period at least one described measurement period, comprising:
The transmitting terminal counts the number that the tested message of same period number is carried in the specified measurement period.
6. method according to claim 1 or 2, which is characterized in that the statistical information is timestamp, then described to be based on institute State the statistical information in the specified measurement period that period number obtains at least one described measurement period, comprising:
The transmitting terminal records the sending time stamp of the specified tested message in the specified measurement period, and described specify is observed and predicted Text is positioned at the tested message for carrying period number of designated position.
7. a kind of statistical information acquisition methods, which is characterized in that the described method includes:
Receiving end receives the tested message that transmitting terminal is sent, and period number, the period number are carried in the tested message Corresponding with measurement period, the tested message for including in the measurement period carries identical period number, a cycle number One measurement period of unique identification;The tested message is service message;
The receiving end obtains the statistical information of the measurement period based on period number, and the statistical information is for calculating Carry the performance measurements of the network of the tested message.
8. the method according to the description of claim 7 is characterized in that the statistical information is message number, the then receiving end The statistical information of the measurement period is obtained based on period number, comprising:
The receiving end counts the number that the tested message of same period number is carried in the measurement period.
9. according to the method described in claim 8, carrying phase it is characterized in that, counting in the measurement period in the receiving end Before number with the tested message of period number, further includes:
The receiving end identifies institute according to the tested message of the corresponding period number of the first carrying measurement period received State the measurement starting point of measurement period;
The receiving end identifies the measurement terminal of the measurement period according to the variation of the corresponding period number of the measurement period; And/or the receiving end obtains specified duration, and identifies institute according to the measurement starting point of the measurement period and the specified duration State the measurement terminal of measurement period.
10. the method according to the description of claim 7 is characterized in that the statistical information is message number, and receiving end is arranged There is permission lag parameter, then the receiving end obtains the statistical information of the measurement period based on period number, comprising:
The receiving end adjusts the measurement period using the permission lag parameter, and takes in the measurement period after statistical adjustment The number of tested message with same period number.
11. according to the method described in claim 10, it is characterized in that, the permission lag parameter is to allow to lag duration or permit Perhaps tested message number is lagged.
12. according to the described in any item methods of claim 7~11, which is characterized in that the statistical information is timestamp, then institute State the statistical information that receiving end obtains the measurement period based on period number, comprising:
The receiving end records the receiving time stamp of the specified tested message in the measurement period, and the specified tested message is The tested message for carrying period number positioned at designated position, and the finger of the designated position and transmitting terminal record sending time stamp Positioning is set identical.
13. a kind of statistical information acquisition device, which is characterized in that described device includes:
Setting unit, for being numbered for one corresponding period of each measurement period setting at least one measurement period, one A one measurement period of period number unique identification;
Adding unit, the period number for the setting unit to be arranged are added to the quilt for including in corresponding measurement period In the header for observing and predicting text;The tested message is service message;
Transmission unit, for sending the tested message for carrying the period number to receiving end;
Obtaining unit, for it is described extremely to number acquisition based on the period when the transmission unit sends the tested message The statistical information in the specified measurement period in a few measurement period, the statistical information carry the tested message for calculating Network performance measurements.
14. device according to claim 13, which is characterized in that
The setting unit is also used to before the measurement period is arranged, and divides the measurement period, institute according to cycle parameter Stating cycle parameter is specified duration or specified tested message number.
15. device described in 3 or 14 according to claim 1, which is characterized in that
The adding unit, specifically for period number is added to all tested messages for including in corresponding measurement period Header in;Alternatively,
The adding unit, specifically for period number to be added to the specified tested message for including in corresponding measurement period Header in, the specified tested message is all tested messages for including in the corresponding measurement period according to preset rules In select.
16. device described in 3 or 14 according to claim 1, which is characterized in that
The adding unit, specifically for period number to be added to hop-by-hop options extension header or the destination of ipv6 header Option extension head;Alternatively,
The adding unit, specifically for period number to be added to the Option Field of IPV4 header.
17. device described in 3 or 14 according to claim 1, which is characterized in that the statistical information is message number, then
The obtaining unit carries the number of the tested message of same period number specifically for counting in the specified measurement period Mesh.
18. device described in 3 or 14 according to claim 1, which is characterized in that the statistical information is timestamp, then
The obtaining unit, the sending time specifically for recording the specified tested message in the specified measurement period are stabbed, institute Stating specified tested message is the tested message for carrying period number positioned at designated position.
19. a kind of statistical information acquisition device, which is characterized in that described device includes:
Receiving unit carries period number, the week for receiving the tested message of transmitting terminal transmission in the tested message Phase number is corresponding with measurement period, and the tested message for including in the measurement period carries identical period number, a week One measurement period of phase number unique identification;The tested message is service message;
Obtaining unit, for obtaining the statistical information of the measurement period based on period number, the statistical information is used for Calculate the performance measurements for carrying the network of the tested message.
20. device according to claim 19, which is characterized in that the statistical information is message number, the then acquisition Unit includes:
Subelement is obtained, for counting the number for carrying the tested message of same period number in the measurement period.
21. device according to claim 20, which is characterized in that the obtaining unit further include:
Starting point recognition unit, for the tested message according to the corresponding period number of the first carrying measurement period received Identify the measurement starting point of the measurement period;
Terminal recognition unit, for identifying the survey of the measurement period according to the variation of the corresponding period number of the measurement period Measure terminal;And/or receiving end obtains specified duration, and is known according to the measurement starting point of the measurement period and the specified duration The measurement terminal of the not described measurement period.
22. device according to claim 19, which is characterized in that the statistical information is message number, and is provided with fair Perhaps lag parameter, then the obtaining unit include:
Adjustment unit, for adjusting the measurement period using the permission lag parameter, the permission lag parameter is to allow Lag duration allows to lag tested message number;
Subelement is obtained, carries being observed and predicted for same period number in adjustment unit measurement period adjusted for counting The number of text.
23. 9~22 described in any item devices according to claim 1, which is characterized in that the statistical information is timestamp, then The obtaining unit includes:
Recording unit, for recording the receiving time stamp of the specified tested message in the measurement period, described specify is observed and predicted The tested message that text is numbered for the carrying period positioned at designated position, and the designated position and transmitting terminal record sending time stamp Designated position it is identical.
CN201410318272.6A 2014-07-04 2014-07-04 A kind of statistical information acquisition methods and device Active CN105281969B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410318272.6A CN105281969B (en) 2014-07-04 2014-07-04 A kind of statistical information acquisition methods and device
PCT/CN2015/083286 WO2016000659A1 (en) 2014-07-04 2015-07-03 Statistical information acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410318272.6A CN105281969B (en) 2014-07-04 2014-07-04 A kind of statistical information acquisition methods and device

Publications (2)

Publication Number Publication Date
CN105281969A CN105281969A (en) 2016-01-27
CN105281969B true CN105281969B (en) 2019-11-29

Family

ID=55018476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410318272.6A Active CN105281969B (en) 2014-07-04 2014-07-04 A kind of statistical information acquisition methods and device

Country Status (2)

Country Link
CN (1) CN105281969B (en)
WO (1) WO2016000659A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893525B (en) * 2016-03-30 2019-06-21 努比亚技术有限公司 Data statistics device and method
CN110545241B (en) * 2018-05-28 2022-05-17 华为技术有限公司 Message processing method and device
CN112448896B (en) 2019-08-30 2024-04-30 华为技术有限公司 Method and device for determining transmission period in deterministic network
CN112468397B (en) * 2019-09-09 2023-09-26 华为技术有限公司 IPv6 message processing method and device
CN113067740B (en) * 2020-01-02 2023-09-05 中国移动通信有限公司研究院 Method, device, equipment and computer readable storage medium for detecting following path performance
CN113824606B (en) * 2020-06-19 2023-10-24 华为技术有限公司 Network measurement method and device
EP4195609A4 (en) * 2020-08-26 2024-01-10 Huawei Technologies Co., Ltd. Traffic monitoring method and apparatus, integrated circuit, network device, and network system
CN116137599A (en) * 2021-11-18 2023-05-19 华为技术有限公司 Message statistics method and related equipment
CN114205256A (en) * 2021-12-07 2022-03-18 苏州盛科通信股份有限公司 Method, device and storage medium for continuously measuring network performance based on TWAMP protocol
CN114157586A (en) * 2021-12-15 2022-03-08 苏州盛科通信股份有限公司 Method and device for improving TWAMP detection accuracy and storage device
CN114221888A (en) * 2021-12-16 2022-03-22 苏州盛科科技有限公司 Method, device and storage medium for improving message statistics accuracy in TWAMP detection
CN114244739A (en) * 2021-12-21 2022-03-25 苏州盛科通信股份有限公司 Method, device and storage medium for improving message statistical accuracy

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933429A (en) * 2005-09-12 2007-03-21 华为技术有限公司 Time delay characteristic measuring method in data communication network
CN101534222A (en) * 2008-03-10 2009-09-16 中国移动通信集团公司 End-to-end network delay jitter measuring method, device and system thereof
CN101729197A (en) * 2008-10-14 2010-06-09 华为技术有限公司 Method, device and system for detecting packet loss rate
CN102904775A (en) * 2012-09-29 2013-01-30 华为技术有限公司 Method, apparatus and system for measuring network packet loss

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1614939A (en) * 2003-11-06 2005-05-11 华为技术有限公司 Realizing method for time-delaying test
US7983183B2 (en) * 2005-08-23 2011-07-19 Telefonaktiebolaget Lm Ericsson (Publ) Method and arrangement for measuring transmission quality in a packet mode communication network
CN101272290B (en) * 2008-05-12 2011-05-11 中国电信股份有限公司 Measuring method, measuring apparatus for route congestion state in IP network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933429A (en) * 2005-09-12 2007-03-21 华为技术有限公司 Time delay characteristic measuring method in data communication network
CN101534222A (en) * 2008-03-10 2009-09-16 中国移动通信集团公司 End-to-end network delay jitter measuring method, device and system thereof
CN101729197A (en) * 2008-10-14 2010-06-09 华为技术有限公司 Method, device and system for detecting packet loss rate
CN102904775A (en) * 2012-09-29 2013-01-30 华为技术有限公司 Method, apparatus and system for measuring network packet loss

Also Published As

Publication number Publication date
WO2016000659A1 (en) 2016-01-07
CN105281969A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
CN105281969B (en) A kind of statistical information acquisition methods and device
CN101272290B (en) Measuring method, measuring apparatus for route congestion state in IP network
JP6279741B2 (en) Time measurement in packet-switched communication networks.
US8638778B2 (en) Performance measurement in a network supporting multiprotocol label switching (MPLS)
CN108737003A (en) For testing time sensitive network(TSN)Method, system and the computer-readable medium of element
CN103384986B (en) The automatic capture of network delay ingredient
US8243599B2 (en) Method and apparatus for high resolution passive network latency measurement
US9369362B2 (en) Triangle loopback
CN101018161A (en) A link, path, and network availability bandwidth measurement method
CN106656679B (en) Availability bandwidth measurement method
US20150109953A1 (en) Time Measurement on a Packet Flow in a Packet-Switched Communication Network
US20190014029A1 (en) Performance measurement in a packet-switched communication network
WO2016095410A1 (en) Link traffic distributing method and device
US10181994B2 (en) Probing a network
CN106656643A (en) Measuring method of segmental calculation of network delay
US20080137540A1 (en) Method And Apparatus For Analysing Traffic In A Network
CN107147544A (en) A kind of method and device of test network delay
US11121938B2 (en) Performance measurement in a packet-switched communication network
US10673727B2 (en) Time-multiplexed fields for network telemetry
JP2002152266A (en) Packet loss measurement system
JP2016184824A (en) Packet analysis program, packet analysis device, and packet analysis method
CN104579812B (en) A kind of computer network availability bandwidth measurement method
CN107995053B (en) Method and device for detecting network packet loss based on software defined network
US20210184955A1 (en) Method for devices in a network to participate in an end-to-end measurement of latency
CN105141479A (en) Time delay 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
GR01 Patent grant
GR01 Patent grant