WO2015051696A1 - Method and apparatus for transmitting oam packet - Google Patents

Method and apparatus for transmitting oam packet Download PDF

Info

Publication number
WO2015051696A1
WO2015051696A1 PCT/CN2014/087062 CN2014087062W WO2015051696A1 WO 2015051696 A1 WO2015051696 A1 WO 2015051696A1 CN 2014087062 W CN2014087062 W CN 2014087062W WO 2015051696 A1 WO2015051696 A1 WO 2015051696A1
Authority
WO
WIPO (PCT)
Prior art keywords
mep
master node
oam
virtual home
oam packet
Prior art date
Application number
PCT/CN2014/087062
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 WO2015051696A1 publication Critical patent/WO2015051696A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • 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 communications technologies, and in particular, to a method and an apparatus for transmitting an OAM message.
  • MPLS Multi-Protocol Label Switching
  • the packet network usually adopts the dual-homing mode. As shown in Figure 1, the network element A and the network elements B and C respectively establish a service connection or channel. When the network element B is valid, the network element A can perform service transmission through the network element B. When the network element B fails, the network element A can perform service transmission through the network element C. Therefore, only the traffic between A and B is normally transmitted.
  • the channel between NEs A and C can be considered as the protection path of the working channel between networks A and B.
  • Dual-homing protection is a protection scheme for services when a landing node fails.
  • the network element A, the network element B, and the network element C are MEPs (Maintenance Entity Group End Point), then the network element A and the network element B, The network element C needs to communicate with the OAM (operation administration and maintenance) message.
  • OAM operation administration and maintenance
  • the network element A receives two OAM packets, which are from the network element B and the network element C.
  • the embodiment of the invention provides a method and a device for transmitting an OAM message, which are used to solve the technical problem that the network element in the prior art may report an alarm abnormally due to an over-received message.
  • a first aspect of the present invention provides a method for transmitting an OAM message, including:
  • the MEP in the virtual home MEP determines whether the MEP is a master node
  • the MEP generates and sends a first OAM message to the receiving end when determining that the MEP is the master node;
  • the MEP prohibits generating the first OAM packet when determining that the MEP is not the master node
  • the virtual home MEP includes at least two MEPs, and the attribute parameters of each MEP are the same.
  • the method further includes: receiving a second OAM packet from the receiving end.
  • the method further includes:
  • the MEP sends the second OAM packet to the primary node in the virtual home MEP when determining that the MEP is not the master node.
  • the method further includes: The MEP processes the second OAM packet when determining that the MEP is the master node.
  • the virtual home MEP has one and only one master node; and the method further includes: when the preset condition is met, the MEP is An active/standby switchover takes place on another MEP.
  • a second aspect of the present invention provides an apparatus for transmitting an OAM message, where the apparatus is applied to an MEP in a virtual home MEP;
  • a determining module configured to determine whether the MEP is a master node
  • the operation module is configured to: when the MEP is determined to be the primary node, generate and send the first OAM packet to the receiving end, and when the determining that the MEP is not the primary node, the first OAM packet is prohibited from being generated;
  • the virtual home MEP includes at least two MEPs, and the attribute parameters of each MEP are the same.
  • the apparatus further includes a receiving module, configured to receive a second OAM packet from the receiving end.
  • the operation module is further configured to: when determining that the MEP is not the master node, send the second OAM packet to the virtual The primary node in the home MEP.
  • the device further includes a processing module, configured to process the second OAM packet when determining that the MEP is a master node.
  • the virtual home MEP has only one A master node; the device further includes a switching module, configured to perform an active/standby switchover with another MEP when the preset condition is met.
  • the virtual home MEP includes at least two MEPs, and the same attribute parameter of each MEP is equivalent to virtualizing at least two MEPs into one MEP, and the virtual MEP is regarded as a MEP.
  • the virtual MEP only the master node generates and sends an OAM packet to the receiving end, and the slave node does not generate an OAM packet.
  • the OAM packet is not sent to the receiving end. Therefore, the virtual MEP sends only one first OAM packet to the receiving end, and the two MEPs do not need to be the same as in the prior art.
  • the receiving end sends two OAM packets, and the receiving end that receives only one OAM packet obviously does not report an abnormal alarm as in the prior art, and ensures normal operation of each network element.
  • FIG. 1 is a schematic diagram of a dual-homing network in the prior art
  • FIG. 3 is a schematic diagram of a transmission channel of an OAM packet according to an embodiment of the present invention.
  • FIG. 4A is a structural diagram of an apparatus for transmitting an OAM message according to an embodiment of the present invention.
  • 4B is a structural diagram of an apparatus for transmitting an OAM message according to an embodiment of the present invention.
  • FIG. 5 is a structural diagram of an apparatus for transmitting an OAM message according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for transmitting an OAM packet, where the method may include: determining, by the MEP in the virtual home MEP, whether the MEP is a master node; and when the MEP determines that the MEP is a master node, generating Sending a first OAM packet to the receiving end; the MEP prohibits generating the first OAM packet when determining that the MEP is not the master node; wherein the virtual home MEP includes at least two MEPs, and attributes of each MEP The parameters are the same.
  • the virtual home MEP includes at least two MEPs, and the same attribute parameter of each MEP is equivalent to virtualizing at least two MEPs into one MEP, and the virtual MEP is regarded as a MEP.
  • the virtual MEP only the master node generates and sends an OAM packet to the receiving end, and the slave node does not generate an OAM packet, and does not send an OAM packet to the receiving end.
  • the virtual MEP sends only one copy of the first OAM message to the receiving end, and the two MEPs do not send two OAM messages to the receiving end as in the prior art, but only one is received.
  • the receiving end of the OAM message Obviously, there will be no abnormal alarms as in the prior art to ensure the normal operation of each network element.
  • GSM Global System for Mobile Communications
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • FDMA Frequency Division Multiple Access
  • OFDM Orthogonal Frequency OFDM (Orthogonal Frequency-Division Multiple Access) system
  • SC-FDMA single carrier FDMA
  • GPRS General Packet Radio Service
  • LTE Long Term Evolution
  • PTN public network system
  • router network system MSTP (Multi-Service Transmission Platform) network system, and other such communication systems.
  • MSTP Multi-Service Transmission Platform
  • the OAMs referred to herein may be MPLS-TP (Multi-Protocol Label Switching Transport Profile) OAM, MPLS OAM, ETH (Ethernet, Ethernet) OAM, and other such OAM.
  • MPLS-TP Multi-Protocol Label Switching Transport Profile
  • MPLS OAM MPLS OAM
  • ETH Ethernet, Ethernet
  • system and “network” are used interchangeably herein.
  • the term “and/or” in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate that A exists separately, and both A and B exist, respectively. B these three situations.
  • the character "/" in this article generally indicates that the contextual object is an "or" relationship.
  • an embodiment of the present invention provides a method for transmitting an OAM packet, and the main processes of the method are as follows:
  • Step 201 The MEP in the virtual home MEP determines whether the MEP is a master node. When it is determined that the MEP is the master node, that is, the determination result is yes, step 202 is performed. When it is determined that the MEP is not the master node, that is, if the determination result is no, step 203 is performed.
  • FIG. 3 is a schematic diagram of a transmission channel of an OAM packet.
  • 2 and 3 in FIG. 3 respectively represent one MEP, and the two MEPs constitute the virtual home MEP, that is, FIG. 3 is an example in which two MEPs are included in the virtual home MEP.
  • the virtual home MEP in the embodiment of the present invention is not limited to being composed of only two MEPs, and may include multiple MEPs.
  • the dotted boxes in Fig. 3 are 2 and 3, indicating that 2 and 3 constitute the virtual home MEP.
  • 1 in FIG. 3 denotes a MEP.
  • 1 may be referred to as a receiving end. 1 does not belong to the virtual home MEP.
  • 1 may be connected to the first network side device, and both 2 and 3 may be connected to the second network side device.
  • the first network side device may be a base station, for example, the second network side device may be an RNC (Radio). Network Controller, Radio Network Controller), not shown in FIG.
  • RNC Radio Network Controller
  • MEP2 and MEP3 shown in FIG. 3 may be two nodes in the network, and the same attribute parameter may be set for MEP2 and MEP3 first, which is equivalent to the MEP2 and the MEP3 is set to the virtual home MEP.
  • the virtual home MEP is an MEP, and the MEP is externally presented as one MEP regardless of how many MEPs are included in the virtual home MEP.
  • Externally presented as a MEP mainly means that for the receiving end, only one virtual home MEP can be seen.
  • the two virtual home MEPs may also be referred to as virtual MEP dual-homing nodes.
  • an attribute parameter of an MEP may include, but is not limited to, a MEG ID (maintenance entity group identity authentication), a MEP ID (endpoint identity authentication of a maintenance entity group), and a MAC Address (Media Access Control Address). Address), and so on.
  • the MEP before the MEP in the virtual home MEP determines whether the MEP is the master node, the MEP may further receive the second OAM packet from the receiving end.
  • the MEP may continue to determine whether the MEP is a master node.
  • the MEP may not need to determine because the MEP is determined to be the primary node, or the MEP may also It is again determined whether the MEP is a master node.
  • the MEP may directly The second OAM packet is processed.
  • the MEP may The second OAM packet is sent to the primary node in the virtual home MEP, and the second OAM packet is processed by the primary node.
  • the primary node and the secondary node in the virtual home MEP have a connection path through which the master node and the slave node can communicate.
  • Step 202 The MEP generates and sends a first OAM packet to the receiving end when determining that the MEP is the master node.
  • the MEP may generate and send the first OAM packet to the receiving end.
  • the primary node in the virtual home MEP may generate the first OAM packet, and may send the first OAM packet to the receiving end, by the receiving The terminal processes the first OAM packet. Then, one MEP in the virtual home MEP may first determine whether the MEP is a master node, and if the MEP is determined to be a master node, the MEP may generate the first OAM packet.
  • Step 203 The MEP, when determining that the MEP is not the master node, prohibits generating the first OAM packet.
  • the virtual home MEP includes at least two MEPs, and the attribute parameters of each MEP are the same.
  • the MEP determines that the MEP is not the master node, the first OAM packet is prohibited from being generated. That is, in the embodiment of the present invention, in the virtual home MEP, only the master node generates an OAM packet, and sends the generated OAM packet to the receiving end, and the slave node does not generate an OAM packet. The OAM packet is not sent to the receiving end, so that the receiving end receives only one OAM packet, which effectively avoids an abnormal alarm on the receiving end.
  • the receiving end may generate the second OAM packet, and may send the second OAM packet to the virtual home MEP, where one MEP of the virtual home MEP receives the After the second OAM packet, the MEP may be first determined to be the master node. If the MEP is determined to be the master node, the MEP may directly process the second OAM packet. If the MEP is not the master node, the MEP may send the second OAM packet to the master node, and the master node processes the second OAM packet.
  • the method may further include: when the preset condition is met, the MEP performs an active/standby switchover with another MEP.
  • the MEP can complete the active/standby switchover with a slave node when the preset condition is met.
  • the MEP may be A master node completes the active/standby switchover.
  • the MEP may monitor whether the master node is normal in real time, timing, or triggered. If the MEP determines that the master node is abnormal, the MEP may use the MEP. Set as the primary node.
  • the preset condition is: the MEP determines that the master node is abnormal.
  • the MEP may monitor whether the connection path with the master node is normal in real time, timing, or triggered. If the MEP determines that the connection path is abnormal, then The MEP may set the MEP as a master node.
  • the preset condition is that the MEP determines that the connection path is abnormal.
  • the MEP may monitor the MEP in real time, timing, or triggered. If the MEP is abnormal, the MEP may go to the virtual home MEP.
  • One of the slave nodes sends information to set the slave node as the master node.
  • the preset condition is: the MEP determines that the MEP is abnormal.
  • the virtual home MEP can receive the switching instruction for implementing the active/standby switchover, and after receiving the switching instruction, the master node and a slave node in the virtual home MEP can complete the active/standby switchover.
  • the preset condition is that the MEP receives the switching instruction for implementing active/standby switching.
  • an embodiment of the present invention provides an apparatus for transmitting an OAM message, where the apparatus may be applied to one MEP in a virtual home MEP.
  • the device may be the MEP itself.
  • the apparatus can include a determination module 401 and an operation module 402.
  • the determining module 401 can be used to determine whether the MEP is a master node.
  • the operation module 402 may be configured to: after determining that the MEP is a master node, generate and send a first OAM message to the receiving end; where the virtual home MEP includes at least two MEPs, each The attribute parameters of the MEP are the same.
  • the device may further comprise a receiving module.
  • the receiving module may be configured to receive a second OAM message from the receiving end.
  • the operation module 402 is further configured to send the second OAM message to the primary node in the virtual home MEP after determining that the MEP is not the master node.
  • the device may further comprise a processing module.
  • the processing module may be configured to process the second OAM packet.
  • the device may further comprise a switching module.
  • the virtual home MEP has one and only one master node, and the switching module may be configured to perform an active/standby switchover with another MEP when the preset condition is met.
  • FIG. 4B is a structural diagram of the apparatus including the determining module 401 , the operating module 402 , the receiving module 403 , the processing module 404 , and the switching module 405 .
  • the device may include the receiving module 403, the processing module 404, and the switching module 405, or may include the receiving module 403, the processing module 404, and the switching module 405, in addition to the determining module 401 and the operating module 402.
  • the module or all modules can be different depending on the actual situation.
  • the embodiment of the present invention further provides an apparatus 500 for transmitting an OAM message.
  • the apparatus may be applied to one MEP in a virtual home MEP.
  • the device may be the MEP itself.
  • the apparatus 500 includes: a bus 540; and a processor 510, a memory 520, and an interface 530 connected to the bus 540, where the interface 530 is configured to send a first OAM message to the receiving end;
  • the processor 910 is configured to execute the instruction for determining whether the MEP is a master node; the processor 910 executing the instruction is further configured to generate the first OAM when determining that the MEP is a master node a message; the processor 910 executing the instruction is further configured to prohibit generating the first OAM report when determining that the MEP is not a master node Text.
  • the interface 530 is configured to receive the second OAM packet from the receiving end.
  • the interface 530 is configured to send the second OAM packet to the virtual home MEP when the processor 910 determines that the MEP is not the master node by executing the instruction.
  • the primary node in the embodiment of the present invention
  • the processor 910 is configured to perform the processing on the second OAM packet when the MEP is determined to be the master node.
  • the processor 910 executes the instruction, and the MEP and another MEP occur when a preset condition is met. Active/standby switchover.
  • the apparatus 500 for transmitting an OAM message in the embodiment of the present invention can ensure that the MEP is a master node, and the first OAM packet is prohibited from being generated when the MEP is not the master node.
  • the first OAM packet is sent to the receiving end only, and the two MEPs do not send two OAM packets to the receiving end as in the prior art.
  • the abnormal reporting alarm is not performed as in the prior art, and the normal operation of each network element is guaranteed.
  • An embodiment of the present invention provides a method for transmitting an OAM packet, where the method may include: determining, by the MEP in the virtual home MEP, whether the MEP is a master node; and when the MEP determines that the MEP is a master node, generating Sending a first OAM packet to the receiving end; the MEP prohibits generating the first OAM packet when determining that the MEP is not the master node; wherein the virtual home MEP includes at least two MEPs, and attributes of each MEP The parameters are the same.
  • the virtual home MEP includes at least two MEPs, and the same attribute parameter of each MEP is equivalent to virtualizing at least two MEPs into one MEP, and the virtual MEP is regarded as a MEP.
  • the virtual MEP only the master node generates and sends an OAM packet to the receiving end, and the slave node does not generate an OAM packet.
  • the OAM packet is not sent to the receiving end. Therefore, the virtual MEP sends only one first OAM packet to the receiving end, and the two MEPs do not need to be the same as in the prior art.
  • the receiving end sends two OAM packets, and the receiving end that receives only one OAM packet obviously does not report an abnormal alarm as in the prior art, and ensures normal operation of each network element.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit is implemented as a software functional unit and as a standalone product When sold or used, it can be stored on a computer readable storage medium.
  • a computer device which may be a personal computer, server, or network device, etc.
  • a processor to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed is a method for transmitting an OAM packet, used for proving a method for implementing client layer OAM for a server layer in a dual-homing scenario. The method comprises: an MEP in a virtual home MEP determining whether the MEP is a master node; when determining that the MEP is a master node, the MEP generating a first OAM packet and sending the first OAM packet to a receive end; and when determining that the MEP is not a master node, the MEP forbidding generation of the first OAM packet, the virtual home MEP comprising at least two MEPs, and attribute parameters of the MEPs being the same. Further disclosed is an apparatus for transmitting an OAM packet.

