[go: up one dir, main page]

CN101299693B - A method and device for detecting forwarding plane faults - Google Patents

A method and device for detecting forwarding plane faults Download PDF

Info

Publication number
CN101299693B
CN101299693B CN2008101329491A CN200810132949A CN101299693B CN 101299693 B CN101299693 B CN 101299693B CN 2008101329491 A CN2008101329491 A CN 2008101329491A CN 200810132949 A CN200810132949 A CN 200810132949A CN 101299693 B CN101299693 B CN 101299693B
Authority
CN
China
Prior art keywords
forwarding plane
detection
module
detection message
detecting
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN2008101329491A
Other languages
Chinese (zh)
Other versions
CN101299693A (en
Inventor
余久方
金剑东
李新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2008101329491A priority Critical patent/CN101299693B/en
Publication of CN101299693A publication Critical patent/CN101299693A/en
Application granted granted Critical
Publication of CN101299693B publication Critical patent/CN101299693B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method for detecting fault of forwarding plane, including: transmitting testing packets containing specific identification to a forwarding plane; receiving the testing packet treated by the forwarding plane; and comparing whether the transmitted testing packet is conform to the testing packet treated by the forwarding plane, if not, reporting fault. The embodiment of the invention discloses a device for detecting fault of forwarding plane, including: a transmitting module, for transmitting testing packets to the forwarding plane; a receiving module, for receiving the testing packet treated by the forwarding plane; and a comparison module, for comparing whether the transmitted testing packet is conform to the testing packet treated by the forwarding plane, if not, reporting fault. The method and device for detecting fault of forwarding plane disclosed by the embodiment of the invention can reliably detect fault of forwarding plane.

Description

一种检测转发平面故障的方法和装置 A method and device for detecting forwarding plane faults

技术领域technical field

本发明涉及通信技术领域,特别是涉及一种检测转发平面故障的方法和装置。 The invention relates to the technical field of communications, in particular to a method and device for detecting forwarding plane faults. the

背景技术Background technique

NP(Network Processor,网络处理器)是一种通过优化网络处理,完成CPU(Central Processing Unit,中央处理器)不擅长的网络处理任务的处理器。NP采用优化体系结构、专用指令集和硬件单元,满足高速数据分组线速处理的要求,广泛应用于路由器、以太网交换机、防火墙、网卡等通信设备和网络系统中。 NP (Network Processor, network processor) is a processor that optimizes network processing to complete network processing tasks that CPU (Central Processing Unit, central processing unit) is not good at. NP adopts optimized architecture, special instruction set and hardware unit to meet the requirements of high-speed data packet line-speed processing, and is widely used in routers, Ethernet switches, firewalls, network cards and other communication equipment and network systems. the

NP可构建分布式或集中式系统,应用于各种通信设备中。如图1所示,为现有技术中由NP构建的分布式系统。分布式系统多采用控制平面与转发平面分离的构建方式,控制平面主要负责协议、控制报文的处理,转发表项的配置,设备属性的管理等;转发平面主要负责数据报文的处理以及转发。 NP can build a distributed or centralized system, which can be applied to various communication devices. As shown in FIG. 1 , it is a distributed system constructed by NP in the prior art. Distributed systems mostly use the construction method of separating the control plane and the forwarding plane. The control plane is mainly responsible for the processing of protocols and control messages, the configuration of forwarding entries, and the management of device attributes. The forwarding plane is mainly responsible for the processing and forwarding of data messages. . the

在分布式系统中,如果转发平面出现故障无法正常工作,而控制平面又不能及时感知并上报网管,会造成无法估计的经济损失。因此,及时、可靠地检测转发平面故障,对于网络安全应用至关重要。 In a distributed system, if the forwarding plane fails to work properly and the control plane fails to sense and report to the network management in time, it will cause inestimable economic losses. Therefore, timely and reliable detection of forwarding plane failures is crucial for network security applications. the

现有技术中,对转发平面故障的检测方法是,在转发平面中划分出一个检测模块,由检测模块完成对转发平面的检测,并把检测结果主动上报给控制平面,或者由控制平面主动来取。检测模块针对转发平面中的特定部件,采用特定的算法进行检测,检测到故障后,由转发平面主动通知控制平面。 In the prior art, the fault detection method for the forwarding plane is to divide a detection module in the forwarding plane, and the detection module completes the detection of the forwarding plane, and actively reports the detection result to the control plane, or the control plane actively Pick. The detection module uses a specific algorithm to detect specific components in the forwarding plane. After detecting a fault, the forwarding plane actively notifies the control plane. the

现有技术中,对转发平面故障的检测方法依赖于转发平面中检测模块的正常工作,如果检测模块出现异常,则无法检测出故障,可靠性差;另外,对于不同的故障有不同的检测方法,检测成本高,可扩展性差。 In the prior art, the detection method for forwarding plane faults depends on the normal operation of the detection module in the forwarding plane. If the detection module is abnormal, the fault cannot be detected and the reliability is poor; in addition, there are different detection methods for different faults, The detection cost is high and the scalability is poor. the

发明内容Contents of the invention

本发明实施例提供了一种检测转发平面故障的方法和装置,实现了对转发平面故障的全面检测。 Embodiments of the present invention provide a method and device for detecting forwarding plane faults, which realize comprehensive detection of forwarding plane faults. the

为达到上述目的,本发明实施例一方面提出一种检测转发平面故障的方法,包括以下步骤: In order to achieve the above object, an embodiment of the present invention proposes a method for detecting a forwarding plane failure on the one hand, including the following steps:

发送包含特殊标识的检测报文到转发平面,所述检测报文的发送方位于所述转发平面之外; Send a detection message containing a special identifier to the forwarding plane, and the sender of the detection message is located outside the forwarding plane;

对所述检测报文进行计数; Counting the detection packets;

接收所述转发平面处理过的所述检测报文,所述检测报文的接收方位于所述转发平面之外; Receiving the detection message processed by the forwarding plane, the receiver of the detection message is located outside the forwarding plane;

比较发送的所述检测报文和所述转发平面处理过的所述检测报文是否符合,如果发送的所述检测报文和所述转发平面处理过的所述检测报文不符合,则报告故障; Compare whether the sent detection message matches the detection message processed by the forwarding plane, and if the sent detection message does not match the detection message processed by the forwarding plane, report Fault;

计数模块,用于在所述发送模块向所述转发平面发送所述检测报文后,对所述发送模块发送的所述检测报文进行计数; A counting module, configured to count the detection packets sent by the sending module after the sending module sends the detection packets to the forwarding plane;

判断模块,用于判断所述计数模块处理的所述报文的计数数值是否大于设定的计数阈值。 A judging module, configured to judge whether the count value of the packets processed by the counting module is greater than a set count threshold. the

本发明实施例还提出一种检测转发平面故障的装置,位于转发平面之外,包括: The embodiment of the present invention also proposes a device for detecting faults in the forwarding plane, located outside the forwarding plane, including:

发送模块,用于发送包含特殊标识的检测报文到所述转发平面; A sending module, configured to send a detection message containing a special identifier to the forwarding plane;

接收模块,用于接收所述转发平面处理过的所述检测报文; A receiving module, configured to receive the detection message processed by the forwarding plane;

比较模块,用于比较所述发送模块发送的所述检测报文和所述接收模块接收的所述检测报文是否符合; A comparison module, configured to compare whether the detection message sent by the sending module matches the detection message received by the receiving module;

报错模块,用于在所述比较模块的比较结果为不符合后,用于报告故障; An error reporting module is used to report a fault after the comparison result of the comparison module is non-conforming;

计数模块,用于在所述发送模块向所述转发平面发送所述检测报文后,对所述发送模块发送的所述检测报文进行计数; A counting module, configured to count the detection packets sent by the sending module after the sending module sends the detection packets to the forwarding plane;

判断模块,用于判断所述计数模块处理的所述报文的计数数值是否大于设定的计数阈值。 A judging module, configured to judge whether the count value of the packets processed by the counting module is greater than a set count threshold. the

本发明实施例的技术方案具有以下优点,因为采用了独立于转发平面的检测方法和装置,从而,达到了不依赖于转发平面的正常工作,可靠地检测转发平面故障的效果。 The technical solution of the embodiment of the present invention has the following advantages, because the detection method and device independent of the forwarding plane are adopted, thereby achieving the effect of reliably detecting the failure of the forwarding plane independently of the normal operation of the forwarding plane. the

附图说明Description of drawings

图1为现有技术中的由NP构建的典型的分布式网络系统结构图; Fig. 1 is a typical distributed network system structural diagram constructed by NP in the prior art;

图2为本发明实施例中的检测转发平面故障的装置结构图; Fig. 2 is a device structural diagram for detecting a forwarding plane failure in an embodiment of the present invention;

图3为本发明实施例中的检测转发平面故障的装置的一种具体结构图; Fig. 3 is a kind of specific structural diagram of the device of detecting forwarding plane failure in the embodiment of the present invention;

图4为本发明实施例中的检测转发平面故障的方法流程图; Fig. 4 is the flow chart of the method for detecting forwarding plane failure in the embodiment of the present invention;

图5为本发明实施例中的检测转发平面故障的一种具体实现方式流程图。 FIG. 5 is a flow chart of a specific implementation manner of detecting a forwarding plane failure in an embodiment of the present invention. the

具体实施方式Detailed ways

下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述:如图2所示,为本发明实施例中的检测转发平面故障的装置结构图,该检测转发平面故障的装置位于转发平面之外,包括: The specific implementation of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments: As shown in Figure 2, it is a structural diagram of a device for detecting forwarding plane failures in an embodiment of the present invention. Out of plane, including:

发送模块210,用于发送包含特殊标识的检测报文到转发平面。 The sending module 210 is configured to send the detection message containing the special identifier to the forwarding plane. the

发送模块210根据不同的端口类型定时发送检测报文到转发平面,转发平面中有检测报文的目的地址对应的路由转发表项。报文的源、目的地址等信息也可以通过用户来设置。为了在转发平面把检测报文和普通的数据包区分开来,在发送给转发平面的接口中增加特殊标识,该特殊标识用于使转发平面识别检测报文。 The sending module 210 regularly sends the detection message to the forwarding plane according to different port types, and the forwarding plane has a routing and forwarding entry corresponding to the destination address of the detection message. Information such as the source and destination address of the message can also be set by the user. In order to distinguish detection packets from common data packets on the forwarding plane, a special identifier is added to the interface sent to the forwarding plane, and the special identifier is used to make the forwarding plane recognize the detection packets. the

接收模块220,用于接收转发平面处理过的检测报文。 The receiving module 220 is configured to receive the detection message processed by the forwarding plane. the

比较模块230,用于比较发送模块210发送的检测报文和接收模块220接收的转发平面处理过的检测报文是否符合。 The comparison module 230 is configured to compare whether the detection message sent by the sending module 210 matches the detection message processed by the forwarding plane received by the receiving module 220 . the

转发平面正常工作的情况下,通过特殊标识识别检测报文,并且不会对接收到的检测报文做任何数据上的修改,因此,发送的检测报文和转发平面处理过的检测报文的信息会完全相同,如果比较后发现两报文信息不相同,则转发平面中的某一处理环节出现了故障。 When the forwarding plane is working normally, the detection packets are identified by special identifiers, and no data modification is made to the received detection packets. Therefore, the difference between the detection packets sent and the detection packets processed by the forwarding plane The information will be exactly the same. If the information of the two packets is found to be different after comparison, it means that a processing link in the forwarding plane is faulty. the

报错模块240,用于在比较模块230的比较结果为不符合后,用于报告故障。 The error reporting module 240 is used to report a fault after the comparison result of the comparison module 230 is inconsistent. the

在比较模块230的比较结果为不符合后,报错模块240向控制平面报告故障,也可以将故障记录在日志文件中,或者直接打印故障记录。 After the comparison result of the comparison module 230 is inconsistent, the error reporting module 240 reports the failure to the control plane, or records the failure in a log file, or directly prints the failure record. the

如图3所示,为本发明实施例中的检测转发平面故障的装置的一种具体结构图,该检测转发平面故障的装置位于转发平面之外,包括: As shown in Figure 3, it is a specific structural diagram of a device for detecting a forwarding plane failure in an embodiment of the present invention, the device for detecting a forwarding plane failure is located outside the forwarding plane, including:

设置模块310,用于设置检测报文的源和目的地址等信息。 A setting module 310, configured to set information such as source and destination addresses of the detection message. the

添加模块320,在发送给转发平面的接口中添加特殊标识,该特殊标识用 于使转发平面识别检测报文。 Adding module 320, adds special identification in the interface that is sent to forwarding plane, and this special identification is used for making forwarding plane identify detection message. the

发送模块330,用于发送包含特殊标识的检测报文到转发平面;还用于在计数模块340对报文的计数复位后,继续发送检测报文到转发平面。 The sending module 330 is configured to send the detection message containing the special identifier to the forwarding plane; and is also used to continue sending the detection message to the forwarding plane after the counting module 340 resets the count of the message. the

发送模块330根据不同的端口类型定时发送检测报文到转发平面,转发平面中有检测报文的目的地址对应的路由转发表项。报文的源、目的地址等信息也可以通过用户来设置。为了在转发平面把检测报文和普通的数据包区分开来,在发送给转发平面的接口中增加特殊标识,该特殊标识用于使转发平面识别检测报文。 The sending module 330 regularly sends the detection message to the forwarding plane according to different port types, and the forwarding plane has a routing and forwarding entry corresponding to the destination address of the detection message. Information such as the source and destination address of the message can also be set by the user. In order to distinguish detection packets from common data packets on the forwarding plane, a special identifier is added to the interface sent to the forwarding plane, and the special identifier is used to make the forwarding plane recognize the detection packets. the

计数模块340,用于在发送模块330向转发平面发送检测报文后,对发送模块发送的检测报文进行计数;还用于在比较模块370的比较结果为符合后,将报文的计数复位。 The counting module 340 is used to count the detection messages sent by the sending module after the sending module 330 sends the detection messages to the forwarding plane; it is also used to reset the count of the messages after the comparison result of the comparison module 370 is consistent . the

在本实施例中,上述的对检测报文进行计数具体为“加1”,将报文的计数复位具体为“清零”。 In this embodiment, the above-mentioned counting of detection packets is specifically "adding 1", and resetting the count of packets is specifically "clearing". the

需要进一步指出的是,计数和复位的方法不仅限于此,还可以包括其他的可以达到计数效果和复位效果的数值变化,这样的变化同样属于本发明的保护范围。 It should be further pointed out that the method of counting and resetting is not limited to this, and may also include other numerical changes that can achieve the effect of counting and resetting, and such changes also belong to the protection scope of the present invention. the

判断模块350,用于判断计数模块350处理的所述报文的计数数值是否大于设定的计数阈值。 The judging module 350 is configured to judge whether the count value of the packets processed by the counting module 350 is greater than a set count threshold. the

例如,由于检测转发平面故障的装置不断向转发平面发出检测报文,而没有收到计数复位的指示,计数会重复“加1”的操作,一直增加,从而,超过设定的阈值,此时,需要向控制平面报告故障。 For example, because the device for detecting the failure of the forwarding plane continuously sends detection messages to the forwarding plane, but does not receive an instruction to reset the count, the count will repeat the operation of "increment by 1" and keep increasing, thus exceeding the set threshold. , the failure needs to be reported to the control plane. the

对应计数模块340,当对检测报文进行计数具体为“加1”以外的其他操作,如“减1”时,判断模块350的判断条件对应的也会变更为小于或等于预设阈值,这样的变化并不违背本发明的技术思想,也同样属于本发明的保护范围。 Corresponding to the counting module 340, when counting the detection message is specifically an operation other than "adding 1", such as "minus 1", the corresponding judgment condition of the judgment module 350 will also be changed to be less than or equal to the preset threshold, so The change does not violate the technical idea of the present invention, and also belongs to the protection scope of the present invention. the

阈值可以由软件开发人员根据经验设定,也可由用户在使用过程中根据需要进行设置。 The threshold can be set by software developers based on experience, and can also be set by users according to needs during use. the

接收模块360,用于接收转发平面处理过的检测报文。 The receiving module 360 is configured to receive the detection message processed by the forwarding plane. the

比较模块370,用于比较发送模块330发送的检测报文和接收模块360接收的转发平面处理过的检测报文是否符合。 The comparison module 370 is configured to compare whether the detection message sent by the sending module 330 matches the detection message processed by the forwarding plane received by the receiving module 360 . the

转发平面正常工作的情况下,通过特殊标识识别检测报文,并且不会对接收到的检测报文做任何数据上的修改,因此,发送的检测报文和转发平面处理过的检测报文的信息会完全相同,如果比较后发现两报文信息不相同,则转发平面中的某一处理环节出现了故障。 When the forwarding plane is working normally, the detection packets are identified by special identifiers, and no data modification is made to the received detection packets. Therefore, the difference between the detection packets sent and the detection packets processed by the forwarding plane The information will be exactly the same. If the information of the two packets is found to be different after comparison, it means that a processing link in the forwarding plane is faulty. the

报错模块380,用于在比较模块370的比较结果为不符合后,报告故障;还用于在判断模块350判断报文的计数数值大于设定的计数阈值后,报告故障。 The error reporting module 380 is used to report a fault after the comparison result of the comparison module 370 is inconsistent; it is also used to report a fault after the judgment module 350 judges that the count value of the message is greater than the set count threshold. the

在比较模块370的比较结果为不符合或者判断模块350判断报文的计数数值大于设定的计数阈值后,报错模块380向控制平面报告故障,也可以将故障记录在日志文件中,或者直接打印故障记录。 After the comparison result of the comparison module 370 is inconsistent or the judgment module 350 judges that the count value of the message is greater than the set count threshold, the error reporting module 380 reports the fault to the control plane, or the fault can be recorded in the log file, or directly printed broken record. the

上述判断模块350包括: Above-mentioned judging module 350 comprises:

存储子模块351,用于存储设定的计数阈值; Storage sub-module 351, used for storing the set counting threshold;

判断子模块352,用于判断报文的计数数值是否大于存储子模块351存储的设定的计数阈值。 The judging sub-module 352 is configured to judge whether the count value of the message is greater than the set count threshold stored in the storage sub-module 351 . the

如图4所示,为本发明实施例中的检测转发平面故障的方法流程图,包括以下步骤: As shown in Figure 4, it is a flow chart of a method for detecting a forwarding plane failure in an embodiment of the present invention, including the following steps:

步骤401,发送包含特殊标识的检测报文到转发平面。 Step 401, sending a detection packet including a special identifier to the forwarding plane. the

发送模块根据不同的端口类型定时发送检测报文到转发平面,转发平面中有检测报文的目的地址对应的路由转发表项。发送模块位于转发平面之外。报文的源、目的地址等信息也可以通过用户来设置。为了在转发平面把检测报文和普通的数据包区分开来,在发送给转发平面的接口中增加特殊标识,该特殊标识用于使转发平面识别检测报文。 The sending module regularly sends detection packets to the forwarding plane according to different port types, and the forwarding plane has routing and forwarding entries corresponding to the destination addresses of the detection packets. The sending module is located outside the forwarding plane. Information such as the source and destination address of the message can also be set by the user. In order to distinguish detection packets from common data packets on the forwarding plane, a special identifier is added to the interface sent to the forwarding plane, and the special identifier is used to make the forwarding plane recognize the detection packets. the

步骤402,接收转发平面处理过的检测报文。 Step 402, receiving the detection message processed by the forwarding plane. the

转发平面收到控制平面发来的数据后,根据特殊标识判断是否是检测报文,如果不是检测报文,按照正常的流程处理;如果是检测报文,则设置该报文的优先级为特殊优先级,然后进行正常的报文处理,处理结束后,把报 文发送到接收模块,接收模块位于转发平面之外。 After the forwarding plane receives the data sent by the control plane, it judges whether it is a detection packet according to the special identifier. If it is not a detection packet, it is processed according to the normal process; if it is a detection packet, the priority of the packet is set to special Priority, then normal message processing, after processing, send the message to the receiving module, the receiving module is located outside the forwarding plane. the

步骤403,比较发送的检测报文和转发平面处理过的检测报文是否符合。如果发送的检测报文和转发平面处理过的检测报文符合,则执行步骤401;如果发送的检测报文和转发平面处理过的检测报文不符合,执行步骤404。 Step 403, comparing whether the sent detection message matches the detection message processed by the forwarding plane. If the sent detection message matches the detection message processed by the forwarding plane, execute step 401; if the sent detection message does not match the detected message processed by the forwarding plane, execute step 404. the

转发平面正常工作的情况下,不会对接收到的检测报文做任何数据上的修改,处理后的报文与接收的检测报文信息完全相同,如果比较后发现两报文信息不相同,则转发平面中的某一处理环节出现了故障。 When the forwarding plane is working normally, no data modification will be made to the received detection message. The information of the processed message is exactly the same as that of the received detection message. If the information of the two messages is found to be different after comparison, Then a certain processing link in the forwarding plane fails. the

步骤404,报告故障。 Step 404, report failure. the

检测到转发平面的故障以后,向控制平面报告故障,可以将故障记录在日志文件中,或者直接打印故障记录。 After detecting the failure of the forwarding plane, report the failure to the control plane, and record the failure in the log file, or directly print the failure record. the

如图5所示,为本发明实施例中的检测转发平面故障的一种具体实现方式流程图,包括以下步骤: As shown in Figure 5, it is a flow chart of a specific implementation of detecting a forwarding plane failure in an embodiment of the present invention, including the following steps:

步骤501,检测装置设置检测报文的源和目的地址等信息。 In step 501, the detection device sets information such as the source and destination addresses of the detection message. the

该检测装置位于转发平面之外。 The detection device is located outside the forwarding plane. the

步骤502,检测装置在发送给转发平面的接口中添加特殊标识,该特殊标识用于使转发平面识别检测报文。 Step 502, the detection device adds a special identifier to the interface sent to the forwarding plane, and the special identifier is used to make the forwarding plane recognize the detection message. the

步骤503,检测装置判断报文计数是否大于设定的阈值,如果是,则执行步骤504;否则,执行步骤505。 In step 503, the detecting device judges whether the packet count is greater than a set threshold, and if yes, executes step 504; otherwise, executes step 505. the

阈值可以由软件开发人员根据经验设定,也可由用户在使用过程中根据需要进行设置。 The threshold can be set by software developers based on experience, and can also be set by users according to needs during use. the

步骤504,检测装置报告故障。 Step 504, the detection device reports a fault. the

检测到转发平面的故障以后,向控制平面报告故障,可以将故障记录在日志文件中,或者直接打印故障记录。 After detecting the failure of the forwarding plane, report the failure to the control plane, and record the failure in the log file, or directly print the failure record. the

步骤505,检测装置发送检测报文到转发平面,对检测报文进行计数。 Step 505, the detection device sends detection packets to the forwarding plane, and counts the detection packets. the

在本实施例中,上述的对检测报文进行计数具体为“加1”。 In this embodiment, the aforementioned counting of detection packets is specifically "adding 1". the

需要进一步指出的是,计数的方法不仅限于此,还可以包括其他的可以达到计数效果的数值变化,这样的变化同样属于本发明的保护范围。 It should be further pointed out that the counting method is not limited to this, and may also include other numerical changes that can achieve the counting effect, and such changes also belong to the protection scope of the present invention. the

发送模块根据不同的端口类型定时发送检测报文到转发平面,转发平面 中有检测报文的目的地址对应的路由转发表项。报文的源、目的地址等信息也可以通过用户来设置。为了在转发平面把检测报文和普通的数据包区分开来,在发送给转发平面的接口中增加特殊标识,该特殊标识用于使转发平面识别检测报文。 The sending module regularly sends detection packets to the forwarding plane according to different port types, and the forwarding plane has routing forwarding entries corresponding to the destination addresses of the detection packets. Information such as the source and destination address of the message can also be set by the user. In order to distinguish detection packets from common data packets on the forwarding plane, a special identifier is added to the interface sent to the forwarding plane, and the special identifier is used to make the forwarding plane recognize the detection packets. the

步骤506,转发平面接收检测报文。 Step 506, the forwarding plane receives the detection message. the

步骤507,转发平面根据特殊标识判断接收到的数据是否为检测报文,如果是,则执行步骤509;否则,执行步骤508。 In step 507, the forwarding plane judges whether the received data is a detection message according to the special identifier, and if yes, executes step 509; otherwise, executes step 508. the

步骤508,转发平面按照正常的流程处理接收到的报文,结束流程。 In step 508, the forwarding plane processes the received message according to a normal process, and ends the process. the

步骤509,转发平面设置检测报文的优先级为特殊优先级。 Step 509, the forwarding plane sets the priority of the detection message as special priority. the

步骤510,转发平面处理检测报文。 Step 510, the forwarding plane processes the detection message. the

步骤511,转发平面把处理过的检测报文发送给检测装置。 Step 511, the forwarding plane sends the processed detection message to the detection device. the

步骤512,检测装置接收转发平面处理过的检测报文。 Step 512, the detection device receives the detection message processed by the forwarding plane. the

步骤513,检测装置判断接收到的检测报文和发送的检测报文是否符合。 In step 513, the detection device judges whether the received detection message matches the sent detection message. the

如果接收到的检测报文和发送的检测报文符合,执行步骤514; If the received detection message matches the sent detection message, execute step 514;

否则,如果接收到的检测报文和发送的检测报文不符合,执行步骤515。 Otherwise, if the received detection packet does not match the sent detection packet, step 515 is executed. the

步骤514,检测装置将报文的计数复位,并返回步骤503,继续进行故障检测。 In step 514, the detection device resets the count of the packets, and returns to step 503 to continue fault detection. the

在本实施例中,上述的将报文的计数复位具体为“清零”。 In this embodiment, the above-mentioned resetting of the message count is specifically "clearing". the

需要进一步指出的是,复位的方法不仅限于此,还可以包括其他的可以达到复位效果的数值变化,这样的变化同样属于本发明的保护范围。 It should be further pointed out that the reset method is not limited to this, and may also include other numerical changes that can achieve a reset effect, and such changes also belong to the protection scope of the present invention. the

步骤515,检测装置报告故障。 Step 515, the detection device reports a fault. the

检测到转发平面的故障以后,向控制平面报告故障,可以将故障记录在日志文件中,或者直接打印故障记录。 After detecting the failure of the forwarding plane, report the failure to the control plane, and record the failure in the log file, or directly print the failure record. the

本发明实施例的技术方案具有以下优点,因为采用了一种新的检测转发平面故障的方法和装置,达到了对转发平面的全面检测的效果。该方法和装置不依赖于转发平面的正常工作,并根据转发平面的处理流程实现检测,不影响业务的正常运行,具有很高的可靠性和实用性;另外,该方法和装置检测范围全面,可以应用于任何需要进行检测的模块或单元,模块或单元的载 体可以是任何通信设备,包括终端,因而具有可扩展性好的特点。 The technical solutions of the embodiments of the present invention have the following advantages, because a new method and device for detecting forwarding plane faults are adopted, and the effect of comprehensively detecting the forwarding plane is achieved. The method and device do not depend on the normal operation of the forwarding plane, and realize the detection according to the processing flow of the forwarding plane, without affecting the normal operation of the business, and have high reliability and practicability; in addition, the method and device have a comprehensive detection range, It can be applied to any module or unit that needs to be tested, and the carrier of the module or unit can be any communication device, including a terminal, so it has the characteristics of good scalability. the

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台终端设备(可以是手机,个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is a better implementation Way. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to make a A terminal device (which may be a mobile phone, a personal computer, a server, or a network device, etc.) executes the methods described in various embodiments of the present invention. the

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视本发明的保护范围。 The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention. the

Claims (13)

1.一种检测转发平面故障的装置,其特征在于,位于转发平面之外,包括:1. A device for detecting a forwarding plane failure, characterized in that, it is located outside the forwarding plane, comprising: 发送模块,用于发送包含特殊标识的检测报文到所述转发平面;A sending module, configured to send a detection message containing a special identifier to the forwarding plane; 接收模块,用于接收所述转发平面处理过的所述检测报文;a receiving module, configured to receive the detection message processed by the forwarding plane; 比较模块,用于比较所述发送模块发送的所述检测报文和所述接收模块接收的所述检测报文是否符合;A comparison module, configured to compare whether the detection message sent by the sending module matches the detection message received by the receiving module; 报错模块,用于在所述比较模块的比较结果为不符合后,用于报告故障;An error reporting module, used to report a failure after the comparison result of the comparison module is inconsistent; 计数模块,用于在所述发送模块向所述转发平面发送所述检测报文后,对所述发送模块发送的所述检测报文进行计数;A counting module, configured to count the detection packets sent by the sending module after the sending module sends the detection packets to the forwarding plane; 判断模块,用于判断所述计数模块处理的所述报文的计数数值是否大于设定的计数阈值。A judging module, configured to judge whether the count value of the packets processed by the counting module is greater than a set count threshold. 2.如权利要求1所述检测转发平面故障的装置,其特征在于,所述发送模块,还用于在所述比较模块的比较结果为符合后,继续发送检测报文到所述转发平面。2. The device for detecting forwarding plane faults according to claim 1, wherein the sending module is further configured to continue sending detection messages to the forwarding plane after the comparison result of the comparing module is consistent. 3.如权利要求1所述检测转发平面故障的装置,其特征在于,还包括:3. The device for detecting a forwarding plane failure as claimed in claim 1, further comprising: 设置模块,用于设置所述检测报文的源和目的地址信息。A setting module, configured to set the source and destination address information of the detection message. 4.如权利要求1所述检测转发平面故障的装置,其特征在于,还包括:4. The device for detecting a forwarding plane failure as claimed in claim 1, further comprising: 添加模块,在发送给所述转发平面的接口中添加特殊标识,所述特殊标识用于使所述转发平面识别所述检测报文。An adding module, adding a special identifier to the interface sent to the forwarding plane, where the special identifier is used to make the forwarding plane recognize the detection message. 5.如权利要求1所述检测转发平面故障的装置,其特征在于,所述报错模块,还用于在所述判断模块判断所述报文的计数数值大于所述设定的计数阈值之后,报告故障。5. The device for detecting forwarding plane faults according to claim 1, wherein the error reporting module is further configured to, after the judging module judges that the count value of the message is greater than the set count threshold, Report a bug. 6.如权利要求1所述检测转发平面故障的装置,其特征在于,所述计数模块,还用于在所述比较模块的比较结果为符合后,对所述报文的计数复位。6. The device for detecting forwarding plane faults according to claim 1, wherein the counting module is further configured to reset the counting of the message after the comparison result of the comparison module is consistent. 7.如权利要求1所述检测转发平面故障的装置,其特征在于,所述判断模块包括:7. the device that detects forwarding plane failure as claimed in claim 1, is characterized in that, described judging module comprises: 存储子模块,用于存储所述设定的计数阈值;A storage submodule, configured to store the set counting threshold; 判断子模块,用于判断所述报文的计数数值是否大于所述存储子模块存储的所述设定的计数阈值。A judging submodule, configured to judge whether the count value of the message is greater than the set count threshold stored by the storage submodule. 8.一种检测转发平面故障的方法,其特征在于,包括以下步骤:8. A method for detecting forwarding plane faults, comprising the following steps: 发送包含特殊标识的检测报文到转发平面,所述检测报文的发送方位于所述转发平面之外;sending a detection message containing a special identifier to the forwarding plane, where the sender of the detection message is located outside the forwarding plane; 对所述检测报文进行计数;Counting the detection packets; 接收所述转发平面处理过的所述检测报文,所述检测报文的接收方位于所述转发平面之外;receiving the detection message processed by the forwarding plane, where the receiver of the detection message is located outside the forwarding plane; 比较发送的所述检测报文和所述转发平面处理过的所述检测报文是否符合,如果发送的所述检测报文和所述转发平面处理过的所述检测报文不符合,则报告故障;Compare whether the sent detection message matches the detection message processed by the forwarding plane, and if the sent detection message does not match the detection message processed by the forwarding plane, report Fault; 判断检测报文的计数数值是否大于设定的计数阈值;Judging whether the count value of the detection message is greater than the set count threshold; 如果检测报文的计数数值不大于所述设定的计数阈值,则执行所述发送包含特殊标识的检测报文到转发平面的步骤。If the count value of the detection message is not greater than the set count threshold, the step of sending the detection message containing the special identifier to the forwarding plane is performed. 9.如权利要求8所述检测转发平面故障的方法,其特征在于,所述比较发送的检测报文和转发平面处理过的检测报文是否符合之后,还包括:9. the method for detecting forwarding plane failure as claimed in claim 8, is characterized in that, after the detection message that described comparison sends and the detection message that forwarding plane process is processed conform to, also comprise: 如果发送的所述检测报文和所述转发平面处理过的所述检测报文符合,则继续发送检测报文到所述转发平面。If the sent detection packet matches the detection packet processed by the forwarding plane, continue sending the detection packet to the forwarding plane. 10.如权利要求8所述检测转发平面故障的方法,其特征在于,在所述发送包含特殊标识的检测报文到所述转发平面之前,还包括:10. The method for detecting forwarding plane faults as claimed in claim 8, further comprising: 在发送给所述转发平面的接口中添加特殊标识,所述特殊标识用于使所述转发平面识别所述检测报文。Adding a special identifier to the interface sent to the forwarding plane, where the special identifier is used to make the forwarding plane recognize the detection message. 11.如权利要求10所述检测转发平面故障的方法,其特征在于,在添加特殊标识之前,还包括:11. The method for detecting a forwarding plane failure as claimed in claim 10, further comprising: 设置所述检测报文的源和目的地址等信息。Set information such as the source and destination address of the detection packet. 12.如权利要求8所述检测转发平面故障的方法,其特征在于,还包括:12. the method for detecting forwarding plane failure as claimed in claim 8, is characterized in that, also comprises: 如果所述报文的计数数值大于所述设定的计数阈值,则报告故障。If the count value of the packet is greater than the set count threshold, a fault is reported. 13.如权利要求8所述检测转发平面故障的方法,其特征在于,所述比较发送的检测报文和所述转发平面处理过的检测报文是否符合之后,还包括:13. the method for detecting forwarding plane failure as claimed in claim 8, is characterized in that, after the detection message of described comparison sending and the detection message processed by described forwarding plane conform, also comprise: 如果发送的所述检测报文和所述转发平面处理过的所述检测报文符合,将所述报文的计数复位,并继续判断所述检测报文的计数数值是否大于所述设定的计数阈值。If the detection message sent matches the detection message processed by the forwarding plane, reset the count of the message, and continue to judge whether the count value of the detection message is greater than the set value count threshold.
CN2008101329491A 2008-07-02 2008-07-02 A method and device for detecting forwarding plane faults Expired - Fee Related CN101299693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101329491A CN101299693B (en) 2008-07-02 2008-07-02 A method and device for detecting forwarding plane faults

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101329491A CN101299693B (en) 2008-07-02 2008-07-02 A method and device for detecting forwarding plane faults

Publications (2)

Publication Number Publication Date
CN101299693A CN101299693A (en) 2008-11-05
CN101299693B true CN101299693B (en) 2011-02-09

Family

ID=40079390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101329491A Expired - Fee Related CN101299693B (en) 2008-07-02 2008-07-02 A method and device for detecting forwarding plane faults

Country Status (1)

Country Link
CN (1) CN101299693B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546306B (en) * 2012-07-13 2017-01-18 广州汽车集团股份有限公司 Periodic CAN (cable area network) message loss fault judging system and method
CN105743687B (en) * 2014-12-12 2020-01-10 中兴通讯股份有限公司 Method and device for judging node fault
CN109561004B (en) * 2019-01-29 2020-12-08 新华三技术有限公司 Message forwarding method and device and switch

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002043051A1 (en) * 2000-11-23 2002-05-30 France Telecom Non-intrusive detection of defects in a packet-transmitted speech signal
CN1720689A (en) * 2002-12-05 2006-01-11 思科技术公司 Method for verifying function of redundant standby packet forwarder
CN1866909A (en) * 2005-07-30 2006-11-22 华为技术有限公司 Forwarding engine state detecting method and route device
CN101068119A (en) * 2007-06-01 2007-11-07 华为技术有限公司 Relay line state detection method, device and test information terminal equipment thereof
JP2008104031A (en) * 2006-10-20 2008-05-01 Mitsubishi Electric Corp Inter-board trouble detection circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002043051A1 (en) * 2000-11-23 2002-05-30 France Telecom Non-intrusive detection of defects in a packet-transmitted speech signal
CN1720689A (en) * 2002-12-05 2006-01-11 思科技术公司 Method for verifying function of redundant standby packet forwarder
CN1866909A (en) * 2005-07-30 2006-11-22 华为技术有限公司 Forwarding engine state detecting method and route device
JP2008104031A (en) * 2006-10-20 2008-05-01 Mitsubishi Electric Corp Inter-board trouble detection circuit
CN101068119A (en) * 2007-06-01 2007-11-07 华为技术有限公司 Relay line state detection method, device and test information terminal equipment thereof

Also Published As

Publication number Publication date
CN101299693A (en) 2008-11-05

Similar Documents

Publication Publication Date Title
CN105379208B (en) Multi-connection system and method for internet protocol
US9819590B2 (en) Method and apparatus for notifying network abnormality
US9717011B2 (en) Event management in telecommunications networks
US20070022468A1 (en) Packet transmission equipment and packet transmission system
CN102088415B (en) Method and device for MAC (media access control) address withdrawal
CN101699786A (en) Method, device and system for detecting packet loss
WO2017152681A1 (en) Method, apparatus and device for detecting forwarding table
CN109586959B (en) Fault detection method and device
CN101808021A (en) Fault detection method, device and system, message statistical method and node equipment
CN102231687A (en) Method and device for detecting link failure
CN110011941B (en) Message forwarding method and device
CN105429814A (en) Method and device for protecting BFD by using multiple boards
CN101299693B (en) A method and device for detecting forwarding plane faults
CN102143011B (en) Device and method for realizing network protection
CN102223269B (en) Message processing method, and method and device for detecting medium access control (MAC) address
JP5889218B2 (en) Data transfer apparatus and data transfer method
CN113992425B (en) Method for receiving and transmitting network data packet, network equipment and communication system
CN105610594A (en) Service chain fault diagnosis method and service chain fault diagnosis device
WO2015180265A1 (en) Multi-link protection switching method and device
US20120147776A1 (en) Systems and methods for discovering sctp associations in a network
CN103026679B (en) Alleviating of the pattern detected in the network equipment
CN104184628A (en) Looped network detection method in network, network equipment and looped network detection system
US8144688B2 (en) System and method for discovering SCTP associations in a network
CN106209456A (en) A kind of kernel state lower network fault detection method and device
US9191268B2 (en) Extension for the simple network management protocol (SNMP) in order to ascertain information on the status of SET-PDUS

Legal Events

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110209

Termination date: 20190702

CF01 Termination of patent right due to non-payment of annual fee