[go: up one dir, main page]

WO2013075476A1 - Ethernet link detection method and device - Google Patents

Ethernet link detection method and device Download PDF

Info

Publication number
WO2013075476A1
WO2013075476A1 PCT/CN2012/076852 CN2012076852W WO2013075476A1 WO 2013075476 A1 WO2013075476 A1 WO 2013075476A1 CN 2012076852 W CN2012076852 W CN 2012076852W WO 2013075476 A1 WO2013075476 A1 WO 2013075476A1
Authority
WO
WIPO (PCT)
Prior art keywords
detection
node
value
packet
message
Prior art date
Application number
PCT/CN2012/076852
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 WO2013075476A1 publication Critical patent/WO2013075476A1/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/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Definitions

  • the present invention relates to the field of Ethernet for communication technologies, and in particular, to an Ethernet link detection method and apparatus. Background technique
  • Ethernet is widely used instead of asynchronous transmission.
  • Network equipment such as mode (ATM, Asynchronous Transfer Mode).
  • Ethernet does not have carrier-class management capabilities. It cannot detect, advertise, or quarantine Layer 2 network faults.
  • Network management systems using the Simple Network Management Protocol (SNMP) can only manage link and device status. End-to-end connection performance and status of user services. When the network fails, it cannot be located or located quickly enough.
  • SNMP Simple Network Management Protocol
  • OAM Operation, Administration, Maintenance
  • Ethernet OAM protocols include 802.3ah, 802.1ag, and ITU-Y1731.
  • 802.1ag was proposed by IEEE, mainly for the management of "service” level, providing the network with easy and fast fault detection, detection and management functions. It can effectively check, isolate and report faults on virtual bridge LANs, which is an end-to-end ETH OAM standard.
  • lag's Connectivity Fault Management (CFM) protocol detects end-to-end link connectivity based on requirements through loopback and linktrace. Use loopback to detect link connectivity. If the detected link is faulty, the link cannot be confirmed. The location of the link; the linktrace is used to detect the connectivity of the link.
  • Each intermediate node MIP (Maintenance Association Intermediate Point) or Maintenance Association End Point (MEP)
  • MIP Mainntenance Association Intermediate Point
  • MEP Maintenance Association End Point
  • MEP returns a reply message, notifies the media access control (MAC, Media Access Control) address of the interface, and forwards the detection message until ttl is 1 or the destination maintenance point (MP, Maintenance Point) is found.
  • the method for detecting a link fault increases the workload of the link intermediate node.
  • the link detection initiator needs to process the reply message returned by each intermediate node, and records the MAC address of the intermediate node, and adds link detection. The workload of the initiator. Summary of the invention
  • the present invention provides an Ethernet link detection method, the method comprising:
  • the source node sends a detection packet.
  • the node that receives the detection packet determines whether it is the destination node, and if so, generates a reply message and returns it to the source node; otherwise, the detection packet is sent to the next hop node of the detection link;
  • the source node displays the link detection result according to the received reply message.
  • the present invention also provides an Ethernet link detecting device, where the device includes a message sending and receiving module, a determining module, and a display module, where
  • the packet sending and receiving module is configured to send and receive the detecting message and the reply message; and when the detecting message is received and the determining module determines that the node where the node is located is the destination node, generating a reply message and sending the message to the source node; When the determining module determines that the node where the node is located is not the destination node, the detection packet is sent to the next hop node of the detection link;
  • the determining module is configured to determine, according to the detection packet received by the detecting packet sending and receiving module, whether the node where the node is located is a destination node;
  • the display module is configured to display a link detection result according to the response packet received by the detection packet transceiver module.
  • the intermediate node on the detection link only needs to receive the received detection message and forward it. It is no longer necessary to return a reply message to the originating node-source node of the link detection, and only the destination node returns to the source node. Replying to the message not only reduces the number of response messages processed by the source node, but also does not need to cache the reply message; at the same time, it also reduces the workload of the intermediate node.
  • FIG. 1 is a schematic diagram of a format of a preferred embodiment of a detection message according to the present invention.
  • FIG. 2 is a flow chart of a preferred embodiment of the Ethernet link detection method of the present invention.
  • FIG. 3 is a block diagram showing the principle of a preferred embodiment of the Ethernet link detecting apparatus of the present invention. detailed description
  • FIG. 1 it is a schematic diagram of a format of a preferred embodiment of the detection packet of the present invention.
  • the embodiment specifically includes the following fields:
  • the value of the DA is the MAC address of the destination node (the end node of the detection link), which is a unicast MAC.
  • the intermediate node on the detection link forwards the detection packet to the target node according to the value of the field.
  • the SA value is the MAC address of the source node (the node that initiates the link detection) and is the unicast MAC address.
  • the value of the field is used as the destination MAC address, and the reply packet is sent.
  • VLAN tag which is the VLAN information in the Ethernet packet to distinguish different VLANs.
  • Ethernet Type which is an Ethernet packet type, using the Ethernet type 0x8902 of the CFM protocol;
  • MDL MD Level, as defined in the CFM protocol, with a value of 0-7;
  • OpCode a custom field, is used to identify whether the packet is a packet of the current processing flow; it can be defined as a value that is not used, indicating that it is a new CFM packet;
  • Flags with a value of 0;
  • the firstTLVoffset is the same as the definition in the CFM protocol.
  • the value is 6; the transaction identifier (Transaction ID) indicates that the current packet is the first packet detected by the link; ttl, the value is the timeout period;
  • Transaction ID transaction identifier
  • the node decrements the value of the field by 1; num, which is the number of nodes that pass the detection packet after it is sent; it indicates that the MAC information of several intermediate nodes has been recorded in the detection packet.
  • the initial value is 0.
  • the intermediate node adds a local MAC address to the detection packet, the value is incremented by one.
  • the value is the MAC address of the node after the detection packet is sent; after receiving the detection packet, the intermediate node adds its own MAC address to the existing information in the field;
  • the endTLV is the same as the definition in the CFM protocol, indicating that the packet ends.
  • FIG. 2 it is a flowchart of a preferred embodiment of the Ethernet link detection method of the present invention.
  • the embodiment specifically includes the following steps:
  • Step S01 The source node sends the detection packet to the next hop node on the detection link.
  • Step S02 The node that receives the detection packet determines whether the value of the OpCode field of the detection packet is a preset detection packet identifier. Value, if yes, step S04; otherwise, otherwise, step S03;
  • Step S03 Forward the foregoing detection packet to the corresponding one according to the value of the OpCode field. Processing flow, the current detection message processing ends, and the process proceeds to step S02;
  • Step S04 determining whether the value of the ttl field of the detection packet is 1; if yes, executing step S05; otherwise, executing step S06;
  • Step S05 Subtracting the value of the above ttl field by 1, performing step S09;
  • Step S06 Determine whether it is the destination node, and if yes, execute step S09; otherwise, execute step S07; and determine whether it is the destination node.
  • Step S07 determining whether it is in the same maintenance set (MA, Maintenance Association) as the source node, if yes, then it is the destination node, and performing step S09; otherwise, it is not the destination node, and step S08 is performed;
  • MA Maintenance Association
  • Step S08 The local MAC address is filled in the MAC field of the detection packet, the value of the num field in the detection packet is incremented by 1, and the value of the ttl field is decremented by 1, and the detection packet is sent to the detection link.
  • the next hop node proceeds to step S02 to execute;
  • Step S09 Generate a reply message and return it to the source node.
  • the value of the DA field of the detection packet is replaced with the value of the SA field; the value of the SA field is replaced with the local MAC address; and the value of the OpCode field of the detection packet is replaced with the preset response packet.
  • the identification value is added; the value of the num field of the above detection message is incremented by 1 to obtain a reply message.
  • Step S10 The source node displays the link detection result to the user according to the received reply message.
  • FIG. 3 it is a block diagram of a preferred embodiment of the Ethernet link detecting apparatus of the present invention.
  • the device includes a packet transceiver module 10, a judging module 20, and a display module 30, where
  • the packet sending and receiving module 10 is configured to send and receive a detection message and a reply message; and when the detection message is received and the determining module 20 determines that the node where the node is located is the destination node, the value of the DA field of the detection message is replaced with the SA. The value of the field, replacing the value of the SA field with the local MAC address; The value of the num field of the detection packet is incremented by one, and a response message is generated and sent to the source node. When the determining module 20 determines that the node where the node is located is not the destination node, the local MAC address is filled into the MAC address of the detection packet. In the field, the value of the num field in the detection packet is incremented by one, and the value of the ttl field is decremented by one, and the detection packet is sent to the next hop node of the detection link;
  • the determining module 20 is configured to determine whether the value of the OpCode field of the detection packet received by the packet receiving and receiving module 10 is a preset detection packet identifier value; determining the value of the ttl field of the detection packet to determine the same value Whether the node is a destination node; and determining whether the node where the node is located is in the same MA as the source node;
  • the display module 30 is configured to display a link detection result to the user according to the response packet received by the detection packet transceiver module 10.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Small-Scale Networks (AREA)

