WO2018040940A1 - Two-layer network, and loopback detection method of two-layer network - Google Patents

Two-layer network, and loopback detection method of two-layer network Download PDF

Info

Publication number
WO2018040940A1
WO2018040940A1 PCT/CN2017/097923 CN2017097923W WO2018040940A1 WO 2018040940 A1 WO2018040940 A1 WO 2018040940A1 CN 2017097923 W CN2017097923 W CN 2017097923W WO 2018040940 A1 WO2018040940 A1 WO 2018040940A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
mip
bier
forwarding table
network
Prior art date
Application number
PCT/CN2017/097923
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 WO2018040940A1 publication Critical patent/WO2018040940A1/en

Links

Images

Classifications

    • 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/66Layer 2 routing, e.g. in Ethernet based MAN's

Definitions

  • the present disclosure relates to the field of communications technologies, and in particular, to a loopback detection method for a Layer 2 network and a Layer 2 network, which is applicable to a scenario in which a Bit Indexed Explicit Replication (BIER) is applied to a Layer 2 network.
  • the Layer 2 network is a data link layer network.
  • the IEEE 802.1ag standard defines an OAM functional logical entity in Ethernet, which includes a Maintenance End Point (MEP) located at both ends of the Ethernet transmission path, and a maintenance intermediate point located in the middle of the Ethernet transmission path (Maintenance Intermediate) Point, referred to as MIP; maintenance endpoints and maintenance intermediate points are collectively referred to as Maintenance Points (MP); maintenance points in Ethernet are created based on ports of network nodes, and port MAC (Media Access Control, media access)
  • the control address is the MAC address based on the maintenance point created by 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, in order to detect the whole or A failure of an Ethernet transmission path in which the failure of the Ethernet transmission path 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 in the related art.
  • one switch 1 and one switch 4 are created.
  • MEP and 1 MIP, Switch 2 and Switch 3 each have two MIPs.
  • the MEP created by Switch 1 is MEP1
  • the MIP created by Switch 1 is MIP1
  • the MEP created by Switch 4 is MEP2
  • the MIP created by Switch 4 is MIP.
  • MIP6 the two MIPs created by switch 2 are MIP2 and MIP3 respectively.
  • the two MIPs created by switch 3 are represented as MIP4 and MIP5 respectively.
  • an example loopback detection process 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 detects the packet along the loopback.
  • the transmission path ie, the MAC-based forwarding path
  • Step 2 After receiving the loopback detection packet and detecting the error, the MIP5 sends a loopback response packet to the MEP1 that sends the packet along the loopback response packet transmission path.
  • 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.
  • U.S. Patent Application No. US2015078380 (Bit Indexed Explicit Replication For Layer 2 Networking) discloses a method for implementing a BIER Layer 2 network, which defines: a BIER tag located in an Ethernet frame header. (BIER Tag) and Bit Mask.
  • BIER Tag BIER Tag
  • Bit Mask Bit Mask
  • 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 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 MAC forwarding table is searched according to the destination MAC address, and the packet forwarding is performed according to the MAC forwarding mechanism.
  • the destination MAC address of the Ethernet frame is the multicast MAC address. Ignore the destination MAC address, look up the BIER forwarding table according to the BIER tag, and forward the packet according to the BIER forwarding mechanism.
  • the embodiments of the present disclosure provide a loopback detection method for a Layer 2 network and a Layer 2 network, which is used to solve the application scenario of loopback detection for the MEP to the MIP.
  • An embodiment of the present disclosure provides a loopback detection method for a Layer 2 network, where the method includes:
  • the MIP address for detecting the BIER forwarding table is sent to all the other network nodes in the Layer 2 network. MIP address used to detect the MAC forwarding table;
  • the MEP After the loopback detection function is enabled on the MEP to the target MIP, the MEP sends a loopback detection packet carrying the target MIP address.
  • the network node After receiving the loopback detection message, the network node does not configure the MIP on the network node, or the configured MIP address is inconsistent with the target MIP address, according to the target.
  • the MIP address performs forwarding based on the BIER forwarding table or forwarding based on the MAC forwarding table on the loopback detection message.
  • the method further includes: after receiving the loopback detection message, when the address of the MIP configured by the network node is consistent with the target MIP address, the network node of the Layer 2 network Ending the loopback detection message.
  • the method further includes:
  • any one of the Layer 2 networks When receiving the MIP address for detecting the BIER forwarding table, any one of the Layer 2 networks adds the received MIP address to the address filtering table, and configures the received MIP address to be based on the BIER forwarding table.
  • Forwarding MIP address when receiving the MIP address for detecting the MAC forwarding table, any one of the Layer 2 networks adds the received MIP address to the address filtering table, and configures the received MIP address. MIP address forwarded based on the MAC forwarding table;
  • the loopback detection packet is forwarded according to the BIER forwarding table according to the target MIP address.
  • forwarding based on the MAC forwarding table including:
  • the network node selects the BIER forwarding table based forwarding or the MAC forwarding table based forwarding by comparing the target MIP address with the MIP address in the address filtering table.
  • the method further includes: configuring the MIP located on the same loopback detection packet transmission path as the MIP for detecting the BIER forwarding table or the MIP for detecting the MAC forwarding table.
  • the address of the target MIP is a unicast MAC address of a port where the target MIP is located.
  • the embodiment of the present disclosure further provides a Layer 2 network, where any one of the Layer 2 networks is used to configure a MIP for detecting a BIER forwarding table or a MIP for detecting a MAC forwarding table. All other network nodes in the layer network send a MIP address for detecting the BIER forwarding table or a MIP address for detecting the MAC forwarding table;
  • the MEP in the Layer 2 network is configured to send a loopback detection packet carrying the target MIP address after the loopback detection function of the MEP to the target MIP is started.
  • the network node of the Layer 2 network is configured to: after receiving the loopback detection message, if the MIP address is not configured on the network node, or the configured MIP address is inconsistent with the target MIP address, The target MIP address performs forwarding based on the BIER forwarding table or forwarding based on the MAC forwarding table on the loopback detection packet.
  • any one of the network nodes of the Layer 2 network is further configured to: after receiving the loopback detection packet, when the address of the MIP configured by the network node is consistent with the target MIP address, The loopback detection packet.
  • any one of the network nodes in the Layer 2 network is further configured to: when receiving the MIP address for detecting the BIER forwarding table, add the received MIP address to the address filtering table, and receive the received The MIP address is configured to be based on the MIP address forwarded by the BIER forwarding table; when receiving the MIP address for detecting the MAC forwarding table, the received MIP address is added to the address filtering table, and the received MIP address is configured to be based on the MAC address.
  • the MIP address forwarded by the forwarding table when receiving the MIP address for detecting the BIER forwarding table, add the received MIP address to the address filtering table, and receive the received The MIP address is configured to be based on the MIP address.
  • any one of the network nodes of the Layer 2 network is configured to perform the BIER-based selection of the loopback detection message by comparing the target MIP address with the MIP address in the address filtering table of the local network node. Published forwarding or forwarding based on MAC forwarding table.
  • the MIP located on the same loopback detection packet transmission path is configured as the MIP for detecting the BIER forwarding table or the MIP for detecting the MAC forwarding table.
  • the address of the target MIP is a unicast MAC address of a port where the target MIP is located.
  • any one of the network nodes in the Layer 2 network is configured to detect a bit index to explicitly copy the maintenance intermediate point MIP of the BIER forwarding table or use After detecting the MIP of the medium access control MAC forwarding table, sending a MIP address for detecting the BIER forwarding table or a MIP address for detecting the MAC forwarding table to all the remaining network nodes in the Layer 2 network; starting the maintenance endpoint MEP to After the loopback detection function of the target MIP, the MEP sends a loopback detection packet carrying the target MIP address; after receiving the loopback detection packet, any one of the network nodes in the Layer 2 network is in the network node.
  • the loopback detection packet is forwarded based on the BIER forwarding table or forwarded based on the MAC forwarding table according to the target MIP address;
  • the application scenario of the loopback detection of the MEP to the MIP can implement loopback detection for the MAC forwarding table on the transmission path to be detected, and implement the detection for the transmission path to be detected. Loopback detection of the BIER forwarding table on the trail.
  • FIG. 1 is a schematic diagram of a loopback detection mechanism based on MAC forwarding in the related art
  • FIG. 2 is a schematic flowchart of a loopback detection method of a Layer 2 network according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of an implementation manner of loopback detection in a BIER Layer 2 network according to Embodiment 1 of the present disclosure
  • FIG. 4 is a schematic diagram of an implementation manner of loopback detection in a BIER Layer 2 network according to Embodiment 2 of the present disclosure
  • FIG. 5 is a schematic diagram of an implementation manner of loopback detection in a BIER Layer 2 network according to Embodiment 3 of the present disclosure
  • FIG. 6 is a schematic diagram of an implementation manner of loopback detection in a BIER Layer 2 network according to Embodiment 4 of the present disclosure.
  • FIG. 2 is a schematic flowchart of a loopback detection method for a Layer 2 network according to an embodiment of the present disclosure. As shown in FIG. 2, the process includes:
  • Step 201 Any one of the network nodes in the Layer 2 network is configured to detect the MIP of the BIER forwarding table or the MIP used to detect the MAC forwarding table, and then send the BIER forwarding table to all the remaining network nodes in the Layer 2 network. MIP address or MIP address used to detect the MAC forwarding table.
  • the MIP address for detecting the BIER forwarding table is advertised to all the other network nodes in the Layer 2 network; Any one of the network nodes in the network is configured with a MIP for detecting the MAC forwarding table, and then advertises the MIP address for detecting the MAC forwarding table to all other network nodes in the Layer 2 network.
  • a MIP cannot be configured as the MIP for detecting the BIER forwarding table and the MIP for detecting the MAC forwarding table, and the MIPs located on the same loopback detection packet can be configured at the same time.
  • any one of the network nodes in the Layer 2 network adds the received MIP address to the address filtering table, and configures the received MIP address as based on The MIER address forwarded by the BIER forwarding table;
  • any one of the network nodes in the Layer 2 network adds the received MIP address to the address filtering table, and receives the received The MIP address is configured to be based on the MIP address forwarded by the MAC forwarding table.
  • the address filtering table is used to select BIER forwarding or MAC forwarding for a specific packet destination MAC address. Specifically, the packet carrying the specific packet destination MAC address is classified into BIER forwarding based on the BIER label in the packet. A MAC forwarding table that is forwarded based on the destination MAC address of the packet; in the related art, the packet carrying the destination MAC address of the unicast packet is classified into a MAC forwarding table, and the packet carrying the destination MAC address of the multicast packet is Assigned to the BIER forwarding table.
  • the network node receives the MIP if it receives the MIP address advertised by other network nodes for detecting the BIER forwarding table.
  • the address is added to the address filtering table, and the MIP address is configured as a MIP address forwarded based on the BIER forwarding table; if the network node receives the MIP address advertised by the other network node for detecting the MAC forwarding table, the MIP address is added to the MIP address.
  • Step 202 After the loopback detection function of the maintenance terminal MEP to the target MIP is started, the MEP sends a loopback detection packet carrying the target MIP address.
  • the MEP sends a loopback detection packet whose destination MAC address is the target MIP address input by the network operator. .
  • the MEP and the target MIP in this step are the maintenance points configured by the network operator in 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 address of the target MIP is the port where the MIP is located.
  • MAC address, and the MAC address of all ports in the network is a unicast address.
  • the address of the target MIP input by the network operator is the unicast MAC address of the port where the MIP is located; that is, the address of the target MIP is the unicast MAC address of the port where the target MIP is located.
  • Step 203 After receiving the loopback detection message, the network node does not configure the MIP, or the configured MIP address is inconsistent with the target MIP address.
  • the target MIP address performs forwarding based on the BIER forwarding table or forwarding based on the MAC forwarding table on the loopback detection packet.
  • the network node compares the MIP in the target MIP address and address filtering table.
  • the address is selected to perform forwarding based on the BIER forwarding table or forwarding based on the MAC forwarding table.
  • the network node terminates the loopback detection when the address of the MIP configured by the network node is consistent with the target MIP address after receiving the loopback detection packet. Message.
  • any network node in the Layer 2 network selects the BIER forwarding or MAC forwarding according to the address filtering table until the configured MIP address is consistent with the destination address of the loopback detection packet.
  • the network node terminates the message.
  • the MIP If the MIP is not configured on the network node, after receiving the loopback detection packet sent by the MEP, look up the address filtering table based on the destination MAC address of the packet, and select the BIER forwarding table or MAC forwarding table to forward the packet according to the address filtering table.
  • the MIP is configured on the network node, after receiving the loopback detection packet sent by the MEP, compare the destination MAC address of the loopback detection packet with the address of the MIP configured on the network node. If the two addresses are the same, the packet is terminated and further loopback detection is processed. If the two addresses are not consistent, the packet is not terminated but is based on the destination MAC address of the packet. Find the address filtering table and select to forward based on the BIER forwarding table or MAC forwarding table according to the address filtering table.
  • the loopback detection method of the Layer 2 network in the embodiment of the present disclosure can implement loopback detection on the MAC forwarding table of the to-be-detected transmission path, and implement detection for the loopback detection of the MEP to the MIP. Loopback detection of the BIER forwarding table on the transmission path.
  • the BIER Layer 2 network includes 16 BIER switches, and the 16 BIER switches are respectively BIER switches.
  • BIER switch 15 and BIER switch 16 are switches that support both BIER forwarding and MAC forwarding, and arrive at BIER from BIER switch 1 through BIER switch 2, BIER switch 4, BIER switch 7, BIER switch 11
  • the BIER-based forwarding transmission path of the switch 15 is the transmission path to be detected.
  • the network operator configures two MEPs 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; in addition, the network operator is on BIER switch 7 MIP1 for detecting the BIER forwarding table is configured on port 1.
  • the BIER forwarding-based loopback detection from MEP1 to MIP1 mainly includes the following steps:
  • Step 11 After the network operator configures MIP1 for detecting the BIER forwarding table on port 1 of the BIER switch 7, the BIER switch 7 advertises the address of the MIP1 to all other network nodes of the BIER layer 2 network, and the MIP1 is used to detect the BIER switch. Instructions issued.
  • the address of the MIP1 is the MAC address of the port 1 of the BIER switch 7 00-11-22-00-00-71, and the BIER switch 7 can pass the Open Shortest Path First (OSPF).
  • OSPF Open Shortest Path First
  • the protocol, or the Intermediate System to Intermediate System (IS-IS) protocol, or other advertising protocol advertises the address of the MIP1 and the indication of the MIP1 used to detect the BIER forwarding table to other BIER switches in the network.
  • the address of MIP1 occupies six bytes, and the indication used by MIP1 to detect the BIER forwarding table occupies one bit.
  • Step 12 After receiving the MIP1 address advertised by the BIER switch 7 and the MIP1 indication for detecting the BIER forwarding table, the BIER switch other than the BIER switch 7 in the BIER Layer 2 network adds the MIP1 address to the address filtering table to make the MIP1 address. Corresponds to the BIER forwarding table.
  • Step 13 After the network operator initiates the loopback detection function of MEP1 to MIP1, MEP1 sends a loopback detection packet whose destination MAC address is MIP1 address 00-11-22-00-00-71.
  • the loopback detection packet sent by the MEP1 carries the BIER label and the bit mask for the BIER forwarding.
  • the value of the bit mask should indicate that the BIER switch forwards the loopback detection packet along the to-be-detected transmission path.
  • Step 14 After receiving the loopback detection packet, each BIER switch selects the BIER forwarding table according to the address filtering table to forward the packet until the BIER switch 7 terminates the packet according to the destination MAC address of the loopback detection packet.
  • the BIER switch 2 After receiving the loopback detection packet sent by the MEP1, the BIER switch 2 searches the address filtering table based on the destination MAC address of the packet 00-11-22-00-00-71, and selects the BIER forwarding according to the address filtering table. The BIER switch 2 then forwards the packet to the next hop BIER switch 4 based on the BIER tag and the bit mask carried in the packet.
  • the BIER switch 4 After receiving the loopback detection packet forwarded by the BIER switch 2, the BIER switch 4 is based on the destination MAC address of the packet. The address 00-11-22-00-00-71 looks up the address filtering table, and selects the BIER forwarding according to the address filtering table. Then, the BIER switch 4 forwards the packet based on the BIER tag and the bit mask carried in the packet, and sends it to the BIER. Next hop BIER switch 7.
  • the BIER switch 7 Since the BIER switch 7 is configured with the MIP, the BIER switch 7 receives the loopback detection packet forwarded by the BIER switch 4, and then the destination MAC address of the packet is 00-11-22-00-00-71 and the BIER switch 7 The MIP1 address is compared. The result is that the destination MAC address of the packet is the same as the MIP1 address. Therefore, the BIER switch 7 does not forward the loopback detection packet.
  • the loopback detection packet is terminated by MIP1 and further Ground treatment.
  • the BIER Layer 2 network includes 16 BIER switches, and the 16 BIER switches are respectively BIER switches.
  • BIER switch 15 and BIER switch 16 are switches that support both BIER forwarding and MAC forwarding, and arrive at BIER from BIER switch 1 through BIER switch 2, BIER switch 4, BIER switch 7, BIER switch 11
  • the BIER-based forwarding transmission path of the switch 15 is the transmission path to be detected.
  • the network operator configures two MEPs 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
  • network operator is on BIER switch 4
  • MIP1 for detecting the BIER forwarding table is configured on port 1
  • MIP2 for detecting the BIER forwarding table is configured on port 1 of the BIER switch 7.
  • the BIER forwarding-based loopback detection from MEP1 to MIP2 mainly includes the following steps:
  • Step 21 After the network operator configures the MIP2 for detecting the BIER forwarding table on the port 1 of the BIER switch 7, the BIER switch 7 advertises the address of the MIP2 to all other network nodes of the BIER layer 2 network, and the MIP2 is used to detect the BIER switch.
  • the instructions issued; similarly, the BIER switch 4 also advertises the address of the MIP1 to all other network nodes of the BIER Layer 2 network and the indication that the MIP1 is used to detect the BIER forwarding table.
  • the address of the MIP2 is the MAC address 00-11-22-00-00-71 of the port 1 of the BIER switch 7, and the BIER switch 7 can set the address of the MIP2 through the OSPF protocol, or the IS-IS protocol, or other notification protocol.
  • the indication that the MIP2 is used to detect the BIER forwarding table is advertised to other BIER switches in the network, where the address of the MIP2 occupies six bytes, and the indication that the MIP2 uses to detect the BIER forwarding table occupies one bit.
  • the BIER switch 4 also uses the same method to advertise the address of MIP1 and the indication that MIP1 is used to detect the BIER forwarding table.
  • Step 22 After receiving the MIP2 address advertised by the BIER switch 7 and the MIP2 indication for detecting the BIER forwarding table, the BIER switch other than the BIER switch 7 in the BIER Layer 2 network adds the MIP2 address to the address filtering table to make the MIP2 address. Corresponds to the BIER forwarding table. Similarly, after the BIER switch other than the BIER switch 4 in the BIER Layer 2 network receives the MIP1 address advertised by the BIER switch 4 and the MIP1 indicates the BIER forwarding table, the MIP1 address is added to the address filter table to make the MIP1 address. Corresponds to the BIER forwarding table.
  • Step 23 After the network operator initiates the loopback detection function of MEP1 to MIP2, MEP1 issues the destination MAC address.
  • the loopback detection packet is the MIP2 address 00-11-22-00-00-71.
  • the loopback detection packet sent by the MEP1 carries the BIER label and the bit mask for the BIER forwarding.
  • the value of the bit mask should indicate that the BIER switch forwards the loopback detection packet along the to-be-detected transmission path.
  • Step 24 After receiving the loopback detection packet, each BIER switch selects the BIER forwarding table according to the address filtering table to forward the packet until the BIER switch 7 terminates the packet according to the destination MAC address of the loopback detection packet.
  • the BIER switch 2 After receiving the loopback detection packet sent by the MEP1, the BIER switch 2 searches the address filtering table based on the destination MAC address of the packet 00-11-22-00-00-71, and selects the BIER forwarding according to the address filtering table. The BIER switch 2 then forwards the packet to the next hop BIER switch 4 based on the BIER tag and the bit mask carried in the packet.
  • the BIER switch 4 Since the BIER switch 4 is configured with the MIP, the BIER switch 4 receives the loopback detection packet forwarded by the BIER switch 2, and then the destination MAC address of the packet is 00-11-22-00-00-71 and the BIER switch 4 The IP address of the MIP1 is compared. The result of the comparison is that the destination MAC address of the packet is inconsistent with the address of the MIP1. Therefore, the BIER switch 4 will continue to forward the loopback detection packet, that is, based on the destination MAC address of the packet. 11-22-00-00-71 finds the address filtering table and selects the BIER forwarding according to the address filtering table. Then, the BIER switch 4 forwards the packet based on the BIER tag and the bit mask carried in the packet, and sends it to the next BIER. Jump BIER switch 7.
  • the BIER switch 7 Since the BIER switch 7 is configured with the MIP, the BIER switch 7 receives the loopback detection packet forwarded by the BIER switch 4, and then the destination MAC address of the packet is 00-11-22-00-00-71 and the BIER switch 7 The MIP1 address is compared. The result is that the destination MAC address of the packet is the same as the MIP1 address. Therefore, the BIER switch 7 does not forward the loopback detection packet.
  • the loopback detection packet is terminated by MIP1 and further Ground treatment.
  • the BIER Layer 2 network includes 16 BIER switches, and the 16 BIER switches are respectively BIER switches.
  • BIER switch 15 and BIER switch 16 are switches that support both BIER forwarding and MAC forwarding, and arrive at BIER from BIER switch 1 through BIER switch 2, BIER switch 4, BIER switch 7, BIER switch 11
  • the BIER-based forwarding transmission path of the switch 15 is the transmission path to be detected.
  • the network operator configures two MEPs 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; in addition, the network operator is on BIER switch 7 MIP1 for detecting the MAC forwarding table is configured on port 1.
  • the MAC forwarding-based loopback detection from MEP1 to MIP1 mainly includes the following steps:
  • Step 31 After the network operator configures the MIP1 for detecting the MAC forwarding table on the port 1 of the BIER switch 7, the BIER switch 7 notifies all other network nodes of the address of the MIP1 and the indication that the MIP1 is used to detect the MAC forwarding table.
  • the address of MIP1 is the MAC address of port 1 of BIER switch 7 00-11-22-00-00-71
  • the BIER switch 7 can advertise the address of the MIP1 and the indication of the MIP1 for detecting the MAC forwarding table to other BIER switches in the BIER Layer 2 network through the OSPF protocol, or the IS-IS protocol, or other advertising protocols, where the address of the MIP1 is occupied.
  • the indication that MIP1 uses to detect the MAC forwarding table occupies one bit.
  • Step 32 After receiving the MIP1 address advertised by the BIER switch 7 and the MIP1 indicating the MAC forwarding table, the BIER switch in the BIER Layer 2 network adds the MIP1 address to the address filtering table to make the MIP1 address. Corresponds to the MAC forwarding table.
  • Step 33 After the network operator initiates the loopback detection function of MEP1 to MIP1, MEP1 sends a loopback detection packet whose destination MAC address is MIP1 address 00-11-22-00-00-71.
  • Step 34 After receiving the loopback detection packet, each BIER switch selects a MAC forwarding table according to the address filtering table to forward the packet until the BIER switch 7 terminates the packet according to the destination MAC address of the loopback detection packet.
  • the BIER switch 2 After receiving the loopback detection packet sent by the MEP1, the BIER switch 2 searches the address filtering table based on the destination MAC address of the packet 00-11-22-00-00-71, and selects the MAC forwarding according to the address filtering table. The BIER switch 2 then forwards the packet based on the destination MAC address of the packet and sends it to its next hop BIER switch 4.
  • the BIER switch 4 After receiving the loopback detection packet forwarded by the BIER switch 2, the BIER switch 4 searches the address filtering table based on the destination MAC address of the packet 00-11-22-00-00-71, and selects the MAC forwarding according to the address filtering table. The BIER switch 4 forwards the packet based on the destination MAC address of the packet and sends it to its next hop BIER switch 7.
  • the BIER switch 7 Since the BIER switch 7 is configured with the MIP, the BIER switch 7 receives the loopback detection packet forwarded by the BIER switch 4, and then the destination MAC address of the packet is 00-11-22-00-00-71 and the BIER switch 7 The MIP1 address is compared. The result is that the destination MAC address of the packet is the same as the MIP1 address. Therefore, the BIER switch 7 does not forward the loopback detection packet.
  • the loopback detection packet is terminated by MIP1 and further Ground treatment.
  • the BIER Layer 2 network includes 16 BIER switches, and the 16 BIER switches are respectively BIER switches.
  • BIER switch 15 and BIER switch 16 are switches that support both BIER forwarding and MAC forwarding, and arrive at BIER from BIER switch 1 through BIER switch 2, BIER switch 4, BIER switch 7, BIER switch 11
  • the BIER-based forwarding transmission path of the switch 15 is the transmission path to be detected.
  • the network operator configures two MEPs 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
  • network operator is on BIER switch 4
  • MIP1 for detecting the MAC forwarding table is configured on port 1
  • MIP2 for detecting the MAC forwarding table is configured on port 1 of the BIER switch 7.
  • the MAC forwarding-based loopback detection from MEP1 to MIP2 mainly includes the following steps:
  • Step 41 After the network operator configures the MIP2 for detecting the MAC forwarding table on the port 1 of the BIER switch 7, the BIER switch 7 advertises the address of the MIP2 to all other network nodes of the BIER Layer 2 network and the MIP2 is used for The indication of the MAC forwarding table is detected; likewise, the BIER switch 4 also advertises the address of the MIP1 to all other network nodes of the BIER Layer 2 network and the indication that the MIP1 is used to detect the MAC forwarding table.
  • the address of the MIP2 is the MAC address 00-11-22-00-00-71 of the port 1 of the BIER switch 7, and the BIER switch 7 can set the address of the MIP2 through the OSPF protocol, or the IS-IS protocol, or other notification protocol.
  • the indication that the MIP2 is used to detect the MAC forwarding table is advertised to other BIER switches in the network, where the address of the MIP2 occupies six bytes, and the indication that the MIP2 uses to detect the BIER forwarding table occupies one bit.
  • the BIER switch 4 also uses the same method to advertise the address of MIP1 and the indication that MIP1 is used to detect the MAC forwarding table.
  • Step 42 After the BIER switch other than the BIER switch 7 in the BIER Layer 2 network receives the MIP2 address advertised by the BIER switch 7, and the MIP2 indicates the MAC forwarding table, the MIP2 address is added to the address filtering table to make the MIP2 address. Corresponds to the MAC forwarding table. Similarly, after the BIER switch other than the BIER switch 4 in the BIER Layer 2 network receives the MIP1 address advertised by the BIER switch 4 and the MIP1 is used to detect the MAC forwarding table, the MIP1 address is added to the address filtering table to make the MIP1 address. Corresponds to the MAC forwarding table.
  • Step 43 After the network operator initiates the loopback detection function of MEP1 to MIP2, MEP1 sends a loopback detection packet whose destination MAC address is MIP2 address 00-11-22-00-00-71.
  • Step 44 After receiving the loopback detection packet, each BIER switch selects a MAC forwarding table according to the address filtering table to forward the packet until the BIER switch 7 terminates the packet according to the destination MAC address of the loopback detection packet.
  • the BIER switch 2 After receiving the loopback detection packet sent by the MEP1, the BIER switch 2 searches the address filtering table based on the destination MAC address of the packet 00-11-22-00-00-71, and selects the MAC forwarding according to the address filtering table. The BIER switch 2 then forwards the packet based on the destination MAC address of the packet and sends it to its next hop BIER switch 4.
  • the BIER switch 4 Since the BIER switch 4 is configured with the MIP, the BIER switch 4 receives the loopback detection packet forwarded by the BIER switch 2, and then the destination MAC address of the packet is 00-11-22-00-00-71 and the BIER switch 4 The IP address of the MIP1 is compared. The result is that the destination MAC address of the packet is inconsistent with the address of the MIP1. Therefore, the BIER switch 4 will continue to forward the loopback detection packet, that is, based on the destination MAC address of the packet. -22-00-00-71 searches the address filtering table and selects MAC forwarding according to the address filtering table. Then, the BIER switch 4 forwards the packet based on the destination MAC address of the packet and sends it to its next hop BIER switch 7.
  • the BIER switch 7 Since the BIER switch 7 is configured with the MIP, the BIER switch 7 receives the loopback detection packet forwarded by the BIER switch 4, and then the destination MAC address of the packet is 00-11-22-00-00-71 and the BIER switch 7 The MIP1 address is compared. The result is that the destination MAC address of the packet is the same as the MIP1 address. Therefore, the BIER switch 7 does not forward the loopback detection packet.
  • the loopback detection packet is terminated by MIP1 and further Ground treatment.
  • the embodiment of the present disclosure further proposes a Layer 2 network.
  • Any one of the network nodes of the Layer 2 network is configured to go to the second layer after configuring the maintenance intermediate point MIP for detecting the bit index explicitly copying the BIER forwarding table or the MIP for detecting the medium access control MAC forwarding table. All other network nodes in the network send a MIP address for detecting the BIER forwarding table or a MIP address for detecting the MAC forwarding table;
  • the maintenance endpoint MEP in the Layer 2 network is used to initiate the loopback detection function of the MEP to the target MIP.
  • the loopback detection packet carrying the target MIP address is sent out;
  • the network node of the Layer 2 network is configured to: after receiving the loopback detection message, if the MIP address is not configured on the network node, or the configured MIP address is inconsistent with the target MIP address, The target MIP address performs forwarding based on the BIER forwarding table or forwarding based on the MAC forwarding table on the loopback detection packet.
  • any one of the network nodes of the Layer 2 network is further configured to: after receiving the loopback detection message, when the address of the MIP configured by the network node is consistent with the target MIP address, The loopback detection message is described.
  • any one of the network nodes in the Layer 2 network is further configured to: when receiving the MIP address for detecting the BIER forwarding table, add the received MIP address to the address filtering table, and receive the received MIP.
  • the address is configured as a MIP address forwarded based on the BIER forwarding table; when receiving the MIP address for detecting the MAC forwarding table, the received MIP address is added to the address filtering table, and the received MIP address is configured to be based on the MAC address.
  • any one of the network nodes of the Layer 2 network is configured to perform the BIER-based selection of the loopback detection message by comparing the target MIP address with the MIP address in the address filtering table of the local network node. Published forwarding or forwarding based on MAC forwarding table.
  • the MIP located on the same loopback detection message transmission path is configured as a MIP for detecting the BIER forwarding table or a MIP for detecting the MAC forwarding table.
  • the address of the target MIP is the unicast MAC address of the port where the target MIP is located.
  • any one of the network nodes in the Layer 2 network may be a device that supports both BIER forwarding and MAC forwarding.
  • embodiments of the present disclosure can be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware aspects. Moreover, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions are provided for implementing one or more blocks in a flow or a flow and/or block diagram of the flowchart The steps of the function specified in the box.