Description

一种传输OAM报文的方法及装置Method and device for transmitting OAM message
本申请要求于2013年10月12日提交中国专利局、申请号为CN201310475699.2、发明名称为“一种传输OAM报文的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. CN201310475699.2, entitled "A Method and Apparatus for Transmitting OAM Messages", filed on October 12, 2013, the entire contents of which are incorporated by reference. Combined in this application.
技术领域Technical field
本发明涉及通信技术领域,特别涉及一种传输OAM报文的方法及装置。The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for transmitting an OAM message.
背景技术Background technique
在PTN(Packet Transport Network,分组传送网)网络中,MPLS(Multi-Protocol Label Switching,多协议标签交换)为基于标签交换的快速数据包交换和路由的体系,能用于实现分组业务的快速转发。分组网络通常采用双归属的方式,如图1所示,网元A与网元B、C间分别建立业务连接或通道,在网元B有效时,网元A可以通过网元B进行业务传送,当网元B失效时,网元A可通过网元C进行业务传送。因此,正常情况下只有A、B之间进行业务传送,网元A、C之间的通道可以认为是网络A、B之间工作通道的保护路径。双归保护是落地节点故障时对业务的一种保护方案。In the PTN (Packet Transport Network) network, MPLS (Multi-Protocol Label Switching) is a fast packet switching and routing system based on label switching. It can be used to implement fast forwarding of packet services. . The packet network usually adopts the dual-homing mode. As shown in Figure 1, the network element A and the network elements B and C respectively establish a service connection or channel. When the network element B is valid, the network element A can perform service transmission through the network element B. When the network element B fails, the network element A can perform service transmission through the network element C. Therefore, only the traffic between A and B is normally transmitted. The channel between NEs A and C can be considered as the protection path of the working channel between networks A and B. Dual-homing protection is a protection scheme for services when a landing node fails.
在如图1所示的双归网络中,例如网元A、网元B和网元C均为MEP(Maintenance Entity Group End Point,维护实体组的端点),则网元A与网元B、网元C需要互通OAM(operation administration and maintenance,操作、管理和维护)报文。按照现有的OAM处理模型,网元A上会收到两份OAM报文,分别来自网元B和网元C。In the dual-homing network shown in FIG. 1, for example, the network element A, the network element B, and the network element C are MEPs (Maintenance Entity Group End Point), then the network element A and the network element B, The network element C needs to communicate with the OAM (operation administration and maintenance) message. According to the existing OAM processing model, the network element A receives two OAM packets, which are from the network element B and the network element C.
一般情况下,一个网元只会运行一个MEP,则对于收到两份OAM报 文的网元A来说,会出现异常上报告警,现有技术中对此尚无解决方案。Under normal circumstances, one network element will only run one MEP, then two copies of OAM will be received. For the network element A of the text, there will be an abnormal report alarm, and there is no solution for this in the prior art.
发明内容Summary of the invention
本发明实施例提供一种传输OAM报文的方法及装置,用于解决现有技术中网元会因为多收报文而出现异常上报告警的技术问题。The embodiment of the invention provides a method and a device for transmitting an OAM message, which are used to solve the technical problem that the network element in the prior art may report an alarm abnormally due to an over-received message.
本发明的第一方面,提供一种传输OAM报文的方法,包括:A first aspect of the present invention provides a method for transmitting an OAM message, including:
虚拟归属MEP中的MEP确定所述MEP是否为主节点;The MEP in the virtual home MEP determines whether the MEP is a master node;
所述MEP在确定所述MEP为主节点时,生成并向接收端发送第一OAM报文;The MEP generates and sends a first OAM message to the receiving end when determining that the MEP is the master node;
所述MEP在确定所述MEP不为主节点时,禁止生成所述第一OAM报文;The MEP prohibits generating the first OAM packet when determining that the MEP is not the master node;
其中,虚拟归属MEP包括至少两个MEP,每个MEP的属性参数相同。The virtual home MEP includes at least two MEPs, and the attribute parameters of each MEP are the same.
结合第一方面,在第一种可能的实现方式中,在虚拟归属MEP中的MEP确定所述MEP是否为主节点之前或之后,还包括:接收来自所述接收端的第二OAM报文。With reference to the first aspect, in a first possible implementation manner, before the MEP in the virtual home MEP determines whether the MEP is a master node, the method further includes: receiving a second OAM packet from the receiving end.
结合第一种可能的实现方式,在第二种可能的实现方式中,在虚拟归属MEP中的MEP确定所述MEP是否为主节点、及接收所述第二OAM报文之后,还包括:With reference to the first possible implementation manner, in a second possible implementation manner, after the MEP in the virtual home MEP determines whether the MEP is the master node, and after receiving the second OAM packet, the method further includes:
所述MEP在确定所述MEP不为主节点时,将所述第二OAM报文发送给所述虚拟归属MEP中的主节点。The MEP sends the second OAM packet to the primary node in the virtual home MEP when determining that the MEP is not the master node.
结合第一种可能的实现方式,在第三种可能的实现方式中,在虚拟归属MEP中的MEP确定所述MEP是否为主节点、及接收所述第二OAM报文之后,还包括:所述MEP在确定所述MEP为主节点时,对所述第二OAM报文进行处理。With reference to the first possible implementation manner, in a third possible implementation manner, after the MEP in the virtual home MEP determines whether the MEP is the master node, and after receiving the second OAM packet, the method further includes: The MEP processes the second OAM packet when determining that the MEP is the master node.
结合第一方面或第一种可能的实现方式至第三种可能的实现方式中 的任一种可能的实现方式,在第四种可能的实现方式中,所述虚拟归属MEP中有且仅有一个主节点;所述方法还包括:当满足预设条件时,所述MEP与另一MEP发生主备倒换。Combining the first aspect or the first possible implementation to the third possible implementation In a fourth possible implementation manner, the virtual home MEP has one and only one master node; and the method further includes: when the preset condition is met, the MEP is An active/standby switchover takes place on another MEP.
本发明的第二方面,提供一种传输OAM报文的装置,所述装置应用于虚拟归属MEP中的MEP;包括:A second aspect of the present invention provides an apparatus for transmitting an OAM message, where the apparatus is applied to an MEP in a virtual home MEP;
确定模块,用于确定所述MEP是否为主节点;a determining module, configured to determine whether the MEP is a master node;
操作模块,用于在确定所述MEP为主节点时,生成并向接收端发送第一OAM报文,及在确定所述MEP不为主节点时,禁止生成所述第一OAM报文;其中,虚拟归属MEP包括至少两个MEP,每个MEP的属性参数相同。The operation module is configured to: when the MEP is determined to be the primary node, generate and send the first OAM packet to the receiving end, and when the determining that the MEP is not the primary node, the first OAM packet is prohibited from being generated; The virtual home MEP includes at least two MEPs, and the attribute parameters of each MEP are the same.
结合第二方面,在第一种可能的实现方式中,所述装置还包括接收模块,用于接收来自所述接收端的第二OAM报文。With reference to the second aspect, in a first possible implementation, the apparatus further includes a receiving module, configured to receive a second OAM packet from the receiving end.
结合第一种可能的实现方式,在第二种可能的实现方式中,所述操作模块还用于在确定所述MEP不为主节点时,将所述第二OAM报文发送给所述虚拟归属MEP中的主节点。With reference to the first possible implementation manner, in a second possible implementation manner, the operation module is further configured to: when determining that the MEP is not the master node, send the second OAM packet to the virtual The primary node in the home MEP.
结合第一种可能的实现方式,在第三种可能的实现方式中,所述装置还包括处理模块,用于在确定所述MEP为主节点时,对所述第二OAM报文进行处理。With reference to the first possible implementation manner, in a third possible implementation manner, the device further includes a processing module, configured to process the second OAM packet when determining that the MEP is a master node.
结合第二方面或第一种可能的实现方式至第三种可能的实现方式中的任一种可能的实现方式,在第四种可能的实现方式中,所述虚拟归属MEP中有且仅有一个主节点;所述装置还包括倒换模块,用于当满足预设条件时,与另一MEP发生主备倒换。With reference to the second aspect, or any one of the first possible implementation to the third possible implementation, in the fourth possible implementation, the virtual home MEP has only one A master node; the device further includes a switching module, configured to perform an active/standby switchover with another MEP when the preset condition is met.
本发明实施例中,所述虚拟归属MEP中包括至少两个MEP,每个MEP的属性参数相同,则相当于将至少两个MEP虚拟成一个MEP,所述虚拟MEP对外被看作一个MEP,在所述虚拟MEP中,只有主节点才会生成并向所述接收端发送OAM报文,而从节点则不会生成OAM报文, 更不会向所述接收端发送OAM报文,因此,所述虚拟MEP只会向所述接收端发送一份所述第一OAM报文,不会像现有技术中一样两个MEP要向接收端发送两份OAM报文,而对于只收到一份OAM报文的所述接收端,显然不会像现有技术中一样出现异常上报告警,保证各网元的正常运行。In the embodiment of the present invention, the virtual home MEP includes at least two MEPs, and the same attribute parameter of each MEP is equivalent to virtualizing at least two MEPs into one MEP, and the virtual MEP is regarded as a MEP. In the virtual MEP, only the master node generates and sends an OAM packet to the receiving end, and the slave node does not generate an OAM packet. The OAM packet is not sent to the receiving end. Therefore, the virtual MEP sends only one first OAM packet to the receiving end, and the two MEPs do not need to be the same as in the prior art. The receiving end sends two OAM packets, and the receiving end that receives only one OAM packet obviously does not report an abnormal alarm as in the prior art, and ensures normal operation of each network element.
附图说明DRAWINGS
图1为现有技术中双归网络示意图;1 is a schematic diagram of a dual-homing network in the prior art;
图2为本发明实施例中传输OAM报文的方法;2 is a method for transmitting an OAM packet according to an embodiment of the present invention;
图3为本发明实施例中OAM报文的传输通道示意图;3 is a schematic diagram of a transmission channel of an OAM packet according to an embodiment of the present invention;
图4A为本发明实施例中一种传输OAM报文的装置的结构图;4A is a structural diagram of an apparatus for transmitting an OAM message according to an embodiment of the present invention;
图4B为本发明实施例中一种传输OAM报文的装置的结构图;4B is a structural diagram of an apparatus for transmitting an OAM message according to an embodiment of the present invention;
图5为本发明实施例中一种传输OAM报文的装置的结构图。FIG. 5 is a structural diagram of an apparatus for transmitting an OAM message according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例提供一种传输OAM报文的方法,所述方法可以包括:虚拟归属MEP中的MEP确定所述MEP是否为主节点;所述MEP在确定所述MEP为主节点时,生成并向接收端发送第一OAM报文;所述MEP在确定所述MEP不为主节点时,禁止生成所述第一OAM报文;其中,虚拟归属MEP包括至少两个MEP,每个MEP的属性参数相同。An embodiment of the present invention provides a method for transmitting an OAM packet, where the method may include: determining, by the MEP in the virtual home MEP, whether the MEP is a master node; and when the MEP determines that the MEP is a master node, generating Sending a first OAM packet to the receiving end; the MEP prohibits generating the first OAM packet when determining that the MEP is not the master node; wherein the virtual home MEP includes at least two MEPs, and attributes of each MEP The parameters are the same.
本发明实施例中,所述虚拟归属MEP中包括至少两个MEP,每个MEP的属性参数相同,则相当于将至少两个MEP虚拟成一个MEP,所述虚拟MEP对外被看作一个MEP,在所述虚拟MEP中,只有主节点才会生成并向所述接收端发送OAM报文,而从节点则不会生成OAM报文,更不会向所述接收端发送OAM报文,因此,所述虚拟MEP只会向所述接收端发送一份所述第一OAM报文,不会像现有技术中一样两个MEP要向接收端发送两份OAM报文,而对于只收到一份OAM报文的所述接收端, 显然不会像现有技术中一样出现异常上报告警,保证各网元的正常运行。In the embodiment of the present invention, the virtual home MEP includes at least two MEPs, and the same attribute parameter of each MEP is equivalent to virtualizing at least two MEPs into one MEP, and the virtual MEP is regarded as a MEP. In the virtual MEP, only the master node generates and sends an OAM packet to the receiving end, and the slave node does not generate an OAM packet, and does not send an OAM packet to the receiving end. The virtual MEP sends only one copy of the first OAM message to the receiving end, and the two MEPs do not send two OAM messages to the receiving end as in the prior art, but only one is received. The receiving end of the OAM message, Obviously, there will be no abnormal alarms as in the prior art to ensure the normal operation of each network element.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本文中描述的技术可用于各种通信系统,例如当前2G,3G通信系统和下一代通信系统,例如全球移动通信系统(GSM,Global System for Mobile communications),码分多址(CDMA,Code Division Multiple Access)系统,时分多址(TDMA,Time Division Multiple Access)系统,宽带码分多址(WCDMA,Wideband Code Division Multiple Access Wireless),频分多址(FDMA,Frequency Division Multiple Addressing)系统,正交频分多址(OFDMA,Orthogonal Frequency-Division Multiple Access)系统,单载波FDMA(SC-FDMA)系统,通用分组无线业务(GPRS,General Packet Radio Service)系统,长期演进(LTE,Long Term Evolution)系统,PTN网络系统,路由器网络系统,MSTP(Multi-Service Transmission Platform,多业务传输平台)网络系统,以及其他此类通信系统。The techniques described herein can be used in a variety of communication systems, such as current 2G, 3G communication systems and next generation communication systems, such as Global System for Mobile Communications (GSM), Code Division Multiple Access (CDMA, Code Division Multiple). Access) system, Time Division Multiple Access (TDMA) system, Wideband Code Division Multiple Access (WCDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency OFDM (Orthogonal Frequency-Division Multiple Access) system, single carrier FDMA (SC-FDMA) system, General Packet Radio Service (GPRS) system, Long Term Evolution (LTE) system, PTN network system, router network system, MSTP (Multi-Service Transmission Platform) network system, and other such communication systems.
本文中涉及到的OAM,可以是MPLS-TP(Multi-Protocol Label Switching Transport Profile,多协议标签交换传送子集)OAM,MPLS OAM,ETH(Ethernet,以太网)OAM,以及其他此类OAM。The OAMs referred to herein may be MPLS-TP (Multi-Protocol Label Switching Transport Profile) OAM, MPLS OAM, ETH (Ethernet, Ethernet) OAM, and other such OAM.
另外,本文中术语“系统”和“网络”在本文中常被可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。Additionally, the terms "system" and "network" are used interchangeably herein. The term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate that A exists separately, and both A and B exist, respectively. B these three situations. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
下面结合说明书附图对本发明实施例作进一步详细描述。 The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
实施例一 Embodiment 1
请参见图2,本发明实施例提供一种传输OAM报文的方法,所述方法的主要流程如下:Referring to FIG. 2, an embodiment of the present invention provides a method for transmitting an OAM packet, and the main processes of the method are as follows:
步骤201:虚拟归属MEP中的MEP确定所述MEP是否为主节点。其中,当确定所述MEP为主节点时,即确定结果为是时,执行步骤202,当确定所述MEP不为主节点时,即确定结果为否时,执行步骤203。Step 201: The MEP in the virtual home MEP determines whether the MEP is a master node. When it is determined that the MEP is the master node, that is, the determination result is yes, step 202 is performed. When it is determined that the MEP is not the master node, that is, if the determination result is no, step 203 is performed.
请参见图3,为OAM报文的传输通道示意图。图3中的2和3分别表示一个MEP,这两个MEP组成所述虚拟归属MEP,即图3中是以所述虚拟归属MEP中包括两个MEP为例。但本发明实施例中的所述虚拟归属MEP不限于只由两个MEP组成,其可以包括多个MEP。图3中的虚线框内为2和3,表示2和3组成所述虚拟归属MEP。从图3中可以看出,2和3之间具有连接通路,2和3可以通过所述连接通路进行通信。Please refer to FIG. 3, which is a schematic diagram of a transmission channel of an OAM packet. 2 and 3 in FIG. 3 respectively represent one MEP, and the two MEPs constitute the virtual home MEP, that is, FIG. 3 is an example in which two MEPs are included in the virtual home MEP. However, the virtual home MEP in the embodiment of the present invention is not limited to being composed of only two MEPs, and may include multiple MEPs. The dotted boxes in Fig. 3 are 2 and 3, indicating that 2 and 3 constitute the virtual home MEP. As can be seen from Figure 3, there is a connection path between 2 and 3 through which the 2 and 3 can communicate.
图3中的1表示一个MEP,本发明实施例中为了描述方便,可以将1称为接收端。1不属于所述虚拟归属MEP。1 in FIG. 3 denotes a MEP. For the convenience of description in the embodiment of the present invention, 1 may be referred to as a receiving end. 1 does not belong to the virtual home MEP.
例如,1可以与第一网络侧设备相连,2和3均可以和第二网络侧设备相连,例如所述第一网络侧设备可以是基站,例如所述第二网络侧设备可以是RNC(Radio Network Controller,无线网络控制器),在图3中未示出。For example, 1 may be connected to the first network side device, and both 2 and 3 may be connected to the second network side device. For example, the first network side device may be a base station, for example, the second network side device may be an RNC (Radio). Network Controller, Radio Network Controller), not shown in FIG.
具体的,本发明实施例中,图3中所示的MEP2和MEP3可以是网络中的两个节点,可以首先为MEP2和MEP3设置相同的属性参数,这样就相当于将所述MEP2和所述MEP3设置为所述虚拟归属MEP。对于网络中的其他网元来说,所述虚拟归属MEP就是一个MEP,则,无论所述虚拟归属MEP中包括有多少个MEP,其对外就呈现为一个MEP。对外呈现为一个MEP,主要是指,对于接收端来说,只能看到一个虚拟归属MEP。Specifically, in the embodiment of the present invention, MEP2 and MEP3 shown in FIG. 3 may be two nodes in the network, and the same attribute parameter may be set for MEP2 and MEP3 first, which is equivalent to the MEP2 and the MEP3 is set to the virtual home MEP. For the other network elements in the network, the virtual home MEP is an MEP, and the MEP is externally presented as one MEP regardless of how many MEPs are included in the virtual home MEP. Externally presented as a MEP, mainly means that for the receiving end, only one virtual home MEP can be seen.
本发明实施例中,如果所述虚拟归属MEP中只包括两个MEP,则这两个虚拟归属MEP也可以称为虚拟MEP双归节点。 In the embodiment of the present invention, if only two MEPs are included in the virtual home MEP, the two virtual home MEPs may also be referred to as virtual MEP dual-homing nodes.
本发明实施例中,一个MEP的属性参数,可以包括但不限于MEG ID(维护实体组身份认证)、MEP ID(维护实体组的端点身份认证)、MAC Address(Media Access Control Address,媒体访问控制地址),等等。In the embodiment of the present invention, an attribute parameter of an MEP may include, but is not limited to, a MEG ID (maintenance entity group identity authentication), a MEP ID (endpoint identity authentication of a maintenance entity group), and a MAC Address (Media Access Control Address). Address), and so on.
较佳的,本发明实施例中,在虚拟归属MEP中的MEP确定所述MEP是否为主节点之前或之后,所述MEP还可以接收来自所述接收端的第二OAM报文。Preferably, in the embodiment of the present invention, before the MEP in the virtual home MEP determines whether the MEP is the master node, the MEP may further receive the second OAM packet from the receiving end.
如果是在确定所述MEP是否为主节点之前接收到所述第二OAM报文,则所述MEP可以继续确定所述MEP是否为主节点。If the second OAM message is received before determining whether the MEP is the master node, the MEP may continue to determine whether the MEP is a master node.
如果是在确定所述MEP是否为主节点之后接收到所述第二OAM报文,则所述MEP因为之前确定过所述MEP是否为主节点,可以无需再确定,或者,所述MEP也可以再次确定所述MEP是否为主节点。If the second OAM packet is received after determining whether the MEP is the master node, the MEP may not need to determine because the MEP is determined to be the primary node, or the MEP may also It is again determined whether the MEP is a master node.
进一步的,本发明实施例中,在所述MEP确定所述MEP是否为主节点、及接收所述第二OAM报文之后,如果所述MEP确定所述MEP为主节点,则可以直接对所述第二OAM报文进行处理。Further, in the embodiment of the present invention, after the MEP determines whether the MEP is a master node and receives the second OAM packet, if the MEP determines that the MEP is a master node, the MEP may directly The second OAM packet is processed.
进一步的,本发明实施例中,在所述MEP确定所述MEP是否为主节点、及接收所述第二OAM报文之后,如果所述MEP确定所述MEP不为主节点,所述MEP可以将所述第二OAM报文发送给所述虚拟归属MEP中的主节点,由主节点处理所述第二OAM报文。本发明实施例中,所述虚拟归属MEP中的主节点和从节点之间具有连接通路,主节点和从节点可以通过所述连接通路进行通信。Further, in the embodiment of the present invention, after the MEP determines whether the MEP is a master node, and after receiving the second OAM packet, if the MEP determines that the MEP is not a master node, the MEP may The second OAM packet is sent to the primary node in the virtual home MEP, and the second OAM packet is processed by the primary node. In the embodiment of the present invention, the primary node and the secondary node in the virtual home MEP have a connection path through which the master node and the slave node can communicate.
步骤202:所述MEP在确定所述MEP为主节点时,生成并向接收端发送第一OAM报文。Step 202: The MEP generates and sends a first OAM packet to the receiving end when determining that the MEP is the master node.
本发明实施例中,如果所述MEP确定所述MEP为主节点,则所述MEP可以生成并向所述接收端发送所述第一OAM报文。In the embodiment of the present invention, if the MEP determines that the MEP is a master node, the MEP may generate and send the first OAM packet to the receiving end.
本发明实施例中,所述虚拟归属MEP中的主节点可以生成所述第一OAM报文,并可以向所述接收端发送所述第一OAM报文,由所述接收 端对所述第一OAM报文进行处理。则,所述虚拟归属MEP中的一个MEP可以首先确定所述MEP是否为主节点,如果确定所述MEP为主节点,则所述MEP可以生成所述第一OAM报文。In the embodiment of the present invention, the primary node in the virtual home MEP may generate the first OAM packet, and may send the first OAM packet to the receiving end, by the receiving The terminal processes the first OAM packet. Then, one MEP in the virtual home MEP may first determine whether the MEP is a master node, and if the MEP is determined to be a master node, the MEP may generate the first OAM packet.
步骤203:所述MEP在确定所述MEP不为主节点时,禁止生成所述第一OAM报文;其中,虚拟归属MEP包括至少两个MEP,每个MEP的属性参数相同。Step 203: The MEP, when determining that the MEP is not the master node, prohibits generating the first OAM packet. The virtual home MEP includes at least two MEPs, and the attribute parameters of each MEP are the same.
本发明实施例中,如果所述MEP确定所述MEP不为主节点,则禁止生成所述第一OAM报文。即,本发明实施例中,在所述虚拟归属MEP中,只有主节点会生成OAM报文,并向所述接收端发送生成的OAM报文,而从节点则不会生成OAM报文,更不会向所述接收端发送OAM报文,从而保证所述接收端只会收到一份OAM报文,有效避免了所述接收端出现异常告警的情况。In the embodiment of the present invention, if the MEP determines that the MEP is not the master node, the first OAM packet is prohibited from being generated. That is, in the embodiment of the present invention, in the virtual home MEP, only the master node generates an OAM packet, and sends the generated OAM packet to the receiving end, and the slave node does not generate an OAM packet. The OAM packet is not sent to the receiving end, so that the receiving end receives only one OAM packet, which effectively avoids an abnormal alarm on the receiving end.
本发明实施例中,所述接收端可以生成所述第二OAM报文,并可以向所述虚拟归属MEP发送所述第二OAM报文,所述虚拟归属MEP中的一个MEP接收到所述第二OAM报文后,可以首先判断所述MEP是否为主节点,如果判断确定所述MEP为主节点,则所述MEP可以直接对所述第二OAM报文进行处理,如果判断确定所述MEP不为主节点,则所述MEP可以将所述第二OAM报文发送给主节点,由主节点对所述第二OAM报文进行处理。In the embodiment of the present invention, the receiving end may generate the second OAM packet, and may send the second OAM packet to the virtual home MEP, where one MEP of the virtual home MEP receives the After the second OAM packet, the MEP may be first determined to be the master node. If the MEP is determined to be the master node, the MEP may directly process the second OAM packet. If the MEP is not the master node, the MEP may send the second OAM packet to the master node, and the master node processes the second OAM packet.
本发明实施例中要保护的这两种方法之间可以没有先后顺序关系。There may be no order relationship between the two methods to be protected in the embodiment of the present invention.
进一步的,本发明一实施例中,所述虚拟归属MEP中有且仅有一个主节点。所述方法还可以包括:当满足预设条件时,所述MEP与另一MEP发生主备倒换。Further, in an embodiment of the invention, there is one and only one master node in the virtual home MEP. The method may further include: when the preset condition is met, the MEP performs an active/standby switchover with another MEP.
如果所述MEP为主节点,当满足所述预设条件时,所述MEP可以与一从节点完成主备倒换。If the MEP is the master node, the MEP can complete the active/standby switchover with a slave node when the preset condition is met.
如果所述MEP为从节点,当满足所述预设条件时,所述MEP可以与 一主节点完成主备倒换。If the MEP is a slave node, when the preset condition is met, the MEP may be A master node completes the active/standby switchover.
较佳的,如果确定所述MEP不为主节点,则所述MEP可以实时、定时或受触发时监测主节点是否正常,如果所述MEP确定主节点异常,则所述MEP可以将所述MEP设置为主节点。Preferably, if it is determined that the MEP is not a master node, the MEP may monitor whether the master node is normal in real time, timing, or triggered. If the MEP determines that the master node is abnormal, the MEP may use the MEP. Set as the primary node.
此时,所述预设条件为:所述MEP确定主节点异常。At this time, the preset condition is: the MEP determines that the master node is abnormal.
较佳的,如果确定所述MEP不为主节点,则所述MEP可以实时、定时或受触发时监测与主节点之间的连接通路是否正常,如果所述MEP确定所述连接通路异常,则所述MEP可以将所述MEP设置为主节点。Preferably, if it is determined that the MEP is not the master node, the MEP may monitor whether the connection path with the master node is normal in real time, timing, or triggered. If the MEP determines that the connection path is abnormal, then The MEP may set the MEP as a master node.
此时,所述预设条件为:所述MEP确定所述连接通路异常。At this time, the preset condition is that the MEP determines that the connection path is abnormal.
较佳的,如果确定所述MEP为主节点,则所述MEP可以实时、定时或受触发时对所述MEP进行监测,如果监测确定所述MEP异常,所述MEP可以向所述虚拟归属MEP中的一个从节点发送信息,以将该从节点设置为主节点。Preferably, if the MEP is determined to be a master node, the MEP may monitor the MEP in real time, timing, or triggered. If the MEP is abnormal, the MEP may go to the virtual home MEP. One of the slave nodes sends information to set the slave node as the master node.
此时,所述预设条件为:所述MEP确定所述MEP异常。At this time, the preset condition is: the MEP determines that the MEP is abnormal.
较佳的,所述虚拟归属MEP可以接收用于实现主备倒换的切换指令,则在接收到所述切换指令后,所述虚拟归属MEP中的主节点和一从节点可以完成主备倒换。Preferably, the virtual home MEP can receive the switching instruction for implementing the active/standby switchover, and after receiving the switching instruction, the master node and a slave node in the virtual home MEP can complete the active/standby switchover.
此时,所述预设条件为:所述MEP接收到用于实现主备倒换的所述切换指令。At this time, the preset condition is that the MEP receives the switching instruction for implementing active/standby switching.
实施例二 Embodiment 2
请参见图4A,本发明实施例提供一种传输OAM报文的装置,所述装置可以应用于虚拟归属MEP中的一个MEP。较佳的,所述装置可以就是所述MEP本身。所述装置可以包括确定模块401和操作模块402。Referring to FIG. 4A, an embodiment of the present invention provides an apparatus for transmitting an OAM message, where the apparatus may be applied to one MEP in a virtual home MEP. Preferably, the device may be the MEP itself. The apparatus can include a determination module 401 and an operation module 402.
确定模块401可以用于确定所述MEP是否为主节点。The determining module 401 can be used to determine whether the MEP is a master node.
操作模块402可以用于在确定所述MEP为主节点后,生成并向接收端发送第一OAM报文;其中,虚拟归属MEP包括至少两个MEP,每个 MEP的属性参数相同。The operation module 402 may be configured to: after determining that the MEP is a master node, generate and send a first OAM message to the receiving end; where the virtual home MEP includes at least two MEPs, each The attribute parameters of the MEP are the same.
可选地,所述装置还可以包括接收模块。Optionally, the device may further comprise a receiving module.
所述接收模块可以用于接收来自所述接收端的第二OAM报文。The receiving module may be configured to receive a second OAM message from the receiving end.
可选地,操作模块402还可以用于在确定所述MEP不为主节点后,将所述第二OAM报文发送给所述虚拟归属MEP中的主节点。Optionally, the operation module 402 is further configured to send the second OAM message to the primary node in the virtual home MEP after determining that the MEP is not the master node.
可选地,所述装置还可以包括处理模块。Optionally, the device may further comprise a processing module.
所述处理模块可以用于对所述第二OAM报文进行处理。The processing module may be configured to process the second OAM packet.
可选地,所述装置还可以包括倒换模块。Optionally, the device may further comprise a switching module.
本发明实施例中,所述虚拟归属MEP中有且仅有一个主节点,所述倒换模块可以用于当满足预设条件时,与另一MEP发生主备倒换。In the embodiment of the present invention, the virtual home MEP has one and only one master node, and the switching module may be configured to perform an active/standby switchover with another MEP when the preset condition is met.
请参见图4B,为所述装置中包括确定模块401、操作模块402、接收模块403、处理模块404和倒换模块405时的结构图。Please refer to FIG. 4B , which is a structural diagram of the apparatus including the determining module 401 , the operating module 402 , the receiving module 403 , the processing module 404 , and the switching module 405 .
其中,所述装置中除包括确定模块401和操作模块402之外,可以不包含接收模块403、处理模块404和倒换模块405,或者可以包含接收模块403、处理模块404和倒换模块405中的部分模块或全部模块,具体可以根据实际情况不同而有所不同。The device may include the receiving module 403, the processing module 404, and the switching module 405, or may include the receiving module 403, the processing module 404, and the switching module 405, in addition to the determining module 401 and the operating module 402. The module or all modules can be different depending on the actual situation.
实施例三 Embodiment 3
本发明实施例还提供了一种传输OAM报文的装置500,本发明实施例中,所述装置可以应用于虚拟归属MEP中的一个MEP。较佳的,所述装置可以就是所述MEP本身。The embodiment of the present invention further provides an apparatus 500 for transmitting an OAM message. In the embodiment of the present invention, the apparatus may be applied to one MEP in a virtual home MEP. Preferably, the device may be the MEP itself.
如图5所示,该装置500包括:总线540;以及连接到总线540的处理器510、存储器520和接口530,其中该接口530用于向接收端发送第一OAM报文;该存储器920用于存储指令,该处理器910用于执行该指令用于确定所述MEP是否为主节点;该处理器910执行该指令还用于在确定所述MEP为主节点时,生成所述第一OAM报文;该处理器910执行该指令还用于在确定所述MEP不为主节点时,禁止生成所述第一OAM报 文。As shown in FIG. 5, the apparatus 500 includes: a bus 540; and a processor 510, a memory 520, and an interface 530 connected to the bus 540, where the interface 530 is configured to send a first OAM message to the receiving end; For storing instructions, the processor 910 is configured to execute the instruction for determining whether the MEP is a master node; the processor 910 executing the instruction is further configured to generate the first OAM when determining that the MEP is a master node a message; the processor 910 executing the instruction is further configured to prohibit generating the first OAM report when determining that the MEP is not a master node Text.
在本发明实施例中,可选地,该接口530用于接收来自所述接收端的第二OAM报文。In the embodiment of the present invention, the interface 530 is configured to receive the second OAM packet from the receiving end.
在本发明实施例中,可选地,该接口530用于在该处理器910通过执行该指令确定所述MEP不为主节点时,将所述第二OAM报文发送给所述虚拟归属MEP中的主节点。In the embodiment of the present invention, the interface 530 is configured to send the second OAM packet to the virtual home MEP when the processor 910 determines that the MEP is not the master node by executing the instruction. The primary node in .
在本发明实施例中,可选地,该处理器910执行该指令还用于在确定所述MEP为主节点时,对所述第二OAM报文进行处理。In the embodiment of the present invention, the processor 910 is configured to perform the processing on the second OAM packet when the MEP is determined to be the master node.
在本发明实施例中,所述虚拟归属MEP中有且仅有一个主节点;可选地,该处理器910执行该指令还用于当满足预设条件时,所述MEP与另一MEP发生主备倒换。In the embodiment of the present invention, there is one and only one master node in the virtual home MEP; optionally, the processor 910 executes the instruction, and the MEP and another MEP occur when a preset condition is met. Active/standby switchover.
因此,本发明实施例的传输OAM报文的装置500,通过确定所述MEP是否为主节点,及在确定所述MEP不为主节点时,禁止生成所述第一OAM报文,从而能够保证只向所述接收端发送一份所述第一OAM报文,不会像现有技术中一样两个MEP要向接收端发送两份OAM报文。而对于只收到一份OAM报文的所述接收端,显然不会像现有技术中一样出现异常上报告警,保证各网元的正常运行。Therefore, the apparatus 500 for transmitting an OAM message in the embodiment of the present invention can ensure that the MEP is a master node, and the first OAM packet is prohibited from being generated when the MEP is not the master node. The first OAM packet is sent to the receiving end only, and the two MEPs do not send two OAM packets to the receiving end as in the prior art. For the receiving end that receives only one OAM packet, obviously, the abnormal reporting alarm is not performed as in the prior art, and the normal operation of each network element is guaranteed.
本发明实施例提供一种传输OAM报文的方法,所述方法可以包括:虚拟归属MEP中的MEP确定所述MEP是否为主节点;所述MEP在确定所述MEP为主节点时,生成并向接收端发送第一OAM报文;所述MEP在确定所述MEP不为主节点时,禁止生成所述第一OAM报文;其中,虚拟归属MEP包括至少两个MEP,每个MEP的属性参数相同。An embodiment of the present invention provides a method for transmitting an OAM packet, where the method may include: determining, by the MEP in the virtual home MEP, whether the MEP is a master node; and when the MEP determines that the MEP is a master node, generating Sending a first OAM packet to the receiving end; the MEP prohibits generating the first OAM packet when determining that the MEP is not the master node; wherein the virtual home MEP includes at least two MEPs, and attributes of each MEP The parameters are the same.
本发明实施例中,所述虚拟归属MEP中包括至少两个MEP,每个MEP的属性参数相同,则相当于将至少两个MEP虚拟成一个MEP,所述虚拟MEP对外被看作一个MEP,在所述虚拟MEP中,只有主节点才会生成并向所述接收端发送OAM报文,而从节点则不会生成OAM报文, 更不会向所述接收端发送OAM报文,因此,所述虚拟MEP只会向所述接收端发送一份所述第一OAM报文,不会像现有技术中一样两个MEP要向接收端发送两份OAM报文,而对于只收到一份OAM报文的所述接收端,显然不会像现有技术中一样出现异常上报告警,保证各网元的正常运行。In the embodiment of the present invention, the virtual home MEP includes at least two MEPs, and the same attribute parameter of each MEP is equivalent to virtualizing at least two MEPs into one MEP, and the virtual MEP is regarded as a MEP. In the virtual MEP, only the master node generates and sends an OAM packet to the receiving end, and the slave node does not generate an OAM packet. The OAM packet is not sent to the receiving end. Therefore, the virtual MEP sends only one first OAM packet to the receiving end, and the two MEPs do not need to be the same as in the prior art. The receiving end sends two OAM packets, and the receiving end that receives only one OAM packet obviously does not report an abnormal alarm as in the prior art, and ensures normal operation of each network element.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It will be clearly understood by those skilled in the art that for the convenience and brevity of the description, only the division of each functional module described above is exemplified. In practical applications, the above function assignment can be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to perform all or part of the functions described above. For the specific working process of the system, the device and the unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品 销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit is implemented as a software functional unit and as a standalone product When sold or used, it can be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,以上实施例仅用以对本申请的技术方案进行了详细介绍,但以上实施例的说明只是用于帮助理解本发明的方法及其核心思想,不应理解为对本发明的限制。本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。 The above embodiments are only used to describe the technical solutions of the present application in detail, but the description of the above embodiments is only for helping to understand the method and the core idea of the present invention, and should not be construed as limiting the present invention. Those skilled in the art will be able to devise variations or alternatives within the scope of the present invention within the scope of the present invention.

