WO2014008809A1 - Frame loss detection method and system - Google Patents

Frame loss detection method and system Download PDF

Info

Publication number
WO2014008809A1
WO2014008809A1 PCT/CN2013/077818 CN2013077818W WO2014008809A1 WO 2014008809 A1 WO2014008809 A1 WO 2014008809A1 CN 2013077818 W CN2013077818 W CN 2013077818W WO 2014008809 A1 WO2014008809 A1 WO 2014008809A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
frame
measurement
message frame
identifier
Prior art date
Application number
PCT/CN2013/077818
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 WO2014008809A1 publication Critical patent/WO2014008809A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • H04L43/0835One way packet loss

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a method and system for determining lost frames. Background technique
  • a maintenance entity group in the OAM includes a maintenance endpoint (MEP, MEG End Point) located at both ends of the MPLS-TP transmission path, and a maintenance intermediate point (MIP) located in the middle of the MPLS-TP transmission path;
  • MEP maintenance endpoint
  • MIP maintenance intermediate point
  • the source MEP sends a Lost Measurement Message (LMM, Loss Measurement Message) to the sink MEP, and then the MEP returns a Lost Measurement Response (LMR, Loss Measurement Response) to the source MEP, and the source MEP from the local information and
  • LMM Lost Measurement Message
  • LMR Loss Measurement Response
  • TxFCf indicates the local frame count when transmitting the LMM
  • RxFCf indicates the local receive frame count when the LMM is received
  • TxFCb indicates the local frame count when transmitting the LMR
  • the TxFCf is written to the LMM; when the sink MEP receives When it reaches the LMM, copy the TxFCf in the received LMM to the LMR, and write the RxFCf and TxFCb to the LMR, and then the sinking MEP sends the LMR.
  • the source MEP receives the LMR, record the TxFCf and RxFCf in the LMR. , TxFCb, and the local receive frame count RxFCl at the time of receiving the LMR.
  • Frame Loss [far-end]
  • Frame Loss [near-end]
  • the G-ACH (Generic Associated Channel) of the LM frame sent by the source MEP is a specific fixed value.
  • the MIP transparently transmits the LM frame according to the transport label, and does not parse the G-ACH header. Therefore, the LM frame cannot be recognized.
  • the transport label is popped up. Furthermore, it is parsed into the G-ACH header, and it is determined whether or not the LM frame is processed based on whether the G-ACH is a specific fixed value, and therefore only the MEP node processes the LM frame.
  • the LM function can only be applied to determine the frame loss between the MEP nodes, and cannot be used for the frame loss measurement of the MIP node. Therefore, the LM function cannot be specifically located. The specific MIP node where the frame is lost.
  • the MEP node counts the transmission and reception of frames, that is, there is no counting information about the transmission and reception frames on the MIP node, and the LM function is a measurement method for frame loss between nodes, when MIP When there is no counting of the transmitted and received frames on the node, it is impossible to determine the frame loss between the MEP and the MIP node. For details, refer to FIG. 1.
  • the nodes SI and S6 are MEPs, and the other nodes S2 to S5 are MIPs.
  • the nodes S1 and S6 can interact with each other through the LMM and the LMR. , can detect the frame loss, but because the frame loss cannot be measured between the MEP and the MIP node, the specific frame loss node cannot be detected.
  • only the specific MIP node that locates the dropped frame can further analyze the specific reason of the frame loss on the node and find the fundamental problem.
  • the LM function specified in OAM can solve the problem of frame loss measurement between MEPs, but LM in OAM can only be applied to frame loss measurement between MEP and MEP, which cannot be used for MEP and MIP. Frame loss measurement.
  • some networks that do not support OAM that is, no MEP nodes and no MIP nodes, also require a lost frame measurement to locate the fault. Summary of the invention
  • the main object of the embodiments of the present invention is to provide a method and system for determining a lost frame, which can accurately locate a node that loses frames.
  • a method for determining a lost frame comprising:
  • the first node and the second node that need to perform the lost frame measurement respectively count the respective frame counts
  • the first node sends a measurement message frame including a frame count of the first node and an identifier that can be identified by the second node to the second node;
  • the second node After receiving the measurement message frame, the second node sends a measurement response message frame including a frame count of the second node and an identifier that can be identified by the first node;
  • the first node After receiving the measurement response message frame, the first node determines a frame loss situation between the first node and the second node;
  • the identifier that can be identified by the second node includes the purpose of the measurement message frame One or more of an address, a time-to-live (TTL), a type and/or a label, a pre-agreed identifier; the identifier that can be identified by the first node includes a destination address, a TTL, a type of the measurement response message frame And/or label, one or more of the pre-agreed identifiers.
  • TTL time-to-live
  • the determining, by the first node, the measurement message frame that includes the frame count of the first node and the identifier that can be identified by the second node is:
  • the first node sets the destination address of the measurement message frame to the destination address of the second node, or sets the TTL of the measurement message frame to be the distance from the second node hop, or determines the type of the message frame and/or Or the label is set to a pre-agreed value, or after the pre-agreed identifier is set in the measurement message frame, the frame count of the first node is included in the measurement message frame for transmission.
  • the measurement response message frame in which the second node sends the frame count including the second node and the identifier that can be identified by the first node is:
  • the second node sets the destination address of the measurement response message frame to the destination address of the first node, or sets the TTL of the measurement response message frame to be the distance from the first node, or determines the response message frame.
  • the type and/or label is set to a pre-agreed value, or after the pre-agreed identifier is set in the measurement response message frame, the frame count of the second node is included in the measurement response message frame for transmission.
  • the frame count is a count of receiving/transmitting frames of one or more combinations of ports, tunnels, and pseudowire layers that are pre-negotiated by the first node and the second node.
  • the method further includes:
  • the first node When the first node does not receive the measurement response message frame sent by the second node within a predetermined time, it is determined that all frames between the first node and the second node are lost.
  • a lost frame measurement system includes: a first node and a second node; wherein, the first node is configured to perform statistics on a frame count when a frame loss measurement is required, and send the first node Frame count and determination of the identifier that can be recognized by the second node And the frame is sent to the second node; and configured to: after receiving the measurement response message frame sent by the second node, determining a frame loss situation between the first node and the second node;
  • the second node is configured to collect a frame count when the frame loss measurement needs to be performed, and send a frame count including the second node and an identifier that can be recognized by the first node after receiving the measurement message frame Measurement response message frame;
  • the identifier that can be identified by the second node includes one or more of a destination address, a TTL, a type, and/or a label of the measurement message frame, and a pre-agreed identifier; the identifier can be identified by the first node.
  • the identifier includes the destination address, TTL, type, and
  • the first node is configured to set a destination address of the measurement message frame to a destination address of the second node, or set a TTL of the measurement message frame to be a distance from a second node, or
  • the type of the message frame and/or the tag is set to a pre-agreed value, or after the pre-agreed identifier is set in the measurement message frame, the frame count of the first node is included in the measurement message frame for transmission.
  • the second node is configured to set a destination address of the measurement response message frame to a destination address of the first node, or set a TTL of the measurement response message frame to a hop count from the first node, Or setting the type and/or label of the measurement response message frame to a pre-agreed value, or setting the frame count of the second node in the measurement response message frame after setting the pre-agreed identifier in the measurement response message frame Send it.
  • the frame count is a count of receiving/transmitting frames of one or more combinations of ports, tunnels, and pseudowire layers that are pre-negotiated by the first node and the second node.
  • the first node is further configured to: when the measurement response message frame sent by the second node is not received within a predetermined time, determine that all frames between the first node and the second node are lost.
  • the interaction between the message frame and the measurement response message frame is performed between the nodes, Not only can the frame loss between MEP nodes in the network be measured, but also the frame loss between MEP and MIP, MIP and MIP nodes can be determined. Even when the network does not support 0 AM, two can be determined. Frame loss between nodes. In this way, when a failure occurs in the network and the frame is lost, the frame loss count of one node to another node can be determined. When there is a frame loss between two adjacent nodes, it can also be measured, which is beneficial to the network failure. Positioning, maintenance and management. DRAWINGS
  • FIG. 1 is a schematic diagram of a method for determining a lost frame in an existing OAM network
  • FIG. 2 is a schematic flowchart of an implementation process of a lost frame measurement method according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an implementation of a method for determining a lost frame according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of an implementation of a method for determining a lost frame according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a lost frame measurement system according to an embodiment of the present invention.
  • the basic idea of the embodiment of the present invention is: the first node and the second node that need to perform the lost frame measurement respectively count the respective frame counts; the first node sends the frame count including the first node and can be recognized by the second node. Determining the message frame of the identifier to the second node; after receiving the measurement message frame, the second node sends a measurement response message frame including a frame count of the second node and an identifier that can be identified by the first node; After receiving the measurement response message frame, the first node determines a frame loss situation between the first node and the second node, where the identifier that can be identified by the second node includes the destination address of the measurement message frame.
  • FIG. 2 is a flowchart showing an implementation process of a method for determining a lost frame according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • Step 201 The first node and the second node that need to perform the lost frame measurement respectively count the respective frame counts;
  • the first node and/or the second node may be a MEP, a MIP, or a node that does not support the OAM function, where, when the first node or the second node is a MIP or a node that does not support the OAM function,
  • the first node or the second node counts the frame count as follows: According to the port receiving count, when the port receives a frame, the counter is incremented by one, and the value in the counter is the received frame count of the port; It can also be based on the frame count of a tunnel of a port. When a tunnel receives a frame, the counter is incremented by one. The value in the counter is the frame count based on a tunnel of the port.
  • the frame count may be a count of the receiving/transmitting frame of one or more combinations of the port, the tunnel, and the pseudowire layer of the node; as long as the frame count of the pre-negotiated layer of the first node and the second node can be satisfied .
  • Step 202 The first node sends a measurement message frame including a frame count of the first node and an identifier that can be identified by the second node to the second node.
  • the identifier that can be identified by the second node includes one or more of a destination address, a TTL, a type, and/or a label, and a pre-agreed identifier of the measurement message frame.
  • the first node may The identifier that can be identified by the second node is set by: setting the destination address of the measurement message frame to the destination address of the receiving node (ie, the second node), or determining the lifetime of the message frame (TTL, Time to Live) Set to the second node hop count, or set the type, label, etc. of the measurement message frame to a pre-agreed value, or set a pre-agreed identifier in the measurement message frame.
  • TTL Time to Live
  • Step 203 After receiving the measurement message frame, the second node sends the second node. a frame count and a measurement response message frame of the identifier that can be identified by the first node; wherein the identifier that can be identified by the first node includes a destination address, a TTL, a type, and/or a label of the measurement response message frame, Predefining one or more of the identifiers; here, the second node may set an identifier that can be recognized by the first node by: setting a destination address of the measurement response message frame as a receiving node (ie, the first node) The destination address of the response message frame is set to be the distance from the first node hop, or the type, label, etc. of the measurement response message frame is set to a pre-agreed value, or a pre-agreed identifier is set in the measurement response message frame. symbol.
  • Step 204 After receiving the measurement response message frame, the first node determines a frame loss situation between the first node and the second node.
  • the first node determines a frame loss situation between the first node and the second node according to the frame count in the transmitted measurement message frame and the frame count in the received measurement response message frame.
  • the foregoing method further includes: determining, between the first node and the second node, when the first node does not receive the measurement response message frame sent by the second node for a preset time. All frames are lost.
  • FIG. 3 is a schematic diagram of Embodiment 1 of a method for determining a lost frame according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an MPLS-TP network, where nodes S1 and S6 are MEPs, and other nodes S2 to S5 are MIPs;
  • the nodes S2 to S5 that need to be measured first need to count the respective receiving and transmitting frame counts. Since the existing MEP nodes perform the statistics of the receiving and sending frames, only the nodes S2 to S5 need to be additionally performed. Frame count statistics;
  • the node S 1 then sends a measurement message frame to each MIP, in order to enable each MIP node to recognize and respond to the measurement message frame sent by the MEP node, the MEP node is transmitting the measurement message frame.
  • Set the TTL to the hop count from the specified MIP.
  • the node receives the frame if the TTL of the frame is greater than 1, the packet is forwarded and the TTL is decremented by 1. If the TTL of the frame is equal to 1, the Further parse and stop forwarding the frame. For example, when the TTL is set to 1, the measurement message frame sent by the node S1 is received by the node S2 and the response response message frame is returned.
  • the TTL of the measurement message frame sent by the node S1 is reduced by 1 when it is forwarded by the node S2. Then, the node S3 receives and replies to the measurement response message frame; when the TTL is set to be greater than or equal to the hop count between the MEP and the MEP (in this embodiment, the hop count between the nodes S1 and S6 is 5), the MEP The measurement message frame sent by the node S1 is received by the opposite MEP node S6 and replies to the measurement response message frame. It should be understood that FIG.
  • the TTL in this embodiment is the hop count between the sending node and the receiving node, it may also be other values calculated by the hop count, such as the hop count plus 1, the hop count minus 1, a certain comparison The large value minus the hop count, etc., as long as the response node and the sending node agree in advance.
  • the measurement message frame sent by the node S1 carries the frame count information of the node S1, and also carries the frame count information of the reply node in the measurement response message frame replied by each node, and the node S1 calculates its own and based on the information.
  • the node S1 can determine that there is no frame loss between the nodes S1 and S3, and the node S1 to the node S4 have dropped frames, so that the nodes S3 to S4 can be determined.
  • the frame loss occurs. Therefore, the specific frame loss location is located between nodes S3 and S4. It may be that the node S3 or S4 has dropped frames, or the link between nodes S3 and S4 may be dropped.
  • the frame count information included in the measurement message frame and the measurement response message frame may be a count of the receiving/transmitting frame at the port, the tunnel, or the pseudowire layer, or multiple combinations of the foregoing counting, as long as the response node and the sending node Pre-negotiate can be.
  • FIG. 4 is a schematic diagram showing an implementation of Embodiment 2 of a method for determining a lost frame according to an embodiment of the present invention, such as
  • the measurement message frame sent by the node SI to the node S3 carries the number of transmission and reception frames of a tunnel under its own port 1; and the measurement response message frame replied by the node S3 carries both the received message from the node S1.
  • the frame count calculates the frame loss value of the port 3 of the node S1 to the port 3 of the node S3 in the tunnel.
  • the measurement message frame sent by the node S3 to the node S5 carries the transmission and reception frame count of a tunnel under its own port 2 and 3
  • the measurement response message frame replied by the node S5 carries both the received message from the node S3. Determining the tunnel receiving frame counts copied in the message frame, and carrying the same frame transmission and reception frame counts of the own ports 4 and 5, and after receiving the measurement response message frame, the node S3 counts the frames according to the measurement response message frame.
  • the local frame count calculate the frame loss value of the port 2, 3 of the node S3 to the port 4, 5 of the node S5 in the tunnel, if there is no frame loss between the port 2 of the node S3 and the port 4 of the node S5 If there is a frame loss between port 3 of node S3 and port 5 of node S5, it can be determined that there is a frame loss between port 4 and port 5 of node S5.
  • the node sends the measurement message frame, if the measurement response message frame of the opposite end is not received within a predetermined time, for example, 5 seconds, it is determined that the frame loss count between the node and the opposite end is all frames.
  • FIG. 5 shows an implementation of Embodiment 3 of the method for determining a lost frame according to an embodiment of the present invention
  • FIG. 5 shows an Ethernet or IP network, which uses the above method in the embodiment of the present invention, and the node to be measured (node S1 ⁇ ) S6)
  • the node S1 sends the measurement message frame to the other nodes, where the nodes S1 and S3 send the identifiers that can be recognized by the other party by setting the preset specific identifiers, and send them to the node at the node S1.
  • the measurement message frame of S3 includes a specific identifier that can be identified by the node S3, and the measurement response message frame that the node S3 replies to the node S1 includes a specific identifier that can be identified by the node S1, and the identifier can be specifically Destination address, frame type, agreed value of a specific field, or a combination of the above, etc.
  • the frame and the measurement response message frame also include the frame count information of the node, which may be a port, a virtual local area network (VLAN), or an IP layer receiving/transmitting frame count, or multiple combinations of the foregoing counting. As long as the response node and the sending node agree with each other in advance.
  • VLAN virtual local area network
  • the node S1 In order to determine the frame loss of the VLAN 100 in the Ethernet network, the node S1 sends a measurement message frame, and a specific location in the measurement message frame (for example, at the first address plus 100 bytes) contains a specific identifier that the node S3 can recognize. , if it can be 0x03030303, and includes the transmit and receive frame count of VLAN 100 of its own port 1;
  • the node S3 detects the corresponding specific location (ie, the first address plus 100 bytes), and when the content of the location is a pre-agreed specific identifier (ie, 0x03030303), the forwarding is not performed, but the response response message frame is returned, and
  • the specific identifier written in the node S1 at a specific position in the measurement response message frame may be 0x01010101, and the measurement response message frame further includes its own port 2, 3
  • the node S1 detects the corresponding specific location, that is, whether the first address plus 120 bytes is a pre-agreed specific identifier (ie, 0x01010101), and if so, Instead of forwarding, the number of dropped frames from node S1 port 1 to node S3 ports 2 and 3 is calculated based on the received frame count and its own frame count.
  • the node S1 calculates the frame loss count of its own port 1 to the node S4 port 4, 5 respectively. If there is a frame loss between the nodes S3 and S4, the node S1 can determine that there is no frame loss between the port 1 and the node S3, and there is a frame loss between the node S4 and the port 4, so that the frame loss position can be determined as a node. Between S3 and S4.
  • the node S1 does not receive the measurement response message frame of the node S4 within a preset period of time (for example, 5 seconds), and at this time, the node S1 to the node S4 are determined. All frames are lost.
  • FIG. 6 is a diagram showing the structure of a lost frame measurement system according to an embodiment of the present invention, as shown in FIG.
  • the system includes: a first node and a second node; wherein
  • the first node is configured to perform statistics on a frame count when a frame loss measurement is required, and send a measurement message frame including a frame count of the first node and an identifier that can be identified by the second node to the second node; After receiving the measurement response message frame sent by the second node, determining a frame loss situation between the first node and the second node;
  • the second node is configured to collect a frame count when the frame loss measurement needs to be performed, and send a frame count including the second node and an identifier that can be recognized by the first node after receiving the measurement message frame The measurement response message frame.
  • the first node is configured to set a destination address of the measurement message frame to a destination address of the second node, or set a TTL of the measurement message frame to be a distance from a second node, or
  • the type of the message frame and/or the tag is set to a pre-agreed value, or after the pre-agreed identifier is set in the measurement message frame, the frame count of the first node is included in the measurement message frame for transmission.
  • the second node is configured to set a destination address of the measurement response message frame to a destination address of the first node, or set a TTL of the measurement response message frame to a hop count from the first node, Or setting the type and/or label of the measurement response message frame to a pre-agreed value, or setting the frame count of the second node in the measurement response message frame after setting the pre-agreed identifier in the measurement response message frame Send it.
  • the frame count is a count of receiving/transmitting frames of one or more combinations of ports, tunnels, and pseudowire layers that are pre-negotiated by the first node and the second node.
  • the first node is further configured to: when the measurement response message frame sent by the second node is not received within a predetermined time, determine that all frames between the first node and the second node are lost.
  • the MIP to the MIP node can be determined.
  • Frame loss even when the network does not support 0 AM, it can also determine the frame loss between two nodes.
  • a frame loss count of a node to another node may be determined, and when there is a frame loss between two adjacent nodes, the frame may be detected. This facilitates the fault location, maintenance and management of the network.

