WO2012003745A1 - Method and system for initiating a counter in packet loss rate measurement - Google Patents

Method and system for initiating a counter in packet loss rate measurement Download PDF

Info

Publication number
WO2012003745A1
WO2012003745A1 PCT/CN2011/074537 CN2011074537W WO2012003745A1 WO 2012003745 A1 WO2012003745 A1 WO 2012003745A1 CN 2011074537 W CN2011074537 W CN 2011074537W WO 2012003745 A1 WO2012003745 A1 WO 2012003745A1
Authority
WO
WIPO (PCT)
Prior art keywords
mep
counter
packet loss
loss rate
rate measurement
Prior art date
Application number
PCT/CN2011/074537
Other languages
French (fr)
Chinese (zh)
Inventor
肖敏
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012003745A1 publication Critical patent/WO2012003745A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/20Arrangements for detecting or preventing errors in the information received using signal quality detector
    • H04L1/203Details of error rate determination, e.g. BER, FER or WER
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss

Definitions

  • the present invention relates to a packet loss rate measurement technique, and more particularly to a method and system for starting a counter in a packet loss rate measurement. Background technique
  • the Standardization Sector (ITU-T) proposed a technical implementation scheme for the packet loss rate measurement function in Ethernet in the Y.1731 standard released in February 2008.
  • the Internet Engineering Task Force (IETF), a standard organization, is advancing the technical implementation of the packet loss rate measurement function in the Multi-Protocol Label Switching-Transport Profile (MPLS-TP) network.
  • MPLS-TP Multi-Protocol Label Switching-Transport Profile
  • the technical solutions in the ITU-T Y.1731 standard are consistent, and the two are only different for the packet network of the application.
  • FIG. 1 is a schematic diagram of the functional entity in the packet network.
  • the provider edge device Provider Edge, located at the edge of the packet network, PE
  • the provider edge device can create one or more maintenance end nodes ( Maintenance End Point, ⁇ ) based on the port.
  • One or more maintenance can be created based on the port on the provider intermediate device ( Provider Device, P ) located in the middle of the packet network.
  • Maintenance Intermediate Point MIP
  • the packet loss rate measurement function can be performed between the MEP and the MEP, and the packet loss rate measurement function measures for a predetermined Class of Service (CoS).
  • CoS Class of Service
  • Step 1 Start the counter for a certain CoS at the initiator MEP of the packet loss rate measurement (referred to as MEP1 in the subsequent step).
  • the method of starting the counter may be management module configuration or control module configuration, and the counter will accumulate records after startup. The number of all transmission and reception packets belonging to the CoS on the MEP.
  • the CoS identification method differs for different packet networks.
  • a specific service level in Ethernet is identified by a Priority Code Point (PCP) field in the Ethernet frame header, in MPLS-
  • PCP Priority Code Point
  • PHB Per-Hop Behavior
  • Step 2 In the peer MEP of the packet loss rate measurement (referred to as MEP2 in the subsequent step), start the counter for a certain CoS.
  • the method of starting the counter may be management module configuration or control module configuration, counter function and CoS identification method. Same as described in the first step, but the CoS here cannot be chosen at will, but must be consistent with the CoS selected in the first step.
  • the third step MEP1 sends a packet loss rate measurement request message to the MEP2 through the data module, and carries the number of packets T1 recorded by the counter on the MEP1 at the request message sending time.
  • Step 4 After receiving the packet loss rate measurement request message sent by the MEP1, the data module sends a packet loss rate measurement reply message to the MEP1, which carries the received T1 and the counter recorded on the request message receiving time ⁇ 2.
  • the number of packets received by the counter on the number of packets R1 and the reply message transmission time ⁇ 2 is ⁇ 2, and the number of packets recorded by the counter on the MEP1 is R2 when the packet loss rate measurement reply message is received.
  • Step 5 After a predetermined fixed period, the MEP1 sends a second packet loss rate measurement request message to the MEP2, carrying the number of packets T3 recorded by the counter on the MEP1 at the request message sending time.
  • Step 6 After receiving the packet loss rate measurement request message sent by the MEP1, the MEP2 sends a packet loss rate measurement reply message to the MEP1, carrying the received T3, the number of packets recorded by the counter on the request message receiving time ⁇ 2 R3, and the number of packets T4 recorded by the counter on the MEP2 at the time of the reply message transmission, when the packet loss rate measurement reply message is received, the number of packets recorded by the counter on the MEP1 is R4.
  • MEP1 can calculate the packet loss rate in the two directions during the time period by using the difference between the number of previously received and received packets.
  • the calculation formula is as follows:
  • the packet loss rate of MEP2 to MEP1 ((T4-T2)-(R4-R2)) / (T4-T2)
  • the above calculation result is only the packet loss rate during this time period, and the actual packet loss rate measurement function is used.
  • the packet loss rate measurement result completes the continuous monitoring of a CoS service on the tested communication link;
  • the on-demand measurement refers to setting the number of measurements before the measurement starts, repeating the third step in a certain period of time and After the process described in the following steps, a certain number of packet loss rate measurement results are obtained, and phase monitoring of a CoS service on the tested communication link is completed.
  • the counter MEP startup counter measured by the control plane at the packet loss rate is performed by using Resource Reservation Protocol (TRAM) (RSVP-TE) with traffic engineering. Expanded to achieve, it can only be applied to active packet loss rate measurement, can not be applied to on-demand packet loss rate measurement, and the existing solution is to automatically follow the same configuration parameters for the MEPs at both ends of the tested communication link.
  • the initiator MEP is configured as a packet loss rate measurement to achieve the purpose of simultaneously starting a counter for a certain CoS at both ends of the MEP.
  • the counter is started by the peer MEP of the packet loss rate measured by the management plane. It can be applied to both active packet loss rate measurement and on-demand packet loss rate measurement.
  • the existing packet loss rate measurement technology is respectively initiated at the initiator MEP of the packet loss rate measurement and the peer MEP.
  • the counter for a CoS is required, and the CoS for which the counter started by the peer MEP is required must be the same as the CoS for the counter started by the initiator MEP. If the counter MEP does not start the counter at the packet loss rate measurement, the packet loss rate measurement cannot be completed; if the counter that the peer MEP starts at the packet loss rate measurement is for the CoS and the counter that is started at the initiator MEP, If the CoS is inconsistent, the wrong packet loss rate measurement result will be obtained.
  • the peer MEP when the active packet loss rate is measured, the peer MEP is used to start the counter at the peer MEP.
  • the management plane configuration or control plane configuration is required on the peer MEP.
  • the CoS that is manually guaranteed by the configuration personnel to ensure that the started counter is synchronized with the CoS that is started by the MEP at the originating end; if configured through the control plane, the CoS and the counter for which the counter is automatically guaranteed by the RSVP-TE protocol
  • the CoS that the counter that the initiator MEP starts is directed to.
  • the existing solution automatically configures the peer MEP as another initiator MEP through the RSVP-TE protocol, and needs to configure more parameters, and another independent packet loss rate measurement process is started, so the implementation process is cumbersome.
  • the counter of the MEP is started at the opposite end of the packet loss rate measurement by the prior art solution, and the management plane configuration of the peer MEP is required, and the counter is manually guaranteed by the configuration personnel.
  • the CoS that is targeted is consistent with the CoS targeted by the counter launched by the MEP at the originating end, which requires a certain amount of human resources. Summary of the invention
  • the main object of the present invention is to provide a method and system for starting a counter in a packet loss rate measurement, which can simplify operation and save human resources.
  • a method for starting a counter in a packet loss rate measurement comprising:
  • the initiator maintenance node MEP starts a counter for the service level CoS for which the current packet loss rate is measured, and sends a start counter request message to the peer MEP.
  • the peer MEP After receiving the start counter request message, the peer MEP starts a corresponding counter. And returning a start counter reply message to the originating MEP.
  • the start counter request message carries at least the CoS for which the current packet loss rate measurement is performed; the corresponding counter of the peer MEP starts to: start the CoS for the current packet loss rate measurement carried by the start counter request message Counter
  • the start counter reply message carries at least an indication of whether the peer MEP is successful for the CoS start counter for the current packet loss rate measurement.
  • the method further includes: the initiator MEP performs the packet loss rate measurement configuration,
  • the packet loss rate measurement configuration parameters include: The transmission period of the CoS and packet loss rate measurement messages for the current packet loss rate measurement;
  • the packet loss rate measurement configuration parameters include: CoS, the transmission period of the packet loss rate measurement message, and the number of times the packet loss rate measurement message is sent.
  • the initiator MEP sends a start counter request message to the peer MEP as follows:
  • the data module or the control module sends a start counter request message to the peer MEP.
  • the data module sends the start to the peer MEP. Counter request message.
  • the peer MEP After receiving the start counter request message, the peer MEP starts a corresponding counter, and returns a start counter reply message to the initiator MEP as:
  • the peer MEP For the initiator counter request message sent by the originating MEP through the data module or the control module, the peer MEP receives the corresponding data module or the control module, and starts the corresponding counter, and then returns a startup counter reply to the initiator MEP. Message.
  • the method further includes:
  • the startup counter reply message indicates that the startup counter is successful, and the initiator MEP loses. Packet rate measurement; The start counter reply message indicates that the start counter fails, and the initiator MEP terminates the packet loss rate measurement and returns an error prompt.
  • a system for starting a counter in a packet loss rate measurement comprising: an initiator MEP and a peer MEP; wherein
  • the initiator MEP is configured to send a start counter request message to the peer MEP after starting the counter for the service level CoS for the current packet loss rate measurement;
  • the peer MEP is configured to start a corresponding counter after receiving a start counter request message from the initiator MEP, and return a start counter reply message to the initiator MEP.
  • the start counter request message sent by the initiator MEP to the peer MEP carries at least the CoS for which the current packet loss rate measurement is performed;
  • the peer MEP starts a corresponding counter as: a counter for initiating a CoS for the current packet loss rate measurement carried by the startup counter request message;
  • the start counter reply message returned by the peer MEP to the initiator MEP carries at least an indication of whether the peer MEP is successful for the CoS start counter for which the current packet loss rate measurement is performed.
  • the initiating MEP is further configured to perform a packet loss rate measurement configuration.
  • the packet loss rate measurement configuration parameter includes: the CoS and the target of the packet loss rate measurement. Packet loss rate measurement message transmission period; when the initiator MEP is configured to measure the on-demand packet loss rate, the packet loss rate measurement configuration parameters include: CoS and packet loss rate measurement messages for the current packet loss rate measurement The number of times the transmission period and the packet loss rate measurement message are sent.
  • the initiator MEP includes a data module and a control module
  • the peer MEP includes a data module and a control module
  • the initiator MEP sends a start counter request message to the peer MEP as follows:
  • the data module or the control module sends a start counter request message to the peer MEP; the initiator MEP performs the on-demand packet loss rate.
  • a start counter request message is sent to the peer MEP through the data module therein.
  • the peer MEP After receiving the start counter request message, the peer MEP starts a corresponding counter, and returns a start counter reply message to the initiator MEP as:
  • the peer MEP For the initiator counter request message sent by the initiator MEP through its data module or control module, the peer MEP receives the data through its corresponding data module or control module, and starts the corresponding counter, and then returns to the initiator MEP to start. The counter replies to the message.
  • the initiator MEP is further configured to: when the start counter reply message indicates that the start counter is successful, perform a packet loss rate measurement; and when the start counter reply message indicates that the start counter fails, terminate the packet loss rate measurement, and return an error prompt.
  • the method and system for starting a counter in the packet loss rate measurement of the present invention after the MEP is configured with the packet loss rate measurement function at the initiating end of the packet loss rate measurement, the initiating MEP sends a start counter request message to the peer MEP through the data module or the control module. Carrying the service level for the packet loss rate measurement configured on the initiating MEP, the peer MEP is required to start a counter for the service level; after receiving the start counter request message, the peer MEP starts through the data module or the control module. Corresponding counters, and send a start counter reply message to the originating MEP, indicating that the counter is successfully or failed to start the service level.
  • the invention can start the counter on the peer MEP of the packet loss rate measurement, and does not need to configure the peer MEP as another initiator MEP, thereby avoiding unnecessary configuration on the peer MEP and simplifying operation;
  • the invention can save human resources by starting the corresponding counter through the data module or the control module.
  • Figure 1 is a schematic diagram of an OAM functional entity in a packet network
  • FIG. 2 is a schematic flow chart of a method for starting a counter in a packet loss rate measurement according to the present invention
  • FIG. 3 is a schematic flowchart of a packet loss rate measurement according to Embodiment 1 of the present invention.
  • FIG. 4 is a schematic flowchart of packet loss rate measurement according to Embodiment 2 of the present invention. detailed description
  • the technical problem to be solved by the present invention is to provide a method for starting a counter on a peer MEP in a packet network packet loss rate measurement function based on an OAM function entity, and overcoming the prior art scheme using a management module or a control module to configure the peer MEP.
  • the problem exists, and some unnecessary configurations in the prior art solution are omitted, including all configurations performed on the peer MEP through the management module configuration, and another initiation on the peer MEP when configured by the control module.
  • the MEP configuration fails to prevent the packet loss rate measurement failure caused by the inconsistency between the configuration of the CoS parameters on the initiating MEP and the peer MEP.
  • the basic idea of the present invention is: After the packet loss rate measurement function is configured on the MEP of the initiator of the packet loss rate measurement, the initiating MEP sends a start counter request message to the peer MEP through the data module or the control module, and carries the configuration on the MEP of the initiator.
  • the service level for the packet loss rate measurement requires the peer MEP to start a counter for the service level; after receiving the start counter request message, the peer MEP starts the corresponding counter through the data module or the control module, and initiates The MEP sends a Start Counter Reply message indicating that the counter was successfully or failed for the service level.
  • FIG. 2 is a schematic flowchart of a method for starting a counter in a packet loss rate measurement according to the present invention. As shown in FIG. 2, the method includes:
  • Step 201 The initiator MEP starts the counting of the CoS for the current packet loss rate measurement.
  • the initiator MEP starts the counter for the CoS for the current packet loss rate measurement, and implements the packet loss rate measurement function at the initiator MEP, and initiates the packet loss rate measurement before the packet loss rate measurement function is started.
  • the MEP also needs to send the packet loss rate measurement configuration parameters through the management module or the control module.
  • the packet loss rate measurement is one of the packet network OAM functions. It can be configured as active or on-demand. If the active packet loss rate measurement is configured, the packet loss rate measurement configuration parameters include: The transmission period of the CoS and packet loss rate measurement messages for the second packet loss rate measurement; if configured as the on-demand packet loss rate measurement, in addition to the above parameters, the packet loss rate measurement configuration parameter also includes the number of times the packet loss rate measurement message is sent. .
  • Step 202 The initiator MEP sends a start counter request message to the peer MEP, where the start counter request message carries at least the CoS for which the current packet loss rate measurement is performed.
  • the initiating MEP sends a start counter request message to the peer MEP through the data module or the control module. If the active packet loss rate is measured, the initiating MEP may send a start counter request message to the peer MEP through the data module or the control module. If it is an on-demand packet loss rate measurement, the initiator MEP can only send a start counter request message to the peer MEP through the data module.
  • the start counter request message carries at least the CoS for which the current packet loss rate measurement is performed, and the purpose is to require the peer MEP to start a counter for the CoS.
  • Step 203 After receiving the start counter request message, the peer MEP starts a counter for the CoS for which the current packet loss rate measurement is carried in the start counter request message.
  • Step 204 The peer MEP returns a start counter reply message to the initiator MEP, where the start counter reply message carries at least an indication of whether the peer MEP is successful for the CoS start counter for the current packet loss rate measurement.
  • the peer MEP replies to the start counter reply message by using the data module or the control module. Specifically, if the start counter request message is received through the data module, the peer MEP replies through the data module; if it is received through the control module The counter requests the message, and the peer MEP replies through the control module. For the message sent by the initiator MEP through the data module/control module, the peer MEP also needs to receive and execute through the corresponding data module/control module.
  • the start counter reply message carries at least an indication of whether the peer MEP is successful for the CoS start counter for which the current packet loss rate measurement is performed, and if it is an indication that the counter is successful, the initiator end After receiving the indication, the MEP will continue the process of measuring the packet loss rate according to the prior art; if it is the indication that the counter is failed, the initiator MEP will terminate the packet loss rate measurement process after receiving the indication, and return an error message. .
  • the present invention also provides a system for starting a counter in a packet loss rate measurement, the system comprising: an originating MEP and a peer MEP; wherein
  • the initiator MEP is configured to send a start counter request message to the peer MEP after starting the counter for the service level CoS for the current packet loss rate measurement;
  • the peer MEP is configured to start a corresponding counter after receiving a start counter request message from the initiator MEP, and return a start counter reply message to the initiator MEP.
  • the start counter request message sent by the initiator MEP to the peer MEP carries at least the CoS for which the current packet loss rate measurement is performed;
  • the peer MEP starts a corresponding counter as: a counter for initiating a CoS for the current packet loss rate measurement carried by the startup counter request message;
  • the start counter reply message returned by the peer MEP to the initiator MEP carries at least an indication of whether the peer MEP is successful for the CoS start counter for which the current packet loss rate measurement is performed.
  • the initiating MEP is further configured to perform a packet loss rate measurement configuration.
  • the packet loss rate measurement configuration parameter includes: the CoS and the target of the packet loss rate measurement. Packet loss rate measurement message transmission period; when the initiator MEP is configured to measure the on-demand packet loss rate, the packet loss rate measurement configuration parameters include: CoS and packet loss rate measurement messages for the current packet loss rate measurement The number of times the transmission period and the packet loss rate measurement message are sent.
  • the initiator MEP includes a data module and a control module
  • the peer MEP includes a data module and a control module
  • the initiator MEP sends a start counter request message to the peer MEP as follows:
  • the initiator MEP When the initiator MEP performs active packet loss rate measurement, it passes the data module or control module. The block sends a start counter request message to the peer MEP. When the initiator MEP performs the on-demand packet loss rate measurement, the data module sends a start counter request message to the peer MEP.
  • the peer MEP After receiving the start counter request message, the peer MEP starts a corresponding counter, and returns a start counter reply message to the initiator MEP as:
  • the peer MEP For the initiator counter request message sent by the initiator MEP through its data module or control module, the peer MEP receives the data through its corresponding data module or control module, and starts the corresponding counter, and then returns to the initiator MEP to start. The counter replies to the message.
  • the initiator MEP is further configured to: when the start counter reply message indicates that the start counter is successful, perform a packet loss rate measurement; and when the start counter reply message indicates that the start counter fails, terminate the packet loss rate measurement, and return an error prompt.
  • FIG. 3 is a schematic flowchart of packet loss rate measurement according to Embodiment 1 of the present invention. As shown in FIG. 3, the method for measuring packet loss rate in Embodiment 1 includes the following steps:
  • Step 301 The initiator of the packet loss rate measurement MEP configures and starts the active or on-demand packet loss rate measurement function, which can be completed by the management module or the control module.
  • the parameters to be configured include the transmission period of the CoS and packet loss rate measurement messages for the packet loss rate measurement. If the measurement is on-demand, in addition to the above parameters, you need to configure the transmission of the packet loss rate measurement message. frequency.
  • Step 302 After the configuration on the initiating MEP is completed, the MEP sends a start counter request OAM message to the peer MEP through the data module, and carries the CoS for the packet loss rate measurement configured on the initiating MEP, and requires the peer end. The MEP starts a counter for the CoS.
  • Step 303 After receiving the start counter request OAM message, the peer MEP starts a counter for the CoS carried in the message, and returns a start counter to reply OAM through the data module. A message indicating whether the startup counter was successful or not.
  • the start counter replies with an OAM message indicating that the start counter is successful.
  • Step 304 After receiving the start counter reply message indicating success, the originating MEP sends a packet loss rate measurement request message to the peer MEP according to the existing ITU-T Y.1731 standard or the IETF standard draft, and carries the request message sending time. The number of packets T1 recorded by the counter on the initiator MEP.
  • Step 305 After receiving the packet loss rate measurement request message, the peer end immediately responds to the packet loss rate measurement reply message, and carries the received T1 and the number of packets recorded by the counter on the opposite end of the request message receiving time. And the number of packets T2 recorded by the counter on the peer MEP at the time of sending the reply message.
  • the number of packets recorded by the counter on the originating MEP is R2.
  • Step 306 After the sending period of the packet loss rate measurement message configured in step 301, the initiating MEP sends a second packet loss rate measurement request message to the peer MEP, and carries the request message to send the counter on the MEP at the originating end.
  • the number of packets sent is T3.
  • Step 307 After receiving the packet loss rate measurement request message, the peer end immediately responds to the packet loss rate measurement reply message, and carries the received packet number R3 recorded by the counter on the peer end of the request message receiving time. And the number of packets T4 recorded by the counter on the peer MEP at the time of sending the reply message. When the packet loss rate measurement reply message is received, the number of packets recorded by the counter on the originating MEP is R4.
  • Step 308 After receiving the packet loss rate measurement reply message, the MEP uses the difference between the number of previously received and received packets to calculate the packet loss rate in the two directions during the time period.
  • the packet loss rate is calculated as follows:
  • Packet loss rate from the originating end to the opposite end ((T3 -T 1 )-(R3 -R 1 )) / (T3 -T 1 )
  • steps 306-308 are repeatedly performed periodically. If it is an active measurement, the number of repetitions is infinite. If it is an on-demand measurement, the number of repetitions is the number of times the packet loss rate measurement message is configured in step 301. Decide.
  • Example 2
  • the counter is started on the opposite MEP of the packet loss rate measurement by the control plane.
  • 4 is a schematic flowchart of packet loss rate measurement according to Embodiment 2 of the present invention. As shown in FIG. 4, the method for measuring packet loss rate in Embodiment 2 includes the following steps:
  • Step 401 The MEP of the initiator of the packet loss rate measurement is configured and the active packet loss rate measurement function is started.
  • the configuration may be performed by the management module or the control module, and the parameters to be configured include the CoS and the packet loss for the packet loss rate measurement. Rate measurement period of the message.
  • Step 402 After the configuration on the initiating MEP is completed, the control module sends a start counter request message to the peer MEP, and the message may be extended by the existing RSVP-TE protocol message, and the time configured on the initiating MEP is carried.
  • the CoS for the packet loss rate measurement requires the peer MEP to start the counter for the CoS.
  • Step 403 After receiving the start counter request message, the peer MEP starts a counter for the CoS carried in the message, and replies to the start counter reply message by using the control module, and the message may be extended by the existing RSVP-TE protocol message. Comes, indicating whether the startup counter is successful or not.
  • the start counter reply message indicates that the start counter is successful.
  • Step 404 After receiving the start counter reply message indicating success, the initiator MEP sends a packet loss rate measurement request message to the peer MEP according to the existing ITU-T Y.1731 standard or the IETF standard draft, and carries the request message sending time. The number of packets T1 recorded by the counter on the initiator MEP.
  • Step 405 After receiving the packet loss rate measurement request message, the peer end immediately responds to the packet loss rate measurement reply message, and carries the received T1, the number of the received packets recorded by the counter on the opposite end of the request message receiving time. And the counter on the opposite MEP at the time the reply message is sent The number of received packets T2, when the packet loss rate measurement reply message is received, the number of packets recorded by the counter on the originating terminal is R2.
  • Step 406 After the sending period of the packet loss rate measurement message configured in step 401, the initiating MEP sends a second packet loss rate measurement request message to the peer MEP, and carries the request message to send the counter on the MEP at the originating end.
  • the number of packets sent is T3.
  • Step 407 After receiving the packet loss rate measurement request message, the peer end immediately responds to the packet loss rate measurement reply message, and carries the received packet number R3 recorded by the counter on the peer end of the request message receiving time. And the number of packets T4 recorded by the counter on the peer MEP at the time of sending the reply message. When the packet loss rate measurement reply message is received, the number of packets recorded by the counter on the originating MEP is R4.
  • Step 408 After receiving the packet loss rate measurement reply message, the MEP uses the difference between the number of previously received and received packets to calculate the packet loss rate in the two directions during the time period.
  • Packet loss rate from the originating end to the opposite end ((T3 -T 1 )-(R3 -R 1 )) / (T3 -T 1 )
  • steps 406-408 are repeatedly performed periodically, and since it is an active measurement, the number of repetitions is infinite.

