[go: up one dir, main page]

WO2017020287A1 - Link detection method and device - Google Patents

Link detection method and device Download PDF

Info

Publication number
WO2017020287A1
WO2017020287A1 PCT/CN2015/086201 CN2015086201W WO2017020287A1 WO 2017020287 A1 WO2017020287 A1 WO 2017020287A1 CN 2015086201 W CN2015086201 W CN 2015086201W WO 2017020287 A1 WO2017020287 A1 WO 2017020287A1
Authority
WO
WIPO (PCT)
Prior art keywords
meps
rmep
ccm
mep
mac address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2015/086201
Other languages
French (fr)
Chinese (zh)
Inventor
谢亮
陈欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2015/086201 priority Critical patent/WO2017020287A1/en
Publication of WO2017020287A1 publication Critical patent/WO2017020287A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • the present invention relates to the field of communications and, more particularly, to a method and apparatus for link detection.
  • Ethernet management In traditional Ethernet, operators generally use the Simple Network Management Protocol (SNMP) to implement Ethernet management.
  • SNMP Simple Network Management Protocol
  • IP Internet Protocol
  • the prior art utilizes Operations Administration and Maintenance (OAM) to implement management and maintenance of Ethernet.
  • OAM Operations Administration and Maintenance
  • the scheme of link detection in the prior art will be briefly introduced below with reference to FIG.
  • the connectivity fault management (CFM) function is enabled on device A, device B, and device D, and the maintenance end point (MEP) is set on the Ethernet ports of these devices.
  • MEP maintenance end point
  • One or more MEPs can be set on each device.
  • the MEP on each device can be called a local MEP.
  • the MEP on other devices connected to it is a remote maintenance end point relative to the device. , RMEP)
  • the MEP on device A and device B is referred to as MEP
  • the MEP on device D is referred to as RMEP.
  • multiple MEPs on device A and device B send multiple connectivity check messages (CCM) messages to the RMEP, and device C acts as a relay device, and it will receive multiple CCMs.
  • the packets are aggregated and sent to RMEP.
  • the RMEP can detect the connectivity of the link according to the condition of receiving the CCM packet. If the RMEP does not receive the CCM packet within a certain period of time, the RMEP considers that the corresponding link is interrupted. If the RMEP can receive the CCM packet, The corresponding link is considered to be connected, and the RMEP can also determine the link connectivity between the RMEP and the MEP according to the status information carried in the received CCM message. This achieves link detection between MEP and RMEP.
  • the problem of the prior art is that the device C aggregates the received multiple CCM packets sent by the multiple MEPs and transmits them to the RMEP, so that the RMEP receives too many CCM packets and occupies too many aggregation links. (eg, the link between device C and device D in Figure 1) bandwidth.
  • the embodiment of the invention provides a method and a device for detecting link detection, so as to reduce the number of CCM packets on the aggregation link, thereby reducing the problem that the CCM packet occupies too much bandwidth of the aggregation link.
  • the first aspect provides a method for link detection, including: receiving, by a relay device, a plurality of first connectivity check message CCM messages sent by a plurality of maintenance end node MEPs, where the first CCM report sent by each MEP Transmitting the ID of each MEP; the relay device performs a combining process on the multiple first CCM packets to generate a second CCM packet, where the source MAC address of the second CCM packet is The MAC address of the transit device, and the second CCM message carries the IDs of the multiple MEPs; the transit device sends the second CCM message to the RMEP, so that the RMEP is according to the The second CCM message determines link connectivity between the RMEP and the plurality of MEPs.
  • the second CCM packet further carries status information of each of the multiple MEPs, where the status information is used to indicate each Link connection status obtained by the MEP.
  • the ID and status information of each MEP is included in a vendor specific type length of the second CCM packet. Value in the TLV field.
  • the source MAC address of the first CCM packet sent by the at least one MEP of the multiple MEPs is The private MAC address of at least one MEP.
  • the transit device receives the first unicast packet sent by the RMEP, where the first unicast packet carries An ID of any one of the plurality of MEPs; the relay device according to the ID of the one MEP carried in the first unicast packet, and an ID of the plurality of MEPs acquired in advance and the plurality of MEPs The mapping of the MAC address, the second unicast packet corresponding to any one of the plurality of MEPs, wherein the source MAC address of the second unicast packet corresponding to the any MEP is the MAC of the RMEP The address, the destination MAC address is the MAC address of any one of the MEPs, and the transit device sends the second unicast packet to any one of the plurality of MEPs.
  • a second aspect provides a method for detecting a link, where the remote maintenance end node RMEP receives a first CCM packet sent by the relay device, where the first CCM packet carries multiple Maintaining an ID of the end node MEP, where the source media access control MAC address of the first CCM message is a MAC address of the transit device; and the RMEP determines the RMEP and the plurality according to the IDs of the multiple MEPs Link connectivity between MEPs.
  • the first CCM packet further carries state information of each of the multiple MEPs, where the state information is used to indicate the foregoing Link connection status obtained by MEP.
  • the RMEP determines, between the RMEP and the plurality of MEPs, according to an ID of the multiple MEPs
  • the link connectivity includes: determining, by the RMEP, whether the multiple MEPs and the RMEP are in a connected state according to the IDs of the multiple MEPs; when the multiple MEPs are in a connected state with the RMEPs, The RMEP determines link connectivity between the RMEP and the plurality of MEPs according to status information of the multiple MEPs.
  • the ID and status information of the multiple MEPs are included in a vendor specific type length of the first CCM message. Value in the TLV field.
  • the method further includes: sending, by the transit device, a first unicast packet, the first unicast packet The ID of the MEP of any one of the plurality of MEPs is received, and the third unicast message sent by any one of the plurality of MEPs is received, so that the RMEP determines the RMEP and any of the plurality of MEPs.
  • the link connectivity between the MEPs wherein the transit device is based on the ID of the any one of the MEPs carried in the first unicast packet, and the IDs of the plurality of MEPs acquired in advance and the plurality of MEPs Generating a second unicast packet corresponding to any MEP of the plurality of MEPs, and transmitting the second unicast packet to the MEP of the corresponding MEP corresponding ID, the third
  • the unicast packet is a packet in which the any MEP replies to the second unicast packet.
  • a third aspect provides an apparatus for detecting a link, comprising: a receiving module, configured to receive a plurality of first connectivity check message CCM messages sent by a plurality of maintenance end node MEPs, where each MEP sends the first a CCM message carrying the ID of each of the MEPs; an execution module, configured to perform a combination process on the plurality of first CCM messages, to generate a second CCM message, where the source of the second CCM message
  • the MAC address is the MAC address of the transit device, and the second CCM message carries the IDs of the multiple MEPs; the sending module is configured to send the second to the RMEP a CCM message, so that the RMEP determines link connectivity between the RMEP and the plurality of MEPs.
  • the second CCM message further carries status information of each of the multiple MEPs, where the status information is used to indicate each Link connection status obtained by the MEP.
  • the ID and status information of each MEP is included in a vendor-specific type length of the second CCM packet. Value in the TLV field.
  • the source MAC address of the first CCM packet sent by the at least one MEP of the multiple MEPs is The private MAC address of at least one MEP.
  • the receiving module is further configured to: receive the first unicast packet sent by the RMEP, where the first The unicast message carries the ID of any one of the plurality of MEPs; the execution module is configured to use the ID of the any one of the MEPs carried in the first unicast packet, and the pre-acquired plurality of MEPs a mapping between the ID and the MAC address of the multiple MEPs, and generating a second unicast packet corresponding to any one of the plurality of MEPs, where the source MAC address of the second unicast packet corresponding to any one of the MEPs The address is the MAC address of the RMEP, and the destination MAC address is the MAC address of the any MEP.
  • the sending module is configured to send the second unicast packet to any one of the multiple MEPs.
  • a device for detecting link detection includes: a receiving module, configured to receive a first CCM message sent by a relay device, where the first CCM message carries multiple IDs of a maintenance end node MEP
  • the source media access control MAC address of the first CCM packet is a MAC address of the transit device
  • the determining module is configured to determine, between the RMEP and the plurality of MEPs according to the IDs of the multiple MEPs Link connectivity.
  • the first CCM packet further carries state information of each of the plurality of MEPs.
  • the determining module is specifically configured to: determine the multiple MEPs according to the IDs of the multiple MEPs Whether the RMEP is in a connected state; when the plurality of MEPs are in a connected state with the RMEP, the RMEP determines the RMEP according to status information of the multiple MEPs.
  • the ID and status information of the multiple MEPs are included in a vendor specific type of the first CCM message.
  • the length value is in the TLV field.
  • the device further includes: a sending module, configured to send the first unicast packet to the transit device, The first unicast packet carries an ID of any one of the plurality of MEPs; the receiving module is configured to receive a third unicast packet sent by any one of the plurality of MEPs, so as to determine the RMEP Link connectivity between the RMEP and any one of the plurality of MEPs; wherein the transit device is based on the ID of the any one of the MEPs carried in the first unicast packet, and pre-acquired A mapping relationship between the IDs of the plurality of MEPs and the MAC addresses of the plurality of MEPs, generating a second unicast packet corresponding to any one of the plurality of MEPs, and sending the second unicast packet to the The MEP corresponding to the ID, the third unicast message is a message that the any MEP replies to the second un
  • the relay device receives multiple CCM packets from multiple MEPs.
  • the transit device does not pass the multiple CCM packets through the link between the transit device and the RMEP as in the prior art.
  • the multiple CCM messages are combined and sent to the RMEP through the link. In this way, the number of CCM messages on the link can be reduced, thereby solving the CCM message. The problem of excessive bandwidth occupied on this link.
  • FIG. 1 is a schematic diagram of an application scenario for detecting link connectivity
  • FIG. 2 is a schematic flowchart of a method for detecting link connectivity according to an embodiment of the present invention
  • FIG. 3 is a diagram showing an example of content of a second CCM message
  • FIG. 4 is a schematic flowchart of a method for detecting link connectivity according to another embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of an apparatus for detecting a link according to an embodiment of the present invention.
  • FIG. 6 is a schematic block diagram of an apparatus for detecting a link according to another embodiment of the present invention.
  • FIG. 7 is a schematic block diagram of an apparatus for detecting a link according to still another embodiment of the present invention.
  • FIG. 8 is a schematic block diagram of an apparatus for detecting a link according to still another embodiment of the present invention.
  • FIG. 2 illustrates a method of link detection in accordance with an embodiment of the present invention. As shown in Figure 2, the method includes:
  • the transit device receives the multiple first CCM messages sent by the multiple MEPs, where the first CCM message sent by each MEP carries the ID of each MEP.
  • the source MAC address of the first CCM message sent by each MEP may be the MAC address of each MEP, and the destination MAC address of the multiple first CCM messages may include the MAC address of the same RMEP. That is, the multiple first CCM messages can be aggregated on the link between the transit device and the same RMEP.
  • the transit device performs a process of combining the multiple first CCM messages to generate a second CCM message, where the source MAC address of the second CCM message is the MAC address of the transit device, and the second CCM message
  • the document carries the IDs of the plurality of MEPs.
  • the foregoing merge process may be understood as encapsulating a plurality of first CCM messages into a second CCM message, and the source MAC address of the second CCM message is replaced with the current MAC address of the transit device.
  • the destination MAC address of the second CCM message may include the MAC address of the RMEP.
  • the transit device sends the second CCM message to the RMEP, so that the RMEP determines link connectivity between the RMEP and the plurality of MEPs.
  • the relay device receives multiple CCM packets from multiple MEPs.
  • the transit device does not pass the multiple CCM packets through the link between the transit device and the RMEP as in the prior art.
  • the multiple CCM messages are combined and sent to the RMEP through the link. In this way, the number of CCM messages on the link can be reduced, thereby solving the CCM message. The problem of excessive bandwidth occupied on this link.
  • the multiple MEPs and the RMEPs have the CFM function enabled, and the multiple MEPs that have the CFM function enabled can send the first CCM message to the RMEP, and the destination MAC address of the first CCM message can be a multicast MAC address, that is,
  • the destination MAC address of the first CCM packet may include the MAC address of the RMEP, and may also include the MAC address of the other RMEP.
  • the destination MAC address of the CCM packet sent by the multiple MEPs includes the MAC address of the same RMEP, The link between the transit device and the RMEP will be aggregated.
  • the RMEP after receiving the second CCM message sent by the relay device, the RMEP only needs to determine the source MAC address of the second CCM message, instead of receiving multiple MEP transmissions as in the prior art.
  • the source MAC address of each CCM packet is determined after multiple CCM messages. Therefore, the MAC learning number of the RMEP can be reduced, and the occupation of the Layer 2 forwarding table resources is reduced.
  • the RMEP parses the second CCM packet to search for the ID of the MEP, and if the ID of the MEP exists in the packet, The link between the MEP and the RMEP is considered to be in a connected state. If the RMEP cannot find the ID of a MEP in the second CCM message received in consecutive cycles, the link between the MEP and the RMEP can be considered to be in the disconnected state.
  • the second CCM message may further carry status information of each MEP in the multiple MEPs, or in other words, the second CCM message may further indicate the IDs of the multiple MEPs and the Correspondence between status information of multiple MEPs.
  • the status information of the MEP may be the connection status of the link that is perceived by the MEP.
  • the status information of the MEP may include the following: the Ethernet OAM connection message of the MEP is lost; the MEP receives the remote fault indication ( The Ethernet OAM connection detection packet of the remote defect Indication (RDI); the MEP receives the incorrect Ethernet OAM connectivity detection packet; the MEP receives the cross-connected Ethernet OAM connectivity detection packet.
  • RDI remote defect Indication
  • the relay device may regenerate a new packet, that is, the second CCM packet, according to the information carried in the multiple first CCM packets, in particular, the transit device will have its own MAC address.
  • the source MAC address of the second CCM packet is set, and the IDs of the plurality of MEPs and the status information of the plurality of MEPs in the plurality of first CCM messages are placed in the second CCM report according to the correspondence between the ID and the state information.
  • the destination MAC address of the second CCM message includes the MAC address of the same remote maintenance end node RMEP.
  • the second CCM message can carry information of multiple MEPs in multiple first CCM messages, and can reduce the number of CCM messages.
  • the ID and status information of each MEP may be included in a vendor specific type length value (TLV) field of the second CCM message.
  • TLV vendor specific type length value
  • the CCM packet can be extended by the vendor-specific type length value TLV field defined in the IEEE 802.1ag, and the extended CCM packet of the first CCM packet is generated, so that the extended packet can carry the ID of the MEP in batches.
  • status information The definition of the TLV in the OAM message is as shown in Table 1.
  • the vendor-specific type length value field of type Type 31 can be extended to enable the field to carry the ID and status information of the MEP in batches.
  • the value Value is used to carry the ID of each MEP and its status information.
  • Each MEP occupies 4 bytes.
  • the MEP ID carries the ID of the MEP, which occupies two bytes.
  • the status Status carries the current status information of the MEP and occupies one byte.
  • the status information of the MEP carried in the MEP can be as follows: The Ethernet OAM connection packet of the MEP is lost; the MEP receives an Ethernet OAM connection detection packet with a Remote Defect Indication (RDI); the MEP receives an incorrect Ethernet OAM connection detection packet; The MEP receives the Ethernet OAM connectivity detection packet of the cross-connection.
  • RDI Remote Defect Indication
  • TLV or organization Type field End TLV 0 Sender ID TLV 1 Port Status TLV 2 Data TLV 3 Interface Status TLV 4 Reply Ingress TLV 5 Reply Egress TLV 6 LTM Egress Identifier TLV 7 LTR Egress Identifier TLV 8 Reserved for IEEE 802.1 9-30 Organization-Specific TLV 31 Defined by ITU-T Y.1731 32-63 Reserved for IEEE 802.1 64-255
  • the source MAC address of the first CCM packet sent by the at least one MEP of the multiple MEPs is the private MAC address of the at least one MEP.
  • multiple MEPs require the device to provide multiple public bridge MAC addresses, and the public bridge MAC address is limited.
  • the private MAC address of the device can be set to the source address of the first CCM packet and the first CCM packet is sent to the transit device, so that the occupation of the public network MAC address can be reduced, thereby solving the public bridge MAC address. Insufficient problems.
  • the transit device may further receive the first unicast packet sent by the RMEP, where the first unicast packet carries the ID of any MEP of the multiple MEPs; the transit device may be based on multiple MEPs acquired in advance.
  • the source MAC address of the second unicast packet corresponding to the any one MEP is the MAC address of the RMEP, and the destination MAC address is the MAC address corresponding to the ID of the any MEP; the transit device sends the MAC address to the any MEP.
  • Second unicast message After receiving the second unicast packet, the MEP sends a third unicast packet to the RMEP for replying to the second unicast packet, and the RMEP completes the detection of the link after receiving the third unicast packet.
  • the transit device can not only receive the first unicast packet sent by the RMEP, but also receive the packet similar to the first unicast packet sent by other MEPs.
  • the first unicast packet sent by the RMEP may be a unicast packet other than the CCM packet.
  • the first unicast packet may be a packet used for loopback detection (LB) transmission, or may be used.
  • RMEP may be sent to one of a plurality of MEPs for LB or For the LT message, one of the multiple MEPs may also send a message for the LB or LT to the RMEP.
  • the transit device can obtain the mapping relationship between the IDs of the multiple MEPs and the MAC addresses of the multiple MEPs according to the content of the received multiple CCM packets, and the transit device can also obtain the unicast packets according to the received unicast packets.
  • the transit device can immediately process the packet according to the mapping relationship, or store the mapping relationship for later processing of the packet or for other purposes.
  • the MEP or RMEP may be used to convert the detected link results to CFM technology.
  • the detection result that is to say, the MEP and RMEP here can also detect the non-CFM link, and can map the detection result into the CCM message.
  • the method includes:
  • the RMEP receives the first CCM message sent by the transit device, where the first CCM message carries the ID of the multiple MEP, and the source MAC address of the first CCM message is the MAC address of the transit device.
  • the first CCM message received by the RMEP may correspond to the second CCM message in the embodiment of FIGS. 2 and 3, that is, they may be the same message.
  • the destination MAC address of the first CCM message sent by the relay device may include the MAC address of the RMEP.
  • the RMEP determines link connectivity between the RMEP and the plurality of MEPs according to the IDs of the multiple MEPs.
  • the RMEP receives the packet obtained by combining the received CCM packets by the transit device. In this manner, the number of CCM packets on the link can be reduced. Solve the problem that the CCM packet occupies too much bandwidth on the link.
  • the RMEP after receiving the first CCM message, the RMEP only needs to determine the source MAC address of the first CCM message, instead of receiving multiple CCM messages sent by multiple MEPs as in the prior art.
  • the MAC address of each CCM packet is determined. Therefore, the MAC learning number of the RMEP can be reduced, and the occupation of the Layer 2 forwarding table resource is reduced.
  • the RMEP parses the first CCM packet to search for the ID of the MEP, and if the ID of the MEP exists in the packet, the MME considers The link between the MEP and the RMEP is in a connected state. If the RMEP cannot find the ID of a certain MEP in the first CCM message received in consecutive consecutive cycles, the link between the MEP and the RMEP is considered to be in the disconnected state.
  • the first CCM message received by the RMEP may further carry status information of each MEP in the multiple MEPs, where the status information is used to indicate a link connection status acquired by the MEP.
  • the status information of the MEP may include the following: the Ethernet OAM connection packet of the MEP is lost; the MEP receives the Ethernet OAM connection detection packet with a Remote Defect Indication (RDI); The Ethernet OAM is connected to the detection packet. The MEP receives the Ethernet OAM connection detection packet.
  • RDI Remote Defect Indication
  • the first CCM packet may be parsed first, and then the ID of the MEP is searched. If the ID of the MEP exists in the packet, The link between the MEP and the RMEP is considered to be in a connected state, and then the connectivity of the link between the RMEP and a MEP of the plurality of MEPs is determined according to the state information of the MEP.
  • the ID and status information of each MEP may be included in a vendor specific type length value (TLV) field of the first CCM message.
  • TLV vendor specific type length value
  • the RMEP may further send the first unicast packet to the transit device, where the first unicast packet carries the ID of any MEP of the multiple MEPs; after receiving the first unicast packet, the transit device receives the first unicast packet.
  • the destination MAC address of the first unicast packet is set to the destination MAC address of the first unicast packet by using the ID of any one of the plurality of MEPs carried in the unicast packet according to the mapping between the ID of the multiple MEPs and the MAC addresses of the multiple MEPs.
  • the transit device sends a second unicast packet to the MEP.
  • the MEP sends a third unicast packet to the RMEP to reply to the second unicast packet.
  • the first unicast packet sent by the RMEP may be a unicast packet other than the CCM packet.
  • the first unicast packet may be a packet for the LB, or may be a packet for the LT. Text.
  • the mapping relationship between the IDs of the plurality of MEPs and the MAC addresses of the plurality of MEPs obtained by the transit device may be that the transit device acquires the IDs and the plurality of MEPs according to the content carried by the plurality of first CCM packets received by the transit device.
  • the mapping relationship between the MAC addresses of MEPs can also be medium.
  • the mapping device obtains a mapping relationship between the IDs of the plurality of MEPs and the MAC addresses of the plurality of MEPs according to the received unicast packets. After the mapping relationship is obtained, the transit device can process the received packet according to the mapping relationship, or store the mapping relationship for later processing of the packet or other purposes.
  • the MEP or RMEP may be used to convert the detected link results to CFM technology.
  • the detection result that is to say, the MEP and RMEP here can also detect the non-CFM link, and can map the detection result into the CCM message.
  • FIG. 1 to FIG. 4 The method for link detection provided by the embodiment of the present invention is described in detail with reference to FIG. 1 to FIG. 4, and the device for link detection provided by the embodiment of the present invention is described in detail below with reference to FIG. 5 to FIG. It should be understood that the apparatus of FIGS. 5-8 can implement the various steps of the method of FIGS. 1 through 4, and to avoid repetition, it will not be described in detail herein.
  • FIG. 5 is a schematic block diagram of an apparatus for detecting a link according to an embodiment of the present invention.
  • the apparatus 500 of FIG. 5 is capable of implementing the various steps performed by the relay device of FIGS. 2 and 4, and to avoid repetition, it will not be described in detail herein.
  • the apparatus 500 includes a receiving module 510, an executing module 520, and a transmitting module 530.
  • the receiving module 510 is configured to receive a plurality of first CCM messages sent by the multiple MEPs, where the first CCM message sent by each MEP carries the ID of each MEP;
  • the execution module 520 is configured to perform a combination process on the multiple CCM messages to generate a second CCM message, where the source MAC address of the second CCM message is the MAC address of the transit device, and the second CCM
  • the packet carries the IDs of the multiple MEPs;
  • the foregoing merge process may be understood as encapsulating a plurality of first CCM messages into a second CCM message, and the source MAC address of the second CCM message is replaced with the current MAC address of the transit device.
  • the destination MAC address of the second CCM message may include the MAC address of the RMEP.
  • the sending module 530 is configured to send the second CCM message to the RMEP, so that the RMEP determines link connectivity between the RMEP and the plurality of MEPs.
  • the device 500 receives multiple CCM messages from multiple MEPs. At this time, the device 500 does not transparently transmit multiple CCM messages through the link between the device 500 and the RMEP as in the prior art. To RMEP, the CCM packets are combined and sent to the RMEP through the link. In this way, the number of CCM packets on the link is reduced. The problem of excessive bandwidth occupied by CCM packets on the link is solved.
  • the RMEP after receiving the second CCM message sent by the device 500, the RMEP only needs to determine the source MAC address of the second CCM message, instead of receiving multiple MEP transmissions as in the prior art. After the CCM message, the MAC address of each CCM message is determined. Therefore, the MAC learning number of the RMEP can be reduced, and the occupation of the Layer 2 forwarding table resources is reduced.
  • the second CCM message sent by the sending module 530 of the device 500 further carries status information of each MEP in the multiple MEPs, where the status information is used to indicate the link connection acquired by each MEP. happening.
  • the ID and status information of each MEP is included in a vendor specific TLV field of the second CCM message.
  • the source MAC address of the first CCM packet sent by the at least one MEP of the multiple MEPs is the private MAC address of the at least one MEP.
  • the receiving module 510 is further configured to receive the first unicast packet sent by the RMEP, where the first unicast packet carries an ID of any one of the multiple MEPs
  • the executing module 520 is configured to The mapping between the ID of the MEP carried in the first unicast packet and the MAC address of the plurality of MEPs and the MAC address of the plurality of MEPs, and generating a second corresponding to any one of the plurality of MEPs a unicast packet, where the source MAC address of the second unicast packet corresponding to the any MEP is the MAC address of the RMEP, and the destination MAC address is the MAC address of the any MEP.
  • the sending module 530 is configured to send the multiple MEPs. Any one of the MEPs sends the second unicast message. After receiving the second unicast packet, the MEP sends a third unicast packet to the RMEP for replying to the second unicast packet, and the RMEP completes the detection of the link after receiving the third unicast packet.
  • FIG. 6 is a schematic block diagram of an apparatus for detecting a link according to another embodiment of the present invention.
  • the apparatus 600 of FIG. 6 can implement the various steps performed by the RMEP in FIGS. 2 and 4, and to avoid repetition, it will not be described in detail herein.
  • the apparatus 600 includes a receiving module 610 and a determining module 620.
  • the receiving module 610 is configured to receive the first CCM packet sent by the transit device, where the first CCM packet carries the ID of the MEP, and the source MAC address of the first CCM packet is the MAC address of the transit device.
  • the executing module 620 is configured to determine link connectivity between the RMEP and the multiple MEPs according to the IDs of the multiple MEPs.
  • the device 600 receives the received multiple CCMs from the relay device. In this way, the number of CCM packets on the link can be reduced, and the problem that the CCM packet occupies too much bandwidth on the link is solved.
  • the device 600 after receiving the first CCM message, the device 600 only needs to determine the source MAC address of the first CCM message, instead of receiving multiple CCM messages sent by multiple MEPs as in the prior art. To determine the MAC address of each CCM packet, the MAC learning number of the RMEP can be reduced, and the occupation of the Layer 2 forwarding table resources is reduced.
  • the first CCM message may further carry status information of each MEP in the multiple MEPs.
  • the first CCM message carries state information of each of the plurality of MEPs.
  • the determining module 620 is specifically configured to: determine multiple MEPs and devices according to the IDs of the multiple MEPs. Whether the 600 is in a connected state; when a plurality of MEPs are in a connected state with the device 600, determining link connectivity between the device 600 and the plurality of MEPs according to the status information of the plurality of MEPs, wherein the status information is used to indicate each Link connection status obtained by MEP.
  • the ID and status information of each MEP is included in a vendor specific TLV field of the first CCM message.
  • the apparatus 600 further includes: a sending module 630, configured to send a first unicast packet to the transit device, where the first unicast packet carries an ID of any one of the plurality of MEPs; Receiving a third unicast message sent by any one of the plurality of MEPs, so as to determine link connectivity between the device 600 and any one of the plurality of MEPs; wherein the transit device is carried according to the first unicast packet
  • a sending module 630 configured to send a first unicast packet to the transit device, where the first unicast packet carries an ID of any one of the plurality of MEPs
  • Receiving a third unicast message sent by any one of the plurality of MEPs so as to determine link connectivity between the device 600 and any one of the plurality of MEPs
  • the transit device is carried according to the first unicast packet
  • the mapping between the ID of any MEP and the pre-acquisition of the IDs of the multiple MEPs and the MAC addresses of the multiple MEPs and generating
  • FIG. 7 is a schematic block diagram of an apparatus for detecting a link according to still another embodiment of the present invention.
  • the apparatus 700 of FIG. 7 can implement the various steps performed by the RMEP in FIGS. 2 and 4, and to avoid repetition, it will not be described in detail herein.
  • the apparatus 700 includes a receiver 710, a processor 720, and a transmitter 730.
  • the receiver 710 is configured to receive multiple first CCM messages sent by multiple MEPs, where the first CCM message sent by each MEP carries the ID of each MEP.
  • the processor 720 is configured to perform a combining process on the multiple first CCM messages to generate a second CCM. a packet, where the source MAC address of the second CCM packet is a MAC address of the transit device, and the second CCM packet carries the ID of the multiple MEPs;
  • the foregoing merge process may be understood as encapsulating a plurality of first CCM messages into a second CCM message, and the source MAC address of the second CCM message is replaced with the current MAC address of the transit device.
  • the destination MAC address of the second CCM message may include the MAC address of the RMEP.
  • the sender 730 is configured to send the second CCM message to the RMEP, so that the RMEP determines link connectivity between the RMEP and the plurality of MEPs.
  • the device 700 receives multiple CCM messages from multiple MEPs. At this time, the device 700 does not transparently transmit multiple CCM messages through the link between the device 700 and the RMEP as in the prior art. To the RMEP, the CCM packets are combined and processed and then sent to the RMEP through the link. In this way, the number of CCM packets on the link is reduced, so that the CCM packets are occupied on the link. The problem of excessive bandwidth.
  • the RMEP after receiving the second CCM message sent by the device 700, the RMEP only needs to determine the source MAC address of the second CCM message, instead of receiving multiple MEP transmissions as in the prior art. After the CCM message, the MAC address of each CCM message is determined. Therefore, the MAC learning number of the RMEP can be reduced, and the occupation of the Layer 2 forwarding table resources is reduced.
  • the second CCM message sent by the transmitter 730 of the device 700 further carries status information of each MEP in the multiple MEPs, where the status information is used to indicate a link connection acquired by each MEP. happening.
  • the ID and status information of each MEP is included in a vendor specific TLV field of the second CCM message.
  • the source MAC address of the first CCM packet sent by the at least one MEP of the multiple MEPs is the private MAC address of the at least one MEP.
  • the receiver 710 is further configured to receive the first unicast packet sent by the RMEP, where the first unicast packet carries an ID of any one of the multiple MEPs;
  • the processor 720 is configured to generate any one of the plurality of MEPs according to the ID of the one MEP carried in the first unicast packet, and the mapping relationship between the IDs of the plurality of MEPs and the MAC addresses of the plurality of MEPs.
  • a second unicast packet corresponding to the MEP where the source MAC address of the second unicast packet corresponding to the any MEP is the MAC address of the RMEP, and the destination MAC address is the MAC address of the any MEP; To the multiple MEPs Any one of the MEPs sends the second unicast message.
  • FIG. 8 is a schematic block diagram of an apparatus for detecting a link according to still another embodiment of the present invention.
  • the apparatus 800 of FIG. 8 can implement the various steps performed by the RMEP in FIGS. 2 and 4, and to avoid repetition, it will not be described in detail herein.
  • the device 800 includes a receiver 810 and an actuator 820.
  • the receiver 810 is configured to receive a first CCM packet sent by the relay device, where the first CCM packet carries the ID of the multiple MEP, and the source MAC address of the first CCM packet is the MAC address of the transit device.
  • the processor 820 is configured to determine link connectivity between the RMEP and the multiple MEPs according to the IDs of the multiple MEPs.
  • the RMEP receives the packet obtained by combining the received CCM packets by the transit device. In this manner, the number of CCM packets on the link can be reduced. Solve the problem that the CCM packet occupies too much bandwidth on the link. Further, after receiving the first CCM message, the device 800 only needs to determine the source MAC address of the first CCM message, instead of receiving multiple CCM messages sent by multiple MEPs as in the prior art. To determine the MAC address of each CCM packet, the MAC learning number of the RMEP can be reduced, and the occupation of the Layer 2 forwarding table resources is reduced.
  • the first CCM message when the first CCM message further carries status information of each of the plurality of MEPs.
  • the processor 820 when the first CCM message carries the status information of each of the multiple MEPs, the processor 820 is specifically configured to: determine, according to the IDs of the multiple MEPs, whether the multiple MEPs and the device 800 are When the plurality of MEPs are in a connected state, the link connectivity between the device 800 and the plurality of MEPs is determined according to the status information of the plurality of MEPs, wherein the status information is used to indicate each MEP. Get the link connection status.
  • the ID and status information of each MEP is included in a vendor specific type length value TLV field of the second CCM message.
  • the apparatus 800 further includes: a transmitter 830, configured to send, to the transit device, a first unicast packet, where the first unicast packet carries an ID of any one of the plurality of MEPs; and the receiver 810 uses Receiving a third unicast message sent by any one of the plurality of MEPs, so as to determine link connectivity between the device 800 and any one of the plurality of MEPs; wherein the transit device is carried according to the first unicast packet
  • the ID of any MEP and the mapping relationship between the IDs of multiple MEPs acquired in advance and the MAC addresses of multiple MEPs are generated in multiple MEPs.
  • the second unicast packet corresponding to any MEP, and the third unicast packet is a packet that any MEP replies to the second unicast packet.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Provided in an embodiment of the invention are a link detection method and device. The method comprises: receiving, by a relay device, multiple first continuity check message (CCM) packets transmitted by multiple maintenance end points (MEPs), wherein the first CCM packet transmitted by each MEP carries an ID of the MEP; performing, by the relay device, combination processing on the multiple first CCM packets to generate a second CCM packet, wherein a source media access control (MAC) address of the second CCM packet is an MAC address of the relay device, and the second CCM packet carries the IDs of the multiple MEPs; and transmitting, by the relay device, the second CCM packet to an RMEP so that the RMEP determines, according to the second CCM packet, link continuity between itself and the multiple MEPs. The link detection method and device provided in the embodiment of the invention can reduce the number of CCM packets accumulated on a link, thereby solving a problem in which the CCM packets occupy too much bandwidth on the link.

Description

链路检测的方法和装置Link detection method and device 技术领域Technical field

本发明涉及通信领域,并且更具体地,涉及链路检测的方法和装置。The present invention relates to the field of communications and, more particularly, to a method and apparatus for link detection.

背景技术Background technique

在传统以太网中,运营商一般采用简单网络管理协议(Simple Network Management Protocol,SNMP)来实现对以太网的管理。但是这种管理方式能够管理的网元有限,需要大量的互联网协议(Internet Protocol,IP),并且在以太网的部署、管理和维护过程中的成本也较高。In traditional Ethernet, operators generally use the Simple Network Management Protocol (SNMP) to implement Ethernet management. However, this management method can manage a limited number of network elements, requires a large amount of Internet Protocol (IP), and is also costly in the process of deploying, managing, and maintaining Ethernet.

针对这些问题,现有技术利用操作管理维护(Operations Administration and Maintenance,OAM)来实现对以太网的管理和维护。下面结合图1对现有技术中的链路检测的方案进行简单的介绍。如图1所示,在设备A,设备B和设备D上开启连通性故障管理(Connectivity Fault Management,CFM)功能,同时在这些设备的以太网端口上设置维护终节点(Maintenance End Point,MEP)。每个设备上可以设置一个或多个MEP,每个设备上的MEP可以称为本地MEP,与它对接的其他设备上的MEP相对于该设备而言是远端维护终节点(Remote Maintenance End Point,RMEP),为了方便描述这里将设备A和设备B上的MEP称作MEP,将设备D上的MEP称作RMEP。在进行链路检测时,设备A和设备B上的多个MEP向RMEP发送多个连通性检查消息(Continuity Check Message,CCM)报文,设备C作为中转设备,它将接收到的多个CCM报文汇聚后发送给RMEP。RMEP可以根据接收CCM报文的情况来检测链路的连通情况,如果RMEP在一定时间内接收不到CCM报文,就认为相应的链路是中断的,如果RMEP能够接收到CCM报文后就认为相应的链路是连通的,并且RMEP还可以根据接收到的CCM报文所携带的状态信息确定RMEP与MEP之间的链路连通性。这样就实现了MEP与RMEP之间的链路检测。In response to these problems, the prior art utilizes Operations Administration and Maintenance (OAM) to implement management and maintenance of Ethernet. The scheme of link detection in the prior art will be briefly introduced below with reference to FIG. As shown in Figure 1, the connectivity fault management (CFM) function is enabled on device A, device B, and device D, and the maintenance end point (MEP) is set on the Ethernet ports of these devices. . One or more MEPs can be set on each device. The MEP on each device can be called a local MEP. The MEP on other devices connected to it is a remote maintenance end point relative to the device. , RMEP), for convenience of description, the MEP on device A and device B is referred to as MEP, and the MEP on device D is referred to as RMEP. When performing link detection, multiple MEPs on device A and device B send multiple connectivity check messages (CCM) messages to the RMEP, and device C acts as a relay device, and it will receive multiple CCMs. The packets are aggregated and sent to RMEP. The RMEP can detect the connectivity of the link according to the condition of receiving the CCM packet. If the RMEP does not receive the CCM packet within a certain period of time, the RMEP considers that the corresponding link is interrupted. If the RMEP can receive the CCM packet, The corresponding link is considered to be connected, and the RMEP can also determine the link connectivity between the RMEP and the MEP according to the status information carried in the received CCM message. This achieves link detection between MEP and RMEP.