Abstract

Disclosed are an Ethernet link detection method and device. The method comprises: a source node sending a detection packet; a node that receives the detection packet determining whether the node is a target node; if yes, generating a response packet and returning the response packet to the source node; otherwise sending the detection packet to a next-hop node of the detection link; the source node displaying a link detection result according to the response packet. The solution of the present invention reduces the workload of the detection apparatus.

Description

以太网链路检测方法及装置 技术领域  Ethernet link detection method and device
本发明涉及通信技术的以太网领域, 尤其涉及一种以太网链路检测方 法及装置。 背景技术  The present invention relates to the field of Ethernet for communication technologies, and in particular, to an Ethernet link detection method and apparatus. Background technique
随着以太网技术的飞速发展, 以太网组网在网络建设中的比重逐渐增 加, 以太网的网络规模也不断的扩大, 从接入、 汇聚到骨干网都大量使用 了以太网来代替异步传输模式(ATM, Asynchronous Transfer Mode )等网 络设备。  With the rapid development of Ethernet technology, the proportion of Ethernet networking in network construction is gradually increasing, and the network scale of Ethernet is also expanding. From access and aggregation to backbone networks, Ethernet is widely used instead of asynchronous transmission. Network equipment such as mode (ATM, Asynchronous Transfer Mode).
传统的以太网没有电信级管理能力, 不能检测、 通告或隔离二层网络 故障, 而采用简单网络管理协议 ( SNMP , Simple Network Management Protocol )协议的网管也只能管理链路与设备状态, 不能检测用户业务的端 到端连接性能和状态, 当网络发生故障时, 无法定位或者定位不够迅速。 而且网络设备的大量应用, 网络设备管理者更加关注以太网设备的操作、 管理、 维护 ( OAM, Operation, Administration, Maintenance )功能。  Traditional Ethernet does not have carrier-class management capabilities. It cannot detect, advertise, or quarantine Layer 2 network faults. Network management systems using the Simple Network Management Protocol (SNMP) can only manage link and device status. End-to-end connection performance and status of user services. When the network fails, it cannot be located or located quickly enough. Moreover, a large number of applications of network devices, network device managers pay more attention to the operation, management, maintenance (OAM, Operation, Administration, Maintenance) function of Ethernet devices.
目前, 现有的以太网 OAM协议包括 802.3ah, 802.1ag, ITU-Y1731等 协议。  Currently, the existing Ethernet OAM protocols include 802.3ah, 802.1ag, and ITU-Y1731.
802.1ag由 IEEE提出, 主要是针对 "服务" 级别的管理, 为网络提供 容易和快捷的故障发现、 检测和管理的功能。 可以有效的对虚拟桥局域网 进行检查、 隔离和连接性故障报告, 是端到端的 ETH OAM标准。  802.1ag was proposed by IEEE, mainly for the management of "service" level, providing the network with easy and fast fault detection, detection and management functions. It can effectively check, isolate and report faults on virtual bridge LANs, which is an end-to-end ETH OAM standard.
802. lag的连通错误管理(CFM, Connectivity Fault Management )协议 通过 loopback和 linktrace两种方式根据需求检测端到端链路的连通性。 使 用 loopback检测链路的连通性, 若检测的链路有故障, 则无法确认出故障 发生的位置; 使用 linktrace检测链路的连通性, 每个中间节点 (维护中间 点 ( MIP, Maintenance association Intermediate Point )或维护端点 ( MEP, Maintenance association End Point ) )都要向链路检测的发起者 ( MEP )返回 回复报文, 通知其本接口的介质访问控制 (MAC, Media Access Control ) 地址, 同时将检测报文转发出去, 直到 ttl为 1或找到目的维护点 (MP, Maintenance Point )。 这种检测链路故障的方法增加了链路中间节点的工作 量, 同时, 链路检测发起者需要处理每个中间节点返回的回复报文, 并记 录中间节点的 MAC地址, 增加了链路检测发起者的工作量。 发明内容 802. lag's Connectivity Fault Management (CFM) protocol detects end-to-end link connectivity based on requirements through loopback and linktrace. Use loopback to detect link connectivity. If the detected link is faulty, the link cannot be confirmed. The location of the link; the linktrace is used to detect the connectivity of the link. Each intermediate node (MIP (Maintenance Association Intermediate Point) or Maintenance Association End Point (MEP)) must be the initiator of the link detection. ( MEP ) returns a reply message, notifies the media access control (MAC, Media Access Control) address of the interface, and forwards the detection message until ttl is 1 or the destination maintenance point (MP, Maintenance Point) is found. The method for detecting a link fault increases the workload of the link intermediate node. At the same time, the link detection initiator needs to process the reply message returned by each intermediate node, and records the MAC address of the intermediate node, and adds link detection. The workload of the initiator. Summary of the invention
本发明的目的是, 提供一种以太网链路检测方法及装置, 以减少检测 设备的工作量。  It is an object of the present invention to provide an Ethernet link detection method and apparatus to reduce the workload of a detection device.
本发明提供了一种以太网链路检测方法, 该方法包括:  The present invention provides an Ethernet link detection method, the method comprising:
源节点发送检测报文;  The source node sends a detection packet.
收到上述检测报文的节点判断自身是否是目的节点, 若是, 则生成回 复报文并返回给上述源节点, 否则, 将所述检测报文发送给检测链路的下 一跳节点;  The node that receives the detection packet determines whether it is the destination node, and if so, generates a reply message and returns it to the source node; otherwise, the detection packet is sent to the next hop node of the detection link;
所述源节点根据收到的回复报文, 显示链路检测结果。  The source node displays the link detection result according to the received reply message.
本发明还提供了一种以太网链路检测装置, 上述装置包括报文收发模 块、 判断模块以及显示模块, 其中,  The present invention also provides an Ethernet link detecting device, where the device includes a message sending and receiving module, a determining module, and a display module, where
报文收发模块, 用于收发检测报文及回复报文; 以及在收到检测报文 且上述判断模块判断出自身所在节点是目的节点时, 生成回复报文并发送 给源节点; 并在所述判断模块判断出自身所在节点不是目的节点时, 将所 述检测报文发送给检测链路的下一跳节点;  The packet sending and receiving module is configured to send and receive the detecting message and the reply message; and when the detecting message is received and the determining module determines that the node where the node is located is the destination node, generating a reply message and sending the message to the source node; When the determining module determines that the node where the node is located is not the destination node, the detection packet is sent to the next hop node of the detection link;
判断模块, 用于根据所述检测报文收发模块收到的检测报文, 判断自 身所在节点是否是目的节点; 显示模块, 用于根据所述检测报文收发模块收到的回复报文, 显示链 路检测结果。 The determining module is configured to determine, according to the detection packet received by the detecting packet sending and receiving module, whether the node where the node is located is a destination node; The display module is configured to display a link detection result according to the response packet received by the detection packet transceiver module.
本发明中, 检测链路上的中间节点只需要收到的检测报文转发出去即 可, 不再需要向链路检测的发起节点-源节点返回回复报文, 只有目的节点 才向源节点返回回复报文, 不仅减少了源节点处理回复报文的数量, 而且 不需要緩存回复报文; 同时, 也减少了中间节点的工作量。 附图说明  In the present invention, the intermediate node on the detection link only needs to receive the received detection message and forward it. It is no longer necessary to return a reply message to the originating node-source node of the link detection, and only the destination node returns to the source node. Replying to the message not only reduces the number of response messages processed by the source node, but also does not need to cache the reply message; at the same time, it also reduces the workload of the intermediate node. DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解, 构成本发明的一 部分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发 明的不当限定。 在附图中:  The drawings are intended to provide a further understanding of the present invention, and are intended to be a part of the invention. In the drawing:
图 1是本发明的检测报文优选实施例的格式示意图;  1 is a schematic diagram of a format of a preferred embodiment of a detection message according to the present invention;
图 2是本发明以太网链路检测方法优选实施例的流程图;  2 is a flow chart of a preferred embodiment of the Ethernet link detection method of the present invention;
图 3是本发明以太网链路检测装置优选实施例原理框图。 具体实施方式  3 is a block diagram showing the principle of a preferred embodiment of the Ethernet link detecting apparatus of the present invention. detailed description
为了使本发明所要解决的技术问题、 技术方案及有益效果更加清楚、 明白, 以下结合附图和实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅用以解释本发明, 并不用于限定本发明。  The present invention will be further described in detail below with reference to the accompanying drawings and embodiments in order to make the present invention. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
如图 1 所示, 是本发明的检测报文优选实施例的格式示意图, 本实施 例具体包括以下字段:  As shown in FIG. 1 , it is a schematic diagram of a format of a preferred embodiment of the detection packet of the present invention. The embodiment specifically includes the following fields:
DA,其值为目的节点(检测链路的终节点)的 MAC地址,为单播 MAC, 检测链路上的中间节点根据该字段的值, 将检测报文转发给目标节点; The value of the DA is the MAC address of the destination node (the end node of the detection link), which is a unicast MAC. The intermediate node on the detection link forwards the detection packet to the target node according to the value of the field.
SA,其值为源节点(发起链路检测的节点)的 MAC地址,为单播 MAC; 检测链路上的节点回复检测报文时, 使用该字段的值为目的 MAC, 将回复 报文发送给源节点; VLAN标签(Tag ), 其值为以太网报文中的 VLAN信息, 用以区分不 同的 VLAN; The SA value is the MAC address of the source node (the node that initiates the link detection) and is the unicast MAC address. When the node on the link detects the detection packet, the value of the field is used as the destination MAC address, and the reply packet is sent. Give the source node; VLAN tag (Tag), which is the VLAN information in the Ethernet packet to distinguish different VLANs.
以太网类型 (Ether Type ), 其值为以太网报文类型, 使用 CFM协议的 以太网类型 0x8902;  Ethernet type (Ether Type), which is an Ethernet packet type, using the Ethernet type 0x8902 of the CFM protocol;
MDL, MD Level, 与 CFM协议中的定义相同, 取值为 0-7;  MDL, MD Level, as defined in the CFM protocol, with a value of 0-7;
VER , 版本号, 与 CFM协议中的定义相同;  VER , version number, the same as defined in the CFM protocol;
OpCode, 自定义字段,用于识别检测报文是否是当前处理流程的报文; 可以定义成一个没有使用的值, 表明是一种新的 CFM报文;  OpCode, a custom field, is used to identify whether the packet is a packet of the current processing flow; it can be defined as a value that is not used, indicating that it is a new CFM packet;
标记 ( Flags ), 其值为 0;  Flags (flags) with a value of 0;
firstTLVoffset, 与 CFM协议中的定义相同, 本发明中, 其值为 6; 交易标识( Transaction ID ), 表明当前报文是链路检测的第几个报文; ttl,其值为超时时间; 中间节点在收到检测报文时,将该字段的值减 1; num, 其值为检测报文发出后经过的节点个数; 表明检测报文中已经记 录了几个中间节点的 MAC信息。 初始值为 0, 中间节点在检测报文中添加 本地 MAC地址时, 将该值加 1;  The firstTLVoffset is the same as the definition in the CFM protocol. In the present invention, the value is 6; the transaction identifier (Transaction ID) indicates that the current packet is the first packet detected by the link; ttl, the value is the timeout period; When receiving a detection packet, the node decrements the value of the field by 1; num, which is the number of nodes that pass the detection packet after it is sent; it indicates that the MAC information of several intermediate nodes has been recorded in the detection packet. The initial value is 0. When the intermediate node adds a local MAC address to the detection packet, the value is incremented by one.
MAC, 其值为检测报文发出后经过的节点的 MAC地址; 中间节点收 到检测报文后, 将自己的 MAC地址添加到该字段已有信息之后;  MAC, the value is the MAC address of the node after the detection packet is sent; after receiving the detection packet, the intermediate node adds its own MAC address to the existing information in the field;
endTLV, 与 CFM协议中的定义相同, 表明报文结束。  The endTLV is the same as the definition in the CFM protocol, indicating that the packet ends.
如图 2所示, 是本发明以太网链路检测方法优选实施例的流程图, 本 实施例具体包括以下步驟:  As shown in FIG. 2, it is a flowchart of a preferred embodiment of the Ethernet link detection method of the present invention. The embodiment specifically includes the following steps:
步驟 S01 : 源节点将检测报文发送给检测链路上的下一跳节点; 步驟 S02: 收到检测报文的节点判断上述检测报文的 OpCode字段的值 是否为预设的检测报文标识值, 若是, 则执行步驟 S04; 否则, 否则, 执行 步驟 S03;  Step S01: The source node sends the detection packet to the next hop node on the detection link. Step S02: The node that receives the detection packet determines whether the value of the OpCode field of the detection packet is a preset detection packet identifier. Value, if yes, step S04; otherwise, otherwise, step S03;
步驟 S03: 根据上述 OpCode字段的值, 将上述检测报文转发给对应的 处理流程, 当前检测报文处理结束, 转入步驟 S02执行; Step S03: Forward the foregoing detection packet to the corresponding one according to the value of the OpCode field. Processing flow, the current detection message processing ends, and the process proceeds to step S02;
步驟 S04: 判断上述检测报文的 ttl字段的值是否为 1 , 若是, 则执行步 驟 S05; 否则, 执行步驟 S06;  Step S04: determining whether the value of the ttl field of the detection packet is 1; if yes, executing step S05; otherwise, executing step S06;
步驟 S05: 将上述 ttl字段的值减 1, 执行步驟 S09;  Step S05: Subtracting the value of the above ttl field by 1, performing step S09;
步驟 S06: 判断自身是否是目的节点, 若是, 则执行步驟 S09; 否则, 执行步驟 S07; 同来判断自身是否为目的节点。  Step S06: Determine whether it is the destination node, and if yes, execute step S09; otherwise, execute step S07; and determine whether it is the destination node.
步驟 S07:判断自身是否与上述源节点在同一维护集( MA, Maintenance Association ) 中, 若是, 则自身为目的节点, 执行步驟 S09; 否则, 自身不 是目的节点, 执行步驟 S08;  Step S07: determining whether it is in the same maintenance set (MA, Maintenance Association) as the source node, if yes, then it is the destination node, and performing step S09; otherwise, it is not the destination node, and step S08 is performed;
步驟 S08: 将本地 MAC地址填充到上述检测报文的 MAC字段中, 将 上述检测报文中的 num字段的值加 1 , 将 ttl字段的值减 1 , 将上述检测报 文发送给检测链路的下一跳节点, 转入步驟 S02执行;  Step S08: The local MAC address is filled in the MAC field of the detection packet, the value of the num field in the detection packet is incremented by 1, and the value of the ttl field is decremented by 1, and the detection packet is sent to the detection link. The next hop node, proceeds to step S02 to execute;
步驟 S09: 生成回复报文并返回给上述源节点;  Step S09: Generate a reply message and return it to the source node.
本步驟通过将检测报文的 DA字段的值替换成 SA字段的值; 将上述 SA字段的值替换成本地 MAC地址; 将上述检测报文的 OpCode字段的值 替换成预设的回复报文的识别值; 将上述检测报文的 num字段的值加 1 , 得到回复报文。  In this step, the value of the DA field of the detection packet is replaced with the value of the SA field; the value of the SA field is replaced with the local MAC address; and the value of the OpCode field of the detection packet is replaced with the preset response packet. The identification value is added; the value of the num field of the above detection message is incremented by 1 to obtain a reply message.
步驟 S10: 源节点根据收到的回复报文, 向用户显示链路检测结果。 如图 3 所示, 是本发明以太网链路检测装置优选实施例原理框图, 该 装置包括报文收发模块 10、 判断模块 20以及显示模块 30, 其中,  Step S10: The source node displays the link detection result to the user according to the received reply message. As shown in FIG. 3, it is a block diagram of a preferred embodiment of the Ethernet link detecting apparatus of the present invention. The device includes a packet transceiver module 10, a judging module 20, and a display module 30, where
报文收发模块 10, 用于收发检测报文及回复报文; 以及在收到检测报 文且判断模块 20判断出自身所在节点是目的节点时, 将检测报文的 DA字 段的值替换成 SA字段的值, 将所述 SA字段的值替换成本地 MAC地址; 述检测报文的 num字段的值加 1 , 生成回复报文并发送给源节点; 并在判 断模块 20判断出自身所在节点不是目的节点时, 将本地 MAC地址填充到 所述检测报文的 MAC字段中, 并将所述检测报文中的 num字段的值加 1 , 将 ttl字段的值减 1 , 将所述检测报文发送给检测链路的下一跳节点; The packet sending and receiving module 10 is configured to send and receive a detection message and a reply message; and when the detection message is received and the determining module 20 determines that the node where the node is located is the destination node, the value of the DA field of the detection message is replaced with the SA. The value of the field, replacing the value of the SA field with the local MAC address; The value of the num field of the detection packet is incremented by one, and a response message is generated and sent to the source node. When the determining module 20 determines that the node where the node is located is not the destination node, the local MAC address is filled into the MAC address of the detection packet. In the field, the value of the num field in the detection packet is incremented by one, and the value of the ttl field is decremented by one, and the detection packet is sent to the next hop node of the detection link;
判断模块 20,用于判断检测报文收发模块 10收到的检测报文的 OpCode 字段的值是否为预设的检测报文标识值; 判断所述检测报文的 ttl字段的值 同来判断自身所在节点是否是目的节点; 以及判断自身所在节点是否与所 述源节点在同一 MA中;  The determining module 20 is configured to determine whether the value of the OpCode field of the detection packet received by the packet receiving and receiving module 10 is a preset detection packet identifier value; determining the value of the ttl field of the detection packet to determine the same value Whether the node is a destination node; and determining whether the node where the node is located is in the same MA as the source node;
显示模块 30, 用于根据检测报文收发模块 10收到的回复报文, 向用户 显示链路检测结果。  The display module 30 is configured to display a link detection result to the user according to the response packet received by the detection packet transceiver module 10.
上述说明示出并描述了本发明的优选实施例, 但如前所述, 应当理解 本发明并非局限于本文所披露的形式, 不应看作是对其他实施例的排除, 而可用于各种其他组合、 修改和环境, 并能够在本文所述发明构想范围内, 通过上述教导或相关领域的技术或知识进行改动。 而本领域人员所进行的 改动和变化不脱离本发明的精神和范围, 则都应在本发明所附权利要求的 保护范围内。  The above description shows and describes a preferred embodiment of the present invention, but as described above, it should be understood that the present invention is not limited to the form disclosed herein, and should not be construed as being Other combinations, modifications, and environments are possible and can be modified by the teachings of the above teachings or related art within the scope of the inventive concept described herein. All changes and modifications made by those skilled in the art are intended to be within the scope of the appended claims.