Landscapes

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

Abstract

The present invention discloses a method for initiating a counter in packet loss rate measurement. The method includes the following steps: after initiating a counter for the Class of Service (CoS) contraposed by the present packet loss rate measurement, an initiator Maintenance End Point (MEP) sends a request message for initiating a counter to an opposite end MEP; after receiving the request message for initiating the counter, the opposite end MEP initiates the corresponding counter, and returns a response message for initiating the counter to the initiator MEP. The present invention also discloses a system for initiating a counter in packet loss rate measurement accordingly. The present invention can initiate the counter on the opposite end MEP of packet loss rate measurement, and does not need to configure the opposite end MEP as another initiator MEP, so that the unnecessary configuration on the opposite end MEP can be avoided and the operation is simplified. The present invention can save human resources by initiating the corresponding counter with a data module or a control module.

Description

一种丢包率测量中启动计数器的方法及系统 技术领域  Method and system for starting counter in packet loss rate measurement
本发明涉及丟包率测量技术, 尤其涉及一种丟包率测量中启动计数器 的方法及系统。 背景技术  The present invention relates to a packet loss rate measurement technique, and more particularly to a method and system for starting a counter in a packet loss rate measurement. Background technique
在当前各种基于分组交换的通信网络中, 通信设备对于操作、 管理和 维护 ( Operations, Administration, and Maintenance, OAM )功能的支持越来 越受到网络运营商的重视,针对各种 0AM功能需求的技术实现方案也不断 涌现。丟包率测量功能是 0AM功能需求中的一种,标准组织国际电信联盟 电信标准局 ( International Telecommunication Union- Telecommunication In the current various packet-switched communication networks, the support of the operation, administration, and maintenance (OAM) functions of communication devices is increasingly valued by network operators for various 0AM functional requirements. Technical implementation solutions are also emerging. The packet loss rate measurement function is one of the 0AM functional requirements. The standard organization International Telecommunication Union-Telecommunication
Standardization Sector, ITU-T )在 2008年 2月发布的 Y.1731标准中, 提出 了针对以太网中丟包率测量功能的技术实现方案。 The Standardization Sector (ITU-T) proposed a technical implementation scheme for the packet loss rate measurement function in Ethernet in the Y.1731 standard released in February 2008.
标准组织互联网工程任务组 ( Internet Engineering Task Force, IETF ) 正在推进的针对传输用 多协议标签交换 ( Multi-Protocol Label Switching-Transport Profile, MPLS-TP ) 网络中丟包率测量功能的技术实现 方案与 ITU-T Y.1731标准中的技术方案保持一致, 二者只是应用的分组网 络不同。  The Internet Engineering Task Force (IETF), a standard organization, is advancing the technical implementation of the packet loss rate measurement function in the Multi-Protocol Label Switching-Transport Profile (MPLS-TP) network. The technical solutions in the ITU-T Y.1731 standard are consistent, and the two are only different for the packet network of the application.
下面对分组网络中丟包率测量功能的现有技术实现方案进行详细介 图 1是分组网络中 ΟΑΜ功能实体示意图,如图 1所示,位于分组网络 边缘的提供商边缘设备 ( Provider Edge, PE ) 上可以基于端口创建一个或 多个维护端节点 ( Maintenance End Point , ΜΕΡ ), 位于分组网络中间的提 供商中间设备( Provider Device, P ) 上可以基于端口创建一个或多个维护 中间点 (Maintenance Intermediate Point, MIP )。 在分组网络的 OAM功能 需求中明确要求丟包率测量功能能够在 MEP与 MEP之间执行, 且丟包率 测量功能所测量的是针对某个预先设定的服务等级( Class of Service, CoS ) 的丟包率, 具体执行过程如下: The following is a detailed description of the prior art implementation of the packet loss rate measurement function in the packet network. FIG. 1 is a schematic diagram of the functional entity in the packet network. As shown in FIG. 1 , the provider edge device (Provider Edge, located at the edge of the packet network, PE) can create one or more maintenance end nodes ( Maintenance End Point, ΜΕΡ) based on the port. One or more maintenance can be created based on the port on the provider intermediate device ( Provider Device, P ) located in the middle of the packet network. Maintenance Intermediate Point (MIP). In the OAM functional requirements of the packet network, it is explicitly required that the packet loss rate measurement function can be performed between the MEP and the MEP, and the packet loss rate measurement function measures for a predetermined Class of Service (CoS). The packet loss rate is as follows:
第一步: 在丟包率测量的发起端 MEP (后续步骤中称为 MEP1 )启动 针对某个 CoS的计数器, 启动计数器的方法可以是管理模块配置或控制模 块配置,该计数器启动后将累加记录该 MEP上所有属于该 CoS的收发包数。  Step 1: Start the counter for a certain CoS at the initiator MEP of the packet loss rate measurement (referred to as MEP1 in the subsequent step). The method of starting the counter may be management module configuration or control module configuration, and the counter will accumulate records after startup. The number of all transmission and reception packets belonging to the CoS on the MEP.
这里, CoS 的识别方法针对不同的分组网络而有所不同, 例如, 在以 太网中特定服务等级由以太网帧头中的优先级码组(Priority Code Point, PCP )字段来标识, 在 MPLS-TP网络中特定服务等级由数据包 MPLS标签 中的每一跳行为 ( Per-Hop Behavior, PHB ) 字段来标识。  Here, the CoS identification method differs for different packet networks. For example, a specific service level in Ethernet is identified by a Priority Code Point (PCP) field in the Ethernet frame header, in MPLS- The specific level of service in the TP network is identified by the Per-Hop Behavior (PHB) field in the packet MPLS label.
第二步: 在丟包率测量的对端 MEP (后续步骤中称为 MEP2 ) 启动针 对某个 CoS的计数器, 启动计数器的方法可以是管理模块配置或控制模块 配置,计数器功能和 CoS的识别方法与第一步中描述的相同,但这里的 CoS 不能够随意选择, 而是必须与第一步中选择的 CoS—致。  Step 2: In the peer MEP of the packet loss rate measurement (referred to as MEP2 in the subsequent step), start the counter for a certain CoS. The method of starting the counter may be management module configuration or control module configuration, counter function and CoS identification method. Same as described in the first step, but the CoS here cannot be chosen at will, but must be consistent with the CoS selected in the first step.
第三步: MEP1通过数据模块向 MEP2发送丟包率测量请求消息,携带 请求消息发送时刻 MEP1上的计数器所记录的发包数 Tl。  The third step: MEP1 sends a packet loss rate measurement request message to the MEP2 through the data module, and carries the number of packets T1 recorded by the counter on the MEP1 at the request message sending time.
第四步: ΜΕΡ2在收到 MEP1发送的丟包率测量请求消息后,通过数据 模块向 MEP1发送丟包率测量回复消息, 携带有接收到的 Tl、 请求消息接 收时刻 ΜΕΡ2上的计数器所记录的收包数 R1、以及回复消息发送时刻 ΜΕΡ2 上的计数器所记录的发包数 Τ2, 在接收到该丟包率测量回复消息时 MEP1 上的计数器所记录的收包数为 R2。  Step 4: After receiving the packet loss rate measurement request message sent by the MEP1, the data module sends a packet loss rate measurement reply message to the MEP1, which carries the received T1 and the counter recorded on the request message receiving time ΜΕΡ2. The number of packets received by the counter on the number of packets R1 and the reply message transmission time ΜΕΡ2 is Τ2, and the number of packets recorded by the counter on the MEP1 is R2 when the packet loss rate measurement reply message is received.
第五步: 经过一个预先设定的固定周期后, MEP1向 MEP2发送第二个 丟包率测量请求消息, 携带请求消息发送时刻 MEP1 上的计数器所记录的 发包数 T3。 第六步: MEP2在收到 MEP1发送的丟包率测量请求消息后, 向 MEP1 发送丟包率测量回复消息, 携带有接收到的 T3、 请求消息接收时刻 ΜΕΡ2 上的计数器所记录的收包数 R3、 以及回复消息发送时刻 MEP2上的计数器 所记录的发包数 T4, 在接收到该丟包率测量回复消息时 MEP1上的计数器 所记录的收包数为 R4。 Step 5: After a predetermined fixed period, the MEP1 sends a second packet loss rate measurement request message to the MEP2, carrying the number of packets T3 recorded by the counter on the MEP1 at the request message sending time. Step 6: After receiving the packet loss rate measurement request message sent by the MEP1, the MEP2 sends a packet loss rate measurement reply message to the MEP1, carrying the received T3, the number of packets recorded by the counter on the request message receiving time ΜΕΡ2 R3, and the number of packets T4 recorded by the counter on the MEP2 at the time of the reply message transmission, when the packet loss rate measurement reply message is received, the number of packets recorded by the counter on the MEP1 is R4.
之后, MEP1就可以利用之前收集到的收发包数的差值, 来分别计算这 个时间周期内两个方向上的丟包率, 计算公式如下:  After that, MEP1 can calculate the packet loss rate in the two directions during the time period by using the difference between the number of previously received and received packets. The calculation formula is as follows:
MEP1往 MEP2方向上的丟包率 = ((T3-T1)-(R3-R1)) I (T3-T1)  Packet loss rate from MEP1 to MEP2 = ((T3-T1)-(R3-R1)) I (T3-T1)
MEP2往 MEP1方向上的丟包率 = ((T4-T2)-(R4-R2)) / (T4-T2) 上述计算结果只是这个时间周期内的丟包率, 在实际使用丟包率测量 功能时, 有两种模式可以选择: 主动式 ( Proactive ) 测量和按需式 ( On-demand )测量; 其中, 主动式测量是指不断重复以上第三步及之后步 骤所描述的过程, 获得连续的丟包率测量结果, 完成对被测通信链路上某 个 CoS业务的持续性监测; 按需式测量是指在测量开始前设定测量次数, 在某一时间段内重复以上第三步及之后步骤所描述的过程, 获得一定次数 的丟包率测量结果, 完成对被测通信链路上某个 CoS业务的阶段性监测。  The packet loss rate of MEP2 to MEP1 = ((T4-T2)-(R4-R2)) / (T4-T2) The above calculation result is only the packet loss rate during this time period, and the actual packet loss rate measurement function is used. There are two modes to choose from: Proactive measurement and On-demand measurement; where active measurement refers to continuously repeating the process described in the third and subsequent steps above, obtaining continuous The packet loss rate measurement result completes the continuous monitoring of a CoS service on the tested communication link; the on-demand measurement refers to setting the number of measurements before the measurement starts, repeating the third step in a certain period of time and After the process described in the following steps, a certain number of packet loss rate measurement results are obtained, and phase monitoring of a CoS service on the tested communication link is completed.
需要指出的是,在现有技术中,通过控制平面在丟包率测量的对端 MEP 启动计数器是通过对带有流量工程的资源预留协议 ( Resource Reservation Protocol - Traffic Engineering, RSVP-TE )进行扩展来实现的, 它只能够应 用于主动式丟包率测量, 不能够应用于按需式丟包率测量, 而且, 现有方 案是把被测通信链路两端的 MEP按照相同的配置参数自动分别配置为丟包 率测量的发起端 MEP , 以达到在两端 MEP同时启动针对某个 CoS的计数 器的目的; 在现有技术中, 通过管理平面在丟包率测量的对端 MEP启动计 数器则既能够应用于主动式丟包率测量, 又能够应用于按需式丟包率测量。  It should be noted that in the prior art, the counter MEP startup counter measured by the control plane at the packet loss rate is performed by using Resource Reservation Protocol (TRAM) (RSVP-TE) with traffic engineering. Expanded to achieve, it can only be applied to active packet loss rate measurement, can not be applied to on-demand packet loss rate measurement, and the existing solution is to automatically follow the same configuration parameters for the MEPs at both ends of the tested communication link. The initiator MEP is configured as a packet loss rate measurement to achieve the purpose of simultaneously starting a counter for a certain CoS at both ends of the MEP. In the prior art, the counter is started by the peer MEP of the packet loss rate measured by the management plane. It can be applied to both active packet loss rate measurement and on-demand packet loss rate measurement.
现有丟包率测量技术在丟包率测量的发起端 MEP和对端 MEP分别启 动针对某个 CoS的计数器,且要求在对端 MEP启动的计数器所针对的 CoS 必须与在发起端 MEP启动的计数器所针对的 CoS—致。如果在丟包率测量 的对端 MEP不启动计数器, 则无法完成丟包率测量; 如果在丟包率测量的 对端 MEP启动的计数器所针对的 CoS与在发起端 MEP启动的计数器所针 对的 CoS不一致, 则会得到错误的丟包率测量结果。 The existing packet loss rate measurement technology is respectively initiated at the initiator MEP of the packet loss rate measurement and the peer MEP. The counter for a CoS is required, and the CoS for which the counter started by the peer MEP is required must be the same as the CoS for the counter started by the initiator MEP. If the counter MEP does not start the counter at the packet loss rate measurement, the packet loss rate measurement cannot be completed; if the counter that the peer MEP starts at the packet loss rate measurement is for the CoS and the counter that is started at the initiator MEP, If the CoS is inconsistent, the wrong packet loss rate measurement result will be obtained.
总而言之, 在进行主动式丟包率测量时, 釆用现有技术在丟包率测量 的对端 MEP启动计数器, 需要在对端 MEP进行管理平面配置或控制平面 配置, 如果通过管理平面进行配置, 由配置人员手工保证启动的计数器所 针对的 CoS与在发起端 MEP启动的计数器所针对的 CoS—致; 如果通过 控制平面进行配置, 由 RSVP-TE协议自动保证启动的计数器所针对的 CoS 与在发起端 MEP启动的计数器所针对的 CoS—致。  In summary, when the active packet loss rate is measured, the peer MEP is used to start the counter at the peer MEP. The management plane configuration or control plane configuration is required on the peer MEP. The CoS that is manually guaranteed by the configuration personnel to ensure that the started counter is synchronized with the CoS that is started by the MEP at the originating end; if configured through the control plane, the CoS and the counter for which the counter is automatically guaranteed by the RSVP-TE protocol The CoS that the counter that the initiator MEP starts is directed to.
但是, 现有方案通过 RSVP-TE协议把对端 MEP也自动配置为另一个 发起端 MEP, 需要配置较多的参数, 且会启动另一个独立的丟包率测量进 程, 所以实现过程较为繁瑣, 并且, 在进行按需式丟包率测量时, 釆用已 有技术方案在丟包率测量的对端 MEP启动计数器, 需要在对端 MEP进行 管理平面配置, 由配置人员手工保证启动的计数器所针对的 CoS与在发起 端 MEP启动的计数器所针对的 CoS—致, 从而需要耗费一定的人力资源。 发明内容  However, the existing solution automatically configures the peer MEP as another initiator MEP through the RSVP-TE protocol, and needs to configure more parameters, and another independent packet loss rate measurement process is started, so the implementation process is cumbersome. Moreover, when the on-demand packet loss rate measurement is performed, the counter of the MEP is started at the opposite end of the packet loss rate measurement by the prior art solution, and the management plane configuration of the peer MEP is required, and the counter is manually guaranteed by the configuration personnel. The CoS that is targeted is consistent with the CoS targeted by the counter launched by the MEP at the originating end, which requires a certain amount of human resources. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种丟包率测量中启动计数器 的方法及系统, 能够简化操作、 节省人力资源。  In view of this, the main object of the present invention is to provide a method and system for starting a counter in a packet loss rate measurement, which can simplify operation and save human resources.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
一种丟包率测量中启动计数器的方法, 包括:  A method for starting a counter in a packet loss rate measurement, comprising:
发起端维护端节点 MEP 启动针对本次丟包率测量所针对的服务等级 CoS的计数器后, 向对端 MEP发送启动计数器请求消息;  The initiator maintenance node MEP starts a counter for the service level CoS for which the current packet loss rate is measured, and sends a start counter request message to the peer MEP.
所述对端 MEP收到所述启动计数器请求消息后, 启动相应的计数器, 并向所述发起端 MEP返回启动计数器回复消息。 After receiving the start counter request message, the peer MEP starts a corresponding counter. And returning a start counter reply message to the originating MEP.
所述启动计数器请求消息至少携带本次丟包率测量所针对的 CoS; 所述对端 MEP启动相应的计数器为: 启动针对所述启动计数器请求消 息携带的本次丟包率测量所针对的 CoS的计数器;  The start counter request message carries at least the CoS for which the current packet loss rate measurement is performed; the corresponding counter of the peer MEP starts to: start the CoS for the current packet loss rate measurement carried by the start counter request message Counter
所述启动计数器回复消息至少携带对端 MEP针对本次丟包率测量所针 对的 CoS启动计数器是否成功的指示。  The start counter reply message carries at least an indication of whether the peer MEP is successful for the CoS start counter for the current packet loss rate measurement.
所述发起端 MEP启动针对本次丟包率测量所针对的 CoS的计数器之 前, 该方法还包括: 发起端 MEP进行丟包率测量配置,  Before the initiator MEP starts the counter for the CoS for the current packet loss rate measurement, the method further includes: the initiator MEP performs the packet loss rate measurement configuration,
配置为主动式丟包率测量时, 丟包率测量配置参数包括: 本次丟包率 测量所针对的 CoS和丟包率测量消息的发送周期;  When configured as the active packet loss rate measurement, the packet loss rate measurement configuration parameters include: The transmission period of the CoS and packet loss rate measurement messages for the current packet loss rate measurement;
配置为按需式丟包率测量时, 丟包率测量配置参数包括: 本次丟包率 测量所针对的 CoS、 丟包率测量消息的发送周期和丟包率测量消息的发送 次数。  When configured as an on-demand packet loss rate measurement, the packet loss rate measurement configuration parameters include: CoS, the transmission period of the packet loss rate measurement message, and the number of times the packet loss rate measurement message is sent.
所述发起端 MEP向对端 MEP发送启动计数器请求消息为:  The initiator MEP sends a start counter request message to the peer MEP as follows:
发起端 MEP进行主动式丟包率测量时, 通过数据模块或控制模块向对 端 MEP发送启动计数器请求消息;发起端 MEP进行按需式丟包率测量时, 通过数据模块向对端 MEP发送启动计数器请求消息。  When the initiator MEP performs the active packet loss rate measurement, the data module or the control module sends a start counter request message to the peer MEP. When the initiator MEP performs the on-demand packet loss rate measurement, the data module sends the start to the peer MEP. Counter request message.
所述对端 MEP收到所述启动计数器请求消息后, 启动相应的计数器, 并向所述发起端 MEP返回启动计数器回复消息为:  After receiving the start counter request message, the peer MEP starts a corresponding counter, and returns a start counter reply message to the initiator MEP as:
对于发起端 MEP 通过数据模块或控制模块发送的启动计数器请求消 息, 所述对端 MEP通过相应的数据模块或控制模块进行接收, 并启动相应 的计数器, 之后向所述发起端 MEP返回启动计数器回复消息。  For the initiator counter request message sent by the originating MEP through the data module or the control module, the peer MEP receives the corresponding data module or the control module, and starts the corresponding counter, and then returns a startup counter reply to the initiator MEP. Message.
所述对端 MEP向所述发起端 MEP返回启动计数器回复消息之后, 该 方法还包括:  After the peer MEP returns a start counter reply message to the initiator MEP, the method further includes:
所述启动计数器回复消息指示启动计数器成功, 则发起端 MEP进行丟 包率测量; 所述启动计数器回复消息指示启动计数器失败, 则发起端 MEP 终止丟包率测量, 并返回错误提示。 The startup counter reply message indicates that the startup counter is successful, and the initiator MEP loses. Packet rate measurement; The start counter reply message indicates that the start counter fails, and the initiator MEP terminates the packet loss rate measurement and returns an error prompt.
一种丟包率测量中启动计数器的系统,包括:发起端 MEP和对端 MEP; 其中,  A system for starting a counter in a packet loss rate measurement, comprising: an initiator MEP and a peer MEP; wherein
所述发起端 MEP, 用于在启动针对本次丟包率测量所针对的服务等级 CoS的计数器后, 向对端 MEP发送启动计数器请求消息;  The initiator MEP is configured to send a start counter request message to the peer MEP after starting the counter for the service level CoS for the current packet loss rate measurement;
所述对端 MEP, 用于在收到来自发起端 MEP 的启动计数器请求消息 后, 启动相应的计数器, 并向所述发起端 MEP返回启动计数器回复消息。  The peer MEP is configured to start a corresponding counter after receiving a start counter request message from the initiator MEP, and return a start counter reply message to the initiator MEP.
所述发起端 MEP向对端 MEP发送的启动计数器请求消息至少携带本 次丟包率测量所针对的 CoS;  The start counter request message sent by the initiator MEP to the peer MEP carries at least the CoS for which the current packet loss rate measurement is performed;
所述对端 MEP启动相应的计数器为: 启动针对所述启动计数器请求消 息携带的本次丟包率测量所针对的 CoS的计数器;  The peer MEP starts a corresponding counter as: a counter for initiating a CoS for the current packet loss rate measurement carried by the startup counter request message;
所述对端 MEP向所述发起端 MEP返回的启动计数器回复消息至少携 带对端 MEP针对本次丟包率测量所针对的 CoS启动计数器是否成功的指 示。  The start counter reply message returned by the peer MEP to the initiator MEP carries at least an indication of whether the peer MEP is successful for the CoS start counter for which the current packet loss rate measurement is performed.
所述发起端 MEP,还用于进行丟包率测量配置,所述发起端 MEP配置 为主动式丟包率测量时, 丟包率测量配置参数包括: 本次丟包率测量所针 对的 CoS和丟包率测量消息的发送周期;所述发起端 MEP配置为按需式丟 包率测量时, 丟包率测量配置参数包括: 本次丟包率测量所针对的 CoS、 丟包率测量消息的发送周期和丟包率测量消息的发送次数。  The initiating MEP is further configured to perform a packet loss rate measurement configuration. When the initiating MEP is configured as an active packet loss rate measurement, the packet loss rate measurement configuration parameter includes: the CoS and the target of the packet loss rate measurement. Packet loss rate measurement message transmission period; when the initiator MEP is configured to measure the on-demand packet loss rate, the packet loss rate measurement configuration parameters include: CoS and packet loss rate measurement messages for the current packet loss rate measurement The number of times the transmission period and the packet loss rate measurement message are sent.
所述发起端 MEP包括数据模块和控制模块, 所述对端 MEP包括数据 模块和控制模块, 所述发起端 MEP向对端 MEP发送启动计数器请求消息 为:  The initiator MEP includes a data module and a control module, and the peer MEP includes a data module and a control module, and the initiator MEP sends a start counter request message to the peer MEP as follows:
发起端 MEP进行主动式丟包率测量时, 通过其中的数据模块或控制模 块向对端 MEP发送启动计数器请求消息; 发起端 MEP进行按需式丟包率 测量时, 通过其中的数据模块向对端 MEP发送启动计数器请求消息。 When the initiator MEP performs the active packet loss rate measurement, the data module or the control module sends a start counter request message to the peer MEP; the initiator MEP performs the on-demand packet loss rate. During measurement, a start counter request message is sent to the peer MEP through the data module therein.
所述对端 MEP收到所述启动计数器请求消息后, 启动相应的计数器, 并向所述发起端 MEP返回启动计数器回复消息为:  After receiving the start counter request message, the peer MEP starts a corresponding counter, and returns a start counter reply message to the initiator MEP as:
对于发起端 MEP通过其数据模块或控制模块发送的启动计数器请求消 息, 所述对端 MEP通过自身相应的数据模块或控制模块进行接收, 并启动 相应的计数器, 之后向所述发起端 MEP返回启动计数器回复消息。  For the initiator counter request message sent by the initiator MEP through its data module or control module, the peer MEP receives the data through its corresponding data module or control module, and starts the corresponding counter, and then returns to the initiator MEP to start. The counter replies to the message.
所述发起端 MEP, 还用于在启动计数器回复消息指示启动计数器成功 时, 进行丟包率测量; 以及在启动计数器回复消息指示启动计数器失败时, 终止丟包率测量, 并返回错误提示。  The initiator MEP is further configured to: when the start counter reply message indicates that the start counter is successful, perform a packet loss rate measurement; and when the start counter reply message indicates that the start counter fails, terminate the packet loss rate measurement, and return an error prompt.
本发明丟包率测量中启动计数器的方法及系统, 在丟包率测量的发起 端 MEP配置丟包率测量功能后, 发起端 MEP通过数据模块或控制模块向 对端 MEP发送启动计数器请求消息, 携带发起端 MEP上配置的该次丟包 率测量所针对的服务等级, 要求对端 MEP启动针对该服务等级的计数器; 对端 MEP在接收到启动计数器请求消息后, 通过数据模块或控制模块启动 相应的计数器, 并向发起端 MEP发送启动计数器回复消息, 表明针对该服 务等级启动计数器成功或失败。 本发明既能在丟包率测量的对端 MEP上启 动计数器,又无需把对端 MEP配置为另一个发起端 MEP,从而能够避免在 对端 MEP上的不必要配置, 简化操作; 并且, 本发明通过数据模块或控制 模块启动相应的计数器, 能够节省人力资源。 附图说明  The method and system for starting a counter in the packet loss rate measurement of the present invention, after the MEP is configured with the packet loss rate measurement function at the initiating end of the packet loss rate measurement, the initiating MEP sends a start counter request message to the peer MEP through the data module or the control module. Carrying the service level for the packet loss rate measurement configured on the initiating MEP, the peer MEP is required to start a counter for the service level; after receiving the start counter request message, the peer MEP starts through the data module or the control module. Corresponding counters, and send a start counter reply message to the originating MEP, indicating that the counter is successfully or failed to start the service level. The invention can start the counter on the peer MEP of the packet loss rate measurement, and does not need to configure the peer MEP as another initiator MEP, thereby avoiding unnecessary configuration on the peer MEP and simplifying operation; The invention can save human resources by starting the corresponding counter through the data module or the control module. DRAWINGS
图 1为分组网络中 OAM功能实体示意图;  Figure 1 is a schematic diagram of an OAM functional entity in a packet network;
图 2为本发明丟包率测量中启动计数器的方法流程示意图;  2 is a schematic flow chart of a method for starting a counter in a packet loss rate measurement according to the present invention;
图 3为本发明实施例 1丟包率测量的流程示意图;  3 is a schematic flowchart of a packet loss rate measurement according to Embodiment 1 of the present invention;
图 4为本发明实施例 2丟包率测量的流程示意图。 具体实施方式 FIG. 4 is a schematic flowchart of packet loss rate measurement according to Embodiment 2 of the present invention. detailed description
本发明要解决的技术问题是提供基于 OAM功能实体的、分组网络丟包 率测量功能中在对端 MEP上启动计数器的方法, 克服现有技术方案使用管 理模块或控制模块在对端 MEP进行配置所存在的问题, 省去现有技术方案 中一些不必要的配置, 包括通过管理模块配置时在对端 MEP上进行的所有 配置, 以及通过控制模块配置时在对端 MEP上进行的另一个发起端 MEP 的配置, 同时有效防止通过管理模块配置时由于在发起端 MEP 上与对端 MEP上对 CoS参数配置不一致所导致的丟包率测量失败。  The technical problem to be solved by the present invention is to provide a method for starting a counter on a peer MEP in a packet network packet loss rate measurement function based on an OAM function entity, and overcoming the prior art scheme using a management module or a control module to configure the peer MEP. The problem exists, and some unnecessary configurations in the prior art solution are omitted, including all configurations performed on the peer MEP through the management module configuration, and another initiation on the peer MEP when configured by the control module. The MEP configuration fails to prevent the packet loss rate measurement failure caused by the inconsistency between the configuration of the CoS parameters on the initiating MEP and the peer MEP.
本发明的基本思想是: 在丟包率测量的发起端 MEP配置丟包率测量功 能后, 发起端 MEP通过数据模块或控制模块向对端 MEP发送启动计数器 请求消息, 携带发起端 MEP上配置的该次丟包率测量所针对的服务等级, 要求对端 MEP启动针对该服务等级的计数器; 对端 MEP在接收到启动计 数器请求消息后, 通过数据模块或控制模块启动相应的计数器, 并向发起 端 MEP发送启动计数器回复消息, 表明针对该服务等级启动计数器成功或 失败。  The basic idea of the present invention is: After the packet loss rate measurement function is configured on the MEP of the initiator of the packet loss rate measurement, the initiating MEP sends a start counter request message to the peer MEP through the data module or the control module, and carries the configuration on the MEP of the initiator. The service level for the packet loss rate measurement requires the peer MEP to start a counter for the service level; after receiving the start counter request message, the peer MEP starts the corresponding counter through the data module or the control module, and initiates The MEP sends a Start Counter Reply message indicating that the counter was successfully or failed for the service level.
图 2为本发明丟包率测量中启动计数器的方法流程示意图, 如图 2所 示, 该方法包括:  2 is a schematic flowchart of a method for starting a counter in a packet loss rate measurement according to the present invention. As shown in FIG. 2, the method includes:
步骤 201 : 发起端 MEP启动针对本次丟包率测量所针对的 CoS的计数 哭口  Step 201: The initiator MEP starts the counting of the CoS for the current packet loss rate measurement.
这里, 发起端 MEP启动针对本次丟包率测量所针对的 CoS的计数器, 是通过在发起端 MEP启动丟包率测量功能来实现, 而启动丟包率测量功能 之前, 丟包率测量的发起端 MEP还需要通过管理模块或控制模块下发丟包 率测量配置参数。  Here, the initiator MEP starts the counter for the CoS for the current packet loss rate measurement, and implements the packet loss rate measurement function at the initiator MEP, and initiates the packet loss rate measurement before the packet loss rate measurement function is started. The MEP also needs to send the packet loss rate measurement configuration parameters through the management module or the control module.
丟包率测量为分组网络 OAM功能之一,可配置为主动式和按需式两种 工作模式, 如果配置为主动式丟包率测量, 丟包率测量配置参数包括: 本 次丟包率测量所针对的 CoS和丟包率测量消息的发送周期; 如果配置为按 需式丟包率测量, 除了上述参数, 丟包率测量配置参数还包括丟包率测量 消息的发送次数。 The packet loss rate measurement is one of the packet network OAM functions. It can be configured as active or on-demand. If the active packet loss rate measurement is configured, the packet loss rate measurement configuration parameters include: The transmission period of the CoS and packet loss rate measurement messages for the second packet loss rate measurement; if configured as the on-demand packet loss rate measurement, in addition to the above parameters, the packet loss rate measurement configuration parameter also includes the number of times the packet loss rate measurement message is sent. .
步骤 202:发起端 MEP向对端 MEP发送启动计数器请求消息,所述启 动计数器请求消息至少携带本次丟包率测量所针对的 CoS。  Step 202: The initiator MEP sends a start counter request message to the peer MEP, where the start counter request message carries at least the CoS for which the current packet loss rate measurement is performed.
这里, 发起端 MEP通过数据模块或控制模块向对端 MEP发送启动计 数器请求消息, 如果是主动式的丟包率测量, 发起端 MEP可以通过数据模 块或控制模块向对端 MEP发送启动计数器请求消息; 如果是按需式的丟包 率测量, 发起端 MEP只能通过数据模块向对端 MEP发送启动计数器请求 消息。  Here, the initiating MEP sends a start counter request message to the peer MEP through the data module or the control module. If the active packet loss rate is measured, the initiating MEP may send a start counter request message to the peer MEP through the data module or the control module. If it is an on-demand packet loss rate measurement, the initiator MEP can only send a start counter request message to the peer MEP through the data module.
所述启动计数器请求消息至少携带本次丟包率测量所针对的 CoS , 目 的是要求对端 MEP启动针对该 CoS的计数器。  The start counter request message carries at least the CoS for which the current packet loss rate measurement is performed, and the purpose is to require the peer MEP to start a counter for the CoS.
步骤 203 : 对端 MEP收到所述启动计数器请求消息后, 启动针对所述 启动计数器请求消息携带的本次丟包率测量所针对的 CoS的计数器。  Step 203: After receiving the start counter request message, the peer MEP starts a counter for the CoS for which the current packet loss rate measurement is carried in the start counter request message.
步骤 204:对端 MEP向发起端 MEP返回启动计数器回复消息,所述启 动计数器回复消息至少携带对端 MEP针对本次丟包率测量所针对的 CoS启 动计数器是否成功的指示。  Step 204: The peer MEP returns a start counter reply message to the initiator MEP, where the start counter reply message carries at least an indication of whether the peer MEP is successful for the CoS start counter for the current packet loss rate measurement.
这里, 对端 MEP通过数据模块或控制模块回复启动计数器回复消息, 具体的, 如果是通过数据模块收到启动计数器请求消息, 则对端 MEP通过 数据模块进行回复; 如果是通过控制模块收到启动计数器请求消息, 则对 端 MEP通过控制模块进行回复。 对于发起端 MEP通过数据模块 /控制模块 发送的消息,对端 MEP也需要通过相应的数据模块 /控制模块进行接收并执 行。  Here, the peer MEP replies to the start counter reply message by using the data module or the control module. Specifically, if the start counter request message is received through the data module, the peer MEP replies through the data module; if it is received through the control module The counter requests the message, and the peer MEP replies through the control module. For the message sent by the initiator MEP through the data module/control module, the peer MEP also needs to receive and execute through the corresponding data module/control module.
启动计数器回复消息至少携带对端 MEP针对本次丟包率测量所针对的 CoS 启动计数器是否成功的指示, 如果是启动计数器成功的指示, 发起端 MEP在收到该指示后会按照现有技术继续丟包率测量的流程; 如果是启动 计数器失败的指示,发起端 MEP在收到该指示后会终止丟包率测量的流程, 并返回错误提示。 The start counter reply message carries at least an indication of whether the peer MEP is successful for the CoS start counter for which the current packet loss rate measurement is performed, and if it is an indication that the counter is successful, the initiator end After receiving the indication, the MEP will continue the process of measuring the packet loss rate according to the prior art; if it is the indication that the counter is failed, the initiator MEP will terminate the packet loss rate measurement process after receiving the indication, and return an error message. .
本发明还提出一种丟包率测量中启动计数器的系统, 该系统包括: 发 起端 MEP和对端 MEP; 其中,  The present invention also provides a system for starting a counter in a packet loss rate measurement, the system comprising: an originating MEP and a peer MEP; wherein
所述发起端 MEP, 用于在启动针对本次丟包率测量所针对的服务等级 CoS的计数器后, 向对端 MEP发送启动计数器请求消息;  The initiator MEP is configured to send a start counter request message to the peer MEP after starting the counter for the service level CoS for the current packet loss rate measurement;
所述对端 MEP, 用于在收到来自发起端 MEP 的启动计数器请求消息 后, 启动相应的计数器, 并向所述发起端 MEP返回启动计数器回复消息。  The peer MEP is configured to start a corresponding counter after receiving a start counter request message from the initiator MEP, and return a start counter reply message to the initiator MEP.
所述发起端 MEP向对端 MEP发送的启动计数器请求消息至少携带本 次丟包率测量所针对的 CoS;  The start counter request message sent by the initiator MEP to the peer MEP carries at least the CoS for which the current packet loss rate measurement is performed;
所述对端 MEP启动相应的计数器为: 启动针对所述启动计数器请求消 息携带的本次丟包率测量所针对的 CoS的计数器;  The peer MEP starts a corresponding counter as: a counter for initiating a CoS for the current packet loss rate measurement carried by the startup counter request message;
所述对端 MEP向所述发起端 MEP返回的启动计数器回复消息至少携 带对端 MEP针对本次丟包率测量所针对的 CoS启动计数器是否成功的指 示。  The start counter reply message returned by the peer MEP to the initiator MEP carries at least an indication of whether the peer MEP is successful for the CoS start counter for which the current packet loss rate measurement is performed.
所述发起端 MEP,还用于进行丟包率测量配置,所述发起端 MEP配置 为主动式丟包率测量时, 丟包率测量配置参数包括: 本次丟包率测量所针 对的 CoS和丟包率测量消息的发送周期;所述发起端 MEP配置为按需式丟 包率测量时, 丟包率测量配置参数包括: 本次丟包率测量所针对的 CoS、 丟包率测量消息的发送周期和丟包率测量消息的发送次数。  The initiating MEP is further configured to perform a packet loss rate measurement configuration. When the initiating MEP is configured as an active packet loss rate measurement, the packet loss rate measurement configuration parameter includes: the CoS and the target of the packet loss rate measurement. Packet loss rate measurement message transmission period; when the initiator MEP is configured to measure the on-demand packet loss rate, the packet loss rate measurement configuration parameters include: CoS and packet loss rate measurement messages for the current packet loss rate measurement The number of times the transmission period and the packet loss rate measurement message are sent.
所述发起端 MEP包括数据模块和控制模块, 所述对端 MEP包括数据 模块和控制模块, 所述发起端 MEP向对端 MEP发送启动计数器请求消息 为:  The initiator MEP includes a data module and a control module, and the peer MEP includes a data module and a control module, and the initiator MEP sends a start counter request message to the peer MEP as follows:
发起端 MEP进行主动式丟包率测量时, 通过其中的数据模块或控制模 块向对端 MEP发送启动计数器请求消息; 发起端 MEP进行按需式丟包率 测量时, 通过其中的数据模块向对端 MEP发送启动计数器请求消息。 When the initiator MEP performs active packet loss rate measurement, it passes the data module or control module. The block sends a start counter request message to the peer MEP. When the initiator MEP performs the on-demand packet loss rate measurement, the data module sends a start counter request message to the peer MEP.
所述对端 MEP收到所述启动计数器请求消息后, 启动相应的计数器, 并向所述发起端 MEP返回启动计数器回复消息为:  After receiving the start counter request message, the peer MEP starts a corresponding counter, and returns a start counter reply message to the initiator MEP as:
对于发起端 MEP通过其数据模块或控制模块发送的启动计数器请求消 息, 所述对端 MEP通过自身相应的数据模块或控制模块进行接收, 并启动 相应的计数器, 之后向所述发起端 MEP返回启动计数器回复消息。  For the initiator counter request message sent by the initiator MEP through its data module or control module, the peer MEP receives the data through its corresponding data module or control module, and starts the corresponding counter, and then returns to the initiator MEP to start. The counter replies to the message.
所述发起端 MEP, 还用于在启动计数器回复消息指示启动计数器成功 时, 进行丟包率测量; 以及在启动计数器回复消息指示启动计数器失败时, 终止丟包率测量, 并返回错误提示。  The initiator MEP is further configured to: when the start counter reply message indicates that the start counter is successful, perform a packet loss rate measurement; and when the start counter reply message indicates that the start counter fails, terminate the packet loss rate measurement, and return an error prompt.
下面结合附图对技术方案的实施作进一步的详细描述。  The implementation of the technical solution will be further described in detail below with reference to the accompanying drawings.
实施例 1  Example 1
本实施例中, 通过数据平面在丟包率测量的对端 MEP上启动计数器。 图 3是本发明实施例 1丟包率测量的流程示意图, 如图 3所示, 实施 例 1丟包率测量的方法包括如下步骤:  In this embodiment, the counter is started on the peer MEP of the packet loss rate measurement through the data plane. FIG. 3 is a schematic flowchart of packet loss rate measurement according to Embodiment 1 of the present invention. As shown in FIG. 3, the method for measuring packet loss rate in Embodiment 1 includes the following steps:
步骤 301 : 丟包率测量的发起端 MEP配置并启动主动式或按需式丟包 率测量功能, 该配置可以由管理模块或控制模块来完成。  Step 301: The initiator of the packet loss rate measurement MEP configures and starts the active or on-demand packet loss rate measurement function, which can be completed by the management module or the control module.
如果是主动式测量, 需要配置的参数包括丟包率测量所针对的 CoS和 丟包率测量消息的发送周期; 如果是按需式测量, 除了上述参数, 还需要 配置丟包率测量消息的发送次数。  If it is an active measurement, the parameters to be configured include the transmission period of the CoS and packet loss rate measurement messages for the packet loss rate measurement. If the measurement is on-demand, in addition to the above parameters, you need to configure the transmission of the packet loss rate measurement message. frequency.
步骤 302: 在发起端 MEP上的配置完成后,该 MEP通过数据模块向对 端 MEP发送启动计数器请求 OAM消息, 携带发起端 MEP上配置的该次 丟包率测量所针对的 CoS, 要求对端 MEP启动针对该 CoS的计数器。  Step 302: After the configuration on the initiating MEP is completed, the MEP sends a start counter request OAM message to the peer MEP through the data module, and carries the CoS for the packet loss rate measurement configured on the initiating MEP, and requires the peer end. The MEP starts a counter for the CoS.
步骤 303: 对端 MEP在收到启动计数器请求 OAM消息后, 启动针对 该消息中所携带 CoS的计数器,并通过数据模块回复启动计数器回复 OAM 消息, 指示启动计数器成功与否。 Step 303: After receiving the start counter request OAM message, the peer MEP starts a counter for the CoS carried in the message, and returns a start counter to reply OAM through the data module. A message indicating whether the startup counter was successful or not.
本实施例中, 启动计数器回复 OAM消息指示启动计数器成功。  In this embodiment, the start counter replies with an OAM message indicating that the start counter is successful.
步骤 304: 发起端 MEP在收到指示成功的启动计数器回复消息后, 按 照已有的 ITU-T Y.1731标准或 IETF标准草案向对端 MEP发送丟包率测量 请求消息, 携带请求消息发送时刻发起端 MEP上的计数器所记录的发包数 Tl。  Step 304: After receiving the start counter reply message indicating success, the originating MEP sends a packet loss rate measurement request message to the peer MEP according to the existing ITU-T Y.1731 standard or the IETF standard draft, and carries the request message sending time. The number of packets T1 recorded by the counter on the initiator MEP.
步骤 305 : 对端 ΜΕΡ在收到丟包率测量请求消息后, 立即回复丟包率 测量回复消息, 携带有接收到的 Tl、 请求消息接收时刻对端 ΜΕΡ上的计 数器所记录的收包数 Rl、 以及回复消息发送时刻对端 MEP上的计数器所 记录的发包数 T2 , 在接收到该丟包率测量回复消息时发起端 MEP上的计 数器所记录的收包数为 R2。  Step 305: After receiving the packet loss rate measurement request message, the peer end immediately responds to the packet loss rate measurement reply message, and carries the received T1 and the number of packets recorded by the counter on the opposite end of the request message receiving time. And the number of packets T2 recorded by the counter on the peer MEP at the time of sending the reply message. When receiving the packet loss rate measurement reply message, the number of packets recorded by the counter on the originating MEP is R2.
步骤 306:经过步骤 301中所配置的一个丟包率测量消息的发送周期后, 发起端 MEP向对端 MEP发送第二个丟包率测量请求消息, 携带请求消息 发送时刻发起端 MEP上的计数器所记录的发包数 T3。  Step 306: After the sending period of the packet loss rate measurement message configured in step 301, the initiating MEP sends a second packet loss rate measurement request message to the peer MEP, and carries the request message to send the counter on the MEP at the originating end. The number of packets sent is T3.
步骤 307: 对端 ΜΕΡ在收到丟包率测量请求消息后, 立即回复丟包率 测量回复消息, 携带有接收到的 Τ3、 请求消息接收时刻对端 ΜΕΡ上的计 数器所记录的收包数 R3、 以及回复消息发送时刻对端 MEP上的计数器所 记录的发包数 T4, 在接收到该丟包率测量回复消息时发起端 MEP上的计 数器所记录的收包数为 R4。  Step 307: After receiving the packet loss rate measurement request message, the peer end immediately responds to the packet loss rate measurement reply message, and carries the received packet number R3 recorded by the counter on the peer end of the request message receiving time. And the number of packets T4 recorded by the counter on the peer MEP at the time of sending the reply message. When the packet loss rate measurement reply message is received, the number of packets recorded by the counter on the originating MEP is R4.
步骤 308: 发起端 MEP在收到丟包率测量回复消息后, 利用之前收集 到的收发包数的差值, 来分别计算这个时间周期内两个方向上的丟包率。  Step 308: After receiving the packet loss rate measurement reply message, the MEP uses the difference between the number of previously received and received packets to calculate the packet loss rate in the two directions during the time period.
这里, 丟包率计算公式如下:  Here, the packet loss rate is calculated as follows:
发起端往对端方向上的丟包率 = ((T3 -T 1 )-(R3 -R 1 )) / (T3 -T 1 )  Packet loss rate from the originating end to the opposite end = ((T3 -T 1 )-(R3 -R 1 )) / (T3 -T 1 )
对端往发起端方向上的丟包率 = ((T4-T2)-(R4-R2)) I (T4-T2)  Packet loss rate from the peer to the initiator = ((T4-T2)-(R4-R2)) I (T4-T2)
需要注意的是, 上述计算结果只是这个时间周期内的丟包率。 步骤 308之后, 周期性重复执行步骤 306~308 , 如果是主动式测量, 重 复的次数无限大, 如果是按需式测量, 重复的次数由步骤 301 中所配置的 丟包率测量消息的发送次数决定。 实施例 2 It should be noted that the above calculation result is only the packet loss rate during this time period. After step 308, steps 306-308 are repeatedly performed periodically. If it is an active measurement, the number of repetitions is infinite. If it is an on-demand measurement, the number of repetitions is the number of times the packet loss rate measurement message is configured in step 301. Decide. Example 2
本实施例中, 通过控制平面在丟包率测量的对端 MEP上启动计数器。 图 4是本发明实施例 2丟包率测量的流程示意图, 如图 4所示, 实施 例 2丟包率测量的方法包括如下步骤:  In this embodiment, the counter is started on the opposite MEP of the packet loss rate measurement by the control plane. 4 is a schematic flowchart of packet loss rate measurement according to Embodiment 2 of the present invention. As shown in FIG. 4, the method for measuring packet loss rate in Embodiment 2 includes the following steps:
步骤 401 : 丟包率测量的发起端 MEP配置并启动主动式丟包率测量功 能, 该配置可以由管理模块或控制模块来完成, 需要配置的参数包括丟包 率测量所针对的 CoS和丟包率测量消息的发送周期。  Step 401: The MEP of the initiator of the packet loss rate measurement is configured and the active packet loss rate measurement function is started. The configuration may be performed by the management module or the control module, and the parameters to be configured include the CoS and the packet loss for the packet loss rate measurement. Rate measurement period of the message.
步骤 402: 发起端 MEP上的配置完成后, 通过控制模块向对端 MEP 发送启动计数器请求消息, 该消息可以由已有的 RSVP-TE协议消息扩展而 来, 携带发起端 MEP 上配置的该次丟包率测量所针对的 CoS , 要求对端 MEP启动针对该 CoS的计数器。  Step 402: After the configuration on the initiating MEP is completed, the control module sends a start counter request message to the peer MEP, and the message may be extended by the existing RSVP-TE protocol message, and the time configured on the initiating MEP is carried. The CoS for the packet loss rate measurement requires the peer MEP to start the counter for the CoS.
步骤 403 : 对端 MEP在收到启动计数器请求消息后, 启动针对该消息 中所携带 CoS的计数器, 并通过控制模块回复启动计数器回复消息, 该消 息可以由已有的 RSVP-TE协议消息扩展而来, 指示启动计数器成功与否。  Step 403: After receiving the start counter request message, the peer MEP starts a counter for the CoS carried in the message, and replies to the start counter reply message by using the control module, and the message may be extended by the existing RSVP-TE protocol message. Comes, indicating whether the startup counter is successful or not.
本实施例中, 启动计数器回复消息指示启动计数器成功。  In this embodiment, the start counter reply message indicates that the start counter is successful.
步骤 404: 发起端 MEP在收到指示成功的启动计数器回复消息后, 按 照已有的 ITU-T Y.1731标准或 IETF标准草案向对端 MEP发送丟包率测量 请求消息, 携带请求消息发送时刻发起端 MEP上的计数器所记录的发包数 Tl。  Step 404: After receiving the start counter reply message indicating success, the initiator MEP sends a packet loss rate measurement request message to the peer MEP according to the existing ITU-T Y.1731 standard or the IETF standard draft, and carries the request message sending time. The number of packets T1 recorded by the counter on the initiator MEP.
步骤 405: 对端 ΜΕΡ在收到丟包率测量请求消息后, 立即回复丟包率 测量回复消息, 携带有接收到的 Tl、 请求消息接收时刻对端 ΜΕΡ上的计 数器所记录的收包数 Rl、 以及回复消息发送时刻对端 MEP上的计数器所 记录的发包数 T2 , 在接收到该丟包率测量回复消息时发起端 ΜΕΡ上的计 数器所记录的收包数为 R2。 Step 405: After receiving the packet loss rate measurement request message, the peer end immediately responds to the packet loss rate measurement reply message, and carries the received T1, the number of the received packets recorded by the counter on the opposite end of the request message receiving time. And the counter on the opposite MEP at the time the reply message is sent The number of received packets T2, when the packet loss rate measurement reply message is received, the number of packets recorded by the counter on the originating terminal is R2.
步骤 406:经过步骤 401中所配置的一个丟包率测量消息的发送周期后, 发起端 MEP向对端 MEP发送第二个丟包率测量请求消息, 携带请求消息 发送时刻发起端 MEP上的计数器所记录的发包数 T3。  Step 406: After the sending period of the packet loss rate measurement message configured in step 401, the initiating MEP sends a second packet loss rate measurement request message to the peer MEP, and carries the request message to send the counter on the MEP at the originating end. The number of packets sent is T3.
步骤 407: 对端 ΜΕΡ在收到丟包率测量请求消息后, 立即回复丟包率 测量回复消息, 携带有接收到的 Τ3、 请求消息接收时刻对端 ΜΕΡ上的计 数器所记录的收包数 R3、 以及回复消息发送时刻对端 MEP上的计数器所 记录的发包数 T4, 在接收到该丟包率测量回复消息时发起端 MEP上的计 数器所记录的收包数为 R4。  Step 407: After receiving the packet loss rate measurement request message, the peer end immediately responds to the packet loss rate measurement reply message, and carries the received packet number R3 recorded by the counter on the peer end of the request message receiving time. And the number of packets T4 recorded by the counter on the peer MEP at the time of sending the reply message. When the packet loss rate measurement reply message is received, the number of packets recorded by the counter on the originating MEP is R4.
步骤 408: 发起端 MEP在收到丟包率测量回复消息后, 利用之前收集 到的收发包数的差值, 来分别计算这个时间周期内两个方向上的丟包率。  Step 408: After receiving the packet loss rate measurement reply message, the MEP uses the difference between the number of previously received and received packets to calculate the packet loss rate in the two directions during the time period.
具体计算公式如下:  The specific calculation formula is as follows:
发起端往对端方向上的丟包率 = ((T3 -T 1 )-(R3 -R 1 )) / (T3 -T 1 )  Packet loss rate from the originating end to the opposite end = ((T3 -T 1 )-(R3 -R 1 )) / (T3 -T 1 )
对端往发起端方向上的丟包率 = ((T4-T2)-(R4-R2)) I (T4-T2)  Packet loss rate from the peer to the initiator = ((T4-T2)-(R4-R2)) I (T4-T2)
需要注意的是, 上述计算结果只是这个时间周期内的丟包率。  It should be noted that the above calculation result is only the packet loss rate during this time period.
步骤 408之后, 周期性重复执行步骤 406~408 , 由于是主动式测量, 重 复的次数无限大。  After step 408, steps 406-408 are repeatedly performed periodically, and since it is an active measurement, the number of repetitions is infinite.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种丟包率测量中启动计数器的方法, 其特征在于, 该方法包括: 发起端维护端节点 MEP 启动针对本次丟包率测量所针对的服务等级A method for starting a counter in a packet loss rate measurement, the method comprising: the initiating end maintenance node MEP initiating a service level for the current packet loss rate measurement
CoS的计数器后, 向对端 MEP发送启动计数器请求消息; After the counter of the CoS, sending a start counter request message to the peer MEP;
所述对端 MEP收到所述启动计数器请求消息后, 启动相应的计数器, 并向所述发起端 MEP返回启动计数器回复消息。  After receiving the start counter request message, the peer MEP starts a corresponding counter, and returns a start counter reply message to the initiator MEP.
2、 根据权利要求 1所述的丟包率测量中启动计数器的方法, 其特征在 于, 所述启动计数器请求消息至少携带本次丟包率测量所针对的 CoS; 所述对端 MEP启动相应的计数器为: 启动针对所述启动计数器请求消 息携带的本次丟包率测量所针对的 CoS的计数器;  The method for starting a counter in the packet loss rate measurement according to claim 1, wherein the start counter request message carries at least a CoS for which the current packet loss rate measurement is performed; and the peer MEP starts corresponding The counter is: a counter for initiating a CoS for the current packet loss rate measurement carried by the start counter request message;
所述启动计数器回复消息至少携带对端 MEP针对本次丟包率测量所针 对的 CoS启动计数器是否成功的指示。  The start counter reply message carries at least an indication of whether the peer MEP is successful for the CoS start counter for the current packet loss rate measurement.
3、 根据权利要求 2所述的丟包率测量中启动计数器的方法, 其特征在 于,所述发起端 MEP启动针对本次丟包率测量所针对的 CoS的计数器之前, 该方法还包括: 发起端 MEP进行丟包率测量配置,  The method for starting a counter in the packet loss rate measurement according to claim 2, wherein before the initiating MEP starts a counter for the CoS for which the current packet loss rate is measured, the method further includes: The MEP performs the packet loss measurement configuration.
配置为主动式丟包率测量时, 丟包率测量配置参数包括: 本次丟包率 测量所针对的 CoS和丟包率测量消息的发送周期;  When configured as the active packet loss rate measurement, the packet loss rate measurement configuration parameters include: The transmission period of the CoS and packet loss rate measurement messages for the current packet loss rate measurement;
配置为按需式丟包率测量时, 丟包率测量配置参数包括: 本次丟包率 测量所针对的 CoS、 丟包率测量消息的发送周期和丟包率测量消息的发送 次数。  When configured as an on-demand packet loss rate measurement, the packet loss rate measurement configuration parameters include: CoS, the transmission period of the packet loss rate measurement message, and the number of times the packet loss rate measurement message is sent.
4、 根据权利要求 3所述的丟包率测量中启动计数器的方法, 其特征在 于, 所述发起端 MEP向对端 MEP发送启动计数器请求消息为:  The method for starting a counter in the packet loss rate measurement according to claim 3, wherein the initiator MEP sends a start counter request message to the peer MEP as:
发起端 MEP进行主动式丟包率测量时, 通过数据模块或控制模块向对 端 MEP发送启动计数器请求消息;发起端 MEP进行按需式丟包率测量时, 通过数据模块向对端 MEP发送启动计数器请求消息。 When the initiator MEP performs the active packet loss rate measurement, the data module or the control module sends a start counter request message to the peer MEP; when the initiator MEP performs the on-demand packet loss rate measurement, A start counter request message is sent to the peer MEP through the data module.
5、 根据权利要求 4所述的丟包率测量中启动计数器的方法, 其特征在 于, 所述对端 MEP收到所述启动计数器请求消息后, 启动相应的计数器, 并向所述发起端 MEP返回启动计数器回复消息为:  The method for starting a counter in the packet loss rate measurement according to claim 4, wherein, after receiving the start counter request message, the peer MEP starts a corresponding counter, and sends the corresponding MEP to the initiator. The return start counter reply message is:
对于发起端 MEP 通过数据模块或控制模块发送的启动计数器请求消 息, 所述对端 MEP通过相应的数据模块或控制模块进行接收, 并启动相应 的计数器, 之后向所述发起端 MEP返回启动计数器回复消息。  For the initiator counter request message sent by the originating MEP through the data module or the control module, the peer MEP receives the corresponding data module or the control module, and starts the corresponding counter, and then returns a startup counter reply to the initiator MEP. Message.
6、根据权利要求 2至 5任一项所述的丟包率测量中启动计数器的方法, 其特征在于, 所述对端 MEP向所述发起端 MEP返回启动计数器回复消息 之后, 该方法还包括:  The method for starting a counter in a packet loss rate measurement according to any one of claims 2 to 5, wherein after the peer MEP returns a start counter reply message to the originating MEP, the method further includes :
所述启动计数器回复消息指示启动计数器成功, 则发起端 MEP进行丟 包率测量; 所述启动计数器回复消息指示启动计数器失败, 则发起端 MEP 终止丟包率测量, 并返回错误提示。  The startup counter reply message indicates that the startup counter is successful, and the initiator MEP performs a packet loss rate measurement; the startup counter reply message indicates that the startup counter fails, and the initiator MEP terminates the packet loss rate measurement, and returns an error prompt.
7、 一种丟包率测量中启动计数器的系统, 其特征在于, 该系统包括: 发起端 MEP和对端 MEP; 其中,  A system for starting a counter in a packet loss rate measurement, the system comprising: an initiator MEP and a peer MEP;
所述发起端 MEP, 用于在启动针对本次丟包率测量所针对的服务等级 CoS的计数器后, 向对端 MEP发送启动计数器请求消息;  The initiator MEP is configured to send a start counter request message to the peer MEP after starting the counter for the service level CoS for the current packet loss rate measurement;
所述对端 MEP, 用于在收到来自发起端 MEP 的启动计数器请求消息 后, 启动相应的计数器, 并向所述发起端 MEP返回启动计数器回复消息。  The peer MEP is configured to start a corresponding counter after receiving a start counter request message from the initiator MEP, and return a start counter reply message to the initiator MEP.
8、 根据权利要求 7所述的丟包率测量中启动计数器的系统, 其特征在 于, 所述发起端 MEP向对端 MEP发送的启动计数器请求消息至少携带本 次丟包率测量所针对的 CoS;  The system for starting a counter in the packet loss rate measurement according to claim 7, wherein the start counter request message sent by the originating MEP to the opposite MEP carries at least the CoS for the current packet loss rate measurement. ;
所述对端 MEP启动相应的计数器为: 启动针对所述启动计数器请求消 息携带的本次丟包率测量所针对的 CoS的计数器;  The peer MEP starts a corresponding counter as: a counter for initiating a CoS for the current packet loss rate measurement carried by the startup counter request message;
所述对端 MEP向所述发起端 MEP返回的启动计数器回复消息至少携 带对端 MEP针对本次丟包率测量所针对的 CoS启动计数器是否成功的指 示。 The start counter reply message returned by the peer MEP to the originating MEP carries at least The indication with the peer MEP for the success of the CoS start counter for which the current packet loss rate is measured.
9、 根据权利要求 8所述的丟包率测量中启动计数器的系统, 其特征在 于,  9. The system for starting a counter in a packet loss rate measurement according to claim 8, wherein:
所述发起端 MEP,还用于进行丟包率测量配置,所述发起端 MEP配置 为主动式丟包率测量时, 丟包率测量配置参数包括: 本次丟包率测量所针 对的 CoS和丟包率测量消息的发送周期;  The initiating MEP is further configured to perform a packet loss rate measurement configuration. When the initiating MEP is configured as an active packet loss rate measurement, the packet loss rate measurement configuration parameter includes: the CoS and the target of the packet loss rate measurement. The transmission period of the packet loss rate measurement message;
所述发起端 MEP配置为按需式丟包率测量时, 丟包率测量配置参数包 括: 本次丟包率测量所针对的 CoS、 丟包率测量消息的发送周期和丟包率 测量消息的发送次数。  When the initiating MEP is configured as an on-demand packet loss rate measurement, the packet loss rate measurement configuration parameters include: a CoS, a packet loss rate measurement message transmission period, and a packet loss rate measurement message for the current packet loss rate measurement. The number of transmissions.
10、 根据权利要求 9所述的丟包率测量中启动计数器的系统, 其特征 在于,  10. The system for starting a counter in a packet loss rate measurement according to claim 9, wherein:
所述发起端 MEP包括数据模块和控制模块, 所述对端 MEP包括数据 模块和控制模块, 所述发起端 MEP向对端 MEP发送启动计数器请求消息 为:  The initiator MEP includes a data module and a control module, and the peer MEP includes a data module and a control module, and the initiator MEP sends a start counter request message to the peer MEP as follows:
发起端 MEP进行主动式丟包率测量时, 通过其中的数据模块或控制模 块向对端 MEP发送启动计数器请求消息; 发起端 MEP进行按需式丟包率 测量时, 通过其中的数据模块向对端 MEP发送启动计数器请求消息。  When the initiator MEP performs the active packet loss rate measurement, the data module or the control module sends a start counter request message to the peer MEP. When the initiator MEP performs the on-demand packet loss rate measurement, the data module is forwarded through the pair. The MEP sends a Start Counter Request message.
11、 根据权利要求 10所述的丟包率测量中启动计数器的系统, 其特征 在于,所述对端 MEP收到所述启动计数器请求消息后,启动相应的计数器, 并向所述发起端 MEP返回启动计数器回复消息为:  The system for starting a counter in the packet loss rate measurement according to claim 10, wherein after receiving the start counter request message, the peer MEP starts a corresponding counter, and sends the corresponding MEP to the initiator. The return start counter reply message is:
对于发起端 MEP通过其数据模块或控制模块发送的启动计数器请求消 息, 所述对端 MEP通过自身相应的数据模块或控制模块进行接收, 并启动 相应的计数器, 之后向所述发起端 MEP返回启动计数器回复消息。  For the initiator counter request message sent by the initiator MEP through its data module or control module, the peer MEP receives the data through its corresponding data module or control module, and starts the corresponding counter, and then returns to the initiator MEP to start. The counter replies to the message.
12、 根据权利要求 8至 11任一项所述的丟包率测量中启动计数器的系 统, 其特征在于, 12. A system for starting a counter in a packet loss rate measurement according to any one of claims 8 to 11. System, which is characterized by
所述发起端 MEP, 还用于在启动计数器回复消息指示启动计数器成功 时, 进行丟包率测量; 以及在启动计数器回复消息指示启动计数器失败时, 终止丟包率测量, 并返回错误提示。  The initiator MEP is further configured to: when the start counter reply message indicates that the start counter is successful, perform a packet loss rate measurement; and when the start counter reply message indicates that the start counter fails, terminate the packet loss rate measurement, and return an error prompt.
PCT/CN2011/074537 2010-07-05 2011-05-23 Method and system for initiating a counter in packet loss rate measurement WO2012003745A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010219805.7 2010-07-05
CN201010219805.7A CN102315980B (en) 2010-07-05 2010-07-05 A kind of method and system of starting counter in measurement of packet loss rate