现有技术存在的问题是:设备C将接收到的多个MEP发送的多个CCM报文汇聚后透传给RMEP,使得RMEP接收过多的CCM报文,并占用了过多的汇聚链路(例如图1中的设备C与设备D之间的链路)带宽。 The problem of the prior art is that the device C aggregates the received multiple CCM packets sent by the multiple MEPs and transmits them to the RMEP, so that the RMEP receives too many CCM packets and occupies too many aggregation links. (eg, the link between device C and device D in Figure 1) bandwidth.

发明内容Summary of the invention

本发明实施例提供一种链路检测的方法和装置,以减少汇聚链路的CCM报文数量,从而减少CCM报文占用汇聚链路带宽过多的问题。The embodiment of the invention provides a method and a device for detecting link detection, so as to reduce the number of CCM packets on the aggregation link, thereby reducing the problem that the CCM packet occupies too much bandwidth of the aggregation link.

第一方面,提供了一种链路检测的方法,包括:中转设备接收多个维护终节点MEP发送的多个第一连通性检查消息CCM报文,其中,每个MEP发送的第一CCM报文携带所述每个MEP的ID;所述中转设备对所述多个第一CCM报文进行合并处理,生成第二CCM报文,其中,所述第二CCM报文的源MAC地址为所述中转设备的MAC地址,且所述第二CCM报文携带所述多个MEP的ID;所述中转设备向所述RMEP发送所述第二CCM报文,以便于所述RMEP根据所述第二CCM报文确定所述RMEP与所述多个MEP之间的链路连通性。The first aspect provides a method for link detection, including: receiving, by a relay device, a plurality of first connectivity check message CCM messages sent by a plurality of maintenance end node MEPs, where the first CCM report sent by each MEP Transmitting the ID of each MEP; the relay device performs a combining process on the multiple first CCM packets to generate a second CCM packet, where the source MAC address of the second CCM packet is The MAC address of the transit device, and the second CCM message carries the IDs of the multiple MEPs; the transit device sends the second CCM message to the RMEP, so that the RMEP is according to the The second CCM message determines link connectivity between the RMEP and the plurality of MEPs.