Abstract

The embodiments of the invention provide a two-layer network, and a loopback detection method of a two-layer network. The method comprises: upon a network node in a two-layer network configuring a MIP to detect a BIER forwarding table or a MAC forwarding table, transmitting, to remaining network nodes, an MIP address for detecting the BIER forwarding table or the MAC forwarding table; upon activation of a loopback detection function from an MEP to a target MIP, transmitting, by the MEP, a loopback detection packet carrying a target MIP address; and upon one network node in the two-layer network receiving the loopback packet, when no MIP is configured at the network node, or a configured MIP address is inconsistent with the target MIP address, forwarding, according to the target MIP address, and based on the BIER forwarding table or the MAC forwarding table, the loopback detection packet.

Description

一种二层网络及二层网络的环回检测方法Loopback detection method for layer 2 network and layer 2 network 技术领域Technical field
本公开涉及通信技术领域,尤其涉及一种二层网络及二层网络的环回检测方法,适用于把位索引显式复制(Bit Indexed Explicit Replication,BIER)应用于二层网络的场景,这里的二层网络为数据链路层网络。The present disclosure relates to the field of communications technologies, and in particular, to a loopback detection method for a Layer 2 network and a Layer 2 network, which is applicable to a scenario in which a Bit Indexed Explicit Replication (BIER) is applied to a Layer 2 network. The Layer 2 network is a data link layer network.
背景技术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 working mechanism for Ethernet operation, management and maintenance (OAM). It 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);以太网中的维护点都是基于网络节点的端口创建的,端口MAC(Media Access Control,媒质接入控制)地址即为基于该端口所创建维护点的MAC地址;环回检测是IEEE 802.1ag标准定义的以太网OAM功能之一,该功能运行于MEP到MEP或MEP到MIP,目的是检测整个或一段以太网传输路径的故障,其中,以太网传输路径的故障既包括网络节点之间链路的故障,也包括网络节点的转发故障。The IEEE 802.1ag standard defines an OAM functional logical entity in Ethernet, which includes a Maintenance End Point (MEP) located at both ends of the Ethernet transmission path, and a maintenance intermediate point located in the middle of the Ethernet transmission path (Maintenance Intermediate) Point, referred to as MIP; maintenance endpoints and maintenance intermediate points are collectively referred to as Maintenance Points (MP); maintenance points in Ethernet are created based on ports of network nodes, and port MAC (Media Access Control, media access) The control address is the MAC address based on the maintenance point created by 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, in order to detect the whole or A failure of an Ethernet transmission path in which the failure of the Ethernet transmission path 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,其中,交换机1创建的MEP为MEP1,交换机1创建的MIP为MIP1,交换机4创建的MEP为MEP2,交换机4创建的MIP为MIP6;交换机2创建的两个MIP分别为MIP2和MIP3,交换机3创建的两个MIP分别表示为MIP4和MIP5;在图1的基础上,一个示例的环回检测过程包括以下步骤:The IEEE 802.1ag standard provides a loopback detection mechanism based on MAC forwarding. FIG. 1 is a schematic diagram of a loopback detection mechanism based on MAC forwarding in the related art. As shown in FIG. 1, one switch 1 and one switch 4 are created. MEP and 1 MIP, Switch 2 and Switch 3 each have two MIPs. The MEP created by Switch 1 is MEP1, the MIP created by Switch 1 is MIP1, the MEP created by Switch 4 is MEP2, and the MIP created by Switch 4 is MIP. MIP6; the two MIPs created by switch 2 are MIP2 and MIP3 respectively. The two MIPs created by switch 3 are represented as MIP4 and MIP5 respectively. On the basis of Figure 1, an example loopback detection process 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 detects the packet along the loopback. The transmission path (ie, the MAC-based forwarding path) arrives at MIP5.
步骤2,MIP5接收到环回检测报文并检测无误后,沿着环回响应报文传输路径向发送该报文的MEP1回复环回响应报文。Step 2: After receiving the loopback detection packet and detecting the error, the MIP5 sends a loopback response packet to the MEP1 that sends the packet along the loopback response packet transmission path.
步骤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.
美国专利申请US2015078380(Bit Indexed Explicit Replication For Layer 2Networking)公开了一种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的转发机制进行报文转发。U.S. Patent Application No. US2015078380 (Bit Indexed Explicit Replication For Layer 2 Networking) discloses a method for implementing a BIER Layer 2 network, which defines: a BIER tag located in an Ethernet frame header. (BIER Tag) and Bit Mask. 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 the unicast MAC address, the BIER label is ignored, the MAC forwarding table is searched according to the destination MAC address, and the packet forwarding is performed according to the MAC forwarding mechanism. When the destination MAC address of the Ethernet frame is the multicast MAC address. Ignore the destination MAC address, look up the BIER forwarding table according to the BIER tag, and forward the packet according to the BIER forwarding mechanism.
把环回检测功能应用到BIER二层网络时,对于MEP到MIP进行环回检测的应用场景,无法实现针对待检测传输路径上BIER转发表的环回检测。When the loopback detection function is applied to the BIER Layer 2 network, the loopback detection for the BIER forwarding table on the transmission path to be detected cannot be implemented in the application scenario of loopback detection from the MEP to the MIP.
发明内容Summary of the invention
为解决现有存在的技术问题,本公开实施例提供一种二层网络及二层网络的环回检测方法,用于解决对于MEP到MIP进行环回检测的应用场景,无法实现针对待检测传输路径上BIER转发表的环回检测的问题。In order to solve the existing technical problems, the embodiments of the present disclosure provide a loopback detection method for a Layer 2 network and a Layer 2 network, which is used to solve the application scenario of loopback detection for the MEP to the MIP. The problem of loopback detection of the BIER forwarding table on the path.
为达到上述目的,本公开实施例的技术方案是这样实现的:In order to achieve the above object, the technical solution of the embodiment of the present disclosure is implemented as follows:
本公开实施例提供了一种二层网络的环回检测方法,所述方法包括:An embodiment of the present disclosure provides a loopback detection method for a Layer 2 network, where the method includes:
二层网络中的任意一个网络节点配置用于检测BIER转发表的MIP或用于检测MAC转发表的MIP后,向二层网络中的其余所有网络节点发送用于检测BIER转发表的MIP地址或用于检测MAC转发表的MIP地址;After the MIP of the BIER forwarding table is configured to detect the MIP of the BIER forwarding table or the MIP for detecting the MAC forwarding table, the MIP address for detecting the BIER forwarding table is sent to all the other network nodes in the Layer 2 network. MIP address used to detect the MAC forwarding table;
在启动MEP到目标MIP的环回检测功能后,MEP发出携带有目标MIP地址的环回检测报文;After the loopback detection function is enabled on the MEP to the target MIP, the MEP sends a loopback detection packet carrying the target MIP address.
所述二层网络中的任意一个网络节点在收到所述环回检测报文后,在本网络节点未配置MIP,或配置的MIP的地址与所述目标MIP地址不一致时,依据所述目标MIP地址对所述环回检测报文进行基于BIER转发表的转发或基于MAC转发表的转发。After receiving the loopback detection message, the network node does not configure the MIP on the network node, or the configured MIP address is inconsistent with the target MIP address, according to the target. The MIP address performs forwarding based on the BIER forwarding table or forwarding based on the MAC forwarding table on the loopback detection message.
上述方案中,所述方法还包括:所述二层网络中的任意一个网络节点在收到所述环回检测报文后,在本网络节点配置的MIP的地址与所述目标MIP地址一致时,终结所述环回检测报文。In the above solution, the method further includes: after receiving the loopback detection message, when the address of the MIP configured by the network node is consistent with the target MIP address, the network node of the Layer 2 network Ending the loopback detection message.
上述方案中,所述方法还包括:In the above solution, the method further includes:
所述二层网络中的任意一个网络节点在接收到用于检测BIER转发表的MIP地址时,将接收到的MIP地址添加到地址过滤表,并将接收到的MIP地址配置为基于BIER转发表转发的MIP地址;所述二层网络中的任意一个网络节点在接收到用于检测MAC转发表的MIP地址时,将接收到的MIP地址添加到地址过滤表,并将接收到的MIP地址配置为基于MAC转发表转发的MIP地址;When receiving the MIP address for detecting the BIER forwarding table, any one of the Layer 2 networks adds the received MIP address to the address filtering table, and configures the received MIP address to be based on the BIER forwarding table. Forwarding MIP address; when receiving the MIP address for detecting the MAC forwarding table, any one of the Layer 2 networks adds the received MIP address to the address filtering table, and configures the received MIP address. MIP address forwarded based on the MAC forwarding table;
相应地,所述依据所述目标MIP地址对所述环回检测报文进行基于BIER转发表的转发 或基于MAC转发表的转发,包括:Correspondingly, the loopback detection packet is forwarded according to the BIER forwarding table according to the target MIP address. Or forwarding based on the MAC forwarding table, including:
本网络节点通过比较所述目标MIP地址与地址过滤表中的MIP地址,对所述环回检测报文选择进行基于BIER转发表的转发或基于MAC转发表的转发。The network node selects the BIER forwarding table based forwarding or the MAC forwarding table based forwarding by comparing the target MIP address with the MIP address in the address filtering table.
上述方案中,所述方法还包括:将位于同一条环回检测报文传输路径上的MIP同时配置为用于检测BIER转发表的MIP或用于检测MAC转发表的MIP。In the above solution, the method further includes: configuring the MIP located on the same loopback detection packet transmission path as the MIP for detecting the BIER forwarding table or the MIP for detecting the MAC forwarding table.
上述方案中,所述目标MIP的地址为目标MIP所在端口的单播MAC地址。In the above solution, the address of the target MIP is a unicast MAC address of a port where the target MIP is located.
本公开实施例还提供了一种二层网络,所述二层网络中的任意一个网络节点,用于在配置用于检测BIER转发表的MIP或用于检测MAC转发表的MIP后,向二层网络中的其余所有网络节点发送用于检测BIER转发表的MIP地址或用于检测MAC转发表的MIP地址;The embodiment of the present disclosure further provides a Layer 2 network, where any one of the Layer 2 networks is used to configure a MIP for detecting a BIER forwarding table or a MIP for detecting a MAC forwarding table. All other network nodes in the layer network send a MIP address for detecting the BIER forwarding table or a MIP address for detecting the MAC forwarding table;
所述二层网络中的MEP,用于在启动MEP到目标MIP的环回检测功能后,发出携带有目标MIP地址的环回检测报文;The MEP in the Layer 2 network is configured to send a loopback detection packet carrying the target MIP address after the loopback detection function of the MEP to the target MIP is started.
所述二层网络中的任意一个网络节点,用于在收到所述环回检测报文后,在本网络节点未配置MIP,或配置的MIP的地址与所述目标MIP地址不一致时,依据所述目标MIP地址对所述环回检测报文进行基于BIER转发表的转发或基于MAC转发表的转发。The network node of the Layer 2 network is configured to: after receiving the loopback detection message, if the MIP address is not configured on the network node, or the configured MIP address is inconsistent with the target MIP address, The target MIP address performs forwarding based on the BIER forwarding table or forwarding based on the MAC forwarding table on the loopback detection packet.
上述方案中,所述二层网络中的任意一个网络节点,还用于在收到所述环回检测报文后,在本网络节点配置的MIP的地址与所述目标MIP地址一致时,终结所述环回检测报文。In the foregoing solution, any one of the network nodes of the Layer 2 network is further configured to: after receiving the loopback detection packet, when the address of the MIP configured by the network node is consistent with the target MIP address, The loopback detection packet.
上述方案中,所述二层网络中的任意一个网络节点,还用于在接收到用于检测BIER转发表的MIP地址时,将接收到的MIP地址添加到地址过滤表,并将接收到的MIP地址配置为基于BIER转发表转发的MIP地址;在接收到用于检测MAC转发表的MIP地址时,将接收到的MIP地址添加到地址过滤表,并将接收到的MIP地址配置为基于MAC转发表转发的MIP地址;In the above solution, any one of the network nodes in the Layer 2 network is further configured to: when receiving the MIP address for detecting the BIER forwarding table, add the received MIP address to the address filtering table, and receive the received The MIP address is configured to be based on the MIP address forwarded by the BIER forwarding table; when receiving the MIP address for detecting the MAC forwarding table, the received MIP address is added to the address filtering table, and the received MIP address is configured to be based on the MAC address. The MIP address forwarded by the forwarding table;
相应地,所述二层网络中的任意一个网络节点,用于通过比较所述目标MIP地址与本网络节点的地址过滤表中的MIP地址,对所述环回检测报文选择进行基于BIER转发表的转发或基于MAC转发表的转发。Correspondingly, any one of the network nodes of the Layer 2 network is configured to perform the BIER-based selection of the loopback detection message by comparing the target MIP address with the MIP address in the address filtering table of the local network node. Published forwarding or forwarding based on MAC forwarding table.
上述方案中,位于同一条环回检测报文传输路径上的MIP同时配置为用于检测BIER转发表的MIP或用于检测MAC转发表的MIP。In the above solution, the MIP located on the same loopback detection packet transmission path is configured as the MIP for detecting the BIER forwarding table or the MIP for detecting the MAC forwarding table.
上述方案中,所述目标MIP的地址为目标MIP所在端口的单播MAC地址。In the above solution, the address of the target MIP is a unicast MAC address of a port where the target MIP is located.
本公开实施例提供的一种二层网络的环回检测方法和二层网络中,二层网络中的任意一个网络节点配置用于检测位索引显式复制BIER转发表的维护中间点MIP或用于检测媒质接入控制MAC转发表的MIP后,向二层网络中的其余所有网络节点发送用于检测BIER转发表的MIP地址或用于检测MAC转发表的MIP地址;在启动维护端点MEP到目标MIP的环回检测功能后,MEP发出携带有目标MIP地址的环回检测报文;所述二层网络中的任意一个网络节点在收到所述环回检测报文后,在本网络节点未配置MIP,或配置的MIP的地址与所述目标MIP地址不一致时,依据所述目标MIP地址对所述环回检测报文进行基于BIER转发表的转发或基于MAC转发表的转发;如此,对于MEP到MIP进行环回检测的应用场景,既能实现针对待检测传输路径上MAC转发表的环回检测,又能实现针对待检测传输路 径上BIER转发表的环回检测。In the loopback detection method and the Layer 2 network of the Layer 2 network provided by the embodiment of the present disclosure, any one of the network nodes in the Layer 2 network is configured to detect a bit index to explicitly copy the maintenance intermediate point MIP of the BIER forwarding table or use After detecting the MIP of the medium access control MAC forwarding table, sending a MIP address for detecting the BIER forwarding table or a MIP address for detecting the MAC forwarding table to all the remaining network nodes in the Layer 2 network; starting the maintenance endpoint MEP to After the loopback detection function of the target MIP, the MEP sends a loopback detection packet carrying the target MIP address; after receiving the loopback detection packet, any one of the network nodes in the Layer 2 network is in the network node. If the MIP is not configured, or the configured MIP address is inconsistent with the target MIP address, the loopback detection packet is forwarded based on the BIER forwarding table or forwarded based on the MAC forwarding table according to the target MIP address; The application scenario of the loopback detection of the MEP to the MIP can implement loopback detection for the MAC forwarding table on the transmission path to be detected, and implement the detection for the transmission path to be detected. Loopback detection of the BIER forwarding table on the trail.
附图说明DRAWINGS
图1为相关技术中基于MAC转发的环回检测机制的示意图;1 is a schematic diagram of a loopback detection mechanism based on MAC forwarding in the related art;
图2为本公开实施例二层网络的环回检测方法的流程示意图;2 is a schematic flowchart of a loopback detection method of a Layer 2 network according to an embodiment of the present disclosure;
图3为本公开实施例一的BIER二层网络中的环回检测的实施方式示意图;3 is a schematic diagram of an implementation manner of loopback detection in a BIER Layer 2 network according to Embodiment 1 of the present disclosure;
图4为本公开实施例二的BIER二层网络中的环回检测的实施方式示意图;4 is a schematic diagram of an implementation manner of loopback detection in a BIER Layer 2 network according to Embodiment 2 of the present disclosure;
图5为本公开实施例三的BIER二层网络中的环回检测的实施方式示意图;5 is a schematic diagram of an implementation manner of loopback detection in a BIER Layer 2 network according to Embodiment 3 of the present disclosure;
图6为本公开实施例四的BIER二层网络中的环回检测的实施方式示意图。6 is a schematic diagram of an implementation manner of loopback detection in a BIER Layer 2 network according to Embodiment 4 of the present disclosure.
具体实施方式detailed description
以下结合附图及实施例,对本公开进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。The present disclosure will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the disclosure and are not intended to limit the disclosure.
本公开实施例记载一种二层网络的环回检测方法,图2为本公开实施例二层网络的环回检测方法的流程示意图,如图2所示,该流程包括:The embodiment of the present disclosure describes a loopback detection method for a Layer 2 network. FIG. 2 is a schematic flowchart of a loopback detection method for a Layer 2 network according to an embodiment of the present disclosure. As shown in FIG. 2, the process includes:
步骤201:二层网络中的任意一个网络节点配置用于检测BIER转发表的MIP或用于检测MAC转发表的MIP后,向二层网络中的其余所有网络节点发送用于检测BIER转发表的MIP地址或用于检测MAC转发表的MIP地址。Step 201: Any one of the network nodes in the Layer 2 network is configured to detect the MIP of the BIER forwarding table or the MIP used to detect the MAC forwarding table, and then send the BIER forwarding table to all the remaining network nodes in the Layer 2 network. MIP address or MIP address used to detect the MAC forwarding table.
也就是说,如果二层网络中的任意一个网络节点配置了用于检测BIER转发表的MIP,则向二层网络中的其余所有网络节点通告用于检测BIER转发表的MIP地址;如果二层网络中的任意一个网络节点配置了用于检测MAC转发表的MIP,则向二层网络中的其余所有网络节点通告用于检测MAC转发表的MIP地址。That is, if any one of the network nodes in the Layer 2 network is configured with the MIP for detecting the BIER forwarding table, the MIP address for detecting the BIER forwarding table is advertised to all the other network nodes in the Layer 2 network; Any one of the network nodes in the network is configured with a MIP for detecting the MAC forwarding table, and then advertises the MIP address for detecting the MAC forwarding table to all other network nodes in the Layer 2 network.
需要说明的是,一个MIP不能同时配置为用于检测BIER转发表的MIP和用于检测MAC转发表的MIP,而且,位于同一条环回检测报文传输路径上的MIP只能同时配置为用于检测BIER转发表的MIP或用于检测MAC转发表的MIP。It should be noted that a MIP cannot be configured as the MIP for detecting the BIER forwarding table and the MIP for detecting the MAC forwarding table, and the MIPs located on the same loopback detection packet can be configured at the same time. The MIP for detecting the BIER forwarding table or the MIP for detecting the MAC forwarding table.
进一步地,所述二层网络中的任意一个网络节点在接收到用于检测BIER转发表的MIP地址时,将接收到的MIP地址添加到地址过滤表,并将接收到的MIP地址配置为基于BIER转发表转发的MIP地址;所述二层网络中的任意一个网络节点在接收到用于检测MAC转发表的MIP地址时,将接收到的MIP地址添加到地址过滤表,并将接收到的MIP地址配置为基于MAC转发表转发的MIP地址。Further, when receiving the MIP address for detecting the BIER forwarding table, any one of the network nodes in the Layer 2 network adds the received MIP address to the address filtering table, and configures the received MIP address as based on The MIER address forwarded by the BIER forwarding table; when receiving the MIP address for detecting the MAC forwarding table, any one of the network nodes in the Layer 2 network adds the received MIP address to the address filtering table, and receives the received The MIP address is configured to be based on the MIP address forwarded by the MAC forwarding table.
这里,地址过滤表用于为特定的报文目的MAC地址选择BIER转发或MAC转发,具体地,将携带特定的报文目的MAC地址的报文划归基于报文中BIER标签进行转发的BIER转发表或基于报文目的MAC地址进行转发的MAC转发表;而在相关技术中,携带单播报文目的MAC地址的报文被划归MAC转发表,携带组播报文目的MAC地址的报文被划归BIER转发表。Here, the address filtering table is used to select BIER forwarding or MAC forwarding for a specific packet destination MAC address. Specifically, the packet carrying the specific packet destination MAC address is classified into BIER forwarding based on the BIER label in the packet. A MAC forwarding table that is forwarded based on the destination MAC address of the packet; in the related art, the packet carrying the destination MAC address of the unicast packet is classified into a MAC forwarding table, and the packet carrying the destination MAC address of the multicast packet is Assigned to the BIER forwarding table.
网络节点如果收到其它网络节点通告的用于检测BIER转发表的MIP地址,则把该MIP 地址添加到地址过滤表,并将该MIP地址配置为基于BIER转发表转发的MIP地址;网络节点如果收到其它网络节点通告的用于检测MAC转发表的MIP地址,则把该MIP地址添加到地址过滤表,并将该MIP地址配置为基于MAC转发表转发的MIP地址。The network node receives the MIP if it receives the MIP address advertised by other network nodes for detecting the BIER forwarding table. The address is added to the address filtering table, and the MIP address is configured as a MIP address forwarded based on the BIER forwarding table; if the network node receives the MIP address advertised by the other network node for detecting the MAC forwarding table, the MIP address is added to the MIP address. An address filtering table and configuring the MIP address as a MIP address forwarded based on the MAC forwarding table.
步骤202:在启动维护端点MEP到目标MIP的环回检测功能后,MEP发出携带有目标MIP地址的环回检测报文。Step 202: After the loopback detection function of the maintenance terminal MEP to the target MIP is started, the MEP sends a loopback detection packet carrying the target MIP address.
在一个本步骤的实现方式中,网络操作员输入目标MIP的地址,启动MEP到目标MIP的环回检测功能后,MEP发出目的MAC地址为网络操作员输入的目标MIP地址的环回检测报文。In an implementation of this step, after the network operator inputs the address of the target MIP and starts the loopback detection function of the MEP to the target MIP, the MEP sends a loopback detection packet whose destination MAC address is the target MIP address input by the network operator. .
这里,本步骤中的MEP和目标MIP都是网络操作员在网络中配置的维护点,维护点是基于端口配置的,MEP地址就是MEP所在端口的MAC地址,目标MIP的地址就是MIP所在端口的MAC地址,而网络中所有端口的MAC地址都是单播地址。本步骤中,网络操作员输入的目标MIP的地址就是一个MIP所在端口的单播MAC地址;也就是说,所述目标MIP的地址为目标MIP所在端口的单播MAC地址。Here, the MEP and the target MIP in this step are the maintenance points configured by the network operator in 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 address of the target MIP is the port where the MIP is located. MAC address, and the MAC address of all ports in the network is a unicast address. In this step, the address of the target MIP input by the network operator is the unicast MAC address of the port where the MIP is located; that is, the address of the target MIP is the unicast MAC address of the port where the target MIP is located.
在支持BIER的以太网中,MEP发出的环回检测报文转发到MIP的方式有两种,一种是基于BIER的转发,另一种是基于MAC的转发。In the BIER-enabled Ethernet, there are two ways to forward the loopback detection packets sent by the MEP to the MIP. One is based on BIER forwarding and the other is MAC-based forwarding.
步骤203:所述二层网络中的任意一个网络节点在收到所述环回检测报文后,在本网络节点未配置MIP,或配置的MIP的地址与所述目标MIP地址不一致时,依据所述目标MIP地址对所述环回检测报文进行基于BIER转发表的转发或基于MAC转发表的转发。Step 203: After receiving the loopback detection message, the network node does not configure the MIP, or the configured MIP address is inconsistent with the target MIP address. The target MIP address performs forwarding based on the BIER forwarding table or forwarding based on the MAC forwarding table on the loopback detection packet.
在本步骤的一种实现方式中,在本网络节点未配置MIP,或配置的MIP的地址与所述目标MIP地址不一致时,本网络节点通过比较所述目标MIP地址与地址过滤表中的MIP地址,将所述环回检测报文选择进行基于BIER转发表的转发或基于MAC转发表的转发。In an implementation manner of this step, when the network node is not configured with the MIP, or the configured MIP address is inconsistent with the target MIP address, the network node compares the MIP in the target MIP address and address filtering table. The address is selected to perform forwarding based on the BIER forwarding table or forwarding based on the MAC forwarding table.
进一步地,所述二层网络中的任意一个网络节点在收到所述环回检测报文后,在本网络节点配置的MIP的地址与所述目标MIP地址一致时,终结所述环回检测报文。Further, after receiving the loopback detection message, the network node terminates the loopback detection when the address of the MIP configured by the network node is consistent with the target MIP address after receiving the loopback detection packet. Message.
也就是说,二层网络中的任意一个网络节点在收到环回检测报文后,依据地址过滤表选择BIER转发或MAC转发,直到配置的MIP的地址与环回检测报文目的地址一致的网络节点终结该报文。That is, after receiving the loopback detection packet, any network node in the Layer 2 network selects the BIER forwarding or MAC forwarding according to the address filtering table until the configured MIP address is consistent with the destination address of the loopback detection packet. The network node terminates the message.
若本网络节点没有配置MIP,则在收到MEP发出的环回检测报文后,基于报文的目的MAC地址查找地址过滤表,依据地址过滤表选择BIER转发表或MAC转发表进行转发。If the MIP is not configured on the network node, after receiving the loopback detection packet sent by the MEP, look up the address filtering table based on the destination MAC address of the packet, and select the BIER forwarding table or MAC forwarding table to forward the packet according to the address filtering table.
若本网络节点配置了MIP,则在收到MEP发出的环回检测报文后,先把环回检测报文的目的MAC地址与本网络节点上所配置的MIP的地址进行比较。如果两个地址是一致的,则终结该报文并进行进一步的环回检测报文的处理;如果两个地址不是一致的,则不会终结该报文,而是基于报文的目的MAC地址查找地址过滤表,依据地址过滤表选择基于BIER转发表或MAC转发表进行转发。If the MIP is configured on the network node, after receiving the loopback detection packet sent by the MEP, compare the destination MAC address of the loopback detection packet with the address of the MIP configured on the network node. If the two addresses are the same, the packet is terminated and further loopback detection is processed. If the two addresses are not consistent, the packet is not terminated but is based on the destination MAC address of the packet. Find the address filtering table and select to forward based on the BIER forwarding table or MAC forwarding table according to the address filtering table.
应用本公开实施例的二层网络的环回检测方法,对于MEP到MIP进行环回检测的应用场景,既能实现针对待检测传输路径上MAC转发表的环回检测,又能实现针对待检测传输路径上BIER转发表的环回检测。 The loopback detection method of the Layer 2 network in the embodiment of the present disclosure can implement loopback detection on the MAC forwarding table of the to-be-detected transmission path, and implement detection for the loopback detection of the MEP to the MIP. Loopback detection of the BIER forwarding table on the transmission path.
实施例一Embodiment 1
图3是本公开实施例一的BIER二层网络中的环回检测的实施方式示意图,如图3所示,BIER二层网络包含16个BIER交换机,这16个BIER交换机分别为BIER交换机1、BIER交换机2、BIER交换机3、BIER交换机4、BIER交换机5、BIER交换机6、BIER交换机7、BIER交换机8、BIER交换机9、BIER交换机10、BIER交换机11、BIER交换机12、BIER交换机13、BIER交换机14、BIER交换机15和BIER交换机16;上述16个BIER交换机为既支持BIER转发又支持MAC转发的交换机,从BIER交换机1经过BIER交换机2、BIER交换机4、BIER交换机7、BIER交换机11后到达BIER交换机15的基于BIER转发的传输路径为待检测传输路径。3 is a schematic diagram of an implementation of loopback detection in a BIER Layer 2 network according to Embodiment 1 of the present disclosure. As shown in FIG. 3, the BIER Layer 2 network includes 16 BIER switches, and the 16 BIER switches are respectively BIER switches. BIER switch 2, BIER switch 3, BIER switch 4, BIER switch 5, BIER switch 6, BIER switch 7, BIER switch 8, BIER switch 9, BIER switch 10, BIER switch 11, BIER switch 12, BIER switch 13, BIER switch 14. BIER switch 15 and BIER switch 16; the above 16 BIER switches are switches that support both BIER forwarding and MAC forwarding, and arrive at BIER from BIER switch 1 through BIER switch 2, BIER switch 4, BIER switch 7, BIER switch 11 The BIER-based forwarding transmission path of the switch 15 is the transmission path to be detected.
网络操作员在待检测传输路径上配置了两个MEP,其中,在BIER交换机1的端口1上配置了MEP1,在BIER交换机15的端口1上配置了MEP2;另外,网络操作员在BIER交换机7的端口1上配置了用于检测BIER转发表的MIP1。The network operator configures two MEPs 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; in addition, the network operator is on BIER switch 7 MIP1 for detecting the BIER forwarding table is configured on port 1.
在一个实现方式中,从MEP1到MIP1的基于BIER转发的环回检测主要包括如下步骤:In an implementation manner, the BIER forwarding-based loopback detection from MEP1 to MIP1 mainly includes the following steps:
步骤11:网络操作员在BIER交换机7的端口1上配置了用于检测BIER转发表的MIP1后,BIER交换机7向BIER二层网络的其它所有网络节点通告MIP1的地址以及MIP1用于检测BIER转发表的指示。Step 11: After the network operator configures MIP1 for detecting the BIER forwarding table on port 1 of the BIER switch 7, the BIER switch 7 advertises the address of the MIP1 to all other network nodes of the BIER layer 2 network, and the MIP1 is used to detect the BIER switch. Instructions issued.
示例性地,MIP1的地址即为BIER交换机7的端口1的MAC地址00-11-22-00-00-71,BIER交换机7可通过开放式最短路径优先(Open Shortest Path First,简称为OSPF)协议,或中间系统到中间系统(Intermediate System to Intermediate System,简称为IS-IS)协议,或其它通告协议把MIP1的地址以及MIP1用于检测BIER转发表的指示通告给网络中的其它BIER交换机,其中,MIP1的地址占用六个字节,MIP1用于检测BIER转发表的指示占用一个比特。Exemplarily, the address of the MIP1 is the MAC address of the port 1 of the BIER switch 7 00-11-22-00-00-71, and the BIER switch 7 can pass the Open Shortest Path First (OSPF). The protocol, or the Intermediate System to Intermediate System (IS-IS) protocol, or other advertising protocol advertises the address of the MIP1 and the indication of the MIP1 used to detect the BIER forwarding table to other BIER switches in the network. The address of MIP1 occupies six bytes, and the indication used by MIP1 to detect the BIER forwarding table occupies one bit.
步骤12:BIER二层网络中BIER交换机7之外的其它BIER交换机收到BIER交换机7通告的MIP1地址以及MIP1用于检测BIER转发表的指示后,把MIP1地址添加到地址过滤表,使得MIP1地址对应于BIER转发表。Step 12: After receiving the MIP1 address advertised by the BIER switch 7 and the MIP1 indication for detecting the BIER forwarding table, the BIER switch other than the BIER switch 7 in the BIER Layer 2 network adds the MIP1 address to the address filtering table to make the MIP1 address. Corresponds to the BIER forwarding table.
步骤13:网络操作员启动MEP1到MIP1的环回检测功能后,MEP1发出目的MAC地址为MIP1地址00-11-22-00-00-71的环回检测报文。Step 13: After the network operator initiates the loopback detection function of MEP1 to MIP1, MEP1 sends a loopback detection packet whose destination MAC address is MIP1 address 00-11-22-00-00-71.
MEP1发出的环回检测报文携带用于BIER转发的BIER标签和比特掩码,其中,比特掩码的取值应指示BIER交换机沿待检测传输路径转发环回检测报文。The loopback detection packet sent by the MEP1 carries the BIER label and the bit mask for the BIER forwarding. The value of the bit mask should indicate that the BIER switch forwards the loopback detection packet along the to-be-detected transmission path.
步骤14:各BIER交换机收到环回检测报文后,依据地址过滤表选择BIER转发表进行报文转发,直到BIER交换机7根据环回检测报文的目的MAC地址终结该报文。Step 14: After receiving the loopback detection packet, each BIER switch selects the BIER forwarding table according to the address filtering table to forward the packet until the BIER switch 7 terminates the packet according to the destination MAC address of the loopback detection packet.
具体地说,BIER交换机2收到MEP1发出的环回检测报文后,基于报文的目的MAC地址00-11-22-00-00-71查找地址过滤表,依据地址过滤表选择BIER转发,于是BIER交换机2基于报文携带的BIER标签和比特掩码对报文进行BIER转发,发往它的下一跳BIER交换机4。Specifically, after receiving the loopback detection packet sent by the MEP1, the BIER switch 2 searches the address filtering table based on the destination MAC address of the packet 00-11-22-00-00-71, and selects the BIER forwarding according to the address filtering table. The BIER switch 2 then forwards the packet to the next hop BIER switch 4 based on the BIER tag and the bit mask carried in the packet.
BIER交换机4收到BIER交换机2转发过来的环回检测报文后,基于报文的目的MAC 地址00-11-22-00-00-71查找地址过滤表,依据地址过滤表选择BIER转发,于是BIER交换机4基于报文携带的BIER标签和比特掩码对报文进行BIER转发,发往它的下一跳BIER交换机7。After receiving the loopback detection packet forwarded by the BIER switch 2, the BIER switch 4 is based on the destination MAC address of the packet. The address 00-11-22-00-00-71 looks up the address filtering table, and selects the BIER forwarding according to the address filtering table. Then, the BIER switch 4 forwards the packet based on the BIER tag and the bit mask carried in the packet, and sends it to the BIER. Next hop BIER switch 7.
由于BIER交换机7配置了MIP,所以BIER交换机7收到BIER交换机4转发过来的环回检测报文后,会把报文的目的MAC地址00-11-22-00-00-71与BIER交换机7上所配置的MIP1的地址进行比较,比较的结果是报文的目的MAC地址与MIP1的地址一致,所以BIER交换机7不再继续转发环回检测报文,环回检测报文将由MIP1终结并进一步地处理。Since the BIER switch 7 is configured with the MIP, the BIER switch 7 receives the loopback detection packet forwarded by the BIER switch 4, and then the destination MAC address of the packet is 00-11-22-00-00-71 and the BIER switch 7 The MIP1 address is compared. The result is that the destination MAC address of the packet is the same as the MIP1 address. Therefore, the BIER switch 7 does not forward the loopback detection packet. The loopback detection packet is terminated by MIP1 and further Ground treatment.
实施例二Embodiment 2
图4是本公开实施例二的BIER二层网络中的环回检测的实施方式示意图,如图4所示,BIER二层网络包含16个BIER交换机,这16个BIER交换机分别为BIER交换机1、BIER交换机2、BIER交换机3、BIER交换机4、BIER交换机5、BIER交换机6、BIER交换机7、BIER交换机8、BIER交换机9、BIER交换机10、BIER交换机11、BIER交换机12、BIER交换机13、BIER交换机14、BIER交换机15和BIER交换机16;上述16个BIER交换机为既支持BIER转发又支持MAC转发的交换机,从BIER交换机1经过BIER交换机2、BIER交换机4、BIER交换机7、BIER交换机11后到达BIER交换机15的基于BIER转发的传输路径为待检测传输路径。4 is a schematic diagram of an implementation of loopback detection in a BIER Layer 2 network according to Embodiment 2 of the present disclosure. As shown in FIG. 4, the BIER Layer 2 network includes 16 BIER switches, and the 16 BIER switches are respectively BIER switches. BIER switch 2, BIER switch 3, BIER switch 4, BIER switch 5, BIER switch 6, BIER switch 7, BIER switch 8, BIER switch 9, BIER switch 10, BIER switch 11, BIER switch 12, BIER switch 13, BIER switch 14. BIER switch 15 and BIER switch 16; the above 16 BIER switches are switches that support both BIER forwarding and MAC forwarding, and arrive at BIER from BIER switch 1 through BIER switch 2, BIER switch 4, BIER switch 7, BIER switch 11 The BIER-based forwarding transmission path of the switch 15 is the transmission path to be detected.
网络操作员在待检测传输路径上配置了两个MEP,其中,在BIER交换机1的端口1上配置了MEP1,在BIER交换机15的端口1上配置了MEP2;另外,网络操作员在BIER交换机4的端口1上配置了用于检测BIER转发表的MIP1,在BIER交换机7的端口1上配置了用于检测BIER转发表的MIP2。The network operator configures two MEPs 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, and network operator is on BIER switch 4 MIP1 for detecting the BIER forwarding table is configured on port 1, and MIP2 for detecting the BIER forwarding table is configured on port 1 of the BIER switch 7.
在一个实现方式中,从MEP1到MIP2的基于BIER转发的环回检测主要包括如下步骤:In an implementation manner, the BIER forwarding-based loopback detection from MEP1 to MIP2 mainly includes the following steps:
步骤21:网络操作员在BIER交换机7的端口1上配置了用于检测BIER转发表的MIP2后,BIER交换机7向BIER二层网络的其它所有网络节点通告MIP2的地址以及MIP2用于检测BIER转发表的指示;同样地,BIER交换机4也会向BIER二层网络的其它所有网络节点通告MIP1的地址以及MIP1用于检测BIER转发表的指示。Step 21: After the network operator configures the MIP2 for detecting the BIER forwarding table on the port 1 of the BIER switch 7, the BIER switch 7 advertises the address of the MIP2 to all other network nodes of the BIER layer 2 network, and the MIP2 is used to detect the BIER switch. The instructions issued; similarly, the BIER switch 4 also advertises the address of the MIP1 to all other network nodes of the BIER Layer 2 network and the indication that the MIP1 is used to detect the BIER forwarding table.
这里,MIP2的地址即为BIER交换机7的端口1的MAC地址00-11-22-00-00-71,BIER交换机7可通过OSPF协议,或IS-IS协议,或其它通告协议把MIP2的地址以及MIP2用于检测BIER转发表的指示通告给网络中的其它BIER交换机,其中,MIP2的地址占用六个字节,MIP2用于检测BIER转发表的指示占用一个比特。BIER交换机4也采用同样的方法向外通告MIP1的地址和MIP1用于检测BIER转发表的指示。Here, the address of the MIP2 is the MAC address 00-11-22-00-00-71 of the port 1 of the BIER switch 7, and the BIER switch 7 can set the address of the MIP2 through the OSPF protocol, or the IS-IS protocol, or other notification protocol. And the indication that the MIP2 is used to detect the BIER forwarding table is advertised to other BIER switches in the network, where the address of the MIP2 occupies six bytes, and the indication that the MIP2 uses to detect the BIER forwarding table occupies one bit. The BIER switch 4 also uses the same method to advertise the address of MIP1 and the indication that MIP1 is used to detect the BIER forwarding table.
步骤22:BIER二层网络中BIER交换机7之外的其它BIER交换机收到BIER交换机7通告的MIP2地址以及MIP2用于检测BIER转发表的指示后,把MIP2地址添加到地址过滤表,使得MIP2地址对应于BIER转发表。同样地,BIER二层网络中BIER交换机4之外的其它BIER交换机收到BIER交换机4通告的MIP1地址以及MIP1用于检测BIER转发表的指示后,把MIP1地址添加到地址过滤表,使得MIP1地址对应于BIER转发表。Step 22: After receiving the MIP2 address advertised by the BIER switch 7 and the MIP2 indication for detecting the BIER forwarding table, the BIER switch other than the BIER switch 7 in the BIER Layer 2 network adds the MIP2 address to the address filtering table to make the MIP2 address. Corresponds to the BIER forwarding table. Similarly, after the BIER switch other than the BIER switch 4 in the BIER Layer 2 network receives the MIP1 address advertised by the BIER switch 4 and the MIP1 indicates the BIER forwarding table, the MIP1 address is added to the address filter table to make the MIP1 address. Corresponds to the BIER forwarding table.
步骤23:网络操作员启动MEP1到MIP2的环回检测功能后,MEP1发出目的MAC地 址为MIP2地址00-11-22-00-00-71的环回检测报文。Step 23: After the network operator initiates the loopback detection function of MEP1 to MIP2, MEP1 issues the destination MAC address. The loopback detection packet is the MIP2 address 00-11-22-00-00-71.
MEP1发出的环回检测报文携带用于BIER转发的BIER标签和比特掩码,其中,比特掩码的取值应指示BIER交换机沿待检测传输路径转发环回检测报文。The loopback detection packet sent by the MEP1 carries the BIER label and the bit mask for the BIER forwarding. The value of the bit mask should indicate that the BIER switch forwards the loopback detection packet along the to-be-detected transmission path.
步骤24:各BIER交换机收到环回检测报文后,依据地址过滤表选择BIER转发表进行报文转发,直到BIER交换机7根据环回检测报文的目的MAC地址终结该报文。Step 24: After receiving the loopback detection packet, each BIER switch selects the BIER forwarding table according to the address filtering table to forward the packet until the BIER switch 7 terminates the packet according to the destination MAC address of the loopback detection packet.
具体地说,BIER交换机2收到MEP1发出的环回检测报文后,基于报文的目的MAC地址00-11-22-00-00-71查找地址过滤表,依据地址过滤表选择BIER转发,于是BIER交换机2基于报文携带的BIER标签和比特掩码对报文进行BIER转发,发往它的下一跳BIER交换机4。Specifically, after receiving the loopback detection packet sent by the MEP1, the BIER switch 2 searches the address filtering table based on the destination MAC address of the packet 00-11-22-00-00-71, and selects the BIER forwarding according to the address filtering table. The BIER switch 2 then forwards the packet to the next hop BIER switch 4 based on the BIER tag and the bit mask carried in the packet.
由于BIER交换机4配置了MIP,所以BIER交换机4收到BIER交换机2转发过来的环回检测报文后,会把报文的目的MAC地址00-11-22-00-00-71与BIER交换机4上所配置的MIP1的地址进行比较,比较的结果是报文的目的MAC地址与MIP1的地址不一致,所以BIER交换机4会继续转发环回检测报文,也即基于报文的目的MAC地址00-11-22-00-00-71查找地址过滤表,依据地址过滤表选择BIER转发,于是BIER交换机4基于报文携带的BIER标签和比特掩码对报文进行BIER转发,发往它的下一跳BIER交换机7。Since the BIER switch 4 is configured with the MIP, the BIER switch 4 receives the loopback detection packet forwarded by the BIER switch 2, and then the destination MAC address of the packet is 00-11-22-00-00-71 and the BIER switch 4 The IP address of the MIP1 is compared. The result of the comparison is that the destination MAC address of the packet is inconsistent with the address of the MIP1. Therefore, the BIER switch 4 will continue to forward the loopback detection packet, that is, based on the destination MAC address of the packet. 11-22-00-00-71 finds the address filtering table and selects the BIER forwarding according to the address filtering table. Then, the BIER switch 4 forwards the packet based on the BIER tag and the bit mask carried in the packet, and sends it to the next BIER. Jump BIER switch 7.
由于BIER交换机7配置了MIP,所以BIER交换机7收到BIER交换机4转发过来的环回检测报文后,会把报文的目的MAC地址00-11-22-00-00-71与BIER交换机7上所配置的MIP1的地址进行比较,比较的结果是报文的目的MAC地址与MIP1的地址一致,所以BIER交换机7不再继续转发环回检测报文,环回检测报文将由MIP1终结并进一步地处理。Since the BIER switch 7 is configured with the MIP, the BIER switch 7 receives the loopback detection packet forwarded by the BIER switch 4, and then the destination MAC address of the packet is 00-11-22-00-00-71 and the BIER switch 7 The MIP1 address is compared. The result is that the destination MAC address of the packet is the same as the MIP1 address. Therefore, the BIER switch 7 does not forward the loopback detection packet. The loopback detection packet is terminated by MIP1 and further Ground treatment.
实施例三Embodiment 3
图5是本公开实施例三的BIER二层网络中的环回检测的实施方式示意图,如图5所示,BIER二层网络包含16个BIER交换机,这16个BIER交换机分别为BIER交换机1、BIER交换机2、BIER交换机3、BIER交换机4、BIER交换机5、BIER交换机6、BIER交换机7、BIER交换机8、BIER交换机9、BIER交换机10、BIER交换机11、BIER交换机12、BIER交换机13、BIER交换机14、BIER交换机15和BIER交换机16;上述16个BIER交换机为既支持BIER转发又支持MAC转发的交换机,从BIER交换机1经过BIER交换机2、BIER交换机4、BIER交换机7、BIER交换机11后到达BIER交换机15的基于BIER转发的传输路径为待检测传输路径。5 is a schematic diagram of an implementation of loopback detection in a BIER Layer 2 network according to Embodiment 3 of the present disclosure. As shown in FIG. 5, the BIER Layer 2 network includes 16 BIER switches, and the 16 BIER switches are respectively BIER switches. BIER switch 2, BIER switch 3, BIER switch 4, BIER switch 5, BIER switch 6, BIER switch 7, BIER switch 8, BIER switch 9, BIER switch 10, BIER switch 11, BIER switch 12, BIER switch 13, BIER switch 14. BIER switch 15 and BIER switch 16; the above 16 BIER switches are switches that support both BIER forwarding and MAC forwarding, and arrive at BIER from BIER switch 1 through BIER switch 2, BIER switch 4, BIER switch 7, BIER switch 11 The BIER-based forwarding transmission path of the switch 15 is the transmission path to be detected.
网络操作员在待检测传输路径上配置了两个MEP,其中,在BIER交换机1的端口1上配置了MEP1,在BIER交换机15的端口1上配置了MEP2;另外,网络操作员在BIER交换机7的端口1上配置了用于检测MAC转发表的MIP1。The network operator configures two MEPs 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; in addition, the network operator is on BIER switch 7 MIP1 for detecting the MAC forwarding table is configured on port 1.
在一个实现方式中,从MEP1到MIP1的基于MAC转发的环回检测主要包括如下步骤:In an implementation manner, the MAC forwarding-based loopback detection from MEP1 to MIP1 mainly includes the following steps:
步骤31:网络操作员在BIER交换机7的端口1上配置了用于检测MAC转发表的MIP1后,BIER交换机7向其它所有网络节点通告MIP1的地址以及MIP1用于检测MAC转发表的指示。Step 31: After the network operator configures the MIP1 for detecting the MAC forwarding table on the port 1 of the BIER switch 7, the BIER switch 7 notifies all other network nodes of the address of the MIP1 and the indication that the MIP1 is used to detect the MAC forwarding table.
示例性地,MIP1的地址即为BIER交换机7的端口1的MAC地址00-11-22-00-00-71, BIER交换机7可通过OSPF协议,或IS-IS协议,或其它通告协议把MIP1的地址以及MIP1用于检测MAC转发表的指示通告给BIER二层网络中的其它BIER交换机,其中,MIP1的地址占用六个字节,MIP1用于检测MAC转发表的指示占用一个比特。Exemplarily, the address of MIP1 is the MAC address of port 1 of BIER switch 7 00-11-22-00-00-71, The BIER switch 7 can advertise the address of the MIP1 and the indication of the MIP1 for detecting the MAC forwarding table to other BIER switches in the BIER Layer 2 network through the OSPF protocol, or the IS-IS protocol, or other advertising protocols, where the address of the MIP1 is occupied. Six bytes, the indication that MIP1 uses to detect the MAC forwarding table occupies one bit.
步骤32:BIER二层网络中BIER交换机7之外的其它BIER交换机收到BIER交换机7通告的MIP1地址以及MIP1用于检测MAC转发表的指示后,把MIP1地址添加到地址过滤表,使得MIP1地址对应于MAC转发表。Step 32: After receiving the MIP1 address advertised by the BIER switch 7 and the MIP1 indicating the MAC forwarding table, the BIER switch in the BIER Layer 2 network adds the MIP1 address to the address filtering table to make the MIP1 address. Corresponds to the MAC forwarding table.
步骤33:网络操作员启动MEP1到MIP1的环回检测功能后,MEP1发出目的MAC地址为MIP1地址00-11-22-00-00-71的环回检测报文。Step 33: After the network operator initiates the loopback detection function of MEP1 to MIP1, MEP1 sends a loopback detection packet whose destination MAC address is MIP1 address 00-11-22-00-00-71.
步骤34:各BIER交换机收到环回检测报文后,依据地址过滤表选择MAC转发表进行报文转发,直到BIER交换机7根据环回检测报文的目的MAC地址终结该报文。Step 34: After receiving the loopback detection packet, each BIER switch selects a MAC forwarding table according to the address filtering table to forward the packet until the BIER switch 7 terminates the packet according to the destination MAC address of the loopback detection packet.
具体地说,BIER交换机2收到MEP1发出的环回检测报文后,基于报文的目的MAC地址00-11-22-00-00-71查找地址过滤表,依据地址过滤表选择MAC转发,于是BIER交换机2基于报文的目的MAC地址对报文进行MAC转发,发往它的下一跳BIER交换机4。Specifically, after receiving the loopback detection packet sent by the MEP1, the BIER switch 2 searches the address filtering table based on the destination MAC address of the packet 00-11-22-00-00-71, and selects the MAC forwarding according to the address filtering table. The BIER switch 2 then forwards the packet based on the destination MAC address of the packet and sends it to its next hop BIER switch 4.
BIER交换机4收到BIER交换机2转发过来的环回检测报文后,基于报文的目的MAC地址00-11-22-00-00-71查找地址过滤表,依据地址过滤表选择MAC转发,于是BIER交换机4基于报文的目的MAC地址对报文进行MAC转发,发往它的下一跳BIER交换机7。After receiving the loopback detection packet forwarded by the BIER switch 2, the BIER switch 4 searches the address filtering table based on the destination MAC address of the packet 00-11-22-00-00-71, and selects the MAC forwarding according to the address filtering table. The BIER switch 4 forwards the packet based on the destination MAC address of the packet and sends it to its next hop BIER switch 7.
由于BIER交换机7配置了MIP,所以BIER交换机7收到BIER交换机4转发过来的环回检测报文后,会把报文的目的MAC地址00-11-22-00-00-71与BIER交换机7上所配置的MIP1的地址进行比较,比较的结果是报文的目的MAC地址与MIP1的地址一致,所以BIER交换机7不再继续转发环回检测报文,环回检测报文将由MIP1终结并进一步地处理。Since the BIER switch 7 is configured with the MIP, the BIER switch 7 receives the loopback detection packet forwarded by the BIER switch 4, and then the destination MAC address of the packet is 00-11-22-00-00-71 and the BIER switch 7 The MIP1 address is compared. The result is that the destination MAC address of the packet is the same as the MIP1 address. Therefore, the BIER switch 7 does not forward the loopback detection packet. The loopback detection packet is terminated by MIP1 and further Ground treatment.
实施例四Embodiment 4
图6是本公开实施例四的BIER二层网络中的环回检测的实施方式示意图,如图6所示,BIER二层网络包含16个BIER交换机,这16个BIER交换机分别为BIER交换机1、BIER交换机2、BIER交换机3、BIER交换机4、BIER交换机5、BIER交换机6、BIER交换机7、BIER交换机8、BIER交换机9、BIER交换机10、BIER交换机11、BIER交换机12、BIER交换机13、BIER交换机14、BIER交换机15和BIER交换机16;上述16个BIER交换机为既支持BIER转发又支持MAC转发的交换机,从BIER交换机1经过BIER交换机2、BIER交换机4、BIER交换机7、BIER交换机11后到达BIER交换机15的基于BIER转发的传输路径为待检测传输路径。6 is a schematic diagram of an embodiment of loopback detection in a BIER Layer 2 network according to Embodiment 4 of the present disclosure. As shown in FIG. 6, the BIER Layer 2 network includes 16 BIER switches, and the 16 BIER switches are respectively BIER switches. BIER switch 2, BIER switch 3, BIER switch 4, BIER switch 5, BIER switch 6, BIER switch 7, BIER switch 8, BIER switch 9, BIER switch 10, BIER switch 11, BIER switch 12, BIER switch 13, BIER switch 14. BIER switch 15 and BIER switch 16; the above 16 BIER switches are switches that support both BIER forwarding and MAC forwarding, and arrive at BIER from BIER switch 1 through BIER switch 2, BIER switch 4, BIER switch 7, BIER switch 11 The BIER-based forwarding transmission path of the switch 15 is the transmission path to be detected.
网络操作员在待检测传输路径上配置了两个MEP,其中,在BIER交换机1的端口1上配置了MEP1,在BIER交换机15的端口1上配置了MEP2;另外,网络操作员在BIER交换机4的端口1上配置了用于检测MAC转发表的MIP1,在BIER交换机7的端口1上配置了用于检测MAC转发表的MIP2。The network operator configures two MEPs 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, and network operator is on BIER switch 4 MIP1 for detecting the MAC forwarding table is configured on port 1, and MIP2 for detecting the MAC forwarding table is configured on port 1 of the BIER switch 7.
在一个实现方式中,从MEP1到MIP2的基于MAC转发的环回检测主要包括如下步骤:In an implementation manner, the MAC forwarding-based loopback detection from MEP1 to MIP2 mainly includes the following steps:
步骤41:网络操作员在BIER交换机7的端口1上配置了用于检测MAC转发表的MIP2后,BIER交换机7向BIER二层网络的其它所有网络节点通告MIP2的地址以及MIP2用于 检测MAC转发表的指示;同样地,BIER交换机4也会向BIER二层网络的其它所有网络节点通告MIP1的地址以及MIP1用于检测MAC转发表的指示。Step 41: After the network operator configures the MIP2 for detecting the MAC forwarding table on the port 1 of the BIER switch 7, the BIER switch 7 advertises the address of the MIP2 to all other network nodes of the BIER Layer 2 network and the MIP2 is used for The indication of the MAC forwarding table is detected; likewise, the BIER switch 4 also advertises the address of the MIP1 to all other network nodes of the BIER Layer 2 network and the indication that the MIP1 is used to detect the MAC forwarding table.
这里,MIP2的地址即为BIER交换机7的端口1的MAC地址00-11-22-00-00-71,BIER交换机7可通过OSPF协议,或IS-IS协议,或其它通告协议把MIP2的地址以及MIP2用于检测MAC转发表的指示通告给网络中的其它BIER交换机,其中,MIP2的地址占用六个字节,MIP2用于检测BIER转发表的指示占用一个比特。BIER交换机4也采用同样的方法向外通告MIP1的地址和MIP1用于检测MAC转发表的指示。Here, the address of the MIP2 is the MAC address 00-11-22-00-00-71 of the port 1 of the BIER switch 7, and the BIER switch 7 can set the address of the MIP2 through the OSPF protocol, or the IS-IS protocol, or other notification protocol. And the indication that the MIP2 is used to detect the MAC forwarding table is advertised to other BIER switches in the network, where the address of the MIP2 occupies six bytes, and the indication that the MIP2 uses to detect the BIER forwarding table occupies one bit. The BIER switch 4 also uses the same method to advertise the address of MIP1 and the indication that MIP1 is used to detect the MAC forwarding table.
步骤42:BIER二层网络中BIER交换机7之外的其它BIER交换机收到BIER交换机7通告的MIP2地址以及MIP2用于检测MAC转发表的指示后,把MIP2地址添加到地址过滤表,使得MIP2地址对应于MAC转发表。同样地,BIER二层网络中BIER交换机4之外的其它BIER交换机收到BIER交换机4通告的MIP1地址以及MIP1用于检测MAC转发表的指示后,把MIP1地址添加到地址过滤表,使得MIP1地址对应于MAC转发表。Step 42: After the BIER switch other than the BIER switch 7 in the BIER Layer 2 network receives the MIP2 address advertised by the BIER switch 7, and the MIP2 indicates the MAC forwarding table, the MIP2 address is added to the address filtering table to make the MIP2 address. Corresponds to the MAC forwarding table. Similarly, after the BIER switch other than the BIER switch 4 in the BIER Layer 2 network receives the MIP1 address advertised by the BIER switch 4 and the MIP1 is used to detect the MAC forwarding table, the MIP1 address is added to the address filtering table to make the MIP1 address. Corresponds to the MAC forwarding table.
步骤43:网络操作员启动MEP1到MIP2的环回检测功能后,MEP1发出目的MAC地址为MIP2地址00-11-22-00-00-71的环回检测报文。Step 43: After the network operator initiates the loopback detection function of MEP1 to MIP2, MEP1 sends a loopback detection packet whose destination MAC address is MIP2 address 00-11-22-00-00-71.
步骤44:各BIER交换机收到环回检测报文后,依据地址过滤表选择MAC转发表进行报文转发,直到BIER交换机7根据环回检测报文的目的MAC地址终结该报文。Step 44: After receiving the loopback detection packet, each BIER switch selects a MAC forwarding table according to the address filtering table to forward the packet until the BIER switch 7 terminates the packet according to the destination MAC address of the loopback detection packet.
具体地说,BIER交换机2收到MEP1发出的环回检测报文后,基于报文的目的MAC地址00-11-22-00-00-71查找地址过滤表,依据地址过滤表选择MAC转发,于是BIER交换机2基于报文的目的MAC地址对报文进行MAC转发,发往它的下一跳BIER交换机4。Specifically, after receiving the loopback detection packet sent by the MEP1, the BIER switch 2 searches the address filtering table based on the destination MAC address of the packet 00-11-22-00-00-71, and selects the MAC forwarding according to the address filtering table. The BIER switch 2 then forwards the packet based on the destination MAC address of the packet and sends it to its next hop BIER switch 4.
由于BIER交换机4配置了MIP,所以BIER交换机4收到BIER交换机2转发过来的环回检测报文后,会把报文的目的MAC地址00-11-22-00-00-71与BIER交换机4上所配置的MIP1的地址进行比较,比较的结果是报文的目的MAC地址与MIP1的地址不一致,所以BIER交换机4会继续转发环回检测报文,即基于报文的目的MAC地址00-11-22-00-00-71查找地址过滤表,依据地址过滤表选择MAC转发,于是BIER交换机4基于报文的目的MAC地址对报文进行MAC转发,发往它的下一跳BIER交换机7。Since the BIER switch 4 is configured with the MIP, the BIER switch 4 receives the loopback detection packet forwarded by the BIER switch 2, and then the destination MAC address of the packet is 00-11-22-00-00-71 and the BIER switch 4 The IP address of the MIP1 is compared. The result is that the destination MAC address of the packet is inconsistent with the address of the MIP1. Therefore, the BIER switch 4 will continue to forward the loopback detection packet, that is, based on the destination MAC address of the packet. -22-00-00-71 searches the address filtering table and selects MAC forwarding according to the address filtering table. Then, the BIER switch 4 forwards the packet based on the destination MAC address of the packet and sends it to its next hop BIER switch 7.
由于BIER交换机7配置了MIP,所以BIER交换机7收到BIER交换机4转发过来的环回检测报文后,会把报文的目的MAC地址00-11-22-00-00-71与BIER交换机7上所配置的MIP1的地址进行比较,比较的结果是报文的目的MAC地址与MIP1的地址一致,所以BIER交换机7不再继续转发环回检测报文,环回检测报文将由MIP1终结并进一步地处理。Since the BIER switch 7 is configured with the MIP, the BIER switch 7 receives the loopback detection packet forwarded by the BIER switch 4, and then the destination MAC address of the packet is 00-11-22-00-00-71 and the BIER switch 7 The MIP1 address is compared. The result is that the destination MAC address of the packet is the same as the MIP1 address. Therefore, the BIER switch 7 does not forward the loopback detection packet. The loopback detection packet is terminated by MIP1 and further Ground treatment.
实施例五Embodiment 5
针对本公开上述实施例的二层网络的环回检测装置,本公开实施例还提出了一种二层网络。For the loopback detection device of the Layer 2 network of the foregoing embodiment of the present disclosure, the embodiment of the present disclosure further proposes a Layer 2 network.
所述二层网络中的任意一个网络节点,用于在配置用于检测位索引显式复制BIER转发表的维护中间点MIP或用于检测媒质接入控制MAC转发表的MIP后,向二层网络中的其余所有网络节点发送用于检测BIER转发表的MIP地址或用于检测MAC转发表的MIP地址;Any one of the network nodes of the Layer 2 network is configured to go to the second layer after configuring the maintenance intermediate point MIP for detecting the bit index explicitly copying the BIER forwarding table or the MIP for detecting the medium access control MAC forwarding table. All other network nodes in the network send a MIP address for detecting the BIER forwarding table or a MIP address for detecting the MAC forwarding table;
所述二层网络中的维护端点MEP,用于在启动MEP到目标MIP的环回检测功能后,发 出携带有目标MIP地址的环回检测报文;The maintenance endpoint MEP in the Layer 2 network is used to initiate the loopback detection function of the MEP to the target MIP. The loopback detection packet carrying the target MIP address is sent out;
所述二层网络中的任意一个网络节点,用于在收到所述环回检测报文后,在本网络节点未配置MIP,或配置的MIP的地址与所述目标MIP地址不一致时,依据所述目标MIP地址对所述环回检测报文进行基于BIER转发表的转发或基于MAC转发表的转发。The network node of the Layer 2 network is configured to: after receiving the loopback detection message, if the MIP address is not configured on the network node, or the configured MIP address is inconsistent with the target MIP address, The target MIP address performs forwarding based on the BIER forwarding table or forwarding based on the MAC forwarding table on the loopback detection packet.
进一步地,所述二层网络中的任意一个网络节点,还用于在收到所述环回检测报文后,在本网络节点配置的MIP的地址与所述目标MIP地址一致时,终结所述环回检测报文。Further, any one of the network nodes of the Layer 2 network is further configured to: after receiving the loopback detection message, when the address of the MIP configured by the network node is consistent with the target MIP address, The loopback detection message is described.
进一步地,所述二层网络中的任意一个网络节点,还用于在接收到用于检测BIER转发表的MIP地址时,将接收到的MIP地址添加到地址过滤表,并将接收到的MIP地址配置为基于BIER转发表转发的MIP地址;在接收到用于检测MAC转发表的MIP地址时,将接收到的MIP地址添加到地址过滤表,并将接收到的MIP地址配置为基于MAC转发表转发的MIP地址;Further, any one of the network nodes in the Layer 2 network is further configured to: when receiving the MIP address for detecting the BIER forwarding table, add the received MIP address to the address filtering table, and receive the received MIP. The address is configured as a MIP address forwarded based on the BIER forwarding table; when receiving the MIP address for detecting the MAC forwarding table, the received MIP address is added to the address filtering table, and the received MIP address is configured to be based on the MAC address. Publish the forwarded MIP address;
相应地,所述二层网络中的任意一个网络节点,用于通过比较所述目标MIP地址与本网络节点的地址过滤表中的MIP地址,对所述环回检测报文选择进行基于BIER转发表的转发或基于MAC转发表的转发。Correspondingly, any one of the network nodes of the Layer 2 network is configured to perform the BIER-based selection of the loopback detection message by comparing the target MIP address with the MIP address in the address filtering table of the local network node. Published forwarding or forwarding based on MAC forwarding table.
这里,位于同一条环回检测报文传输路径上的MIP同时配置为用于检测BIER转发表的MIP或用于检测MAC转发表的MIP。Here, the MIP located on the same loopback detection message transmission path is configured as a MIP for detecting the BIER forwarding table or a MIP for detecting the MAC forwarding table.
这里,所述目标MIP的地址为目标MIP所在端口的单播MAC地址。Here, the address of the target MIP is the unicast MAC address of the port where the target MIP is located.
在实际应用中,二层网络中的任意一个网络节点可以是既支持BIER转发又支持MAC转发的交换机等设备。In practical applications, any one of the network nodes in the Layer 2 network may be a device that supports both BIER forwarding and MAC forwarding.
本领域内的技术人员应明白,本公开的实施例可提供为方法、系统、或计算机程序产品。因此,本公开可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present disclosure can be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware aspects. Moreover, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本公开是参照根据本公开实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present disclosure. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多 个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions are provided for implementing one or more blocks in a flow or a flow and/or block diagram of the flowchart The steps of the function specified in the box.
以上所述,仅为本公开的较佳实施例而已,并非用于限定本公开的保护范围。 The above description is only for the preferred embodiments of the present disclosure, and is not intended to limit the scope of the disclosure.

