WO2012088910A1 - Method and system for detecting connectivity fault - Google Patents

Method and system for detecting connectivity fault Download PDF

Info

Publication number
WO2012088910A1
WO2012088910A1 PCT/CN2011/078980 CN2011078980W WO2012088910A1 WO 2012088910 A1 WO2012088910 A1 WO 2012088910A1 CN 2011078980 W CN2011078980 W CN 2011078980W WO 2012088910 A1 WO2012088910 A1 WO 2012088910A1
Authority
WO
WIPO (PCT)
Prior art keywords
cfm
function service
service board
board
message
Prior art date
Application number
PCT/CN2011/078980
Other languages
French (fr)
Chinese (zh)
Inventor
郁聪
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012088910A1 publication Critical patent/WO2012088910A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays

Definitions

  • the present invention relates to the field of communications, and in particular to a connectivity fault detection method and system.
  • BACKGROUND OF THE INVENTION The CFM function based on the IEEE 802. lag standard and ITU-T Y.1731 establishes an end-to-end Ethernet fault detection mechanism, and the shortest detection period can reach 3.3 ms, providing an easy and fast connectivity fault finding for the network. , detection and management functions.
  • the CFM functions specified in IEEE 802.1 ag and ITU-T Y.1731 include the CC (Continuity Check) function, the loopback (LB, Loopback) function, the link tracking (LT, Linktrace) function, and the packet loss measurement (LM, Loss Measurement) function, delay measurement (DM, Delay Measurement) function, etc.
  • CC function is the most basic and most important function of CFM function, which is the prerequisite for other functions to be realized.
  • the CFM fault detection mechanism requires that the maintenance domain (MD, Maintenance Domains) and the corresponding maintenance association end point (MEP) of the same maintenance level be established on both ends of the link to be tested.
  • the MEPs at both ends send CC messages (CCM, Continuity Check Message) according to the configuration period, and receive CCM from the peer end and perform corresponding judgment processing. If there is no 3.5 times period. If the CCM sent by the peer is received, the link is considered to be faulty. However, simply using the CPU to send and process CCM packets with a period of 3.3ms often causes the CPU to be busy and cannot handle other services. If multiple CC detection links are configured in the system, the system may not work. At present, the common practice is to implement fast CCM transmission and processing in hardware with high performance processors such as NP and FPGA. However, a distributed switch usually consists of a number of boards. The physical ports on the boards are connected to external devices.
  • a primary object of the present invention is to provide a connectivity fault detection method and system to solve the problem of cost and resource waste caused by using high-performance boards in a distributed switch system.
  • a connectivity fault detection method includes: transmitting CFM configuration information for connectivity detection to a CFM function service board of a local end; the CFM function service board receiving a pair according to the foregoing configuration information.
  • the CC message sent by the terminal if the CFM function service board does not receive the CC message sent by the peer end within a predetermined time, the CFM function service board detects the connectivity between the local end and the peer end. The fault is sent to the main control board of the local terminal.
  • the method further includes: sending, by the CFM function service board, the CC message to the opposite end according to the configuration information; The CC packet performs packet delay statistics and packet loss rate statistics.
  • the CFM function service board of the local end is selected by the following steps: determining whether the current board receiving the message is a CFM function service board; if yes, The board that receives the current packet is configured as the CFM function service board of the local end; if not, the CFM function service board with the smallest slot number of the current CFM function service board is selected as the CFM function service board of the local end. Or, an online CFM function service board is specified as the CFM function service board of the local end. When the CFM function service board is offline, perform the steps of selecting the CFM function service board of the local device.
  • the step of receiving, by the CFM function service board, the CC message sent by the peer end according to the configuration information includes: receiving the CC message, determining whether the received CC message is a CFM message, and if the CFM message is a CFM message, The received CC message is redirected to the CFM function service board.
  • the CFM function service board receives the received CC message according to the configuration information. The above redirection rule is sent to each of the ports when the CFM configuration is performed, and the CFM function service board or the CFM function service board is placed on or off the line according to the user command.
  • the step of receiving the CC message to determine whether the received CC message is a CFM message includes: the port matching the parameters of the received CC message, where the parameter includes at least one of the following: The protocol type, the VLAN ID, the physical port number, the MD level, and the OpCode. If the parameters of the received CC message are matched successfully, it is determined whether the received CC message is a CFM message.
  • a connectivity fault detection system including: a CFM function service board, configured to receive CFM configuration information for connectivity detection, and receive a CC sent by a peer according to the foregoing configuration information.
  • the main control board is configured to receive the CFM function service board.
  • the CFM function service board is further configured to send a CC message to the peer end according to the configuration information, and perform packet delay statistics and packet loss rate statistics on the sent CC message.
  • the main control board includes: a judging unit configured to: before the CFM function service board receives the CC message sent by the peer end according to the configuration information, determine whether the board that receives the current message is a CFM function service board; processing unit, setting When the board that receives the packet is the CFM function service board, the board that receives the current packet is configured as the CFM function service board of the local end; the board that receives the current packet is not the CFM.
  • For the function of the service board select the CFM function service board with the smallest slot number in the current CFM function service board as the CFM function service board of the local end, or specify an online CFM function service board as the above-mentioned one according to the user's instruction.
  • the CFM function business board at the end is configured to: before the CFM function service board receives the CC message sent by the peer end according to the configuration information, determine whether the board that receives the current message is a CFM function service board; processing unit, setting When the board that receives the packet is the C
  • the physical port for transmitting and receiving CC packets is located on the CFM function card or the common interface card in the connectivity fault detection system.
  • the CFM function service board is used to process fast CFM packets, which solves the problem that the common single-board CPU is difficult to implement the fast CFM function, and all the high-performance boards are used, which causes cost and resource waste, and thus achieves Effectively reduce the load on other boards, improve equipment utilization, and reduce equipment costs.
  • FIG. 1 is a preferred flow chart of a connectivity fault detection method according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing a preferred structure of a connectivity fault detection system according to an embodiment of the present invention. Another structural block diagram of a connectivity fault detection system according to an embodiment of the present invention; FIG.
  • FIG. 1 is a preferred flowchart of a connectivity fault detection method according to an embodiment of the present invention, which includes the following steps:
  • S102 Send CFM configuration information for connectivity detection to the local CFM function service board.
  • the CFM function service board receives the CC message sent by the peer end according to the configuration information; S106, if the CFM function service board does not receive the CC message sent by the peer end within a predetermined time, The CFM function service board detects that the connectivity between the local end and the peer end is faulty, and sends the detection result to the main control board of the local end.
  • the main control board has a CPU processing unit.
  • the CFM function service board is used to process fast CFM packets, which solves the problem of cost and resource waste caused by using high-performance boards to implement fast CC packet processing. Effectively reduce the load on other boards, improve equipment utilization, and reduce equipment costs.
  • the connectivity fault detection method further includes: the CFM function service board according to the configuration information. Sending a CC message to the peer end; the CFM function service board performs packet delay statistics and packet loss rate statistics on the sent CC message.
  • the CFM function service board of the local end can send a CC message to the CFM function service board of the peer end, so that the CFM function service board of the peer end can also determine whether the connection occurs according to the situation of receiving the CC message. sexual failure.
  • the CFM function service board of the local end is selected by the following steps: determining whether the current board receiving the message is a CFM function. The service board; if yes, the board that is currently receiving the packet is configured as the CFM function service board of the local end; if not, the CFM function service board with the smallest slot number of all the current CFM function service boards is selected.
  • the CFM function service board of the local end an online CFM function service board is specified as the CFM function service board of the local end.
  • the most suitable CFM function service board can be selected by the specific selection method described above.
  • the step of selecting the CFM function service board of the local end is performed.
  • the new CFM function service board is continuously selected when the current CFM function service board is offline, and whether the CFM function service board needs to be updated when the new CFM function service is online is determined.
  • the step of the CFM function service board receiving the CC message sent by the peer end according to the configuration information includes: determining, by the port that receives the CC message, whether the received CC message is a CFM message; The CFM packet redirects the received CC message to the CFM function service board.
  • the CFM function service board receives the received CC message according to the configuration information.
  • the CC message is correctly identified and forwarded by the redirection mechanism.
  • the redirection rule is sent to each of the ports when performing CFM configuration, specifying a CFM function service board or a CFM function service board on or off according to a user instruction.
  • the time points of the above-mentioned specific configuration redirection rules enable each port to efficiently receive and use the redirection rules.
  • the step of determining, by the port that receives the CC message, whether the received CC message is a CFM message comprises: the port matching the parameters of the received CC message, where the parameter includes the following At least one of the following: the protocol type of the packet, the VLAN ID, the physical port number, the MD level, and the OpCode. If the parameters of the received CC packet match, the CCC is determined to be CFM. Message. In the preferred embodiment, the CFM message can be effectively identified by the above specific judgment rule.
  • FIG. 2 is a block diagram showing a preferred configuration of a connectivity fault detection system according to an embodiment of the present invention, which includes:
  • the CFM function service board 202 is configured to receive CFM configuration information for connectivity detection, and receive a CC message sent by the peer end according to the configuration information; if the CC message sent by the peer end is not received within a predetermined time If the connectivity between the local end and the peer end is faulty, the main control board 206 is configured to receive the detection result sent by the CFM function service board.
  • the CFM function service board is used to process fast CFM packets, which solves the problem of cost and resource waste caused by using high-performance boards to implement fast CC packet processing. Effectively reduce the load on other boards, improve equipment utilization, and reduce equipment costs.
  • the connectivity fault detection system further includes: a common interface board 204, configured to provide a physical port for transmitting and receiving fast CC messages.
  • the physical port is not limited to being located on the common interface board 204, and may also be located on the CFM function service board 202.
  • the CFM function service board 202 is further configured to organize a CC message according to the configuration information, and send the packet to the peer end through a real physical port, and perform packet delay statistics on the sent CC message. And packet loss rate statistics.
  • the physical port may be located on the CFM function service board 202 or on other common interface boards 204.
  • the main control board 206 may include: a determining unit, configured to determine whether the board currently receiving the message is a CFM before the CFM function service board receives the CC message sent by the opposite end according to the configuration information.
  • a function service board configured to: when the board that receives the current packet is the CFM function service board, set the board that currently receives the packet as the CFM function service board of the local end; When the board that receives the packet is not the CFM function service board, the CFM function service board with the smallest slot number of the current CFM function service board is selected as the CFM function service board of the local end, or An online CFM function service board is specified as the CFM function service board of the local end.
  • the most suitable CFM function service board can be selected by the specific selection method described above.
  • the step of selecting the CFM function service board of the local end is performed.
  • it is ensured that the new CFM function service board is continuously selected when the current CFM function service board is offline, and whether the CFM function service board needs to be updated when the new CFM function service is online is determined. Thereby ensuring the continuity of the business.
  • the step of the CFM function service board 202 receiving the CC message sent by the peer end according to the configuration information includes: determining, by the port that receives the CC message, whether the received CC message is a CFM message; For the CFM packet, the received CC message is redirected to the CFM function service board; the CFM function service board receives the received CC message according to the configuration information.
  • the CC message is correctly identified and forwarded by the redirection mechanism.
  • the redirection rule is sent to each of the ports when performing CFM configuration, specifying a CFM function service board or a CFM function service board on or off according to a user instruction.
  • the time points of the above-mentioned specific configuration redirection rules enable each port to efficiently receive and use the redirection rules.
  • the step of determining, by the port that receives the CC message, whether the received CC message is a CFM message according to the redirection rule comprises: the port matching the parameters of the received CC message, where The parameter includes at least one of the following: a protocol type of the packet, a VLAN ID, a physical port number, an MD level, and an OpCode. If the parameters of the received CC message match successfully, the received CC report is determined. Whether the text is a CFM message. In the preferred embodiment, the CFM message can be effectively identified by the above specific judgment rule.
  • FIG. 3 is another structural block diagram of a connectivity fault detection system according to an embodiment of the present invention, including the following components: a main control board 302, a CFM function service board 304, and a common board 306.
  • the common board 306 is composed of a CPU 3061, a switch chip 3062, and a physical interface 3063, and can implement the LB and LT functions, and implement the slow CC function, the LB function, and the LT function.
  • the CPM function service board 304 includes: a CPU 3041, a switch chip 3042, a physical interface 3043, an OAM hardware module 3044, and an LM hardware module 3045.
  • the CFM function service board 304 is present, the CCM is redirected to the CFM function service board 304 to implement the CC. Function, and at the same time can realize LB function, LT function, LM function and DM function.
  • the common board 306 is connected to the peer device through the high-speed backplane 308, that is, the CROSS-BAR.
  • the device is connected to the peer device through the physical interface of the CFM function service board 304 and the ordinary board 306. In the connectivity fault detection system of this embodiment, one or two main control boards 302 must be included.
  • the main control board 302 is configured to send the CFM configuration to the common board 306 and the CFM function service board 304, and receive and process the echo information of the ordinary board 306 and the CFM function service board 304. Or alarm information.
  • the connectivity failure detecting process of the system will be described below with reference to the drawings.
  • the system supports dynamic selection of the CFM function service board, and the selection process may adopt the following strategies:
  • FIG. 4 is a flowchart of selecting a CFM function carrier board according to a connectivity fault detection method according to an embodiment of the present invention, which includes the following steps:
  • the main control board detects that there is a single on-board or off-line on the device by interrupting or polling.
  • step S406 determining whether the board of the online or offline line is a CFM function service board, if not, executing step S406; if it is a CFM function service board, executing step S403;
  • CFM function service is on-line.
  • the service that has selected the effective carrier board will not be affected.
  • the service that needs to be the carrier board but does not have a valid carrier board needs to re-select the carrier board.
  • the CFM function service board is offline. All services need to be re-selected.
  • step 406 is performed, if not, step 405 is performed;
  • the CFM function carrier board selection process ends.
  • Embodiment 4 The preferred embodiment provides a connectivity fault detection system, which includes the following components: 1. An advanced service carrier board selection module, configured to dynamically select when a board is offline according to a carrier board selection rule. The CFM function carries the board, and notifies the following packet redirection module to deliver the corresponding packet redirection rule;
  • the packet redirection module is configured to perform the packet redirection rule when the CFM is configured or the board is re-determined, and the packets received by the board are filtered according to the rules, and the CFM packet is redirected to the bearer.
  • the OAM hardware module is located on the CFM function service board. It is set to send, receive, and process the CCM according to the configured packet sending period. At the same time, the corresponding alarm is reported to the CFM software module according to the detection result, and the CC function is completed.
  • the LM hardware module which is located on the CFM function service board, is set to the number of packets and time statistics required to implement the LM and DM functions, and the number and time data when the LM and DM packets pass through the module. Fill in the corresponding fields of the message;
  • CFM software module the module is located in the CPU of each function board, set to send CFM related configuration, receive and process various alarms reported by hardware, realize LB and LT functions, complete LM and DM function calculation work,
  • the transmission and processing of the slow (transmission period Is and above) CCM is completed without the presence of the carrier board.
  • the delivery of the redirection rule can be completed by the message redirection module, which is divided into two cases:
  • the CFM function is used to send the redirection rule to each physical port of each function board. This rule matches the packet protocol type. All CFM packets are required. Send the CPU to the board;
  • the CFM configuration in the CFM configuration is performed on the physical port of a function board. .
  • the redirection rule to be delivered at this time needs to match the protocol type, VLAN ID, physical port number, MD level, and OpCode of the packet. After the match is successful, it is determined whether to redirect to the bearer or send the packet according to the OpCode value of the packet.
  • the CPU of this board OpCode is set to determine the function type of the CFM message. The value needs to comply with the IEEE 802. lag and ITU-T Y.1731.
  • the OpCode display message is CCM, it is redirected to the carrier board.
  • Other CFM The packet is sent to the CPU of the board.
  • the CFM function service board is deployed, the following rules are applied:
  • Down-type MEP processes CFM packets from the Ethernet interface and sends and receives packet redirection rules only on the bound ports.
  • the UP-type MEP processes the CFM packets from the bridge, and sends and removes the redirection rules on the ports other than the bound ports in the virtual local area network (VLAN).
  • VLAN virtual local area network
  • FIG. 5 is a flowchart of a redirection filtering CFM message according to the connectivity fault detection method according to an embodiment of the present invention.
  • the physical port receives the CFM packet and sends it to the switch chip.
  • the packet is processed by the LM hardware module on the CFM function service board.
  • the redirection module uses the redirection rule to match the packet and redirects the packet to the carrier board or the CPU of the local board. The specific process is as follows:
  • the switch chip receives the packet sent from the physical port, and enters the redirection module for processing
  • step S504 if there is a CFM packet redirection rule in the redirection rule, if there is step S503, if not, step S504 is performed;
  • the CFM packet redirection rule is used to match the packet to determine whether it is a CFM packet.
  • the CCM needs to be redirected to the carrier board. Other CFM packets are sent to the local device. Board CPU;
  • the message is sent to the CPU of the board, and the corresponding CFM function is completed by the CFM software module.
  • the OAM hardware module primarily performs CC functions, including transmission, reception, and processing of the CCM.
  • the sending of the CCM includes: each local MEP saves a SndTimer table in the OAM module, and is set as a timer for periodically transmitting CCM messages.
  • the SndTimer table is initialized according to the period and starts timing.
  • the time is up, the CCM is sent and the initial value is restored.
  • the message is sent, the CCM data is read from the CC message table corresponding to the local MEP, and the MEP ID and the message sequence number are filled in.
  • the information is broadcasted in the protected VLAN of the corresponding MA.
  • the CCM packet format satisfies the packet requirements defined in IEEE 802. lag or ITU-T Y1731.
  • CCM receiving and processing After receiving the redirected CCM, the CCM is matched with the CC message table, and the corresponding connection status is detected according to the matching result: 1. If the remote MEP is not received within 3.5 times of the transmission period When the CCM message is received, the connectivity to the MEP is detected to be lost;
  • the LM hardware module mainly performs the counting function of the LM function and the DM function specified in ITU-T Y1731. To complete the LM count, the statistics table with the VLAN ID as the index is stored in the hardware. As shown in Figure 4, it is set to record the number of LM packets of different maintenance domain levels in different VLANs received by the local device. When the LM packet passes, the LM hardware module fills in the corresponding field of the packet for the local device and the remote device to calculate.
  • the system time is synchronized to the LM hardware module when the system is initialized or the system time is modified.
  • the LM hardware module will time according to its inherent clock frequency, and its accuracy can reach 8ns.
  • the LM hardware module fills in the corresponding field of the packet for use by the local device and the remote device for calculation.
  • the CFM software module is located in the CPU of each function board.
  • the module saves the entries corresponding to the above hardware modules, and is set to complete the CFM configuration delivery, LB function, LT function, LM and DM function statistics, and CFM does not exist in the system. Slow CC function when functioning the board.
  • the CFM software module sends or receives LB messages (LBM, LB Message) and LB recovery messages (LBR, LB Reply).
  • the processing is in accordance with IEEE 802. lag and ITU-T Y1731.
  • the CFM software module When the LT function is enabled, the CFM software module sends or receives LT messages (LTM, LT Message) and LT recovery messages (LTR, LT Reply), which are processed in accordance with IEEE 802. lag and ITU-T Yl 731.
  • LTM LT messages
  • LTR LT recovery messages
  • ITU-T Yl 731 ITU-T Yl 731.
  • the CFM software module for the dual-end LM, the CFM software module periodically takes data from the remote MEP data table in the OAM hardware module and calculates the statistical result.
  • the CFM software module For the single-ended LM, the CFM software module periodically sends or receives the LM.
  • Each switch supports at least 16 MDs specified by IEEE 802.1ag and ITU-T Y1731. Each MD supports at least 32 MAs. Each MA supports at least 512 MEPs. The whole machine supports at least 8K MEPs. 4 Each switch supports eight levels (0-7) of MDs, belonging to users, service providers, and operations.
  • the CCM with a transmission period less than Is is called fast CCM
  • the CCM with a transmission period of Is and above is a slow CCM.
  • the present invention adopts a solution that uses a carrier board to process a fast CFM message CCM, and solves the problem that a common single-board CPU is difficult to implement a fast CFM function, and all high-performance boards are used, which causes cost and resource waste, and thus achieves It can effectively reduce the load on other boards and increase the utilization rate of equipment while reducing the cost of equipment.
  • the invention also combines the hardware and the software, the hardware counts and marks the data, and the software takes the data statistics manner, and processes the sending and receiving of the packets with the time stamp or the number of the packets, and realizes the packet delay statistics (DM) and packet loss rate statistics (LM) capabilities.
  • DM packet delay statistics
  • LM packet loss rate statistics