结合第一方面,在第一方面的一种实现方式中,所述第二CCM报文还携带所述多个MEP中的每个MEP的状态信息,所述状态信息用于指示所述每个MEP获取的链路连接情况。With reference to the first aspect, in an implementation manner of the first aspect, the second CCM packet further carries status information of each of the multiple MEPs, where the status information is used to indicate each Link connection status obtained by the MEP.

结合第一方面或上述实现方式中的任意一种,在第一方面的另一种实现方式中,所述每个MEP的ID和状态信息包含在所述第二CCM报文的厂商特定类型长度值TLV字段中。In conjunction with the first aspect, or any one of the foregoing implementation manners, in another implementation manner of the first aspect, the ID and status information of each MEP is included in a vendor specific type length of the second CCM packet. Value in the TLV field.

结合第一方面或上述实现方式中的任意一种,在第一方面的另一种实现方式中,所述多个MEP中的至少一个MEP发送的第一CCM报文的源MAC地址为所述至少一个MEP的私有MAC地址。With reference to the first aspect, or any one of the foregoing implementation manners, in another implementation manner of the foregoing aspect, the source MAC address of the first CCM packet sent by the at least one MEP of the multiple MEPs is The private MAC address of at least one MEP.

结合第一方面或上述实现方式中的任意一种,在第一方面的另一种实现方式中,所述中转设备接收所述RMEP发送的第一单播报文,所述第一单播报文携带所述多个MEP中任意一个MEP的ID;所述中转设备根据所述第一单播报文中携带的所述一个MEP的ID,以及预先获取的所述多个MEP的ID与所述多个MEP的MAC地址的映射关系,生成所述多个MEP中的任意一个MEP对应的第二单播报文,其中,所述任意一个MEP对应的第二单播报文的源MAC地址为所述RMEP的MAC地址,目的MAC地址为所述任意一个MEP的MAC地址;所述中转设备向所述多个MEP中的任意一个MEP发送所述第二单播报文。With the first aspect or the foregoing implementation manner, in another implementation manner of the first aspect, the transit device receives the first unicast packet sent by the RMEP, where the first unicast packet carries An ID of any one of the plurality of MEPs; the relay device according to the ID of the one MEP carried in the first unicast packet, and an ID of the plurality of MEPs acquired in advance and the plurality of MEPs The mapping of the MAC address, the second unicast packet corresponding to any one of the plurality of MEPs, wherein the source MAC address of the second unicast packet corresponding to the any MEP is the MAC of the RMEP The address, the destination MAC address is the MAC address of any one of the MEPs, and the transit device sends the second unicast packet to any one of the plurality of MEPs.

第二方面,提供了一种链路检测的方法,包括:远端维护终节点RMEP接收中转设备发送的第一CCM报文,其中,所述第一CCM报文携带多个 维护终节点MEP的ID,所述第一CCM报文的源媒体接入控制MAC地址为所述中转设备的MAC地址;所述RMEP根据所述多个MEP的ID确定所述RMEP与所述多个MEP之间的链路连通性。A second aspect provides a method for detecting a link, where the remote maintenance end node RMEP receives a first CCM packet sent by the relay device, where the first CCM packet carries multiple Maintaining an ID of the end node MEP, where the source media access control MAC address of the first CCM message is a MAC address of the transit device; and the RMEP determines the RMEP and the plurality according to the IDs of the multiple MEPs Link connectivity between MEPs.

结合第二方面,在第二方面的一种实现方式中,所述第一CCM报文中还携带所述多个MEP中的每个MEP的状态信息,所述状态信息用于指示所述每个MEP获取的链路连接情况。With reference to the second aspect, in an implementation manner of the second aspect, the first CCM packet further carries state information of each of the multiple MEPs, where the state information is used to indicate the foregoing Link connection status obtained by MEP.

结合第二方面或上述实现方式中的任意一种,在第二方面的另一种实现方式中,所述RMEP根据所述多个MEP的ID确定所述RMEP与所述多个MEP之间的链路连通性,包括:所述RMEP根据所述多个MEP的ID确定所述多个MEP与所述RMEP是否处于连通状态;当所述多个MEP与所述RMEP处于连通状态时,所述RMEP根据所述多个MEP的状态信息,确定所述RMEP与所述多个MEP之间的链路连通性。With reference to the second aspect, or any one of the foregoing implementation manners, in another implementation manner of the second aspect, the RMEP determines, between the RMEP and the plurality of MEPs, according to an ID of the multiple MEPs The link connectivity includes: determining, by the RMEP, whether the multiple MEPs and the RMEP are in a connected state according to the IDs of the multiple MEPs; when the multiple MEPs are in a connected state with the RMEPs, The RMEP determines link connectivity between the RMEP and the plurality of MEPs according to status information of the multiple MEPs.

结合第二方面或上述实现方式中的任意一种,在第二方面的另一种实现方式中,所述多个MEP的ID和状态信息包含在所述第一CCM报文的厂商特定类型长度值TLV字段中。With reference to the second aspect, or any one of the foregoing implementation manners, in another implementation manner of the second aspect, the ID and status information of the multiple MEPs are included in a vendor specific type length of the first CCM message. Value in the TLV field.

结合第二方面或上述实现方式中的任意一种,在第二方面的另一种实现方式中,所述方法还包括:向所述中转设备发送第一单播报文,所述第一单播报文携带所述多个MEP中任意一个MEP的ID;接收所述多个MEP中任意一个MEP发送的第三单播报文,以便于所述RMEP确定所述RMEP与所述多个MEP中的任意一个MEP之间的链路连通性;其中,所述中转设备根据所述第一单播报文中携带的所述任意一个MEP的ID,以及预先获取的所述多个MEP的ID与所述多个MEP的MAC地址的映射关系,生成所述多个MEP中的任意一个MEP对应的第二单播报文,并将第二单播报文发送给所述任意一个MEP对应ID的MEP,所述第三单播报文是所述任意一个MEP对所述第二单播报文进行回复的报文。In conjunction with the second aspect, or any one of the foregoing implementation manners, in another implementation manner of the second aspect, the method further includes: sending, by the transit device, a first unicast packet, the first unicast packet The ID of the MEP of any one of the plurality of MEPs is received, and the third unicast message sent by any one of the plurality of MEPs is received, so that the RMEP determines the RMEP and any of the plurality of MEPs. The link connectivity between the MEPs, wherein the transit device is based on the ID of the any one of the MEPs carried in the first unicast packet, and the IDs of the plurality of MEPs acquired in advance and the plurality of MEPs Generating a second unicast packet corresponding to any MEP of the plurality of MEPs, and transmitting the second unicast packet to the MEP of the corresponding MEP corresponding ID, the third The unicast packet is a packet in which the any MEP replies to the second unicast packet.