Claims (10)

  1. 一种传输OAM报文的方法,其特征在于,包括:A method for transmitting an OAM message, comprising:
    虚拟归属MEP中的MEP确定所述MEP是否为主节点;The MEP in the virtual home MEP determines whether the MEP is a master node;
    所述MEP在确定所述MEP为主节点时,生成并向接收端发送第一OAM报文;The MEP generates and sends a first OAM message to the receiving end when determining that the MEP is the master node;
    所述MEP在确定所述MEP不为主节点时,禁止生成所述第一OAM报文;The MEP prohibits generating the first OAM packet when determining that the MEP is not the master node;
    其中,虚拟归属MEP包括至少两个MEP,每个MEP的属性参数相同。The virtual home MEP includes at least two MEPs, and the attribute parameters of each MEP are the same.
  2. 如权利要求1所述的方法,其特征在于,在虚拟归属MEP中的MEP确定所述MEP是否为主节点之前或之后,还包括:接收来自所述接收端的第二OAM报文。The method of claim 1, wherein before the MEP in the virtual home MEP determines whether the MEP is a master node, the method further comprises: receiving a second OAM message from the receiving end.
  3. 如权利要求2所述的方法,其特征在于,在虚拟归属MEP中的MEP确定所述MEP是否为主节点、及接收所述第二OAM报文之后,还包括:The method of claim 2, wherein after the MEP in the virtual home MEP determines whether the MEP is a master node and receives the second OAM message, the method further includes:
    所述MEP在确定所述MEP不为主节点时,将所述第二OAM报文发送给所述虚拟归属MEP中的主节点。The MEP sends the second OAM packet to the primary node in the virtual home MEP when determining that the MEP is not the master node.
  4. 如权利要求2所述的方法,其特征在于,在虚拟归属MEP中的MEP确定所述MEP是否为主节点、及接收所述第二OAM报文之后,还包括:The method of claim 2, wherein after the MEP in the virtual home MEP determines whether the MEP is a master node and receives the second OAM message, the method further includes:
    所述MEP在确定所述MEP为主节点时,对所述第二OAM报文进行处理。The MEP processes the second OAM packet when determining that the MEP is the master node.
  5. 如权利要求1~4任一权项所述的方法,其特征在于,所述虚拟归属MEP中有且仅有一个主节点;所述方法还包括:当满足预设条件时,所述MEP与另一MEP发生主备倒换。 The method according to any one of claims 1 to 4, wherein the virtual home MEP has one and only one master node; and the method further comprises: when the preset condition is met, the MEP and An active/standby switchover takes place on another MEP.
  6. 一种传输OAM报文的装置,其特征在于,所述装置应用于虚拟归属MEP中的MEP;包括:An apparatus for transmitting an OAM message, where the apparatus is applied to a MEP in a virtual home MEP;
    确定模块,用于确定所述MEP是否为主节点;a determining module, configured to determine whether the MEP is a master node;
    操作模块,用于在确定所述MEP为主节点时,生成并向接收端发送第一OAM报文,及在确定所述MEP不为主节点时,禁止生成所述第一OAM报文;其中,虚拟归属MEP包括至少两个MEP,每个MEP的属性参数相同。The operation module is configured to: when the MEP is determined to be the primary node, generate and send the first OAM packet to the receiving end, and when the determining that the MEP is not the primary node, the first OAM packet is prohibited from being generated; The virtual home MEP includes at least two MEPs, and the attribute parameters of each MEP are the same.
  7. 如权利要求6所述的装置,其特征在于,所述装置还包括接收模块,用于接收来自所述接收端的第二OAM报文。The device according to claim 6, wherein the device further comprises a receiving module, configured to receive a second OAM message from the receiving end.
  8. 如权利要求7所述的装置,其特征在于,所述操作模块还用于在确定所述MEP不为主节点时,将所述第二OAM报文发送给所述虚拟归属MEP中的主节点。The apparatus according to claim 7, wherein the operation module is further configured to: when determining that the MEP is not a master node, send the second OAM message to a master node in the virtual home MEP .
  9. 如权利要求7所述的装置,其特征在于,所述装置还包括处理模块,用于在确定所述MEP为主节点时,对所述第二OAM报文进行处理。The device according to claim 7, wherein the device further comprises a processing module, configured to process the second OAM message when determining that the MEP is a master node.
  10. 如权利要求6-9任一权项所述的装置,其特征在于,所述虚拟归属MEP中有且仅有一个主节点;所述装置还包括倒换模块,用于当满足预设条件时,与另一MEP发生主备倒换。 The device according to any one of claims 6-9, wherein there is one and only one master node in the virtual home MEP; the device further includes a switching module, when the preset condition is met, An active/standby switchover occurs with another MEP.