Claims

权利要求书 Claim
1、 一种以太网链路检测方法, 其特征在于, 该方法包括:  A method for detecting an Ethernet link, the method comprising:
源节点发送检测报文;  The source node sends a detection packet.
收到所述检测报文的节点判断自身是否是目的节点, 若是, 则生成回 复报文并返回给所述源节点, 否则, 将所述检测报文发送给检测链路的下 一跳节点;  The node that receives the detection packet determines whether it is the destination node, and if so, generates a reply packet and returns the message to the source node; otherwise, the detection packet is sent to the next hop node of the detection link;
所述源节点根据收到的回复报文, 显示链路检测结果。  The source node displays the link detection result according to the received reply message.
2、 根据权利要求 1所述的方法, 其特征在于, 所述检测报文包括以下 字段:  2. The method according to claim 1, wherein the detection message comprises the following fields:
DA, 其值为目的节点的 MAC地址;  DA, whose value is the MAC address of the destination node;
SA, 其值为源节点的介质访问控制 MAC地址;  SA, which is the media access control MAC address of the source node;
OpCode, 自定义字段, 用于识别检测报文是否是当前处理流程的报文; ttl, 其值为超时时间;  OpCode, a custom field, used to identify whether the detected packet is a packet of the current processing flow; ttl, whose value is a timeout period;
num, 其值为检测报文发出后经过的节点个数;  Num, the value of which is the number of nodes after the detection packet is sent;
MAC, 其值为检测报文发出后经过的节点的 MAC地址。  MAC, which is the MAC address of the node through which the detected message is sent.
3、 根据权利要求 2所述的方法, 其特征在于, 所述收到检测报文的节 点在判断自身是否是目的节点前, 该方法还包括:  The method according to claim 2, wherein before the node that receives the detection message determines whether it is the destination node, the method further includes:
判断所述检测报文的 ttl字段的值是否为 1 , 若是, 则将所述 ttl字段的 值减 1 , 执行所述生成回复报文并返回给源节点步驟; 否则, 执行所述判断 自身是否是目的节点步骤。  Determining whether the value of the ttl field of the detection packet is 1, and if so, decrementing the value of the ttl field by 1, performing the step of generating the reply message and returning to the source node; otherwise, performing the determining whether the self is Is the destination node step.
4、 根据权利要求 3所述的方法, 其特征在于, 所述收到检测报文的节 点在判断检测报文的 ttl字段的值是否为 1前, 该方法还包括: 若是, 则执行所述判断检测报文的 ttl字段的值是否为 1步驟; 否则, 根据 所述 OpCode字段的值, 将所述检测报文转发给对应的处理流程。 The method according to claim 3, wherein, before the node that receives the detection message determines whether the value of the ttl field of the detection packet is 1, the method further includes: if yes, executing the It is determined whether the value of the ttl field of the detection packet is 1 step; otherwise, the detection packet is forwarded to the corresponding processing flow according to the value of the OpCode field.
5、 根据权利要求 4所述的方法, 其特征在于, 所述收到检测报文的节 点通过以下方式判断自身是否是目的节点: 身为目的节点。 The method according to claim 4, wherein the node that receives the detection message determines whether it is a destination node by: as a destination node.
6、 根据权利要求 5所述的方法, 其特征在于, 该方法还包括: 所述收 到检测报文的节点判断出本地 MAC地址与检测报文的 DA字段的值不同 时, 判断自身是否与所述源节点在同一维护集 MA中, 若是, 则自身为目 的节点, 否则, 执行所述将检测报文发送给检测链路的下一跳节点步驟。  The method according to claim 5, wherein the method further comprises: determining, by the node receiving the detection message, that the local MAC address is different from the value of the DA field of the detection packet, determining whether it is The source node is in the same maintenance set MA. If yes, it is the destination node. Otherwise, the step of sending the detection packet to the next hop node of the detection link is performed.
7、 根据权利要求 3至 6任一项所述的方法, 其特征在于, 所述收到检 测报文的节点在将所述检测报文发送给检测链路的下一跳节点前, 该方法 还包括:  The method according to any one of claims 3 to 6, wherein the node that receives the detection message sends the detection message to the next hop node of the detection link, the method Also includes:
将本地 MAC地址填充到所述检测报文的 MAC字段中;  Filling the local MAC address into the MAC field of the detection packet;
将所述检测报文中的 num字段的值加 1 , 将 ttl字段的值减 1。  Add 1 to the value of the num field in the detection message, and decrement the value of the ttl field by 1.
8、 根据权利要求 2所述的方法, 其特征在于, 所述生成回复报文为: 将检测报文的 DA字段的值替换成 SA字段的值;  The method according to claim 2, wherein the generating the reply message is: replacing the value of the DA field of the detection message with the value of the SA field;
将所述 SA字段的值替换成本地 MAC地址; 将所述检测报文的 num字段的值加 1 , 得到回复报文。  Replace the value of the SA field with the local MAC address; add 1 to the value of the num field of the detection message to obtain a reply message.
9、 一种以太网链路检测装置, 其特征在于, 所述装置包括报文收发模 块、 判断模块以及显示模块, 其中,  An apparatus for detecting an Ethernet link, wherein the apparatus includes a packet sending and receiving module, a determining module, and a display module, where
报文收发模块, 用于收发检测报文及回复报文; 以及在收到检测报文 且所述判断模块判断出自身所在节点是目的节点时, 生成回复报文并发送 给源节点; 并在所述判断模块判断出自身所在节点不是目的节点时, 将所 述检测报文发送给检测链路的下一跳节点;  The packet sending and receiving module is configured to send and receive a detection message and a reply message; and when the detection message is received and the determining module determines that the node where the node is located is a destination node, generating a reply message and sending the message to the source node; When the determining module determines that the node where the node is located is not the destination node, the detection packet is sent to the next hop node of the detection link;
判断模块, 用于根据所述检测报文收发模块收到的检测报文, 判断自 身所在节点是否是目的节点; a determining module, configured to determine, according to the detection packet received by the detecting packet transceiver module, Whether the node in the body is the destination node;
显示模块, 用于根据所述检测报文收发模块收到的回复报文, 显示链 路检测结果。  And a display module, configured to display a link detection result according to the reply message received by the detection packet transceiver module.
10、 根据权利要求 9所述的装置, 其特征在于,  10. Apparatus according to claim 9 wherein:
所述报文收发模块, 用于在将收到的检测报文发送给检测链路的下一 跳节点前, 将本地 MAC地址填充到所述检测报文的 MAC字段中, 并将所 述检测报文中的 num字段的值加 1 , 将 ttl字段的值减 1; 以及在自身所在 节点为目的节点时, 将检测报文的 DA字段的值替换成 SA字段的值; 将所 述 SA字段的值替换成本地 MAC地址; 将所述检测报文的 OpCode字段的 值替换成预设的回复报文的识别值; 将所述检测报文的 num字段的值加 1; 的检测报文标识值; 判断所述检测报文的 ttl字段的值是否为 1; 判断本地 点是否与所述源节点在同一 MA中。  The packet sending and receiving module is configured to: before sending the received detection packet to the next hop node of the detection link, filling the local MAC address into the MAC field of the detection packet, and detecting the packet The value of the num field in the message is incremented by 1, and the value of the ttl field is decremented by one; and when the node where the node is located is the destination node, the value of the DA field of the detection packet is replaced with the value of the SA field; The value of the value is replaced with the local MAC address; the value of the OpCode field of the detection packet is replaced with the identifier of the preset reply message; the value of the num field of the detection packet is incremented by one; And determining whether the value of the ttl field of the detection message is 1; determining whether the location is in the same MA as the source node.
PCT/CN2012/076852 2011-11-24 2012-06-13 Ethernet link detection method and device WO2013075476A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110378717.6 2011-11-24
CN2011103787176A CN102404171A (en) 2011-11-24 2011-11-24 Ethernet link detection method and device

