WO2012079369A1 - 一种识别和处理异常帧的方法和系统 - Google Patents

一种识别和处理异常帧的方法和系统 Download PDF

Info

Publication number
WO2012079369A1
WO2012079369A1 PCT/CN2011/077436 CN2011077436W WO2012079369A1 WO 2012079369 A1 WO2012079369 A1 WO 2012079369A1 CN 2011077436 W CN2011077436 W CN 2011077436W WO 2012079369 A1 WO2012079369 A1 WO 2012079369A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
protocol
oam
abnormal
data
Prior art date
Application number
PCT/CN2011/077436
Other languages
English (en)
French (fr)
Inventor
彭明
滕达
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012079369A1 publication Critical patent/WO2012079369A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements

Definitions

  • the present invention relates to a technique for optical fiber transmission using the TS-1000 protocol, and more particularly to a method and system for identifying and processing anomalous frames. Background technique
  • Optical fiber is a light-conducting tool that utilizes the principle of total reflection of light in fibers made of glass or plastic.
  • Optical fiber is an important network transmission medium. Compared with other network transmission media, optical fiber has the following advantages: frequency bandwidth, low loss, light weight, strong anti-interference ability, high fidelity and reliable performance.
  • Optical fiber transmission mode can also be divided into single mode fiber (SMF) and multimode fiber (MMF). Among them, single mode fiber can only transmit one mode of light at a specified wavelength, and its transmission distance is relatively long.
  • the TS-1000 protocol is a standard protocol tailored by Japan to advance its own Fiber To The Home (FTTH) strategy. It was developed by the Japan Telecommunications Technical Committee in 2003.
  • the standard defines three-way 100 Mbps single-mode fiber bidirectional transmission: Class S for short distances, Class A for medium distances, and Class B for long distances.
  • the standard also defines a 12-byte short frame for operation, management, and maintenance (OAM) functions to solve the point-to-point (Peer-) of the traditional media converter (MC). to-Peer, P2P) There is no problem with network management capabilities.
  • This 12-byte short frame is specified in the latest version of the TS-1000 protocol released in January 2004 as: Frame length is 96 bits (12 bytes); First byte is frame Preamble; the second and third bytes are command bytes; the fourth and fifth bytes are status bytes; the sixth to eighth bytes are Vendor Code; the ninth to eleventh bytes are Model Code; The second byte is the Cyclic Redundancy Check (CRC) check result.
  • the protocol also specifies that there is a valid frame interval (IFG) before and after the OAM frame.
  • a 12-byte OAM frame can be inserted into the normally transmitted network data to complete the network management. Therefore, two data frame structures can be transmitted in a device supporting the TS-1000 protocol, one is a normal user frame or a loopback frame conforming to the general 802.3 protocol, and the other is an OAM frame conforming to the TS-1000 protocol.
  • the insertion of the OAM frame is not affected by the current data transmission state of the device, and can interrupt an 802.3 protocol being transmitted.
  • a normal user frame or a loopback frame directly inserts an OAM frame therein.
  • FIG. 1 is a schematic diagram showing the structure of a user frame inserted into an OAM frame. As shown in Figure 1, the upper structure is the structure of the complete user frame data.
  • the interrupted user frame field length is exactly 12 bytes, and satisfies the OAM frame characteristics specified in the TS-1000 protocol, that is, the first 8 bits are preamble, and the 9th bit is 0, the last byte is the CRC check result, which may cause the data receiver to incorrectly identify this field as another OAM frame, causing an abnormal operation.
  • the TS-1000 protocol specifies the OAM frame characteristics specified in the TS-1000 protocol.
  • the main object of the present invention is to provide a method and system for identifying and processing an abnormal frame, which can prevent the receiving end from receiving an abnormal frame, and in particular, can recognize the interrupted data frame similar to the OAM frame structure. And perform exception handling.
  • the present invention provides a method for identifying and processing an abnormal frame, the method comprising: listening for transmitted data, according to a frame structure specified by the TS-1000 protocol and the 802.3 protocol, and The transmission state of the OAM frame identifies an abnormal frame; abnormal processing is performed on the abnormal frame.
  • the frame structure specified by the TS-1000 protocol and the 802.3 protocol, and the sending status of the OAM frame identify an abnormal frame, including:
  • the transmitted data is analyzed according to the frame structure specified by the TS-1000 protocol and the 802.3 protocol.
  • the transmitted data frame satisfies the frame structure specified by the 802.3 protocol, the data frame is a normal user frame or a loopback frame;
  • the transmitted data frame conforms to the OAM frame structure, it is determined whether the frame is an abnormal frame according to the sending state of the OAM frame. If the OAM frame is being sent, the data frame is a normal OAM frame, otherwise the data frame is an abnormal frame;
  • the data frame is an abnormal frame.
  • the data to be monitored is: a user frame generated according to the 802.3 protocol, and/or a loopback frame generated according to the 802.3 protocol, and/or an OAM frame generated according to the TS-1000 protocol.
  • the sending status of the OAM frame is:
  • the system module responsible for generating the OAM frame generates an OAM frame according to the management requirement, and notifies the system module responsible for monitoring when the OAM frame is sent.
  • the exception processing includes: preventing the abnormal frame from continuing to be transmitted, and/or modifying the abnormal frame.
  • the present invention also provides a system for identifying and processing an abnormal frame, the system comprising: an OAM frame generating module, a listening module and an exception handling module, wherein
  • the OAM frame generating module is configured to generate and send an OAM frame, and notify the monitoring module of a sending status of the OAM frame;
  • the monitoring module is configured to monitor the sent data, identify the abnormal frame according to the frame structure specified by the TS-1000 protocol and the 802.3 protocol, and the sending state of the OAM frame, and send the abnormal frame to the Exception handling module;
  • the exception processing module is configured to perform exception processing on the abnormal frame.
  • the intercepting module identifies the abnormal frame according to the frame structure specified by the TS-1000 protocol and the 802.3 protocol, and the sending state of the OAM frame, including:
  • the monitoring module analyzes the sent data according to the frame structure specified by the TS-1000 protocol and the 802.3 protocol.
  • the transmitted data frame satisfies the frame structure specified by the 802.3 protocol, the data frame is a normal user frame or a loopback frame.
  • the transmitted data frame conforms to the OAM frame structure, it is determined whether the frame is an abnormal frame according to the sending state of the OAM frame. If the OAM frame is being sent, the data frame is a normal OAM frame, otherwise the data frame is an abnormal frame;
  • the data frame is an abnormal frame.
  • the data sent by the monitoring module includes: a user frame generated according to the 802.3 protocol, and/or a loopback frame generated according to the 802.3 protocol, and/or an OAM frame generated according to the TS-1000 protocol.
  • the OAM frame generating module generates and sends an OAM frame, and notifies the monitoring module of the OAM frame sending state that the OAM frame generating module generates an OAM frame according to the management requirement, and sends the OAM frame while transmitting the OAM frame. Notifying the listening module.
  • the exception processing module performs exception processing, including: preventing the abnormal frame from continuing to be sent, and/or modifying the abnormal frame.
  • the method and system for identifying and processing an abnormal frame provided by the present invention, by monitoring the transmitted data, identifying an abnormal frame according to a frame structure specified by the TS-1000 protocol and the 802.3 protocol, and a transmission state of the OAM frame; Perform exception handling.
  • the sender device supporting the TS-1000 protocol implements data control on the basis of monitoring, that is, identifies an abnormal frame, and processes the abnormal frame. Ensure that the receiving end does not receive an abnormal frame, or even if invalid information is received It is also not recognized as a valid OAM frame, which increases the robustness of the TS-1000 protocol.
  • the TS-1000 device using the method and system of the present invention can avoid faults caused by misidentification of OAM frames and improve reliability.
  • FIG. 1 is a schematic diagram showing a structure comparison of a user frame insertion OAM frame
  • FIG. 2 is a schematic flow chart of a method for identifying and processing an abnormal frame according to the present invention
  • FIG. 3 is a schematic structural diagram of a system for identifying and processing an abnormal frame according to the present invention. detailed description
  • the basic idea of the present invention is to monitor the transmitted data, identify an abnormal frame according to the frame structure specified by the TS-1000 protocol and the 802.3 protocol, and the transmission state of the OAM frame; and perform exception processing on the abnormal frame.
  • FIG. 2 is a schematic flowchart of a method for identifying and processing an abnormal frame according to the present invention. As shown in FIG. 2, the method specifically includes the following steps:
  • Step 201 Listening to the sent data, and identifying an abnormal frame according to a frame structure specified by the TS-1000 protocol and the 802.3 protocol, and a sending state of the OAM frame;
  • the frame structure specified by the TS-1000 protocol and the 802.3 protocol, and the sending status of the OAM frame identify an abnormal frame, including: analyzing the sent data according to a frame structure specified by the TS-1000 protocol and the 802.3 protocol, When the data frame currently ready to be transmitted satisfies the characteristics specified in the 802.3 protocol, that is, the frame structure conforms to the first to seventh bytes as a preamble, and the eighth byte is a Start Frame Delimiter (SFD), and data. If the frame length is greater than or equal to 64 bytes, and the last 4 bytes are CRC check results, it indicates that the data frame is a normal user frame or loopback frame; when the transmitted data frame conforms to the frame structure, that is, the frame structure.
  • SFD Start Frame Delimiter
  • the first 8 bits are preamble, the 9th bit is 0, the data frame is 12 bytes long, and the last byte is CRC. If the OAM frame is being sent, the data frame is a normal OAM frame. If no OAM frame is sent at this time, the data frame is an abnormal frame. . When the data frame currently being prepared does not satisfy the characteristics of the frame structure specified in the 802.3 protocol and the TS-1000 protocol, the current data frame is also an abnormal frame.
  • the data sent includes: a user frame generated according to the 802.3 protocol, and/or a loopback frame generated according to the 802.3 protocol, and/or an OAM frame generated according to the TS-1000 protocol.
  • the sending status of the OAM frame is specifically as follows: The system module responsible for generating the OAM frame generates an OAM frame according to the management requirement, and notifies the system module responsible for the monitoring when the OAM frame is sent.
  • Step 202 Perform exception processing on the abnormal frame.
  • the exception processing includes: preventing the abnormal frame from continuing to be transmitted, and/or modifying the abnormal frame. If the abnormal frame belongs to a frame structure that does not satisfy the 802.3 protocol and the TS-1000 protocol, the transmission of the abnormal frame is directly blocked; if the transmission state of the OAM frame is not sent, but the data frame conforms to the OAM frame. An anomalous frame of the structure that blocks transmission, and/or modifies the exception frame. In practical applications, programmable logic devices are usually used.
  • FPGA Field-Programmable Gate Array
  • Mil Media Independent Interface
  • the TX-EN pin or other control signal on the FPGA control block may be used to prevent the data of the OAM frame structure or the error frame structure from continuing to be transmitted, and/or to conform to the OAM frame structure.
  • the data is modified. Modifying the data conforming to the OAM frame structure, so that the receiving end does not mistake the data conforming to the OAM frame structure to a normal OAM frame, for example: modifying the length of the data to not 12 bytes. Further, after modifying the abnormal frame that conforms to the OAM frame structure, the method further includes: sending the modified abnormal frame.
  • the sending status of the OAM frame includes: a system module responsible for generating an OAM frame directly notifying a system module responsible for monitoring, or forwarding a notification message by an upper layer CPU. Place The triggering performs exception handling on the exception frame, including: The system module responsible for monitoring directly sends the exception frame to the system module responsible for exception processing, or triggers the system module responsible for exception processing to perform exception processing by the control of the upper CPU.
  • the system module responsible for monitoring directly sends the exception frame to the system module responsible for exception processing, or triggers the system module responsible for exception processing to perform exception processing by the control of the upper CPU.
  • the monitoring and exception processing can be centrally managed, which is more conducive to filtering and protecting the data that needs to be sent.
  • FIG. 3 is a schematic structural diagram of a system for identifying and processing an abnormal frame according to the present invention. As shown in FIG. 3, the system includes: an OAM frame generating module 31, a listening module 32, and an exception processing module 33, wherein
  • the OAM frame generating module 31 is configured to generate and send an OAM frame, and notify the monitoring module 32 of the OAM frame sending status;
  • the OAM frame generating module 31 generates and sends an OAM frame according to the actual running state of the device currently supporting the TS-1000 protocol.
  • the content of the notification is specifically that an OAM frame is currently being sent.
  • the monitoring module 32 is configured to monitor the transmitted data, and identify an abnormal frame according to the frame structure specified by the TS-1000 protocol and the 802.3 protocol, and the sending state of the OAM frame, and send the abnormal frame to the exception processing module 33;
  • the frame structure specified by the TS-1000 protocol and the 802.3 protocol, and the sending status of the OAM frame identify an abnormal frame, including: the intercepting module 32 sends according to a frame structure pair specified by the TS-1000 protocol and the 802.3 protocol.
  • the data is analyzed, when the data frame currently ready to be transmitted satisfies the characteristics specified in the 802.3 protocol, that is, the frame structure conforms to the first to seventh bytes as the preamble, the eighth byte is the SFD, and the data frame length is greater than or equal to 64 words.
  • the last 4 bytes are the CRC check result, it indicates that the data frame is a normal user frame or a loopback frame;
  • the transmitted data frame conforms to the OAM frame structure, that is, the frame structure conforms to the first 8 bits as a preamble, The ninth bit is 0, the length of the data frame is 12 bytes, and when the last byte is the CRC check result, whether the abnormal frame is determined according to the transmission state of the OAM frame, if the OAM frame is being sent, Indicates that this data frame is a normal OAM frame. If no OAM frame is sent at this time, this data frame is an abnormal frame.
  • the data sent includes: a user frame generated according to the 802.3 protocol, and/or a loopback frame generated according to the 802.3 protocol, and/or an AU frame generated according to the TS-1000 protocol.
  • the exception processing module 33 is configured to perform exception processing on the abnormal frame.
  • the exception processing module 33 performs exception processing, including: preventing the abnormal frame from continuing to be transmitted, and/or modifying the abnormal frame. If the abnormal frame belongs to a frame structure that does not satisfy the 802.3 protocol and the TS-1000 protocol, the transmission of the abnormal frame is directly blocked; if the transmission state of the OAM frame is not sent, but the data frame conforms to the OAM frame. An exception frame of the structure, which is blocked from being sent, and/or modified for the exception frame. In practical applications, FPGAs are usually used for data monitoring and exception handling. The FPGA connects to the PHY chip and sends data through the PHY chip.
  • the TX-EN pin or other control signal on the ⁇ interface may be controlled by the FPGA to prevent the data of the OAM frame structure or the error frame structure from continuing to be transmitted, and/or to the compliant OAM frame.
  • the structure data is modified. Modifying the data conforming to the OAM frame structure, so that the receiving end does not mistake the data conforming to the OAM frame structure to a normal OAM frame, for example: modifying the length of the data to not 12 bytes. Further, after modifying the abnormal frame that conforms to the OAM frame structure, the method further includes: sending the modified abnormal frame.
  • system further includes: an upper CPU, the upper CPU, configured to:
  • the transmission status of the OAM frame sent by the OAM frame generation module 31 is forwarded to the monitoring module 32, and/or the exception processing performed by the exception processing module 33 for the abnormal frame is triggered according to the abnormal frame reported by the monitoring module 32.
  • the upper CPU can perform centralized management of the monitoring and exception processing process by using the upper CPU to send the OAM frame and trigger the exception processing, which is more advantageous for filtering the data to be sent and Protection.
  • each functional module can be placed in a separate functional device, or can be run on a common hardware platform in the form of software or logic code without occupying a separate hardware structure to save hardware costs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