Claims (11)

  1. 一种二层网络的环回检测方法,其中,所述方法包括:A loopback detection method for a layer 2 network, where the method includes:
    二层网络中的任意一个网络节点配置用于检测位索引显式复制BIER转发表的维护中间点MIP或用于检测媒质接入控制MAC转发表的MIP后,向二层网络中的其余所有网络节点发送用于检测BIER转发表的MIP地址或用于检测MAC转发表的MIP地址;Any one of the network nodes in the Layer 2 network is configured to detect the bit intermediate to explicitly copy the maintenance intermediate point MIP of the BIER forwarding table or the MIP for detecting the medium access control MAC forwarding table, and then to all the remaining networks in the Layer 2 network. The node sends a MIP address for detecting a BIER forwarding table or a MIP address for detecting a MAC forwarding table;
    在启动维护端点MEP到目标MIP的环回检测功能后,MEP发出携带有目标MIP地址的环回检测报文;After the loopback detection function of the maintenance MIP to the target MIP is started, the MEP sends a loopback detection packet carrying the target MIP address.
    所述二层网络中的任意一个网络节点在收到所述环回检测报文后,在本网络节点未配置MIP,或配置的MIP的地址与所述目标MIP地址不一致时,依据所述目标MIP地址对所述环回检测报文进行基于BIER转发表的转发或基于MAC转发表的转发。After receiving the loopback detection message, the network node does not configure the MIP on the network node, or the configured MIP address is inconsistent with the target MIP address, according to the target. The MIP address performs forwarding based on the BIER forwarding table or forwarding based on the MAC forwarding table on the loopback detection message.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:所述二层网络中的任意一个网络节点在收到所述环回检测报文后,在本网络节点配置的MIP的地址与所述目标MIP地址一致时,终结所述环回检测报文。The method according to claim 1, wherein the method further comprises: after receiving the loopback detection message, any one of the network nodes in the layer 2 network has an address of a MIP configured on the network node. When the target MIP addresses are the same, the loopback detection packet is terminated.
  3. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    所述二层网络中的任意一个网络节点在接收到用于检测BIER转发表的MIP地址时,将接收到的MIP地址添加到地址过滤表,并将接收到的MIP地址配置为基于BIER转发表转发的MIP地址;所述二层网络中的任意一个网络节点在接收到用于检测MAC转发表的MIP地址时,将接收到的MIP地址添加到地址过滤表,并将接收到的MIP地址配置为基于MAC转发表转发的MIP地址;When receiving the MIP address for detecting the BIER forwarding table, any one of the Layer 2 networks adds the received MIP address to the address filtering table, and configures the received MIP address to be based on the BIER forwarding table. Forwarding MIP address; when receiving the MIP address for detecting the MAC forwarding table, any one of the Layer 2 networks adds the received MIP address to the address filtering table, and configures the received MIP address. MIP address forwarded based on the MAC forwarding table;
    相应地,所述依据所述目标MIP地址对所述环回检测报文进行基于BIER转发表的转发或基于MAC转发表的转发,包括:Correspondingly, the loopback detection packet is forwarded based on the BIER forwarding table or forwarded based on the MAC forwarding table according to the target MIP address, and includes:
    本网络节点通过比较所述目标MIP地址与地址过滤表中的MIP地址,对所述环回检测报文选择进行基于BIER转发表的转发或基于MAC转发表的转发。The network node selects the BIER forwarding table based forwarding or the MAC forwarding table based forwarding by comparing the target MIP address with the MIP address in the address filtering table.
  4. 根据权利要求1所述的方法,其中,所述方法还包括:将位于同一条环回检测报文传输路径上的MIP同时配置为用于检测BIER转发表的MIP或用于检测MAC转发表的MIP。The method according to claim 1, wherein the method further comprises: simultaneously configuring the MIP located on the same loopback detection message transmission path as a MIP for detecting a BIER forwarding table or for detecting a MAC forwarding table. MIP.
  5. 根据权利要求1所述的方法,其中,所述目标MIP的地址为目标MIP所在端口的单播MAC地址。The method of claim 1, wherein the address of the target MIP is a unicast MAC address of a port where the target MIP is located.
  6. 一种二层网络,其中,所述二层网络中的任意一个网络节点,设置为在配置用于检测位索引显式复制BIER转发表的维护中间点MIP或用于检测媒质接入控制MAC转发表的MIP后,向二层网络中的其余所有网络节点发送用于检测BIER转发表的MIP地址或用于检测MAC转发表的MIP地址;A Layer 2 network, wherein any one of the Layer 2 networks is configured to maintain a maintenance intermediate point MIP for detecting a bit index explicit copy BIER forwarding table or for detecting a medium access control MAC switch After the published MIP, the MIP address for detecting the BIER forwarding table or the MIP address for detecting the MAC forwarding table is sent to all the remaining network nodes in the Layer 2 network;
    所述二层网络中的维护端点MEP,设置为在启动MEP到目标MIP的环回检测功能后,发出携带有目标MIP地址的环回检测报文;The maintenance endpoint MEP in the Layer 2 network is configured to send a loopback detection packet carrying the target MIP address after the loopback detection function of the MEP to the target MIP is started.
    所述二层网络中的任意一个网络节点,设置为在收到所述环回检测报文后,在本网络 节点未配置MIP,或配置的MIP的地址与所述目标MIP地址不一致时,依据所述目标MIP地址对所述环回检测报文进行基于BIER转发表的转发或基于MAC转发表的转发。Any one of the network nodes in the Layer 2 network is configured to be in the network after receiving the loopback detection packet. When the node is not configured with the MIP, or the configured MIP address is inconsistent with the target MIP address, the loopback detection packet is forwarded based on the BIER forwarding table or forwarded based on the MAC forwarding table according to the target MIP address.
  7. 根据权利要求6所述的装置,其中,所述二层网络中的任意一个网络节点,还设置为在收到所述环回检测报文后,在本网络节点配置的MIP的地址与所述目标MIP地址一致时,终结所述环回检测报文。The apparatus according to claim 6, wherein any one of the network nodes of the Layer 2 network is further configured to: after receiving the loopback detection message, an address of the MIP configured at the local network node and the When the destination MIP addresses are the same, the loopback detection packet is terminated.
  8. 根据权利要求6所述的装置,其中,所述二层网络中的任意一个网络节点,还设置为在接收到用于检测BIER转发表的MIP地址时,将接收到的MIP地址添加到地址过滤表,并将接收到的MIP地址配置为基于BIER转发表转发的MIP地址;在接收到用于检测MAC转发表的MIP地址时,将接收到的MIP地址添加到地址过滤表,并将接收到的MIP地址配置为基于MAC转发表转发的MIP地址;The apparatus according to claim 6, wherein any one of the layer 2 networks is further configured to add the received MIP address to the address filtering when receiving the MIP address for detecting the BIER forwarding table. The table, and the received MIP address is configured as a MIP address forwarded based on the BIER forwarding table; when receiving the MIP address for detecting the MAC forwarding table, the received MIP address is added to the address filtering table, and will be received The MIP address is configured to be based on the MIP address forwarded by the MAC forwarding table;
    相应地,所述二层网络中的任意一个网络节点,设置为通过比较所述目标MIP地址与本网络节点的地址过滤表中的MIP地址,对所述环回检测报文选择进行基于BIER转发表的转发或基于MAC转发表的转发。Correspondingly, any one of the network nodes in the layer 2 network is configured to perform the BIER-based selection of the loopback detection message by comparing the target MIP address with the MIP address in the address filtering table of the local network node. Published forwarding or forwarding based on MAC forwarding table.
  9. 根据权利要求6所述的装置,其中,位于同一条环回检测报文传输路径上的MIP同时配置为用于检测BIER转发表的MIP或用于检测MAC转发表的MIP。The apparatus according to claim 6, wherein the MIP located on the same loopback detection message transmission path is simultaneously configured as a MIP for detecting a BIER forwarding table or a MIP for detecting a MAC forwarding table.
  10. 根据权利要求6所述的装置,其中,所述目标MIP的地址为目标MIP所在端口的单播MAC地址。。The apparatus of claim 6, wherein the address of the target MIP is a unicast MAC address of a port where the target MIP is located. .
  11. 一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行权利要求1至5中任一项所述的方法。 A computer storage medium storing execution instructions for performing the method of any one of claims 1 to 5.