第三方面,提供了一种链路检测的装置,包括:接收模块,用于接收多个维护终节点MEP发送的多个第一连通性检查消息CCM报文,其中,每个MEP发送的第一CCM报文携带所述每个MEP的ID;执行模块,用于对所述多个第一CCM报文进行合并处理,生成第二CCM报文,其中,所述第二CCM报文的源MAC地址为中转设备的MAC地址,且所述第二CCM报文携带所述多个MEP的ID;发送模块,用于向所述RMEP发送所述第二 CCM报文,以便于所述RMEP确定所述RMEP与所述多个MEP之间的链路连通性。A third aspect provides an apparatus for detecting a link, comprising: a receiving module, configured to receive a plurality of first connectivity check message CCM messages sent by a plurality of maintenance end node MEPs, where each MEP sends the first a CCM message carrying the ID of each of the MEPs; an execution module, configured to perform a combination process on the plurality of first CCM messages, to generate a second CCM message, where the source of the second CCM message The MAC address is the MAC address of the transit device, and the second CCM message carries the IDs of the multiple MEPs; the sending module is configured to send the second to the RMEP a CCM message, so that the RMEP determines link connectivity between the RMEP and the plurality of MEPs.

结合第三方面,在第三方面的一种实现方式中,所述第二CCM报文还携带所述多个MEP中的每个MEP的状态信息,所述状态信息用于指示所述每个MEP获取的链路连接情况。With reference to the third aspect, in an implementation manner of the third aspect, the second CCM message further carries status information of each of the multiple MEPs, where the status information is used to indicate each Link connection status obtained by the MEP.

结合第三方面或上述实现方式中的任意一种,在第三方面的另一种实现方式中,所述每个MEP的ID和状态信息包含在所述第二CCM报文的厂商特定类型长度值TLV字段中。In conjunction with the third aspect, or any one of the foregoing implementation manners, in another implementation manner of the third aspect, the ID and status information of each MEP is included in a vendor-specific type length of the second CCM packet. Value in the TLV field.

结合第三方面或上述实现方式中的任意一种,在第三方面的另一种实现方式中,所述多个MEP中的至少一个MEP发送的第一CCM报文的源MAC地址为所述至少一个MEP的私有MAC地址。With the third aspect or the foregoing implementation manner, in another implementation manner of the third aspect, the source MAC address of the first CCM packet sent by the at least one MEP of the multiple MEPs is The private MAC address of at least one MEP.

结合第三方面或上述实现方式中的任意一种,在第三方面的另一种实现方式中,所述接收模块还用于:接收所述RMEP发送的第一单播报文,所述第一单播报文携带所述多个MEP中任意一个MEP的ID;所述执行模块用于根据所述第一单播报文中携带的所述任意一个MEP的ID,以及预先获取的所述多个MEP的ID与所述多个MEP的MAC地址的映射关系,生成所述多个MEP中的任意一个MEP对应的第二单播报文,其中,所述任意一个MEP对应的第二单播报文的源MAC地址为所述RMEP的MAC地址,目的MAC地址为所述任意一个MEP的MAC地址;所述发送模块用于向所述多个MEP中的任意一个MEP发送所述第二单播报文。With the third aspect or any of the foregoing implementation manners, in another implementation manner of the third aspect, the receiving module is further configured to: receive the first unicast packet sent by the RMEP, where the first The unicast message carries the ID of any one of the plurality of MEPs; the execution module is configured to use the ID of the any one of the MEPs carried in the first unicast packet, and the pre-acquired plurality of MEPs a mapping between the ID and the MAC address of the multiple MEPs, and generating a second unicast packet corresponding to any one of the plurality of MEPs, where the source MAC address of the second unicast packet corresponding to any one of the MEPs The address is the MAC address of the RMEP, and the destination MAC address is the MAC address of the any MEP. The sending module is configured to send the second unicast packet to any one of the multiple MEPs.

第四方面,提供了一种链路检测的装置,包括:接收模块,用于接收中转设备发送的第一CCM报文,其中,所述第一CCM报文携带多个维护终节点MEP的ID,所述第一CCM报文的源媒体接入控制MAC地址为所述中转设备的MAC地址;确定模块,用于根据所述多个MEP的ID确定所述RMEP与所述多个MEP之间的链路连通性。According to a fourth aspect, a device for detecting link detection includes: a receiving module, configured to receive a first CCM message sent by a relay device, where the first CCM message carries multiple IDs of a maintenance end node MEP The source media access control MAC address of the first CCM packet is a MAC address of the transit device, and the determining module is configured to determine, between the RMEP and the plurality of MEPs according to the IDs of the multiple MEPs Link connectivity.

结合第四方面,在第四方面的一种实现方式中,所述第一CCM报文中还携带所述多个MEP中的每个MEP的状态信息。With reference to the fourth aspect, in an implementation manner of the fourth aspect, the first CCM packet further carries state information of each of the plurality of MEPs.

结合第四方面或其上述实现方式中的任一种,在第四方面的另一种实现方式中,所述确定模块具体用于:根据所述多个MEP的ID确定所述多个MEP与所述RMEP是否处于连通状态;当所述多个MEP与所述RMEP处于连通状态时,所述RMEP根据所述多个MEP的状态信息,确定所述RMEP 与所述多个MEP之间的链路连通性,其中,所述状态信息用于指示所述每个MEP获取的链路连接情况。With reference to the fourth aspect, or any one of the foregoing implementation manners, in another implementation manner of the fourth aspect, the determining module is specifically configured to: determine the multiple MEPs according to the IDs of the multiple MEPs Whether the RMEP is in a connected state; when the plurality of MEPs are in a connected state with the RMEP, the RMEP determines the RMEP according to status information of the multiple MEPs. Link connectivity with the plurality of MEPs, wherein the state information is used to indicate a link connection condition acquired by each of the MEPs.

结合第四方面或其上述实现方式中的任一种,在第四方面的另一种实现方式中,所述多个MEP的ID和状态信息包含在所述第一CCM报文的厂商特定类型长度值TLV字段中。With reference to the fourth aspect, or any one of the foregoing implementation manners, in another implementation manner of the fourth aspect, the ID and status information of the multiple MEPs are included in a vendor specific type of the first CCM message. The length value is in the TLV field.

结合第四方面或其上述实现方式中的任一种,在第四方面的另一种实现方式中,所述装置还包括:发送模块,用于向所述中转设备发送第一单播报文,所述第一单播报文携带所述多个MEP中任意一个MEP的ID;所述接收模块用于接收所述多个MEP中任意一个MEP发送的第三单播报文,以便于所述RMEP确定所述RMEP与所述多个MEP中的任意一个MEP之间的链路连通性;其中,所述中转设备根据所述第一单播报文中携带的所述任意一个MEP的ID,以及预先获取的所述多个MEP的ID与所述多个MEP的MAC地址的映射关系,生成所述多个MEP中的任意一个MEP对应的第二单播报文,将所述第二单播报文发送至所述ID对应的MEP,所述第三单播报文是所述任意一个MEP对所述第二单播报文进行回复的报文。In conjunction with the fourth aspect, or any one of the foregoing implementation manners, in another implementation manner of the fourth aspect, the device further includes: a sending module, configured to send the first unicast packet to the transit device, The first unicast packet carries an ID of any one of the plurality of MEPs; the receiving module is configured to receive a third unicast packet sent by any one of the plurality of MEPs, so as to determine the RMEP Link connectivity between the RMEP and any one of the plurality of MEPs; wherein the transit device is based on the ID of the any one of the MEPs carried in the first unicast packet, and pre-acquired A mapping relationship between the IDs of the plurality of MEPs and the MAC addresses of the plurality of MEPs, generating a second unicast packet corresponding to any one of the plurality of MEPs, and sending the second unicast packet to the The MEP corresponding to the ID, the third unicast message is a message that the any MEP replies to the second unicast message.

本发明实施例中,中转设备接收多个MEP汇聚而来的多个CCM报文,此时,中转设备并非像现有技术那样将该多个CCM报文通过中转设备和RMEP之间的链路透传至RMEP,而是将该多个CCM报文进行合并处理后再通过该链路发送给RMEP,通过这样的方式,能减少该链路上的CCM报文的数量,从而解决CCM报文在该链路上占用的带宽过多的问题。In the embodiment of the present invention, the relay device receives multiple CCM packets from multiple MEPs. At this time, the transit device does not pass the multiple CCM packets through the link between the transit device and the RMEP as in the prior art. After being transmitted to the RMEP, the multiple CCM messages are combined and sent to the RMEP through the link. In this way, the number of CCM messages on the link can be reduced, thereby solving the CCM message. The problem of excessive bandwidth occupied on this link.

附图说明DRAWINGS

为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative work.

图1是检测链路连通性的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario for detecting link connectivity;

图2是本发明实施例的检测链路连通性的方法的示意性流程图;2 is a schematic flowchart of a method for detecting link connectivity according to an embodiment of the present invention;

图3是第二CCM报文内容的示例图;3 is a diagram showing an example of content of a second CCM message;

图4是本发明另一实施例的检测链路连通性的方法的示意性流程图;4 is a schematic flowchart of a method for detecting link connectivity according to another embodiment of the present invention;

图5是本发明实施例的检测链路的装置的示意性框图; FIG. 5 is a schematic block diagram of an apparatus for detecting a link according to an embodiment of the present invention; FIG.

图6是本发明另一实施例的检测链路的装置的示意性框图;6 is a schematic block diagram of an apparatus for detecting a link according to another embodiment of the present invention;

图7是本发明再一实施例的检测链路的装置的示意性框图;FIG. 7 is a schematic block diagram of an apparatus for detecting a link according to still another embodiment of the present invention; FIG.

图8是本发明再一实施例的检测链路的装置的示意性框图。FIG. 8 is a schematic block diagram of an apparatus for detecting a link according to still another embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

图2示出了根据本发明实施例的链路检测的方法。如图2所示,该方法包括:FIG. 2 illustrates a method of link detection in accordance with an embodiment of the present invention. As shown in Figure 2, the method includes:

210,中转设备接收多个MEP发送的多个第一CCM报文,其中,每个MEP发送的第一CCM报文携带该每个MEP的ID。210. The transit device receives the multiple first CCM messages sent by the multiple MEPs, where the first CCM message sent by each MEP carries the ID of each MEP.

应理解,上述每个MEP发送的第一CCM报文的源MAC地址可以是所述每个MEP的MAC地址,且上述多个第一CCM报文的目的MAC地址可以包括同一RMEP的MAC地址,即该多个第一CCM报文可以在中转设备与同一RMEP之间的链路进行汇聚。It should be understood that the source MAC address of the first CCM message sent by each MEP may be the MAC address of each MEP, and the destination MAC address of the multiple first CCM messages may include the MAC address of the same RMEP. That is, the multiple first CCM messages can be aggregated on the link between the transit device and the same RMEP.

220,该中转设备对该多个第一CCM报文进行合并处理,生成第二CCM报文,其中,该第二CCM报文的源MAC地址为中转设备的MAC地址,且该第二CCM报文携带该多个MEP的ID。The transit device performs a process of combining the multiple first CCM messages to generate a second CCM message, where the source MAC address of the second CCM message is the MAC address of the transit device, and the second CCM message The document carries the IDs of the plurality of MEPs.

应理解,上述合并处理可以理解为将多个第一CCM报文封装为第二CCM报文,该第二CCM报文的源MAC地址替换为该中转设备的当前MAC地址。另外,上述第二CCM报文的目的MAC地址可以包括该RMEP的MAC地址。It should be understood that the foregoing merge process may be understood as encapsulating a plurality of first CCM messages into a second CCM message, and the source MAC address of the second CCM message is replaced with the current MAC address of the transit device. In addition, the destination MAC address of the second CCM message may include the MAC address of the RMEP.

230,该中转设备向该RMEP发送该第二CCM报文,以便于该RMEP确定该RMEP与该多个MEP之间的链路连通性。230. The transit device sends the second CCM message to the RMEP, so that the RMEP determines link connectivity between the RMEP and the plurality of MEPs.

本发明实施例中,中转设备接收多个MEP汇聚而来的多个CCM报文,此时,中转设备并非像现有技术那样将该多个CCM报文通过中转设备和RMEP之间的链路透传至RMEP,而是将该多个CCM报文进行合并处理后再通过该链路发送给RMEP,通过这样的方式,能减少该链路上的CCM报文的数量,从而解决CCM报文在该链路上占用的带宽过多的问题。 In the embodiment of the present invention, the relay device receives multiple CCM packets from multiple MEPs. At this time, the transit device does not pass the multiple CCM packets through the link between the transit device and the RMEP as in the prior art. After being transmitted to the RMEP, the multiple CCM messages are combined and sent to the RMEP through the link. In this way, the number of CCM messages on the link can be reduced, thereby solving the CCM message. The problem of excessive bandwidth occupied on this link.

应理解,多个MEP和RMEP开通了CFM功能,开通了CFM功能的该多个MEP可以向RMEP发送第一CCM报文,该第一CCM报文的目的MAC地址可以是组播MAC地址,即第一CCM报文的目的MAC地址可以包括上述RMEP的MAC地址,也可以包括其他RMEP的MAC地址,但由于上述多个MEP发送的CCM报文的目的MAC地址包括同一RMEP的MAC地址,因此,会在中转设备与该RMEP之间的链路发生汇聚。It should be understood that the multiple MEPs and the RMEPs have the CFM function enabled, and the multiple MEPs that have the CFM function enabled can send the first CCM message to the RMEP, and the destination MAC address of the first CCM message can be a multicast MAC address, that is, The destination MAC address of the first CCM packet may include the MAC address of the RMEP, and may also include the MAC address of the other RMEP. However, since the destination MAC address of the CCM packet sent by the multiple MEPs includes the MAC address of the same RMEP, The link between the transit device and the RMEP will be aggregated.

还应理解,RMEP在接收到中转设备发送的第二CCM报文后,只需要确定该第二CCM报文的源MAC地址即可,而不用像现有技术那样在接收到多个MEP发送的多个CCM报文后要确定每个CCM报文的源MAC地址,因此能减少RMEP的MAC学习数,减轻对二层转发表资源的占用。It should also be understood that after receiving the second CCM message sent by the relay device, the RMEP only needs to determine the source MAC address of the second CCM message, instead of receiving multiple MEP transmissions as in the prior art. The source MAC address of each CCM packet is determined after multiple CCM messages. Therefore, the MAC learning number of the RMEP can be reduced, and the occupation of the Layer 2 forwarding table resources is reduced.