本发明公开了一种识别和处理异常帧的方法,所述方法包括:监听发送的数据,根据TS-1000协议和802.3协议规定的帧结构,以及操作、管理、维护(OAM)帧的发送状态识别出异常帧;对所述异常帧进行异常处理。本发明还公开了一种识别和处理异常帧的系统,通过上述方法和系统,使得支持TS-1000协议的发送端设备在监听的基础上实现了数据控制,即识别出异常帧,并对异常帧进行处理。保证了接收端不会接收到异常帧,或者即便接收到无效信息也不会误识别为有效的OAM帧,从而增加了TS-1000协议的健壮性,并且提高了支持TS-1000协议的设备的可靠性。

Description

一种识别和处理异常帧的方法和系统 技术领域
本发明涉及利用 TS-1000协议进行光纤传输的技术, 特别是指一种识 别和处理异常帧的方法和系统。 背景技术
光导纤维简称光纤, 是一种利用光在玻璃或塑料制成的纤维中的全反 射原理而达成的光传导工具。 光纤是一种重要的网络传输介质。 对比其他 网络传输介质, 光纤具有: 频带宽、 损耗低、 重量轻、 抗干扰能力强、 保 真度高、工作性能可靠等优点。光纤按传输模式还可以分为单模光纤( Single Mode Fiber, SMF )和多模光纤( Multi Mode Fiber, MMF )。 其中, 单模光 纤只能在指定波长下传输一种模式的光, 其传输距离相对较长。
TS-1000 协议是日本为推进其本国光纤入户 (Fiber To The Home , FTTH ) 的战略而量身定做的一个标准协议, 于 2003年由日本电信技术委 员会制定。所述标准中定义了三种距离的 100 Mbps单模光纤双向传输方式: 针对短距离的 Class S、针对中等距离的 Class A、针对长距离的 Class B。 所 述标准中还定义了一个 12字节的短帧, 用于操作、 管理、 维护(Operation Administration and Maintenance, OAM )功能,以解决传统媒体转换器( Media Converter, MC ) 方式的点对点 ( Peer-to-Peer, P2P ) 没有网络管理能力的 问题。这种 12字节的短帧 ,即 OAM帧的格式在 2004年 1月发布的 TS-1000 协议的最新版本第 2版中规定为: 帧长为 96bit ( 12字节); 首字节为帧前 缀(preamble ); 第二、 三字节为命令字节; 第四、 五字节为状态字节; 第 六至八字节为 Vendor Code; 第九至十一字节为 Model Code; 第十二字节为 循环冗余校验码(Cyclic Redundancy Check, CRC )校验结果。 此外, 所述 协议还规定 OAM帧的前后各有一个有效的帧间隔 ( IFG )。
在支持 TS-1000协议的设备运行过程中, 可以在正常传输的网络数据 中插入 12 字节的 OAM帧, 来完成网络的管理工作。 因此在支持 TS-1000 协议的设备中可以传输两种数据帧结构,一种是遵循通用 802.3协议的普通 用户帧或者环回帧, 另一种是遵循 TS-1000协议的 OAM帧。 OAM帧的插 入不受设备当前数据传输状态的影响,可以打断一个正在传输的 802.3协议 普通用户帧或环回帧直接在其中插入 OAM帧。
按照 TS-1000协议规定,被 OAM帧打断的 802.3协议普通用户帧应该 被丟弃, 但是在实际应用过程中数据接收端仍然能够接收到这些数据。 同 时,数据接收端对 OAM帧的识别方式是固定的,所以一个被打断的普通用 户帧如果满足 OAM帧的结构特征,就会被数据接收端识别为有效 OAM帧。 图 1为用户帧插入 OAM帧的结构对比示意图,如图 1所示,上方的结构为 完整的用户帧数据的结构。 如果插入了一个 OAM帧, 如下方的结构所示, 被打断的用户帧字段长度恰好为 12 字节, 且满足 TS-1000协议中规定的 OAM帧特征, 即前 8bits为 preamble, 第 9bit为 0, 最后一个字节为 CRC 校验结果, 则可能导致数据接收端将这一字段错误地识别为另一个 OAM 帧, 从而引发异常操作。 而对于这个问题, 现阶段 TS- 1000协议中没有相 关的解决方案。 发明内容
有鉴于此, 本发明的主要目的在于提供一种识别和处理异常帧的方法 和系统, 能够避免接收端接收到异常帧,特别是能够识别出与 OAM帧结构 类似的被打断的数据帧, 并进行异常处理。
为达到上述目的, 本发明的技术方案是这样实现的:
本发明提供了一种识别和处理异常帧的方法, 所述方法包括: 监听发送的数据, 根据 TS-1000协议和 802.3协议规定的帧结构, 以及 OAM帧的发送状态识别出异常帧; 对所述异常帧进行异常处理。
其中, 所述根据 TS-1000协议和 802.3协议规定的帧结构, 以及 OAM 帧的发送状态识别出异常帧, 包括:
根据 TS-1000协议和 802.3协议规定的帧结构对发送的数据进行分析, 当发送的数据帧满足 802.3协议规定的帧结构,则此数据帧是正常的用户帧 或环回帧;
当发送的数据帧符合 OAM帧结构,根据 OAM帧的发送状态来确定是 否为异常帧, 如果 OAM帧正在发送, 则此数据帧是正常的 OAM帧, 否则 此数据帧是异常帧;
当发送的数据帧不满足 802.3协议与 TS-1000协议中规定的帧结构的特 点时, 此数据帧是异常帧。
其中,被监听的所述发送的数据, 包括:根据 802.3协议生成的用户帧, 和 /或根据 802.3协议生成的环回帧, 和 /或根据 TS-1000协议生成的 OAM 帧。
其中, 所述 OAM帧的发送状态, 为: 由负责生成 OAM帧的系统模块 根据管理需要生成 OAM帧,在发送 OAM帧的同时将发送状态通知负责监 听的系统模块。
其中, 所述异常处理, 包括: 阻止所述异常帧继续发送, 和 /或对所述 异常帧进行修改。
本发明还提供了一种识别和处理异常帧的系统, 所述系统包括: OAM 帧生成模块, 监听模块和异常处理模块, 其中,
所述 OAM帧生成模块, 用于生成并发送 OAM帧, 将 OAM帧的发送 状态通知所述监听模块;
所述监听模块, 用于监听发送的数据, 根据 TS-1000协议和 802.3协议 规定的帧结构, 以及 OAM帧的发送状态识别出异常帧,将异常帧发送给所 述异常处理模块;
所述异常处理模块, 用于对所述异常帧进行异常处理。
其中, 所述监听模块根据 TS-1000协议和 802.3协议规定的帧结构, 以 及 OAM帧的发送状态识别出异常帧, 包括:
所述监听模块根据 TS-1000协议和 802.3协议规定的帧结构对发送的数 据进行分析, 当发送的数据帧满足 802.3协议规定的帧结构, 则此数据帧是 正常的用户帧或环回帧;
当发送的数据帧符合 OAM帧结构,根据 OAM帧的发送状态来确定是 否为异常帧, 如果 OAM帧正在发送, 则此数据帧是正常的 OAM帧, 否则 此数据帧是异常帧;
当发送的数据帧不满足 802.3协议与 TS-1000协议中规定的帧结构的特 点时, 此数据帧是异常帧。
其中, 所述监听模块监听的发送的数据, 包括: 根据 802.3协议生成的 用户帧, 和 /或根据 802.3协议生成的环回帧, 和 /或根据 TS-1000协议生成 的 OAM帧。
其中, 所述 OAM帧生成模块生成并发送 OAM帧, 将 OAM帧的发送 状态通知所述监听模块,为:所述 OAM帧生成模块根据管理需要生成 OAM 帧, 在发送 OAM帧的同时将发送状态通知所述监听模块。
其中, 所述异常处理模块进行异常处理, 包括: 阻止所述异常帧继续 发送, 和 /或对所述异常帧进行修改。
本发明所提供的识别和处理异常帧的方法和系统, 通过监听发送的数 据, 根据 TS-1000协议和 802.3协议规定的帧结构, 以及 OAM帧的发送状 态识别出异常帧; 对所述异常帧进行异常处理。 使得支持 TS-1000协议的 发送端设备在监听的基础上实现了数据控制, 即识别出异常帧, 并对异常 帧进行处理。 保证了接收端不会接收到异常帧, 或者即使接收到无效信息 也不会误识别为有效的 OAM帧,从而增加了 TS-1000协议的健壮性。使用 本发明方法和系统的 TS- 1000设备可以避免因 OAM帧误识别而出现的故 障, 提升了可靠性。 附图说明
图 1为用户帧插入 OAM帧的结构对比示意图;
图 2为本发明一种识别和处理异常帧的方法流程示意图;
图 3为本发明一种识别和处理异常帧的系统结构示意图。 具体实施方式
本发明的基本思想是监听发送的数据,根据 TS-1000协议和 802.3协议 规定的帧结构, 以及 OAM帧的发送状态识别出异常帧;对所述异常帧进行 异常处理。
下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。 图 2为本发明一种识别和处理异常帧的方法流程示意图, 如图 2所示, 所述方法具体包括以下步骤:
步骤 201 , 监听发送的数据, 根据 TS-1000协议和 802.3协议规定的帧 结构, 以及 OAM帧的发送状态识别出异常帧;
具体的,所述根据 TS-1000协议和 802.3协议规定的帧结构,以及 OAM 帧的发送状态识别出异常帧, 包括: 根据 TS-1000协议和 802.3协议规定的 帧结构对发送的数据进行分析,当目前准备发送的数据帧满足 802.3协议规 定的特点, 也就是说帧结构符合第 1至第 7字节为 preamble, 第 8字节为 帧首定界符(Start Frame Delimiter, SFD ) , 以及数据帧长度大于等于 64 字节, 最后 4个字节为 CRC校验结果时, 则说明此数据帧是正常的用户帧 或环回帧; 当发送的数据帧符合 ΟΑΜ帧结构,也就是说帧结构符合前 8bits 为 preamble, 第 9bit为 0, 数据帧的长度为 12字节, 最后一个字节为 CRC 校验结果时, 根据 OAM帧的发送状态来确定是否为异常帧, 如果 OAM帧 正在发送,则说明此数据帧是正常的 OAM帧,如果此时没有 OAM帧发送, 则此数据帧是异常帧。 当目前准备发送的数据帧不满足 802.3 协议与 TS-1000协议中规定的帧结构的特点时, 当前的数据帧同样也是异常帧。 其 中, 所述发送的数据包括: 根据 802.3协议生成的用户帧, 和 /或根据 802.3 协议生成的环回帧,和 /或 4艮据 TS-1000协议生成的 OAM帧。所述 OAM帧 的发送状态具体为: 由负责生成 OAM 帧的系统模块根据管理需要生成 OAM帧, 在发送 OAM帧的同时将发送状态通知负责监听的系统模块。
步骤 202, 对所述异常帧进行异常处理。
具体的, 所述异常处理包括: 阻止所述异常帧继续发送, 和 /或对所述 异常帧进行修改。 其中, 如果所述异常帧属于不满足 802.3协议与 TS-1000 协议中规定的帧结构的情况, 直接阻止所述异常帧的发送; 如果 OAM帧的 发送状态是没有发送,但数据帧符合 OAM帧结构的异常帧,对其进行阻止 发送, 和 /或对异常帧进行修改。 在实际应用中, 通常釆用可编程逻辑器件
( Field-Programmable Gate Array, FPGA )进行数据的监听和异常处理, FPGA通过介质无关接口 (Media Independent Interface, Mil )连接物理层
( PHY )芯片,并通过 PHY芯片发送数据。在异常处理中,可以通过 FPGA 控制 ΜΠ上的 TX— EN管脚或其他控制信号, 阻止所述符合 OAM帧结构的 数据或错误帧结构的数据继续发送, 和 /或对所述符合 OAM帧结构的数据 进行修改。 其中, 对所述符合 OAM帧结构的数据进行修改, 目的在于使接 收端不会将所述符合 OAM帧结构的数据误认为正常的 OAM帧,所述修改 例如: 将数据的长度修改成不为 12字节。 进一步的, 对所述符合 OAM帧 结构的异常帧进行修改之后, 还包括: 发送修改后的异常帧。
进一步的, 所述 OAM帧的发送状态, 包括: 负责生成 OAM帧的系统 模块直接通知负责监听的系统模块, 或者通过上层 CPU转发通知消息。 所 述触发对异常帧进行异常处理, 包括: 负责监听的系统模块直接将异常帧 发送给负责异常处理的系统模块, 或者通过上层 CPU的控制触发负责异常 处理的系统模块进行异常处理。 通过上层 CPU对 OAM帧的发送状态和触 发异常处理, 可以对监听和异常处理过程集中管理, 更有利于对需要发送 的数据进行过滤和保护。
图 3为本发明一种识别和处理异常帧的系统结构示意图, 如图 3所示, 所述系统包括: OAM帧生成模块 31 , 监听模块 32和异常处理模块 33 , 其 中,
所述 OAM帧生成模块 31 , 用于生成并发送 OAM帧, 将 OAM帧发送 状态通知所述监听模块 32;
具体的, 所述 OAM帧生成模块 31根据当前支持 TS-1000协议的设备 的实际运行状态生成并发送 OAM帧。 所述通知的内容具体为当前有 OAM 帧正在发送。
所述监听模块 32, 用于监听发送的数据, 根据 TS-1000协议和 802.3 协议规定的帧结构, 以及 OAM帧的发送状态识别出异常帧,将异常帧发送 给所述异常处理模块 33;
具体的,所述根据 TS-1000协议和 802.3协议规定的帧结构,以及 OAM 帧的发送状态识别出异常帧, 包括: 所述监听模块 32根据 TS-1000协议和 802.3协议规定的帧结构对发送的数据进行分析, 当目前准备发送的数据帧 满足 802.3 协议规定的特点, 也就是说帧结构符合第 1 至第 7 字节为 preamble, 第 8字节为 SFD, 以及数据帧长度大于等于 64字节, 最后 4个 字节为 CRC校验结果时, 则说明此数据帧是正常的用户帧或环回帧; 当发 送的数据帧符合 OAM帧结构, 也就是说帧结构符合前 8bits为 preamble, 第 9bit为 0, 数据帧的长度为 12字节, 最后一个字节为 CRC校验结果时, 根据 OAM帧的发送状态来确定是否为异常帧, 如果 OAM帧正在发送, 则 说明此数据帧是正常的 OAM帧, 如果此时没有 OAM帧发送, 此数据帧则 是异常帧。当目前准备发送的数据帧不满足 802.3协议与 TS-1000协议中规 定的帧结构的特点时, 当前的数据帧同样也是异常帧。 其中, 所述发送的 数据包括: 根据 802.3协议生成的用户帧, 和 /或根据 802.3协议生成的环回 帧, 和 /或根据 TS- 1000协议生成的 0 AM帧。
所述异常处理模块 33 , 用于对所述异常帧进行异常处理。
具体的, 所述异常处理模块 33进行异常处理, 包括: 阻止所述异常帧 继续发送, 和 /或对所述异常帧进行修改。 其中, 如果所述异常帧属于不满 足 802.3协议与 TS-1000协议中规定的帧结构的情况,直接阻止所述异常帧 的发送; 如果 OAM帧的发送状态是没有发送, 但数据帧符合 OAM帧结构 的异常帧, 对其进行阻止发送, 和 /或对异常帧进行修改。 在实际应用中, 通常釆用 FPGA进行数据的监听和异常处理, FPGA通过 ΜΠ连接 PHY芯 片, 并通过 PHY芯片发送数据。 在异常处理中, 可以通过 FPGA控制 ΜΠ 接口上的 TX— EN管脚或其他控制信号, 阻止所述符合 OAM帧结构的数据 或错误帧结构的数据继续发送, 和 /或对所述符合 OAM帧结构的数据进行 修改。 其中, 对所述符合 OAM帧结构的数据进行修改, 目的在于使接收端 不会将所述符合 OAM帧结构的数据误认为正常的 OAM帧,所述修改例如: 将数据的长度修改成不为 12字节。 进一步的, 对所述符合 OAM帧结构的 异常帧进行修改之后, 还包括: 发送修改后的异常帧。
进一步的, 所述系统还包括: 上层 CPU, 所述上层 CPU, 用于将所述
OAM帧生成模块 31发送来的所述 OAM帧的发送状态转发给所述监听模 块 32, 和 /或根据监听模块 32上报的异常帧触发所述异常处理模块 33针对 异常帧进行的异常处理。
具体的, 通过上层 CPU对 OAM帧的发送状态和触发异常处理, 可以 对监听和异常处理过程集中管理, 更有利于对需要发送的数据进行过滤和 保护。
进一步的在具体实现时, 每个功能模块既可以放入单独的功能器件, 也可以用软件或者逻辑代码的形式运行在公共硬件平台上, 而不占用独立 的硬件结构, 以节省硬件成本。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。

