WO2018024189A1 - Loopback detection method and apparatus - Google Patents

Loopback detection method and apparatus Download PDF

Info

Publication number
WO2018024189A1
WO2018024189A1 PCT/CN2017/095399 CN2017095399W WO2018024189A1 WO 2018024189 A1 WO2018024189 A1 WO 2018024189A1 CN 2017095399 W CN2017095399 W CN 2017095399W WO 2018024189 A1 WO2018024189 A1 WO 2018024189A1
Authority
WO
WIPO (PCT)
Prior art keywords
mac address
loopback detection
mip
address
loopback
Prior art date
Application number
PCT/CN2017/095399
Other languages
French (fr)
Chinese (zh)
Inventor
肖敏
张征
王翠
魏月华
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018024189A1 publication Critical patent/WO2018024189A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/18Loop-free operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Definitions

  • This document relates to, but is not limited to, the field of communications, and in particular to a loopback detection method and apparatus.
  • the IEEE 802.1ag standard defines the OAM function logical entity in Ethernet, including the Maintenance End Point (MEP) located at both ends of the Ethernet transmission path, and the Maintenance Intermediate Point located in the middle of the Ethernet transmission path (Maintenance Intermediate Point). , referred to as MIP).
  • MIP Maintenance Intermediate Point
  • the maintenance endpoint and the maintenance intermediate point are collectively referred to as the Maintenance Point (MP).
  • the maintenance point in the Ethernet is based on the port of the network node.
  • the Media Access Control (MAC) address of the port is the MAC address of the maintenance point created based on the port.
  • Loopback detection is one of the Ethernet OAM functions defined by the IEEE 802.1ag standard. This function runs from MEP to MEP or MEP to MIP. The purpose is to detect the failure of the entire or a period of Ethernet transmission path, where the Ethernet transmission path is faulty. It includes both the failure of the link between the network nodes and the forwarding failure of the network node.
  • FIG. 1 is a schematic diagram of a loopback detection mechanism based on MAC forwarding.
  • switch 1 and switch 4 create one MEP and one.
  • MIP, Switch 2 and Switch 3 are created with two MIPs.
  • the loopback detection process from MEP1 to MIP5 includes the following steps:
  • Step 1 After the network operator enters the address of the MIP5 and starts the loopback detection function of the MEP1 to the MIP5, the MEP1 sends a loopback detection packet with the MIP5 address as the destination MAC address to the MIP5, and the packet is transmitted along the MAC forwarding-based transmission. The path arrives at MIP5.
  • Step 2 After receiving the loopback detection packet and detecting the error, the MIP5 replies to the loopback response packet to the MEP1 that sends the packet.
  • Step 3 After receiving the loopback response message replied by the MIP5 and detecting the error, the MEP1 returns a report of the loopback detection success to the network operator.
  • the embodiment of the present invention provides a loopback detection method and device, which can implement a loopback detection packet in a multicast mode by a MIP.
  • a loopback detection method including: receiving a loopback detection message, where the loopback detection message carries a destination media access control MAC address, the destination MAC address The address is a multicast MAC address.
  • the loopback detection packet is terminated according to the destination MAC address. If the judgment result is yes, the loopback detection packet is terminated.
  • determining whether to terminate the loopback detection message according to the destination MAC address includes: inverting a bit used to indicate unicast or multicast in the destination MAC address, to obtain a unicast MAC address; If the unicast MAC address is consistent with the stored maintenance intermediate MIP address, the loopback detection packet is determined to be terminated.
  • the terminating the loopback detection packet includes: forwarding the loopback detection packet to a MIP corresponding to the MIP address that is consistent with the obtained unicast MAC address; and ending the loopback detection report by the MIP Text.
  • the method further includes: if the determination result is negative, detecting the group carried in the packet according to the loopback The broadcast information forwards the loopback detection message.
  • the multicast information includes: a bit index display copy BIER tag and a bit mask.
  • the destination MAC address is a multicast MAC address obtained by inverting a unicast or multicast bit in the MIP address of the destination maintenance intermediate point of the loopback detection.
  • a loopback detecting apparatus comprising: a receiving mode The block is configured to receive a loopback detection message, where the loopback detection message carries a destination media access control MAC address, the destination MAC address is a multicast MAC address, and the determining module is configured to be configured according to the The destination MAC address is used to determine whether to terminate the loopback detection packet.
  • the termination module is configured to terminate the loopback detection packet if the determination result is yes.
  • the determining module includes: a reversing unit, configured to invert a bit used to indicate unicast or multicast in the destination MAC address, to obtain a unicast MAC address, and a determining unit, configured to If the unicast MAC address is consistent with the stored maintenance intermediate MIP address, it is determined that the loopback detection packet is terminated.
  • the terminating module includes: a forwarding unit, configured to forward the loopback detection message to a MIP corresponding to a MIP address that is consistent with the obtained unicast MAC address; and the terminating unit is configured to be terminated by the MIP The loopback detection packet.
  • the device further includes: a forwarding module, configured to forward the loopback detection packet according to the multicast information carried in the loopback detection packet if the determination result is negative.
  • a forwarding module configured to forward the loopback detection packet according to the multicast information carried in the loopback detection packet if the determination result is negative.
  • the multicast information includes: a BIER tag and a bit mask.
  • the destination MAC address is a multicast MAC address obtained by inverting a unicast or multicast bit in the MIP address of the destination maintenance intermediate point of the loopback detection.
  • a loopback detecting apparatus comprising: a first port and a processing chip, wherein the first port is connected to the processing chip; and the first port is configured as a receiving ring a back detection packet, wherein the loopback detection packet carries a destination media access control MAC address, and the destination MAC address is a multicast MAC address; and the processing chip is configured to determine whether the destination MAC address is used according to the destination MAC address.
  • the loopback detection packet is terminated; if the judgment result is yes, the loopback detection packet is terminated.
  • the apparatus further comprises: a memory, wherein the memory is connected to the processing chip, and the memory is configured to store a MIP address of the configured MIP.
  • the processing chip is configured to: invert the bit used to indicate unicast or multicast in the destination MAC address, to obtain a unicast MAC address, and determine the obtained unicast MAC address and the memory storage. Whether the MIP address is consistent; if it is determined that the obtained unicast MAC address is consistent with the stored MIP address, it is determined to terminate the loopback detection message.
  • the device further includes: one or more MIPs, wherein the one or more MIPs are connected to the processing chip; and the processing chip is configured to forward the loopback detection message to and Obtaining a MIP corresponding to the MIP address with the same unicast MAC address; indicating that the corresponding MIP terminates the loopback detection packet; and the corresponding MIP is configured to terminate the loopback detection report according to the indication of the processing chip Text.
  • the device further includes: a second port, wherein the second port is connected to the processing chip; and the processing chip is further configured to: when it is determined that the loopback detection message is not terminated And the second port is configured to forward the loopback detection packet according to the destination MAC address, and the second port is configured to send the loopback detection packet according to the indication of the processing chip.
  • a storage medium is also provided.
  • the storage medium is configured to store a program code for performing the following steps: receiving a loopback detection message, wherein the loopback detection message carries a destination media access control MAC address, and the destination MAC address is multicast The MAC address is determined according to the destination MAC address, and the loopback detection packet is terminated. If the determination result is yes, the loopback detection packet is terminated.
  • the storage medium is further configured to store program code for performing the following steps: inverting a bit in the destination MAC address for indicating unicast or multicast, to obtain a unicast MAC address; in the unicast If the MAC address is consistent with the stored maintenance intermediate MIP address, the loopback detection packet is determined to be terminated.
  • the loopback detection packet of the multicast mode terminated by the MIP can be implemented.
  • 1 is a schematic diagram of a loopback detection mechanism based on MAC forwarding
  • FIG. 2 is a flow chart of a loopback detection method according to an embodiment of the present invention.
  • FIG. 3 is a structural block diagram 1 of a loopback detecting apparatus according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram 2 of a loopback detecting apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram 3 of a loopback detecting apparatus according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram 4 of a loopback detecting apparatus according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram 1 of another loopback detecting apparatus according to an embodiment of the present invention.
  • FIG. 8 is a structural block diagram 2 of another loopback detecting apparatus according to an embodiment of the present invention.
  • FIG. 9 is a structural block diagram 3 of another loopback detecting apparatus according to an embodiment of the present invention.
  • FIG. 10 is a structural block diagram 4 of another loopback detecting apparatus according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a MAC address format in accordance with an alternative embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a BIER-based loopback detection method in accordance with an alternative embodiment of the present invention.
  • US Patent Application US2015078380 (Bit Indexed Explicit Replication For Layer 2 Networking) discloses an Ethernet frame multicast method based on Bit Indexed Explicit Replication (BIER).
  • the method is: defining a BIER tag and a bit mask in the frame header of the Ethernet frame.
  • the network edge node encapsulates the BIER tag and the bit mask into the frame header of the Ethernet frame entering the network.
  • the network node forwards the multicast Ethernet frame based on the BIER tag carrying the bit mask.
  • the network node stores two independent forwarding tables of a MAC forwarding table and a BIER forwarding table, which are respectively used for unicast Ethernet frame forwarding and multicast Ethernet frame forwarding, wherein the MAC forwarding table is used for unicasting.
  • the forwarding of the Ethernet frame the BIER forwarding table is used for forwarding the multicast Ethernet frame.
  • the network node extracts the destination MAC address of the Ethernet frame and the BIER tag.
  • the destination MAC address of the Ethernet frame is a unicast MAC address
  • the BIER tag is ignored, and the MAC forwarding table is searched according to the destination MAC address and forwarded according to the MAC address.
  • the mechanism forwards the packet.
  • the destination MAC address of the Ethernet frame is the multicast MAC address
  • the BIER forwarding table is searched according to the BIER label and the packet is forwarded according to the forwarding mechanism of the BIER.
  • the application scenario of the loopback detection of the MEP to the MEP can be implemented.
  • the intermediate node of the transmission path is configured. The MIP cannot terminate the loopback detection message based on the BIER forwarding.
  • FIG. 2 is a flowchart of a loopback detection method according to an embodiment of the present invention. As shown in FIG. 2, the flow includes the following steps:
  • Step S202 Receive a loopback detection packet, where the loopback detection packet carries a destination media access control MAC address, and the destination MAC address is a multicast MAC address.
  • Step S204 Determine, according to the destination MAC address, whether to terminate the loopback detection packet
  • step S206 if the determination result is yes, the loopback detection message is terminated.
  • the loopback detection packet is received by the loopback detection packet, where the loopback detection packet carries the destination medium access control MAC address, and the destination MAC address is a multicast MAC address; and the destination MAC address is used to determine whether to terminate the loopback detection packet.
  • the judgment result is yes
  • the loopback detection message is terminated.
  • the destination MAC address carried in the received loopback detection packet is a multicast MAC address
  • the execution entity of the foregoing step may be a network node, including: a switch.
  • the unicast MAC address is obtained, and the unicast MAC address is compared with the stored MIP address to determine whether to terminate the loopback detection packet.
  • the unicast MAC address is used to indicate the unicast or multicast bit in the destination MAC address.
  • the unicast MAC address is consistent with the stored maintenance intermediate MIP address, the final loopback detection report is determined. Text.
  • the MIP termination loopback detection packet of the MIP address and the unicast MAC address in the switch configured with the MIP may be used. For example: turn the loopback detection message The MIP corresponding to the MIP address that matches the obtained unicast MAC address is detected by the MIP termination loopback packet.
  • the loopback detection packet is further forwarded. For example, if the judgment result is negative, the loopback detection packet is forwarded according to the multicast information carried in the loopback detection packet.
  • the multicast information may include: a bit index display copy BIER tag and a bit mask.
  • the destination MAC address may include a multicast MAC address used to indicate unicast or multicast bit inversion in the destination maintenance intermediate point MIP address of the loopback detection.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a loopback detection device is further provided, which is used to implement the above-mentioned embodiments and optional embodiments, and has not been described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 3 is a structural block diagram 1 of a loopback detecting apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes:
  • the receiving module 32 is configured to receive a loopback detection packet, where the loopback detection packet carries a destination media access control MAC address, and the destination MAC address is a multicast MAC address.
  • the determining module 34 is coupled to the receiving module 32, and configured to determine, according to the destination MAC address, whether to terminate the loopback detection message;
  • the termination module 36 is coupled to the determination module 34 and configured to terminate the loopback detection message if the determination result is yes.
  • the receiving module receives the loopback detection packet, where the loopback detection packet carries the destination medium access control MAC address, and the destination MAC address is a multicast MAC address; the determining module determines whether to terminate the ring according to the destination MAC address.
  • the detection packet is returned.
  • the termination module terminates the loopback detection packet if the judgment result is yes.
  • the destination MAC address carried in the received loopback detection packet is a multicast MAC address
  • FIG. 4 is a block diagram 2 of a loopback detection apparatus according to an embodiment of the present invention. As shown in FIG. 4, optionally, the apparatus includes, in addition to all the modules shown in FIG.
  • the inverting unit 42 is configured to invert the bit used to indicate unicast or multicast in the destination MAC address to obtain a unicast MAC address.
  • the determining unit 44 is coupled to the inverting unit 42 and is configured to determine to terminate the loopback detection message if the unicast MAC address is consistent with the stored maintenance intermediate point MIP address.
  • FIG. 5 is a structural block diagram 3 of a loopback detecting apparatus according to an embodiment of the present invention. As shown in FIG. 5, optionally, the apparatus includes, in addition to all the modules shown in FIG.
  • the forwarding unit 52 is configured to forward the loopback detection packet to the MIP corresponding to the MIP address that is consistent with the obtained unicast MAC address.
  • the terminating unit 54 coupled to the forwarding unit 52, is configured to detect the message by the MIP termination loopback.
  • FIG. 6 is a structural block diagram of a loopback detecting apparatus according to an embodiment of the present invention. As shown in FIG. 6, optionally, the apparatus includes, in addition to all the modules shown in FIG.
  • the forwarding module 62 is coupled to the determining module 34, and configured to forward the loopback detection packet according to the multicast information carried in the loopback detection packet if the determination result is negative.
  • the multicast information may include: a BIER tag and a bit mask.
  • the destination MAC address is a multicast MAC address obtained by using the MIP address of the destination maintenance intermediate point of the loopback detection to indicate unicast or multicast bit reversal.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • FIG. 7 is a structural block diagram of another loopback detecting device according to an embodiment of the present invention. As shown in FIG. 7, the device includes:
  • the first port 72 and the processing chip 74 wherein the first port 72 is connected to the processing chip 74; the first port 72 is configured to receive the loopback detection message, wherein the loopback detection message carries the destination media access control MAC
  • the address and destination MAC address are multicast MAC addresses.
  • the processing chip 74 is configured to determine whether to terminate the loopback detection packet according to the destination MAC address. If the judgment result is yes, the loopback detection packet is terminated.
  • the first port receives the loopback detection packet, where the loopback detection packet carries the destination media access control MAC address, and the destination MAC address is a multicast MAC address;
  • the destination MAC address determines whether the loopback detection packet is terminated. If the judgment result is yes, the loopback detection packet is terminated.
  • the destination MAC address carried in the received loopback detection packet is a multicast MAC address, it is determined whether the loopback detection packet is terminated according to the multicast MAC address, and if the judgment result is yes, the termination is performed. Loopback detection packet. Therefore, the loopback detection packet of the multicast mode terminated by the MIP can be implemented.
  • FIG. 8 is a block diagram showing the structure of another loopback detecting apparatus according to an embodiment of the present invention. As shown in FIG. 8, the apparatus further includes: a memory 82, wherein the memory 82 is connected to the processing chip 74, and the memory is connected to the processing chip 74. 82 is set to store the MIP address of the configured MIP.
  • the processing chip 74 is configured to: invert the bit used to indicate unicast or multicast in the destination MAC address to obtain a unicast MAC address; determine whether the obtained unicast MAC address is consistent with the MIP address stored in the memory; When it is determined that the obtained unicast MAC address is consistent with the stored MIP address, the loopback detection packet is determined to be terminated.
  • FIG. 9 is a structural block diagram 3 of another loopback detecting apparatus according to an embodiment of the present invention. As shown in FIG. 9, the apparatus further includes: one or more MIPs 92, wherein
  • One or more MIPs 92 are connected to the processing chip 74; the processing chip 74 is configured to forward the loopback detection message to the MIP 92 corresponding to the MIP address that is consistent with the obtained unicast MAC address; and indicate the corresponding MIP 92 termination loopback detection.
  • the packet is configured to terminate the loopback detection packet according to the indication of the processing chip.
  • FIG. 10 is a structural block diagram of another loopback detecting apparatus according to an embodiment of the present invention. As shown in FIG. 10, the apparatus further includes: a second port 102, where
  • the second port 102 is connected to the processing chip 74.
  • the processing chip 74 is configured to instruct the second port 102 to forward the loopback detection packet according to the destination MAC address when it is determined that the loopback detection packet is not terminated; the second port 102 is configured.
  • a loopback detection message is sent according to the indication of the processing chip 74.
  • An alternative embodiment of the present invention provides a loopback detection method based on BIER forwarding, so that the MIP termination configured on the intermediate node of the transmission path terminates the loopback detection packet based on the BIER forwarding.
  • the MEP sends a loopback detection packet, and the destination MAC address of the packet is the bit of the MIP address indicating "unicast or multicast".
  • the multicast MAC address formed after the transfer; after receiving the loopback detection packet, the network node configured with the MIP unicasts the MAC address and network formed by inverting the unicast or multicast bit in the destination MAC address.
  • the addresses of the MIPs configured on the node are compared to determine whether to terminate the message.
  • the loopback detection packet sent by the MEP uses the MAC address of the MIP as the destination MAC address.
  • the MAC address is a unicast MAC address.
  • the MIP can terminate the forwarding of the frame by determining the destination MAC address of the loopback detection packet as the MAC address of the MIP.
  • the Ethertype of the loopback detection packet is 0x8902 to enter the standard OAM packet processing flow.
  • two independent MAC forwarding tables and BIER forwarding tables are stored on the network node.
  • step A the network operator inputs the MIP address and starts the loopback detection function based on the BIER forwarding of the MEP to the MIP.
  • Both the MEP and the MIP are maintenance points configured by the network operator on the network.
  • the maintenance point is based on the port configuration.
  • the MEP address is the MAC address of the port where the MEP is located.
  • the MIP address is the MAC address of the port where the MIP is located, and all ports in the network are The MAC addresses are all unicast addresses.
  • the MIP address entered by the network operator in this step is the unicast MAC address of the port where the MIP is located.
  • the network operator In the BIER-enabled Ethernet, there are two ways to forward the loopback detection packets sent by the MEP to the MIP. One is MAC-based forwarding and the other is BIER-based forwarding. If the network operator needs to use the loopback detection message to detect the MAC forwarding table of each network node on the transmission path, perform a MAC forwarding-based loopback detection function; if the network operator needs to use the loopback detection packet to detect the transmission path The BIER forwarding table of each network node performs loopback detection based on BIER forwarding. In this step, the network operator performs the loopback detection function based on BIER forwarding.
  • step B the MEP sends a loopback detection packet, where the destination MAC address of the packet is a multicast MAC address formed by the bit unicast or multicast in the MIP address input by the network operator.
  • the MAC address has 48 bits, that is, 6 bytes, wherein the lowest bit of the first byte is used to indicate " Unicast or multicast", optionally, the lowest bit of the first byte of the MAC address is 1 indicating that the MAC address is a multicast address, and the lowest bit of the first byte of the MAC address is 0, indicating that the MAC address is A unicast address.
  • the network node configured with the MEP reverses the bit indicating "unicast or multicast" in the MIP address input by the network operator, that is, the bit indicating "unicast or multicast” is from the unicast indicating 0.
  • the IP address of the loopback detection packet sent by the MEP is used as the destination MAC address of the loopback detection packet sent by the MEP.
  • Step C After receiving the loopback detection packet, the network node configured with the MIP sets the unicast MAC address formed by inverting the unicast or multicast bit in the destination MAC address and the MIP configured on the network node. The addresses are compared to determine if the message is terminated.
  • the network node that has not configured the MIP After receiving the loopback detection packet sent by the MEP, the network node that has not configured the MIP determines that the destination MAC address of the packet is a multicast MAC address, and then selects the BIER forwarding table for BIER-based forwarding. Forwarding, and will not select the MAC forwarding table for MAC-based forwarding, thus achieving the purpose of detecting the BIER forwarding table of the network node on the transmission path.
  • the network node configured with the MIP After receiving the loopback detection packet sent by the MEP, the network node configured with the MIP determines that the destination MAC address of the packet is a multicast MAC address, and then inverts the bit indicating "unicast or multicast" in the destination MAC address. A unicast MAC address is then formed, and the resulting unicast MAC address is compared to the address of the MIP configured on the network node. If the two addresses are the same, the message is terminated and further loopback detection is processed. If the two addresses are not consistent, the message is not terminated, but the BIER forwarding table is selected for BIER-based. Forwarding, thus achieving the purpose of detecting the BIER forwarding table of the network node on the transmission path.
  • FIG. 12 is a schematic diagram of a BIER-based loopback detection method according to an alternative embodiment of the present invention.
  • the network includes a BIER switch 1, a BIER switch 2, a BIER switch 3, and a BIER switch 16, a total of 16
  • the switch that supports BIER forwarding, the BIER forwarding-based transmission path from the BIER switch 1 through the BIER switches 2, 4, 7, and 11 to the BIER switch 15 is the transmission path to be detected.
  • the network operator configures two MEPs and four MIPs on the transmission path to be detected.
  • MEP1 is configured on port 1 of BIER switch 1
  • MEP2 is configured on port 1 of BIER switch 15
  • on BIER switch 4 MIP1 and MIP2 are configured on port 1 and port 2, respectively
  • MIP3 and MIP4 are respectively configured on port 1 of BIER switch 7 and port 1 of BIER switch 11.
  • the MAC address of port 1 of BIER switch 4 is 00-11-22-00-00-41, which is the address of MIP1; the MAC address of port 2 of BIER switch 4 is 00-11-22-00-00-42.
  • the network operator performs BIER forwarding-based loopback detection from MEP1 to MIP1, which mainly includes the following steps:
  • step 11 the network operator inputs the address 00-11-22-00-00-41 of MIP1, and starts the loopback detection function based on BIER forwarding of MEP1 to MIP1.
  • step 12 the MEP1 sends a loopback detection packet, and the destination MAC address of the packet is 01-11-22-00-00-41.
  • the destination MAC address 01-11-22-00-00-41 of the loopback detection packet is the bit indicating "unicast or multicast" in the MIP1 address 00-11-22-00-00-41 input by the network operator.
  • the loopback detection packet sent by MEP1 should carry the multicast MAC address as the destination MAC address, and should also carry the BIER label and bit mask for BIER forwarding.
  • the code, where the value of the bit mask should indicate that the BIER switch forwards the loopback detection message along the to-be-detected transmission path.
  • Step 13 After receiving the loopback detection packet sent by the MEP1, the BIER switch 2 determines that the destination MAC address of the packet is 01-11-22-00-00-41, which is based on the BIER label carried in the packet. And the bit mask forwards the BIER packet to its next hop BIER switch 4.
  • the BIER switch 2 Since the BIER switch 2 is not configured with any maintenance point, the BIER switch 2 receives the loopback detection packet sent by the MEP1 and determines that the destination MAC address of the packet is 01-11-22-00-00-41. , does not reverse the destination MAC address of the message.
  • Step 14 After receiving the loopback detection packet, the BIER switch 4 determines that the destination MAC address of the packet is 01-11-22-00-00-41, and then sets the destination MAC address 01-11-22- 00-00-41 is reversed to 00-11-22-00-00-41 and compared with the addresses of MIP1 and MIP2 configured on the BIER switch 4 to determine that the loopback detection message is terminated by MIP1.
  • the BIER switch 4 receives the loopback detection packet forwarded by the BIER switch 2 and determines that the destination MAC address of the packet is 01-11-22-00-00-41 as the multicast MAC address. After that, the unicast MAC address 00-11-22-00-00-41 formed by inverting the bit indicating "unicast or multicast" in the destination MAC address 01-11-22-00-00-41 and The addresses of the MIPs configured on the BIER switch 4 are compared one by one. The result of the comparison is that the unicast MAC address 00-11-22-00-00-41 formed after the reverse is the same as the address of the MIP1, so the BIER switch 4 The loopback detection packet will not be forwarded again. The loopback detection packet will be terminated by MIP1 and further processed.
  • the network operator performs BIER forwarding-based loopback detection from MEP1 to MIP2, which mainly includes the following steps:
  • step 21 the network operator inputs the address 00-11-22-00-00-42 of the MIP2, and starts the loopback detection function based on the BIER forwarding of the MEP1 to the MIP2.
  • step 22 the MEP1 sends a loopback detection packet, and the destination MAC address of the packet is 01-11-22-00-00-42.
  • the destination MAC address of the loopback detection packet 01-11-22-00-00-42 is the bit indicating "unicast or multicast" in the MIP2 address 00-11-22-00-00-42 entered by the network operator.
  • the loopback detection packet sent by MEP1 should carry the multicast MAC address as the destination MAC address, and should also carry the BIER label and bit mask for BIER forwarding.
  • the code, where the value of the bit mask should indicate that the BIER switch forwards the loopback detection message along the to-be-detected transmission path.
  • Step 23 After receiving the loopback detection packet sent by the MEP1, the BIER switch 2 determines that the destination MAC address of the packet is 01-11-22-00-00-42, and is based on the BIER label carried in the packet. And the bit mask forwards the BIER packet to its next hop BIER switch 4.
  • the BIER switch 2 Since the BIER switch 2 is not configured with any maintenance point, the BIER switch 2 receives the loopback detection packet sent by the MEP1 and determines that the destination MAC address of the packet is 01-11-22-00-00-42. , does not reverse the destination MAC address of the message.
  • Step 24 After receiving the loopback detection packet, the BIER switch 4 determines that the destination MAC address of the packet is 01-11-22-00-00-42, and then sets the destination MAC address 01-11-22- 00-00-42 is reversed to 00-11-22-00-00-42 and compared with the addresses of MIP1 and MIP2 configured on the BIER switch 4 to determine that the loopback detection message is terminated by MIP2 and loopback is performed. The detection packet is forwarded to MIP2.
  • the BIER switch 4 receives the loopback detection packet forwarded by the BIER switch 2 and determines that the destination MAC address of the packet is 01-11-22-00-00-42 as the multicast MAC address. After that, the destination MAC address will be 01-11-22-00-00-42 indicates the unicast MAC address 00-11-22-00-00-42 formed by the unicast or multicast bit reversed and configured on the BIER switch 4.
  • the MIP addresses are compared one by one. The result of the comparison is that the unicast MAC address 00-11-22-00-00-42 formed after the above reversal is consistent with the address of the MIP2, so the BIER switch 4 continues the loopback detection message. Forwarded to MIP2, the loopback detection message will be terminated by MIP2 and further processed.
  • the network operator performs BIER-based forwarding-based loopback detection from MEP1 to MIP3, which mainly includes the following steps:
  • step 31 the network operator inputs the address 00-11-22-00-00-71 of the MIP3, and starts the loopback detection function based on the BIER forwarding of the MEP1 to the MIP3.
  • step 32 the MEP1 sends a loopback detection packet, and the destination MAC address of the packet is 01-11-22-00-00-71.
  • the destination MAC address 01-11-22-00-00-71 of the loopback detection packet is the bit indicating "unicast or multicast" in the MIP3 address 00-11-22-00-00-71 input by the network operator.
  • the loopback detection packet sent by MEP1 should carry the multicast MAC address as the destination MAC address, and should also carry the BIER label and bit mask for BIER forwarding.
  • the code, where the value of the bit mask should indicate that the BIER switch forwards the loopback detection message along the to-be-detected transmission path.
  • Step 33 After receiving the loopback detection packet sent by the MEP1, the BIER switch 2 determines that the destination MAC address of the packet is 01-11-22-00-00-71, and is based on the BIER label carried in the packet. And the bit mask forwards the BIER packet to its next hop BIER switch 4.
  • the BIER switch 2 Since the BIER switch 2 is not configured with any maintenance point, the BIER switch 2 receives the loopback detection packet sent by the MEP1 and determines that the destination MAC address of the packet is 01-11-22-00-00-71. , does not reverse the destination MAC address of the message.
  • Step 34 After receiving the loopback detection packet, the BIER switch 4 determines that the destination MAC address of the packet is 01-11-22-00-00-71, and then sets the destination MAC address 01-11-22- 00-00-71 After the inversion is 00-11-22-00-00-71, the MIP1 and MIP2 addresses configured on the BIER switch 4 are compared. It is determined that no MIP can terminate the loopback detection packet, so the BIER is carried based on the packet. The tag and the bit mask forward the packet to the BIER switch 7 for its next hop.
  • the BIER switch 4 receives the loopback detection packet forwarded by the BIER switch 2 and determines that the destination MAC address of the packet is 01-11-22-00-00-71 as the multicast MAC address. After that, the unicast MAC address 00-11-22-00-00-71 formed by inverting the bit indicating "unicast or multicast" in the destination MAC address 01-11-22-00-00-71 and The addresses of the MIPs configured on the BIER switch 4 are compared one by one. The result of the comparison is that the unicast MAC address 00-11-22-00-00-71 formed after the reverse is inconsistent with the addresses of MIP1 and MIP2, so The BIER switch 4 will continue to forward the loopback detection message to the BIER switch 7.
  • Step 35 After receiving the loopback detection message, the BIER switch 7 determines that the destination MAC address of the packet is 01-11-22-00-00-71, and then sets the destination MAC address 01-11-22- After the 00-00-71 is reversed to 00-11-22-00-00-71, it is compared with the address of the MIP3 configured on the BIER switch 7, and it is determined that the loopback detection message is terminated by the MIP3.
  • the BIER switch 7 receives the loopback detection packet forwarded by the BIER switch 4 and determines that the destination MAC address of the packet is 01-11-22-00-00-71 as the multicast MAC address. After that, the unicast MAC address 00-11-22-00-00-71 formed by inverting the bit indicating "unicast or multicast" in the destination MAC address 01-11-22-00-00-71 and The address of the MIP configured on the BIER switch 7 is compared. The result of the comparison is that the unicast MAC address 00-11-22-00-00-71 formed after the reverse is the same as the address of the MIP3, so the BIER switch 7 is no longer The loopback detection packet is forwarded, and the loopback detection packet is terminated by MIP3 and further processed.
  • the network operator performs BIER forwarding-based loopback detection from MEP1 to MIP4, which mainly includes the following steps:
  • step 41 the network operator inputs the address 00-11-22-00-00-B1 of the MIP4, and starts the loopback detection function based on the BIER forwarding of the MEP1 to the MIP4.
  • Step 42 The MEP1 sends a loopback detection packet, and the destination MAC address of the packet is 01-11-22-00-00-B1.
  • the destination MAC address 01-11-22-00-00-B1 of the loopback detection packet is the bit indicating "unicast or multicast" in the MIP4 address 00-11-22-00-00-B1 input by the network operator.
  • the loopback detection packet sent by MEP1 should carry the multicast MAC address as the destination MAC address, and should also carry the BIER label and bit mask for BIER forwarding.
  • the code, where the value of the bit mask should indicate that the BIER switch forwards the loopback detection message along the to-be-detected transmission path.
  • Step 43 After receiving the loopback detection packet sent by the MEP1, the BIER switch 2 determines that the destination MAC address of the packet is 01-11-22-00-00-B1, and is based on the BIER label carried in the packet. And the bit mask forwards the BIER packet to its next hop BIER switch 4.
  • the BIER switch 2 Since the BIER switch 2 is not configured with any maintenance point, the BIER switch 2 receives the loopback detection packet sent by the MEP1 and determines that the destination MAC address of the packet is 01-11-22-00-00-B1. , does not reverse the destination MAC address of the message.
  • Step 44 After receiving the loopback detection packet, the BIER switch 4 determines that the destination MAC address of the packet is 01-11-22-00-00-B1, and then sets the destination MAC address 01-11-22- 00-00-B1 is reversed to 00-11-22-00-00-B1 and compared with the addresses of MIP1 and MIP2 configured on the BIER switch 4. It is determined that no MIP can terminate the loopback detection message, so it is based on The BIER tag and the bit mask carried in the packet forward the BIER and send it to its next hop BIER switch 7.
  • the BIER switch 4 receives the loopback detection packet forwarded by the BIER switch 2 and determines that the destination MAC address of the packet is 01-11-22-00-00-B1 is the multicast MAC address. After that, the unicast MAC address 00-11-22-00-00-B1 formed by inverting the bit indicating "unicast or multicast" in the destination MAC address 01-11-22-00-00-B1 is The addresses of the MIPs configured on the BIER switch 4 are compared one by one. The result of the comparison is that the unicast MAC address 00-11-22-00-00-B1 formed after the reverse is inconsistent with the addresses of MIP1 and MIP2, so BIER switch 4 will continue to forward loopback detection packets. Go to the BIER switch 7.
  • Step 45 After receiving the loopback detection packet, the BIER switch 7 determines that the destination MAC address of the packet is 01-11-22-00-00-B1, and then sets the destination MAC address 01-11-22- After 00-00-B1 is reversed to 00-11-22-00-00-B1, it is compared with the address of MIP3 configured on the BIER switch 7. It is determined that no MIP can terminate the loopback detection packet, so it is based on the packet.
  • the carried BIER tag and the bit mask forward the BIER packet and send it to its next hop BIER switch 11.
  • the BIER switch 7 receives the loopback detection packet forwarded by the BIER switch 4 and determines that the destination MAC address of the packet is 01-11-22-00-00-B1 is the multicast MAC address. After that, the unicast MAC address 00-11-22-00-00-B1 formed by inverting the bit indicating "unicast or multicast" in the destination MAC address 01-11-22-00-00-B1 is The address of the MIP configured on the BIER switch 7 is compared. The result of the comparison is that the unicast MAC address 00-11-22-00-00-B1 formed after the reverse is inconsistent with the address of the MIP3, so the BIER switch 7 will continue. The loopback detection packet is forwarded to the BIER switch 11.
  • Step 46 After receiving the loopback detection packet, the BIER switch 11 determines that the destination MAC address of the packet is 01-11-22-00-00-B1, and then sets the destination MAC address 01-11-22- 00-00-B1 is inverted to 00-11-22-00-00-B1 and compared with the address of MIP4 configured on the BIER switch 11, and it is determined that the loopback detection message is terminated by MIP4.
  • the BIER switch 11 receives the loopback detection packet forwarded by the BIER switch 7 and determines that the destination MAC address of the packet is 01-11-22-00-00-B1 is the multicast MAC address. After that, the unicast MAC address 00-11-22-00-00-B1 formed by inverting the bit indicating "unicast or multicast" in the destination MAC address 01-11-22-00-00-B1 is The address of the MIP configured on the BIER switch 11 is compared. The result of the comparison is that the unicast MAC address 00-11-22-00-00-B1 formed after the reverse is the same as the address of the MIP4, so the BIER switch 11 is no longer The loopback detection packet is forwarded, and the loopback detection packet is terminated by MIP4 and further processed.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • S1 Receive a loopback detection packet, where the loopback detection packet carries a destination media access control MAC address, and the destination MAC address is a multicast MAC address.
  • the storage medium is further arranged to store program code for performing the following steps:
  • Computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules, or other data. , removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer.
  • Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media.
  • the above embodiment implements a loopback detection packet in which the MIP terminates the multicast mode.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Small-Scale Networks (AREA)