PCT/CN2017/097923 2016-09-01 2017-08-17 Two-layer network, and loopback detection method of two-layer network WO2018040940A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610801076.3 2016-09-01
CN201610801076.3A CN107800581B (en) 2016-09-01 2016-09-01 Two-layer network and loopback detection method thereof

Publications (1)

Publication Number Publication Date
WO2018040940A1 true WO2018040940A1 (en) 2018-03-08

Family

ID=61300033

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/097923 WO2018040940A1 (en) 2016-09-01 2017-08-17 Two-layer network, and loopback detection method of two-layer network

Country Status (2)

Country Link
CN (1) CN107800581B (en)
WO (1) WO2018040940A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113162855A (en) * 2020-01-22 2021-07-23 华为技术有限公司 Multicast message detection method, network equipment and system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311668B (en) * 2019-07-26 2022-03-29 华为技术有限公司 Method, network device and system for processing BIER message
CN111817958B (en) * 2020-06-10 2023-04-07 新华三信息安全技术有限公司 Message forwarding method and network equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820363A (en) * 2009-02-27 2010-09-01 中国电信股份有限公司 Ethernet port loopback detection method and multi-service transport platform
CN102801575A (en) * 2011-05-27 2012-11-28 华为技术有限公司 Loopback detecting method and device
CN102833122A (en) * 2011-06-17 2012-12-19 中兴通讯股份有限公司 Loopback detection method and system
CN103378998A (en) * 2012-04-27 2013-10-30 中兴通讯股份有限公司 Method and device for Ethernet port loopback detection
US20150078380A1 (en) * 2013-09-17 2015-03-19 Cisco Technology, Inc. Bit Indexed Explicit Replication For Layer 2 Networking
CN105791048A (en) * 2016-03-01 2016-07-20 上海斐讯数据通信技术有限公司 Loopback detection method and device and network equipment containing the device