Abstract

Disclosed are a method and system for detecting connectivity fault. The method comprises: sending CFM configuration information used for connectivity detection to a CFM function service board of a local end; the CFM function service board receiving, according to the configuration information, a CC message sent by a peer end; if the CFM function service board does not receive the CC message sent by the peer end in a predetermined period of time, the CFM function service board detecting that a connectivity fault exists between the local end and the peer end, and sending a detection result to a main control board of the local end. The present invention solves the problem of cost and resource waste caused by adopting high-performance single boards in a distributed switching system, thereby achieving the effect of reducing the device cost while effectively reducing the load of other single boards and improving the utilization of the device.

Description

连通性故障检测方法和系统 技术领域 本发明涉及通信领域, 具体而言, 涉及一种连通性故障检测方法和系统。 背景技术 基于 IEEE 802. lag标准和 ITU-T Y.1731建议书的 CFM功能通过建立端到端的以 太网故障检测机制, 其最短检测周期可以达到 3.3ms, 为网络提供容易快捷的连通性 故障发现、 检测和管理功能。  TECHNICAL FIELD The present invention relates to the field of communications, and in particular to a connectivity fault detection method and system. BACKGROUND OF THE INVENTION The CFM function based on the IEEE 802. lag standard and ITU-T Y.1731 establishes an end-to-end Ethernet fault detection mechanism, and the shortest detection period can reach 3.3 ms, providing an easy and fast connectivity fault finding for the network. , detection and management functions.
IEEE 802.1 ag和 ITU-T Y.1731中规定的 CFM功能包括连通性检查( CC, Continuity Check) 功能、 环回 (LB, Loopback) 功能、 链路追踪 (LT, Linktrace) 功能、 丢包 测量 (LM, Loss Measurement) 功能、 时延测量 (DM, Delay Measurement) 功能等 等, 其中 CC功能是 CFM功能最基本最重要的功能, 是其它功能得以实现的前提。 CFM故障检测机制要求在被测链路两端建立相同维护等级的维护域 (MD, Maintenance Domains ) 维护联合 (MA, Maintenance Association) 和相应的维护端点 (MEP, Maintenance association End Point), 按需配置连通性的检测周期, 使能 CFM之后, 两 端的 MEP按照配置周期定时发送 CC报文 (CCM, Continuity Check Message), 同时 从对端接收 CCM并进行相应的判断处理,如果在 3.5倍周期内没有接收到对端发送的 CCM, 则认为此条链路发生故障。 然而, 单纯采用 CPU来发送和处理周期为 3.3ms的 CCM报文, 往往会导致 CPU 忙而无法处理其它业务, 如果在系统中配置多个 CC检测链路, 甚至会导致系统无法 工作。 目前常见的做法是在硬件采用性能较强的处理器比如 NP、 FPGA来完成快速 CCM的发送和处理。但是, 分布式交换机通常是由若干块单板组成, 通过各单板上的 物理端口与外部设备相连, 为了保证每块单板都能发送和处理快速 CCM, 则需要在各 单板上都采用高性能硬件处理器, 这会导致设备成本升高和资源浪费。 发明内容 本发明的主要目的在于提供一种连通性故障检测方法和系统, 以解决在分布式交 换机系统中由于全部采用高性能单板而造成的成本和资源浪费的问题。 根据本发明的一个方面, 提供了一种连通性故障检测方法, 其包括: 将用于连通 性检测的 CFM配置信息发送给本端的 CFM功能业务板; 上述 CFM功能业务板按照 上述配置信息接收对端发送的 CC报文;若上述 CFM功能业务板在预定时间内没有接 收到上述对端发送的 CC报文,则上述 CFM功能业务板检测出上述本端到上述对端之 间的连通性出现故障, 并将检测结果发送给上述本端的主控板。 在上述 CFM功能业务板按照上述配置信息接收对端发送的 CC报文时, 还包括: 上述 CFM功能业务板按照上述配置信息向上述对端发送 CC报文; 上述 CFM功能业 务板对所发送的 CC报文执行包延时统计和丢包率统计。 在上述 CFM功能业务板按照上述配置信息接收对端发送的 CC报文之前,通过以 下步骤选择上述本端的 CFM功能业务板: 判断当前接收报文的单板是否为 CFM功能 业务板; 若是, 则将上述当前接收报文的单板设置为上述本端的 CFM功能业务板; 若不是, 则选择当前所有在线的 CFM功能业务板中槽位号最小的 CFM功能业务板作 为上述本端的 CFM功能业务板, 或者, 按照用户的指令指定一个在线的 CFM功能业 务板作为上述本端的 CFM功能业务板。 在存在 CFM功能业务板上下线时,执行选择上述本端的 CFM功能业务板的步骤。 上述 CFM功能业务板按照上述配置信息接收对端发送的 CC报文的步骤包括:接 收到 CC报文的端口判断上述接收到的 CC报文是否为 CFM报文; 若为 CFM报文, 则将所接收到的 CC报文重定向给上述 CFM功能业务板; 上述 CFM功能业务板按照 上述配置信息接收上述接收到的 CC报文。 在进行 CFM配置、按照用户指令指定 CFM功能业务板或者 CFM功能业务板上、 下线时将上述重定向规则发送给各个上述端口。 接收到 CC报文的端口判断上述接收到的 CC报文是否为 CFM报文的步骤包括: 上述端口对接收到的 CC报文的参数进行匹配, 其中, 上述参数包括以下至少之一: 报文的协议类型、 VLAN ID、 物理端口号、 MD等级、 OpCode; 若上述接收到的 CC 报文的参数匹配成功, 则判断出上述接收到的 CC报文是否为 CFM报文。 根据本发明的另一方面, 提供了一种连通性故障检测系统, 其包括: CFM功能业 务板, 设置为接收用于连通性检测的 CFM配置信息, 并按照上述配置信息接收对端 发送的 CC报文; 若在预定时间内没有接收到上述对端发送的 CC报文, 则检测出上 述本端到上述对端之间的连通性出现故障; 主控板, 设置为接收上述 CFM功能业务 板发送的检测结果。 上述 CFM功能业务板还设置为按照上述配置信息向上述对端发送 CC报文,对所 发送的 CC报文执行包延时统计和丢包率统计。 上述主控板包括: 判断单元, 设置为在上述 CFM功能业务板按照上述配置信息 接收对端发送的 CC报文之前, 判断当前接收报文的单板是否为 CFM功能业务板; 处 理单元, 设置为在上述当前接收报文的单板为上述 CFM功能业务板时, 将上述当前 接收报文的单板设置为上述本端的 CFM功能业务板; 在上述当前接收报文的单板不 为上述 CFM功能业务板时, 选择当前所有在线的 CFM功能业务板中槽位号最小的 CFM功能业务板作为上述本端的 CFM功能业务板, 或者, 按照用户的指令指定一个 在线的 CFM功能业务板作为上述本端的 CFM功能业务板。 用于快速收发 CC报文的物理端口位于上述 CFM功能业务板上, 或者, 位于上述 连通性故障检测系统中的普通接口单板上。 在本发明中, 利用 CFM功能业务板来处理快速的 CFM报文, 解决了普通单板 CPU难以实现快速 CFM功能、全部采用高性能单板又会造成成本和资源浪费的问题, 进而达到了在有效的降低其它单板负荷、提高设备利用率的同时降低设备成本的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例的连通性故障检测方法的一种优选流程图; 图 2是根据本发明实施例的连通性故障检测系统的一种优选结构框图; 图 3是根据本发明实施例的连通性故障检测系统的另一种结构框图; 图 4是根据本发明实施例的连通性故障检测方法的 CFM功能承载板的选择流程 图; 图 5是根据本发明实施例的连通性故障检测方法的重定向过滤 CFM报文的流程 图。 具体实施方式 下面将参考附图并结合实施例, 来详细说明本发明。 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 实施例 1 图 1是根据本发明实施例的连通性故障检测方法的一种优选流程图, 其包括如下 步骤: The CFM functions specified in IEEE 802.1 ag and ITU-T Y.1731 include the CC (Continuity Check) function, the loopback (LB, Loopback) function, the link tracking (LT, Linktrace) function, and the packet loss measurement ( LM, Loss Measurement) function, delay measurement (DM, Delay Measurement) function, etc., CC function is the most basic and most important function of CFM function, which is the prerequisite for other functions to be realized. The CFM fault detection mechanism requires that the maintenance domain (MD, Maintenance Domains) and the corresponding maintenance association end point (MEP) of the same maintenance level be established on both ends of the link to be tested. After the CFM is enabled, the MEPs at both ends send CC messages (CCM, Continuity Check Message) according to the configuration period, and receive CCM from the peer end and perform corresponding judgment processing. If there is no 3.5 times period. If the CCM sent by the peer is received, the link is considered to be faulty. However, simply using the CPU to send and process CCM packets with a period of 3.3ms often causes the CPU to be busy and cannot handle other services. If multiple CC detection links are configured in the system, the system may not work. At present, the common practice is to implement fast CCM transmission and processing in hardware with high performance processors such as NP and FPGA. However, a distributed switch usually consists of a number of boards. The physical ports on the boards are connected to external devices. To ensure that each board can send and process fast CCMs, you need to use them on each board. High-performance hardware processors, which can result in increased equipment costs and wasted resources. SUMMARY OF THE INVENTION A primary object of the present invention is to provide a connectivity fault detection method and system to solve the problem of cost and resource waste caused by using high-performance boards in a distributed switch system. According to an aspect of the present invention, a connectivity fault detection method is provided, which includes: transmitting CFM configuration information for connectivity detection to a CFM function service board of a local end; the CFM function service board receiving a pair according to the foregoing configuration information. The CC message sent by the terminal; if the CFM function service board does not receive the CC message sent by the peer end within a predetermined time, the CFM function service board detects the connectivity between the local end and the peer end. The fault is sent to the main control board of the local terminal. When the CFM function service board receives the CC message sent by the peer end according to the foregoing configuration information, the method further includes: sending, by the CFM function service board, the CC message to the opposite end according to the configuration information; The CC packet performs packet delay statistics and packet loss rate statistics. Before the CFM function service board receives the CC message sent by the peer end according to the configuration information, the CFM function service board of the local end is selected by the following steps: determining whether the current board receiving the message is a CFM function service board; if yes, The board that receives the current packet is configured as the CFM function service board of the local end; if not, the CFM function service board with the smallest slot number of the current CFM function service board is selected as the CFM function service board of the local end. Or, an online CFM function service board is specified as the CFM function service board of the local end. When the CFM function service board is offline, perform the steps of selecting the CFM function service board of the local device. The step of receiving, by the CFM function service board, the CC message sent by the peer end according to the configuration information includes: receiving the CC message, determining whether the received CC message is a CFM message, and if the CFM message is a CFM message, The received CC message is redirected to the CFM function service board. The CFM function service board receives the received CC message according to the configuration information. The above redirection rule is sent to each of the ports when the CFM configuration is performed, and the CFM function service board or the CFM function service board is placed on or off the line according to the user command. The step of receiving the CC message to determine whether the received CC message is a CFM message includes: the port matching the parameters of the received CC message, where the parameter includes at least one of the following: The protocol type, the VLAN ID, the physical port number, the MD level, and the OpCode. If the parameters of the received CC message are matched successfully, it is determined whether the received CC message is a CFM message. According to another aspect of the present invention, a connectivity fault detection system is provided, including: a CFM function service board, configured to receive CFM configuration information for connectivity detection, and receive a CC sent by a peer according to the foregoing configuration information. If the CC message sent by the peer end is not received within the predetermined time, the connection between the local end and the peer end is faulty; the main control board is configured to receive the CFM function service board. The test result sent. The CFM function service board is further configured to send a CC message to the peer end according to the configuration information, and perform packet delay statistics and packet loss rate statistics on the sent CC message. The main control board includes: a judging unit configured to: before the CFM function service board receives the CC message sent by the peer end according to the configuration information, determine whether the board that receives the current message is a CFM function service board; processing unit, setting When the board that receives the packet is the CFM function service board, the board that receives the current packet is configured as the CFM function service board of the local end; the board that receives the current packet is not the CFM. For the function of the service board, select the CFM function service board with the smallest slot number in the current CFM function service board as the CFM function service board of the local end, or specify an online CFM function service board as the above-mentioned one according to the user's instruction. The CFM function business board at the end. The physical port for transmitting and receiving CC packets is located on the CFM function card or the common interface card in the connectivity fault detection system. In the present invention, the CFM function service board is used to process fast CFM packets, which solves the problem that the common single-board CPU is difficult to implement the fast CFM function, and all the high-performance boards are used, which causes cost and resource waste, and thus achieves Effectively reduce the load on other boards, improve equipment utilization, and reduce equipment costs. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a preferred flow chart of a connectivity fault detection method according to an embodiment of the present invention; FIG. 2 is a block diagram showing a preferred structure of a connectivity fault detection system according to an embodiment of the present invention; Another structural block diagram of a connectivity fault detection system according to an embodiment of the present invention; FIG. 4 is a flowchart of selection of a CFM function carrier board according to a connectivity fault detection method according to an embodiment of the present invention; FIG. Flowchart of the redirection filtering CFM message of the connectivity fault detection method. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. Embodiment 1 FIG. 1 is a preferred flowchart of a connectivity fault detection method according to an embodiment of the present invention, which includes the following steps:
S102, 将用于连通性检测的 CFM配置信息发送给本端的 CFM功能业务板; S102: Send CFM configuration information for connectivity detection to the local CFM function service board.
S104, 所述 CFM功能业务板按照所述配置信息接收对端发送的 CC报文; S106,若所述 CFM功能业务板在预定时间内没有接收到所述对端发送的 CC报文, 则所述 CFM功能业务板检测出所述本端到所述对端之间的连通性出现故障, 并将检 测结果发送给所述本端的主控板。 优选的, 该主控板上具有 CPU处理单元。 在本优选的实施例中, 利用 CFM功能业务板来处理快速的 CFM报文, 解决了全 部采用高性能单板来实现快速 CC报文处理而造成的成本和资源浪费的问题, 进而达 到了在有效的降低其它单板负荷、 提高设备利用率的同时降低设备成本的效果。 优选的, 在所述 CFM功能业务板按照所述配置信息接收对端发送的 CC报文时, 根据本发明实施例的连通性故障检测方法还包括: 所述 CFM功能业务板按照所述配 置信息向所述对端发送 CC报文; 所述 CFM功能业务板对所发送的 CC报文执行包延 时统计和丢包率统计。 在本优选的实施例中, 本端的 CFM功能业务板能够向对端的 CFM功能业务板发送 CC报文, 从而可以使得对端的 CFM功能业务板也能够依据接 收 CC报文的情况来判断是否出现连通性的故障。 优选的,在所述 CFM功能业务板按照所述配置信息接收对端发送的 CC报文之前, 通过以下步骤选择所述本端的 CFM 功能业务板: 判断当前接收报文的单板是否为 CFM功能业务板; 若是, 则将所述当前接收报文的单板设置为所述本端的 CFM功能 业务板; 若不是, 则选择当前所有在线的 CFM功能业务板中槽位号最小的 CFM功能 业务板作为所述本端的 CFM功能业务板,或者,按照用户的指令指定一个在线的 CFM 功能业务板作为所述本端的 CFM功能业务板。 在本优选的实施例中, 通过上述特定 的选择方式, 能够选择出最合适的 CFM功能业务板。 优选的, 在存在 CFM功能业务板上下线时, 执行选择所述本端的 CFM功能业务 板的步骤。 在本优选的实施例中, 能够保证在当前 CFM功能业务板下线时, 继续选 择新的 CFM功能业务板, 而在有新的 CFM功能业务板上线时, 判断是否需要更新 CFM功能业务板, 从而保证了业务的连续性。 优选的,所述 CFM功能业务板按照所述配置信息接收对端发送的 CC报文的步骤 包括:接收到 CC报文的端口判断所述接收到的 CC报文是否为 CFM报文;若为 CFM 报文, 则将所接收到的 CC报文重定向给所述 CFM功能业务板; 所述 CFM功能业务 板按照所述配置信息接收上述接收到的 CC报文。 在本优选的实施例中, 通过重定向 机制, 使得能正确地识别和转发 CC报文。 优选的, 在进行 CFM配置、 按照用户指令指定 CFM功能业务板或者 CFM功能 业务板上、 下线时将所述重定向规则发送给各个所述端口。 在本优选的实施例中, 通 过上述特定的配置重定向规则的时间点, 使得各个端口均能有效地接收并使用重定向 规则。 优选的,接收到 CC报文的端口判断所述接收到的 CC报文是否为 CFM报文的步 骤包括: 所述端口对接收到的 CC报文的参数进行匹配, 其中, 所述参数包括以下至 少之一: 报文的协议类型、 VLAN ID、 物理端口号、 MD等级、 OpCode; 若所述接收 到的 CC报文的参数匹配成功, 则判断出所述接收到的 CC报文是否为 CFM报文。 在 本优选的实施例中, 通过上述特定的判断规则, 可以有效地识别出 CFM报文。 实施例 2 图 2是根据本发明实施例的连通性故障检测系统的一种优选结构框图, 其包括:S104, the CFM function service board receives the CC message sent by the peer end according to the configuration information; S106, if the CFM function service board does not receive the CC message sent by the peer end within a predetermined time, The CFM function service board detects that the connectivity between the local end and the peer end is faulty, and sends the detection result to the main control board of the local end. Preferably, the main control board has a CPU processing unit. In the preferred embodiment, the CFM function service board is used to process fast CFM packets, which solves the problem of cost and resource waste caused by using high-performance boards to implement fast CC packet processing. Effectively reduce the load on other boards, improve equipment utilization, and reduce equipment costs. Preferably, when the CFM function service board receives the CC message sent by the peer end according to the configuration information, the connectivity fault detection method according to the embodiment of the present invention further includes: the CFM function service board according to the configuration information. Sending a CC message to the peer end; the CFM function service board performs packet delay statistics and packet loss rate statistics on the sent CC message. In the preferred embodiment, the CFM function service board of the local end can send a CC message to the CFM function service board of the peer end, so that the CFM function service board of the peer end can also determine whether the connection occurs according to the situation of receiving the CC message. Sexual failure. Preferably, before the CFM function service board receives the CC message sent by the peer end according to the configuration information, the CFM function service board of the local end is selected by the following steps: determining whether the current board receiving the message is a CFM function. The service board; if yes, the board that is currently receiving the packet is configured as the CFM function service board of the local end; if not, the CFM function service board with the smallest slot number of all the current CFM function service boards is selected. As the CFM function service board of the local end, an online CFM function service board is specified as the CFM function service board of the local end. In the preferred embodiment, the most suitable CFM function service board can be selected by the specific selection method described above. Preferably, when the CFM function service board is offline, the step of selecting the CFM function service board of the local end is performed. In the preferred embodiment, it is ensured that the new CFM function service board is continuously selected when the current CFM function service board is offline, and whether the CFM function service board needs to be updated when the new CFM function service is online is determined. Thereby ensuring the continuity of the business. Preferably, the step of the CFM function service board receiving the CC message sent by the peer end according to the configuration information includes: determining, by the port that receives the CC message, whether the received CC message is a CFM message; The CFM packet redirects the received CC message to the CFM function service board. The CFM function service board receives the received CC message according to the configuration information. In the preferred embodiment, the CC message is correctly identified and forwarded by the redirection mechanism. Preferably, the redirection rule is sent to each of the ports when performing CFM configuration, specifying a CFM function service board or a CFM function service board on or off according to a user instruction. In the preferred embodiment, the time points of the above-mentioned specific configuration redirection rules enable each port to efficiently receive and use the redirection rules. Preferably, the step of determining, by the port that receives the CC message, whether the received CC message is a CFM message comprises: the port matching the parameters of the received CC message, where the parameter includes the following At least one of the following: the protocol type of the packet, the VLAN ID, the physical port number, the MD level, and the OpCode. If the parameters of the received CC packet match, the CCC is determined to be CFM. Message. In the preferred embodiment, the CFM message can be effectively identified by the above specific judgment rule. Embodiment 2 FIG. 2 is a block diagram showing a preferred configuration of a connectivity fault detection system according to an embodiment of the present invention, which includes:
CFM功能业务板 202, 设置为接收用于连通性检测的 CFM配置信息, 并按照所述配 置信息接收对端发送的 CC报文; 若在预定时间内没有接收到所述对端发送的 CC报 文, 则检测出所述本端到所述对端之间的连通性出现故障; 主控板 206, 设置为接收 所述 CFM功能业务板发送的检测结果。 在本优选的实施例中, 利用 CFM功能业务板来处理快速的 CFM报文, 解决了全 部采用高性能单板来实现快速 CC报文处理而造成的成本和资源浪费的问题, 进而达 到了在有效的降低其它单板负荷、 提高设备利用率的同时降低设备成本的效果。 优选的, 根据本发明实施例的连通性故障检测系统还包括: 普通接口单板 204, 设置为提供收发快速 CC报文的物理端口。 当然, 上述物理端口不限于位于普通接口 单板 204上, 还可以位于上述 CFM功能业务板 202上。 优选的,所述 CFM功能业务板 202还设置为按照所述配置信息组织准备 CC报文, 并通过真实的物理端口发送到所述对端, 并对所发送的 CC报文执行包延时统计和丢 包率统计。 优选的, 上述物理端口可能位于 CFM功能业务板 202上, 也可能位于其 他普通接口单板 204上。 优选的, 所述主控板 206可以包括: 判断单元, 设置为在所述 CFM功能业务板 按照所述配置信息接收对端发送的 CC 报文之前, 判断当前接收报文的单板是否为 CFM功能业务板; 处理单元, 设置为在所述当前接收报文的单板为所述 CFM功能业 务板时, 将所述当前接收报文的单板设置为所述本端的 CFM功能业务板; 在所述当 前接收报文的单板不为所述 CFM功能业务板时, 选择当前所有在线的 CFM功能业务 板中槽位号最小的 CFM功能业务板作为所述本端的 CFM功能业务板, 或者, 按照用 户的指令指定一个在线的 CFM功能业务板作为所述本端的 CFM功能业务板。在本优 选的实施例中, 通过上述特定的选择方式, 能够选择出最合适的 CFM功能业务板。 优选的, 在存在 CFM功能业务板上下线时, 执行选择所述本端的 CFM功能业务 板的步骤。 在本优选的实施例中, 能够保证在当前 CFM功能业务板下线时, 继续选 择新的 CFM功能业务板, 而在有新的 CFM功能业务板上线时, 判断是否需要更新 CFM功能业务板, 从而保证了业务的连续性。 优选的,所述 CFM功能业务板 202按照所述配置信息接收对端发送的 CC报文的 步骤包括: 接收到 CC报文的端口判断所述接收到的 CC报文是否为 CFM报文; 若为 CFM报文, 则将所接收到的 CC报文重定向给所述 CFM功能业务板; 所述 CFM功能 业务板按照所述配置信息接收所述接收到的 CC报文。 在本优选的实施例中, 通过重 定向机制, 使得能正确地识别和转发 CC报文。 优选的, 在进行 CFM配置、 按照用户指令指定 CFM功能业务板或者 CFM功能 业务板上、 下线时将所述重定向规则发送给各个所述端口。 在本优选的实施例中, 通 过上述特定的配置重定向规则的时间点, 使得各个端口均能有效地接收并使用重定向 规则。 优选的, 接收到 CC报文的端口按照重定向规则判断所述接收到的 CC报文是否 为 CFM报文的步骤包括: 所述端口对接收到的 CC报文的参数进行匹配, 其中, 所述 参数包括以下至少之一:报文的协议类型、 VLAN ID、物理端口号、 MD等级、 OpCode; 若所述接收到的 CC报文的参数匹配成功,则判断出所述接收到的 CC报文是否为 CFM 报文。 在本优选的实施例中, 通过上述特定的判断规则, 可以有效地识别出 CFM报 文。 实施例 3 图 3是根据本发明实施例连通性故障检测系统的另一种结构框图,包括如下部分: 主控板 302、 CFM功能业务板 304和普通单板 306。 在本实施例中,普通单板 306由 CPU 3061、交换芯片 3062和物理接口 3063等组 成, 能够实现 LB和 LT功能, 同时实现慢速 CC功能、 LB功能和 LT功能。 The CFM function service board 202 is configured to receive CFM configuration information for connectivity detection, and receive a CC message sent by the peer end according to the configuration information; if the CC message sent by the peer end is not received within a predetermined time If the connectivity between the local end and the peer end is faulty, the main control board 206 is configured to receive the detection result sent by the CFM function service board. In the preferred embodiment, the CFM function service board is used to process fast CFM packets, which solves the problem of cost and resource waste caused by using high-performance boards to implement fast CC packet processing. Effectively reduce the load on other boards, improve equipment utilization, and reduce equipment costs. Preferably, the connectivity fault detection system according to the embodiment of the present invention further includes: a common interface board 204, configured to provide a physical port for transmitting and receiving fast CC messages. Of course, the physical port is not limited to being located on the common interface board 204, and may also be located on the CFM function service board 202. Preferably, the CFM function service board 202 is further configured to organize a CC message according to the configuration information, and send the packet to the peer end through a real physical port, and perform packet delay statistics on the sent CC message. And packet loss rate statistics. Preferably, the physical port may be located on the CFM function service board 202 or on other common interface boards 204. Preferably, the main control board 206 may include: a determining unit, configured to determine whether the board currently receiving the message is a CFM before the CFM function service board receives the CC message sent by the opposite end according to the configuration information. a function service board, configured to: when the board that receives the current packet is the CFM function service board, set the board that currently receives the packet as the CFM function service board of the local end; When the board that receives the packet is not the CFM function service board, the CFM function service board with the smallest slot number of the current CFM function service board is selected as the CFM function service board of the local end, or An online CFM function service board is specified as the CFM function service board of the local end. In the preferred embodiment, the most suitable CFM function service board can be selected by the specific selection method described above. Preferably, when the CFM function service board is offline, the step of selecting the CFM function service board of the local end is performed. In the preferred embodiment, it is ensured that the new CFM function service board is continuously selected when the current CFM function service board is offline, and whether the CFM function service board needs to be updated when the new CFM function service is online is determined. Thereby ensuring the continuity of the business. Preferably, the step of the CFM function service board 202 receiving the CC message sent by the peer end according to the configuration information includes: determining, by the port that receives the CC message, whether the received CC message is a CFM message; For the CFM packet, the received CC message is redirected to the CFM function service board; the CFM function service board receives the received CC message according to the configuration information. In the preferred embodiment, the CC message is correctly identified and forwarded by the redirection mechanism. Preferably, the redirection rule is sent to each of the ports when performing CFM configuration, specifying a CFM function service board or a CFM function service board on or off according to a user instruction. In the preferred embodiment, the time points of the above-mentioned specific configuration redirection rules enable each port to efficiently receive and use the redirection rules. Preferably, the step of determining, by the port that receives the CC message, whether the received CC message is a CFM message according to the redirection rule comprises: the port matching the parameters of the received CC message, where The parameter includes at least one of the following: a protocol type of the packet, a VLAN ID, a physical port number, an MD level, and an OpCode. If the parameters of the received CC message match successfully, the received CC report is determined. Whether the text is a CFM message. In the preferred embodiment, the CFM message can be effectively identified by the above specific judgment rule. Embodiment 3 FIG. 3 is another structural block diagram of a connectivity fault detection system according to an embodiment of the present invention, including the following components: a main control board 302, a CFM function service board 304, and a common board 306. In the embodiment, the common board 306 is composed of a CPU 3061, a switch chip 3062, and a physical interface 3063, and can implement the LB and LT functions, and implement the slow CC function, the LB function, and the LT function.
CPM功能业务板 304包括: CPU 3041、 交换芯片 3042、 物理接口 3043、 OAM 硬件模块 3044和 LM硬件模块 3045, 在存在 CFM功能业务板 304的情况下将 CCM 重定向到 CFM功能业务板 304实现 CC功能, 并同时可以实现 LB功能、 LT功能、 LM功能和 DM功能。 普通单板 306通过高速背板 308即 CROSS-BAR相连, 设备通过 CFM功能业务 板 304和普通单板 306上的物理接口和对端设备相连。 在本实施例的连通性故障检测系统中, 必须有一块或者两块主控板 302, 如果是 两块主控板 302, 则包括主主控和备主控, 并可以根据实际需要配置一块或多块普通 单板 306和一块或多块 CFM功能业务板 304。 在本实施例中, 主控板 302设置为将 CFM配置下发到各个普通单板 306和 CFM 功能业务板 304中, 并接收和处理由普通单板 306和 CFM功能业务板 304的回显信 息或者告警信息。 基于上述的连通性故障检测系统, 以下结合附图来描述该系统的连通性故障检测 过程。 在本优选的实施例中, 若设置多个 CFM功能业务板, 则上述系统支持 CFM功能 业务板的动态选择, 其选择过程可以采用如下策略: The CPM function service board 304 includes: a CPU 3041, a switch chip 3042, a physical interface 3043, an OAM hardware module 3044, and an LM hardware module 3045. When the CFM function service board 304 is present, the CCM is redirected to the CFM function service board 304 to implement the CC. Function, and at the same time can realize LB function, LT function, LM function and DM function. The common board 306 is connected to the peer device through the high-speed backplane 308, that is, the CROSS-BAR. The device is connected to the peer device through the physical interface of the CFM function service board 304 and the ordinary board 306. In the connectivity fault detection system of this embodiment, one or two main control boards 302 must be included. If the two main control boards 302 are included, the main control and the standby main control are included, and one or A plurality of ordinary boards 306 and one or more pieces of CFM function service boards 304. In this embodiment, the main control board 302 is configured to send the CFM configuration to the common board 306 and the CFM function service board 304, and receive and process the echo information of the ordinary board 306 and the CFM function service board 304. Or alarm information. Based on the above-described connectivity failure detecting system, the connectivity failure detecting process of the system will be described below with reference to the drawings. In the preferred embodiment, if multiple CFM function service boards are set, the system supports dynamic selection of the CFM function service board, and the selection process may adopt the following strategies:
1、 如果指定端口所在单板就是 CFM功能业务板, 那么选择本单板作为本单板当 前 CFM功能的承载板; 1. If the board where the specified port resides is the CFM function service board, select the board as the current CFM function carrier board.
2、如果指定端口所在单板是普通单板,那么进一步判断用户是否有静态承载板配 置, 如果有配置则选择用户指定配置的单板作为承载板, 如果没有静态配置, 那么选 择当前所有在线的 CFM功能业务板中槽位号最小的作为本单板 CFM功能的承载板, 如果系统中不存在 CFM功能业务板时, 则不选择承载板; 3、 如果有 CFM功能业务板上线, 不影响正在使用的承载板业务, 而对于因静态 指定或者上线之前系统中没有 CFM功能承载板的业务, 会重新选择承载板, 下线时, 会根据 1, 2的原则重新选择当前 CFM功能的承载板。 优选的, CFM功能业务板的选择可以由实施例 3中所示的主控板单板管理模块完 成。 图 4是根据本发明实施例连通性故障检测方法的 CFM功能承载板的选择流程图, 其包括如下步骤: 2. If the board where the specified port is located is a normal board, determine whether the user has a static board configuration. If yes, select the board to be configured as the board. If there is no static configuration, select all current online. If the CFM function card is not available in the system, the carrier card of the CFM function is the smallest. 3. If the CFM function is serviced, the service will not be affected. The service will be re-selected for the service without the CFM function carrier in the system. The principle of 2 re-selects the carrier board of the current CFM function. Preferably, the selection of the CFM function service board can be completed by the main control board management module shown in Embodiment 3. FIG. 4 is a flowchart of selecting a CFM function carrier board according to a connectivity fault detection method according to an embodiment of the present invention, which includes the following steps:
5401 , 主控板通过中断或者轮询的方式检测到设备上有单板上线或者下线; 5401. The main control board detects that there is a single on-board or off-line on the device by interrupting or polling.
5402, 判断上线或者下线的单板是否为 CFM功能业务板, 如果不是则执行步骤 S406, 如果是 CFM功能业务板则执行步骤 S403 ; 5402, determining whether the board of the online or offline line is a CFM function service board, if not, executing step S406; if it is a CFM function service board, executing step S403;
5403 , CFM功能业务板上线, 已经选择出有效承载板的业务将不受影响, 需要承 载板却没有有效承载板的业务需要重新选择承载板, CFM功能业务板下线, 所有业务 均需要重新选择承载板; 5403, CFM function service is on-line. The service that has selected the effective carrier board will not be affected. The service that needs to be the carrier board but does not have a valid carrier board needs to re-select the carrier board. The CFM function service board is offline. All services need to be re-selected. Carrier board
5404, 如果重新选择前后的承载板相同, 则业务不执行任何操作, 执行步骤 406, 如果不相同, 则执行步骤 405; 5404, if the re-selection of the carrier board is the same, the service does not perform any operation, step 406 is performed, if not, step 405 is performed;
5405, 通知重定向模块, 进行重定向操作; 5405, notifying the redirection module to perform a redirection operation;
5406, CFM功能承载板选择流程结束。 实施例 4 本优选的实施例提供了一种连通性故障检测系统, 其包括如下几个部件: 1、高级业务承载板选择模块, 设置为根据承载板选择规则在单板上下线时动态的 选择 CFM功能承载板, 并通知下述报文重定向模块下发相应的报文重定向规则; 5406, The CFM function carrier board selection process ends. Embodiment 4 The preferred embodiment provides a connectivity fault detection system, which includes the following components: 1. An advanced service carrier board selection module, configured to dynamically select when a board is offline according to a carrier board selection rule. The CFM function carries the board, and notifies the following packet redirection module to deliver the corresponding packet redirection rule;
2、 报文重定向模块, 设置为实现在进行 CFM配置或者重新确定承载板时下发报 文重定向规则, 根据规则对单板上接收到的报文进行过滤, 将 CFM报文重定向到承 载板或者本板 CPU; 3、 OAM硬件模块, 该模块位于 CFM功能业务板, 设置为根据配置的报文发送 周期定时发送、 接收并处理 CCM, 同时根据检测结果向 CFM软件模块上告相应的告 警, 完成 CC功能; 2. The packet redirection module is configured to perform the packet redirection rule when the CFM is configured or the board is re-determined, and the packets received by the board are filtered according to the rules, and the CFM packet is redirected to the bearer. Board or board CPU; 3. The OAM hardware module is located on the CFM function service board. It is set to send, receive, and process the CCM according to the configured packet sending period. At the same time, the corresponding alarm is reported to the CFM software module according to the detection result, and the CC function is completed.
4、 LM硬件模块, 该模块位于 CFM功能业务板, 设置为实现 LM、 DM功能所需 的报文个数和时间统计, 同时在 LM和 DM报文经过该模块时, 将个数和时间数据填 入报文的相应字段中; 4. The LM hardware module, which is located on the CFM function service board, is set to the number of packets and time statistics required to implement the LM and DM functions, and the number and time data when the LM and DM packets pass through the module. Fill in the corresponding fields of the message;
5、 CFM软件模块, 该模块位于各功能板的 CPU, 设置为下发 CFM的相关配置、 接收并处理由硬件上报的各种告警、实现 LB和 LT功能、完成 LM和 DM功能的计算 工作, 另外在没有承载板存在的情况下完成慢速 (发送周期 Is及以上) CCM的发送 和处理。 在本优选的实施例中重定向规则的下发可以由报文重定向模块完成, 其分为两种 情况: 5, CFM software module, the module is located in the CPU of each function board, set to send CFM related configuration, receive and process various alarms reported by hardware, realize LB and LT functions, complete LM and DM function calculation work, In addition, the transmission and processing of the slow (transmission period Is and above) CCM is completed without the presence of the carrier board. In the preferred embodiment, the delivery of the redirection rule can be completed by the message redirection module, which is divided into two cases:
1 . 如果系统中不存在 CFM功能承载板, 在使能 CFM功能时, 向各个功能板的 每个物理端口都下发重定向规则, 此规则主要匹配报文协议类型, 要求所有 CFM报 文都上送本板 CPU; If the CFM function is not available in the system, the CFM function is used to send the redirection rule to each physical port of each function board. This rule matches the packet protocol type. All CFM packets are required. Send the CPU to the board;
2. 如果系统中存在 CFM功能承载板, 在进行 CFM配置或者单板上、 下线时下 发重定向规则,本实施例中的 CFM配置特指将 MEP绑定到某一功能板的物理端口上。 此时下发的重定向规则需要匹配报文的协议类型、 VLAN ID、物理端口号、 MD等级、 OpCode等字段,在匹配成功之后根据报文的 OpCode值来决定是重定向到承载板还是 上送本板 CPU, OpCode设置为判断 CFM报文的功能类型,其值需要符合 IEEE 802. lag 和 ITU-T Y.1731中的规定,当 OpCode显示报文为 CCM则重定向到承载板,其它 CFM 报文上送本板 CPU。 本实施例中, 存在 CFM功能业务板时下发重定向规则遵循以下原则: 2. If a CFM function carrier is available in the system, the CFM configuration in the CFM configuration is performed on the physical port of a function board. . The redirection rule to be delivered at this time needs to match the protocol type, VLAN ID, physical port number, MD level, and OpCode of the packet. After the match is successful, it is determined whether to redirect to the bearer or send the packet according to the OpCode value of the packet. The CPU of this board, OpCode is set to determine the function type of the CFM message. The value needs to comply with the IEEE 802. lag and ITU-T Y.1731. When the OpCode display message is CCM, it is redirected to the carrier board. Other CFM The packet is sent to the CPU of the board. In this embodiment, when the CFM function service board is deployed, the following rules are applied:
1、 Down型 MEP处理来自以太网方向的 CFM报文, 只在绑定的端口上下发报文 重定向规则; 1. Down-type MEP processes CFM packets from the Ethernet interface and sends and receives packet redirection rules only on the bound ports.
2、 UP型 MEP处理来自桥内的 CFM报文, 会在保护虚拟以太网(VLAN, Virtual Local Area Network) 内除了绑定的端口以外的其它端口上下发重定向规则; 2. The UP-type MEP processes the CFM packets from the bridge, and sends and removes the redirection rules on the ports other than the bound ports in the virtual local area network (VLAN).
3、 当有端口加入或退出 MEP所在的保护 VLAN时, 会根据 1和 2在相应端口上 添加或删除重定向规则; 4、 当 MEP所在的保护 VLAN被删除时, 删除在该 VLAN内所有端口上下发的 重定向规则。 图 5是根据本发明实施例连通性故障检测方法的重定向过滤 CFM报文的流程图, 本实施例中, 使能 CFM功能之后, 物理端口接收到 CFM报文并将其发送给交换芯片 (在 CFM功能业务板上报文还会经过 LM硬件模块的处理), 在交换芯片上, 重定向 模块利用重定向规则对报文进行匹配, 将报文重定向到承载板或者是本板 CPU。 具体 过程如下: 3. When a port is added to or removed from the protected VLAN where the MEP is located, the redirection rule is added or deleted on the corresponding port according to 1 and 2. 4. When the protected VLAN where the MEP resides is deleted, the redirection rules sent and received on all ports in the VLAN are deleted. 5 is a flowchart of a redirection filtering CFM message according to the connectivity fault detection method according to an embodiment of the present invention. In this embodiment, after the CFM function is enabled, the physical port receives the CFM packet and sends it to the switch chip. The packet is processed by the LM hardware module on the CFM function service board. On the switch chip, the redirection module uses the redirection rule to match the packet and redirects the packet to the carrier board or the CPU of the local board. The specific process is as follows:
5501 , 交换芯片接收到从物理端口发送过来的报文, 进入重定向模块进行处理; 5501, the switch chip receives the packet sent from the physical port, and enters the redirection module for processing;
5502, 查找重定向规则中是否有 CFM报文重定向规则, 如果有执行步骤 S503 , 如果没有则执行步骤 S504; 5502, if there is a CFM packet redirection rule in the redirection rule, if there is step S503, if not, step S504 is performed;
5503 , 利用 CFM报文重定向规则对报文进行匹配, 判断是否为 CFM报文; 5503. The CFM packet redirection rule is used to match the packet to determine whether it is a CFM packet.
5504, 不存在 CFM报文重定向规则或者报文中的内容与已有的 CFM重定向规则 不匹配时,存在两种情况:若为非 CFM报文,走与其报文类型相应的流程;若为 CFM 报文, 该端口上没有绑定 MEP或者本地没有配置 CFM功能, 此时 CFM报文将会作 为普通二层报文, 走二层报文转发流程; 5504: If there is no CFM packet redirection rule or the content of the packet does not match the existing CFM redirection rule, there are two cases: if it is a non-CFM packet, go to the process corresponding to the packet type; If the CFM packet is not bound to the MEP or the local device is not configured with the CFM function, the CFM packet will be used as the Layer 2 packet forwarding process.
5505, 判断是否重定向到承载板, 在系统中不存在 CFM功能承载板时报文上送 CPU, 当系统中存在 CFM功能承载板时, CCM需要重定向到承载板, 其它 CFM报 文上送本板 CPU; If the CFM function carrier is not available in the system, the CCM needs to be redirected to the carrier board. Other CFM packets are sent to the local device. Board CPU;
5506,将 CFM报文重定向到承载板的 OAM硬件模块, 主要是通过下发重定向规 则时根据承载板槽位号、 OAM硬件模块子接口号获得的接口索引来完成; 5506: Redirecting the CFM message to the OAM hardware module of the bearer board, where the OAM hardware module is obtained according to the slot number of the bearer board and the sub-interface number of the OAM hardware module.
5507, 将报文上送本板 CPU, 由 CFM软件模块来完成相应的 CFM功能。 在本优选的实施例中, OAM硬件模块主要完成 CC功能, 包括 CCM的发送、 接 收和处理。 在本实施例中, CCM 的发送包括: 每一个本地 MEP 在 OAM 模块保存一个 SndTimer表, 设置为定时发送 CCM报文的定时器, 使能 CC 功能时, 根据周期将 SndTimer表初始化并开始计时, 时间到则触发 CCM发送同时恢复初始值。 报文发送 时从与本地 MEP对应的 CC报文表中读取 CCM数据, 填入 MEP ID和报文序列号等 信息, 在对应 MA的保护 VLAN内广播出去, CCM的报文格式满足 IEEE 802. lag或 者 ITU-T Y1731中定义的报文要求。 5507, the message is sent to the CPU of the board, and the corresponding CFM function is completed by the CFM software module. In the preferred embodiment, the OAM hardware module primarily performs CC functions, including transmission, reception, and processing of the CCM. In this embodiment, the sending of the CCM includes: each local MEP saves a SndTimer table in the OAM module, and is set as a timer for periodically transmitting CCM messages. When the CC function is enabled, the SndTimer table is initialized according to the period and starts timing. When the time is up, the CCM is sent and the initial value is restored. When the message is sent, the CCM data is read from the CC message table corresponding to the local MEP, and the MEP ID and the message sequence number are filled in. The information is broadcasted in the protected VLAN of the corresponding MA. The CCM packet format satisfies the packet requirements defined in IEEE 802. lag or ITU-T Y1731.
CCM的接收和处理: 接收到重定向过来的 CCM后, 将 CCM与 CC报文表进行 匹配, 根据匹配结果检测出相应的连接状态: 1、如果在 3.5倍发送周期内没有收到远端 MEP的 CCM报文时,检测出与该 MEP 的连通性丢失; CCM receiving and processing: After receiving the redirected CCM, the CCM is matched with the CC message table, and the corresponding connection status is detected according to the matching result: 1. If the remote MEP is not received within 3.5 times of the transmission period When the CCM message is received, the connectivity to the MEP is detected to be lost;
2、 如果 CCM中的周期和 MEP ID与配置不一致, 则检测出错误的 CCM; 2. If the period and MEP ID in the CCM are inconsistent with the configuration, an incorrect CCM is detected;
3、如果 CCM中的 MA ID与接收 MEP所在的 MA ID不一致,则检测出交叉连接; 3. If the MA ID in the CCM is inconsistent with the MA ID of the receiving MEP, the cross-connection is detected.
4、 如果 CCM中的 RDI字段为 1, 则检测出远端错误告警。 CCM报文匹配成功之后将报文中的信息更新到远端 MEP数据表中, 设置为完成 双端 LM功能。 在本优选的实施例中, LM硬件模块主要完成 ITU-T Y1731中规定的 LM功能和 DM功能的计数功能。 为完成 LM计数, 硬件里保存以 VLAN ID为索引的统计表如图 4, 设置为记录本 地设备接收到的不同 VLAN中不同维护域等级的 LM报文个数。 当 LM报文经过时, LM硬件模块会将统计个数填入报文的相应字段, 供本地设备和远端设备计算时使用。 为完成 DM功能, 在系统初始化或者修改系统时间时将系统时间同步到 LM硬件 模块中, LM硬件模块会根据其固有的时钟频率进行计时, 其精度可以达到 8ns。 当 DM报文经过时, LM硬件模块会将时间填入报文的相应字段, 供本地设备和远端设 备计算时使用。 4. If the RDI field in the CCM is 1, a remote error alarm is detected. After the CCM packet is successfully matched, the information in the packet is updated to the remote MEP data table, and the double-ended LM function is set. In the preferred embodiment, the LM hardware module mainly performs the counting function of the LM function and the DM function specified in ITU-T Y1731. To complete the LM count, the statistics table with the VLAN ID as the index is stored in the hardware. As shown in Figure 4, it is set to record the number of LM packets of different maintenance domain levels in different VLANs received by the local device. When the LM packet passes, the LM hardware module fills in the corresponding field of the packet for the local device and the remote device to calculate. To complete the DM function, the system time is synchronized to the LM hardware module when the system is initialized or the system time is modified. The LM hardware module will time according to its inherent clock frequency, and its accuracy can reach 8ns. When the DM packet passes, the LM hardware module fills in the corresponding field of the packet for use by the local device and the remote device for calculation.
CFM软件模块位于各功能板的 CPU,该模块保存与上述硬件模块相应的表项,设 置为完成 CFM配置的下发、 LB功能、 LT功能、 LM和 DM功能的统计工作以及系统 中不存在 CFM功能承载板时的慢速 CC功能。 使能 LB功能时, CFM软件模块发送或者接收 LB报文 (LBM, LB Message) 和 LB恢复报文 (LBR, LB Reply), 其处理过程符合 IEEE 802. lag和 ITU-T Y1731中的 规定; 使能 LT功能时, CFM软件模块发送或者接收 LT报文 (LTM, LT Message) 和 LT恢复报文(LTR, LT Reply), 其处理过程符合 IEEE 802. lag和 ITU-T Yl 731中的规 定; 使能 LM功能时, 对于双端 LM, CFM软件模块会定时到 OAM硬件模块中的远 端 MEP数据表中取数据并计算统计结果, 对于单端 LM, CFM软件模块会定时发送 或者接收 LM报文 (LMM, LM Message)和 LM恢复报文 (LMR, LM Reply), 并根 据 LMR中的数据计算统计结果, 上述过程符合 ITU-T Y1731中的规定; 使能 DM功能时, CFM软件模块定时发送和接收 DM报文, 根据 DM报文中携 带的时间戳计算 DM统计结果, 该过程符合 ITU-T Y1731中的规定; 当系统中不存在 CFM功能承载板时, 由 CFM软件模块定时发送和接收 CCM, 此过程与 OAM硬件模块相似, 符合 IEEE 802. lag或者 ITU-T Y1731的规定。 从以上的描述中, 可以看出, 本发明实现了如下技术效果: The CFM software module is located in the CPU of each function board. The module saves the entries corresponding to the above hardware modules, and is set to complete the CFM configuration delivery, LB function, LT function, LM and DM function statistics, and CFM does not exist in the system. Slow CC function when functioning the board. When the LB function is enabled, the CFM software module sends or receives LB messages (LBM, LB Message) and LB recovery messages (LBR, LB Reply). The processing is in accordance with IEEE 802. lag and ITU-T Y1731. When the LT function is enabled, the CFM software module sends or receives LT messages (LTM, LT Message) and LT recovery messages (LTR, LT Reply), which are processed in accordance with IEEE 802. lag and ITU-T Yl 731. When the LM function is enabled, for the dual-end LM, the CFM software module periodically takes data from the remote MEP data table in the OAM hardware module and calculates the statistical result. For the single-ended LM, the CFM software module periodically sends or receives the LM. The message (LMM, LM Message) and the LM recovery message (LMR, LM Reply), and calculate the statistical result according to the data in the LMR, the above process conforms to the provisions of ITU-T Y1731; when the DM function is enabled, the CFM software module The DM packet is sent and received periodically, and the DM statistics are calculated according to the timestamp carried in the DM packet. The process is in accordance with the provisions of ITU-T Y1731. When the CFM function carrier does not exist in the system, it is sent periodically by the CFM software module. And receiving CCM, this process is similar to the OAM hardware module and conforms to IEEE 802. lag or ITU-T Y1731. From the above description, it can be seen that the present invention achieves the following technical effects:
1、 实现了 IEEE 802. lag和 ITU-T Y.1731规定的 CC功能、 LB功能、 LT功能、 LM功能、 DM功能; 2、 LM和 DM功能只在 CFM业务板上支持, 其余功能所有单板支持, 在 CFM业 务板上支持单端 LM和双端 LM, 支持单向 DM和双向 DM; 1. Implemented the CC function, LB function, LT function, LM function, and DM function specified by IEEE 802. lag and ITU-T Y.1731; 2. LM and DM functions are only supported on the CFM service board, and all other functions are supported. Supported by the board, supports single-ended LM and dual-end LM on the CFM service board, and supports one-way DM and two-way DM;
3、 每台交换机至少支持 IEEE 802.1ag和 ITU-T Y1731规定的 16个 MD, 每个 MD上至少支持 32个 MA, 每个 MA上至少支持 512个 MEP, 整机至少支持 8K个 MEP; 4、 每台交换机支持配置 8个等级 (0-7) 的 MD, 属于用户、 服务提供商、 运营3. Each switch supports at least 16 MDs specified by IEEE 802.1ag and ITU-T Y1731. Each MD supports at least 32 MAs. Each MA supports at least 512 MEPs. The whole machine supports at least 8K MEPs. 4 Each switch supports eight levels (0-7) of MDs, belonging to users, service providers, and operations.
00ms、 ls、 10s、 60s、 600s, 在本方案和系统中, 发送周期小于 Is的 CCM被称作快 速 CCM, 发送周期为 Is及以上的 CCM为慢速 CCM。 通过本发明, 采用利用承载板来处理快速的 CFM报文 CCM的方案, 解决了普通 单板 CPU难以实现快速 CFM功能、 全部采用高性能单板又会造成成本和资源浪费的 问题, 进而达到了在有效的降低其它单板负荷、 提高设备利用率的同时降低设备成本 的效果。 同时, 本发明还通过硬件和软件相结合, 硬件计数和打戳, 软件取数据统计的方 式, 处理发送和接收带有时间戳或者报文个数统计的报文, 实现了包延时统计 (DM) 和丢包率统计 (LM) 功能。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 00ms, ls, 10s, 60s, 600s, in this scheme and system, the CCM with a transmission period less than Is is called fast CCM, and the CCM with a transmission period of Is and above is a slow CCM. The present invention adopts a solution that uses a carrier board to process a fast CFM message CCM, and solves the problem that a common single-board CPU is difficult to implement a fast CFM function, and all high-performance boards are used, which causes cost and resource waste, and thus achieves It can effectively reduce the load on other boards and increase the utilization rate of equipment while reducing the cost of equipment. At the same time, the invention also combines the hardware and the software, the hardware counts and marks the data, and the software takes the data statistics manner, and processes the sending and receiving of the packets with the time stamp or the number of the packets, and realizes the packet delay statistics ( DM) and packet loss rate statistics (LM) capabilities. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种连通性故障检测方法, 包括: 1. A connectivity fault detection method, including:
将用于连通性检测的 CFM配置信息发送给本端的 CFM功能业务板; 所述 CFM功能业务板按照所述配置信息接收对端发送的 CC报文; 若所述 CFM功能业务板在预定时间内没有接收到所述对端发送的 CC报 文, 则所述 CFM功能业务板检测出所述本端到所述对端之间的连通性出现故 障, 并将检测结果发送给所述本端的主控板。  Sending the CFM configuration information for the connectivity detection to the CFM function service board of the local end; the CFM function service board receives the CC message sent by the peer end according to the configuration information; if the CFM function service board is within a predetermined time If the CC message sent by the peer end is not received, the CFM function service board detects that the connectivity between the local end and the peer end is faulty, and sends the detection result to the local end. Control board.
2. 根据权利要求 1所述的方法, 其中, 在所述 CFM功能业务板按照所述配置信 息接收对端发送的 CC报文时, 还包括: The method according to claim 1, wherein, when the CFM function service board receives the CC message sent by the peer end according to the configuration information, the method further includes:
所述 CFM功能业务板按照所述配置信息向所述对端发送 CC报文; 所述 CFM功能业务板对所发送的 CC报文执行包延时统计和丢包率统计。  The CFM function service board sends a CC message to the peer according to the configuration information. The CFM function service board performs packet delay statistics and packet loss rate statistics on the sent CC message.
3. 根据权利要求 1所述的方法, 其中, 在所述 CFM功能业务板按照所述配置信 息接收对端发送的 CC报文之前,通过以下步骤选择所述本端的 CFM功能业务 板: The method according to claim 1, wherein before the CFM function service board receives the CC message sent by the peer end according to the configuration information, the CFM function service board of the local end is selected by the following steps:
判断当前接收报文的单板是否为 CFM功能业务板;  Determine whether the board that receives the current packet is a CFM function service board.
若是, 则将所述当前接收报文的单板设置为所述本端的 CFM功能业务板; 若不是, 则选择当前所有在线的 CFM功能业务板中槽位号最小的 CFM功 能业务板作为所述本端的 CFM功能业务板, 或者, 按照用户的指令指定一个 在线的 CFM功能业务板作为所述本端的 CFM功能业务板。  If yes, the board that is currently receiving the packet is configured as the CFM function service board of the local end; if not, the CFM function service board with the smallest slot number in all the online CFM function service boards is selected as the The CFM function service board of the local end, or an online CFM function service board is specified as the CFM function service board of the local end.
4. 根据权利要求 3所述的方法, 其中, 在存在 CFM功能业务板上下线时, 执行 选择所述本端的 CFM功能业务板的步骤。 4. The method according to claim 3, wherein the step of selecting the CFM function service board of the local end is performed when the CFM function service board is offline.
5. 根据权利要求 1所述的方法, 其中, 所述 CFM功能业务板按照所述配置信息 接收对端发送的 CC报文的步骤包括: The method according to claim 1, wherein the step of receiving, by the CFM function service board, the CC message sent by the opposite end according to the configuration information comprises:
接收到 CC报文的端口判断所述接收到的 CC报文是否为 CFM报文; 若为 CFM报文,则将所接收到的 CC报文重定向给所述 CFM功能业务板; 所述 CFM功能业务板按照所述配置信息接收所述接收到的 CC报文。 The port that receives the CC message determines whether the received CC message is a CFM message; if it is a CFM message, redirects the received CC message to the CFM function service board; The function service board receives the received CC message according to the configuration information.
6. 根据权利要求 5所述的方法,其中,在进行 CFM配置、按照用户指令指定 CFM 功能业务板或者 CFM功能业务板上、 下线时将所述重定向规则发送给各个所 述端口。 The method according to claim 5, wherein the redirection rule is sent to each of the ports when performing CFM configuration, specifying a CFM function service board or a CFM function service board on or off according to a user instruction.
7. 根据权利要求 5所述的方法, 其中, 接收到 CC报文的端口判断所述接收到的 CC报文是否为 CFM报文的步骤包括: The method according to claim 5, wherein the step of determining, by the port that receives the CC message, whether the received CC message is a CFM message comprises:
所述端口对接收到的 CC报文的参数进行匹配, 其中, 所述参数包括以下 至少之一: 报文的协议类型、 VLAN ID、 物理端口号、 MD等级、 OpCode; 若所述接收到的 CC报文的参数匹配成功, 则判断出所述接收到的 CC报 文是否为 CFM报文。  The port matches the parameters of the received CC packet, where the parameter includes at least one of the following: a protocol type, a VLAN ID, a physical port number, an MD level, and an OpCode of the packet; If the parameters of the CC message are successfully matched, it is determined whether the received CC message is a CFM message.
8. 一种连通性故障检测系统, 包括: 8. A connectivity fault detection system, comprising:
CFM功能业务板, 设置为接收用于连通性检测的 CFM配置信息, 并按照 所述配置信息接收对端发送的 CC报文; 若在预定时间内没有接收到所述对端 发送的 CC报文, 则检测出所述本端到所述对端之间的连通性出现故障;  The CFM function service board is configured to receive the CFM configuration information for the connectivity detection, and receive the CC message sent by the peer end according to the configuration information; if the CC message sent by the peer end is not received within the predetermined time, And detecting that the connectivity between the local end and the opposite end is faulty;
主控板, 设置为接收所述 CFM功能业务板发送的检测结果。  The main control board is configured to receive the detection result sent by the CFM function service board.
9. 根据权利要求 8所述的系统, 其中, 所述 CFM功能业务板还设置为按照所述 配置信息向所述对端发送 CC报文, 对所发送的 CC报文执行包延时统计和丢 包率统计。 The system according to claim 8, wherein the CFM function service board is further configured to send a CC message to the opposite end according to the configuration information, and perform packet delay statistics on the sent CC message. Packet loss rate statistics.
10. 根据权利要求 8所述的系统, 其中, 所述主控板包括: 10. The system according to claim 8, wherein the main control board comprises:
判断单元, 设置为在所述 CFM功能业务板按照所述配置信息接收对端发 送的 CC报文之前, 判断当前接收报文的单板是否为 CFM功能业务板;  The determining unit is configured to determine, before the CFM function service board receives the CC message sent by the peer end according to the configuration information, whether the board that receives the current message is a CFM function service board;
处理单元, 设置为在所述当前接收报文的单板为所述 CFM功能业务板时, 将所述当前接收报文的单板设置为所述本端的 CFM功能业务板; 在所述当前 接收报文的单板不为所述 CFM功能业务板时,选择当前所有在线的 CFM功能 业务板中槽位号最小的 CFM功能业务板作为所述本端的 CFM功能业务板, 或 者, 按照用户的指令指定一个在线的 CFM功能业务板作为所述本端的 CFM功 能业务板。  The processing unit is configured to: when the board that is currently receiving the packet is the CFM function service board, set the board that is currently receiving the packet to the CFM function service board of the local end; If the board of the packet is not the CFM function service board, select the CFM function service board with the smallest slot number in the current CFM function service board as the CFM function service board of the local end, or follow the user's instructions. An online CFM function service board is specified as the CFM function service board of the local end.
11. 根据权利要求 8所述的系统, 其中, 设置为快速收发所述 CC报文的物理端口 位于所述 CFM功能业务板上, 或者, 位于所述连通性故障检测系统中的普通 接口单板上。 The system according to claim 8, wherein the physical port that is configured to quickly send and receive the CC message is located on the CFM function service board, or a common interface board located in the connectivity fault detection system. on.
PCT/CN2011/078980 2010-12-30 2011-08-26 Method and system for detecting connectivity fault WO2012088910A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010616351.7 2010-12-30
CN2010106163517A CN102055624A (en) 2010-12-30 2010-12-30 Method and system for detecting connectivity fault