Landscapes

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

Abstract

Provided are a frame loss detection method and system. The method includes: a first node and a second node which require frame loss detection counting the frame counts thereof respectively; the first node sending to the second node a detection message frame which contains the frame count of the first node and an identifier which can be identified by the second node; after receiving the detection message frame, the second node sending a detection response message frame which contains the frame count of the second node and an identifier which can be identified by the first node; and after receiving the detection response message frame, the first node determining a frame loss situation between the first node and the second node. By performing the interaction of a detection message frame and a detection response message frame between nodes, when a fault occurs in a network resulting in frame loss, the present invention can detect a frame loss count between one node and other nodes respectively, and when there is frame loss between two adjacent nodes, it can also be detected, which facilitates the fault location, maintenance and management of a network.

Description

一种丢失帧测定方法及系统 技术领域  Method and system for measuring lost frame
本发明涉及网络通信技术领域, 尤其涉及一种丟失帧测定方法及系统。 背景技术  The present invention relates to the field of network communication technologies, and in particular, to a method and system for determining lost frames. Background technique
当网络中出现流量丟失时, 通常会导致业务中断, 给用户带来许多不 便。 目前业界存在多种技术来快速检测流量丟失。 例如根据国际电信联盟 远程通信标准化组织( ITU-T, ITU Telecommunication Standardization Sector ) Y.1731 的以太网操作管理维护 ( OAM, Operation Administration Maintenance ) 和 G.8113 · 1 的传送特性的多协议标签交换 ( MPLS-TP, Multi-Protocol Label Switching Transport Profile ) OAM的定义, 端到端的 帧 /包 /报文丟失采用丟帧测定(LM, Loss Measurement )功能来进行测定。  When traffic is lost in the network, it usually causes service interruption, which brings a lot of inconvenience to users. There are many technologies in the industry to quickly detect traffic loss. For example, according to the International Telecommunication Union Telecommunication Standardization Sector (ITU-T, ITU Telecommunication Standardization Sector) Y.1731, Ethernet Operation Management Maintenance (OAM) and G.8113 · 1 transmission characteristics of multi-protocol label switching ( MPLS-TP (Multi-Protocol Label Switching Transport Profile) The definition of OAM, end-to-end frame/packet/message loss is measured by LM, Loss Measurement.
在 OAM中一个维护实体组包括位于 MPLS-TP传输路径两端的维护端 点 ( MEP, MEG End Point )、 以及位于 MPLS-TP传输路径中间的维护中间 点 (MIP, Maintenance Intermediate Point ); 其中, 当该传输路径出现故障 时, 源 MEP发送丟帧测定消息 (LMM, Loss Measurement Message )给宿 MEP, 然后宿 MEP返回丟帧测定响应( LMR, Loss Measurement Response ) 给源 MEP, 源 MEP从本地的信息和收到的 LMR携带的信息综合计算出帧 丟失个数以及帧丟失率;其中,所述 LMM帧和 LMR帧通常统称为 LM帧。  A maintenance entity group in the OAM includes a maintenance endpoint (MEP, MEG End Point) located at both ends of the MPLS-TP transmission path, and a maintenance intermediate point (MIP) located in the middle of the MPLS-TP transmission path; When the transmission path fails, the source MEP sends a Lost Measurement Message (LMM, Loss Measurement Message) to the sink MEP, and then the MEP returns a Lost Measurement Response (LMR, Loss Measurement Response) to the source MEP, and the source MEP from the local information and The received information of the LMR comprehensively calculates the number of frame loss and the frame loss rate; wherein the LMM frame and the LMR frame are generally collectively referred to as an LM frame.
通常在采用 LM功能测定帧丟失时, 需要用到如下几个参数:  Usually when using the LM function to measure frame loss, the following parameters are required:
TxFCf: 表示在发送 LMM时的本地发帧计数;  TxFCf: indicates the local frame count when transmitting the LMM;
RxFCf: 表示在收到 LMM时的本地收帧计数;  RxFCf: indicates the local receive frame count when the LMM is received;
TxFCb: 表示在发送 LMR时的本地发帧计数;  TxFCb: indicates the local frame count when transmitting the LMR;
当源 MEP发送 LMM时, 将 TxFCf写入到 LMM中; 当宿 MEP接收 到 LMM时, 将收到的 LMM中的 TxFCf拷贝到 LMR中, 并将 RxFCf和 TxFCb写入到 LMR中, 然后宿 MEP发送 LMR; 当源 MEP收到 LMR时, 记录下 LMR中的 TxFCf、 RxFCf、 TxFCb、 以及接收 LMR时刻的本地收帧 计数 RxFCl。 When the source MEP sends the LMM, the TxFCf is written to the LMM; when the sink MEP receives When it reaches the LMM, copy the TxFCf in the received LMM to the LMR, and write the RxFCf and TxFCb to the LMR, and then the sinking MEP sends the LMR. When the source MEP receives the LMR, record the TxFCf and RxFCf in the LMR. , TxFCb, and the local receive frame count RxFCl at the time of receiving the LMR.
如果源 MEP 本次接收到 LMR后的上述计数值分别为 TxFCf[tc]、 If the source MEP receives the LMR this time, the above count values are TxFCf[tc],
RxFCf[tc]、 TxFCb[tc]和 RxFCl [tc], 上一次的上述计数值分别为 TxFCf[tp]、 RxFCf[tp]、 TxFCb[tp]和 RxFCl [tp], 则源 MEP计算的丟帧计数如下: RxFCf[tc], TxFCb[tc], and RxFCl [tc], the last count values of the above are TxFCf[tp], RxFCf[tp], TxFCb[tp], and RxFCl [tp], respectively, the frame loss calculated by the source MEP Count as follows:
Frame Loss [far-end] = |TxFCf[tc]- TxFCf[tp]|-| RxFCf[tc]- RxFCf[tp]|; Frame Loss [near-end] = |TxFCb[tc]- TxFCb[tp]|-| RxFCl [tc]- RxFCl [tp]|。 对于 Y.1731 OAM应用的以太网络, 由于源 MEP发出的 LM帧的目的 地址为一个特定组播地址, 只有 MEP 才会 居特定组播地址识别和处理 LM 帧, 其他节点则会直接透传该 LM 帧, 不会进行处理和响应; 对于 G.8113.1 OAM应用的 MPLS-TP网络, 由于源 MEP发出的 LM帧的通用关 联通道( G-ACH, Generic Associated Channel )为一个特定固定值,在 G-ACH 头外还有传送标签, MIP在收到 LM帧后根据传送标签进行透传, 并不会 解析 G-ACH头, 因此也不能识别出 LM帧, 对于 MEP节点, 会将传送标 签弹出, 进而解析到 G-ACH头, 根据 G-ACH是否为特定固定值进行识别 是否为 LM帧, 因此只有 MEP节点才会处理 LM帧。  Frame Loss [far-end] = |TxFCf[tc]- TxFCf[tp]|-| RxFCf[tc]- RxFCf[tp]|; Frame Loss [near-end] = |TxFCb[tc]- TxFCb[tp] |-| RxFCl [tc]- RxFCl [tp]|. For the Ethernet network of the Y.1731 OAM application, because the destination address of the LM frame sent by the source MEP is a specific multicast address, only the MEP will identify and process the LM frame at a specific multicast address, and other nodes will directly transparently transmit the LM frame. The LM frame will not be processed and responded. For the MPLS-TP network of the G.8113.1 OAM application, the G-ACH (Generic Associated Channel) of the LM frame sent by the source MEP is a specific fixed value. There is also a transport label outside the -ACH header. The MIP transparently transmits the LM frame according to the transport label, and does not parse the G-ACH header. Therefore, the LM frame cannot be recognized. For the MEP node, the transport label is popped up. Furthermore, it is parsed into the G-ACH header, and it is determined whether or not the LM frame is processed based on whether the G-ACH is a specific fixed value, and therefore only the MEP node processes the LM frame.
如此, 在现有技术中, 只有 MEP 节点才能识别和处理 LM 帧, 因此 LM功能只能应用在 MEP节点之间测定帧的丟失, 不能用于 MIP节点的丟 帧测定, 因此, 无法具体定位到帧丟失的具体 MIP节点。 此外, 按照 OAM 的规定,只有 MEP节点才会对帧的收发情况进行计数, 即 MIP节点上并没 有关于收发帧的计数信息, 而 LM功能是用于节点之间帧丟失的测定方法, 当 MIP节点上没有关于收发帧的计数时, 更无法测定出 MEP到 MIP节点 之间的帧丟失情况。 具体可参考图 1, 节点 SI和 S6为 MEP, 其他节点 S2~S5为 MIP, 当 节点 S3和 S4之间出现异常而导致业务帧丟失时, 节点 S1和 S6之间虽然 可以通过交互 LMM和 LMR, 能够检测到帧丟失, 但由于 MEP和 MIP节 点之间不能测定帧丟失, 因此无法检测到具体的帧丟失节点。 而在工程应 用中, 只有定位到丟帧的具体 MIP节点, 才能进一步的在该节点上分析帧 丟失的具体原因, 找出根本问题。 In this way, in the prior art, only the MEP node can identify and process the LM frame. Therefore, the LM function can only be applied to determine the frame loss between the MEP nodes, and cannot be used for the frame loss measurement of the MIP node. Therefore, the LM function cannot be specifically located. The specific MIP node where the frame is lost. In addition, according to OAM regulations, only the MEP node counts the transmission and reception of frames, that is, there is no counting information about the transmission and reception frames on the MIP node, and the LM function is a measurement method for frame loss between nodes, when MIP When there is no counting of the transmitted and received frames on the node, it is impossible to determine the frame loss between the MEP and the MIP node. For details, refer to FIG. 1. The nodes SI and S6 are MEPs, and the other nodes S2 to S5 are MIPs. When an abnormality occurs between the nodes S3 and S4 and the service frame is lost, the nodes S1 and S6 can interact with each other through the LMM and the LMR. , can detect the frame loss, but because the frame loss cannot be measured between the MEP and the MIP node, the specific frame loss node cannot be detected. In the engineering application, only the specific MIP node that locates the dropped frame can further analyze the specific reason of the frame loss on the node and find the fundamental problem.
综上所述, OAM中规定的 LM功能, 虽然能够解决 MEP之间的帧丟 失测定问题, 但是 OAM中的 LM只能应用于 MEP与 MEP之间的帧丟失 测定, 无法用于 MEP与 MIP的帧丟失测定。 此外, 有些不支持 OAM的网 络, 即没有 MEP节点, 也没有 MIP节点, 也需要一种丟失帧测定来定位故 障。 发明内容  In summary, the LM function specified in OAM can solve the problem of frame loss measurement between MEPs, but LM in OAM can only be applied to frame loss measurement between MEP and MEP, which cannot be used for MEP and MIP. Frame loss measurement. In addition, some networks that do not support OAM, that is, no MEP nodes and no MIP nodes, also require a lost frame measurement to locate the fault. Summary of the invention
有鉴于此, 本发明实施例的主要目的在于提供一种丟失帧测定方法及 系统, 能够精确定位到丟帧的节点。  In view of this, the main object of the embodiments of the present invention is to provide a method and system for determining a lost frame, which can accurately locate a node that loses frames.
为达到上述目的, 本发明实施例的技术方案是这样实现的:  To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
一种丟失帧测定方法, 所述方法包括:  A method for determining a lost frame, the method comprising:
需要进行丟失帧测定的第一节点和第二节点分别对各自的帧计数进行 统计;  The first node and the second node that need to perform the lost frame measurement respectively count the respective frame counts;
第一节点发送包含第一节点的帧计数以及能够被第二节点识别的标识 符的测定消息帧给第二节点;  The first node sends a measurement message frame including a frame count of the first node and an identifier that can be identified by the second node to the second node;
所述第二节点收到所述测定消息帧后, 发送包含第二节点的帧计数以 及能够被第一节点识别的标识符的测定响应消息帧;  After receiving the measurement message frame, the second node sends a measurement response message frame including a frame count of the second node and an identifier that can be identified by the first node;
所述第一节点收到所述测定响应消息帧后, 确定第一节点和第二节点 间的丟帧情况;  After receiving the measurement response message frame, the first node determines a frame loss situation between the first node and the second node;
其中, 所述能够被第二节点识别的标识符包括所述测定消息帧的目的 地址、 生存时间 (TTL )、 类型和 /或标签、 预先约定标识符的一种或多种; 所述能够被第一节点识别的标识符包括所述测定响应消息帧的目的地址、 TTL、 类型和 /或标签、 预先约定标识符的一种或多种。 The identifier that can be identified by the second node includes the purpose of the measurement message frame One or more of an address, a time-to-live (TTL), a type and/or a label, a pre-agreed identifier; the identifier that can be identified by the first node includes a destination address, a TTL, a type of the measurement response message frame And/or label, one or more of the pre-agreed identifiers.
其中, 所述第一节点发送包含第一节点的帧计数以及能够被第二节点 识别的标识符的测定消息帧为:  The determining, by the first node, the measurement message frame that includes the frame count of the first node and the identifier that can be identified by the second node is:
第一节点将所述测定消息帧的目的地址设置为所述第二节点的目的地 址, 或者将所述测定消息帧的 TTL设置为距离第二节点跳数, 或者将测定 消息帧的类型和 /或标签设置为预先约定值, 或者在测定消息帧中设置预先 约定标识符后, 将所述第一节点的帧计数包含在所述测定消息帧中进行发 送。  The first node sets the destination address of the measurement message frame to the destination address of the second node, or sets the TTL of the measurement message frame to be the distance from the second node hop, or determines the type of the message frame and/or Or the label is set to a pre-agreed value, or after the pre-agreed identifier is set in the measurement message frame, the frame count of the first node is included in the measurement message frame for transmission.
其中, 所述第二节点发送包含第二节点的帧计数以及能够被第一节点 识别的标识符的测定响应消息帧为:  The measurement response message frame in which the second node sends the frame count including the second node and the identifier that can be identified by the first node is:
第二节点将所述测定响应消息帧的目的地址设置为所述第一节点的目 的地址, 或者将所述测定响应消息帧的 TTL设置为距离第一节点跳数, 或 者将测定响应消息帧的类型和 /或标签设置为预先约定值, 或者在测定响应 消息帧中设置预先约定标识符后, 将所述第二节点的帧计数包含在所述测 定响应消息帧中进行发送。  The second node sets the destination address of the measurement response message frame to the destination address of the first node, or sets the TTL of the measurement response message frame to be the distance from the first node, or determines the response message frame. The type and/or label is set to a pre-agreed value, or after the pre-agreed identifier is set in the measurement response message frame, the frame count of the second node is included in the measurement response message frame for transmission.
其中, 所述帧计数为第一节点和第二节点预先协商一致的端口、 隧道、 伪线层面一种或多种组合的收 /发帧计数。  The frame count is a count of receiving/transmitting frames of one or more combinations of ports, tunnels, and pseudowire layers that are pre-negotiated by the first node and the second node.
进一步地, 所述方法还包括:  Further, the method further includes:
当所述第一节点在预定的时间内未收到所述第二节点发送的测定响应 消息帧时, 确定第一节点和第二节点之间的帧全部丟失。  When the first node does not receive the measurement response message frame sent by the second node within a predetermined time, it is determined that all frames between the first node and the second node are lost.
一种丟失帧测定系统, 所述系统包括: 第一节点及第二节点; 其中, 所述第一节点, 配置为在需要进行帧丟失测定时对帧计数进行统计, 并发送包含第一节点的帧计数以及能够被第二节点识别的标识符的测定消 息帧给第二节点; 还配置为收到所述第二节点发送的测定响应消息帧后, 确定第一节点和第二节点间的丟帧情况; A lost frame measurement system, the system includes: a first node and a second node; wherein, the first node is configured to perform statistics on a frame count when a frame loss measurement is required, and send the first node Frame count and determination of the identifier that can be recognized by the second node And the frame is sent to the second node; and configured to: after receiving the measurement response message frame sent by the second node, determining a frame loss situation between the first node and the second node;
所述第二节点, 配置为在需要进行帧丟失测定时对帧计数进行统计, 并在收到所述测定消息帧后, 发送包含第二节点的帧计数以及能够被第一 节点识别的标识符的测定响应消息帧;  The second node is configured to collect a frame count when the frame loss measurement needs to be performed, and send a frame count including the second node and an identifier that can be recognized by the first node after receiving the measurement message frame Measurement response message frame;
其中, 所述能够被第二节点识别的标识符包括所述测定消息帧的目的 地址、 TTL、 类型和 /或标签、 预先约定标识符的一种或多种; 所述能够被 第一节点识别的标识符包括所述测定响应消息帧的目的地址、 TTL、类型和 The identifier that can be identified by the second node includes one or more of a destination address, a TTL, a type, and/or a label of the measurement message frame, and a pre-agreed identifier; the identifier can be identified by the first node. The identifier includes the destination address, TTL, type, and
/或标签、 预先约定标识符的一种或多种。 / or label, one or more of the pre-agreed identifiers.
其中, 所述第一节点, 配置为将所述测定消息帧的目的地址设置为所 述第二节点的目的地址, 或者将所述测定消息帧的 TTL设置为距离第二节 点跳数, 或者将测定消息帧的类型和 /或标签设置为预先约定值, 或者在测 定消息帧中设置预先约定标识符后, 将所述第一节点的帧计数包含在所述 测定消息帧中进行发送。  The first node is configured to set a destination address of the measurement message frame to a destination address of the second node, or set a TTL of the measurement message frame to be a distance from a second node, or The type of the message frame and/or the tag is set to a pre-agreed value, or after the pre-agreed identifier is set in the measurement message frame, the frame count of the first node is included in the measurement message frame for transmission.
其中, 所述第二节点, 配置为将所述测定响应消息帧的目的地址设置 为所述第一节点的目的地址, 或者将所述测定响应消息帧的 TTL设置为距 离第一节点跳数, 或者将测定响应消息帧的类型和 /或标签设置为预先约定 值, 或者在测定响应消息帧中设置预先约定标识符后, 将所述第二节点的 帧计数包含在所述测定响应消息帧中进行发送。  The second node is configured to set a destination address of the measurement response message frame to a destination address of the first node, or set a TTL of the measurement response message frame to a hop count from the first node, Or setting the type and/or label of the measurement response message frame to a pre-agreed value, or setting the frame count of the second node in the measurement response message frame after setting the pre-agreed identifier in the measurement response message frame Send it.
其中, 所述帧计数为第一节点和第二节点预先协商一致的端口、 隧道、 伪线层面一种或多种组合的收 /发帧计数。  The frame count is a count of receiving/transmitting frames of one or more combinations of ports, tunnels, and pseudowire layers that are pre-negotiated by the first node and the second node.
进一步地, 所述第一节点, 还配置为在预定的时间内未收到所述第二 节点发送的测定响应消息帧时, 确定第一节点和第二节点之间的帧全部丟 失。  Further, the first node is further configured to: when the measurement response message frame sent by the second node is not received within a predetermined time, determine that all frames between the first node and the second node are lost.
本发明实施例通过节点间进行测定消息帧及测定响应消息帧的交互, 不仅仅能够测定出网络中 MEP节点之间的丟帧情况, 还能够测定出 MEP 到 MIP、 MIP到 MIP节点之间的丟帧情况, 甚至当网络不支持 0 AM时, 也能测定出两个节点之间的丟帧情况。 如此, 当网络中出现故障导致帧丟 失时, 可以测定出一个节点分别到其他节点之间的丟帧计数, 当相邻两节 点之间有丟帧时, 也能够被测定出来, 利于网络的故障定位、 维护和管理。 附图说明 In the embodiment of the present invention, the interaction between the message frame and the measurement response message frame is performed between the nodes, Not only can the frame loss between MEP nodes in the network be measured, but also the frame loss between MEP and MIP, MIP and MIP nodes can be determined. Even when the network does not support 0 AM, two can be determined. Frame loss between nodes. In this way, when a failure occurs in the network and the frame is lost, the frame loss count of one node to another node can be determined. When there is a frame loss between two adjacent nodes, it can also be measured, which is beneficial to the network failure. Positioning, maintenance and management. DRAWINGS
图 1为现有的 OAM网络中丟失帧测定方法的示意图;  1 is a schematic diagram of a method for determining a lost frame in an existing OAM network;
图 2为本发明实施例丟失帧测定方法的实现流程示意图;  2 is a schematic flowchart of an implementation process of a lost frame measurement method according to an embodiment of the present invention;
图 3为本发明实施例丟失帧测定方法的实施例一的实现示意图; 图 4为本发明实施例丟失帧测定方法的实施例二的实现示意图; 图 5为本发明实施例丟失帧测定方法的实施例三的实现示意图; 图 6为本发明实施例丟失帧测定系统的结构示意图。 具体实施方式  3 is a schematic diagram of an implementation of a method for determining a lost frame according to an embodiment of the present invention; FIG. 4 is a schematic diagram of an implementation of a method for determining a lost frame according to an embodiment of the present invention; A schematic diagram of the implementation of the third embodiment; FIG. 6 is a schematic structural diagram of a lost frame measurement system according to an embodiment of the present invention. detailed description
本发明实施例的基本思想为: 需要进行丟失帧测定的第一节点和第二 节点分别对各自的帧计数进行统计; 第一节点发送包含第一节点的帧计数 以及能够被第二节点识别的标识符的测定消息帧给第二节点; 所述第二节 点收到所述测定消息帧后, 发送包含第二节点的帧计数以及能够被第一节 点识别的标识符的测定响应消息帧; 所述第一节点收到所述测定响应消息 帧后, 确定第一节点和第二节点间的丟帧情况; 其中, 所述能够被第二节 点识别的标识符包括所述测定消息帧的目的地址、 生存时间 TTL、 类型和 / 或标签、 预先约定标识符的一种或多种; 所述能够被第一节点识别的标识 符包括所述测定响应消息帧的目的地址、 TTL、 类型和 /或标签、 预先约定 标识符的一种或多种。  The basic idea of the embodiment of the present invention is: the first node and the second node that need to perform the lost frame measurement respectively count the respective frame counts; the first node sends the frame count including the first node and can be recognized by the second node. Determining the message frame of the identifier to the second node; after receiving the measurement message frame, the second node sends a measurement response message frame including a frame count of the second node and an identifier that can be identified by the first node; After receiving the measurement response message frame, the first node determines a frame loss situation between the first node and the second node, where the identifier that can be identified by the second node includes the destination address of the measurement message frame. One or more of a time-to-live TTL, a type and/or a label, a pre-agreed identifier; the identifier that can be identified by the first node includes a destination address, TTL, type, and/or of the measurement response message frame One or more of the labels, pre-agreed identifiers.
为使本发明的目的、 技术方案和优点更加清楚明白, 以下举实施例并 参照附图, 对本发明进一步详细说明。 In order to make the objects, technical solutions and advantages of the present invention more clear, the following embodiments are The invention will be described in further detail with reference to the accompanying drawings.
图 2示出了本发明实施例丟失帧测定方法的实现流程, 如图 2所示, 所述方法包括下述步骤:  FIG. 2 is a flowchart showing an implementation process of a method for determining a lost frame according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
步骤 201,需要进行丟失帧测定的第一节点和第二节点分别对各自的帧 计数进行统计;  Step 201: The first node and the second node that need to perform the lost frame measurement respectively count the respective frame counts;
这里, 所述第一节点和 /或第二节点可以为 MEP、 MIP或不支持 OAM 功能的节点, 其中, 当所述第一节点或第二节点为 MIP或不支持 OAM功 能的节点时, 所述第一节点或第二节点对帧计数进行统计具体为: 可以基 于端口的收帧计数, 当该端口每收到一个帧, 则计数器加一, 计数器中的 值为该端口的收帧计数; 还可以基于端口某个隧道的收帧计数, 该端口某 个隧道每收到一个帧, 则计数器加一, 计数器中的值即为基于该端口某个 隧道的收帧计数。  Here, the first node and/or the second node may be a MEP, a MIP, or a node that does not support the OAM function, where, when the first node or the second node is a MIP or a node that does not support the OAM function, The first node or the second node counts the frame count as follows: According to the port receiving count, when the port receives a frame, the counter is incremented by one, and the value in the counter is the received frame count of the port; It can also be based on the frame count of a tunnel of a port. When a tunnel receives a frame, the counter is incremented by one. The value in the counter is the frame count based on a tunnel of the port.
如此, 所述帧计数可以为节点的端口、 隧道、 伪线层面一种或多种组 合的收 /发帧计数; 只要是能够满足第一节点和第二节点预先协商一致层面 的帧计数即可。  In this manner, the frame count may be a count of the receiving/transmitting frame of one or more combinations of the port, the tunnel, and the pseudowire layer of the node; as long as the frame count of the pre-negotiated layer of the first node and the second node can be satisfied .
步骤 202,第一节点发送包含第一节点的帧计数以及能够被第二节点识 别的标识符的测定消息帧给第二节点;  Step 202: The first node sends a measurement message frame including a frame count of the first node and an identifier that can be identified by the second node to the second node.
其中, 所述能够被第二节点识别的标识符包括所述测定消息帧的目的 地址、 TTL、 类型和 /或标签、 预先约定标识符的一种或多种; 这里, 所述 第一节点可以通过如下方式设置能够被第二节点识别的标识符: 将测定消 息帧的目的地址设置为接收节点 (即第二节点) 的目的地址, 或者将测定 消息帧的生存时间 (TTL, Time to Live )设置为距离第二节点跳数, 或者 将测定消息帧的类型、 标签等设置为预先约定值, 或者在测定消息帧中设 置预先约定标识符。  The identifier that can be identified by the second node includes one or more of a destination address, a TTL, a type, and/or a label, and a pre-agreed identifier of the measurement message frame. Here, the first node may The identifier that can be identified by the second node is set by: setting the destination address of the measurement message frame to the destination address of the receiving node (ie, the second node), or determining the lifetime of the message frame (TTL, Time to Live) Set to the second node hop count, or set the type, label, etc. of the measurement message frame to a pre-agreed value, or set a pre-agreed identifier in the measurement message frame.
步骤 203, 所述第二节点收到所述测定消息帧后, 发送包含第二节点的 帧计数以及能够被第一节点识别的标识符的测定响应消息帧; 其中, 所述能够被第一节点识别的标识符包括所述测定响应消息帧的 目的地址、 TTL、 类型和 /或标签、 预先约定标识符的一种或多种; 这里, 所述第二节点可以通过如下方式设置能够被第一节点识别的标识符: 将测 定响应消息帧的目的地址设置为接收节点 (即第一节点) 的目的地址, 或 者将测定响应消息帧的 TTL设置为距离第一节点跳数, 或者将测定响应消 息帧的类型、 标签等设置为预先约定值, 或者在测定响应消息帧中设置预 先约定标识符。 Step 203: After receiving the measurement message frame, the second node sends the second node. a frame count and a measurement response message frame of the identifier that can be identified by the first node; wherein the identifier that can be identified by the first node includes a destination address, a TTL, a type, and/or a label of the measurement response message frame, Predefining one or more of the identifiers; here, the second node may set an identifier that can be recognized by the first node by: setting a destination address of the measurement response message frame as a receiving node (ie, the first node) The destination address of the response message frame is set to be the distance from the first node hop, or the type, label, etc. of the measurement response message frame is set to a pre-agreed value, or a pre-agreed identifier is set in the measurement response message frame. symbol.
步骤 204, 所述第一节点收到所述测定响应消息帧后, 确定第一节点和 第二节点间的丟帧情况;  Step 204: After receiving the measurement response message frame, the first node determines a frame loss situation between the first node and the second node.
这里, 所述第一节点根据发送的测定消息帧中的帧计数以及接收到的 测定响应消息帧中的帧计数, 确定第一节点和第二节点间的丟帧情况。  Here, the first node determines a frame loss situation between the first node and the second node according to the frame count in the transmitted measurement message frame and the frame count in the received measurement response message frame.
另外, 上述方法还包括: 当所述第一节点在预先设定的时间内一直未 收到所述第二节点发送的测定响应消息帧时, 则确定所述第一节点和第二 节点之间的帧全部丟失。  In addition, the foregoing method further includes: determining, between the first node and the second node, when the first node does not receive the measurement response message frame sent by the second node for a preset time. All frames are lost.
图 3示出了本发明实施例丟失帧测定方法的实施例一的实现, 图 3是 以 MPLS-TP网络进行的示意,其中节点 S1和 S6为 MEP,其他节点 S2~S5 为 MIP; 当节点 S3和 S4之间出现丟帧时, 如果采用现有技术的 MEP之间 的丟帧测定方法, 虽然能够检测到节点 S1和 S6之间的路径上出现了帧丟 失, 但还是无法检测到帧丟失的具体节点位置。  3 is a schematic diagram of Embodiment 1 of a method for determining a lost frame according to an embodiment of the present invention, and FIG. 3 is a schematic diagram of an MPLS-TP network, where nodes S1 and S6 are MEPs, and other nodes S2 to S5 are MIPs; When a frame loss occurs between S3 and S4, if the frame loss measurement method between the MEPs of the prior art is used, although the frame loss can be detected on the path between the nodes S1 and S6, the frame loss cannot be detected. The specific node location.
采用本发明实施例的上述方法, 首先需要测定的节点 S2~S5分别对各 自的收发帧计数进行统计, 由于现有的 MEP节点会进行收发帧计数统计, 因此仅需额外对节点 S2~S5进行帧计数统计;  According to the above method of the embodiment of the present invention, the nodes S2 to S5 that need to be measured first need to count the respective receiving and transmitting frame counts. Since the existing MEP nodes perform the statistics of the receiving and sending frames, only the nodes S2 to S5 need to be additionally performed. Frame count statistics;
然后节点 S 1分别向各个 MIP发送测定消息帧, 为了使各个 MIP节点 能够识别并响应 MEP节点发送的测定消息帧, MEP节点在发送测定消息帧 时, 将其中的 TTL设置为距离指定 MIP的跳数, 当节点在接收到帧时, 如 果该帧的 TTL大于 1则进行转发,并将 TTL减 1,如果该帧的 TTL等于 1, 则进行进一步解析, 并停止转发该帧。 例如当 TTL设置为 1 时, 节点 S1 发送的测定消息帧会被节点 S2接收并回复测定响应消息帧;当 TTL设置为 2时, 节点 S1发送的测定消息帧被节点 S2转发时 TTL会减 1, 接着会被 节点 S3接收并回复测定响应消息帧; 当 TTL设置为大于或者等于 MEP到 MEP之间的跳数(在本实施例中为节点 S1和 S6之间的跳数 5 )时, MEP 节点 S1发送的测定消息帧会被对端的 MEP节点 S6接收并回复测定响应消 息帧。 应当理解, 图 3仅以节点 S1发送给节点 S3和 S4为例进行了示意, 其中, 节点 S1发送给 S4的测定消息帧的 TTL设置为 3, 节点 S1发送给 S3的测定消息帧的 TTL设置为 2。 The node S 1 then sends a measurement message frame to each MIP, in order to enable each MIP node to recognize and respond to the measurement message frame sent by the MEP node, the MEP node is transmitting the measurement message frame. Set the TTL to the hop count from the specified MIP. When the node receives the frame, if the TTL of the frame is greater than 1, the packet is forwarded and the TTL is decremented by 1. If the TTL of the frame is equal to 1, the Further parse and stop forwarding the frame. For example, when the TTL is set to 1, the measurement message frame sent by the node S1 is received by the node S2 and the response response message frame is returned. When the TTL is set to 2, the TTL of the measurement message frame sent by the node S1 is reduced by 1 when it is forwarded by the node S2. Then, the node S3 receives and replies to the measurement response message frame; when the TTL is set to be greater than or equal to the hop count between the MEP and the MEP (in this embodiment, the hop count between the nodes S1 and S6 is 5), the MEP The measurement message frame sent by the node S1 is received by the opposite MEP node S6 and replies to the measurement response message frame. It should be understood that FIG. 3 is only exemplified by the node S1 being sent to the nodes S3 and S4, wherein the TTL of the measurement message frame sent by the node S1 to S4 is set to 3, and the TTL setting of the measurement message frame sent by the node S1 to S3 is set. Is 2.
注意的是,虽然本实施例中的 TTL为发送节点和接收节点之间的跳数, 但是也可以为通过跳数计算出的其他值, 例如跳数加 1、 跳数减 1、 某个较 大值减去跳数等, 只要响应节点和发送节点预先协商一致即可。  Note that although the TTL in this embodiment is the hop count between the sending node and the receiving node, it may also be other values calculated by the hop count, such as the hop count plus 1, the hop count minus 1, a certain comparison The large value minus the hop count, etc., as long as the response node and the sending node agree in advance.
在节点 S1发送的测定消息帧中, 携带了节点 S1的帧计数信息, 同样 在各个节点回复的测定响应消息帧中, 也携带了回复节点的帧计数信息, 节点 S1根据这些信息,计算自身和各个 MIP/MEP节点之间的丟帧计数后, 参照图 3, 节点 S1可以确定节点 S1到 S3之间无丟帧, 节点 S1到节点 S4 有丟帧, 从而可以判断出节点 S3到 S4之间的出现了丟帧, 因此定位到了 具体的丟帧位置即为节点 S3和 S4之间, 可能是节点 S3或 S4出现丟帧, 也可能是节点 S3和 S4之间的链路出现丟帧。  The measurement message frame sent by the node S1 carries the frame count information of the node S1, and also carries the frame count information of the reply node in the measurement response message frame replied by each node, and the node S1 calculates its own and based on the information. After the frame loss counts between the MIP/MEP nodes, referring to FIG. 3, the node S1 can determine that there is no frame loss between the nodes S1 and S3, and the node S1 to the node S4 have dropped frames, so that the nodes S3 to S4 can be determined. The frame loss occurs. Therefore, the specific frame loss location is located between nodes S3 and S4. It may be that the node S3 or S4 has dropped frames, or the link between nodes S3 and S4 may be dropped.
其中, 在测定消息帧和测定响应消息帧中所包含的帧计数信息, 可以 为端口、 隧道或者伪线层面的收 /发帧计数, 或者是上述计数的多种组合, 只要响应节点和发送节点预先协商一致即可。  The frame count information included in the measurement message frame and the measurement response message frame may be a count of the receiving/transmitting frame at the port, the tunnel, or the pseudowire layer, or multiple combinations of the foregoing counting, as long as the response node and the sending node Pre-negotiate can be.
图 4示出了本发明实施例丟失帧测定方法的实施例二的实现示意, 如 图 4所示, 节点 SI发送给节点 S3的测定消息帧中携带了自身端口 1下某 条隧道的收发帧计数; 而节点 S3回复的测定响应消息帧中, 既携带了从节 点 S1收到的测定消息帧中拷贝的隧道收发帧计数, 还携带了自身端口 3的 相同隧道的收发帧计数; 当节点 S1接收到该测定响应消息帧后, 根据所述 测定响应消息帧中的帧计数和本地的帧计数, 计算出节点 S1的端口 1到节 点 S3的端口 3在该隧道的丟帧值。 FIG. 4 is a schematic diagram showing an implementation of Embodiment 2 of a method for determining a lost frame according to an embodiment of the present invention, such as As shown in FIG. 4, the measurement message frame sent by the node SI to the node S3 carries the number of transmission and reception frames of a tunnel under its own port 1; and the measurement response message frame replied by the node S3 carries both the received message from the node S1. Determining the tunnel receiving frame count copied in the message frame, and carrying the same frame transmission and reception frame count of the own port 3; after receiving the measurement response message frame, the node S1 determines the frame count and local in the response response message frame. The frame count calculates the frame loss value of the port 3 of the node S1 to the port 3 of the node S3 in the tunnel.
类似的,节点 S3发送给节点 S5的测定消息帧中携带了自身端口 2和 3 下某条隧道的收发帧计数, 而节点 S5回复的测定响应消息帧中, 既携带了 从节点 S3收到的测定消息帧中拷贝的隧道收发帧计数, 还携带了自身端口 4和 5的相同隧道的收发帧计数, 当节点 S3接收到该测定响应消息帧后, 根据所述测定响应消息帧中的帧计数和本地的帧计数, 计算出节点 S3的端 口 2、 3分别到节点 S5的端口 4、 5在该隧道的丟帧值, 如果在节点 S3的 端口 2到节点 S5的端口 4之间没有丟帧, 而在节点 S3的端口 3到节点 S5 的端口 5之间有丟帧,则可以确定节点 S5的端口 4和端口 5之间存在丟帧。  Similarly, the measurement message frame sent by the node S3 to the node S5 carries the transmission and reception frame count of a tunnel under its own port 2 and 3, and the measurement response message frame replied by the node S5 carries both the received message from the node S3. Determining the tunnel receiving frame counts copied in the message frame, and carrying the same frame transmission and reception frame counts of the own ports 4 and 5, and after receiving the measurement response message frame, the node S3 counts the frames according to the measurement response message frame. And the local frame count, calculate the frame loss value of the port 2, 3 of the node S3 to the port 4, 5 of the node S5 in the tunnel, if there is no frame loss between the port 2 of the node S3 and the port 4 of the node S5 If there is a frame loss between port 3 of node S3 and port 5 of node S5, it can be determined that there is a frame loss between port 4 and port 5 of node S5.
另外, 当节点发出测定消息帧后, 在预设的一定时间内, 例如 5秒, 未收到对端的测定响应消息帧, 则确定所述节点和对端之间的丟帧计数为 全部帧。  In addition, after the node sends the measurement message frame, if the measurement response message frame of the opposite end is not received within a predetermined time, for example, 5 seconds, it is determined that the frame loss count between the node and the opposite end is all frames.
图 5示出了本发明实施例丟失帧测定方法的实施例三的实现, 图 5示 出了一种以太网或者 IP网络, 采用本发明实施例的上述方法, 需要测定的 节点 (节点 S1~S6 )对各自的收发帧计数进行统计; 节点 S1向其他节点发 送测定消息帧, 这里, 节点 S1和 S3通过设置预先设置的特定标识符作为 能够被对方识别的标识符, 在节点 S1发给节点 S3的测定消息帧中包括了 能够被节点 S3识别的特定标识符,节点 S3回复给节点 S1的测定响应消息 帧中包括了能够被节点 S1识别的特定标识符, 该标识符具体可以为对端的 目的地址、 帧类型、 某个特定字段的约定值或者上述的组合等, 在测定消 息帧和测定响应消息帧中还包含了节点的帧计数信息, 具体可以为端口、 虚拟局域网 ( VLAN, Virtual Local Area Network )或者 IP层面的收 /发帧计 数, 或者上述计数的多种组合, 只要响应节点和发送节点预先互相协商一 致即可。 FIG. 5 shows an implementation of Embodiment 3 of the method for determining a lost frame according to an embodiment of the present invention, and FIG. 5 shows an Ethernet or IP network, which uses the above method in the embodiment of the present invention, and the node to be measured (node S1~) S6) Statistics of the respective transmit and receive frame counts; the node S1 sends the measurement message frame to the other nodes, where the nodes S1 and S3 send the identifiers that can be recognized by the other party by setting the preset specific identifiers, and send them to the node at the node S1. The measurement message frame of S3 includes a specific identifier that can be identified by the node S3, and the measurement response message frame that the node S3 replies to the node S1 includes a specific identifier that can be identified by the node S1, and the identifier can be specifically Destination address, frame type, agreed value of a specific field, or a combination of the above, etc. The frame and the measurement response message frame also include the frame count information of the node, which may be a port, a virtual local area network (VLAN), or an IP layer receiving/transmitting frame count, or multiple combinations of the foregoing counting. As long as the response node and the sending node agree with each other in advance.
为了测定以太网络中 VLAN 100的丟帧情况,节点 S1发送测定消息帧, 在该测定消息帧中的特定位置 (例如在首地址加上 100字节处) 包含了节 点 S3能够识别的特定标识符, 如可以为 0x03030303, 并包含了自身端口 1 的 VLAN 100的收发帧计数;  In order to determine the frame loss of the VLAN 100 in the Ethernet network, the node S1 sends a measurement message frame, and a specific location in the measurement message frame (for example, at the first address plus 100 bytes) contains a specific identifier that the node S3 can recognize. , if it can be 0x03030303, and includes the transmit and receive frame count of VLAN 100 of its own port 1;
节点 S3检测对应特定位置 (即首地址加上 100字节处), 当该位置的 内容为预先约定的特定标识符 (即 0x03030303 ) 时, 不再进行转发, 而是 回复测定响应消息帧, 并在所述测定响应消息帧中的特定位置 (例如在首 地址加上 120字节处 )写入节点 S1的特定标识符, 可以为 0x01010101, 所 述测定响应消息帧中还包含自身端口 2、 3的 VLAN 100的收发帧计数; 节点 S1接收到该测定响应消息帧后, 检测对应特定位置, 即在首地址 加上 120字节处是否为预先约定的特定标识符(即 0x01010101 ), 若是, 则 不再进行转发, 而是根据接收到的帧计数及自身的帧计数计算出节点 S1端 口 1分别到节点 S3端口 2、 3的丟帧数。  The node S3 detects the corresponding specific location (ie, the first address plus 100 bytes), and when the content of the location is a pre-agreed specific identifier (ie, 0x03030303), the forwarding is not performed, but the response response message frame is returned, and The specific identifier written in the node S1 at a specific position in the measurement response message frame (for example, at the first address plus 120 bytes) may be 0x01010101, and the measurement response message frame further includes its own port 2, 3 After receiving the measurement response message frame, the node S1 detects the corresponding specific location, that is, whether the first address plus 120 bytes is a pre-agreed specific identifier (ie, 0x01010101), and if so, Instead of forwarding, the number of dropped frames from node S1 port 1 to node S3 ports 2 and 3 is calculated based on the received frame count and its own frame count.
同理,节点 S1计算出自身端口 1分别到节点 S4端口 4、 5的丟帧计数。 若节点 S3和 S4之间有丟帧时, 节点 S1能够测定出端口 1到节点 S3端口 3之间无丟帧, 到节点 S4端口 4之间有丟帧, 因此能够判断出丟帧位置为 节点 S3和 S4之间。  Similarly, the node S1 calculates the frame loss count of its own port 1 to the node S4 port 4, 5 respectively. If there is a frame loss between the nodes S3 and S4, the node S1 can determine that there is no frame loss between the port 1 and the node S3, and there is a frame loss between the node S4 and the port 4, so that the frame loss position can be determined as a node. Between S3 and S4.
进一步地, 如果节点 S3和 S4之间完全中断, 则节点 S1在预先设定的 一段时间内 (例如 5秒)收不到节点 S4的测定响应消息帧, 此时确定节点 S 1到节点 S4之间的帧全部丟失。  Further, if the nodes S3 and S4 are completely interrupted, the node S1 does not receive the measurement response message frame of the node S4 within a preset period of time (for example, 5 seconds), and at this time, the node S1 to the node S4 are determined. All frames are lost.
图 6示出了本发明实施例丟失帧测定系统的结构, 如图 6所示, 所述 系统包括: 第一节点及第二节点; 其中, 6 is a diagram showing the structure of a lost frame measurement system according to an embodiment of the present invention, as shown in FIG. The system includes: a first node and a second node; wherein
所述第一节点, 配置为在需要进行帧丟失测定时对帧计数进行统计, 并发送包含第一节点的帧计数以及能够被第二节点识别的标识符的测定消 息帧给第二节点; 还配置为收到所述第二节点发送的测定响应消息帧后, 确定第一节点和第二节点间的丟帧情况;  The first node is configured to perform statistics on a frame count when a frame loss measurement is required, and send a measurement message frame including a frame count of the first node and an identifier that can be identified by the second node to the second node; After receiving the measurement response message frame sent by the second node, determining a frame loss situation between the first node and the second node;
所述第二节点, 配置为在需要进行帧丟失测定时对帧计数进行统计, 并在收到所述测定消息帧后, 发送包含第二节点的帧计数以及能够被第一 节点识别的标识符的测定响应消息帧。  The second node is configured to collect a frame count when the frame loss measurement needs to be performed, and send a frame count including the second node and an identifier that can be recognized by the first node after receiving the measurement message frame The measurement response message frame.
其中, 所述第一节点, 配置为将所述测定消息帧的目的地址设置为所 述第二节点的目的地址, 或者将所述测定消息帧的 TTL设置为距离第二节 点跳数, 或者将测定消息帧的类型和 /或标签设置为预先约定值, 或者在测 定消息帧中设置预先约定标识符后, 将所述第一节点的帧计数包含在所述 测定消息帧中进行发送。  The first node is configured to set a destination address of the measurement message frame to a destination address of the second node, or set a TTL of the measurement message frame to be a distance from a second node, or The type of the message frame and/or the tag is set to a pre-agreed value, or after the pre-agreed identifier is set in the measurement message frame, the frame count of the first node is included in the measurement message frame for transmission.
其中, 所述第二节点, 配置为将所述测定响应消息帧的目的地址设置 为所述第一节点的目的地址, 或者将所述测定响应消息帧的 TTL设置为距 离第一节点跳数, 或者将测定响应消息帧的类型和 /或标签设置为预先约定 值, 或者在测定响应消息帧中设置预先约定标识符后, 将所述第二节点的 帧计数包含在所述测定响应消息帧中进行发送。  The second node is configured to set a destination address of the measurement response message frame to a destination address of the first node, or set a TTL of the measurement response message frame to a hop count from the first node, Or setting the type and/or label of the measurement response message frame to a pre-agreed value, or setting the frame count of the second node in the measurement response message frame after setting the pre-agreed identifier in the measurement response message frame Send it.
其中, 所述帧计数为第一节点和第二节点预先协商一致的端口、 隧道、 伪线层面一种或多种组合的收 /发帧计数。  The frame count is a count of receiving/transmitting frames of one or more combinations of ports, tunnels, and pseudowire layers that are pre-negotiated by the first node and the second node.
进一步地, 所述第一节点, 还配置为在预定的时间内未收到所述第二 节点发送的测定响应消息帧时, 确定第一节点和第二节点之间的帧全部丟 失。  Further, the first node is further configured to: when the measurement response message frame sent by the second node is not received within a predetermined time, determine that all frames between the first node and the second node are lost.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程 序来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如 只读存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可 以使用一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元 可以采用硬件的形式实现, 也可以采用软件功能模块的形式实现。 本发明 实施例不限制于任何特定形式的硬件和软件的结合。 A person of ordinary skill in the art may understand that all or part of the above steps may be completed by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, such as Read-only memory, disk or CD, and so on. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. Embodiments of the invention are not limited to any specific form of combination of hardware and software.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 工业实用性  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Industrial applicability
本发明实施例通过节点间进行测定消息帧及测定响应消息帧的交互, 不仅仅能够测定出网络中 MEP节点之间的丟帧情况, 还能够测定出 MEP 到 MIP、 MIP到 MIP节点之间的丟帧情况, 甚至当网络不支持 0 AM时, 也能测定出两个节点之间的丟帧情况。 采用本发明实施例, 当网络中出现 故障导致帧丟失时, 可以测定出一个节点分别到其他节点之间的丟帧计数, 当相邻两节点之间有丟帧时, 也能够被测定出来, 从而利于网络的故障定 位、 维护和管理。  In the embodiment of the present invention, by measuring the interaction between the message frame and the measurement response message frame between the nodes, not only the frame loss between the MEP nodes in the network can be determined, but also the MEP to MIP, the MIP to the MIP node can be determined. Frame loss, even when the network does not support 0 AM, it can also determine the frame loss between two nodes. According to the embodiment of the present invention, when a frame is lost due to a failure in the network, a frame loss count of a node to another node may be determined, and when there is a frame loss between two adjacent nodes, the frame may be detected. This facilitates the fault location, maintenance and management of the network.