Family Cites Families (7)

* 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
CN100492990C (en) * 2007-02-12 2009-05-27 华为技术有限公司 Method and apparatus for obtaining physical address of Ethernet node
CN101499950B (en) * 2008-01-30 2011-12-28 华为技术有限公司 Service provider backbone transmission ring multicast method, multicast ring network and node equipment
JP2009212875A (en) * 2008-03-05 2009-09-17 Nec Corp Communication device and operation management method used for the same
CN101345711B (en) * 2008-08-13 2012-08-08 成都市华为赛门铁克科技有限公司 Packet processing method, fire wall equipment and network security system
CN101697525B (en) * 2009-10-14 2012-12-19 中兴通讯股份有限公司 Looped network based configuration and data transmission method and system of address forwarding table
CN102571587B (en) * 2012-01-13 2014-11-12 大唐移动通信设备有限公司 Method and equipment for forwarding messages

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820363A (en) * 2009-02-27 2010-09-01 中国电信股份有限公司 Ethernet port loopback detection method and multi-service transport platform
CN102801575A (en) * 2011-05-27 2012-11-28 华为技术有限公司 Loopback detecting method and device
CN102833122A (en) * 2011-06-17 2012-12-19 中兴通讯股份有限公司 Loopback detection method and system
CN103378998A (en) * 2012-04-27 2013-10-30 中兴通讯股份有限公司 Method and device for Ethernet port loopback detection
US20150078380A1 (en) * 2013-09-17 2015-03-19 Cisco Technology, Inc. Bit Indexed Explicit Replication For Layer 2 Networking
CN105791048A (en) * 2016-03-01 2016-07-20 上海斐讯数据通信技术有限公司 Loopback detection method and device and network equipment containing the device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113162855A (en) * 2020-01-22 2021-07-23 华为技术有限公司 Multicast message detection method, network equipment and system
CN113162855B (en) * 2020-01-22 2022-12-27 华为技术有限公司 Multicast message detection method, network equipment and system

Also Published As

Publication number Publication date
CN107800581B (en) 2022-03-18
CN107800581A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
WO2021258754A1 (en) Message indication method and apparatus, and device and storage medium
US11611509B2 (en) Communication method, communications device, and communications system
CA3104756C (en) Loop avoidance communications method, device, and system
US10785095B2 (en) Service fault locating method and apparatus
JP7430224B2 (en) Packet processing methods and gateway devices
WO2018040940A1 (en) Two-layer network, and loopback detection method of two-layer network
US11522792B2 (en) Method for discovering forwarding path and related device thereof
CN106302021B (en) Network flow forwarding abnormity detection method
US9521073B2 (en) Enhanced fine-grained overlay transport virtualization multi-homing using per-network authoritative edge device synchronization
US11582140B2 (en) OAM-based suboptimal ECMP path detection in software-defined fabric
EP3429139A1 (en) Ingress gateway selection for a shortest path bridging network to support inter domain multicast routing
WO2018024189A1 (en) Loopback detection method and apparatus
CN106452992A (en) Remote multi-homing networking method and apparatus

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

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

Country of ref document: EP

Kind code of ref document: A1