Claims

权利要求书
1、 一种识别和处理异常帧的方法, 其特征在于, 所述方法包括: 监听发送的数据, 根据 TS-1000协议和 802.3协议规定的帧结构, 以及 操作、 管理、 维护 (OAM ) 帧的发送状态识别出异常帧; 对所述异常帧进 行异常处理。
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据 TS-1000协议 和 802.3协议规定的帧结构,以及 OAM帧的发送状态识别出异常帧,包括: 根据 TS-1000协议和 802.3协议规定的帧结构对发送的数据进行分析, 当发送的数据帧满足 802.3协议规定的帧结构,则此数据帧是正常的用户帧 或环回帧;
当发送的数据帧符合 OAM帧结构,根据 OAM帧的发送状态来确定是 否为异常帧, 如果 OAM帧正在发送, 则此数据帧是正常的 OAM帧, 否则 此数据帧是异常帧;
当发送的数据帧不满足 802.3协议与 TS-1000协议中规定的帧结构的特 点时, 此数据帧是异常帧。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 被监听的所述发送 的数据, 包括:
根据 802.3协议生成的用户帧, 和 /或根据 802.3协议生成的环回帧, 和 /或根据 TS-1000协议生成的 OAM帧。
4、 根据权利要求 1或 2所述的方法, 其特征在于, 所述 OAM帧的发 送状态, 为: 由负责生成 OAM帧的系统模块根据管理需要生成 OAM帧, 在发送 OAM帧的同时将发送状态通知负责监听的系统模块。
5、 根据权利要求 1或 2所述的方法, 其特征在于, 所述异常处理, 包 括: 阻止所述异常帧继续发送, 和 /或对所述异常帧进行修改。
6、 一种识别和处理异常帧的系统, 所述系统包括: OAM 生成模块, 其特征在于, 所述系统还包括: 监听模块和异常处理模块, 其中, 所述 OAM帧生成模块, 用于生成并发送 OAM帧, 将 OAM帧的发送 状态通知所述监听模块;
所述监听模块, 用于监听发送的数据, 根据 TS-1000协议和 802.3协议 规定的帧结构, 以及 OAM帧的发送状态识别出异常帧,将异常帧发送给所 述异常处理模块;
所述异常处理模块, 用于对所述异常帧进行异常处理。
7、根据权利要求 6所述的系统,其特征在于,所述监听模块根据 TS- 1000 协议和 802.3协议规定的帧结构, 以及 OAM帧的发送状态识别出异常帧, 包括:
所述监听模块根据 TS-1000协议和 802.3协议规定的帧结构对发送的数 据进行分析, 当发送的数据帧满足 802.3协议规定的帧结构, 则此数据帧是 正常的用户帧或环回帧;
当发送的数据帧符合 OAM帧结构,根据 OAM帧的发送状态来确定是 否为异常帧, 如果 OAM帧正在发送, 则此数据帧是正常的 OAM帧, 否则 此数据帧是异常帧;
当发送的数据帧不满足 802.3协议与 TS-1000协议中规定的帧结构的特 点时, 此数据帧是异常帧。
8、 根据权利要求 6或 7所述的系统, 其特征在于, 所述监听模块监听 的发送的数据, 包括: 根据 802.3协议生成的用户帧, 和 /或根据 802.3协议 生成的环回帧, 和 /或根据 TS-1000协议生成的 0 AM帧。
9、 根据权利要求 6或 7所述的系统, 其特征在于, 所述 OAM帧生成 模块生成并发送 OAM帧, 将 OAM帧的发送状态通知所述监听模块, 为: 所述 OAM帧生成模块根据管理需要生成 OAM帧, 在发送 OAM帧的同时 将发送状态通知所述监听模块。
10、 根据权利要求 6或 7所述的系统, 其特征在于, 所述异常处理模 块进行异常处理, 包括: 阻止所述异常帧继续发送, 和 /或对所述异常帧进 行修改。
PCT/CN2011/077436 2010-12-13 2011-07-21 一种识别和处理异常帧的方法和系统 WO2012079369A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010587367.X 2010-12-13
CN201010587367.XA CN102547489B (zh) 2010-12-13 2010-12-13 一种识别和处理异常帧的方法和系统