Claims

权利要求书 claims
1、 一种丟失帧测定方法, 所述方法包括: 1. A lost frame measurement method, the method includes:
需要进行丟失帧测定的第一节点和第二节点分别对各自的帧计数进行 统计; The first node and the second node that need to measure lost frames separately count their respective frame counts;
第一节点发送包含第一节点的帧计数以及能够被第二节点识别的标识 符的测定消息帧给第二节点; The first node sends a measurement message frame containing the frame count of the first node and an identifier capable of being recognized by the second node to the second node;
所述第二节点收到所述测定消息帧后, 发送包含第二节点的帧计数以 及能够被第一节点识别的标识符的测定响应消息帧; After receiving the measurement message frame, the second node sends a measurement response message frame including the frame count of the second node and an identifier that can be recognized by the first node;
所述第一节点收到所述测定响应消息帧后, 确定第一节点和第二节点 间的丟帧情况; After receiving the measurement response message frame, the first node determines the frame loss situation between the first node and the second node;
其中, 所述能够被第二节点识别的标识符包括所述测定消息帧的目的 地址、 生存时间 TTL、 类型和 /或标签、 预先约定标识符的一种或多种; 所 述能够被第一节点识别的标识符包括所述测定响应消息帧的目的地址、 TTL、 类型和 /或标签、 预先约定标识符的一种或多种。 Wherein, the identifier that can be recognized by the second node includes one or more of the destination address of the measurement message frame, time to live TTL, type and/or label, and a pre-agreed identifier; the identifier that can be recognized by the first node The identifier identified by the node includes one or more of the destination address, TTL, type and/or label, and pre-agreed identifier of the measurement response message frame.
2、 根据权利要求 1所述的方法, 其中, 所述第一节点发送包含第一节 点的帧计数以及能够被第二节点识别的标识符的测定消息帧为: 2. The method according to claim 1, wherein the first node sends a measurement message frame containing the frame count of the first node and an identifier that can be recognized by the second node as:
第一节点将所述测定消息帧的目的地址设置为所述第二节点的目的地 址, 或者将所述测定消息帧的 TTL设置为距离第二节点跳数, 或者将测定 消息帧的类型和 /或标签设置为预先约定值, 或者在测定消息帧中设置预先 约定标识符后, 将所述第一节点的帧计数包含在所述测定消息帧中进行发 送。 The first node sets the destination address of the measurement message frame to the destination address of the second node, or sets the TTL of the measurement message frame to the number of hops from the second node, or changes the type and/or the measurement message frame. Or the label is set to a pre-agreed value, or after the pre-agreed identifier is set in the measurement message frame, the frame count of the first node is included in the measurement message frame and sent.
3、 根据权利要求 1所述的方法, 其中, 所述第二节点发送包含第二节 点的帧计数以及能够被第一节点识别的标识符的测定响应消息帧为: 3. The method according to claim 1, wherein the second node sends a measurement response message frame containing the frame count of the second node and an identifier that can be recognized by the first node as:
第二节点将所述测定响应消息帧的目的地址设置为所述第一节点的目 的地址, 或者将所述测定响应消息帧的 TTL设置为距离第一节点跳数, 或 者将测定响应消息帧的类型和 /或标签设置为预先约定值, 或者在测定响应 消息帧中设置预先约定标识符后, 将所述第二节点的帧计数包含在所述测 定响应消息帧中进行发送。 The second node sets the destination address of the measurement response message frame to the destination address of the first node, or sets the TTL of the measurement response message frame to the number of hops away from the first node, or Either set the type and/or label of the measurement response message frame to a pre-agreed value, or after setting the pre-agreed identifier in the measurement response message frame, include the frame count of the second node in the measurement response message frame. to send.
4、 根据权利要求 1所述的方法, 其中, 所述帧计数为第一节点和第二 节点预先协商一致的端口、 隧道、伪线层面一种或多种组合的收 /发帧计数。 4. The method according to claim 1, wherein the frame count is the received/transmitted frame count of one or more combinations of port, tunnel, and pseudowire levels that have been agreed in advance by the first node and the second node.
5、 根据权利要求 1所述的方法, 其中, 所述方法还包括: 5. The method according to claim 1, wherein the method further includes:
当所述第一节点在预定的时间内未收到所述第二节点发送的测定响应 消息帧时, 确定第一节点和第二节点之间的帧全部丟失。 When the first node does not receive the measurement response message frame sent by the second node within a predetermined time, it is determined that all frames between the first node and the second node are lost.
6、一种丟失帧测定系统, 所述系统包括: 第一节点及第二节点; 其中, 所述第一节点, 配置为在需要进行帧丟失测定时对帧计数进行统计, 并发送包含第一节点的帧计数以及能够被第二节点识别的标识符的测定消 息帧给第二节点; 还配置为收到所述第二节点发送的测定响应消息帧后, 确定第一节点和第二节点间的丟帧情况; 6. A lost frame measurement system, the system includes: a first node and a second node; wherein, the first node is configured to count frames when frame loss measurement needs to be performed, and send a message containing the first The frame count of the node and the measurement message frame of the identifier that can be recognized by the second node are sent to the second node; and it is also configured to determine the measurement response message frame between the first node and the second node after receiving the measurement response message frame sent by the second node. Frame loss situation;
所述第二节点, 配置为在需要进行帧丟失测定时对帧计数进行统计, 并在收到所述测定消息帧后, 发送包含第二节点的帧计数以及能够被第一 节点识别的标识符的测定响应消息帧; The second node is configured to count frame counts when frame loss measurement is required, and after receiving the measurement message frame, send a frame count containing the second node and an identifier that can be recognized by the first node. Measurement response message frame;
其中, 所述能够被第二节点识别的标识符包括所述测定消息帧的目的 地址、 TTL、 类型和 /或标签、 预先约定标识符的一种或多种; 所述能够被 第一节点识别的标识符包括所述测定响应消息帧的目的地址、 TTL、类型和 /或标签、 预先约定标识符的一种或多种。 Wherein, the identifier that can be recognized by the second node includes one or more of the destination address, TTL, type and/or label, and pre-agreed identifier of the measurement message frame; the identifier that can be recognized by the first node The identifier includes one or more of the destination address, TTL, type and/or label, and pre-agreed identifier of the measurement response message frame.
7、 根据权利要求 6所述的系统, 其中, 所述第一节点, 配置为将所述 测定消息帧的目的地址设置为所述第二节点的目的地址, 或者将所述测定 消息帧的 TTL设置为距离第二节点跳数,或者将测定消息帧的类型和 /或标 签设置为预先约定值, 或者在测定消息帧中设置预先约定标识符后, 将所 述第一节点的帧计数包含在所述测定消息帧中进行发送。 7. The system according to claim 6, wherein the first node is configured to set the destination address of the measurement message frame to the destination address of the second node, or to change the TTL of the measurement message frame. Set to the number of hops away from the second node, or set the type and/or label of the measurement message frame to a pre-agreed value, or after setting the pre-agreed identifier in the measurement message frame, include the frame count of the first node in The measurement message frame is sent.
8、 根据权利要求 6所述的系统, 其中, 所述第二节点, 配置为将所述 测定响应消息帧的目的地址设置为所述第一节点的目的地址, 或者将所述 测定响应消息帧的 TTL设置为距离第一节点跳数, 或者将测定响应消息帧 的类型和 /或标签设置为预先约定值, 或者在测定响应消息帧中设置预先约 定标识符后, 将所述第二节点的帧计数包含在所述测定响应消息帧中进行 发送。 8. The system according to claim 6, wherein the second node is configured to set the destination address of the measurement response message frame to the destination address of the first node, or to set the destination address of the measurement response message frame to The TTL is set to the number of hops away from the first node, or the type and/or label of the measurement response message frame is set to a pre-agreed value, or after the pre-agreed identifier is set in the measurement response message frame, the second node's TTL is set to a pre-agreed value. The frame count is included in the measurement response message frame and sent.
9、 根据权利要求 6所述的系统, 其中, 所述帧计数为第一节点和第二 节点预先协商一致的端口、 隧道、伪线层面一种或多种组合的收 /发帧计数。 9. The system according to claim 6, wherein the frame count is the received/transmitted frame count of one or more combinations of port, tunnel, and pseudowire levels that have been agreed in advance by the first node and the second node.
10、 根据权利要求 6所述的系统, 其中, 所述第一节点, 还配置为在 预定的时间内未收到所述第二节点发送的测定响应消息帧时, 确定第一节 点和第二节点之间的帧全部丟失。 10. The system according to claim 6, wherein the first node is further configured to determine the first node and the second node when the measurement response message frame sent by the second node is not received within a predetermined time. Frames between nodes are all lost.
PCT/CN2013/077818 2012-07-09 2013-06-24 Frame loss detection method and system WO2014008809A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210235076.3 2012-07-09
CN201210235076.3A CN103546303A (en) 2012-07-09 2012-07-09 Lost frame measuring method and system