Abstract

A loopback detection method and apparatus. The method comprises: receiving a loopback detection packet, the loopback detection packet carrying a target media access control (MAC) address, the target MAC address being a multicast MAC address (S202); determining, according to the target MAC address, whether to terminate the loopback detection packet (S204); and if the determining result is yes, terminating the loopback detection packet (S206).

Description

环回检测方法及装置Loopback detection method and device 技术领域Technical field
本文涉及但不限于通信领域,具体而言,涉及一种环回检测方法及装置。This document relates to, but is not limited to, the field of communications, and in particular to a loopback detection method and apparatus.
背景技术Background technique
在当前的以太网中,标准组织电气和电子工程师协会(Institute of Electrical and Electronics Engineers,简称为IEEE)制定了一套以太网操作、管理和维护(Operation,Administration and Maintenance,简称为OAM)的工作机制,并已于2007年正式发布为802.1ag标准。In the current Ethernet network, the Institute of Electrical and Electronics Engineers (IEEE) has developed a set of operations for Ethernet operation, management and maintenance (OAM). The mechanism was officially released as the 802.1ag standard in 2007.
IEEE 802.1ag标准定义了以太网中的OAM功能逻辑实体,包括位于以太网传输路径两端的维护端点(Maintenance End Point,简称为MEP),以及位于以太网传输路径中间的维护中间点(Maintenance Intermediate Point,简称为MIP)。其中,维护端点和维护中间点统称为维护点(Maintenance Point,简称为MP)。以太网中的维护点基于网络节点的端口创建,端口的媒体接入控制(Media Access Control,简称为MAC)地址即为基于该端口所创建维护点的MAC地址。环回检测是IEEE 802.1ag标准定义的以太网OAM功能之一,该功能运行于MEP到MEP或MEP到MIP,目的是检测整个或一段以太网传输路径的故障,其中,以太网传输路径的故障既包括网络节点之间链路的故障,也包括网络节点的转发故障。The IEEE 802.1ag standard defines the OAM function logical entity in Ethernet, including the Maintenance End Point (MEP) located at both ends of the Ethernet transmission path, and the Maintenance Intermediate Point located in the middle of the Ethernet transmission path (Maintenance Intermediate Point). , referred to as MIP). The maintenance endpoint and the maintenance intermediate point are collectively referred to as the Maintenance Point (MP). The maintenance point in the Ethernet is based on the port of the network node. The Media Access Control (MAC) address of the port is the MAC address of the maintenance point created based on the port. Loopback detection is one of the Ethernet OAM functions defined by the IEEE 802.1ag standard. This function runs from MEP to MEP or MEP to MIP. The purpose is to detect the failure of the entire or a period of Ethernet transmission path, where the Ethernet transmission path is faulty. It includes both the failure of the link between the network nodes and the forwarding failure of the network node.
IEEE 802.1ag标准提供了一种基于MAC转发的环回检测机制,图1是基于MAC转发的环回检测机制的示意图,如图1所示,交换机1和交换机4创建有1个MEP和1个MIP,交换机2和交换机3创建有两个MIP,从MEP1到MIP5的环回检测过程包括以下步骤:The IEEE 802.1ag standard provides a loopback detection mechanism based on MAC forwarding. Figure 1 is a schematic diagram of a loopback detection mechanism based on MAC forwarding. As shown in Figure 1, switch 1 and switch 4 create one MEP and one. MIP, Switch 2 and Switch 3 are created with two MIPs. The loopback detection process from MEP1 to MIP5 includes the following steps:
步骤1,网络操作员输入MIP5的地址并启动MEP1到MIP5的环回检测功能后,MEP1向MIP5发送以MIP5的地址为目的MAC地址的环回检测报文,该报文沿基于MAC转发的传输路径到达MIP5。 Step 1: After the network operator enters the address of the MIP5 and starts the loopback detection function of the MEP1 to the MIP5, the MEP1 sends a loopback detection packet with the MIP5 address as the destination MAC address to the MIP5, and the packet is transmitted along the MAC forwarding-based transmission. The path arrives at MIP5.
步骤2,MIP5接收到环回检测报文并检测无误后,向发送该报文的MEP1回复环回响应报文。Step 2: After receiving the loopback detection packet and detecting the error, the MIP5 replies to the loopback response packet to the MEP1 that sends the packet.
步骤3,MEP1接收到MIP5回复的环回响应报文并检测无误后,向网络操作员返回环回检测成功的报告。Step 3: After receiving the loopback response message replied by the MIP5 and detecting the error, the MEP1 returns a report of the loopback detection success to the network operator.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种环回检测方法及装置,能够实现由MIP终结组播方式的环回检测报文。The embodiment of the present invention provides a loopback detection method and device, which can implement a loopback detection packet in a multicast mode by a MIP.
根据本发明的一个实施例,提供了一种环回检测方法,包括:接收环回检测报文,其中,所述环回检测报文中携带有目的媒体接入控制MAC地址,所述目的MAC地址为组播MAC地址;根据所述目的MAC地址判断是否终结所述环回检测报文;在判断结果为是的情况下,终结所述环回检测报文。According to an embodiment of the present invention, a loopback detection method is provided, including: receiving a loopback detection message, where the loopback detection message carries a destination media access control MAC address, the destination MAC address The address is a multicast MAC address. The loopback detection packet is terminated according to the destination MAC address. If the judgment result is yes, the loopback detection packet is terminated.
可选地,根据所述目的MAC地址判断是否终结所述环回检测报文包括:将所述目的MAC地址中用于指示单播或者组播的比特反转,得到单播MAC地址;在所述单播MAC地址与存储的维护中间点MIP地址一致的情况下,确定终结所述环回检测报文。Optionally, determining whether to terminate the loopback detection message according to the destination MAC address includes: inverting a bit used to indicate unicast or multicast in the destination MAC address, to obtain a unicast MAC address; If the unicast MAC address is consistent with the stored maintenance intermediate MIP address, the loopback detection packet is determined to be terminated.
可选地,终结所述环回检测报文包括:将所述环回检测报文转发至与得到的单播MAC地址一致的MIP地址对应的MIP;由所述MIP终结所述环回检测报文。Optionally, the terminating the loopback detection packet includes: forwarding the loopback detection packet to a MIP corresponding to the MIP address that is consistent with the obtained unicast MAC address; and ending the loopback detection report by the MIP Text.
可选地,在根据所述目的MAC地址判断是否终结所述环回检测报文之后,所述方法还包括:在判断结果为否的情况下,根据所述环回检测报文中携带的组播信息转发所述环回检测报文。Optionally, after determining, according to the destination MAC address, whether to terminate the loopback detection packet, the method further includes: if the determination result is negative, detecting the group carried in the packet according to the loopback The broadcast information forwards the loopback detection message.
可选地,所述组播信息包括:位索引显示复制BIER标签和比特掩码。Optionally, the multicast information includes: a bit index display copy BIER tag and a bit mask.
可选地,所述目的MAC地址为将所述环回检测的目的维护中间点MIP地址中用于指示单播或者组播的比特反转得到的组播MAC地址。Optionally, the destination MAC address is a multicast MAC address obtained by inverting a unicast or multicast bit in the MIP address of the destination maintenance intermediate point of the loopback detection.
根据本发明的另一个实施例,提供了一种环回检测装置,包括:接收模 块,设置为接收环回检测报文,其中,所述环回检测报文中携带有目的媒体接入控制MAC地址,所述目的MAC地址为组播MAC地址;判断模块,设置为根据所述目的MAC地址判断是否终结所述环回检测报文;终结模块,设置为在判断结果为是的情况下,终结所述环回检测报文。According to another embodiment of the present invention, there is provided a loopback detecting apparatus comprising: a receiving mode The block is configured to receive a loopback detection message, where the loopback detection message carries a destination media access control MAC address, the destination MAC address is a multicast MAC address, and the determining module is configured to be configured according to the The destination MAC address is used to determine whether to terminate the loopback detection packet. The termination module is configured to terminate the loopback detection packet if the determination result is yes.
可选地,所述判断模块包括:反转单元,设置为将所述目的MAC地址中用于指示单播或者组播的比特反转,得到单播MAC地址;确定单元,设置为在所述单播MAC地址与存储的维护中间点MIP地址一致的情况下,确定终结所述环回检测报文。Optionally, the determining module includes: a reversing unit, configured to invert a bit used to indicate unicast or multicast in the destination MAC address, to obtain a unicast MAC address, and a determining unit, configured to If the unicast MAC address is consistent with the stored maintenance intermediate MIP address, it is determined that the loopback detection packet is terminated.
可选地,所述终结模块包括:转发单元,设置为将所述环回检测报文转发至与得到的单播MAC地址一致的MIP地址对应的MIP;终结单元,设置为由所述MIP终结所述环回检测报文。Optionally, the terminating module includes: a forwarding unit, configured to forward the loopback detection message to a MIP corresponding to a MIP address that is consistent with the obtained unicast MAC address; and the terminating unit is configured to be terminated by the MIP The loopback detection packet.
可选地,所述装置还包括:转发模块,设置为在判断结果为否的情况下,根据所述环回检测报文中携带的组播信息转发所述环回检测报文。Optionally, the device further includes: a forwarding module, configured to forward the loopback detection packet according to the multicast information carried in the loopback detection packet if the determination result is negative.
可选地,所述组播信息包括:BIER标签和比特掩码。Optionally, the multicast information includes: a BIER tag and a bit mask.
可选地,所述目的MAC地址为将所述环回检测的目的维护中间点MIP地址中用于指示单播或者组播的比特反转得到的组播MAC地址。Optionally, the destination MAC address is a multicast MAC address obtained by inverting a unicast or multicast bit in the MIP address of the destination maintenance intermediate point of the loopback detection.
根据本发明的另一个实施例,提供了一种环回检测装置,包括:第一端口和处理芯片,其中,所述第一端口与所述处理芯片连接;所述第一端口设置为接收环回检测报文,其中,所述环回检测报文中携带有目的媒体接入控制MAC地址,所述目的MAC地址为组播MAC地址;所述处理芯片设置为根据所述目的MAC地址判断是否终结所述环回检测报文;在判断结果为是的情况下,终结所述环回检测报文。According to another embodiment of the present invention, there is provided a loopback detecting apparatus comprising: a first port and a processing chip, wherein the first port is connected to the processing chip; and the first port is configured as a receiving ring a back detection packet, wherein the loopback detection packet carries a destination media access control MAC address, and the destination MAC address is a multicast MAC address; and the processing chip is configured to determine whether the destination MAC address is used according to the destination MAC address. The loopback detection packet is terminated; if the judgment result is yes, the loopback detection packet is terminated.
可选地,所述装置还包括:存储器,其中,所述存储器与所述处理芯片连接,所述存储器设置为存储配置的MIP的MIP地址。Optionally, the apparatus further comprises: a memory, wherein the memory is connected to the processing chip, and the memory is configured to store a MIP address of the configured MIP.
可选地,所述处理芯片是设置为:将所述目的MAC地址中用于指示单播或者组播的比特反转,得到单播MAC地址;判断得到的单播MAC地址与所述存储器存储的MIP地址是否一致;其中,在判断出得到的单播MAC地址与所述存储的MIP地址一致的情况下,确定终结所述环回检测报文。 Optionally, the processing chip is configured to: invert the bit used to indicate unicast or multicast in the destination MAC address, to obtain a unicast MAC address, and determine the obtained unicast MAC address and the memory storage. Whether the MIP address is consistent; if it is determined that the obtained unicast MAC address is consistent with the stored MIP address, it is determined to terminate the loopback detection message.
可选地,所述装置还包括:一个或者多个MIP,其中,所述一个或者多个MIP与所述处理芯片连接;所述处理芯片是设置为将所述环回检测报文转发至与得到的单播MAC地址一致的MIP地址对应的MIP;指示所述对应的MIP终结所述环回检测报文;所述对应的MIP设置为根据所述处理芯片的指示终结所述环回检测报文。Optionally, the device further includes: one or more MIPs, wherein the one or more MIPs are connected to the processing chip; and the processing chip is configured to forward the loopback detection message to and Obtaining a MIP corresponding to the MIP address with the same unicast MAC address; indicating that the corresponding MIP terminates the loopback detection packet; and the corresponding MIP is configured to terminate the loopback detection report according to the indication of the processing chip Text.
可选地,所述装置还包括:第二端口,其中,所述第二端口与所述处理芯片连接;所述处理芯片还设置为在判断出不终结所述环回检测报文的情况下,根据所述目的MAC地址指示所述第二端口转发所述环回检测报文;所述第二端口设置为根据所述处理芯片的指示发送所述环回检测报文。Optionally, the device further includes: a second port, wherein the second port is connected to the processing chip; and the processing chip is further configured to: when it is determined that the loopback detection message is not terminated And the second port is configured to forward the loopback detection packet according to the destination MAC address, and the second port is configured to send the loopback detection packet according to the indication of the processing chip.
根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:接收环回检测报文,其中,所述环回检测报文中携带有目的媒体接入控制MAC地址,所述目的MAC地址为组播MAC地址;根据所述目的MAC地址判断是否终结所述环回检测报文;在判断结果为是的情况下,终结所述环回检测报文。According to still another embodiment of the present invention, a storage medium is also provided. The storage medium is configured to store a program code for performing the following steps: receiving a loopback detection message, wherein the loopback detection message carries a destination media access control MAC address, and the destination MAC address is multicast The MAC address is determined according to the destination MAC address, and the loopback detection packet is terminated. If the determination result is yes, the loopback detection packet is terminated.
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:将所述目的MAC地址中用于指示单播或者组播的比特反转,得到单播MAC地址;在所述单播MAC地址与存储的维护中间点MIP地址一致的情况下,确定终结所述环回检测报文。Optionally, the storage medium is further configured to store program code for performing the following steps: inverting a bit in the destination MAC address for indicating unicast or multicast, to obtain a unicast MAC address; in the unicast If the MAC address is consistent with the stored maintenance intermediate MIP address, the loopback detection packet is determined to be terminated.
通过本发明实施例,在接收到的环回检测报文中携带的目的MAC地址为组播MAC地址时,根据该组播MAC地址判断是否终结环回检测报文,并且在判断结果为是的情况下,终结环回检测报文。因此,可以实现由MIP终结组播方式的环回检测报文。In the embodiment of the present invention, when the destination MAC address carried in the received loopback detection packet is a multicast MAC address, it is determined whether the loopback detection packet is terminated according to the multicast MAC address, and the determination result is yes. In this case, the loopback detection packet is terminated. Therefore, the loopback detection packet of the multicast mode terminated by the MIP can be implemented.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1是基于MAC转发的环回检测机制的示意图;1 is a schematic diagram of a loopback detection mechanism based on MAC forwarding;
图2是根据本发明实施例的环回检测方法的流程图;2 is a flow chart of a loopback detection method according to an embodiment of the present invention;
图3是根据本发明实施例的一种环回检测装置的结构框图一; 3 is a structural block diagram 1 of a loopback detecting apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的一种环回检测装置的结构框图二;4 is a structural block diagram 2 of a loopback detecting apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的一种环回检测装置的结构框图三;FIG. 5 is a structural block diagram 3 of a loopback detecting apparatus according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的一种环回检测装置的结构框图四;6 is a structural block diagram 4 of a loopback detecting apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的另一种环回检测装置的结构框图一;FIG. 7 is a structural block diagram 1 of another loopback detecting apparatus according to an embodiment of the present invention; FIG.
图8是根据本发明实施例的另一种环回检测装置的结构框图二;FIG. 8 is a structural block diagram 2 of another loopback detecting apparatus according to an embodiment of the present invention; FIG.
图9是根据本发明实施例的另一种环回检测装置的结构框图三;9 is a structural block diagram 3 of another loopback detecting apparatus according to an embodiment of the present invention;
图10是根据本发明实施例的另一种环回检测装置的结构框图四;FIG. 10 is a structural block diagram 4 of another loopback detecting apparatus according to an embodiment of the present invention; FIG.
图11是根据本发明可选实施例的MAC地址格式的示意图;11 is a schematic diagram of a MAC address format in accordance with an alternative embodiment of the present invention;
图12是根据本发明可选实施例的基于BIER转发的环回检测方法的示意图。12 is a schematic diagram of a BIER-based loopback detection method in accordance with an alternative embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将参考附图并结合实施例来详细说明本发明。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
美国专利申请US2015078380(应用于二层网络的位索引显示复制,BitIndexed Explicit Replication For Layer 2Networking)公开了一种基于位索引显示复制(Bit Indexed Explicit Replication,简称为BIER)的以太帧组播方法,该方法为:定义了位于以太帧帧头中的BIER标签(BIER Tag)和比特掩码(Bit Mask)。首先,网络边缘节点会给进入网络的以太帧的帧头中封装上BIER标签和比特掩码,然后,网络节点对于组播以太帧的转发都是基于携带比特掩码的BIER标签。具体来说,网络节点上储存了MAC转发表和BIER转发表两张相互独立的转发表,分别用于单播以太帧的转发和组播以太帧的转发,其中,MAC转发表用于单播以太帧的转发,BIER转发表用于组播以太帧的转发。对于需要转发的以太帧,网络节点会提取以太帧的目的MAC地址和BIER标签。当以太帧的目的MAC地址为单播MAC地址时,忽略BIER标签,根据目的MAC地址查找MAC转发表并根据MAC的转发 机制进行报文转发;当以太帧的目的MAC地址为组播MAC地址时,忽略目的MAC地址,根据BIER标签查找BIER转发表并根据BIER的转发机制进行报文转发。US Patent Application US2015078380 (Bit Indexed Explicit Replication For Layer 2 Networking) discloses an Ethernet frame multicast method based on Bit Indexed Explicit Replication (BIER). The method is: defining a BIER tag and a bit mask in the frame header of the Ethernet frame. First, the network edge node encapsulates the BIER tag and the bit mask into the frame header of the Ethernet frame entering the network. Then, the network node forwards the multicast Ethernet frame based on the BIER tag carrying the bit mask. Specifically, the network node stores two independent forwarding tables of a MAC forwarding table and a BIER forwarding table, which are respectively used for unicast Ethernet frame forwarding and multicast Ethernet frame forwarding, wherein the MAC forwarding table is used for unicasting. The forwarding of the Ethernet frame, the BIER forwarding table is used for forwarding the multicast Ethernet frame. For the Ethernet frame that needs to be forwarded, the network node extracts the destination MAC address of the Ethernet frame and the BIER tag. When the destination MAC address of the Ethernet frame is a unicast MAC address, the BIER tag is ignored, and the MAC forwarding table is searched according to the destination MAC address and forwarded according to the MAC address. The mechanism forwards the packet. When the destination MAC address of the Ethernet frame is the multicast MAC address, the destination MAC address is ignored. The BIER forwarding table is searched according to the BIER label and the packet is forwarded according to the forwarding mechanism of the BIER.
把环回检测功能应用到基于BIER转发的传输路径时,对于MEP到MEP进行环回检测的应用场景,就能够实现;但是对于MEP到MIP进行环回检测的应用场景,传输路径中间节点上配置的MIP无法终结基于BIER转发的环回检测报文。When the loopback detection function is applied to the transmission path based on the BIER forwarding, the application scenario of the loopback detection of the MEP to the MEP can be implemented. However, for the application scenario of the loopback detection of the MEP to the MIP, the intermediate node of the transmission path is configured. The MIP cannot terminate the loopback detection message based on the BIER forwarding.
在本实施例中提供了一种环回检测方法,图2是根据本发明实施例的环回检测方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a loopback detection method is provided. FIG. 2 is a flowchart of a loopback detection method according to an embodiment of the present invention. As shown in FIG. 2, the flow includes the following steps:
步骤S202,接收环回检测报文,其中,环回检测报文中携带有目的媒体接入控制MAC地址,目的MAC地址为组播MAC地址;Step S202: Receive a loopback detection packet, where the loopback detection packet carries a destination media access control MAC address, and the destination MAC address is a multicast MAC address.
步骤S204,根据目的MAC地址判断是否终结环回检测报文;Step S204: Determine, according to the destination MAC address, whether to terminate the loopback detection packet;
步骤S206,在判断结果为是的情况下,终结环回检测报文。In step S206, if the determination result is yes, the loopback detection message is terminated.
通过上述步骤,接收环回检测报文,其中,环回检测报文中携带有目的媒体接入控制MAC地址,目的MAC地址为组播MAC地址;根据目的MAC地址判断是否终结环回检测报文;在判断结果为是的情况下,终结环回检测报文。在接收到的环回检测报文中携带的目的MAC地址为组播MAC地址时,根据该组播MAC地址判断是否终结环回检测报文,并且在判断结果为是的情况下,终结环回检测报文。因此,可以实现由MIP终结组播方式的环回检测报文。The loopback detection packet is received by the loopback detection packet, where the loopback detection packet carries the destination medium access control MAC address, and the destination MAC address is a multicast MAC address; and the destination MAC address is used to determine whether to terminate the loopback detection packet. When the judgment result is yes, the loopback detection message is terminated. When the destination MAC address carried in the received loopback detection packet is a multicast MAC address, it is determined whether the loopback detection packet is terminated according to the multicast MAC address, and if the judgment result is yes, the loopback is terminated. Detect the message. Therefore, the loopback detection packet of the multicast mode terminated by the MIP can be implemented.
可选地,上述步骤的执行主体可以为网络节点,包括:交换机。Optionally, the execution entity of the foregoing step may be a network node, including: a switch.
可选地,在上述步骤S204中,可以通过获取单播MAC地址,比较单播MAC地址与存储的MIP地址的方式判断是否终结环回检测报文。例如:将目的MAC地址中用于指示单播或者组播的比特反转,得到单播MAC地址,在单播MAC地址与存储的维护中间点MIP地址一致的情况下,确定终结环回检测报文。Optionally, in the foregoing step S204, the unicast MAC address is obtained, and the unicast MAC address is compared with the stored MIP address to determine whether to terminate the loopback detection packet. For example, the unicast MAC address is used to indicate the unicast or multicast bit in the destination MAC address. When the unicast MAC address is consistent with the stored maintenance intermediate MIP address, the final loopback detection report is determined. Text.
可选地,在上述步骤S206中,可以由配置了MIP的交换机中MIP地址与单播MAC地址一致的MIP终结环回检测报文。例如:将环回检测报文转 发至与得到的单播MAC地址一致的MIP地址对应的MIP,由MIP终结环回检测报文。Optionally, in the foregoing step S206, the MIP termination loopback detection packet of the MIP address and the unicast MAC address in the switch configured with the MIP may be used. For example: turn the loopback detection message The MIP corresponding to the MIP address that matches the obtained unicast MAC address is detected by the MIP termination loopback packet.
可选地,在上述步骤S204之后,如果不终结环回检测报文,则将环回检测报文继续转发。例如:在判断结果为否的情况下,根据环回检测报文中携带的组播信息转发环回检测报文。Optionally, after the step S204, if the loopback detection packet is not terminated, the loopback detection packet is further forwarded. For example, if the judgment result is negative, the loopback detection packet is forwarded according to the multicast information carried in the loopback detection packet.
可选地,组播信息可以包括:位索引显示复制BIER标签和比特掩码。Optionally, the multicast information may include: a bit index display copy BIER tag and a bit mask.
可选地,目的MAC地址可以包括将环回检测的目的维护中间点MIP地址中用于指示单播或者组播的比特反转得到的组播MAC地址。Optionally, the destination MAC address may include a multicast MAC address used to indicate unicast or multicast bit inversion in the destination maintenance intermediate point MIP address of the loopback detection.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
在本实施例中还提供了一种环回检测装置,该装置用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a loopback detection device is further provided, which is used to implement the above-mentioned embodiments and optional embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图3是根据本发明实施例的一种环回检测装置的结构框图一,如图3所示,该装置包括:FIG. 3 is a structural block diagram 1 of a loopback detecting apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes:
接收模块32,设置为接收环回检测报文,其中,环回检测报文中携带有目的媒体接入控制MAC地址,目的MAC地址为组播MAC地址;The receiving module 32 is configured to receive a loopback detection packet, where the loopback detection packet carries a destination media access control MAC address, and the destination MAC address is a multicast MAC address.
判断模块34,耦合至接收模块32,设置为根据目的MAC地址判断是否终结环回检测报文;The determining module 34 is coupled to the receiving module 32, and configured to determine, according to the destination MAC address, whether to terminate the loopback detection message;
终结模块36,耦合至判断模块34,设置为在判断结果为是的情况下,终结环回检测报文。 The termination module 36 is coupled to the determination module 34 and configured to terminate the loopback detection message if the determination result is yes.
通过上述装置,接收模块接收环回检测报文,其中,环回检测报文中携带有目的媒体接入控制MAC地址,目的MAC地址为组播MAC地址;判断模块根据目的MAC地址判断是否终结环回检测报文;终结模块在判断结果为是的情况下,终结环回检测报文。在接收到的环回检测报文中携带的目的MAC地址为组播MAC地址时,根据该组播MAC地址判断是否终结环回检测报文,并且在判断结果为是的情况下,终结环回检测报文。因此,可以实现由MIP终结组播方式的环回检测报文。The receiving module receives the loopback detection packet, where the loopback detection packet carries the destination medium access control MAC address, and the destination MAC address is a multicast MAC address; the determining module determines whether to terminate the ring according to the destination MAC address. The detection packet is returned. The termination module terminates the loopback detection packet if the judgment result is yes. When the destination MAC address carried in the received loopback detection packet is a multicast MAC address, it is determined whether the loopback detection packet is terminated according to the multicast MAC address, and if the judgment result is yes, the loopback is terminated. Detect the message. Therefore, the loopback detection packet of the multicast mode terminated by the MIP can be implemented.
图4是根据本发明实施例的一种环回检测装置的结构框图二,如图4所示,可选地,该装置除包括图3所示的所有模块外,判断模块34包括:4 is a block diagram 2 of a loopback detection apparatus according to an embodiment of the present invention. As shown in FIG. 4, optionally, the apparatus includes, in addition to all the modules shown in FIG.
反转单元42,设置为将目的MAC地址中用于指示单播或者组播的比特反转,得到单播MAC地址;The inverting unit 42 is configured to invert the bit used to indicate unicast or multicast in the destination MAC address to obtain a unicast MAC address.
确定单元44,耦合至反转单元42,设置为在单播MAC地址与存储的维护中间点MIP地址一致的情况下,确定终结环回检测报文。The determining unit 44 is coupled to the inverting unit 42 and is configured to determine to terminate the loopback detection message if the unicast MAC address is consistent with the stored maintenance intermediate point MIP address.
图5是根据本发明实施例的一种环回检测装置的结构框图三,如图5所示,可选地,该装置除包括图4所示的所有模块外,终结模块36包括:FIG. 5 is a structural block diagram 3 of a loopback detecting apparatus according to an embodiment of the present invention. As shown in FIG. 5, optionally, the apparatus includes, in addition to all the modules shown in FIG.
转发单元52,设置为将环回检测报文转发至与得到的单播MAC地址一致的MIP地址对应的MIP;The forwarding unit 52 is configured to forward the loopback detection packet to the MIP corresponding to the MIP address that is consistent with the obtained unicast MAC address.
终结单元54,耦合至转发单元52,设置为由MIP终结环回检测报文。The terminating unit 54, coupled to the forwarding unit 52, is configured to detect the message by the MIP termination loopback.
图6是根据本发明实施例的一种环回检测装置的结构框图四,如图6所示,可选地,该装置除包括图3所示的所有模块外,该装置还包括:FIG. 6 is a structural block diagram of a loopback detecting apparatus according to an embodiment of the present invention. As shown in FIG. 6, optionally, the apparatus includes, in addition to all the modules shown in FIG.
转发模块62,耦合至判断模块34,设置为在判断结果为否的情况下,根据环回检测报文中携带的组播信息转发环回检测报文。The forwarding module 62 is coupled to the determining module 34, and configured to forward the loopback detection packet according to the multicast information carried in the loopback detection packet if the determination result is negative.
可选地,组播信息可以包括:BIER标签和比特掩码。Optionally, the multicast information may include: a BIER tag and a bit mask.
可选地,目的MAC地址为将环回检测的目的维护中间点MIP地址中用于指示单播或者组播的比特反转得到的组播MAC地址。Optionally, the destination MAC address is a multicast MAC address obtained by using the MIP address of the destination maintenance intermediate point of the loopback detection to indicate unicast or multicast bit reversal.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。 It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors.
在本实施例中还提供了另一种环回检测装置,图7是根据本发明实施例的另一种环回检测装置的结构框图一,如图7所示,该装置包括:Another loopback detecting device is also provided in this embodiment. FIG. 7 is a structural block diagram of another loopback detecting device according to an embodiment of the present invention. As shown in FIG. 7, the device includes:
第一端口72和处理芯片74,其中,第一端口72与处理芯片74连接;第一端口72设置为接收环回检测报文,其中,环回检测报文中携带有目的媒体接入控制MAC地址,目的MAC地址为组播MAC地址;处理芯片74设置为根据目的MAC地址判断是否终结环回检测报文;在判断结果为是的情况下,终结环回检测报文。The first port 72 and the processing chip 74, wherein the first port 72 is connected to the processing chip 74; the first port 72 is configured to receive the loopback detection message, wherein the loopback detection message carries the destination media access control MAC The address and destination MAC address are multicast MAC addresses. The processing chip 74 is configured to determine whether to terminate the loopback detection packet according to the destination MAC address. If the judgment result is yes, the loopback detection packet is terminated.
通过上述装置,第一端口接收环回检测报文,其中,所述环回检测报文中携带有目的媒体接入控制MAC地址,所述目的MAC地址为组播MAC地址;处理芯片根据所述目的MAC地址判断是否终结所述环回检测报文;在判断结果为是的情况下,终结所述环回检测报文。在接收到的环回检测报文中携带的目的MAC地址为组播MAC地址时,根据该组播MAC地址判断是否终结环回检测报文,并且在判断结果为是的情况下,终结所述环回检测报文。因此,可以实现由MIP终结组播方式的环回检测报文。The first port receives the loopback detection packet, where the loopback detection packet carries the destination media access control MAC address, and the destination MAC address is a multicast MAC address; The destination MAC address determines whether the loopback detection packet is terminated. If the judgment result is yes, the loopback detection packet is terminated. When the destination MAC address carried in the received loopback detection packet is a multicast MAC address, it is determined whether the loopback detection packet is terminated according to the multicast MAC address, and if the judgment result is yes, the termination is performed. Loopback detection packet. Therefore, the loopback detection packet of the multicast mode terminated by the MIP can be implemented.
图8是根据本发明实施例的另一种环回检测装置的结构框图二,如图8所示,可选地,该装置还包括:存储器82,其中,存储器82与处理芯片74连接,存储器82设置为存储配置的MIP的MIP地址。FIG. 8 is a block diagram showing the structure of another loopback detecting apparatus according to an embodiment of the present invention. As shown in FIG. 8, the apparatus further includes: a memory 82, wherein the memory 82 is connected to the processing chip 74, and the memory is connected to the processing chip 74. 82 is set to store the MIP address of the configured MIP.
可选地,处理芯片74设置为:将目的MAC地址中用于指示单播或者组播的比特反转,得到单播MAC地址;判断得到的单播MAC地址与存储器存储的MIP地址是否一致;其中,在判断出得到的单播MAC地址与存储的MIP地址一致的情况下,确定终结环回检测报文。Optionally, the processing chip 74 is configured to: invert the bit used to indicate unicast or multicast in the destination MAC address to obtain a unicast MAC address; determine whether the obtained unicast MAC address is consistent with the MIP address stored in the memory; When it is determined that the obtained unicast MAC address is consistent with the stored MIP address, the loopback detection packet is determined to be terminated.
图9是根据本发明实施例的另一种环回检测装置的结构框图三,如图9所示,可选地,该装置还包括:一个或者多个MIP 92,其中,FIG. 9 is a structural block diagram 3 of another loopback detecting apparatus according to an embodiment of the present invention. As shown in FIG. 9, the apparatus further includes: one or more MIPs 92, wherein
一个或者多个MIP 92与处理芯片74连接;处理芯片74设置为将环回检测报文转发至与得到的单播MAC地址一致的MIP地址对应的MIP 92;指示对应的MIP 92终结环回检测报文;对应的MIP 92设置为根据处理芯片的指示终结环回检测报文。 One or more MIPs 92 are connected to the processing chip 74; the processing chip 74 is configured to forward the loopback detection message to the MIP 92 corresponding to the MIP address that is consistent with the obtained unicast MAC address; and indicate the corresponding MIP 92 termination loopback detection. The packet is configured to terminate the loopback detection packet according to the indication of the processing chip.
图10是根据本发明实施例的另一种环回检测装置的结构框图四,如图10所示,可选地,该装置还包括:第二端口102,其中,FIG. 10 is a structural block diagram of another loopback detecting apparatus according to an embodiment of the present invention. As shown in FIG. 10, the apparatus further includes: a second port 102, where
第二端口102与处理芯片74连接;处理芯片74设置为在判断出不终结环回检测报文的情况下,根据目的MAC地址指示第二端口102转发环回检测报文;第二端口102设置为根据处理芯片74的指示发送环回检测报文。The second port 102 is connected to the processing chip 74. The processing chip 74 is configured to instruct the second port 102 to forward the loopback detection packet according to the destination MAC address when it is determined that the loopback detection packet is not terminated; the second port 102 is configured. A loopback detection message is sent according to the indication of the processing chip 74.
下面结合本发明可选实施例进行详细说明。The following is a detailed description in conjunction with an alternative embodiment of the invention.
本发明可选实施例提供了一种基于BIER转发的环回检测方法,以实现传输路径中间节点上配置的MIP终结基于BIER转发的环回检测报文。An alternative embodiment of the present invention provides a loopback detection method based on BIER forwarding, so that the MIP termination configured on the intermediate node of the transmission path terminates the loopback detection packet based on the BIER forwarding.
本发明可选实施例提供的一种基于BIER转发的环回检测方法中,MEP发出环回检测报文,该报文的目的MAC地址为MIP地址中指示“单播或组播”的比特反转后形成的组播MAC地址;配置了MIP的网络节点收到环回检测报文后,把目的MAC地址中指示“单播或组播”的比特反转后形成的单播MAC地址与网络节点上所配置的MIP的地址进行比较,以确定是否终结该报文。In the loopback detection method based on the BIER forwarding method, the MEP sends a loopback detection packet, and the destination MAC address of the packet is the bit of the MIP address indicating "unicast or multicast". The multicast MAC address formed after the transfer; after receiving the loopback detection packet, the network node configured with the MIP unicasts the MAC address and network formed by inverting the unicast or multicast bit in the destination MAC address. The addresses of the MIPs configured on the node are compared to determine whether to terminate the message.
对于不支持BIER转发的传统以太网,网络节点上只存储一张MAC转发表,当环回检测运行于MEP到MIP时,MEP发出的环回检测报文以MIP的MAC地址为目的MAC,而该MAC地址为单播MAC地址,MIP接收到MEP发出的环回检测报文后,通过判断环回检测报文的目的MAC地址为本MIP的MAC地址就可以终结该帧的转发,然后通过判断环回检测报文的以太类型(Ethertype)为0x8902就可以进入标准的OAM报文处理流程。对于支持BIER转发的以太网,网络节点上存储了两张相互独立的MAC转发表和BIER转发表,当环回检测运行于MEP到MIP时,上述方法只能实现对基于MAC转发的MAC转发表的检测,而无法实现对基于BIER转发的BIER转发表的检测,也就无法达到环回检测功能的目的。For a traditional Ethernet that does not support BIER forwarding, only one MAC forwarding table is stored on the network node. When the loopback detection runs on the MEP to the MIP, the loopback detection packet sent by the MEP uses the MAC address of the MIP as the destination MAC address. The MAC address is a unicast MAC address. After receiving the loopback detection packet sent by the MEP, the MIP can terminate the forwarding of the frame by determining the destination MAC address of the loopback detection packet as the MAC address of the MIP. The Ethertype of the loopback detection packet is 0x8902 to enter the standard OAM packet processing flow. For Ethernet supporting BIER forwarding, two independent MAC forwarding tables and BIER forwarding tables are stored on the network node. When loopback detection runs from MEP to MIP, the above method can only implement MAC forwarding table based on MAC forwarding. The detection of the BIER forwarding table based on BIER forwarding cannot be achieved, and the loopback detection function cannot be achieved.
本发明可选实施例提供的一种基于BIER转发的环回检测方法,包括以下步骤:A loopback detection method based on BIER forwarding provided by an optional embodiment of the present invention includes the following steps:
步骤A,网络操作员输入MIP地址,启动MEP到MIP的基于BIER转发的环回检测功能。 In step A, the network operator inputs the MIP address and starts the loopback detection function based on the BIER forwarding of the MEP to the MIP.
MEP和MIP都是网络操作员在网络中配置的维护点,维护点是基于端口配置的,MEP地址就是MEP所在端口的MAC地址,MIP地址就是MIP所在端口的MAC地址,而网络中所有端口的MAC地址都是单播地址。本步骤中网络操作员输入的MIP地址就是一个MIP所在端口的单播MAC地址。Both the MEP and the MIP are maintenance points configured by the network operator on the network. The maintenance point is based on the port configuration. The MEP address is the MAC address of the port where the MEP is located. The MIP address is the MAC address of the port where the MIP is located, and all ports in the network are The MAC addresses are all unicast addresses. The MIP address entered by the network operator in this step is the unicast MAC address of the port where the MIP is located.
在支持BIER的以太网中,MEP发出的环回检测报文转发到MIP的方式有两种,一种是基于MAC的转发,另一种是基于BIER的转发。如果网络操作员需要利用环回检测报文检测传输路径上每个网络节点的MAC转发表,则执行基于MAC转发的环回检测功能;如果网络操作员需要利用环回检测报文检测传输路径上每个网络节点的BIER转发表,则执行基于BIER转发的环回检测功能。本步骤中网络操作员执行的是基于BIER转发的环回检测功能。In the BIER-enabled Ethernet, there are two ways to forward the loopback detection packets sent by the MEP to the MIP. One is MAC-based forwarding and the other is BIER-based forwarding. If the network operator needs to use the loopback detection message to detect the MAC forwarding table of each network node on the transmission path, perform a MAC forwarding-based loopback detection function; if the network operator needs to use the loopback detection packet to detect the transmission path The BIER forwarding table of each network node performs loopback detection based on BIER forwarding. In this step, the network operator performs the loopback detection function based on BIER forwarding.
步骤B,MEP发出环回检测报文,该报文的目的MAC地址为网络操作员输入的MIP地址中指示“单播或组播”的比特反转后形成的组播MAC地址。In step B, the MEP sends a loopback detection packet, where the destination MAC address of the packet is a multicast MAC address formed by the bit unicast or multicast in the MIP address input by the network operator.
图11是根据本发明可选实施例的MAC地址格式的示意图,如图11所示,MAC地址共有48比特,也就是6个字节,其中,第一个字节的最低位用于指示“单播或组播”,可选的,MAC地址第一个字节的最低位为1表明该MAC地址是一个组播地址,MAC地址第一个字节的最低位为0表明该MAC地址是一个单播地址。11 is a schematic diagram of a MAC address format according to an alternative embodiment of the present invention. As shown in FIG. 11, the MAC address has 48 bits, that is, 6 bytes, wherein the lowest bit of the first byte is used to indicate " Unicast or multicast", optionally, the lowest bit of the first byte of the MAC address is 1 indicating that the MAC address is a multicast address, and the lowest bit of the first byte of the MAC address is 0, indicating that the MAC address is A unicast address.
配置了MEP的网络节点会把网络操作员输入的MIP地址中指示“单播或组播”的比特做反转操作,也就是把指示“单播或组播”的比特从表明单播的0反转为表明组播的1,然后把反转后形成的组播MAC地址作为MEP发出的环回检测报文的目的MAC地址。The network node configured with the MEP reverses the bit indicating "unicast or multicast" in the MIP address input by the network operator, that is, the bit indicating "unicast or multicast" is from the unicast indicating 0. The IP address of the loopback detection packet sent by the MEP is used as the destination MAC address of the loopback detection packet sent by the MEP.
步骤C,配置了MIP的网络节点收到环回检测报文后,把目的MAC地址中指示“单播或组播”的比特反转后形成的单播MAC地址与网络节点上所配置的MIP的地址进行比较,以确定是否终结该报文。Step C: After receiving the loopback detection packet, the network node configured with the MIP sets the unicast MAC address formed by inverting the unicast or multicast bit in the destination MAC address and the MIP configured on the network node. The addresses are compared to determine if the message is terminated.
没有配置MIP的网络节点收到MEP发出的环回检测报文后,判断出报文的目的MAC地址为组播MAC地址,于是选择BIER转发表进行基于BIER 的转发,而不会选择MAC转发表进行基于MAC的转发,这样就达到了对传输路径上网络节点的BIER转发表进行检测的目的。After receiving the loopback detection packet sent by the MEP, the network node that has not configured the MIP determines that the destination MAC address of the packet is a multicast MAC address, and then selects the BIER forwarding table for BIER-based forwarding. Forwarding, and will not select the MAC forwarding table for MAC-based forwarding, thus achieving the purpose of detecting the BIER forwarding table of the network node on the transmission path.
配置了MIP的网络节点收到MEP发出的环回检测报文后,判断出报文的目的MAC地址为组播MAC地址,于是把目的MAC地址中指示“单播或组播”的比特反转后形成单播MAC地址,然后把形成的单播MAC地址与网络节点上所配置的MIP的地址进行比较。如果两个地址是一致的,则终结该报文并进行进一步的环回检测报文的处理;如果两个地址不是一致的,则不会终结该报文,而是选择BIER转发表进行基于BIER的转发,这样就达到了对传输路径上网络节点的BIER转发表进行检测的目的。After receiving the loopback detection packet sent by the MEP, the network node configured with the MIP determines that the destination MAC address of the packet is a multicast MAC address, and then inverts the bit indicating "unicast or multicast" in the destination MAC address. A unicast MAC address is then formed, and the resulting unicast MAC address is compared to the address of the MIP configured on the network node. If the two addresses are the same, the message is terminated and further loopback detection is processed. If the two addresses are not consistent, the message is not terminated, but the BIER forwarding table is selected for BIER-based. Forwarding, thus achieving the purpose of detecting the BIER forwarding table of the network node on the transmission path.
图12是根据本发明可选实施例的基于BIER转发的环回检测方法的示意图,如图12所示,网络中包含BIER交换机1、BIER交换机2、BIER交换机3直到BIER交换机16,共16个支持BIER转发的交换机,从BIER交换机1经过BIER交换机2、4、7、11后到达BIER交换机15的基于BIER转发的传输路径为待检测传输路径。网络操作员在待检测传输路径上配置了两个MEP和四个MIP,其中,在BIER交换机1的端口1上配置了MEP1,在BIER交换机15的端口1上配置了MEP2,在BIER交换机4的端口1和端口2上分别配置了MIP1和MIP2,在BIER交换机7的端口1和BIER交换机11的端口1上分别配置了MIP3和MIP4。BIER交换机4的端口1的MAC地址为00-11-22-00-00-41,也即MIP1的地址;BIER交换机4的端口2的MAC地址为00-11-22-00-00-42,也即MIP2的地址;BIER交换机7的端口1的MAC地址为00-11-22-00-00-71,也即MIP3的地址;BIER交换机11的端口1的MAC地址为00-11-22-00-00-B1,也即MIP4的地址。FIG. 12 is a schematic diagram of a BIER-based loopback detection method according to an alternative embodiment of the present invention. As shown in FIG. 12, the network includes a BIER switch 1, a BIER switch 2, a BIER switch 3, and a BIER switch 16, a total of 16 The switch that supports BIER forwarding, the BIER forwarding-based transmission path from the BIER switch 1 through the BIER switches 2, 4, 7, and 11 to the BIER switch 15 is the transmission path to be detected. The network operator configures two MEPs and four MIPs on the transmission path to be detected. MEP1 is configured on port 1 of BIER switch 1, and MEP2 is configured on port 1 of BIER switch 15, on BIER switch 4 MIP1 and MIP2 are configured on port 1 and port 2, respectively, and MIP3 and MIP4 are respectively configured on port 1 of BIER switch 7 and port 1 of BIER switch 11. The MAC address of port 1 of BIER switch 4 is 00-11-22-00-00-41, which is the address of MIP1; the MAC address of port 2 of BIER switch 4 is 00-11-22-00-00-42. That is, the address of MIP2; the MAC address of port 1 of BIER switch 7 is 00-11-22-00-00-71, that is, the address of MIP3; the MAC address of port 1 of BIER switch 11 is 00-11-22- 00-00-B1, which is the address of MIP4.
基于图12给出了以下几个示例来对本可选实施例提供的环回检测方法进行说明和描述。The following examples are given to illustrate and describe the loopback detection method provided by the alternative embodiment based on FIG.
示例一Example one
在本示例中,网络操作员执行从MEP1到MIP1的基于BIER转发的环回检测,主要包括如下步骤:In this example, the network operator performs BIER forwarding-based loopback detection from MEP1 to MIP1, which mainly includes the following steps:
步骤11,网络操作员输入MIP1的地址00-11-22-00-00-41,启动MEP1到MIP1的基于BIER转发的环回检测功能。 In step 11, the network operator inputs the address 00-11-22-00-00-41 of MIP1, and starts the loopback detection function based on BIER forwarding of MEP1 to MIP1.
步骤12,MEP1发出环回检测报文,该报文的目的MAC地址为01-11-22-00-00-41。In step 12, the MEP1 sends a loopback detection packet, and the destination MAC address of the packet is 01-11-22-00-00-41.
环回检测报文的目的MAC地址01-11-22-00-00-41为网络操作员输入的MIP1地址00-11-22-00-00-41中指示“单播或组播”的比特反转后形成的组播MAC地址。The destination MAC address 01-11-22-00-00-41 of the loopback detection packet is the bit indicating "unicast or multicast" in the MIP1 address 00-11-22-00-00-41 input by the network operator. The multicast MAC address formed after the reverse.
由于网络操作员启动的是基于BIER转发的环回检测功能,所以MEP1发出的环回检测报文除了应携带组播MAC地址作为目的MAC地址,还应携带用于BIER转发的BIER标签和比特掩码,其中,比特掩码的取值应指示BIER交换机沿待检测传输路径转发环回检测报文。Because the network operator initiates the loopback detection function based on the BIER forwarding, the loopback detection packet sent by MEP1 should carry the multicast MAC address as the destination MAC address, and should also carry the BIER label and bit mask for BIER forwarding. The code, where the value of the bit mask should indicate that the BIER switch forwards the loopback detection message along the to-be-detected transmission path.
步骤13,BIER交换机2收到MEP1发出的环回检测报文后,判断出报文的目的MAC地址01-11-22-00-00-41为组播地址,于是基于报文携带的BIER标签和比特掩码对报文进行BIER转发,发往它的下一跳BIER交换机4。Step 13: After receiving the loopback detection packet sent by the MEP1, the BIER switch 2 determines that the destination MAC address of the packet is 01-11-22-00-00-41, which is based on the BIER label carried in the packet. And the bit mask forwards the BIER packet to its next hop BIER switch 4.
由于BIER交换机2没有配置任何维护点,所以BIER交换机2收到MEP1发出的环回检测报文且判断出报文的目的MAC地址01-11-22-00-00-41为组播MAC地址后,不会对报文的目的MAC地址进行反转。Since the BIER switch 2 is not configured with any maintenance point, the BIER switch 2 receives the loopback detection packet sent by the MEP1 and determines that the destination MAC address of the packet is 01-11-22-00-00-41. , does not reverse the destination MAC address of the message.
步骤14,BIER交换机4收到环回检测报文后,判断出报文的目的MAC地址01-11-22-00-00-41为组播地址,于是把目的MAC地址01-11-22-00-00-41反转为00-11-22-00-00-41后与BIER交换机4上所配置的MIP1及MIP2的地址进行比较,确定由MIP1终结该环回检测报文。Step 14: After receiving the loopback detection packet, the BIER switch 4 determines that the destination MAC address of the packet is 01-11-22-00-00-41, and then sets the destination MAC address 01-11-22- 00-00-41 is reversed to 00-11-22-00-00-41 and compared with the addresses of MIP1 and MIP2 configured on the BIER switch 4 to determine that the loopback detection message is terminated by MIP1.
由于BIER交换机4配置了MIP,所以BIER交换机4收到BIER交换机2转发过来的环回检测报文且判断出报文的目的MAC地址01-11-22-00-00-41为组播MAC地址后,会把目的MAC地址01-11-22-00-00-41中指示“单播或组播”的比特反转后形成的单播MAC地址00-11-22-00-00-41与BIER交换机4上所配置的MIP的地址一一进行比较,比较的结果是上述反转后形成的单播MAC地址00-11-22-00-00-41与MIP1的地址一致,所以BIER交换机4不再继续转发环回检测报文,环回检测报文将由MIP1终结并进一步地处理。The BIER switch 4 receives the loopback detection packet forwarded by the BIER switch 2 and determines that the destination MAC address of the packet is 01-11-22-00-00-41 as the multicast MAC address. After that, the unicast MAC address 00-11-22-00-00-41 formed by inverting the bit indicating "unicast or multicast" in the destination MAC address 01-11-22-00-00-41 and The addresses of the MIPs configured on the BIER switch 4 are compared one by one. The result of the comparison is that the unicast MAC address 00-11-22-00-00-41 formed after the reverse is the same as the address of the MIP1, so the BIER switch 4 The loopback detection packet will not be forwarded again. The loopback detection packet will be terminated by MIP1 and further processed.
示例二 Example two
在本示例中,网络操作员执行从MEP1到MIP2的基于BIER转发的环回检测,主要包括如下步骤:In this example, the network operator performs BIER forwarding-based loopback detection from MEP1 to MIP2, which mainly includes the following steps:
步骤21,网络操作员输入MIP2的地址00-11-22-00-00-42,启动MEP1到MIP2的基于BIER转发的环回检测功能。In step 21, the network operator inputs the address 00-11-22-00-00-42 of the MIP2, and starts the loopback detection function based on the BIER forwarding of the MEP1 to the MIP2.
步骤22,MEP1发出环回检测报文,该报文的目的MAC地址为01-11-22-00-00-42。In step 22, the MEP1 sends a loopback detection packet, and the destination MAC address of the packet is 01-11-22-00-00-42.
环回检测报文的目的MAC地址01-11-22-00-00-42为网络操作员输入的MIP2地址00-11-22-00-00-42中指示“单播或组播”的比特反转后形成的组播MAC地址。The destination MAC address of the loopback detection packet 01-11-22-00-00-42 is the bit indicating "unicast or multicast" in the MIP2 address 00-11-22-00-00-42 entered by the network operator. The multicast MAC address formed after the reverse.
由于网络操作员启动的是基于BIER转发的环回检测功能,所以MEP1发出的环回检测报文除了应携带组播MAC地址作为目的MAC地址,还应携带用于BIER转发的BIER标签和比特掩码,其中,比特掩码的取值应指示BIER交换机沿待检测传输路径转发环回检测报文。Because the network operator initiates the loopback detection function based on the BIER forwarding, the loopback detection packet sent by MEP1 should carry the multicast MAC address as the destination MAC address, and should also carry the BIER label and bit mask for BIER forwarding. The code, where the value of the bit mask should indicate that the BIER switch forwards the loopback detection message along the to-be-detected transmission path.
步骤23,BIER交换机2收到MEP1发出的环回检测报文后,判断出报文的目的MAC地址01-11-22-00-00-42为组播地址,于是基于报文携带的BIER标签和比特掩码对报文进行BIER转发,发往它的下一跳BIER交换机4。Step 23: After receiving the loopback detection packet sent by the MEP1, the BIER switch 2 determines that the destination MAC address of the packet is 01-11-22-00-00-42, and is based on the BIER label carried in the packet. And the bit mask forwards the BIER packet to its next hop BIER switch 4.
由于BIER交换机2没有配置任何维护点,所以BIER交换机2收到MEP1发出的环回检测报文且判断出报文的目的MAC地址01-11-22-00-00-42为组播MAC地址后,不会对报文的目的MAC地址进行反转。Since the BIER switch 2 is not configured with any maintenance point, the BIER switch 2 receives the loopback detection packet sent by the MEP1 and determines that the destination MAC address of the packet is 01-11-22-00-00-42. , does not reverse the destination MAC address of the message.
步骤24,BIER交换机4收到环回检测报文后,判断出报文的目的MAC地址01-11-22-00-00-42为组播地址,于是把目的MAC地址01-11-22-00-00-42反转为00-11-22-00-00-42后与BIER交换机4上所配置的MIP1及MIP2的地址进行比较,确定由MIP2终结该环回检测报文并把环回检测报文转发到MIP2。Step 24: After receiving the loopback detection packet, the BIER switch 4 determines that the destination MAC address of the packet is 01-11-22-00-00-42, and then sets the destination MAC address 01-11-22- 00-00-42 is reversed to 00-11-22-00-00-42 and compared with the addresses of MIP1 and MIP2 configured on the BIER switch 4 to determine that the loopback detection message is terminated by MIP2 and loopback is performed. The detection packet is forwarded to MIP2.
由于BIER交换机4配置了MIP,所以BIER交换机4收到BIER交换机2转发过来的环回检测报文且判断出报文的目的MAC地址01-11-22-00-00-42为组播MAC地址后,会把目的MAC地址 01-11-22-00-00-42中指示“单播或组播”的比特反转后形成的单播MAC地址00-11-22-00-00-42与BIER交换机4上所配置的MIP的地址一一进行比较,比较的结果是上述反转后形成的单播MAC地址00-11-22-00-00-42与MIP2的地址一致,所以BIER交换机4把环回检测报文继续转发到MIP2,环回检测报文将由MIP2终结并进一步地处理。The BIER switch 4 receives the loopback detection packet forwarded by the BIER switch 2 and determines that the destination MAC address of the packet is 01-11-22-00-00-42 as the multicast MAC address. After that, the destination MAC address will be 01-11-22-00-00-42 indicates the unicast MAC address 00-11-22-00-00-42 formed by the unicast or multicast bit reversed and configured on the BIER switch 4. The MIP addresses are compared one by one. The result of the comparison is that the unicast MAC address 00-11-22-00-00-42 formed after the above reversal is consistent with the address of the MIP2, so the BIER switch 4 continues the loopback detection message. Forwarded to MIP2, the loopback detection message will be terminated by MIP2 and further processed.
示例三Example three
在本示例中,网络操作员执行从MEP1到MIP3的基于BIER转发的环回检测,主要包括如下步骤:In this example, the network operator performs BIER-based forwarding-based loopback detection from MEP1 to MIP3, which mainly includes the following steps:
步骤31,网络操作员输入MIP3的地址00-11-22-00-00-71,启动MEP1到MIP3的基于BIER转发的环回检测功能。In step 31, the network operator inputs the address 00-11-22-00-00-71 of the MIP3, and starts the loopback detection function based on the BIER forwarding of the MEP1 to the MIP3.
步骤32,MEP1发出环回检测报文,该报文的目的MAC地址为01-11-22-00-00-71。In step 32, the MEP1 sends a loopback detection packet, and the destination MAC address of the packet is 01-11-22-00-00-71.
环回检测报文的目的MAC地址01-11-22-00-00-71为网络操作员输入的MIP3地址00-11-22-00-00-71中指示“单播或组播”的比特反转后形成的组播MAC地址。The destination MAC address 01-11-22-00-00-71 of the loopback detection packet is the bit indicating "unicast or multicast" in the MIP3 address 00-11-22-00-00-71 input by the network operator. The multicast MAC address formed after the reverse.
由于网络操作员启动的是基于BIER转发的环回检测功能,所以MEP1发出的环回检测报文除了应携带组播MAC地址作为目的MAC地址,还应携带用于BIER转发的BIER标签和比特掩码,其中,比特掩码的取值应指示BIER交换机沿待检测传输路径转发环回检测报文。Because the network operator initiates the loopback detection function based on the BIER forwarding, the loopback detection packet sent by MEP1 should carry the multicast MAC address as the destination MAC address, and should also carry the BIER label and bit mask for BIER forwarding. The code, where the value of the bit mask should indicate that the BIER switch forwards the loopback detection message along the to-be-detected transmission path.
步骤33,BIER交换机2收到MEP1发出的环回检测报文后,判断出报文的目的MAC地址01-11-22-00-00-71为组播地址,于是基于报文携带的BIER标签和比特掩码对报文进行BIER转发,发往它的下一跳BIER交换机4。Step 33: After receiving the loopback detection packet sent by the MEP1, the BIER switch 2 determines that the destination MAC address of the packet is 01-11-22-00-00-71, and is based on the BIER label carried in the packet. And the bit mask forwards the BIER packet to its next hop BIER switch 4.
由于BIER交换机2没有配置任何维护点,所以BIER交换机2收到MEP1发出的环回检测报文且判断出报文的目的MAC地址01-11-22-00-00-71为组播MAC地址后,不会对报文的目的MAC地址进行反转。Since the BIER switch 2 is not configured with any maintenance point, the BIER switch 2 receives the loopback detection packet sent by the MEP1 and determines that the destination MAC address of the packet is 01-11-22-00-00-71. , does not reverse the destination MAC address of the message.
步骤34,BIER交换机4收到环回检测报文后,判断出报文的目的MAC地址01-11-22-00-00-71为组播地址,于是把目的MAC地址01-11-22-00-00-71 反转为00-11-22-00-00-71后与BIER交换机4上所配置的MIP1及MIP2的地址进行比较,确定没有MIP可以终结该环回检测报文,于是基于报文携带的BIER标签和比特掩码对报文进行BIER转发,发往它的下一跳BIER交换机7。Step 34: After receiving the loopback detection packet, the BIER switch 4 determines that the destination MAC address of the packet is 01-11-22-00-00-71, and then sets the destination MAC address 01-11-22- 00-00-71 After the inversion is 00-11-22-00-00-71, the MIP1 and MIP2 addresses configured on the BIER switch 4 are compared. It is determined that no MIP can terminate the loopback detection packet, so the BIER is carried based on the packet. The tag and the bit mask forward the packet to the BIER switch 7 for its next hop.
由于BIER交换机4配置了MIP,所以BIER交换机4收到BIER交换机2转发过来的环回检测报文且判断出报文的目的MAC地址01-11-22-00-00-71为组播MAC地址后,会把目的MAC地址01-11-22-00-00-71中指示“单播或组播”的比特反转后形成的单播MAC地址00-11-22-00-00-71与BIER交换机4上所配置的MIP的地址一一进行比较,比较的结果是上述反转后形成的单播MAC地址00-11-22-00-00-71与MIP1及MIP2的地址都不一致,所以BIER交换机4会继续把环回检测报文转发到BIER交换机7。The BIER switch 4 receives the loopback detection packet forwarded by the BIER switch 2 and determines that the destination MAC address of the packet is 01-11-22-00-00-71 as the multicast MAC address. After that, the unicast MAC address 00-11-22-00-00-71 formed by inverting the bit indicating "unicast or multicast" in the destination MAC address 01-11-22-00-00-71 and The addresses of the MIPs configured on the BIER switch 4 are compared one by one. The result of the comparison is that the unicast MAC address 00-11-22-00-00-71 formed after the reverse is inconsistent with the addresses of MIP1 and MIP2, so The BIER switch 4 will continue to forward the loopback detection message to the BIER switch 7.
步骤35,BIER交换机7收到环回检测报文后,判断出报文的目的MAC地址01-11-22-00-00-71为组播地址,于是把目的MAC地址01-11-22-00-00-71反转为00-11-22-00-00-71后与BIER交换机7上所配置的MIP3的地址进行比较,确定由MIP3终结该环回检测报文。Step 35: After receiving the loopback detection message, the BIER switch 7 determines that the destination MAC address of the packet is 01-11-22-00-00-71, and then sets the destination MAC address 01-11-22- After the 00-00-71 is reversed to 00-11-22-00-00-71, it is compared with the address of the MIP3 configured on the BIER switch 7, and it is determined that the loopback detection message is terminated by the MIP3.
由于BIER交换机7配置了MIP,所以BIER交换机7收到BIER交换机4转发过来的环回检测报文且判断出报文的目的MAC地址01-11-22-00-00-71为组播MAC地址后,会把目的MAC地址01-11-22-00-00-71中指示“单播或组播”的比特反转后形成的单播MAC地址00-11-22-00-00-71与BIER交换机7上所配置的MIP的地址进行比较,比较的结果是上述反转后形成的单播MAC地址00-11-22-00-00-71与MIP3的地址一致,所以BIER交换机7不再继续转发环回检测报文,环回检测报文将由MIP3终结并进一步地处理。The BIER switch 7 receives the loopback detection packet forwarded by the BIER switch 4 and determines that the destination MAC address of the packet is 01-11-22-00-00-71 as the multicast MAC address. After that, the unicast MAC address 00-11-22-00-00-71 formed by inverting the bit indicating "unicast or multicast" in the destination MAC address 01-11-22-00-00-71 and The address of the MIP configured on the BIER switch 7 is compared. The result of the comparison is that the unicast MAC address 00-11-22-00-00-71 formed after the reverse is the same as the address of the MIP3, so the BIER switch 7 is no longer The loopback detection packet is forwarded, and the loopback detection packet is terminated by MIP3 and further processed.
示例四Example four
在本示例中,网络操作员执行从MEP1到MIP4的基于BIER转发的环回检测,主要包括如下步骤:In this example, the network operator performs BIER forwarding-based loopback detection from MEP1 to MIP4, which mainly includes the following steps:
步骤41,网络操作员输入MIP4的地址00-11-22-00-00-B1,启动MEP1到MIP4的基于BIER转发的环回检测功能。 In step 41, the network operator inputs the address 00-11-22-00-00-B1 of the MIP4, and starts the loopback detection function based on the BIER forwarding of the MEP1 to the MIP4.
步骤42,MEP1发出环回检测报文,该报文的目的MAC地址为01-11-22-00-00-B1。Step 42: The MEP1 sends a loopback detection packet, and the destination MAC address of the packet is 01-11-22-00-00-B1.
环回检测报文的目的MAC地址01-11-22-00-00-B1为网络操作员输入的MIP4地址00-11-22-00-00-B1中指示“单播或组播”的比特反转后形成的组播MAC地址。The destination MAC address 01-11-22-00-00-B1 of the loopback detection packet is the bit indicating "unicast or multicast" in the MIP4 address 00-11-22-00-00-B1 input by the network operator. The multicast MAC address formed after the reverse.
由于网络操作员启动的是基于BIER转发的环回检测功能,所以MEP1发出的环回检测报文除了应携带组播MAC地址作为目的MAC地址,还应携带用于BIER转发的BIER标签和比特掩码,其中,比特掩码的取值应指示BIER交换机沿待检测传输路径转发环回检测报文。Because the network operator initiates the loopback detection function based on the BIER forwarding, the loopback detection packet sent by MEP1 should carry the multicast MAC address as the destination MAC address, and should also carry the BIER label and bit mask for BIER forwarding. The code, where the value of the bit mask should indicate that the BIER switch forwards the loopback detection message along the to-be-detected transmission path.
步骤43,BIER交换机2收到MEP1发出的环回检测报文后,判断出报文的目的MAC地址01-11-22-00-00-B1为组播地址,于是基于报文携带的BIER标签和比特掩码对报文进行BIER转发,发往它的下一跳BIER交换机4。Step 43: After receiving the loopback detection packet sent by the MEP1, the BIER switch 2 determines that the destination MAC address of the packet is 01-11-22-00-00-B1, and is based on the BIER label carried in the packet. And the bit mask forwards the BIER packet to its next hop BIER switch 4.
由于BIER交换机2没有配置任何维护点,所以BIER交换机2收到MEP1发出的环回检测报文且判断出报文的目的MAC地址01-11-22-00-00-B1为组播MAC地址后,不会对报文的目的MAC地址进行反转。Since the BIER switch 2 is not configured with any maintenance point, the BIER switch 2 receives the loopback detection packet sent by the MEP1 and determines that the destination MAC address of the packet is 01-11-22-00-00-B1. , does not reverse the destination MAC address of the message.
步骤44,BIER交换机4收到环回检测报文后,判断出报文的目的MAC地址01-11-22-00-00-B1为组播地址,于是把目的MAC地址01-11-22-00-00-B1反转为00-11-22-00-00-B1后与BIER交换机4上所配置的MIP1及MIP2的地址进行比较,确定没有MIP可以终结该环回检测报文,于是基于报文携带的BIER标签和比特掩码对报文进行BIER转发,发往它的下一跳BIER交换机7。Step 44: After receiving the loopback detection packet, the BIER switch 4 determines that the destination MAC address of the packet is 01-11-22-00-00-B1, and then sets the destination MAC address 01-11-22- 00-00-B1 is reversed to 00-11-22-00-00-B1 and compared with the addresses of MIP1 and MIP2 configured on the BIER switch 4. It is determined that no MIP can terminate the loopback detection message, so it is based on The BIER tag and the bit mask carried in the packet forward the BIER and send it to its next hop BIER switch 7.
由于BIER交换机4配置了MIP,所以BIER交换机4收到BIER交换机2转发过来的环回检测报文且判断出报文的目的MAC地址01-11-22-00-00-B1为组播MAC地址后,会把目的MAC地址01-11-22-00-00-B1中指示“单播或组播”的比特反转后形成的单播MAC地址00-11-22-00-00-B1与BIER交换机4上所配置的MIP的地址一一进行比较,比较的结果是上述反转后形成的单播MAC地址00-11-22-00-00-B1与MIP1及MIP2的地址都不一致,所以BIER交换机4会继续把环回检测报文转发 到BIER交换机7。The BIER switch 4 receives the loopback detection packet forwarded by the BIER switch 2 and determines that the destination MAC address of the packet is 01-11-22-00-00-B1 is the multicast MAC address. After that, the unicast MAC address 00-11-22-00-00-B1 formed by inverting the bit indicating "unicast or multicast" in the destination MAC address 01-11-22-00-00-B1 is The addresses of the MIPs configured on the BIER switch 4 are compared one by one. The result of the comparison is that the unicast MAC address 00-11-22-00-00-B1 formed after the reverse is inconsistent with the addresses of MIP1 and MIP2, so BIER switch 4 will continue to forward loopback detection packets. Go to the BIER switch 7.
步骤45,BIER交换机7收到环回检测报文后,判断出报文的目的MAC地址01-11-22-00-00-B1为组播地址,于是把目的MAC地址01-11-22-00-00-B1反转为00-11-22-00-00-B1后与BIER交换机7上所配置的MIP3的地址进行比较,确定没有MIP可以终结该环回检测报文,于是基于报文携带的BIER标签和比特掩码对报文进行BIER转发,发往它的下一跳BIER交换机11。Step 45: After receiving the loopback detection packet, the BIER switch 7 determines that the destination MAC address of the packet is 01-11-22-00-00-B1, and then sets the destination MAC address 01-11-22- After 00-00-B1 is reversed to 00-11-22-00-00-B1, it is compared with the address of MIP3 configured on the BIER switch 7. It is determined that no MIP can terminate the loopback detection packet, so it is based on the packet. The carried BIER tag and the bit mask forward the BIER packet and send it to its next hop BIER switch 11.
由于BIER交换机7配置了MIP,所以BIER交换机7收到BIER交换机4转发过来的环回检测报文且判断出报文的目的MAC地址01-11-22-00-00-B1为组播MAC地址后,会把目的MAC地址01-11-22-00-00-B1中指示“单播或组播”的比特反转后形成的单播MAC地址00-11-22-00-00-B1与BIER交换机7上所配置的MIP的地址进行比较,比较的结果是上述反转后形成的单播MAC地址00-11-22-00-00-B1与MIP3的地址不一致,所以BIER交换机7会继续把环回检测报文转发到BIER交换机11。The BIER switch 7 receives the loopback detection packet forwarded by the BIER switch 4 and determines that the destination MAC address of the packet is 01-11-22-00-00-B1 is the multicast MAC address. After that, the unicast MAC address 00-11-22-00-00-B1 formed by inverting the bit indicating "unicast or multicast" in the destination MAC address 01-11-22-00-00-B1 is The address of the MIP configured on the BIER switch 7 is compared. The result of the comparison is that the unicast MAC address 00-11-22-00-00-B1 formed after the reverse is inconsistent with the address of the MIP3, so the BIER switch 7 will continue. The loopback detection packet is forwarded to the BIER switch 11.
步骤46,BIER交换机11收到环回检测报文后,判断出报文的目的MAC地址01-11-22-00-00-B1为组播地址,于是把目的MAC地址01-11-22-00-00-B1反转为00-11-22-00-00-B1后与BIER交换机11上所配置的MIP4的地址进行比较,确定由MIP4终结该环回检测报文。Step 46: After receiving the loopback detection packet, the BIER switch 11 determines that the destination MAC address of the packet is 01-11-22-00-00-B1, and then sets the destination MAC address 01-11-22- 00-00-B1 is inverted to 00-11-22-00-00-B1 and compared with the address of MIP4 configured on the BIER switch 11, and it is determined that the loopback detection message is terminated by MIP4.
由于BIER交换机11配置了MIP,所以BIER交换机11收到BIER交换机7转发过来的环回检测报文且判断出报文的目的MAC地址01-11-22-00-00-B1为组播MAC地址后,会把目的MAC地址01-11-22-00-00-B1中指示“单播或组播”的比特反转后形成的单播MAC地址00-11-22-00-00-B1与BIER交换机11上所配置的MIP的地址进行比较,比较的结果是上述反转后形成的单播MAC地址00-11-22-00-00-B1与MIP4的地址一致,所以BIER交换机11不再继续转发环回检测报文,环回检测报文将由MIP4终结并进一步地处理。The BIER switch 11 receives the loopback detection packet forwarded by the BIER switch 7 and determines that the destination MAC address of the packet is 01-11-22-00-00-B1 is the multicast MAC address. After that, the unicast MAC address 00-11-22-00-00-B1 formed by inverting the bit indicating "unicast or multicast" in the destination MAC address 01-11-22-00-00-B1 is The address of the MIP configured on the BIER switch 11 is compared. The result of the comparison is that the unicast MAC address 00-11-22-00-00-B1 formed after the reverse is the same as the address of the MIP4, so the BIER switch 11 is no longer The loopback detection packet is forwarded, and the loopback detection packet is terminated by MIP4 and further processed.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码: Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,接收环回检测报文,其中,环回检测报文中携带有目的媒体接入控制MAC地址,目的MAC地址为组播MAC地址;S1: Receive a loopback detection packet, where the loopback detection packet carries a destination media access control MAC address, and the destination MAC address is a multicast MAC address.
S2,根据目的MAC地址判断是否终结环回检测报文;S2, determining, according to the destination MAC address, whether to terminate the loopback detection packet;
S3,在判断结果为是的情况下,终结环回检测报文。S3. If the judgment result is yes, the loopback detection message is terminated.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
S1,将所述目的MAC地址中用于指示单播或者组播的比特反转,得到单播MAC地址;S1, the bit in the destination MAC address used to indicate unicast or multicast is reversed to obtain a unicast MAC address.
S2,在所述单播MAC地址与存储的维护中间点MIP地址一致的情况下,确定终结所述环回检测报文。S2. If the unicast MAC address is consistent with the stored maintenance intermediate MIP address, determine to terminate the loopback detection packet.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理单元的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域技术人员公知的是, 通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and functional blocks/units of the methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical units; for example, one physical component may have multiple functions, or one function or step may be composed of several physical The components work together. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules, or other data. , removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer. Moreover, it is well known to those skilled in the art that Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media.
以上所述仅为本发明的可选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only an alternative embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
上述实施例实现了由MIP终结组播方式的环回检测报文。 The above embodiment implements a loopback detection packet in which the MIP terminates the multicast mode.