Publications (1)

Publication Number Publication Date
WO2013075476A1 true WO2013075476A1 (en) 2013-05-30

Family

ID=45885984

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/076852 WO2013075476A1 (en) 2011-11-24 2012-06-13 Ethernet link detection method and device

Country Status (2)

Country Link
CN (1) CN102404171A (en)
WO (1) WO2013075476A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404171A (en) * 2011-11-24 2012-04-04 中兴通讯股份有限公司 Ethernet link detection method and device
CN103051542B (en) * 2012-12-11 2016-03-23 武汉烽火网络有限责任公司 The method of detection of connectivity is realized based on data link layer ethernet mac address
CN108270602B (en) * 2016-12-30 2022-07-08 中兴通讯股份有限公司 Method, device and system for detecting data link
CN112688826B (en) * 2019-10-18 2022-05-20 中车株洲电力机车研究所有限公司 Link diagnosis method, terminal device, link diagnosis system, and storage medium
CN110830302B (en) * 2019-11-13 2022-06-24 苏州盛科科技有限公司 Method and device for processing SPN OAM (shortest Path bridging operation and maintenance) in one-layer cross node in Flexe network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968163A (en) * 2006-10-25 2007-05-23 华为技术有限公司 Method for service channel detection and system for providing the same
CN101068203A (en) * 2007-06-11 2007-11-07 北京交通大学 A group ad hoc routing method and device
CN101179479A (en) * 2006-11-09 2008-05-14 华为技术有限公司 Transmission method, system and node of Ethernet operation management and maintenance message
CN102404171A (en) * 2011-11-24 2012-04-04 中兴通讯股份有限公司 Ethernet link detection method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7280486B2 (en) * 2004-01-07 2007-10-09 Cisco Technology, Inc. Detection of forwarding problems for external prefixes
US8024478B2 (en) * 2007-03-28 2011-09-20 Cisco Technology, Inc. Identifying network path including network proxies
CN101997681B (en) * 2009-08-14 2012-08-22 中国移动通信集团公司 Authentication method and system for multi-node path and relevant node equipment
CN101710869A (en) * 2009-12-18 2010-05-19 中兴通讯股份有限公司 Device and method for detecting two-layer virtual private network failures
CN101895418A (en) * 2010-06-30 2010-11-24 中兴通讯股份有限公司 Method and system for locating faults in two-layer VPN (Virtual Private Network)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968163A (en) * 2006-10-25 2007-05-23 华为技术有限公司 Method for service channel detection and system for providing the same
CN101179479A (en) * 2006-11-09 2008-05-14 华为技术有限公司 Transmission method, system and node of Ethernet operation management and maintenance message
CN101068203A (en) * 2007-06-11 2007-11-07 北京交通大学 A group ad hoc routing method and device
CN102404171A (en) * 2011-11-24 2012-04-04 中兴通讯股份有限公司 Ethernet link detection method and device