Publications (1)

Publication Number Publication Date
WO2012088910A1 true WO2012088910A1 (en) 2012-07-05

Family

ID=43959580

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/078980 WO2012088910A1 (en) 2010-12-30 2011-08-26 Method and system for detecting connectivity fault

Country Status (2)

Country Link
CN (1) CN102055624A (en)
WO (1) WO2012088910A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684887A (en) * 2013-12-31 2014-03-26 杭州华三通信技术有限公司 Method and equipment for generating connectivity fault detection network system hardware table entry

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055624A (en) * 2010-12-30 2011-05-11 中兴通讯股份有限公司 Method and system for detecting connectivity fault
CN103001819B (en) * 2011-09-19 2015-01-21 盛科网络(苏州)有限公司 Method and system for processing OAM (operation, administration and maintenance) detecting results in MPLS-TP (multiple protocol label switching-transmission parameter) network
CN105515807B (en) * 2014-09-25 2020-09-08 中兴通讯股份有限公司 Up cfm message processing method and system and network data exchange equipment
CN109428778B (en) * 2017-08-24 2020-11-17 龙芯中科技术有限公司 Mainboard network connectivity test method and device
CN108282383B (en) * 2017-12-18 2020-09-18 瑞斯康达科技发展股份有限公司 Method and equipment for realizing fault processing
CN112838944B (en) * 2020-07-29 2022-08-12 中兴通讯股份有限公司 Diagnosis and management, rule determination and deployment method, distributed device, and medium
CN113726614B (en) * 2021-10-20 2023-01-24 迈普通信技术股份有限公司 Method and device for preventing packet loss, distributed equipment and storage medium
CN114567574B (en) * 2022-03-01 2023-11-10 烽火通信科技股份有限公司 Method and device for realizing LM flow-free test based on time sequence control

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499938A (en) * 2009-03-27 2009-08-05 武汉烽火网络有限责任公司 Apparatus and method for implementing high frequency continuity detection in CFM
CN101521603A (en) * 2008-12-26 2009-09-02 中兴通讯股份有限公司 Method and system for quickly detecting connectivity of link
CN102055624A (en) * 2010-12-30 2011-05-11 中兴通讯股份有限公司 Method and system for detecting connectivity fault

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7751416B2 (en) * 2003-09-18 2010-07-06 Cisco Technology, Inc. Virtual network device
CN101378333B (en) * 2008-10-08 2011-04-20 中兴通讯股份有限公司 System, apparatus and method for transmitting and receiving check information message continuously

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521603A (en) * 2008-12-26 2009-09-02 中兴通讯股份有限公司 Method and system for quickly detecting connectivity of link
CN101499938A (en) * 2009-03-27 2009-08-05 武汉烽火网络有限责任公司 Apparatus and method for implementing high frequency continuity detection in CFM
CN102055624A (en) * 2010-12-30 2011-05-11 中兴通讯股份有限公司 Method and system for detecting connectivity fault

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684887A (en) * 2013-12-31 2014-03-26 杭州华三通信技术有限公司 Method and equipment for generating connectivity fault detection network system hardware table entry
CN103684887B (en) * 2013-12-31 2017-01-04 杭州华三通信技术有限公司 A kind of method and apparatus connecting the generation of error detection group network system hardware table item