Publications (1)

Publication Number Publication Date
WO2012003745A1 true WO2012003745A1 (en) 2012-01-12

Family

ID=45428817

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074537 WO2012003745A1 (en) 2010-07-05 2011-05-23 Method and system for initiating a counter in packet loss rate measurement

Country Status (2)

Country Link
CN (1) CN102315980B (en)
WO (1) WO2012003745A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179000A (en) * 2013-03-26 2013-06-26 杭州晨晓科技有限公司 Packet loss ratio measurement method for MPLS-TP (Multi Protocol Label Switching-Transport Profile) network performance monitor

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546303A (en) * 2012-07-09 2014-01-29 中兴通讯股份有限公司 Lost frame measuring method and system
US20180123927A1 (en) * 2016-10-27 2018-05-03 Nanning Fugui Precision Industrial Co., Ltd. Method and device for detecting network packet loss based on software defined network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080080390A1 (en) * 2006-09-28 2008-04-03 Fujitsu Limited Packet loss rate calculation system
CN101488835A (en) * 2009-02-13 2009-07-22 华为技术有限公司 Link detection method, apparatus and communication system
WO2009098757A1 (en) * 2008-02-05 2009-08-13 Fujitsu Limited Method for measuring frame loss, system for measuring frame loss, and device for measuring frame loss
CN101729197A (en) * 2008-10-14 2010-06-09 华为技术有限公司 Method, device and system for detecting packet loss rate

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080080390A1 (en) * 2006-09-28 2008-04-03 Fujitsu Limited Packet loss rate calculation system
WO2009098757A1 (en) * 2008-02-05 2009-08-13 Fujitsu Limited Method for measuring frame loss, system for measuring frame loss, and device for measuring frame loss
CN101729197A (en) * 2008-10-14 2010-06-09 华为技术有限公司 Method, device and system for detecting packet loss rate
CN101488835A (en) * 2009-02-13 2009-07-22 华为技术有限公司 Link detection method, apparatus and communication system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179000A (en) * 2013-03-26 2013-06-26 杭州晨晓科技有限公司 Packet loss ratio measurement method for MPLS-TP (Multi Protocol Label Switching-Transport Profile) network performance monitor