Publications (1)

Publication Number Publication Date
WO2014008809A1 true WO2014008809A1 (en) 2014-01-16

Family

ID=49915387

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/077818 WO2014008809A1 (en) 2012-07-09 2013-06-24 Frame loss detection method and system

Country Status (2)

Country Link
CN (1) CN103546303A (en)
WO (1) WO2014008809A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106274531A (en) * 2016-08-26 2017-01-04 北京长城华冠汽车科技股份有限公司 Fault handling method and device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411625A (en) * 2015-07-27 2017-02-15 中兴通讯股份有限公司 Link message packet loss measurement method and system, target node and initiator node
CN109995603B (en) * 2017-12-29 2020-12-15 中国移动通信集团山东有限公司 Method and device for measuring packet loss under Tag model and electronic equipment
WO2021100146A1 (en) * 2019-11-20 2021-05-27 三菱電機株式会社 Optical communication device and communication system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992651A (en) * 2005-12-29 2007-07-04 华为技术有限公司 Implementation method for detecting multicast performance of Ethernet
CN101667941A (en) * 2009-09-27 2010-03-10 中兴通讯股份有限公司 Method for detecting link performance and device therefor
CN102215144A (en) * 2011-05-17 2011-10-12 中兴通讯股份有限公司 Measuring method and system of packet loss

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800679B (en) * 2010-03-10 2012-07-11 华为技术有限公司 Message packet loss detection method and system
CN102315980B (en) * 2010-07-05 2015-09-16 中兴通讯股份有限公司 A kind of method and system of starting counter in measurement of packet loss rate

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992651A (en) * 2005-12-29 2007-07-04 华为技术有限公司 Implementation method for detecting multicast performance of Ethernet
CN101667941A (en) * 2009-09-27 2010-03-10 中兴通讯股份有限公司 Method for detecting link performance and device therefor
CN102215144A (en) * 2011-05-17 2011-10-12 中兴通讯股份有限公司 Measuring method and system of packet loss

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106274531A (en) * 2016-08-26 2017-01-04 北京长城华冠汽车科技股份有限公司 Fault handling method and device