Publications (1)

Publication Number Publication Date
WO2012079369A1 true WO2012079369A1 (zh) 2012-06-21

Family

ID=46244043

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/077436 WO2012079369A1 (zh) 2010-12-13 2011-07-21 一种识别和处理异常帧的方法和系统

Country Status (2)

Country Link
CN (1) CN102547489B (zh)
WO (1) WO2012079369A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051567A (zh) * 2012-12-28 2013-04-17 武汉烽火网络有限责任公司 一种实现异厂家交换芯片之间无损互连的方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842023A (zh) * 2005-03-29 2006-10-04 华为技术有限公司 在多协议标签交换网络中实现分域管理和保护的方法
CN1913453A (zh) * 2006-08-22 2007-02-14 华为技术有限公司 实现点到点的快速故障检测的方法和装置
JP2008078897A (ja) * 2006-09-20 2008-04-03 Nec Access Technica Ltd 遠隔防犯管理システム、onu装置、ホームセキュリティシステム、olt装置及び端末機
CN101453464A (zh) * 2007-11-28 2009-06-10 中兴通讯股份有限公司 一种以太网无源光网络防攻击方法
US20090164627A1 (en) * 2007-12-21 2009-06-25 Fujitsu Limited Data transmission/reception apparatus and method for inserting and extracting maintenance management data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100594008B1 (ko) * 2004-10-29 2006-06-30 삼성전자주식회사 동기식 이더넷 시스템에서의 시간 임계 정보 전송 방법

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842023A (zh) * 2005-03-29 2006-10-04 华为技术有限公司 在多协议标签交换网络中实现分域管理和保护的方法
CN1913453A (zh) * 2006-08-22 2007-02-14 华为技术有限公司 实现点到点的快速故障检测的方法和装置
JP2008078897A (ja) * 2006-09-20 2008-04-03 Nec Access Technica Ltd 遠隔防犯管理システム、onu装置、ホームセキュリティシステム、olt装置及び端末機
CN101453464A (zh) * 2007-11-28 2009-06-10 中兴通讯股份有限公司 一种以太网无源光网络防攻击方法
US20090164627A1 (en) * 2007-12-21 2009-06-25 Fujitsu Limited Data transmission/reception apparatus and method for inserting and extracting maintenance management data

