





技术领域technical field
本发明涉及网络通信领域,特别涉及一种OAM(Operations,Admimistration andMaintenance,操作、管理与维护)报文的转发控制方法及系统。The present invention relates to the field of network communication, in particular to a forwarding control method and system for OAM (Operations, Administration and Maintenance) messages.
背景技术Background technique
以太网技术简单易用、价格低廉、且带宽可不断提高,无论是作为一种业务还是作为一种网络结构在企业网、城域网和广域网范围内都已经得到大规模应用。但是传统以太网可维护、可运营能力比较弱,随着以太网推广的范围逐渐扩大,对以太网OAM功能的需求也越来越强烈。Ethernet technology is easy to use, low in price, and its bandwidth can be continuously improved. Whether it is a service or a network structure, it has been widely used in enterprise networks, metropolitan area networks and wide area networks. However, the maintainability and operability of traditional Ethernet are relatively weak. As the scope of Ethernet promotion gradually expands, the demand for Ethernet OAM functions becomes stronger and stronger.
以太网OAM功能可分为两大部分:故障管理、性能管理。其中,故障管理是通过定时或手动触发的方式发送检测报文探测网络的连通性,实现机制类似于BFD、MPLS OAM,同时也提供了类似于IP中故障确认功能Ping和隔离功能Tracert的手段对以太网得故障进行定位。性能管理主要指对网络传输中的丢包、时延、抖动等参数的衡量,也包括对网络中各类流量(如接收发送字节数、错误报文数等)进行统计,该性能管理通常在用户接入点实施。The Ethernet OAM function can be divided into two parts: fault management and performance management. Among them, fault management is to send detection packets to detect the connectivity of the network through timing or manual triggering. The implementation mechanism is similar to BFD and MPLS OAM, and it also provides methods similar to the fault confirmation function Ping and isolation function Tracert in IP. Ethernet faults are located. Performance management mainly refers to the measurement of parameters such as packet loss, delay, and jitter in network transmission, and also includes the statistics of various types of traffic in the network (such as the number of received and sent bytes, the number of error messages, etc.). Implemented at the user access point.
802.1ag ethoam可以解决端到端的以太网OAM问题,主要功能包括:故障检测功能,故障确认功能(Ping),故障定位和隔离功能(Tracert),故障通知和告警抑制功能。802.1ag ethoam can solve the end-to-end Ethernet OAM problem. The main functions include: fault detection, fault confirmation (Ping), fault location and isolation (Tracert), fault notification and alarm suppression.
关于802.1ag的基本概念介绍如下:The basic concepts of 802.1ag are introduced as follows:
维护域MD(Maintenance Domain)是802.1ag故障管理功能所涉及到的网络或网络中的某个部分,通过一系列DSAP(Domain Service Access Point,域服务接入点)来界定,不同的MD通过各自的MD名来区分。其中DSAP称为域服务接入点,即维护域的边界点,如桥设备的某个端口,它为域的外部提供连通性服务,维护域的内部还可能存在ISAP(IntermediateServiceAccess Point,中间服务接入点),它是从一个DSAP到另一个DSAP的中间节点。Maintenance domain MD (Maintenance Domain) is the network or a certain part of the network involved in the 802.1ag fault management function, which is defined by a series of DSAP (Domain Service Access Point, domain service access point). MD name to distinguish. Among them, the DSAP is called the domain service access point, which is the boundary point of the maintenance domain, such as a certain port of the bridge device, which provides connectivity services for the outside of the domain. There may also be an ISAP (Intermediate Service Access Point, intermediate service access point) inside the maintenance domain. entry point), which is an intermediate node from one DSAP to another DSAP.
参见图1,给出了一个维护域的实例,其中存在5个桥设备,6个DSAP覆盖的区域就是维护域,中间存在多个ISAP。Referring to Fig. 1, an example of a maintenance domain is given, in which there are 5 bridge devices, the area covered by 6 DSAPs is the maintenance domain, and there are multiple ISAPs in the middle.
根据需要可以在维护域中配置多个服务实例(如针对某一用户的业务可用的DSAP),一个服务实例由多个DSAP组成,通过一个标识ID进行标识,一个服务实例具有共有的一些属性(如带宽)。Multiple service instances (such as DSAPs available for a certain user's business) can be configured in the maintenance domain as required. A service instance consists of multiple DSAPs, which are identified by an identification ID. A service instance has some common attributes ( such as bandwidth).
指定一个服务实例也就是建立那些DSAP之间的无连接的联盟关系,这个关系称作MA(Maintenance Association,维护联盟),MA的端点称为MEP(Maintenance Association EndPoint,维护联盟端点),涉及到的中间节点称为MIP(Maintenance Association IntermediatePoint,维护联盟中间节点),MEP位于相应的DSAP处,MIP位于相应的ISAP处。MA在整个维护域中通过唯一的MA名来区分,MA名与维护域名一起形成了唯一的标识ID,这个标识ID需要在相关消息中携带,以区分其它的服务实例。Specifying a service instance is to establish a connectionless alliance relationship between those DSAPs. This relationship is called MA (Maintenance Association, maintenance alliance), and the endpoint of MA is called MEP (Maintenance Association EndPoint, maintenance alliance endpoint). The intermediate node is called MIP (Maintenance Association Intermediate Point, Maintenance Association Intermediate Point), MEP is located at the corresponding DSAP, and MIP is located at the corresponding ISAP. The MA is distinguished by a unique MA name in the entire maintenance domain. The MA name and the maintenance domain name together form a unique identification ID. This identification ID needs to be carried in related messages to distinguish other service instances.
参见图2,点a、c、e、f被配置为用户C1可用的DSAP,从而建立了用户C1相关的一个服务实例和相应的维护联盟MA,另外两个DSAP b和d未使用,不属于这个服务实例和MA。Referring to Figure 2, points a, c, e, and f are configured as DSAPs available to user C1, thereby establishing a service instance related to user C1 and the corresponding maintenance alliance MA. The other two DSAPs b and d are not used and do not belong to This service instance and MA.
参见图3,从用户C1角度看图2中的维护联盟MA,它是由同属于一个服务实例的四个DSAP节点构成。Referring to FIG. 3 , looking at the maintenance association MA in FIG. 2 from the perspective of user C1, it is composed of four DSAP nodes belonging to one service instance.
802.1ag Mac Trace功能实现过程如下:The implementation process of 802.1ag Mac Trace function is as follows:
Mac Trace作为一个OAM工具,基于802.1ag的LTM(Link Trace Message,链路跟踪报文)、LTR(Link Trace Reply,链路跟踪应答报文)实现。As an OAM tool, Mac Trace is implemented based on 802.1ag LTM (Link Trace Message, Link Trace Message) and LTR (Link Trace Reply, Link Trace Reply Message).
Mac Trace支持基于设备作为Trace点的方式,LTM用于检测两个MP(Maintenance Point,维护节点)间所通过的MIP路径,由MEP发送LTM,经MIP到达目的MP,沿途MP和目的MP都将往源MEP回送应答报文LTR。Mac Trace supports the method based on the device as a trace point. LTM is used to detect the MIP path passed between two MPs (Maintenance Points, maintenance nodes). The LTM is sent by the MEP and reaches the destination MP through the MIP. Both the MP and the destination MP along the way will Send the reply message LTR to the source MEP.
其中,LTM是一个已知组播地址的消息,报文中携带目的MEP或MIP的MAC地址。该报文被MIP在向目的MEP转发的同时,沿途的每个MIP向源MEP逐一回复LTR报文,这样,源MEP就能得到通向目的MP的路上存在哪些MIP的信息,并记录它们的MAC地址。Wherein, the LTM is a message of a known multicast address, and the message carries the MAC address of the destination MEP or MIP. When the message is forwarded by the MIP to the destination MEP, each MIP along the way replies with an LTR message to the source MEP one by one. In this way, the source MEP can obtain the information of which MIPs exist on the way to the destination MP and record their information. MAC address.
Link Trace在MA内组播发送,由于回应到发起端MEP的LTR报文可能是非路径报文,即LTM与LTR的报文传播路径不同。在收到所有的LTR报文后,最后通过计算得出通往目的MEP的路径。Link Trace is sent in multicast in the MA, because the LTR message sent back to the initiator MEP may be a non-path message, that is, the message propagation paths of LTM and LTR are different. After receiving all the LTR messages, finally calculate the path to the destination MEP.
如图4所示,A点组播发送LTM报文,B收到A的发送的LTM后,回应一个LTR报文给A(LTR是单播发送的),然后继续组播发送LTM报文,C收到B发送的LTM后,判断LTM报文中的目的MAC是自己,不再继续发送LTM,而是直接发送一个LTR给A。A点通过收到的LTR报文便可以计算出通向C的一条路径。如果这条路径有故障或环回发生,通过LTR报文能计算出故障点信息。As shown in Figure 4, point A sends an LTM message in multicast, and after B receives the LTM sent by A, it responds with an LTR message to A (LTR is sent by unicast), and then continues to send the LTM message in multicast, After receiving the LTM sent by B, C judges that the destination MAC in the LTM message is itself, and does not continue to send the LTM, but directly sends an LTR to A. Point A can calculate a path to C through the received LTR message. If the path is faulty or a loopback occurs, the fault point information can be calculated through the LTR message.
IEEE 802.1ag链路跟踪报文LTM的格式如表1所示:The format of the IEEE 802.1ag link tracking message LTM is shown in Table 1:
表1 Table 1
其中,MD Level:标识MD级别;Among them, MD Level: identifies the MD level;
Version:OAM协议版本号;Version: OAM protocol version number;
OpCode:指定协议的格式和用途;OpCode: specifies the format and purpose of the protocol;
Flags:由不同格式的报文确定其意义;Flags: The meaning is determined by messages of different formats;
First TLV Offset:报文中第一个TLV的偏移量;First TLV Offset: the offset of the first TLV in the message;
Transaction Identifier/Sequence Number:发送标识/序列号;Transaction Identifier/Sequence Number: Send ID/Sequence Number;
LTM TTL Field:LTM报文经过的跳数;LTM TTL Field: the number of hops passed by the LTM message;
Original MAC Address Field:最初发起LTM报文的MEP点的MAC地址;Original MAC Address Field: the MAC address of the MEP that originally initiated the LTM message;
Target MAC Address Field:LTM跟踪的目的MAC地址;Target MAC Address Field: The destination MAC address tracked by LTM;
Additional LTM TLVs:增加的TLV,协议扩展之用;Additional LTM TLVs: Added TLVs for protocol extensions;
End TLV:标志TLV序列的结束TLV,即报文中最后一个TLV。End TLV: Marks the end TLV of the TLV sequence, that is, the last TLV in the packet.
现有技术中LTM报文的转发机制如下:The forwarding mechanism of the LTM message in the prior art is as follows:
1)MEP发起LTM报文,对从源地址到目的MAC地址的路径进行路径故障检测。该LTM报文中包含了目的MAC地址,发送方式为在同一MD内组播发送。1) The MEP initiates an LTM message, and performs path fault detection on the path from the source address to the destination MAC address. The LTM message contains the destination MAC address, and the sending mode is multicast sending in the same MD.
2)桥接设备收到了LTM报文后,当Flags域中的HWonly=1,查MAC转发表进行报文转发,如果查询MAC地址失败,则丢弃报文或以广播方式发送报文;2) After the bridge device has received the LTM message, when HWonly=1 in the Flags field, check the MAC forwarding table and forward the message, if the query MAC address fails, then discard the message or send the message in a broadcast mode;
当HWonly=0,查MAC转发表进行报文转发,如果查询MAC地址失败,查CCM(ContinuityCheck Message,连续性检测报文)转发表进行报文转发,如果查询失败,则丢弃报文或以广播方式发送报文。When HWonly=0, check the MAC forwarding table for message forwarding, if the query MAC address fails, check the CCM (ContinuityCheck Message, continuity detection message) forwarding table for message forwarding, if the query fails, then discard the message or broadcast way to send messages.
查不到MAC转发表项的可能性有两种:There are two possibilities that the MAC forwarding entry cannot be found:
1)桥接设备没有学习到相应的MAC地址。比如设备刚启动。1) The bridge device has not learned the corresponding MAC address. For example, the device has just started up.
2)桥接设备通常要求具有MAC地址老化机制,设备在一定的老化时间内没有再学习到某一MAC地址,则该MAC地址会从转发表中删去。因此当LTM发起的时间在桥接设备MAC地址老化之后,那么该桥接设备就无法准确转发LTM报文,也就无法进行故障定位了。2) The bridge device is usually required to have a MAC address aging mechanism. If the device does not learn a certain MAC address within a certain aging time, the MAC address will be deleted from the forwarding table. Therefore, when the LTM is initiated after the MAC address of the bridging device ages out, the bridging device cannot accurately forward LTM packets, and thus cannot perform fault location.
针对上面查不到MAC转发表项的两种可能性,可以采取的方法有:For the two possibilities that the above MAC forwarding entries cannot be found, the methods that can be adopted are:
1)发现故障后立即启动链路跟踪功能,使在老化时间内完成故障定位功能;1) Immediately start the link tracking function after a fault is found, so that the fault location function can be completed within the aging time;
2)使用CCM报文携带在中间节点(MIP)维护的通往所有其他MP节点的路径信息;2) Use the CCM message to carry the path information leading to all other MP nodes maintained at the intermediate node (MIP);
3)周期向所有MP节点发送LTM报文,通过LTR报文维护一张通往MP路径的信息表;3) Periodically send LTM messages to all MP nodes, and maintain an information table leading to MP paths through LTR messages;
4)手工配置静态MAC转发表;4) Manually configure the static MAC forwarding table;
5)通过在所有MP点上配置MAC查找失败时的转发动作。5) By configuring the forwarding action when the MAC search fails on all MP points.
现有技术的缺点如下:The shortcoming of prior art is as follows:
第一种方法并不能总是保证能在MAC地址老化前完成故障的自动定位功能,具有不确定性;The first method cannot always guarantee that the automatic fault location function can be completed before the MAC address ages, which is uncertain;
第二种和第三种对桥接设备都要占用一定的CPU和内存资源,且第三种方法还要持续占用一定的网络资源;The second and third methods both occupy certain CPU and memory resources for the bridge device, and the third method also continuously occupies certain network resources;
第四种方法和第五种方法配置工作量很大,而且不能适应网络拓扑的变化,可扩展性差。The fourth and fifth methods have a lot of configuration workload, and cannot adapt to changes in the network topology, and have poor scalability.
例如:通过命令行的方式在网络上每个端口上来进行配置,指导LTM的转发,那么这样的配置量将是巨大的,如果一个MD网络包含10万甚至更多的端口,这样的配置量对管理员来说不现实。For example: to configure each port on the network through the command line to guide the forwarding of LTM, the amount of configuration will be huge. If an MD network contains 100,000 or more ports, the amount of configuration is very large. Unrealistic for administrators.
发明内容Contents of the invention
本发明为了解决现有技术查找转发表失败时报文如何进行处理的问题,提供了一种OAM报文的转发控制方法及系统。所述技术方案如下:In order to solve the problem of how to process the message when searching the forwarding table fails in the prior art, the present invention provides a forwarding control method and system of the OAM message. Described technical scheme is as follows:
本发明提供了一种OAM报文的转发控制方法,所述方法包括以下步骤:The present invention provides a kind of forwarding control method of OAM message, and described method comprises the following steps:
步骤A:在OAM报文上增加一个标识信息,然后在维护域内进行发送;Step A: Add an identification information to the OAM message, and then send it in the maintenance domain;
步骤B:维护联盟中间节点接收到所述OAM报文后,在转发表中如果没有查到MAC地址,则根据所述标识信息将所述OAM报文在虚拟局域网内广播或丢弃。Step B: After receiving the OAM message, if no MAC address is found in the forwarding table, the maintenance alliance intermediate node broadcasts or discards the OAM message in the virtual local area network according to the identification information.
所述步骤A具体包括:Described step A specifically comprises:
步骤A1:对OAM报文的Flags域的低7比特位中的任一位进行扩展,如果所述OAM报文重要,将扩展的位设置重要标志;否则不设置;Step A1: Extend any one of the lower 7 bits of the Flags field of the OAM message, if the OAM message is important, set the extended bit to an important flag; otherwise, do not set;
步骤A2:维护联盟端点将扩展后的报文以组播的方式在维护域内进行发送。Step A2: The maintenance association endpoint sends the expanded message in the maintenance domain in a multicast manner.
所述步骤B具体包括:Described step B specifically comprises:
维护联盟中间节点收到所述OAM报文后,查MAC转发表,如果查询MAC地址失败,若所述报文设置了重要标志,将所述OAM报文在虚拟局域网内广播,否则丢弃所述OAM报文。After the maintenance alliance intermediate node receives the OAM message, check the MAC forwarding table, if the query MAC address fails, if the message is set with an important flag, the OAM message is broadcast in the virtual local area network, otherwise discard the OAM packets.
所述步骤B具体包括:Described step B specifically comprises:
维护联盟中间节点收到所述OAM报文后,查MAC转发表,如果查询MAC地址失败,查连续性检测报文数据库进行报文转发,如果查询失败,若所述报文设置了重要标志,将所述OAM报文在虚拟局域网内广播,否则丢弃所述OAM报文。After the maintenance alliance intermediate node receives the OAM message, check the MAC forwarding table, if the query MAC address fails, check the continuity detection message database for message forwarding, if the query fails, if the message sets an important flag, Broadcast the OAM message in the virtual local area network, or discard the OAM message.
所述步骤A具体包括:Described step A specifically comprises:
在OAM报文增加一个类型长度值,在所述类型长度值的类型域中携带备用MAC地址,然后在维护域内进行发送。Add a type length value to the OAM message, carry the standby MAC address in the type field of the type length value, and then send it in the maintenance field.
所述步骤B具体包括:Described step B specifically comprises:
步骤B1:维护联盟中间节点收到所述OAM报文后,查MAC转发表,如果查询MAC地址失败,判断类型长度值中携带的备用MAC地址是单播地址、组播地址或者广播地址;Step B1: After the maintenance alliance intermediate node receives the OAM message, check the MAC forwarding table, if the query MAC address fails, determine whether the standby MAC address carried in the type length value is a unicast address, a multicast address or a broadcast address;
步骤B2:如果备用MAC地址是单播地址,使用该备用MAC地址在MAC转发表中再查询一次,如果查询失败则丢弃该报文,如果能查询成功,则进行转发;Step B2: if the standby MAC address is a unicast address, use the standby MAC address to inquire again in the MAC forwarding table, discard the message if the query fails, and forward if the query succeeds;
步骤B3:如果备用MAC地址是组播地址,将通过组播方式发送报文;Step B3: If the standby MAC address is a multicast address, the message will be sent in multicast mode;
步骤B4:如果备用MAC地址是广播地址,将通过广播方式发送报文。Step B4: If the standby MAC address is a broadcast address, the message will be sent by broadcast.
本发明还提供了一种OAM报文的转发控制系统,所述系统包括以下模块:The present invention also provides a forwarding control system of an OAM message, and the system includes the following modules:
标识信息增加模块,用于在OAM报文上增加一个标识信息,然后在维护域内进行发送;An identification information adding module, configured to add an identification information to the OAM message, and then send it in the maintenance domain;
转发模块,用于维护联盟中间节点接收到所述OAM报文后,在转发表中如果没有查到MAC地址,则根据所述标识信息将所述OAM报文在虚拟局域网内广播或丢弃。The forwarding module is used to broadcast or discard the OAM message in the virtual local area network according to the identification information if no MAC address is found in the forwarding table after the intermediate node of the maintenance alliance receives the OAM message.
所述标识信息增加模块具体包括:The identification information adding module specifically includes:
扩展与发送单元,用于对OAM报文的Flags域的低7比特位中的任一位进行扩展,如果所述OAM报文重要,将所述扩展的位设置重要标志,否则不设置,维护联盟端点将扩展后的报文以组播的方式在维护域内进行发送。The extension and sending unit is used to extend any one of the lower 7 bits of the Flags field of the OAM message. If the OAM message is important, the extended bit is set to an important flag, otherwise it is not set, and the maintenance The confederation endpoint sends the extended message in the maintenance domain in the form of multicast.
所述转发模块具体包括:The forwarding module specifically includes:
第一报文转发单元,用于维护联盟中间节点收到所述OAM报文后,查MAC转发表,如果查询MAC地址失败,若所述报文设置了重要标志,将所述OAM报文在虚拟局域网内广播,否则丢弃所述OAM报文;The first message forwarding unit is used to check the MAC forwarding table after the intermediate node of the maintenance alliance receives the OAM message. If the query MAC address fails, if the message sets an important flag, the OAM message is sent to the Broadcast in the virtual local area network, otherwise discard the OAM message;
所述第一报文转发单元还用于维护联盟中间节点收到所述OAM报文后,查MAC转发表,如果查询MAC地址失败,查连续性检测报文数据库进行报文转发,如果查询失败,若所述报文设置了重要标志,将所述OAM报文在虚拟局域网内广播,否则丢弃所述OAM报文。The first message forwarding unit is also used to check the MAC forwarding table after the intermediate node of the maintenance alliance receives the OAM message. If the query of the MAC address fails, check the continuity detection message database for message forwarding. If the query fails , if the important flag is set in the message, broadcast the OAM message in the virtual local area network, otherwise discard the OAM message.
所述标识信息增加模块具体包括:The identification information adding module specifically includes:
备用地址设置单元,用于在OAM报文增加一个类型长度值,在所述类型长度值的类型域中携带备用MAC地址,然后在维护域内进行发送。The standby address setting unit is used to add a type length value to the OAM message, carry the standby MAC address in the type field of the type length value, and then send it in the maintenance field.
所述转发模块具体包括:The forwarding module specifically includes:
第二报文转发单元,用于维护联盟中间节点收到所述OAM报文后,查MAC转发表,如果没有查到与报文中的MAC地址相匹配的表项时,按类型长度值中携带的备用MAC地址进行转发。The second message forwarding unit is used to check the MAC forwarding table after the intermediate node of the maintenance alliance receives the OAM message. If no entry matching the MAC address in the message is found, the The carried alternate MAC address is forwarded.
应用本发明的技术方案带来的有益效果是:The beneficial effects brought by applying the technical solution of the present invention are:
不需要桥接设备增加多余的功能,即可以降低设备的要求,同时也可以降低开发成本。There is no need to add redundant functions to the bridge device, which can reduce the requirements of the device and also reduce the development cost.
可以大量节约管理员的手工配置操作,只需要在MEP发起LTM报文的时候,携带相应的转发控制信息即可。管理员可以先使用B/D=0(丢弃)的LTM报文来定位,如果不能完成定位,可以选择B/D=1(广播)的LTM报文继续定位。而这些功能基本上都是网路处理器NP直接来处理,速度快,效率高。It can greatly save the administrator's manual configuration operations. It only needs to carry the corresponding forwarding control information when the MEP sends the LTM message. The administrator can first use the LTM message with B/D=0 (discard) to locate, if the location cannot be completed, the LTM message with B/D=1 (broadcast) can be selected to continue the location. These functions are basically directly processed by the network processor NP, which is fast and efficient.
附图说明Description of drawings
图1是现有技术中维护服务实例示意图;FIG. 1 is a schematic diagram of a maintenance service example in the prior art;
图2是现有技术中管理者角度的维护服务实例示意图;Fig. 2 is a schematic diagram of a maintenance service example from the manager's perspective in the prior art;
图3是现有技术中客户角度的维护服务实例示意图;Fig. 3 is a schematic diagram of a maintenance service example from a customer perspective in the prior art;
图4是现有技术中链路跟踪报文的发送/回应示意图;FIG. 4 is a schematic diagram of sending/responsing a link tracking message in the prior art;
图5是本发明实施例1提供的OAM报文的转发控制方法流程图;FIG. 5 is a flow chart of the OAM message forwarding control method provided by Embodiment 1 of the present invention;
图6是本发明实施例2提供的OAM报文的转发控制方法流程图;FIG. 6 is a flow chart of a method for controlling the forwarding of an OAM message provided in
图7是本发明实施例3提供的OAM报文的转发控制系统示意图;FIG. 7 is a schematic diagram of a forwarding control system for an OAM message provided in
图8是本发明实施例4提供的OAM报文的转发控制系统示意图。FIG. 8 is a schematic diagram of an OAM packet forwarding control system provided by
具体实施方式Detailed ways
下面结合附图和具体实施例对本发明作进一步说明,但不作为对本发明的限定。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but not as a limitation of the present invention.
本发明提供了一种OAM报文的转发控制方法及系统,它主要通过对OAM报文中的Flags域进行扩展或者使OAM报文携带一种新的类型长度值TLV达到控制OAM报文转发的目的。The present invention provides a forwarding control method and system of an OAM message, which mainly controls the forwarding of the OAM message by extending the Flags field in the OAM message or making the OAM message carry a new type length value TLV Purpose.
本发明中的OAM报文可以是链路跟踪报文LTM、链路跟踪应答报文LTR和连续性检测报文CCM等。The OAM message in the present invention may be a link tracking message LTM, a link tracking response message LTR, a continuity detection message CCM, and the like.
实施例1Example 1
参见图5,一种OAM报文的转发控制方法,本实施例的OAM报文以链路跟踪报文LTM为例进行说明,具体包括以下步骤:Referring to Fig. 5, a kind of forwarding control method of OAM message, the OAM message of the present embodiment is described with link tracking message LTM as example, specifically comprises the following steps:
步骤101:对链路跟踪报文LTM的Flags域中的第6比特位进行扩展,对扩展后的位进行命名,本实施例命名为B/D(Broadcast/Discard,广播或丢弃)位。Step 101: Extend the sixth bit in the Flags field of the link tracking message LTM, and name the extended bit, which is named B/D (Broadcast/Discard, broadcast or discard) bit in this embodiment.
在LTM报文中,Flags域的现有使用规则为:In the LTM message, the existing usage rules of the Flags field are as follows:
HWOnly:(最高比特位)如果该位被设置,将使用MAC地址表来指导LTM报文发送到下一跳地址,而不使用MEP CCM数据库和MIP CCM数据库。HWOnly: (highest bit) If this bit is set, the MAC address table will be used to guide the LTM message to be sent to the next hop address instead of the MEP CCM database and MIP CCM database.
因为Flags域中的低7比特位在现有IEEE 802.1ag链路跟踪报文LTM的格式中没有使用,所以可以对其中任一比特位进行扩展,本实施例仅以第6比特位为例进行说明。Because the lower 7 bits in the Flags field are not used in the format of the existing IEEE 802.1ag link tracking message LTM, any bit can be extended. This embodiment only takes the 6th bit as an example. illustrate.
步骤102:对新扩展的位进行设置,如果所述OAM报文重要,则B/D=1,否则B/D=0。Step 102: Set the newly extended bits, if the OAM message is important, then B/D=1, otherwise B/D=0.
如果B/D=1,LTM报文在虚拟局域网VLAN内广播LTM,如果B/D=0,则丢弃该LTM。If B/D=1, the LTM message broadcasts the LTM in the virtual local area network VLAN, and if B/D=0, the LTM is discarded.
步骤103:MEP将扩展后的LTM报文以组播方式在维护域MD内进行发送,该LTM报文中包含了目的MAC地址。Step 103: The MEP sends the extended LTM message in the maintenance domain MD in multicast mode, and the LTM message includes the destination MAC address.
步骤104:维护联盟中间节点MIP收到LTM报文后,判断Flags域中的HWonly是否等于1,如果是,执行步骤105;否则,执行步骤106。Step 104: After receiving the LTM message, the maintenance alliance intermediate node MIP judges whether HWonly in the Flags field is equal to 1, and if yes, executes
步骤105:当HWonly=1时,MIP首先查MAC转发表,如果没有查到与LTM中的目的MAC相匹配的表项时,就检查Flags中的B/D位,如果B/D=1,LTM报文在VLAN(VirtualLocal Area Network,虚拟局域网)内广播LTM,如果B/D=0,则丢弃该LTM。Step 105: when HWonly=1, MIP at first checks the MAC forwarding table, if do not find when the entry that matches with the destination MAC in the LTM, just check the B/D position among the Flags, if B/D=1, LTM message broadcasts LTM in VLAN (VirtualLocal Area Network, virtual local area network), if B/D=0, then discard this LTM.
步骤106:当HWonly置为0时,MIP节点先查询MAC表,如果查询失败后再查询MEPCCM数据库或者MIP CCM数据库,如果仍然出现查询失败,这时使用B/D位进行判断,如果B/D=1,LTM报文在VLAN内广播,如果B/D=0,则丢弃该报文。Step 106: When HWonly is set to 0, the MIP node first queries the MAC table, and then queries the MEPCCM database or the MIP CCM database if the query fails. If the query still fails, use the B/D bit to judge at this time, if B/D =1, the LTM message is broadcast in the VLAN, and if B/D=0, the message is discarded.
上述方法通过只扩展报文中Flags域的一个比特位,判断对报文的处理方法非常简单,易于实现。In the above method, only one bit of the Flags field in the message is extended, so that the method for judging the processing of the message is very simple and easy to implement.
实施例2Example 2
本发明还提供了另外一种OAM报文的转发控制方法,本实施例的OAM报文以链路跟踪报文LTM为例进行说明,具体步骤如下:The present invention also provides another OAM message forwarding control method. The OAM message in this embodiment is described by taking the link tracking message LTM as an example, and the specific steps are as follows:
步骤201:对LTM报文进行扩展,即携带一种新的TLV,在该TLV的类型域中携带下一跳MAC地址。下一跳MAC地址是备用的目的地址。Step 201: Extend the LTM message, that is, carry a new TLV, and carry the next-hop MAC address in the type field of the TLV. The next-hop MAC address is an alternate destination address.
参见表2所示,目前已经使用的TLV的类型域格式为:
表2 Table 2
0~7已经使用,8~30用以保留给IEEE802.1,可以对其中任一比特增加一种新的TLV,本实施例对type=8的比特位增加一种新的TLV,命名为:Specified Next Hop Mac AddressTLV,该TLV格式如表3所示:
表3 table 3
其中,0 1 2 3表示的是四个字节的第几个字节,1 5 9表示字段的起始字节数。该TLV一共占9字节。Among them, 0 1 2 3 represents the first byte of the four bytes, and 1 5 9 represents the starting byte number of the field. The TLV occupies a total of 9 bytes.
Length=6,标志MAC地址长度为6个字节,该TLV中携带的MAC地址可以是单播地址、组播地址或广播地址。Length=6, indicating that the length of the MAC address is 6 bytes, and the MAC address carried in the TLV can be a unicast address, a multicast address or a broadcast address.
步骤202:MEP将扩展后的LTM报文以组播方式在维护域MD内进行发送,该LTM报文中包含了目的MAC地址。Step 202: The MEP sends the extended LTM message in the maintenance domain MD in multicast mode, and the LTM message includes the destination MAC address.
步骤203:维护联盟中间节点MIP收到LTM报文后,首先查MAC转发表,如果没有查到与LTM报文中的目的MAC相匹配的表项时,判断TLV中携带的备用MAC地址是单播地址还是组播地址或者广播地址。Step 203: After the maintenance alliance intermediate node MIP receives the LTM message, it first checks the MAC forwarding table, if no table entry matching the destination MAC in the LTM message is found, it is judged that the standby MAC address carried in the TLV is a single broadcast address, multicast address or broadcast address.
步骤204:如果TLV中携带的新的MAC地址是单播地址,使用该TLV中的MAC地址在MAC转发表中再查询一次,如果查询失败则丢弃该报文,如果能查询成功,则进行转发。Step 204: If the new MAC address carried in the TLV is a unicast address, use the MAC address in the TLV to query the MAC forwarding table again, if the query fails, then discard the message, and if the query succeeds, forward it .
步骤205:如果TLV中携带的新的MAC地址是组播地址,将通过组播方式发送报文。Step 205: If the new MAC address carried in the TLV is a multicast address, the message will be sent in multicast mode.
步骤206:如果TLV中携带的新的MAC地址是广播地址,将通过广播方式发送报文。Step 206: If the new MAC address carried in the TLV is a broadcast address, the message will be sent by broadcast.
另外,这个扩展的TLV也可以用在其它类型的ETHOAM(Opreation,Administration andMaintenance of Ethernet,以太网的操作、管理与维护)报文中,指导报文的转发。在TLV增加了该Specified Next Hop Mac Address TLV后,如果网络处理器NP无法识别这个TLV,NP芯片可以将报文上送给CPU来完成处理。应用该方法不需要再扩展Flags域。In addition, this extended TLV can also be used in other types of ETHOAM (Opreation, Administration and Maintenance of Ethernet) messages to guide the forwarding of the messages. After the Specified Next Hop Mac Address TLV is added to the TLV, if the network processor NP cannot recognize the TLV, the NP chip can send the message to the CPU for processing. Applying this method does not need to expand the Flags field.
由于允许LTM以广播方式进行发送,广播报文造成网络带宽的浪费以及非法用户可能使用该特性进行广播攻击,这时有必要增加一种功能来限制这种情况。目前可以采用在MP节点上进行配置,用以抑制LTM广播发送。也可以采用报文的认证方式进行抑制。Since the LTM is allowed to be sent in broadcast mode, the network bandwidth will be wasted due to broadcast packets, and illegal users may use this feature to carry out broadcast attacks. At this time, it is necessary to add a function to limit this situation. Currently, it can be configured on the MP node to suppress the sending of LTM broadcasts. It can also be restrained by means of packet authentication.
通过采用扩展的TLV来携带指定下一条MAC地址的方法,控制起来更加灵活,MAC地址即可以是广播也可以是单播地址或者是组播地址,比简单扩展flags域给用户带来更多的定位手段和策略。By using the extended TLV to carry the method of specifying the next MAC address, the control is more flexible. The MAC address can be a broadcast address or a unicast address or a multicast address, which brings more convenience to the user than simply extending the flags field. Positioning tools and strategies.
上述方法因为使用报文头中固定的比特位进行扩展,可以通过硬件转发芯片(如:网络处理器)直接查询,不需要CPU参与。通过转发芯片直接处理报文,比将报文上送给CPU处理要高效的多。Because the above method uses fixed bits in the message header for expansion, it can be queried directly through a hardware forwarding chip (such as a network processor) without CPU participation. It is much more efficient to directly process the message through the forwarding chip than to send the message to the CPU for processing.
实施例3Example 3
参见图7,本发明提供还提供了一种OAM报文的转发控制系统,包括以下模块:Referring to Fig. 7, the present invention also provides a forwarding control system of an OAM message, including the following modules:
标识信息增加模块,用于在OAM报文上增加一个标识信息,然后在维护域内进行发送;An identification information adding module, configured to add an identification information to the OAM message, and then send it in the maintenance domain;
转发模块,用于维护联盟中间节点接收到OAM报文后,在转发表中如果没有查到MAC地址,则根据标识信息将OAM报文在虚拟局域网内广播或丢弃。The forwarding module is used to broadcast or discard the OAM message in the virtual local area network according to the identification information if the MAC address is not found in the forwarding table after the intermediate node of the maintenance alliance receives the OAM message.
其中,标识信息增加模块具体包括:Among them, the identification information adding module specifically includes:
扩展与发送单元,用于对OAM报文的Flags域的低7比特位中的任一位进行扩展,如果OAM报文重要,将扩展的位设置重要标志,否则不设置,维护联盟端点将扩展后的报文以组播的方式在维护域内进行发送。The extension and sending unit is used to extend any one of the lower 7 bits of the Flags field of the OAM message. If the OAM message is important, set the important flag for the extended bit; otherwise, if it is not set, the maintenance alliance endpoint will expand Subsequent packets are sent in the maintenance domain in multicast mode.
转发模块具体包括:The forwarding module specifically includes:
第一报文转发单元,用于维护联盟中间节点收到OAM报文后,查MAC转发表,如果查询MAC地址失败,若报文设置了重要标志,将OAM报文在虚拟局域网内广播,否则丢弃所述OAM报文;The first message forwarding unit is used to check the MAC forwarding table after the intermediate node of the maintenance alliance receives the OAM message. If the query MAC address fails, if the message sets an important flag, the OAM message is broadcast in the virtual local area network, otherwise Discard the OAM message;
该第一报文转发单元,还有一个功能,用于维护联盟中间节点收到OAM报文后,查MAC转发表,如果查询MAC地址失败,查连续性检测报文数据库进行报文转发,如果查询失败,若报文设置了重要标志,将OAM报文在虚拟局域网内广播,否则丢弃OAM报文。The first message forwarding unit also has a function, which is used to check the MAC forwarding table after the intermediate node of the maintenance alliance receives the OAM message. If the MAC address query fails, check the continuity detection message database for message forwarding, if If the query fails, if the important flag is set in the packet, the OAM packet will be broadcast in the virtual LAN; otherwise, the OAM packet will be discarded.
实施例4Example 4
参见图8,本发明提供还提供了另一种OAM报文的转发控制系统,包括以下模块:Referring to Fig. 8, the present invention also provides another OAM message forwarding control system, including the following modules:
标识信息增加模块,用于在OAM报文上增加一个标识信息,然后在维护域内进行发送;An identification information adding module, configured to add an identification information to the OAM message, and then send it in the maintenance domain;
转发模块,用于维护联盟中间节点接收到OAM报文后,在转发表中如果没有查到MAC地址,则根据标识信息将OAM报文在虚拟局域网内广播或丢弃。The forwarding module is used to broadcast or discard the OAM message in the virtual local area network according to the identification information if the MAC address is not found in the forwarding table after the intermediate node of the maintenance alliance receives the OAM message.
其中,标识信息增加模块具体包括:Among them, the identification information adding module specifically includes:
备用地址设置单元,用于在OAM报文增加一个类型长度值,在类型长度值的类型域中携带备用MAC地址,然后在维护域内进行发送。The standby address setting unit is used to add a type length value to the OAM message, carry the standby MAC address in the type field of the type length value, and then send it in the maintenance field.
转发模块具体包括:The forwarding module specifically includes:
第二报文转发单元,用于维护联盟中间节点收到OAM报文后,查MAC转发表,如果没有查到与报文中的MAC地址相匹配的表项时,按类型长度值中携带的备用MAC地址进行转发。The second message forwarding unit is used to check the MAC forwarding table after the intermediate node of the maintenance alliance receives the OAM message. If no table entry matching the MAC address in the message is found, the type and length value carried in the Alternate MAC address for forwarding.
以上所述的实施例,只是本发明较优选的具体实施方式的一种,本领域的技术人员在本发明技术方案范围内进行的通常变化和替换都应包含在本发明的保护范围内。The embodiments described above are only one of the more preferred specific implementations of the present invention, and the usual changes and replacements performed by those skilled in the art within the scope of the technical solutions of the present invention should be included in the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2006101122105ACN100450101C (en) | 2006-08-30 | 2006-08-30 | A kind of forwarding control method and system of OAM message |
| PCT/CN2007/001467WO2008028384A1 (en) | 2006-08-30 | 2007-04-29 | A method and system for implementing the transmission control for the oam messages |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2006101122105ACN100450101C (en) | 2006-08-30 | 2006-08-30 | A kind of forwarding control method and system of OAM message |
| Publication Number | Publication Date |
|---|---|
| CN1913496Atrue CN1913496A (en) | 2007-02-14 |
| CN100450101C CN100450101C (en) | 2009-01-07 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2006101122105AExpired - Fee RelatedCN100450101C (en) | 2006-08-30 | 2006-08-30 | A kind of forwarding control method and system of OAM message |
| Country | Link |
|---|---|
| CN (1) | CN100450101C (en) |
| WO (1) | WO2008028384A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101119245B (en)* | 2007-08-31 | 2010-08-18 | 杭州华三通信技术有限公司 | Method and device for performing link monitoring using OAM protocol |
| CN101222370B (en)* | 2008-02-01 | 2010-09-22 | 华为技术有限公司 | Method and device for fault location using fault location message |
| CN101904134A (en)* | 2007-10-12 | 2010-12-01 | 北方电讯网络有限公司 | Continuity check management in a link state controlled Ethernet network |
| WO2011057544A1 (en)* | 2009-11-11 | 2011-05-19 | 中兴通讯股份有限公司 | Method and system for implementing operation administration and maintenance (oam) from point to multi-points based on 802.3ah protocol |
| CN101729416B (en)* | 2009-11-30 | 2012-11-28 | 中兴通讯股份有限公司 | Method for processing address searching failure message and integrated circuit board |
| CN103475588A (en)* | 2013-09-10 | 2013-12-25 | 神州数码网络(北京)有限公司 | Sending process method and device and receiving process method and device of OAM messages |
| CN105323136A (en)* | 2014-07-31 | 2016-02-10 | 中兴通讯股份有限公司 | Information processing method and device |
| CN106209640A (en)* | 2016-06-24 | 2016-12-07 | 醴陵恒茂电子科技有限公司 | Down MEP message processing method and system |
| CN106385344A (en)* | 2016-09-05 | 2017-02-08 | 杭州华三通信技术有限公司 | Message monitoring method and device |
| CN106982153A (en)* | 2017-05-18 | 2017-07-25 | 烽火通信科技股份有限公司 | A kind of multi-segment pseudo-wires network connectivty detection method |
| CN111934944A (en)* | 2014-12-30 | 2020-11-13 | 华为技术有限公司 | Bit forwarding entry router, bit forwarding router and operation management maintenance detection method |
| CN112087338A (en)* | 2020-09-14 | 2020-12-15 | 武汉虹信科技发展有限责任公司 | Control message transmission method and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113709049B (en)* | 2020-05-20 | 2025-08-05 | 中兴通讯股份有限公司 | Maintenance entity group intermediate point creation method, node and readable storage medium |
| CN114143380B (en)* | 2022-01-04 | 2023-06-09 | 烽火通信科技股份有限公司 | Method and system for solving inconsistent OAM and service of SRv tail node power down scene |
| CN118784374B (en)* | 2024-09-10 | 2025-02-21 | 格创通信(浙江)有限公司 | CCM message counting method and device, electronic equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1324150A (en)* | 2000-05-12 | 2001-11-28 | 张捷 | Method and apparatus for classified reception processing of digital information radio broadcast transmission |
| KR100640464B1 (en)* | 2002-10-31 | 2006-10-30 | 삼성전자주식회사 | OAM packet data transmission method and Ethernet passive optical subscriber network including control multiplexer therefor |
| KR100605846B1 (en)* | 2003-01-02 | 2006-07-31 | 삼성전자주식회사 | How to control the loopback procedure in Ethernet passive fluorescence subscriber network |
| US7570648B2 (en)* | 2003-02-03 | 2009-08-04 | At&T Intellectual Property I, L.P. | Enhanced H-VPLS service architecture using control word |
| US7643424B2 (en)* | 2003-03-22 | 2010-01-05 | At&T Intellectual Property L, L.P. | Ethernet architecture with data packet encapsulation |
| US20050099955A1 (en)* | 2003-11-10 | 2005-05-12 | Nortel Networks Limited | Ethernet OAM fault isolation |
| US20060153220A1 (en)* | 2004-12-22 | 2006-07-13 | Alcatel | System and method for reducing OAM frame leakage in an ethernet OAM domain |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101119245B (en)* | 2007-08-31 | 2010-08-18 | 杭州华三通信技术有限公司 | Method and device for performing link monitoring using OAM protocol |
| CN101904134A (en)* | 2007-10-12 | 2010-12-01 | 北方电讯网络有限公司 | Continuity check management in a link state controlled Ethernet network |
| US8918538B2 (en) | 2007-10-12 | 2014-12-23 | Rockstar Consortium Us Lp | Automatic MEP provisioning in a link state controlled ethernet network |
| US9059918B2 (en) | 2007-10-12 | 2015-06-16 | Rpx Clearinghouse Llc | Continuity check management in a link state controlled ethernet network |
| CN101222370B (en)* | 2008-02-01 | 2010-09-22 | 华为技术有限公司 | Method and device for fault location using fault location message |
| WO2011057544A1 (en)* | 2009-11-11 | 2011-05-19 | 中兴通讯股份有限公司 | Method and system for implementing operation administration and maintenance (oam) from point to multi-points based on 802.3ah protocol |
| CN101729416B (en)* | 2009-11-30 | 2012-11-28 | 中兴通讯股份有限公司 | Method for processing address searching failure message and integrated circuit board |
| CN103475588A (en)* | 2013-09-10 | 2013-12-25 | 神州数码网络(北京)有限公司 | Sending process method and device and receiving process method and device of OAM messages |
| CN105323136A (en)* | 2014-07-31 | 2016-02-10 | 中兴通讯股份有限公司 | Information processing method and device |
| CN105323136B (en)* | 2014-07-31 | 2020-01-10 | 中兴通讯股份有限公司 | Information processing method and device |
| CN111934944A (en)* | 2014-12-30 | 2020-11-13 | 华为技术有限公司 | Bit forwarding entry router, bit forwarding router and operation management maintenance detection method |
| US11894998B2 (en) | 2014-12-30 | 2024-02-06 | Huawei Technologies Co., Ltd. | Bit-forwarding ingress router, bit-forwarding router, and operation, administration and maintenance test method |
| CN106209640A (en)* | 2016-06-24 | 2016-12-07 | 醴陵恒茂电子科技有限公司 | Down MEP message processing method and system |
| CN106209640B (en)* | 2016-06-24 | 2019-03-05 | 湖南恒茂高科股份有限公司 | Down MEP message processing method and system |
| CN106385344A (en)* | 2016-09-05 | 2017-02-08 | 杭州华三通信技术有限公司 | Message monitoring method and device |
| CN106385344B (en)* | 2016-09-05 | 2019-09-06 | 新华三技术有限公司 | A kind of monitoring messages method and apparatus |
| CN106982153A (en)* | 2017-05-18 | 2017-07-25 | 烽火通信科技股份有限公司 | A kind of multi-segment pseudo-wires network connectivty detection method |
| CN112087338A (en)* | 2020-09-14 | 2020-12-15 | 武汉虹信科技发展有限责任公司 | Control message transmission method and system |
| Publication number | Publication date |
|---|---|
| CN100450101C (en) | 2009-01-07 |
| WO2008028384A1 (en) | 2008-03-13 |
| Publication | Publication Date | Title |
|---|---|---|
| CN1913496A (en) | Conversion control method and system of OAM message | |
| US11611509B2 (en) | Communication method, communications device, and communications system | |
| CN101047601A (en) | Implementing method and system of double-attach network based on VPLS | |
| CN1581818A (en) | Method for supporting multi-port virtual LAN by multi-protocol label swtich | |
| WO2019184752A1 (en) | Network device management method, apparatus and system | |
| CN101051995A (en) | Protection switching method based on no connection network | |
| CN1791054A (en) | Virtual special network multicast method by virtual router mode | |
| CN1722726A (en) | Layer-2 VPN equipment supporting pseudo line tag reflection and networking method | |
| WO2008037203A1 (en) | Method and node device for realizing the network topology discovery | |
| CN1801783A (en) | Multi-domain multicast integration data distributing structure and method based on IP/MPLS/BGP | |
| JP7053901B2 (en) | Loop avoidance communication method, loop avoidance communication device and loop avoidance communication system | |
| CN1968156A (en) | Ethernet device link failure detection method and its system | |
| CN1909494A (en) | Method and system for realizing dual attachment or multiple attachment of user network boundary device | |
| CN101060485A (en) | Topology changed messages processing method and processing device | |
| CN101459536A (en) | Port configuration method and switching device | |
| CN1929444A (en) | Operator's boundary notes, virtual special LAN service communication method and system | |
| CN1558615A (en) | A physical network topology discovery system and method thereof | |
| US20120134365A1 (en) | Method and network device for associated channel capability negotiation | |
| CN101075973A (en) | Method, system, source end and host end for exchanging path by label indesx | |
| CN1889470A (en) | Chain-circuit time delay detecting method | |
| CN1756182A (en) | Protection switching method in multi-protocol label switching system | |
| CN1812300A (en) | Loop network connection control method, route exchanging equipment and loop network system | |
| CN1905482A (en) | Method and apparatus for communicating network trouble dtecting result | |
| US11522792B2 (en) | Method for discovering forwarding path and related device thereof | |
| CN101043464A (en) | Method and system for solving label interference |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20090107 Termination date:20120830 |