Also Published As

Publication number Publication date
CN102055624A (en) 2011-05-11

Similar Documents

Publication Publication Date Title
WO2012088910A1 (en) Method and system for detecting connectivity fault
US9705735B2 (en) System and method using RSVP hello suppression for graceful restart capable neighbors
EP2781063B1 (en) Rerouting technique
EP2720418B1 (en) Lacp link switching and data transmission method and device
EP3694160A1 (en) Date transmission method, apparatus and device
KR101548034B1 (en) Reducing cc message transmission in a provider network
EP3257199B1 (en) Service performance monitoring in a virtualized communication network
JP5784139B2 (en) Communications system
WO2013071801A1 (en) Method, device and system for detecting multi-protocol label switching ring network
WO2015070608A1 (en) Oam performance monitoring method and apparatus
EP2916489B1 (en) Oam packet processing method, device and system
US20140043960A1 (en) Method, tor switch, and system for implementing protection switchover based on trill network
WO2013185567A1 (en) Apparatus and method for protecting and switching packet transport network
US10862735B2 (en) Method and apparatus for implementing operation, administration, and maintenance function
EP2681871A1 (en) In-service throughput testing in distributed router/switch architectures
WO2015168947A1 (en) Path switching method and device
WO2014146541A1 (en) Cdn and network convergence system, scheduling module selection method and computer storage medium
CN105897580B (en) A kind of unrelated forwarding network quick fault testing of agreement and traffic protection switching method
JP5352502B2 (en) Packet communication system and packet communication apparatus control method
WO2015035852A1 (en) Method and device for announcing state between nodes
US11888680B1 (en) Early detection of telemetry data streaming interruptions
CN112073270B (en) Link fault detection method and device
WO2015158058A1 (en) Method and system for implementing call saving and recovery
WO2014000509A1 (en) Transmission monitoring method and device
US20120230207A1 (en) Early detection of loss of continuity in a maintenance association

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

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

Country of ref document: EP

Kind code of ref document: A1