Also Published As

Publication number Publication date
CN102547489A (zh) 2012-07-04
CN102547489B (zh) 2014-11-26

Similar Documents

Publication Publication Date Title
TWI251540B (en) System, method and device for autonegotiation
US5825755A (en) Method and apparatus for switching between full-duplex and half-duplex CSMA/CD systems
US9330045B2 (en) Controller area network (CAN) device and method for controlling CAN traffic
US20150095711A1 (en) Controller area network (can) device and method for emulating classic can error management
US8509616B2 (en) Devices, systems and methods for run-time reassignment of a PHY to MAC devices interconnect
JP2009260970A (ja) サービス連続性を維持しつつパッシブ光ネットワークにおける電力消費量を低減するための方法および装置
JPH10502227A (ja) 無線通信用パケットデータプロトコル
JP4071117B2 (ja) 送受信回路及び送受信方法並びに送受信装置
WO2008116399A1 (fr) Procédé et dispositif d'ajustement dynamique d'état de liaison et d'état de liaison groupée
WO2010025628A1 (zh) 一种物理层数据传输的方法、装置及系统
WO2007107066A1 (fr) Procédé et dispositif de communication permettant d'effectuer une détection de bouclage fondée sur l'ethernet
JP4351289B1 (ja) 加入者宅側通信装置
US8645551B2 (en) Method for automatically negotiating type of service and aggregation apparatus therefor
WO2004045145A1 (fr) Procede de transmission d'etat de liaison de port ethernet
WO2009006858A1 (fr) Procédé, système et dispositif d'émission et de réception d'informations
WO2012079369A1 (zh) 一种识别和处理异常帧的方法和系统
US6366567B1 (en) Automatic detection of full or half duplex capability in a remote network device
WO2011057544A1 (zh) 一种基于802.3ah协议实现点到多点OAM的方法及系统
WO2014048129A1 (zh) 指示消息发送方法、接收方法、设备及系统
WO2006063522A1 (fr) Procede de realisation pour configuration de l'aptitude adaptative pour equipement de reseau de transmission optique
KR20130078384A (ko) 디지털 보호 계전기의 통신을 위한 이더넷 통신 링크 방법 또는 이를 수행하는 디지털 보호 계전기
KR100932907B1 (ko) Epon 시스템에서 oam 모듈의 구성 정보 변경 요구진단 장치 및 방법
TWI495283B (zh) 使用於高解析度多媒體介面乙太網通路的協商方法及電子裝置
JP2008236733A (ja) 帯域制御装置、帯域制御システム、帯域制御方法
JP3908667B2 (ja) Larqヘッダを抜き取り、fcsを再生成してスリープモード復帰をサポートする機構

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11849686

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11849686

Country of ref document: EP

Kind code of ref document: A1