Also Published As

Publication number Publication date
CN103546303A (en) 2014-01-29

Similar Documents

Publication Publication Date Title
US9075717B2 (en) Connectivity fault notification
US7924725B2 (en) Ethernet OAM performance management
JP5646090B2 (en) Traceroute_delay diagnostic command
US20050099955A1 (en) Ethernet OAM fault isolation
US8908537B2 (en) Redundant network connections
US20050099949A1 (en) Ethernet OAM domains and ethernet OAM frame format
US20050099951A1 (en) Ethernet OAM fault detection and verification
US20050099954A1 (en) Ethernet OAM network topography discovery
US20160041888A1 (en) Link state relay for physical layer emulation
US20060285500A1 (en) Method and apparatus for packet loss detection
US20070064611A1 (en) Method for monitoring packet loss ratio
US9059905B2 (en) Methods and arrangements in an MPLS-TP network
JP5506801B2 (en) Transport network failure detection
US20140347979A1 (en) Communication system, transmission apparatus, communication apparatus, failure notification method, and non-transitory computer-readable medium storing program
US9774494B2 (en) Method, node, and system for detecting performance of layer 3 virtual private network
WO2016177120A1 (en) Measurement method and system for packet loss of link packet, target node and initiating-end node
WO2012106915A1 (en) Failure notification method, detection apparatus, forwarding apparatus, system and data structure
KR20140117993A (en) Mpls-tp network and method for link failure trace
WO2012155817A1 (en) Loopback testing method, device and system
WO2015149353A1 (en) Oam packet processing method, network device and network system
Mizrahi et al. An overview of operations, administration, and maintenance (OAM) tools
WO2015120720A1 (en) Signal degradation failure processing method and system
WO2014008809A1 (en) Frame loss detection method and system
US20120057497A1 (en) Method, apparatus, and system for measuring network performance
CN110166311B (en) Method, equipment and network system for measuring network performance

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: 13816320

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: 13816320

Country of ref document: EP

Kind code of ref document: A1