Also Published As

Publication number Publication date
CN102404171A (en) 2012-04-04

Similar Documents

Publication Publication Date Title
JP5345942B2 (en) Ethernet OAM in intermediate nodes of PBT network
JP5265785B2 (en) Scaled Ethernet OAM for mesh and hub-and-spoke networks
US8953456B2 (en) Ethernet OAM performance management
US7995483B1 (en) Simultaneously testing connectivity to multiple remote maintenance endpoints of the same maintenance association
US8862943B2 (en) Connectivity fault notification
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
US20050099955A1 (en) Ethernet OAM fault isolation
CN103580894B (en) Method, equipment and the system of Operations, Administration and Maintenance OAM configurations
US8811190B2 (en) Maximum transmission unit (MTU) size discovery mechanism and method for data-link layers
WO2013097459A1 (en) Service path detection method and device
CN102984018B (en) Ethernet loss packet test method, equipment and system
WO2007073649A1 (en) A method and system for obtaining path maximum transfer unit in network
CN101155084A (en) Method and system for obtaining network topology information
CN110166311B (en) Method, apparatus and network system for measuring network performance
WO2013075476A1 (en) Ethernet link detection method and device
WO2016062165A1 (en) Method and apparatus for implementing operations, administration and maintenance function
CN109981323A (en) A kind of method and the network equipment of detection data Link-Layer Multicast path status
WO2014008809A1 (en) Frame loss detection method and system
CN102571464B (en) Link tracking processing method and system
CN103457794B (en) Method and system for confirming faults of IP bearer network
WO2014000509A1 (en) Transmission monitoring method and device
CN100492990C (en) A method and device for obtaining the physical address of an Ethernet node
CN102868616A (en) Method for establishing virtual MAC (Media Access Control) address table item in network as well as router and system

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

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

Country of ref document: EP

Kind code of ref document: A1