Claims (17)

  1. 一种环回检测方法,包括:A loopback detection method includes:
    接收环回检测报文,其中,所述环回检测报文中携带有目的媒体接入控制MAC地址,所述目的MAC地址为组播MAC地址(S202);Receiving a loopback detection message, where the loopback detection message carries a destination media access control MAC address, and the destination MAC address is a multicast MAC address (S202);
    根据所述目的MAC地址判断是否终结所述环回检测报文(S204);Determining whether to terminate the loopback detection message according to the destination MAC address (S204);
    在判断结果为是的情况下,终结所述环回检测报文(S206)。If the result of the determination is YES, the loopback detection message is terminated (S206).
  2. 根据权利要求1所述的方法,其中,根据所述目的MAC地址判断是否终结所述环回检测报文(S204)包括:The method of claim 1, wherein determining whether to terminate the loopback detection message according to the destination MAC address (S204) comprises:
    将所述目的MAC地址中用于指示单播或者组播的比特反转,得到单播MAC地址;Decoding the unicast or multicast bit in the destination MAC address to obtain a unicast MAC address;
    在所述单播MAC地址与存储的维护中间点MIP地址一致的情况下,确定终结所述环回检测报文。When the unicast MAC address is consistent with the stored maintenance intermediate MIP address, it is determined that the loopback detection message is terminated.
  3. 根据权利要求2所述的方法,其中,终结所述环回检测报文(S206)包括:The method of claim 2, wherein terminating the loopback detection message (S206) comprises:
    将所述环回检测报文转发至与得到的单播MAC地址一致的MIP地址对应的MIP;Forwarding the loopback detection packet to a MIP corresponding to the MIP address that is consistent with the obtained unicast MAC address;
    由所述MIP终结所述环回检测报文。The loopback detection packet is terminated by the MIP.
  4. 根据权利要求1所述的方法,所述方法还包括:The method of claim 1 further comprising:
    在根据所述目的MAC地址判断是否终结所述环回检测报文之后,在判断结果为否的情况下,根据所述环回检测报文中携带的组播信息转发所述环回检测报文。After the loopback detection packet is terminated according to the destination MAC address, if the loopback detection packet is terminated, the loopback detection packet is forwarded according to the multicast information carried in the loopback detection packet. .
  5. 根据权利要求4所述的方法,其中,所述组播信息包括:位索引显示复制BIER标签和比特掩码。The method of claim 4 wherein said multicast information comprises: a bit index display copy BIER tag and a bit mask.
  6. 根据权利要求1至5中任一项所述的方法,其中,所述目的MAC地址为将所述环回检测的目的维护中间点MIP地址中用于指示单播或者组播的比特反转得到的组播MAC地址。The method according to any one of claims 1 to 5, wherein the destination MAC address is used to indicate a unicast or multicast bit inversion in a destination maintenance intermediate point MIP address of the loopback detection. Multicast MAC address.
  7. 一种环回检测装置,包括: A loopback detecting device comprising:
    接收模块(32),设置为接收环回检测报文,其中,所述环回检测报文中携带有目的媒体接入控制MAC地址,所述目的MAC地址为组播MAC地址;The receiving module (32) is configured to receive a loopback detection packet, where the loopback detection packet carries a destination media access control MAC address, and the destination MAC address is a multicast MAC address;
    判断模块(34),设置为根据所述目的MAC地址判断是否终结所述环回检测报文;The determining module (34) is configured to determine, according to the destination MAC address, whether to terminate the loopback detection message;
    终结模块(36),设置为在判断结果为是的情况下,终结所述环回检测报文。The termination module (36) is configured to terminate the loopback detection message if the determination result is yes.
  8. 根据权利要求7所述的装置,其中,所述判断模块(34)包括:The apparatus of claim 7 wherein said determining module (34) comprises:
    反转单元(42),设置为将所述目的MAC地址中用于指示单播或者组播的比特反转,得到单播MAC地址;The inverting unit (42) is configured to invert the bit used to indicate unicast or multicast in the destination MAC address to obtain a unicast MAC address.
    确定单元(44),设置为在所述单播MAC地址与存储的维护中间点MIP地址一致的情况下,确定终结所述环回检测报文。The determining unit (44) is configured to determine to terminate the loopback detection message if the unicast MAC address is consistent with the stored maintenance intermediate point MIP address.
  9. 根据权利要求8所述的装置,其中,所述终结模块(36)包括:The apparatus of claim 8 wherein said terminating module (36) comprises:
    转发单元(52),设置为将所述环回检测报文转发至与得到的单播MAC地址一致的MIP地址对应的MIP;The forwarding unit (52) is configured to forward the loopback detection packet to a MIP corresponding to the MIP address that is consistent with the obtained unicast MAC address;
    终结单元(54),设置为由所述MIP终结所述环回检测报文。The terminating unit (54) is configured to terminate the loopback detection message by the MIP.
  10. 根据权利要求7所述的装置,所述装置还包括:The apparatus of claim 7 further comprising:
    转发模块(62),设置为在判断结果为否的情况下,根据所述环回检测报文中携带的组播信息转发所述环回检测报文。The forwarding module (62) is configured to forward the loopback detection packet according to the multicast information carried in the loopback detection packet if the determination result is negative.
  11. 根据权利要求10所述的装置,其中,所述组播信息包括:位索引显示复制BIER标签和比特掩码。The apparatus of claim 10, wherein the multicast information comprises: a bit index display copy BIER tag and a bit mask.
  12. 根据权利要求7至11中任一项所述的装置,其中,所述目的MAC地址为将所述环回检测的目的维护中间点MIP地址中用于指示单播或者组播的比特反转得到的组播MAC地址。The apparatus according to any one of claims 7 to 11, wherein the destination MAC address is used to indicate a unicast or multicast bit inversion in a destination maintenance intermediate point MIP address of the loopback detection. Multicast MAC address.
  13. 一种环回检测装置,包括:第一端口(72)和处理芯片(74),其中,A loopback detecting device includes: a first port (72) and a processing chip (74), wherein
    所述第一端口(72)与所述处理芯片(74)连接;The first port (72) is connected to the processing chip (74);
    所述第一端口(72)设置为接收环回检测报文,其中,所述环回检测报 文中携带有目的媒体接入控制MAC地址,所述目的MAC地址为组播MAC地址;The first port (72) is configured to receive a loopback detection message, where the loopback detection report The packet carries a destination media access control MAC address, and the destination MAC address is a multicast MAC address;
    所述处理芯片(74)设置为根据所述目的MAC地址判断是否终结所述环回检测报文;在判断结果为是的情况下,终结所述环回检测报文。The processing chip (74) is configured to determine, according to the destination MAC address, whether to terminate the loopback detection packet; if the determination result is yes, terminate the loopback detection packet.
  14. 根据权利要求13所述的装置,所述装置还包括:The apparatus of claim 13 further comprising:
    存储器(82),其中,所述存储器(82)与所述处理芯片(74)连接,所述存储器(82)设置为存储配置的维护中间点MIP的MIP地址。A memory (82), wherein the memory (82) is coupled to the processing chip (74), the memory (82) being configured to store a MIP address of a configured maintenance intermediate point MIP.
  15. 根据权利要求14所述的装置,其中,The device according to claim 14, wherein
    所述处理芯片(74)是设置为:将所述目的MAC地址中用于指示单播或者组播的比特反转,得到单播MAC地址;判断得到的单播MAC地址与所述存储器存储的MIP地址是否一致;其中,在判断出得到的单播MAC地址与所述存储的MIP地址一致的情况下,确定终结所述环回检测报文。The processing chip (74) is configured to: invert the bit used to indicate unicast or multicast in the destination MAC address, to obtain a unicast MAC address; and determine the obtained unicast MAC address and the memory storage. Whether the MIP address is consistent; if the obtained unicast MAC address is consistent with the stored MIP address, it is determined that the loopback detection message is terminated.
  16. 根据权利要求15所述的装置,所述装置还包括:一个或者多个MIP(92),其中,The apparatus of claim 15 further comprising: one or more MIPs (92), wherein
    所述一个或者多个MIP(92)与所述处理芯片(74)连接;The one or more MIPs (92) are connected to the processing chip (74);
    所述处理芯片(74)是设置为将所述环回检测报文转发至与得到的单播MAC地址一致的MIP地址对应的MIP(92);指示所述对应的MIP(92)终结所述环回检测报文;The processing chip (74) is configured to forward the loopback detection message to a MIP corresponding to a MIP address that is consistent with the obtained unicast MAC address (92); and instruct the corresponding MIP (92) to terminate the Loopback detection message;
    所述对应的MIP(92)设置为根据所述处理芯片(74)的指示终结所述环回检测报文。The corresponding MIP (92) is configured to terminate the loopback detection message according to the indication of the processing chip (74).
  17. 根据权利要求13至16中任一项所述的装置,所述装置还包括:第二端口(102),其中,Apparatus according to any one of claims 13 to 16, further comprising: a second port (102), wherein
    所述第二端口(102)与所述处理芯片(74)连接;The second port (102) is connected to the processing chip (74);
    所述处理芯片(74)还设置为在判断出不终结所述环回检测报文的情况下,根据所述目的MAC地址指示所述第二端口(102)转发所述环回检测报文;The processing chip (74) is further configured to: when it is determined that the loopback detection packet is not to be terminated, instruct the second port (102) to forward the loopback detection packet according to the destination MAC address;
    所述第二端口(102)设置为根据所述处理芯片的指示发送所述环回检测报文。 The second port (102) is configured to send the loopback detection message according to an indication of the processing chip.
