Invention content
The object of the present invention is to provide a kind of ethernet performance measurement method, drive end MEP is to Partner MEP sending performances
Test request message (TRM), each MIP between drive end MEP and Partner MEP obtain the performance test request message and construct and take
Performance test response message with performance test parameter, drive end MEP receive the carrying performance test parameter that each MIP is returned
Performance test response message realizes the hop-by-hop performance test between MEP and each MIP.
To achieve the above object, first aspect of the embodiment of the present invention provides a kind of ethernet performance measurement method, described
Method includes:
First Maintenance Entity endpoint MEP is periodically measured to the 2nd MEP sending performances by ethernet link and is asked
Message, the first MEP and the 2nd MEP are located at the both ends of the ethernet link, the first MEP and described
At least one MIP being provided between two MEP including the first Maintenance Entity intermediate point MIP, the performance measurement request
Message includes first performance measurement parameter;
First MEP receives the first performance that the 2nd MEP is sent and measures response message, and the first performance measures
Third performance measurement parameter and the 4th performance measurement parameter are carried in response message;
First MEP receives the second performance measurement response message that the first MIP is sent, second performance measurement
The first performance measurement parameter, the second performance measurement parameter and the 5th performance measurement parameter are carried in response message;
First MEP records the 6th performance measurement parameter when receiving the first performance measurement response message;
According to first performance measurement parameter, the second performance measurement parameter, third performance measurement parameter, the 4th performance measurement ginseng
Number, the 5th performance measurement parameter and the 6th performance measurement parameter calculate between the first MEP and the 2nd MEP
Performance parameter and the first MEP and the first MIP between performance parameter.
Based in a first aspect, in the first possible embodiment, pass through the ethernet link period in the first MEP
Property to the 2nd MEP sending performances measure request message before, further include:
First MEP is sent in hop-by-hop performance measurement notice message HMM, the HMM by the ethernet link and is wrapped
Identical VLAN ID VLAN ID and priority with tested service message are included, further includes project instruction to be measured
Information;
Receive the hop-by-hop performance measurement response message HMR of the first MIP feedbacks.
The first possible embodiment based on first aspect, it is described to be measured in second of possible embodiment
Quantifier mesh instruction information specifically indicates to measure packet loss;Correspondingly,
The performance measurement request message is packet loss measurement request message LMM messages, and the first performance measurement parameter is
First packet accouter value, it is described when the first packet accouter value is specially that the first MEP sends the LMM messages
The Counter Value of the transmission packet accouter of first MEP;The transmission packet accouter of first MEP is used for described first
The tested service message that MEP is sent to the 2nd MEP is counted;
It is that the first packet loss measures response message LMR messages, the first LMR messages that the first performance, which measures response message,
In also carry the first packet accouter value;
The third performance measurement parameter is third packet accouter value, and the third packet accouter value is specially described
When 2nd MEP receives the LMM messages, the Counter Value of the reception packet accouter of the 2nd MEP;2nd MEP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the 2nd MEP carry out
It counts;
4th performance measurement parameter is the 4th packet accouter value, and the 4th packet accouter value is specially described
When 2nd MEP sends the first LMR messages, the Counter Value of the transmission packet accouter of the 2nd MEP;Described second
Based on tested service message of the transmission packet accouter of MEP by being sent to the first MEP to the 2nd MEP carries out
Number;
The second performance measurement response message is the 2nd LMR messages;
Second performance measurement parameter is the second packet accouter value, and the second packet accouter value is specially described
When first MIP receives the LMM messages, the Counter Value of the reception packet accouter of the first MIP;First MIP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the first MIP carry out
It counts;
5th performance measurement parameter is the 5th packet accouter value, and the 5th packet accouter value is specially described
When first MIP receives the first LMR messages, the Counter Value of the transmission packet accouter of the first MIP;Described first
Based on tested service message of the transmission packet accouter of MIP by being sent to the first MEP to the first MIP carries out
Number;
6th performance measurement parameter is the 6th packet accouter value, and the 6th packet accouter value is specially described
When first MEP receives the first LMR messages, the Counter Value of the reception packet accouter of the first MEP;Described first
Based on the tested service message that the 2nd MEP of the count pick up device of MEP by being received to the first MEP is sent carries out
Number.
Second of possible embodiment based on first aspect, in the third possible embodiment, the basis
First performance measurement parameter, the second performance measurement parameter, third performance measurement parameter, the 4th performance measurement parameter, the 5th performance
Measurement parameter and the 6th performance measurement parameter calculate the performance parameter between the first MEP and the 2nd MEP,
And the performance parameter between the first MEP and the first MIP, it specifically includes:
Obtain the first packet accouter value of period 1, the second packet accouter value, third packet accouter value, the 4th
Packet accouter value, the 5th packet accouter value and the 6th packet accouter value;
Obtain the first packet accouter value of second round, the second packet accouter value, third packet accouter value, the 4th
Packet accouter value, the 5th packet accouter value and the 6th packet accouter value;
With the difference of the first packet accouter value of the first packet accouter value and second round of period 1, subtract, the
The first MEP is calculated in the difference of the 5th packet accouter value and the 5th packet accouter value of second round in one period
Number of dropped packets between one MIP;
With the difference of the first packet accouter value of the first packet accouter value and second round of period 1, subtract, the
The first MEP is calculated in the difference of the third packet accouter value in one period and the third packet accouter value of second round
Number of dropped packets between two MEP.
The first possible embodiment based on first aspect, it is described to be measured in the 4th kind of possible embodiment
Quantifier mesh instruction information specifically indicates to measure time delay;
The performance measurement request message is two-way latency measurement message DMM messages, and the first performance measurement parameter is
First MEP sends the first time stamp of the DMM messages;
It is the first two-way latency measurement response message DMR messages that the first performance, which measures response message,;The third
Energy measurement parameter is the third timestamp that the 2nd MEP receives the DMM messages;4th performance measurement parameter is institute
State the 4th timestamp that the 2nd MEP sends the first DMR messages;
The second performance measurement response message is the 2nd DMR messages;Second performance measurement parameter is described first
MIP receives the second timestamp of the DMM messages, and the 5th performance measurement parameter is described in the first MIP is received
5th timestamp of the first DMR messages;
6th performance measurement parameter is the 6th timestamp that the first MEP receives the first DMR messages.
The 4th kind of possible embodiment based on first aspect, in the 5th kind of possible embodiment, the basis
First performance measurement parameter, the second performance measurement parameter, third performance measurement parameter, the 4th performance measurement parameter, the 5th performance
Measurement parameter and the 6th performance measurement parameter calculate the performance parameter between the first MEP and the 2nd MEP,
And the performance parameter between the first MEP and the first MIP, it specifically includes:
The difference stabbed with the 6th timestamp and the first time, subtracts, when the 4th timestamp and the third
Between stab difference, the message round-trip delay between the first MEP and the 2nd MEP is calculated;
The difference stabbed with the 6th timestamp and the first time, subtracts, the 5th timestamp and it is described second when
Between stab difference, the message round-trip delay between the first MEP and the first MIP is calculated.
The 4th kind of possible embodiment based on first aspect, in the 6th kind of possible embodiment, the basis
First performance measurement parameter, the second performance measurement parameter, third performance measurement parameter, the 4th performance measurement parameter, the 5th performance
Measurement parameter and the 6th performance measurement parameter calculate the performance parameter between the first MEP and the 2nd MEP,
And the performance parameter between the first MEP and the first MIP, further include specifically:
First time stamp, the second timestamp, third timestamp, the 4th timestamp in the acquisition period 1, the 5th time
Stamp and the 6th timestamp;
Obtain the first time stamp in second round, the second timestamp, third timestamp, the 4th timestamp, the 5th time
Stamp and the 6th timestamp;
With the difference of the second timestamp and first time stamp of the second round, subtract, the second timestamp of period 1
And the difference of stamp at the first time, is calculated unidirectional shakes of the first MEP to the first directions MIP;
It with the difference of the 6th timestamp and the 5th timestamp of the second round, subtracts, the 6th timestamp of period 1
And unidirectional shakes of the first MIP to the first directions MEP is calculated in the difference of the 5th timestamp.
Second aspect, an embodiment of the present invention provides a kind of ethernet performance measurement method, the method includes:
First Maintenance Entity intermediate point MIP obtains the first Maintenance Entity endpoint MEP and passes through ethernet link periodicity
The performance measurement request message that ground is sent to the 2nd MEP includes first performance measurement parameter in the performance measurement request message,
And record the first performance measurement parameter and the second performance measurement parameter;First MEP and the 2nd MEP are located at
The both ends of the ethernet link are provided between the first MEP and the 2nd MEP including the first MIP
At least one MIP;
First MIP obtains the first performance that the 2nd MEP is sent to the first MEP and measures response message, and
Record the 5th performance measurement parameter;The first performance measures in response message and carries third performance measurement parameter and the 4th property
It can measurement parameter;
First MIP sends the second performance measurement response message, the second performance measurement response to the first MEP
The first performance measurement parameter, the second performance parameter and the 5th performance measurement parameter are carried in message, in order to described
One MEP measures response message and the second performance measurement response message in order to the first MEP according to the first performance,
Calculate the performance between performance parameter and the first MEP and MIP between the first MEP and the 2nd MEP
Parameter.
Based on second aspect, in the first possible embodiment, it is logical to obtain the first MEP in the first MIP
It crosses before the performance measurement request message that ethernet link is periodically sent to the 2nd MEP, further includes:
First MIP obtains the hop-by-hop performance measurement notice that the first MEP is sent by the ethernet link and disappears
HMM is ceased, the HMM includes identical VLAN ID VLAN ID and priority with tested service message, is also wrapped
Include project instruction information to be measured;
According to the HMM, performance test event is determined;
Hop-by-hop performance measurement response message HMR is sent to the first MEP;
According to the VLAN ID and the priority and the performance test project of determination, configuration testing parameter;
And send hop-by-hop performance measurement response message HMR to the first MEP.
The first possible embodiment based on second aspect, it is described to be measured in second of possible embodiment
Quantifier mesh instruction information specifically indicates to measure packet loss;The performance measurement request message is packet loss measurement request message LMM messages,
The first performance measurement parameter is the first packet accouter value, and the first packet accouter value is specially the first MEP
When sending the LMM messages, the Counter Value of the transmission packet accouter of the first MEP;The transmission message of first MEP
Counter is for counting the first MEP tested service messages sent to the 2nd MEP;
It is that the first packet loss measures response message LMR messages, the first LMR messages that the first performance, which measures response message,
In also carry the first packet accouter value;
The third performance measurement parameter is third packet accouter value, and the third packet accouter value is specially described
When 2nd MEP receives the LMM messages, the Counter Value of the reception packet accouter of the 2nd MEP;2nd MEP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the 2nd MEP carry out
It counts;
4th performance measurement parameter is the 4th packet accouter value, and the 4th packet accouter value is specially described
When 2nd MEP sends the first LMR messages, the Counter Value of the transmission packet accouter of the 2nd MEP;Described second
Based on tested service message of the transmission packet accouter of MEP by being sent to the first MEP to the 2nd MEP carries out
Number;
The second performance measurement response message is the 2nd LMR messages;
Second performance measurement parameter is the second packet accouter value, and the second packet accouter value is specially described
When first MIP receives the LMM messages, the Counter Value of the reception packet accouter of the first MIP;First MIP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the first MIP carry out
It counts;
5th performance measurement parameter is the 5th packet accouter value, and the 5th packet accouter value is specially described
When first MIP receives the first LMR messages, the Counter Value of the transmission packet accouter of the first MIP;Described first
Based on tested service message of the transmission packet accouter of MIP by being sent to the first MEP to the first MIP carries out
Number.
The first possible embodiment based on second aspect, it is described to be measured in the third possible embodiment
Quantifier mesh instruction information specifically indicates to measure time delay;The performance measurement request message is two-way latency measurement message DMM messages,
The first performance measurement parameter is the first time stamp that the first MEP sends the DMM messages;
It is the first two-way latency measurement response message DMR messages that the first performance, which measures response message, described secondary
It is the 2nd DMR messages that response message, which can be measured,;Second performance measurement parameter is that the first MIP receives the DMM reports
The second timestamp of literary time;
The third performance measurement parameter is the third timestamp that the 2nd MEP receives the DMM message times, institute
It is the 4th timestamp that the 2nd MEP sends the first DMR message times to state the 4th performance measurement parameter;
5th performance measurement parameter is the 5th timestamp that the first MIP receives the first DMR messages.
The third aspect, an embodiment of the present invention provides a kind of ethernet performance measuring device, described device is deployed in first
In Maintenance Entity endpoint MEP, described device includes:
First packet sending unit is asked for periodically being measured to the 2nd MEP sending performances by ethernet link
Message, the first MEP and the 2nd MEP are located at the both ends of the ethernet link, the first MEP and described
At least one MIP being provided between two MEP including the first Maintenance Entity intermediate point MIP, the performance measurement request
Message includes first performance measurement parameter;
First receiving unit measures response message, the primary for receiving the first performance that the 2nd MEP is sent
It can measure in response message and carry third performance measurement parameter and the 4th performance measurement parameter;
Second receiving unit, the second performance measurement response message sent for receiving the first MIP are described secondary
It can measure in response message and carry the first performance measurement parameter, the second performance measurement parameter and the 5th performance measurement ginseng
Number;
Storage unit, when receiving the first performance measurement response message for first receiving unit, note
Record the 6th performance measurement parameter;
Arithmetic element, for according to first performance measurement parameter, the second performance measurement parameter, third performance measurement parameter,
4th performance measurement parameter, the 5th performance measurement parameter and the 6th performance measurement parameter calculate the first MEP and institute
State the performance parameter between performance parameter and the first MEP and the first MIP between the 2nd MEP.
Based on the third aspect, in the first possible embodiment, described device further includes the second packet sending unit
With third receiving unit, it is additionally operable to:
Second packet sending unit, for first packet sending unit by ethernet link periodically
Before measuring request message to the 2nd MEP sending performances, hop-by-hop performance measurement notice message is sent by the ethernet link
HMM, the HMM include identical VLAN ID VLAN ID and priority with tested service message, further include
Project to be measured indicates information;
The third receiving unit, the hop-by-hop performance measurement response message HMR for receiving the first MIP feedbacks.
The first possible embodiment based on the third aspect, it is described to be measured in second of possible embodiment
Quantifier mesh instruction information specifically indicates to measure packet loss;The performance measurement request message is packet loss measurement request message LMM messages,
The first performance measurement parameter is the first packet accouter value, and the first packet accouter value is specially that the first message is sent
When unit sends the LMM messages, the Counter Value of the transmission packet accouter of the first MEP;The transmission of first MEP
Packet accouter is for counting the first MEP tested service messages sent to the 2nd MEP;
It is that the first packet loss measures response message LMR messages, the first LMR messages that the first performance, which measures response message,
In also carry the first packet accouter value;
The third performance measurement parameter is third packet accouter value, and the third packet accouter value is specially described
When 2nd MEP receives the LMM messages, the Counter Value of the reception packet accouter of the 2nd MEP;2nd MEP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the 2nd MEP carry out
It counts;
4th performance measurement parameter is the 4th packet accouter value, and the 4th packet accouter value is specially described
When 2nd MEP sends the first LMR messages, the Counter Value of the transmission packet accouter of the 2nd MEP;Described second
Based on tested service message of the transmission packet accouter of MEP by being sent to the first MEP to the 2nd MEP carries out
Number;
The second performance measurement response message is the 2nd LMR messages;
Second performance measurement parameter is the second packet accouter value, and the second packet accouter value is specially described
When first MIP receives the LMM messages, the Counter Value of the reception packet accouter of the first MIP;First MIP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the first MIP carry out
It counts;
5th performance measurement parameter is the 5th packet accouter value, and the 5th packet accouter value is specially described
When first MIP receives the first LMR messages, the Counter Value of the transmission packet accouter of the first MIP;Described first
Based on tested service message of the transmission packet accouter of MIP by being sent to the first MEP to the first MIP carries out
Number;
6th performance measurement parameter is the 6th packet accouter value, and the 6th packet accouter value is specially described
When first packet sending unit receives the first LMR messages, the counter of the reception packet accouter of the first MEP
Value;The tested industry that the count pick up device of first MEP is used to send the 2nd MEP that the first MEP is received
Business message is counted.
Second of possible embodiment based on the third aspect, in the third possible embodiment, the operation
Unit is specifically used for:Obtain the first packet accouter value, the second packet accouter value, third packet accouter of period 1
Value, the 4th packet accouter value, the 5th packet accouter value and the 6th packet accouter value;
Obtain the first packet accouter value of second round, the second packet accouter value, third packet accouter value, the 4th
Packet accouter value, the 5th packet accouter value and the 6th packet accouter value;
With the difference of the first packet accouter value of the first packet accouter value and second round of period 1, subtract, the
The first MEP is calculated in the difference of the 5th packet accouter value and the 5th packet accouter value of second round in one period
Number of dropped packets between one MIP;
With the difference of the first packet accouter value of the first packet accouter value and second round of period 1, subtract, the
The first MEP is calculated in the difference of the third packet accouter value in one period and the third packet accouter value of second round
Number of dropped packets between two MEP.
A kind of possible embodiment based on the third aspect, it is described to be measured in the 4th kind of possible embodiment
Project instruction information specifically indicates to measure time delay;The performance measurement request message is two-way latency measurement message DMM messages, institute
It is that the first two-way latency measurement responds DMR messages to state first performance and measure response message, and the first performance measurement parameter is institute
State the first time stamp that the first packet sending unit sends the DMM messages;
The third performance measurement parameter is that the 2nd MEP receives the third timestamps of the DMM messages, described the
Four performance measurement parameters are the 4th timestamp that the 2nd MEP sends the first DMR messages;
The second performance measurement response message is the 2nd DMR messages, and second performance measurement parameter is described first
MIP receives the second timestamp of the DMM messages, and the 5th performance measurement parameter is described in the first MIP is received
5th timestamp of the first DMR messages, the 6th performance measurement parameter are that first receiving unit receives described first
6th timestamp of DMR messages.
The 4th kind of possible embodiment based on the third aspect, in the 5th kind of possible embodiment, the operation
Unit is specifically used for:
The difference stabbed with the 6th timestamp and the first time, subtracts, when the 4th timestamp and the third
Between stab difference, the message round-trip delay between the first MEP and the 2nd MEP is calculated;
The difference stabbed with the 6th timestamp and the first time, subtracts, the 5th timestamp and it is described second when
Between stab difference, the message round-trip delay between the first MEP and the first MIP is calculated.
The 5th kind of possible embodiment based on the third aspect, in the 6th kind of possible embodiment, the operation
Unit is additionally operable to:Obtain the first time stamp, the second timestamp, third timestamp, the 4th timestamp, the 5th time of period 1
Stamp and timestamp;
Obtain first time stamp, the second timestamp, third timestamp, the 4th timestamp, the 5th timestamp of second round
And timestamp;
With the second timestamp of the second round and the difference of stamp at the first time, subtract, the period 1 second when
Between stamp at the first time stab difference, unidirectional shakes of the first MEP to the first directions MIP is calculated;
With the difference of the 6th timestamp and the 5th timestamp of the second round, subtract, the period 1 the 6th when
Between stab and the 5th timestamp difference, unidirectional shakes of the first MIP to the first directions MEP is calculated;
Fourth aspect, an embodiment of the present invention provides a kind of ethernet performance measuring device, described device is deployed in first
In Maintenance Entity intermediate point MIP, described device described device includes:
First acquisition unit, for obtaining the first Maintenance Entity endpoint MEP by ethernet link periodically to the
The performance measurement request message that two MEP are sent includes first performance measurement parameter in the performance measurement request message, and records
The first performance measurement parameter and the second performance measurement parameter;Wherein, the first MEP and the 2nd MEP are located at
The both ends of the ethernet link are provided between the first MEP and the 2nd MEP including the first MIP
At least one MIP;
Second acquisition unit measures response report for obtaining the first performance that the 2nd MEP is sent to the first MEP
Text, and record the 5th performance measurement parameter;The first performance measure carried in response message third performance measurement parameter and
4th performance measurement parameter;
Transmission unit, for sending the second performance measurement response message, second performance measurement to the first MEP
The first performance measurement parameter, the second performance parameter and the 5th performance measurement parameter are carried in response message, in order to institute
It states the first MEP and response message and the second performance measurement response message is measured according to the first performance, calculate described first
The performance parameter between performance parameter and the first MEP and the first MIP between MEP and the 2nd MEP.
Based on fourth aspect, in the first possible embodiment, described device further includes third acquiring unit, determination
Unit and dispensing unit;
The third acquiring unit is used for:The first MEP, which is obtained, in the first acquisition unit passes through the Ethernet
Before the performance measurement request message sent to the 2nd MEP to isl cycle, obtain the first MEP by it is described with
Hop-by-hop performance measurement the notice message HMM, the HMM that too network chain road is sent include identical void with tested service message
Quasi- LAN ID VLAN ID and priority further include project instruction information to be measured;
The determination unit, for according to the HMM, determining performance test event;
The dispensing unit, for according to the VLAN ID and priority of the tested service message and determination by
Jump performance test project, configuration testing parameter;
The response unit is additionally operable to send hop-by-hop performance measurement response message HMR to the first MEP.
The first possible embodiment based on fourth aspect, it is described to be measured in second of possible embodiment
Quantifier mesh instruction information specifically indicates that measurement packet loss, the performance measurement request message are packet loss measurement request message LMM messages,
The first performance measurement parameter is the first packet accouter value, and the first packet accouter value is specially the first MEP
When sending the LMM messages, the Counter Value of the transmission packet accouter of the first MEP;The transmission message of first MEP
Counter is for counting the first MEP tested service messages sent to the 2nd MEP;
It is that the first packet loss measures response message LMR messages, the first LMR messages that the first performance, which measures response message,
In also carry the first packet accouter value;
The third performance measurement parameter is third packet accouter value, and the third packet accouter value is specially described
When 2nd MEP receives the LMM messages, the Counter Value of the reception packet accouter of the 2nd MEP;2nd MEP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the 2nd MEP carry out
It counts;
4th performance measurement parameter is the 4th packet accouter value, and the 4th packet accouter value is specially described
When 2nd MEP sends the first LMR messages, the Counter Value of the transmission packet accouter of the 2nd MEP;Described second
Based on tested service message of the transmission packet accouter of MEP by being sent to the first MEP to the 2nd MEP carries out
Number;
The second performance measurement response message is the 2nd LMR messages;
Second performance measurement parameter is the second packet accouter value, and the second packet accouter value is specially described
When first MIP receives the LMM messages, the Counter Value of the reception packet accouter of the first MIP;First MIP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the first MIP carry out
It counts;
5th performance measurement parameter is the 5th packet accouter value, and the 5th packet accouter value is specially described
When first MIP receives the first LMR messages, the Counter Value of the transmission packet accouter of the first MIP;Described first
Based on tested service message of the transmission packet accouter of MIP by being sent to the first MEP to the first MIP carries out
Number.
The first possible embodiment based on fourth aspect, it is described to be measured in the third possible embodiment
Quantifier mesh instruction information specifically indicates to measure time delay;The performance measurement request message is two-way latency measurement message DMM messages,
The first performance measurement parameter is the first time stamp that the first MEP sends the DMM messages;
It is the first two-way latency measurement response message DMR messages that the first performance, which measures response message, described secondary
It is the 2nd DMR messages that response message, which can be measured,;Second performance measurement parameter is that affiliated first MIP receives the DMM reports
Second timestamp of text;
The third performance measurement parameter is that the 2nd MEP receives the third timestamps of the DMM messages, described the
Four performance measurement parameters are the 4th timestamp that the 2nd MEP sends the first DMR messages;
5th performance measurement parameter is the 5th timestamp that the first MIP receives the first DMR messages.
5th aspect, an embodiment of the present invention provides a kind of ethernet performance measuring system, the first Maintenance Entity endpoints
MEP, the 2nd MEP and the first Maintenance Entity intermediate point MIP;First MEP and the 2nd MEP is located at ethernet link
Both ends, at least one MIP being provided between the first MEP and the 2nd MEP including the first MIP.Wherein,
First MEP periodically measures request message, the property by ethernet link to the 2nd MEP sending performances
It includes first performance measurement parameter that request message, which can be measured,;
First MIP obtains the performance measurement request message, and records the first performance measurement parameter and second
Performance measurement parameter;
2nd MEP sends first performance after receiving the performance measurement request message, to the first MEP
Response message is measured, the first performance, which measures, carries third performance measurement parameter and the 4th performance measurement ginseng in response message
Number;
The MIP obtains the first performance that the 2nd MEP is sent and measures response message, records the 5th performance measurement
Parameter, and the second performance measurement response message is sent to the first MEP, it is carried in the second performance measurement response message
The first performance measurement parameter, the second performance parameter and the 5th performance measurement parameter;
First MEP receives the first performance and measures response message, record the 6th performance measurement parameter;And according to
First performance measurement parameter, the second performance measurement parameter, third performance measurement parameter, the 4th performance measurement parameter, the 5th performance
Measurement parameter and the 6th performance measurement parameter calculate the performance parameter between the first MEP and the 2nd MEP,
And the performance parameter between the first MEP and the first MIP.
By the above embodiments, the first Maintenance Entity endpoint MEP is by ethernet link periodically to the second dimension
It protects group of entities endpoint MEP and sends ethernet performance and measure request message, it includes that the ethernet performance, which measures request message,
One performance measurement parameter;First MEP receives the first performance that the 2nd MEP is sent and measures response message, the first performance
It measures in response message and carries third performance measurement parameter and the 4th performance measurement parameter;Described in the first MEP receptions extremely
Lack the second performance measurement response message that a MIP in a MIP is sent, is carried in the second performance measurement response message
There are the first performance measured parameter value, the second performance measurement parameter and the 5th performance measurement parameter;Receiving described first
After performance measurement response message and the second performance measurement response message, the 6th performance measurement parameter is recorded;According to described
Performance measurement parameter in one performance measurement response message and the second performance measurement response message calculates the first MEP
The performance parameter between performance parameter, the first MEP and MIP between the 2nd MEP.It is real through the invention
Example is applied, can once realize the measurement of the packet loss, time delay and jitter performance between MEP and each MIP, is carried out without subregion more
Secondary measurement, you can while realizing the purpose of performance measurement and fault location.
Specific implementation mode
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Fig. 1 is a kind of ethernet performance measurement method provided in an embodiment of the present invention, as shown in Figure 1, the method includes:
101, the first Maintenance Entity endpoint MEP are periodically measured to the 2nd MEP sending performances by ethernet link
Request message, the first MEP and the 2nd MEP are located at the both ends of the ethernet link, the first MEP and institute
It states and is provided at least one Maintenance Entity intermediate point between the 2nd MEP(maintenance entity group
Intermediate point, abbreviation MIP), the performance measurement request message includes first performance measurement parameter;
The Maintenance Entity endpoint for actively initiating performance measurement is usually known as drive end MEP, the passive performance that receives is surveyed
The MEP of amount is known as Partner MEP;In the embodiment of the present invention, the first MEP is drive end MEP;Correspondingly, the 2nd MEP
Also referred to as Partner MEP.
First MEP can be server or ONT Optical Network Terminal, and MIP can be router or interchanger, described second
MEP can be server or ONT Optical Network Terminal.
102, the first MEP receive the first performance that the 2nd MEP is sent and measure response message, and the first performance measures
Third performance measurement parameter and the 4th performance measurement parameter are carried in response message;
103, the first MEP receive the second performance measurement response message that the first MIP is sent, second performance
It measures and carries the first performance measured parameter value, the second performance measurement parameter and the 5th performance measurement ginseng in response message
Number;
104, after receiving the first performance and measuring response message and the second performance measurement response message, record
6th performance measurement parameter;
105, it is surveyed according to first performance measurement parameter, the second performance measurement parameter, third performance measurement parameter, the 4th performance
Parameter, the 5th performance measurement parameter and the 6th performance measurement parameter are measured, the first MEP and the 2nd MEP is calculated
Between performance parameter and the first MEP and the first MIP between performance parameter.
Further, it is periodically measured and is asked to the 2nd MEP sending performances by ethernet link in the first MEP
Before message, further include:First MEP sends hop-by-hop performance measurement message by ethernet link(hop by hop
Measurement message, abbreviation HMM), the HMM includes identical virtual LAN with tested service message
VLAN ID and priority are identified, further includes project instruction information to be measured;
First MEP receives the hop-by-hop performance measurement response message of the first MIP feedbacks(hop by hop
Measurement reply message, abbreviation HMR).
Specifically, the first MEP constructs the HMM;The HMM for the first MEP to the first MEP with
Each MIP between 2nd MEP notices the parameter of project instruction information and tested business to be measured so that each MIP matches
Set measurement parameter.For example, service parameter includes the VLAN ID and priority of tested business;Project instruction information to be measured is used
In indicating project, including packet loss, time delay etc. to be measured, multiple projects to be measured can be once configured according to measurement demand,
A kind of project to be measured can also only be carried.
First MEP directly can send the HMM at least one MIP including the first MIP;Also may be used
To send the HMM to the 2nd MEP, by between the first MEP and the 2nd MEP including the first MIP
At least one MIP obtains the HMM, and configures measurement parameter.
In a kind of possible realization method of the present embodiment, the project instruction information to be measured, which specifically indicates to measure, loses
Packet;The performance measurement request message is packet loss measurement request message(Loss measurement request message, letter
Claim LMM)Message, it is that the first packet loss measures response message that the first performance, which measures response message,(loss measurement
Reply message, abbreviation LMR)Message also carries the first packet accouter value in the first LMR messages;It is described
First performance measurement parameter is the first packet accouter value, and the first packet accouter value is specially that the first MEP is sent
When the LMM messages, the Counter Value of the transmission packet accouter of the first MEP;The transmission packet counting of first MEP
Device is for counting the first MEP tested service messages sent to the 2nd MEP;
It is that the first packet loss measures response message LMR messages that the first performance, which measures response message, and the third performance is surveyed
Amount parameter is third packet accouter value, and the third packet accouter value is specially that the 2nd MEP receives the LMM reports
The Counter Value of the reception packet accouter of Wen Shi, the 2nd MEP;The reception packet accouter of 2nd MEP for pair
The tested service message that the first MEP that 2nd MEP is received is sent is counted;
4th performance measurement parameter is the 4th packet accouter value, and the 4th packet accouter value is specially described
When 2nd MEP sends the first LMR messages, the Counter Value of the transmission packet accouter of the 2nd MEP;Described second
Based on tested service message of the transmission packet accouter of MEP by being sent to the first MEP to the 2nd MEP carries out
Number;
The second performance measurement response message is the 2nd LMR messages;
Second performance measurement parameter is the second packet accouter value, and the second packet accouter value is specially described
When first MIP receives the LMM messages, the Counter Value of the reception packet accouter of the first MIP;First MIP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the first MIP carry out
It counts;
5th performance measurement parameter is the 5th packet accouter value, and the 5th packet accouter value is specially described
When first MIP receives the first LMR messages, the Counter Value of the transmission packet accouter of the first MIP;Described first
Based on tested service message of the transmission packet accouter of MIP by being sent to the first MEP to the first MIP carries out
Number;
6th performance measurement parameter is the 6th packet accouter value, and the 6th packet accouter value is specially described
When first MEP receives the first LMR messages, the Counter Value of the reception packet accouter of the first MEP;Described first
Based on the tested service message that the 2nd MEP of the count pick up device of MEP by being received to the first MEP is sent carries out
Number.
Correspondingly, described according to first performance measurement parameter, the second performance measurement parameter, third performance measurement parameter,
Four performance measurement parameters, the 5th performance measurement parameter and the 6th performance measurement parameter calculate the first MEP and described
The performance parameter between performance parameter and the first MEP and the first MIP between 2nd MEP, specifically includes:
Obtain the first packet accouter value of period 1, the second packet accouter value, third packet accouter value, the 4th
Packet accouter value, the 5th packet accouter value and the 6th packet accouter value;
Obtain the first packet accouter value of second round, the second packet accouter value, third packet accouter value, the 4th
Packet accouter value, the 5th packet accouter value and the 6th packet accouter value;
With the difference of the first packet accouter value of the first packet accouter value and second round of period 1, subtract, the
The first MEP is calculated in the difference of the 5th packet accouter value and the 5th packet accouter value of second round in one period
Number of dropped packets between one MIP;That is,
Number of dropped packets between first MEP to the first MIP=(The of the first packet accouter value-second round of period 1
One packet accouter value)-(The 5th packet accouter value of the 5th packet accouter value-second round of period 1).
Further, with the number of dropped packets divided by transmission message number between the first MEP to the first MIP, the first MEP can be obtained
To the packet loss of signal period between the first MIP;That is,
The packet loss of signal period between first MEP to the first MIP=((The first packet accouter value-the of period 1
First packet accouter value of two cycles)-(The 5th packet counting of the 5th packet accouter value-second round of period 1
Device value))/(The first packet accouter value of the first packet accouter value-second round of period 1).
With the difference of the first packet accouter value of the first packet accouter value and second round of period 1, subtract, the
The first MEP is calculated in the difference of the third packet accouter value in one period and the third packet accouter value of second round
Number of dropped packets between two MEP.That is,
Number of dropped packets between first MEP to the 2nd MEP=(The of the first packet accouter value-second round of period 1
One packet accouter value)-(The third packet accouter value of third packet accouter value-second round of period 1).
Further, with the number of dropped packets divided by transmission message number between the first MEP to the 2nd MEP, the first MEP can be obtained
To the packet loss of signal period between the 2nd MEP;That is,
The packet loss of signal period between first MEP to the 2nd MEP=((The first packet accouter value-the of period 1
First packet accouter value of two cycles)-(The third packet counting of third packet accouter value-second round of period 1
Device value))/(The first packet accouter value of the first packet accouter value-second round of period 1).
In the alternatively possible realization method of the present embodiment, when the project instruction information to be measured specifically indicates to measure
Prolong;The performance measurement request message is latency measurement message(Delay measurement message, abbreviation DMM)Message,
The first performance measurement parameter is the first time stamp that the first MEP sends the DMM messages;
It is the first latency measurement response message that the first performance, which measures response message,(delay measurement
Reply message, abbreviation DMR)Message;The third performance measurement parameter is that the 2nd MEP receives the DMM messages
Third timestamp, the 4th performance measurement parameter is that the 2nd MEP sends the 4th time of the first DMR messages
Stamp;
The second performance measurement response message is the 2nd DMR messages, and second performance measurement parameter is described first
MIP receives the second timestamp of the DMM messages, and the 5th performance measurement parameter is described in the first MIP is received
5th timestamp of the first DMR messages, the 6th performance measurement parameter are that the first MEP receives the first DMR reports
6th timestamp of text.
Correspondingly, described to be joined according to first performance measurement parameter, the second performance measurement parameter, third performance measurement
Number, the 4th performance measurement parameter, the 5th performance measurement parameter and the 6th performance measurement parameter calculate the first MEP
The performance parameter between performance parameter and the first MEP and the first MIP between the 2nd MEP is specific to wrap
It includes:
The difference stabbed with the 6th timestamp and the first time, subtracts, when the 4th timestamp and the third
Between stab difference, the message round-trip delay between the first MEP and the 2nd MEP is calculated;That is,
Message round-trip delay between first MEP to the 2nd MEP=(6th timestamp-first time stamp)-(4th time
Stamp-third timestamp).
The difference stabbed with the 6th timestamp and the first time, subtracts, the 5th timestamp and it is described second when
Between stab difference, the message round-trip delay between the first MEP and the first MIP is calculated;That is,
Message round-trip delay between first MEP to the first MIP=(6th timestamp-first time stamp)-(5th time
Stab the-the second timestamp).
Further, it is also possible to according to the message round-trip delay and described first between the first MEP and the 2nd MEP
Message round-trip delay between MEP and the first MIP calculates the time delay between the 2nd MEP and the first MIP.
And institute is calculated according to each timestamp carried in the first DMR messages and the 2nd DMR messages described
The message stated between message round-trip delay, the first MEP and the first MIP between the first MEP and the 2nd MEP is past
Time delay is returned, later, according to described first described in the mathematic interpolation of the second timestamp and first time stamp in former and later two periods
Unidirectional shake between MEP and the first MIP;
Obtain first time stamp, the second timestamp, third timestamp, the 4th timestamp, the 5th timestamp of period 1
With the 6th timestamp;
Obtain the first time stamp in second round, the second timestamp, third timestamp, the 4th timestamp, the 5th time
Stamp and the 6th timestamp;
With the difference of the second timestamp and first time stamp of the second round, subtract, the second timestamp of period 1
And the difference of stamp at the first time, is calculated unidirectional shakes of the first MEP to the first directions MIP;That is,
The unidirectional shake of first MEP to the first directions MIP=(The second timestamp-second round of second round first when
Between stab)-(The first time of the second timestamp-period 1 of period 1 stabs)
It with the difference of the 6th timestamp and the 5th timestamp of the second round, subtracts, the 6th timestamp of period 1
And unidirectional shakes of the first MIP to the first directions MEP is calculated in the difference of the 5th timestamp;That is,
The unidirectional shake of first MIP to the first directions MEP=(Six timestamps-the second round of second round the 5th when
Between stab)-(The 5th timestamp of the six timestamps-period 1 of period 1)
Pass through the above embodiments so that drive end MEP is to Partner MEP sending performance test request message (TRM)s, drive end
Each MIP between MEP and Partner MEP obtains the performance test request message and constructs the performance for carrying performance test parameter
Response message is tested, drive end MEP receives the performance test response message for the carrying performance test parameter that each MIP is returned, real
The hop-by-hop performance test between MEP and each MIP is showed.
Fig. 2 is another ethernet performance measurement method provided in an embodiment of the present invention, as shown in Fig. 2, the method packet
It includes:
201, the first MIP obtain the first MEP and are asked by the performance measurement that ethernet link is periodically sent to the 2nd MEP
Message is sought, carries first performance measurement parameter in the performance measurement request message, and record the first performance measurement parameter
With the second performance measurement parameter;First MEP and the 2nd MEP is located at the both ends of the ethernet link, described
At least one MIP being provided between first MEP and the 2nd MEP including the first MIP;
202, it obtains the first performance that the 2nd MEP is sent to the first MEP and measures response message, and record the 5th performance
Measurement parameter;The first performance measure carried in response message third performance measurement parameter and;4th performance measurement parameter;
203, the second performance measurement response message is sent to the first MEP, in the second performance measurement response message
The first performance measurement parameter, the second performance parameter and the 5th performance measurement parameter are carried, in order to the first MEP roots
Response message and the second performance measurement response message are measured according to the first performance, calculates the first MEP and described the
The performance parameter between performance parameter and the first MEP and MIP between two MEP.
Further, the first MEP is obtained in the first MIP periodically to send to the 2nd MEP by ethernet link
Performance measurement request message before, further include:
The hop-by-hop performance measurement notice message HMM for obtaining that the first MEP sent by the ethernet link, it is described
HMM includes identical VLAN ID VLAN ID and priority with tested service message, further includes quantifier to be measured
Mesh indicates information;
According to the HMM received, performance test event is determined;
According to the VLAN ID and the priority and the performance test project of determination, configuration testing parameter;
Hop-by-hop performance measurement response message HMR is sent to the first MEP.
Specifically, the HMM notices project instruction information and business to be measured for the first MEP to each MIP
Parameter so that each MIP configures measurement parameter.For example, service parameter includes the VLAN ID and priority of tested business;It waits for
Measure the item instruction information is used to indicate project to be measured, including packet loss, time delay etc., can once be configured according to measurement demand
Multiple projects to be measured can also only carry a kind of project to be measured.
In a kind of possible realization method of the present embodiment, the project instruction information to be measured, which specifically indicates to measure, loses
Packet;The performance measurement request message is packet loss measurement request message LMM messages, and the first performance measurement parameter is the first report
Literary Counter Value, when the first packet accouter value is specially that the first MEP sends the LMM messages, the first MEP
Transmission packet accouter Counter Value;The transmission packet accouter of first MEP is used for the first MEP to described
The tested service message that 2nd MEP is sent is counted;
It is that the first packet loss measures response message LMR messages, the first LMR messages that the first performance, which measures response message,
In also carry the first packet accouter value;
The third performance measurement parameter is third packet accouter value, and the third packet accouter value is specially described
When 2nd MEP receives the LMM messages, the Counter Value of the reception packet accouter of the 2nd MEP;2nd MEP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the 2nd MEP carry out
It counts;
4th performance measurement parameter is the 4th packet accouter value, and the 4th packet accouter value is specially described
When 2nd MEP sends the first LMR messages, the Counter Value of the transmission packet accouter of the 2nd MEP;Described second
Based on tested service message of the transmission packet accouter of MEP by being sent to the first MEP to the 2nd MEP carries out
Number;
The second performance measurement response message is the 2nd LMR messages;
Second performance measurement parameter is the second packet accouter value, and the second packet accouter value is specially described
When first MIP receives the LMM messages, the Counter Value of the reception packet accouter of the first MIP;First MIP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the first MIP carry out
It counts;
5th performance measurement parameter is the 5th packet accouter value, and the 5th packet accouter value is specially described
When first MIP receives the first LMR messages, the Counter Value of the transmission packet accouter of the first MIP;Described first
Based on tested service message of the transmission packet accouter of MIP by being sent to the first MEP to the first MIP carries out
Number;
6th performance measurement parameter is the 6th packet accouter value, and the 6th packet accouter value is specially described
When first MEP receives the first LMR messages, the Counter Value of the reception packet accouter of the first MEP;Described first
Based on the tested service message that the 2nd MEP of the count pick up device of MEP by being received to the first MEP is sent carries out
Number.
In the alternatively possible realization method of the present embodiment, the project instruction information to be measured specifically indicates to measure
Time delay;The performance measurement request message is two-way latency measurement message DMM messages, and the first performance measurement parameter is described
First MEP sends the first time stamp of the DMM messages, that is, first time stamp is sent for characterizing the first MEP
At the time of the DMM messages;
It is the first two-way latency measurement response message DMR messages that the first performance, which measures response message, described secondary
It is the 2nd DMR messages that response message, which can be measured,;Second performance measurement parameter is that the first MIP receives the DMM reports
Second timestamp of text, that is, at the time of second timestamp receives the DMM messages for characterizing the first MIP;
The third performance measurement parameter is the third timestamp that the 2nd MEP receives the DMM messages, that is,
At the time of the third timestamp receives the DMM messages for characterizing the 2nd MEP;4th performance measurement parameter
The 4th timestamp of the first DMR messages is sent for the 2nd MEP, that is, the 4th timestamp is described for characterizing
At the time of 2nd MEP sends the first DMR messages;
5th performance measurement parameter is the 5th timestamp that the MIP receives the first DMR messages, that is,
At the time of 5th timestamp receives the first DMR messages for characterizing the MIP;6th performance measurement parameter
The 6th timestamp of the first DMR messages is received for the first MEP, that is, the 6th timestamp is for characterizing institute
At the time of stating the first MEP and receive the first DMR messages.
By the above embodiments, drive end MEP can be made to Partner MEP sending performance test request message (TRM)s, it is main
Each MIP between moved end MEP and Partner MEP, which obtains the performance test request message and constructs, carries performance test parameter
Performance test response message, drive end MEP receive the performance test response report for the carrying performance test parameter that each MIP is returned
Text realizes the hop-by-hop performance test between MEP and each MIP.
Ethernet performance measurement method provided in an embodiment of the present invention is particularly applicable to measure packet loss, as shown in figure 3, being
A kind of Ethernet packet loss measurement method provided in an embodiment of the present invention, the method includes:
301, the first MEP periodically send LMM messages by ethernet link to the 2nd MEP;
Specifically, the first MEP and the 2nd MEP are located at the both ends of the ethernet link, described first
At least one MIP is provided between MEP and the 2nd MEP, the LMM messages include the first packet accouter value
counter1;
302, the first MEP receives the first LMR messages that the 2nd MEP is sent;It is carried in the first LMR messages
There are the first packet accouter value counter1, third packet accouter value counter3 and the 4th packet accouter value
counter4;
303, the first MEP receive the 2nd LMR messages that the MIP is sent;It is carried in the 2nd LMR messages
State the first packet accouter value counter1 and the 5th counter counter5;
304, the first MEP are after receiving the first LMR messages and the 2nd LMR messages, the 6th report of record
Literary Counter Value counter6;
305, the first MEP are according to the difference of the packet accouter value of the identical number in two neighboring period, described in acquisition
Ethernet link sending direction and the message number for receiving direction;
Specifically, a cycle is for ease of illustration known as T1, second period is known as T2, and the first MEP is individually all
Transmission message number in phase is:Counter1 in a cycle(Hereinafter referred to as counter1 (T1))Subtract second round
Interior counter1(Hereinafter referred to as counter1 (T2));
Reception message number in first MIP signal periods is:Counter2 in a cycle(Hereinafter referred to as
counter2(T1))Subtract the counter2 in second period(Hereinafter referred to as counter2 (T2)).
Reception message number in 2nd MEP signal periods is:Counter3 in a cycle(Hereinafter referred to as
counter3(T1))Subtract the counter3 in second period(Hereinafter referred to as counter3 (T2)).
306, message number will be sent and subtract reception message number, to obtain the number of dropped packets of chain road.
Specifically, the number of dropped packets of the first MEP to the first MIP is:
First MEP to the first MIP number of dropped packets=(counter1(T1)–counter1(T2))-(counter5(T1)–
counter5(T2))
First MEP to the 2nd MEP number of dropped packets=(counter1(T1)–counter1(T2))-(counter3(T1)–
counter3(T2))
Further, after obtaining the number of dropped packets on ethernet link, further include:
According to the number of dropped packets and transmission message number on ethernet link, the packet loss of ethernet link is obtained.
For example, the first MEP to the first MIP signal periods packet loss=((counter1(T1)–counter1(T2))-
(counter5(T1)–counter5(T2)))/(counter1(T1)–counter1(T2)).
What it is due to the present embodiment execution is loss packet test, in the Parameter Configuration process before 301, described first
Include and tested industry in the HMM messages that MEP is sent by least one MIP of the ethernet link on the ethernet link
The project of business message identical VLAN ID VLAN ID and priority and hop-by-hop performance test, the project include to lose
Packet test.
Further, another ethernet performance measurement method provided in an embodiment of the present invention, which is particularly applicable to measure, loses
Packet, as shown in figure 4, an embodiment of the present invention provides another Ethernet packet loss measurement method, the method includes:
401, the first MIP obtain the Ethernet packet loss that the first MEP is periodically sent to the 2nd MEP by ethernet link
Measurement request message LMM messages;
Specifically, the first MEP and the 2nd MEP are located at the both ends of the ethernet link, described first
It is provided at least one MIP for including the first MIP between MEP and the 2nd MEP.Include first in the LMM messages
Packet accouter value counter1;
402, the first MIP records the first packet accouter value counter1 and the second packet accouter value
counter2;
403, the first MIP receive the 2nd MEP after receiving the LMM messages, to the of institute's the first MEP transmissions
One packet loss measures response message LMR messages, and records the 5th packet accouter value count5;
Specifically, carrying the first packet accouter value counter1, third message meter in the first LMR messages
Number device value counter3 and the 4th packet accouter value counter4;
404, the first MIP send the 2nd LMR messages to the first MEP, are carried in the 2nd LMR messages
State the first packet accouter value counter1, the second packet accouter value counter2 and the 5th packet accouter value
Counter5, in order to which the first MEP calculates the first MEP according to the first LMR messages and the 2nd LMR messages
The performance parameter between performance parameter and the first MEP and the first MIP between the 2nd MEP;
Specifically, the first MEP according to each packet accouter value calculate the first MEP and the 2nd MEP it
Between and the performance parameters such as number of dropped packets, packet loss between the first MEP and the first MIP.
In the parameter notice procedures before carrying out packet loss measurement, the first MIP obtains the first MEP and passes through Ethernet
In hop-by-hop performance measurement notice message HMM, the HMM that link is sent information is indicated comprising project to be measured, it is described to be measured
Project instruction information specifically indicates to measure packet loss;
First MIP determines that performance test event is to measure packet loss according to the HMM received;
According to the VLAN ID of the tested service message and priority and the performance test project of determination, configuration
Test parameter;
And send hop-by-hop performance measurement response message HMR to the first MEP.
Fig. 5 is the information exchange schematic diagram of Ethernet packet loss measurement method provided in an embodiment of the present invention, as shown in figure 5,
The method includes:
501, the first MEP periodically send packet loss to the 2nd MEP by ethernet link and measure request LMM messages;
Include the first packet accouter value count1 in the LMM messages.
More specifically, LMM messages can be interspersed according to the period of performance test described in being sent to by the first MEP
In the continuous tested service message of 2nd MEP, each period is inserted into a LMM message.
502, the first MIP receive LMM messages, and record the first packet accouter value count1 and the second packet counting
Device value count2;
503, the 2nd MEP send the first LMR messages after receiving the LMM messages, to the first MEP;
Specifically, the first LMR messages can also be interspersed in and be sent to the continuous of the first MEP by the 2nd MEP
In tested service message, the first packet accouter value count1, third packet counting are carried in the first LMR messages
Device value count3 and the 4th packet accouter value count4;
504, the first MIP receive the first LMR messages, and record and receive the first LMR that the 2nd MEP is sent
The 5th packet accouter value count5 when message;
More specifically, the first MIP can obtain the first LMR messages by mirror-image fashion, that is, to described the
While two MEP forward the first LMR messages, the first LMR messages are replicated.
505, the first MIP send the 2nd LMR messages to the first MEP;
Specifically, carrying the first packet accouter value count1, the second packet counting in the 2nd LMR messages
Device value count2 and the 5th packet accouter value count5;
506, the first MEP record the 6th packet accouter value count6 when receiving the first LMR messages;
507, the first MEP is calculated according to each packet accouter value between the first MEP and the first MIP
Number of dropped packets between number of dropped packets and the first MEP and the 2nd MEP.
Such as:With the difference of the first packet accouter value of the first packet accouter value and second round of period 1, subtract
It goes, the first MEP is calculated in the difference of the 5th packet accouter value and the 5th packet accouter value of second round of period 1
Number of dropped packets between the first MIP;
With the difference of the first packet accouter value of the first packet accouter value and second round of period 1, subtract, the
The first MEP is calculated in the difference of the third packet accouter value in one period and the third packet accouter value of second round
Number of dropped packets between two MEP.
Number=counter1 (the T1)-counter1 for the tested service message that the first MEP signal periods are sent
(T2)
Number=counter5 (the T1)-counter5 for the tested service message that the first MIP signal periods receive
(T2)
Number=counter3 (the T1)-counter3 for the tested service message that the 2nd MEP signal periods receive
(T2)
First MEP to the first MIP number of dropped packets=(counter1(T1)–counter1(T2))-(counter5(T1)–
counter5(T2))
First MEP to the 2nd MEP number of dropped packets=(counter1(T1)–counter1(T2))-(counter3(T1)–
counter3(T2))
The packet loss of first MEP to the first MIP signal periods=((counter1(T1)–counter1(T2))-
(counter5(T1)–counter5(T2)))/(counter1(T1)–counter1(T2))
Number of dropped packets between remaining node, and so on, seldom repeat.
By above-described embodiment, by the above embodiments, the first MEP is by ethernet link periodically to second
MEP sends LMM, the Maintenance Entity intermediate point MIP in ethernet link, measures, passes through to tested service message
It obtains and sends packet accouter and receive packet accouter value in packet accouter, and be sent to the first MEP, by the first MEP roots
According to each packet accouter value calculate the first MEP to the first MIP and the first MEP and the 2nd MEP it
Between number of dropped packets.It is embodiment through the invention, the first MEP sends a LMM message, can not only complete the first MEP to the
The packet loss of end-to-end ethernet link measures between two MEP, can also complete each section of Ethernet between the first MEP to each MIP
The packet loss of link measures, and is taken multiple measurements without subregion, you can while realizing the purpose of performance measurement and fault location.
A kind of ethernet performance measurement method provided in an embodiment of the present invention can also specifically be applied to measure time delay;Referring to
Fig. 6, an embodiment of the present invention provides a kind of ethernet delay measurement method, the method includes:
601, the first MEP periodically send DMM messages by ethernet link to the 2nd MEP;
Specifically, the first MEP and the 2nd MEP are located at the both ends of the ethernet link, described
At least one MIP being provided between one MEP and the 2nd MEP including the first MIP carries institute in the DMM messages
State the first time stamp t1 that the first MEP sends the DMM;
602, the first MEP receives the first DMR messages that the 2nd MEP is sent to the first MEP;
Specifically, carrying the third time that the 2nd MEP receives the DMM messages in the first DMR messages
Stamp t3 and the 2nd MEP sends the 4th timestamp t4 of the first DMR messages;
603, the 2nd DMR messages that the first MIP is sent to the first MEP are received, are wrapped in the 2nd DMR messages
Include first time stamp t1, the first MIP receives the second timestamp t2 and the first MIP of the DMM messages and connects
Receive the 5th timestamp t5 of the first DMR messages;
604, the first MEP records receive the 6th timestamp t6 of the first DMR messages;
It is round-trip that 605, the first MEP according to each timestamp calculate the message between the first MEP and the 2nd MEP
Message round-trip delay between time delay, the first MEP and MIP.
Specifically, the message round-trip delay between the first MEP and the 2nd MEP is especially by such as under type meter
It calculates:
The difference of 6th timestamp and first time stamp, subtracts, the 4th timestamp and the third time
The difference of stamp.
For example, the round-trip delay of the first MEP to the 2nd MEP in the T1 periods is calculated, with the 6th timestamp in T1 periods(Below
With being expressed as t6 (T1))It is stabbed with the first time in T1 periods(Below with being expressed as t1 (T1))Difference, subtract, the 4th of the T1 periods the
Timestamp(Below with being expressed as t4 (T1))With the third timestamp in T1 periods(Below with being expressed as t3 (T1))Difference;That is,
The round-trip delay of first MEP to the 2nd MEP in T1 periods=(t6(T1)-t1(T1))-(t4(T1)-t3(T1))
Message round-trip delay between first MEP and the first MIP is calculated especially by such as under type:
The subtractive of 6th timestamp and the first time stamp removes the 5th timestamp and second timestamp
Difference.For example, the round-trip delay of the first MEP to the first MIP in the T1 periods is calculated, with the 6th timestamp in T1 periods(It uses below
It is expressed as t6 (T1))It is stabbed with the first time in T1 periods(Below with being expressed as t1 (T1))Difference, subtract, the T1 periods the 5th when
Between stab(Below with being expressed as t5 (T1))With second timestamp in T1 periods(Below with being expressed as t2 (T1))Difference;That is,
Round-trip delay=(t6 of first MEP to the first MIP in T1 periods(T1)-t1(T1))-(t5(T1)-t2(T1))
Later, can according between the first MEP and the 2nd MEP message round-trip delay and the first MEP
Message round-trip delay between the first MIP, calculates the time delay between the 2nd MEP and the first MIP, such as the
Round-trip delay between one MEP and the 2nd MEP subtracts the time delay between the first MEP and the first MIP, as the 2nd MEP and first
Time delay between MIP.
More specifically, it is periodically sent to the 2nd MEP by ethernet link in the first Maintenance Entity endpoint MEP double
In parameter configuration flow before to latency measurement message DMM messages, the first MEP is by ethernet link to the ether
At least one MIP of network chain road sends hop-by-hop measurement performance and measures notice message HMM messages, includes mark in the HMM messages
Know the parameter of the project of hop-by-hop performance test, the project includes delay testing;
Later, the hop-by-hop performance measurement response that the first MIP is fed back after hop-by-hop measurement parameter learning success is received to disappear
Cease HMR.
When needing to measure unidirectional shake, after step 605, operation below can also be performed in the first MEP, such as:
According to the first MEP described in the mathematic interpolation of the second timestamp and first time stamp in former and later two periods described in
The unidirectional shake in the first directions MIP;For example, the unidirectional shake=(t2 of the first MEP to the first directions MIP in T1 periods to T2 periods
(T2)-t1(T2))-(t2(T1)-t1(T1))
According to the first MIP described in the mathematic interpolation of the 6th timestamp and the 5th timestamp in former and later two periods described in
The unidirectional shake in the first directions MEP;Such as the unidirectional shake=(t6 of the first MIP to the first directions MEP in T1 periods to T2 periods
(T2)-t5(T2))-(t6(T1)-t5(T1)).
Another kind ethernet performance measurement method provided in an embodiment of the present invention can also specifically be applied to measure time delay;Ginseng
See Fig. 7, an embodiment of the present invention provides another ethernet delay measurement method, the method includes:
701, the first MIP obtain the first MEP and are reported by the DMM that ethernet link is periodically sent to the 2nd MEP
Text;
Specifically, the first MEP and the 2nd MEP are located at the both ends of the ethernet link, described first
It is provided at least one Maintenance Entity intermediate point MIP between MEP and the 2nd MEP, described is carried in the DMM messages
One timestamp t1;
702, after the first MIP receives the DMM messages, read first time stamp t1, and record receive it is described
Second timestamp t2 of DMM messages;
703, the first MIP receive the first DMR messages that the 2nd MEP is sent to the first MEP, and record and receive
5th timestamp t5 of the first DMR messages;
704, the first MIP send the 2nd DMR messages to the first MEP, and the DMR messages include the first time
Stab t1, the second timestamp t2 and the 5th timestamp t5;
After first MEP receives the first DMR messages, record receives the 6th timestamp of the first DMR messages,
And the first MEP and described the are calculated according to each timestamp for being carried in the first DMR messages and the 2nd DMR messages
Message round-trip delay, the first MEP between two MEP and the message round-trip delay between the first MIP.
In the parameter configuration flow before carrying out latency measurement, the first MIP receives the first MEP and passes through ether
The hop-by-hop performance measurement notice message HMM that network chain road is sent, and according to the HMM received, determine tested business report
The VLAN ID and priority and performance test project of text;Later, the response of hop-by-hop performance measurement is sent to the first MEP to disappear
HMR is ceased, according to the VLAN ID of the tested service message and priority and determines performance test event, configuration testing ginseng
Number.
Fig. 8 is the information exchange schematic diagram of ethernet delay measurement method provided in an embodiment of the present invention, as shown in figure 8,
The method includes:
801, the first MEP periodically send two-way latency measurement message DMM to the 2nd MEP by ethernet link and report
Text;
Specifically, the first MEP and the 2nd MEP are located at the both ends of the ethernet link, described
At least one MIP being provided between one MEP and the 2nd MEP including the first MIP carries in the DMM messages
One timestamp, at the time of the first time stamp t1 sends the DMM to characterize the first MEP;
More specifically, the first MEP can select DMM messages being interspersed in tested service message, at regular intervals
It is inserted into one, time interval is as a measurement period.
802, the first MIP receive DMM messages, read first time stamp t1, and record the second timestamp t2, and described the
At the time of two timestamp t2 receive the DMM messages for characterizing the MIP;
803, the 2nd MEP send the first two-way latency measurement after receiving the DMM messages, to the first MEP and ring
Answer DMR messages;
Specifically, carrying third timestamp t3 and the 4th timestamp t4 in the first DMR messages;The third time
At the time of stamp t3 receives the DMM messages for characterizing the 2nd MEP;The 4th timestamp t4 is for characterizing described the
At the time of two MEP send the first DMR messages;
804, the first MIP receive the first DMR messages, and record the 5th timestamp t5, and the 5th timestamp t5 is used
At the time of the first DMR messages being received to characterize the first MIP;
805, the first MIP send the 2nd DMR messages to the first MEP, and the DMR messages include described first
Timestamp t1, the second timestamp t2 and the 5th timestamp t5;
806, the first MEP record the 6th timestamp t6, institute after receiving the first DMR messages and the 2nd DMR messages
At the time of stating the 6th timestamp t6 and receive the first DMR messages for characterizing the first MEP;
807, the first MEP according to each timestamp calculate the message between the first MEP and the 2nd MEP it is round-trip when
Prolong, the message round-trip delay between the first MEP and the first MIP.
For example, the message round-trip delay between the first MEP and the 2nd MEP is calculated especially by such as under type:
The subtractive of 6th timestamp and the first time stamp removes the 4th timestamp and the third timestamp
Difference.
2nd MEP to the 2nd MEP round-trip delays in T1 periods=(t6(T1)-t1(T1))-(t4(T1)-t3(T1))
Message round-trip delay between first MEP and the first MIP is calculated especially by such as under type:
The subtractive of 6th timestamp and the first time stamp removes the 5th timestamp and second timestamp
Difference.
First MEP to the MIP round-trip delays=(t6 in T1 periods(T1)-t1(T1))-(t5(T1)-t2(T1))
Later, can according between the first MEP and the 2nd MEP message round-trip delay and the first MEP
Message round-trip delay between the first MIP, calculates the time delay between the 2nd MEP and the first MIP, such as the
Round-trip delay between one MEP and the 2nd MEP subtracts the time delay between the first MEP and the first MIP, as the 2nd MEP and first
Time delay between MIP.
It is arrived according to the first MEP described in the mathematic interpolation of the second timestamp and first time stamp in former and later two periods
The unidirectional shake in the first directions MIP;For example, the unidirectional shake of the 2nd MEP to the first directions MIP in T1 periods to T2 periods
=(t2(T2)-t1(T2))-(t2(T1)-t1(T1))
According to the first MIP described in the mathematic interpolation of the 6th timestamp and the 5th timestamp in former and later two periods described in
The unidirectional shake in the first directions MEP;Such as the unidirectional shake=(t6 of the first MIP to the first directions MEP in T1 periods to T2 periods
(T2)-t5(T2))-(t6(T1)-t5(T1)).
One Way Delay between remaining node, and so on, seldom repeat.
By above-described embodiment, the first MEP periodically sends DMM by ethernet link to the 2nd MEP, in Ethernet
Maintenance Entity intermediate point MIP in link, time of measuring stamp, and it is reported to the first MEP, by the first MEP according to each time
Stamp calculates the first MEP to the time delay between the MIP and the first MEP and the 2nd MEP.It is real through the invention
Example is applied, the latency measurement of end-to-end ethernet link and the first MEP between the first MEP to the 2nd MEP can be once completed and arrive
The latency measurement of each section of ethernet link, takes multiple measurements without subregion between each MIP, you can while realizing that performance is surveyed
The purpose of amount and fault location.
Correspondingly, referring to Fig. 9, an embodiment of the present invention provides a kind of ethernet performance measuring device, described device can be with
It is deployed in the first MEP, for realizing method shown in Fig. 1, Fig. 3, Fig. 5, Fig. 6 and Fig. 8 of the present invention;As shown in figure 9, described device
Including:
First packet sending unit 901 is periodically asked to the 2nd MEP sending performance measurements for passing through ethernet link
Seek message, the first MEP and the 2nd MEP are located at the both ends of the ethernet link, the first MEP and described
At least one MIP being provided between 2nd MEP including the first Maintenance Entity intermediate point MIP, the performance measurement are asked
It includes first performance measurement parameter to seek message;
First receiving unit 902 measures response message for receiving the first performance that the 2nd MEP is sent, and described the
Third performance measurement parameter and the 4th performance measurement parameter are carried in one performance measurement response message;
Second receiving unit 903, the second performance measurement response message sent for receiving the first MIP, described the
The first performance measurement parameter, the second performance measurement parameter and the 5th performance measurement are carried in two performance measurement response messages
Parameter;
Storage unit 904 measures response message for receiving the first performance in first receiving unit 902
When, record the 6th performance measurement parameter;
Arithmetic element 905, for according to first performance measurement parameter, the second performance measurement parameter, third performance measurement ginseng
Number, the 4th performance measurement parameter, the 5th performance measurement parameter and the 6th performance measurement parameter calculate the first MEP
The performance parameter between performance parameter and the first MEP and the first MIP between the 2nd MEP.
Further, described device further includes the second packet sending unit and third receiving unit;
Second packet sending unit, for passing through the ethernet link period in first packet sending unit 901
Property to the 2nd MEP sending performances measure request message before, pass through the ethernet link send hop-by-hop performance measurement notice
Message HMM, the HMM include identical VLAN ID VLAN ID and priority with tested service message, are gone back
Information is indicated including project to be measured;
The third receiving unit, the hop-by-hop performance measurement response message HMR for receiving the first MIP feedbacks.
In one implementation, the project instruction information to be measured specifically indicates to measure packet loss;The quantifier to be measured
Mesh instruction information specifically indicates to measure packet loss;The performance measurement request message is packet loss measurement request message LMM messages, described
First performance measurement parameter is the first packet accouter value, and the first packet accouter value is specially that the first MEP is sent
When the LMM messages, the Counter Value of the transmission packet accouter of the first MEP;The transmission packet counting of first MEP
Device is for counting the first MEP tested service messages sent to the 2nd MEP;
It is that the first packet loss measures response message LMR messages, the first LMR messages that the first performance, which measures response message,
In also carry the first packet accouter value;
The third performance measurement parameter is third packet accouter value, and the third packet accouter value is specially described
When 2nd MEP receives the LMM messages, the Counter Value of the reception packet accouter of the 2nd MEP;2nd MEP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the 2nd MEP carry out
It counts;
4th performance measurement parameter is the 4th packet accouter value, and the 4th packet accouter value is specially described
When 2nd MEP sends the first LMR messages, the Counter Value of the transmission packet accouter of the 2nd MEP;Described second
Based on tested service message of the transmission packet accouter of MEP by being sent to the first MEP to the 2nd MEP carries out
Number;
The second performance measurement response message is the 2nd LMR messages;
Second performance measurement parameter is the second packet accouter value, and the second packet accouter value is specially described
When first MIP receives the LMM messages, the Counter Value of the reception packet accouter of the first MIP;First MIP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the first MIP carry out
It counts;
5th performance measurement parameter is the 5th packet accouter value, and the 5th packet accouter value is specially described
When first MIP receives the first LMR messages, the Counter Value of the transmission packet accouter of the first MIP;Described first
Based on tested service message of the transmission packet accouter of MIP by being sent to the first MEP to the first MIP carries out
Number;
6th performance measurement parameter is the 6th packet accouter value, and the 6th packet accouter value is specially described
When first MEP receives the first LMR messages, the Counter Value of the reception packet accouter of the first MEP;Described first
Based on the tested service message that the 2nd MEP of the count pick up device of MEP by being received to the first MEP is sent carries out
Number.
The arithmetic element 905 is specifically used for:Obtain the first packet accouter value of period 1, the second packet accouter
Value, third packet accouter value, the 4th packet accouter value, the 5th packet accouter value and the 6th packet accouter value;It obtains
The first packet accouter value of second round, the second packet accouter value, third packet accouter value, the 4th packet accouter
Value, the 5th packet accouter value and the 6th packet accouter value;With the first packet accouter value of period 1 and second round
The first packet accouter value difference, subtract, the 5th packet accouter value of period 1 and the 5th message meter of second round
The difference of number device value, is calculated the number of dropped packets between the first MEP to the first MIP;With the first packet accouter value of period 1
With the difference of the first packet accouter value of second round, subtract, the third packet accouter value of period 1 and second round
The difference of third packet accouter value, is calculated the number of dropped packets between the first MEP to the 2nd MEP.
In another implementation, the project instruction information to be measured specifically indicates to measure time delay;The performance is surveyed
Amount request message is two-way latency measurement message DMM messages, and it is that the first two-way time delay is surveyed that the first performance, which measures response message,
Amount response DMR messages, the first performance measurement parameter are to send the first of the DMM messages for characterizing the first MEP
Timestamp;
The third performance measurement parameter carried in the first DMR messages is that the 2nd MEP receives the DMM
The third timestamp of message time, the 4th performance measurement parameter are that the 2nd MEP sends the of the first DMR messages
Four timestamps;
The second performance measurement response message is the 2nd DMR messages, described second carried in the 2nd DMR messages
Performance measurement parameter is the second timestamp for the time that the first MIP receives the DMM messages, the 5th performance measurement
Parameter is the 5th timestamp for the time that the first MIP receives the first DMR messages, the 6th performance measurement parameter
The 6th timestamp of the first DMR messages is received for the first MEP.
The arithmetic element 905 is specifically used for:The difference stabbed with the 6th timestamp and the first time, subtracts, institute
The difference for stating the 4th timestamp and the third timestamp, the message being calculated between the first MEP and the 2nd MEP are past
Return time delay;The difference stabbed with the 6th timestamp and the first time, subtracts, the 5th timestamp and second time
The difference of stamp, is calculated the message round-trip delay between the first MEP and MIP.
The arithmetic element 905 is specifically additionally operable to:Obtain the first time stamp of period 1, the second timestamp, when third
Between stamp, the 4th timestamp, the 5th timestamp and timestamp;Obtain the first time stamp of second round, the second timestamp, when third
Between stamp, the 4th timestamp, the 5th timestamp and timestamp;It is stabbed with the second timestamp and first time of the second round
Difference subtracts, and the second timestamp of period 1 and the at the first time difference of stamp are calculated between the first MEP to the first MIP
Unidirectional shake;It with the difference of the 6th timestamp and the 5th timestamp of the second round, subtracts, the 6th time of period 1
The difference of stamp and the 5th timestamp, is calculated the unidirectional shake between the first MIP to the first MEP;
In the present embodiment, the concrete function details of each unit of the ethernet performance measuring device can refer to the present invention
Method shown in Fig. 1, Fig. 3, Fig. 5, Fig. 6 and Fig. 8, details are not described herein.
As shown in Figure 10, an embodiment of the present invention provides another ethernet performance measuring device, described device can portion
Administration in mip, can be used for realizing method shown in Fig. 2, Fig. 4, Fig. 5, Fig. 7 and Fig. 8 of the present invention;As seen from Figure 10, described device packet
It includes:
First acquisition unit 1001, for obtain the first Maintenance Entity endpoint MEP by ethernet link periodically
Include first performance measurement parameter in the performance measurement request message to the performance measurement request message of the 2nd MEP transmissions, and
Record the first performance measurement parameter and the second performance measurement parameter;
Wherein, the first MEP and the 2nd MEP is located at the both ends of the ethernet link, the first MEP
At least one MIP being provided between the 2nd MEP including the first MIP;
Second acquisition unit 1002 is rung for obtaining the first performance that the 2nd MEP is sent to the first MEP and measuring
Message is answered, and records the 5th performance measurement parameter;The first performance, which measures, carries third performance measurement ginseng in response message
Number and the 4th performance measurement parameter;
Transmission unit 1003, for sending the second performance measurement response message to the first MEP, second performance is surveyed
The first performance measurement parameter, the second performance parameter and the 5th performance measurement parameter are carried in amount response message, in order to
First MEP measures response message and the second performance measurement response message according to the first performance, calculates described the
The performance parameter between performance parameter and the first MEP and the first MIP between one MEP and the 2nd MEP.
Further, described device further includes third acquiring unit, determination unit and dispensing unit;The third obtains single
Member, for obtaining the first MEP by the ethernet link periodically to described in the first acquisition unit 1001
Before the performance measurement request message that 2nd MEP is sent, the hop-by-hop that the first MEP is sent by the ethernet link is obtained
Performance measurement notice message HMM, the HMM include identical VLAN ID VLAN with tested service message
ID and priority further include project instruction information to be measured;
The determination unit, for according to the HMM, determining performance test event;
The dispensing unit, for according to the VLAN ID and priority of the tested service message and determination by
Jump performance test project, configuration testing parameter;
The transmission unit 1003 is additionally operable to send hop-by-hop performance measurement response message HMR to the first MEP;
In the first realization method, the project instruction information to be measured specifically indicates to measure packet loss, and the performance is surveyed
Amount request message is packet loss measurement request message LMM messages, and the first performance measurement parameter is the first packet accouter value, institute
When to state the first packet accouter value be specially that the first MEP sends the LMM messages, the transmission message meter of the first MEP
The Counter Value of number device;The transmission packet accouter of first MEP is for sending the first MEP to the 2nd MEP
Tested service message counted;
It is that the first packet loss measures response message LMR messages, the first LMR messages that the first performance, which measures response message,
In also carry the first packet accouter value;
The third performance measurement parameter is third packet accouter value, and the third packet accouter value is specially described
When 2nd MEP receives the LMM messages, the Counter Value of the reception packet accouter of the 2nd MEP;2nd MEP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the 2nd MEP carry out
It counts;
4th performance measurement parameter is the 4th packet accouter value, and the 4th packet accouter value is specially described
When 2nd MEP sends the first LMR messages, the Counter Value of the transmission packet accouter of the 2nd MEP;Described second
Based on tested service message of the transmission packet accouter of MEP by being sent to the first MEP to the 2nd MEP carries out
Number;
The second performance measurement response message is the 2nd LMR messages;
Second performance measurement parameter is the second packet accouter value, and the second packet accouter value is specially described
When first MIP receives the LMM messages, the Counter Value of the reception packet accouter of the first MIP;First MIP
The tested service messages that send of reception packet accouter the first MEP that is used to receive the first MIP carry out
It counts;
5th performance measurement parameter is the 5th packet accouter value, and the 5th packet accouter value is specially described
When first MIP receives the first LMR messages, the Counter Value of the transmission packet accouter of the first MIP;Described first
Based on tested service message of the transmission packet accouter of MIP by being sent to the first MEP to the first MIP carries out
Number;
6th performance measurement parameter is the 6th packet accouter value, and the 6th packet accouter value is specially described
When first MEP receives the first LMR messages, the Counter Value of the reception packet accouter of the first MEP;Described first
Based on the tested service message that the 2nd MEP of the count pick up device of MEP by being received to the first MEP is sent carries out
Number.
In second of realization method, the project instruction information to be measured specifically indicates to measure time delay;The performance is surveyed
Amount request message be two-way latency measurement message DMM messages, the first performance measurement parameter for the first MEP transmission institute
State the first time stamp of DMM messages;That is, the first time stabs the transmission DMM messages for characterizing the first MEP
At the time of;
It is the first two-way latency measurement response message DMR messages that the first performance, which measures response message, described secondary
It is the 2nd DMR messages that response message, which can be measured,;
Second performance measurement parameter is the second timestamp that the first MIP receives the DMM messages;That is,
At the time of the first time stamp receives the DMM messages for characterizing the first MIP;
The third performance measurement parameter is the third timestamp that the 2nd MEP receives the DMM messages, that is,
At the time of the third timestamp receives the DMM messages for characterizing the 2nd MEP;4th performance measurement parameter
The 4th timestamp of the first DMR messages is sent for the 2nd MEP, that is, the 4th timestamp is described for characterizing
At the time of 2nd MEP sends the first DMR messages;
The 5th performance measurement parameter carried in the 2nd DMR messages is that the first MIP receives described the
5th timestamp of one DMR messages, that is, the 5th timestamp receives the first DMR for characterizing the first MIP
At the time of message;6th performance measurement parameter is receive the first DMR messages for characterizing the first MEP the
Six timestamps, that is, at the time of the 6th timestamp receives the first DMR messages for characterizing the first MEP.
In the present embodiment, the concrete function details of each unit of the ethernet performance measuring device can refer to the present invention
Method shown in Fig. 2, Fig. 4, Fig. 5, Fig. 7 and Fig. 8, details are not described herein.
As shown in figure 11, the embodiment of the present invention additionally provides a kind of ethernet performance measuring device, and described device can portion
Affix one's name to the first MEP in, for executing method shown in Fig. 1, Fig. 3, Fig. 5, Fig. 6 and Fig. 8 of the present invention;As shown in figure 11, the dress
It sets including network interface 1101, processor 1102 and memory 1103.System bus 1104 is for connecting network interface 1101, place
Manage device 1102 and memory 1103.
Network interface 1101 is used for and other network node communications.
Memory 1103 is for storing program.Specifically, program may include program code, and said program code includes meter
Calculation machine operational order.Memory 1103 may include high-speed random access memory(Random access memory, referred to as
RAM)Memory, it is also possible to further include nonvolatile memory(non-volatile memory), a for example, at least disk deposits
Reservoir.It can also include device driver in the memory 1103.
Processor 1102 executes the program stored in memory 1103, for executing Ethernet provided in an embodiment of the present invention
Performance measurement method, including:
By ethernet link periodically request message, the first MEP and described are measured to the 2nd MEP sending performances
2nd MEP is located at the both ends of the ethernet link, is provided between the first MEP and the 2nd MEP including
At least one Maintenance Entity intermediate point MIP of one MIP, the performance measurement request message include that first performance measures ginseng
Number;
It receives the first performance that the 2nd MEP is sent and measures response message, the first performance measures in response message
Carry third performance measurement parameter and the 4th performance measurement parameter;
The second performance measurement response message that the first MIP is sent is received, in the second performance measurement response message
Carry the first performance measurement parameter, the second performance measurement parameter and the 5th performance measurement parameter;
When receiving the first performance measurement response message, the 6th performance measurement parameter is recorded;
According to first performance measurement parameter, the second performance measurement parameter, third performance measurement parameter, the 4th performance measurement ginseng
Number, the 5th performance measurement parameter and the 6th performance measurement parameter calculate between the first MEP and the 2nd MEP
Performance parameter and the first MEP and the first MIP between performance parameter.
Specifically, the processor 1102 can control the network interface 1101 and send the performance measurement request report
Text receives the first performance and measures response message and the second performance measurement response message;
The memory 1103 can also be used to preserve first performance measurement parameter, the second performance measurement parameter, third performance
Measurement parameter, the 4th performance measurement parameter, the 5th performance measurement parameter and the 6th performance measurement parameter.
As shown in figure 12, an embodiment of the present invention provides a kind of Ethernet packet loss measuring device, described device can dispose
In first MIP, for executing method shown in Fig. 2, Fig. 4, Fig. 5, Fig. 7 and Fig. 8 of the present invention;As shown in figure 12, described device includes
Network interface 1201, processor 1202 and memory 1203.System bus 1204 is for connecting network interface 1201, processor
1202 and memory 1203.
Network interface 1201 is used for and other network node communications.
Memory 1203 is for storing program.Specifically, program may include program code, and said program code includes meter
Calculation machine operational order.Memory 1203 may include high-speed random access memory(Random access memory, referred to as
RAM)Memory, it is also possible to further include nonvolatile memory(non-volatile memory), a for example, at least disk deposits
Reservoir.It can also include device driver in the memory 1203.
Processor 1202 executes the program stored in memory 1203, for executing Ethernet provided in an embodiment of the present invention
Performance measurement method, including:
The first Maintenance Entity endpoint MEP is obtained to survey by the performance that ethernet link is periodically sent to the 2nd MEP
Request message is measured, includes first performance measurement parameter in the performance measurement request message, and record the first performance and measure
Parameter and the second performance measurement parameter;Wherein, the first MEP and the 2nd MEP are located at the ethernet link
Both ends, at least one MIP being provided between the first MEP and the 2nd MEP including the first MIP;
It obtains the first performance that the 2nd MEP is sent to the first MEP and measures response message, and record the 5th performance measurement
Parameter;The first performance measures in response message and carries third performance measurement parameter and the 4th performance measurement parameter;
The second performance measurement response message is sent to the first MEP, is carried in the second performance measurement response message
There are the first performance measurement parameter, the second performance measurement parameter and the 5th performance measurement parameter, in order to the first MEP roots
Response message and the second performance measurement response message are measured according to the first performance, calculates the first MEP and described the
The performance parameter between performance parameter and the first MEP and the first MIP between two MEP.
Specifically, the processor 1202 can obtain the performance measurement request message by the network interface 1201
Response message is measured with the first performance, sends the second performance measurement response message;
The memory 1203 can also be used to preserve first performance measurement parameter, the second performance measurement parameter and the 5th performance
Measurement parameter.
In addition, the embodiment of the present invention can also provide a kind of ethernet performance measuring system, including such as Fig. 9 of the present invention or 11
Shown first MEP, the 2nd MEP and the first MIP as shown in Figure 10 of the present invention or 12;First MEP and the 2nd MEP points
Not Wei Yu ethernet link both ends, be provided with including the first MIP between the first MEP and the 2nd MEP
At least one MIP.Wherein,
First MEP, for periodically being asked to the 2nd MEP sending performance measurements by the ethernet link
It includes first performance measurement parameter to ask message, the performance measurement request message message;Receive the primary of the 2nd MEP transmissions
Response message can be measured, and records the 6th performance measurement parameter, the first performance measures in response message and carries third
It can measurement parameter and the 4th performance measurement parameter;The second performance measurement response message of the first MIP transmissions is received, it is described secondary
It can measure in response message and carry the first performance measured parameter value, the second performance measurement parameter and the 5th performance measurement ginseng
Number;And according to the first performance measurement parameter, the second performance measurement parameter, third performance measurement parameter, the 4th performance measurement
Parameter, the 5th performance measurement parameter and the 6th performance measurement parameter, calculate the first MEP and the 2nd MEP it
Between performance parameter and the first MEP and MIP between performance parameter;
2nd MEP, the performance measurement request message sent for receiving the first MEP, and record
The third performance measurement parameter;It is additionally operable to obtain the 4th performance measurement parameter, and described the is sent to the first MEP
One performance measurement response message;
First MIP is used to obtain the performance measurement request message that the first MEP is sent, and records described first
Performance measurement parameter and second performance measurement parameter;Obtain the 2nd MEP is sent to the first MEP described first
Performance measurement response message records the 5th performance measurement parameter;And send the second performance measurement response to the first MEP
Message.
Specifically, the function and structure of the parts related to the present invention the first MEP may refer to the institutes of Fig. 9 of the present invention or 11
Show that embodiment, the function and structure of the parts related to the present invention the first MIP may refer to shown in Figure 10 of the present invention or 12 in fact
Example is applied, details are not described herein.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure
Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate
The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description.
These functions are implemented in hardware or software actually, depend on the specific application and design constraint of technical solution.
Professional technician can use different methods to achieve the described function each specific application, but this realization
It should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can use hardware, processor to execute
The combination of software module or the two is implemented.Software module can be placed in random access memory(RAM), memory, read-only memory
(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium well known to interior.
Above-described specific implementation mode has carried out further the purpose of the present invention, technical solution and advantageous effect
It is described in detail, it should be understood that the foregoing is merely the specific implementation mode of the present invention, is not intended to limit the present invention
Protection domain, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include
Within protection scope of the present invention.