PCT/CN2014/087062 2013-10-12 2014-09-22 Method and apparatus for transmitting oam packet WO2015051696A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310475699.2A CN103546316B (en) 2013-10-12 2013-10-12 A kind of method and device for transmitting OAM message
CN201310475699.2 2013-10-12

Publications (1)

Publication Number Publication Date
WO2015051696A1 true WO2015051696A1 (en) 2015-04-16

Family

ID=49969391

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/087062 WO2015051696A1 (en) 2013-10-12 2014-09-22 Method and apparatus for transmitting oam packet

Country Status (2)

Country Link
CN (1) CN103546316B (en)
WO (1) WO2015051696A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546316B (en) * 2013-10-12 2017-09-29 华为技术有限公司 A kind of method and device for transmitting OAM message
CN108494474A (en) * 2018-03-23 2018-09-04 烽火通信科技股份有限公司 Realize that business is superimposed the method and system of pretection switch using OAM message

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848762A (en) * 2004-09-16 2006-10-18 阿尔卡特公司 System and method for securing an Ethernet connectivity fault management (CFM) domain defined on a vlan
CN102045230A (en) * 2010-12-07 2011-05-04 中兴通讯股份有限公司 Ethernet link protection switching method and device
CN103546316A (en) * 2013-10-12 2014-01-29 华为技术有限公司 OAM message transmission method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100388703C (en) * 2003-11-27 2008-05-14 中兴通讯股份有限公司 A method and system for Ethernet interface node backup
CN103227736B (en) * 2013-04-08 2016-03-09 华为技术有限公司 A kind of ethernet performance detection method, system and Optical Network Terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848762A (en) * 2004-09-16 2006-10-18 阿尔卡特公司 System and method for securing an Ethernet connectivity fault management (CFM) domain defined on a vlan
CN102045230A (en) * 2010-12-07 2011-05-04 中兴通讯股份有限公司 Ethernet link protection switching method and device
CN103546316A (en) * 2013-10-12 2014-01-29 华为技术有限公司 OAM message transmission method and device