PCT/CN2017/095399 2016-08-01 2017-08-01 Loopback detection method and apparatus WO2018024189A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610619498.9A CN107682214B (en) 2016-08-01 2016-08-01 Loop detection method and device
CN201610619498.9 2016-08-01

Publications (1)

Publication Number Publication Date
WO2018024189A1 true WO2018024189A1 (en) 2018-02-08

Family

ID=61073719

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/095399 WO2018024189A1 (en) 2016-08-01 2017-08-01 Loopback detection method and apparatus

Country Status (2)

Country Link
CN (1) CN107682214B (en)
WO (1) WO2018024189A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114336972A (en) * 2021-12-30 2022-04-12 广东电网有限责任公司 Overhauling determination method and device for telecontrol device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395319B (en) * 2021-04-26 2022-09-16 国网江西省电力有限公司经济技术研究院 Method, system, electronic device and storage medium for sensing network fault

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179479A (en) * 2006-11-09 2008-05-14 华为技术有限公司 Method, system and node for transmitting operation management and maintenance packet of ethernet
US20150358773A1 (en) * 2014-06-04 2015-12-10 International Mobile Iot Corp Location-based network system and location-based communication method
CN105306357A (en) * 2015-11-10 2016-02-03 上海斐讯数据通信技术有限公司 System and method for detecting loopback
US20160173296A1 (en) * 2014-12-12 2016-06-16 Fujitsu Limited Network monitoring method, relay device, and network monitoring system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9036636B1 (en) * 2012-02-06 2015-05-19 Big Switch Networks, Inc. System and methods for managing network packet broadcasting
CN104113442A (en) * 2013-04-18 2014-10-22 上海斐讯数据通信技术有限公司 Ethernet loop detection system and method
CN105743716B (en) * 2016-04-21 2018-10-16 大连理工大学 A kind of dynamic programming method in train Ethernet path
CN106789626A (en) * 2017-01-12 2017-05-31 深圳市万网博通科技有限公司 Loop self-inspection self-healing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179479A (en) * 2006-11-09 2008-05-14 华为技术有限公司 Method, system and node for transmitting operation management and maintenance packet of ethernet
US20150358773A1 (en) * 2014-06-04 2015-12-10 International Mobile Iot Corp Location-based network system and location-based communication method
US20160173296A1 (en) * 2014-12-12 2016-06-16 Fujitsu Limited Network monitoring method, relay device, and network monitoring system
CN105306357A (en) * 2015-11-10 2016-02-03 上海斐讯数据通信技术有限公司 System and method for detecting loopback

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114336972A (en) * 2021-12-30 2022-04-12 广东电网有限责任公司 Overhauling determination method and device for telecontrol device

