CN106411556A - OAM message detection defect oscillation processing method, apparatus and system thereof - Google Patents
OAM message detection defect oscillation processing method, apparatus and system thereof Download PDFInfo
- Publication number
- CN106411556A CN106411556A CN201510482360.4A CN201510482360A CN106411556A CN 106411556 A CN106411556 A CN 106411556A CN 201510482360 A CN201510482360 A CN 201510482360A CN 106411556 A CN106411556 A CN 106411556A
- Authority
- CN
- China
- Prior art keywords
- defect
- session
- information
- oam
- detection
- 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.)
- Withdrawn
Links
- 230000007547 defect Effects 0.000 title claims abstract description 426
- 238000001514 detection method Methods 0.000 title claims abstract description 275
- 230000010355 oscillation Effects 0.000 title claims abstract description 80
- 238000003672 processing method Methods 0.000 title description 8
- 238000000034 method Methods 0.000 claims abstract description 48
- 238000012423 maintenance Methods 0.000 claims abstract description 3
- 230000010365 information processing Effects 0.000 claims description 29
- 239000000284 extract Substances 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000593 degrading effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种操作管理维护(OAM)报文检测缺陷振荡处理的方法,包括:从OAM检测报文中提取会话号及会话状态信息;根据所述会话号读取对应的缺陷信息后,根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断;或者根据所述会话状态信息及所述缺陷信息判断是否仅更新所述缺陷信息。本发明还同时公开了一种OAM报文检测缺陷振荡处理的装置及系统。
The invention discloses a method for detecting defect oscillation processing of operation, management and maintenance (OAM) messages, comprising: extracting a session number and session state information from the OAM detection message; after reading corresponding defect information according to the session number, Judging whether to report defect interruption according to the session state information and the defect information; or judging whether to update only the defect information according to the session state information and the defect information. The invention also discloses a device and a system for OAM message detection defect oscillation processing at the same time.
Description
技术领域technical field
本发明涉及网络通信领域的操作管理维护(OAM,Operation Administration&Maintenance)技术,尤其涉及一种OAM报文检测缺陷振荡处理的方法、装置及系统。The present invention relates to OAM (Operation Administration & Maintenance) technology in the field of network communication, in particular to a method, device and system for OAM packet detection defect oscillation processing.
背景技术Background technique
在公众电信网中,OAM技术已经变得非常重要,尤其对于需要提供服务质量保障的网络,OAM技术可以实时检测链路状态及进行状态上报,以达到对链路进行差错管理的目的并提供快速切换链路的能力。至今,越来越多的通讯设备厂商中使用特定用途集成电路(ASIC,Application Specific Integrated Circuit),以实现OAM报文快速检测缺陷振荡的功能。具体地,硬件检测出OAM报文缺陷后,通过中断方式上报至协处理器(Co-processor),协处理器读取对应的缺陷信息和相关寄存器,随后通知上层应用模块进行协议层的操作。但是,上述措施存在以下技术问题:当OAM出现缺陷振荡时,硬件大量上报中断给协处理器,从而浪费大量的协处理器资源,使得协处理器的效率变低并导致设备性能下降。另外,由于协处理器无法立即处理硬件检测的缺陷,并且缺陷振荡时的状态是实时变化的,因此,协处理器读取的当前缺陷信息无法为上层应用模块提供可靠的支持,从而造成协议层面的错误操作。In the public telecommunication network, OAM technology has become very important, especially for networks that need to provide quality of service guarantee, OAM technology can detect link status in real time and report the status, so as to achieve the purpose of link error management and provide fast Ability to switch links. So far, more and more manufacturers of communication equipment use Application Specific Integrated Circuits (ASICs) to realize the function of quickly detecting defect oscillations in OAM messages. Specifically, after the hardware detects the defect of the OAM message, it reports to the co-processor (Co-processor) through an interrupt mode, and the co-processor reads the corresponding defect information and related registers, and then notifies the upper layer application module to perform the operation of the protocol layer. However, the above-mentioned measures have the following technical problems: when OAM defect oscillation occurs, the hardware reports a large number of interrupts to the coprocessor, thereby wasting a large amount of coprocessor resources, reducing the efficiency of the coprocessor and degrading the performance of the device. In addition, since the coprocessor cannot immediately process the defects detected by the hardware, and the state of defect oscillation changes in real time, the current defect information read by the coprocessor cannot provide reliable support for the upper application modules, resulting in protocol-level wrong operation.
现有技术中,专利申请号为200810241252.8、专利名称为“一种OAM震荡告警的抑制设备及方法”的中国专利提供了一种OAM报文检测缺陷振荡处理的方法,包括:报文处理器判断接收到的OAM报文周期不匹配,产生周期不匹配告警,将对应的OAM状态表中的周期不匹配计数值加1,并在周期不匹配告警屏蔽标志位不为1的情况下将告警发送给协处理器;协处理器上报所述告警给对应的上层应用模块,并置位对应的OAM告警状态表中的周期不匹配告警屏蔽标志位,清零周期不匹配告警计数值;然后设置定时器的定时周期启动。In the prior art, the Chinese patent with the patent application number of 200810241252.8 and the patent name of "A device and method for suppressing OAM oscillation alarm" provides a method for OAM message detection defect oscillation processing, including: message processor judgment The period of the received OAM message does not match, and a period mismatch alarm is generated, and the period mismatch count value in the corresponding OAM status table is increased by 1, and the alarm is sent when the period mismatch alarm mask flag bit is not 1 To the coprocessor; the coprocessor reports the alarm to the corresponding upper layer application module, and sets the cycle mismatch alarm shielding flag in the corresponding OAM alarm state table, clears the cycle mismatch alarm count value; then sets the timing The timing cycle of the timer starts.
上述方法可以在一定程度抑制由于两端设备OAM报文发送周期不匹配所产生的震荡告警,但是上述方法仅提出了对缺陷产生的振荡告警进行抑制的方法,并没有解决缺陷振荡处理导致协议层面的错误操作的技术问题。并且,当设备需要支持的OAM报文会话数目很大时,计数器和定时器的实现方式将占用大量的硬件资源和协处理器资源。The above method can suppress to a certain extent the oscillation alarm caused by the mismatch of OAM packet transmission period of the two devices, but the above method only proposes a method to suppress the oscillation alarm caused by the defect, and does not solve the problem caused by the defect oscillation processing at the protocol level. technical problems of incorrect operation. Moreover, when the number of OAM message sessions that the device needs to support is large, the implementation of the counter and timer will occupy a large amount of hardware resources and coprocessor resources.
发明内容Contents of the invention
有鉴于此,本发明实施例期望提供一种OAM报文检测缺陷振荡处理的方法、装置及系统,不仅能够抑制缺陷振荡;而且能够减少在检测缺陷振荡时所使用的硬件资源及处理器资源。In view of this, the embodiments of the present invention expect to provide a method, device and system for OAM packet detection defect oscillation processing, which can not only suppress defect oscillation, but also reduce hardware resources and processor resources used in detecting defect oscillation.
为达到上述目的,本发明实施例的技术方案是这样实现的:In order to achieve the above object, the technical solution of the embodiment of the present invention is achieved in this way:
本发明实施例提供了一种OAM报文检测缺陷振荡处理的方法,包括:An embodiment of the present invention provides a method for OAM packet detection defect oscillation processing, including:
从OAM检测报文中提取会话号及会话状态信息;Extract the session number and session state information from the OAM detection message;
根据所述会话号读取对应的缺陷信息后,根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断;或者根据所述会话状态信息及所述缺陷信息判断是否仅更新所述缺陷信息。After reading the corresponding defect information according to the session number, judge whether to report defect interruption according to the session state information and the defect information; or judge whether to update only the defect information according to the session state information and the defect information .
上述方案中,所述根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断包括:In the above solution, the judging whether to report defect interruption according to the session state information and the defect information includes:
当所述会话状态信息为报文到达信息时,判断锁存状态位及实时状态位,其中,所述缺陷信息包括所述锁存状态位及所述实时状态位;When the session status information is message arrival information, judge the latch status bit and the real-time status bit, wherein the defect information includes the latch status bit and the real-time status bit;
当所述锁存状态位为缺陷退出状态及所述实时状态位为缺陷产生状态时,上报所述缺陷中断;或者,When the latch status bit is a defect exit status and the real-time status bit is a defect generation status, report the defect interrupt; or,
当所述会话状态信息为会话超时信息时,判断所述锁存状态位及所述实时状态位;When the session status information is session timeout information, judge the latch status bit and the real-time status bit;
当所述锁存状态位及所述实时状态位为所述缺陷退出状态时,上报所述缺陷中断。When the latch status bit and the real-time status bit are the defect exit status, report the defect interrupt.
上述方案中,所述根据所述会话状态信息及所述缺陷信息判断是否仅更新所述缺陷信息包括:In the above solution, the determining whether to update only the defect information according to the session state information and the defect information includes:
当所述会话状态信息为所述报文到达信息时,判断所述锁存状态位及所述实时状态位;When the session state information is the packet arrival information, judge the latch state bit and the real-time state bit;
当所述锁存状态位及所述实时状态位为所述缺陷产生状态时,将所述实时状态位设置为所述缺陷退出状态;或者,When the latch status bit and the real-time status bit are the defect generation status, setting the real-time status bit to the defect exit status; or,
当所述会话状态信息为所述会话超时信息时,判断所述锁存状态位及所述实时状态位;When the session state information is the session timeout information, judge the latch state bit and the real-time state bit;
当所述锁存状态位为所述缺陷产生状态及所述实时状态位为所述缺陷退出状态时,将所述实时状态位设置为所述缺陷产生状态。When the latch status bit is the defect generation status and the real-time status bit is the defect exit status, the real-time status bit is set to the defect generation status.
上述方案中,所述从OAM检测报文中提取会话号及会话状态信息之前,所述方法还包括:In the above scheme, before extracting the session number and session state information from the OAM detection message, the method also includes:
当所述OAM检测报文在会话检测门限内到达时,接收所述OAM检测报文;When the OAM detection message arrives within the session detection threshold, receive the OAM detection message;
当所述OAM检测报文在所述会话检测门限内没有到达时,轮询使能的OAM检测会话,判断所述使能的OAM检测会话是否超时。When the OAM detection message does not arrive within the session detection threshold, the enabled OAM detection session is polled to determine whether the enabled OAM detection session times out.
本发明实施例还提供了一种OAM报文检测缺陷振荡处理的方法,包括:The embodiment of the present invention also provides a method for OAM packet detection defect oscillation processing, including:
从OAM检测报文中提取会话号及会话状态信息;Extract the session number and session state information from the OAM detection message;
根据所述会话号读取对应的缺陷信息后,根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断;After reading the corresponding defect information according to the session number, judge whether to report defect interruption according to the session state information and the defect information;
接收所述缺陷中断后,读取所述缺陷信息。After receiving the defect interrupt, read the defect information.
上述方案中,所述根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断包括:In the above solution, the judging whether to report defect interruption according to the session state information and the defect information includes:
当所述会话状态信息为报文到达信息时,判断锁存状态位及实时状态位,其中,所述缺陷信息包括所述锁存状态位及所述实时状态位;When the session status information is message arrival information, judge the latch status bit and the real-time status bit, wherein the defect information includes the latch status bit and the real-time status bit;
当所述锁存状态位为缺陷退出状态及所述实时状态位为缺陷产生状态时,上报所述缺陷中断;或者,When the latch status bit is a defect exit status and the real-time status bit is a defect generation status, report the defect interrupt; or,
当所述会话状态信息为会话超时信息时,判断所述锁存状态位及所述实时状态位;When the session status information is session timeout information, judge the latch status bit and the real-time status bit;
当所述锁存状态位及所述实时状态位为所述缺陷退出状态时,上报所述缺陷中断。When the latch status bit and the real-time status bit are the defect exit status, report the defect interrupt.
上述方案中,所述读取所述缺陷信息之后,所述方法还包括:将所述锁存状态位设置为所述缺陷退出状态。In the above solution, after reading the defect information, the method further includes: setting the latch status bit as the defect exit status.
上述方案中,所述从OAM检测报文中提取会话号及会话状态信息之前,所述方法还包括:In the above scheme, before extracting the session number and session state information from the OAM detection message, the method also includes:
当所述OAM检测报文在会话检测门限内到达时,接收所述OAM检测报文;When the OAM detection message arrives within the session detection threshold, receive the OAM detection message;
当所述OAM检测报文在所述会话检测门限内没有到达时,轮询使能的OAM检测会话,判断所述使能的OAM检测会话是否超时。When the OAM detection message does not arrive within the session detection threshold, the enabled OAM detection session is polled to determine whether the enabled OAM detection session times out.
本发明实施例又提供了一种OAM报文检测缺陷振荡处理的装置,包括:The embodiment of the present invention further provides a device for OAM packet detection defect oscillation processing, including:
OAM报文检测单元,用于从OAM检测报文中提取会话号及会话状态信息;The OAM message detection unit is used to extract the session number and session state information from the OAM detection message;
缺陷信息处理单元,用于根据所述会话号读取对应的缺陷信息后,根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断;或者根据所述会话状态信息及所述缺陷信息判断是否仅更新所述缺陷信息;The defect information processing unit is used to judge whether to report a defect interruption according to the session state information and the defect information after reading the corresponding defect information according to the session number; or judge according to the session state information and the defect information Whether to update only the defect information;
缺陷信息存储单元,用于存储所述缺陷信息及更新所述缺陷信息。The defect information storage unit is used for storing the defect information and updating the defect information.
上述方案中,所述缺陷信息处理单元根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断包括:In the above solution, the defect information processing unit judging whether to report defect interruption according to the session state information and the defect information includes:
当所述会话状态信息为报文到达信息时,判断锁存状态位及实时状态位,其中,所述缺陷信息包括所述锁存状态位及所述实时状态位;When the session status information is message arrival information, judge the latch status bit and the real-time status bit, wherein the defect information includes the latch status bit and the real-time status bit;
当所述锁存状态位为缺陷退出状态及所述实时状态位为缺陷产生状态时,上报所述缺陷中断;或者,When the latch status bit is a defect exit status and the real-time status bit is a defect generation status, report the defect interrupt; or,
当所述会话状态信息为会话超时信息时,判断所述锁存状态位及所述实时状态位;When the session status information is session timeout information, judge the latch status bit and the real-time status bit;
当所述锁存状态位及所述实时状态位为所述缺陷退出状态时,上报所述缺陷中断。When the latch status bit and the real-time status bit are the defect exit status, report the defect interrupt.
上述方案中,所述缺陷信息处理单元根据所述会话状态信息及所述缺陷信息判断是否仅更新所述缺陷信息包括:In the above solution, the defect information processing unit judging whether to update only the defect information according to the session state information and the defect information includes:
当所述会话状态信息为所述报文到达信息时,判断所述锁存状态位及所述实时状态位;When the session state information is the packet arrival information, judge the latch state bit and the real-time state bit;
当所述锁存状态位及所述实时状态位为所述缺陷产生状态时,将所述实时状态位设置为所述缺陷退出状态;或者,When the latch status bit and the real-time status bit are the defect generation status, setting the real-time status bit to the defect exit status; or,
当所述会话状态信息为所述会话超时信息时,判断所述锁存状态位及所述实时状态位;When the session state information is the session timeout information, judge the latch state bit and the real-time state bit;
当所述锁存状态位为所述缺陷产生状态及所述实时状态位为所述缺陷退出状态时,将所述实时状态位设置为所述缺陷产生状态。When the latch status bit is the defect generation status and the real-time status bit is the defect exit status, the real-time status bit is set to the defect generation status.
上述方案中,所述OAM报文检测单元从OAM检测报文中提取会话号及会话状态信息之前,还用于当所述OAM检测报文在会话检测门限内到达时,接收所述OAM检测报文;当所述OAM检测报文在所述会话检测门限内没有到达时,轮询使能的OAM检测会话,判断所述使能的OAM检测会话是否超时。In the above solution, before the OAM detection unit extracts the session number and session state information from the OAM detection message, it is also used to receive the OAM detection message when the OAM detection message arrives within the session detection threshold. When the OAM detection message does not arrive within the session detection threshold, poll the enabled OAM detection session to determine whether the enabled OAM detection session times out.
本发明实施例再提供了一种OAM报文检测缺陷振荡处理的系统,包括:OAM报文检测缺陷振荡处理的处理器和上述任意一种所述的OAM报文检测缺陷振荡处理的装置;The embodiment of the present invention further provides a system for OAM message detection defect oscillation processing, including: a processor for OAM message detection defect oscillation processing and any one of the OAM message detection defect oscillation processing devices described above;
所述OAM报文检测缺陷振荡处理的装置,用于检测所述OAM检测报文、上报所述缺陷中断及提供所述缺陷信息;The OAM message detection defect oscillation processing device is used to detect the OAM detection message, report the defect interruption and provide the defect information;
所述OAM报文检测缺陷振荡处理的处理器,用于接收所述缺陷中断后,读取所述缺陷信息。The processor of OAM packet detection defect oscillation processing is configured to read the defect information after receiving the defect interrupt.
本发明实施例所提供的OAM报文检测缺陷振荡处理的方法、装置及系统,先从OAM检测报文中提取会话号及会话状态信息;根据所述会话号读取对应的缺陷信息后,根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断;或者根据所述会话状态信息及所述缺陷信息判断是否仅更新所述缺陷信息。如此,本发明实施例可以上报缺陷中断或者立即更新所述缺陷信息,从而解决了缺陷振荡导致的协议层面错误操作的问题;进而提高了OAM报文检测缺陷振荡处理的装置的OAM功能的稳定性。The method, device, and system for OAM packet detection defect oscillation processing provided by the embodiments of the present invention first extract the session number and session state information from the OAM detection packet; after reading the corresponding defect information according to the session number, according to The session state information and the defect information determine whether to report defect interruption; or judge whether to update only the defect information according to the session state information and the defect information. In this way, the embodiment of the present invention can report defect interruption or immediately update the defect information, thereby solving the problem of error operation at the protocol level caused by defect oscillation; and further improving the stability of the OAM function of the device for OAM packet detection defect oscillation processing .
附图说明Description of drawings
图1为本发明实施例1提供的OAM报文检测缺陷振荡处理的方法的实现流程示意图;FIG. 1 is a schematic diagram of the implementation flow of the OAM packet detection defect oscillation processing method provided by Embodiment 1 of the present invention;
图2为本发明实施例1提供的OAM报文检测方法的实现流程示意图;FIG. 2 is a schematic diagram of the implementation flow of the OAM packet detection method provided by Embodiment 1 of the present invention;
图3为本发明实施例1提供的缺陷信息处理方法的实现流程示意图;FIG. 3 is a schematic diagram of the implementation flow of the defect information processing method provided by Embodiment 1 of the present invention;
图4为本发明实施例1提供的缺陷信息存储方法的实现流程示意图;FIG. 4 is a schematic diagram of the implementation flow of the defect information storage method provided by Embodiment 1 of the present invention;
图5为本发明实施例3和4提供的OAM报文检测缺陷振荡处理的装置及系统的组成结构示意图。FIG. 5 is a schematic diagram of the composition and structure of the device and system for OAM packet detection defect oscillation processing provided by Embodiments 3 and 4 of the present invention.
具体实施方式detailed description
本发明实施例中,从OAM检测报文中提取会话号及会话状态信息;根据所述会话号读取对应的缺陷信息后,根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断;或者根据所述会话状态信息及所述缺陷信息判断是否仅更新所述缺陷信息。In the embodiment of the present invention, the session number and session state information are extracted from the OAM detection message; after reading the corresponding defect information according to the session number, it is judged whether to report a defect interruption according to the session state information and the defect information; Or judge whether to update only the defect information according to the session state information and the defect information.
下面结合附图及具体实施例对本发明再做进一步详细的说明。The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
实施例1Example 1
图1为本发明实施例1提供的OAM报文检测缺陷振荡处理的方法的实现流程示意图,如图1所示,所述方法包括:Fig. 1 is a schematic diagram of the implementation flow of the OAM packet detection defect oscillation processing method provided by Embodiment 1 of the present invention. As shown in Fig. 1, the method includes:
步骤1100:从OAM检测报文中提取会话号及会话状态信息。Step 1100: extract the session number and session state information from the OAM detection message.
在步骤1100之前,OAM报文检测缺陷振荡处理的装置在上电过程中,对在OAM报文检测单元内部存储OAM检测会话参数的随机存取存储器(RAM,Random Access Memory)和缺陷信息存储单元使用的内部RAM进行初始化。Before step 1100, the device for OAM message detection defect oscillation processing is in the power-on process, to the random access memory (RAM, Random Access Memory) and the defect information storage unit storing the OAM detection session parameter inside the OAM message detection unit Use internal RAM for initialization.
在初始化过程中,OAM报文检测缺陷振荡处理的装置中的OAM报文检测单元根据应用场景对OAM检测会话参数进行配置,其中,OAM检测会话参数包括:会话使能位、会话检测门限及上次到达时间。OAM报文检测单元内部的RAM用于存储OAM检测会话参数,其中,每个地址可以映射成一个会话号。此外,OAM报文检测单元在配置OAM检测会话参数时将当前时间作为超时检测的初始时间写入到OAM检测会话参数的条目中,所述超时检测的初始时间为上次到达时间。In the initialization process, the OAM message detection unit in the OAM message detection defect oscillation processing device configures the OAM detection session parameters according to the application scenario, wherein the OAM detection session parameters include: session enable bit, session detection threshold and upper limit time of arrival. The RAM inside the OAM packet detection unit is used to store OAM detection session parameters, wherein each address can be mapped to a session number. In addition, when configuring the OAM detection session parameters, the OAM packet detection unit writes the current time into the entry of the OAM detection session parameters as the initial time of timeout detection, and the initial time of timeout detection is the last arrival time.
初始化完成后,OAM报文检测单元内的检测状态机被启动,以便OAM报文检测单元使能OAM检测功能,并开始从OAM报文检测缺陷振荡处理的系统外部接收OAM检测报文。After the initialization is completed, the detection state machine in the OAM message detection unit is started, so that the OAM message detection unit enables the OAM detection function, and starts to receive OAM detection messages from the outside of the OAM message detection defect oscillation processing system.
进一步地,所述从OAM检测报文中提取会话号及会话状态信息之前,所述方法还包括:Further, before extracting the session number and session state information from the OAM detection message, the method further includes:
当所述OAM检测报文在会话检测门限内到达时,接收所述OAM检测报文;When the OAM detection message arrives within the session detection threshold, receive the OAM detection message;
当所述OAM检测报文在所述会话检测门限内没有到达时,轮询使能的OAM检测会话,判断所述使能的OAM检测会话是否超时。When the OAM detection message does not arrive within the session detection threshold, the enabled OAM detection session is polled to determine whether the enabled OAM detection session times out.
具体地,OAM报文检测缺陷振荡处理的装置中的OAM报文检测单元根据所述OAM检测报文是否到达进行处理。如果在会话检测门限内,有对应OAM检测会话的OAM检测报文到达OAM报文检测单元,OAM报文检测单元将所述OAM检测会话的上次到达时间更新为当前时间,以用于下次超时检测;同时OAM报文检测单元将会话号和报文到达信息发送给缺陷信息处理单元。Specifically, the OAM packet detection unit in the device for OAM packet detection defect oscillation processing performs processing according to whether the OAM detection packet arrives. If within the session detection threshold, the OAM detection message corresponding to the OAM detection session arrives at the OAM message detection unit, the OAM message detection unit updates the last arrival time of the OAM detection session to the current time for the next time Timeout detection; at the same time, the OAM message detection unit sends the session number and message arrival information to the defect information processing unit.
如果在会话检测门限内,对应OAM检测会话的OAM检测报文没有到达,OAM报文检测单元将所述OAM检测会话的上次到达时间更新为当前时间,以用于下次超时检测;同时OAM报文检测单元将会话号和会话超时信息发送给缺陷信息处理单元。随后,OAM报文检测单元依次对所有使能的OAM检测会话进行轮询检测,判断所述使能的OAM检测会话是否超时以决定是否更新上次到达时间或者是否通知缺陷信息处理单元。If within the session detection threshold, the OAM detection message corresponding to the OAM detection session does not arrive, the OAM message detection unit updates the last arrival time of the OAM detection session to the current time for the next timeout detection; The packet detection unit sends the session number and session timeout information to the defect information processing unit. Subsequently, the OAM packet detection unit sequentially performs polling detection on all enabled OAM detection sessions, and judges whether the enabled OAM detection sessions time out to determine whether to update the last arrival time or notify the defect information processing unit.
综上,如图2所示,所述OAM报文检测单元执行的OAM报文检测方法包括以下步骤:In summary, as shown in Figure 2, the OAM packet detection method performed by the OAM packet detection unit includes the following steps:
步骤1101:初始化OAM检测会话参数后,使能OAM检测会话。Step 1101: After initializing the OAM detection session parameters, enable the OAM detection session.
在步骤1101中,所述OAM报文检测单元根据应用场景,对OAM检测会话参数进行配置。In step 1101, the OAM packet detection unit configures OAM detection session parameters according to application scenarios.
步骤1102:判断OAM检测报文是否到达。Step 1102: Determine whether the OAM detection message arrives.
在步骤1102中,如果OAM检测报文没有在会话检测门限内到达,执行步骤1103,如果OAM检测报文在会话检测门限内到达,执行步骤1108。In step 1102, if the OAM detection packet arrives within the session detection threshold, execute step 1103, and if the OAM detection packet arrives within the session detection threshold, execute step 1108.
步骤1103:轮询OAM检测会话。Step 1103: Poll the OAM to detect the session.
在步骤1103中,当OAM检测报文没有在会话检测门限内到达时,轮询使能的OAM检测会话,读取OAM检测会话参数,执行步骤1104。In step 1103, when the OAM detection message does not arrive within the session detection threshold, the enabled OAM detection session is polled, the OAM detection session parameters are read, and step 1104 is executed.
步骤1104:判断当前时间与上次到达时间之差是否超时。Step 1104: Determine whether the difference between the current time and the last arrival time is overtime.
在步骤1104中,将使能的OAM检测会话的当前时间与存储的上次到达时间进行差值计算,判断所述差值是否大于配置的会话检测门限,如果否,则执行步骤1105;如果是,则执行步骤1106。In step 1104, calculate the difference between the current time of the enabled OAM detection session and the stored last arrival time, and determine whether the difference is greater than the configured session detection threshold, if not, then perform step 1105; if yes , then step 1106 is executed.
步骤1105:不进行操作,返回步骤1103。Step 1105: no operation, return to step 1103.
在步骤1105中,OAM检测会话没有超时,因此不进行任何操作,本次处理结束,执行步骤1103以便继续轮询下一个OAM检测会话。In step 1105, the OAM detection session has not timed out, so no operation is performed, and this processing ends, and step 1103 is executed to continue polling for the next OAM detection session.
步骤1106:更新上次到达时间。Step 1106: Update the last arrival time.
在步骤1106中,OAM检测会话已经超时,将OAM检测会话参数中的上次到达时间更新为当前时间,以供下次检测使用,执行步骤1107。In step 1106, the OAM detection session has timed out, and the last arrival time in the OAM detection session parameter is updated to the current time for use in next detection, and step 1107 is executed.
步骤1107:发送会话状态信息至缺陷信息处理单元,本次处理结束。Step 1107: Send the session state information to the defect information processing unit, and this processing ends.
在步骤1107中,将当前超时OAM检测会话的会话号和会话状态信息发送给缺陷信息处理单元,本次处理结束。这里,会话状态信息为会话超时信息。In step 1107, send the session number and session state information of the current time-out OAM detection session to the defect information processing unit, and this processing ends. Here, the session state information is session timeout information.
步骤1108:读取OAM检测会话参数。Step 1108: Read the OAM detection session parameters.
在步骤1108中,如果OAM检测报文到达OAM报文检测单元,提取OAM检测报文中的会话号,根据会话号读取储存在RAM中的对应的OAM检测会话参数,执行步骤1109。In step 1108, if the OAM detection message arrives at the OAM message detection unit, the session number in the OAM detection message is extracted, and the corresponding OAM detection session parameter stored in RAM is read according to the session number, and step 1109 is executed.
步骤1109:判断OAM检测会话是否使能。Step 1109: Determine whether the OAM detection session is enabled.
在步骤1109中,OAM报文检测单元根据配置的使能位判断OAM检测会话是否使能,如果否,执行步骤1110,是则执行步骤1111。In step 1109, the OAM message detection unit judges whether the OAM detection session is enabled according to the configured enable bit, if not, execute step 1110, and if yes, execute step 1111.
步骤1110:丢弃OAM检测报文,本次处理结束。Step 1110: Discard the OAM detection message, and this processing ends.
在步骤1110中,OAM检测会话没有使能,则认为接收到的OAM检测报文无效,丢弃此报文,本次处理结束。In step 1110, if the OAM detection session is not enabled, the received OAM detection message is considered invalid, the message is discarded, and this processing ends.
步骤1111:更新上次到达时间。Step 1111: Update the last arrival time.
在步骤1111中,OAM检测会话使能,将对应的OAM检测会话参数中的上次到达时间更新为当前时间以供下次检测使用,执行步骤1112。In step 1111, the OAM detection session is enabled, and the last arrival time in the corresponding OAM detection session parameter is updated to the current time for use in the next detection, and step 1112 is executed.
步骤1112:发送会话状态信息至缺陷信息处理单元。Step 1112: Send the session state information to the defect information processing unit.
在步骤1112中,OAM报文检测单元将当前接收到的OAM检测报文的会话号和会话状态信息发送至缺陷信息处理单元,本次处理结束。这里,会话状态信息为报文到达信息。In step 1112, the OAM packet detection unit sends the session number and session state information of the currently received OAM detection packet to the defect information processing unit, and this processing ends. Here, the session state information is packet arrival information.
步骤1200:根据所述会话号读取对应的缺陷信息后,根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断;或者根据所述会话状态信息及所述缺陷信息判断是否仅更新所述缺陷信息。Step 1200: After reading the corresponding defect information according to the session number, judge whether to report defect interruption according to the session state information and the defect information; or judge whether to update only the Describe the defect information.
在步骤1200中,OAM报文检测缺陷振荡处理的装置中的缺陷信息处理单元从OAM报文检测单元接收OAM检测报文的会话号和会话状态信息后,根据会话号读取缺陷信息存储单元中对应的缺陷信息,然后将当前的会话状态信息与OAM检测会话储存的缺陷信息进行比较,判断是否更新缺陷信息存储单元中的缺陷信息或者上报缺陷中断至外部的OAM报文检测缺陷振荡处理的处理器。In step 1200, after receiving the session number and session state information of the OAM detection message from the OAM message detection unit, the defect information processing unit in the device for OAM message detection defect oscillation processing reads the information in the defect information storage unit according to the session number. Corresponding defect information, then compare the current session state information with the defect information stored in the OAM detection session, and judge whether to update the defect information in the defect information storage unit or report the defect interruption to the external OAM packet detection defect oscillation processing device.
在步骤1200中,所述根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断包括:In step 1200, the judging whether to report defect interruption according to the session state information and the defect information includes:
当所述会话状态信息为报文到达信息时,判断锁存状态位及实时状态位,其中,所述缺陷信息包括所述锁存状态位及所述实时状态位;When the session status information is message arrival information, judge the latch status bit and the real-time status bit, wherein the defect information includes the latch status bit and the real-time status bit;
当所述锁存状态位为缺陷退出状态及所述实时状态位为缺陷产生状态时,上报所述缺陷中断;或者,When the latch status bit is a defect exit status and the real-time status bit is a defect generation status, report the defect interrupt; or,
当所述会话状态信息为会话超时信息时,判断所述锁存状态位及所述实时状态位;When the session status information is session timeout information, judge the latch status bit and the real-time status bit;
当所述锁存状态位及所述实时状态位为所述缺陷退出状态时,上报所述缺陷中断。When the latch status bit and the real-time status bit are the defect exit status, report the defect interrupt.
在步骤1200中,所述根据所述会话状态信息及所述缺陷信息判断是否仅更新所述缺陷信息包括:In step 1200, the judging whether to update only the defect information according to the session state information and the defect information includes:
当所述会话状态信息为所述报文到达信息时,判断所述锁存状态位及所述实时状态位;When the session state information is the packet arrival information, judge the latch state bit and the real-time state bit;
当所述锁存状态位及所述实时状态位为所述缺陷产生状态时,将所述实时状态位设置为所述缺陷退出状态;或者,When the latch status bit and the real-time status bit are the defect generation status, setting the real-time status bit to the defect exit status; or,
当所述会话状态信息为所述会话超时信息时,判断所述锁存状态位及所述实时状态位;When the session state information is the session timeout information, judge the latch state bit and the real-time state bit;
当所述锁存状态位为所述缺陷产生状态及所述实时状态位为所述缺陷退出状态时,将所述实时状态位设置为所述缺陷产生状态。When the latch status bit is the defect generation status and the real-time status bit is the defect exit status, the real-time status bit is set to the defect generation status.
综上,如图3所示,所述缺陷信息处理单元执行的缺陷信息处理方法包括以下步骤:In summary, as shown in Figure 3, the defect information processing method performed by the defect information processing unit includes the following steps:
步骤1201:接收会话号和会话状态信息。Step 1201: Receive session number and session state information.
在步骤1201中,接收从OAM报文检测单元发送过来的会话号和会话状态信息,执行步骤1202。In step 1201, the session number and session state information sent from the OAM packet detection unit are received, and step 1202 is executed.
步骤1202:读取缺陷信息。Step 1202: Read defect information.
在步骤1202中,根据OAM检测报文的会话号读取缺陷信息存储单元中对应的缺陷信息,等待返回缺陷信息,执行步骤1203。In step 1202, read the corresponding defect information in the defect information storage unit according to the session number of the OAM detection message, wait for the defect information to be returned, and execute step 1203.
步骤1203:判断会话状态信息是否为0。Step 1203: Determine whether the session state information is 0.
在步骤1203中,缺陷信息存储单元返回缺陷信息后,缺陷信息处理单元判断接收到的会话状态信息是否为报文到达信息,也即是否为0,如果否,则执行步骤1204,是则执行步骤1211。In step 1203, after the defect information storage unit returns the defect information, the defect information processing unit judges whether the received session state information is message arrival information, that is, whether it is 0, if not, then execute step 1204, if yes, execute step 1211.
步骤1204:判断锁存状态位(S_state)是否为0。Step 1204: Determine whether the latch status bit (S_state) is 0.
在步骤1204中,缺陷信息处理单元判断缺陷信息中的S_state是否为0,即S_state是否为缺陷退出状态。如果否,执行步骤1205,是则执行步骤1208。In step 1204, the defect information processing unit judges whether S_state in the defect information is 0, that is, whether S_state is a defect exit state. If no, go to step 1205, and if yes, go to step 1208.
需要说明的是,缺陷信息存储单元对每一个OAM检测会话的缺陷信息用两比特进行表示,即锁存状态位(S_state)和实时状态位(C_state)。对于每个比特的数值定义为0表示缺陷退出状态,1表示缺陷产生状态。It should be noted that the defect information storage unit uses two bits to represent the defect information of each OAM detection session, that is, the latch state bit (S_state) and the real-time state bit (C_state). The value of each bit is defined as 0 to indicate the defect exit status, and 1 to indicate the defect generation status.
步骤1205:判断C_state是否为0。Step 1205: Determine whether C_state is 0.
在步骤1205中,判断返回的缺陷信息中的实时状态位(C_state)是否为0,即C_state是否为缺陷退出状态。如果否,执行步骤1206,是则执行步骤1207。In step 1205, it is judged whether the real-time status bit (C_state) in the returned defect information is 0, that is, whether C_state is a defect exit state. If no, go to step 1206, and if yes, go to step 1207.
步骤1206:不进行操作,本次处理结束。Step 1206: No operation is performed, and this processing ends.
在步骤1206中,OAM检测会话的缺陷信息中的锁存状态位(S_state)和实时状态位(C_state)都为1,即缺陷产生状态,表示目前已经将OAM检测会话的缺陷中断上报给OAM报文检测缺陷振荡处理的处理器,因此不需要再次上报当前的缺陷产生状态,不进行任何操作,本次处理结束。In step 1206, the latch state bit (S_state) and the real-time state bit (C_state) in the defect information of the OAM detection session are all 1, that is, the defect generation state, indicating that the defect interruption of the OAM detection session has been reported to the OAM report at present. It is a processor for text detection defect oscillation processing, so there is no need to report the current defect generation status again, and this processing ends without any operation.
步骤1207:设置C_state为1,本次处理结束。Step 1207: Set C_state to 1, and this processing ends.
在步骤1207中,OAM检测会话缺陷信息中的锁存状态位为缺陷产生状态,实时状态位为缺陷退出状态,表示目前已经将OAM检测会话的缺陷中断上报给OAM报文检测缺陷振荡处理的处理器,但是在OAM报文检测缺陷振荡处理的处理器读取缺陷信息之前,OAM检测会话又有对应的OAM检测报文到达,所以实时状态位为0,因此只需更新实时状态位,即将C_State设置为1,不需要再次上报缺陷中断至OAM报文检测缺陷振荡处理的处理器,本次处理结束。In step 1207, the latched state bit in the OAM detection session defect information is the defect generation state, and the real-time state bit is the defect exit state, indicating that the defect interruption of the OAM detection session has been reported to the OAM message detection defect oscillation process at present However, before the OAM packet detection defect oscillation processing processor reads the defect information, the corresponding OAM detection packet arrives in the OAM detection session, so the real-time status bit is 0, so only the real-time status bit needs to be updated, that is, C_State If it is set to 1, there is no need to report the defect interrupt to the processor of OAM packet detection defect oscillation processing again, and this processing ends.
步骤1208:判断C_state是否为0。Step 1208: Determine whether C_state is 0.
在步骤1208中,判断返回的缺陷信息中的实时状态位C_state是否为0,如果否,执行步骤1209,是则执行步骤1210。In step 1208, it is judged whether the real-time status bit C_state in the returned defect information is 0, if not, execute step 1209, and if yes, execute step 1210.
步骤1209:不进行操作,本次处理结束。Step 1209: No operation is performed, and this processing ends.
在步骤1209中,OAM检测会话缺陷信息中的锁存状态位为缺陷退出状态,实时状态位为缺陷产生状态,表示目前已经将OAM检测会话的缺陷中断上报给OAM报文检测缺陷振荡处理的处理器,并且OAM报文检测缺陷振荡处理的处理器已经读取了OAM检测会话的缺陷信息,所以锁存状态位为0,因此不需要再次上报缺陷中断给OAM报文检测缺陷振荡处理的处理器,不进行任何操作,本次处理结束。In step 1209, the latched state bit in the OAM detection session defect information is the defect exit state, and the real-time state bit is the defect generation state, indicating that the defect interruption of the OAM detection session has been reported to the OAM message detection defect oscillation process at present and the OAM packet detection defect oscillation processing processor has read the defect information of the OAM detection session, so the latch status bit is 0, so there is no need to report the defect interrupt to the OAM packet detection defect oscillation processing processor again , do not perform any operation, and this processing ends.
步骤1210:设置C_state为1、S_state为1、上报缺陷中断,本次处理结束。Step 1210: Set C_state to 1, S_state to 1, report defect interruption, and this processing ends.
在步骤1210中,OAM检测会话缺陷信息中的锁存状态位和实时状态位都为缺陷退出状态,表示目前OAM检测会话没有产生过缺陷中断,因此更新实时状态位和锁存状态位,即将S_state和C_state都设置为1,并且上报缺陷中断给OAM报文检测缺陷振荡处理的处理器,本次处理结束。In step 1210, both the latch status bit and the real-time status bit in the defect information of the OAM detection session are defect exit states, indicating that the current OAM detection session has not generated defect interruption, so the real-time status bit and the latch status bit are updated, namely S_state and C_state are both set to 1, and a defect interrupt is reported to the processor for OAM message detection defect oscillation processing, and this processing ends.
步骤1211:判断S_state是否为0。Step 1211: Determine whether S_state is 0.
在步骤1211中,当前OAM检测会话为报文到达状态,判断返回的缺陷信息中锁存状态位S_state是否为0,如果否,执行步骤1212,是则执行步骤1215。In step 1211, the current OAM detection session is in the packet arrival state, and judge whether the latched state bit S_state in the returned defect information is 0, if not, execute step 1212, and if yes, execute step 1215.
步骤1212:判断C_state是否为0。Step 1212: Determine whether C_state is 0.
在步骤1212中,判断返回的缺陷信息中的C_state是否为0,如果否,执行步骤1213,是则执行步骤1214。In step 1212, it is judged whether the C_state in the returned defect information is 0, if not, execute step 1213, and if yes, execute step 1214.
步骤1213:设置C_state为0,本次处理结束。Step 1213: Set C_state to 0, and this processing ends.
在步骤1213中,OAM检测会话缺陷信息中的锁存状态位和实时状态位都为缺陷产生状态,表示目前已经将OAM检测会话的缺陷中断上报给OAM报文检测缺陷振荡处理的处理器,并且OAM报文检测缺陷振荡处理的处理器还没有读取此次缺陷中断的缺陷信息,因此更新实时状态位,即将C_state设置为0,不需要再次上报缺陷中断给OAM报文检测缺陷振荡处理的处理器,本次处理结束。In step 1213, the latch status bit and the real-time status bit in the OAM detection session defect information are both defect generation states, indicating that the defect interruption of the OAM detection session has been reported to the OAM packet detection defect oscillation processing processor at present, and The processor of the OAM packet detection defect oscillation processing has not read the defect information of this defect interruption, so the real-time status bit is updated, that is, C_state is set to 0, and there is no need to report the defect interruption to the OAM packet detection defect oscillation processing processing again. device, the processing ends.
步骤1214:不进行操作,本次处理结束。Step 1214: No operation is performed, and this processing ends.
在步骤1214中,OAM检测会话缺陷信息中的锁存状态位为缺陷产生状态,实时状态位为缺陷退出状态,表示目前已经将OAM检测会话的缺陷中断上报给OAM报文检测缺陷振荡处理的处理器,但是在OAM报文检测缺陷振荡处理的处理器读取缺陷信息之前,OAM检测会话有对应的OAM检测报文到达,所以实时状态位为0,不进行任何操作,本次处理结束。In step 1214, the latched state bit in the OAM detection session defect information is the defect generation state, and the real-time state bit is the defect exit state, indicating that the defect interruption of the OAM detection session has been reported to the OAM message detection defect oscillation process at present However, before the processor of OAM message detection defect oscillation processing reads the defect information, the corresponding OAM detection message arrives in the OAM detection session, so the real-time status bit is 0, no operation is performed, and this processing ends.
步骤1215:判断C_state是否为0。Step 1215: Determine whether C_state is 0.
在步骤1215中,判断返回的缺陷信息中实时状态位(C_state)是否为0,如果否,执行步骤1216,是则执行步骤1217。In step 1215, it is judged whether the real-time status bit (C_state) in the returned defect information is 0, if not, execute step 1216, and if yes, execute step 1217.
步骤1216:设置C_state为0、上报缺陷中断,本次处理结束。Step 1216: Set C_state to 0, report defect interruption, and this process ends.
在步骤1216中,OAM检测会话缺陷信息中的锁存状态位为缺陷退出状态,实时状态位为缺陷产生状态,表示目前已经将OAM检测会话的缺陷中断上报给OAM报文检测缺陷振荡处理的处理器,并且OAM报文检测缺陷振荡处理的处理器已经读取了OAM检测会话的缺陷信息,所以锁存状态位为0,因此需要更新实时状态位,即将C_state设置为0,并且上报缺陷中断给OAM报文检测缺陷振荡处理的处理器,本次处理结束。In step 1216, the latched state bit in the OAM detection session defect information is the defect exit state, and the real-time state bit is the defect generation state, indicating that the defect interruption of the OAM detection session has been reported to the OAM packet detection defect oscillation process at present and the OAM packet detection defect oscillation processing processor has read the defect information of the OAM detection session, so the latch status bit is 0, so it is necessary to update the real-time status bit, that is, set C_state to 0, and report the defect interrupt to A processor for OAM packet detection defect oscillation processing, and this processing ends.
步骤1217:不进行操作,本次处理结束。Step 1217: No operation is performed, and this processing ends.
在步骤1217中,OAM检测会话缺陷信息中的锁存状态位和实时状态位都为缺陷退出状态,表示目前OAM检测会话没有产生过缺陷中断,因此不进行任何操作,本次处理结束。In step 1217, both the latch status bit and the real-time status bit in the defect information of the OAM detection session are defect exit states, indicating that no defect interruption has occurred in the current OAM detection session, so no operation is performed, and this processing ends.
在步骤1200结束后,所述方法还包括:After step 1200 ends, the method also includes:
当缺陷中断上报至OAM报文检测缺陷振荡处理的处理器后,缺陷信息存储单元等待OAM报文检测缺陷振荡处理的处理器读取缺陷信息,此时可以继续更新每个OAM检测会话的缺陷信息,同时在OAM报文检测缺陷振荡处理的处理器读取完一个OAM检测会话的缺陷信息后,将缺陷信息里面的锁存状态位进行清零操作。After the defect is reported to the processor of OAM message detection defect oscillation processing, the defect information storage unit waits for the processor of OAM message detection defect oscillation processing to read the defect information, and can continue to update the defect information of each OAM detection session at this time , and at the same time, after the processor of the OAM packet detection defect oscillation processing reads the defect information of an OAM detection session, it clears the latch status bit in the defect information.
具体地,缺陷信息存储单元存储所有OAM检测报文的缺陷信息、响应缺陷信息处理单元及OAM报文检测缺陷振荡处理的处理器的操作请求。其中,缺陷信息存储单元对于缺陷信息处理单元的读取操作返回对应的缺陷信息,对于缺陷信息处理单元的写操作更新对应的缺陷信息,对于OAM报文检测缺陷振荡处理的处理器的读取请求返回对应的缺陷信息,同时将对应的缺陷信息中的锁存状态位(S_state)进行清零操作。Specifically, the defect information storage unit stores defect information of all OAM detection messages, and responds to the operation requests of the defect information processing unit and the processor for OAM message detection defect oscillation processing. Wherein, the defect information storage unit returns the corresponding defect information for the read operation of the defect information processing unit, updates the corresponding defect information for the write operation of the defect information processing unit, and the read request of the processor for OAM message detection defect oscillation processing The corresponding defect information is returned, and at the same time, the latch state bit (S_state) in the corresponding defect information is cleared.
综上,如图4所示,所述缺陷信息存储单元执行的缺陷信息存储方法包括以下步骤:In summary, as shown in Figure 4, the defect information storage method performed by the defect information storage unit includes the following steps:
步骤1301:初始化RAM。Step 1301: Initialize RAM.
在步骤1301中,初始化完成所述缺陷信息存储单元中存储缺陷信息的RAM,执行步骤1302。In step 1301, the RAM storing defect information in the defect information storage unit is initialized, and step 1302 is executed.
步骤1302:判断是否有操作请求。Step 1302: Determine whether there is an operation request.
在步骤1302中,判断是否有操作请求,如果否,执行步骤1303,有则执行步骤1306。In step 1302, it is judged whether there is an operation request, if not, execute step 1303, and if yes, execute step 1306.
步骤1303:判断是否为缺陷信息写操作。Step 1303: Determine whether it is a defect information writing operation.
在步骤1303中,判断是否为缺陷信息写操作,如果否执行步骤1304,有则执行步骤1307。In step 1303, it is judged whether it is a defect information write operation, if not, execute step 1304, if yes, execute step 1307.
步骤1304:判断是否为缺陷信息读操作。Step 1304: Determine whether it is a defect information read operation.
在步骤1304中,判断是否为缺陷信息读操作,如果否执行步骤1305,有则执行步骤1308。In step 1304, it is judged whether it is a defect information read operation, if not, execute step 1305, if yes, execute step 1308.
步骤1305:读取缺陷信息、返回至OAM报文检测缺陷振荡处理的处理器、设置S_state为0,本次处理结束。Step 1305: Read the defect information, return to the processor of OAM packet detection defect oscillation processing, set S_state to 0, and this processing ends.
在步骤1305中,根据读操作地址读取缺陷信息并返回至OAM报文检测缺陷振荡处理的处理器,并且将缺陷信息中的锁存状态位进行清零操作,即将S_state设置为0,本次处理结束。In step 1305, read the defect information according to the address of the read operation and return to the processor of OAM packet detection defect oscillation processing, and perform a clearing operation on the latch status bit in the defect information, that is, set S_state to 0, this time Processing is complete.
步骤1306:不进行操作,执行步骤1302。Step 1306: No operation, go to step 1302.
在步骤1306中,不执行任何操作,继续执行步骤1302。In step 1306, no operation is performed, and step 1302 is continued.
步骤1307:更新缺陷信息,本次处理结束。Step 1307: Update the defect information, and this process ends.
在步骤1307中,根据写操作中的地址,更新对应的缺陷信息,本次处理结束。In step 1307, according to the address in the write operation, the corresponding defect information is updated, and this processing ends.
步骤1308:读取缺陷信息、返回至缺陷信息处理单元,本次处理结束。Step 1308: Read the defect information, return to the defect information processing unit, and this processing ends.
在步骤1308中,根据地址读取缺陷信息,返回至缺陷信息处理单元,本次处理结束。In step 1308, read the defect information according to the address, return to the defect information processing unit, and this processing ends.
至此,OAM报文检测缺陷振荡处理的过程就完成了。So far, the process of OAM packet detection defect oscillation processing is completed.
实施例2Example 2
本发明实施例2提供了另一种OAM报文检测缺陷振荡处理的方法,所述方法包括:Embodiment 2 of the present invention provides another OAM packet detection defect oscillation processing method, the method comprising:
步骤510:从OAM检测报文中提取会话号及会话状态信息。Step 510: Extract the session number and session state information from the OAM detection message.
进一步地,所述从OAM检测报文中提取会话号及会话状态信息之前,所述方法还包括:Further, before extracting the session number and session state information from the OAM detection message, the method further includes:
当所述OAM检测报文在会话检测门限内到达时,接收所述OAM检测报文;When the OAM detection message arrives within the session detection threshold, receive the OAM detection message;
当所述OAM检测报文在所述会话检测门限内没有到达时,轮询使能的OAM检测会话,判断所述使能的OAM检测会话是否超时。When the OAM detection message does not arrive within the session detection threshold, the enabled OAM detection session is polled to determine whether the enabled OAM detection session times out.
步骤520:根据所述会话号读取对应的缺陷信息后,根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断。Step 520: After reading the corresponding defect information according to the session number, judge whether to report defect interruption according to the session state information and the defect information.
在步骤520中,所述根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断包括:In step 520, the judging whether to report defect interruption according to the session state information and the defect information includes:
当所述会话状态信息为报文到达信息时,判断锁存状态位及实时状态位,其中,所述缺陷信息包括所述锁存状态位及所述实时状态位;When the session status information is message arrival information, judge the latch status bit and the real-time status bit, wherein the defect information includes the latch status bit and the real-time status bit;
当所述锁存状态位为缺陷退出状态及所述实时状态位为缺陷产生状态时,上报所述缺陷中断;或者,When the latch status bit is a defect exit status and the real-time status bit is a defect generation status, report the defect interrupt; or,
当所述会话状态信息为会话超时信息时,判断所述锁存状态位及所述实时状态位;When the session status information is session timeout information, judge the latch status bit and the real-time status bit;
当所述锁存状态位及所述实时状态位为所述缺陷退出状态时,上报所述缺陷中断。When the latch status bit and the real-time status bit are the defect exit status, report the defect interrupt.
步骤530:接收所述缺陷中断后,读取所述缺陷信息。Step 530: After receiving the defect interrupt, read the defect information.
在步骤530中,OAM报文检测缺陷振荡处理的处理器接收所述缺陷中断后,读取所述缺陷信息。In step 530, the processor of OAM packet detection defect oscillation processing reads the defect information after receiving the defect interrupt.
进一步地,所述读取所述缺陷信息之后,所述方法还包括:Further, after reading the defect information, the method further includes:
将所述锁存状态位设置为所述缺陷退出状态。The latch status bit is set to the defect exit status.
这里,OAM报文检测缺陷振荡处理的装置将所述锁存状态位设置为所述缺陷退出状态。Here, the device for OAM message detection defect oscillation processing sets the latch status bit as the defect exit status.
需要说明的是,本发明实施例2提供的OAM报文检测缺陷振荡处理的方法的具体过程可参照本发明实施例1提供的OAM报文检测缺陷振荡处理的方法的具体过程。It should be noted that, for the specific process of the OAM packet detection defect oscillation processing method provided in Embodiment 2 of the present invention, refer to the specific process of the OAM packet detection defect oscillation processing method provided in Embodiment 1 of the present invention.
实施例3Example 3
图5为本发明实施例3提供OAM报文检测缺陷振荡处理的装置610的组成结构示意图,如图5所示,所述装置610包括:FIG. 5 is a schematic diagram of the composition and structure of an apparatus 610 for providing OAM packet detection defect oscillation processing according to Embodiment 3 of the present invention. As shown in FIG. 5 , the apparatus 610 includes:
OAM报文检测单元611,用于从OAM检测报文中提取会话号及会话状态信息。The OAM message detection unit 611 is configured to extract the session number and session state information from the OAM detection message.
进一步地,所述OAM报文检测单元611从OAM检测报文中提取会话号及会话状态信息之前,还用于当所述OAM检测报文在会话检测门限内到达时,接收所述OAM检测报文;当所述OAM检测报文在所述会话检测门限内没有到达时,轮询使能的OAM检测会话,判断所述使能的OAM检测会话是否超时。Further, before the OAM packet detection unit 611 extracts the session number and session state information from the OAM detection packet, it is also used to receive the OAM detection packet when the OAM detection packet arrives within the session detection threshold. When the OAM detection message does not arrive within the session detection threshold, poll the enabled OAM detection session to determine whether the enabled OAM detection session times out.
缺陷信息处理单元612,用于根据所述会话号读取对应的缺陷信息后,根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断;或者根据所述会话状态信息及所述缺陷信息判断是否仅更新所述缺陷信息。The defect information processing unit 612 is configured to judge whether to report a defect interruption according to the session state information and the defect information after reading the corresponding defect information according to the session number; or to judge according to the session state information and the defect information It is judged whether to update only the defect information.
具体地,所述缺陷信息处理单元612根据所述会话状态信息及所述缺陷信息判断是否上报缺陷中断包括:Specifically, the defect information processing unit 612 judging whether to report a defect interruption according to the session state information and the defect information includes:
当所述会话状态信息为报文到达信息时,判断锁存状态位及实时状态位,其中,所述缺陷信息包括所述锁存状态位及所述实时状态位;When the session status information is message arrival information, judge the latch status bit and the real-time status bit, wherein the defect information includes the latch status bit and the real-time status bit;
当所述锁存状态位为缺陷退出状态及所述实时状态位为缺陷产生状态时,上报所述缺陷中断;或者,When the latch status bit is a defect exit status and the real-time status bit is a defect generation status, report the defect interrupt; or,
当所述会话状态信息为会话超时信息时,判断所述锁存状态位及所述实时状态位;When the session status information is session timeout information, judge the latch status bit and the real-time status bit;
当所述锁存状态位及所述实时状态位为所述缺陷退出状态时,上报所述缺陷中断。When the latch status bit and the real-time status bit are the defect exit status, report the defect interrupt.
具体地,所述缺陷信息处理单元612根据所述会话状态信息及所述缺陷信息判断是否仅更新所述缺陷信息包括:Specifically, the defect information processing unit 612 judging whether to update only the defect information according to the session state information and the defect information includes:
当所述会话状态信息为所述报文到达信息时,判断所述锁存状态位及所述实时状态位;When the session state information is the packet arrival information, judge the latch state bit and the real-time state bit;
当所述锁存状态位及所述实时状态位为所述缺陷产生状态时,将所述实时状态位设置为所述缺陷退出状态;或者,When the latch status bit and the real-time status bit are the defect generation status, setting the real-time status bit to the defect exit status; or,
当所述会话状态信息为所述会话超时信息时,判断所述锁存状态位及所述实时状态位;When the session state information is the session timeout information, judge the latch state bit and the real-time state bit;
当所述锁存状态位为所述缺陷产生状态及所述实时状态位为所述缺陷退出状态时,将所述实时状态位设置为所述缺陷产生状态。When the latch status bit is the defect generation status and the real-time status bit is the defect exit status, the real-time status bit is set to the defect generation status.
缺陷信息存储单元613,用于存储所述缺陷信息及更新所述缺陷信息。The defect information storage unit 613 is configured to store the defect information and update the defect information.
实施例4Example 4
图5为本发明实施例4提供OAM报文检测缺陷振荡处理的系统的组成结构示意图,如图5所示,所述系统包括:FIG. 5 is a schematic diagram of the composition and structure of a system for providing OAM packet detection defect oscillation processing according to Embodiment 4 of the present invention. As shown in FIG. 5, the system includes:
OAM报文检测缺陷振荡处理的装置610,用于检测OAM检测报文、上报缺陷中断及提供缺陷信息。The device 610 for OAM packet detection defect oscillation processing is used to detect OAM detection packets, report defect interruption and provide defect information.
具体地,所述OAM报文检测缺陷振荡处理的装置610包括:Specifically, the device 610 for OAM packet detection defect oscillation processing includes:
OAM报文检测单元611,用于从OAM检测报文中提取会话号及会话状态信息;The OAM message detection unit 611 is used to extract the session number and session state information from the OAM detection message;
缺陷信息处理单元612,用于根据所述会话号读取对应的所述缺陷信息后,根据所述会话状态信息及所述缺陷信息判断是否上报所述缺陷中断;或者根据所述会话状态信息及所述缺陷信息判断是否仅更新所述缺陷信息;The defect information processing unit 612 is configured to judge whether to report the defect interruption according to the session state information and the defect information after reading the corresponding defect information according to the session number; or according to the session state information and The defect information determines whether only the defect information is updated;
缺陷信息存储单元613,用于存储所述缺陷信息及更新所述缺陷信息。The defect information storage unit 613 is configured to store the defect information and update the defect information.
OAM报文检测缺陷振荡处理的处理器620,用于接收所述缺陷中断后,读取所述缺陷信息。The processor 620 for OAM message detection defect oscillation processing is configured to read the defect information after receiving the defect interrupt.
具体地,所述OAM报文检测缺陷振荡处理的处理器620读取所述缺陷信息之后,所述OAM报文检测缺陷振荡处理的装置610中的缺陷信息存储单元613还用于将锁存状态位设置为缺陷退出状态,其中,所述缺陷信息包括所述锁存状态位。Specifically, after the processor 620 of the OAM packet detection defect oscillation processing reads the defect information, the defect information storage unit 613 in the OAM packet detection defect oscillation processing device 610 is also used to store the latch state A bit is set to a defect exit status, wherein the defect information includes the latch status bit.
在实际应用中,所述OAM报文检测缺陷振荡处理的装置610、所述OAM报文检测单元611、所述缺陷信息处理单元612及所述缺陷信息存储单元613均可由位于任意计算机设备中的进阶精简指令集机器(ARM,Advanced RISCMachines)、专用集成电路(ASIC,Application Specific Integrated Circuit)或可编程逻辑阵列(FPGA,Field Programmable Gate Array)实现。所述OAM报文检测缺陷振荡处理的处理器620可由位于任意计算机设备中的协处理器(Co-processor)实现。In practical applications, the device 610 for OAM packet detection defect oscillation processing, the OAM packet detection unit 611, the defect information processing unit 612 and the defect information storage unit 613 can all be located in any computer equipment Advanced reduced instruction set machine (ARM, Advanced RISCMachines), application specific integrated circuit (ASIC, Application Specific Integrated Circuit) or programmable logic array (FPGA, Field Programmable Gate Array) implementation. The processor 620 for OAM packet detection defect oscillation processing may be implemented by a co-processor (Co-processor) located in any computer device.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.
Claims (13)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510482360.4A CN106411556A (en) | 2015-08-03 | 2015-08-03 | OAM message detection defect oscillation processing method, apparatus and system thereof |
PCT/CN2016/083564 WO2017020640A1 (en) | 2015-08-03 | 2016-05-26 | Oam message processing method, device, system, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510482360.4A CN106411556A (en) | 2015-08-03 | 2015-08-03 | OAM message detection defect oscillation processing method, apparatus and system thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106411556A true CN106411556A (en) | 2017-02-15 |
Family
ID=57942396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510482360.4A Withdrawn CN106411556A (en) | 2015-08-03 | 2015-08-03 | OAM message detection defect oscillation processing method, apparatus and system thereof |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106411556A (en) |
WO (1) | WO2017020640A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112291087A (en) * | 2020-10-19 | 2021-01-29 | 盛科网络(苏州)有限公司 | Method and device for realizing OAM error state reporting |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080037436A1 (en) * | 2005-03-25 | 2008-02-14 | Huawei Technologies Co., Ltd. | Method and system for detecting link failure between nodes in a hybrid network |
CN101355466A (en) * | 2008-09-01 | 2009-01-28 | 中兴通讯股份有限公司 | Method and apparatus for transmitting continuous check information message |
CN101442454A (en) * | 2008-12-16 | 2009-05-27 | 中兴通讯股份有限公司 | Equipment and method for restraining OAM concussion alarm |
CN101599882A (en) * | 2009-06-17 | 2009-12-09 | 中兴通讯股份有限公司 | Be used to realize the method and the device of Ethernet point-to-point remote loopback |
US20140029442A1 (en) * | 2012-07-24 | 2014-01-30 | Accedian Networks Inc. | Automatic setup of reflector instances |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FI122373B (en) * | 2002-10-24 | 2011-12-30 | Tellabs Oy | Procedure, arrangement and network elements detect a connection error |
CN101068170A (en) * | 2007-06-05 | 2007-11-07 | 华为技术有限公司 | Message abnormal receiving detecting method, system and device thereof |
CN101330442B (en) * | 2007-06-20 | 2010-12-08 | 中兴通讯股份有限公司 | Method for transferring defect indication information based on sharing reverse path |
CN101826990A (en) * | 2009-03-05 | 2010-09-08 | 华为技术有限公司 | Method, device and system for detecting connectedness of virtual pseudo wires |
-
2015
- 2015-08-03 CN CN201510482360.4A patent/CN106411556A/en not_active Withdrawn
-
2016
- 2016-05-26 WO PCT/CN2016/083564 patent/WO2017020640A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080037436A1 (en) * | 2005-03-25 | 2008-02-14 | Huawei Technologies Co., Ltd. | Method and system for detecting link failure between nodes in a hybrid network |
CN101355466A (en) * | 2008-09-01 | 2009-01-28 | 中兴通讯股份有限公司 | Method and apparatus for transmitting continuous check information message |
CN101442454A (en) * | 2008-12-16 | 2009-05-27 | 中兴通讯股份有限公司 | Equipment and method for restraining OAM concussion alarm |
CN101599882A (en) * | 2009-06-17 | 2009-12-09 | 中兴通讯股份有限公司 | Be used to realize the method and the device of Ethernet point-to-point remote loopback |
US20140029442A1 (en) * | 2012-07-24 | 2014-01-30 | Accedian Networks Inc. | Automatic setup of reflector instances |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112291087A (en) * | 2020-10-19 | 2021-01-29 | 盛科网络(苏州)有限公司 | Method and device for realizing OAM error state reporting |
CN112291087B (en) * | 2020-10-19 | 2022-08-26 | 苏州盛科通信股份有限公司 | Method and device for realizing OAM error state reporting |
Also Published As
Publication number | Publication date |
---|---|
WO2017020640A1 (en) | 2017-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105516080B (en) | TCP connection processing method, device and system | |
JP6226348B2 (en) | Method for transmitting heartbeat message and portable terminal | |
CN103560898B (en) | A kind of port status method to set up, the system of selection of port priority and device | |
CN104980293B (en) | A kind of OAM message is quickly sent and the method and device of detection processing | |
CN105323259B (en) | A kind of method and apparatus preventing synchronous packet attack | |
CN102917389B (en) | The method and device of base station transmission self-inspection in a kind of LTE system | |
WO2016078312A1 (en) | Single board testing method and device | |
CN109245955A (en) | A kind of data processing method, device and server | |
CN105515901A (en) | Message processing apparatus and method | |
CN103999406A (en) | Communication path processing method and apparatus | |
WO2016187979A1 (en) | Transmitting method and apparatus for bidirectional forwarding detection (bfd) message | |
US11647104B2 (en) | Data processing method and apparatus, and device | |
CN105721235A (en) | Method and apparatus for detecting connectivity | |
CN105871661A (en) | Public network server detection method and detection server | |
CN103634166A (en) | Equipment survival detection method and equipment survival detection device | |
CN106899554A (en) | A kind of method and device for preventing ARP from cheating | |
CN106411556A (en) | OAM message detection defect oscillation processing method, apparatus and system thereof | |
CN101945083B (en) | Authentication method and counterfeit judgment method for virtual router redundancy protocol | |
CN103384265B (en) | The application layer implementation method of GVRP agreement and system | |
CN103139820A (en) | Link detection method and network elements | |
CN103746842B (en) | The method and system that a kind of detection line card failure is restarted | |
CN106230658A (en) | A kind of method and apparatus monitoring the network equipment | |
CN107391036A (en) | The VPD information access method and system of a kind of storage | |
CN112612670B (en) | Session information statistical method, device, exchange equipment and storage medium | |
CN116319268A (en) | Network packet loss processing method, system and related components |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170215 |