WO2024061184A1 - Correspondence acquisition method, parameter notification method, and apparatus, device and medium - Google Patents

Correspondence acquisition method, parameter notification method, and apparatus, device and medium Download PDF

Info

Publication number
WO2024061184A1
WO2024061184A1 PCT/CN2023/119562 CN2023119562W WO2024061184A1 WO 2024061184 A1 WO2024061184 A1 WO 2024061184A1 CN 2023119562 W CN2023119562 W CN 2023119562W WO 2024061184 A1 WO2024061184 A1 WO 2024061184A1
Authority
WO
WIPO (PCT)
Prior art keywords
forwarding device
bfr
anycast
bier
label
Prior art date
Application number
PCT/CN2023/119562
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 WO2024061184A1 publication Critical patent/WO2024061184A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Definitions

  • the present application relates to the field of communication technology, and in particular to a method for obtaining a correspondence relationship, a parameter notification method, a device, equipment and a medium.
  • BIER bit indexed explicit replication
  • This application provides a corresponding relationship acquisition method, parameter notification method, device, equipment and medium, which can improve the speed of convergence switching and achieve traffic protection.
  • the technical solution is as follows.
  • a method for obtaining a corresponding relationship including: a second forwarding device in a second site receives a first parameter set from a first forwarding device in a first site, the first parameter set including a first anycast label, a BFR-ID of the first forwarding device, and a BFR prefix of the first forwarding device, and the first anycast label is used to identify the first site; the second forwarding device receives a second parameter set from a third forwarding device in the first site, the second parameter set including a second anycast label, the BFR-ID of the third forwarding device, and the BFR prefix of the third forwarding device, and the second anycast label is used to identify the first site; the second forwarding device receives a second parameter set from a third forwarding device in the first site, the second parameter set including a second anycast label, the BFR-ID of the third forwarding device, and the BFR prefix of the third forwarding device, and the second anycast label is used to identify the first site;
  • the second forwarding device receives two parameter sets from the first forwarding device and the third forwarding device in the first site. According to the anycast tags contained in the two parameter sets both identify the first site, the first forwarding device The BFR-ID of the device and the third forwarding device are reflected in the same corresponding relationship, which is equivalent to binding multiple devices in the same site together through anycast labels. Then when a data packet is received, if it arrives If one of the devices in the first site has a link failure, it can match the F-BM in the corresponding relationship based on the bit string in the data message, and forward the data message directly to the next hop in the corresponding relationship without going through routing. Convergence recalculates the next hop, thus increasing the speed of convergence switching and achieving traffic protection.
  • the second forwarding device obtains the first corresponding relationship based on the first parameter set and the BFR-ID of the third forwarding device, including: the second forwarding device based on the first any broadcast tag and the second anycast tag, and determine that the first forwarding device and the third forwarding device belong to the first site; the second forwarding device is based on the BFR-ID of the first forwarding device and The BFR-ID of the third forwarding device obtains the F-BM; the second forwarding device obtains the BFR prefix based on the F-BM, the first anycast tag and the first forwarding device.
  • the first correspondence relationship includes the F-BM, the first anycast label, and the BFR prefix of the first forwarding device.
  • the second forwarding device obtains the BFR-ID based on the first parameter set and the third forwarding device.
  • the first correspondence relationship includes: the second forwarding device determines that the first forwarding device and the third forwarding device belong to the first site based on the first anycast tag and the second anycast tag.
  • the second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device; the second forwarding device obtains the F-BM based on the first forwarding device
  • the BFR prefix determines the first outbound interface on the second forwarding device that reaches the first forwarding device; the second forwarding device is based on the F-BM, the first anycast label, the first
  • the BFR prefix of the forwarding device and the first outbound interface are used to obtain the first corresponding relationship.
  • the first corresponding relationship includes the F-BM, the first anycast label, and the BFR of the first forwarding device. prefix and the first outbound interface.
  • the second forwarding device obtains the second corresponding relationship based on the second parameter set and the BFR-ID of the first forwarding device, including: the second forwarding device based on the first any The broadcast tag and the second anycast tag determine that the first forwarding device and the third forwarding device both belong to the first site; the second forwarding device is based on the BFR-ID of the first forwarding device and The BFR-ID of the third forwarding device obtains the F-BM; the second forwarding device obtains the BFR prefix based on the F-BM, the second anycast tag and the third forwarding device.
  • the second correspondence relationship includes the F-BM, the second anycast label, and the BFR prefix of the third forwarding device.
  • the second forwarding device obtains the second corresponding relationship based on the second parameter set and the BFR-ID of the first forwarding device, including: the second forwarding device based on the first any The broadcast tag and the second anycast tag determine that the first forwarding device and the third forwarding device both belong to the first site; the second forwarding device is based on the BFR-ID of the first forwarding device and The BFR-ID of the third forwarding device is used to obtain the F-BM; the second forwarding device determines that the third forwarding device is reached on the second forwarding device based on the BFR prefix of the third forwarding device.
  • the second outbound interface; the second forwarding device obtains the second corresponding response based on the F-BM, the second anycast label, the BFR prefix of the third forwarding device and the second outbound interface
  • the second corresponding relationship includes the F-BM, the second anycast label, the BFR prefix of the third forwarding device, and the second outbound interface.
  • both the first anycast label and the second anycast label are labels; or, the first anycast label and the second anycast label are both IPv6 destination addresses.
  • the first parameter set further includes the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the BIER subdomain in which the first forwarding device is located.
  • the second parameter set also includes the bit string length BSL of the third forwarding device, the set identifier SI to which the third forwarding device belongs and the location where the third forwarding device is located. Identifier of one or more of the BIER subdomains.
  • the second forwarding device in the second site receiving the first parameter set from the first forwarding device in the first site includes: the second forwarding device receiving the first parameter set from the first forwarding device.
  • the second parameter set of the device includes: the second forwarding device receives a second notification message from the first forwarding device in the first site, the second notification message includes a BIER information sub-TLV, and the BIER The information sub-TLV includes the second anycast tag.
  • the first notification message and the second notification message are IGP messages; or the first notification message and the second notification message are BGP messages.
  • the first forwarding device is a BFER
  • the second forwarding device is a transit BFR
  • the first forwarding device is a transit BFR
  • the second forwarding device is a BFIR
  • the The first forwarding device and the second forwarding device are adjacent transit BFRs.
  • the second forwarding device obtains the BFR-ID based on the first parameter set and the third forwarding device. After the first correspondence, the method further includes: the second forwarding device obtains a first BIER message, where the first BIER message includes a first bit string, a label of the second forwarding device, and multicast data message, the first bit string corresponds to one or more of the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device;
  • the second forwarding device obtains a second BIER message based on the first BIER message and the first corresponding relationship.
  • the second BIER message includes a second bit string, the first anycast label and the first anycast label.
  • the second bit string is obtained based on the F-BM in the first bit string and the first correspondence; the second forwarding device sends the second BIER message .
  • the second forwarding device sends the second BIER message, including: if the next hop matching the BFR prefix of the first forwarding device is in a fault state, the second forwarding device The device sends the second BIER message to the next hop in the second correspondence relationship that matches the BFR prefix of the third forwarding device; or, if the BFR prefix of the third forwarding device matches the The next hop matching the prefix is in a fault state, and the second forwarding device sends the second BIER message to the next hop matching the BFR prefix of the first forwarding device in the first correspondence relationship.
  • the second forwarding The device sends the second forwarding device to the next hop that matches the BFR prefix of the first forwarding device and the next hop that matches the BFR prefix of the third forwarding device, whichever has the smallest link cost.
  • the The second forwarding device sends a message to the next hop that matches the BFR prefix of the first forwarding device and the next hop that matches the BFR prefix of the third forwarding device, whichever has the highest link network quality.
  • the second BIER message or, if neither the next hop matching the BFR prefix of the first forwarding device nor the next hop matching the BFR prefix of the third forwarding device is faulty status, the second forwarding device sends to any one of the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device.
  • the second BIER message
  • a parameter notification method including: a first forwarding device in a first site obtains a first parameter set, where the first parameter set includes a first anycast label, a BFR- ID and the BFR prefix of the first forwarding device, the first anycast label is used to identify the first site; the first forwarding device sends the first parameter set to the second forwarding device in the second site .
  • the first anycast label is a label or an IPv6 destination address.
  • the first parameter set further includes the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the BIER subdomain in which the first forwarding device is located. identifies one or more of them.
  • the first forwarding device sending the first parameter set to a second forwarding device in the second site includes: the first forwarding device sending a first notification message to the second forwarding device.
  • the first notification message includes a BIER information sub-TLV
  • the BIER information sub-TLV includes the first anycast label.
  • the first notification message is an IGP message or a BGP message.
  • the first forwarding device is a BFER
  • the second forwarding device is a transit BFR
  • the first forwarding device is a transit BFR
  • the second forwarding device is a BFIR
  • the The first forwarding device and the second forwarding device are adjacent transit BFRs.
  • the method further includes: the first forwarding device receiving a third parameter set from a third forwarding device in the first site, where the third parameter set includes a first bypass label, the The BFR-ID of the third forwarding device and the BFR prefix of the third forwarding device, the first bypass label is used to identify the third forwarding device; the first forwarding device obtains the third forwarding device based on the third parameter set.
  • the third correspondence includes the first bypass label, the F-BM matching the BFR-ID of the third forwarding device, and the next hop matching the BFR prefix of the third forwarding device .
  • the method further includes: the first forwarding device receives the first BIER message, and
  • the first BIER message includes a first bit string corresponding to the BFR-ID of the third forwarding device, the first anycast label and a multicast data message; the first forwarding device is based on the first BIER message and the third corresponding relationship to obtain a second BIER message.
  • the second BIER message includes a second bit string, the first bypass label and the multicast data message.
  • the second bit string It is a bit string obtained based on the F-BM in the first bit string and the third corresponding relationship; the first forwarding device sends the second BIER message to the third forwarding device.
  • the method further includes: the first forwarding device obtaining a fourth parameter set, the fourth parameter set including a second bypass label, the BFR-ID of the first forwarding device and the third A BFR prefix of a forwarding device, the second bypass label is used to identify the first forwarding device; the first forwarding device sends the fourth parameter set to the third forwarding device.
  • a corresponding relationship acquisition device which is located in the second forwarding device in the second site and includes:
  • a receiving unit configured to receive a first parameter set from a first forwarding device in the first site, where the first parameter set includes a first anycast label, the BFR-ID of the first forwarding device, and the first forwarding device.
  • the BFR prefix of the device, the first anycast label is used to identify the first site;
  • the receiving unit is further used to receive a second parameter set from a third forwarding device in the first site, the second parameter set including a second anycast label, a BFR-ID of the third forwarding device, and a BFR prefix of the third forwarding device, the second anycast label being used to identify the first site;
  • a processing unit configured to obtain a first corresponding relationship based on the first parameter set and the BFR-ID of the third forwarding device, where the first corresponding relationship includes the BFR-ID of the first forwarding device and the The forwarding bit mask F-BM matched by the BFR-ID of the third forwarding device, the first anycast label and the next hop matching the BFR prefix of the first forwarding device;
  • the processing unit is further configured to obtain a second corresponding relationship based on the second parameter set and the BFR-ID of the first forwarding device, where the second corresponding relationship includes the BFR-ID of the first forwarding device. and the F-BM matching the BFR-ID of the third forwarding device, the second anycast label, and the next hop matching the BFR prefix of the third forwarding device.
  • the processing unit is configured to determine that the first forwarding device and the third forwarding device belong to the first site based on the first anycast tag and the second anycast tag. ; Based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, obtain the F-BM; Based on the F-BM, the first anycast tag and the first The BFR prefix of the forwarding device is used to obtain the first corresponding relationship, which includes the F-BM, the first anycast label, and the BFR prefix of the first forwarding device.
  • the processing unit is configured to determine that the first forwarding device and the third forwarding device belong to the first site based on the first anycast tag and the second anycast tag. ; Based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, obtain the F-BM; Based on the BFR prefix of the first forwarding device, determine the second forwarding device Reach the first outbound interface of the first forwarding device; based on the F-BM, the first anycast label, the BFR prefix of the first forwarding device and the first outbound interface, obtain the first Correspondence, the first correspondence includes the F-BM, the first anycast label, the BFR prefix of the first forwarding device, and the first outbound interface.
  • the processing unit is configured to determine that both the first forwarding device and the third forwarding device belong to the first site based on the first anycast tag and the second anycast tag. ; Based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, obtain the F-BM; Based on the F-BM, the second anycast tag and the third The BFR prefix of the forwarding device is used to obtain the second corresponding relationship.
  • the second corresponding relationship includes the F-BM, the second anycast label, and the BFR prefix of the third forwarding device.
  • the processing unit is configured to determine that both the first forwarding device and the third forwarding device belong to the first site based on the first anycast tag and the second anycast tag. ; Based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, obtain the F-BM; Based on the BFR prefix of the third forwarding device, determine the second forwarding device Reach the second outbound interface of the third forwarding device; based on the F-BM, the second anycast label, the BFR prefix of the third forwarding device and the second outbound interface, obtain the second Correspondence, the second correspondence includes the F-BM, the second anycast label, the BFR prefix of the third forwarding device, and the second outbound interface.
  • the first anycast label and the second anycast label are both labels; or the first anycast label and the second anycast label are both IPv6 destination addresses.
  • the first parameter set further includes the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the BIER subdomain in which the first forwarding device is located.
  • the second parameter set also includes the bit string length BSL of the third forwarding device, the set identifier SI to which the third forwarding device belongs and the location where the third forwarding device is located. Identifier of one or more of the BIER subdomains.
  • the receiving unit is configured to receive a first notification message from the first forwarding device, the first notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes the The first anycast tag; receiving a second notification message from the first forwarding device in the first site, the second notification message including the BIER information sub-TLV, the BIER information sub-TLV including the second anycast broadcast tag.
  • the first notification message and the second notification message are IGP messages; or the first notification message and the second notification message are BGP messages.
  • the first forwarding device is a BFER
  • the second forwarding device is a transit BFR
  • the first forwarding device is a transit BFR
  • the second forwarding device is a BFIR
  • the The first forwarding device and the second forwarding device are adjacent transit BFRs.
  • the processing unit is further configured to: obtain a first BIER message, where the first BIER message includes a first bit string, a label of the second forwarding device, and a multicast data message, The first bit string corresponds to one or more of the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device; based on the first BIER message and the first correspondence The relationship is to obtain a second BIER message.
  • the second BIER message includes a second bit string, the first anycast label and the multicast data message.
  • the second bit string is based on the first bit string.
  • the string is obtained from the F-BM in the first corresponding relationship; the device further includes: a sending unit configured to send the second BIER message.
  • the sending unit is configured to, if the next hop matching the BFR prefix of the first forwarding device is in a fault state, send a message to the second hop in the second correspondence relationship that matches the BFR prefix of the first forwarding device.
  • the next hop matching the BFR prefix of the third forwarding device sends the second BIER message; or, if the next hop matching the BFR prefix of the third forwarding device is in a fault state, sending the second BIER message to the first corresponding The next hop in the relationship that matches the BFR prefix of the first forwarding device sends the second BIER message; or, if the next hop that matches the BFR prefix of the first forwarding device and None of the next hops matching the BFR prefix of the third forwarding device is in a fault state, and the next hop matching the BFR prefix of the first forwarding device and the third forwarding device The next hop with the smallest link cost that matches the BFR prefix of the device sends the second BIER message; or, if the next hop that matches the
  • a parameter notification device which is located in the first forwarding device in the first site and includes: a processing unit for obtaining a first parameter set, where the first parameter set includes a first anycast tag, all The BFR-ID of the first forwarding device and the BFR prefix of the first forwarding device, the first anycast label is used to identify the first site; the sending unit is used to send a message to the second forwarding device in the second site Send the first set of parameters.
  • the first anycast label is a label or an IPv6 destination address.
  • the first parameter set further includes the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the BIER subdomain in which the first forwarding device is located. identifies one or more of them.
  • the sending unit is configured to send a first notification message to the second forwarding device, where the first notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes the third An Anycast tag.
  • the first advertisement message is an IGP message or a BGP message.
  • the first forwarding device is a BFER
  • the second forwarding device is a transit BFR
  • the first forwarding device is a transit BFR
  • the second forwarding device is a BFIR
  • the The first forwarding device and the second forwarding device are adjacent transit BFRs.
  • the apparatus further includes: a receiving unit configured to receive a third parameter set from a third forwarding device in the first site, where the third parameter set includes a first bypass label, the third The BFR-ID of the third forwarding device and the BFR prefix of the third forwarding device, the first bypass tag is used to identify the third forwarding device; the processing unit is also used to obtain the The third correspondence relationship includes the first bypass tag, the F-BM matching the BFR-ID of the third forwarding device, and the next F-BM matching the BFR prefix of the third forwarding device. Jump.
  • the receiving unit is further configured to receive a first BIER message, where the first BIER message includes a first bit string corresponding to the BFR-ID of the third forwarding device, the first anycast label and multicast data message;
  • the processing unit is also configured to obtain a second BIER message based on the first BIER message and the third corresponding relationship, where the second BIER message includes a second A bit string, the first bypass label and the multicast data message, the second bit string is a bit string obtained based on the F-BM in the first bit string and the third correspondence relationship;
  • the sending unit is also configured to send the second BIER message to the third forwarding device.
  • the processing unit is further configured to obtain a fourth parameter set, the fourth parameter set including a second bypass label, the BFR-ID of the first forwarding device, and the BFR-ID of the first forwarding device.
  • BFR prefix, the second bypass label is used to identify the first forwarding device; the sending unit is also used to send the fourth parameter set to the third forwarding device.
  • a forwarding device in a fifth aspect, includes a processor and a network interface.
  • the forwarding device executes the above first aspect or any one of the first aspects through the processor and the network interface. Select the method provided by the method.
  • a forwarding device in a sixth aspect, includes a processor and a network interface. The forwarding device performs the above second aspect or any one of the second aspects through the processor and the network interface. Optional methods provided.
  • a seventh aspect provides a network system, which includes the device in the third aspect and the device in the fourth aspect.
  • An eighth aspect provides a network system, which includes the device of the fifth aspect and the device of the sixth aspect.
  • a computer-readable storage medium is provided. At least one instruction is stored in the storage medium. When the instruction is run on a computer, it causes the computer to execute the above-mentioned first aspect or any one of the optional first aspects. method provided.
  • a computer-readable storage medium is provided, at least one instruction is stored in the storage medium, and the instruction is stored in the computer readable storage medium.
  • the computer When running on a computer, the computer is caused to execute the method provided by the above second aspect or any of the optional methods of the second aspect.
  • a computer program product includes one or more computer program instructions.
  • the computer program instructions When the computer program instructions are loaded and run by a computer, they cause the computer to execute the above first aspect or Methods provided by any optional method in the first aspect.
  • a computer program product includes one or more computer program instructions.
  • the computer program instructions When the computer program instructions are loaded and run by a computer, they cause the computer to execute the above second aspect or The method provided by any optional method in the second aspect.
  • a chip in a thirteenth aspect, includes programmable logic circuits and/or program instructions. When the chip is run, it is used to implement the method provided by the above-mentioned first aspect or any alternative method of the first aspect. .
  • a chip in a fourteenth aspect, includes programmable logic circuits and/or program instructions. When the chip is run, it is used to implement the method provided in the above-mentioned second aspect or any of the optional modes of the second aspect. .
  • Figure 1 is a schematic diagram of a networking scenario provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of another networking scenario provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of yet another networking scenario provided by an embodiment of the present application.
  • Figure 4 is a flow chart of a multicast configuration method provided by an embodiment of the present application.
  • Figure 5 is a flow chart of a method for processing multicast data packets provided by an embodiment of the present application.
  • Figure 6 is a flow chart of a method for obtaining a correspondence relationship provided by an embodiment of the present application.
  • Figure 7 is a flow chart of a data packet processing method provided by an embodiment of the present application.
  • Figure 8 is a flow chart of another data packet processing method provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of the format of the BIER information sub-TLV provided by the embodiment of the present application.
  • Figure 10 is a schematic diagram of the format of BIER-MPLS encapsulated sub-sub-TLV provided by the embodiment of the present application.
  • Figure 11 is a schematic diagram of the format of a sub-sub-TLV carrying anycast label provided by the embodiment of the present application.
  • Figure 12 is a schematic diagram of a parameter configuration scenario provided by an embodiment of the present application.
  • Figure 13 is a schematic diagram of another parameter configuration scenario provided by the embodiment of the present application.
  • Figure 14 is a schematic diagram of another parameter configuration scenario provided by the embodiment of the present application.
  • Figure 15 is a schematic diagram of another parameter configuration scenario provided by the embodiment of the present application.
  • Figure 16 is a schematic diagram of a message format provided by an embodiment of the present application.
  • Figure 17 is a schematic diagram of another message format provided by the embodiment of the present application.
  • Figure 18 is a schematic diagram of yet another message format provided by an embodiment of the present application.
  • Figure 19 is a schematic diagram of a parameter configuration scenario provided by an embodiment of the present application.
  • Figure 20 is a schematic diagram of another parameter configuration scenario provided by the embodiment of the present application.
  • Figure 21 is a schematic diagram of another parameter configuration scenario provided by the embodiment of the present application.
  • FIG22 is a schematic diagram of a scenario of another parameter configuration provided in an embodiment of the present application.
  • Figure 23 is a schematic diagram of a network deployment scenario provided by an embodiment of this application.
  • Figure 24 is a schematic diagram of a message format provided by an embodiment of the present application.
  • Figure 25 is a schematic diagram of another message format provided by the embodiment of the present application.
  • Figure 26 is a schematic diagram of yet another message format provided by an embodiment of the present application.
  • Figure 27 is a schematic diagram of a network deployment scenario provided by an embodiment of the present application.
  • Figure 28 is a schematic diagram of another network deployment scenario provided by an embodiment of the present application.
  • Figure 29 is a schematic diagram of another network deployment scenario provided by the embodiment of the present application.
  • Figure 30 is a schematic diagram of yet another network deployment scenario provided by an embodiment of the present application.
  • Figure 31 is a schematic diagram of another network deployment scenario provided by an embodiment of the present application.
  • Figure 32 is a schematic diagram of yet another network deployment scenario provided by an embodiment of the present application.
  • Figure 33 is a schematic diagram of a message format provided by an embodiment of the present application.
  • Figure 34 is a schematic diagram of another message format provided by the embodiment of the present application.
  • Figure 35 is a schematic diagram of yet another network deployment scenario provided by the embodiment of the present application.
  • Figure 36 is a schematic diagram of another network deployment scenario provided by the embodiment of the present application.
  • Figure 37 is a schematic diagram of yet another network deployment scenario provided by the embodiment of the present application.
  • Figure 38 is a schematic diagram of a message format provided by an embodiment of the present application.
  • Figure 39 is a schematic diagram of another message format provided by the embodiment of the present application.
  • Figure 40 is a schematic diagram of a network deployment scenario provided by an embodiment of the present application.
  • Figure 41 is a schematic diagram of another network deployment scenario provided by the embodiment of the present application.
  • Figure 42 is a schematic structural diagram of a device for obtaining a correspondence relationship provided by an embodiment of the present application.
  • Figure 43 is a schematic structural diagram of a parameter notification device provided by an embodiment of the present application.
  • Figure 44 is a schematic structural diagram of a forwarding device provided by an embodiment of the present application.
  • a site is a logical area, and a site includes one or more forwarding devices with IP connectivity.
  • a site includes two forwarding devices.
  • a forwarding device refers to any device with routing and forwarding functions.
  • forwarding devices include but are not limited to routers, switches, firewalls, servers, or hosts.
  • BIER is a new type of multicast forwarding technology that encapsulates the set of destination nodes for multicast messages in the form of bit strings and sends them in the header of the message. This eliminates the need for intermediate nodes in the network to sense multicast services and maintain multicast flows. state.
  • the effects of BIER include but are not limited to: First, it has good multicast service scalability; BIFT established using BIER technology on BFR is a public forwarding table independent of specific multicast services, so that intermediate nodes in the network do not need to be aware of multicast services. , there is no need to maintain the multicast flow status of specific multicast services. Both public network multicast and private network multicast packets can be forwarded through BIFT, which has good multicast service scalability.
  • a BIER network refers to a logical area that supports BIER forwarding.
  • a BIER network includes multiple BFRs.
  • a BIER network is a BIER domain, or a BIER network is a BIER subdomain.
  • a BIER domain can be divided into one or more BIER subdomains, which can also be referred to as SD. Each BIER subdomain is identified by a unique sub-domain ID.
  • BFR refers to a device that supports BIER forwarding.
  • BFR product forms include but are not limited to routers, switches, firewalls or other network equipment.
  • BFR is divided into bit forwarding ingress router (BFIR), intermediate BFR (transit BFR) and bit forwarding egress router (BFER).
  • BFIR bit forwarding ingress router
  • TIR intermediate BFR
  • BFER bit forwarding egress router
  • BFIR is the node through which multicast data flows enter the BIER network.
  • BFIR is used to BIER encapsulate multicast data packets entering the BIER network to obtain BIER packets containing multicast data packets and BIER headers.
  • transit BFR is an intermediate node for forwarding multicast data packets in the BIER network. It is used to forward BIER packets based on bit strings.
  • transit BFR is an optional device deployed in the BIER network.
  • BFIR and BFER are deployed in the BIER network without transit BFR. For example, BFIR and BFER are directly connected physically; another example is that BFIR and BFER are directly connected, and BFER is the next hop of BFIR; another example is that BFIR and BFER are connected through one or more hops that do not support BIER, and BFIR sends BIER messages.
  • the BIER packet passes through the MPLS encapsulation or IPv6 unicast route in the outer layer of the BIER header and passes through the node that does not support BIER to reach the BFER.
  • the number of transit BFR deployed in a BIER network includes multiple situations. Two situations are given as examples below.
  • a transit BFR is deployed in a BIER network.
  • the transit BFR is located between the BFIR and the BFER in the BIER forwarding path.
  • BIER messages are forwarded from the BFIR to the BFER via the transit BFR.
  • two or more transit BFRs are deployed in a BIER network. There is an up-and-down hop relationship between different transit BFRs.
  • BIER messages are forwarded from BFIR to another transit BFR via one transit BFR. Then forward it from another transit BFR to BFER. For example, if BFIR, transit BFR 1, transit BFR 2 and BFER are deployed in the BIER network, the forwarding path of BIER packets is BFIR ⁇ transit BFR 1 ⁇ transit BFR 2 ⁇ BFER.
  • transit BFR is an optional device deployed in the BIER network.
  • BFIR and BFER are deployed in the BIER network without transit BFR.
  • BFER is the next hop of BFIR; another example, BFIR and BFER are connected through one or more hops that support BIER; another example, BFIR and BFER are connected through one or more hops that do not support BIER.
  • the nodes are connected.
  • the BIER message passes through the MPLS encapsulation or IPv6 unicast route in the outer layer of the BIER header and reaches BFER through the node that does not support BIER.
  • the number of transit BFR deployed in a BIER network includes multiple situations. Two situations are given as examples below.
  • a transit BFR is deployed in a BIER network.
  • the transit BFR is located between the BFIR and the BFER in the BIER forwarding path, and the BIER message is forwarded from the BFIR to the BFER via the transit BFR.
  • two or more transit BFRs are deployed in a BIER network. There is an up-and-down hop relationship between different transit BFRs. BIER messages are forwarded from BFIR to another transit BFR via one transit BFR. Then from another transit BFR forwards to BFER. For example, if BFIR, transit BFR 1, transit BFR 2, and BFER are deployed in the BIER network, the forwarding path of BIER packets is BFIR ⁇ transit BFR 1 ⁇ transit BFR 2 ⁇ BFER.
  • BFER is the node through which multicast data flows out of the BIER network. It is used to decapsulate BIER packets and forward the obtained multicast data packets to multicast receivers.
  • Edge BFR refers to the BFR located at the edge of the BIER network. Edge BFR is the collective name of BFIR and BFER.
  • BFR-ID is used to identify the BFR located at the edge of the BIER network in a BIER network (such as a BIER subdomain or a BIER domain).
  • BFR-ID is usually an integer, for example, a positive integer in the range of 1 to 65535.
  • one BFR-ID corresponds to one bit in the bit string.
  • BFR-ID is 1, which corresponds to the rightmost bit (or the lowest bit) in the bit string
  • BFR-ID is 2, which corresponds to the second bit from right to left (or the second lowest bit) in the bit string.
  • BFR-ID is i, corresponding to the i-th bit from right to left in the bit string, where i is a positive integer.
  • bit string carried by a message contains the BFR-ID of a device, or the bit position corresponding to the BFR-ID of the device is set, it means that the device is the destination BFER of the message.
  • BFR prefix refers to an IP address of BFR.
  • the BFR prefix is the IP address of a loopback interface on the BFR.
  • the BFR prefix is a reachable IP address in the BIER network.
  • BFR prefix is a 32-bit IPv4 address; another example, BFR prefix is a 128-bit IPv6 address.
  • BIERv4 scenario use an IPv4 address of the device as the BFR prefix
  • BIERv6 use an IPv6 address of the device as the BFR prefix.
  • SI refers to the identifier of the set to which the BFR-ID belongs.
  • the form of SI is usually one or a series of numbers.
  • a BIER network includes set 0 and set 1.
  • Set 0 includes BFRs with BFR IDs from 1 to 256
  • set 1 includes BFRs with BFR IDs from 257 to 512.
  • the SI is 0, and the SI of each BFR in BFR IDs 257 to 512 is 1.
  • max-SI refers to the maximum value of the set identifier (SI).
  • the bit string is used to identify the destination BFER set of the BIER message.
  • the bit string starts from the lowest bit (that is, the first bit from the right), and each bit corresponds to a BFR ID.
  • Bit position 1 indicates that the BFER identified by the BFR ID corresponding to this bit is the destination BFER for multicast data packet forwarding.
  • Bit string length (BS length, BSL)
  • BSL refers to the length of the bit string. For example, if the BSL is 64, it means that the length of the bit string is 64 bits.
  • BIRT is used to indicate the correspondence between the BFR prefix of a BFER in a BIER network, the BFR-ID of the BFER, and the next hop to the BFER on the forwarding path.
  • BIER BFR-ID of the BFER
  • BIFT is a forwarding table based on BIRT.
  • BIFT is used to represent each BFER node that can be reached through BFR neighbors, including Nbr (BFR Neighbor, BFR neighbor) and forwarding bit mask (forwarding bit mask, F-BM).
  • BFR neighbors including Nbr (BFR Neighbor, BFR neighbor) and forwarding bit mask (forwarding bit mask, F-BM).
  • Each BIFT is usually determined by a triplet (BSL, SD, SI).
  • BSL, SD, SI single-frame
  • BIFT is generated by BFR by merging different entries in BIRT entries that pass through the same neighbor.
  • each BIFT entry includes a BFR neighbor and the corresponding F-BM.
  • BIFT-ID is used to identify a BIFT.
  • BIFT ID is usually determined based on three parameters: BSL, SD and SI.
  • BIFT-ID is obtained by splicing three parameters: BSL, SD and SI.
  • BIFT-ID is the hash value obtained by hashing the three parameters BSL, SD and SI.
  • the BFR neighbor represents the next hop BFR.
  • the BFR neighbor is represented by the BFR prefix of the next hop BFR.
  • F-BM is used to indicate the set of BFERs in the BIER network that can be reached through the BFR neighbor when the BFR copies and sends multicast data packets to the BFR neighbor.
  • F-BM is, for example, BFR obtained by ORing the bit strings of all BFERs reachable by the BFR neighbor.
  • FBM is represented by a bit string, and the length of the bit string used by FBM and packet forwarding is the same. For example, the length of the bit string carried in the message is 256 bits, and the length of the F-BM is also 256 bits. During the message forwarding process, the bit string carried in the message will perform an AND operation with the F-BM.
  • End.BIER SID is the IPv6 address of BFR and is also a SID in SRv6.
  • End.BIER SID is usually carried in the destination address field of the IPv6 basic header.
  • End.BIER SID usually includes a locator field and a function field, and optionally also includes an argument field.
  • the locator field occupies the high-order bits of the SID.
  • the locator field is used to carry the location information of the device to guide packet forwarding to the device.
  • the locator field usually contains the block field and the node ID field.
  • the block field is used to indicate the IP address block to which the SID belongs. This IP address block is generally allocated to a subnet by the operator.
  • the node ID field is used to carry the identification of the device, usually used to distinguish different devices within a subnet.
  • the function field is used to carry the function identifier, and the function identifier is used to indicate that multicast packets are forwarded in BIER mode.
  • the form of the function identifier is, for example, a string.
  • the function identifier has a binding relationship with the BIER forwarding instruction saved on the device. Therefore, the forwarding device reads the End.BIER SID in the destination address field. According to the function in the End.BIER SID If the command to perform BIER forwarding is matched, the forwarding device will forward the multicast data packet according to the BIER method, that is, copy and forward the packet based on the bit string in the packet header and BIFT.
  • the function field is located after the locator field.
  • the parameter field is an optional field in the SID.
  • the parameter field is used to carry function-related parameters.
  • End.BIER SID the reachability of IPv6 unicast routing can be well utilized to span IPv6 nodes that do not support BIER.
  • the End.BIER SID is carried in the destination address field in the data packet header to indicate that BIERv6 forwarding processing needs to be performed on this node, and the forwarding plane will continue to process the BIERv6 extension header.
  • the forwarding device determines the BFR neighbor by comparing the bit string with the F-BM, the destination address of the outer IPv6 message needs to be replaced with the End.BIER SID of the next hop node, and the BIERv6 message is copied to the End.BIER SID. BFR.
  • the End.BIER SID can be used as a normal IPv6 address and forwarded using the unicast function.
  • BIER-MPLS label is an MPLS label and also the index of BIFT on BFR.
  • the BIER-MPLS label is usually carried in the BIFT-ID field in the BIER packet header.
  • BIER-MPLS label is usually a label assigned according to ⁇ Sub-domain, SI, BSL>. For example, When a BFR receives a BIER message, it first parses the BIER-MPLS Label in the message header and uses the Label to index into the corresponding local BIFT table. Because there may be multiple ⁇ sub-domain, SI, BSL> on one BFR, different forwarding tables will be generated. The mapping relationship between different ⁇ Sub-domain, SI, BSL> and BIER-MPLS Label is one-to-one correspondence.
  • the corresponding BIER forwarding table can be indexed, and compared with the F-BM in the forwarding table one by one, the BFR-neighbors can be calculated. Based on the calculated different BFR-neighbors, Replace the BIER-MPLS Label in the BIER packet header with a different label, and then forward the packet.
  • a multicast group refers to a collection identified by a multicast address.
  • a host or other device that needs to receive multicast data packets joins a multicast group, it becomes a member of the multicast group and can identify and receive multicast data sent to the multicast group.
  • the sender of multicast data packets is called a "multicast source".
  • One multicast source can send data to multiple multicast groups at the same time, and multiple multicast sources can also send packets to one multicast group at the same time.
  • Multicast sources usually do not need to join a multicast group.
  • the embodiment of this application is applied to the scenario where multicast BIER is configured, for example, it is applied to the scenario where there are multiple devices in a site, and each device is configured with multicast BIER.
  • the anycast label is used to identify the site to which the device belongs. Therefore, each device uses anycast label, BFR-ID and BFR prefix. After the parameters are announced together, the device that receives the parameters will reflect the BFR-IDs of multiple forwarding devices in the same site to the F-BM based on the anycast label when generating the correspondence between the devices arriving at the site.
  • the embodiments of this application are applicable to many networking scenarios.
  • the following is an example of three networking scenarios.
  • Networking Scenario 1 Deploy root nodes and leaf nodes, but do not deploy intermediate nodes.
  • FIG. 1 is a schematic diagram of a networking scenario provided by an embodiment of the present application.
  • the BIER network includes a forwarding device 110, a forwarding device 121 and a forwarding device 122.
  • Forwarding device 110 is located within site A.
  • the forwarding device 121 and the forwarding device 122 are located in site B.
  • Forwarding device 110 communicates with the multicast source. From a multicast perspective, forwarding device 110 is the root node. From a BIER perspective, the forwarding device 110 is a BFIR in the BIER network.
  • Forwarding device 121 communicates with multicast receiver 1. From a multicast perspective, the forwarding device 121 is a leaf node.
  • the forwarding device 121 is a BFER in the BIER network.
  • Forwarding device 122 communicates with multicast receiver 2. From a multicast perspective, the forwarding device 122 is a leaf node. From a BIER perspective, the forwarding device 122 is a BFER in the BIER network.
  • Forwarding device 110 communicates with one or more of forwarding device 121 and forwarding device 122 . In some embodiments, the forwarding device 110 communicates with the forwarding device 121, and the forwarding device 110 communicates with the forwarding device 122. That is, the forwarding device 110 can communicate with two forwarding devices in site B.
  • the forwarding device 110 communicates with the forwarding device 121, but the forwarding device 110 and the forwarding device 122 cannot communicate, or the forwarding device 110 communicates with the forwarding device 122, but the forwarding device 110 and the forwarding device 121 cannot communicate, that is, Forwarding device 110 communicates with a forwarding device within site B.
  • Networking scenario 2 Deploy root nodes, leaf nodes and one-hop intermediate nodes.
  • FIG 2 is a schematic diagram of another networking scenario provided by the embodiment of the present application.
  • the scenario shown in Figure 2 is based on the scenario shown in Figure 1 and further deploys a forwarding device 131.
  • the forwarding device 131 is located within site C.
  • Forwarding device 131 communicates with forwarding device 110 .
  • Forwarding device 131 communicates with forwarding device 121 and forwarding device 122 .
  • the forwarding device 131 is an intermediate node.
  • the forwarding device 131 is the transit BFR in the BIER network.
  • Networking scenario three deploy root nodes, leaf nodes and multi-hop intermediate nodes.
  • FIG 3 is a schematic diagram of another networking scenario provided by the embodiment of the present application.
  • the scenario shown in Figure 3 is based on the scenario shown in Figure 2 and further deploys a forwarding device 141.
  • the forwarding device 141 is located within site D. Forwarding device 141 communicates with forwarding device 110 .
  • the forwarding device 141 and the forwarding device 131 are connected through a network. From the perspective of multicast, forwarding device 141 and forwarding device 131 are adjacent two-hop intermediate nodes in the forwarding path.
  • the forwarding device 141 is an upstream node of the forwarding device 131
  • the forwarding device 131 is a downstream node of the forwarding device 141 . From the perspective of BIER, forwarding device 141 and forwarding device 131 are adjacent two-hop transit BFRs.
  • the communication relationship between the various devices described above is represented by the lines between the devices in the figure.
  • the communication relationship between the devices includes but is not limited to physical direct connection, connection through one or more layer 2 switches, connection through IP overlay tunnel, and connection through label switching path (LSP).
  • Physical direct connection includes but is not limited to connection through cable, optical fiber or other transmission media. Connection through label switching path is achieved through MPLS, for example, in Figure 2, forwarding device 131 and forwarding device 121 can be connected through a label switching path, forwarding device 131 and forwarding device 121 are two endpoints of the label switching path, and one or more label switching routers (LSRs) are passed between forwarding device 131 and forwarding device 121.
  • LSRs label switching routers
  • Some embodiments of the present application involve multiple site scenarios. In order to distinguish different sites, “first site” and “second site” are used to describe different sites.
  • first forwarding device “first forwarding device”, “second forwarding device” and “third forwarding device” are used to distinguish and describe multiple different forwarding devices.
  • the first forwarding device and the third forwarding device are both devices in the first site.
  • the second forwarding device is a device in the second site.
  • the roles of the first forwarding device, the second forwarding device, and the third forwarding device include multiple situations, which are illustrated below with examples from Situation 1 to Situation 3.
  • Case 1 The first forwarding device is BFER, the third forwarding device is BFER, and the second forwarding device is transit BFR. That is, the first forwarding device and the third forwarding device are both leaf nodes, and the second forwarding device is an intermediate node.
  • the first forwarding device is the forwarding device 121 in Figure 2
  • the third forwarding device is the forwarding device 122 in Figure 2
  • the second forwarding device is the forwarding device 131 in Figure 2.
  • Case 2 The first forwarding device is transit BFR, the second forwarding device is BFIR, and the third forwarding device is transit BFR. That is, the first forwarding device and the third forwarding device are both intermediate nodes, and the second forwarding device is the root node.
  • the first forwarding device is the forwarding device 131 in Figure 2
  • the third forwarding device is the forwarding device 132 in Figure 2
  • the second forwarding device is the forwarding device 110 in Figure 2.
  • Case 3 The first forwarding device and the second forwarding device are adjacent transit BFRs.
  • the first forwarding device is the transit BFR located downstream of the second forwarding device on the BIER forwarding path
  • the second forwarding device is the transit BFR located upstream of the first forwarding device on the BIER forwarding path.
  • the first forwarding device is the forwarding device 131 in Figure 3
  • the third forwarding device is the forwarding device 132 in Figure 3
  • the second forwarding device is the forwarding device 141 in Figure 2.
  • an anycast label is configured on the forwarding device, and the site to which the forwarding device belongs is identified through the anycast label.
  • anycast labels configured on different forwarding devices in the site identify the same site.
  • the expression form of anycast tag includes many possible forms. The following three forms are given as examples.
  • the anycast label is End.BIER SID, multicast policy reserved address (MPRA) or IPv6 link-local address. For example, configure the End.BIER SID of the first forwarding device in the first site As the first anycast label, configure the End.BIER SID of the third forwarding device in the first site as the second anycast label.
  • MPRA multicast policy reserved address
  • IPv6 link-local address For example, configure the End.BIER SID of the first forwarding device in the first site As the first anycast label, configure the End.BIER SID of the third forwarding device in the first site as the second anycast label.
  • the anycast label can not only identify the site, but also instruct the device to forward multicast packets in the BIER manner; on the other hand, because the End.BIER SID is in the form of an IPv6 address, the links between sites pass through
  • the data packet can cross the IPv6 node that does not support BIER and be transmitted to another site, thus making it compatible between sites through the IPv6 node that does not support BIER.
  • Networking scenario of IPv6 nodes By using MPRA as anycast label, it can be compatible with G-BIER encapsulation method. By using the link-local address as the anycast label, it can be compatible with the BIERin6 encapsulation method.
  • anycast labels are labels assigned to devices in a site based on BSL, SD, and SI. Different sites have different values for the anycast tag. If different BFRs in the same site are configured with different BSL, SD, and SI, the values of anycast labels corresponding to different BFRs in the same site are different. Only when each BFR in the same site has the same BSL, SD, and SI, each BFR in the same site will have the same anycast label. Anycast labels can be MPLS labels in MPLS scenarios, or non-MPLS labels allocated in other encapsulation scenarios besides MPLS.
  • the third form of anycast tag is a number or a series of numbers assigned according to the number of sites in the BIER network.
  • the network administrator or controller assigns a number or a series of numbers as anycast tags based on the number of sites in the BIER network. For example, the controller assigns anycast tags to each site in order from small to large. For example, if the BIER network contains two sites, site A and site B, site A is assigned "1" as the anycast label of the equipment in site A, and site B is assigned "2" as the anycast label of the equipment in site B. Label; for another example, site A is assigned "111" as the anycast label of the equipment in site A, and site B is assigned "222" as the anycast label of the equipment in site B.
  • anycast tags may also have other forms.
  • the anycast label is an IPv6 address in a non-SID format, or the anycast label is an IPv4 address, or the anycast label is an MPLS label in a non-BIER-MPLS label format. This embodiment does not limit the format of the anycast label.
  • the anycast label of each forwarding device within the same site is configured in the same form and with the same value.
  • a first anycast label is configured for the first forwarding device in the first site
  • a second anycast label is configured for the third forwarding device in the first site.
  • the second anycast tag and the first anycast tag have the same value.
  • the second anycast tag and the first anycast tag are both in the form of End.BIER SID.
  • the value of the second anycast tag is 1::1, and the value of the first anycast tag is also 1::1.
  • the second anycast label and the first anycast label are both MPLS labels.
  • the value of the second anycast label is 10, and the value of the first anycast label is also 10.
  • the receiving end of the parameter set carries the parameter set based on the received multiple parameters. If the same anycast label is found, it can be determined that the devices from multiple parameter sets belong to the same site, and then it is determined to merge the BFR-IDs included in multiple parameter sets into the same F-BM, with low implementation complexity. .
  • the anycast label described above can be reflected in the correspondence obtained by the forwarding device.
  • the correspondence can be used to forward data packets.
  • the forwarding device saves the obtained correspondence in the form of table entries and uses the obtained correspondence by looking up the table.
  • a correspondence is a row of table entries or a collection of multiple rows of table entries in a table on the forwarding device.
  • the tables on the forwarding device are usually divided into a routing information base (Routing information Base, RIB) and a forwarding information base (forwarding information base, FIB).
  • the specific form of the correspondence can be a table entry in the RIB table or a table entry in the FIB table.
  • anycast labels described above can be flooded in the BIER network through any dynamic routing protocol, so that each BFR in the BIER network receives anycast labels from other BFRs.
  • anycast labels are advertised through IGP messages, such as IS-IS messages Or OSPF packets advertise anycast labels.
  • anycast labels are advertised through BGP messages.
  • the anycast label and BFR prefix described above are carried in one advertisement message and thus flooded together in the BIER network.
  • the forwarding device sends a notification message.
  • the notification message includes a prefix TLV, the prefix TLV includes the BFR prefix, and the sub-TLV of the prefix TLV includes the anycast label.
  • the forwarding device sends a notification message.
  • the notification message includes a network reachability information (NLRI) field and a path attribute field.
  • the NLRI field includes the BFR prefix
  • the path attribute field includes the anycast label.
  • the anycast tag described above is flooded not only with the BFR prefix, but also with other parameters of the BIER.
  • the BIER parameters flooded together with the anycast label include, but are not limited to, one or more of the BFR-ID, the bit string length BSL, the set identifier SI, and the identifier of the BIER subdomain.
  • the three parameters of anycast label, BFR-ID, and BFR prefix are advertised through the same message; for example, the forwarding device sends an announcement message, and the announcement message includes anycast label, BFR-ID, and BFR prefix; in other embodiments, the forwarding device advertises the anycast label and BFR prefix through one message, and the BFR prefix and BFR-ID through another message.
  • the specific fields where the anycast label is located in the notification message include various situations.
  • the anycast label is advertised using a sub-sub-TLV in the BIER information sub-TLV.
  • the forwarding device sends a notification message.
  • the notification message includes a prefix TLV.
  • the prefix TLV includes a BIER information sub-TLV.
  • the BIER information sub-TLV includes a sub-sub-TLV.
  • the sub-sub-TLV includes an anycast label.
  • Figure 4 is a flow chart of a multicast configuration method provided by an embodiment of the present application. The method shown in Figure 4 includes the following steps S201 to S208.
  • Step S201 The first forwarding device in the first site obtains the first parameter set.
  • the first parameter set includes the first anycast label, the BFR-ID of the first forwarding device, and the BFR prefix of the first forwarding device.
  • the first anycast tag is used to identify the first site.
  • the first anycast label is the IPv6 address of the first forwarding device, for example, the End.BIER SID of the first forwarding device.
  • the first anycast label is a label, such as a BIER-MPLS label of the first forwarding device.
  • the first parameter set further includes one or more of the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the identifier of the BIER subdomain where the first forwarding device is located. .
  • Step S202 The first forwarding device sends a first parameter set to a second forwarding device in a second site.
  • the first forwarding device sends the first parameter set by flooding.
  • the first forwarding device and the second forwarding device are in the same BIER network.
  • the first forwarding device in the BIER network floods the first parameter set in the BIER network, so that the second forwarding device in the BIER network can receive the first parameter set.
  • the first forwarding device generates the first notification message, and the first forwarding device sends the first notification message to the second forwarding device.
  • the first advertisement message includes the first anycast label.
  • the first advertisement message also includes other parameters other than the first anycast label in the first parameter set.
  • the first notification message includes the BFR-ID of the first forwarding device, the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the identifier of the BIER subdomain where the first forwarding device is located. one or more of.
  • the first advertisement message includes a BIER information sub-TLV
  • the BIER information sub-TLV includes the first anycast label.
  • the BIER information sub-TLV includes the BFR-ID of the first forwarding device, the identifier of the BIER subdomain where the first forwarding device is located, and a sub-sub-TLV.
  • the BIER information sub-TLV includes the sub- The sub-TLV includes the first anycast label, the BSL of the first forwarding device, and the set identity SI to which the first forwarding device belongs.
  • the first advertisement message is an IGP message.
  • the first advertisement message is an intermediate system to intermediate system (IS-IS) message or an (open shortest path first, OSPF) message.
  • the first advertisement message is a border gateway protocol (BGP) message.
  • the first advertisement message is a border gateway protocol ethernet virtual private network (BGP EVPN) message.
  • the first parameter set is obtained through static configuration.
  • the network administrator performs a configuration operation on the first forwarding device through a command line or a web interface, and inputs the above first parameter set.
  • the first forwarding device responds to the configuration operation of the network administrator and obtains the first parameter set input by the network administrator.
  • the first parameter set is obtained by being issued by the controller.
  • the controller allocates a first parameter set to the first forwarding device.
  • the controller sends the first parameter set to the first forwarding device.
  • the first forwarding device receives the first parameter set sent by the controller.
  • Step S203 The second forwarding device in the second site receives the first parameter set from the first forwarding device in the first site.
  • the second forwarding device receives a first notification message from the first forwarding device, the first notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes a first parameter set.
  • the second forwarding device obtains the first parameter set from the BIER information sub-TLV in the first advertisement message.
  • Step S204 The third forwarding device in the first site obtains the second parameter set.
  • the second parameter set includes the second anycast label, the BFR-ID of the third forwarding device, and the BFR prefix of the third forwarding device.
  • the second anycast tag is used to identify the first site. Since both the second anycast label and the first anycast label identify the first site, the receiving end of the parameter set can determine the third forwarding device and the first forwarding device based on the second anycast label and the first anycast label. The devices belong to the same site.
  • the second anycast label is the End.BIER SID or MPLS label.
  • the second parameter set further includes one or more of the bit string length BSL of the third forwarding device, the set identifier SI to which the third forwarding device belongs, and the identifier of the BIER subdomain where the third forwarding device is located.
  • Step S205 The third forwarding device sends the second parameter set to the second forwarding device in the second site.
  • the third forwarding device generates a second notification message, the third forwarding device sends the second notification message to the second forwarding device, and the second notification message includes the second parameter set.
  • the second advertisement message includes a BIER information sub-TLV
  • the BIER information sub-TLV includes a second anycast label
  • the second advertisement message is an IGP message.
  • the second advertisement message is an IS-IS message or an OSPF message.
  • the first advertisement message is a BGP message.
  • the first advertisement message is a BGP EVPN message.
  • the second advertisement message includes a BIER information sub-TLV
  • the BIER information sub-TLV includes the second anycast label.
  • the BIER information sub-TLV includes the BFR-ID of the second forwarding device and the identification of the BIER subdomain where the second forwarding device is located and a sub-sub-TLV
  • the sub-sub-TLV includes the second forwarding device. The anycast label, the BSL of the second forwarding device, and the set identifier SI to which the second forwarding device belongs.
  • Step S206 The second forwarding device receives the second parameter set from the third forwarding device in the first site.
  • the second forwarding device receives the second advertisement message from the third forwarding device in the first site.
  • the second notification message includes a BIER information sub-TLV
  • the BIER information sub-TLV includes a second parameter set.
  • the second forwarding device obtains the second parameter set from the BIER information sub-TLV in the second advertisement message.
  • Step S207 The second forwarding device obtains the first correspondence based on the first parameter set and the BFR-ID of the third forwarding device.
  • the first corresponding relationship includes the F-BM matching the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, the first anycast label, and the next hop matching the BFR prefix of the first forwarding device.
  • the first corresponding relationship can be realized through one table entry or through multiple related table entries. The following is an example of implementation method 1 and implementation method 2.
  • Implementation method 1 The first corresponding relationship is a table item.
  • the second forwarding device stores the F-BM, the first anycast label, and the same information as the first forwarding device through the same entry.
  • the first correspondence relationship includes a first field, a second field, and a third field.
  • the first field includes F-BM
  • the second field includes a first anycast label
  • the third field includes a BFR prefix matching the first forwarding device.
  • the next hop is, for example, the F-BM field
  • the second field is, for example, the next hop field
  • the third field is, for example, the BFR-NBR field.
  • Implementation method 2 The first correspondence relationship includes multiple associated entries.
  • the second forwarding device can save the F-BM and the next hop that matches the BFR prefix of the first forwarding device through one entry, and save the first hop through another entry associated with the entry.
  • broadcast tag For example, the first correspondence relationship includes a first entry and a second entry, the first entry includes an F-BM field and a BFR-NBR field, and the second entry includes a first field and a second field.
  • the F-BM field in the first entry includes an F-BM that matches the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device.
  • the BFR-NBR field in the first entry includes an F-BM that matches the BFR-ID of the first forwarding device.
  • the next hop matched by BFR prefix The first field in the second entry includes the next hop that matches the BFR prefix of the first forwarding device.
  • the second field in the second entry includes the first anycast label.
  • the BIFT format defined by the BIER-related standards is supported to implement the BIER forwarding table.
  • the BIER forwarding table includes the above-mentioned first table item.
  • the first table item is first searched. If the bit string matches the F-BM in the first table item, the second table item is searched according to the F-BM in the first table item to obtain the next hop. This method is more compatible with the BIER-related standards.
  • the next hop that matches the BFR prefix of the first forwarding device in the first correspondence relationship includes multiple situations.
  • Case A The next hop in the first correspondence relationship that matches the BFR prefix of the first forwarding device is the BFR prefix of the first forwarding device. Since the BFR prefix of the first forwarding device is the IP address of the first forwarding device, it can play a role in identifying the first forwarding device. By saving the BFR prefix of the first forwarding device in the next hop in the corresponding relationship, the second forwarding device can be identified.
  • the forwarding device forwards the data message, when it finds that the bit string matches the F-BM in the corresponding relationship, it can determine to forward the message to the first forwarding device. For example, in case A, the process of obtaining the first corresponding relationship includes the following Step (a-1) to step (a-3).
  • Step (a-1) The second forwarding device determines that the first forwarding device and the third forwarding device belong to the first site based on the first anycast label and the second anycast label. How to determine that the first forwarding device and the third forwarding device belong to the first site based on the anycast label includes multiple implementations. The following is an example of implementations I to implementations II.
  • the second forwarding device compares the first anycast label with the second anycast label, and the second forwarding device determines the first forwarding device and the third forwarding device based on the same first anycast label and the second anycast label.
  • the device belongs to the first site.
  • the second forwarding device reads specific fields in the first anycast tag and the second anycast tag respectively.
  • the second forwarding device includes the identity of the first site based on the first anycast tag, and the second anycast tag Including the identification of the first site, it is determined that the first forwarding device and the third forwarding device belong to the first site.
  • the first anycast label is the End.BIER SID of the first forwarding device, and the function field or parameter field in the first anycast label includes the identity of the first site.
  • the second anycast label is the End.BIER SID of the third forwarding device, and the function field or parameter field in the second anycast label includes the identity of the first site.
  • the second forwarding device reads the function field or parameter field in the first anycast tag to obtain the identity of the first site.
  • the second forwarding device reads the function field or parameter field in the second anycast tag to obtain the identity of the first site. Since the second forwarding device has obtained the identity of the first site from both the first anycast label and the second anycast label, it determines that the first forwarding device and the third forwarding device belong to the first site.
  • Step (a-2) The second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device. For example, the second forwarding device obtains the bit string A corresponding to the BFR-ID of the first forwarding device based on the BFR-ID of the first forwarding device; the second forwarding device obtains the bit string A corresponding to the BFR-ID of the third forwarding device based on the BFR-ID of the third forwarding device.
  • the bit string B corresponding to the BFR-ID of the forwarding device; the second forwarding device combines the bit string A and the bit string B to obtain the F-BM.
  • the second forwarding device performs an OR operation on bit string A and bit string B, so that bit string A and bit string B are combined into F-BM.
  • the BFR-ID of the first forwarding device is 2, and the BFR-ID of the third forwarding device is 3.
  • the second forwarding device obtains that the bit string A corresponding to the BFR-ID of the first forwarding device is 0010.
  • the second forwarding device obtains that the bit string B corresponding to the BFR-ID of the third forwarding device is 0100.
  • the second forwarding device performs an OR operation on the bit string A (0010) and the bit string B (0100) to obtain 0110.
  • 0110 is the F-BM, and 0110 means that the device with BFR-ID 2 and the device with BFR-ID 3 can be reached.
  • Step (a-3) The second forwarding device obtains the first correspondence based on the F-BM, the first anycast label, and the BFR prefix of the first forwarding device.
  • the first correspondence includes the F-BM, the first anycast label, and BFR prefix of the first forwarding device.
  • the next hop that matches the BFR prefix of the first forwarding device is the combination of the identifier of the first forwarding device determined based on the BFR prefix of the first forwarding device and the outbound interface of the second forwarding device.
  • the identifier of the first forwarding device is, for example, the BFR prefix of the first forwarding device, or another IP address other than the BFR prefix of the first forwarding device.
  • the process of obtaining the first correspondence includes the following steps (b-1) to step (b-4).
  • Step (b-1) The second forwarding device determines that the first forwarding device and the third forwarding device belong to the first site based on the first anycast label and the second anycast label;
  • Step (b-2) The second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device;
  • Step (b-3) The second forwarding device determines the first outbound interface on the second forwarding device that reaches the first forwarding device based on the BFR prefix of the first forwarding device.
  • the second forwarding device communicates with the first forwarding device, and the second forwarding device uses the interface that receives the first parameter set as the first outgoing interface.
  • the second forwarding device based on the BFR prefix of the first forwarding device, searches the routing table for the interface through which the device communicates with the BFR prefix of the first forwarding device as the first outgoing interface.
  • Step (b-4) The second forwarding device obtains the first corresponding relationship based on the F-BM, the first anycast label, the BFR prefix of the first forwarding device, and the first outgoing interface.
  • the first corresponding relationship includes the F-BM, the first anycast label, and the first outgoing interface. An anycast label, the BFR prefix of the first forwarding device, and the first outgoing interface.
  • Step S208 The second forwarding device obtains the second corresponding relationship based on the second parameter set and the BFR-ID of the first forwarding device.
  • the second corresponding relationship includes the F-BM that matches the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, the second anycast label, and the next hop that matches the BFR prefix of the third forwarding device.
  • the second correspondence relationship can be implemented through one entry, or through multiple associated entries. For the implementation method, please refer to the above description of the first correspondence relationship.
  • the next hop that matches the BFR prefix of the third forwarding device in the second correspondence relationship includes multiple situations.
  • the following uses case A and case B as examples.
  • the next hop that matches the BFR prefix of the third forwarding device in the second correspondence is the BFR prefix of the third forwarding device.
  • the process of obtaining the second correspondence includes the following steps (a-1) to (a-3).
  • Step (a-1) The second forwarding device determines that the first forwarding device and the third forwarding device both belong to the first site based on the first anycast label and the second anycast label;
  • Step (a-2) The second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device;
  • Step (a-3) The second forwarding device obtains the second pair based on the F-BM, the second anycast label and the BFR prefix of the third forwarding device.
  • the second correspondence relationship includes the F-BM, the second anycast label, and the BFR prefix of the third forwarding device.
  • the next hop that matches the BFR prefix of the third forwarding device is the combination of the identifier of the third forwarding device determined based on the BFR prefix of the third forwarding device and the outbound interface of the second forwarding device.
  • the process of obtaining the second correspondence relationship includes the following steps (b-1) to step (b-4).
  • Step (b-1) The second forwarding device determines that the first forwarding device and the third forwarding device both belong to the first site based on the first anycast label and the second anycast label.
  • Step (b-2) The second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device.
  • Step (b-3) The second forwarding device determines the second outbound interface on the second forwarding device that reaches the third forwarding device based on the BFR prefix of the third forwarding device.
  • the second forwarding device communicates with the third forwarding device, and the second forwarding device uses the interface that receives the second parameter set as the second outgoing interface.
  • the second forwarding device based on the BFR prefix of the third forwarding device, searches the routing table for the interface through which the device communicates with the BFR prefix of the third forwarding device as the second outgoing interface.
  • Step (b-4) The second forwarding device obtains a second correspondence based on the F-BM, the second anycast label, the BFR prefix of the third forwarding device, and the second outbound interface.
  • the second correspondence includes the F-BM, the The second anycast label, the BFR prefix of the third forwarding device and the second outgoing interface.
  • the F-BM in the first correspondence reflects the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device
  • the second correspondence The F-BM in also reflects the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device. Therefore, if the bit string in the data message contains either the first forwarding device or the third forwarding device, When the BFR-ID is specified, you can choose to forward the packet to the next hop in either the first correspondence or the second correspondence, even if the next hop included in one of the first correspondence or the second correspondence appears. In the event of a fault, packets can also be forwarded to another included next hop without convergence, thereby avoiding traffic interruption and achieving fast switching and traffic protection in fault scenarios.
  • the second forwarding device receives two parameter sets from the first forwarding device and the third forwarding device in the first site, and according to the anycast labels contained in the two parameter sets both identify the first site,
  • the BFR-IDs of the first forwarding device and the third forwarding device are reflected in the same corresponding relationship, which is equivalent to binding multiple devices in the same site together through anycast labels.
  • the F-BM in the corresponding relationship can be matched according to the bit string in the data message, and the data message can be forwarded directly to the next hop in the corresponding relationship. There is no need to recalculate the next hop through route convergence, thus increasing the speed of convergence switching and achieving traffic protection.
  • the above embodiment of Figure 4 focuses on describing the control plane configuration process and the process of obtaining the corresponding relationship.
  • the corresponding relationship obtained by the embodiment of Figure 4 can be used to forward the data message when receiving the data message.
  • the following uses the diagram of the embodiment of Figure 5
  • the corresponding relationship in Embodiment 4 is used to illustrate the message forwarding process.
  • FIG. 5 is a flow chart of a method for processing multicast data packets provided by an embodiment of the present application.
  • the embodiment shown in FIG. 5 includes the following steps S211 to S213.
  • Step S211 The second forwarding device obtains the first BIER message.
  • the first BIER message includes a first bit string, a label of the second forwarding device, and a multicast data message.
  • the first BIER message includes a first message header, and the first message header includes a first bit string and a label of the second forwarding device.
  • the payload of the first BIER message includes a multicast data message.
  • the first bit string corresponds to one or more of the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device.
  • the value of the first bit string includes multiple cases, and the following is an example combining three cases.
  • the first bit string corresponds to the BFR-ID of the first forwarding device, but does not correspond to the BFR-ID of the third forwarding device.
  • the bit corresponding to the BFR-ID of the first forwarding device in the first bit string is set, but the bit corresponding to the BFR-ID of the third forwarding device is not set.
  • the first bit string corresponds to the BFR-ID of the third forwarding device and does not correspond to the BFR-ID of the first forwarding device.
  • the bit corresponding to the BFR-ID of the third forwarding device is set, but the bit corresponding to the BFR-ID of the first forwarding device is not set.
  • the first bit string corresponds to both the BFR-ID of the third forwarding device and the BFR-ID of the first forwarding device.
  • the bit bit corresponding to the BFR-ID of the third forwarding device is set, and the bit bit corresponding to the BFR-ID of the first forwarding device is both set.
  • bit string corresponding to the BFR-ID means, for example, that the bit position corresponding to the BFR-ID in the bit string is set.
  • the BFR-ID of the first forwarding device is k
  • the k-th bit from right to left in the first bit string is set, that is, the first bit string corresponds to the BFR-ID of the first forwarding device.
  • the first bit string corresponding to the BFR-ID of the first forwarding device means that the first forwarding device is the destination BFER of the multicast data message.
  • the first bit string corresponding to the BFR-ID of the third forwarding device means that the third forwarding device is the destination BFER of the multicast data message.
  • the first bit string corresponds to the BFR-ID of the third forwarding device and the BFR-ID of the first forwarding device, which means that both the first forwarding device and the third forwarding device are destination BFERs of the multicast data packet.
  • the label of the second forwarding device is used to identify the second forwarding device.
  • the label of the second forwarding device is the BIER MPLS label of the second forwarding device
  • the BIER MPLS label of the second forwarding device is used to determine the BIFT of the second forwarding device.
  • the message header of the first BIER message includes a BIFT-ID field
  • the BIFT-ID field includes a label of the second forwarding device.
  • the label of the second forwarding device is the End.BIER SID of the second forwarding device.
  • the End.BIER SID of the second forwarding device is used to instruct the second forwarding device to forward the multicast data packet based on BIER.
  • the message header of the first BIER message includes a destination address field, and the destination address field includes the End.BIER SID of the second forwarding device.
  • How the second forwarding device obtains the first BIER message includes multiple implementation methods. The following is an example of two scenarios.
  • the second forwarding device is a BFIR scenario.
  • the second forwarding device receives the multicast data packet from the multicast source.
  • the second forwarding device encapsulates the first message header into the multicast data message and obtains the first BIER message.
  • the second forwarding device searches the multicast forwarding table according to the multicast source group information in the multicast data packet.
  • the second forwarding device determines that the multicast data packet is to be forwarded through the BIER type path based on the table lookup result, and then encapsulates the first packet header into the multicast data packet.
  • Scenario B The second forwarding device is transit BFR.
  • the second forwarding device receives the third BIER message from the previous hop BFR, and the third BIER message includes the third bit string and the multicast data message.
  • the second forwarding device obtains the first BIER message based on the third BIER message.
  • the first bit string is obtained based on the third bit string and the F-BM in BIFT on the second forwarding device.
  • the first BIER message and the third BIER message have the same payload.
  • Step S212 The second forwarding device obtains the second BIER message based on the first BIER message and the first corresponding relationship.
  • the second BIER message includes a second bit string, a first anycast label and a multicast data message.
  • the message header of the second BIER message includes the second bit string and the first anycast label
  • the payload of the second BIER message includes the multicast data message.
  • the second bit string is obtained based on the F-BM in the first correspondence relationship between the first bit string and the first bit string.
  • the second bit string is obtained by performing an AND operation on the first bit string and F-BM.
  • the first bit string is 1100
  • F-BM is 0110
  • & represents the AND operation.
  • the second forwarding device updates the bit string in the first BIER message from the first bit string to the second bit string, so that the second BIER message includes the second bit string.
  • the first anycast label is used to identify the first site. Since the second BIER message includes the first anycast label, the second BIER message can be forwarded to any device in the first site.
  • the carrying position of the first anycast tag includes various situations.
  • the first anycast label is a BIER MPLS label
  • the header of the second BIER packet includes a BIFT-ID field
  • the BIFT-ID field includes the first anycast label.
  • the first anycast label is End.BIER SID
  • the packet header of the second BIER message includes the destination address field
  • the destination address field includes the first anycast label.
  • the first anycast tag is obtained, for example, by searching for the first correspondence.
  • the second forwarding device obtains the first bit string from the first BIER message, searches for the first correspondence based on the first bit string, and obtains the first anycast label corresponding to the first bit string.
  • the first corresponding relationship is an entry in the BIFT of the second forwarding device
  • the second forwarding device obtains the first anycast label in the process of searching for the BIFT.
  • the second forwarding device uses the first bit string to match each F-BM in the BIFT of the second forwarding device.
  • the second forwarding device determines to forward the message to the next hop in the first correspondence based on the match between the first bit string and the F-BM in the first correspondence in BIFT. Therefore, based on the F-BM in the first correspondence, the second forwarding device BM and the first anycast label, perform the steps of obtaining and sending the second BIER message. How to determine whether the first bit string matches the F-BM includes multiple methods.
  • the second forwarding device uses the first bit string to perform an AND operation with the F-BM to obtain the second bit string. Based on the fact that the second bit string is not all zeros, the second forwarding device determines that the first bit string matches the F-BM in the first correspondence relationship in the BIFT.
  • the second forwarding device updates fields in the header of the first BIER message so that the second BIER message includes the first anycast label.
  • the following is an example of two scenarios.
  • Scenario 1 Configure BIER in the MPLS network.
  • Scenario 1 is, for example, a BIER-MPLS scenario.
  • the first anycast label is, for example, the BIER MPLS label of the first forwarding device
  • the BIFT-ID field in the header of the first BIER message includes the BIER MPLS label of the second forwarding device.
  • the second forwarding device uses the first anycast label to update the BIFT-ID field in the header of the first BIER packet, so that the BIFT-ID field in the header of the second BIER packet includes the BIER MPLS label of the first forwarding device. , which is the first anycast tag.
  • Scenario 2 Configure BIER in the IPv6 network.
  • Scenario 2 includes but is not limited to any one of BIERv6, BIERin6 or G-BIER scenarios.
  • BIER Encapsulation Format For specific details, please refer to the description after the title “BIER Encapsulation Format” below.
  • the first anycast label is, for example, the End.BIER SID of the first forwarding device
  • the destination address field in the header of the first BIER message includes the End.BIER SID of the second forwarding device.
  • the second forwarding device uses the first anycast label to update the destination address field in the header of the first BIER message, so that the destination address field in the header of the second BIER message includes the End.BIER SID of the first forwarding device, That is the first anycast tag.
  • Step S213 The second forwarding device sends the second BIER message.
  • the destination of the second BIER message sent by the second forwarding device includes many situations. Two situations are given as examples below.
  • Scenario 1 The second forwarding device sends the second BIER message to the next hop in the first corresponding relationship.
  • the next hop in the first correspondence is the BFR prefix of the first forwarding device
  • the second forwarding device uses the BFR prefix of the first forwarding device as the IP address of the next hop, and sends the BFR prefix of the first forwarding device.
  • BIER message For another example, the next hop in the first correspondence relationship includes the first outbound interface on the second forwarding device that reaches the first forwarding device, and the second forwarding device sends the second BIER message through the first outbound interface.
  • the next hop in the first correspondence relationship includes the BFR prefix of the first forwarding device and the first outbound interface of the second forwarding device to the first forwarding device. The second forwarding device sends the packet to the first forwarding device through the first outbound interface.
  • the BFR prefix of the forwarding device sends the second BIER message.
  • the second forwarding device sends the second BIER message to the next hop in the second corresponding relationship.
  • the next hop is the BFR prefix of the third forwarding device.
  • the second forwarding device uses the BFR prefix of the third forwarding device as the IP address of the next hop and sends the second BIER message to the BFR prefix of the third forwarding device.
  • the next hop in the second correspondence relationship includes a second outbound interface on the second forwarding device that reaches the third forwarding device, and the second forwarding device sends the second BIER message through the second outbound interface.
  • the next hop in the second corresponding relationship includes the BFR prefix of the third forwarding device and the second outbound interface on the second forwarding device to reach the third forwarding device.
  • the second forwarding device passes the second outbound interface to the third forwarding device.
  • the BFR prefix of the forwarding device sends the second BIER message.
  • the second forwarding device chooses to use the first correspondence relationship or the second correspondence relationship to send the message, including multiple implementation methods.
  • the following is an example of two scenarios.
  • a link failure is, for example, a link failure between the second forwarding device and the next hop in the corresponding relationship.
  • a node failure is, for example, a device failure at the next hop in the corresponding relationship obtained by the second forwarding device.
  • the second forwarding device When the second forwarding device detects that a node failure or a link failure occurs in the next hop in either of the first correspondence relationship and the second correspondence relationship, because the F-BM values in the two correspondence relationships are the same, or If both correspondences match the bit string in the data message, the second forwarding device can send the message to the next hop in the other correspondence, thus avoiding traffic interruption due to a fault.
  • the second forwarding device sends a message to the next hop in the second correspondence that matches the BFR prefix of the third forwarding device.
  • the second BIER message includes but is not limited to a link failure between the second forwarding device and the first forwarding device or a failure of the first forwarding device.
  • the second forwarding device sends a request to the next hop in the first correspondence that matches the BFR prefix of the first forwarding device. Send the second BIER message.
  • the failure state of the next hop matching the BFR prefix of the third forwarding device includes but is not limited to a link failure between the second forwarding device and the third forwarding device or a failure of the third forwarding device.
  • the method by which the second forwarding device selects the next hop includes, but is not limited to, the following methods one to three.
  • the second forwarding device sends a second BIER message to any one of the next hop that matches the BFR prefix of the first forwarding device and the next hop that matches the BFR prefix of the third forwarding device.
  • the second forwarding device randomly selects one of the next hops that match the BFR prefix of the first forwarding device and the next hop that matches the BFR prefix of the third forwarding device as the next hop of the second BIER message, and sends the second BIER message to the randomly selected next hop.
  • the second forwarding device forwards the BIER message using method one.
  • the load sharing scenario is supported, which helps the multicast data flow to be evenly shared on the link between the second forwarding device and the first forwarding device and the link between the second forwarding device and the third forwarding device. Avoid overloading a single link.
  • Link cost is used to represent the distance of the network path, such as the number of hops that the network path passes through.
  • the link cost can be represented by cost or metric. If the next hop that matches the BFR prefix of the first forwarding device and the next hop that matches the BFR prefix of the third forwarding device are not in a fault state, the second forwarding device can transfer the next hop that matches the BFR prefix of the first forwarding device. Next hop and to third forwarding device Among the next hops matched by the BFR prefix, the one with the smallest link cost is used as the better next hop, and the second BIER message is sent to the next hop with the smallest link cost.
  • the second forwarding device sends a second BIER message to the first forwarding device.
  • the link cost between the second forwarding device and the third forwarding device is less than the link cost between the second forwarding device and the first forwarding device, the second forwarding device sends a second BIER message to the third forwarding device.
  • Link quality includes but is not limited to link delay, jitter, link bandwidth, or packet loss rate.
  • the second forwarding device sends a second BIER message to the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device, whichever has the highest link network quality.
  • the second forwarding device sends a second BIER message to the first forwarding device.
  • the second forwarding device sends a second BIER message to the third forwarding device.
  • Figure 6 is a flow chart of a method for obtaining a correspondence relationship provided by an embodiment of the present application.
  • the method shown in Figure 6 includes the following steps S221 to S229.
  • Step S221 The third forwarding device in the first site obtains the third parameter set.
  • the third parameter set includes the first bypass label, the BFR-ID of the third forwarding device, and the BFR prefix of the third forwarding device.
  • the first bypass label is used to identify the third forwarding device.
  • the first bypass tag is the End.BIER SID of the third forwarding device.
  • the first bypass label is an MPLS label of the third forwarding device. The value of the first bypass tag is different from the above-mentioned second anycast tag and the above-mentioned first anycast tag.
  • Step S222 The first forwarding device in the first site obtains the fourth parameter set.
  • the fourth parameter set includes a second bypass label, a BFR-ID of the first forwarding device, and a BFR prefix of the first forwarding device.
  • the second bypass label is used to identify the first forwarding device.
  • the second bypass label is the End.BIER SID of the first forwarding device.
  • the second bypass label is an MPLS label of the first forwarding device.
  • Step S223 The third forwarding device sends the third parameter set to the first forwarding device in the first site.
  • Step S224 The first forwarding device sends the fourth parameter set to the third forwarding device in the first site.
  • Step S225 The first forwarding device receives the third parameter set from the third forwarding device in the first site.
  • Step S226 The third forwarding device receives the fourth parameter set from the first forwarding device.
  • Step S227 The first forwarding device obtains the third correspondence based on the third parameter set.
  • the third corresponding relationship includes the first bypass label, the F-BM matching the BFR-ID of the third forwarding device, and the next hop matching the BFR prefix of the third forwarding device.
  • Step S228 The third forwarding device obtains the fourth correspondence based on the fourth parameter set.
  • the fourth corresponding relationship includes the second bypass label, the F-BM matching the BFR-ID of the first forwarding device, and the next hop matching the BFR prefix of the first forwarding device.
  • the forwarding device establishes a corresponding relationship between the F-BM that matches the BFR-ID of the peer device in the same site, the bypass label of the peer device in the same site, and the next hop, which is equivalent to opening up the relationship.
  • the routing within the site enables the forwarding device to match the F-BM based on the bit string when receiving a data packet containing a bit string matching the BFR-ID of the peer device, and use the peer device in the same site as the next hop.
  • the forwarding device finds out that the destination BFER of the data packet is not the device based on the bit string carried in the data packet.
  • the data message can be forwarded to another forwarding device in the same site using the corresponding relationship obtained in the embodiment shown in Figure 6.
  • Figure 7 is a flow chart of a data packet processing method provided by an embodiment of the present application. The method shown in Figure 7 is an example of forwarding a packet from a first forwarding device to a third forwarding device.
  • Figure 7 The illustrated embodiment includes the following steps S231 to S233.
  • Step S231 The first forwarding device in the first site receives the first BIER message.
  • the first BIER message includes the first bit string corresponding to the BFR-ID of the third forwarding device, the first anycast label and the multicast data message.
  • Step S232 The first forwarding device in the first site obtains the second BIER message based on the first BIER message and the third corresponding relationship.
  • the second BIER message includes a second bit string, a first bypass label and a multicast data message.
  • the second bit string is a bit string obtained based on the F-BM in the first bit string and the third correspondence relationship.
  • the first forwarding device performs an AND operation on the first bit string and the F-BM, and the result obtained by the AND operation is the second bit string.
  • the first forwarding device searches for the third correspondence based on the first bit string, and performs an AND operation using the F-BM in the first bit string and the third correspondence.
  • the first forwarding device determines to forward the packet to the next hop that matches the BFR prefix of the third forwarding device based on the F-BM matching the first bit string and the BFR-ID of the third forwarding device and the operation result is not all 0. , so based on the first BIER message and the first bypass label, the second BIER message is obtained.
  • Step S233 The first forwarding device in the first site sends the second BIER message to the third forwarding device in the first site.
  • the forwarding device when it receives a data message containing the corresponding bit string of another device in the same site, it encapsulates the bypass label identifying the other device in the same site into the data message, thereby When copying data packets, packet forwarding will not be terminated because the label in the data packet is a label that identifies itself, allowing different devices in the site to transfer data packets to each other to avoid traffic interruption.
  • Figure 8 is a flow chart of a data packet processing method provided by an embodiment of the present application.
  • the method shown in Figure 8 is an example of forwarding a packet from a third forwarding device to a first forwarding device.
  • Figure 8 The illustrated embodiment includes the following steps S241 to S243.
  • Step S241 The third forwarding device in the first site receives the first BIER message.
  • the first BIER message includes the first bit string corresponding to the BFR-ID of the first forwarding device, the first anycast label and the multicast data message.
  • Step S242 The third forwarding device obtains the second BIER message based on the first BIER message and the fourth corresponding relationship.
  • the second BIER message includes a second bit string, a second bypass label and a multicast data message.
  • Step S243 The third forwarding device sends the second BIER message to the first forwarding device in the first site.
  • the forwarding device when it receives a data message containing the corresponding bit string of another device in the same site, it encapsulates the bypass label identifying the other device in the same site into the data message, thereby When copying data packets, packet forwarding will not be terminated because the label in the data packet is a label that identifies itself, allowing different devices in the site to transfer data packets to each other to avoid traffic interruption.
  • any of the above-mentioned embodiments shown in FIG. 4 to the embodiment in FIG. 8 can be implemented independently or in combination.
  • the following is an example of the process of the combined implementation of the embodiment shown in FIG. 4 to the embodiment in FIG. 8 in the BIER-MPLS scenario.
  • anycast BIER-MPLS label is a specific example of anycast label in the embodiment shown in Figure 4 to Figure 8.
  • bypass BIER-MPLS label is a specific example of anycast label in the embodiment shown in Figure 4 to Figure 8.
  • BFR-A of site A is a specific example of the second forwarding device in the second site in the above embodiment.
  • BFR-B1 and BFR-B2 of site B are a specific example of the second forwarding device in the second site in the above embodiment.
  • the following embodiment includes the following steps 0 to 5.
  • Step 0 Plan your site.
  • Step 1 Deploy IGP or BGP
  • Packets that flood BFR prefix carry BIER-related parameter sets.
  • the parameter sets they carry include: BFR-ID, SI, BSL, and BIER-MPLS label.
  • Each BFR in the site is configured with a different BFR-ID.
  • the same anycast BIER-MPLS label is used on the devices within the site, and the original BIER-MPLS label is called the bypass BIER-MPLS label.
  • the anycast BIER-MPLS label and the BFR prefix are flooded through the same message.
  • the anycast label is used to generate the inter-site BIER forwarding table, and the bypass label is used to generate the intra-site BIER forwarding table.
  • a global label block is allocated in the label space to assign anycast labels to each site.
  • the anycast BIER-MPLS label and bypass BIER-MPLS label are carried by the sub-sub-TLV in the BIER information sub-TLV of route flooding.
  • FIG. 9 shows the BIER information sub-TLV.
  • the BIER-MPLS label is filled in the sub-sub-TLV field in the BIER information sub-TLV.
  • Figure 10 shows the sub-sub-TLV encapsulated by BIER-MPLS, which carries MAX-SI, BSL and BIER-MPLS label.
  • bypass label is still encapsulated in the original sub-sub-TLV.
  • the anycast label is encapsulated as shown in the new sub-sub-TLV in Figure 11.
  • the new anycast label sub-sub-TLV is encapsulated behind the original bypass label sub-sub-TLV.
  • Step 3 Create BIER forwarding table
  • the device After the device receives the BIER information sub-TLV of other BFRs, it will parse the bypass label and anycast label of the sub-sub-TLV. Locally maintain the corresponding relationship of [BFR-ID, anycast label, bypass label] in the BIER subdomain.
  • Step 3-1 Establishment of inter-site forwarding table
  • BFR-A of site A receives the BIER information sub-TLV of BFR-B1 of site B and the BIER information sub-TLV of BFR-B2
  • BFR-A parses the BIER information sub-TLV of BFR-B1 and The BIER information sub-TLV of BFR-B2 obtains two anycast labels.
  • BFR-A determines that the two anycast labels (label_B) are inconsistent with BFR-A's local anycast label (label_A), but the two anycast labels are consistent with each other, then BFR-A merges the BFR-IDs of BFR-B1 and BFR-B2 into in an F-BM entry.
  • BFR-A will connect the outbound interfaces to BFR-B1 and BFR-B2 with the next hop. Reflected in this F-BM entry. If the link from BFR-A to BFR-B1 and the link from BFR-A to BFR-B2 are non-equivalent links, the outbound interface and next hop of the optimal link are reflected in the F-BM entry. . Among them, the outbound interface from BFR-A to BFR-B1 and the outbound interface to BFR-B2 are reflected in BIFT only as an optional method.
  • BFR-A does not connect the outbound interface to BFR-B1.
  • the interface and the outgoing interface to BFR-B2 are reflected in BIFT.
  • Example of how BFR-A determines the outbound interface If so, BFR-A obtains the outbound interface to BFR-B1 and the outbound interface to BFR-B2 by learning the unicast route, or obtains the outbound interface to BFR-B1 and the outbound interface to BFR-B from the unicast forwarding table.
  • the F-BM generated by each device will There are only two digits, 01 and 10 respectively.
  • the F-BM of the original BIFT table is merged, and the BIFT generated is as follows.
  • the BIFT of BFR-A is as shown in Table 2-1 or Table 2-2 below.
  • anycast label is used to build the inter-site BIER forwarding table.
  • Step 3-2 Establish the forwarding table within the site
  • BFR-B1 receives the BIER information sub-TLV of BFR-B2, BFR-B1 parses out anycast label (label_B) and bypass label (label_B2), and finds that the anycast label is the same as the local anycast label. If the labels are consistent, BFR-B1 can use the original bypass label to generate BIFT entries to the peer device for packet transfer within the site. When the packet is copied to the peer device, that is, BFR-B2, it carries the bypass label of the peer.
  • the bypass label of BFR-B1 is label_B1
  • the bypass label of BFR-B2 is label_B2.
  • the BIFT generated by BFR-B1 is shown in Table 4 below.
  • the BIFT generated by BFR-B2 is shown in Table 5 below.
  • Step 4 After receiving the data message, find BIFT.
  • bit string and BIER-MPLS label carried in the packet header will be parsed.
  • anycast label is used to encapsulate the packet header.
  • the bypass label is used to encapsulate the packet header.
  • the device performs an AND operation with the F-BM in the BIFT table based on the bit string to obtain the reachable BFER set in the BIER subdomain and the corresponding BFR neighbors, outgoing interfaces, and next hops.
  • Step 4-1 This device forms load sharing with two devices at the downstream site at the same time.
  • the devices at site A are directly connected to the two devices at site B.
  • BFR-A1 or BFR-A2 can use the outbound interface to BFR-B1 to forward packets, or it can use the outbound interface to BFR-B2 to forward packets.
  • the BIFT generated by BFR-A1 is shown in Table 6 below.
  • BFR-A1 receives a data message, and the bit string in the data message is 01.
  • BFR-A1 can also use another outbound interface without convergence. Therefore, when one of the links from BFR-A1 to BFR-B1 and from BFR-A1 to BFR-B2 fails, BFR-A1 can directly forward traffic through another link to achieve fast switching and traffic protection in fault scenarios.
  • Step 4-2 When this device only has a link with one device at the downstream site
  • the device in site A only has a link with one device in site B.
  • the forwarding table entry on BFR-A1 has one outgoing interface.
  • the BIFT generated by BFR-A1 is shown in Table 7 below.
  • the bit string carried in the data message is 01.
  • BFR-A1 uses the bit string 01 to perform the AND operation with the F-BM in Table 7.
  • BFR-A1 can send data packets from the outbound interface directly connected to BFR-B1, and use label_B to replace the label carried in the data packets.
  • BFR-A1 When the outbound interface of BFR-A1 directly connected to BFR-B1 becomes unavailable due to link or node failure, BFR-A1 needs to converge to the link to BFR-B1. BFR-A1 switches the outbound interface from the interface directly connected to BFR-B1 to the interface directly connected to BFR-A2, and obtains the BIFT shown in Table 8 below.
  • a forwarding table entry has been generated on BFR-A2 to reach BFR-B2.
  • the forwarding table entry is shown in Table 9 below.
  • the meaning of this forwarding table entry is that the next hop is BFR-B2.
  • the label of the next hop is label_B
  • the outbound interface is the interface directly connected to BFR-B2.
  • BFR-A2 can directly use this entry to forward data packets, and will not converge back to BFR-A1, so it will not occur again. Microring problem. At this time, compared to using different labels, it is faster to open up traffic forwarding.
  • Step 5 Search for BIFT after receiving the data packet at the destination site
  • the forwarding table generated based on the bypass label can be used to forward the data packet.
  • the BIFT generated by BFR-B2 contains the entries shown in Table 10.
  • BFR-B2 receives the data message.
  • the bit string carried in the data message is 01.
  • BFR-B2 uses the bit string 01 to perform the AND operation with F-BM 01 in Table 10.
  • the anycast End.BIER SID is a specific example of anycast tag in the embodiment shown in Figure 4 to the embodiment shown in Figure 8.
  • the bypass End.BIER SID is the implementation shown in Figure 4 Let's take a specific example of the bypass tag in the embodiment shown in FIG. 8 . This embodiment includes the following steps 0 to 5.
  • Step 0 Plan the site
  • Step 1 Deploy IGP or BGP
  • Each BFR is configured with IGP, BGP or other routing protocols for flooding the BFR prefix.
  • the message flooding the BFR prefix carries the BIER related parameter set.
  • the carried parameter set includes: BFR-ID, SI, BSL and End.BIER SID.
  • Step 2 flood the End.BIER SID
  • each BFR in the site is configured with a different BFR-ID.
  • anycast End.BIER SID and different bypass End.BIER SID are used on the devices inside the site. Use anycast End.BIER SID to generate inter-site BIFT tables, and use bypass End.BIER SID to generate intra-site BIFT tables.
  • IGP BIERv6 flood BIERv6 information through IGP, and establish a BIERv6 forwarding table within the site.
  • the BIER parameter set is encapsulated in the sub-TLV of the IGP message and is used to calculate the BIER routing table and the BIER forwarding table.
  • the End.BIER SID is encapsulated in the sub-sub-TLV.
  • the End.BIER SID is encapsulated in the sub-sub-TLV.
  • bypass End.BIER is encapsulated in the original End.BIER sub-sub-TLV in Figure 17, and anycast End.BIER is encapsulated as shown in Figure 18.
  • the format is consistent with the existing End.BIER sub-sub-TLV, and is placed after the existing End.BIER sub-sub-TLV during encapsulation.
  • Step 3 Create BIERv6 forwarding table
  • Step 3-1 Create an inter-site forwarding table
  • BFR-A resolves the two sub-sub-TLVs.
  • BFR-A finds that the obtained anycast End.BIER is inconsistent with the local anycast End.BIER, but the anycast End.BIER of BFR-B1 is consistent with the anycast End.BIER of BFR-B2, then BFR-A will The BFR-ID of BFR-B1 and the BFR-ID of BFR-B2 are merged in F-BM.
  • BFR-A uses the outbound interfaces to BFR-B1 and BFR-B2 as the outbound interfaces of the F-BM.
  • BFR-A uses the link from BFR-A to BFR-B1 and the link from BFR-A to The outbound interface of the better link among the BFR-B2 links is used as the outbound interface of the F-BM.
  • the F-BM of the original BIFT table is merged to generate the BIFT as shown below.
  • Step 3-1 Create an intra-site forwarding table
  • BFR-B1 parses the sub-sub-TLV of BFR-B2, compares anycast End.BIER, and finds that it is consistent with the local anycast End.BIER, so it uses the bypass End.BIER that is inconsistent with the local one. , as the next hop End.BIER to the opposite end, so that after the received data packet contains the BFR-ID bit string to the opposite end device, when the data packet is copied, it will not be because the next hop End.BIER is It terminates packet forwarding by itself and realizes the purpose of transmitting data packets to each other within the site.
  • Table 14 is a specific example of the BIER forwarding table within the site on BFR-B1.
  • Table 15 is a specific example of the BIER forwarding table within the site on BFR-B2.
  • Step 4 Search for BIFT after receiving the data message
  • the End.BIER SID carried in the message header will be parsed.
  • the End.BIER SID is the local End.BIER SID
  • BIERv6 forwarding processing is performed.
  • the End.BIER SID is not the local End.BIER SID, the ordinary unicast packet forwarding process is performed.
  • Step 4-1 When this device has links with two devices at the downstream site at the same time
  • the device BFR-A1 When the device BFR-A1 has a link with two devices at the downstream site, and the two links are equivalent, there will be outbound interfaces to both devices in the forwarding table, and the BIER message can be forwarded to any of the two outbound interfaces.
  • the traffic can be directly forwarded through the other link, achieving fast switching and traffic protection in the failure scenario.
  • BFR-A1 receives the data message.
  • the bit string carried in the data message is 01.
  • BFR-A1 uses bit string 01 to perform AND operation with F-BM 11 in Table 16.
  • BFR-A1 can send packets from one of the two outbound interfaces directly connected to BFR-B1 and BFR-B2.
  • Use End.BIER_B to replace the End.BIER SID carried in the packet header.
  • the other outbound interface can be used to send data packets without convergence.
  • Step 4-2 When this device only has a link with a device at a downstream site
  • BFR-A1 converges the next hop from BFR-B1 to BFR-A2.
  • the BIFT of BFR-A1 after convergence is shown in Table 17 below.
  • BFR-A2 originally has a forwarding table to BFR-ID 1 with BFR-B2 as the next hop, as shown in Table 18 below. Therefore, BFR-A2 can directly converge to BFR-B2 without converging back to BFR-A1.
  • End.BIER SID Compared with hard convergence when using different End.BIER SIDs, using the same End.BIER SID can avoid the generation of micro-rings and open up traffic forwarding faster.
  • Step 5 After receiving the data message, the destination site searches for BIFT.
  • bypass End.BIER When a packet reaches the site but the destination BFR is not the device, the BIFT generated by bypass End.BIER can be used to forward the packet.
  • the BIFT generated by BFR-B2 contains the entries shown in Table 19.
  • BFR-B2 receives the data message.
  • the header of the data message carries bit string 01.
  • BFR-B2 uses bit string 01 and F-BM 01.
  • the packet can be forwarded to another BFR within the site, namely BFR-B1, through End.BIER_B1.
  • BFR-B1 further forwards the packet to the destination BFR.
  • the multicast root node is site 1 directly connected to the multicast source.
  • the multicast leaf node is the site 3 to which the multicast receiver is directly connected.
  • Site 2 represents the intermediate node.
  • Both the root node and leaf nodes enable the BIER capability, serve as BFR nodes, and are assigned BFR-IDs.
  • site 1 and site 3 serve as BFIR and BFER respectively.
  • PE3 has interface 1, interface 2 and interface 3.
  • Interface 1 is the outbound interface from PE3 to PE4
  • interface 2 is the outbound interface from PE3 to PE5
  • interface 3 is the outbound interface from PE3 to PE6.
  • PE6 has interface 4, which is the outbound interface from PE6 to PE5.
  • the embodiment includes the following steps 1 to 6.
  • Step 1 Deploy BIER-MPLS:
  • the root node, intermediate node and leaf node are uniformly configured with BIER sub-domain id of 1, BSL of 64 and SI of 1.
  • the BFR-ID of each device is different; the intermediate node is not configured with BFR-ID, but supports BIER forwarding;
  • Two devices at the same site are configured with the same anycast BIER-MPLS label and different bypass BIER-MPLS labels; different sites are configured with different anycast BIER-MPLS labels.
  • BIER Two devices in the same site are deployed with BIER, and the two devices in the site establish BIER forwarding tables. Packets can be forwarded in the site through BIER.
  • each device shown in FIG. 23 is as shown in Table 20.
  • Step 2 Announce BIER parameter set
  • Each device in the BIER subdomain advertises the BIER parameter set through the deployed IGP or BGP.
  • Each device generates a routing table and forwarding table by advertising the obtained BIER parameter set.
  • PE 5 sends the BIER information sub-TLV shown in Figure 24.
  • the sub-sub-TLV in Figure 24 carries the bypass label, and the value of the bypass label is 31.
  • Figure 25 shows the newly added sub-sub-TLV, which is used to carry the anycast label.
  • the value of the anycast label is 30.
  • Figure 26 shows the BIER information sub-TLV of PE6.
  • PE3 After PE3 receives the BIER information sub-TLV of PE5 and PE6, PE3 will parse the anycast label and bypass label.
  • PE3's anycast label is 20, and the value of PE3's bypass label is 21.
  • PE3 parses and obtains PE5's anycast label 30, PE3 compares PE5's anycast label with its own anycast label and finds that the two are inconsistent. It then records label 30 as the label of the next hop to BFR-ID 5 in the current ⁇ sub-domain, SI, BSL>, and records the outbound interface as the interface directly connected to PE5. Similarly, the next hop label from PE3 to BFR-ID 6 is also 30.
  • Step 3 Generate BIFT table
  • PE3 merges the two BFR-IDs of PE5's BFR-ID and PE6's BFR-ID into the same F-BM.
  • Table 21 shows the BIFT of PE 3.
  • the index of the BIFT of PE 3 is ⁇ SD: 1, SI: 1, BSL: 64>.
  • BFR-ID of PE5 is 5, and the BFR-ID of PE6 is 6, then a bit string with a length of 64 is generated, and the 5th bit from the right and the 6th bit from the right of the bit string are set to obtain F-BM 110000.
  • the last 6 bits of F-BM are shown here.
  • the first 58 bits of F-BM are all 0.
  • the first 58 bits of F-BM are omitted and not shown here.
  • the next hop label corresponding to F-BM is 30.
  • the link from PE3 to PE5 and the link from PE3 to PE6 are equal-cost links, so the BFR-NBR is PE5 and PE6, and the outgoing interfaces are the interface from PE3 to PE5 and the interface from PE3 to PE6 respectively.
  • PE1 generates BIFT, as shown in Table 22 below.
  • the BIFT index of PE 1 is ⁇ SD:1,SI:1,BSL:64>.
  • PE6 receives the BIER information sub-TLV of PE5, parses the sub-sub-TLV in the BIER information sub-TLV, and the parsed label is 30, which is consistent with the local anycast label 30.
  • PE6 parses the bypass label as 31, and records label 31 as the next hop label to BFR-ID 5 in the current ⁇ sub-domain, SI, BSL> BIFT table, as shown in Table 23.
  • PE5 generates the BIFT table entry shown in Table 24.
  • Step 4 Forward the multicast data packet.
  • the multicast source sends multicast data packet 1, and the destination recipient of multicast data packet 1 is receiver 2 connected to PE5.
  • PE1 After receiving multicast data packet 1, PE1 adds a header containing a bit string to multicast data packet 1 to obtain multicast data packet 2.
  • the bit string contains the destination BFER that the packet needs to reach, that is, the BFR-ID of PE5.
  • the bit string is 010000.
  • PE1 determines that the next hop label is label 20, and the outbound interface is the interface pointing to PE3 or PE4.
  • PE1 selects one of the outgoing interfaces to forward multicast data packet 2.
  • PE3 When PE1 sends multicast data packet 2 through the interface pointing to PE3, PE3 receives multicast data packet 2. PE3 compares the bit string in multicast data packet 2 with BIFT and finds that the next hop label is 30. PE3 forwards multicast data packet 3 from the outgoing interface pointing to PE5. Multicast data packet 3 is based on multicast Obtained from data packet 2, the bit string in multicast data packet 3 is based on the ratio in multicast data packet 2. The special string is obtained by performing and operating F-BM in BIFT of PE3.
  • PE5 After multicast data packet 3 reaches PE5, PE5 compares the bit string in multicast data packet 3 with the F-BM on PE5 and finds that the local machine is the destination BFER. Then PE5 decapsulates the multicast data packet 3 containing The message header of the bit string is obtained and multicast data message 4 is obtained. PE5 sends multicast data message 4 to receiver 2 to complete BIER traffic forwarding.
  • Figure 27 shows the scenario where the link between PE3 and PE5 fails.
  • PE3 receives multicast data packet 2 and searches for BIFT. It can still obtain the label arriving at BFR-ID 5. is 30, the BFR neighbor is PE6, and the outbound interface is interface 3, then PE3 forwards multicast data packet 3 based on multicast data packet 2 to PE6 through interface 3.
  • Table 25 shows the entries in the BIFT table of PE3.
  • the BIFT index in PE3 is ⁇ SD:1,SI:1,BSL:64>.
  • Step 5-2 Intermediate node failure
  • Figure 28 shows a node failure scenario, for example, PE3 fails.
  • PE1 receives multicast data packet 1, adds a header containing a bit string to multicast data packet 1, and obtains multicast data packet 2.
  • the bit string contains the destination BFER that the packet needs to reach, that is, the BFR-ID of PE5.
  • the bit string is 010000.
  • the BIFT on PE1 is shown in Table 26 below. When PE1 sends multicast data packet 2, it sends multicast data packet 2 from the egress interface directly connected to PE4 according to the BIFT shown in Table 26.
  • PE4 After PE4 receives multicast data packet 2, PE4 obtains multicast data packet 3 based on multicast data packet 2 and the BIFT shown in Table 27 below, and sends multicast data packet 3 from the interface directly connected to PE5. .
  • the bit string in multicast data message 3 is obtained from the bit string in multicast data message 2 and F-BM 110000.
  • Step 6 Internal packet forwarding within the site.
  • PE6 looks up the BIFT shown in Table 28. After comparison, it is concluded that the next hop label is 31. PE6 obtains multicast data packet 4 based on multicast data packet 3 and Table 28. , sending multicast data packet 4 through outbound interface 4, so that multicast data packet 4 is forwarded to PE5.
  • the root node of multicast is site 1 directly connected to the multicast source.
  • the multicast leaf node is site 3 to which the multicast receiver is directly connected.
  • Site 2 represents the intermediate device. Both the root node and the leaf node enable the BIER capability, serve as BFR nodes, and assign BFR IDs.
  • site 1 and site 3 serve as BFIR and BFER respectively.
  • Interface 1 is the outbound interface from PE3 to PE4, and interface 2 is the outbound interface from PE3 to PE5.
  • Interface 3 is the outbound interface from PE4 to PE6, and interface 4 is the outbound interface from PE6 to PE5.
  • the embodiment includes the following steps 1 to 5.
  • the root node, leaf nodes and intermediate nodes are uniformly configured with BIER sub-domain ID of 1, BSL of 64 and SI of 1.
  • the BFR-ID of each device in the root node and each leaf node is different; the intermediate node is not configured with BFR-ID, but supports BIER forwarding.
  • Two devices at the same site are configured with the same anycast BIER-MPLS label and different bypass BIER-MPLS labels; different sites are configured with different anycast BIER-MPLS labels.
  • BIER Two devices in the same site are deployed with IGP BIER, and the two devices in the site establish BIER forwarding tables. Packets can be forwarded through BIER in the site. Enable BGP between different sites to enable global routing and forwarding functions. For example, refer to Table 29 below, which shows the parameters configured on each device.
  • Step 2 Announce the parameter set of BIER and generate BIFT.
  • Each device floods the BIER parameter set in the BIER subdomain through the deployed IGP.
  • Each device generates a BIER routing table and a BIER forwarding table based on the received parameter set. Since the link from PE3 to PE5 is better than the link from PE3 to PE6, PE3 uses PE5 as the BFR-NBR. There is only one outbound interface in the BIFT table.
  • the BIFT table generated on PE3 is shown in Table 30 below.
  • the BIFT table generated on PE4 is shown in Table 31 below.
  • PE5 generates the BIFT table shown in Table 32 below based on the bypass BIER-MPLS label
  • PE6 generates the BIFT table shown in Table 33 below based on the bypass BIER-MPLS label.
  • Step 3 Forward the multicast data packet.
  • the root node sends multicast data message 1.
  • the destination recipient of multicast data message 1 is receiver 2 of the PE5 connection corresponding to BFR-ID 5.
  • PE1 After PE1 receives multicast data packet 1, it adds a header containing a bit string to multicast data packet 1 and obtains multicast data packet 2.
  • the bit string contains the BFR-ID of the destination BFER that the message needs to reach, and the bit string is 010000.
  • PE1 determines that the next hop label is 20 and the outbound interface is the interface pointing to PE3 or PE4. When there are two outgoing interfaces on PE1 to reach the current neighbor, PE1 selects one of them to forward multicast data packet 2.
  • PE3 When PE1 sends multicast data message 2 through the interface pointing to PE3, after PE3 receives multicast data message 2, PE3 compares the bit string in multicast data message 2 with BIFT, and obtains the next hop label as 30. Obtain multicast data packet 3 based on multicast data packet 2 and BIFT, and send multicast data packet 3 from the outbound interface pointing to PE5.
  • PE 5 After multicast data packet 3 reaches PE5, PE 5 compares the bit string in multicast data packet 3 with the BIFT on PE 5 and finds that the local machine is the destination device, so it decapsulates the multicast data packet 3 containing The message header of the bit string is obtained, and multicast data message 4 is obtained to complete BIER traffic forwarding.
  • Figure 30 shows a link failure scenario. As shown in Figure 30, when the link between PE3 and PE5 fails. PE3 converges BFR-NBR to PE4, and PE3 uses the local interface directly connected to PE4 as the outbound interface, resulting in the BIFT shown in Table 34.
  • PE4 there is a forwarding entry to PE6, so the forwarding path from PE3 to PE6 can be opened.
  • the forwarding path between PE3 and BFR-ID5 is connected by the route from PE6 to PE5 in the site.
  • PE4 In the non-anycast scenario, when each device does not use anycast label, the same fault occurs. After PE3 updates the outgoing interface to interface 1, PE4 still uses PE5 as the destination to learn neighbors, and the route to PE5 is not like anycast. In this scenario, you can choose a route directly in the direction of PE6. PE4 may not realize that [PE3-PE5] is blocked, and still thinks that [PE4-PE3-PE5] and [PE4-PE6-PE5] are optional paths. When PE4 selects PE3 as the next hop to PE5, a microloop occurs. The above-mentioned micro-loop behavior may occur more than once, which will cause continuous packet loss after a link failure until the micro-loop behavior stops.
  • anycast label can avoid micro-loop problems after link failures, speed up link convergence and routing switching, and achieve the purpose of rapid traffic protection.
  • Step 4-2 Intermediate node failure
  • PE1 receives multicast data packet 1 from the multicast source, adds a header containing a bit string to multicast data packet 1, and obtains multicast data packet 2.
  • the bit string in the packet header is 010000.
  • PE1 forwards the packet, PE1 sends multicast data packet 2 from the egress interface directly connected to PE2 according to the BIFT shown in Table 36.
  • PE4 When multicast data packet 2 arrives at PE4, PE4 obtains multicast data packet 3 based on the BIFT and multicast data packet 2 shown in Table 37. PE4 forwards the multicast data packet from the interface directly connected to PE6. 3.
  • Step 5 Internal packet forwarding within the site.
  • PE6 When multicast data packet 3 reaches PE6, PE6 searches for BIFT shown in Table 38 according to the bit string in the header of multicast data packet 3, and after comparison, it is concluded that the next hop label is 31. PE6 obtains multicast data packet 4 according to multicast data packet 3. PE6 sends multicast data packet 4 through the direct interface with PE5, so that multicast data packet 4 is forwarded to PE5.
  • Figure 32 shows a networking scenario where BIERv6PE3 and PE6 have direct links.
  • the multicast root node is headquarters site 1 directly connected to the multicast source.
  • the multicast leaf node is the site 3 to which the multicast receiver is directly connected.
  • Site 2 represents the intermediate node.
  • Both the multicast source and receiver enable the BIERv6 capability, serve as BFR nodes, and assign BFRIDs.
  • site 1 and site 3 serve as BFIR and BFER respectively.
  • Interface 1 is the outbound interface from PE3 to PE4
  • interface 2 is the outbound interface from PE3 to PE5
  • interface 3 is the outbound interface from PE3 to PE6.
  • This embodiment includes the following steps 1 to 6.
  • PE1 to PE6 are uniformly configured with BIER sub-domain ID 1, BSL 64, and SI 1.
  • BFR-ID of the root node and leaf nodes are different; the intermediate nodes are not configured with BFR-ID, but support BIERv6 forwarding;
  • Two devices at the same site are configured with the same anycast End.BIER and different bypass End.BIER; different sites are configured with different anycast End.BIER.
  • Step 2 flood BIER’s parameter set.
  • Each device in the BIER subdomain floods the BIER parameter set through the deployed IGP.
  • Each device generates F-BM based on the received BFR-ID.
  • PE3 receives the BIERv6 information sub-TLV from PE5 and PE6.
  • the BIERv6 information sub-TLV contains the sub-sub-TLV carrying End.BIER.
  • the BIERv6 information sub-TLV sent by PE5 is shown in Figure 33.
  • the BIERv6 information sub-TLV sent by PE6 is shown in Figure 34.
  • PE3 parses bypass End.BIER and anycast End.BIER in sub-sub-TLVs. PE3's anycast End.BIER is 2::1 and bypass End.BIER is 2::2.
  • PE3 parses out that PE5's anycast End.BIER is 3::1, which is inconsistent with PE3's own anycast End.BIER, PE3 records 3::1 as the current ⁇ sub-domain, SI, BSL> in BFR- Next hop End.BIER of ID 5. In the same way, the next hop End.BIER from PE3 to BFR-ID 6 is also 3::1.
  • PE6 receives the BIERv6 information sub-TLV of PE5 and parses the sub-sub-TLV in the BIERv6 information sub-TLV.
  • the parsed anycast End.BIER is 3::1, it is consistent with the local anycast End.BIER.
  • the parsed bypass End.BIER is 3::2, then the bypass End.BIER3::2 is recorded as the next hop End.BIER to BFR-ID 5 in the current ⁇ sub-domain, SI, BSL>.
  • Step 3 Generate BIFT table.
  • PE3 uses both PE5 and PE6 as BFR-NBR and reflects their outbound interfaces and next hops in the BIFT table.
  • the BIFT table generated on PE3 is shown in Table 40.
  • PE5 generated the BIFT table shown in Table 41 based on the parsed bypass BIER-MPLS label
  • PE6 generated the BIFT table shown in Table 42 based on the parsed bypass BIER-MPLS label.
  • Step 4 Forward the multicast data packet.
  • the root node sends multicast data packet 1.
  • the destination recipient of multicast data packet 1 is multicast receiver 2 connected to PE5 with BFR-ID 5.
  • PE1 When PE1 receives multicast data packet 1, PE1 adds a header containing a bit string and End.BIER SID to multicast data packet 1 to obtain multicast data packet 2.
  • the bit string in the message header contains the BFR-ID of the destination BFER that the message needs to reach, and the bit string is 010000.
  • PE1 determines that the outbound interface is the interface pointing to PE3 or PE4. When the current neighbor has two outgoing interfaces, PE1 selects one of the outgoing interfaces to send multicast data packet 2. Both interfaces may be used to forward multicast data packet 2.
  • PE3 When multicast data packet 2 is forwarded from the interface on PE1 that points to PE3, PE3 receives multicast data packet 2.
  • PE3 compares the bit string in the header of multicast data packet 2 with the F-BM in the BIFT, and finds that the neighbor is PE5. Then PE2 forwards the multicast obtained based on multicast data packet 2 from the outgoing interface pointing to PE5.
  • Data message 3 When multicast data packet 2 is forwarded from the interface on PE1 that points to PE3, PE3 receives multicast data packet 2.
  • PE3 compares the bit string in the header of multicast data packet 2 with the F-BM in the BIFT, and finds that the neighbor is PE5. Then PE2 forwards the multicast obtained based on multicast data packet 2 from the outgoing interface pointing to PE5.
  • Data message 3 3.
  • PE5 After multicast data packet 3 arrives at PE5, PE5 compares the bit string in the header of multicast data packet 3 with PE5's BIFT. PE5 finds that this device is the destination device, so it strips off the header containing the bit string of multicast data packet 3 and forwards the obtained multicast data packet 4 to multicast receiver 2, completing BIER traffic forwarding.
  • Step 5-1 The intermediate link fails.
  • Figure 35 shows a link failure scenario. As shown in Figure 35, the link between PE3 and PE5 fails. At this time, when PE3 receives multicast data message 2, PE3 looks up the BIFT shown in table 45 and concludes that the next hop is PE5 or PE6. At this time, because the outbound interface 2 of PE3 reaching PE6 is no longer available due to a link failure, Then PE3 uses interface 3 reaching PE5 to forward multicast data packet 3 obtained based on multicast data packet 2 to PE6.
  • Step 5-2 Intermediate node failure.
  • PE1 obtains multicast data packet 2 based on multicast data packet 1 from the multicast source.
  • the bit string in the header of multicast data packet 2 is 010000.
  • PE1 forwards multicast data packet 2 according to the BIFT shown in Table 47, it forwards multicast data packet 2 from the outbound interface directly connected to PE4.
  • PE4 obtains multicast data packet 3 based on multicast data packet 2 and the BIFT entry shown in Table 47, from the interface directly connected to PE5 and to PE6.
  • One of the interfaces sends multicast data packet 3, so that multicast data packet 3 reaches the destination site.
  • Step 6 Internal packet forwarding within the site.
  • PE6 looks up the BIFT shown in table 48 based on the bit string in the header of the multicast data packet 3, and compares the bit string with the F-BM in the BIFT.
  • the outgoing next hop End.BIER is 3::2, and PE6 forwards the multicast data packet obtained based on multicast data packet 3 from outgoing interface 4 to PE5.
  • Figure 37 is a specific example where BIERv6PE3 and PE6 have no direct link.
  • the multicast root node is site 1 directly connected to the multicast source.
  • the multicast leaf node is the site 3 to which the multicast receiver is directly connected.
  • Site 2 represents the intermediate device.
  • Both the multicast source and receiver enable the BIERv6 capability, serve as BFR nodes, and assign BFR-IDs.
  • site 1 and site 3 serve as BFIR and BFER respectively.
  • Interface 1 is the outbound interface from PE3 to PE4, and interface 2 is the outbound interface from PE3 to PE5.
  • Interface 3 is the outbound interface from PE4 to PE6.
  • Interface 4 is the outbound interface from PE6 to PE5.
  • the embodiment includes the following steps 1 to 6.
  • Step 1 Deploy BIERv6.
  • PE1 to PE6 are uniformly configured with BIER sub-domain ID 1, BSL 64, and SI 1.
  • the BFR-ID of each device on the root node and leaf node is different; the intermediate node is not configured with BFR-ID, but supports BIERv6 forwarding.
  • Two devices in the same site are deployed with IGP BIER, and the two devices in the site establish BIERv6 forwarding tables. Packets can be forwarded in BIERv6 within the site.
  • Step 2 Announce BIERv6 information and generate BIFT.
  • Each device floods the BIER parameter set in the BIER subdomain through the deployed IGP.
  • Each device generates a BIER routing table and a BIER forwarding table based on the received BIER parameter set.
  • PE3 receives the BIERv6 information sub-TLV of PE5 and PE6.
  • the sub-TLV contains the sub-sub-TLV carrying End.BIER.
  • the BIERv6 information sub-TLV sent by PE 5 is shown in Figure 38
  • the BIERv6Info sub-TLV sent by PE6 is shown in Figure 39.
  • PE3 parses bypass End.BIER and anycast End.BIER in sub-sub-TLV.
  • PE3's anycast End.BIER is 2::1 and bypass End.BIER is 2::2.
  • anycast End.BIER of PE5 is parsed out to be 3::1, it is different from my own anycast End.BIER. If so, record 3::1 as the next hop End.BIER to BFR-ID 5 in the current ⁇ sub-domain, SI, BSL>.
  • the next hop End.BIER from PE3 to BFR-ID6 is also 3::1.
  • PE6 receives the BIERv6Info of PE5 and parses the sub-sub-TLV.
  • the parsed anycast End.BIER is 3::1, it is consistent with the local anycast End.BIER, and the parsed bypass End.BIER is 3::2.
  • record 3::2 as the next hop End.BIER to BFR-ID 5 in the current ⁇ sub-domain, SI, BSL>.
  • Step 3 BIFT table and routing generation.
  • PE3 to PE5 and PE3 to PE6 are not equal-cost routes, and the route to PE5 is better, the interface directly connected from PE3 to PE5 is used as the outbound interface.
  • the BIFT table generated on PE3 is shown in Table 50 below.
  • PE5 generates a BIFT table based on the parsed bypass BIER-MPLS label as shown in Table 51 below.
  • PE6 generates a BIFT table based on the parsed bypass BIER-MPLS label as shown in Table 52 below.
  • Step 4 Forward the multicast data packet.
  • the multicast source sends multicast data packet 1, and the destination recipient of multicast data packet 1 is receiver 2 of the PE5 connection corresponding to BFR-ID 5.
  • PE1 After PE1 receives multicast data message 1, it encapsulates the message header containing the bit string and End.BIER SID into multicast data message 1, and obtains multicast data message 2.
  • the bit string in the message header contains the destination BFR-ID that the message needs to reach, and the bit string is 010000.
  • PE 1 Based on the comparison result between the bit string and the F-BM in BIFT on PE1, PE 1 concludes that the BFR-neighbor is 2::1.
  • PE1 searches the forwarding table and finds that the outgoing interface is the interface pointing to PE3 or PE4. When there are two outgoing interfaces arriving at the current neighbor, one of them is selected to send multicast data packet 2. Both interfaces may be used to forward multicast data packets 2.
  • multicast data packet 2 When multicast data packet 2 is forwarded from the interface pointing to PE3, after PE3 receives multicast data packet 2, PE3 compares the bit string in multicast data packet 2 with BIFT to obtain the neighbor's End.BIER.
  • the SID is 3::1, and multicast data packet 3 obtained based on multicast data packet 2 is sent through the outbound interface pointing to PE5.
  • PE5 After multicast data packet 3 reaches PE5, PE5 compares the bit string in multicast data packet 3 with PE5's BIFT. PE5 finds that the local machine is the destination device, and then decapsulates the bit string contained in multicast data packet 3. And the message header of End.BIER SID, obtain the multicast data message 4, send the multicast data message 4 to the receiver 2, and complete the BIER traffic forwarding.
  • Step 5-1 The intermediate link fails.
  • Figure 40 shows a link failure scenario.
  • the link between PE3 and PE5 fails.
  • PE3 has reached PE3
  • the bit string in the multicast data packet 2 is searched for BIFT and the next hop End.BIER is 3::1.
  • the entry to PE5 in the BIER forwarding table is no longer available, so it needs to be converged to PE4 again.
  • the outbound interface on PE3 that reaches the BFR neighbor PE4 is 3, so PE3 uses interface 3 to forward the multicast data packet 3 obtained based on the multicast data packet 2 to PE6.
  • Step 5-2 Intermediate node failure.
  • Figure 41 shows a node failure scenario, taking the failure of PE3 as an example.
  • the BIFT on PE1 is as shown in Table 53.
  • the BIFT on PE1 is as shown in Table 54.
  • PE1 obtains multicast data packet 2 based on multicast data packet 1 from the multicast source, and the bit string in multicast data packet 2 is 010000.
  • PE1 forwards multicast data packet 2, it sends multicast data packet 2 from the outbound interface directly connected to PE2 as shown in Table 53.
  • PE2 After PE2 receives multicast data packet 2, PE2 searches for PE2's BIFT based on the bit string of multicast data packet 2 and obtains multicast data packet 3.
  • PE2 sends multicast data packet 3 to PE4.
  • PE4 forwards multicast data packet 4 based on multicast data packet 3 from the interface directly connected to PE6.
  • Step 6 Internal packet forwarding within the site.
  • PE6 After multicast data packet 4 reaches PE6, PE6 searches for the BIFT shown in Table 56 below based on the bit string in the header of multicast data packet 4. After comparing the bit string and F-BM, PE6 obtains the next hop. End.BIER is 3::2, and PE6 sends multicast data packet 5 based on multicast data packet 4 to PE5 from outbound interface 4.
  • FIG42 is a schematic diagram of a structure of a corresponding relationship acquisition device 700 provided in an embodiment of the present application.
  • the corresponding relationship acquisition device 700 is arranged in a second forwarding device in a second site, and includes a receiving unit 701 and a processing unit 702.
  • the receiving unit 701 is configured to receive the first parameter set from the first forwarding device in the first site, where the first parameter set includes the first anycast label, the BFR-ID of the first forwarding device, and the BFR prefix of the first forwarding device, The first anycast label is used to identify the first site; the receiving unit 701 is also used to receive a second parameter set from the third forwarding device in the first site.
  • the second parameter set includes the second anycast label, the third The BFR-ID of the third forwarding device and the BFR prefix of the third forwarding device, and the second anycast label is used to identify the first site;
  • the processing unit 702 is configured to obtain a first corresponding relationship based on the first parameter set and the BFR-ID of the third forwarding device.
  • the first corresponding relationship includes matching the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device.
  • the processing unit 702 is also configured to based on the second parameter set and the BFR-ID of the first forwarding device Obtain a second correspondence relationship, which includes an F-BM that matches the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, a second anycast label, and a BFR prefix that matches the third forwarding device. the next hop.
  • the processing unit 702 is used to determine that the first forwarding device and the third forwarding device belong to the first site based on the first anycast label and the second anycast label; obtain the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device; obtain a first corresponding relationship based on the F-BM, the first anycast label and the BFR prefix of the first forwarding device, and the first corresponding relationship includes the F-BM, the first anycast label and the BFR prefix of the first forwarding device.
  • the processing unit 702 is used to determine that the first forwarding device and the third forwarding device belong to the first site based on the first anycast label and the second anycast label; obtain the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device; determine the first outbound interface on the second forwarding device to reach the first forwarding device based on the BFR prefix of the first forwarding device; obtain a first correspondence based on the F-BM, the first anycast label, the BFR prefix of the first forwarding device, and the first outbound interface, the first correspondence including the F-BM, the first anycast label, the BFR prefix of the first forwarding device, and the first outbound interface.
  • the processing unit 702 is configured to determine based on the first anycast label and the second anycast label that both the first forwarding device and the third forwarding device belong to the first site; based on the BFR-ID of the first forwarding device and The BFR-ID of the third forwarding device is used to obtain F-BM; based on the F-BM, the second anycast label and the BFR prefix of the third forwarding device, the second corresponding relationship is obtained.
  • the second corresponding relationship includes F-BM, the second Anycast label and BFR prefix of the third forwarding device.
  • the processing unit 702 is configured to determine based on the first anycast label and the second anycast label that both the first forwarding device and the third forwarding device belong to the first site; based on the BFR-ID of the first forwarding device and Obtain the F-BM based on the BFR-ID of the third forwarding device; determine the second outbound interface on the second forwarding device to the third forwarding device based on the BFR prefix of the third forwarding device; based on the F-BM and the second anycast label , the BFR prefix of the third forwarding device and the second outgoing interface, and obtain a second corresponding relationship.
  • the second corresponding relationship includes the F-BM, the second anycast label, the BFR prefix of the third forwarding device and the second outgoing interface.
  • both the first anycast label and the second anycast label are labels; or, the first anycast label and the second anycast label are both IPv6 destination addresses.
  • the first parameter set further includes one or more of the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the identifier of the BIER subdomain where the first forwarding device is located. ;
  • the second parameter set also includes one or more of the bit string length BSL of the third forwarding device, the set identifier SI to which the third forwarding device belongs, and the identifier of the BIER subdomain in which the third forwarding device is located.
  • the receiving unit 701 is configured to receive a first advertisement message from the first forwarding device, the first advertisement message includes a BIER information sub-TLV, and the BIER information sub-TLV includes a first anycast label; receiving the first advertisement message from the first forwarding device.
  • the first advertisement message and the second advertisement message are IGP messages; or the first advertisement message and the second advertisement message are BGP messages.
  • the first forwarding device is a BFER and the second forwarding device is a transit BFR; or, the first forwarding device is a transit BFR and the second forwarding device is a BFIR; or, the first forwarding device and the second forwarding device are adjacent transit BFRs.
  • the processing unit 702 is also configured to: obtain a first BIER message, where the first BIER message includes a first bit string, The label of the second forwarding device and the multicast data message, the first bit string corresponds to one or more of the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device; based on the first BIER message and The first correspondence relationship obtains the second BIER message.
  • the second BIER message includes the second bit string, the first anycast label and the multicast data message.
  • the second bit string is based on the first bit string and the first correspondence relationship.
  • obtained by the F-BM the device further includes: a sending unit, used to send the second BIER message.
  • the sending unit is configured to, if the next hop matching the BFR prefix of the first forwarding device is in a fault state, send a message to the next hop matching the BFR prefix of the third forwarding device in the second correspondence relationship.
  • the second BIER message or, if the next hop matching the BFR prefix of the third forwarding device is in a fault state, send the second BIER message to the next hop matching the BFR prefix of the first forwarding device in the first correspondence relationship.
  • message or, if neither the next hop matching the BFR prefix of the first forwarding device nor the next hop matching the BFR prefix of the third forwarding device is in a fault state, forwarding the message to the next hop matching the BFR prefix of the first forwarding device.
  • next hop with the smallest link cost and the next hop that matches the BFR prefix of the third forwarding device sends the second BIER message; or, if the next hop that matches the BFR prefix of the first forwarding device and the next hop with the smallest link cost, the second BIER message is sent. None of the next hops matching the BFR prefix of the third forwarding device are in a fault state, and the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device are in the link network.
  • the one with the highest quality sends the second BIER message; or, if the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device are not in a fault state, send the second BIER message to the Either one of the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device sends the second BIER message.
  • the device embodiment described in Figure 42 is only illustrative.
  • the division of the above units is only a logical function division. In actual implementation, there may be other divisions.
  • multiple units or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented.
  • Each functional unit in various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
  • Each unit in the correspondence relationship acquisition device 700 is implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • each functional unit in the acquisition device 700 uses hardware or software to implement the corresponding relationship in conjunction with the hardware device 900 described below.
  • processing unit 702 is implemented by a software functional unit generated by at least one processor 901 in FIG. 44 after reading the program code stored in the memory 902.
  • the above-mentioned units in Figure 42 are respectively implemented by different hardware in the forwarding device.
  • the processing unit 702 is implemented by a part of the processing resources (such as multi-core) in at least one processor 901 in Figure 44 One core or two cores in the processor), or using programmable devices such as field-programmable gate array (FPGA) or co-processor.
  • the receiving unit 701 is implemented by the network interface 903 in Figure 44.
  • Figure 43 is a schematic structural diagram of a parameter notification device 800 provided by an embodiment of the present application.
  • the device 800 is located on the first forwarding device in the first site and includes: a processing unit 801 for obtaining the first parameter set, the first parameter
  • the set includes a first anycast label, a BFR-ID of the first forwarding device and a BFR prefix of the first forwarding device.
  • the first anycast label is used to identify the first site; the sending unit 802 is used to send a message to the second site in the second site.
  • the forwarding device sends the first parameter set.
  • the first anycast label is a label or an IPv6 destination address.
  • the first parameter set further includes one or more of the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the identifier of the BIER subdomain where the first forwarding device is located.
  • the sending unit 802 is configured to send a first notification message to the second forwarding device, where the first notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes a first anycast label.
  • the first advertisement message is an IGP message or a BGP message.
  • the first forwarding device is a BFER and the second forwarding device is a transit BFR; or the first forwarding device is a transit BFR and the second forwarding device is a BFIR; or the first forwarding device and the second forwarding device are Adjacent transit BFR.
  • the apparatus further includes: a receiving unit configured to receive a third parameter set from a third forwarding device in the first site, where the third parameter set includes a first bypass label, a BFR-ID of the third forwarding device, and BFR prefix of the third forwarding device, the first bypass label is used to identify the third forwarding device;
  • the processing unit 801 is also configured to obtain a third correspondence based on the third parameter set.
  • the third correspondence includes the first bypass tag, the F-BM matching the BFR-ID of the third forwarding device, and the BFR of the third forwarding device. The next hop that prefix matches.
  • the receiving unit is also configured to receive a first BIER message, where the first BIER message includes a first bit string corresponding to the BFR-ID of the third forwarding device, a first anycast label, and a multicast datagram.
  • the processing unit 801 is also configured to obtain a second BIER message based on the first BIER message and the third corresponding relationship.
  • the second BIER message includes the second bit string, the first bypass label and the multicast data message.
  • the two-bit string is a bit string obtained based on the F-BM in the first bit string and the third corresponding relationship; the sending unit 802 is also used to send the second BIER message to the third forwarding device.
  • the processing unit 801 is also used to obtain a fourth parameter set.
  • the fourth parameter set includes the second bypass label, the BFR-ID of the first forwarding device, and the BFR prefix of the first forwarding device.
  • the second bypass label Used to identify the first forwarding device; the sending unit 802 is also used to send the fourth parameter set to the third forwarding device.
  • the device embodiment described in Figure 43 is only illustrative.
  • the division of the above units is only a logical function division. In actual implementation, there may be other divisions.
  • multiple units or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented.
  • Each functional unit in various embodiments of the present application can be integrated into one processing unit 801, or each unit can exist physically alone, or two or more units can be integrated into one unit.
  • Each unit in the parameter notification device 800 is implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • processing unit 801 is implemented by a software functional unit generated by at least one processor 901 in FIG. 44 after reading the program code stored in the memory 902.
  • the above-mentioned units in Figure 43 are respectively implemented by different hardware in the forwarding device.
  • the processing unit 801 is implemented by a part of the processing resources (such as multi-core) in at least one processor 901 in Figure 44 One core or two cores in the processor), or using programmable devices such as field-programmable gate array (FPGA) or co-processor.
  • the sending unit 802 is implemented by the network interface 903 in Figure 44.
  • Figure 44 is a schematic structural diagram of a forwarding device 900 provided by an embodiment of the present application.
  • the forwarding device 900 includes at least one processor 901, a memory 902, and at least one network interface 903.
  • the processor 901 is, for example, a general central processing unit (CPU), a network processor (NP), a graphics processing unit (GPU), or a neural network processor (neural-network processing units, NPU). ), a data processing unit (DPU), a microprocessor or one or more integrated circuits used to implement the solution of the present application.
  • the processor 901 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
  • the memory 902 is, for example, a read-only memory (ROM) or other type that can store static information and instructions.
  • Static storage devices such as random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disk storage media or other magnetic disks
  • RAM random access memory
  • EEPROM electrically erasable programmable read-only memory
  • CD-ROM compact disc read-only memory
  • optical disc storage including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.
  • disk storage media or other magnetic disks A storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can
  • Network interface 903 uses any transceiver-like device for communicating with other devices or communications networks.
  • the network interface 903 includes, for example, at least one of a wired network interface or a wireless network interface.
  • the wired network interface is, for example, an Ethernet interface.
  • the Ethernet interface is, for example, an optical interface, an electrical interface or a combination thereof.
  • the wireless network interface is, for example, a wireless local area network (WLAN) interface, a cellular network network interface or a combination thereof.
  • WLAN wireless local area network
  • processor 901 includes one or more CPUs, such as CPU0 and CPU1 shown in Figure 44.
  • forwarding device 900 optionally includes multiple processors, such as processor 901 and processor 905 shown in Figure 44.
  • processors are, for example, a single-core processor (single-CPU) or a multi-core processor (multi-CPU).
  • Processor here optionally refers to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • forwarding device 900 also includes an internal connection 904.
  • the processor 901, the memory 902 and at least one network interface 903 are connected through an internal connection 904.
  • Internal connections 904 include pathways that carry information between the components described above.
  • internal connection 904 is a single board or bus.
  • the internal connections 904 are divided into address bus, data bus, control bus, etc.
  • the forwarding device 900 also includes an input and output interface 906. Input/output interface 906 is connected to internal connection 904 .
  • the processor 901 implements the method in the above embodiment by reading the program code stored in the memory 902, or the processor 901 implements the method in the above embodiment by using the internally stored program code.
  • the memory 902 stores the program code 910 that implements the method provided by the embodiment of the present application.
  • A refers to B, which means that A is the same as B or that A is a simple transformation of B.
  • first and second in the description and claims of the embodiments of this application are used to distinguish different objects, rather than to describe a specific order of objects, and cannot be understood to indicate or imply relative importance. sex.
  • first correspondence relationship and the second correspondence relationship are used to distinguish different correspondence relationships, but are not used to describe a specific order of the correspondence relationships, nor can it be understood that the first correspondence relationship is more important than the second correspondence relationship.
  • the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • a computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present application are generated in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored in a computer-readable In a storage medium, or from one computer-readable storage medium to another computer-readable storage medium, for example, computer instructions may be transmitted from a website, computer, server, or data center over wires (e.g., coaxial cables, optical fiber, digital subscriber (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website, computer, server or data center.
  • Computer-readable storage media can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or other integrated media that contains one or more available media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc.

Abstract

The present application belongs to the technical field of communications. Provided are a correspondence acquisition method, a parameter notification method, and an apparatus, a device and a medium. In the present application, a second forwarding device receives two parameter sets from a first forwarding device and a third forwarding device in a first station; according to the fact that anycast labels included in the two parameter sets each identify the first station, a BFR-ID of the first forwarding device and a BFR-ID of the third forwarding device are embodied in the same correspondence, that is, a plurality of devices in the same station are bound together by means of anycast labels, such that when a data message is received, if a link which reaches one device in the first station fails, an F-BM in a correspondence can be matched according to a bit string in the data message, and the data message is directly forwarded to the next hop in the correspondence, without the need for recalculating the next hop by means of routing convergence, thereby increasing the speed of convergence switching, and thus realizing flow protection.

Description

对应关系的获取方法、参数通告方法、装置、设备及介质Correspondence acquisition methods, parameter notification methods, devices, equipment and media
本申请要求于2022年12月05日提交的申请号为202211550567.7、发明名称为“对应关系的获取方法、参数通告方法、装置、设备及介质”的中国专利申请的优先权,以及要求于2022年9月22日提交的申请号为202211160684.2、发明名称为“一种BIER Anycast流量保护方法及装置”的中国专利申请的优先权。上述专利申请的全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with application number 202211550567.7 and the invention title "Correspondence Obtaining Method, Parameter Notification Method, Device, Equipment and Medium" submitted on December 05, 2022, and claims in 2022 The application number 202211160684.2 submitted on September 22 and the invention title is "a BIER Anycast traffic protection method and device" have priority. The entire contents of the above-mentioned patent applications are incorporated by reference into this application.
技术领域Technical field
本申请涉及通信技术领域,特别涉及一种对应关系的获取方法、参数通告方法、装置、设备及介质。The present application relates to the field of communication technology, and in particular to a method for obtaining a correspondence relationship, a parameter notification method, a device, equipment and a medium.
背景技术Background technique
在位索引显式复制(bit indexed explicit replication,BIER)的场景中,当BIER转发路径所经过的一跳BFR故障或者BFR所在的链路发生故障,其他BFR需要通过单播将到达BFER的路由逐跳收敛,通过收敛后的路由转发报文,导致收敛切换的速度较慢。In the scenario of bit indexed explicit replication (BIER), when a BFR that the BIER forwarding path passes through fails or the link where the BFR is located fails, other BFRs need to unicast the route to the BFER one by one. Hop convergence requires packets to be forwarded through the converged route, resulting in slower convergence switching.
发明内容Contents of the invention
本申请提供了一种对应关系的获取方法、参数通告方法、装置、设备及介质,能够提高了收敛切换的速度,实现流量保护。所述技术方案如下。This application provides a corresponding relationship acquisition method, parameter notification method, device, equipment and medium, which can improve the speed of convergence switching and achieve traffic protection. The technical solution is as follows.
第一方面,提供了一种对应关系的获取方法,包括:第二站点内第二转发设备接收来自第一站点内第一转发设备的第一参数集,所述第一参数集包括第一任播标签、所述第一转发设备的BFR-ID以及所述第一转发设备的BFR prefix,所述第一任播标签用于标识所述第一站点;所述第二转发设备接收来自所述第一站点内第三转发设备的第二参数集,所述第二参数集包括第二任播标签、所述第三转发设备的BFR-ID以及所述第三转发设备的BFR prefix,所述第二任播标签用于标识所述第一站点;所述第二转发设备基于所述第一参数集以及所述第三转发设备的BFR-ID获得第一对应关系,所述第一对应关系包括与所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID匹配的转发比特掩码F-BM、所述第一任播标签以及与所述第一转发设备的BFR prefix匹配的下一跳;所述第二转发设备基于所述第二参数集以及所述第一转发设备的BFR-ID获得第二对应关系,所述第二对应关系包括与所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID匹配的F-BM、所述第二任播标签以及与所述第三转发设备的BFR prefix匹配的下一跳。In a first aspect, a method for obtaining a corresponding relationship is provided, including: a second forwarding device in a second site receives a first parameter set from a first forwarding device in a first site, the first parameter set including a first anycast label, a BFR-ID of the first forwarding device, and a BFR prefix of the first forwarding device, and the first anycast label is used to identify the first site; the second forwarding device receives a second parameter set from a third forwarding device in the first site, the second parameter set including a second anycast label, the BFR-ID of the third forwarding device, and the BFR prefix of the third forwarding device, and the second anycast label is used to identify the first site; the second forwarding device receives a second parameter set from a third forwarding device in the first site, the second parameter set including a second anycast label, the BFR-ID of the third forwarding device, and the BFR prefix of the third forwarding device, and the second anycast label is used to identify the first site; the second forwarding device and the BFR-ID of the third forwarding device, wherein the first correspondence includes a forwarding bit mask F-BM matching the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, the first anycast label, and a next hop matching the BFR prefix of the first forwarding device; the second forwarding device obtains a second correspondence based on the second parameter set and the BFR-ID of the first forwarding device, wherein the second correspondence includes an F-BM matching the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, the second anycast label, and a next hop matching the BFR prefix of the third forwarding device.
上述方法中,第二转发设备从第一站点内的第一转发设备和第三转发设备接收到两份参数集,根据两个参数集包含的任播标签均标识第一站点,将第一转发设备和第三转发设备的BFR-ID体现在同一条对应关系中,相当于通过任播标签,将同一个站点内的多个设备绑定在一起,那么当接收到数据报文时,如果到达第一站点内其中一个设备的链路故障,能够根据数据报文中的比特串匹配到对应关系中的F-BM,直接向对应关系中的下一跳转发数据报文,而无需通过路由收敛重新计算下一跳,因此提高了收敛切换的速度,实现流量保护。In the above method, the second forwarding device receives two parameter sets from the first forwarding device and the third forwarding device in the first site. According to the anycast tags contained in the two parameter sets both identify the first site, the first forwarding device The BFR-ID of the device and the third forwarding device are reflected in the same corresponding relationship, which is equivalent to binding multiple devices in the same site together through anycast labels. Then when a data packet is received, if it arrives If one of the devices in the first site has a link failure, it can match the F-BM in the corresponding relationship based on the bit string in the data message, and forward the data message directly to the next hop in the corresponding relationship without going through routing. Convergence recalculates the next hop, thus increasing the speed of convergence switching and achieving traffic protection.
在一些实施方式中,所述第二转发设备基于所述第一参数集以及所述第三转发设备的BFR-ID获得第一对应关系,包括:所述第二转发设备基于所述第一任播标签以及所述第二任播标签,确定所述第一转发设备以及所述第三转发设备属于所述第一站点;所述第二转发设备基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;所述第二转发设备基于所述F-BM、所述第一任播标签以及所述第一转发设备的BFR prefix,获得所述第一对应关系,所述第一对应关系包括所述F-BM、所述第一任播标签以及所述第一转发设备的BFR prefix。In some implementations, the second forwarding device obtains the first corresponding relationship based on the first parameter set and the BFR-ID of the third forwarding device, including: the second forwarding device based on the first any broadcast tag and the second anycast tag, and determine that the first forwarding device and the third forwarding device belong to the first site; the second forwarding device is based on the BFR-ID of the first forwarding device and The BFR-ID of the third forwarding device obtains the F-BM; the second forwarding device obtains the BFR prefix based on the F-BM, the first anycast tag and the first forwarding device. The first correspondence relationship includes the F-BM, the first anycast label, and the BFR prefix of the first forwarding device.
在一些实施方式中,所述第二转发设备基于所述第一参数集以及所述第三转发设备的BFR-ID获得 第一对应关系,包括:所述第二转发设备基于所述第一任播标签以及所述第二任播标签,确定所述第一转发设备以及所述第三转发设备属于所述第一站点;所述第二转发设备基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;所述第二转发设备基于所述第一转发设备的BFR prefix,确定所述第二转发设备上到达所述第一转发设备的第一出接口;所述第二转发设备基于所述F-BM、所述第一任播标签、所述第一转发设备的BFR prefix以及所述第一出接口,获得所述第一对应关系,所述第一对应关系包括所述F-BM、所述第一任播标签、所述第一转发设备的BFR prefix以及所述第一出接口。In some implementations, the second forwarding device obtains the BFR-ID based on the first parameter set and the third forwarding device. The first correspondence relationship includes: the second forwarding device determines that the first forwarding device and the third forwarding device belong to the first site based on the first anycast tag and the second anycast tag. ; The second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device; the second forwarding device obtains the F-BM based on the first forwarding device The BFR prefix determines the first outbound interface on the second forwarding device that reaches the first forwarding device; the second forwarding device is based on the F-BM, the first anycast label, the first The BFR prefix of the forwarding device and the first outbound interface are used to obtain the first corresponding relationship. The first corresponding relationship includes the F-BM, the first anycast label, and the BFR of the first forwarding device. prefix and the first outbound interface.
在一些实施方式中,所述第二转发设备基于所述第二参数集以及所述第一转发设备的BFR-ID获得第二对应关系,包括:所述第二转发设备基于所述第一任播标签以及所述第二任播标签确定所述第一转发设备以及所述第三转发设备均属于所述第一站点;所述第二转发设备基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;所述第二转发设备基于所述F-BM、所述第二任播标签以及所述第三转发设备的BFR prefix,获得所述第二对应关系,所述第二对应关系包括所述F-BM、所述第二任播标签以及所述第三转发设备的BFR prefix。In some implementations, the second forwarding device obtains the second corresponding relationship based on the second parameter set and the BFR-ID of the first forwarding device, including: the second forwarding device based on the first any The broadcast tag and the second anycast tag determine that the first forwarding device and the third forwarding device both belong to the first site; the second forwarding device is based on the BFR-ID of the first forwarding device and The BFR-ID of the third forwarding device obtains the F-BM; the second forwarding device obtains the BFR prefix based on the F-BM, the second anycast tag and the third forwarding device. The second correspondence relationship includes the F-BM, the second anycast label, and the BFR prefix of the third forwarding device.
在一些实施方式中,所述第二转发设备基于所述第二参数集以及所述第一转发设备的BFR-ID获得第二对应关系,包括:所述第二转发设备基于所述第一任播标签以及所述第二任播标签确定所述第一转发设备以及所述第三转发设备均属于所述第一站点;所述第二转发设备基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;所述第二转发设备基于所述第三转发设备的BFR prefix,确定所述第二转发设备上到达所述第三转发设备的第二出接口;所述第二转发设备基于所述F-BM、所述第二任播标签、所述第三转发设备的BFR prefix以及所述第二出接口,获得所述第二对应关系,所述第二对应关系包括所述F-BM、所述第二任播标签、所述第三转发设备的BFR prefix以及所述第二出接口。In some implementations, the second forwarding device obtains the second corresponding relationship based on the second parameter set and the BFR-ID of the first forwarding device, including: the second forwarding device based on the first any The broadcast tag and the second anycast tag determine that the first forwarding device and the third forwarding device both belong to the first site; the second forwarding device is based on the BFR-ID of the first forwarding device and The BFR-ID of the third forwarding device is used to obtain the F-BM; the second forwarding device determines that the third forwarding device is reached on the second forwarding device based on the BFR prefix of the third forwarding device. The second outbound interface; the second forwarding device obtains the second corresponding response based on the F-BM, the second anycast label, the BFR prefix of the third forwarding device and the second outbound interface The second corresponding relationship includes the F-BM, the second anycast label, the BFR prefix of the third forwarding device, and the second outbound interface.
在一些实施方式中,所述第一任播标签和所述第二任播标签均为标签;或,所述第一任播标签和所述第二任播标签均为IPv6目的地址。In some embodiments, both the first anycast label and the second anycast label are labels; or, the first anycast label and the second anycast label are both IPv6 destination addresses.
在一些实施方式中,所述第一参数集还包括所述第一转发设备的比特串长度BSL、所述第一转发设备所属的集合标识SI以及所述第一转发设备所处的BIER子域的标识其中的一个或多个;所述第二参数集还包括所述第三转发设备的比特串长度BSL、所述第三转发设备所属的集合标识SI以及所述第三转发设备所处的BIER子域的标识其中的一个或多个。In some implementations, the first parameter set further includes the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the BIER subdomain in which the first forwarding device is located. One or more of the identifiers; the second parameter set also includes the bit string length BSL of the third forwarding device, the set identifier SI to which the third forwarding device belongs and the location where the third forwarding device is located. Identifier of one or more of the BIER subdomains.
在一些实施方式中,所述第二站点内第二转发设备接收来自第一站点内第一转发设备的第一参数集,包括:所述第二转发设备接收来自所述第一转发设备的第一通告报文,所述第一通告报文包括BIER信息子TLV,所述BIER信息子TLV包括所述第一任播标签;所述第二转发设备接收来自所述第一站点内第三转发设备的第二参数集,包括:所述第二转发设备接收来自所述第一站点内第一转发设备的第二通告报文,所述第二通告报文包括BIER信息子TLV,所述BIER信息子TLV包括所述第二任播标签。In some embodiments, the second forwarding device in the second site receiving the first parameter set from the first forwarding device in the first site includes: the second forwarding device receiving the first parameter set from the first forwarding device. A notification message, the first notification message includes a BIER information sub-TLV, the BIER information sub-TLV includes the first anycast label; the second forwarding device receives a third forwarding message from the first site The second parameter set of the device includes: the second forwarding device receives a second notification message from the first forwarding device in the first site, the second notification message includes a BIER information sub-TLV, and the BIER The information sub-TLV includes the second anycast tag.
在一些实施方式中,所述第一通告报文以及所述第二通告报文为IGP报文;或者所述第一通告报文以及所述第二通告报文为BGP报文。In some implementations, the first notification message and the second notification message are IGP messages; or the first notification message and the second notification message are BGP messages.
在一些实施方式中,所述第一转发设备为BFER,所述第二转发设备为transit BFR;或者,所述第一转发设备为transit BFR,所述第二转发设备为BFIR;或者,所述第一转发设备以及所述第二转发设备为相邻的transit BFR。In some implementations, the first forwarding device is a BFER, and the second forwarding device is a transit BFR; or, the first forwarding device is a transit BFR, and the second forwarding device is a BFIR; or, the The first forwarding device and the second forwarding device are adjacent transit BFRs.
在一些实施方式中,所述第二转发设备基于所述第一参数集以及所述第三转发设备的BFR-ID获得 第一对应关系之后,所述方法还包括:所述第二转发设备获得第一BIER报文,所述第一BIER报文包括第一比特串、所述第二转发设备的标签以及组播数据报文,所述第一比特串与所述第一转发设备的BFR-ID和所述第三转发设备的BFR-ID中的一个或多个对应;In some implementations, the second forwarding device obtains the BFR-ID based on the first parameter set and the third forwarding device. After the first correspondence, the method further includes: the second forwarding device obtains a first BIER message, where the first BIER message includes a first bit string, a label of the second forwarding device, and multicast data message, the first bit string corresponds to one or more of the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device;
所述第二转发设备基于所述第一BIER报文以及所述第一对应关系获得第二BIER报文,所述第二BIER报文包括第二比特串、所述第一任播标签以及所述组播数据报文,所述第二比特串是基于所述第一比特串与所述第一对应关系中的F-BM获得的;所述第二转发设备发送所述第二BIER报文。The second forwarding device obtains a second BIER message based on the first BIER message and the first corresponding relationship. The second BIER message includes a second bit string, the first anycast label and the first anycast label. In the multicast data message, the second bit string is obtained based on the F-BM in the first bit string and the first correspondence; the second forwarding device sends the second BIER message .
在一些实施方式中,所述第二转发设备发送所述第二BIER报文,包括:若所述与所述第一转发设备的BFR prefix匹配的下一跳处于故障状态,所述第二转发设备向所述第二对应关系中的所述与所述第三转发设备的BFR prefix匹配的下一跳发送所述第二BIER报文;或者,若所述与所述第三转发设备的BFR prefix匹配的下一跳处于故障状态,所述第二转发设备向所述第一对应关系中的所述与所述第一转发设备的BFR prefix匹配的下一跳发送所述第二BIER报文;或者,若所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,所述第二转发设备向所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳其中链路开销最小的一者发送所述第二BIER报文;或者,若所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,所述第二转发设备向所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳其中链路网络质量最高的一者发送所述第二BIER报文;或者,若所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,所述第二转发设备向所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳其中的任意一者发送所述第二BIER报文。In some implementations, the second forwarding device sends the second BIER message, including: if the next hop matching the BFR prefix of the first forwarding device is in a fault state, the second forwarding device The device sends the second BIER message to the next hop in the second correspondence relationship that matches the BFR prefix of the third forwarding device; or, if the BFR prefix of the third forwarding device matches the The next hop matching the prefix is in a fault state, and the second forwarding device sends the second BIER message to the next hop matching the BFR prefix of the first forwarding device in the first correspondence relationship. ; Or, if neither the next hop matching the BFR prefix of the first forwarding device nor the next hop matching the BFR prefix of the third forwarding device is in a fault state, the second forwarding The device sends the second forwarding device to the next hop that matches the BFR prefix of the first forwarding device and the next hop that matches the BFR prefix of the third forwarding device, whichever has the smallest link cost. BIER message; or, if neither the next hop matching the BFR prefix of the first forwarding device nor the next hop matching the BFR prefix of the third forwarding device is in a fault state, the The second forwarding device sends a message to the next hop that matches the BFR prefix of the first forwarding device and the next hop that matches the BFR prefix of the third forwarding device, whichever has the highest link network quality. The second BIER message; or, if neither the next hop matching the BFR prefix of the first forwarding device nor the next hop matching the BFR prefix of the third forwarding device is faulty status, the second forwarding device sends to any one of the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device. The second BIER message.
第二方面,提供了一种参数通告方法,包括:第一站点内第一转发设备获得第一参数集,所述第一参数集包括第一任播标签、所述第一转发设备的BFR-ID以及所述第一转发设备的BFR prefix,所述第一任播标签用于标识所述第一站点;所述第一转发设备向第二站点内第二转发设备发送所述第一参数集。In a second aspect, a parameter notification method is provided, including: a first forwarding device in a first site obtains a first parameter set, where the first parameter set includes a first anycast label, a BFR- ID and the BFR prefix of the first forwarding device, the first anycast label is used to identify the first site; the first forwarding device sends the first parameter set to the second forwarding device in the second site .
在一些实施方式中,所述第一任播标签为标签或IPv6目的地址。In some implementations, the first anycast label is a label or an IPv6 destination address.
在一些实施方式中,所述第一参数集还包括所述第一转发设备的比特串长度BSL、所述第一转发设备所属的集合标识SI以及所述第一转发设备所处的BIER子域的标识其中的一个或多个。In some implementations, the first parameter set further includes the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the BIER subdomain in which the first forwarding device is located. identifies one or more of them.
在一些实施方式中,所述第一转发设备向第二站点内第二转发设备发送所述第一参数集,包括:所述第一转发设备向所述第二转发设备发送第一通告报文,所述第一通告报文包括BIER信息子TLV,所述BIER信息子TLV包括所述第一任播标签。In some implementations, the first forwarding device sending the first parameter set to a second forwarding device in the second site includes: the first forwarding device sending a first notification message to the second forwarding device. , the first notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes the first anycast label.
在一些实施方式中,所述第一通告报文为IGP报文或者BGP报文。In some implementations, the first notification message is an IGP message or a BGP message.
在一些实施方式中,所述第一转发设备为BFER,所述第二转发设备为transit BFR;或者,所述第一转发设备为transit BFR,所述第二转发设备为BFIR;或者,所述第一转发设备以及所述第二转发设备为相邻的transit BFR。In some implementations, the first forwarding device is a BFER, and the second forwarding device is a transit BFR; or, the first forwarding device is a transit BFR, and the second forwarding device is a BFIR; or, the The first forwarding device and the second forwarding device are adjacent transit BFRs.
在一些实施方式中,所述方法还包括:所述第一转发设备接收来自所述第一站点内第三转发设备的第三参数集,所述第三参数集包括第一bypass标签、所述第三转发设备的BFR-ID以及所述第三转发设备的BFR prefix,所述第一bypass标签用于标识所述第三转发设备;所述第一转发设备基于所述第三参数集获得第三对应关系,所述第三对应关系包括所述第一bypass标签、所述与第三转发设备的BFR-ID匹配的F-BM以及与所述第三转发设备的BFR prefix匹配的下一跳。 In some implementations, the method further includes: the first forwarding device receiving a third parameter set from a third forwarding device in the first site, where the third parameter set includes a first bypass label, the The BFR-ID of the third forwarding device and the BFR prefix of the third forwarding device, the first bypass label is used to identify the third forwarding device; the first forwarding device obtains the third forwarding device based on the third parameter set. Three correspondences, the third correspondence includes the first bypass label, the F-BM matching the BFR-ID of the third forwarding device, and the next hop matching the BFR prefix of the third forwarding device .
在一些实施方式中,所述第一转发设备向第二站点内第二转发设备发送所述第一参数集之后,所述方法还包括:所述第一转发设备接收第一BIER报文,所述第一BIER报文包括所述第三转发设备的BFR-ID对应的第一比特串、所述第一任播标签以及组播数据报文;所述第一转发设备基于所述第一BIER报文以及所述第三对应关系获得第二BIER报文,所述第二BIER报文包括第二比特串、所述第一bypass标签以及所述组播数据报文,所述第二比特串是基于所述第一比特串与所述第三对应关系中的F-BM获得的比特串;所述第一转发设备向所述第三转发设备发送所述第二BIER报文。In some implementations, after the first forwarding device sends the first parameter set to a second forwarding device in the second site, the method further includes: the first forwarding device receives the first BIER message, and The first BIER message includes a first bit string corresponding to the BFR-ID of the third forwarding device, the first anycast label and a multicast data message; the first forwarding device is based on the first BIER message and the third corresponding relationship to obtain a second BIER message. The second BIER message includes a second bit string, the first bypass label and the multicast data message. The second bit string It is a bit string obtained based on the F-BM in the first bit string and the third corresponding relationship; the first forwarding device sends the second BIER message to the third forwarding device.
在一些实施方式中,所述方法还包括:所述第一转发设备获得第四参数集,所述第四参数集包括第二bypass标签、所述第一转发设备的BFR-ID以及所述第一转发设备的BFR prefix,所述第二bypass标签用于标识所述第一转发设备;所述第一转发设备向所述第三转发设备发送所述第四参数集。In some implementations, the method further includes: the first forwarding device obtaining a fourth parameter set, the fourth parameter set including a second bypass label, the BFR-ID of the first forwarding device and the third A BFR prefix of a forwarding device, the second bypass label is used to identify the first forwarding device; the first forwarding device sends the fourth parameter set to the third forwarding device.
第三方面,提供了一种对应关系的获取装置,设于第二站点内第二转发设备,包括:In the third aspect, a corresponding relationship acquisition device is provided, which is located in the second forwarding device in the second site and includes:
接收单元,用于接收来自第一站点内第一转发设备的第一参数集,所述第一参数集包括第一任播标签、所述第一转发设备的BFR-ID以及所述第一转发设备的BFR prefix,所述第一任播标签用于标识所述第一站点;A receiving unit configured to receive a first parameter set from a first forwarding device in the first site, where the first parameter set includes a first anycast label, the BFR-ID of the first forwarding device, and the first forwarding device. The BFR prefix of the device, the first anycast label is used to identify the first site;
所述接收单元,还用于接收来自所述第一站点内第三转发设备的第二参数集,所述第二参数集包括第二任播标签、所述第三转发设备的BFR-ID以及所述第三转发设备的BFR prefix,所述第二任播标签用于标识所述第一站点;The receiving unit is further used to receive a second parameter set from a third forwarding device in the first site, the second parameter set including a second anycast label, a BFR-ID of the third forwarding device, and a BFR prefix of the third forwarding device, the second anycast label being used to identify the first site;
处理单元,用于基于所述第一参数集以及所述第三转发设备的BFR-ID获得第一对应关系,所述第一对应关系包括与所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID匹配的转发比特掩码F-BM、所述第一任播标签以及与所述第一转发设备的BFR prefix匹配的下一跳;A processing unit configured to obtain a first corresponding relationship based on the first parameter set and the BFR-ID of the third forwarding device, where the first corresponding relationship includes the BFR-ID of the first forwarding device and the The forwarding bit mask F-BM matched by the BFR-ID of the third forwarding device, the first anycast label and the next hop matching the BFR prefix of the first forwarding device;
所述处理单元,还用于基于所述第二参数集以及所述第一转发设备的BFR-ID获得第二对应关系,所述第二对应关系包括与所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID匹配的F-BM、所述第二任播标签以及与所述第三转发设备的BFR prefix匹配的下一跳。The processing unit is further configured to obtain a second corresponding relationship based on the second parameter set and the BFR-ID of the first forwarding device, where the second corresponding relationship includes the BFR-ID of the first forwarding device. and the F-BM matching the BFR-ID of the third forwarding device, the second anycast label, and the next hop matching the BFR prefix of the third forwarding device.
在一些实施方式中,所述处理单元,用于基于所述第一任播标签以及所述第二任播标签,确定所述第一转发设备以及所述第三转发设备属于所述第一站点;基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;基于所述F-BM、所述第一任播标签以及所述第一转发设备的BFR prefix,获得所述第一对应关系,所述第一对应关系包括所述F-BM、所述第一任播标签以及所述第一转发设备的BFR prefix。In some embodiments, the processing unit is configured to determine that the first forwarding device and the third forwarding device belong to the first site based on the first anycast tag and the second anycast tag. ; Based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, obtain the F-BM; Based on the F-BM, the first anycast tag and the first The BFR prefix of the forwarding device is used to obtain the first corresponding relationship, which includes the F-BM, the first anycast label, and the BFR prefix of the first forwarding device.
在一些实施方式中,所述处理单元,用于基于所述第一任播标签以及所述第二任播标签,确定所述第一转发设备以及所述第三转发设备属于所述第一站点;基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;基于所述第一转发设备的BFR prefix,确定所述第二转发设备上到达所述第一转发设备的第一出接口;基于所述F-BM、所述第一任播标签、所述第一转发设备的BFR prefix以及所述第一出接口,获得所述第一对应关系,所述第一对应关系包括所述F-BM、所述第一任播标签、所述第一转发设备的BFR prefix以及所述第一出接口。In some embodiments, the processing unit is configured to determine that the first forwarding device and the third forwarding device belong to the first site based on the first anycast tag and the second anycast tag. ; Based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, obtain the F-BM; Based on the BFR prefix of the first forwarding device, determine the second forwarding device Reach the first outbound interface of the first forwarding device; based on the F-BM, the first anycast label, the BFR prefix of the first forwarding device and the first outbound interface, obtain the first Correspondence, the first correspondence includes the F-BM, the first anycast label, the BFR prefix of the first forwarding device, and the first outbound interface.
在一些实施方式中,所述处理单元,用于基于所述第一任播标签以及所述第二任播标签确定所述第一转发设备以及所述第三转发设备均属于所述第一站点;基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;基于所述F-BM、所述第二任播标签以及所述第三转发设备的BFR prefix,获得所述第二对应关系,所述第二对应关系包括所述F-BM、所述第二任播标签以及所述第三转发设备的BFR prefix。 In some implementations, the processing unit is configured to determine that both the first forwarding device and the third forwarding device belong to the first site based on the first anycast tag and the second anycast tag. ; Based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, obtain the F-BM; Based on the F-BM, the second anycast tag and the third The BFR prefix of the forwarding device is used to obtain the second corresponding relationship. The second corresponding relationship includes the F-BM, the second anycast label, and the BFR prefix of the third forwarding device.
在一些实施方式中,所述处理单元,用于基于所述第一任播标签以及所述第二任播标签确定所述第一转发设备以及所述第三转发设备均属于所述第一站点;基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;基于所述第三转发设备的BFR prefix,确定所述第二转发设备上到达所述第三转发设备的第二出接口;基于所述F-BM、所述第二任播标签、所述第三转发设备的BFR prefix以及所述第二出接口,获得所述第二对应关系,所述第二对应关系包括所述F-BM、所述第二任播标签、所述第三转发设备的BFR prefix以及所述第二出接口。In some implementations, the processing unit is configured to determine that both the first forwarding device and the third forwarding device belong to the first site based on the first anycast tag and the second anycast tag. ; Based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, obtain the F-BM; Based on the BFR prefix of the third forwarding device, determine the second forwarding device Reach the second outbound interface of the third forwarding device; based on the F-BM, the second anycast label, the BFR prefix of the third forwarding device and the second outbound interface, obtain the second Correspondence, the second correspondence includes the F-BM, the second anycast label, the BFR prefix of the third forwarding device, and the second outbound interface.
在一些实施方式中,所述第一任播标签和所述第二任播标签均为标签;或所述第一任播标签和所述第二任播标签均为IPv6目的地址。In some implementations, the first anycast label and the second anycast label are both labels; or the first anycast label and the second anycast label are both IPv6 destination addresses.
在一些实施方式中,所述第一参数集还包括所述第一转发设备的比特串长度BSL、所述第一转发设备所属的集合标识SI以及所述第一转发设备所处的BIER子域的标识其中的一个或多个;所述第二参数集还包括所述第三转发设备的比特串长度BSL、所述第三转发设备所属的集合标识SI以及所述第三转发设备所处的BIER子域的标识其中的一个或多个。In some implementations, the first parameter set further includes the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the BIER subdomain in which the first forwarding device is located. One or more of the identifiers; the second parameter set also includes the bit string length BSL of the third forwarding device, the set identifier SI to which the third forwarding device belongs and the location where the third forwarding device is located. Identifier of one or more of the BIER subdomains.
在一些实施方式中,所述接收单元,用于接收来自所述第一转发设备的第一通告报文,所述第一通告报文包括BIER信息子TLV,所述BIER信息子TLV包括所述第一任播标签;接收来自所述第一站点内第一转发设备的第二通告报文,所述第二通告报文包括BIER信息子TLV,所述BIER信息子TLV包括所述第二任播标签。In some embodiments, the receiving unit is configured to receive a first notification message from the first forwarding device, the first notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes the The first anycast tag; receiving a second notification message from the first forwarding device in the first site, the second notification message including the BIER information sub-TLV, the BIER information sub-TLV including the second anycast broadcast tag.
在一些实施方式中,所述第一通告报文以及所述第二通告报文为IGP报文;或者所述第一通告报文以及所述第二通告报文为BGP报文。In some implementations, the first notification message and the second notification message are IGP messages; or the first notification message and the second notification message are BGP messages.
在一些实施方式中,所述第一转发设备为BFER,所述第二转发设备为transit BFR;或者,所述第一转发设备为transit BFR,所述第二转发设备为BFIR;或者,所述第一转发设备以及所述第二转发设备为相邻的transit BFR。In some implementations, the first forwarding device is a BFER, and the second forwarding device is a transit BFR; or, the first forwarding device is a transit BFR, and the second forwarding device is a BFIR; or, the The first forwarding device and the second forwarding device are adjacent transit BFRs.
在一些实施方式中,所述处理单元,还用于:获得第一BIER报文,所述第一BIER报文包括第一比特串、所述第二转发设备的标签以及组播数据报文,所述第一比特串与所述第一转发设备的BFR-ID和所述第三转发设备的BFR-ID中的一个或多个对应;基于所述第一BIER报文以及所述第一对应关系获得第二BIER报文,所述第二BIER报文包括第二比特串、所述第一任播标签以及所述组播数据报文,所述第二比特串是基于所述第一比特串与所述第一对应关系中的F-BM获得的;所述装置还包括:发送单元,用于发送所述第二BIER报文。In some embodiments, the processing unit is further configured to: obtain a first BIER message, where the first BIER message includes a first bit string, a label of the second forwarding device, and a multicast data message, The first bit string corresponds to one or more of the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device; based on the first BIER message and the first correspondence The relationship is to obtain a second BIER message. The second BIER message includes a second bit string, the first anycast label and the multicast data message. The second bit string is based on the first bit string. The string is obtained from the F-BM in the first corresponding relationship; the device further includes: a sending unit configured to send the second BIER message.
在一些实施方式中,所述发送单元,用于若所述与所述第一转发设备的BFR prefix匹配的下一跳处于故障状态,向所述第二对应关系中的所述与所述第三转发设备的BFR prefix匹配的下一跳发送所述第二BIER报文;或者,若所述与所述第三转发设备的BFR prefix匹配的下一跳处于故障状态,向所述第一对应关系中的所述与所述第一转发设备的BFR prefix匹配的下一跳发送所述第二BIER报文;或者,若所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,向所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳其中链路开销最小的一者发送所述第二BIER报文;或者,若所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,向所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳其中链路网络质量最高的一者发送所述第二BIER报文;或者,若所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳均未处 于故障状态,向所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳其中的任意一者发送所述第二BIER报文。In some embodiments, the sending unit is configured to, if the next hop matching the BFR prefix of the first forwarding device is in a fault state, send a message to the second hop in the second correspondence relationship that matches the BFR prefix of the first forwarding device. The next hop matching the BFR prefix of the third forwarding device sends the second BIER message; or, if the next hop matching the BFR prefix of the third forwarding device is in a fault state, sending the second BIER message to the first corresponding The next hop in the relationship that matches the BFR prefix of the first forwarding device sends the second BIER message; or, if the next hop that matches the BFR prefix of the first forwarding device and None of the next hops matching the BFR prefix of the third forwarding device is in a fault state, and the next hop matching the BFR prefix of the first forwarding device and the third forwarding device The next hop with the smallest link cost that matches the BFR prefix of the device sends the second BIER message; or, if the next hop that matches the BFR prefix of the first forwarding device and the next hop with the smallest link cost, None of the next hops that match the BFR prefix of the third forwarding device are in a fault state, and the next hop that matches the BFR prefix of the first forwarding device and the BFR of the third forwarding device The next hop that matches the prefix and the one with the highest link network quality sends the second BIER message; or, if the next hop that matches the BFR prefix of the first forwarding device and the next hop that matches the BFR prefix of the first forwarding device, the next hop with the highest link network quality sends the second BIER message. None of the next hops matching the BFR prefix of the third forwarding device are processed. In the fault state, send the second forwarding device to any one of the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device. BIER message.
第四方面,提供了一种参数通告装置,设于第一站点内第一转发设备,包括:处理单元,用于获得第一参数集,所述第一参数集包括第一任播标签、所述第一转发设备的BFR-ID以及所述第一转发设备的BFR prefix,所述第一任播标签用于标识所述第一站点;发送单元,用于向第二站点内第二转发设备发送所述第一参数集。In a fourth aspect, a parameter notification device is provided, which is located in the first forwarding device in the first site and includes: a processing unit for obtaining a first parameter set, where the first parameter set includes a first anycast tag, all The BFR-ID of the first forwarding device and the BFR prefix of the first forwarding device, the first anycast label is used to identify the first site; the sending unit is used to send a message to the second forwarding device in the second site Send the first set of parameters.
在一些实施方式中,所述第一任播标签为标签或IPv6目的地址。In some implementations, the first anycast label is a label or an IPv6 destination address.
在一些实施方式中,所述第一参数集还包括所述第一转发设备的比特串长度BSL、所述第一转发设备所属的集合标识SI以及所述第一转发设备所处的BIER子域的标识其中的一个或多个。In some implementations, the first parameter set further includes the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the BIER subdomain in which the first forwarding device is located. identifies one or more of them.
在一些实施方式中,所述发送单元,用于向所述第二转发设备发送第一通告报文,所述第一通告报文包括BIER信息子TLV,所述BIER信息子TLV包括所述第一任播标签。In some embodiments, the sending unit is configured to send a first notification message to the second forwarding device, where the first notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes the third An Anycast tag.
在一些实施方式中,所述第一通告报文为IGP报文或者BGP报文。In some implementations, the first advertisement message is an IGP message or a BGP message.
在一些实施方式中,所述第一转发设备为BFER,所述第二转发设备为transit BFR;或者,所述第一转发设备为transit BFR,所述第二转发设备为BFIR;或者,所述第一转发设备以及所述第二转发设备为相邻的transit BFR。In some implementations, the first forwarding device is a BFER, and the second forwarding device is a transit BFR; or, the first forwarding device is a transit BFR, and the second forwarding device is a BFIR; or, the The first forwarding device and the second forwarding device are adjacent transit BFRs.
在一些实施方式中,所述装置还包括:接收单元,用于接收来自所述第一站点内第三转发设备的第三参数集,所述第三参数集包括第一bypass标签、所述第三转发设备的BFR-ID以及所述第三转发设备的BFR prefix,所述第一bypass标签用于标识所述第三转发设备;所述处理单元,还用于基于所述第三参数集获得第三对应关系,所述第三对应关系包括所述第一bypass标签、所述与第三转发设备的BFR-ID匹配的F-BM以及与所述第三转发设备的BFR prefix匹配的下一跳。In some implementations, the apparatus further includes: a receiving unit configured to receive a third parameter set from a third forwarding device in the first site, where the third parameter set includes a first bypass label, the third The BFR-ID of the third forwarding device and the BFR prefix of the third forwarding device, the first bypass tag is used to identify the third forwarding device; the processing unit is also used to obtain the The third correspondence relationship includes the first bypass tag, the F-BM matching the BFR-ID of the third forwarding device, and the next F-BM matching the BFR prefix of the third forwarding device. Jump.
在一些实施方式中,所述接收单元,还用于接收第一BIER报文,所述第一BIER报文包括所述第三转发设备的BFR-ID对应的第一比特串、所述第一任播标签以及组播数据报文;所述处理单元,还用于基于所述第一BIER报文以及所述第三对应关系获得第二BIER报文,所述第二BIER报文包括第二比特串、所述第一bypass标签以及所述组播数据报文,所述第二比特串是基于所述第一比特串与所述第三对应关系中的F-BM获得的比特串;所述发送单元,还用于向所述第三转发设备发送所述第二BIER报文。In some embodiments, the receiving unit is further configured to receive a first BIER message, where the first BIER message includes a first bit string corresponding to the BFR-ID of the third forwarding device, the first anycast label and multicast data message; the processing unit is also configured to obtain a second BIER message based on the first BIER message and the third corresponding relationship, where the second BIER message includes a second A bit string, the first bypass label and the multicast data message, the second bit string is a bit string obtained based on the F-BM in the first bit string and the third correspondence relationship; The sending unit is also configured to send the second BIER message to the third forwarding device.
在一些实施方式中,所述处理单元,还用于获得第四参数集,所述第四参数集包括第二bypass标签、所述第一转发设备的BFR-ID以及所述第一转发设备的BFR prefix,所述第二bypass标签用于标识所述第一转发设备;所述发送单元,还用于向所述第三转发设备发送所述第四参数集。In some embodiments, the processing unit is further configured to obtain a fourth parameter set, the fourth parameter set including a second bypass label, the BFR-ID of the first forwarding device, and the BFR-ID of the first forwarding device. BFR prefix, the second bypass label is used to identify the first forwarding device; the sending unit is also used to send the fourth parameter set to the third forwarding device.
第五方面,提供了一种转发设备,所述转发设备包括处理器和网络接口,所述转发设备通过所述处理器和所述网络接口,执行上述第一方面或第一方面任一种可选方式所提供的方法。In a fifth aspect, a forwarding device is provided. The forwarding device includes a processor and a network interface. The forwarding device executes the above first aspect or any one of the first aspects through the processor and the network interface. Select the method provided by the method.
第六方面,提供了一种转发设备,所述转发设备包括处理器和网络接口,所述转发设备通过所述处理器和所述网络接口,执行如上述第二方面或第二方面任一种可选方式所提供的方法。In a sixth aspect, a forwarding device is provided. The forwarding device includes a processor and a network interface. The forwarding device performs the above second aspect or any one of the second aspects through the processor and the network interface. Optional methods provided.
第七方面,提供了一种网络系统,所述系统包括第三方面中的装置以及第四方面中的装置。A seventh aspect provides a network system, which includes the device in the third aspect and the device in the fourth aspect.
第八方面,提供了一种网络系统,所述系统包括第五方面的设备以及第六方面的设备。An eighth aspect provides a network system, which includes the device of the fifth aspect and the device of the sixth aspect.
第九方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令,所述指令在计算机上运行时,使得计算机执行上述第一方面或第一方面任一种可选方式所提供的方法。In a ninth aspect, a computer-readable storage medium is provided. At least one instruction is stored in the storage medium. When the instruction is run on a computer, it causes the computer to execute the above-mentioned first aspect or any one of the optional first aspects. method provided.
第十方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令,所述指令在计 算机上运行时,使得计算机执行上述第二方面或第二方面任一种可选方式所提供的方法。In a tenth aspect, a computer-readable storage medium is provided, at least one instruction is stored in the storage medium, and the instruction is stored in the computer readable storage medium. When running on a computer, the computer is caused to execute the method provided by the above second aspect or any of the optional methods of the second aspect.
第十一方面,提供了一种计算机程序产品,所述计算机程序产品包括一个或多个计算机程序指令,当所述计算机程序指令被计算机加载并运行时,使得所述计算机执行上述第一方面或第一方面任一种可选方式所提供的方法。In an eleventh aspect, a computer program product is provided. The computer program product includes one or more computer program instructions. When the computer program instructions are loaded and run by a computer, they cause the computer to execute the above first aspect or Methods provided by any optional method in the first aspect.
第十二方面,提供了一种计算机程序产品,所述计算机程序产品包括一个或多个计算机程序指令,当所述计算机程序指令被计算机加载并运行时,使得所述计算机执行上述第二方面或第二方面任一种可选方式所提供的方法。In a twelfth aspect, a computer program product is provided. The computer program product includes one or more computer program instructions. When the computer program instructions are loaded and run by a computer, they cause the computer to execute the above second aspect or The method provided by any optional method in the second aspect.
第十三方面,提供一种芯片,该芯片包括可编程逻辑电路和/或程序指令,当该芯片运行时用于实现如上述第一方面或第一方面的任一可选方式所提供的方法。In a thirteenth aspect, a chip is provided. The chip includes programmable logic circuits and/or program instructions. When the chip is run, it is used to implement the method provided by the above-mentioned first aspect or any alternative method of the first aspect. .
第十四方面,提供一种芯片,该芯片包括可编程逻辑电路和/或程序指令,当该芯片运行时用于实现如上述第二方面或第二方面任一种可选方式所提供的方法。In a fourteenth aspect, a chip is provided. The chip includes programmable logic circuits and/or program instructions. When the chip is run, it is used to implement the method provided in the above-mentioned second aspect or any of the optional modes of the second aspect. .
附图说明Description of the drawings
图1是本申请实施例提供的一种组网场景的示意图;Figure 1 is a schematic diagram of a networking scenario provided by an embodiment of the present application;
图2是本申请实施例提供的另一种组网场景的示意图;Figure 2 is a schematic diagram of another networking scenario provided by an embodiment of the present application;
图3是本申请实施例提供的再一种组网场景的示意图;Figure 3 is a schematic diagram of yet another networking scenario provided by an embodiment of the present application;
图4是本申请实施例提供的一种配置组播方法的流程图;Figure 4 is a flow chart of a multicast configuration method provided by an embodiment of the present application;
图5是本申请实施例提供的一种处理组播数据报文的方法流程图;Figure 5 is a flow chart of a method for processing multicast data packets provided by an embodiment of the present application;
图6是本申请实施例提供的一种对应关系的获取方法的流程图;Figure 6 is a flow chart of a method for obtaining a correspondence relationship provided by an embodiment of the present application;
图7是本申请实施例提供的一种数据报文处理方法的流程图;Figure 7 is a flow chart of a data packet processing method provided by an embodiment of the present application;
图8是本申请实施例提供的另一种数据报文处理方法的流程图;Figure 8 is a flow chart of another data packet processing method provided by an embodiment of the present application;
图9是本申请实施例提供的BIER信息子TLV的格式示意图;Figure 9 is a schematic diagram of the format of the BIER information sub-TLV provided by the embodiment of the present application;
图10是本申请实施例提供的BIER-MPLS封装的sub-sub-TLV的格式示意图;Figure 10 is a schematic diagram of the format of BIER-MPLS encapsulated sub-sub-TLV provided by the embodiment of the present application;
图11是本申请实施例提供的一种携带anycast label的sub-sub-TLV的格式示意图;Figure 11 is a schematic diagram of the format of a sub-sub-TLV carrying anycast label provided by the embodiment of the present application;
图12是本申请实施例提供的一种参数配置的场景示意图;Figure 12 is a schematic diagram of a parameter configuration scenario provided by an embodiment of the present application;
图13是本申请实施例提供的另一种参数配置的场景示意图;Figure 13 is a schematic diagram of another parameter configuration scenario provided by the embodiment of the present application;
图14是本申请实施例提供的又一种参数配置的场景示意图;Figure 14 is a schematic diagram of another parameter configuration scenario provided by the embodiment of the present application;
图15是本申请实施例提供的再一种参数配置的场景示意图;Figure 15 is a schematic diagram of another parameter configuration scenario provided by the embodiment of the present application;
图16是本申请实施例提供的一种报文格式示意图;Figure 16 is a schematic diagram of a message format provided by an embodiment of the present application;
图17是本申请实施例提供的另一种报文格式示意图;Figure 17 is a schematic diagram of another message format provided by the embodiment of the present application;
图18是本申请实施例提供的再一种报文格式示意图;Figure 18 is a schematic diagram of yet another message format provided by an embodiment of the present application;
图19是本申请实施例提供的一种参数配置的场景示意图;Figure 19 is a schematic diagram of a parameter configuration scenario provided by an embodiment of the present application;
图20是本申请实施例提供的另一种参数配置的场景示意图;Figure 20 is a schematic diagram of another parameter configuration scenario provided by the embodiment of the present application;
图21是本申请实施例提供的又一种参数配置的场景示意图;Figure 21 is a schematic diagram of another parameter configuration scenario provided by the embodiment of the present application;
图22是本申请实施例提供的再一种参数配置的场景示意图;FIG22 is a schematic diagram of a scenario of another parameter configuration provided in an embodiment of the present application;
图23是本申请实施例提供的一种网络部署场景示意图;Figure 23 is a schematic diagram of a network deployment scenario provided by an embodiment of this application;
图24是本申请实施例提供的一种报文格式示意图;Figure 24 is a schematic diagram of a message format provided by an embodiment of the present application;
图25是本申请实施例提供的另一种报文格式示意图;Figure 25 is a schematic diagram of another message format provided by the embodiment of the present application;
图26是本申请实施例提供的再一种报文格式示意图; Figure 26 is a schematic diagram of yet another message format provided by an embodiment of the present application;
图27是本申请实施例提供的一种网络部署场景示意图;Figure 27 is a schematic diagram of a network deployment scenario provided by an embodiment of the present application;
图28是本申请实施例提供的另一种网络部署场景示意图;Figure 28 is a schematic diagram of another network deployment scenario provided by an embodiment of the present application;
图29是本申请实施例提供的又一种网络部署场景示意图;Figure 29 is a schematic diagram of another network deployment scenario provided by the embodiment of the present application;
图30是本申请实施例提供的再一种网络部署场景示意图;Figure 30 is a schematic diagram of yet another network deployment scenario provided by an embodiment of the present application;
图31是本申请实施例提供的另一种网络部署场景示意图;Figure 31 is a schematic diagram of another network deployment scenario provided by an embodiment of the present application;
图32是本申请实施例提供的再一种网络部署场景示意图;Figure 32 is a schematic diagram of yet another network deployment scenario provided by an embodiment of the present application;
图33是本申请实施例提供的一种报文格式示意图;Figure 33 is a schematic diagram of a message format provided by an embodiment of the present application;
图34是本申请实施例提供的另一种报文格式示意图;Figure 34 is a schematic diagram of another message format provided by the embodiment of the present application;
图35是本申请实施例提供的再一种网络部署场景示意图;Figure 35 is a schematic diagram of yet another network deployment scenario provided by the embodiment of the present application;
图36是本申请实施例提供的另一种网络部署场景示意图;Figure 36 is a schematic diagram of another network deployment scenario provided by the embodiment of the present application;
图37是本申请实施例提供的再一种网络部署场景示意图;Figure 37 is a schematic diagram of yet another network deployment scenario provided by the embodiment of the present application;
图38是本申请实施例提供的一种报文格式示意图;Figure 38 is a schematic diagram of a message format provided by an embodiment of the present application;
图39是本申请实施例提供的另一种报文格式示意图;Figure 39 is a schematic diagram of another message format provided by the embodiment of the present application;
图40是本申请实施例提供的一种网络部署场景示意图;Figure 40 is a schematic diagram of a network deployment scenario provided by an embodiment of the present application;
图41是本申请实施例提供的另一种网络部署场景示意图;Figure 41 is a schematic diagram of another network deployment scenario provided by the embodiment of the present application;
图42是本申请实施例提供的一种对应关系的获取装置的结构示意图;Figure 42 is a schematic structural diagram of a device for obtaining a correspondence relationship provided by an embodiment of the present application;
图43是本申请实施例提供的一种参数通告装置的结构示意图;Figure 43 is a schematic structural diagram of a parameter notification device provided by an embodiment of the present application;
图44是本申请实施例提供的一种转发设备的结构示意图。Figure 44 is a schematic structural diagram of a forwarding device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
下面对本申请实施例涉及的一些术语概念做解释说明。Some terms and concepts involved in the embodiments of this application are explained below.
(1)站点(site)(1)site
站点是一种逻辑区域,一个站点包括具有IP连通性的一个或多个转发设备。例如,一个站点中包括两个转发设备。A site is a logical area, and a site includes one or more forwarding devices with IP connectivity. For example, a site includes two forwarding devices.
(2)转发设备(2) Forwarding equipment
转发设备是指具有路由转发功能的任意设备,例如,转发设备包括而不限于路由器、交换机、防火墙、服务器或主机等。A forwarding device refers to any device with routing and forwarding functions. For example, forwarding devices include but are not limited to routers, switches, firewalls, servers, or hosts.
(3)位索引显式复制(bit indexed explicit replication,BIER)(3) bit indexed explicit replication (BIER)
BIER是一种新型的组播转发技术,通过将组播报文要到达的目的节点集合以比特串的方式封装在报文头部发送,使得网络中间节点无需感知组播业务和维护组播流状态。BIER的效果包括而不限于:第一,具有良好的组播业务扩展性;BFR上采用BIER技术建立的BIFT是独立于具体的组播业务的公共转发表,使得网络中间节点无需感知组播业务,不需要维护特定组播业务的组播流状态。公网组播和私网组播报文均可通过BIFT转发,具有良好的组播业务扩展性。第二,简化业务部署和运维。由于网络中间节点不感知组播业务,因此部署组播业务通常不涉及中间节点,组播业务变化对中间节点的影响较小,简化了网络的部署和运维。第三,利于软件定义网络(software defined network,SDN)架构网络演进。具体的,部署组播业务不需要操作网络中间节点,只需在入口节点为组播报文添加上指示后续组播复制的BIER头。BIER头中携带标识组播出口节点的比特串,中间节点根据比特串实现组播复 制和转发,从而有利于SDN架构网络的演进。BIER is a new type of multicast forwarding technology that encapsulates the set of destination nodes for multicast messages in the form of bit strings and sends them in the header of the message. This eliminates the need for intermediate nodes in the network to sense multicast services and maintain multicast flows. state. The effects of BIER include but are not limited to: First, it has good multicast service scalability; BIFT established using BIER technology on BFR is a public forwarding table independent of specific multicast services, so that intermediate nodes in the network do not need to be aware of multicast services. , there is no need to maintain the multicast flow status of specific multicast services. Both public network multicast and private network multicast packets can be forwarded through BIFT, which has good multicast service scalability. Second, simplify business deployment and operation and maintenance. Since intermediate nodes in the network are not aware of multicast services, the deployment of multicast services usually does not involve intermediate nodes. Changes in multicast services have little impact on intermediate nodes, simplifying network deployment and operation and maintenance. Third, it is conducive to the evolution of software-defined network (SDN) architecture networks. Specifically, deploying multicast services does not require operating network intermediate nodes. You only need to add a BIER header to multicast packets at the entry node to indicate subsequent multicast replication. The BIER header carries a bit string that identifies the multicast outlet node, and the intermediate node implements multicast replication based on the bit string. control and forwarding, thus conducive to the evolution of SDN architecture networks.
(4)BIER网络(4)BIER network
BIER网络是指支持BIER转发的逻辑区域,一个BIER网络包括多个BFR。可选地,一个BIER网络为一个BIER域,或者一个BIER网络为一个BIER子域。A BIER network refers to a logical area that supports BIER forwarding. A BIER network includes multiple BFRs. Optionally, a BIER network is a BIER domain, or a BIER network is a BIER subdomain.
(5)BIER子域(BIER sub-domain)。(5)BIER subdomain (BIER sub-domain).
一个BIER域可以划分为一个或者多个BIER子域,BIER子域也可简称为SD。每个BIER子域通过一个唯一的子域标识(sub-domain ID)来标识。A BIER domain can be divided into one or more BIER subdomains, which can also be referred to as SD. Each BIER subdomain is identified by a unique sub-domain ID.
(6)位转发路由器(bit-forwarding router,BFR)(6) bit-forwarding router (BFR)
BFR是指支持BIER转发的设备。BFR的产品形态包括而不限于路由器、交换机、防火墙或者为其他网络设备。BFR分为比特转发入口路由器(bit forwarding ingress router,BFIR)、中间BFR(transit BFR)以及比特转发出口路由器(bit forwarding egress router,BFER)。BFR refers to a device that supports BIER forwarding. BFR product forms include but are not limited to routers, switches, firewalls or other network equipment. BFR is divided into bit forwarding ingress router (BFIR), intermediate BFR (transit BFR) and bit forwarding egress router (BFER).
(7)BFIR(7)BFIR
BFIR是组播数据流进入BIER网络所经过的节点。BFIR用于对进入BIER网络的组播数据报文进行BIER封装,得到包含组播数据报文以及BIER头的BIER报文。BFIR is the node through which multicast data flows enter the BIER network. BFIR is used to BIER encapsulate multicast data packets entering the BIER network to obtain BIER packets containing multicast data packets and BIER headers.
(8)transit BFR(8)transit BFR
transit BFR是组播数据报文在BIER网络中转发的中间节点,用于基于比特串对BIER报文进行转发。transit BFR是BIER网络中可选部署的设备。在一些实施例中,在BIER网络中部署BFIR和BFER,而不部署transit BFR。例如,BFIR和BFER物理直连;又如,BFIR和BFER直连,BFER是BFIR的下一跳;又如,BFIR和BFER通过一跳或多跳不支持BIER的节点相连,BFIR发送BIER报文后,BIER报文通过BIER头外层的MPLS封装或者IPv6单播路由,穿越不支持BIER的节点到达BFER。transit BFR is an intermediate node for forwarding multicast data packets in the BIER network. It is used to forward BIER packets based on bit strings. transit BFR is an optional device deployed in the BIER network. In some embodiments, BFIR and BFER are deployed in the BIER network without transit BFR. For example, BFIR and BFER are directly connected physically; another example is that BFIR and BFER are directly connected, and BFER is the next hop of BFIR; another example is that BFIR and BFER are connected through one or more hops that do not support BIER, and BFIR sends BIER messages. Finally, the BIER packet passes through the MPLS encapsulation or IPv6 unicast route in the outer layer of the BIER header and passes through the node that does not support BIER to reach the BFER.
在部署transit BFR的实施例中,一个BIER网络中部署的transit BFR的数量包括多种情况,下面以两种情况举例说明。在一些实施例中,一个BIER网络中部署一个transit BFR,该transit BFR在BIER转发路径中位于BFIR与BFER之间,BIER报文从BFIR经由该transit BFR转发至BFER。在另一些实施例中,一个BIER网络中部署两个或两个以上的transit BFR,不同的transit BFR之间具有上下跳的关系,BIER报文从BFIR经由一个transit BFR转发至另一个transit BFR,再从另一个transit BFR转发至BFER。例如,在BIER网络中部署BFIR、transit BFR 1、transit BFR 2和BFER,BIER报文的转发路径为BFIR→transit BFR 1→transit BFR 2→BFER。In the embodiment of deploying transit BFR, the number of transit BFR deployed in a BIER network includes multiple situations. Two situations are given as examples below. In some embodiments, a transit BFR is deployed in a BIER network. The transit BFR is located between the BFIR and the BFER in the BIER forwarding path. BIER messages are forwarded from the BFIR to the BFER via the transit BFR. In other embodiments, two or more transit BFRs are deployed in a BIER network. There is an up-and-down hop relationship between different transit BFRs. BIER messages are forwarded from BFIR to another transit BFR via one transit BFR. Then forward it from another transit BFR to BFER. For example, if BFIR, transit BFR 1, transit BFR 2 and BFER are deployed in the BIER network, the forwarding path of BIER packets is BFIR→transit BFR 1→transit BFR 2→BFER.
transit BFR是BIER网络中可选部署的设备。在一些实施例中,在BIER网络中部署BFIR和BFER,而不部署transit BFR。例如,BFIR和BFER物理直连,BFER是BFIR的下一跳;又如,BFIR和BFER通过一跳或多跳支持BIER的节点相连;又如,BFIR和BFER通过一跳或多跳不支持BIER的节点相连,BFIR发送BIER报文后,BIER报文通过BIER头外层的MPLS封装或者IPv6单播路由,穿越不支持BIER的节点到达BFER。transit BFR is an optional device deployed in the BIER network. In some embodiments, BFIR and BFER are deployed in the BIER network without transit BFR. For example, BFIR and BFER are physically directly connected, and BFER is the next hop of BFIR; another example, BFIR and BFER are connected through one or more hops that support BIER; another example, BFIR and BFER are connected through one or more hops that do not support BIER. The nodes are connected. After BFIR sends a BIER message, the BIER message passes through the MPLS encapsulation or IPv6 unicast route in the outer layer of the BIER header and reaches BFER through the node that does not support BIER.
在部署transit BFR的实施例中,一个BIER网络中部署的transit BFR的数量包括多种情况,下面以两种情况举例说明。In the embodiment of deploying transit BFR, the number of transit BFR deployed in a BIER network includes multiple situations. Two situations are given as examples below.
在一些实施例中,一个BIER网络中部署一个transit BFR,该transit BFR在BIER转发路径中位于BFIR与BFER之间,BIER报文从BFIR经由该transit BFR转发至BFER。In some embodiments, a transit BFR is deployed in a BIER network. The transit BFR is located between the BFIR and the BFER in the BIER forwarding path, and the BIER message is forwarded from the BFIR to the BFER via the transit BFR.
在另一些实施例中,一个BIER网络中部署两个或两个以上的transit BFR,不同的transit BFR之间具有上下跳的关系,BIER报文从BFIR经由一个transit BFR转发至另一个transit BFR,再从另一个transit  BFR转发至BFER。例如,在BIER网络中部署BFIR、transit BFR 1、transit BFR 2和BFER,BIER报文的转发路径为BFIR→transit BFR 1→transit BFR 2→BFER。In other embodiments, two or more transit BFRs are deployed in a BIER network. There is an up-and-down hop relationship between different transit BFRs. BIER messages are forwarded from BFIR to another transit BFR via one transit BFR. Then from another transit BFR forwards to BFER. For example, if BFIR, transit BFR 1, transit BFR 2, and BFER are deployed in the BIER network, the forwarding path of BIER packets is BFIR→transit BFR 1→transit BFR 2→BFER.
(9)BFER(9)BFER
BFER是组播数据流出BIER网络所经过的节点,用于对BIER报文进行解封装,将得到的组播数据报文转发给组播接收者。BFER is the node through which multicast data flows out of the BIER network. It is used to decapsulate BIER packets and forward the obtained multicast data packets to multicast receivers.
(10)边缘BFR(10)Edge BFR
边缘BFR是指BIER网络中位于边缘的BFR,边缘BFR是BFIR和BFER的统称。Edge BFR refers to the BFR located at the edge of the BIER network. Edge BFR is the collective name of BFIR and BFER.
(11)比特转发路由器标识符(bit forwarding router identifier,BFR-ID)(11) bit forwarding router identifier (BFR-ID)
针对BFR-ID的作用,BFR-ID用于在一个BIER网络(如一个BIER子域或者一个BIER域)中标识位于该BIER网络边缘的BFR。Regarding the role of BFR-ID, BFR-ID is used to identify the BFR located at the edge of the BIER network in a BIER network (such as a BIER subdomain or a BIER domain).
针对BFR-ID的形式,BFR-ID通常是一个整数,例如是一个处于1到65535范围内的正整数。For the form of BFR-ID, BFR-ID is usually an integer, for example, a positive integer in the range of 1 to 65535.
针对BFR-ID与比特串的关系,在一些实施例中,一个BFR-ID对应于比特串中一个比特位。例如,BFR-ID为1,对应于比特串中最右一位(或者说最低位);BFR-ID为2,对应于比特串中从右往左数的第2位(或者说次低位);依次类推,BFR-ID为i,对应于比特串中从右往左数的第i位,其中i为正整数。Regarding the relationship between BFR-ID and bit string, in some embodiments, one BFR-ID corresponds to one bit in the bit string. For example, BFR-ID is 1, which corresponds to the rightmost bit (or the lowest bit) in the bit string; BFR-ID is 2, which corresponds to the second bit from right to left (or the second lowest bit) in the bit string. ; By analogy, BFR-ID is i, corresponding to the i-th bit from right to left in the bit string, where i is a positive integer.
针对BFR-ID的含义,如果一个报文携带的比特串中包含一个设备的BFR-ID,或者说该设备的BFR-ID对应的比特位置位,表示该设备是报文的目的BFER。Regarding the meaning of BFR-ID, if the bit string carried by a message contains the BFR-ID of a device, or the bit position corresponding to the BFR-ID of the device is set, it means that the device is the destination BFER of the message.
(12)BFR prefix(BFR前缀)(12)BFR prefix(BFR prefix)
BFR prefix是指BFR的一个IP地址。可选地,BFR prefix是BFR上一个loopback接口的IP地址。例如,BFR prefix是一个BIER网络中路由可达的IP地址。例如,BFR prefix是一个32位的IPv4地址;又如,BFR prefix是一个128位的IPv6地址。可选地,在BIERv4场景下,使用设备的一个IPv4地址作为BFR prefix;在BIERv6场景下,使用设备的一个IPv6地址作为BFR prefix。BFR prefix refers to an IP address of BFR. Optionally, the BFR prefix is the IP address of a loopback interface on the BFR. For example, the BFR prefix is a reachable IP address in the BIER network. For example, BFR prefix is a 32-bit IPv4 address; another example, BFR prefix is a 128-bit IPv6 address. Optionally, in the BIERv4 scenario, use an IPv4 address of the device as the BFR prefix; in the BIERv6 scenario, use an IPv6 address of the device as the BFR prefix.
(13)集合标识(Set Identifier,SI)(13) Set Identifier (SI)
SI是指BFR-ID所属的集合的标识。SI的形式通常是一个或一串数字。例如,一个BIER网络中包括集合0和集合1,集合0包括BFR ID为1至256的BFR,集合1包括BFR ID为257至512的BFR,则BFR ID为1至256的BFR中每个BFR的SI为0,BFR ID为257至512的BFR中每个BFR的SI为1。SI refers to the identifier of the set to which the BFR-ID belongs. The form of SI is usually one or a series of numbers. For example, a BIER network includes set 0 and set 1. Set 0 includes BFRs with BFR IDs from 1 to 256, and set 1 includes BFRs with BFR IDs from 257 to 512. Then each BFR in the BFRs with BFR IDs from 1 to 256 The SI is 0, and the SI of each BFR in BFR IDs 257 to 512 is 1.
(14)SI最大值(max SI,也称max-SI,MAX-SI或MAX SI)(14)SI maximum value (max SI, also called max-SI, MAX-SI or MAX SI)
max-SI是指集合标识(SI)的最大值。max-SI refers to the maximum value of the set identifier (SI).
(15)比特串(bit string)(15) bit string
比特串用于标识BIER报文的目的BFER集合。比特串从最低位(即右数第一位)开始,每一个比特位对应一个BFR ID。比特位置1,表示该比特位对应的BFR ID所标识的BFER,为组播数据报文转发的目的BFER。The bit string is used to identify the destination BFER set of the BIER message. The bit string starts from the lowest bit (that is, the first bit from the right), and each bit corresponds to a BFR ID. Bit position 1 indicates that the BFER identified by the BFR ID corresponding to this bit is the destination BFER for multicast data packet forwarding.
(16)比特串长度(bit string length,BS length,BSL)(16) Bit string length (BS length, BSL)
BSL是指比特串的长度。例如,如果BSL为64,表示比特串的长度是64个比特。BSL refers to the length of the bit string. For example, if the BSL is 64, it means that the length of the bit string is 64 bits.
(17)比特索引路由表(bit index routing table,BIRT)(17) bit index routing table (BIRT)
BIRT用于指示一个BIER网络中一个BFER的BFR prefix、该BFER的BFR-ID以及转发路径上到达该BFER的下一跳之间的对应关系。BIRT的详细定义可参考RFC 8279中第6.3节的介绍。 BIRT is used to indicate the correspondence between the BFR prefix of a BFER in a BIER network, the BFR-ID of the BFER, and the next hop to the BFER on the forwarding path. For the detailed definition of BIRT, please refer to the introduction in Section 6.3 of RFC 8279.
(18)位索引转发表(bit index forwarding table,BIFT)(18) bit index forwarding table (BIFT)
BIFT是基于BIRT生的转发表。BIFT用来表示通过BFR邻居能到达的各BFER节点,包括Nbr(BFR Neighbor,BFR邻居)和转发比特掩码(forwarding bit mask,F-BM)。每一张BIFT通常由三元组(BSL,SD,SI)确定。例如,BIFT是BFR将BIRT表项中经过相同邻居不同表项进行合并生成。可选地,BIFT的每条表项包括一个BFR邻居和对应的F-BM。BIFT is a forwarding table based on BIRT. BIFT is used to represent each BFER node that can be reached through BFR neighbors, including Nbr (BFR Neighbor, BFR neighbor) and forwarding bit mask (forwarding bit mask, F-BM). Each BIFT is usually determined by a triplet (BSL, SD, SI). For example, BIFT is generated by BFR by merging different entries in BIRT entries that pass through the same neighbor. Optionally, each BIFT entry includes a BFR neighbor and the corresponding F-BM.
(19)位索引转发表标识(BIFT-ID)(19) Bit Indexed Forwarding Table Identification (BIFT-ID)
BIFT-ID用于标识一个BIFT。BIFT ID通常根据BSL、SD和SI这三个参数确定。例如,BIFT-ID由BSL、SD和SI这三个参数拼接得到。又如,BIFT-ID为对BSL、SD和SI这三个参数经过哈希计算得到的哈希值。BIFT-ID is used to identify a BIFT. BIFT ID is usually determined based on three parameters: BSL, SD and SI. For example, BIFT-ID is obtained by splicing three parameters: BSL, SD and SI. For another example, BIFT-ID is the hash value obtained by hashing the three parameters BSL, SD and SI.
(20)BFR邻居(BFR Nbr)(20)BFR neighbor (BFR Nbr)
BFR邻居表示下一跳BFR。可选地,BFR邻居通过下一跳BFR的BFR prefix表示。The BFR neighbor represents the next hop BFR. Optionally, the BFR neighbor is represented by the BFR prefix of the next hop BFR.
(21)转发比特掩码(forwarding bit mask,F-BM)(21) Forwarding bit mask (F-BM)
F-BM用于表示BFR向BFR邻居复制发送组播数据报文时,通过该BFR邻居能到达的BIER网络的BFER的集合。F-BM例如是BFR通过将该BFR邻居所能到达的所有BFER的比特串进行或操作得到。FBM使用一个比特串来表示,并且FBM和报文转发所使用的比特串长度相同。例如,报文中携带的比特串的长度为256比特,F-BM的长度也为256比特。在报文转发的过程中,报文中携带的比特串会和F-BM进行与(AND)操作。F-BM is used to indicate the set of BFERs in the BIER network that can be reached through the BFR neighbor when the BFR copies and sends multicast data packets to the BFR neighbor. F-BM is, for example, BFR obtained by ORing the bit strings of all BFERs reachable by the BFR neighbor. FBM is represented by a bit string, and the length of the bit string used by FBM and packet forwarding is the same. For example, the length of the bit string carried in the message is 256 bits, and the length of the F-BM is also 256 bits. During the message forwarding process, the bit string carried in the message will perform an AND operation with the F-BM.
(22)End.BIER SID(22)End.BIER SID
End.BIER SID是BFR的IPv6地址,也是SRv6中的一种SID。End.BIER SID通常携带在IPv6基本头的目的地址字段中。End.BIER SID通常包括locator(定位)字段和function(功能)字段,可选地还包括参数(arguments)字段。locator字段占SID的高比特位,locator字段用于携带设备的位置信息,以便指导报文转发至该设备。locator字段通常包含block(块)字段以及node ID(节点标识)字段。block字段用于指示SID所属的IP地址块,该IP地址块一般由运营商分配给一个子网。node ID字段用于携带设备的标识,通常用于在一个子网内区分不同的设备。function字段用于携带功能标识,功能标识用于指示按照BIER的方式转发组播报文。该功能标识的形式例如是一个字符串,功能标识与设备上保存的BIER转发指令具有绑定关系,因此转发设备读取到目的地址字段中的End.BIER SID,根据End.BIER SID中的function会匹配到执行BIER转发的指令,则转发设备会按照BIER的方式转发组播数据报文,即根据报文头中的比特串以及BIFT复制转发报文。function字段位于locator字段之后。参数字段是SID中的可选字段。参数字段用于携带function相关的参数。End.BIER SID is the IPv6 address of BFR and is also a SID in SRv6. End.BIER SID is usually carried in the destination address field of the IPv6 basic header. End.BIER SID usually includes a locator field and a function field, and optionally also includes an argument field. The locator field occupies the high-order bits of the SID. The locator field is used to carry the location information of the device to guide packet forwarding to the device. The locator field usually contains the block field and the node ID field. The block field is used to indicate the IP address block to which the SID belongs. This IP address block is generally allocated to a subnet by the operator. The node ID field is used to carry the identification of the device, usually used to distinguish different devices within a subnet. The function field is used to carry the function identifier, and the function identifier is used to indicate that multicast packets are forwarded in BIER mode. The form of the function identifier is, for example, a string. The function identifier has a binding relationship with the BIER forwarding instruction saved on the device. Therefore, the forwarding device reads the End.BIER SID in the destination address field. According to the function in the End.BIER SID If the command to perform BIER forwarding is matched, the forwarding device will forward the multicast data packet according to the BIER method, that is, copy and forward the packet based on the bit string in the packet header and BIFT. The function field is located after the locator field. The parameter field is an optional field in the SID. The parameter field is used to carry function-related parameters.
通过End.BIER SID,能够很好地利用IPv6单播路由的可达性,跨越不支持BIER的IPv6节点。例如,在BIERv6场景,End.BIER SID被携带在数据报文头中的目的地址字段,用于表示需要在本节点进行BIERv6转发处理,转发平面会继续处理BIERv6扩展头。转发设备通过比特串与F-BM比较确定BFR-邻居后,外层IPv6报文的目的地址需要被替换为下一跳节点的End.BIER SID,BIERv6报文被复制到该End.BIER SID所在的BFR。而当设备不支持BIER时,End.BIER SID可以被作为普通的IPv6地址,使用单播功能进行转发。Through End.BIER SID, the reachability of IPv6 unicast routing can be well utilized to span IPv6 nodes that do not support BIER. For example, in a BIERv6 scenario, the End.BIER SID is carried in the destination address field in the data packet header to indicate that BIERv6 forwarding processing needs to be performed on this node, and the forwarding plane will continue to process the BIERv6 extension header. After the forwarding device determines the BFR neighbor by comparing the bit string with the F-BM, the destination address of the outer IPv6 message needs to be replaced with the End.BIER SID of the next hop node, and the BIERv6 message is copied to the End.BIER SID. BFR. When the device does not support BIER, the End.BIER SID can be used as a normal IPv6 address and forwarded using the unicast function.
(23)BIER-MPLS label(23)BIER-MPLS label
BIER-MPLS label是一种MPLS标签,也是BFR上BIFT的索引。BIER-MPLS label通常携带在BIER报文头中的BIFT-ID字段中。BIER-MPLS label通常是根据<Sub-domain,SI,BSL>分配的标签。例如, 当一个BFR接收到BIER报文时,先解析报文头中的BIER-MPLS Label,使用该Label索引到本地对应的BIFT表。因为一个BFR上可能存在多个<sub-domain,SI,BSL>,会生成不同的转发表。不同的<Sub-domain,SI,BSL>与BIER-MPLS Label的映射关系是一一对应的。通过当前报文头中的BIER-MPLS Label字段,可以索引到对应的BIER转发表,并与转发表中的F-BM逐条对比,计算出BFR-邻居,根据计算出的不同的BFR-邻居,将BIER报文头中的BIER-MPLS Label替换为不同的标签,再进行报文转发。BIER-MPLS label is an MPLS label and also the index of BIFT on BFR. The BIER-MPLS label is usually carried in the BIFT-ID field in the BIER packet header. BIER-MPLS label is usually a label assigned according to <Sub-domain, SI, BSL>. For example, When a BFR receives a BIER message, it first parses the BIER-MPLS Label in the message header and uses the Label to index into the corresponding local BIFT table. Because there may be multiple <sub-domain, SI, BSL> on one BFR, different forwarding tables will be generated. The mapping relationship between different <Sub-domain, SI, BSL> and BIER-MPLS Label is one-to-one correspondence. Through the BIER-MPLS Label field in the current packet header, the corresponding BIER forwarding table can be indexed, and compared with the F-BM in the forwarding table one by one, the BFR-neighbors can be calculated. Based on the calculated different BFR-neighbors, Replace the BIER-MPLS Label in the BIER packet header with a different label, and then forward the packet.
(24)组播组(24)Multicast group
组播组是指用组播地址进行标识的一个集合。当主机(或其他需要接收组播数据报文的设备),加入一个组播组,就成为了组播组的成员,可以识别并接收发往该组播组的组播数据。A multicast group refers to a collection identified by a multicast address. When a host (or other device that needs to receive multicast data packets) joins a multicast group, it becomes a member of the multicast group and can identify and receive multicast data sent to the multicast group.
(25)组播源(25)Multicast source
组播数据报文的发送者称为“组播源”,一个组播源可以同时向多个组播组发送数据,多个组播源也可以同时向一个组播组发送报文。组播源通常不需要加入组播组。The sender of multicast data packets is called a "multicast source". One multicast source can send data to multiple multicast groups at the same time, and multiple multicast sources can also send packets to one multicast group at the same time. Multicast sources usually do not need to join a multicast group.
下面对本申请实施例的应用场景举例说明。The application scenarios of the embodiments of this application are illustrated below with examples.
本申请实施例应用于配置了组播BIER的场景,例如应用于一个站点内存在多个设备,每个设备均配置了组播BIER的场景。根据本申请的一些实施例,通过在同一个站点内多个设备配置任播标签,使用任播标签来标识设备所属的站点,因此各个设备将任播标签、BFR-ID以及BFR prefix这三种参数一起通告后,接收到参数的设备在生成到达该站点的各个设备的对应关系时,根据任播标签,会将同一个站点内多个转发设备的BFR-ID均体现至该F-BM的同一条目中,那么当接收到包含站点内任意一个设备的BFR-ID对应的比特串的数据报文时,能够根据比特串匹配到F-BM,从而向F-BM对应的下一跳转发报文。如果站点内其中一台设备发生节点故障或者链路,也能匹配上到达另一个设备的对应关系的F-BM从而转发报文,从而避免流量中断,实现故障场景的快速切换以及流量保护。The embodiment of this application is applied to the scenario where multicast BIER is configured, for example, it is applied to the scenario where there are multiple devices in a site, and each device is configured with multicast BIER. According to some embodiments of the present application, by configuring anycast labels on multiple devices in the same site, the anycast label is used to identify the site to which the device belongs. Therefore, each device uses anycast label, BFR-ID and BFR prefix. After the parameters are announced together, the device that receives the parameters will reflect the BFR-IDs of multiple forwarding devices in the same site to the F-BM based on the anycast label when generating the correspondence between the devices arriving at the site. In the same entry, when a data packet containing the bit string corresponding to the BFR-ID of any device in the site is received, it can be matched to the F-BM based on the bit string, and forwarded to the next hop corresponding to the F-BM. message. If a node failure or link failure occurs on one of the devices in the site, it can also match the corresponding F-BM to another device and forward the packets, thereby avoiding traffic interruption and realizing rapid switchover and traffic protection in fault scenarios.
本申请实施例适用的组网场景包括很多种,下面结合三种组网场景举例说明。The embodiments of this application are applicable to many networking scenarios. The following is an example of three networking scenarios.
组网场景一、部署根节点以及叶子节点,未部署中间节点。Networking Scenario 1: Deploy root nodes and leaf nodes, but do not deploy intermediate nodes.
图1是本申请实施例提供的一种组网场景的示意图,图1所示的场景中BIER网络包括转发设备110、转发设备121以及转发设备122。转发设备110位于站点A内。转发设备121以及转发设备122位于站点B内。转发设备110与组播源通信。从组播的角度来看,转发设备110为根节点。从BIER的角度来看,转发设备110为BIER网络中的BFIR。转发设备121与组播接收者1通信。从组播的角度来看,转发设备121为叶子节点。从BIER的角度来看,转发设备121为BIER网络中的BFER。转发设备122与组播接收者2通信。从组播的角度来看,转发设备122为叶子节点。从BIER的角度来看,转发设备122为BIER网络中的BFER。转发设备110与转发设备121以及转发设备122其中的一个或多个通信。在一些实施例中,转发设备110与转发设备121通信,转发设备110与转发设备122通信,也即是,转发设备110能够与站点B内的两台转发设备通信。在另一些实施例中,转发设备110与转发设备121通信,转发设备110与转发设备122无法通信,或者转发设备110与转发设备122通信,转发设备110与转发设备121无法通信,也即是,转发设备110与站点B内的一台转发设备通信。Figure 1 is a schematic diagram of a networking scenario provided by an embodiment of the present application. In the scenario shown in Figure 1, the BIER network includes a forwarding device 110, a forwarding device 121 and a forwarding device 122. Forwarding device 110 is located within site A. The forwarding device 121 and the forwarding device 122 are located in site B. Forwarding device 110 communicates with the multicast source. From a multicast perspective, forwarding device 110 is the root node. From a BIER perspective, the forwarding device 110 is a BFIR in the BIER network. Forwarding device 121 communicates with multicast receiver 1. From a multicast perspective, the forwarding device 121 is a leaf node. From a BIER perspective, the forwarding device 121 is a BFER in the BIER network. Forwarding device 122 communicates with multicast receiver 2. From a multicast perspective, the forwarding device 122 is a leaf node. From a BIER perspective, the forwarding device 122 is a BFER in the BIER network. Forwarding device 110 communicates with one or more of forwarding device 121 and forwarding device 122 . In some embodiments, the forwarding device 110 communicates with the forwarding device 121, and the forwarding device 110 communicates with the forwarding device 122. That is, the forwarding device 110 can communicate with two forwarding devices in site B. In other embodiments, the forwarding device 110 communicates with the forwarding device 121, but the forwarding device 110 and the forwarding device 122 cannot communicate, or the forwarding device 110 communicates with the forwarding device 122, but the forwarding device 110 and the forwarding device 121 cannot communicate, that is, Forwarding device 110 communicates with a forwarding device within site B.
组网场景二、部署根节点、叶子节点以及一跳中间节点。Networking scenario 2: Deploy root nodes, leaf nodes and one-hop intermediate nodes.
图2是本申请实施例提供的另一种组网场景的示意图,图2所示的场景在图1所示场景的基础上,进一步部署了转发设备131。转发设备131位于站点C内。转发设备131与转发设备110通信。转发设备131与转发设备121以及转发设备122通信。从组播的角度来看,转发设备131为中间节点。从BIER 的角度来看,转发设备131为BIER网络中的transit BFR。Figure 2 is a schematic diagram of another networking scenario provided by the embodiment of the present application. The scenario shown in Figure 2 is based on the scenario shown in Figure 1 and further deploys a forwarding device 131. The forwarding device 131 is located within site C. Forwarding device 131 communicates with forwarding device 110 . Forwarding device 131 communicates with forwarding device 121 and forwarding device 122 . From a multicast perspective, the forwarding device 131 is an intermediate node. From BIER From this perspective, the forwarding device 131 is the transit BFR in the BIER network.
组网场景三、部署根节点、叶子节点以及多跳中间节点。Networking scenario three: deploy root nodes, leaf nodes and multi-hop intermediate nodes.
图3是本申请实施例提供的另一种组网场景的示意图,图3所示的场景在图2所示场景的基础上,进一步部署了转发设备141。转发设备141位于站点D内。转发设备141与转发设备110通信。转发设备141与转发设备131通过网络相连。从组播的角度来看,转发设备141与转发设备131是转发路径中相邻的两跳中间节点。转发设备141是转发设备131的上游节点,转发设备131是转发设备141的下游节点。从BIER的角度来看,转发设备141以及转发设备131为相邻的两跳transit BFR。Figure 3 is a schematic diagram of another networking scenario provided by the embodiment of the present application. The scenario shown in Figure 3 is based on the scenario shown in Figure 2 and further deploys a forwarding device 141. The forwarding device 141 is located within site D. Forwarding device 141 communicates with forwarding device 110 . The forwarding device 141 and the forwarding device 131 are connected through a network. From the perspective of multicast, forwarding device 141 and forwarding device 131 are adjacent two-hop intermediate nodes in the forwarding path. The forwarding device 141 is an upstream node of the forwarding device 131 , and the forwarding device 131 is a downstream node of the forwarding device 141 . From the perspective of BIER, forwarding device 141 and forwarding device 131 are adjacent two-hop transit BFRs.
以上描述的各个设备之间的通信关系在图中以设备之间的连线表示。设备之间的通信关系包括而不限于物理直连、通过一个或多个二层交换机连接、通过IP overlay隧道连接以及通过标签交换路径(LSP)连接等。物理直连包括而不限于通过电缆、光纤或者其他传输介质连接。通过标签交换路径连接例如通过MPLS实现,例如,在图2中转发设备131与转发设备121可以通过标签交换路径连接,转发设备131与转发设备121为标签交换路径的2个端点,转发设备131与转发设备121之间经过一个或多个标签交换路由器(LSR)。The communication relationship between the various devices described above is represented by the lines between the devices in the figure. The communication relationship between the devices includes but is not limited to physical direct connection, connection through one or more layer 2 switches, connection through IP overlay tunnel, and connection through label switching path (LSP). Physical direct connection includes but is not limited to connection through cable, optical fiber or other transmission media. Connection through label switching path is achieved through MPLS, for example, in Figure 2, forwarding device 131 and forwarding device 121 can be connected through a label switching path, forwarding device 131 and forwarding device 121 are two endpoints of the label switching path, and one or more label switching routers (LSRs) are passed between forwarding device 131 and forwarding device 121.
下面对本申请实施例的方法流程举例说明。The following is an example of the method flow of the embodiment of the present application.
本申请的一些实施例涉及多个站点的场景。为了区分不同的站点,用“第一站点”、“第二站点”区分描述不同的站点。Some embodiments of the present application involve multiple site scenarios. In order to distinguish different sites, "first site" and "second site" are used to describe different sites.
本申请的一些实施例涉及多个转发设备之间的交互。为了区分不同的转发设备,用“第一转发设备”、“第二转发设备”以及“第三转发设备”区分描述多个不同的转发设备。第一转发设备和第三转发设备均为第一站点内的设备。第二转发设备为第二站点内的设备。第一转发设备、第二转发设备和第三转发设备的角色包括多种情况,下面通过情况一至情况三举例说明。Some embodiments of the present application involve interaction between multiple forwarding devices. In order to distinguish different forwarding devices, "first forwarding device", "second forwarding device" and "third forwarding device" are used to distinguish and describe multiple different forwarding devices. The first forwarding device and the third forwarding device are both devices in the first site. The second forwarding device is a device in the second site. The roles of the first forwarding device, the second forwarding device, and the third forwarding device include multiple situations, which are illustrated below with examples from Situation 1 to Situation 3.
情况一、第一转发设备为BFER,第三转发设备为BFER,第二转发设备为transit BFR。也即是,第一转发设备和第三转发设备均为叶子节点,第二转发设备为中间节点。例如,结合图2所示场景来看,第一转发设备为图2中的转发设备121,第三转发设备为图2中的转发设备122,第二转发设备为图2中转发设备131。Case 1: The first forwarding device is BFER, the third forwarding device is BFER, and the second forwarding device is transit BFR. That is, the first forwarding device and the third forwarding device are both leaf nodes, and the second forwarding device is an intermediate node. For example, looking at the scenario shown in Figure 2, the first forwarding device is the forwarding device 121 in Figure 2, the third forwarding device is the forwarding device 122 in Figure 2, and the second forwarding device is the forwarding device 131 in Figure 2.
情况二、第一转发设备为transit BFR,第二转发设备为BFIR,第三转发设备为transit BFR。也即是,第一转发设备和第三转发设备均为中间节点,第二转发设备为根节点。例如,结合图2所示场景来看,第一转发设备为图2中的转发设备131,第三转发设备为图2中的转发设备132,第二转发设备为图2中转发设备110。Case 2: The first forwarding device is transit BFR, the second forwarding device is BFIR, and the third forwarding device is transit BFR. That is, the first forwarding device and the third forwarding device are both intermediate nodes, and the second forwarding device is the root node. For example, looking at the scenario shown in Figure 2, the first forwarding device is the forwarding device 131 in Figure 2, the third forwarding device is the forwarding device 132 in Figure 2, and the second forwarding device is the forwarding device 110 in Figure 2.
情况三、第一转发设备以及第二转发设备为相邻的transit BFR。例如,第一转发设备为BIER转发路径上位于第二转发设备下游的transit BFR,第二转发设备为转发路径为BIER转发路径上位于第一转发设备上游的transit BFR。例如,结合图3所示场景来看,第一转发设备为图3中的转发设备131,第三转发设备为图3中的转发设备132,第二转发设备为图2中转发设备141。Case 3: The first forwarding device and the second forwarding device are adjacent transit BFRs. For example, the first forwarding device is the transit BFR located downstream of the second forwarding device on the BIER forwarding path, and the second forwarding device is the transit BFR located upstream of the first forwarding device on the BIER forwarding path. For example, looking at the scenario shown in Figure 3, the first forwarding device is the forwarding device 131 in Figure 3, the third forwarding device is the forwarding device 132 in Figure 3, and the second forwarding device is the forwarding device 141 in Figure 2.
本申请的一些实施例中,在转发设备上配置有任播标签,通过任播标签标识转发设备所属的站点。在一个站点中存在多个转发设备的场景下,站点内不同转发设备上配置的任播标签标识同一个站点。任播标签的表达形式包括多种可能形式,下面通过三种形式举例说明。In some embodiments of the present application, an anycast label is configured on the forwarding device, and the site to which the forwarding device belongs is identified through the anycast label. In a scenario where multiple forwarding devices exist in a site, anycast labels configured on different forwarding devices in the site identify the same site. The expression form of anycast tag includes many possible forms. The following three forms are given as examples.
任播标签的形式一、IPv6目的地址Form 1 of anycast label, IPv6 destination address
例如,任播标签为End.BIER SID、组播策略保留地址(multicast policy reserved address,MPRA)或者IPv6链路本地地址(link-local address)。例如,将第一站点内第一转发设备的End.BIER SID配置 为第一任播标签,将第一站点内第三转发设备的End.BIER SID配置为第二任播标签。通过使用End.BIER SID作为任播标签,一方面,兼容基于IPv6网络运行BIER的场景,比如兼容BIERv6场景。另一方面,任播标签不仅能够标识站点,还能够指示设备照BIER的方式转发组播报文;再一方面,由于End.BIER SID的形式是IPv6地址,在站点之间的链路经过了一跳或者多跳不支持BIER的IPv6节点时,利用IPv6单播路由的可达性,数据报文能够跨越不支持BIER的IPv6节点,传输至另一个站点,从而兼容站点之间经过不支持BIER的IPv6节点的组网场景。通过使用MPRA作为任播标签,可以兼容G-BIER的封装方式。通过使用link-local address作为任播标签,可以兼容BIERin6的封装方式。For example, the anycast label is End.BIER SID, multicast policy reserved address (MPRA) or IPv6 link-local address. For example, configure the End.BIER SID of the first forwarding device in the first site As the first anycast label, configure the End.BIER SID of the third forwarding device in the first site as the second anycast label. By using the End.BIER SID as the anycast tag, on the one hand, it is compatible with scenarios where BIER is run on IPv6 networks, such as BIERv6 scenarios. On the other hand, the anycast label can not only identify the site, but also instruct the device to forward multicast packets in the BIER manner; on the other hand, because the End.BIER SID is in the form of an IPv6 address, the links between sites pass through When there is an IPv6 node that does not support BIER in one or more hops, using the reachability of IPv6 unicast routing, the data packet can cross the IPv6 node that does not support BIER and be transmitted to another site, thus making it compatible between sites through the IPv6 node that does not support BIER. Networking scenario of IPv6 nodes. By using MPRA as anycast label, it can be compatible with G-BIER encapsulation method. By using the link-local address as the anycast label, it can be compatible with the BIERin6 encapsulation method.
任播标签的形式二、标签Anycast tag form 2. Tag
例如,任播标签为站点中的设备按BSL、SD和SI分配的标签。不同站点的任播标签的取值不同。如果同一站点中不同的BFR配置有不同的BSL、SD和SI,则同一站点内不同BFR对应的任播标签的取值不同。只有同一站点内每个BFR拥有相同BSL、SD和SI时,同一个站点上每个BFR会拥有相同的任播标签。任播标签可以是MPLS场景的MPLS标签,也可以是MPLS之外其他封装场景下分配的非MPLS标签。For example, anycast labels are labels assigned to devices in a site based on BSL, SD, and SI. Different sites have different values for the anycast tag. If different BFRs in the same site are configured with different BSL, SD, and SI, the values of anycast labels corresponding to different BFRs in the same site are different. Only when each BFR in the same site has the same BSL, SD, and SI, each BFR in the same site will have the same anycast label. Anycast labels can be MPLS labels in MPLS scenarios, or non-MPLS labels allocated in other encapsulation scenarios besides MPLS.
任播标签的形式三、根据BIER网络中站点的数量分配的一个或一串数字。The third form of anycast tag is a number or a series of numbers assigned according to the number of sites in the BIER network.
例如,由网络管理员或者控制器根据BIER网络中站点的数量分配一个或一串数字,作为任播标签。例如,控制器按照从小到大的顺序为每个站点依次分配任播标签。比如,如果BIER网络中包含站点A和站点B这2个站点,则为站点A分配“1”作为站点A内设备的任播标签,为站点B分配“2”作为站点B内设备的任播标签;又如,为站点A分配“111”作为站点A内设备的任播标签,为站点B分配“222”作为站点B内设备的任播标签。For example, the network administrator or controller assigns a number or a series of numbers as anycast tags based on the number of sites in the BIER network. For example, the controller assigns anycast tags to each site in order from small to large. For example, if the BIER network contains two sites, site A and site B, site A is assigned "1" as the anycast label of the equipment in site A, and site B is assigned "2" as the anycast label of the equipment in site B. Label; for another example, site A is assigned "111" as the anycast label of the equipment in site A, and site B is assigned "222" as the anycast label of the equipment in site B.
以上描述的三种形式仅是对任播标签的形式的举例说明,任播标签也可能具有其他的形式。例如,任播标签为非SID形式的IPv6地址,或者任播标签为IPv4地址,或者任播标签为非BIER-MPLS label形式的MPLS标签,本实施例对任播标签的形式不做限定。The three forms described above are only examples of the forms of anycast tags, and anycast tags may also have other forms. For example, the anycast label is an IPv6 address in a non-SID format, or the anycast label is an IPv4 address, or the anycast label is an MPLS label in a non-BIER-MPLS label format. This embodiment does not limit the format of the anycast label.
在一些实施例中,将同一个站点内每个转发设备的任播标签配置为相同的形式和相同的值。例如,为第一站点内第一转发设备配置第一任播标签,为第一站点内第三转发设备配置第二任播标签。第二任播标签和第一任播标签具有相同的值。例如,第二任播标签和第一任播标签的形式都是End.BIER SID,第二任播标签的取值是1::1,第一任播标签的取值也是1::1。又如,第二任播标签和第一任播标签都是MPLS标签,第二任播标签的取值是10,第一任播标签的取值也是10。In some embodiments, the anycast label of each forwarding device within the same site is configured in the same form and with the same value. For example, a first anycast label is configured for the first forwarding device in the first site, and a second anycast label is configured for the third forwarding device in the first site. The second anycast tag and the first anycast tag have the same value. For example, the second anycast tag and the first anycast tag are both in the form of End.BIER SID. The value of the second anycast tag is 1::1, and the value of the first anycast tag is also 1::1. For another example, the second anycast label and the first anycast label are both MPLS labels. The value of the second anycast label is 10, and the value of the first anycast label is also 10.
由于同一个站点内每个转发设备的任播标签配置为相同的值,因此站点内的各个转发设备通告包含任播标签的参数集后,参数集的接收端根据接收到的多个参数集中携带了相同的任播标签,即可确定多个参数集来自的设备均属于同一个站点,进而确定要将多个参数集包括的BFR-ID合并到同一个F-BM中,实现复杂度较低。Since the anycast label of each forwarding device in the same site is configured with the same value, after each forwarding device in the site advertises the parameter set containing the anycast label, the receiving end of the parameter set carries the parameter set based on the received multiple parameters. If the same anycast label is found, it can be determined that the devices from multiple parameter sets belong to the same site, and then it is determined to merge the BFR-IDs included in multiple parameter sets into the same F-BM, with low implementation complexity. .
以上描述的任播标签可以体现在转发设备获得的对应关系中。对应关系可以用于转发数据报文。可选地,转发设备以表项的形式保存获得的对应关系,通过查表的方式使用获得的对应关系。例如,一个对应关系是转发设备上一张表中的一行表项或者多行表项的集合。转发设备上的表通常分为路由信息库(Routing information Base,RIB)和转发信息库(forwarding information base,FIB)。对应关系具体形式可以是采用RIB表中的表项或者FIB表中表项。The anycast label described above can be reflected in the correspondence obtained by the forwarding device. The correspondence can be used to forward data packets. Optionally, the forwarding device saves the obtained correspondence in the form of table entries and uses the obtained correspondence by looking up the table. For example, a correspondence is a row of table entries or a collection of multiple rows of table entries in a table on the forwarding device. The tables on the forwarding device are usually divided into a routing information base (Routing information Base, RIB) and a forwarding information base (forwarding information base, FIB). The specific form of the correspondence can be a table entry in the RIB table or a table entry in the FIB table.
以上描述的任播标签可以通过任意一种动态路由协议在BIER网络中泛洪,使得BIER网络中每个BFR接收到来自其他BFR的任播标签。在一些实施例中,通过IGP报文通告任播标签,例如IS-IS报文 或者OSPF报文通告任播标签。在另一些实施例中,通过BGP报文通告任播标签。The anycast labels described above can be flooded in the BIER network through any dynamic routing protocol, so that each BFR in the BIER network receives anycast labels from other BFRs. In some embodiments, anycast labels are advertised through IGP messages, such as IS-IS messages Or OSPF packets advertise anycast labels. In other embodiments, anycast labels are advertised through BGP messages.
在一些实施例中,以上描述的任播标签和BFR prefix携带在一个通告报文中,从而在BIER网络中一起泛洪。例如,转发设备发送一个通告报文,通告报文中包括一个前缀TLV,前缀TLV包括BFR prefix,前缀TLV的子TLV中包括任播标签。又如,转发设备发送一个通告报文,通告报文中包括一个网络可达性信息(NLRI)字段以及路径属性字段,NLRI字段包括BFR prefix,路径属性字段包括任播标签。In some embodiments, the anycast label and BFR prefix described above are carried in one advertisement message and thus flooded together in the BIER network. For example, the forwarding device sends a notification message. The notification message includes a prefix TLV, the prefix TLV includes the BFR prefix, and the sub-TLV of the prefix TLV includes the anycast label. For another example, the forwarding device sends a notification message. The notification message includes a network reachability information (NLRI) field and a path attribute field. The NLRI field includes the BFR prefix, and the path attribute field includes the anycast label.
在一些实施例中,以上描述的任播标签不仅和BFR prefix一起泛洪,还和BIER的其他参数一起泛洪。与任播标签一起泛洪的BIER参数包括而不限于BFR-ID、比特串长度BSL、集合标识SI以及BIER子域的标识其中的一个或多个。在一些实施例中,通过同一个报文通告任播标签、BFR-ID以及BFR prefix这三种参数;例如,转发设备发送一个通告报文,通告报文包括任播标签、BFR-ID以及BFR prefix;在另一些实施例中,转发设备通过一个报文通告任播标签以及BFR prefix,通过另一个报文通告BFR prefix以及BFR-ID。In some embodiments, the anycast tag described above is flooded not only with the BFR prefix, but also with other parameters of the BIER. The BIER parameters flooded together with the anycast label include, but are not limited to, one or more of the BFR-ID, the bit string length BSL, the set identifier SI, and the identifier of the BIER subdomain. In some embodiments, the three parameters of anycast label, BFR-ID, and BFR prefix are advertised through the same message; for example, the forwarding device sends an announcement message, and the announcement message includes anycast label, BFR-ID, and BFR prefix; in other embodiments, the forwarding device advertises the anycast label and BFR prefix through one message, and the BFR prefix and BFR-ID through another message.
任播标签在通告报文中所处的具体字段包括多种情况。可选地,使用BIER信息子TLV通告任播标签。可选地,使用BIER信息子TLV中的子子TLV通告任播标签。例如,转发设备发送一个通告报文,通告报文中包括一个前缀TLV,前缀TLV包括BIER信息子TLV,BIER信息子TLV包括一个子子TLV,子子TLV包括任播标签。The specific fields where the anycast label is located in the notification message include various situations. Optionally, use the BIER information sub-TLV to advertise the anycast label. Optionally, the anycast label is advertised using a sub-sub-TLV in the BIER information sub-TLV. For example, the forwarding device sends a notification message. The notification message includes a prefix TLV. The prefix TLV includes a BIER information sub-TLV. The BIER information sub-TLV includes a sub-sub-TLV. The sub-sub-TLV includes an anycast label.
图4是本申请实施例提供的一种配置组播方法的流程图。图4所示方法包括以下步骤S201至步骤S208。Figure 4 is a flow chart of a multicast configuration method provided by an embodiment of the present application. The method shown in Figure 4 includes the following steps S201 to S208.
步骤S201,第一站点内第一转发设备获得第一参数集。Step S201: The first forwarding device in the first site obtains the first parameter set.
第一参数集包括第一任播标签、第一转发设备的BFR-ID以及第一转发设备的BFR prefix。第一任播标签用于标识第一站点。在一些实施例中,第一任播标签为第一转发设备的IPv6地址,例如为第一转发设备的End.BIER SID。在一些实施例中,第一任播标签为标签,例如为第一转发设备的BIER-MPLS label。在一些实施例中,第一参数集还包括第一转发设备的比特串长度BSL、第一转发设备所属的集合标识SI以及第一转发设备所处的BIER子域的标识其中的一个或多个。The first parameter set includes the first anycast label, the BFR-ID of the first forwarding device, and the BFR prefix of the first forwarding device. The first anycast tag is used to identify the first site. In some embodiments, the first anycast label is the IPv6 address of the first forwarding device, for example, the End.BIER SID of the first forwarding device. In some embodiments, the first anycast label is a label, such as a BIER-MPLS label of the first forwarding device. In some embodiments, the first parameter set further includes one or more of the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the identifier of the BIER subdomain where the first forwarding device is located. .
步骤S202,第一转发设备向第二站点内第二转发设备发送第一参数集。Step S202: The first forwarding device sends a first parameter set to a second forwarding device in a second site.
在一些实施例中,第一转发设备通过泛洪的方式发送第一参数集。例如,第一转发设备和第二转发设备处于同一个BIER网络中。BIER网络中第一转发设备在该BIER网络中泛洪第一参数集,使得BIER网络内第二转发设备能够接收到第一参数集。In some embodiments, the first forwarding device sends the first parameter set by flooding. For example, the first forwarding device and the second forwarding device are in the same BIER network. The first forwarding device in the BIER network floods the first parameter set in the BIER network, so that the second forwarding device in the BIER network can receive the first parameter set.
在一些实施例中,第一转发设备生成第一通告报文,第一转发设备向第二转发设备发送第一通告报文。第一通告报文包括第一任播标签。在一些实施例中,第一通告报文还包括第一参数集中第一任播标签之外的其他参数。例如,第一通告报文包括第一转发设备的BFR-ID、第一转发设备的比特串长度BSL、第一转发设备所属的集合标识SI以及第一转发设备所处的BIER子域的标识其中的一个或多个。In some embodiments, the first forwarding device generates the first notification message, and the first forwarding device sends the first notification message to the second forwarding device. The first advertisement message includes the first anycast label. In some embodiments, the first advertisement message also includes other parameters other than the first anycast label in the first parameter set. For example, the first notification message includes the BFR-ID of the first forwarding device, the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the identifier of the BIER subdomain where the first forwarding device is located. one or more of.
针对携带第一任播标签的字段,在一些实施例中,第一通告报文包括BIER信息子TLV,BIER信息子TLV包括第一任播标签。在一种可能的实现中,BIER信息子TLV包括第一转发设备的BFR-ID以及第一转发设备所处的BIER子域的标识以及一个sub-sub-TLV,BIER信息子TLV包括的sub-sub-TLV包括第一任播标签、第一转发设备的BSL以及第一转发设备所属的集合标识SI。Regarding the field carrying the first anycast label, in some embodiments, the first advertisement message includes a BIER information sub-TLV, and the BIER information sub-TLV includes the first anycast label. In a possible implementation, the BIER information sub-TLV includes the BFR-ID of the first forwarding device, the identifier of the BIER subdomain where the first forwarding device is located, and a sub-sub-TLV. The BIER information sub-TLV includes the sub- The sub-TLV includes the first anycast label, the BSL of the first forwarding device, and the set identity SI to which the first forwarding device belongs.
针对发送第一参数集使用的报文类型,在一些实施例中,第一通告报文为IGP报文。例如,第一通告报文为中间系统到中间系统(intermediate system to intermediate system,IS-IS)报文或者(open shortest path first,OSPF)报文。在另一些实施例中,第一通告报文为边界网关协议(border gateway protocol,BGP) 报文。例如,第一通告报文为边界网关协议以太虚拟专用网络(border gateway protocol ethernet virtual private network,BGP EVPN)报文。Regarding the message type used to send the first parameter set, in some embodiments, the first advertisement message is an IGP message. For example, the first advertisement message is an intermediate system to intermediate system (IS-IS) message or an (open shortest path first, OSPF) message. In other embodiments, the first advertisement message is a border gateway protocol (BGP) message. For example, the first advertisement message is a border gateway protocol ethernet virtual private network (BGP EVPN) message.
第一转发设备如何获得第一参数集包括多种实现方式。在一种可能的实现中,通过静态配置的方式获得第一参数集。例如,网络管理员通过命令行或者web界面等方式,对第一转发设备执行配置操作,输入上述第一参数集。第一转发设备响应于网络管理员的配置操作,获得网络管理员输入的第一参数集。在另一种可能的实现中,通过控制器下发的方式获得第一参数集。例如,由控制器为第一转发设备分配第一参数集。控制器向第一转发设备发送第一参数集。第一转发设备接收控制器发送的第一参数集。How the first forwarding device obtains the first parameter set includes multiple implementation methods. In a possible implementation, the first parameter set is obtained through static configuration. For example, the network administrator performs a configuration operation on the first forwarding device through a command line or a web interface, and inputs the above first parameter set. The first forwarding device responds to the configuration operation of the network administrator and obtains the first parameter set input by the network administrator. In another possible implementation, the first parameter set is obtained by being issued by the controller. For example, the controller allocates a first parameter set to the first forwarding device. The controller sends the first parameter set to the first forwarding device. The first forwarding device receives the first parameter set sent by the controller.
步骤S203,第二站点内第二转发设备接收来自第一站点内第一转发设备的第一参数集。Step S203: The second forwarding device in the second site receives the first parameter set from the first forwarding device in the first site.
例如,第二转发设备接收来自第一转发设备的第一通告报文,第一通告报文包括BIER信息子TLV,BIER信息子TLV包括第一参数集。第二转发设备从第一通告报文中的BIER信息子TLV获得第一参数集。For example, the second forwarding device receives a first notification message from the first forwarding device, the first notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes a first parameter set. The second forwarding device obtains the first parameter set from the BIER information sub-TLV in the first advertisement message.
步骤S204,第一站点内第三转发设备获得第二参数集。Step S204: The third forwarding device in the first site obtains the second parameter set.
第二参数集包括第二任播标签、第三转发设备的BFR-ID以及第三转发设备的BFR prefix。第二任播标签用于标识第一站点。由于第二任播标签和第一任播标签均标识第一站点,因此参数集的接收端根据第二任播标签和第一任播标签能够确定第三转发设备和第一转发设备这2个设备属于同一个站点。The second parameter set includes the second anycast label, the BFR-ID of the third forwarding device, and the BFR prefix of the third forwarding device. The second anycast tag is used to identify the first site. Since both the second anycast label and the first anycast label identify the first site, the receiving end of the parameter set can determine the third forwarding device and the first forwarding device based on the second anycast label and the first anycast label. The devices belong to the same site.
在一些实施例中,第二任播标签为End.BIER SID或MPLS标签。In some embodiments, the second anycast label is the End.BIER SID or MPLS label.
在一些实施例中,第二参数集还包括第三转发设备的比特串长度BSL、第三转发设备所属的集合标识SI以及第三转发设备所处的BIER子域的标识其中的一个或多个。In some embodiments, the second parameter set further includes one or more of the bit string length BSL of the third forwarding device, the set identifier SI to which the third forwarding device belongs, and the identifier of the BIER subdomain where the third forwarding device is located. .
步骤S205,第三转发设备向第二站点内第二转发设备发送第二参数集。Step S205: The third forwarding device sends the second parameter set to the second forwarding device in the second site.
在一些实施例中,第三转发设备生成第二通告报文,第三转发设备向第二转发设备发送第二通告报文,第二通告报文包括第二参数集。In some embodiments, the third forwarding device generates a second notification message, the third forwarding device sends the second notification message to the second forwarding device, and the second notification message includes the second parameter set.
在一些实施例中,第二通告报文包括BIER信息子TLV,BIER信息子TLV包括第二任播标签。In some embodiments, the second advertisement message includes a BIER information sub-TLV, and the BIER information sub-TLV includes a second anycast label.
在一些实施例中,第二通告报文为IGP报文。例如,第二通告报文为IS-IS报文或者OSPF报文。在另一些实施例中,第一通告报文为BGP报文。例如,第一通告报文为BGP EVPN报文。In some embodiments, the second advertisement message is an IGP message. For example, the second advertisement message is an IS-IS message or an OSPF message. In other embodiments, the first advertisement message is a BGP message. For example, the first advertisement message is a BGP EVPN message.
针对携带第二任播标签的字段,在一些实施例中,第二通告报文包括BIER信息子TLV,BIER信息子TLV包括第二任播标签。在一种可能的实现中,BIER信息子TLV包括第二转发设备的BFR-ID以及第二转发设备所处的BIER子域的标识以及一个sub-sub-TLV,sub-sub-TLV包括第二任播标签、第二转发设备的BSL以及第二转发设备所属的集合标识SI。Regarding the field carrying the second anycast label, in some embodiments, the second advertisement message includes a BIER information sub-TLV, and the BIER information sub-TLV includes the second anycast label. In a possible implementation, the BIER information sub-TLV includes the BFR-ID of the second forwarding device and the identification of the BIER subdomain where the second forwarding device is located and a sub-sub-TLV, and the sub-sub-TLV includes the second forwarding device. The anycast label, the BSL of the second forwarding device, and the set identifier SI to which the second forwarding device belongs.
步骤S206,第二转发设备接收来自第一站点内第三转发设备的第二参数集。Step S206: The second forwarding device receives the second parameter set from the third forwarding device in the first site.
例如,第二转发设备接收来自第一站点内第三转发设备的第二通告报文。第二通告报文包括BIER信息子TLV,BIER信息子TLV包括第二参数集。第二转发设备从第二通告报文中的BIER信息子TLV获得第二参数集。For example, the second forwarding device receives the second advertisement message from the third forwarding device in the first site. The second notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes a second parameter set. The second forwarding device obtains the second parameter set from the BIER information sub-TLV in the second advertisement message.
步骤S207,第二转发设备基于第一参数集以及第三转发设备的BFR-ID获得第一对应关系。Step S207: The second forwarding device obtains the first correspondence based on the first parameter set and the BFR-ID of the third forwarding device.
第一对应关系包括与第一转发设备的BFR-ID以及第三转发设备的BFR-ID匹配的F-BM、第一任播标签以及与第一转发设备的BFR prefix匹配的下一跳。第一对应关系可以通过一个表项实现,也可以通过多个相关联的表项实现,下面通过实现方式一和实现方式二举例说明。The first corresponding relationship includes the F-BM matching the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, the first anycast label, and the next hop matching the BFR prefix of the first forwarding device. The first corresponding relationship can be realized through one table entry or through multiple related table entries. The following is an example of implementation method 1 and implementation method 2.
实现方式一、第一对应关系为一个表项。Implementation method 1: The first corresponding relationship is a table item.
在采用实现方式一时,第二转发设备通过同一个表项保存F-BM、第一任播标签以及与第一转发设 备的BFR prefix匹配的下一跳。例如,第一对应关系包括第一字段、第二字段以及第三字段,第一字段包括F-BM,第二字段包括第一任播标签,第三字段包括与第一转发设备的BFR prefix匹配的下一跳。第一字段例如是F-BM字段,第二字段例如是下一跳字段,第三字段例如是BFR-NBR字段。When implementation method 1 is adopted, the second forwarding device stores the F-BM, the first anycast label, and the same information as the first forwarding device through the same entry. The next hop that matches the BFR prefix of the device. For example, the first correspondence relationship includes a first field, a second field, and a third field. The first field includes F-BM, the second field includes a first anycast label, and the third field includes a BFR prefix matching the first forwarding device. the next hop. The first field is, for example, the F-BM field, the second field is, for example, the next hop field, and the third field is, for example, the BFR-NBR field.
基于实现方式一,支持在BIER相关标准定义的BIFT的格式中增加字段,通过新增字段携带任播标签,通过BIFT定义的F-BM字段以及BFR-NBR字段携带F-BM和下一跳,这样在数据面转发时,通过查找一个表项即可获得转发所需的参数。Based on implementation method 1, it supports adding fields in the BIFT format defined by BIER related standards, carrying anycast tags through the new fields, and carrying F-BM and next hop through the F-BM field and BFR-NBR field defined by BIFT. In this way, when forwarding on the data plane, the parameters required for forwarding can be obtained by looking up a table entry.
实现方式二、第一对应关系包括多个相关联的表项。Implementation method 2: The first correspondence relationship includes multiple associated entries.
在采用实现方式二时,第二转发设备可以通过一个表项保存F-BM以及与第一转发设备的BFR prefix匹配的下一跳,通过与该表项关联的另一个表项保存第一任播标签。例如,第一对应关系包括第一表项和第二表项,第一表项包括F-BM字段以及BFR-NBR字段,第二表项包括第一字段以及第二字段。第一表项中F-BM字段包括与第一转发设备的BFR-ID以及第三转发设备的BFR-ID匹配的F-BM,第一表项中BFR-NBR字段包括与第一转发设备的BFR prefix匹配的下一跳。第二表项中第一字段包括与第一转发设备的BFR prefix匹配的下一跳。第二表项中第二字段包括第一任播标签。When using the second implementation method, the second forwarding device can save the F-BM and the next hop that matches the BFR prefix of the first forwarding device through one entry, and save the first hop through another entry associated with the entry. broadcast tag. For example, the first correspondence relationship includes a first entry and a second entry, the first entry includes an F-BM field and a BFR-NBR field, and the second entry includes a first field and a second field. The F-BM field in the first entry includes an F-BM that matches the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device. The BFR-NBR field in the first entry includes an F-BM that matches the BFR-ID of the first forwarding device. The next hop matched by BFR prefix. The first field in the second entry includes the next hop that matches the BFR prefix of the first forwarding device. The second field in the second entry includes the first anycast label.
基于实现方式二,支持使用BIER相关标准定义的BIFT的格式,实现BIER转发表,比如BIER转发表中包括上述第一表项,在数据面转发时,先查找第一表项,如果比特串与第一表项中的F-BM匹配,则根据第一表项中的F-BM查找第二表项从而获得下一跳,这种方式与BIER相关标准更加兼容。Based on the second implementation method, the BIFT format defined by the BIER-related standards is supported to implement the BIER forwarding table. For example, the BIER forwarding table includes the above-mentioned first table item. When forwarding on the data plane, the first table item is first searched. If the bit string matches the F-BM in the first table item, the second table item is searched according to the F-BM in the first table item to obtain the next hop. This method is more compatible with the BIER-related standards.
第一对应关系中与第一转发设备的BFR prefix匹配的下一跳包括多种情况,下面通过情况A和情况B举例说明。The next hop that matches the BFR prefix of the first forwarding device in the first correspondence relationship includes multiple situations. The following is an example of case A and case B.
情况A、第一对应关系中与第一转发设备的BFR prefix匹配的下一跳为第一转发设备的BFR prefix。由于第一转发设备的BFR prefix是第一转发设备的IP地址,能够起到标识第一转发设备的作用,通过在对应关系中的下一跳中保存第一转发设备的BFR prefix,使得第二转发设备在转发数据报文时,当发现比特串与对应关系中的F-BM匹配,能够确定要向第一转发设备转发报文,例如,情况A中,获得第一对应关系的过程包括如下步骤(a-1)至步骤(a-3)。Case A. The next hop in the first correspondence relationship that matches the BFR prefix of the first forwarding device is the BFR prefix of the first forwarding device. Since the BFR prefix of the first forwarding device is the IP address of the first forwarding device, it can play a role in identifying the first forwarding device. By saving the BFR prefix of the first forwarding device in the next hop in the corresponding relationship, the second forwarding device can be identified. When the forwarding device forwards the data message, when it finds that the bit string matches the F-BM in the corresponding relationship, it can determine to forward the message to the first forwarding device. For example, in case A, the process of obtaining the first corresponding relationship includes the following Step (a-1) to step (a-3).
步骤(a-1)第二转发设备基于第一任播标签以及第二任播标签,确定第一转发设备以及第三转发设备属于第一站点。如何基于任播标签确定第一转发设备以及第三转发设备属于第一站点包括多种实现方式,下面通过实现方式I至实现方式II举例说明。Step (a-1) The second forwarding device determines that the first forwarding device and the third forwarding device belong to the first site based on the first anycast label and the second anycast label. How to determine that the first forwarding device and the third forwarding device belong to the first site based on the anycast label includes multiple implementations. The following is an example of implementations I to implementations II.
实现方式I、第二转发设备对第一任播标签与第二任播标签进行比较,第二转发设备基于第一任播标签与第二任播标签相同,确定第一转发设备以及第三转发设备属于第一站点。Implementation Mode I: The second forwarding device compares the first anycast label with the second anycast label, and the second forwarding device determines the first forwarding device and the third forwarding device based on the same first anycast label and the second anycast label. The device belongs to the first site.
实现方式II、第二转发设备分别读取第一任播标签以及第二任播标签中的特定字段,第二转发设备基于第一任播标签包括第一站点的标识,且第二任播标签包括第一站点的标识,确定第一转发设备以及第三转发设备属于第一站点。Implementation Mode II: The second forwarding device reads specific fields in the first anycast tag and the second anycast tag respectively. The second forwarding device includes the identity of the first site based on the first anycast tag, and the second anycast tag Including the identification of the first site, it is determined that the first forwarding device and the third forwarding device belong to the first site.
例如,第一任播标签为第一转发设备的End.BIER SID,第一任播标签中功能字段或者参数字段包括第一站点的标识。第二任播标签为第三转发设备的End.BIER SID,第二任播标签中功能字段或者参数字段包括第一站点的标识。第二转发设备读取第一任播标签中功能字段或者参数字段,获得第一站点的标识。第二转发设备读取第二任播标签中功能字段或者参数字段,获得第一站点的标识。第二转发设备由于从第一任播标签和第二任播标签中都获得了第一站点的标识,因此确定第一转发设备以及第三转发设备属于第一站点。For example, the first anycast label is the End.BIER SID of the first forwarding device, and the function field or parameter field in the first anycast label includes the identity of the first site. The second anycast label is the End.BIER SID of the third forwarding device, and the function field or parameter field in the second anycast label includes the identity of the first site. The second forwarding device reads the function field or parameter field in the first anycast tag to obtain the identity of the first site. The second forwarding device reads the function field or parameter field in the second anycast tag to obtain the identity of the first site. Since the second forwarding device has obtained the identity of the first site from both the first anycast label and the second anycast label, it determines that the first forwarding device and the third forwarding device belong to the first site.
步骤(a-2)第二转发设备基于第一转发设备的BFR-ID以及第三转发设备的BFR-ID,获得F-BM。 例如,第二转发设备基于第一转发设备的BFR-ID,获得与第一转发设备的BFR-ID对应的比特串A;第二转发设备基于第三转发设备的BFR-ID,获得与第三转发设备的BFR-ID对应的比特串B;第二转发设备对比特串A与比特串B进行合并,获得F-BM。例如,第二转发设备对比特串A与比特串B进行或操作,使得比特串A与比特串B合并为F-BM。Step (a-2) The second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device. For example, the second forwarding device obtains the bit string A corresponding to the BFR-ID of the first forwarding device based on the BFR-ID of the first forwarding device; the second forwarding device obtains the bit string A corresponding to the BFR-ID of the third forwarding device based on the BFR-ID of the third forwarding device. The bit string B corresponding to the BFR-ID of the forwarding device; the second forwarding device combines the bit string A and the bit string B to obtain the F-BM. For example, the second forwarding device performs an OR operation on bit string A and bit string B, so that bit string A and bit string B are combined into F-BM.
作为一个具体示例,第一转发设备的BFR-ID为2,第三转发设备的BFR-ID为3。第二转发设备基于第一转发设备的BFR-ID(2),获得与第一转发设备的BFR-ID对应的比特串A是0010。第二转发设备基于第三转发设备的BFR-ID(3),获得与第三转发设备的BFR-ID对应的比特串B是0100。第二转发设备对比特串A(0010)与比特串B(0100)进行或操作,获得0110。0110即为F-BM,0110表示可以到达BFR-ID为2的设备和BFR-ID为3的设备。As a specific example, the BFR-ID of the first forwarding device is 2, and the BFR-ID of the third forwarding device is 3. Based on the BFR-ID (2) of the first forwarding device, the second forwarding device obtains that the bit string A corresponding to the BFR-ID of the first forwarding device is 0010. Based on the BFR-ID (3) of the third forwarding device, the second forwarding device obtains that the bit string B corresponding to the BFR-ID of the third forwarding device is 0100. The second forwarding device performs an OR operation on the bit string A (0010) and the bit string B (0100) to obtain 0110. 0110 is the F-BM, and 0110 means that the device with BFR-ID 2 and the device with BFR-ID 3 can be reached.
步骤(a-3)第二转发设备基于F-BM、第一任播标签以及第一转发设备的BFR prefix,获得第一对应关系,第一对应关系包括F-BM、第一任播标签以及第一转发设备的BFR prefix。Step (a-3) The second forwarding device obtains the first correspondence based on the F-BM, the first anycast label, and the BFR prefix of the first forwarding device. The first correspondence includes the F-BM, the first anycast label, and BFR prefix of the first forwarding device.
情况B、与第一转发设备的BFR prefix匹配的下一跳为根据第一转发设备的BFR prefix确定出的第一转发设备的标识和第二转发设备上出接口的组合。上述第一转发设备的标识例如是第一转发设备的BFR prefix,或者是第一转发设备的BFR prefix之外的其他IP地址。例如,情况B中,获得第一对应关系的过程包括如下步骤(b-1)至步骤(b-4)。In case B, the next hop that matches the BFR prefix of the first forwarding device is the combination of the identifier of the first forwarding device determined based on the BFR prefix of the first forwarding device and the outbound interface of the second forwarding device. The identifier of the first forwarding device is, for example, the BFR prefix of the first forwarding device, or another IP address other than the BFR prefix of the first forwarding device. For example, in case B, the process of obtaining the first correspondence includes the following steps (b-1) to step (b-4).
步骤(b-1)第二转发设备基于第一任播标签以及第二任播标签,确定第一转发设备以及第三转发设备属于第一站点;Step (b-1) The second forwarding device determines that the first forwarding device and the third forwarding device belong to the first site based on the first anycast label and the second anycast label;
步骤(b-2)第二转发设备基于第一转发设备的BFR-ID以及第三转发设备的BFR-ID,获得F-BM;Step (b-2) The second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device;
步骤(b-3)第二转发设备基于第一转发设备的BFR prefix,确定第二转发设备上到达第一转发设备的第一出接口。Step (b-3) The second forwarding device determines the first outbound interface on the second forwarding device that reaches the first forwarding device based on the BFR prefix of the first forwarding device.
在一种可能的实现中,第二转发设备与第一转发设备通信,第二转发设备将接收到第一参数集的接口作为第一出接口。在另一种可能的实现中,第二转发设备基于第一转发设备的BFR prefix,在路由表中查找本设备与第一转发设备的BFR prefix通信的接口,作为第一出接口。In a possible implementation, the second forwarding device communicates with the first forwarding device, and the second forwarding device uses the interface that receives the first parameter set as the first outgoing interface. In another possible implementation, based on the BFR prefix of the first forwarding device, the second forwarding device searches the routing table for the interface through which the device communicates with the BFR prefix of the first forwarding device as the first outgoing interface.
步骤(b-4)第二转发设备基于F-BM、第一任播标签、第一转发设备的BFR prefix以及第一出接口,获得第一对应关系,第一对应关系包括F-BM、第一任播标签、第一转发设备的BFR prefix以及第一出接口。Step (b-4) The second forwarding device obtains the first corresponding relationship based on the F-BM, the first anycast label, the BFR prefix of the first forwarding device, and the first outgoing interface. The first corresponding relationship includes the F-BM, the first anycast label, and the first outgoing interface. An anycast label, the BFR prefix of the first forwarding device, and the first outgoing interface.
步骤S208,第二转发设备基于第二参数集以及第一转发设备的BFR-ID获得第二对应关系。Step S208: The second forwarding device obtains the second corresponding relationship based on the second parameter set and the BFR-ID of the first forwarding device.
第二对应关系包括与第一转发设备的BFR-ID以及第三转发设备的BFR-ID匹配的F-BM、第二任播标签以及与第三转发设备的BFR prefix匹配的下一跳。第二对应关系可以通过一个表项实现,也可以通过多个相关联的表项实现,实现的方式可参考上文对第一对应关系的描述。The second corresponding relationship includes the F-BM that matches the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, the second anycast label, and the next hop that matches the BFR prefix of the third forwarding device. The second correspondence relationship can be implemented through one entry, or through multiple associated entries. For the implementation method, please refer to the above description of the first correspondence relationship.
第二对应关系中与第三转发设备的BFR prefix匹配的下一跳包括多种情况,下面通过情况A和情况B举例说明。The next hop that matches the BFR prefix of the third forwarding device in the second correspondence relationship includes multiple situations. The following uses case A and case B as examples.
情况A、第二对应关系中与第三转发设备的BFR prefix匹配的下一跳为第三转发设备的BFR prefix。情况A中,获得第二对应关系的过程包括如下步骤(a-1)至步骤(a-3)。In case A, the next hop that matches the BFR prefix of the third forwarding device in the second correspondence is the BFR prefix of the third forwarding device. In case A, the process of obtaining the second correspondence includes the following steps (a-1) to (a-3).
步骤(a-1)第二转发设备基于第一任播标签以及第二任播标签确定第一转发设备以及第三转发设备均属于第一站点;Step (a-1) The second forwarding device determines that the first forwarding device and the third forwarding device both belong to the first site based on the first anycast label and the second anycast label;
步骤(a-2)第二转发设备基于第一转发设备的BFR-ID以及第三转发设备的BFR-ID,获得F-BM;Step (a-2) The second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device;
步骤(a-3)第二转发设备基于F-BM、第二任播标签以及第三转发设备的BFR prefix,获得第二对 应关系,第二对应关系包括F-BM、第二任播标签以及第三转发设备的BFR prefix。Step (a-3) The second forwarding device obtains the second pair based on the F-BM, the second anycast label and the BFR prefix of the third forwarding device. The second correspondence relationship includes the F-BM, the second anycast label, and the BFR prefix of the third forwarding device.
情况B、与第三转发设备的BFR prefix匹配的下一跳为根据第三转发设备的BFR prefix确定出的第三转发设备的标识和第二转发设备上出接口的组合。例如,情况B中,获得第二对应关系的过程包括如下步骤(b-1)至步骤(b-4)。In case B, the next hop that matches the BFR prefix of the third forwarding device is the combination of the identifier of the third forwarding device determined based on the BFR prefix of the third forwarding device and the outbound interface of the second forwarding device. For example, in case B, the process of obtaining the second correspondence relationship includes the following steps (b-1) to step (b-4).
步骤(b-1)第二转发设备基于第一任播标签以及第二任播标签确定第一转发设备以及第三转发设备均属于第一站点。Step (b-1) The second forwarding device determines that the first forwarding device and the third forwarding device both belong to the first site based on the first anycast label and the second anycast label.
步骤(b-2)第二转发设备基于第一转发设备的BFR-ID以及第三转发设备的BFR-ID,获得F-BM。Step (b-2) The second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device.
步骤(b-3)第二转发设备基于第三转发设备的BFR prefix,确定第二转发设备上到达第三转发设备的第二出接口。Step (b-3) The second forwarding device determines the second outbound interface on the second forwarding device that reaches the third forwarding device based on the BFR prefix of the third forwarding device.
在一种可能的实现中,第二转发设备与第三转发设备通信,第二转发设备将接收到第二参数集的接口作为第二出接口。在另一种可能的实现中,第二转发设备基于第三转发设备的BFR prefix,在路由表中查找本设备与第三转发设备的BFR prefix通信的接口,作为第二出接口。In a possible implementation, the second forwarding device communicates with the third forwarding device, and the second forwarding device uses the interface that receives the second parameter set as the second outgoing interface. In another possible implementation, based on the BFR prefix of the third forwarding device, the second forwarding device searches the routing table for the interface through which the device communicates with the BFR prefix of the third forwarding device as the second outgoing interface.
步骤(b-4)第二转发设备基于F-BM、第二任播标签、第三转发设备的BFR prefix以及第二出接口,获得第二对应关系,第二对应关系包括F-BM、第二任播标签、第三转发设备的BFR prefix以及第二出接口。Step (b-4) The second forwarding device obtains a second correspondence based on the F-BM, the second anycast label, the BFR prefix of the third forwarding device, and the second outbound interface. The second correspondence includes the F-BM, the The second anycast label, the BFR prefix of the third forwarding device and the second outgoing interface.
从第一对应关系和第二对应关系包含的参数可见,由于第一对应关系中的F-BM体现了第一转发设备的BFR-ID以及第三转发设备的BFR-ID,而第二对应关系中的F-BM也体现了第一转发设备的BFR-ID以及第三转发设备的BFR-ID,因此如果数据报文中的比特串包含第一转发设备或者第三转发设备中任一个转发设备的BFR-ID时,可以选择向第一对应关系或者第二对应关系其中任一项中的下一跳转发报文,即使第一对应关系或者第二对应关系其中一个包含的下一跳出现故障,也能通过向另一个包含的下一跳转发报文,而无需收敛,从而避免流量中断,实现故障场景的快速切换以及流量保护。From the parameters included in the first correspondence and the second correspondence, it can be seen that since the F-BM in the first correspondence reflects the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, and the second correspondence The F-BM in also reflects the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device. Therefore, if the bit string in the data message contains either the first forwarding device or the third forwarding device, When the BFR-ID is specified, you can choose to forward the packet to the next hop in either the first correspondence or the second correspondence, even if the next hop included in one of the first correspondence or the second correspondence appears. In the event of a fault, packets can also be forwarded to another included next hop without convergence, thereby avoiding traffic interruption and achieving fast switching and traffic protection in fault scenarios.
本实施例提供的方法,第二转发设备从第一站点内的第一转发设备和第三转发设备接收到两份参数集,根据两个参数集包含的任播标签均标识第一站点,将第一转发设备和第三转发设备的BFR-ID体现在同一条对应关系中,相当于通过任播标签,将同一个站点内的多个设备绑定在一起,那么当接收到数据报文时,如果到达第一站点内其中一个设备的链路故障,能够根据数据报文中的比特串匹配到对应关系中的F-BM,直接向对应关系中的下一跳转发数据报文,而无需通过路由收敛重新计算下一跳,因此提高了收敛切换的速度,实现流量保护。In the method provided by this embodiment, the second forwarding device receives two parameter sets from the first forwarding device and the third forwarding device in the first site, and according to the anycast labels contained in the two parameter sets both identify the first site, The BFR-IDs of the first forwarding device and the third forwarding device are reflected in the same corresponding relationship, which is equivalent to binding multiple devices in the same site together through anycast labels. Then when a data packet is received , if the link to one of the devices in the first site fails, the F-BM in the corresponding relationship can be matched according to the bit string in the data message, and the data message can be forwarded directly to the next hop in the corresponding relationship. There is no need to recalculate the next hop through route convergence, thus increasing the speed of convergence switching and achieving traffic protection.
以上图4实施例侧重描述控制面配置过程以及对应关系的获得过程,图4实施例获得的对应关系可以用于在接收到数据报文时转发数据报文,下面通过图5实施例对使用图4实施例中的对应关系进行报文转发流程举例说明。The above embodiment of Figure 4 focuses on describing the control plane configuration process and the process of obtaining the corresponding relationship. The corresponding relationship obtained by the embodiment of Figure 4 can be used to forward the data message when receiving the data message. The following uses the diagram of the embodiment of Figure 5 The corresponding relationship in Embodiment 4 is used to illustrate the message forwarding process.
图5是本申请实施例提供的一种处理组播数据报文的方法流程图,图5所示实施例包括以下步骤S211至步骤S213。FIG. 5 is a flow chart of a method for processing multicast data packets provided by an embodiment of the present application. The embodiment shown in FIG. 5 includes the following steps S211 to S213.
步骤S211、第二转发设备获得第一BIER报文。Step S211: The second forwarding device obtains the first BIER message.
第一BIER报文包括第一比特串、第二转发设备的标签以及组播数据报文。例如,第一BIER报文包括第一报文头,第一报文头包括第一比特串以及第二转发设备的标签。第一BIER报文的载荷包括组播数据报文。The first BIER message includes a first bit string, a label of the second forwarding device, and a multicast data message. For example, the first BIER message includes a first message header, and the first message header includes a first bit string and a label of the second forwarding device. The payload of the first BIER message includes a multicast data message.
第一比特串与第一转发设备的BFR-ID和第三转发设备的BFR-ID中的一个或多个对应。第一比特串的取值包括多种情况,下面结合三种情况举例说明。 The first bit string corresponds to one or more of the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device. The value of the first bit string includes multiple cases, and the following is an example combining three cases.
情况一、第一比特串与第一转发设备的BFR-ID对应,而不与第三转发设备的BFR-ID对应。例如,第一比特串中第一转发设备的BFR-ID对应的比特位置位,而第三转发设备的BFR-ID对应的比特位未置位。Case 1: The first bit string corresponds to the BFR-ID of the first forwarding device, but does not correspond to the BFR-ID of the third forwarding device. For example, the bit corresponding to the BFR-ID of the first forwarding device in the first bit string is set, but the bit corresponding to the BFR-ID of the third forwarding device is not set.
情况二、第一比特串与第三转发设备的BFR-ID对应,而不与第一转发设备的BFR-ID对应。例如,第一比特串中第三转发设备的BFR-ID对应的比特位置位,而第一转发设备的BFR-ID对应的比特位未置位。Case 2: The first bit string corresponds to the BFR-ID of the third forwarding device and does not correspond to the BFR-ID of the first forwarding device. For example, in the first bit string, the bit corresponding to the BFR-ID of the third forwarding device is set, but the bit corresponding to the BFR-ID of the first forwarding device is not set.
情况三、第一比特串与第三转发设备的BFR-ID以及第一转发设备的BFR-ID均对应。例如,第一比特串中第三转发设备的BFR-ID对应的比特位置位、第一转发设备的BFR-ID对应的比特位均置位。Case 3: The first bit string corresponds to both the BFR-ID of the third forwarding device and the BFR-ID of the first forwarding device. For example, in the first bit string, the bit bit corresponding to the BFR-ID of the third forwarding device is set, and the bit bit corresponding to the BFR-ID of the first forwarding device is both set.
以上描述的“比特串与BFR-ID对应”例如是比特串中BFR-ID对应的比特位置位。例如,第一转发设备的BFR-ID是k,第一比特串中从右往左数第k个比特位置位,即第一比特串与第一转发设备的BFR-ID对应。The "bit string corresponding to the BFR-ID" described above means, for example, that the bit position corresponding to the BFR-ID in the bit string is set. For example, the BFR-ID of the first forwarding device is k, and the k-th bit from right to left in the first bit string is set, that is, the first bit string corresponds to the BFR-ID of the first forwarding device.
第一比特串与第一转发设备的BFR-ID对应的含义是第一转发设备是组播数据报文的目的BFER。第一比特串与第三转发设备的BFR-ID对应的含义是第三转发设备是组播数据报文的目的BFER。第一比特串与第三转发设备的BFR-ID以及第一转发设备的BFR-ID均对应的含义是第一转发设备以及第三转发设备均是组播数据报文的目的BFER。The first bit string corresponding to the BFR-ID of the first forwarding device means that the first forwarding device is the destination BFER of the multicast data message. The first bit string corresponding to the BFR-ID of the third forwarding device means that the third forwarding device is the destination BFER of the multicast data message. The first bit string corresponds to the BFR-ID of the third forwarding device and the BFR-ID of the first forwarding device, which means that both the first forwarding device and the third forwarding device are destination BFERs of the multicast data packet.
第二转发设备的标签用于标识第二转发设备。例如,第二转发设备的标签是第二转发设备的BIER MPLS标签,第二转发设备的BIER MPLS标签用于确定第二转发设备的BIFT。例如,第一BIER报文的报文头包括BIFT-ID字段,BIFT-ID字段包括第二转发设备的标签。The label of the second forwarding device is used to identify the second forwarding device. For example, the label of the second forwarding device is the BIER MPLS label of the second forwarding device, and the BIER MPLS label of the second forwarding device is used to determine the BIFT of the second forwarding device. For example, the message header of the first BIER message includes a BIFT-ID field, and the BIFT-ID field includes a label of the second forwarding device.
又如,第二转发设备的标签是第二转发设备的End.BIER SID。第二转发设备的End.BIER SID用于指示第二转发设备基于BIER转发组播数据报文。例如,第一BIER报文的报文头包括目的地址字段,目的地址字段包括第二转发设备的End.BIER SID。For another example, the label of the second forwarding device is the End.BIER SID of the second forwarding device. The End.BIER SID of the second forwarding device is used to instruct the second forwarding device to forward the multicast data packet based on BIER. For example, the message header of the first BIER message includes a destination address field, and the destination address field includes the End.BIER SID of the second forwarding device.
第二转发设备如何获得第一BIER报文包括多种实现方式,下面结合两种场景举例说明。How the second forwarding device obtains the first BIER message includes multiple implementation methods. The following is an example of two scenarios.
场景A、第二转发设备是BFIR的场景。Scenario A, the second forwarding device is a BFIR scenario.
例如,第二转发设备接收来自组播源的组播数据报文。第二转发设备向组播数据报文封装第一报文头,获得第一BIER报文。例如,第二转发设备根据组播数据报文中的组播源组信息,查找组播转发表。第二转发设备根据查表的结果,确定组播数据报文要通过BIER类型的路径转发,则向组播数据报文封装第一报文头。For example, the second forwarding device receives the multicast data packet from the multicast source. The second forwarding device encapsulates the first message header into the multicast data message and obtains the first BIER message. For example, the second forwarding device searches the multicast forwarding table according to the multicast source group information in the multicast data packet. The second forwarding device determines that the multicast data packet is to be forwarded through the BIER type path based on the table lookup result, and then encapsulates the first packet header into the multicast data packet.
场景B、第二转发设备是transit BFR的场景。Scenario B: The second forwarding device is transit BFR.
例如,第二转发设备接收来自上一跳BFR的第三BIER报文,第三BIER报文包括第三比特串以及组播数据报文。第二转发设备基于第三BIER报文获得第一BIER报文。第一比特串是基于第三比特串以及第二转发设备上BIFT中的F-BM获得的。第一BIER报文与第三BIER报文具有相同的载荷。For example, the second forwarding device receives the third BIER message from the previous hop BFR, and the third BIER message includes the third bit string and the multicast data message. The second forwarding device obtains the first BIER message based on the third BIER message. The first bit string is obtained based on the third bit string and the F-BM in BIFT on the second forwarding device. The first BIER message and the third BIER message have the same payload.
步骤S212、第二转发设备基于第一BIER报文以及第一对应关系获得第二BIER报文。Step S212: The second forwarding device obtains the second BIER message based on the first BIER message and the first corresponding relationship.
第二BIER报文包括第二比特串、第一任播标签以及组播数据报文。例如,第二BIER报文的报文头包括第二比特串以及第一任播标签,第二BIER报文的载荷包括组播数据报文。The second BIER message includes a second bit string, a first anycast label and a multicast data message. For example, the message header of the second BIER message includes the second bit string and the first anycast label, and the payload of the second BIER message includes the multicast data message.
第二比特串是基于第一比特串与第一对应关系中的F-BM获得的。例如,第二比特串是基于第一比特串与F-BM进行与操作获得的。例如,第一比特串是1100,F-BM是0110,第二比特串是110 0&0110=0100,&表示与操作。在一些实施例中,第二转发设备将第一BIER报文中的比特串从第一比特串更新为第二比特串,使得第二BIER报文包括第二比特串。 The second bit string is obtained based on the F-BM in the first correspondence relationship between the first bit string and the first bit string. For example, the second bit string is obtained by performing an AND operation on the first bit string and F-BM. For example, the first bit string is 1100, F-BM is 0110, the second bit string is 110 0&0110=0100, & represents the AND operation. In some embodiments, the second forwarding device updates the bit string in the first BIER message from the first bit string to the second bit string, so that the second BIER message includes the second bit string.
如上述实施例描述,第一任播标签用于标识第一站点。由于第二BIER报文包括第一任播标签,使得第二BIER报文能够被转发至第一站点内任意一台设备。As described in the above embodiment, the first anycast label is used to identify the first site. Since the second BIER message includes the first anycast label, the second BIER message can be forwarded to any device in the first site.
第一任播标签的携带位置包括多种情况。例如,第一任播标签为BIER MPLS标签,第二BIER报文的报文头包括BIFT-ID字段,BIFT-ID字段包括第一任播标签。又如,第一任播标签为End.BIER SID,第二BIER报文的报文头包括目的地址字段,目的地址字段包括第一任播标签。The carrying position of the first anycast tag includes various situations. For example, the first anycast label is a BIER MPLS label, the header of the second BIER packet includes a BIFT-ID field, and the BIFT-ID field includes the first anycast label. For another example, the first anycast label is End.BIER SID, the packet header of the second BIER message includes the destination address field, and the destination address field includes the first anycast label.
第一任播标签例如通过查找第一对应关系获得。例如,第二转发设备从第一BIER报文获得第一比特串,第二转发设备根据第一比特串,查找第一对应关系,获得第一比特串对应的第一任播标签。The first anycast tag is obtained, for example, by searching for the first correspondence. For example, the second forwarding device obtains the first bit string from the first BIER message, searches for the first correspondence based on the first bit string, and obtains the first anycast label corresponding to the first bit string.
在一种可能的实现中,第一对应关系是第二转发设备的BIFT中的一条表项,第二转发设备在查找BIFT的过程中,获得第一任播标签。例如,第二转发设备使用第一比特串与第二转发设备的BIFT中的每条F-BM进行匹配。第二转发设备根据第一比特串与BIFT中第一对应关系中的F-BM匹配,确定要向第一对应关系中的下一跳转发报文,因此基于第一对应关系中的F-BM以及第一任播标签,执行获得以及发送第二BIER报文的步骤。如何判断第一比特串是否与F-BM匹配包括多种方式,举例来说,第二转发设备使用第一比特串与F-BM进行与操作,获得第二比特串。第二转发设备基于第二比特串非全0,确定第一比特串与BIFT中第一对应关系中的F-BM匹配。In a possible implementation, the first corresponding relationship is an entry in the BIFT of the second forwarding device, and the second forwarding device obtains the first anycast label in the process of searching for the BIFT. For example, the second forwarding device uses the first bit string to match each F-BM in the BIFT of the second forwarding device. The second forwarding device determines to forward the message to the next hop in the first correspondence based on the match between the first bit string and the F-BM in the first correspondence in BIFT. Therefore, based on the F-BM in the first correspondence, the second forwarding device BM and the first anycast label, perform the steps of obtaining and sending the second BIER message. How to determine whether the first bit string matches the F-BM includes multiple methods. For example, the second forwarding device uses the first bit string to perform an AND operation with the F-BM to obtain the second bit string. Based on the fact that the second bit string is not all zeros, the second forwarding device determines that the first bit string matches the F-BM in the first correspondence relationship in the BIFT.
在一些实施例中,第二转发设备通过更新第一BIER报文的报文头中的字段,使得第二BIER报文包括第一任播标签,下面结合两种场景举例说明。In some embodiments, the second forwarding device updates fields in the header of the first BIER message so that the second BIER message includes the first anycast label. The following is an example of two scenarios.
场景一、在MPLS网络中配置BIER。Scenario 1. Configure BIER in the MPLS network.
场景一例如是BIER-MPLS场景。在场景一下,上述第一任播标签例如为第一转发设备的BIER MPLS标签,上述第一BIER报文的报文头中BIFT-ID字段包括第二转发设备的BIER MPLS标签。第二转发设备使用第一任播标签更新第一BIER报文的报文头中BIFT-ID字段,使得第二BIER报文的报文头中BIFT-ID字段包括第一转发设备的BIER MPLS标签,即第一任播标签。Scenario 1 is, for example, a BIER-MPLS scenario. In the first scenario, the first anycast label is, for example, the BIER MPLS label of the first forwarding device, and the BIFT-ID field in the header of the first BIER message includes the BIER MPLS label of the second forwarding device. The second forwarding device uses the first anycast label to update the BIFT-ID field in the header of the first BIER packet, so that the BIFT-ID field in the header of the second BIER packet includes the BIER MPLS label of the first forwarding device. , which is the first anycast tag.
场景二、在IPv6网络中配置BIER。Scenario 2: Configure BIER in the IPv6 network.
场景二包括而不限于BIERv6、BIERin6或者G-BIER场景其中任一项,具体细节请参考后文标题“BIER封装格式”后的描述。Scenario 2 includes but is not limited to any one of BIERv6, BIERin6 or G-BIER scenarios. For specific details, please refer to the description after the title "BIER Encapsulation Format" below.
在场景二下,上述第一任播标签例如为第一转发设备的End.BIER SID,上述第一BIER报文的报文头中目的地址字段包括第二转发设备的End.BIER SID。第二转发设备使用第一任播标签更新第一BIER报文的报文头中目的地址字段,使得第二BIER报文的报文头中目的地址字段包括第一转发设备的End.BIER SID,即第一任播标签。In scenario 2, the first anycast label is, for example, the End.BIER SID of the first forwarding device, and the destination address field in the header of the first BIER message includes the End.BIER SID of the second forwarding device. The second forwarding device uses the first anycast label to update the destination address field in the header of the first BIER message, so that the destination address field in the header of the second BIER message includes the End.BIER SID of the first forwarding device, That is the first anycast tag.
步骤S213、第二转发设备发送第二BIER报文。Step S213: The second forwarding device sends the second BIER message.
第二转发设备发送第二BIER报文的目的方包括多种情况,下面通过两种情况举例说明。The destination of the second BIER message sent by the second forwarding device includes many situations. Two situations are given as examples below.
情况一、第二转发设备向第一对应关系中的下一跳发送第二BIER报文。Scenario 1: The second forwarding device sends the second BIER message to the next hop in the first corresponding relationship.
例如,第一对应关系中的下一跳为第一转发设备的BFR prefix,第二转发设备将第一转发设备的BFR prefix作为下一跳的IP地址,向第一转发设备的BFR prefix发送第二BIER报文。又如,第一对应关系中的下一跳包括第二转发设备上到达第一转发设备的第一出接口,第二转发设备通过第一出接口发送第二BIER报文。又如,第一对应关系中的下一跳包括第一转发设备的BFR prefix以及第二转发设备上到达第一转发设备的第一出接口,第二转发设备通过第一出接口,向第一转发设备的BFR prefix发送第二BIER报文。For example, the next hop in the first correspondence is the BFR prefix of the first forwarding device, and the second forwarding device uses the BFR prefix of the first forwarding device as the IP address of the next hop, and sends the BFR prefix of the first forwarding device. 2. BIER message. For another example, the next hop in the first correspondence relationship includes the first outbound interface on the second forwarding device that reaches the first forwarding device, and the second forwarding device sends the second BIER message through the first outbound interface. For another example, the next hop in the first correspondence relationship includes the BFR prefix of the first forwarding device and the first outbound interface of the second forwarding device to the first forwarding device. The second forwarding device sends the packet to the first forwarding device through the first outbound interface. The BFR prefix of the forwarding device sends the second BIER message.
情况二、第二转发设备向第二对应关系中的下一跳发送第二BIER报文。例如,第二对应关系中的 下一跳为第三转发设备的BFR prefix,第二转发设备将第三转发设备的BFR prefix作为下一跳的IP地址,向第三转发设备的BFR prefix发送第二BIER报文。又如,第二对应关系中的下一跳包括第二转发设备上到达第三转发设备的第二出接口,第二转发设备通过第二出接口发送第二BIER报文。又如,第二对应关系中的下一跳包括第三转发设备的BFR prefix以及第二转发设备上到达第三转发设备的第二出接口,第二转发设备通过第二出接口,向第三转发设备的BFR prefix发送第二BIER报文。Case 2: The second forwarding device sends the second BIER message to the next hop in the second corresponding relationship. For example, in the second correspondence The next hop is the BFR prefix of the third forwarding device. The second forwarding device uses the BFR prefix of the third forwarding device as the IP address of the next hop and sends the second BIER message to the BFR prefix of the third forwarding device. For another example, the next hop in the second correspondence relationship includes a second outbound interface on the second forwarding device that reaches the third forwarding device, and the second forwarding device sends the second BIER message through the second outbound interface. For another example, the next hop in the second corresponding relationship includes the BFR prefix of the third forwarding device and the second outbound interface on the second forwarding device to reach the third forwarding device. The second forwarding device passes the second outbound interface to the third forwarding device. The BFR prefix of the forwarding device sends the second BIER message.
第二转发设备选择使用第一对应关系还是使用第二对应关系发送报文包括多种实现方式,下面结合两种场景举例说明。The second forwarding device chooses to use the first correspondence relationship or the second correspondence relationship to send the message, including multiple implementation methods. The following is an example of two scenarios.
场景一、发生故障的场景Scenario 1. Failure scenario
本实施例适用的故障场景包括而不限于链路故障或者节点故障。链路故障例如是第二转发设备与对应关系中的下一跳之间的链路发生故障。节点故障例如是第二转发设备获得的对应关系中的下一跳发生设备故障。The applicable fault scenarios of this embodiment include but are not limited to link failure or node failure. A link failure is, for example, a link failure between the second forwarding device and the next hop in the corresponding relationship. A node failure is, for example, a device failure at the next hop in the corresponding relationship obtained by the second forwarding device.
当第二转发设备检测到第一对应关系以及第二对应关系其中任一个对应关系中的下一跳发生节点故障或者链路故障时,由于两个对应关系中的F-BM取值相同,或者说这两个对应关系都与数据报文中的比特串匹配,第二转发设备可以向另一条对应关系中的下一跳发送报文,从而避免由于故障导致流量中断。When the second forwarding device detects that a node failure or a link failure occurs in the next hop in either of the first correspondence relationship and the second correspondence relationship, because the F-BM values in the two correspondence relationships are the same, or If both correspondences match the bit string in the data message, the second forwarding device can send the message to the next hop in the other correspondence, thus avoiding traffic interruption due to a fault.
例如,若第一对应关系中与第一转发设备的BFR prefix匹配的下一跳处于故障状态,第二转发设备向第二对应关系中的与第三转发设备的BFR prefix匹配的下一跳发送第二BIER报文。第一转发设备的BFR prefix匹配的下一跳处于故障状态包括而不限于第二转发设备与第一转发设备之间的链路故障或者第一转发设备发生故障。For example, if the next hop in the first correspondence that matches the BFR prefix of the first forwarding device is in a fault state, the second forwarding device sends a message to the next hop in the second correspondence that matches the BFR prefix of the third forwarding device. The second BIER message. The failure state of the next hop matching the BFR prefix of the first forwarding device includes but is not limited to a link failure between the second forwarding device and the first forwarding device or a failure of the first forwarding device.
又如,若第二对应关系中与第三转发设备的BFR prefix匹配的下一跳处于故障状态,第二转发设备向第一对应关系中的与第一转发设备的BFR prefix匹配的下一跳发送第二BIER报文。第三转发设备的BFR prefix匹配的下一跳处于故障状态包括而不限于第二转发设备与第三转发设备之间的链路故障或者第三转发设备发生故障。For another example, if the next hop in the second correspondence that matches the BFR prefix of the third forwarding device is in a fault state, the second forwarding device sends a request to the next hop in the first correspondence that matches the BFR prefix of the first forwarding device. Send the second BIER message. The failure state of the next hop matching the BFR prefix of the third forwarding device includes but is not limited to a link failure between the second forwarding device and the third forwarding device or a failure of the third forwarding device.
场景二、未发生故障的场景Scenario 2. Scenario where no failure occurs
在未发生故障的场景下,第二转发设备选择下一跳的方式包括而不限于下述方式一至方式三。In a scenario where no failure occurs, the method by which the second forwarding device selects the next hop includes, but is not limited to, the following methods one to three.
方式一、任意选择Method 1. Choose at will
例如,若与第一转发设备的BFR prefix匹配的下一跳和与第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,第二转发设备向与第一转发设备的BFR prefix匹配的下一跳和与第三转发设备的BFR prefix匹配的下一跳其中的任意一者发送第二BIER报文。例如,第二转发设备从第一转发设备的BFR prefix匹配的下一跳以及与第三转发设备的BFR prefix匹配的下一跳中,随机选择一个作为第二BIER报文的下一跳,向随机选择的下一跳发送第二BIER报文。For example, if the next hop that matches the BFR prefix of the first forwarding device and the next hop that matches the BFR prefix of the third forwarding device are not in a faulty state, the second forwarding device sends a second BIER message to any one of the next hop that matches the BFR prefix of the first forwarding device and the next hop that matches the BFR prefix of the third forwarding device. For example, the second forwarding device randomly selects one of the next hops that match the BFR prefix of the first forwarding device and the next hop that matches the BFR prefix of the third forwarding device as the next hop of the second BIER message, and sends the second BIER message to the randomly selected next hop.
可选地,在第二转发设备与第一转发设备和第三转发设备通信的场景下,第二转发设备采用方式一转发BIER报文。通过上述方式一,支持负载分担场景,有助于组播数据流均匀地分担在第二转发设备与第一转发设备间的链路以及第二转发设备与第三转发设备间的链路上,避免单条链路负载过重。Optionally, in a scenario where the second forwarding device communicates with the first forwarding device and the third forwarding device, the second forwarding device forwards the BIER message using method one. Through the above method 1, the load sharing scenario is supported, which helps the multicast data flow to be evenly shared on the link between the second forwarding device and the first forwarding device and the link between the second forwarding device and the third forwarding device. Avoid overloading a single link.
方式二、根据链路开销选择Method 2: Select based on link cost
链路开销用于表示网络路径的距离,比如网络路径所经过的跳数,链路开销可以通过cost或者metric表示。若与第一转发设备的BFR prefix匹配的下一跳和与第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,第二转发设备可以将与第一转发设备的BFR prefix匹配的下一跳和与第三转发设备的 BFR prefix匹配的下一跳其中链路开销最小的一者作为更优的下一跳,向链路开销最小的下一跳发送第二BIER报文。Link cost is used to represent the distance of the network path, such as the number of hops that the network path passes through. The link cost can be represented by cost or metric. If the next hop that matches the BFR prefix of the first forwarding device and the next hop that matches the BFR prefix of the third forwarding device are not in a fault state, the second forwarding device can transfer the next hop that matches the BFR prefix of the first forwarding device. Next hop and to third forwarding device Among the next hops matched by the BFR prefix, the one with the smallest link cost is used as the better next hop, and the second BIER message is sent to the next hop with the smallest link cost.
例如,如果第二转发设备与第一转发设备之间的链路开销小于第二转发设备与第三转发设备之间的链路开销,第二转发设备向第一转发设备发送第二BIER报文。又如,如果第二转发设备与第三转发设备之间的链路开销小于第二转发设备与第一转发设备之间的链路开销,第二转发设备向第三转发设备发送第二BIER报文。For example, if the link cost between the second forwarding device and the first forwarding device is less than the link cost between the second forwarding device and the third forwarding device, the second forwarding device sends a second BIER message to the first forwarding device. . For another example, if the link cost between the second forwarding device and the third forwarding device is less than the link cost between the second forwarding device and the first forwarding device, the second forwarding device sends a second BIER message to the third forwarding device. arts.
方式三、根据链路质量选择Method 3: Select based on link quality
链路质量包括而不限于链路的时延、抖动、链路带宽或者丢包率等。链路时延越小,表示链路质量越高。链路带宽越大,表示链路质量越高。链路丢包率越小,表示链路质量越高。Link quality includes but is not limited to link delay, jitter, link bandwidth, or packet loss rate. The smaller the link delay, the higher the link quality. The larger the link bandwidth, the higher the link quality. The smaller the link packet loss rate, the higher the link quality.
在一些实施例中,若与第一转发设备的BFR prefix匹配的下一跳和与第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,第二转发设备向与第一转发设备的BFR prefix匹配的下一跳和与第三转发设备的BFR prefix匹配的下一跳其中链路网络质量最高的一者发送第二BIER报文。In some embodiments, if the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device are not in a faulty state, the second forwarding device sends a second BIER message to the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device, whichever has the highest link network quality.
例如,如果第二转发设备与第一转发设备之间的链路质量高于第二转发设备与第三转发设备之间的链路质量,第二转发设备向第一转发设备发送第二BIER报文。又如,如果第二转发设备与第三转发设备之间的链路质量高于第二转发设备与第一转发设备之间的链路质量,第二转发设备向第三转发设备发送第二BIER报文。For example, if the link quality between the second forwarding device and the first forwarding device is higher than the link quality between the second forwarding device and the third forwarding device, the second forwarding device sends a second BIER message to the first forwarding device. For another example, if the link quality between the second forwarding device and the third forwarding device is higher than the link quality between the second forwarding device and the first forwarding device, the second forwarding device sends a second BIER message to the third forwarding device.
以上图4实施例和图5实施例侧重描述任播标签相关的控制面配置以及数据面转发流程,本申请的一些实施例还提供了bypass标签相关的控制面配置以及数据面转发流程,下面通过图6实施例和图7实施例举例说明。The above embodiments in Figure 4 and Figure 5 focus on describing the control plane configuration and data plane forwarding process related to the anycast label. Some embodiments of the present application also provide the control plane configuration and data plane forwarding process related to the bypass label. Hereinafter, The embodiment in Figure 6 and the embodiment in Figure 7 are illustrated.
图6是本申请实施例提供的一种对应关系的获取方法的流程图。图6所示方法包括以下步骤S221至步骤S229。Figure 6 is a flow chart of a method for obtaining a correspondence relationship provided by an embodiment of the present application. The method shown in Figure 6 includes the following steps S221 to S229.
步骤S221,第一站点内第三转发设备获得第三参数集。Step S221: The third forwarding device in the first site obtains the third parameter set.
第三参数集包括第一bypass标签、第三转发设备的BFR-ID以及第三转发设备的BFR prefix。第一bypass标签用于标识第三转发设备。在一些实施例中,第一bypass标签为第三转发设备的End.BIER SID。在另一些实施例中,第一bypass标签为第三转发设备的MPLS标签。第一bypass标签与上述第二任播标签以及上述第一任播标签的取值不同。The third parameter set includes the first bypass label, the BFR-ID of the third forwarding device, and the BFR prefix of the third forwarding device. The first bypass label is used to identify the third forwarding device. In some embodiments, the first bypass tag is the End.BIER SID of the third forwarding device. In other embodiments, the first bypass label is an MPLS label of the third forwarding device. The value of the first bypass tag is different from the above-mentioned second anycast tag and the above-mentioned first anycast tag.
步骤S222,第一站点内第一转发设备获得第四参数集。Step S222: The first forwarding device in the first site obtains the fourth parameter set.
第四参数集包括第二bypass标签、第一转发设备的BFR-ID以及第一转发设备的BFR prefix,第二bypass标签用于标识第一转发设备。在一些实施例中,第二bypass标签为第一转发设备的End.BIER SID。在另一些实施例中,第二bypass标签为第一转发设备的MPLS标签。The fourth parameter set includes a second bypass label, a BFR-ID of the first forwarding device, and a BFR prefix of the first forwarding device. The second bypass label is used to identify the first forwarding device. In some embodiments, the second bypass label is the End.BIER SID of the first forwarding device. In other embodiments, the second bypass label is an MPLS label of the first forwarding device.
步骤S223,第三转发设备向第一站点内第一转发设备发送第三参数集。Step S223: The third forwarding device sends the third parameter set to the first forwarding device in the first site.
步骤S224,第一转发设备向第一站点内第三转发设备发送第四参数集。Step S224: The first forwarding device sends the fourth parameter set to the third forwarding device in the first site.
步骤S225,第一转发设备接收来自第一站点内第三转发设备的第三参数集。Step S225: The first forwarding device receives the third parameter set from the third forwarding device in the first site.
步骤S226,第三转发设备接收来自第一转发设备的第四参数集。Step S226: The third forwarding device receives the fourth parameter set from the first forwarding device.
步骤S227,第一转发设备基于第三参数集获得第三对应关系。Step S227: The first forwarding device obtains the third correspondence based on the third parameter set.
第三对应关系包括第一bypass标签、与第三转发设备的BFR-ID匹配的F-BM以及与第三转发设备的BFR prefix匹配的下一跳。The third corresponding relationship includes the first bypass label, the F-BM matching the BFR-ID of the third forwarding device, and the next hop matching the BFR prefix of the third forwarding device.
步骤S228、第三转发设备基于第四参数集获得第四对应关系。 Step S228: The third forwarding device obtains the fourth correspondence based on the fourth parameter set.
第四对应关系包括第二bypass标签、与第一转发设备的BFR-ID匹配的F-BM以及与第一转发设备的BFR prefix匹配的下一跳。The fourth corresponding relationship includes the second bypass label, the F-BM matching the BFR-ID of the first forwarding device, and the next hop matching the BFR prefix of the first forwarding device.
本实施例提供的方法,转发设备通过建立同站点内对端设备的BFR-ID匹配的F-BM、同站点内对端设备的bypass标签与下一跳之间的对应关系,相当于打通了站点内部的路由,使得转发设备在接收到包含对端设备的BFR-ID匹配的比特串的数据报文时,能够基于比特串与F-BM匹配,将同站点内对端设备作为下一跳,使用同站点内对端设备的bypass标签作为下一跳的标签转发报文,而不会由于下一跳的标签是本设备的标签而终止报文转发。In the method provided in this embodiment, the forwarding device establishes a corresponding relationship between the F-BM that matches the BFR-ID of the peer device in the same site, the bypass label of the peer device in the same site, and the next hop, which is equivalent to opening up the relationship. The routing within the site enables the forwarding device to match the F-BM based on the bit string when receiving a data packet containing a bit string matching the BFR-ID of the peer device, and use the peer device in the same site as the next hop. , use the bypass label of the peer device in the same site as the label of the next hop to forward the packet, and the packet forwarding will not be terminated because the label of the next hop is the label of the local device.
在一个示例性场景中,当发生链路故障,数据报文到达一个站点内的一个转发设备时,转发设备根据数据报文中携带的比特串,发现数据报文的目的BFER不是本设备,则可以使用上述图6所示实施例获得的对应关系,将数据报文转发给同站点内另一个转发设备。In an exemplary scenario, when a link failure occurs and the data packet reaches a forwarding device in a site, the forwarding device finds out that the destination BFER of the data packet is not the device based on the bit string carried in the data packet. The data message can be forwarded to another forwarding device in the same site using the corresponding relationship obtained in the embodiment shown in Figure 6.
例如请参考图7,图7是本申请实施例提供的一种数据报文处理方法的流程图,图7所示方法是对第一转发设备向第三转发设备转发报文的示例,图7所示实施例包括以下步骤S231至步骤S233。For example, please refer to Figure 7. Figure 7 is a flow chart of a data packet processing method provided by an embodiment of the present application. The method shown in Figure 7 is an example of forwarding a packet from a first forwarding device to a third forwarding device. Figure 7 The illustrated embodiment includes the following steps S231 to S233.
步骤S231,第一站点内第一转发设备接收第一BIER报文。Step S231: The first forwarding device in the first site receives the first BIER message.
第一BIER报文包括第三转发设备的BFR-ID对应的第一比特串、第一任播标签以及组播数据报文。The first BIER message includes the first bit string corresponding to the BFR-ID of the third forwarding device, the first anycast label and the multicast data message.
步骤S232,第一站点内第一转发设备基于第一BIER报文以及第三对应关系获得第二BIER报文。Step S232: The first forwarding device in the first site obtains the second BIER message based on the first BIER message and the third corresponding relationship.
第二BIER报文包括第二比特串、第一bypass标签以及组播数据报文。The second BIER message includes a second bit string, a first bypass label and a multicast data message.
第二比特串是基于第一比特串与第三对应关系中的F-BM获得的比特串。例如,第一转发设备对第一比特串与F-BM进行与操作,与操作获得的结果即为第二比特串。The second bit string is a bit string obtained based on the F-BM in the first bit string and the third correspondence relationship. For example, the first forwarding device performs an AND operation on the first bit string and the F-BM, and the result obtained by the AND operation is the second bit string.
例如,第一转发设备根据第一比特串查找第三对应关系,使用第一比特串与第三对应关系中的F-BM进行与操作。第一转发设备根据第一比特串与第三转发设备的BFR-ID匹配的F-BM与操作的结果非全0,确定要向第三转发设备的BFR prefix匹配的下一跳转发报文,因此基于第一BIER报文以及第一bypass标签,获得第二BIER报文。For example, the first forwarding device searches for the third correspondence based on the first bit string, and performs an AND operation using the F-BM in the first bit string and the third correspondence. The first forwarding device determines to forward the packet to the next hop that matches the BFR prefix of the third forwarding device based on the F-BM matching the first bit string and the BFR-ID of the third forwarding device and the operation result is not all 0. , so based on the first BIER message and the first bypass label, the second BIER message is obtained.
步骤S233,第一站点内第一转发设备向第一站点内第三转发设备发送第二BIER报文。Step S233: The first forwarding device in the first site sends the second BIER message to the third forwarding device in the first site.
本实施例提供的方法,当转发设备接收到包含同站点内另一个设备的对应的比特串的数据报文时,通过将标识同站点内另一个设备的bypass标签封装至数据报文中,从而在复制数据报文时,不会由于数据报文中的标签是标识自己的标签而终止报文转发,实现站点内不同设备之间互相传递数据报文,避免流量中断。In the method provided by this embodiment, when the forwarding device receives a data message containing the corresponding bit string of another device in the same site, it encapsulates the bypass label identifying the other device in the same site into the data message, thereby When copying data packets, packet forwarding will not be terminated because the label in the data packet is a label that identifies itself, allowing different devices in the site to transfer data packets to each other to avoid traffic interruption.
例如请参考图8,图8是本申请实施例提供的一种数据报文处理方法的流程图,图8所示方法是对第三转发设备向第一转发设备转发报文的示例,图8所示实施例包括以下步骤S241至步骤S243。For example, please refer to Figure 8. Figure 8 is a flow chart of a data packet processing method provided by an embodiment of the present application. The method shown in Figure 8 is an example of forwarding a packet from a third forwarding device to a first forwarding device. Figure 8 The illustrated embodiment includes the following steps S241 to S243.
步骤S241,第一站点内第三转发设备接收第一BIER报文。Step S241: The third forwarding device in the first site receives the first BIER message.
第一BIER报文包括第一转发设备的BFR-ID对应的第一比特串、第一任播标签以及组播数据报文。The first BIER message includes the first bit string corresponding to the BFR-ID of the first forwarding device, the first anycast label and the multicast data message.
步骤S242,第三转发设备基于第一BIER报文以及第四对应关系获得第二BIER报文。Step S242: The third forwarding device obtains the second BIER message based on the first BIER message and the fourth corresponding relationship.
第二BIER报文包括第二比特串、第二bypass标签以及组播数据报文。The second BIER message includes a second bit string, a second bypass label and a multicast data message.
步骤S243,第三转发设备向第一站点内第一转发设备发送第二BIER报文。Step S243: The third forwarding device sends the second BIER message to the first forwarding device in the first site.
本实施例提供的方法,当转发设备接收到包含同站点内另一个设备的对应的比特串的数据报文时,通过将标识同站点内另一个设备的bypass标签封装至数据报文中,从而在复制数据报文时,不会由于数据报文中的标签是标识自己的标签而终止报文转发,实现站点内不同设备之间互相传递数据报文,避免流量中断。 In the method provided by this embodiment, when the forwarding device receives a data message containing the corresponding bit string of another device in the same site, it encapsulates the bypass label identifying the other device in the same site into the data message, thereby When copying data packets, packet forwarding will not be terminated because the label in the data packet is a label that identifies itself, allowing different devices in the site to transfer data packets to each other to avoid traffic interruption.
上述图4所示实施例至图8实施例中任意实施例可以独立实施也可以结合实施,下面对BIER-MPLS场景下图4所示实施例至图8实施例结合实施的流程举例说明。下述实施例中anycast BIER-MPLS label是图4所示实施例至图8实施例中任播标签的具体示例,下述实施例中bypass BIER-MPLS label是图4所示实施例至图8实施例中bypass标签的具体示例。下述实施例中站点A的BFR-A是对上述实施例中第二站点内第二转发设备的具体示例,下述实施例中站点B的BFR-B1和BFR-B2是对上述实施例中第一站点内第一转发设备和第三转发设备的具体示例,下述实施例包括以下步骤0至步骤5。Any of the above-mentioned embodiments shown in FIG. 4 to the embodiment in FIG. 8 can be implemented independently or in combination. The following is an example of the process of the combined implementation of the embodiment shown in FIG. 4 to the embodiment in FIG. 8 in the BIER-MPLS scenario. In the following embodiments, anycast BIER-MPLS label is a specific example of anycast label in the embodiment shown in Figure 4 to Figure 8. In the following embodiments, bypass BIER-MPLS label is a specific example of anycast label in the embodiment shown in Figure 4 to Figure 8. Specific examples of bypass tags in the embodiment. In the following embodiment, BFR-A of site A is a specific example of the second forwarding device in the second site in the above embodiment. In the following embodiment, BFR-B1 and BFR-B2 of site B are a specific example of the second forwarding device in the second site in the above embodiment. As a specific example of the first forwarding device and the third forwarding device in the first site, the following embodiment includes the following steps 0 to 5.
步骤0:规划站点。Step 0: Plan your site.
分别部署组播源站点、中间站点以及组播接收者站点。使能各设备的BIER能力,并配置相应的BIER子域及BFR-ID。Deploy multicast source sites, intermediate sites, and multicast receiver sites respectively. Enable the BIER capability of each device and configure the corresponding BIER subdomain and BFR-ID.
步骤1:部署IGP或BGPStep 1: Deploy IGP or BGP
例如,在每台BFR上配置IGP、BGP或者其他路由协议,用于洪泛BFR prefix。洪泛BFR prefix的报文携带BIER相关的参数集,携带的参数集包括:BFR-ID、SI、BSL以及BIER-MPLS label。For example, configure IGP, BGP or other routing protocols on each BFR to flood the BFR prefix. Packets that flood BFR prefix carry BIER-related parameter sets. The parameter sets they carry include: BFR-ID, SI, BSL, and BIER-MPLS label.
步骤2:洪泛BIER-MPLS labelStep 2: Flooding BIER-MPLS label
站点内部每台BFR配置不同的BFR-ID。Each BFR in the site is configured with a different BFR-ID.
本实施例中,站点内部的设备上使用相同的anycast BIER-MPLS label,原有的BIER-MPLS label被称为bypass BIER-MPLS label。anycast BIER-MPLS label和BFR prefix通过同一个报文进行洪泛。使用任播标签生成站点间BIER转发表,使用bypass标签生成站点内BIER转发表。In this embodiment, the same anycast BIER-MPLS label is used on the devices within the site, and the original BIER-MPLS label is called the bypass BIER-MPLS label. The anycast BIER-MPLS label and the BFR prefix are flooded through the same message. The anycast label is used to generate the inter-site BIER forwarding table, and the bypass label is used to generate the intra-site BIER forwarding table.
在标签空间中划分一块全局标签块,用于为各个站点分配anycast label。anycast BIER-MPLS label与bypass BIER-MPLS label通过路由洪泛的BIER信息子TLV里的sub-sub-TLV携带。A global label block is allocated in the label space to assign anycast labels to each site. The anycast BIER-MPLS label and bypass BIER-MPLS label are carried by the sub-sub-TLV in the BIER information sub-TLV of route flooding.
图9示出了BIER信息子TLV。BIER-MPLS label被填充在BIER信息子TLV里的sub-sub-TLV字段。Figure 9 shows the BIER information sub-TLV. The BIER-MPLS label is filled in the sub-sub-TLV field in the BIER information sub-TLV.
图10示出了BIER-MPLS封装的sub-sub-TLV,其中携带了MAX-SI、BSL及BIER-MPLS label。Figure 10 shows the sub-sub-TLV encapsulated by BIER-MPLS, which carries MAX-SI, BSL and BIER-MPLS label.
本实施例提供的anycast label与bypass label中,bypass label仍然封装在原先的sub-sub-TLV中。而anycast label按照图11新增的sub-sub-TLV所示进行封装。新增的anycast label sub-sub-TLV被封装在原先的bypass label sub-sub-TLV后面。Among the anycast label and bypass label provided in this embodiment, the bypass label is still encapsulated in the original sub-sub-TLV. The anycast label is encapsulated as shown in the new sub-sub-TLV in Figure 11. The new anycast label sub-sub-TLV is encapsulated behind the original bypass label sub-sub-TLV.
步骤3:建立BIER转发表Step 3: Create BIER forwarding table
设备收到其它BFR的BIER信息子TLV后,会解析sub-sub-TLV的bypass label和anycast label。本地维护BIER子域中[BFR-ID,anycast label,bypass label]的对应关系。After the device receives the BIER information sub-TLV of other BFRs, it will parse the bypass label and anycast label of the sub-sub-TLV. Locally maintain the corresponding relationship of [BFR-ID, anycast label, bypass label] in the BIER subdomain.
步骤3-1:站点间转发表建立Step 3-1: Establishment of inter-site forwarding table
如图12所示,当站点A的BFR-A接收到站点B的BFR-B1的BIER信息子TLV和BFR-B2的BIER信息子TLV时,BFR-A解析BFR-B1的BIER信息子TLV和BFR-B2的BIER信息子TLV,获得两个anycast label。BFR-A确定两个anycast label(label_B)与BFR-A本地的anycast label(label_A)不一致,但两个anycast label彼此一致,则BFR-A将BFR-B1与BFR-B2的BFR-ID合并到一个F-BM条目中。As shown in Figure 12, when BFR-A of site A receives the BIER information sub-TLV of BFR-B1 of site B and the BIER information sub-TLV of BFR-B2, BFR-A parses the BIER information sub-TLV of BFR-B1 and The BIER information sub-TLV of BFR-B2 obtains two anycast labels. BFR-A determines that the two anycast labels (label_B) are inconsistent with BFR-A's local anycast label (label_A), but the two anycast labels are consistent with each other, then BFR-A merges the BFR-IDs of BFR-B1 and BFR-B2 into in an F-BM entry.
如果BFR-A到BFR-B1的链路与BFR-A到BFR-B2的链路为等价链路,则BFR-A将到BFR-B1和到BFR-B2的出接口与下一跳都体现在该F-BM条目中。如果BFR-A到BFR-B1的链路与BFR-A到BFR-B2的链路为非等价链路,则将最优链路的出接口和下一跳体现在该F-BM条目中。其中,BFR-A将到BFR-B1的出接口以及到BFR-B2的出接口都体现在BIFT中仅为可选方式,在另一些实施例中,BFR-A不将到BFR-B1的出接口以及到BFR-B2的出接口体现在BIFT中。BFR-A确定出接口的方式例 如为,BFR-A通过学习单播路由,获得到BFR-B1的出接口以及到BFR-B2的出接口,或者从单播的转发表中,获得到BFR-B1的出接口以及到BFR-B2的出接口。If the link from BFR-A to BFR-B1 and the link from BFR-A to BFR-B2 are equal-cost links, BFR-A will connect the outbound interfaces to BFR-B1 and BFR-B2 with the next hop. Reflected in this F-BM entry. If the link from BFR-A to BFR-B1 and the link from BFR-A to BFR-B2 are non-equivalent links, the outbound interface and next hop of the optimal link are reflected in the F-BM entry. . Among them, the outbound interface from BFR-A to BFR-B1 and the outbound interface to BFR-B2 are reflected in BIFT only as an optional method. In other embodiments, BFR-A does not connect the outbound interface to BFR-B1. The interface and the outgoing interface to BFR-B2 are reflected in BIFT. Example of how BFR-A determines the outbound interface If so, BFR-A obtains the outbound interface to BFR-B1 and the outbound interface to BFR-B2 by learning the unicast route, or obtains the outbound interface to BFR-B1 and the outbound interface to BFR-B from the unicast forwarding table. The outbound interface of B2.
例如,当边缘的BFR-B1与BFR-B2配置了BFR-ID,而BIER子域中除了BFR-B1以及BFR-B2之外的其他BFR没有配置BFR-ID,则各设备生成的F-BM只有两位,分别为01和10。For example, when BFR-B1 and BFR-B2 at the edge are configured with BFR-ID, and other BFRs in the BIER subdomain except BFR-B1 and BFR-B2 are not configured with BFR-ID, the F-BM generated by each device will There are only two digits, 01 and 10 respectively.
在没有提供anycast label的情况下,BFR-A原先生成的BIFT如下表1所示。Without providing anycast label, the BIFT originally generated by BFR-A is shown in Table 1 below.
表1
Table 1
通过引入anycast label,将原有的BIFT表的F-BM进行了合并,生成BIFT如下所示。By introducing anycast label, the F-BM of the original BIFT table is merged, and the BIFT generated is as follows.
当BFR-A到BFR-B1的链路、BFR-A到BFR-B2的链路为等价链路时,BFR-A的BIFT如下表2-1或者表2-2所示。When the link from BFR-A to BFR-B1 and the link from BFR-A to BFR-B2 are equal-cost links, the BIFT of BFR-A is as shown in Table 2-1 or Table 2-2 below.
表2-1
table 2-1
表2-2
Table 2-2
当BFR-A到BFR-B1的链路、BFR-A到BFR-B2的链路不为等价链路,BFR-A到BRF-B1的链路比BFR-A到BFR-B2的链路更优时,BFR-A生成的BIFT如下表3所示。When the link from BFR-A to BFR-B1 and the link from BFR-A to BFR-B2 are not equal-cost links, the link from BFR-A to BRF-B1 is more expensive than the link from BFR-A to BFR-B2. When better, the BIFT generated by BFR-A is shown in Table 3 below.
表3
table 3
因此,anycast label被用于建立站点间BIER转发表。Therefore, anycast label is used to build the inter-site BIER forwarding table.
步骤3-2:站点内转发表建立Step 3-2: Establish the forwarding table within the site
而站点内部,如图13所示,当BFR-B1收到BFR-B2的BIER信息子TLV,BFR-B1解析出anycast label(label_B)与bypass label(label_B2)后,发现该anycast label与本地anycast label一致,则BFR-B1可以使用原有的bypass label,生成到对端设备的BIFT条目,用于站点内部的报文互转。则报文在复制到对端设备,即BFR-B2时,携带的是对端的bypass label。BFR-B1的bypass label为label_B1,BFR-B2的bypass label为label_B2。Inside the site, as shown in Figure 13, when BFR-B1 receives the BIER information sub-TLV of BFR-B2, BFR-B1 parses out anycast label (label_B) and bypass label (label_B2), and finds that the anycast label is the same as the local anycast label. If the labels are consistent, BFR-B1 can use the original bypass label to generate BIFT entries to the peer device for packet transfer within the site. When the packet is copied to the peer device, that is, BFR-B2, it carries the bypass label of the peer. The bypass label of BFR-B1 is label_B1, and the bypass label of BFR-B2 is label_B2.
BFR-B1生成的BIFT如下表4所示。 The BIFT generated by BFR-B1 is shown in Table 4 below.
表4
Table 4
BFR-B2生成的BIFT如下表5所示。The BIFT generated by BFR-B2 is shown in Table 5 below.
表5
table 5
步骤4:接收到数据报文后,查找BIFT。Step 4: After receiving the data message, find BIFT.
BIER-MPLS场景,接收到BIER数据报文后,会解析报文头中携带的比特串及BIER-MPLS label。In the BIER-MPLS scenario, after receiving the BIER data packet, the bit string and BIER-MPLS label carried in the packet header will be parsed.
不同站点间转发报文时,上游设备封装报文时,使用anycast label封装报文头。站点内部互相转发报文时,使用bypass label封装报文头。When forwarding packets between different sites, when the upstream device encapsulates the packet, anycast label is used to encapsulate the packet header. When forwarding packets to each other within the site, the bypass label is used to encapsulate the packet header.
各设备上维护anycast label,bypass label与<BIER sub-domain,SI,BSL>的对应关系。The corresponding relationship between anycast label, bypass label and <BIER sub-domain, SI, BSL> is maintained on each device.
设备根据比特串与BIFT表中的F-BM进行与运算,获得BIER子域中可达的BFER集合以及对应的BFR邻居、出接口及下一跳。The device performs an AND operation with the F-BM in the BIFT table based on the bit string to obtain the reachable BFER set in the BIER subdomain and the corresponding BFR neighbors, outgoing interfaces, and next hops.
步骤4-1:本设备同时与下游站点的两台设备形成了负载分担Step 4-1: This device forms load sharing with two devices at the downstream site at the same time.
如图14所示,站点A的设备均分别与站点B的两台设备有直连链路。As shown in Figure 14, the devices at site A are directly connected to the two devices at site B.
站点A的BFR-A1和BFR-A2的BIFT中,会同时有到达站点B的BFR-B1和BFR-B2这两台设备的出接口及下一跳。BFR-A1或者BFR-A2,可以使用到达BFR-B1的出接口转发报文,也可以使用到达BFR-B2的出接口转发报文。In the BIFT of BFR-A1 and BFR-A2 at site A, there will be outbound interfaces and next hops to the two devices BFR-B1 and BFR-B2 at site B. BFR-A1 or BFR-A2 can use the outbound interface to BFR-B1 to forward packets, or it can use the outbound interface to BFR-B2 to forward packets.
例如,BFR-A1生成的BIFT如下表6所示。For example, the BIFT generated by BFR-A1 is shown in Table 6 below.
表6
Table 6
BFR-A1接收到数据报文,数据报文中比特串为01,BFR-A1使用比特串01与表6中的F-BM11进行与操作,BitString&F-BM=01&11=01,则BFR-A1可以选择与BFR-B1直连接口以及与BFR-B2直连接口其中的任意一个出接口转发数据报文,使用label_B替换报文中携带的BIER-MPLS label。当与BFR-B1直连接口以及与BFR-B2直连接口其中的一个出接口无法正常工作,BFR-A1也能使用另一个出接口,无需收敛。因此,当BFR-A1到BFR-B1的链路以及BFR-A1到BFR-B2的链路其中一条链路故障时,BFR-A1可以直接通过另一条链路转发流量,实现故障场景的快速切换与流量保护。BFR-A1 receives a data message, and the bit string in the data message is 01. BFR-A1 uses the bit string 01 to perform an AND operation with F-BM11 in Table 6, BitString&F-BM=01&11=01, then BFR-A1 can choose any one of the outbound interfaces directly connected to BFR-B1 and directly connected to BFR-B2 to forward the data message, and replace the BIER-MPLS label carried in the message with label_B. When one of the outbound interfaces directly connected to BFR-B1 and directly connected to BFR-B2 fails to work properly, BFR-A1 can also use another outbound interface without convergence. Therefore, when one of the links from BFR-A1 to BFR-B1 and from BFR-A1 to BFR-B2 fails, BFR-A1 can directly forward traffic through another link to achieve fast switching and traffic protection in fault scenarios.
步骤4-2:当本设备只与下游站点的一台设备有链路Step 4-2: When this device only has a link with one device at the downstream site
如图15所示,站点A中的设备只与站点B的一台设备有链路,此时BFR-A1上的转发表项有一个出接口。例如,BFR-A1生成的BIFT如下表7所示。数据报文中携带的比特串为01,BFR-A1使用比特串01与表7中的F-BM进行与操作,比特串&F-BM=01&11=01,As shown in Figure 15, the device in site A only has a link with one device in site B. At this time, the forwarding table entry on BFR-A1 has one outgoing interface. For example, the BIFT generated by BFR-A1 is shown in Table 7 below. The bit string carried in the data message is 01. BFR-A1 uses the bit string 01 to perform the AND operation with the F-BM in Table 7. The bit string &F-BM=01&11=01,
表7
Table 7
则BFR-A1可以从与BFR-B1直连的出接口发送数据报文,使用label_B替换数据报文中携带label。Then BFR-A1 can send data packets from the outbound interface directly connected to BFR-B1, and use label_B to replace the label carried in the data packets.
当BFR-A1的与BFR-B1直连的出接口由于链路或节点故障导致不可用后,BFR-A1需要收敛到到达BFR-B1的链路。BFR-A1将出接口由与BFR-B1直连的接口切换为与BFR-A2直连接口,获得如下表8所示的BIFT。When the outbound interface of BFR-A1 directly connected to BFR-B1 becomes unavailable due to link or node failure, BFR-A1 needs to converge to the link to BFR-B1. BFR-A1 switches the outbound interface from the interface directly connected to BFR-B1 to the interface directly connected to BFR-A2, and obtains the BIFT shown in Table 8 below.
表8
Table 8
当数据报文到达BFR-A2后,BFR-A2上已经生成了到达BFR-B2的转发表项,该转发表项如下表9所示,该转发表项的含义是下一跳是BFR-B2,下一跳的label为label_B,出接口为与BFR-B2直连接口,BFR-A2可以直接使用这条表项转发数据报文,而不会再收敛回BFR-A1,因此不会再产生微环问题。此时相比于使用不同的label,打通流量转发更快。When the data packet reaches BFR-A2, a forwarding table entry has been generated on BFR-A2 to reach BFR-B2. The forwarding table entry is shown in Table 9 below. The meaning of this forwarding table entry is that the next hop is BFR-B2. , the label of the next hop is label_B, and the outbound interface is the interface directly connected to BFR-B2. BFR-A2 can directly use this entry to forward data packets, and will not converge back to BFR-A1, so it will not occur again. Microring problem. At this time, compared to using different labels, it is faster to open up traffic forwarding.
表9
Table 9
步骤5:目的站点内接收到数据报文后查找BIFTStep 5: Search for BIFT after receiving the data packet at the destination site
当站点内一台设备接收到数据报文,确定数据报文的目的BFR并不是本设备时,可以使用基于bypass label生成的转发表转发数据报文。When a device in the site receives a data packet and determines that the destination BFR of the data packet is not the device, the forwarding table generated based on the bypass label can be used to forward the data packet.
例如,BFR-B2生成的BIFT包含表10示出的条目。BFR-B2接收到数据报文,数据报文中携带的比特串为01,BFR-B2使用比特串01与表10中的F-BM 01进行与操作,比特串&F-BM=01&01=01,BFR-B2通过与BFR-B1直连的接口转发数据报文,使用label_B1替换数据报文中携带label。For example, the BIFT generated by BFR-B2 contains the entries shown in Table 10. BFR-B2 receives the data message. The bit string carried in the data message is 01. BFR-B2 uses the bit string 01 to perform the AND operation with F-BM 01 in Table 10. The bit string &F-BM=01&01=01, BFR-B2 forwards data packets through the interface directly connected to BFR-B1, and uses label_B1 to replace the label carried in the data packet.
表10
Table 10
下面对BIERv6场景下图4所示实施例至图8实施例结合实施的流程举例说明。下述实施例中anycast End.BIER SID是图4所示实施例至图8实施例所示实施例中任播标签的具体示例,下述实施例中bypass End.BIER SID是图4所示实施例至图8实施例所示实施例中bypass标签的具体示例。该实施例包括以下步骤0至步骤5。The following is an example of the process of combined implementation of the embodiment shown in Figure 4 to Figure 8 in the BIERv6 scenario. In the following embodiments, the anycast End.BIER SID is a specific example of anycast tag in the embodiment shown in Figure 4 to the embodiment shown in Figure 8. In the following embodiments, the bypass End.BIER SID is the implementation shown in Figure 4 Let's take a specific example of the bypass tag in the embodiment shown in FIG. 8 . This embodiment includes the following steps 0 to 5.
步骤0:规划站点Step 0: Plan the site
分别部署组播源站点,中间站点以及组播接收者站点。使能各设备的BIER能力,并配置相应的BIER子域及BFR-ID。Deploy multicast source sites, intermediate sites and multicast receiver sites respectively. Enable the BIER capability of each device and configure the corresponding BIER subdomain and BFR-ID.
步骤1:部署IGP或BGP Step 1: Deploy IGP or BGP
每台BFR配置IGP、BGP或者其他路由协议,用于洪泛BFR prefix,洪泛BFR prefix的报文携带BIER相关的参数集,携带的参数集包括:BFR-ID、SI、BSL以及End.BIER SID。Each BFR is configured with IGP, BGP or other routing protocols for flooding the BFR prefix. The message flooding the BFR prefix carries the BIER related parameter set. The carried parameter set includes: BFR-ID, SI, BSL and End.BIER SID.
步骤2:洪泛End.BIER SIDStep 2: Flood the End.BIER SID
BIERv6场景,站点内每台BFR配置不同的BFR-ID。In BIERv6 scenario, each BFR in the site is configured with a different BFR-ID.
本实施例中,站点内部的设备上使用相同的anycast End.BIER SID以及不同的bypass End.BIER SID。使用anycast End.BIER SID生成站点间BIFT表,使用bypass End.BIER SID生成站点内BIFT表。In this embodiment, the same anycast End.BIER SID and different bypass End.BIER SID are used on the devices inside the site. Use anycast End.BIER SID to generate inter-site BIFT tables, and use bypass End.BIER SID to generate intra-site BIFT tables.
不同站点间配置不同的anycast End.BIER SID,从而达到区分站点的目的。Configure different anycast End.BIER SIDs between different sites to distinguish the sites.
部署IGP BIERv6,通过IGP洪泛BIERv6信息,建立站点内BIERv6转发表。Deploy IGP BIERv6, flood BIERv6 information through IGP, and establish a BIERv6 forwarding table within the site.
如图16所示,BIER的参数集被封装在IGP报文的sub-TLV中,用于计算BIER路由表和BIER转发表。其中,End.BIER SID被封装在sub-sub-TLV中。如图17所示,End.BIER SID被封装在sub-sub-TLV中。As shown in Figure 16, the BIER parameter set is encapsulated in the sub-TLV of the IGP message and is used to calculate the BIER routing table and the BIER forwarding table. Among them, the End.BIER SID is encapsulated in the sub-sub-TLV. As shown in Figure 17, the End.BIER SID is encapsulated in the sub-sub-TLV.
本实施例提出anycast End.BIER与bypass End.BIER后,bypass End.BIER被封装在图17中原先的End.BIER sub-sub-TLV中,anycast End.BIER按照图18所示进行封装。格式与已有的End.BIER sub-sub-TLV一致,封装时放在已有的End.BIER sub-sub-TLV后面。After this embodiment proposes anycast End.BIER and bypass End.BIER, bypass End.BIER is encapsulated in the original End.BIER sub-sub-TLV in Figure 17, and anycast End.BIER is encapsulated as shown in Figure 18. The format is consistent with the existing End.BIER sub-sub-TLV, and is placed after the existing End.BIER sub-sub-TLV during encapsulation.
步骤3:建立BIERv6转发表Step 3: Create BIERv6 forwarding table
步骤3-1:建立站点间转发表Step 3-1: Create an inter-site forwarding table
如图19所示,不同站点之间,当两台下游设备BFR-B1和BFR-B2向一台BFR-A通告了sub-sub-TLV后,BFR-A解析两个sub-sub-TLV,获得anycast End.BIER,BFR-A发现获得的anycast End.BIER与本地的anycast End.BIER不一致,但BFR-B1的anycast End.BIER与BFR-B2的anycast End.BIER一致,则BFR-A将BFR-B1的BFR-ID和BFR-B2的BFR-ID在F-BM中合并。As shown in Figure 19, between different sites, when two downstream devices BFR-B1 and BFR-B2 notify a BFR-A of sub-sub-TLV, BFR-A resolves the two sub-sub-TLVs. Obtain anycast End.BIER, BFR-A finds that the obtained anycast End.BIER is inconsistent with the local anycast End.BIER, but the anycast End.BIER of BFR-B1 is consistent with the anycast End.BIER of BFR-B2, then BFR-A will The BFR-ID of BFR-B1 and the BFR-ID of BFR-B2 are merged in F-BM.
如果BFR-A到BFR-B1的链路与BFR-A到BFR-B2的链路为等价链路,则BFR-A将到BFR-B1与BFR-B2的出接口都作为该F-BM的出接口。If the link from BFR-A to BFR-B1 and the link from BFR-A to BFR-B2 are equal cost links, BFR-A uses the outbound interfaces to BFR-B1 and BFR-B2 as the outbound interfaces of the F-BM.
而如果BFR-A到BFR-B1的链路与BFR-A到BFR-B2的链路为不等价链路,则BFR-A使用BFR-A到BFR-B1的链路与BFR-A到BFR-B2的链路其中较优链路的出接口作为该F-BM的出接口。And if the link from BFR-A to BFR-B1 and the link from BFR-A to BFR-B2 are unequal links, then BFR-A uses the link from BFR-A to BFR-B1 and the link from BFR-A to The outbound interface of the better link among the BFR-B2 links is used as the outbound interface of the F-BM.
在没有anycast End.BIER的情况下,BFR-A原先生成的BIFT如下表11所示。In the absence of anycast End.BIER, the BIFT originally generated by BFR-A is shown in Table 11 below.
表11
Table 11
通过引入anycast End.BIER,将原有的BIFT表的F-BM进行了合并,生成BIFT如下所示。By introducing anycast End.BIER, the F-BM of the original BIFT table is merged to generate the BIFT as shown below.
当BFR-A到BFR-B1的链路、BFR-A到BFR-B2的链路为等价链路时,BFR-A的BIFT如下表12所示。When the link from BFR-A to BFR-B1 and the link from BFR-A to BFR-B2 are equal-cost links, the BIFT of BFR-A is as shown in Table 12 below.
表12

Table 12

当BFR-A到BFR-B1的链路、BFR-A到BFR-B2的链路不为等价链路,BFR-A到BFR-B1的链路比BFR-A到BFR-B2的链路更优时,BFR-A生成的BIFT如下表13所示。When the link from BFR-A to BFR-B1 and the link from BFR-A to BFR-B2 are not equal-cost links, the link from BFR-A to BFR-B1 is more expensive than the link from BFR-A to BFR-B2. When better, the BIFT generated by BFR-A is shown in Table 13 below.
表13
Table 13
步骤3-1:建立站点内转发表Step 3-1: Create an intra-site forwarding table
如图20所示,在站点内部,BFR-B1解析BFR-B2的sub-sub-TLV,对比anycast End.BIER,发现与本地anycast End.BIER一致,则使用与本机不一致的bypass End.BIER,作为到对端的下一跳End.BIER,从而在接收到的数据报文含有到对端设备的BFR-ID的比特串后,复制数据报文时,不会因为下一跳End.BIER是自己而终止报文转发,实现站点内互相传输数据报文的目的。As shown in Figure 20, inside the site, BFR-B1 parses the sub-sub-TLV of BFR-B2, compares anycast End.BIER, and finds that it is consistent with the local anycast End.BIER, so it uses the bypass End.BIER that is inconsistent with the local one. , as the next hop End.BIER to the opposite end, so that after the received data packet contains the BFR-ID bit string to the opposite end device, when the data packet is copied, it will not be because the next hop End.BIER is It terminates packet forwarding by itself and realizes the purpose of transmitting data packets to each other within the site.
例如,BFR-B1生成的BIFT如下表14所示,表14为BFR-B1上站点内BIER转发表的具体示例。For example, the BIFT generated by BFR-B1 is shown in Table 14 below. Table 14 is a specific example of the BIER forwarding table within the site on BFR-B1.
表14
Table 14
例如,BFR-B2生成的BIFT如下表15所示,表15为BFR-B2上站点内BIER转发表的具体示例。For example, the BIFT generated by BFR-B2 is shown in Table 15 below. Table 15 is a specific example of the BIER forwarding table within the site on BFR-B2.
表15
Table 15
步骤4:接收到数据报文后查找BIFTStep 4: Search for BIFT after receiving the data message
接收到BIERv6封装格式的数据报文后,会解析报文头中携带的End.BIER SID。当End.BIER SID为本地的End.BIER SID时,则进行BIERv6转发处理,当End.BIER SID不是本地的End.BIER SID时,则进行普通的单播报文转发流程。After receiving the data message in the BIERv6 encapsulation format, the End.BIER SID carried in the message header will be parsed. When the End.BIER SID is the local End.BIER SID, BIERv6 forwarding processing is performed. When the End.BIER SID is not the local End.BIER SID, the ordinary unicast packet forwarding process is performed.
当进行BIERv6转发处理时,进行比特串与F-BM比较后,获得BFR邻居,以及下一跳的End.BIER SID,将报文复制转发。When performing BIERv6 forwarding processing, after comparing the bit string with the F-BM, the BFR neighbor and the End.BIER SID of the next hop are obtained, and the message is copied and forwarded.
步骤4-1:当本设备同时与下游站点的两台设备有链路Step 4-1: When this device has links with two devices at the downstream site at the same time
当设备BFR-A1与下游站点的两台设备有链路时,且这两条链路等价时,转发表中会同时有到达两台设备的出接口,则可以向两个出接口中的任意一个转发BIER报文。其中一条链路故障时,可以直接将通过另一条链路转发流量,实现故障场景的快速切换与流量保护。When the device BFR-A1 has a link with two devices at the downstream site, and the two links are equivalent, there will be outbound interfaces to both devices in the forwarding table, and the BIER message can be forwarded to any of the two outbound interfaces. When one of the links fails, the traffic can be directly forwarded through the other link, achieving fast switching and traffic protection in the failure scenario.
例如,BFR-A1生成的BIFT如下表16所示。BFR-A1接收到数据报文,数据报文中携带的比特串为01,BFR-A1使用比特串01与表16中的F-BM 11进行与操作,比特串&F-BM=01&11=01,BFR-A1可以从与BFR-B1直连接口、与BFR-B2直连接口这两个出接口中的一个出接口发送报文,使用End.BIER_B替换报文头中携带的End.BIER SID。For example, the BIFT generated by BFR-A1 is shown in Table 16 below. BFR-A1 receives the data message. The bit string carried in the data message is 01. BFR-A1 uses bit string 01 to perform AND operation with F-BM 11 in Table 16. Bit string &F-BM=01&11=01. BFR-A1 can send packets from one of the two outbound interfaces directly connected to BFR-B1 and BFR-B2. Use End.BIER_B to replace the End.BIER SID carried in the packet header.
表16
Table 16
当与BFR-B1直连接口、与BFR-B2直连接口这两个出接口其中一个出接口无法正常工作,也能使用另一个出接口发送数据报文,而无需收敛。When one of the two outbound interfaces directly connected to BFR-B1 and BFR-B2 fails to work properly, the other outbound interface can be used to send data packets without convergence.
步骤4-2:当本设备只与一台下游站点的设备有链路Step 4-2: When this device only has a link with a device at a downstream site
如图22所示,当BFR-A1只与一台下游设备BFR-B1有连线,当BFR-A1到达BFR-B1的链路故障时,需要重新收敛转发表,以使BFR-B2接收报文。As shown in Figure 22, when BFR-A1 is connected to only one downstream device BFR-B1, when the link from BFR-A1 to BFR-B1 fails, the forwarding table needs to be re-converged so that BFR-B2 can receive the report. arts.
例如,BFR-A1将下一跳由BFR-B1收敛为BFR-A2,BFR-A1收敛后的BIFT如下表17所示。For example, BFR-A1 converges the next hop from BFR-B1 to BFR-A2. The BIFT of BFR-A1 after convergence is shown in Table 17 below.
表17
Table 17
而BFR-A2上原本就有到BFR-ID 1以BFR-B2为下一跳的转发表,如下表18所示。因此,BFR-A2可以直接收敛到BFR-B2,而不会再收敛回BFR-A1。BFR-A2 originally has a forwarding table to BFR-ID 1 with BFR-B2 as the next hop, as shown in Table 18 below. Therefore, BFR-A2 can directly converge to BFR-B2 without converging back to BFR-A1.
表18
Table 18
相比于使用不同的End.BIER SID时的硬收敛,通过使用相同的End.BIER SID可以避免微环的产生,打通流量转发更快。Compared with hard convergence when using different End.BIER SIDs, using the same End.BIER SID can avoid the generation of micro-rings and open up traffic forwarding faster.
步骤5:目的站点内接收到数据报文后查找BIFT。Step 5: After receiving the data message, the destination site searches for BIFT.
当报文到达站点内部,但是目的BFR并不是本设备时,可以使用通过bypass End.BIER生成的BIFT转发报文。When a packet reaches the site but the destination BFR is not the device, the BIFT generated by bypass End.BIER can be used to forward the packet.
例如,BFR-B2生成的BIFT包含如表19示出的条目,BFR-B2接收到数据报文,数据报文的报文头携带比特串01,BFR-B2使用比特串01与F-BM 01进行与操作,比特串&F-BM=01&01=01,则BFR-B2从与BFR-B1直连的接口发送报文,使用End.BIER_B1替换报文头携带的End.BIER SID。For example, the BIFT generated by BFR-B2 contains the entries shown in Table 19. BFR-B2 receives the data message. The header of the data message carries bit string 01. BFR-B2 uses bit string 01 and F-BM 01. Perform the AND operation, bit string &F-BM=01&01=01, then BFR-B2 sends the message from the interface directly connected to BFR-B1, and uses End.BIER_B1 to replace the End.BIER SID carried in the message header.
表19
Table 19
则报文可以通过End.BIER_B1被转发到站点内部的另一个BFR,即BFR-B1。BFR-B1将报文进一步转发到目的BFR。Then the packet can be forwarded to another BFR within the site, namely BFR-B1, through End.BIER_B1. BFR-B1 further forwards the packet to the destination BFR.
下面结合图23示出的BIER-MPLS组网场景对图4所示实施例至图8所示实施例举例说明。The embodiment shown in Figure 4 to Figure 8 will be described below with reference to the BIER-MPLS networking scenario shown in Figure 23.
如图23所示,组播根节点为组播源直连的站点1。组播叶子节点为组播接收者直接连的站点3。站点2代表中间节点。As shown in Figure 23, the multicast root node is site 1 directly connected to the multicast source. The multicast leaf node is the site 3 to which the multicast receiver is directly connected. Site 2 represents the intermediate node.
根节点与叶子节点均使能BIER能力,作为BFR节点,分配BFR-ID。 Both the root node and leaf nodes enable the BIER capability, serve as BFR nodes, and are assigned BFR-IDs.
本例中站点1和站点3分别作为BFIR和BFER。In this example, site 1 and site 3 serve as BFIR and BFER respectively.
PE3具有接口1、接口2和接口3,接口1为PE3到PE4的出接口,接口2为PE3到PE5的出接口,接口3为PE3到PE6的出接口。PE6具有接口4,接口4为PE6到PE5的出接口。PE3 has interface 1, interface 2 and interface 3. Interface 1 is the outbound interface from PE3 to PE4, interface 2 is the outbound interface from PE3 to PE5, and interface 3 is the outbound interface from PE3 to PE6. PE6 has interface 4, which is the outbound interface from PE6 to PE5.
针对图23的场景,实施例包括如下步骤1至步骤6。For the scenario in Figure 23, the embodiment includes the following steps 1 to 6.
步骤1:部署BIER-MPLS:Step 1: Deploy BIER-MPLS:
根节点、中间节点和叶子节点统一配置BIER sub-domain id为1,BSL为64,SI为1。每台设备的BFR-ID各不相同;中间节点不配置BFR-ID,但支持BIER转发;The root node, intermediate node and leaf node are uniformly configured with BIER sub-domain id of 1, BSL of 64 and SI of 1. The BFR-ID of each device is different; the intermediate node is not configured with BFR-ID, but supports BIER forwarding;
同站点的两台设备配置相同的anycast BIER-MPLS label以及不同的bypass BIER-MPLS label;不同站点配置不同的anycast BIER-MPLS labelTwo devices at the same site are configured with the same anycast BIER-MPLS label and different bypass BIER-MPLS labels; different sites are configured with different anycast BIER-MPLS labels.
同站点内两台设备部署BIER,站点内两台设备建立BIER转发表,报文可以在站点内通过BIER的方式转发。Two devices in the same site are deployed with BIER, and the two devices in the site establish BIER forwarding tables. Packets can be forwarded in the site through BIER.
例如,图23示出的各个设备的配置如表20所示。For example, the configuration of each device shown in FIG. 23 is as shown in Table 20.
表20
Table 20
步骤2:通告BIER参数集Step 2: Announce BIER parameter set
BIER子域中的各个设备之间通过部署的IGP或BGP通告BIER参数集,每台设备通过通告获取的BIER参数集,生成路由表及转发表。Each device in the BIER subdomain advertises the BIER parameter set through the deployed IGP or BGP. Each device generates a routing table and forwarding table by advertising the obtained BIER parameter set.
例如,PE 5发送了图24示出的BIER信息sub-TLV。图24中的sub-sub-TLV中携带了bypass label,bypass label的值为31。For example, PE 5 sends the BIER information sub-TLV shown in Figure 24. The sub-sub-TLV in Figure 24 carries the bypass label, and the value of the bypass label is 31.
图25展示了新增的sub-sub-TLV,用于携带anycast label,anycast label的值为30。Figure 25 shows the newly added sub-sub-TLV, which is used to carry the anycast label. The value of the anycast label is 30.
图26展示了PE6的BIER信息子TLV。Figure 26 shows the BIER information sub-TLV of PE6.
PE3收到PE5和PE6的BIER信息子TLV后,PE3会解析出anycast label及bypass label。After PE3 receives the BIER information sub-TLV of PE5 and PE6, PE3 will parse the anycast label and bypass label.
PE3的anycast label的值为20,PE3的bypass label的值为21。当PE3解析得到PE5的anycast label30时,PE3对PE5的anycast label与自己的anycast label比较,发现两者不一致,则将该label 30记录为到当前<sub-domain,SI,BSL>中到BFR-ID 5的下一跳的label,并记录出接口为与PE5直连的接口。同理,PE3到BFR-ID 6的下一跳label也为30。The value of PE3's anycast label is 20, and the value of PE3's bypass label is 21. When PE3 parses and obtains PE5's anycast label 30, PE3 compares PE5's anycast label with its own anycast label and finds that the two are inconsistent. It then records label 30 as the label of the next hop to BFR-ID 5 in the current <sub-domain, SI, BSL>, and records the outbound interface as the interface directly connected to PE5. Similarly, the next hop label from PE3 to BFR-ID 6 is also 30.
步骤3:生成BIFT表Step 3: Generate BIFT table
PE3在BIFT表中,将PE5的BFR-ID以及PE6的BFR-ID这两个BFR-ID合并至同一条F-BM。例如参考下表21,表21示出了PE 3的BIFT,PE 3的BIFT的索引为<SD:1,SI:1,BSL:64>。PE5的BFR-ID 为5,PE6的BFR-ID为6,则生成一个长度为64的比特串,将比特串右数第5个比特位和从右数第6个比特位置位,获得F-BM 110000。为了简化示意,在此示出F-BM最后的6个比特,F-BM中前58个比特均为0,F-BM中前58个比特在此省略未示出。F-BM对应的下一跳label为30。PE3到PE5的链路、PE3到PE6的链路为等价链路,则BFR-NBR为PE5和PE6,出接口分别为PE3到PE5的接口以及PE3到PE6的接口。In the BIFT table, PE3 merges the two BFR-IDs of PE5's BFR-ID and PE6's BFR-ID into the same F-BM. For example, refer to Table 21 below. Table 21 shows the BIFT of PE 3. The index of the BIFT of PE 3 is <SD: 1, SI: 1, BSL: 64>. BFR-ID of PE5 is 5, and the BFR-ID of PE6 is 6, then a bit string with a length of 64 is generated, and the 5th bit from the right and the 6th bit from the right of the bit string are set to obtain F-BM 110000. To simplify the illustration, the last 6 bits of F-BM are shown here. The first 58 bits of F-BM are all 0. The first 58 bits of F-BM are omitted and not shown here. The next hop label corresponding to F-BM is 30. The link from PE3 to PE5 and the link from PE3 to PE6 are equal-cost links, so the BFR-NBR is PE5 and PE6, and the outgoing interfaces are the interface from PE3 to PE5 and the interface from PE3 to PE6 respectively.
表21
Table 21
同理,PE1生成BIFT,如下表22所示。PE 1的BIFT的索引为<SD:1,SI:1,BSL:64>。In the same way, PE1 generates BIFT, as shown in Table 22 below. The BIFT index of PE 1 is <SD:1,SI:1,BSL:64>.
表22
Table 22
PE6收到PE5的BIER信息子TLV,解析BIER信息子TLV中的sub-sub-TLV,解析出的label为30,与本机的anycast label 30一致。PE6解析出bypass label为31,将label 31记录为到当前<sub-domain,SI,BSL>BIFT表中的BFR-ID 5的下一跳label,如表23所示。PE6 receives the BIER information sub-TLV of PE5, parses the sub-sub-TLV in the BIER information sub-TLV, and the parsed label is 30, which is consistent with the local anycast label 30. PE6 parses the bypass label as 31, and records label 31 as the next hop label to BFR-ID 5 in the current <sub-domain, SI, BSL> BIFT table, as shown in Table 23.
表23
Table 23
同理PE5生成表24示出的BIFT表项。Similarly, PE5 generates the BIFT table entry shown in Table 24.
表24
Table 24
步骤4:转发组播数据报文。Step 4: Forward the multicast data packet.
组播源发送组播数据报文1,组播数据报文1的目的接收者为接入PE5的接收者2。The multicast source sends multicast data packet 1, and the destination recipient of multicast data packet 1 is receiver 2 connected to PE5.
PE1接收组播数据报文1后,向组播数据报文1添加包含比特串的报文头,获得组播数据报文2。比特串包含了该报文需要到达的目的BFER,即PE5的BFR-ID,比特串为010000。PE1根据比特串与PE1上BIFT中F-BM对比的结果,得出下一跳label为label 20,出接口为指向PE3或PE4的接口。当PE1上到达PE1的邻居有两个出接口时,PE1选取其中一个出接口转发组播数据报文2。After receiving multicast data packet 1, PE1 adds a header containing a bit string to multicast data packet 1 to obtain multicast data packet 2. The bit string contains the destination BFER that the packet needs to reach, that is, the BFR-ID of PE5. The bit string is 010000. Based on the comparison result between the bit string and the F-BM in BIFT on PE1, PE1 determines that the next hop label is label 20, and the outbound interface is the interface pointing to PE3 or PE4. When the neighbor on PE1 that reaches PE1 has two outgoing interfaces, PE1 selects one of the outgoing interfaces to forward multicast data packet 2.
当PE1通过指向PE3的接口发送组播数据报文2后,PE3收到组播数据报文2。PE3比对组播数据报文2中的比特串与BIFT,得出下一跳label为30,PE3从指向PE5的出接口转发组播数据报文3,组播数据报文3是基于组播数据报文2获得的,组播数据报文3中的比特串是基于组播数据报文2中的比 特串与PE3的BIFT中F-BM进行与操作获得的。When PE1 sends multicast data packet 2 through the interface pointing to PE3, PE3 receives multicast data packet 2. PE3 compares the bit string in multicast data packet 2 with BIFT and finds that the next hop label is 30. PE3 forwards multicast data packet 3 from the outgoing interface pointing to PE5. Multicast data packet 3 is based on multicast Obtained from data packet 2, the bit string in multicast data packet 3 is based on the ratio in multicast data packet 2. The special string is obtained by performing and operating F-BM in BIFT of PE3.
组播数据报文3到达PE5后,PE5对组播数据报文3中的比特串与PE5上F-BM比对后,发现本机为目的BFER,则PE5解封装组播数据报文3包含比特串的报文头,获得组播数据报文4,PE5向接收者2发送组播数据报文4,完成BIER流量转发。After multicast data packet 3 reaches PE5, PE5 compares the bit string in multicast data packet 3 with the F-BM on PE5 and finds that the local machine is the destination BFER. Then PE5 decapsulates the multicast data packet 3 containing The message header of the bit string is obtained and multicast data message 4 is obtained. PE5 sends multicast data message 4 to receiver 2 to complete BIER traffic forwarding.
步骤5-1:中间链路故障Step 5-1: Intermediate link failure
例如,图27示出了PE3与PE5之间的链路发生故障的场景,当发生链路故障后,PE3接收组播数据报文2,查找BIFT,仍然可以得出到达BFR-ID 5的label为30,BFR邻居为PE6,出接口为接口3,则PE3通过接口3,将基于组播数据报文2获得的组播数据报文3转发到PE6。例如,表25示出了PE3的BIFT表中的条目,PE3中BIFT的索引为<SD:1,SI:1,BSL:64>。For example, Figure 27 shows the scenario where the link between PE3 and PE5 fails. When the link fails, PE3 receives multicast data packet 2 and searches for BIFT. It can still obtain the label arriving at BFR-ID 5. is 30, the BFR neighbor is PE6, and the outbound interface is interface 3, then PE3 forwards multicast data packet 3 based on multicast data packet 2 to PE6 through interface 3. For example, Table 25 shows the entries in the BIFT table of PE3. The BIFT index in PE3 is <SD:1,SI:1,BSL:64>.
表25
Table 25
步骤5-2:中间节点故障Step 5-2: Intermediate node failure
图28示出了节点故障的场景,例如,PE3发生故障。PE1接收到组播数据报文1,将组播数据报文1添加包含比特串的报文头,获得组播数据报文2。比特串包含了该报文需要到达的目的BFER,即PE5的BFR-ID,比特串为010000。PE1上的BIFT如下表26所示。PE1在发送得组播数据报文2时,根据表26示出的BIFT,从与PE4直连的出接口发送组播数据报文2。Figure 28 shows a node failure scenario, for example, PE3 fails. PE1 receives multicast data packet 1, adds a header containing a bit string to multicast data packet 1, and obtains multicast data packet 2. The bit string contains the destination BFER that the packet needs to reach, that is, the BFR-ID of PE5. The bit string is 010000. The BIFT on PE1 is shown in Table 26 below. When PE1 sends multicast data packet 2, it sends multicast data packet 2 from the egress interface directly connected to PE4 according to the BIFT shown in Table 26.
表26
Table 26
当PE4接收到组播数据报文2后,PE4根据组播数据报文2以及下表27示出的BIFT获得组播数据报文3,从与PE5直连的接口发送组播数据报文3。组播数据报文3中的比特串是组播数据报文2中的比特串以及F-BM 110000获得的。After PE4 receives multicast data packet 2, PE4 obtains multicast data packet 3 based on multicast data packet 2 and the BIFT shown in Table 27 below, and sends multicast data packet 3 from the interface directly connected to PE5. . The bit string in multicast data message 3 is obtained from the bit string in multicast data message 2 and F-BM 110000.
表27
Table 27
步骤6:站点内部报文转发。Step 6: Internal packet forwarding within the site.
当组播数据报文3到达PE6后,PE6查找表28示出的BIFT,比对后得出下一跳label为31,PE6基于组播数据报文3以及表28获得组播数据报文4,通过出接口4发送组播数据报文4,使得组播数据报文4转发至PE5。When multicast data packet 3 arrives at PE6, PE6 looks up the BIFT shown in Table 28. After comparison, it is concluded that the next hop label is 31. PE6 obtains multicast data packet 4 based on multicast data packet 3 and Table 28. , sending multicast data packet 4 through outbound interface 4, so that multicast data packet 4 is forwarded to PE5.
此时,即使中间链路发生了故障,端到端的报文转发流程仍然能够持续进行,且故障后无需进行路由收敛,到达PE3上的报文也不会因为路由未完成收敛而被丢弃。 At this time, even if the intermediate link fails, the end-to-end packet forwarding process can still continue, and there is no need to perform route convergence after the failure, and the packets arriving on PE3 will not be discarded because route convergence has not been completed.
表28
Table 28
下面结合图29示出的BIER-MPLS场景描述实施例,图29示出的场景中,PE3与PE6无直连链路。The following describes the embodiment with reference to the BIER-MPLS scenario shown in Figure 29. In the scenario shown in Figure 29, PE3 and PE6 have no direct link.
如图29所示,组播的根节点为组播源直连的站点1。组播的叶子节点为组播接收者直接连的站点3。站点2代表中间设备。根节点和叶子节点均使能BIER能力,作为BFR节点,分配BFR ID,本例中站点1和站点3分别作为BFIR和BFER。接口1为PE3上到PE4的出接口,接口2为PE3上到PE5的出接口。接口3为PE4上到PE6的出接口,接口4为PE6到PE5的出接口。As shown in Figure 29, the root node of multicast is site 1 directly connected to the multicast source. The multicast leaf node is site 3 to which the multicast receiver is directly connected. Site 2 represents the intermediate device. Both the root node and the leaf node enable the BIER capability, serve as BFR nodes, and assign BFR IDs. In this example, site 1 and site 3 serve as BFIR and BFER respectively. Interface 1 is the outbound interface from PE3 to PE4, and interface 2 is the outbound interface from PE3 to PE5. Interface 3 is the outbound interface from PE4 to PE6, and interface 4 is the outbound interface from PE6 to PE5.
与上一场景相比的区别为,PE3与PE6之间无直连链路。针对图41示出的场景,实施例包括如下步骤1至步骤5。The difference compared with the previous scenario is that there is no direct link between PE3 and PE6. For the scenario shown in Figure 41, the embodiment includes the following steps 1 to 5.
步骤1、部署BIER-MPLSStep 1. Deploy BIER-MPLS
根节点、叶子节点和中间节点统一配置BIER sub-domain ID为1,BSL为64,SI为1。根节点以及各个叶子节点中每台设备的BFR-ID各不相同;中间节点不配置BFR-ID,但支持BIER转发。The root node, leaf nodes and intermediate nodes are uniformly configured with BIER sub-domain ID of 1, BSL of 64 and SI of 1. The BFR-ID of each device in the root node and each leaf node is different; the intermediate node is not configured with BFR-ID, but supports BIER forwarding.
同站点的两台设备配置相同的anycast BIER-MPLS label以及不同的bypass BIER-MPLS label;不同站点配置不同的anycast BIER-MPLS label。Two devices at the same site are configured with the same anycast BIER-MPLS label and different bypass BIER-MPLS labels; different sites are configured with different anycast BIER-MPLS labels.
同站点内两台设备部署IGP BIER,站点内两台设备建立BIER转发表,报文可以在站点内通过BIER转发。不同站点间使能BGP,打通全局的路由转发功能。例如,请参考下表29,表29示出了每个设备上配置的参数。Two devices in the same site are deployed with IGP BIER, and the two devices in the site establish BIER forwarding tables. Packets can be forwarded through BIER in the site. Enable BGP between different sites to enable global routing and forwarding functions. For example, refer to Table 29 below, which shows the parameters configured on each device.
表29
Table 29
步骤2:通告BIER的参数集以及生成BIFT。Step 2: Announce the parameter set of BIER and generate BIFT.
各个设备通过部署的IGP,在BIER子域中泛洪BIER的参数集。每台设备基于接收到的参数集,生成BIER路由表及BIER转发表。由于PE3到PE5的链路比PE3到PE6的链路更优,因此PE3将PE5作为BFR-NBR。BIFT表中只有一个出接口。Each device floods the BIER parameter set in the BIER subdomain through the deployed IGP. Each device generates a BIER routing table and a BIER forwarding table based on the received parameter set. Since the link from PE3 to PE5 is better than the link from PE3 to PE6, PE3 uses PE5 as the BFR-NBR. There is only one outbound interface in the BIFT table.
PE3上生成的BIFT表如下表30所示。The BIFT table generated on PE3 is shown in Table 30 below.
表30

Table 30

PE4上生成的BIFT表如下表31所示。The BIFT table generated on PE4 is shown in Table 31 below.
表31
Table 31
PE5根据bypass BIER-MPLS label,生成如下表32示出的BIFT,PE6根据bypass BIER-MPLS label,生成了如下表33示出的BIFT表。PE5 generates the BIFT table shown in Table 32 below based on the bypass BIER-MPLS label, and PE6 generates the BIFT table shown in Table 33 below based on the bypass BIER-MPLS label.
表32
Table 32
表33
Table 33
步骤3:转发组播数据报文。Step 3: Forward the multicast data packet.
根节点发送组播数据报文1,组播数据报文1的目的接收者为BFR-ID 5对应的PE5连接的接收者2。The root node sends multicast data message 1. The destination recipient of multicast data message 1 is receiver 2 of the PE5 connection corresponding to BFR-ID 5.
PE1收到组播数据报文1后,向组播数据报文1添加包含比特串的报文头,获得组播数据报文2。比特串包含了该报文需要到达的目的BFER的BFR-ID,比特串为010000。PE1根据比特串与PE1上BIFT中F-BM对比的结果,得出下一跳label为20,出接口为指向PE3或PE4的接口。当PE1上到达当前邻居有两个出接口时,PE1选取其中一个转发组播数据报文2。After PE1 receives multicast data packet 1, it adds a header containing a bit string to multicast data packet 1 and obtains multicast data packet 2. The bit string contains the BFR-ID of the destination BFER that the message needs to reach, and the bit string is 010000. Based on the comparison result between the bit string and the F-BM in BIFT on PE1, PE1 determines that the next hop label is 20 and the outbound interface is the interface pointing to PE3 or PE4. When there are two outgoing interfaces on PE1 to reach the current neighbor, PE1 selects one of them to forward multicast data packet 2.
当PE1由指向PE3的接口发送组播数据报文2时,PE3收到组播数据报文2后,PE3比对组播数据报文2中的比特串与BIFT,得出下一跳label为30,基于组播数据报文2以及BIFT获得组播数据报文3,从指向PE5的出接口发送组播数据报文3。When PE1 sends multicast data message 2 through the interface pointing to PE3, after PE3 receives multicast data message 2, PE3 compares the bit string in multicast data message 2 with BIFT, and obtains the next hop label as 30. Obtain multicast data packet 3 based on multicast data packet 2 and BIFT, and send multicast data packet 3 from the outbound interface pointing to PE5.
组播数据报文3到达PE5后,PE 5比对组播数据报文3中的比特串与PE 5上的BIFT后,发现本机为目的设备,则解封装组播数据报文3中包含比特串的报文头,得到组播数据报文4,完成BIER流量转发。After multicast data packet 3 reaches PE5, PE 5 compares the bit string in multicast data packet 3 with the BIFT on PE 5 and finds that the local machine is the destination device, so it decapsulates the multicast data packet 3 containing The message header of the bit string is obtained, and multicast data message 4 is obtained to complete BIER traffic forwarding.
步骤4-1:中间链路故障Step 4-1: Intermediate link failure
图30示出了链路故障的场景,如图30所示,当PE3与PE5之间的链路发生故障。PE3收敛BFR-NBR到PE4,PE3将与PE4直连的本地接口作为出接口,得到表34示出的BIFT。Figure 30 shows a link failure scenario. As shown in Figure 30, when the link between PE3 and PE5 fails. PE3 converges BFR-NBR to PE4, and PE3 uses the local interface directly connected to PE4 as the outbound interface, resulting in the BIFT shown in Table 34.
表34
Table 34
在PE4上,原先就有到达PE6的转发表项,因此从PE3到PE6的转发路径可以打通。而PE3与BFR-ID5的转发路径由站点内PE6上到PE5的路由打通。 On PE4, there is a forwarding entry to PE6, so the forwarding path from PE3 to PE6 can be opened. The forwarding path between PE3 and BFR-ID5 is connected by the route from PE6 to PE5 in the site.
在PE3将出接口由接口2更新为接口1的过程中,比非anycast场景要快,收敛到PE4后,直接使用到PE6的路由,不会发生微环。When PE3 updates the outbound interface from interface 2 to interface 1, it is faster than the non-anycast scenario. After converging to PE4, the route to PE6 is directly used, and no microloop occurs.
非anycast场景,当各台设备未使用anycast label时,同样的故障发生时,PE3更新出接口为接口1后,PE4上由于仍按以PE5为目的地来学习邻居,到达PE5的路由不像anycast场景,可以直接朝PE6方向选路。PE4可能还未感知到[PE3-PE5]已经不通,仍然认为[PE4-PE3-PE5]与[PE4-PE6-PE5]都是可选的路径。当PE4又将PE3选定为到PE5的下一跳时,就发生了微环。而上述的微环行为可能不止发生一次,则会造成链路故障后的持续丢包,直到微环行为停止。In the non-anycast scenario, when each device does not use anycast label, the same fault occurs. After PE3 updates the outgoing interface to interface 1, PE4 still uses PE5 as the destination to learn neighbors, and the route to PE5 is not like anycast. In this scenario, you can choose a route directly in the direction of PE6. PE4 may not realize that [PE3-PE5] is blocked, and still thinks that [PE4-PE3-PE5] and [PE4-PE6-PE5] are optional paths. When PE4 selects PE3 as the next hop to PE5, a microloop occurs. The above-mentioned micro-loop behavior may occur more than once, which will cause continuous packet loss after a link failure until the micro-loop behavior stops.
因此,使用anycast label,可以避免链路故障后的微环问题,加快链路收敛及选路切换,达到快速流量保护的目的。Therefore, using anycast label can avoid micro-loop problems after link failures, speed up link convergence and routing switching, and achieve the purpose of rapid traffic protection.
步骤4-2:中间节点故障Step 4-2: Intermediate node failure
以PE3发生故障为例,如图31所示,在PE3发生故障前,PE1上的BIFT如下表35所示。在PE3发生故障后,PE1上的BIFT如下表36所示。PE1接收来自组播源的组播数据报文1,向组播数据报文1添加包含比特串的报文头,获得组播数据报文2。报文头中比特串为010000,PE1在转发报文时,PE1根据表36示出的BIFT,从与PE2直连的出接口发送组播数据报文2。Taking the failure of PE3 as an example, as shown in Figure 31, before PE3 fails, the BIFT on PE1 is as shown in Table 35 below. After PE3 fails, the BIFT on PE1 is as shown in Table 36 below. PE1 receives multicast data packet 1 from the multicast source, adds a header containing a bit string to multicast data packet 1, and obtains multicast data packet 2. The bit string in the packet header is 010000. When PE1 forwards the packet, PE1 sends multicast data packet 2 from the egress interface directly connected to PE2 according to the BIFT shown in Table 36.
表35
Table 35
表36
Table 36
当组播数据报文2到达PE4上后,PE4根据表37示出的BIFT以及组播数据报文2,获得组播数据报文3,PE4从与PE6直连的接口转发组播数据报文3。When multicast data packet 2 arrives at PE4, PE4 obtains multicast data packet 3 based on the BIFT and multicast data packet 2 shown in Table 37. PE4 forwards the multicast data packet from the interface directly connected to PE6. 3.
表37
Table 37
步骤5:站点内部报文转发。Step 5: Internal packet forwarding within the site.
当组播数据报文3到达PE6后,PE6根据组播数据报文3的报文头中的比特串,查找表38示出的BIFT,比对后得出下一跳label为31。PE6根据组播数据报文3获得组播数据报文4。PE6通过与PE5直连接口发送组播数据报文4,使得组播数据报文4转发至PE5。When multicast data packet 3 reaches PE6, PE6 searches for BIFT shown in Table 38 according to the bit string in the header of multicast data packet 3, and after comparison, it is concluded that the next hop label is 31. PE6 obtains multicast data packet 4 according to multicast data packet 3. PE6 sends multicast data packet 4 through the direct interface with PE5, so that multicast data packet 4 is forwarded to PE5.
表38
Table 38
下面结合图32示出的场景为例描述实施例。The embodiment will be described below with reference to the scenario shown in FIG. 32 as an example.
图32示出了BIERv6PE3与PE6有直连链路组网场景。 Figure 32 shows a networking scenario where BIERv6PE3 and PE6 have direct links.
如图32所示的场景,组播根节点为组播源直连的总部站点1。组播叶子节点为组播接收者直接连的站点3。站点2代表中间节点。组播源与接收者均使能BIERv6能力,作为BFR节点,分配BFRID,本例中站点1和站点3分别作为BFIR和BFER。接口1为PE3上到PE4的出接口,接口2为PE3上到PE5的出接口,接口3为PE3上到PE6的出接口。In the scenario shown in Figure 32, the multicast root node is headquarters site 1 directly connected to the multicast source. The multicast leaf node is the site 3 to which the multicast receiver is directly connected. Site 2 represents the intermediate node. Both the multicast source and receiver enable the BIERv6 capability, serve as BFR nodes, and assign BFRIDs. In this example, site 1 and site 3 serve as BFIR and BFER respectively. Interface 1 is the outbound interface from PE3 to PE4, interface 2 is the outbound interface from PE3 to PE5, and interface 3 is the outbound interface from PE3 to PE6.
本实施例包括如下步骤1至步骤6。This embodiment includes the following steps 1 to 6.
步骤1:部署BIERv6Step 1: Deploy BIERv6
PE1至PE6统一配置BIER sub-domain ID为1,BSL为64,SI为1。根节点和叶子节点的BFR-ID各不相同;中间节点不配置BFR-ID,但支持BIERv6转发;PE1 to PE6 are uniformly configured with BIER sub-domain ID 1, BSL 64, and SI 1. The BFR-ID of the root node and leaf nodes are different; the intermediate nodes are not configured with BFR-ID, but support BIERv6 forwarding;
同站点的两台设备配置相同的anycast End.BIER以及不同的bypass End.BIER;不同站点配置不同的anycast End.BIER。Two devices at the same site are configured with the same anycast End.BIER and different bypass End.BIER; different sites are configured with different anycast End.BIER.
同站点内两台设备部署IGP BIER,站点内两台设备建立BIERv6转发表,报文可以在站点内通过BIERv6的方式转发。表39示出了各个设备上配置的参数。Two devices in the same site are deployed with IGP BIER, and the two devices in the site establish BIERv6 forwarding tables. Packets can be forwarded in the site through BIERv6. Table 39 shows the parameters configured on each device.
表39
Table 39
步骤2:泛洪BIER的参数集。Step 2: Flood BIER’s parameter set.
BIER子域中的每个设备通过部署的IGP,泛洪BIER的参数集。每台设备基于接收到的BFR-ID,生成F-BM。Each device in the BIER subdomain floods the BIER parameter set through the deployed IGP. Each device generates F-BM based on the received BFR-ID.
PE3收到PE5和PE6的BIERv6信息sub-TLV,BIERv6信息sub-TLV中包含了携带End.BIER的sub-sub-TLV。PE5发送的BIERv6信息sub-TLV如图33所示。PE6发送的BIERv6信息sub-TLV如图34所示。PE3解析sub-sub-TLVs中的bypass End.BIER及anycast End.BIER。PE3的anycast End.BIER为2::1,bypass End.BIER为2::2。当PE3解析出PE5的anycast End.BIER为3::1时,与PE3自己的anycast End.BIER不一致,则PE3将3::1记录为当前<sub-domain,SI,BSL>中到BFR-ID 5的下一跳End.BIER。同理,PE3到BFR-ID 6的下一跳End.BIER也为3::1。PE3 receives the BIERv6 information sub-TLV from PE5 and PE6. The BIERv6 information sub-TLV contains the sub-sub-TLV carrying End.BIER. The BIERv6 information sub-TLV sent by PE5 is shown in Figure 33. The BIERv6 information sub-TLV sent by PE6 is shown in Figure 34. PE3 parses bypass End.BIER and anycast End.BIER in sub-sub-TLVs. PE3's anycast End.BIER is 2::1 and bypass End.BIER is 2::2. When PE3 parses out that PE5's anycast End.BIER is 3::1, which is inconsistent with PE3's own anycast End.BIER, PE3 records 3::1 as the current <sub-domain, SI, BSL> in BFR- Next hop End.BIER of ID 5. In the same way, the next hop End.BIER from PE3 to BFR-ID 6 is also 3::1.
PE6收到PE5的BIERv6信息sub-TLV,解析BIERv6信息sub-TLV中的sub-sub-TLV,解析出的anycast End.BIER为3::1时,与本机的anycast End.BIER一致,而解析的bypass End.BIER为3::2,则将bypass End.BIER3::2记录为到当前<sub-domain,SI,BSL>中BFR-ID 5的下一跳End.BIER。PE6 receives the BIERv6 information sub-TLV of PE5 and parses the sub-sub-TLV in the BIERv6 information sub-TLV. When the parsed anycast End.BIER is 3::1, it is consistent with the local anycast End.BIER. The parsed bypass End.BIER is 3::2, then the bypass End.BIER3::2 is recorded as the next hop End.BIER to BFR-ID 5 in the current <sub-domain, SI, BSL>.
步骤3:生成BIFT表。Step 3: Generate BIFT table.
由于从PE3到PE5的链路、从PE3到PE6的链路为等价链路,因此PE3将PE5和PE6都作为BFR-NBR,并在BIFT表中体现它们的出接口和下一跳。PE3上生成的BIFT表如表40所示。 Since the link from PE3 to PE5 and the link from PE3 to PE6 are equal-cost links, PE3 uses both PE5 and PE6 as BFR-NBR and reflects their outbound interfaces and next hops in the BIFT table. The BIFT table generated on PE3 is shown in Table 40.
表40
Table 40
PE5根据解析到的bypass BIER-MPLS label,生成了如表41示出的BIFT表,PE6根据解析到的bypass BIER-MPLS label,生成了如表42示出的BIFT表。PE5 generated the BIFT table shown in Table 41 based on the parsed bypass BIER-MPLS label, and PE6 generated the BIFT table shown in Table 42 based on the parsed bypass BIER-MPLS label.
表41
Table 41
表42
Table 42
步骤4:转发组播数据报文。Step 4: Forward the multicast data packet.
根节点发送组播数据报文1,组播数据报文1的目的接收者为BFR-ID为5的PE5连接的组播接收者2。The root node sends multicast data packet 1. The destination recipient of multicast data packet 1 is multicast receiver 2 connected to PE5 with BFR-ID 5.
当PE1收到组播数据报文1后,PE1向组播数据报文1添加包含比特串以及End.BIER SID的报文头,获得组播数据报文2。报文头中比特串包含了该报文需要到达的目的BFER的BFR-ID,比特串为010000。When PE1 receives multicast data packet 1, PE1 adds a header containing a bit string and End.BIER SID to multicast data packet 1 to obtain multicast data packet 2. The bit string in the message header contains the BFR-ID of the destination BFER that the message needs to reach, and the bit string is 010000.
PE1根据比特串与PE1上如表43示出的BIFT中F-BM对比的结果,得到出接口为指向PE3或PE4的接口。当到达当前邻居有两个出接口时,PE1选取其中一个出接口发送组播数据报文2,两个接口都有可能用于转发组播数据报文2。Based on the comparison result between the bit string and the F-BM in BIFT on PE1 as shown in Table 43, PE1 determines that the outbound interface is the interface pointing to PE3 or PE4. When the current neighbor has two outgoing interfaces, PE1 selects one of the outgoing interfaces to send multicast data packet 2. Both interfaces may be used to forward multicast data packet 2.
表43
Table 43
当组播数据报文2由PE1上指向PE3的接口转出后,PE3收到组播数据报文2。PE3比对组播数据报文2的报文头中比特串与BIFT中的F-BM,得出邻居为PE5,则PE2从指向PE5的出接口转发基于组播数据报文2获得的组播数据报文3。When multicast data packet 2 is forwarded from the interface on PE1 that points to PE3, PE3 receives multicast data packet 2. PE3 compares the bit string in the header of multicast data packet 2 with the F-BM in the BIFT, and finds that the neighbor is PE5. Then PE2 forwards the multicast obtained based on multicast data packet 2 from the outgoing interface pointing to PE5. Data message 3.
表44

Table 44

组播数据报文3到达PE5后,PE5比对组播数据报文3的报文头中的比特串与PE5的BIFT后,PE5发现本机为目的设备,则剥离组播数据报文3包含比特串的报文头,将获得的组播数据报文4转发至组播接收者2,完成BIER流量转发。After multicast data packet 3 arrives at PE5, PE5 compares the bit string in the header of multicast data packet 3 with PE5's BIFT. PE5 finds that this device is the destination device, so it strips off the header containing the bit string of multicast data packet 3 and forwards the obtained multicast data packet 4 to multicast receiver 2, completing BIER traffic forwarding.
步骤5-1:中间链路故障。Step 5-1: The intermediate link fails.
图35示出了一种链路故障场景,如图35所示,PE3与PE5之间的链路发生故障。此时PE3接收到组播数据报文2时,PE3查找表45示出的BIFT,得出下一跳为PE5或者PE6,此时由于PE3到达PE6的出接口2由于链路故障已经不可用,则PE3使用到达PE5的接口3,将基于组播数据报文2获得的组播数据报文3转发到PE6。Figure 35 shows a link failure scenario. As shown in Figure 35, the link between PE3 and PE5 fails. At this time, when PE3 receives multicast data message 2, PE3 looks up the BIFT shown in table 45 and concludes that the next hop is PE5 or PE6. At this time, because the outbound interface 2 of PE3 reaching PE6 is no longer available due to a link failure, Then PE3 uses interface 3 reaching PE5 to forward multicast data packet 3 obtained based on multicast data packet 2 to PE6.
表45
Table 45
步骤5-2:中间节点故障。Step 5-2: Intermediate node failure.
以PE3发生故障为例,PE1基于来自组播源的组播数据报文1,获得组播数据报文2,组播数据报文2的报文头中的比特串为010000。PE1根据表47示出的BIFT转发组播数据报文2时,从与PE4直连的出接口转发组播数据报文2。Taking the failure of PE3 as an example, PE1 obtains multicast data packet 2 based on multicast data packet 1 from the multicast source. The bit string in the header of multicast data packet 2 is 010000. When PE1 forwards multicast data packet 2 according to the BIFT shown in Table 47, it forwards multicast data packet 2 from the outbound interface directly connected to PE4.
表46
Table 46
当组播数据报文2到PE4上后,PE4根据组播数据报文2以及表47示出的BIFT表项,获得组播数据报文3,从与PE5直连的接口以及与PE6直连的接口其中的一个接口发送组播数据报文3,使得组播数据报文3到达目的站点。When multicast data packet 2 arrives at PE4, PE4 obtains multicast data packet 3 based on multicast data packet 2 and the BIFT entry shown in Table 47, from the interface directly connected to PE5 and to PE6. One of the interfaces sends multicast data packet 3, so that multicast data packet 3 reaches the destination site.
表47
Table 47
步骤6:站点内部报文转发。Step 6: Internal packet forwarding within the site.
当组播数据报文3到达PE6后,PE6基于组播数据报文3的报文头中的比特串,查找表48示出的BIFT,比对比特串与BIFT中的F-BM后,得出下一跳End.BIER为3::2,PE6从出接口4将基于组播数据报文3获得的组播数据报文转到PE5。When the multicast data packet 3 reaches PE6, PE6 looks up the BIFT shown in table 48 based on the bit string in the header of the multicast data packet 3, and compares the bit string with the F-BM in the BIFT. The outgoing next hop End.BIER is 3::2, and PE6 forwards the multicast data packet obtained based on multicast data packet 3 from outgoing interface 4 to PE5.
此时,即使中间链路发生了故障,端到端的报文转发流程仍然能够持续进行。且故障后无需进行路 由收敛,到达PE3上的报文也不会因为路由未完成收敛而被丢弃。At this time, even if the intermediate link fails, the end-to-end packet forwarding process can still continue. And there is no need to perform road maintenance after a failure. Due to convergence, packets arriving on PE3 will not be discarded because routes have not completed convergence.
表48
Table 48
下面对图37示出的组网场景举例说明,图37是BIERv6PE3与PE6无直连链路的具体示例。如图37所示,组播根节点为组播源直连的站点1。组播叶子节点为组播接收者直接连的站点3。站点2代表中间设备。The following is an example of the networking scenario shown in Figure 37. Figure 37 is a specific example where BIERv6PE3 and PE6 have no direct link. As shown in Figure 37, the multicast root node is site 1 directly connected to the multicast source. The multicast leaf node is the site 3 to which the multicast receiver is directly connected. Site 2 represents the intermediate device.
组播源与接收者均使能BIERv6能力,作为BFR节点,分配BFR-ID,本例中站点1和站点3分别作为BFIR和BFER。接口1为PE3到PE4的出接口,接口2为PE3到PE5的出接口。接口3为PE4到PE6的出接口。接口4为PE6到PE5的出接口。Both the multicast source and receiver enable the BIERv6 capability, serve as BFR nodes, and assign BFR-IDs. In this example, site 1 and site 3 serve as BFIR and BFER respectively. Interface 1 is the outbound interface from PE3 to PE4, and interface 2 is the outbound interface from PE3 to PE5. Interface 3 is the outbound interface from PE4 to PE6. Interface 4 is the outbound interface from PE6 to PE5.
如图37的场景下,实施例包括如下步骤1至步骤6。In the scenario shown in Figure 37, the embodiment includes the following steps 1 to 6.
步骤1:部署BIERv6。Step 1: Deploy BIERv6.
PE1至PE6统一配置BIER sub-domain ID为1,BSL为64,SI为1。根节点和叶子节点每台设备的BFR-ID各不相同;中间节点不配置BFR-ID,但支持BIERv6转发。PE1 to PE6 are uniformly configured with BIER sub-domain ID 1, BSL 64, and SI 1. The BFR-ID of each device on the root node and leaf node is different; the intermediate node is not configured with BFR-ID, but supports BIERv6 forwarding.
同站点的两台设备配置相同的anycast End.BIER SID以及不同的bypass End.BIER SID。不同站点配置不同的anycast End.BIER SID。表49示出了各个设备上配置的参数。Two devices at the same site are configured with the same anycast End.BIER SID and different bypass End.BIER SID. Different sites configure different anycast End.BIER SID. Table 49 shows the parameters configured on each device.
同站点内两台设备部署IGP BIER,站点内两台设备建立BIERv6转发表,报文可以在站点内BIERv6转发。Two devices in the same site are deployed with IGP BIER, and the two devices in the site establish BIERv6 forwarding tables. Packets can be forwarded in BIERv6 within the site.
表49
Table 49
步骤2:通告BIERv6信息以及生成BIFT。Step 2: Announce BIERv6 information and generate BIFT.
各个设备通过部署的IGP,在BIER子域内泛洪BIER的参数集。每台设备基于接收到的BIER的参数集,生成BIER路由表及BIER转发表。Each device floods the BIER parameter set in the BIER subdomain through the deployed IGP. Each device generates a BIER routing table and a BIER forwarding table based on the received BIER parameter set.
PE3收到PE5和PE6的BIERv6信息子TLV,该sub-TLV中包含了携带End.BIER的sub-sub-TLV。PE 5发送的BIERv6信息子TLV如图38所示,PE6发送的BIERv6Info sub-TLV如图39所示。PE3 receives the BIERv6 information sub-TLV of PE5 and PE6. The sub-TLV contains the sub-sub-TLV carrying End.BIER. The BIERv6 information sub-TLV sent by PE 5 is shown in Figure 38, and the BIERv6Info sub-TLV sent by PE6 is shown in Figure 39.
PE3解析sub-sub-TLV中的bypass End.BIER及anycast End.BIER。PE3的anycast End.BIER为2::1,bypass End.BIER为2::2。当解析出PE5的anycast End.BIER为3::1时,与自己的anycast End.BIER不一 致,则将3::1记录为当前<sub-domain,SI,BSL>中到BFR-ID 5的下一跳End.BIER。同理,PE3到BFR-ID6的下一跳End.BIER也为3::1。PE3 parses bypass End.BIER and anycast End.BIER in sub-sub-TLV. PE3's anycast End.BIER is 2::1 and bypass End.BIER is 2::2. When the anycast End.BIER of PE5 is parsed out to be 3::1, it is different from my own anycast End.BIER. If so, record 3::1 as the next hop End.BIER to BFR-ID 5 in the current <sub-domain, SI, BSL>. Similarly, the next hop End.BIER from PE3 to BFR-ID6 is also 3::1.
PE6收到PE5的BIERv6Info,解析sub-sub-TLV,解析出的anycast End.BIER为3::1时,与本机的anycast End.BIER一致,而解析的bypass End.BIER为3::2,则将3::2记录为到当前<sub-domain,SI,BSL>中BFR-ID 5的下一跳End.BIER。PE6 receives the BIERv6Info of PE5 and parses the sub-sub-TLV. When the parsed anycast End.BIER is 3::1, it is consistent with the local anycast End.BIER, and the parsed bypass End.BIER is 3::2. , then record 3::2 as the next hop End.BIER to BFR-ID 5 in the current <sub-domain, SI, BSL>.
步骤3:BIFT表及路由生成。Step 3: BIFT table and routing generation.
由于PE3到PE5与PE3到PE6不为等价路由,且到PE5的路由更优,因此将PE3到PE5直连的接口作为出接口。PE3上生成的BIFT表如下表50所示。Since PE3 to PE5 and PE3 to PE6 are not equal-cost routes, and the route to PE5 is better, the interface directly connected from PE3 to PE5 is used as the outbound interface. The BIFT table generated on PE3 is shown in Table 50 below.
表50
Table 50
PE5根据解析到的bypass BIER-MPLS label,生成了BIFT表如下表51所示。PE5 generates a BIFT table based on the parsed bypass BIER-MPLS label as shown in Table 51 below.
PE6根据解析到的bypass BIER-MPLS label,生成了BIFT表如下表52所示。PE6 generates a BIFT table based on the parsed bypass BIER-MPLS label as shown in Table 52 below.
表51
Table 51
表52
Table 52
步骤4:转发组播数据报文。Step 4: Forward the multicast data packet.
组播源发送组播数据报文1,组播数据报文1的目的接收者为BFR-ID 5对应的PE5连接的接收者2。The multicast source sends multicast data packet 1, and the destination recipient of multicast data packet 1 is receiver 2 of the PE5 connection corresponding to BFR-ID 5.
PE1收到组播数据报文1后,向组播数据报文1封装包含比特串以及End.BIER SID的报文头,获得组播数据报文2。报文头中比特串包含了该报文需要到达的目的地BFR-ID,比特串为010000。PE 1根据比特串与PE1上BIFT中F-BM对比的结果,得出BFR-邻居为2::1,PE1查找转发表,得到出接口为指向PE3或PE4的接口。当到达当前邻居有两个出接口时,选取其中一个发送组播数据报文2。两个接口都有可能用于转发组播数据报文2。After PE1 receives multicast data message 1, it encapsulates the message header containing the bit string and End.BIER SID into multicast data message 1, and obtains multicast data message 2. The bit string in the message header contains the destination BFR-ID that the message needs to reach, and the bit string is 010000. Based on the comparison result between the bit string and the F-BM in BIFT on PE1, PE 1 concludes that the BFR-neighbor is 2::1. PE1 searches the forwarding table and finds that the outgoing interface is the interface pointing to PE3 or PE4. When there are two outgoing interfaces arriving at the current neighbor, one of them is selected to send multicast data packet 2. Both interfaces may be used to forward multicast data packets 2.
当组播数据报文2由指向PE3的接口转出时,PE3收到组播数据报文2后,PE3比对组播数据报文2中的比特串与BIFT,得出邻居的End.BIER SID为3::1,通过指向PE5的出接口发送基于组播数据报文2获得的组播数据报文3。When multicast data packet 2 is forwarded from the interface pointing to PE3, after PE3 receives multicast data packet 2, PE3 compares the bit string in multicast data packet 2 with BIFT to obtain the neighbor's End.BIER. The SID is 3::1, and multicast data packet 3 obtained based on multicast data packet 2 is sent through the outbound interface pointing to PE5.
组播数据报文3到达PE5后,PE5比对组播数据报文3中的比特串与PE5的BIFT后,PE5发现本机为目的设备,则解封装组播数据报文3中包含比特串以及End.BIER SID的报文头,获得组播数据报文4,向接收者2发送组播数据报文4,完成BIER流量转发。After multicast data packet 3 reaches PE5, PE5 compares the bit string in multicast data packet 3 with PE5's BIFT. PE5 finds that the local machine is the destination device, and then decapsulates the bit string contained in multicast data packet 3. And the message header of End.BIER SID, obtain the multicast data message 4, send the multicast data message 4 to the receiver 2, and complete the BIER traffic forwarding.
步骤5-1:中间链路故障。Step 5-1: The intermediate link fails.
图40示出了一种链路故障的场景,PE3与PE5之间的链路发生故障,此时PE3根据已经到达PE3 的组播数据报文2中的比特串,查找BIFT,得出下一跳End.BIER为3::1,但BIER转发表中到PE5的表项已不可用,则需要重新收敛到PE4。PE3上到达BFR邻居PE4的出接口为3,则PE3使用接口3,将基于组播数据报文2获得的组播数据报文3转发到PE6。Figure 40 shows a link failure scenario. The link between PE3 and PE5 fails. At this time, PE3 has reached PE3 The bit string in the multicast data packet 2 is searched for BIFT and the next hop End.BIER is 3::1. However, the entry to PE5 in the BIER forwarding table is no longer available, so it needs to be converged to PE4 again. The outbound interface on PE3 that reaches the BFR neighbor PE4 is 3, so PE3 uses interface 3 to forward the multicast data packet 3 obtained based on the multicast data packet 2 to PE6.
步骤5-2:中间节点故障。Step 5-2: Intermediate node failure.
图41示出了一种节点故障场景,以PE3发生故障为例,在PE3故障前,PE1上BIFT如表53所示,在PE3故障后,PE1上BIFT如表54所示。则PE1基于来自组播源的组播数据报文1,获得组播数据报文2,组播数据报文2中的比特串为010000。PE1在转发组播数据报文2时,根据表53示出的从与PE2直连的出接口发送组播数据报文2。PE2接收到组播数据报文2后,PE2基于组播数据报文2的比特串,查找PE2的BIFT,并获得组播数据报文3,PE2向PE4发送组播数据报文3。Figure 41 shows a node failure scenario, taking the failure of PE3 as an example. Before PE3 fails, the BIFT on PE1 is as shown in Table 53. After PE3 fails, the BIFT on PE1 is as shown in Table 54. Then PE1 obtains multicast data packet 2 based on multicast data packet 1 from the multicast source, and the bit string in multicast data packet 2 is 010000. When PE1 forwards multicast data packet 2, it sends multicast data packet 2 from the outbound interface directly connected to PE2 as shown in Table 53. After PE2 receives multicast data packet 2, PE2 searches for PE2's BIFT based on the bit string of multicast data packet 2 and obtains multicast data packet 3. PE2 sends multicast data packet 3 to PE4.
表53
Table 53
表54
Table 54
在PE3故障后,PE4上BIFT如表55所示。当组播数据报文3到达PE4上后,PE4从与PE6直连的接口转发基于组播数据报文3获得的组播数据报文4。After PE3 fails, the BIFT on PE4 is as shown in Table 55. When multicast data packet 3 arrives at PE4, PE4 forwards multicast data packet 4 based on multicast data packet 3 from the interface directly connected to PE6.
表55
Table 55
步骤6:站点内部报文转发。Step 6: Internal packet forwarding within the site.
组播数据报文4到达PE6后,PE6根据组播数据报文4的报文头中的比特串查找如下表56示出的BIFT,比对比特串以及F-BM后,得出下一跳End.BIER为3::2,PE6从出接口4将基于组播数据报文4获得的组播数据报文5发送到PE5。After multicast data packet 4 reaches PE6, PE6 searches for the BIFT shown in Table 56 below based on the bit string in the header of multicast data packet 4. After comparing the bit string and F-BM, PE6 obtains the next hop. End.BIER is 3::2, and PE6 sends multicast data packet 5 based on multicast data packet 4 to PE5 from outbound interface 4.
表56
Table 56
此时,即使中间链路发生了故障,端到端的报文转发流程仍然能够持续进行。且故障后无需进行路由收敛,到达PE3上的组播数据报文也不会因为路由未完成收敛而被丢弃。At this time, even if the intermediate link fails, the end-to-end packet forwarding process can still continue. There is no need to perform route convergence after a fault, and multicast data packets arriving on PE3 will not be discarded because routes have not completed convergence.
附图42是本申请实施例提供的一种对应关系的获取装置700的结构示意图。对应关系的获取装置700设于第二站点内第二转发设备,包括接收单元701和处理单元702。FIG42 is a schematic diagram of a structure of a corresponding relationship acquisition device 700 provided in an embodiment of the present application. The corresponding relationship acquisition device 700 is arranged in a second forwarding device in a second site, and includes a receiving unit 701 and a processing unit 702.
接收单元701,用于接收来自第一站点内第一转发设备的第一参数集,第一参数集包括第一任播标签、第一转发设备的BFR-ID以及第一转发设备的BFR prefix,第一任播标签用于标识第一站点;接收单元701,还用于接收来自第一站点内第三转发设备的第二参数集,第二参数集包括第二任播标签、第 三转发设备的BFR-ID以及第三转发设备的BFR prefix,第二任播标签用于标识第一站点;The receiving unit 701 is configured to receive the first parameter set from the first forwarding device in the first site, where the first parameter set includes the first anycast label, the BFR-ID of the first forwarding device, and the BFR prefix of the first forwarding device, The first anycast label is used to identify the first site; the receiving unit 701 is also used to receive a second parameter set from the third forwarding device in the first site. The second parameter set includes the second anycast label, the third The BFR-ID of the third forwarding device and the BFR prefix of the third forwarding device, and the second anycast label is used to identify the first site;
处理单元702,用于基于第一参数集以及第三转发设备的BFR-ID获得第一对应关系,第一对应关系包括与第一转发设备的BFR-ID以及第三转发设备的BFR-ID匹配的转发比特掩码F-BM、第一任播标签以及与第一转发设备的BFR prefix匹配的下一跳;处理单元702,还用于基于第二参数集以及第一转发设备的BFR-ID获得第二对应关系,第二对应关系包括与第一转发设备的BFR-ID以及第三转发设备的BFR-ID匹配的F-BM、第二任播标签以及与第三转发设备的BFR prefix匹配的下一跳。The processing unit 702 is configured to obtain a first corresponding relationship based on the first parameter set and the BFR-ID of the third forwarding device. The first corresponding relationship includes matching the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device. The forwarding bit mask F-BM, the first anycast label and the next hop matching the BFR prefix of the first forwarding device; the processing unit 702 is also configured to based on the second parameter set and the BFR-ID of the first forwarding device Obtain a second correspondence relationship, which includes an F-BM that matches the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device, a second anycast label, and a BFR prefix that matches the third forwarding device. the next hop.
在一些实施方式中,处理单元702,用于基于第一任播标签以及第二任播标签,确定第一转发设备以及第三转发设备属于第一站点;基于第一转发设备的BFR-ID以及第三转发设备的BFR-ID,获得F-BM;基于F-BM、第一任播标签以及第一转发设备的BFR prefix,获得第一对应关系,第一对应关系包括F-BM、第一任播标签以及第一转发设备的BFR prefix。In some embodiments, the processing unit 702 is used to determine that the first forwarding device and the third forwarding device belong to the first site based on the first anycast label and the second anycast label; obtain the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device; obtain a first corresponding relationship based on the F-BM, the first anycast label and the BFR prefix of the first forwarding device, and the first corresponding relationship includes the F-BM, the first anycast label and the BFR prefix of the first forwarding device.
在一些实施方式中,处理单元702,用于基于第一任播标签以及第二任播标签,确定第一转发设备以及第三转发设备属于第一站点;基于第一转发设备的BFR-ID以及第三转发设备的BFR-ID,获得F-BM;基于第一转发设备的BFR prefix,确定第二转发设备上到达第一转发设备的第一出接口;基于F-BM、第一任播标签、第一转发设备的BFR prefix以及第一出接口,获得第一对应关系,第一对应关系包括F-BM、第一任播标签、第一转发设备的BFR prefix以及第一出接口。In some embodiments, the processing unit 702 is used to determine that the first forwarding device and the third forwarding device belong to the first site based on the first anycast label and the second anycast label; obtain the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device; determine the first outbound interface on the second forwarding device to reach the first forwarding device based on the BFR prefix of the first forwarding device; obtain a first correspondence based on the F-BM, the first anycast label, the BFR prefix of the first forwarding device, and the first outbound interface, the first correspondence including the F-BM, the first anycast label, the BFR prefix of the first forwarding device, and the first outbound interface.
在一些实施方式中,处理单元702,用于基于第一任播标签以及第二任播标签确定第一转发设备以及第三转发设备均属于第一站点;基于第一转发设备的BFR-ID以及第三转发设备的BFR-ID,获得F-BM;基于F-BM、第二任播标签以及第三转发设备的BFR prefix,获得第二对应关系,第二对应关系包括F-BM、第二任播标签以及第三转发设备的BFR prefix。In some embodiments, the processing unit 702 is configured to determine based on the first anycast label and the second anycast label that both the first forwarding device and the third forwarding device belong to the first site; based on the BFR-ID of the first forwarding device and The BFR-ID of the third forwarding device is used to obtain F-BM; based on the F-BM, the second anycast label and the BFR prefix of the third forwarding device, the second corresponding relationship is obtained. The second corresponding relationship includes F-BM, the second Anycast label and BFR prefix of the third forwarding device.
在一些实施方式中,处理单元702,用于基于第一任播标签以及第二任播标签确定第一转发设备以及第三转发设备均属于第一站点;基于第一转发设备的BFR-ID以及第三转发设备的BFR-ID,获得F-BM;基于第三转发设备的BFR prefix,确定第二转发设备上到达第三转发设备的第二出接口;基于F-BM、第二任播标签、第三转发设备的BFR prefix以及第二出接口,获得第二对应关系,第二对应关系包括F-BM、第二任播标签、第三转发设备的BFR prefix以及第二出接口。In some embodiments, the processing unit 702 is configured to determine based on the first anycast label and the second anycast label that both the first forwarding device and the third forwarding device belong to the first site; based on the BFR-ID of the first forwarding device and Obtain the F-BM based on the BFR-ID of the third forwarding device; determine the second outbound interface on the second forwarding device to the third forwarding device based on the BFR prefix of the third forwarding device; based on the F-BM and the second anycast label , the BFR prefix of the third forwarding device and the second outgoing interface, and obtain a second corresponding relationship. The second corresponding relationship includes the F-BM, the second anycast label, the BFR prefix of the third forwarding device and the second outgoing interface.
在一些实施方式中,第一任播标签和第二任播标签均为标签;或,第一任播标签和第二任播标签均为IPv6目的地址。In some implementations, both the first anycast label and the second anycast label are labels; or, the first anycast label and the second anycast label are both IPv6 destination addresses.
在一些实施方式中,第一参数集还包括第一转发设备的比特串长度BSL、第一转发设备所属的集合标识SI以及第一转发设备所处的BIER子域的标识其中的一个或多个;In some embodiments, the first parameter set further includes one or more of the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the identifier of the BIER subdomain where the first forwarding device is located. ;
第二参数集还包括第三转发设备的比特串长度BSL、第三转发设备所属的集合标识SI以及第三转发设备所处的BIER子域的标识其中的一个或多个。The second parameter set also includes one or more of the bit string length BSL of the third forwarding device, the set identifier SI to which the third forwarding device belongs, and the identifier of the BIER subdomain in which the third forwarding device is located.
在一些实施方式中,接收单元701,用于接收来自第一转发设备的第一通告报文,第一通告报文包括BIER信息子TLV,BIER信息子TLV包括第一任播标签;接收来自第一站点内第一转发设备的第二通告报文,第二通告报文包括BIER信息子TLV,BIER信息子TLV包括第二任播标签。In some embodiments, the receiving unit 701 is configured to receive a first advertisement message from the first forwarding device, the first advertisement message includes a BIER information sub-TLV, and the BIER information sub-TLV includes a first anycast label; receiving the first advertisement message from the first forwarding device. The second advertisement message of the first forwarding device in a site, the second advertisement message includes the BIER information sub-TLV, and the BIER information sub-TLV includes the second anycast label.
在一些实施方式中,第一通告报文以及第二通告报文为IGP报文;或者,第一通告报文以及第二通告报文为BGP报文。In some implementations, the first advertisement message and the second advertisement message are IGP messages; or the first advertisement message and the second advertisement message are BGP messages.
在一些实施方式中,第一转发设备为BFER,第二转发设备为transit BFR;或者,第一转发设备为transit BFR,第二转发设备为BFIR;或者,第一转发设备以及第二转发设备为相邻的transit BFR。In some embodiments, the first forwarding device is a BFER and the second forwarding device is a transit BFR; or, the first forwarding device is a transit BFR and the second forwarding device is a BFIR; or, the first forwarding device and the second forwarding device are adjacent transit BFRs.
在一些实施方式中,处理单元702,还用于:获得第一BIER报文,第一BIER报文包括第一比特串、 第二转发设备的标签以及组播数据报文,第一比特串与第一转发设备的BFR-ID和第三转发设备的BFR-ID中的一个或多个对应;基于第一BIER报文以及第一对应关系获得第二BIER报文,第二BIER报文包括第二比特串、第一任播标签以及组播数据报文,第二比特串是基于第一比特串与第一对应关系中的F-BM获得的;装置还包括:发送单元,用于发送第二BIER报文。In some implementations, the processing unit 702 is also configured to: obtain a first BIER message, where the first BIER message includes a first bit string, The label of the second forwarding device and the multicast data message, the first bit string corresponds to one or more of the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device; based on the first BIER message and The first correspondence relationship obtains the second BIER message. The second BIER message includes the second bit string, the first anycast label and the multicast data message. The second bit string is based on the first bit string and the first correspondence relationship. obtained by the F-BM; the device further includes: a sending unit, used to send the second BIER message.
在一些实施方式中,发送单元,用于若与第一转发设备的BFR prefix匹配的下一跳处于故障状态,向第二对应关系中的与第三转发设备的BFR prefix匹配的下一跳发送第二BIER报文;或者,若与第三转发设备的BFR prefix匹配的下一跳处于故障状态,向第一对应关系中的与第一转发设备的BFR prefix匹配的下一跳发送第二BIER报文;或者,若与第一转发设备的BFR prefix匹配的下一跳和与第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,向与第一转发设备的BFR prefix匹配的下一跳和与第三转发设备的BFR prefix匹配的下一跳其中链路开销最小的一者发送第二BIER报文;或者,若与第一转发设备的BFR prefix匹配的下一跳和与第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,向与第一转发设备的BFR prefix匹配的下一跳和与第三转发设备的BFR prefix匹配的下一跳其中链路网络质量最高的一者发送第二BIER报文;或者,若与第一转发设备的BFR prefix匹配的下一跳和与第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,向与第一转发设备的BFR prefix匹配的下一跳和与第三转发设备的BFR prefix匹配的下一跳其中的任意一者发送第二BIER报文。In some embodiments, the sending unit is configured to, if the next hop matching the BFR prefix of the first forwarding device is in a fault state, send a message to the next hop matching the BFR prefix of the third forwarding device in the second correspondence relationship. The second BIER message; or, if the next hop matching the BFR prefix of the third forwarding device is in a fault state, send the second BIER message to the next hop matching the BFR prefix of the first forwarding device in the first correspondence relationship. message; or, if neither the next hop matching the BFR prefix of the first forwarding device nor the next hop matching the BFR prefix of the third forwarding device is in a fault state, forwarding the message to the next hop matching the BFR prefix of the first forwarding device. The next hop with the smallest link cost and the next hop that matches the BFR prefix of the third forwarding device sends the second BIER message; or, if the next hop that matches the BFR prefix of the first forwarding device and the next hop with the smallest link cost, the second BIER message is sent. None of the next hops matching the BFR prefix of the third forwarding device are in a fault state, and the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device are in the link network. The one with the highest quality sends the second BIER message; or, if the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device are not in a fault state, send the second BIER message to the Either one of the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device sends the second BIER message.
附图42所描述的装置实施例仅仅是示意性的,例如,上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。The device embodiment described in Figure 42 is only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other divisions. For example, multiple units or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented. Each functional unit in various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
对应关系的获取装置700中的各个单元全部或部分地通过软件、硬件、固件或者其任意组合来实现。Each unit in the correspondence relationship acquisition device 700 is implemented in whole or in part by software, hardware, firmware, or any combination thereof.
下面结合后文描述的硬件装置900,描述使用硬件或软件来实现对应关系的获取装置700中的各个功能单元的一些可能实现方式。The following describes some possible implementations of each functional unit in the acquisition device 700 using hardware or software to implement the corresponding relationship in conjunction with the hardware device 900 described below.
在采用软件实现的情况下,例如,上述处理单元702是由附图44中的至少一个处理器901读取存储器902中存储的程序代码后,生成的软件功能单元来实现。In the case of software implementation, for example, the above-mentioned processing unit 702 is implemented by a software functional unit generated by at least one processor 901 in FIG. 44 after reading the program code stored in the memory 902.
在采用硬件实现的情况下,例如,附图42中上述各个单元由转发设备中的不同硬件分别实现,例如处理单元702由附图44中的至少一个处理器901中的一部分处理资源(例如多核处理器中的一个核或两个核)实现,或者采用现场可编程门阵列(field-programmable gate array,FPGA)、或协处理器等可编程器件来完成。接收单元701由附图44中的网络接口903实现。In the case of hardware implementation, for example, the above-mentioned units in Figure 42 are respectively implemented by different hardware in the forwarding device. For example, the processing unit 702 is implemented by a part of the processing resources (such as multi-core) in at least one processor 901 in Figure 44 One core or two cores in the processor), or using programmable devices such as field-programmable gate array (FPGA) or co-processor. The receiving unit 701 is implemented by the network interface 903 in Figure 44.
附图43是本申请实施例提供的一种参数通告装置800的结构示意图,装置800设于第一站点内第一转发设备,包括:处理单元801,用于获得第一参数集,第一参数集包括第一任播标签、第一转发设备的BFR-ID以及第一转发设备的BFR prefix,第一任播标签用于标识第一站点;发送单元802,用于向第二站点内第二转发设备发送第一参数集。Figure 43 is a schematic structural diagram of a parameter notification device 800 provided by an embodiment of the present application. The device 800 is located on the first forwarding device in the first site and includes: a processing unit 801 for obtaining the first parameter set, the first parameter The set includes a first anycast label, a BFR-ID of the first forwarding device and a BFR prefix of the first forwarding device. The first anycast label is used to identify the first site; the sending unit 802 is used to send a message to the second site in the second site. The forwarding device sends the first parameter set.
在一些实施方式中,第一任播标签为标签或IPv6目的地址。In some implementations, the first anycast label is a label or an IPv6 destination address.
在一些实施方式中,第一参数集还包括第一转发设备的比特串长度BSL、第一转发设备所属的集合标识SI以及第一转发设备所处的BIER子域的标识其中的一个或多个。In some embodiments, the first parameter set further includes one or more of the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the identifier of the BIER subdomain where the first forwarding device is located. .
在一些实施方式中,发送单元802,用于向第二转发设备发送第一通告报文,第一通告报文包括BIER信息子TLV,BIER信息子TLV包括第一任播标签。In some implementations, the sending unit 802 is configured to send a first notification message to the second forwarding device, where the first notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes a first anycast label.
在一些实施方式中,第一通告报文为IGP报文或者BGP报文。 In some implementations, the first advertisement message is an IGP message or a BGP message.
在一些实施方式中,第一转发设备为BFER,第二转发设备为transit BFR;或者,第一转发设备为transit BFR,第二转发设备为BFIR;或者,第一转发设备以及第二转发设备为相邻的transit BFR。In some implementations, the first forwarding device is a BFER and the second forwarding device is a transit BFR; or the first forwarding device is a transit BFR and the second forwarding device is a BFIR; or the first forwarding device and the second forwarding device are Adjacent transit BFR.
在一些实施方式中,装置还包括:接收单元,用于接收来自第一站点内第三转发设备的第三参数集,第三参数集包括第一bypass标签、第三转发设备的BFR-ID以及第三转发设备的BFR prefix,第一bypass标签用于标识第三转发设备;In some implementations, the apparatus further includes: a receiving unit configured to receive a third parameter set from a third forwarding device in the first site, where the third parameter set includes a first bypass label, a BFR-ID of the third forwarding device, and BFR prefix of the third forwarding device, the first bypass label is used to identify the third forwarding device;
处理单元801,还用于基于第三参数集获得第三对应关系,第三对应关系包括第一bypass标签、与第三转发设备的BFR-ID匹配的F-BM以及与第三转发设备的BFR prefix匹配的下一跳。The processing unit 801 is also configured to obtain a third correspondence based on the third parameter set. The third correspondence includes the first bypass tag, the F-BM matching the BFR-ID of the third forwarding device, and the BFR of the third forwarding device. The next hop that prefix matches.
在一些实施方式中,接收单元,还用于接收第一BIER报文,第一BIER报文包括第三转发设备的BFR-ID对应的第一比特串、第一任播标签以及组播数据报文;处理单元801,还用于基于第一BIER报文以及第三对应关系获得第二BIER报文,第二BIER报文包括第二比特串、第一bypass标签以及组播数据报文,第二比特串是基于第一比特串与第三对应关系中的F-BM获得的比特串;发送单元802,还用于向第三转发设备发送第二BIER报文。In some embodiments, the receiving unit is also configured to receive a first BIER message, where the first BIER message includes a first bit string corresponding to the BFR-ID of the third forwarding device, a first anycast label, and a multicast datagram. The processing unit 801 is also configured to obtain a second BIER message based on the first BIER message and the third corresponding relationship. The second BIER message includes the second bit string, the first bypass label and the multicast data message. The two-bit string is a bit string obtained based on the F-BM in the first bit string and the third corresponding relationship; the sending unit 802 is also used to send the second BIER message to the third forwarding device.
在一些实施方式中,处理单元801,还用于获得第四参数集,第四参数集包括第二bypass标签、第一转发设备的BFR-ID以及第一转发设备的BFR prefix,第二bypass标签用于标识第一转发设备;发送单元802,还用于向第三转发设备发送第四参数集。In some embodiments, the processing unit 801 is also used to obtain a fourth parameter set. The fourth parameter set includes the second bypass label, the BFR-ID of the first forwarding device, and the BFR prefix of the first forwarding device. The second bypass label Used to identify the first forwarding device; the sending unit 802 is also used to send the fourth parameter set to the third forwarding device.
附图43所描述的装置实施例仅仅是示意性的,例如,上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。在本申请各个实施例中的各功能单元可以集成在一个处理单元801中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。The device embodiment described in Figure 43 is only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other divisions. For example, multiple units or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented. Each functional unit in various embodiments of the present application can be integrated into one processing unit 801, or each unit can exist physically alone, or two or more units can be integrated into one unit.
参数通告装置800中的各个单元全部或部分地通过软件、硬件、固件或者其任意组合来实现。Each unit in the parameter notification device 800 is implemented in whole or in part by software, hardware, firmware, or any combination thereof.
下面结合后文描述的硬件装置900,描述使用硬件或软件来实现参数通告装置800中的各个功能单元的一些可能实现方式。Some possible implementations of using hardware or software to implement each functional unit in the parameter notification device 800 are described below in conjunction with the hardware device 900 described below.
在采用软件实现的情况下,例如,上述处理单元801是由附图44中的至少一个处理器901读取存储器902中存储的程序代码后,生成的软件功能单元来实现。In the case of software implementation, for example, the above-mentioned processing unit 801 is implemented by a software functional unit generated by at least one processor 901 in FIG. 44 after reading the program code stored in the memory 902.
在采用硬件实现的情况下,例如,附图43中上述各个单元由转发设备中的不同硬件分别实现,例如处理单元801由附图44中的至少一个处理器901中的一部分处理资源(例如多核处理器中的一个核或两个核)实现,或者采用现场可编程门阵列(field-programmable gate array,FPGA)、或协处理器等可编程器件来完成。发送单元802由附图44中的网络接口903实现。In the case of hardware implementation, for example, the above-mentioned units in Figure 43 are respectively implemented by different hardware in the forwarding device. For example, the processing unit 801 is implemented by a part of the processing resources (such as multi-core) in at least one processor 901 in Figure 44 One core or two cores in the processor), or using programmable devices such as field-programmable gate array (FPGA) or co-processor. The sending unit 802 is implemented by the network interface 903 in Figure 44.
附图44是本申请实施例提供的一种转发设备900的结构示意图。Figure 44 is a schematic structural diagram of a forwarding device 900 provided by an embodiment of the present application.
转发设备900包括至少一个处理器901、存储器902以及至少一个网络接口903。The forwarding device 900 includes at least one processor 901, a memory 902, and at least one network interface 903.
处理器901例如是通用中央处理器(central processing unit,CPU)、网络处理器(network processer,NP)、图形处理器(graphics processing unit,GPU)、神经网络处理器(neural-network processing units,NPU)、数据处理单元(data processing unit,DPU)、微处理器或者一个或多个用于实现本申请方案的集成电路。例如,处理器901包括专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。PLD例如是复杂可编程逻辑器件(complex programmable logic device,CPLD)、现场可编程逻辑门阵列(field-programmable gate array,FPGA)、通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor 901 is, for example, a general central processing unit (CPU), a network processor (NP), a graphics processing unit (GPU), or a neural network processor (neural-network processing units, NPU). ), a data processing unit (DPU), a microprocessor or one or more integrated circuits used to implement the solution of the present application. For example, the processor 901 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
存储器902例如是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的 静态存储设备,又如是随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,又如是电可擦可编程只读存储器(electrically erasable programmable read-only Memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。可选地,存储器902独立存在,并通过内部连接904与处理器901相连接。或者,可选地存储器902和处理器901集成在一起。The memory 902 is, for example, a read-only memory (ROM) or other type that can store static information and instructions. Static storage devices, such as random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disk storage media or other magnetic disks A storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. Optionally, the memory 902 exists independently and is connected to the processor 901 through an internal connection 904. Alternatively, memory 902 and processor 901 may optionally be integrated together.
网络接口903使用任何收发器一类的装置,用于与其它设备或通信网络通信。网络接口903例如包括有线网络接口或者无线网络接口中的至少一项。其中,有线网络接口例如为以太网接口。以太网接口例如是光接口,电接口或其组合。无线网络接口例如为无线局域网(wireless local area networks,WLAN)接口,蜂窝网络网络接口或其组合等。Network interface 903 uses any transceiver-like device for communicating with other devices or communications networks. The network interface 903 includes, for example, at least one of a wired network interface or a wireless network interface. The wired network interface is, for example, an Ethernet interface. The Ethernet interface is, for example, an optical interface, an electrical interface or a combination thereof. The wireless network interface is, for example, a wireless local area network (WLAN) interface, a cellular network network interface or a combination thereof.
在一些实施例中,处理器901包括一个或多个CPU,如附图44中所示的CPU0和CPU1。In some embodiments, processor 901 includes one or more CPUs, such as CPU0 and CPU1 shown in Figure 44.
在一些实施例中,转发设备900可选地包括多个处理器,如附图44中所示的处理器901和处理器905。这些处理器中的每一个例如是一个单核处理器(single-CPU),又如是一个多核处理器(multi-CPU)。这里的处理器可选地指一个或多个设备、电路、和/或用于处理数据(如计算机程序指令)的处理核。In some embodiments, forwarding device 900 optionally includes multiple processors, such as processor 901 and processor 905 shown in Figure 44. Each of these processors is, for example, a single-core processor (single-CPU) or a multi-core processor (multi-CPU). Processor here optionally refers to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
在一些实施例中,转发设备900还包括内部连接904。处理器901、存储器902以及至少一个网络接口903通过内部连接904连接。内部连接904包括通路,在上述组件之间传送信息。可选地,内部连接904是单板或总线。可选地,内部连接904分为地址总线、数据总线、控制总线等。In some embodiments, forwarding device 900 also includes an internal connection 904. The processor 901, the memory 902 and at least one network interface 903 are connected through an internal connection 904. Internal connections 904 include pathways that carry information between the components described above. Optionally, internal connection 904 is a single board or bus. Optionally, the internal connections 904 are divided into address bus, data bus, control bus, etc.
在一些实施例中,转发设备900还包括输入输出接口906。输入输出接口906连接到内部连接904上。In some embodiments, the forwarding device 900 also includes an input and output interface 906. Input/output interface 906 is connected to internal connection 904 .
可选地,处理器901通过读取存储器902中保存的程序代码实现上述实施例中的方法,或者,处理器901通过内部存储的程序代码实现上述实施例中的方法。在处理器901通过读取存储器902中保存的程序代码实现上述实施例中的方法的情况下,存储器902中保存实现本申请实施例提供的方法的程序代码910。Optionally, the processor 901 implements the method in the above embodiment by reading the program code stored in the memory 902, or the processor 901 implements the method in the above embodiment by using the internally stored program code. In the case where the processor 901 implements the method in the above embodiment by reading the program code stored in the memory 902, the memory 902 stores the program code 910 that implements the method provided by the embodiment of the present application.
处理器901实现上述功能的更多细节请参考前面各个方法实施例中的描述,在这里不再重复。For more details on how the processor 901 implements the above functions, please refer to the descriptions in the previous method embodiments, which will not be repeated here.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分可互相参考,每个实施例重点说明的都是与其他实施例的不同之处。Each embodiment in this specification is described in a progressive manner. The same and similar parts between the various embodiments can be referred to each other. Each embodiment focuses on its differences from other embodiments.
A参考B,指的是A与B相同或者A为B的简单变形。A refers to B, which means that A is the same as B or that A is a simple transformation of B.
本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序,也不能理解为指示或暗示相对重要性。例如,第一对应关系和第二对应关系用于区别不同的对应关系,而不是用于描述对应关系的特定顺序,也不能理解为第一对应关系比第二对应关系更重要。The terms "first" and "second" in the description and claims of the embodiments of this application are used to distinguish different objects, rather than to describe a specific order of objects, and cannot be understood to indicate or imply relative importance. sex. For example, the first correspondence relationship and the second correspondence relationship are used to distinguish different correspondence relationships, but are not used to describe a specific order of the correspondence relationships, nor can it be understood that the first correspondence relationship is more important than the second correspondence relationship.
本申请实施例,除非另有说明,“至少一个”的含义是指一个或多个,“多个”的含义是指两个或两个以上。例如,多个对应关系是指两个或两个以上的对应关系。In the embodiments of this application, unless otherwise stated, “at least one” means one or more, and “plurality” means two or more. For example, multiple correspondences refer to two or more correspondences.
上述实施例可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例描述的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读 存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored in a computer-readable In a storage medium, or from one computer-readable storage medium to another computer-readable storage medium, for example, computer instructions may be transmitted from a website, computer, server, or data center over wires (e.g., coaxial cables, optical fiber, digital subscriber (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website, computer, server or data center. Computer-readable storage media can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or other integrated media that contains one or more available media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。 The above embodiments are only used to illustrate the technical solutions of the present application, but are not intended to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments. Modifications may be made to the recorded technical solutions, or equivalent substitutions may be made to some of the technical features; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of the present application.

Claims (45)

  1. 一种对应关系的获取方法,其特征在于,包括:A method for obtaining a correspondence relationship, which is characterized by including:
    第二站点内第二转发设备接收来自第一站点内第一转发设备的第一参数集,所述第一参数集包括第一任播标签、所述第一转发设备的BFR-ID以及所述第一转发设备的BFR prefix,所述第一任播标签用于标识所述第一站点;The second forwarding device in the second site receives the first parameter set from the first forwarding device in the first site. The first parameter set includes the first anycast tag, the BFR-ID of the first forwarding device and the BFR prefix of the first forwarding device, the first anycast label is used to identify the first site;
    所述第二转发设备接收来自所述第一站点内第三转发设备的第二参数集,所述第二参数集包括第二任播标签、所述第三转发设备的BFR-ID以及所述第三转发设备的BFR prefix,所述第二任播标签用于标识所述第一站点;The second forwarding device receives a second parameter set from a third forwarding device in the first site, the second parameter set including a second anycast label, a BFR-ID of the third forwarding device, and a BFR prefix of the third forwarding device, the second anycast label being used to identify the first site;
    所述第二转发设备基于所述第一参数集以及所述第三转发设备的BFR-ID获得第一对应关系,所述第一对应关系包括与所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID匹配的转发比特掩码F-BM、所述第一任播标签以及与所述第一转发设备的BFR prefix匹配的下一跳;The second forwarding device obtains a first corresponding relationship based on the first parameter set and the BFR-ID of the third forwarding device. The first corresponding relationship includes the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device. The forwarding bit mask F-BM matched by the BFR-ID of the third forwarding device, the first anycast label and the next hop matching the BFR prefix of the first forwarding device;
    所述第二转发设备基于所述第二参数集以及所述第一转发设备的BFR-ID获得第二对应关系,所述第二对应关系包括与所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID匹配的F-BM、所述第二任播标签以及与所述第三转发设备的BFR prefix匹配的下一跳。The second forwarding device obtains a second corresponding relationship based on the second parameter set and the BFR-ID of the first forwarding device. The second corresponding relationship includes the BFR-ID of the first forwarding device and the BFR-ID of the first forwarding device. The F-BM that matches the BFR-ID of the third forwarding device, the second anycast label, and the next hop that matches the BFR prefix of the third forwarding device.
  2. 根据权利要求1所述的方法,其特征在于,所述第二转发设备基于所述第一参数集以及所述第三转发设备的BFR-ID获得第一对应关系,包括:The method of claim 1, wherein the second forwarding device obtains the first correspondence based on the first parameter set and the BFR-ID of the third forwarding device, including:
    所述第二转发设备基于所述第一任播标签以及所述第二任播标签,确定所述第一转发设备以及所述第三转发设备属于所述第一站点;The second forwarding device determines that the first forwarding device and the third forwarding device belong to the first site based on the first anycast tag and the second anycast tag;
    所述第二转发设备基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;The second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device;
    所述第二转发设备基于所述F-BM、所述第一任播标签以及所述第一转发设备的BFR prefix,获得所述第一对应关系,所述第一对应关系包括所述F-BM、所述第一任播标签以及所述第一转发设备的BFR prefix。The second forwarding device obtains the first corresponding relationship based on the F-BM, the first anycast label and the BFR prefix of the first forwarding device, and the first corresponding relationship includes the F- BM, the first anycast label and the BFR prefix of the first forwarding device.
  3. 根据权利要求1所述的方法,其特征在于,所述第二转发设备基于所述第一参数集以及所述第三转发设备的BFR-ID获得第一对应关系,包括:The method of claim 1, wherein the second forwarding device obtains the first correspondence based on the first parameter set and the BFR-ID of the third forwarding device, including:
    所述第二转发设备基于所述第一任播标签以及所述第二任播标签,确定所述第一转发设备以及所述第三转发设备属于所述第一站点;The second forwarding device determines that the first forwarding device and the third forwarding device belong to the first site based on the first anycast tag and the second anycast tag;
    所述第二转发设备基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;The second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device;
    所述第二转发设备基于所述第一转发设备的BFR prefix,确定所述第二转发设备上到达所述第一转发设备的第一出接口;The second forwarding device determines the first outbound interface on the second forwarding device that reaches the first forwarding device based on the BFR prefix of the first forwarding device;
    所述第二转发设备基于所述F-BM、所述第一任播标签、所述第一转发设备的BFR prefix以及所述第一出接口,获得所述第一对应关系,所述第一对应关系包括所述F-BM、所述第一任播标签、所述第一转发设备的BFR prefix以及所述第一出接口。The second forwarding device obtains the first corresponding relationship based on the F-BM, the first anycast label, the BFR prefix of the first forwarding device, and the first outbound interface. The corresponding relationship includes the F-BM, the first anycast label, the BFR prefix of the first forwarding device, and the first outbound interface.
  4. 根据权利要求1至3任一所述的方法,其特征在于,所述第二转发设备基于所述第二参数集以及所述第一转发设备的BFR-ID获得第二对应关系,包括:The method according to any one of claims 1 to 3, characterized in that the second forwarding device obtains the second corresponding relationship based on the second parameter set and the BFR-ID of the first forwarding device, including:
    所述第二转发设备基于所述第一任播标签以及所述第二任播标签确定所述第一转发设备以及所述第三转发设备均属于所述第一站点;The second forwarding device determines that the first forwarding device and the third forwarding device both belong to the first site based on the first anycast tag and the second anycast tag;
    所述第二转发设备基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;The second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device;
    所述第二转发设备基于所述F-BM、所述第二任播标签以及所述第三转发设备的BFR prefix,获得所述第二对应关系,所述第二对应关系包括所述F-BM、所述第二任播标签以及所述第三转发设备的BFR prefix。The second forwarding device obtains the second correspondence based on the F-BM, the second anycast label and the BFR prefix of the third forwarding device, and the second correspondence includes the F-BM, the second anycast label and the BFR prefix of the third forwarding device.
  5. 根据权利要求1至3任一所述的方法,其特征在于,所述第二转发设备基于所述第二参数集以及所述第一转发设备的BFR-ID获得第二对应关系,包括:The method according to any one of claims 1 to 3, characterized in that the second forwarding device obtains the second corresponding relationship based on the second parameter set and the BFR-ID of the first forwarding device, including:
    所述第二转发设备基于所述第一任播标签以及所述第二任播标签确定所述第一转发设备以及所述 第三转发设备均属于所述第一站点;The second forwarding device determines the first forwarding device and the first anycast tag based on the first anycast tag and the second anycast tag. The third forwarding devices all belong to the first site;
    所述第二转发设备基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;The second forwarding device obtains the F-BM based on the BFR-ID of the first forwarding device and the BFR-ID of the third forwarding device;
    所述第二转发设备基于所述第三转发设备的BFR prefix,确定所述第二转发设备上到达所述第三转发设备的第二出接口;The second forwarding device determines the second outbound interface on the second forwarding device that reaches the third forwarding device based on the BFR prefix of the third forwarding device;
    所述第二转发设备基于所述F-BM、所述第二任播标签、所述第三转发设备的BFR prefix以及所述第二出接口,获得所述第二对应关系,所述第二对应关系包括所述F-BM、所述第二任播标签、所述第三转发设备的BFR prefix以及所述第二出接口。The second forwarding device obtains the second corresponding relationship based on the F-BM, the second anycast label, the BFR prefix of the third forwarding device, and the second outbound interface. The corresponding relationship includes the F-BM, the second anycast label, the BFR prefix of the third forwarding device, and the second outbound interface.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述第一任播标签和所述第二任播标签均为标签;或The method according to any one of claims 1 to 5, characterized in that the first anycast tag and the second anycast tag are both tags; or
    所述第一任播标签和所述第二任播标签均为IPv6目的地址。The first anycast label and the second anycast label are both IPv6 destination addresses.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述第一参数集还包括所述第一转发设备的比特串长度BSL、所述第一转发设备所属的集合标识SI以及所述第一转发设备所处的BIER子域的标识其中的一个或多个;The method according to any one of claims 1 to 6, characterized in that the first parameter set further includes a bit string length BSL of the first forwarding device, a set identifier SI to which the first forwarding device belongs. and one or more identifiers of the BIER subdomain where the first forwarding device is located;
    所述第二参数集还包括所述第三转发设备的比特串长度BSL、所述第三转发设备所属的集合标识SI以及所述第三转发设备所处的BIER子域的标识其中的一个或多个。The second parameter set further includes one of the bit string length BSL of the third forwarding device, the set identifier SI to which the third forwarding device belongs, and the identifier of the BIER subdomain where the third forwarding device is located, or Multiple.
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述第二站点内第二转发设备接收来自第一站点内第一转发设备的第一参数集,包括:所述第二转发设备接收来自所述第一转发设备的第一通告报文,所述第一通告报文包括BIER信息子TLV,所述BIER信息子TLV包括所述第一任播标签;The method according to any one of claims 1 to 7, characterized in that the second forwarding device in the second site receives the first parameter set from the first forwarding device in the first site, including: The second forwarding device receives the first notification message from the first forwarding device, the first notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes the first anycast label;
    所述第二转发设备接收来自所述第一站点内第三转发设备的第二参数集,包括:所述第二转发设备接收来自所述第一站点内第一转发设备的第二通告报文,所述第二通告报文包括BIER信息子TLV,所述BIER信息子TLV包括所述第二任播标签。The second forwarding device receives a second parameter set from a third forwarding device in the first site, including: the second forwarding device receives a second notification message from the first forwarding device in the first site, the second notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes the second anycast label.
  9. 根据权利要求8所述的方法,其特征在于,所述第一通告报文以及所述第二通告报文为IGP报文;或者The method according to claim 8, characterized in that the first notification message and the second notification message are IGP messages; or
    所述第一通告报文以及所述第二通告报文为BGP报文。The first advertisement message and the second advertisement message are BGP messages.
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,所述第一转发设备为BFER,所述第二转发设备为transit BFR;或者,The method according to any one of claims 1 to 9, characterized in that the first forwarding device is a BFER, and the second forwarding device is a transit BFR; or,
    所述第一转发设备为transit BFR,所述第二转发设备为BFIR;或者,The first forwarding device is transit BFR, and the second forwarding device is BFIR; or,
    所述第一转发设备以及所述第二转发设备为相邻的transit BFR。The first forwarding device and the second forwarding device are adjacent transit BFRs.
  11. 根据权利要求1至10中任一项所述的方法,其特征在于,所述第二转发设备基于所述第一参数集以及所述第三转发设备的BFR-ID获得第一对应关系之后,所述方法还包括:The method according to any one of claims 1 to 10, characterized in that, after the second forwarding device obtains the first correspondence based on the first parameter set and the BFR-ID of the third forwarding device, The method also includes:
    所述第二转发设备获得第一BIER报文,所述第一BIER报文包括第一比特串、所述第二转发设备的标签以及组播数据报文,所述第一比特串与所述第一转发设备的BFR-ID和所述第三转发设备的BFR-ID中的一个或多个对应;The second forwarding device obtains a first BIER message. The first BIER message includes a first bit string, a label of the second forwarding device, and a multicast data message. The first bit string is identical to the first bit string. The BFR-ID of the first forwarding device corresponds to one or more of the BFR-IDs of the third forwarding device;
    所述第二转发设备基于所述第一BIER报文以及所述第一对应关系获得第二BIER报文,所述第二BIER报文包括第二比特串、所述第一任播标签以及所述组播数据报文,所述第二比特串是基于所述第一比特串与所述第一对应关系中的F-BM获得的;The second forwarding device obtains a second BIER message based on the first BIER message and the first corresponding relationship. The second BIER message includes a second bit string, the first anycast label and the first anycast label. In the multicast data message, the second bit string is obtained based on the F-BM in the first correspondence relationship between the first bit string and the first correspondence;
    所述第二转发设备发送所述第二BIER报文。The second forwarding device sends the second BIER message.
  12. 根据权利要求11所述的方法,其特征在于,所述第二转发设备发送所述第二BIER报文,包括:The method according to claim 11, characterized in that the second forwarding device sends the second BIER message, including:
    若所述与所述第一转发设备的BFR prefix匹配的下一跳处于故障状态,所述第二转发设备向所述第二对应关系中的所述与所述第三转发设备的BFR prefix匹配的下一跳发送所述第二BIER报文;或者,If the next hop matching the BFR prefix of the first forwarding device is in a fault state, the second forwarding device matches the BFR prefix of the third forwarding device in the second correspondence relationship. The next hop sends the second BIER message; or,
    若所述与所述第三转发设备的BFR prefix匹配的下一跳处于故障状态,所述第二转发设备向所述第一对应关系中的所述与所述第一转发设备的BFR prefix匹配的下一跳发送所述第二BIER报文;或者,If the next hop matching the BFR prefix of the third forwarding device is in a fault state, the second forwarding device matches the BFR prefix of the first forwarding device in the first correspondence relationship. The next hop sends the second BIER message; or,
    若所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,所述第二转发设备向所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳其中链路开销最小的一者发送所述第二BIER 报文;或者,If the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device are not in a faulty state, the second forwarding device sends the second BIER to the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device, whichever has the smallest link cost. message; or,
    若所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,所述第二转发设备向所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳其中链路网络质量最高的一者发送所述第二BIER报文;或者,If neither the next hop matching the BFR prefix of the first forwarding device nor the next hop matching the BFR prefix of the third forwarding device is in a fault state, the second forwarding device forwards the The one with the highest link network quality among the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device sends the second BIER message. text; or,
    若所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,所述第二转发设备向所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳其中的任意一者发送所述第二BIER报文。If neither the next hop matching the BFR prefix of the first forwarding device nor the next hop matching the BFR prefix of the third forwarding device is in a fault state, the second forwarding device forwards the Any one of the next hop matching the BFR prefix of the first forwarding device and the next hop matching the BFR prefix of the third forwarding device sends the second BIER message.
  13. 一种参数通告方法,其特征在于,包括:A parameter notification method, characterized by including:
    第一站点内第一转发设备获得第一参数集,所述第一参数集包括第一任播标签、所述第一转发设备的BFR-ID以及所述第一转发设备的BFR prefix,所述第一任播标签用于标识所述第一站点;The first forwarding device in the first site obtains a first parameter set, the first parameter set includes a first anycast label, the BFR-ID of the first forwarding device and the BFR prefix of the first forwarding device, the The first anycast tag is used to identify the first site;
    所述第一转发设备向第二站点内第二转发设备发送所述第一参数集。The first forwarding device sends the first parameter set to a second forwarding device in the second site.
  14. 根据权利要求13所述的方法,其特征在于,所述第一任播标签为标签或IPv6目的地址。The method according to claim 13, characterized in that the first anycast label is a label or an IPv6 destination address.
  15. 根据权利要求13或14所述的方法,其特征在于,所述第一参数集还包括所述第一转发设备的比特串长度BSL、所述第一转发设备所属的集合标识SI以及所述第一转发设备所处的BIER子域的标识其中的一个或多个。The method according to claim 13 or 14, characterized in that the first parameter set further includes a bit string length BSL of the first forwarding device, a set identifier SI to which the first forwarding device belongs and the first One or more of the identifiers of the BIER subdomain where the forwarding device is located.
  16. 根据权利要求13至15中任一项所述的方法,其特征在于,所述第一转发设备向第二站点内第二转发设备发送所述第一参数集,包括:The method according to any one of claims 13 to 15, characterized in that the first forwarding device sends the first parameter set to the second forwarding device in the second site, including:
    所述第一转发设备向所述第二转发设备发送第一通告报文,所述第一通告报文包括BIER信息子TLV,所述BIER信息子TLV包括所述第一任播标签。The first forwarding device sends a first notification message to the second forwarding device, where the first notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes the first anycast label.
  17. 根据权利要求16所述的方法,其特征在于,所述第一通告报文为IGP报文或者BGP报文。The method according to claim 16, characterized in that the first notification message is an IGP message or a BGP message.
  18. 根据权利要求13至17中任一项所述的方法,其特征在于,所述第一转发设备为BFER,所述第二转发设备为transit BFR;或者,The method according to any one of claims 13 to 17, characterized in that the first forwarding device is a BFER, and the second forwarding device is a transit BFR; or,
    所述第一转发设备为transit BFR,所述第二转发设备为BFIR;或者,The first forwarding device is transit BFR, and the second forwarding device is BFIR; or,
    所述第一转发设备以及所述第二转发设备为相邻的transit BFR。The first forwarding device and the second forwarding device are adjacent transit BFRs.
  19. 根据权利要求13至18中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 13 to 18, characterized in that the method further includes:
    所述第一转发设备接收来自所述第一站点内第三转发设备的第三参数集,所述第三参数集包括第一bypass标签、所述第三转发设备的BFR-ID以及所述第三转发设备的BFR prefix,所述第一bypass标签用于标识所述第三转发设备;The first forwarding device receives a third parameter set from a third forwarding device in the first site, where the third parameter set includes a first bypass label, the BFR-ID of the third forwarding device and the third The BFR prefix of the third forwarding device, the first bypass label is used to identify the third forwarding device;
    所述第一转发设备基于所述第三参数集获得第三对应关系,所述第三对应关系包括所述第一bypass标签、所述与第三转发设备的BFR-ID匹配的F-BM以及与所述第三转发设备的BFR prefix匹配的下一跳。The first forwarding device obtains a third correspondence based on the third parameter set, and the third correspondence includes the first bypass label, the F-BM matching the BFR-ID of the third forwarding device, and the next hop matching the BFR prefix of the third forwarding device.
  20. 根据权利要求19所述的方法,其特征在于,所述第一转发设备向第二站点内第二转发设备发送所述第一参数集之后,所述方法还包括:The method according to claim 19, characterized in that after the first forwarding device sends the first parameter set to the second forwarding device in the second site, the method further includes:
    所述第一转发设备接收第一BIER报文,所述第一BIER报文包括所述第三转发设备的BFR-ID对应的第一比特串、所述第一任播标签以及组播数据报文;The first forwarding device receives a first BIER message. The first BIER message includes a first bit string corresponding to the BFR-ID of the third forwarding device, the first anycast label and a multicast datagram. arts;
    所述第一转发设备基于所述第一BIER报文以及所述第三对应关系获得第二BIER报文,所述第二BIER报文包括第二比特串、所述第一bypass标签以及所述组播数据报文,所述第二比特串是基于所述第一比特串与所述第三对应关系中的F-BM获得的比特串;The first forwarding device obtains a second BIER message based on the first BIER message and the third corresponding relationship. The second BIER message includes a second bit string, the first bypass label and the Multicast data message, the second bit string is a bit string obtained based on the F-BM in the first bit string and the third corresponding relationship;
    所述第一转发设备向所述第三转发设备发送所述第二BIER报文。The first forwarding device sends the second BIER message to the third forwarding device.
  21. 根据权利要求13至20中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 13 to 20, characterized in that the method further includes:
    所述第一转发设备获得第四参数集,所述第四参数集包括第二bypass标签、所述第一转发设备的BFR-ID以及所述第一转发设备的BFR prefix,所述第二bypass标签用于标识所述第一转发设备;The first forwarding device obtains a fourth parameter set. The fourth parameter set includes a second bypass tag, the BFR-ID of the first forwarding device, and the BFR prefix of the first forwarding device. The second bypass The label is used to identify the first forwarding device;
    所述第一转发设备向所述第三转发设备发送所述第四参数集。The first forwarding device sends the fourth parameter set to the third forwarding device.
  22. 一种对应关系的获取装置,其特征在于,设于第二站点内第二转发设备,包括:A device for obtaining a correspondence relationship, which is characterized in that it is provided in the second forwarding device in the second site and includes:
    接收单元,用于接收来自第一站点内第一转发设备的第一参数集,所述第一参数集包括第一任播标 签、所述第一转发设备的BFR-ID以及所述第一转发设备的BFR prefix,所述第一任播标签用于标识所述第一站点;A receiving unit, configured to receive a first parameter set from a first forwarding device in the first site, where the first parameter set includes a first broadcast standard tag, the BFR-ID of the first forwarding device and the BFR prefix of the first forwarding device, the first anycast tag is used to identify the first site;
    所述接收单元,还用于接收来自所述第一站点内第三转发设备的第二参数集,所述第二参数集包括第二任播标签、所述第三转发设备的BFR-ID以及所述第三转发设备的BFR prefix,所述第二任播标签用于标识所述第一站点;The receiving unit is also configured to receive a second parameter set from a third forwarding device in the first site, where the second parameter set includes a second anycast tag, the BFR-ID of the third forwarding device, and The BFR prefix of the third forwarding device, the second anycast label is used to identify the first site;
    处理单元,用于基于所述第一参数集以及所述第三转发设备的BFR-ID获得第一对应关系,所述第一对应关系包括与所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID匹配的转发比特掩码F-BM、所述第一任播标签以及与所述第一转发设备的BFR prefix匹配的下一跳;A processing unit configured to obtain a first corresponding relationship based on the first parameter set and the BFR-ID of the third forwarding device, where the first corresponding relationship includes the BFR-ID of the first forwarding device and the The forwarding bit mask F-BM matched by the BFR-ID of the third forwarding device, the first anycast label and the next hop matching the BFR prefix of the first forwarding device;
    所述处理单元,还用于基于所述第二参数集以及所述第一转发设备的BFR-ID获得第二对应关系,所述第二对应关系包括与所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID匹配的F-BM、所述第二任播标签以及与所述第三转发设备的BFR prefix匹配的下一跳。The processing unit is further configured to obtain a second corresponding relationship based on the second parameter set and the BFR-ID of the first forwarding device, where the second corresponding relationship includes the BFR-ID of the first forwarding device. and the F-BM matching the BFR-ID of the third forwarding device, the second anycast label, and the next hop matching the BFR prefix of the third forwarding device.
  23. 根据权利要求22所述的装置,其特征在于,所述处理单元用于:The device according to claim 22, characterized in that the processing unit is used for:
    基于所述第一任播标签以及所述第二任播标签,确定所述第一转发设备以及所述第三转发设备属于所述第一站点;基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;基于所述F-BM、所述第一任播标签以及所述第一转发设备的BFR prefix,获得所述第一对应关系,所述第一对应关系包括所述F-BM、所述第一任播标签以及所述第一转发设备的BFR prefix。Based on the first anycast tag and the second anycast tag, it is determined that the first forwarding device and the third forwarding device belong to the first site; based on the BFR-ID of the first forwarding device and The BFR-ID of the third forwarding device is used to obtain the F-BM; based on the F-BM, the first anycast tag and the BFR prefix of the first forwarding device, the first corresponding relationship is obtained , the first corresponding relationship includes the F-BM, the first anycast label, and the BFR prefix of the first forwarding device.
  24. 根据权利要求22所述的装置,其特征在于,所述处理单元用于:The device according to claim 22, characterized in that the processing unit is used for:
    基于所述第一任播标签以及所述第二任播标签,确定所述第一转发设备以及所述第三转发设备属于所述第一站点;基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;基于所述第一转发设备的BFR prefix,确定所述第二转发设备上到达所述第一转发设备的第一出接口;基于所述F-BM、所述第一任播标签、所述第一转发设备的BFR prefix以及所述第一出接口,获得所述第一对应关系,所述第一对应关系包括所述F-BM、所述第一任播标签、所述第一转发设备的BFR prefix以及所述第一出接口。Based on the first anycast tag and the second anycast tag, it is determined that the first forwarding device and the third forwarding device belong to the first site; based on the BFR-ID of the first forwarding device and Obtain the F-BM based on the BFR-ID of the third forwarding device; determine the first outbound interface on the second forwarding device that reaches the first forwarding device based on the BFR prefix of the first forwarding device; The first correspondence relationship is obtained based on the F-BM, the first anycast label, the BFR prefix of the first forwarding device and the first outbound interface, and the first correspondence relationship includes the F -BM, the first anycast label, the BFR prefix of the first forwarding device, and the first outbound interface.
  25. 根据权利要求22至24任一所述的装置,其特征在于,所述处理单元用于:The device according to any one of claims 22 to 24, characterized in that the processing unit is used to:
    基于所述第一任播标签以及所述第二任播标签确定所述第一转发设备以及所述第三转发设备均属于所述第一站点;基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;基于所述F-BM、所述第二任播标签以及所述第三转发设备的BFR prefix,获得所述第二对应关系,所述第二对应关系包括所述F-BM、所述第二任播标签以及所述第三转发设备的BFR prefix。Based on the first anycast tag and the second anycast tag, it is determined that the first forwarding device and the third forwarding device both belong to the first site; based on the BFR-ID of the first forwarding device and The BFR-ID of the third forwarding device is used to obtain the F-BM; based on the F-BM, the second anycast tag and the BFR prefix of the third forwarding device, the second corresponding relationship is obtained , the second corresponding relationship includes the F-BM, the second anycast label, and the BFR prefix of the third forwarding device.
  26. 根据权利要求22至24任一所述的装置,其特征在于,所述处理单元用于:The device according to any one of claims 22 to 24, characterized in that the processing unit is used for:
    基于所述第一任播标签以及所述第二任播标签确定所述第一转发设备以及所述第三转发设备均属于所述第一站点;基于所述第一转发设备的BFR-ID以及所述第三转发设备的BFR-ID,获得所述F-BM;基于所述第三转发设备的BFR prefix,确定所述第二转发设备上到达所述第三转发设备的第二出接口;基于所述F-BM、所述第二任播标签、所述第三转发设备的BFR prefix以及所述第二出接口,获得所述第二对应关系,所述第二对应关系包括所述F-BM、所述第二任播标签、所述第三转发设备的BFR prefix以及所述第二出接口。It is determined based on the first anycast tag and the second anycast tag that both the first forwarding device and the third forwarding device belong to the first site; based on the BFR-ID of the first forwarding device and Obtain the F-BM based on the BFR-ID of the third forwarding device; determine the second outbound interface on the second forwarding device that reaches the third forwarding device based on the BFR prefix of the third forwarding device; The second correspondence relationship is obtained based on the F-BM, the second anycast label, the BFR prefix of the third forwarding device and the second outbound interface, and the second correspondence relationship includes the F -BM, the second anycast label, the BFR prefix of the third forwarding device, and the second outbound interface.
  27. 根据权利要求22至25中任一项所述的装置,其特征在于,所述第一任播标签和所述第二任播标签均为标签;或The device according to any one of claims 22 to 25, wherein the first anycast tag and the second anycast tag are both tags; or
    所述第一任播标签和所述第二任播标签均为IPv6目的地址。The first anycast label and the second anycast label are both IPv6 destination addresses.
  28. 根据权利要求22至27中任一项所述的装置,其特征在于,所述第一参数集还包括所述第一转发设备的比特串长度BSL、所述第一转发设备所属的集合标识SI以及所述第一转发设备所处的BIER子域的标识其中的一个或多个;The device according to any one of claims 22 to 27, wherein the first parameter set further includes a bit string length BSL of the first forwarding device, a set identifier SI to which the first forwarding device belongs. and one or more identifiers of the BIER subdomain where the first forwarding device is located;
    所述第二参数集还包括所述第三转发设备的比特串长度BSL、所述第三转发设备所属的集合标识SI以及所述第三转发设备所处的BIER子域的标识其中的一个或多个。The second parameter set also includes one or more of the bit string length BSL of the third forwarding device, the set identifier SI to which the third forwarding device belongs, and the identifier of the BIER subdomain in which the third forwarding device is located.
  29. 根据权利要求22至28中任一项所述的装置,其特征在于,所述接收单元用于:The device according to any one of claims 22 to 28, characterized in that the receiving unit is used for:
    接收来自所述第一转发设备的第一通告报文,所述第一通告报文包括BIER信息子TLV,所述BIER信息子TLV包括所述第一任播标签;接收来自所述第一站点内第一转发设备的第二通告报文,所述第 二通告报文包括BIER信息子TLV,所述BIER信息子TLV包括所述第二任播标签。Receive a first notification message from the first forwarding device, the first notification message includes a BIER information sub-TLV, and the BIER information sub-TLV includes the first anycast label; receive a message from the first site The second advertisement message of the first forwarding device, the The second advertisement message includes a BIER information sub-TLV, and the BIER information sub-TLV includes the second anycast label.
  30. 根据权利要求29所述的装置,其特征在于,所述第一通告报文以及所述第二通告报文为IGP报文;或者The device according to claim 29, wherein the first notification message and the second notification message are IGP messages; or
    所述第一通告报文以及所述第二通告报文为BGP报文。The first advertisement message and the second advertisement message are BGP messages.
  31. 根据权利要求22至30中任一项所述的装置,其特征在于,所述第一转发设备为BFER,所述第二转发设备为transit BFR;或者,The device according to any one of claims 22 to 30, wherein the first forwarding device is a BFER and the second forwarding device is a transit BFR; or,
    所述第一转发设备为transit BFR,所述第二转发设备为BFIR;或者,The first forwarding device is transit BFR, and the second forwarding device is BFIR; or,
    所述第一转发设备以及所述第二转发设备为相邻的transit BFR。The first forwarding device and the second forwarding device are adjacent transit BFRs.
  32. 根据权利要求22至31中任一项所述的装置,其特征在于,所述处理单元还用于:The device according to any one of claims 22 to 31, characterized in that the processing unit is also used for:
    获得第一BIER报文,所述第一BIER报文包括第一比特串、所述第二转发设备的标签以及组播数据报文,所述第一比特串与所述第一转发设备的BFR-ID和所述第三转发设备的BFR-ID中的一个或多个对应;基于所述第一BIER报文以及所述第一对应关系获得第二BIER报文,所述第二BIER报文包括第二比特串、所述第一任播标签以及所述组播数据报文,所述第二比特串是基于所述第一比特串与所述第一对应关系中的F-BM获得的;Obtain a first BIER message. The first BIER message includes a first bit string, a label of the second forwarding device, and a multicast data message. The first bit string is consistent with the BFR of the first forwarding device. - ID corresponds to one or more of the BFR-IDs of the third forwarding device; a second BIER message is obtained based on the first BIER message and the first correspondence, and the second BIER message Including a second bit string, the first anycast label and the multicast data message, the second bit string is obtained based on the F-BM in the first correspondence relationship between the first bit string and the first correspondence. ;
    所述装置还包括:发送单元,用于发送所述第二BIER报文。The device further includes: a sending unit, configured to send the second BIER message.
  33. 根据权利要求32所述的装置,其特征在于,所述发送单元用于:The device according to claim 32, characterized in that the sending unit is used for:
    若所述与所述第一转发设备的BFR prefix匹配的下一跳处于故障状态,向所述第二对应关系中的所述与所述第三转发设备的BFR prefix匹配的下一跳发送所述第二BIER报文;或者If the next hop matching the BFR prefix of the first forwarding device is in a fault state, sending the next hop matching the BFR prefix of the third forwarding device in the second correspondence relationship. the second BIER message; or
    若所述与所述第三转发设备的BFR prefix匹配的下一跳处于故障状态,向所述第一对应关系中的所述与所述第一转发设备的BFR prefix匹配的下一跳发送所述第二BIER报文;或者If the next hop matching the BFR prefix of the third forwarding device is in a fault state, sending the next hop matching the BFR prefix of the first forwarding device in the first correspondence relationship. the second BIER message; or
    若所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,向所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳其中链路开销最小的一者发送所述第二BIER报文;或者If neither the next hop that matches the BFR prefix of the first forwarding device nor the next hop that matches the BFR prefix of the third forwarding device is in a fault state, send the next hop to the first forwarding device. The second BIER message is sent by the one with the smallest link cost between the next hop that matches the BFR prefix of the forwarding device and the next hop that matches the BFR prefix of the third forwarding device; or
    若所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,向所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳其中链路网络质量最高的一者发送所述第二BIER报文;或者If neither the next hop that matches the BFR prefix of the first forwarding device nor the next hop that matches the BFR prefix of the third forwarding device is in a fault state, send the next hop to the first forwarding device. The next hop that matches the BFR prefix of the forwarding device and the next hop that matches the BFR prefix of the third forwarding device, whichever has the highest link network quality, sends the second BIER message; or
    若所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳均未处于故障状态,向所述与所述第一转发设备的BFR prefix匹配的下一跳和所述与所述第三转发设备的BFR prefix匹配的下一跳其中的任意一者发送所述第二BIER报文。If neither the next hop that matches the BFR prefix of the first forwarding device nor the next hop that matches the BFR prefix of the third forwarding device is in a fault state, send the next hop to the first forwarding device. Any one of the next hop matching the BFR prefix of the forwarding device and the next hop matching the BFR prefix of the third forwarding device sends the second BIER message.
  34. 一种参数通告装置,其特征在于,设于第一站点内第一转发设备,包括:A parameter notification device, characterized in that it is installed on the first forwarding device in the first site and includes:
    处理单元,用于获得第一参数集,所述第一参数集包括第一任播标签、所述第一转发设备的BFR-ID以及所述第一转发设备的BFR prefix,所述第一任播标签用于标识所述第一站点;a processing unit, configured to obtain a first parameter set, the first parameter set comprising a first anycast label, a BFR-ID of the first forwarding device, and a BFR prefix of the first forwarding device, the first anycast label being used to identify the first site;
    发送单元,用于向第二站点内第二转发设备发送所述第一参数集。A sending unit, configured to send the first parameter set to a second forwarding device in the second site.
  35. 根据权利要求34所述的装置,其特征在于,所述第一任播标签为标签或IPv6目的地址。The device according to claim 34, wherein the first anycast label is a label or an IPv6 destination address.
  36. 根据权利要求34或35所述的装置,其特征在于,所述第一参数集还包括所述第一转发设备的比特串长度BSL、所述第一转发设备所属的集合标识SI以及所述第一转发设备所处的BIER子域的标识其中的一个或多个。The device according to claim 34 or 35 is characterized in that the first parameter set also includes one or more of the bit string length BSL of the first forwarding device, the set identifier SI to which the first forwarding device belongs, and the identifier of the BIER subdomain in which the first forwarding device is located.
  37. 根据权利要求34至36中任一项所述的装置,其特征在于,所述发送单元用于向所述第二转发设备发送第一通告报文,所述第一通告报文包括BIER信息子TLV,所述BIER信息子TLV包括所述第一任播标签。The device according to any one of claims 34 to 36, characterized in that the sending unit is configured to send a first notification message to the second forwarding device, and the first notification message includes a BIER information sub- TLV, the BIER information sub-TLV includes the first anycast label.
  38. 根据权利要求37所述的装置,其特征在于,所述第一通告报文为IGP报文或者BGP报文。The device according to claim 37, characterized in that the first notification message is an IGP message or a BGP message.
  39. 根据权利要求34至38中任一项所述的装置,其特征在于,所述第一转发设备为BFER,所述第二转发设备为transit BFR;或者,The device according to any one of claims 34 to 38, wherein the first forwarding device is a BFER and the second forwarding device is a transit BFR; or,
    所述第一转发设备为transit BFR,所述第二转发设备为BFIR;或者,The first forwarding device is transit BFR, and the second forwarding device is BFIR; or,
    所述第一转发设备以及所述第二转发设备为相邻的transit BFR。The first forwarding device and the second forwarding device are adjacent transit BFRs.
  40. 根据权利要求34至39中任一项所述的装置,其特征在于,所述装置还包括: The device according to any one of claims 34 to 39, characterized in that the device further includes:
    接收单元,用于接收来自所述第一站点内第三转发设备的第三参数集,所述第三参数集包括第一bypass标签、所述第三转发设备的BFR-ID以及所述第三转发设备的BFR prefix,所述第一bypass标签用于标识所述第三转发设备;A receiving unit configured to receive a third parameter set from a third forwarding device in the first site, where the third parameter set includes a first bypass label, the BFR-ID of the third forwarding device and the third BFR prefix of the forwarding device, the first bypass label is used to identify the third forwarding device;
    所述处理单元还用于基于所述第三参数集获得第三对应关系,所述第三对应关系包括所述第一bypass标签、所述与第三转发设备的BFR-ID匹配的F-BM以及与所述第三转发设备的BFR prefix匹配的下一跳。The processing unit is further configured to obtain a third correspondence based on the third parameter set, where the third correspondence includes the first bypass tag and the F-BM matching the BFR-ID of the third forwarding device. and the next hop that matches the BFR prefix of the third forwarding device.
  41. 根据权利要求40所述的装置,其特征在于,The device according to claim 40, characterized in that:
    所述接收单元还用于接收第一BIER报文,所述第一BIER报文包括所述第三转发设备的BFR-ID对应的第一比特串、所述第一任播标签以及组播数据报文;The receiving unit is also configured to receive a first BIER message, which includes a first bit string corresponding to the BFR-ID of the third forwarding device, the first anycast label, and multicast data. message;
    所述处理单元还用于基于所述第一BIER报文以及所述第三对应关系获得第二BIER报文,所述第二BIER报文包括第二比特串、所述第一bypass标签以及所述组播数据报文,所述第二比特串是基于所述第一比特串与所述第三对应关系中的F-BM获得的比特串;The processing unit is further configured to obtain a second BIER message based on the first BIER message and the third corresponding relationship, where the second BIER message includes a second bit string, the first bypass tag and the In the multicast data message, the second bit string is a bit string obtained based on the F-BM in the first bit string and the third correspondence relationship;
    所述发送单元还用于向所述第三转发设备发送所述第二BIER报文。The sending unit is also configured to send the second BIER message to the third forwarding device.
  42. 根据权利要求34至41中任一项所述的装置,其特征在于,The device according to any one of claims 34 to 41, characterized in that:
    所述处理单元还用于获得第四参数集,所述第四参数集包括第二bypass标签、所述第一转发设备的BFR-ID以及所述第一转发设备的BFR prefix,所述第二bypass标签用于标识所述第一转发设备;The processing unit is also configured to obtain a fourth parameter set, the fourth parameter set includes a second bypass tag, the BFR-ID of the first forwarding device, and the BFR prefix of the first forwarding device, and the second The bypass label is used to identify the first forwarding device;
    所述发送单元还用于向所述第三转发设备发送所述第四参数集。The sending unit is also configured to send the fourth parameter set to the third forwarding device.
  43. 一种转发设备,其特征在于,所述转发设备包括处理器和网络接口,所述转发设备通过所述处理器和所述网络接口,执行如权利要求1至权利要求12中任一项由第二转发设备执行的方法或者如权利要求13至权利要求21中任一项由第一转发设备执行的方法。A forwarding device, characterized in that the forwarding device includes a processor and a network interface, and the forwarding device executes any one of claims 1 to 12 by using the processor and the network interface. The method performed by the second forwarding device or the method performed by the first forwarding device according to any one of claims 13 to 21.
  44. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一条指令,所述指令在计算机上运行时,使得计算机执行如权利要求1-21中任一项所述的方法。A computer-readable storage medium, characterized in that at least one instruction is stored in the storage medium, and when the instruction is executed on a computer, the computer executes the method according to any one of claims 1 to 21.
  45. 一种计算机程序产品,其特征在于,所述计算机程序产品包括一个或多个计算机程序指令,当所述计算机程序指令被计算机加载并运行时,使得所述计算机执行权利要求1-21中任一项所述的方法。 A computer program product, characterized in that the computer program product includes one or more computer program instructions, which when the computer program instructions are loaded and run by a computer, cause the computer to execute any one of claims 1-21 method described in the item.
PCT/CN2023/119562 2022-09-22 2023-09-19 Correspondence acquisition method, parameter notification method, and apparatus, device and medium WO2024061184A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202211160684.2 2022-09-22
CN202211160684 2022-09-22
CN202211550567.7A CN117749700A (en) 2022-09-22 2022-12-05 Corresponding relation acquisition method, parameter notification method, device, equipment and medium
CN202211550567.7 2022-12-05

Publications (1)

Publication Number Publication Date
WO2024061184A1 true WO2024061184A1 (en) 2024-03-28

Family

ID=90253253

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/119562 WO2024061184A1 (en) 2022-09-22 2023-09-19 Correspondence acquisition method, parameter notification method, and apparatus, device and medium

Country Status (2)

Country Link
CN (1) CN117749700A (en)
WO (1) WO2024061184A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989209A (en) * 2017-05-31 2018-12-11 中兴通讯股份有限公司 BIER MPLS network equipment and its message forwarding method and medium
US20200344162A1 (en) * 2019-04-25 2020-10-29 Nokia Solutions And Networks Oy Bier Traffic Engineering (Bier-Te) Using Unicast MPLS-TE Tunnels
CN114465920A (en) * 2020-11-09 2022-05-10 华为技术有限公司 Method, device and system for determining corresponding relation
WO2022100554A1 (en) * 2020-07-21 2022-05-19 华为技术有限公司 Method for forwarding bier message, and device and system
CN114945000A (en) * 2021-02-07 2022-08-26 中国移动通信有限公司研究院 Multicast message transmission method, bit forwarding router and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989209A (en) * 2017-05-31 2018-12-11 中兴通讯股份有限公司 BIER MPLS network equipment and its message forwarding method and medium
US20200344162A1 (en) * 2019-04-25 2020-10-29 Nokia Solutions And Networks Oy Bier Traffic Engineering (Bier-Te) Using Unicast MPLS-TE Tunnels
WO2022100554A1 (en) * 2020-07-21 2022-05-19 华为技术有限公司 Method for forwarding bier message, and device and system
CN114465920A (en) * 2020-11-09 2022-05-10 华为技术有限公司 Method, device and system for determining corresponding relation
CN114945000A (en) * 2021-02-07 2022-08-26 中国移动通信有限公司研究院 Multicast message transmission method, bit forwarding router and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JUNIPER NETWORKS: "Only use multicast transport to RAN", 3GPP DRAFT; S2-2004824, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. SA WG2, no. 20200819 - 20200902, 11 August 2020 (2020-08-11), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France , XP051918765 *

Also Published As

Publication number Publication date
CN117749700A (en) 2024-03-22

Similar Documents

Publication Publication Date Title
US11838396B2 (en) Ethernet virtual private network using segment routing
WO2021063232A1 (en) Method, apparatus and system for establishing bier forwarding table entry
TWI821373B (en) System for first hop gateway redundancy in a network computing environment
JP7208386B2 (en) Packet transfer method, packet transmitter, and packet receiver
JP7123174B2 (en) MULTICAST DATA TRANSMISSION METHOD, RELATED DEVICE, AND SYSTEM
US10333836B2 (en) Convergence for EVPN multi-homed networks
EP3896923A1 (en) Bier packet sending method and apparatus
US9178816B1 (en) Control plane messaging in all-active multi-homed ethernet virtual private networks
WO2021164249A1 (en) Method, device and system for sending message
US11362954B2 (en) Tunneling inter-domain stateless internet protocol multicast packets
US10972377B2 (en) Coordinated offloaded recording of in-situ operations, administration, and maintenance (IOAM) data to packets traversing network nodes
WO2018058639A1 (en) Pseudo wire load sharing method and apparatus
WO2021143279A1 (en) Method and device for segment routing service processing, routing equipment, and storage medium
WO2022117018A1 (en) Packet transmission method and apparatus
US11228459B2 (en) Anycast address configuration for extended local area networks
US20230081052A1 (en) Method and apparatus for sending multicast packet
JP7273125B2 (en) Method and first network device for transmitting BIERv6 packets
WO2024061184A1 (en) Correspondence acquisition method, parameter notification method, and apparatus, device and medium
WO2021164245A1 (en) Load sharing method and first network device
US10924395B2 (en) Seamless multipoint label distribution protocol (mLDP) transport over a bit index explicit replication (BIER) core
WO2024007762A1 (en) Route publishing method, and communication method and apparatus
WO2024016869A1 (en) Multicast configuration method and apparatus
WO2022116615A1 (en) Message transmission method, method for acquiring correspondence, and apparatus and system
WO2023050932A1 (en) Route advertisement method, network device, and computer storage medium
US20240056390A1 (en) Overlay route optimization across data centers