Also Published As

Publication number Publication date
CN107682214A (en) 2018-02-09
CN107682214B (en) 2019-05-07

Similar Documents

Publication Publication Date Title
US10693765B2 (en) Failure protection for traffic-engineered bit indexed explicit replication
US11611509B2 (en) Communication method, communications device, and communications system
US11652735B2 (en) Multicast data packet processing method, and apparatus
WO2020073685A1 (en) Forwarding path determining method, apparatus and system, computer device, and storage medium
CA3104756C (en) Loop avoidance communications method, device, and system
EP2571209A1 (en) Multicast packet transmission method, related device and system
US20220150155A1 (en) Method of establishing bidirectional forwarding detection session based on bier, and bfir, bfer, system and storage medium
US11711243B2 (en) Packet processing method and gateway device
US9438510B2 (en) Calculating a route
CN102647312B (en) A kind of detection method of whole net multicast topology and device
TWI492575B (en) Fast lsp alert mechanism
KR20220062347A (en) Reverse path forwarding RPF inspection method and apparatus
CN101729351B (en) Method and system for finding topology information, query request device and awaiting query device
WO2018024189A1 (en) Loopback detection method and apparatus
WO2018040940A1 (en) Two-layer network, and loopback detection method of two-layer network
EP2432160A1 (en) Method, device and system for measuring network performance
WO2017219868A1 (en) Arp entry processing method and apparatus
EP2429137A1 (en) Method, system and network device for node configuration and path detection
US20160156480A1 (en) Switching devices
CN105530189B (en) Method for forwarding message in TRILL network and routing bridge
EP3806386B1 (en) Multicast fast switching method, device, apparatus, and storage medium
WO2016145782A1 (en) Method and system for reducing pim protocol dr change
US20240323115A1 (en) Loop Avoidance Communications Method, Device, and System
WO2024067367A1 (en) Method and apparatus for determining node

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

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

Country of ref document: EP

Kind code of ref document: A1