可选地,作为一个实施例,RMEP接收到中转设备发送的第二CCM报文后,解析该第二CCM报文,查找MEP的ID,如果该报文中存在某个MEP的ID那么就可以认为该MEP与RMEP之间的链路处于连通状态。如果RMEP在连续几个周期内接收到的第二CCM报文中均不能查找到某个MEP的ID,那么就可以认为该MEP与RMEP之间的链路处于断开状态。Optionally, as an embodiment, after receiving the second CCM packet sent by the transit device, the RMEP parses the second CCM packet to search for the ID of the MEP, and if the ID of the MEP exists in the packet, The link between the MEP and the RMEP is considered to be in a connected state. If the RMEP cannot find the ID of a MEP in the second CCM message received in consecutive cycles, the link between the MEP and the RMEP can be considered to be in the disconnected state.

可选地,作为一个实施例,第二CCM报文还可以携带多个MEP中的每个MEP的状态信息,或者,换句话说,第二CCM报文还可以指示多个MEP的ID与该多个MEP的状态信息的对应关系。Optionally, as an embodiment, the second CCM message may further carry status information of each MEP in the multiple MEPs, or in other words, the second CCM message may further indicate the IDs of the multiple MEPs and the Correspondence between status information of multiple MEPs.

上述MEP的状态信息可以指MEP所感知到的链路的连接情况,例如,MEP的状态信息可以包括以下几种:该MEP的以太网OAM连接报文丢失;该MEP收到带远程故障指示(Remote Defect Indication,RDI)的以太网OAM连通检测报文;该MEP收到错误的以太网OAM连通检测报文;该MEP收到交叉连接的以太网OAM连通检测报文。The status information of the MEP may be the connection status of the link that is perceived by the MEP. For example, the status information of the MEP may include the following: the Ethernet OAM connection message of the MEP is lost; the MEP receives the remote fault indication ( The Ethernet OAM connection detection packet of the remote defect Indication (RDI); the MEP receives the incorrect Ethernet OAM connectivity detection packet; the MEP receives the cross-connected Ethernet OAM connectivity detection packet.

应理解,中转设备在合并处理时可以是根据多个第一CCM报文中携带的信息重新生成一个新的报文,也就是第二CCM报文,具体来说,中转设备将本身的MAC地址设置为第二CCM报文的源MAC地址,同时将多个第一CCM报文中携带的多个MEP的ID以及多个MEP的状态信息按照ID与状态信息的对应关系置于第二CCM报文中,此外,第二CCM报文的目的MAC地址包括同一远端维护终节点RMEP的MAC地址。这样第二CCM报文能携带多个第一CCM报文中的多个MEP的信息,并能减少CCM报文的数量。 It should be understood that the relay device may regenerate a new packet, that is, the second CCM packet, according to the information carried in the multiple first CCM packets, in particular, the transit device will have its own MAC address. The source MAC address of the second CCM packet is set, and the IDs of the plurality of MEPs and the status information of the plurality of MEPs in the plurality of first CCM messages are placed in the second CCM report according to the correspondence between the ID and the state information. In addition, the destination MAC address of the second CCM message includes the MAC address of the same remote maintenance end node RMEP. The second CCM message can carry information of multiple MEPs in multiple first CCM messages, and can reduce the number of CCM messages.

可选地,作为一个实施例,每个MEP的ID和状态信息可以包含在第二CCM报文的厂商特定类型长度值(Type Length Value,TLV)字段中。具体而言,可以通过IEEE 802.1ag中定义的厂商特定类型长度值TLV字段对CCM报文进行扩展,生成多个第一CCM报文的扩展CCM报文,使得扩展报文能批量携带MEP的ID及状态信息。通信标准中对OAM消息中的TLV定义如表1所示,可以对类型Type值为31的厂商特定类型长度值字段进行扩展,使该字段能批量携带MEP的ID及状态信息,该字段的结构如表2所示,其中值Value用来携带具体每个MEP的ID及其状态信息,其中,每个MEP占用4个字节,具体结构如图3所示。在图3中,MEP ID携带MEP的ID,占用两个字节,状态Status携带MEP的当前的状态信息,占用一个字节,例如,MEP中Status携带的MEP的状态信息可以有以下几种:该MEP的以太网OAM连接报文丢失;该MEP收到带远程故障指示(Remote Defect Indication,RDI)的以太网OAM连通检测报文;该MEP收到错误的以太网OAM连通检测报文;该MEP收到交叉连接的以太网OAM连通检测报文。Optionally, as an embodiment, the ID and status information of each MEP may be included in a vendor specific type length value (TLV) field of the second CCM message. Specifically, the CCM packet can be extended by the vendor-specific type length value TLV field defined in the IEEE 802.1ag, and the extended CCM packet of the first CCM packet is generated, so that the extended packet can carry the ID of the MEP in batches. And status information. The definition of the TLV in the OAM message is as shown in Table 1. The vendor-specific type length value field of type Type 31 can be extended to enable the field to carry the ID and status information of the MEP in batches. As shown in Table 2, the value Value is used to carry the ID of each MEP and its status information. Each MEP occupies 4 bytes. The specific structure is shown in Figure 3. In Figure 3, the MEP ID carries the ID of the MEP, which occupies two bytes. The status Status carries the current status information of the MEP and occupies one byte. For example, the status information of the MEP carried in the MEP can be as follows: The Ethernet OAM connection packet of the MEP is lost; the MEP receives an Ethernet OAM connection detection packet with a Remote Defect Indication (RDI); the MEP receives an incorrect Ethernet OAM connection detection packet; The MEP receives the Ethernet OAM connectivity detection packet of the cross-connection.

表1类型长度值对应关系表Table 1 Type length value correspondence table

TLV or organizationTLV or organization Type fieldType field End TLVEnd TLV 00 Sender ID TLVSender ID TLV 11 Port Status TLVPort Status TLV 22 Data TLVData TLV 33 Interface Status TLVInterface Status TLV 44 Reply Ingress TLVReply Ingress TLV 55 Reply Egress TLVReply Egress TLV 66 LTM Egress Identifier TLVLTM Egress Identifier TLV 77 LTR Egress Identifier TLVLTR Egress Identifier TLV 88 Reserved for IEEE 802.1Reserved for IEEE 802.1 9-309-30 Organization-Specific TLVOrganization-Specific TLV 3131 Defined by ITU-T Y.1731Defined by ITU-T Y.1731 32-6332-63 Reserved for IEEE 802.1Reserved for IEEE 802.1 64-25564-255

表2:特定类型长度值对应关系表Table 2: Correspondence table of specific type length values

Organization-Specific TLV formatOrganization-Specific TLV format OctetOctet Type=31Type=31 11 LengthLength 2-32-3 OUIOUI 4-64-6 Sub-TypeSub-Type 77 Value(optional)Value(optional) 8-(Length+3)8-(Length+3)

可选地,作为一个实施例,多个MEP中的至少一个MEP发送的第一CCM报文的源MAC地址为该至少一个MEP的私有MAC地址。具体而言,当单台接入设备上的以太网端口配置有多个MEP时,多个MEP会要求该设备提供多个公网桥MAC地址,而公网桥MAC地址是有限的,这时可以将该设备的私有MAC地址设置为第一CCM报文的源地址并向中转设备发送该第一CCM报文,这样就能减少对公网MAC地址的占用,从而解决了公网桥MAC地址不足的问题。Optionally, as an embodiment, the source MAC address of the first CCM packet sent by the at least one MEP of the multiple MEPs is the private MAC address of the at least one MEP. Specifically, when an Ethernet port on a single access device is configured with multiple MEPs, multiple MEPs require the device to provide multiple public bridge MAC addresses, and the public bridge MAC address is limited. The private MAC address of the device can be set to the source address of the first CCM packet and the first CCM packet is sent to the transit device, so that the occupation of the public network MAC address can be reduced, thereby solving the public bridge MAC address. Insufficient problems.

可选地,作为一个实施例,中转设备还可以接收RMEP发送的第一单播报文,该第一单播报文携带多个MEP中任意一个MEP的ID;中转设备可以根据预先获取的多个MEP中的ID与多个MEP的MAC地址的映射关系,得到该单播报文携带的多个MEP中任意一个MEP的ID对应的MAC地址,从而生成多个MEP中的任意一个MEP对应第二单播报文,其中,该任意一个MEP对应的第二单播报文的源MAC地址为RMEP的MAC地址,目的MAC地址为该任意一个MEP的ID对应的MAC地址;中转设备向该任意一个MEP发送所述第二单播报文。MEP在接收到第二单播报文后,要向RMEP发送针对该第二单播报文进行回复的第三单播报文,RMEP在接收到第三单播报文后就完成了对链路的检测。Optionally, as an embodiment, the transit device may further receive the first unicast packet sent by the RMEP, where the first unicast packet carries the ID of any MEP of the multiple MEPs; the transit device may be based on multiple MEPs acquired in advance. The mapping between the ID of the ID and the MAC address of the multiple MEPs, and obtaining the MAC address corresponding to the ID of any MEP of the plurality of MEPs in the unicast packet, thereby generating any MEP corresponding to the second unicast report of the plurality of MEPs The source MAC address of the second unicast packet corresponding to the any one MEP is the MAC address of the RMEP, and the destination MAC address is the MAC address corresponding to the ID of the any MEP; the transit device sends the MAC address to the any MEP. Second unicast message. After receiving the second unicast packet, the MEP sends a third unicast packet to the RMEP for replying to the second unicast packet, and the RMEP completes the detection of the link after receiving the third unicast packet.

应理解,中转设备不仅可以接收RMEP发送的第一单播报文,还可以接收由其他MEP发送的类似于第一单播报文的报文,这里以接收RMEP发送第一单播报文为例进行描述。RMEP发送的第一单播报文可以是除了CCM报文之外的其它单播报文,例如,第一单播报文可以是用于环回检测(Loopback,LB)发送的报文,也可以是用于链路跟踪(Linktrace,LT)发送的报文。应理解,RMEP可以向多个MEP中的一个MEP发送用于LB或 LT的报文,多个MEP中的一个MEP也可以向RMEP发送用于LB或LT的报文。此外,中转设备可以根据接收到的多个第一CCM报文携带的内容来获取多个MEP中的ID与多个MEP的MAC地址的映射关系,中转设备也可以根据接收到单播报文获取多个MEP中的ID与多个MEP的MAC地址的映射关系。中转设备在获取到该映射关系后可以立即根据该映射关系对报文进行处理,也可以先将该映射关系存储起来供以后处理报文或者用于其他用途。It should be understood that the transit device can not only receive the first unicast packet sent by the RMEP, but also receive the packet similar to the first unicast packet sent by other MEPs. . The first unicast packet sent by the RMEP may be a unicast packet other than the CCM packet. For example, the first unicast packet may be a packet used for loopback detection (LB) transmission, or may be used. The message sent by Linktrace (LT). It should be understood that RMEP may be sent to one of a plurality of MEPs for LB or For the LT message, one of the multiple MEPs may also send a message for the LB or LT to the RMEP. In addition, the transit device can obtain the mapping relationship between the IDs of the multiple MEPs and the MAC addresses of the multiple MEPs according to the content of the received multiple CCM packets, and the transit device can also obtain the unicast packets according to the received unicast packets. The mapping relationship between the IDs of the MEPs and the MAC addresses of multiple MEPs. After obtaining the mapping relationship, the transit device can immediately process the packet according to the mapping relationship, or store the mapping relationship for later processing of the packet or for other purposes.

可选地,作为一个实施例,当某段链路不支持或者无法使用CFM功能时,如果该链路支持其它OAM技术时可以利用MEP或者RMEP将它们检测到的链路结果转换到CFM技术下的检测结果,也就是说这里的MEP和RMEP也能实现对非CFM链路的检测,并且可以将检测结果映射到CCM报文中。Optionally, as an embodiment, when a link does not support or cannot use the CFM function, if the link supports other OAM technologies, the MEP or RMEP may be used to convert the detected link results to CFM technology. The detection result, that is to say, the MEP and RMEP here can also detect the non-CFM link, and can map the detection result into the CCM message.

以上结合图2和图3在中转设备侧对本发明实施例的链路检测的方法进行了详细的描述,下面结合图4在RMEP侧对本发明实施例的链路检测的方法进行详细的介绍。如图4所示,该方法包括:The method for detecting link detection in the embodiment of the present invention is described in detail above with reference to FIG. 2 and FIG. 3, and the method for link detection according to the embodiment of the present invention is described in detail below with reference to FIG. As shown in FIG. 4, the method includes:

410,RMEP接收中转设备发送的第一CCM报文,其中,该第一CCM报文携带多个MEP的ID,该第一CCM报文的源MAC地址为该中转设备的MAC地址。410. The RMEP receives the first CCM message sent by the transit device, where the first CCM message carries the ID of the multiple MEP, and the source MAC address of the first CCM message is the MAC address of the transit device.

应理解,RMEP接收的第一CCM报文可以是与图2和图3的实施例中第二CCM报文是对应的,也就是说它们可以是相同的报文。另外,在这里,中转设备发送的第一CCM报文的目的MAC地址可以包括该RMEP的MAC地址。It should be understood that the first CCM message received by the RMEP may correspond to the second CCM message in the embodiment of FIGS. 2 and 3, that is, they may be the same message. In addition, the destination MAC address of the first CCM message sent by the relay device may include the MAC address of the RMEP.

420,该RMEP根据该多个MEP的ID确定该RMEP与该多个MEP之间的链路连通性。420. The RMEP determines link connectivity between the RMEP and the plurality of MEPs according to the IDs of the multiple MEPs.

本发明实施例中,RMEP接收到的是中转设备对接收到的多个CCM报文进行合并处理后得到的报文,通过这样的方式,能减少该链路上的CCM报文的数量,从而解决CCM报文在该链路上占用的带宽过多的问题。In the embodiment of the present invention, the RMEP receives the packet obtained by combining the received CCM packets by the transit device. In this manner, the number of CCM packets on the link can be reduced. Solve the problem that the CCM packet occupies too much bandwidth on the link.

应理解,RMEP在接收到第一CCM报文后只需要确定第一CCM报文的源MAC地址即可,而不用像现有技术那样在接收到多个MEP发送的多个CCM报文后要确定每个CCM报文的MAC地址,因此,能减少RMEP的MAC学习数,减轻对二层转发表资源的占用。 It should be understood that after receiving the first CCM message, the RMEP only needs to determine the source MAC address of the first CCM message, instead of receiving multiple CCM messages sent by multiple MEPs as in the prior art. The MAC address of each CCM packet is determined. Therefore, the MAC learning number of the RMEP can be reduced, and the occupation of the Layer 2 forwarding table resource is reduced.

可选地,作为一个实施例,RMEP接收到中转设备发送的第一CCM报文后,解析该第一CCM报文,查找MEP的ID,如果该报文中存在某个MEP的ID那么就认为该MEP与RMEP之间的链路处于连通状态。如果RMEP在连续几个周期内接收到的第一CCM报文中均不能查找到某个MEP的ID,那么就认为该MEP与RMEP之间的链路处于断开状态。Optionally, as an embodiment, after receiving the first CCM packet sent by the transit device, the RMEP parses the first CCM packet to search for the ID of the MEP, and if the ID of the MEP exists in the packet, the MME considers The link between the MEP and the RMEP is in a connected state. If the RMEP cannot find the ID of a certain MEP in the first CCM message received in consecutive consecutive cycles, the link between the MEP and the RMEP is considered to be in the disconnected state.

可选地,作为一个实施例,RMEP接收到的第一CCM报文还可以携带多个MEP中每个MEP的状态信息,该状态信息用于指示该MEP获取的链路连接情况。例如,MEP的状态信息可以包括以下几种:该MEP的以太网OAM连接报文丢失;该MEP收到带远程故障指示(Remote Defect Indication,RDI)的以太网OAM连通检测报文;该MEP收到错误的以太网OAM连通检测报文;该MEP收到交叉连接的以太网OAM连通检测报文。Optionally, as an embodiment, the first CCM message received by the RMEP may further carry status information of each MEP in the multiple MEPs, where the status information is used to indicate a link connection status acquired by the MEP. For example, the status information of the MEP may include the following: the Ethernet OAM connection packet of the MEP is lost; the MEP receives the Ethernet OAM connection detection packet with a Remote Defect Indication (RDI); The Ethernet OAM is connected to the detection packet. The MEP receives the Ethernet OAM connection detection packet.

具体而言,当第一CCM报文携带MEP的ID以及MEP的状态信息时,可以先对第一CCM报文进行解析,然后查找MEP的ID,如果该报文中存在某个MEP的ID那么就认为该MEP与RMEP之间的链路处于连通状态,然后再根据该MEP的状态信息确定RMEP与多个MEP中某个MEP的之间的链路的连通性。Specifically, when the first CCM message carries the ID of the MEP and the status information of the MEP, the first CCM packet may be parsed first, and then the ID of the MEP is searched. If the ID of the MEP exists in the packet, The link between the MEP and the RMEP is considered to be in a connected state, and then the connectivity of the link between the RMEP and a MEP of the plurality of MEPs is determined according to the state information of the MEP.

可选地,作为一个实施例,每个MEP的ID和状态信息可以包含在第一CCM报文的厂商特定类型长度值(Type Length Value,TLV)字段中。Optionally, as an embodiment, the ID and status information of each MEP may be included in a vendor specific type length value (TLV) field of the first CCM message.

可选地,作为一个实施例,RMEP还可以向中转设备发送第一单播报文,该第一单播报文携带多个MEP中任意一个MEP的ID;中转设备在接收到第一单播报文后会根据预先获取的多个MEP的ID与多个MEP的MAC地址的映射关系,通过该单播报文携带的多个MEP中任意一个MEP的ID,将第一单播报文的目的MAC地址设置为多个MEP中任意一个MEP的MAC地址从而生成第二单播报文。接下来,中转设备会向MEP发送第二单播报文,MEP在接收到第二单播报文后要向RMEP发送一个对第二单播报文进行回复的第三单播报文。Optionally, as an embodiment, the RMEP may further send the first unicast packet to the transit device, where the first unicast packet carries the ID of any MEP of the multiple MEPs; after receiving the first unicast packet, the transit device receives the first unicast packet. The destination MAC address of the first unicast packet is set to the destination MAC address of the first unicast packet by using the ID of any one of the plurality of MEPs carried in the unicast packet according to the mapping between the ID of the multiple MEPs and the MAC addresses of the multiple MEPs. A MAC address of any one of the plurality of MEPs to generate a second unicast packet. Next, the transit device sends a second unicast packet to the MEP. After receiving the second unicast packet, the MEP sends a third unicast packet to the RMEP to reply to the second unicast packet.

可选的,RMEP发送的第一单播报文可以是除了CCM报文之外的其它单播报文,例如,第一单播报文可以是用于LB的报文,也可以是用于LT的报文。中转设备预先获取的多个MEP的ID与多个MEP的MAC地址的映射关系,可以是中转设备根据接收到的多个第一CCM报文携带的内容来获取多个MEP中的ID与多个MEP的MAC地址的映射关系,也可以是中 转设备根据接收到单播报文来获取多个MEP中的ID与多个MEP的MAC地址的映射关系。在获取到映射关系后中转设备可以根据该映射关系对接收到的报文进行处理,也可以将该映射关系先存储起来供以后处理报文使用或者其他用途。Optionally, the first unicast packet sent by the RMEP may be a unicast packet other than the CCM packet. For example, the first unicast packet may be a packet for the LB, or may be a packet for the LT. Text. The mapping relationship between the IDs of the plurality of MEPs and the MAC addresses of the plurality of MEPs obtained by the transit device may be that the transit device acquires the IDs and the plurality of MEPs according to the content carried by the plurality of first CCM packets received by the transit device. The mapping relationship between the MAC addresses of MEPs can also be medium. The mapping device obtains a mapping relationship between the IDs of the plurality of MEPs and the MAC addresses of the plurality of MEPs according to the received unicast packets. After the mapping relationship is obtained, the transit device can process the received packet according to the mapping relationship, or store the mapping relationship for later processing of the packet or other purposes.

可选地,作为一个实施例,当某段链路不支持或者无法使用CFM功能时,如果该链路支持其它OAM技术时可以利用MEP或者RMEP将它们检测到的链路结果转换到CFM技术下的检测结果,也就是说这里的MEP和RMEP也能实现对非CFM链路的检测,并且可以将检测结果映射到CCM报文中。Optionally, as an embodiment, when a link does not support or cannot use the CFM function, if the link supports other OAM technologies, the MEP or RMEP may be used to convert the detected link results to CFM technology. The detection result, that is to say, the MEP and RMEP here can also detect the non-CFM link, and can map the detection result into the CCM message.

上文结合图1至图4,详细的描述了本发明实施例提供的链路检测的方法,下文结合图5至图8,详细描述本发明实施例提供的链路检测的装置。应理解,图5至图8中的装置能够实现图1至图4中的方法的各个步骤,为避免重复,此处不再详述。The method for link detection provided by the embodiment of the present invention is described in detail with reference to FIG. 1 to FIG. 4, and the device for link detection provided by the embodiment of the present invention is described in detail below with reference to FIG. 5 to FIG. It should be understood that the apparatus of FIGS. 5-8 can implement the various steps of the method of FIGS. 1 through 4, and to avoid repetition, it will not be described in detail herein.

图5示出了本发明实施例提供的检测链路的装置的示意性框图。图5的装置500能够实现图2和图4中的由中转设备执行的各个步骤,为避免重复,此处不再详述。该装置500包括接收模块510,执行模块520和发送模块530。FIG. 5 is a schematic block diagram of an apparatus for detecting a link according to an embodiment of the present invention. The apparatus 500 of FIG. 5 is capable of implementing the various steps performed by the relay device of FIGS. 2 and 4, and to avoid repetition, it will not be described in detail herein. The apparatus 500 includes a receiving module 510, an executing module 520, and a transmitting module 530.

接收模块510,用于接收多个MEP发送的多个第一CCM报文,其中,每个MEP发送的第一CCM报文携带该每个MEP的ID;The receiving module 510 is configured to receive a plurality of first CCM messages sent by the multiple MEPs, where the first CCM message sent by each MEP carries the ID of each MEP;

执行模块520,用于对该多个第一CCM报文进行合并处理,生成第二CCM报文,其中,该第二CCM报文的源MAC地址为中转设备的MAC地址,且该第二CCM报文携带该多个MEP的ID;The execution module 520 is configured to perform a combination process on the multiple CCM messages to generate a second CCM message, where the source MAC address of the second CCM message is the MAC address of the transit device, and the second CCM The packet carries the IDs of the multiple MEPs;

应理解,上述合并处理可以理解为将多个第一CCM报文封装为第二CCM报文,该第二CCM报文的源MAC地址替换为该中转设备的当前MAC地址。另外,上述第二CCM报文的目的MAC地址可以包括该RMEP的MAC地址。It should be understood that the foregoing merge process may be understood as encapsulating a plurality of first CCM messages into a second CCM message, and the source MAC address of the second CCM message is replaced with the current MAC address of the transit device. In addition, the destination MAC address of the second CCM message may include the MAC address of the RMEP.

发送模块530,用于向该RMEP发送该第二CCM报文,以便于该RMEP确定该RMEP与该多个MEP之间的链路连通性。The sending module 530 is configured to send the second CCM message to the RMEP, so that the RMEP determines link connectivity between the RMEP and the plurality of MEPs.

本发明实施例中,装置500接收多个MEP汇聚而来的多个CCM报文,此时,装置500并非像现有技术那样将多个CCM报文通过装置500和RMEP之间的链路透传至RMEP,而是将多个CCM报文进行合并处理后再通过链路发送给RMEP,通过这样的方式,会减少链路上的CCM报文的数量,从 而解决CCM报文在链路上占用的带宽过多的问题。In the embodiment of the present invention, the device 500 receives multiple CCM messages from multiple MEPs. At this time, the device 500 does not transparently transmit multiple CCM messages through the link between the device 500 and the RMEP as in the prior art. To RMEP, the CCM packets are combined and sent to the RMEP through the link. In this way, the number of CCM packets on the link is reduced. The problem of excessive bandwidth occupied by CCM packets on the link is solved.

进一步地,RMEP在接收到装置500发送的第二CCM报文后,只需要确定该第二CCM报文的源MAC地址即可,而不用像现有技术那样在接收到多个MEP发送的多个CCM报文后要确定每个CCM报文的MAC地址,因此能减少RMEP的MAC学习数,减轻对二层转发表资源的占用。Further, after receiving the second CCM message sent by the device 500, the RMEP only needs to determine the source MAC address of the second CCM message, instead of receiving multiple MEP transmissions as in the prior art. After the CCM message, the MAC address of each CCM message is determined. Therefore, the MAC learning number of the RMEP can be reduced, and the occupation of the Layer 2 forwarding table resources is reduced.

可选地,作为一个实施例,装置500的发送模块530发送的第二CCM报文还携带多个MEP中的每个MEP的状态信息,该状态信息用于指示每个MEP获取的链路连接情况。Optionally, as an embodiment, the second CCM message sent by the sending module 530 of the device 500 further carries status information of each MEP in the multiple MEPs, where the status information is used to indicate the link connection acquired by each MEP. Happening.

可选地,作为一个实施例,每个MEP的ID和状态信息包含在所述第二CCM报文的厂商特定TLV字段中。Optionally, as an embodiment, the ID and status information of each MEP is included in a vendor specific TLV field of the second CCM message.

可选地,作为一个实施例,多个MEP中的至少一个MEP发送的第一CCM报文的源MAC地址为该至少一个MEP的私有MAC地址。Optionally, as an embodiment, the source MAC address of the first CCM packet sent by the at least one MEP of the multiple MEPs is the private MAC address of the at least one MEP.

可选地,作为一个实施例,接收模块510还用于接收该RMEP发送的第一单播报文,该第一单播报文携带该多个MEP中任意一个MEP的ID;执行模块520用于根据该第一单播报文中携带的该一个MEP的ID,以及预先获取的该多个MEP的ID与该多个MEP的MAC地址的映射关系,生成该多个MEP中的任意一个MEP对应的第二单播报文,其中,该任意一个MEP对应的第二单播报文的源MAC地址为该RMEP的MAC地址,目的MAC地址为该任意一个MEP的MAC地址;发送模块530用于向该多个MEP中的任意一个MEP发送该第二单播报文。MEP在接收到第二单播报文后,要向RMEP发送针对该第二单播报文进行回复的第三单播报文,RMEP在接收到第三单播报文后就完成了对链路的检测。Optionally, as an embodiment, the receiving module 510 is further configured to receive the first unicast packet sent by the RMEP, where the first unicast packet carries an ID of any one of the multiple MEPs, and the executing module 520 is configured to The mapping between the ID of the MEP carried in the first unicast packet and the MAC address of the plurality of MEPs and the MAC address of the plurality of MEPs, and generating a second corresponding to any one of the plurality of MEPs a unicast packet, where the source MAC address of the second unicast packet corresponding to the any MEP is the MAC address of the RMEP, and the destination MAC address is the MAC address of the any MEP. The sending module 530 is configured to send the multiple MEPs. Any one of the MEPs sends the second unicast message. After receiving the second unicast packet, the MEP sends a third unicast packet to the RMEP for replying to the second unicast packet, and the RMEP completes the detection of the link after receiving the third unicast packet.

图6示出了本发明另一实施例提供的检测链路的装置的示意性框图。图6的装置600能够实现图2和图4中的由RMEP执行的各个步骤,为避免重复,此处不再详述。该装置600包括接收模块610和确定模块620。FIG. 6 is a schematic block diagram of an apparatus for detecting a link according to another embodiment of the present invention. The apparatus 600 of FIG. 6 can implement the various steps performed by the RMEP in FIGS. 2 and 4, and to avoid repetition, it will not be described in detail herein. The apparatus 600 includes a receiving module 610 and a determining module 620.

接收模块610,用于接收中转设备发送的第一CCM报文,其中,第一CCM报文携带MEP的ID,第一CCM报文的源MAC地址为中转设备的MAC地址;The receiving module 610 is configured to receive the first CCM packet sent by the transit device, where the first CCM packet carries the ID of the MEP, and the source MAC address of the first CCM packet is the MAC address of the transit device.

执行模块620,用于根据多个MEP的ID确定RMEP与多个MEP之间的链路连通性。The executing module 620 is configured to determine link connectivity between the RMEP and the multiple MEPs according to the IDs of the multiple MEPs.

本发明实施例中,装置600接收到的是中转设备对接收到的多个CCM 报文进行合并处理后得到的报文,通过这样的方式,能减少该链路上的CCM报文的数量,从而解决CCM报文在该链路上占用的带宽过多的问题。In the embodiment of the present invention, the device 600 receives the received multiple CCMs from the relay device. In this way, the number of CCM packets on the link can be reduced, and the problem that the CCM packet occupies too much bandwidth on the link is solved.

进一步地,装置600在接收到第一CCM报文后只需要确定第一CCM报文的源MAC地址即可,而不用像现有技术那样在接收到多个MEP发送的多个CCM报文后要确定每个CCM报文的MAC地址,因此,能减少RMEP的MAC学习数,减轻对二层转发表资源的占用。Further, after receiving the first CCM message, the device 600 only needs to determine the source MAC address of the first CCM message, instead of receiving multiple CCM messages sent by multiple MEPs as in the prior art. To determine the MAC address of each CCM packet, the MAC learning number of the RMEP can be reduced, and the occupation of the Layer 2 forwarding table resources is reduced.

可选地,作为一个实施例,第一CCM报文中还可以携带多个MEP中的每个MEP的状态信息。Optionally, as an embodiment, the first CCM message may further carry status information of each MEP in the multiple MEPs.

可选地,作为一个实施例,当第一CCM报文中携带多个MEP中的每个MEP的状态信息。Optionally, as an embodiment, the first CCM message carries state information of each of the plurality of MEPs.

可选地,作为一个实施例,当第一CCM报文中还可以携带多个MEP中的每个MEP的状态信息时确定模块620具体用于:根据多个MEP的ID确定多个MEP与装置600是否处于连通状态;当多个MEP与装置600处于连通状态时,再根据多个MEP的状态信息,确定装置600与多个MEP之间的链路连通性,其中,状态信息用于指示每个MEP获取的链路连接情况。Optionally, as an embodiment, when the first CCM message can also carry the status information of each of the multiple MEPs, the determining module 620 is specifically configured to: determine multiple MEPs and devices according to the IDs of the multiple MEPs. Whether the 600 is in a connected state; when a plurality of MEPs are in a connected state with the device 600, determining link connectivity between the device 600 and the plurality of MEPs according to the status information of the plurality of MEPs, wherein the status information is used to indicate each Link connection status obtained by MEP.

可选地,作为一个实施例,每个MEP的ID和状态信息包含在所述第一CCM报文的厂商特定TLV字段中。Optionally, as an embodiment, the ID and status information of each MEP is included in a vendor specific TLV field of the first CCM message.

可选地,作为一个实施例,装置600还包括:发送模块630,用于向中转设备发送第一单播报文,第一单播报文携带多个MEP中任意一个MEP的ID;接收模块610用于接收多个MEP中任意一个MEP发送的第三单播报文,以便于确定装置600与多个MEP中的任意一个MEP之间的链路连通性;其中,中转设备根据第一单播报文中携带的任意一个MEP的ID,以及预先获取的多个MEP的ID与多个MEP的MAC地址的映射关系,生成多个MEP中的任意一个MEP对应的第二单播报文,第三单播报文是任意一个MEP对第二单播报文进行回复的报文。Optionally, as an embodiment, the apparatus 600 further includes: a sending module 630, configured to send a first unicast packet to the transit device, where the first unicast packet carries an ID of any one of the plurality of MEPs; Receiving a third unicast message sent by any one of the plurality of MEPs, so as to determine link connectivity between the device 600 and any one of the plurality of MEPs; wherein the transit device is carried according to the first unicast packet The mapping between the ID of any MEP and the pre-acquisition of the IDs of the multiple MEPs and the MAC addresses of the multiple MEPs, and generating a second unicast packet corresponding to any MEP of the plurality of MEPs, where the third unicast packet is Any message that the MEP replies to the second unicast packet.

图7示出了本发明再一实施例提供的检测链路的装置的示意性框图。图7的装置700能够实现图2和图4中的由RMEP执行的各个步骤,为避免重复,此处不再详述。该装置700包括接收器710、处理器720和发送器730。FIG. 7 is a schematic block diagram of an apparatus for detecting a link according to still another embodiment of the present invention. The apparatus 700 of FIG. 7 can implement the various steps performed by the RMEP in FIGS. 2 and 4, and to avoid repetition, it will not be described in detail herein. The apparatus 700 includes a receiver 710, a processor 720, and a transmitter 730.

接收器710,用于接收多个MEP发送的多个第一CCM报文,其中,每个MEP发送的第一CCM报文携带该每个MEP的ID;The receiver 710 is configured to receive multiple first CCM messages sent by multiple MEPs, where the first CCM message sent by each MEP carries the ID of each MEP.

处理器720,用于对该多个第一CCM报文进行合并处理,生成第二CCM 报文,其中,该第二CCM报文的源MAC地址为中转设备的MAC地址,且该第二CCM报文携带该多个MEP的ID;The processor 720 is configured to perform a combining process on the multiple first CCM messages to generate a second CCM. a packet, where the source MAC address of the second CCM packet is a MAC address of the transit device, and the second CCM packet carries the ID of the multiple MEPs;

应理解,上述合并处理可以理解为将多个第一CCM报文封装为第二CCM报文,该第二CCM报文的源MAC地址替换为该中转设备的当前MAC地址。另外,上述第二CCM报文的目的MAC地址可以包括该RMEP的MAC地址。It should be understood that the foregoing merge process may be understood as encapsulating a plurality of first CCM messages into a second CCM message, and the source MAC address of the second CCM message is replaced with the current MAC address of the transit device. In addition, the destination MAC address of the second CCM message may include the MAC address of the RMEP.

发送器730,用于向该RMEP发送该第二CCM报文,以便于该RMEP确定该RMEP与该多个MEP之间的链路连通性。The sender 730 is configured to send the second CCM message to the RMEP, so that the RMEP determines link connectivity between the RMEP and the plurality of MEPs.

本发明实施例中,装置700接收多个MEP汇聚而来的多个CCM报文,此时,装置700并非像现有技术那样将多个CCM报文通过装置700和RMEP之间的链路透传至RMEP,而是将多个CCM报文进行合并处理后再通过链路发送给RMEP,通过这样的方式,会减少链路上的CCM报文的数量,从而解决CCM报文在链路上占用的带宽过多的问题。In the embodiment of the present invention, the device 700 receives multiple CCM messages from multiple MEPs. At this time, the device 700 does not transparently transmit multiple CCM messages through the link between the device 700 and the RMEP as in the prior art. To the RMEP, the CCM packets are combined and processed and then sent to the RMEP through the link. In this way, the number of CCM packets on the link is reduced, so that the CCM packets are occupied on the link. The problem of excessive bandwidth.

进一步地,RMEP在接收到装置700发送的第二CCM报文后,只需要确定该第二CCM报文的源MAC地址即可,而不用像现有技术那样在接收到多个MEP发送的多个CCM报文后要确定每个CCM报文的MAC地址,因此能减少RMEP的MAC学习数,减轻对二层转发表资源的占用。Further, after receiving the second CCM message sent by the device 700, the RMEP only needs to determine the source MAC address of the second CCM message, instead of receiving multiple MEP transmissions as in the prior art. After the CCM message, the MAC address of each CCM message is determined. Therefore, the MAC learning number of the RMEP can be reduced, and the occupation of the Layer 2 forwarding table resources is reduced.

可选地,作为一个实施例,装置700的发送器730发送的第二CCM报文还携带多个MEP中的每个MEP的状态信息,该状态信息用于指示每个MEP获取的链路连接情况。Optionally, as an embodiment, the second CCM message sent by the transmitter 730 of the device 700 further carries status information of each MEP in the multiple MEPs, where the status information is used to indicate a link connection acquired by each MEP. Happening.

可选地,作为一个实施例,每个MEP的ID和状态信息包含在所述第二CCM报文的厂商特定TLV字段中。Optionally, as an embodiment, the ID and status information of each MEP is included in a vendor specific TLV field of the second CCM message.

可选地,作为一个实施例,多个MEP中的至少一个MEP发送的第一CCM报文的源MAC地址为该至少一个MEP的私有MAC地址。Optionally, as an embodiment, the source MAC address of the first CCM packet sent by the at least one MEP of the multiple MEPs is the private MAC address of the at least one MEP.

可选地,作为一个实施例,接收器710还用于接收该RMEP发送的第一单播报文,该第一单播报文携带该多个MEP中任意一个MEP的ID;Optionally, as an embodiment, the receiver 710 is further configured to receive the first unicast packet sent by the RMEP, where the first unicast packet carries an ID of any one of the multiple MEPs;

处理器720用于根据该第一单播报文中携带的该一个MEP的ID,以及预先获取的该多个MEP的ID与该多个MEP的MAC地址的映射关系,生成该多个MEP中的任意一个MEP对应的第二单播报文,其中,该任意一个MEP对应的第二单播报文的源MAC地址为该RMEP的MAC地址,目的MAC地址为该任意一个MEP的MAC地址;发送器730用于向该多个MEP 中的任意一个MEP发送该第二单播报文。The processor 720 is configured to generate any one of the plurality of MEPs according to the ID of the one MEP carried in the first unicast packet, and the mapping relationship between the IDs of the plurality of MEPs and the MAC addresses of the plurality of MEPs. a second unicast packet corresponding to the MEP, where the source MAC address of the second unicast packet corresponding to the any MEP is the MAC address of the RMEP, and the destination MAC address is the MAC address of the any MEP; To the multiple MEPs Any one of the MEPs sends the second unicast message.

图8示出了本发明再一实施例提供的检测链路的装置的示意性框图。图8的装置800能够实现图2和图4中的由RMEP执行的各个步骤,为避免重复,此处不再详述。该装置800包括接收器810和执行器820。FIG. 8 is a schematic block diagram of an apparatus for detecting a link according to still another embodiment of the present invention. The apparatus 800 of FIG. 8 can implement the various steps performed by the RMEP in FIGS. 2 and 4, and to avoid repetition, it will not be described in detail herein. The device 800 includes a receiver 810 and an actuator 820.

接收器810,用于接收中转设备发送的第一CCM报文,其中,第一CCM报文携带多个MEP的ID,第一CCM报文的源MAC地址为中转设备的MAC地址;The receiver 810 is configured to receive a first CCM packet sent by the relay device, where the first CCM packet carries the ID of the multiple MEP, and the source MAC address of the first CCM packet is the MAC address of the transit device.

处理器820,用于根据多个MEP的ID确定RMEP与多个MEP之间的链路连通性。The processor 820 is configured to determine link connectivity between the RMEP and the multiple MEPs according to the IDs of the multiple MEPs.

本发明实施例中,RMEP接收到的是中转设备对接收到的多个CCM报文进行合并处理后得到的报文,通过这样的方式,能减少该链路上的CCM报文的数量,从而解决CCM报文在该链路上占用的带宽过多的问题。进一步地,装置800在接收到第一CCM报文后只需要确定第一CCM报文的源MAC地址即可,而不用像现有技术那样在接收到多个MEP发送的多个CCM报文后要确定每个CCM报文的MAC地址,因此,能减少RMEP的MAC学习数,减轻对二层转发表资源的占用。In the embodiment of the present invention, the RMEP receives the packet obtained by combining the received CCM packets by the transit device. In this manner, the number of CCM packets on the link can be reduced. Solve the problem that the CCM packet occupies too much bandwidth on the link. Further, after receiving the first CCM message, the device 800 only needs to determine the source MAC address of the first CCM message, instead of receiving multiple CCM messages sent by multiple MEPs as in the prior art. To determine the MAC address of each CCM packet, the MAC learning number of the RMEP can be reduced, and the occupation of the Layer 2 forwarding table resources is reduced.

可选地,作为一个实施例,当第一CCM报文中还携带多个MEP中的每个MEP的状态信息。Optionally, as an embodiment, when the first CCM message further carries status information of each of the plurality of MEPs.

可选地,作为一个实施例,当第一CCM报文中携带多个MEP中的每个MEP的状态信息时处理器820具体用于:根据多个MEP的ID确定多个MEP与装置800是否处于连通状态;当多个MEP与装置800处于连通状态时,再根据多个MEP的状态信息,确定装置800与多个MEP之间的链路连通性,其中,状态信息用于指示每个MEP获取的链路连接情况。Optionally, as an embodiment, when the first CCM message carries the status information of each of the multiple MEPs, the processor 820 is specifically configured to: determine, according to the IDs of the multiple MEPs, whether the multiple MEPs and the device 800 are When the plurality of MEPs are in a connected state, the link connectivity between the device 800 and the plurality of MEPs is determined according to the status information of the plurality of MEPs, wherein the status information is used to indicate each MEP. Get the link connection status.

可选地,作为一个实施例,每个MEP的ID和状态信息包含在所述第二CCM报文的厂商特定类型长度值TLV字段中。Optionally, as an embodiment, the ID and status information of each MEP is included in a vendor specific type length value TLV field of the second CCM message.

可选地,作为一个实施例,装置800还包括:发送器830,用于向中转设备发送第一单播报文,第一单播报文携带多个MEP中任意一个MEP的ID;接收器810用于接收多个MEP中任意一个MEP发送的第三单播报文,以便于确定装置800与多个MEP中的任意一个MEP之间的链路连通性;其中,中转设备根据第一单播报文中携带的任意一个MEP的ID,以及预先获取的多个MEP的ID与多个MEP的MAC地址的映射关系,生成多个MEP中的 任意一个MEP对应的第二单播报文,第三单播报文是任意一个MEP对第二单播报文进行回复的报文。Optionally, as an embodiment, the apparatus 800 further includes: a transmitter 830, configured to send, to the transit device, a first unicast packet, where the first unicast packet carries an ID of any one of the plurality of MEPs; and the receiver 810 uses Receiving a third unicast message sent by any one of the plurality of MEPs, so as to determine link connectivity between the device 800 and any one of the plurality of MEPs; wherein the transit device is carried according to the first unicast packet The ID of any MEP and the mapping relationship between the IDs of multiple MEPs acquired in advance and the MAC addresses of multiple MEPs are generated in multiple MEPs. The second unicast packet corresponding to any MEP, and the third unicast packet is a packet that any MEP replies to the second unicast packet.

应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" herein is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and A and B exist simultaneously. There are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.

应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。 In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (20)

一种链路检测的方法,其特征在于,包括:A method for link detection, comprising: 中转设备接收多个维护终节点MEP发送的多个第一连通性检查消息CCM报文,其中,每个MEP发送的第一CCM报文携带所述每个MEP的ID;The transit device receives a plurality of first connectivity check message CCM messages sent by the maintenance end node MEP, where the first CCM message sent by each MEP carries the ID of each MEP; 所述中转设备对所述多个第一CCM报文进行合并处理,生成第二CCM报文,其中,所述第二CCM报文的源媒体接入控制MAC地址为所述中转设备的MAC地址,且所述第二CCM报文携带所述多个MEP的ID;The transit device performs a process of combining the multiple first CCM messages to generate a second CCM message, where the source media access control MAC address of the second CCM message is the MAC address of the transit device And the second CCM message carries an ID of the multiple MEPs; 所述中转设备向所述RMEP发送所述第二CCM报文,以便于所述RMEP根据所述第二CCM报文确定所述RMEP与所述多个MEP之间的链路连通性。Transmitting, by the relay device, the second CCM message to the RMEP, so that the RMEP determines link connectivity between the RMEP and the multiple MEPs according to the second CCM message. 根据权利要求1所述的方法,其特征在于,所述第二CCM报文还携带所述多个MEP中的每个MEP的状态信息,所述状态信息用于指示所述每个MEP获取的链路连接情况。The method according to claim 1, wherein the second CCM message further carries status information of each of the plurality of MEPs, the status information is used to indicate the acquisition by each MEP. Link connection status. 根据权利要求2所述的方法,其特征在于,所述每个MEP的ID和状态信息包含在所述第二CCM报文的厂商特定类型长度值TLV字段中。The method according to claim 2, wherein the ID and status information of each MEP is included in a vendor specific type length value TLV field of the second CCM message. 根据权利要求1至3中任一项所述的方法,其特征在于,所述多个MEP中的至少一个MEP发送的第一CCM报文的源MAC地址为所述至少一个MEP的私有MAC地址。The method according to any one of claims 1 to 3, wherein a source MAC address of the first CCM message sent by at least one of the plurality of MEPs is a private MAC address of the at least one MEP. . 根据权利要求1至4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, further comprising: 所述中转设备接收所述RMEP发送的第一单播报文,所述第一单播报文携带所述多个MEP中任意一个MEP的ID;Receiving, by the relay device, the first unicast packet sent by the RMEP, where the first unicast packet carries an ID of any one of the multiple MEPs; 所述中转设备根据所述第一单播报文中携带的所述一个MEP的ID,以及预先获取的所述多个MEP的ID与所述多个MEP的MAC地址的映射关系,生成所述多个MEP中的任意一个MEP对应的第二单播报文,其中,所述任意一个MEP对应的第二单播报文的源MAC地址为所述RMEP的MAC地址,目的MAC地址为所述任意一个MEP的MAC地址;The relay device generates the multiple according to the mapping relationship between the ID of the one MEP carried in the first unicast packet and the ID of the plurality of MEPs that are acquired in advance and the MAC addresses of the multiple MEPs. a second unicast packet corresponding to any one of the MEPs, where the source MAC address of the second unicast packet corresponding to any one of the MEPs is the MAC address of the RMEP, and the destination MAC address is any one of the MEPs. MAC address; 所述中转设备向所述多个MEP中的任意一个MEP发送所述第二单播报文。The transit device sends the second unicast packet to any one of the multiple MEPs. 一种链路检测的方法,其特征在于,包括: A method for link detection, comprising: 远端维护终节点RMEP接收中转设备发送的第一CCM报文,其中,所述第一CCM报文携带多个维护终节点MEP的ID,所述第一CCM报文的源媒体接入控制MAC地址为所述中转设备的MAC地址;The remote maintenance terminal RMEP receives the first CCM packet sent by the transit device, where the first CCM packet carries the IDs of the plurality of maintenance end node MEPs, and the source media access control MAC of the first CCM packet The address is the MAC address of the transit device; 所述RMEP根据所述多个MEP的ID确定所述RMEP与所述多个MEP之间的链路连通性。The RMEP determines link connectivity between the RMEP and the plurality of MEPs according to IDs of the plurality of MEPs. 根据权利要求6所述的方法,其特征在于,所述第一CCM报文中还携带所述多个MEP中的每个MEP的状态信息,所述状态信息用于指示所述每个MEP获取的链路连接情况。The method according to claim 6, wherein the first CCM message further carries status information of each of the plurality of MEPs, and the status information is used to indicate that each MEP is obtained. Link connection situation. 根据权利要求7所述的方法,其特征在于,所述RMEP根据所述多个MEP的ID确定所述RMEP与所述多个MEP之间的链路连通性,包括:The method according to claim 7, wherein the RMEP determines link connectivity between the RMEP and the plurality of MEPs according to the IDs of the plurality of MEPs, including: 所述RMEP根据所述多个MEP的ID确定所述多个MEP与所述RMEP是否处于连通状态;Determining, by the RMEP, whether the plurality of MEPs and the RMEP are in a connected state according to an ID of the multiple MEPs; 当所述多个MEP与所述RMEP处于连通状态时,所述RMEP根据所述多个MEP的状态信息,确定所述RMEP与所述多个MEP之间的链路连通性。When the plurality of MEPs are in a connected state with the RMEP, the RMEP determines link connectivity between the RMEP and the plurality of MEPs according to status information of the multiple MEPs. 根据权利要求7或8所述的方法,其特征在于,所述多个MEP的ID和状态信息包含在所述第一CCM报文的厂商特定类型长度值TLV字段中。The method according to claim 7 or 8, wherein the ID and status information of the plurality of MEPs are included in a vendor specific type length value TLV field of the first CCM message. 根据权利要求6至9中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 6 to 9, wherein the method further comprises: 向所述中转设备发送第一单播报文,所述第一单播报文携带所述多个MEP中任意一个MEP的ID;Transmitting, by the transit device, a first unicast packet, where the first unicast packet carries an ID of any one of the multiple MEPs; 接收所述多个MEP中任意一个MEP发送的第三单播报文,以便于所述RMEP确定所述RMEP与所述多个MEP中的任意一个MEP之间的链路连通性;Receiving a third unicast message sent by any one of the plurality of MEPs, so that the RMEP determines link connectivity between the RMEP and any one of the plurality of MEPs; 其中,所述中转设备根据所述第一单播报文中携带的所述任意一个MEP的ID,以及预先获取的所述多个MEP的ID与所述多个MEP的MAC地址的映射关系,生成所述多个MEP中的任意一个MEP对应的第二单播报文,并将第二单播报文发送给所述任意一个MEP对应ID的MEP,所述第三单播报文是所述任意一个MEP对所述第二单播报文进行回复的报文。The transit device generates a map according to the mapping between the ID of the any one of the MEPs and the IDs of the plurality of MEPs that are acquired in advance in the first unicast packet and the MAC addresses of the multiple MEPs. Transmitting a second unicast message corresponding to any one of the plurality of MEPs, and sending the second unicast message to the MEP of the ID of the any MEP, where the third unicast message is any one of the MEP pairs. The packet in which the second unicast packet is replied. 一种链路检测的装置,其特征在于,包括:A device for detecting a link, comprising: 接收模块,用于接收多个维护终节点MEP发送的多个第一连通性检查 消息CCM报文,其中,每个MEP发送的第一CCM报文携带所述每个MEP的ID;a receiving module, configured to receive multiple first connectivity checks sent by multiple maintenance end node MEPs a message CCM message, where the first CCM message sent by each MEP carries the ID of each MEP; 执行模块,用于对所述多个第一CCM报文进行合并处理,生成第二CCM报文,其中,所述第二CCM报文的源媒体接入控制MAC地址为中转设备的MAC地址,且所述第二CCM报文携带所述多个MEP的ID;An execution module, configured to perform a merge process on the multiple first CCM messages, to generate a second CCM message, where the source media access control MAC address of the second CCM message is a MAC address of the transit device, And the second CCM message carries an ID of the multiple MEPs; 发送模块,用于向所述RMEP发送所述第二CCM报文,以便于所述RMEP确定所述RMEP与所述多个MEP之间的链路连通性。And a sending module, configured to send the second CCM message to the RMEP, so that the RMEP determines link connectivity between the RMEP and the multiple MEPs. 根据权利要求11所述的装置,其特征在于,所述第二CCM报文还携带所述多个MEP中的每个MEP的状态信息,所述状态信息用于指示所述每个MEP获取的链路连接情况。The apparatus according to claim 11, wherein the second CCM message further carries status information of each of the plurality of MEPs, the status information is used to indicate the acquisition of each MEP. Link connection status. 根据权利要求12所述的装置,其特征在于,所述每个MEP的ID和状态信息包含在所述第二CCM报文的厂商特定类型长度值TLV字段中。The apparatus according to claim 12, wherein the ID and status information of each MEP is included in a vendor specific type length value TLV field of the second CCM message. 根据权利要求11至13中任一项所述的装置,其特征在于,所述多个MEP中的至少一个MEP发送的第一CCM报文的源MAC地址为所述至少一个MEP的私有MAC地址。The device according to any one of claims 11 to 13, wherein a source MAC address of the first CCM message sent by at least one of the plurality of MEPs is a private MAC address of the at least one MEP. . 根据权利要求11至14中任一项所述的装置,其特征在于,所述接收模块还用于:The device according to any one of claims 11 to 14, wherein the receiving module is further configured to: 接收所述RMEP发送的第一单播报文,所述第一单播报文携带所述多个MEP中任意一个MEP的ID;Receiving a first unicast packet sent by the RMEP, where the first unicast packet carries an ID of any one of the multiple MEPs; 所述执行模块用于根据所述第一单播报文中携带的所述任意一个MEP的ID,以及预先获取的所述多个MEP的ID与所述多个MEP的MAC地址的映射关系,生成所述多个MEP中的任意一个MEP对应的第二单播报文,其中,所述任意一个MEP对应的第二单播报文的源MAC地址为所述RMEP的MAC地址,目的MAC地址为所述任意一个MEP的MAC地址;The executing module is configured to generate, according to the mapping between the ID of the any one of the MEPs and the pre-acquired IDs of the multiple MEPs and the MAC addresses of the multiple MEPs. a second unicast packet corresponding to any one of the plurality of MEPs, where the source MAC address of the second unicast packet corresponding to any one of the MEPs is the MAC address of the RMEP, and the destination MAC address is any The MAC address of a MEP; 所述发送模块用于向所述多个MEP中的任意一个MEP发送所述第二单播报文。The sending module is configured to send the second unicast packet to any one of the multiple MEPs. 一种链路检测的装置,其特征在于,包括:A device for detecting a link, comprising: 接收模块,用于接收中转设备发送的第一CCM报文,其中,所述第一CCM报文携带多个维护终节点MEP的ID,所述第一CCM报文的源媒体接入控制MAC地址为所述中转设备的MAC地址;a receiving module, configured to receive a first CCM message sent by the transit device, where the first CCM message carries multiple IDs of the maintenance end node MEP, and the source media access control MAC address of the first CCM message Is the MAC address of the transit device; 执行模块,用于根据所述多个MEP的ID确定所述RMEP与所述多个 MEP之间的链路连通性。An execution module, configured to determine, according to an ID of the multiple MEPs, the RMEP and the multiple Link connectivity between MEPs. 根据权利要求16所述的装置,其特征在于,所述第一CCM报文中还携带所述多个MEP中的每个MEP的状态信息。The apparatus according to claim 16, wherein the first CCM message further carries status information of each of the plurality of MEPs. 根据权利要求17所述的装置,其特征在于,所述确定模块具体用于:The device according to claim 17, wherein the determining module is specifically configured to: 根据所述多个MEP的ID确定所述多个MEP与所述RMEP是否处于连通状态;Determining, according to the IDs of the plurality of MEPs, whether the plurality of MEPs and the RMEP are in a connected state; 当所述多个MEP与所述RMEP处于连通状态时,所述RMEP根据所述多个MEP的状态信息,确定所述RMEP与所述多个MEP之间的链路连通性,其中,所述状态信息用于指示所述每个MEP获取的链路连接情况。When the plurality of MEPs are in a connected state with the RMEP, the RMEP determines link connectivity between the RMEP and the plurality of MEPs according to status information of the plurality of MEPs, where The status information is used to indicate the link connection status acquired by each MEP. 根据权利要求17或18所述的装置,其特征在于,所述多个MEP的ID和状态信息包含在所述第一CCM报文的厂商特定类型长度值TLV字段中。The apparatus according to claim 17 or 18, wherein the ID and status information of the plurality of MEPs are included in a vendor specific type length value TLV field of the first CCM message. 根据权利要求16至19中任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 16 to 19, wherein the device further comprises: 发送模块,用于向所述中转设备发送第一单播报文,所述第一单播报文携带所述多个MEP中任意一个MEP的ID;a sending module, configured to send a first unicast packet to the transit device, where the first unicast packet carries an ID of any one of the multiple MEPs; 所述接收模块用于接收所述多个MEP中任意一个MEP发送的第三单播报文,以便于所述RMEP确定所述RMEP与所述多个MEP中的任意一个MEP之间的链路连通性;The receiving module is configured to receive a third unicast packet sent by any one of the multiple MEPs, so that the RMEP determines link connectivity between the RMEP and any one of the multiple MEPs. Sex 其中,所述中转设备根据所述第一单播报文中携带的所述任意一个MEP的ID,以及预先获取的所述多个MEP的ID与所述多个MEP的MAC地址的映射关系,生成所述多个MEP中的任意一个MEP对应的第二单播报文,将所述第二单播报文发送至所述ID对应的MEP,所述第三单播报文是所述任意一个MEP对所述第二单播报文进行回复的报文。 The transit device generates a map according to the mapping between the ID of the any one of the MEPs and the IDs of the plurality of MEPs that are acquired in advance in the first unicast packet and the MAC addresses of the multiple MEPs. The second unicast packet corresponding to any one of the plurality of MEPs, the second unicast packet is sent to the MEP corresponding to the ID, and the third unicast packet is the any one of the MEP pairs. The second unicast packet is replied to the packet.
PCT/CN2015/086201 2015-08-06 2015-08-06 Link detection method and device Ceased WO2017020287A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/086201 WO2017020287A1 (en) 2015-08-06 2015-08-06 Link detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/086201 WO2017020287A1 (en) 2015-08-06 2015-08-06 Link detection method and device

Publications (1)

Publication Number Publication Date
WO2017020287A1 true WO2017020287A1 (en) 2017-02-09

Family

ID=57942311

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/086201 Ceased WO2017020287A1 (en) 2015-08-06 2015-08-06 Link detection method and device

Country Status (1)

Country Link
WO (1) WO2017020287A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247797A (en) * 2019-06-04 2019-09-17 深圳市中航比特通讯技术有限公司 One kind accurate Remote Defect when multiple spot ETH is connected to indicates system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056223A (en) * 2007-05-30 2007-10-17 杭州华三通信技术有限公司 Link failure detection method and device
US20090154337A1 (en) * 2007-12-12 2009-06-18 Electronics And Telecommunications Research Institute Protection switching method based on change in link status in ethernet link aggregation sublayer
US7889754B2 (en) * 2005-07-12 2011-02-15 Cisco Technology, Inc. Address resolution mechanism for ethernet maintenance endpoints
CN102148699A (en) * 2010-02-10 2011-08-10 思科技术公司 System and method to provide aggregated alarm indication signals

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7889754B2 (en) * 2005-07-12 2011-02-15 Cisco Technology, Inc. Address resolution mechanism for ethernet maintenance endpoints
CN101056223A (en) * 2007-05-30 2007-10-17 杭州华三通信技术有限公司 Link failure detection method and device
US20090154337A1 (en) * 2007-12-12 2009-06-18 Electronics And Telecommunications Research Institute Protection switching method based on change in link status in ethernet link aggregation sublayer
CN102148699A (en) * 2010-02-10 2011-08-10 思科技术公司 System and method to provide aggregated alarm indication signals

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247797A (en) * 2019-06-04 2019-09-17 深圳市中航比特通讯技术有限公司 One kind accurate Remote Defect when multiple spot ETH is connected to indicates system

Similar Documents

Publication Publication Date Title
US7995483B1 (en) Simultaneously testing connectivity to multiple remote maintenance endpoints of the same maintenance association
CN106921579B (en) Communication method and device based on Service Function Chain (SFC)
CN101631069B (en) Method, system and equipment for pseudo wire parameter negotiation
US8811190B2 (en) Maximum transmission unit (MTU) size discovery mechanism and method for data-link layers
CN106559325A (en) Path detection method and device
CN103004141B (en) Network loop detection method, equipment and system
US20180145905A1 (en) Data link layer-based communication method, device, and system
WO2017054576A1 (en) Unicast tunnel building method, apparatus and system
US11817970B2 (en) Method, device, and system for determining generic routing encapsulation GRE tunnel identifier
WO2022160665A1 (en) Packet forwarding method, packet processing method, and device
CN105187311A (en) Message forwarding method and message forwarding device
JP6332544B1 (en) Network management apparatus, network system, method, and program
CN105812221B (en) The device and method of data transmission in virtual expansible Local Area Network
CN103685007B (en) A kind of mac learning method when edge device message forwards and edge device
WO2016124117A1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
CN102571464B (en) Link tracking processing method and system
CN104486217A (en) Cross network message transmitting method and equipment
CN104168132B (en) Method for diagnosing faults, equipment and system
CN103457794B (en) Method and system for confirming faults of IP bearer network
CN108259442B (en) Slow protocol message processing method and related device
CN105450432A (en) Method for positioning port connection error and associated equipment
WO2015096512A1 (en) Packet transmission method and device based on trill network
WO2021184862A1 (en) Message sending method, first network device, and network system
CN102821047B (en) Method, network apparatus and system for establishing corresponding relation in networks
WO2017020287A1 (en) Link detection method and device

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

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

Country of ref document: EP

Kind code of ref document: A1