Also Published As

Publication number Publication date
CN102315980B (en) 2015-09-16
CN102315980A (en) 2012-01-11

Similar Documents

Publication Publication Date Title
US11909615B2 (en) Multi-hop reflector sessions
US8780731B2 (en) Ethernet performance monitoring
Frost et al. Packet loss and delay measurement for mpls networks
US9485162B2 (en) Method and system for measuring frame loss ratio
EP3267624B1 (en) Method and apparatus for managing user quality of experience (qoe) in mobile communication system
US9602374B2 (en) Systems and methods for collecting and analyzing data to determine link quality and stability in layer two networks
CN103595553A (en) Automatic setup of reflector instances
WO2011026264A1 (en) Method and apparatus for detecting multi-service performance in tunnel
CN102868569B (en) The method for testing performance of Layer3 Virtual Private Network, node and system
WO2012155817A1 (en) Loopback testing method, device and system
WO2012106925A1 (en) Method, apparatus and system for locating faults in ip network
WO2015035616A1 (en) Method and device for cross-network communications
US8254271B1 (en) Point-to-multipoint connectivity verification
Mizrahi et al. An overview of operations, administration, and maintenance (OAM) tools
WO2014117737A1 (en) Oam packet processing method, device and system
WO2006089490A1 (en) A method for implementing fec bfd
WO2012003745A1 (en) Method and system for initiating a counter in packet loss rate measurement
CN112585920B (en) Performance measurement using extended bidirectional forwarding control packets
CN110166311B (en) Method, equipment and network system for measuring network performance
WO2014008809A1 (en) Frame loss detection method and system
Sprecher et al. An Overview of the Operations, Administration, and Maintenance (OAM) Toolset for MPLS-Based Transport Networks
WO2012006825A1 (en) Method, system and terminal for pseudo wire oam attribute configuration
WO2022222544A1 (en) Method and apparatus for operation administration and maintenance (oam) detection
US20230246928A1 (en) Performance measurement in a packet switched communication network
Indukuri Pseudowire VCCV-BFD Vs Ethernet OAM

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11803099

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11803099

Country of ref document: EP

Kind code of ref document: A1