Also Published As

Publication number Publication date
CN103546316B (en) 2017-09-29
CN103546316A (en) 2014-01-29

Similar Documents

Publication Publication Date Title
US11349687B2 (en) Packet processing method, device, and system
EP3188409B1 (en) Oam mechanisms for evpn active-active services
US20200014614A1 (en) SDN Controller, Data Center System, and Routing Connection Method
EP2852098B1 (en) Method, node and system for detecting performance of layer three virtual private network
EP2733979A1 (en) Method and apparatus for controlling switching of active/standby pseudo wires
US8811190B2 (en) Maximum transmission unit (MTU) size discovery mechanism and method for data-link layers
US9264314B2 (en) Method, system, and switch for making bridge in MSTP join region
US11134009B2 (en) Packet processing method and apparatus
EP4138443A1 (en) Communication method and apparatus
CN103004141B (en) Network loop detection method, equipment and system
WO2016062067A1 (en) User message forwarding control method and processing node
US11038898B2 (en) Slow protocol packet processing method and related apparatus
WO2018219103A1 (en) Method and device for determining link state
EP2677702A2 (en) A method and apparatus for load balance
WO2016124117A1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
US10680930B2 (en) Method and apparatus for communication in virtual network
EP2858302A1 (en) Connectivity check method of service stream link, related apparatus and system
WO2021213185A1 (en) Routing processing method and apparatus
WO2015051696A1 (en) Method and apparatus for transmitting oam packet
EP2840738B1 (en) Mep configuration method and network device
WO2015024523A1 (en) Ip bearer network failure determining method and system
WO2012079405A2 (en) Link trace processing method and system
CN104618148A (en) Firewall device and backup method thereof
EP3720078B1 (en) Anima network information processing method, device, and system
CN105207792A (en) Non-linkage pseudo wire gateway protection system and pseudo wire gateway protection method thereof

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

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

Country of ref document: EP

Kind code of ref document: A1