WO2022194193A1 - Method and apparatus for acquiring path - Google Patents

Method and apparatus for acquiring path Download PDF

Info

Publication number
WO2022194193A1
WO2022194193A1 PCT/CN2022/081132 CN2022081132W WO2022194193A1 WO 2022194193 A1 WO2022194193 A1 WO 2022194193A1 CN 2022081132 W CN2022081132 W CN 2022081132W WO 2022194193 A1 WO2022194193 A1 WO 2022194193A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
bfir
bfer
bfr
control device
Prior art date
Application number
PCT/CN2022/081132
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
Priority claimed from CN202110872818.2A external-priority patent/CN115118651A/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022194193A1 publication Critical patent/WO2022194193A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/645Splitting route computation layer and forwarding layer, e.g. routing according to path computational element [PCE] or based on OpenFlow functionality

Definitions

  • the embodiments of the present application relate to the field of communications, and in particular, to a method and apparatus for acquiring a path.
  • Bit indexed explicit replication or bit indexed explicit replication (internet protocol version 6, IPv6) encapsulation (bit index explicit replication IPv6 encapsulation, BIERv6) is a A multicast forwarding technology that explicitly replicates the bit index.
  • BIER bit-forwarding routers such as the BIER forwarding ingress router (BFIR) and the BIER forwarding egress router (BFER) are assigned unique BFR identifier (identifier, ID).
  • BFIR In the process of forwarding multicast packets, BFIR needs to specify which BFERs to send multicast packets to, and thus needs to obtain paths.
  • the BFER set to which the multicast message is sent is represented by a bit string, and the position or index of each bit in the bit string represents the BFR ID of an edge router.
  • the BFR sends the bitstring-encapsulated multicast packet to the downstream router according to the bit index forwarding table (BIFT).
  • BIFT bit index forwarding table
  • the downstream router parses the bitstring and copies the packet according to its own BIFT table, and sends it to the BFER hop by hop.
  • the BIFT table is generated by the BIRT table, the BIRT table entry comes from the mapping relationship between the BFR ID and the BFR prefix (prefix), and the BIRT table indicates the next hop of the route. It follows the shortest path first (SPF) principle.
  • SPPF shortest path first
  • the present application proposes a method and apparatus for obtaining a path to meet the requirements of service path planning.
  • a method for obtaining a path is provided, the method is applied to a BIER network, including: a control device obtains a BIER network topology, the BIER network topology includes a BFIR and at least one BFER; the control device is based on business requirements. and the BIER network topology to obtain the corresponding relationship, the corresponding relationship includes the BFR-ID of at least one BFER and the information of the next hop; the control device sends the corresponding relationship to the BFIR.
  • the control device obtains the corresponding relationship based on the business requirements and the BIER network topology, and the corresponding relationship is more in line with the requirements of business path planning, and the corresponding relationship is sent to the BFIR, without the need for the BFIR to obtain the corresponding relationship through learning.
  • the efficiency of multicast deployment is improved.
  • the control device obtains the corresponding relationship and sends it to the BFIR in a static configuration, it can solve the problem of one-hop traffic diversion in complex networking environments such as autonomous systems (AS) or heterogeneous networking.
  • AS autonomous systems
  • the at least one BFER includes a first BFER
  • the obtaining, by the control device, the BIER network topology includes: the control device receiving first information from the BFIR, where the first information includes all The BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
  • the control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, and the node of the first BFER attribute, neighbor information of the first BFER and link information of the first BFER;
  • the control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and Link SLA information between the BFIR and the first BFER.
  • Link SLA information includes but is not limited to: link bandwidth, delay, internet protocol (IP) address, interior gateway protocol (IGP) metric (metric), risk link group (Shared Risk Link Group, SRLG) and other information.
  • IP internet protocol
  • IGP interior gateway protocol
  • SRLG Shared Risk Link Group
  • the at least one BFER includes a first BFER
  • the obtaining, by the control device, the BIER network topology includes: the control device receiving first information from the BFIR, where the first information includes all The BFR-ID of the BFIR and the multi-protocol label switching MPLS label of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
  • the control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, neighbor information of the first BFER and link information of the first BFER;
  • the control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and Link SLA information between the BFIR and the first BFER.
  • the at least one BFER includes a first BFER
  • the obtaining, by the control device, the BIER network topology includes: the control device receiving first information from the BFIR, where the first information includes all The BFR-ID of the BFIR and the bit index forwarding table BIFT identification of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
  • the control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the node attribute of the first BFER, neighbor information of the first BFER and link information of the first BFER;
  • the control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and Link SLA information between the BFIR and the first BFER.
  • the at least one BFER includes a first BFER
  • the obtaining, by the control device, the BIER network topology includes: the control device receiving first information from the BFIR, where the first information includes all The BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
  • the control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, and the node of the first BFER attribute, neighbor information of the first BFER and link information of the first BFER;
  • the control device receives third information from the intermediate BFR, the third information includes the end.BIER address of the intermediate BFR, the node attribute of the intermediate BFR, the neighbor information of the intermediate BFR, and the information of the intermediate BFR. link information;
  • the control device obtains the BIER network topology based on the first information, the second information and the third information, where the BIER network topology includes the information of the BFIR, the Information of the intermediate BFR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and link SLA information between the intermediate BFR and the first BFER.
  • the at least one BFER includes a first BFER
  • the obtaining, by the control device, the BIER network topology includes: the control device receiving first information from the BFIR, where the first information includes all The BFR-ID of the BFIR and the MPLS label of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
  • the control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, neighbor information of the first BFER and link information of the first BFER;
  • the control device receives third information from the intermediate BFR, the third information includes the MPLS label of the intermediate BFR, the node attribute of the intermediate BFR, the neighbor information of the intermediate BFR, and the link of the intermediate BFR information;
  • the control device obtains the BIER network topology based on the first information, the second information and the third information, where the BIER network topology includes the information of the BFIR, the Information of the intermediate BFR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and link SLA information between the intermediate BFR and the first BFER.
  • the at least one BFER includes a first BFER
  • the obtaining, by the control device, the BIER network topology includes: the control device receiving first information from the BFIR, where the first information includes all The BFR-ID of the BFIR and the BIFT identity of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
  • the control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the node attribute of the first BFER, neighbor information of the first BFER and link information of the first BFER;
  • the control device receives third information from an intermediate BFR, the third information includes a BIFT identity of the intermediate BFR, node attributes of the intermediate BFR, neighbor information of the intermediate BFR, and links of the intermediate BFR information;
  • the control device obtains the BIER network topology based on the first information, the second information and the third information, where the BIER network topology includes the information of the BFIR, the Information of the intermediate BFR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and link SLA information between the intermediate BFR and the first BFER.
  • the receiving, by the control device, the first information from the BFIR includes: the control device receiving the first information sent by the route reflector RR that communicates with the BFIR; or the The control device receives the first information sent by the BFIR.
  • the control device in the way that the control device interacts with the RR to obtain the first information, the control device does not need to obtain information by interacting with each device in the network topology, thus further saving the resources of the control device.
  • the receiving, by the control device, the second information from the first BFER includes: the control device receiving the second information sent by the RR communicating with the first BFER; or The control device receives the second information sent by the intermediate BFR in communication with the first BFER; or the control device receives the second information sent by the first BFER.
  • the second information further includes multicast source group information corresponding to the first BFER.
  • the control device acquiring the corresponding relationship based on service requirements and the BIER network topology includes: the control device acquires target BFR information based on service requirements; the control device acquires target BFR information based on the service requirements; and the BIER network topology, obtain the corresponding relationship, and the information of the next hop in the corresponding relationship is the information of the target BFR.
  • the service requirements include one or more of bandwidth, delay, packet loss, and designated nodes.
  • the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and outgoing interface information for communicating with the node serving as the BFIR neighbor.
  • the second information further includes one or more of subdomain identifiers SD, BSL, and set identifiers SI.
  • the BFR-ID of the first BFER is an identifier dynamically acquired by the first BFER, and the dynamic acquisition is an unused identifier acquired from a set of BFR-IDs.
  • a method for obtaining a path is provided, the method is applied to a network that explicitly replicates BIER based on a bit index, including: BIER forwarding the ingress router BFIR to receive the correspondence sent by the control device, the correspondence The bit forwarding router identification BFR-ID and next hop information of the at least one BFER are included.
  • the method before the BFIR receives the correspondence sent by the control device, the method further includes: the BFIR sends first information to the control device, where the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR, and the link information of the BFIR.
  • the method before the BFIR receives the correspondence sent by the control device, the method further includes: the BFIR sends first information to the control device, where the first information includes the BFR-ID of the BFIR.
  • the MPLS label, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR are exchanged with the multi-protocol label of the BFIR.
  • the method before the BFIR receives the correspondence sent by the control device, the method further includes: the BFIR sends first information to the control device, where the first information includes the BFR-ID of the BFIR and the bit index forwarding table of the BFIR, the BIFT identifier, the node attribute of the BFIR, the neighbor information of the BFIR, and the link information of the BFIR.
  • the sending, by the BFIR, the first information to the control device includes: the BFIR sending the first information to the route reflector RR; or the BFIR directly sending all the information to the control device. the first information.
  • the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and outgoing interface information for communicating with the node serving as the BFIR neighbor.
  • an apparatus for obtaining a path is provided, the apparatus is applied in a network that explicitly replicates BIER based on a bit index, including:
  • the first acquisition module is used to acquire the BIER network topology, and the BIER network topology includes the BIER forwarding ingress router BFIR and at least one BIER forwarding egress router BFER;
  • the second acquisition module is used to acquire a corresponding relationship based on service requirements and the BIER network topology, and the corresponding relationship includes the bit forwarding router identifier BFR-ID of the at least one BFER and the information of the next hop;
  • a sending module configured to send the corresponding relationship to the BFIR.
  • the at least one BFER includes a first BFER
  • the first acquisition module is configured to receive first information from the BFIR, where the first information includes the BFR- ID and end.BIER address of the BFIR, node attributes of the BFIR, neighbor information of the BFIR and link information of the BFIR;
  • Receive second information from the first BFER where the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, the node attribute of the first BFER, the neighbor information of the first BFER and link information of the first BFER;
  • the BIER network topology Based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and the BFIR and the Link SLA information between the first BFERs.
  • the at least one BFER includes a first BFER
  • the first acquisition module is configured to receive first information from the BFIR, where the first information includes the BFR- ID and the multi-protocol label switching MPLS label of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
  • Receive second information from the first BFER where the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, the first BFER neighbor information of the BFER and link information of the first BFER;
  • the BIER network topology Based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and the BFIR and the Link SLA information between the first BFERs.
  • the at least one BFER includes a first BFER
  • the first acquisition module is configured to receive first information from the BFIR, where the first information includes the BFR- ID and bit index forwarding table BIFT identification of the BFIR, node attributes of the BFIR, neighbor information of the BFIR and link information of the BFIR;
  • the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the node attribute of the first BFER, the first BFER neighbor information of the BFER and link information of the first BFER;
  • the BIER network topology Based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and the BFIR and the Link SLA information between the first BFERs.
  • the at least one BFER includes a first BFER
  • the first acquisition module is configured to receive first information from the BFIR, where the first information includes the BFR- ID and end.BIER address of the BFIR, node attributes of the BFIR, neighbor information of the BFIR and link information of the BFIR;
  • Receive second information from the first BFER where the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, the node attribute of the first BFER, the neighbor information of the first BFER and link information of the first BFER;
  • the third information including the end.BIER address of the intermediate BFR, the node attribute of the intermediate BFR, the neighbor information of the intermediate BFR, and the link information of the intermediate BFR;
  • the BIER network topology includes the information of the BFIR and the information of the intermediate BFR that is the neighbor of the BFIR , the information of the first BFER, the link SLA information between the BFIR and the intermediate BFR, and the link SLA information between the intermediate BFR and the first BFER.
  • the at least one BFER includes a first BFER
  • the first acquisition module is configured to receive first information from the BFIR, where the first information includes the BFR- ID and MPLS label of the BFIR, node attributes of the BFIR, neighbor information of the BFIR and link information of the BFIR;
  • Receive second information from the first BFER where the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, the first BFER neighbor information of the BFER and link information of the first BFER;
  • third information includes an MPLS label of the intermediate BFR, a node attribute of the intermediate BFR, neighbor information of the intermediate BFR, and link information of the intermediate BFR;
  • the BIER network topology includes the information of the BFIR and the information of the intermediate BFR that is the neighbor of the BFIR , the information of the first BFER, the link SLA information between the BFIR and the intermediate BFR, and the link SLA information between the intermediate BFR and the first BFER.
  • the at least one BFER includes a first BFER
  • the first acquisition module is configured to receive first information from the BFIR, where the first information includes the BFR- ID and BIFT identification of the BFIR, node attributes of the BFIR, neighbor information of the BFIR and link information of the BFIR;
  • the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the node attribute of the first BFER, the first BFER neighbor information of the BFER and link information of the first BFER;
  • third information includes a BIFT identity of the intermediate BFR, a node attribute of the intermediate BFR, neighbor information of the intermediate BFR, and link information of the intermediate BFR;
  • the BIER network topology includes the information of the BFIR and the information of the intermediate BFR that is the neighbor of the BFIR , the information of the first BFER, the link SLA information between the BFIR and the intermediate BFR, and the link SLA information between the intermediate BFR and the first BFER.
  • the first obtaining module is configured to receive the first information sent by the route reflector RR that communicates with the BFIR; or receive the first information sent by the BFIR.
  • the first obtaining module is configured to receive the second information sent by the RR in communication with the first BFER; or receive the second information sent by the intermediate BFR in communication with the first BFER the second information; or receive the second information sent by the first BFER.
  • the second information further includes multicast source group information corresponding to the first BFER.
  • the second obtaining module is configured to obtain the information of the target BFR based on business requirements; and obtain the corresponding relationship based on the information of the target BFR and the BIER network topology, and the corresponding The information of the next hop in the relationship is the information of the target BFR.
  • the service requirements include one or more of bandwidth, delay, packet loss, and designated nodes.
  • the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and outgoing interface information for communicating with the node serving as the BFIR neighbor.
  • the second information further includes one or more of subdomain identifiers SD, BSL, and set identifiers SI.
  • the BFR-ID of the first BFER is an identifier dynamically acquired by the first BFER, and the dynamic acquisition is an unused identifier acquired from a set of BFR-IDs.
  • a device for obtaining a path is provided, the device is applied to a network that explicitly replicates BIER based on a bit index, including:
  • the receiving module is configured to receive the correspondence sent by the control device, where the correspondence includes the bit forwarding router identification BFR-ID of the at least one BFER and the information of the next hop.
  • the apparatus further includes:
  • a sending module configured to send first information to the control device, where the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, and the neighbors of the BFIR information and link information of the BFIR.
  • the apparatus further includes:
  • a sending module configured to send first information to the control device, the first information includes the BFR-ID of the BFIR and the multi-protocol label switching MPLS label of the BFIR, the node attribute of the BFIR, the BFIR neighbor information and link information of the BFIR.
  • the apparatus further includes:
  • a sending module configured to send first information to the control device, where the first information includes the BFR-ID of the BFIR and the bit index forwarding table BIFT identifier of the BFIR, the node attribute of the BFIR, the BFIR neighbor information and link information of the BFIR.
  • the sending module is configured to send the first information to the route reflector RR; or directly send the first information to the control device.
  • the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and outgoing interface information for communicating with the node serving as the BFIR neighbor.
  • a network device comprising a processor, the processor is coupled to a memory, and at least one program instruction or code is stored in the memory, and the at least one program instruction or code is loaded and executed by the processor, so that the network device realizes The method for obtaining a path of any one of the first aspect or the second aspect.
  • a sixth aspect provides a computer-readable storage medium, where at least one program instruction or code is stored in the storage medium, and when the program instruction or code is loaded and executed by a processor, the computer implements the method as described in the first aspect or the second aspect. Any of the described methods for obtaining a path.
  • a system for obtaining a path includes a control device and a BFIR device, and the control device is configured to execute the method described in the first aspect or any possible implementation manner of the first aspect.
  • the BFIR device is configured to execute the method for obtaining a path according to the second aspect or any possible implementation manner of the second aspect.
  • Another communication apparatus includes a transceiver, a memory, and a processor.
  • the transceiver, the memory and the processor communicate with each other through an internal connection path, the memory is used for storing instructions, and the processor is used for executing the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals , and when the processor executes the instructions stored in the memory, it causes the processor to execute the method in the first aspect or any possible implementation manner of the first aspect, or execute the second aspect or any one of the second aspect method in a possible implementation.
  • the processor is one or more
  • the memory is one or more.
  • the memory may be integrated with the processor, or the memory may be provided separately from the processor.
  • the memory can be a non-transitory memory, such as a read only memory (ROM), which can be integrated with the processor on the same chip, or can be separately set in different On the chip, the embodiment of the present application does not limit the type of the memory and the setting manner of the memory and the processor.
  • ROM read only memory
  • a computer program (product) comprising: computer program code which, when executed by a computer, causes the computer to perform the methods of the above aspects.
  • a chip including a processor for invoking and executing instructions stored in a memory, so that a communication device on which the chip is installed performs the methods in the above-mentioned aspects.
  • Another chip including: an input interface, an output interface, a processor, and a memory, the input interface, the output interface, the processor, and the memory are connected through an internal connection path, and the processor is used to execute all The code in the memory, when the code is executed, the processor is configured to perform the methods of the above aspects.
  • FIG. 1 is a schematic diagram of a BIER network provided by an embodiment of the present application.
  • FIG. 2 is a flowchart of a method for obtaining a path provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of an implementation environment of a method for obtaining a path provided by an embodiment of the present application
  • FIG. 4 is a flowchart of another method for obtaining a path provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an implementation environment of another method for obtaining a path provided by an embodiment of the present application.
  • FIG. 6 is a flowchart of another method for obtaining a path provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a multicast forwarding path provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another multicast forwarding path provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an apparatus for obtaining a path provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of another apparatus for obtaining a path provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of another apparatus for obtaining a path provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a network device provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of a network device provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a network device provided by an embodiment of the present application.
  • BIER or BIERv6 as a technology for constructing a multicast packet forwarding path in the field of communication, has been applied more and more widely.
  • BFIR and BFER are assigned a unique identification BFR-ID.
  • the BFR-ID is an integer ranging from 1 to 65535.
  • BGP border gateway protocol
  • BGP border gateway protocol
  • a BIER forwarding tunnel is established through BGP to transmit user multicast requests.
  • IGMP Internet Group Management Protocol
  • IPv4 Internet Protocol Version 4
  • MLDP multicast label distribute protocol
  • IPv6 Internet protocol version 6
  • the BFIR sets the bit in the bitstring corresponding to the BFR-id of the leaf node to 1.
  • a bitstring for transmitting the multicast channel data is generated.
  • the BFER set to which a multicast packet is sent is represented by a bitstring, and the position or index of each bit in the bitstring represents the BFR-ID of an edge node; BFIR encapsulates this bitstring in the multicast packet In the BIER header of the message, BFIR sends the bitstring-encapsulated multicast message to the downstream BFR according to BIFT.
  • the downstream BFR parses the bitstring, replicates the packet according to its own BIFT table, and sends the replicated packet to the BFER node in the sub domain hop by hop.
  • the BFER node parses the bitstring, checks that it matches itself, the destination node of the BIER multicast, deletes the outer encapsulation including the BIER information, continues to search the user multicast forwarding table, and forwards the original multicast packet to the requesting user according to the search result.
  • the contents in the BIFT table have a corresponding relationship, and the corresponding relationship can be determined based on a message transmission path.
  • a message transmission path In some carrier networks or enterprise networks, due to the importance of services, specific paths need to be planned, or multiple different paths need to be planned for service backup, or certain path delay, bandwidth, and specified location constraints need to be set. condition.
  • an embodiment of the present application provides a method for obtaining a path, the method can be applied to a BIER network, and the corresponding relationship obtained by the method can meet the requirements of service path planning.
  • the methods provided in the embodiments of the present application can be used for planning and deployment of BIER and BIERv6 service paths.
  • the BIER network includes five provider edges (provider edges, PE), namely PE1, PE2, PE3, PE4 and PE5.
  • PE provider edges
  • the PEs in the BIER network also include three provider backbone routers (provider backbone, P), such as P1, P2 and P3 as shown in FIG. 1 .
  • the BIER network may further include a route reflector (route reflector, RR).
  • a certain device in the BIER network has the RR function, for example, P1 in FIG. 1 has the RR function.
  • the method for obtaining a path provided by the embodiment of the present application is illustrated as an example.
  • the method includes the following steps.
  • Step 201 the control device acquires a BIER network topology, where the BIER network topology includes a BFIR and at least one BFER.
  • the control device is a device with a path calculation capability, including but not limited to a controller or a BFIR with a path calculation capability, or other devices with a path calculation capability.
  • the manner in which the control device acquires the BIER network topology is not limited in the embodiments of the present application.
  • the BIER network topology acquired by the control device includes BFIR and at least one BFER, and at least one BFER includes the first BFER.
  • the manner in which the control device obtains the BIER network topology includes but is not limited to the following situations.
  • the control device acquiring the BIER network topology includes: the control device receives the first information from the BFIR, and the first information includes the BFR-ID of the BFIR and the end of the BFIR. .BIER address, node attribute of BFIR, neighbor information of BFIR and link information of BFIR; the control device receives the second information from the first BFER, and the second information includes the BFR-ID of the first BFER and the end of the first BFER.
  • the node attributes of BFIR include but are not limited to BFR-prefix; the neighbor information of BFIR includes at least one BFER; the link information of BFIR refers to link SLA information, including but not limited to: link bandwidth, delay, IP address, IGP metric, SRLG and other information.
  • the node attributes of the first BFER include but are not limited to BFR-prefix; the link information of the first BFER refers to link SLA information, including but not limited to: link bandwidth, delay, IP address, IGP metric, SRLG and other information.
  • the neighbor information of the first BFER includes BFIR.
  • the control device can establish BGP neighbors with the BFIR and the first BFER respectively, for example, the control device establishes a BGP_LS peer (peer) with the BFIR and the first BFER respectively, the control device receives the first information sent by the BFIR through the BGP_LS, and controls The device receives the second information sent by the first BFER through BGP_LS.
  • the control device can determine that the first BFER is a neighbor of the BFIR based on the first information and the second information, and then obtain information including the BFIR, the information of the first BFER serving as a neighbor of the BFIR, and the link SLA information between the BFIR and the first BFER BIER network topology.
  • the information of the BFIR included in the BIER network topology obtained in this situation includes but is not limited to the BFR-ID of the BFIR, the end.BIER address of the BFIR, and the node attribute of the BFIR
  • the information of the first BFER includes but is not limited to the first BFER.
  • the control device acquiring the BIER network topology includes: the control device receives the first information from the BFIR, and the first information includes the BFR-ID of the BFIR and the BFIR's Multi-protocol label switching MPLS label, node attribute of BFIR, neighbor information of BFIR, and link information of BFIR; the control device receives second information from the first BFER, and the second information includes the BFR-ID of the first BFER, the first BFER The MPLS label of the first BFER, the node attribute of the first BFER, the neighbor information of the first BFER and the link information of the first BFER; the control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes the information of the BFIR, Information of the first BFER as a neighbor of the BFIR and link SLA information between the BFIR and the first BFER.
  • the node attributes of the BFIR, the neighbor information of the BFIR, the link information of the BFIR, the node attributes of the first BFER, the neighbor information of the first BFER, and the link information of the first BFER may refer to the description in the above-mentioned case 1, here No longer.
  • the control device can establish BGP neighbors with BFIR and the first BFER respectively, for example, the control device and BFIR and the first BFER respectively establish a BGP_LS peer, the control device receives the first information sent by the BFIR through BGP_LS, and the control device receives the first BFER Second information sent through BGP_LS.
  • the control device obtains, based on the first information and the second information, a BIER network topology including BFIR information, information of a first BFER that is a neighbor of the BFIR, and link SLA information between the BFIR and the first BFER.
  • the information of the BFIR included in the BIER network topology obtained in the second case includes but is not limited to the BFR-ID of the BFIR, the MPLS label of the BFIR and the node attribute of the BFIR, and the information of the first BFER includes but is not limited to the first BFER BFR-ID, MPLS label of the first BFER, and node attributes of the first BFER.
  • the control device acquiring the BIER network topology includes: the control device receives the first information from the BFIR, and the first information includes the BFR-ID of the BFIR and the BFIR of the BFIR.
  • Bit index forwarding table BIFT identifier node attribute of BFIR, neighbor information of BFIR and link information of BFIR; the control device receives second information from the first BFER, the second information includes the BFR-ID of the first BFER, the first BFER The BIFT identification, the node attribute of the first BFER, the neighbor information of the first BFER and the link information of the first BFER; the control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes the information of the BFIR, Information of the first BFER as a neighbor of the BFIR and link SLA information between the BFIR and the first BFER.
  • the node attributes of the BFIR, the neighbor information of the BFIR, the link information of the BFIR, the node attributes of the first BFER, the neighbor information of the first BFER, and the link information of the first BFER may refer to the description in the above-mentioned case 1, here No longer.
  • the control device can establish BGP neighbors with BFIR and the first BFER respectively, for example, the control device and BFIR and the first BFER respectively establish a BGP_LS peer, the control device receives the first information sent by the BFIR through BGP_LS, and the control device receives the first BFER Second information sent through BGP_LS.
  • the control device obtains, based on the first information and the second information, a BIER network topology including BFIR information, information of a first BFER that is a neighbor of the BFIR, and link SLA information between the BFIR and the first BFER.
  • the information of the BFIR included in the BIER network topology obtained in the third situation includes but is not limited to the BFR-ID of the BFIR, the BIFT identifier of the BFIR, and the node attribute of the BFIR
  • the information of the first BFER includes but is not limited to the first BFER's BFR-ID, BIFT identifier of the first BFER, and node attributes of the first BFER.
  • Case 4 for a BIERv6 scenario with an intermediate BFR between the BFIR and the first BFER, obtaining the BIER network topology by the control device includes: the control device receives the first information from the BFIR, and the first information includes the BFR-ID of the BFIR and the end of the BFIR.
  • the control device receives the second information from the first BFER, and the second information includes the BFR-ID of the first BFER and the end.BIER of the first BFER address, node attributes of the first BFER, neighbor information of the first BFER, and link information of the first BFER;
  • the control device receives third information from the intermediate BFR, and the third information includes the end.BIER address of the intermediate BFR, the Node attributes, neighbor information of the intermediate BFR, and link information of the intermediate BFR;
  • the control device obtains the BIER network topology based on the first information, the second information, and the third information, and the BIER network topology includes the information of the BFIR and the intermediate BFR as the neighbor of the BFIR.
  • the link information of the BFIR For the node attribute of the BFIR, the link information of the BFIR, the node attribute of the first BFER, and the link information of the first BFER, reference may be made to the description in the foregoing case 1, and details are not repeated here.
  • the BIER network topology includes at least one intermediate BFR between the BFIR and the first BFER
  • the neighbor information of the BFIR includes the intermediate BFR
  • the neighbor information of the first BFER Including intermediate BFR.
  • the control device In addition to receiving the first information sent by the BFIR and the second information sent by the first BFER, the control device also receives the third information sent by the intermediate BFR.
  • the node attributes of the intermediate BFR include but are not limited to BFR-prefix; the neighbor information of the intermediate BFR includes at least one BFER or the BFR reaching at least one BFER, the BFIR or the BFR reaching the BFIR; the link information of the intermediate BFR refers to the link SLA Information, including but not limited to: link bandwidth, delay, IP address, IGP metric, SRLG and other information.
  • control device can establish a BGP neighbor with the BFIR, the first BFER and the intermediate BFR respectively, for example, the control device and the BFIR, the first BFER and the intermediate BFR respectively establish a BGP_LS peer, and the control device receives the first information sent by the BFIR through the BGP_LS, The control device receives the second information sent by the first BFER through BGP_LS, and the control device receives the third information sent by the intermediate BFR through BGP_LS.
  • the control device obtains, based on the first information, the second information, and the third information, information including BFIR, information of an intermediate BFR that is a neighbor of the BFIR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and intermediate BFR BIER network topology for link SLA information with the first BFER.
  • the information of the BFIR included in the BIER network topology obtained in the fourth case includes but is not limited to the BFR-ID of the BFIR, the end.BIER address of the BFIR and the node attribute of the BFIR
  • the information of the first BFER includes but is not limited to the first The BFR-ID of the BFER, the end.BIER address of the first BFER and the node attribute of the first BFER
  • the information of the intermediate BFR includes but not limited to the end.BIER address of the intermediate BFR and the node attribute of the intermediate BFR.
  • PE1 is the BFIR
  • PE2 is the first BFER
  • P1 and P2 are the intermediate BFRs between PE1 and PE2, respectively. All devices establish BGP_LS peers with the control device respectively.
  • PE1 reports the BFR-ID of PE1, the end.BIER address of PE1, the node attribute of PE1, the neighbor information of PE1 and the link information of PE1 to the control device through BGP_LS;
  • PE2 reports to the control device through BGP_LS Report the BFR-ID of PE2, the end.BIER address of PE2, the node attribute of PE2, the neighbor information of PE2 and the link information of PE2 to the control device;
  • P1 sends the end.BIER address of P1, the node attribute of P1, The neighbor information of P1 and the link information of P1 are reported to the control device;
  • P2 reports the end.BIER address of P2, the node attribute of P2, the neighbor information of P2 and the link information of P2 to the control device through BGP_LS;
  • the control device is based
  • obtaining the BIER network topology by the control device includes: the control device receives the first information from the BFIR, and the first information includes the BFR-ID of the BFIR and the MPLS of the BFIR.
  • the control device receives second information from the first BFER, the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the first BFER Node attributes of a BFER, neighbor information of the first BFER and link information of the first BFER;
  • the control device receives third information from the intermediate BFR, the third information includes the MPLS label of the intermediate BFR, the node attribute of the intermediate BFR, the intermediate BFR The neighbor information and the link information of the intermediate BFR;
  • the control device obtains the BIER network topology based on the first information, the second information and the third information, and the BIER network topology includes the information of the BFIR, the information of the intermediate BFR as the BFIR neighbor, the first BFER information, link SLA information between the BFIR and the intermediate BFR, and link SLA information between the intermediate BFR and the first BFER.
  • the link information of the BFIR For the node attribute of the BFIR, the link information of the BFIR, the node attribute of the first BFER, and the link information of the first BFER, reference may be made to the description in the foregoing case 1, and details are not repeated here.
  • the BIER network topology includes at least one intermediate BFR between the BFIR and the first BFER
  • the neighbor information of the BFIR includes the intermediate BFR
  • the neighbor information of the first BFER Including intermediate BFR.
  • the control device In addition to receiving the first information sent by the BFIR and the second information sent by the first BFER, the control device also receives the third information sent by the intermediate BFR.
  • the node attributes of the intermediate BFR include but are not limited to BFR-prefix; the neighbor information of the intermediate BFR includes at least one BFER or the BFR reaching at least one BFER, the BFIR or the BFR reaching the BFIR; the link information of the intermediate BFR refers to the link SLA Information, including but not limited to: link bandwidth, delay, IP address, IGP metric, SRLG and other information.
  • control device can establish a BGP neighbor with the BFIR, the first BFER and the intermediate BFR respectively, for example, the control device and the BFIR, the first BFER and the intermediate BFR respectively establish a BGP_LS peer, and the control device receives the first information sent by the BFIR through the BGP_LS, The control device receives the second information sent by the first BFER through BGP_LS, and the control device receives the third information sent by the intermediate BFR through BGP_LS.
  • the control device obtains, based on the first information, the second information, and the third information, information including BFIR, information of an intermediate BFR that is a neighbor of the BFIR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and intermediate BFR BIER network topology for link SLA information with the first BFER.
  • the information of the BFIR included in the BIER network topology obtained in the fifth situation includes but is not limited to the BFR-ID of the BFIR, the MPLS label of the BFIR, and the node attribute of the BFIR
  • the information of the first BFER includes but is not limited to the first BFER
  • the information of the intermediate BFR includes but not limited to the MPLS label of the intermediate BFR and the node attribute of the intermediate BFR.
  • PE1 is the BFIR
  • PE2 is the first BFER
  • P1 and P2 are the intermediate BFRs between PE1 and PE2, respectively. All devices establish BGP_LS peers with the control device respectively.
  • PE1 reports the BFR-ID of PE1, the MPLS label of PE1, the node attribute of PE1, the neighbor information of PE1 and the link information of PE1 to the control device through BGP_LS;
  • PE2 reports PE2 through BGP_LS
  • the BFR-ID of PE2, the MPLS label of PE2, the node attribute of PE2, the neighbor information of PE2 and the link information of PE2 are reported to the control device;
  • P1 reports the MPLS label of P1, the node attribute of P1, the neighbor information of P1 and the information of P1 through BGP_LS.
  • the link information is reported to the control device; P2 reports the MPLS label of P2, the node attribute of P2, the neighbor information of P2 and the link information of P2 to the control device through BGP_LS; the control device is based on the information reported by PE1, PE2, P1 and P2.
  • Information acquisition includes the information of PE1, the information of P1 as the neighbor of PE1, the information of P2 as the neighbor of P1, the information of PE2, the SLA information of the link between PE1 and P1, the SLA information of the link between P1 and P2, the information of P2 and PE2 BIER network topology for link SLA information.
  • obtaining the BIER network topology by the control device includes: the control device receives the first information from the BFIR, and the first information includes the BFR-ID of the BFIR and the BIFT of the BFIR.
  • the control device receives second information from the first BFER, and the second information includes the BFR-ID of the first BFER, the BIFT identification of the first BFER, the first BFER Node attributes of a BFER, neighbor information of the first BFER and link information of the first BFER;
  • the control device receives third information from the intermediate BFR, the third information includes the BIFT identifier of the intermediate BFR, the node attribute of the intermediate BFR, the intermediate BFR The neighbor information and the link information of the intermediate BFR;
  • the control device obtains the BIER network topology based on the first information, the second information and the third information, and the BIER network topology includes the information of the BFIR, the information of the intermediate BFR as the BFIR neighbor, the first BFER information, link SLA information between the BFIR and the intermediate BFR, and link SLA information between the intermediate BFR and the first BFER.
  • the link information of the BFIR For the node attribute of the BFIR, the link information of the BFIR, the node attribute of the first BFER, and the link information of the first BFER, reference may be made to the description in the foregoing case 1, and details are not repeated here.
  • the BIER network topology also includes at least one intermediate BFR between the BFIR and the first BFER
  • the neighbor information of the BFIR includes the intermediate BFR
  • the neighbor information of the first BFER Including intermediate BFR.
  • the control device In addition to receiving the first information sent by the BFIR and the second information sent by the first BFER, the control device also receives the third information sent by the intermediate BFR.
  • the node attributes of the intermediate BFR include but are not limited to BFR-prefix; the neighbor information of the intermediate BFR includes at least one BFER or the BFR reaching at least one BFER, the BFIR or the BFR reaching the BFIR; the link information of the intermediate BFR refers to the link SLA Information, including but not limited to: link bandwidth, delay, IP address, IGP metric, SRLG and other information.
  • control device can establish a BGP neighbor with the BFIR, the first BFER and the intermediate BFR respectively, for example, the control device and the BFIR, the first BFER and the intermediate BFR respectively establish a BGP_LS peer, and the control device receives the first information sent by the BFIR through the BGP_LS, The control device receives the second information sent by the first BFER through BGP_LS, and the control device receives the third information sent by the intermediate BFR through BGP_LS.
  • the control device obtains, based on the first information, the second information, and the third information, information including BFIR, information of an intermediate BFR that is a neighbor of the BFIR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and intermediate BFR BIER network topology for link SLA information with the first BFER.
  • the information of the BFIR included in the BIER network topology obtained in this situation 6 includes but is not limited to the BFR-ID of the BFIR, the BIFT identifier of the BFIR, and the node attribute of the BFIR
  • the information of the first BFER includes but is not limited to the first BFER.
  • the information of the intermediate BFR includes, but is not limited to, the BIFT identifier of the intermediate BFR and the node attribute of the intermediate BFR.
  • PE1 is the BFIR
  • PE2 is the first BFER
  • P1 and P2 are the intermediate BFRs between PE1 and PE2, respectively. All devices establish BGP_LS peers with the control device respectively.
  • PE1 reports the BFR-ID of PE1, the BIFT identifier of PE1, the node attribute of PE1, the neighbor information of PE1 and the link information of PE1 to the control device through BGP_LS;
  • PE2 reports PE2 through BGP_LS
  • the BFR-ID of PE2, the BIFT identifier of PE2, the node attribute of PE2, the neighbor information of PE2 and the link information of PE2 are reported to the control device;
  • P1 reports the BIFT identifier of P1, the node attribute of P1, the neighbor information of P1 and the The link information of P2 is reported to the control device;
  • P2 reports the BIFT identifier of P2, the node attribute of P2, the neighbor information of P2 and the link information of P2 to the control device through BGP_LS; the control device
  • receiving the first information from the BFIR by the control device includes: the control device receives the first information sent by the RR communicating with the BFIR; or the control device receives the first information sent by the BFIR.
  • the control device receiving the second information from the first BFER includes: the control device receives the second information sent by the RR communicated with the first BFER; or the control device receives the information sent by the intermediate BFR communicated with the first BFER. second information; or the control device receives the second information sent by the first BFER.
  • the RR collects the information of each device in the BIER network topology, and then the RR reports the information to the control device. .
  • the control device only needs to interact with the RR, and the control device does not need to obtain information by interacting with each device in the network topology, thus further saving the resources of the control device.
  • each device in the BIER network topology establishes a BGP_LS peer with the RR, and each device in the BIER network collects the interior gateway protocol (IGP) topology, and optionally, also collects information such as bandwidth and link delay.
  • IGP interior gateway protocol
  • BGP-LS reports the collected information to RR.
  • each device in the BIER network carries the BIER information by extending the attributes of the BGP_LS, and publishes the BIER information. After the RR collects the information of each device in the BIER network, it reports the information to the control device.
  • the RR also establishes a BGP_LS peer with the control device and reports the collected information to the control device.
  • the second information further includes multicast source group information corresponding to the first BFER.
  • the control device may configure the corresponding multicast source group information for the first BFER.
  • This embodiment of the present application does not limit the multicast source group information corresponding to the first BFER, and the multicast source group information corresponding to the first BFER includes but is not limited to the multicast source address and the multicast group identifier.
  • the BFR-ID of the first BFER involved in the above six situations is an identifier dynamically acquired by the first BFER, and the dynamic acquisition is an unused identifier acquired from a set of BFR-IDs 's identification.
  • the second information further includes at least one of a subfield identifier SD, a bitstring length (bitstring length, BSL), and a set identifier SI.
  • Step 202 the control device obtains a corresponding relationship based on the service requirements and the BIER network topology, where the corresponding relationship includes the BFR-ID of at least one BFER and the information of the next hop.
  • the control device displays the BIER network topology, and obtains service requirements based on the displayed BIER network topology.
  • the service requirements include one or more of bandwidth, delay, packet loss, or a designated node.
  • the designated node means that the message transmission path does not include the designated node, or the designated node is not on the message transmission path. Or, the designated node means that the message transmission path includes the designated node, or the designated node is on the message transmission path.
  • the service requirement includes at least one of devices that the path needs to include, a bandwidth range that the path needs to meet, a delay range that the path needs to meet, and links that need to be avoided.
  • the link that needs to be avoided means that the path does not include the link that needs to be avoided.
  • the control device can determine the message transmission path based on the service requirements and the BIER network topology, and determine the corresponding relationship based on the message transmission path.
  • the control device obtains the corresponding relationship based on business requirements and the BIER network topology, including: the control device obtains the information of the target BFR based on the business requirements, obtains the corresponding relationship based on the information of the target BFR and the BIER network topology, and corresponds to The relationship includes the BFR-ID of at least one BFER and the information of the target BFR.
  • the control device obtains the corresponding relationship based on the information of the target BFR and the BIER network device, and the corresponding relationship includes the BFR-ID of at least one BFER and the next hop.
  • the next hop is the target BFR
  • the corresponding relationship includes the BFR-ID of at least one BFER and the information of the target BFR.
  • the information of the next hop includes the BIFT-ID of the next hop or the end.BIER address of the next hop.
  • the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and the information of the outgoing interface communicating with the node serving as the BFIR neighbor.
  • Step 203 the control device sends the corresponding relationship to the BFIR.
  • control device sends the corresponding relationship to the BFIR.
  • the control device sends the corresponding relationship to the BFIR through a network configuration protocol (network configuration protocol, NETCONF).
  • network configuration protocol network configuration protocol, NETCONF
  • the control device may also use other protocols for sending, for example, carrying the corresponding relationship in a traffic engineering (segment routing, SR) policy (policy) for sending.
  • SR segment routing
  • policy policy
  • the control device may also send the corresponding relationship corresponding to the BFER to the BFER.
  • the control device also sends the corresponding relationship corresponding to the intermediate BFR to the intermediate BFR.
  • the corresponding relationship corresponding to the intermediate BFR includes address information of the intermediate BFR and information of the next hop of the intermediate BFR.
  • the information of the next hop of the intermediate BFR includes the BIFT-ID of the next hop of the intermediate BFR or the end.BIER address of the next hop.
  • the information of the next hop of the intermediate BFR further includes the information of the outgoing interface communicated with the next hop.
  • the paths that meet the service requirements obtained in the embodiment of the present application may be two, including the main path and the backup path; the main path includes the first BFIR and the first BFER, and the backup path includes the second BFIR and the second BFER,
  • the control device sends the corresponding correspondence to the first BFIR on the primary path and the second BFIR on the backup path, respectively.
  • each device on the primary path and each device on the backup path are different, so that the primary and backup paths are completely separated and reliability is further ensured.
  • Step 204 the BFIR receives the correspondence sent by the control device.
  • each device in the BIER network reports the information of each device to the control device, or each device reports the information to the RR, and the RR Report to the control device. Therefore, for the BFIR, before the BFIR receives the corresponding relationship sent by the control device, it also includes reporting information, and the manner in which the BFIR reports information includes but is not limited to the following situations.
  • the BFIR before the BFIR receives the correspondence sent by the control device, it further includes: the BFIR sends the first information to the control device, and the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attributes of the BFIR, and the neighbors of the BFIR. information and BFIR link information.
  • the BFIR before the BFIR receives the correspondence sent by the control device, it also includes: the BFIR sends the first information to the control device, and the first information includes the BFR-ID of the BFIR and the MPLS label of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and Link information for BFIR.
  • BFIR Before BFIR receives the correspondence sent by the control device, it also includes: BFIR sends first information to the control device, and the first information includes BFIR's BFR-ID and BFIR's BIFT identifier, BFIR's node attributes, BFIR's neighbor information and Link information for BFIR.
  • the way in which BFIR reports the first information to the control device includes but is not limited to establishing a BGP neighbor between BFIR and the control device.
  • BFIR and the control device establish a BGP_LS peer, and send the first information to the control device through BGP-LS.
  • sending the first information to the control device by the BFIR includes: the BFIR sends the first information to the RR; or the BFIR directly sends the first information to the control device.
  • control device after the control device sends the corresponding relationship to the BFIR device, it further includes: the control device receives the path failure information sent by any device on the path; The BFIR device on the re-determined path delivers the corresponding correspondence. If the BFIR device on the re-determined path is the same as the BFIR on the previously determined path, the BFIR may delete the previously received correspondence to save storage space.
  • the BFIR device may also forward the packet based on the forwarding table learned by the routing protocol, that is, the learned correspondence.
  • the control device obtains the corresponding relationship based on the service requirements and the BIER network topology, the corresponding relationship is more in line with the requirements of service path planning, and the corresponding relationship is sent to the BFIR, without the need for the BFIR to obtain the corresponding relationship through learning.
  • the efficiency of multicast deployment is improved.
  • the control device obtains the corresponding relationship and sends it to the BFIR in a static configuration, it can solve the problem of one-hop traffic diversion in complex networking environments such as autonomous systems (AS) or heterogeneous networking.
  • AS autonomous systems
  • the devices in the BIER network report information to the controller through the RR, and the controller statically plans the BIER or BIERv6 multicast service paths and delivers the corresponding relationship as an example.
  • the methods provided in the embodiments of the present application are given by way of example.
  • the implementation environment of the method for obtaining a path is shown in FIG. 3 .
  • the BIER network device includes 5 PEs, namely PE1, PE2, PE3, PE4 and PE5.
  • the PEs in the BIER network also include P1, P2 and P3. RR is also included in the BIER network.
  • the method for obtaining a path includes the following processes.
  • Step 401 the controller receives the topology information set and the BIER attribute set sent by the RR.
  • each device in the BIER network establishes a BGP_LS peer with the RR, and reports the respective information to the RR through the BGP-LS.
  • the RR obtains the information of PE1, PE2, PE3, P1, and P2, and obtains the topology information set and the BIER attribute set.
  • the RR and the controller establish a BGP_LS peer, and the RR reports the topology information set and BIER attribute set to the controller through BGP_LS.
  • the topology information set includes neighbor information of PE1, neighbor information of PE2, neighbor information of PE3, neighbor information of P1, neighbor information of P2, link information between PE1 and P1, and link information between P1 and P2.
  • BIER attribute set includes PE2's BFR-ID, PE2's node attribute, PE2's end.BIER address, PE3's BFR-ID, PE3's node Attribute, end.BIER address of PE3, BFR-ID of PE1, node attribute of PE1, end.BIER address of PE1, end.BIER address of P1, node attribute of P1, end.BIER address of P2, node attribute of P2 .
  • the multicast source group information corresponding to PE2 and/or the multicast source group information corresponding to PE3 is also included.
  • Step 402 the controller obtains the BIER network topology based on the topology information set and the BIER attribute set.
  • the controller acquires the BIER network topology including PE1, PE2, PE3, P1 and P2 based on the topology information set and the BIER attribute set.
  • the controller may display the BIER network topology through the configuration interface, so as to facilitate the user to input service requirements.
  • the user can enter the service requirements on the configuration interface, such as the equipment that the path needs to pass through, the bandwidth range that the path needs to meet, etc.
  • the controller obtains the service requirements based on the information entered on the configuration interface.
  • the user can also specify the path start node, root node, path destination node, and leaf node aggregation node on the configuration interface (usually, the aggregation node of a metropolitan area network can be counted, and the leaf node can be counted as a special user) etc.
  • the controller can add constraints based on the content specified by the user, so as to determine the path that meets the business requirements.
  • the method provided by the embodiment of the present application also supports displaying optional business requirements through the configuration interface, the user can make selections, and the controller takes the content selected by the user as the acquired business requirements .
  • the server uses the selected bandwidth and cost as business requirements.
  • Step 403 the controller obtains the corresponding relationship according to the service requirements and the network topology, and sends the corresponding relationship to the BFIR.
  • the controller After the controller obtains the service requirements and the network topology, it determines the path that meets the service requirements in the network topology, obtains the corresponding relationship based on the determined path, and then sends the corresponding relationship to the BFIR to implement the static configuration of the corresponding relationship.
  • the correspondence may form a forwarding table.
  • the controller determines that the transmission paths of the multicast packet are PE1->P1->P2->PE2 and PE1->P1->P2- >PE3. Afterwards, the controller sends the corresponding relationship to PE1, where the corresponding relationship includes the BFR-IDs of PE2 and PE3 and the information of the next hop of PE1.
  • the information of the next hop of PE1 includes P1, such as the BIFT-ID or end.BIER address of the P1.
  • the corresponding relationship can be configured as a static route and delivered to PE1 through NETCONF.
  • the controller may also send the corresponding corresponding relationship to other devices in the path.
  • the method for obtaining a path includes the following processes.
  • Step 601 the controller receives the topology information set and the BIER attribute set sent by the RR, and obtains the BIER network topology based on the topology information set and the BIER attribute set.
  • step 601 reference may be made to steps 401 and 402 in the method shown in FIG. 4 above, which will not be repeated here.
  • Step 602 the controller determines the path based on the service requirements and the BIER network topology, and obtains the corresponding relationship based on the path.
  • step 601 reference may be made to the step 403 in the method shown in FIG. 4, which will not be repeated here.
  • the controller automatically delivers static routing configuration to each node on the path according to the calculated path, and specifies the forwarding path of a node in a certain BFR-ID range on the delivery node (NHP is the next hop node, and the outbound interface is the same as the next hop node. directly connected interfaces), which is the same as the preceding statically planned path.
  • Step 603 the controller sends the corresponding relationship to each device on the path.
  • the controller sends the corresponding relationship to each device on the path, and each device does not need to obtain the corresponding relationship through learning, which further improves the efficiency of multicast deployment.
  • the controller calculates the path from the root node of the primary path to the sink node P3 of subnet 1, from the root node of the backup path to the sink node P4 of subnet 1, and the destination node
  • the corresponding relationship is taken as an example of delivering a BIER or BIERv6 packet forwarding table to nodes P3 and P4 of subnet 1.
  • the root nodes (ie, BFIRs) of the primary and backup paths are PE1 and PE2, respectively.
  • the corresponding relationship (forwarding table) issued by the forwarding path of the root node PE1 to P3 based on the main path includes but is not limited to the following contents.
  • the content of the corresponding relationship (forwarding table) sent by the controller to the root node PE1 includes:
  • FBM Bitstring composed of BFR-IDs of all online leaf nodes BFER in subnet 1. For example, in Figure 7, PE3 and PE4 are online. Taking BSL as 128 as an example, the delivered bitstring is: 00... 000110 (128 bits in total).
  • the next hop node of PE1 is P1.
  • the controller sends the BIFT-ID assigned by P1 to PE1 to PE1; in the BIERv6 scenario, the controller sends the end.BIER address of P1 to PE1 ;
  • the content of the corresponding relationship (forwarding table) issued by the controller to P1 includes:
  • FBM a bitstring composed of the BFR-IDs of all online leaf nodes BFER in subnet 1. For example, PE3 and PE4 are online in Figure 7, and the BSL is 128, then the delivered bitstring is: 00...000110 (128 bits in total).
  • the next hop of P1 is P3.
  • the controller sends P1 the BIFT-ID assigned by P3 to P1; in the BIERv6 scenario, the controller sends the end.BIER address of P3 to P1;
  • the correspondence (forwarding table) issued by the forwarding path from the root node PE2 to P4 based on the backup path includes but is not limited to the following contents.
  • the content of the corresponding relationship (forwarding table) sent by the controller to the root node PE2 includes:
  • FBM Bitstring composed of BFR-IDs of all online leaf nodes BFER in subnet 1. For example, in Figure 7, PE3 and PE4 are online. Taking BSL as 128 as an example, the delivered bitstring is: 00... 000110 (128 bits in total).
  • the next hop of PE2 is P2.
  • the controller sends the BIFT-ID of P2 to PE2 to PE2; in the BIERv6 scenario, the controller sends the end.BIER address of P2 to PE2;
  • the content of the corresponding relationship (forwarding table) issued by the controller to P2 includes:
  • FBM Bitstring composed of BFR-IDs of all online leaf nodes BFER in subnet 1. For example, in Figure 7, PE3 and PE4 are online. Taking BSL as 128 as an example, the delivered bitstring is: 00... 000110 (128 bits in total).
  • the next hop of P2 is P4.
  • the controller sends P2 the BIFT-ID assigned by P4 to P2; in the BIERv6 scenario, the controller sends the end.BIER address of P4 to P2;
  • the path delivery in subnet 1 is the same as the static configuration of the root node multicast traffic of the main path.
  • each device in the BIER network transmits packets based on the corresponding relationship, the packets are forwarded according to the BIER static forwarding table issued, and the bitstring copy is still performed by hop-by-hop query BIFT entry.
  • the method provided by the embodiment of the present application generates a corresponding relationship, that is, a BIFT entry forwarding a message according to a static configuration, and finally achieves the purpose of path planning.
  • the root node traffic tunnel of the primary path is PE1-P1-P3, which is replicated and forwarded by P3 using the dynamically learned BIER forwarding table;
  • the root node traffic tunnel of the backup path is PE2-P2-P4, which is forwarded by P4 using the dynamically learned BIER forwarding table.
  • Publish copy and forward The two tunnel paths form active and standby reliability protection. Since the two statically configured paths of the root node traffic of the primary path and the root node traffic of the backup path form reliability protection, under the condition that paths are separated in the network topology, statically specifying paths can ensure that the primary and backup paths received by each node can be guaranteed.
  • the paths traversed by the root multicast flow are completely separated, realizing full backup of the double traffic of the root node of the primary and backup paths.
  • the leaf nodes switch to receive the backup root traffic sent through the backup path.
  • the dynamic forwarding table learned through the routing protocol can continue to forward multicast traffic.
  • the tunnel fault information can also be reported to the controller. Deliver the static forwarding entry configuration to the device on the new path, that is, deliver a new correspondence.
  • the destination node needs to be specified as the upstream node closer to the BFER group in the small range; if the route needs to be calculated to a specific BFER node, Then the destination node of the route calculation needs to be specified as the BFER node.
  • the multicast forwarding path is designated to the BFER leaf node of city 1: the root node of the main path is the provincial edge router (ER) 1, The root traffic path of the main path is: national aggregation ER1 - metro ER1 - aggregation ER1, as shown by the solid line in Figure 8.
  • the root node of the backup path is the provincial aggregation ER2, and the root traffic path of the backup path is: provincial aggregation ER2 - metro ER2 - aggregation ER2, as shown by the dotted line in Figure 8.
  • FIG. 8 only takes the route from the provincial capital city to the prefecture city 1 as an example for description.
  • the route from the provincial capital city to the prefecture city 2 can also be obtained.
  • the traffic path is: provincial aggregation ER1-metro core (MC)1-aggregation node (AGG)1.
  • FIG. 9 is a schematic structural diagram of an apparatus for obtaining a path provided by an embodiment of the present application.
  • the apparatus is applied in a BIER network.
  • the apparatus is applied to a control device in the BIER network, and the control device is the above-mentioned FIG. 2 , Fig. 4 and Fig. 6 the control device shown in any of the accompanying drawings.
  • the apparatus for obtaining a path shown in FIG. 9 can perform all or part of the operations performed by the control device. It should be understood that the apparatus may include more additional modules than the shown modules or omit a part of the modules shown therein, which is not limited in this embodiment of the present application.
  • the device includes:
  • the first obtaining module 901 is used to obtain the BIER network topology, and the BIER network topology includes BFIR and at least one BFER;
  • the second obtaining module 902 is used to obtain a corresponding relationship based on business requirements and BIER network topology, and the corresponding relationship includes at least one BFER bit forwarding router identifier BFR-ID and the information of the next hop;
  • the sending module 903 is configured to send the corresponding relationship to the BFIR.
  • At least one BFER includes a first BFER
  • the first acquisition module 901 is configured to receive first information from the BFIR, where the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, Node attributes of BFIR, neighbor information of BFIR, and link information of BFIR; receiving second information from the first BFER, the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, the first BFER The node attribute of the first BFER, the neighbor information of the first BFER and the link information of the first BFER; based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR and the information of the first BFER as the BFIR neighbor. and link SLA information between BFIR and first BFER.
  • At least one BFER includes a first BFER
  • the first obtaining module 901 is configured to receive first information from the BFIR, where the first information includes the BFR-ID of the BFIR and the multi-protocol label switching MPLS of the BFIR Label, node attribute of BFIR, neighbor information of BFIR, and link information of BFIR; receive second information from the first BFER, the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the first BFER The node attribute of the first BFER, the neighbor information of the first BFER and the link information of the first BFER; based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR and the information of the first BFER as the BFIR neighbor. and link SLA information between BFIR and first BFER.
  • At least one BFER includes a first BFER
  • the first acquisition module 901 is configured to receive first information from the BFIR, where the first information includes the BFR-ID of the BFIR and the bit index forwarding table BIFT of the BFIR Identity, node attribute of BFIR, neighbor information of BFIR, and link information of BFIR; receive second information from the first BFER, the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the first BFER The node attribute of the first BFER, the neighbor information of the first BFER and the link information of the first BFER; based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR and the information of the first BFER as the BFIR neighbor. and link SLA information between BFIR and first BFER.
  • At least one BFER includes a first BFER
  • the first acquisition module 901 is configured to receive first information from the BFIR, where the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, Node attributes of BFIR, neighbor information of BFIR, and link information of BFIR; receiving second information from the first BFER, the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, the first BFER Receive the third information from the intermediate BFR, the third information includes the end.BIER address of the intermediate BFR, the node attribute of the intermediate BFR, and the neighbors of the intermediate BFR.
  • the BIER network topology includes the information of the BFIR, the information of the intermediate BFR as a neighbor of the BFIR, the information of the first BFER, The link SLA information between the BFIR and the intermediate BFR and the link SLA information between the intermediate BFR and the first BFER.
  • At least one BFER includes a first BFER
  • the first acquisition module 901 is configured to receive first information from the BFIR, where the first information includes the BFR-ID of the BFIR, the MPLS label of the BFIR, the BFIR's Node attribute, neighbor information of BFIR, and link information of BFIR; receive second information from the first BFER, the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, Neighbor information of the first BFER and link information of the first BFER; receive third information from the intermediate BFR, the third information includes the MPLS label of the intermediate BFR, the node attribute of the intermediate BFR, the neighbor information of the intermediate BFR, and the chain of the intermediate BFR road information; based on the first information, the second information and the third information, the BIER network topology is obtained.
  • the BIER network topology includes the information of the BFIR, the information of the intermediate BFR that is the neighbor of the BFIR, the information of the first BFER, and the information between the BFIR and the intermediate BFR.
  • the at least one BFER includes a first BFER
  • the first acquisition module 901 is configured to receive first information from the BFIR, where the first information includes the BFR-ID of the BFIR, the BIFT identifier of the BFIR, the BFIR's Node attribute, neighbor information of BFIR and link information of BFIR; receive second information from the first BFER, the second information includes the BFR-ID of the first BFER, the BIFT identification of the first BFER, the node attribute of the first BFER, Neighbor information of the first BFER and link information of the first BFER; receive third information from the intermediate BFR, where the third information includes the BIFT identifier of the intermediate BFR, the node attribute of the intermediate BFR, the neighbor information of the intermediate BFR, and the chain of the intermediate BFR road information; based on the first information, the second information and the third information, the BIER network topology is obtained.
  • the BIER network topology includes the information of the BFIR, the information of the intermediate BFR that is the neighbor of the BFIR, the information of the first BFER, and the information between the BFIR and the intermediate BFR.
  • the first obtaining module 901 is configured to receive the first information sent by the route reflector RR that communicates with the BFIR; or receive the first information sent by the BFIR.
  • the first obtaining module 901 is configured to receive the second information sent by the RR in communication with the first BFER; or receive the second information sent by the intermediate BFR in communication with the first BFER; or receive the second information sent by the RR in communication with the first BFER; A second message sent by the BFER.
  • the second information further includes multicast source group information corresponding to the first BFER.
  • the second obtaining module 902 is configured to obtain the information of the target BFR based on business requirements; obtain the corresponding relationship based on the information of the target BFR and the BIER network topology, and the information of the next hop in the corresponding relationship is: Information on the target BFR.
  • the service requirements include one or more of bandwidth, delay, packet loss, and designated nodes.
  • the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and the information of the outgoing interface communicating with the node serving as the BFIR neighbor.
  • the second information further includes one or more of the subdomain identifier SD, BSL and set identifier SI.
  • the BFR-ID of the first BFER is an identifier dynamically acquired by the first BFER, and the dynamic acquisition is an unused identifier acquired from a set of BFR-IDs.
  • FIG. 10 is a schematic structural diagram of an apparatus for obtaining a path provided by an embodiment of the present application.
  • the apparatus is applied to a BIER network.
  • the apparatus is applied to a BFIR device in a BIER network, and the BFIR device is the BFIR device shown in any of the above-mentioned Figures 2 , 4 and 6 .
  • the apparatus for obtaining a path shown in FIG. 10 can perform all or part of the operations performed by the BFIR device. It should be understood that the apparatus may include more additional modules than the shown modules or omit a part of the modules shown therein, which is not limited in this embodiment of the present application.
  • the device includes:
  • the receiving module 1001 is configured to receive the corresponding relationship sent by the control device, where the corresponding relationship includes at least one BFER bit forwarding router identifier BFR-ID and the information of the next hop.
  • the apparatus further includes:
  • the sending module 1102 is configured to send first information to the control device, where the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR.
  • the apparatus further includes:
  • the sending module 1102 is configured to send first information to the control device, where the first information includes BFIR BFR-ID and BFIR MPLS label, BFIR node attribute, BFIR neighbor information and BFIR link information.
  • the apparatus further includes:
  • the sending module 1102 is configured to send first information to the control device, where the first information includes BFIR BFR-ID and BFIR bit index forwarding table BIFT identifier, BFIR node attribute, BFIR neighbor information and BFIR link information.
  • the sending module 1102 is configured to send the first information to the route reflector RR; or directly send the first information to the control device.
  • the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and the information of the outgoing interface communicating with the node serving as the BFIR neighbor.
  • the specific hardware structure of the control device or the BFIR device in the above-mentioned embodiment is the network device 1500 shown in FIG. 12 , including a transceiver 1501 , a processor 1502 and a memory 1503 .
  • the transceiver 1501 , the processor 1502 and the memory 1503 are connected through a bus 1504 .
  • the transceiver 1501 is used to receive and send messages
  • the memory 1503 is used to store instructions or program codes
  • the processor 1502 is used to call the instructions or program codes in the memory 1503 to make the control device or the BFIR device execute the above method embodiments related processing steps.
  • the network device 1500 in this embodiment of the present application may correspond to the control device in each of the above method embodiments.
  • the illustrated network device 1500 is capable of performing all or part of the operations performed by the control device.
  • the network device 1500 in this embodiment of the present application may correspond to the BFIR device in each of the above method embodiments.
  • the illustrated network device 1500 is capable of performing all or part of the operations performed by a BFIR device.
  • the network device 1500 may also correspond to the apparatus shown in FIG. 9 .
  • the sending module 903 involved in FIG. 9 is equivalent to the transceiver 1501
  • the first acquiring module 901 and the second acquiring module 902 are equivalent to the processor 1502 .
  • the receiving module 1001 and the transmitting module 1002 involved in FIG. 10 to FIG. 11 are equivalent to the transceiver 1501 .
  • FIG. 13 shows a schematic structural diagram of a network device 2000 provided by an exemplary embodiment of the present application.
  • the network device 2000 shown in FIG. 13 is configured to perform the operations involved in the methods for obtaining a path shown in the above-mentioned FIGS. 2 , 4 and 6 .
  • the network device 2000 is, for example, a switch, a router, and the like.
  • the network device 2000 includes at least one processor 2001 , memory 2003 and at least one communication interface 2004 .
  • the processor 2001 is, for example, a general-purpose central processing unit (central processing unit, CPU), a digital signal processor (digital signal processor, DSP), a network processor (network processor, NP), a graphics processor (Graphics Processing Unit, GPU), A neural-network processing unit (NPU), a data processing unit (DPU), a microprocessor or one or more integrated circuits for implementing the solution of the present application.
  • the processor 2001 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It may implement or execute the various logical blocks, modules and circuits described in connection with the disclosure of the embodiments of the present invention.
  • a processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
  • the network device 2000 further includes a bus.
  • the bus is used to transfer information between the components of the network device 2000 .
  • the bus may be a peripheral component interconnect (PCI for short) bus or an extended industry standard architecture (EISA for short) bus or the like.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in FIG. 13, but it does not mean that there is only one bus or one type of bus.
  • the components of the network device 2000 in FIG. 13 may be connected in other manners, and the embodiment of the present invention does not limit the connection manner of the components.
  • the memory 2003 is, for example, a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, or a random access memory (random access memory, RAM) or a memory device that can store information and instructions.
  • Other types of dynamic storage devices such as electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, optical disks storage (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of Any other medium accessed by a computer without limitation.
  • the memory 2003 exists independently, for example, and is connected to the processor 2001 through a bus.
  • the memory 2003 may also be integrated with the processor 2001 .
  • the communication interface 2004 uses any device such as a transceiver for communicating with other devices or a communication network, which may be Ethernet, a radio access network (RAN), or wireless local area networks (WLAN), or the like.
  • Communication interface 2004 may include a wired communication interface and may also include a wireless communication interface.
  • the communication interface 2004 may be an Ethernet (Ethernet) interface, a Fast Ethernet (FE) interface, a Gigabit Ethernet (GE) interface, an Asynchronous Transfer Mode (ATM) interface, a wireless local area network ( wireless local area networks, WLAN) interfaces, cellular network communication interfaces, or a combination thereof.
  • the Ethernet interface can be an optical interface, an electrical interface or a combination thereof.
  • the communication interface 2004 may be used for the network device 2000 to communicate with other devices.
  • the processor 2001 may include one or more CPUs, such as CPU0 and CPU1 as shown in FIG. 13 .
  • Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the network device 2000 may include multiple processors, such as the processor 2001 and the processor 2005 shown in FIG. 13 .
  • processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU).
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the network device 2000 may further include an output device and an input device.
  • the output device communicates with the processor 2001 and can display information in a variety of ways.
  • the output device may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, a projector, or the like.
  • the input device communicates with the processor 2001 and can receive user input in various ways.
  • the input device may be a mouse, a keyboard, a touch screen device, or a sensor device, or the like.
  • the memory 2003 is used to store the program code 2010 for executing the solutions of the present application
  • the processor 2001 can execute the program code 2010 stored in the memory 2003 . That is, the network device 2000 can implement the method for obtaining a path provided by the method embodiment through the processor 2001 and the program code 2010 in the memory 2003 .
  • One or more software modules may be included in the program code 2010 .
  • the processor 2001 itself may also store program codes or instructions for executing the solutions of the present application.
  • the network device 2000 in this embodiment of the present application may correspond to the control device in each of the above method embodiments, and the processor 2001 in the network device 2000 reads the program code 2010 in the memory 2003 or stores the program code 2001 itself
  • the network device 2000 in this embodiment of the present application may correspond to the BFIR device in the above method embodiments, and the processor 2001 in the network device 2000 reads the program code 2010 in the memory 2003 or stores the program code 2001 itself.
  • the network device 2000 may also correspond to the apparatus shown in FIG. 9 above, and each functional module in the apparatus shown in FIG. 9 is implemented by software of the network device 2000 .
  • the functional modules included in the apparatus shown in FIG. 9 are generated after the processor 2001 of the network device 2000 reads the program code 2010 stored in the memory 2003 .
  • the sending module 903 involved in FIG. 9 is equivalent to the communication interface 2004
  • the first acquiring module 901 and the second acquiring module 902 are equivalent to the processor 2001 and/or the processor 2005 .
  • the receiving module 1001 and the sending module 1002 involved in FIG. 10 to FIG. 11 are equivalent to the communication interface 2004 .
  • each step of the method for obtaining a path shown in FIG. 2 , FIG. 4 , and FIG. 6 is completed by an integrated logic circuit of hardware or instructions in the form of software in the processor of the network device 2000 .
  • the steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art.
  • the storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware, which will not be described in detail here to avoid repetition.
  • FIG. 14 shows a schematic structural diagram of a network device 2100 provided by another exemplary embodiment of the present application.
  • the network device 2100 shown in FIG. 14 is used to perform the functions shown in the above-mentioned FIGS. 2, 4 and 6. All or part of the operations involved in the method of obtaining the path.
  • the network device 2100 is, for example, a controller, a switch, a router, etc., and the network device 2100 can be implemented by a general bus architecture.
  • the network device 2100 includes: a main control board 2110 and an interface board 2130 .
  • the main control board is also called the main processing unit (MPU) or the route processor card (route processor card).
  • the main control board 2110 is used to control and manage various components in the network device 2100, including route calculation, device management , Equipment maintenance, protocol processing functions.
  • the main control board 2110 includes: a central processing unit 2111 and a memory 2112 .
  • the interface board 2130 is also referred to as a line processing unit (LPU), a line card (line card) or a service board.
  • the interface board 2130 is used to provide various service interfaces and realize data packet forwarding.
  • the service interface includes, but is not limited to, an Ethernet interface, a POS (Packet over SONET/SDH) interface, etc.
  • the Ethernet interface is, for example, a flexible Ethernet service interface (Flexible Ethernet Clients, FlexE Clients).
  • the interface board 2130 includes: a central processing unit 2131, a network processor 2132, a forwarding table entry memory 2134, and a physical interface card (ph10sical interface card, PIC) 2133.
  • the central processing unit 2131 on the interface board 2130 is used to control and manage the interface board 2130 and communicate with the central processing unit 2111 on the main control board 2110 .
  • the network processor 2132 is used to realize the processing of the message.
  • the form of the network processor 2132 may be a forwarding chip.
  • the forwarding chip may be a network processor (NP).
  • the forwarding chip may be implemented by an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • the network processor 2132 is configured to forward the received message based on the forwarding table stored in the forwarding table entry memory 2134.
  • the message is sent to the CPU (such as processing by the central processing unit 2131); if the destination address of the message is not the address of the network device 2100, the next hop and outbound interface corresponding to the destination address are found from the forwarding table according to the destination address, and the message is forwarded to The outbound interface corresponding to the destination address.
  • the processing of the uplink message may include: processing of the incoming interface of the message, and forwarding table lookup; the processing of the downlink message may include: forwarding table lookup, and so on.
  • the central processing unit can also perform the function of a forwarding chip, for example, software forwarding is implemented based on a general-purpose CPU, so that a forwarding chip is not required in the interface board.
  • the physical interface card 2133 is used to realize the interconnection function of the physical layer, the original traffic enters the interface board 2130 through this, and the processed packets are sent from the physical interface card 2133 .
  • the physical interface card 2133 is also called a daughter card, which can be installed on the interface board 2130, and is responsible for converting the photoelectric signal into a message, and after checking the validity of the message, it is forwarded to the network processor 2132 for processing.
  • the central processing unit 2131 can also perform the functions of the network processor 2132 , such as implementing software forwarding based on a general-purpose CPU, so that the network processor 2132 is not required in the physical interface card 2133 .
  • the network device 2100 includes multiple interface boards.
  • the network device 2100 further includes an interface board 2140 .
  • the interface board 2140 includes a central processing unit 2141 , a network processor 2142 , a forwarding table entry storage 2144 and a physical interface card 2143 .
  • the functions and implementation manners of the components in the interface board 2140 are the same as or similar to those of the interface board 2130, and will not be repeated here.
  • the network device 2100 further includes a switch fabric board 2120 .
  • the switch fabric unit 2120 may also be referred to as a switch fabric unit (switch fabric unit, SFU).
  • SFU switch fabric unit
  • the switching network board 2120 is used to complete data exchange between the interface boards.
  • the interface board 2130 and the interface board 2140 can communicate through the switch fabric board 2120 .
  • the main control board 2110 is coupled with the interface board.
  • the main control board 2110, the interface board 2130, the interface board 2140, and the switching network board 2120 are connected to the system backplane through a system bus to achieve intercommunication.
  • an inter-process communication (IPC) channel is established between the main control board 2110 and the interface board 2130 and the interface board 2140, and the main control board 2110 and the interface board 2130 and the interface board 2140 The communication is carried out through the IPC channel.
  • IPC inter-process communication
  • the network device 2100 includes a control plane and a forwarding plane
  • the control plane includes a main control board 2110 and a central processing unit 2111
  • the forwarding plane includes various components that perform forwarding, such as forwarding entry storage 2134, physical interface card 2133, and network processing device 2132.
  • the control plane performs functions such as routers, generating forwarding tables, processing signaling and protocol packets, and configuring and maintaining the status of network devices.
  • the control plane issues the generated forwarding tables to the forwarding plane.
  • the network processor 2132 controls the The following forwarding table forwards the packets received by the physical interface card 2133 by looking up the table.
  • the forwarding table issued by the control plane may be stored in the forwarding table entry storage 2134 . In some embodiments, the control plane and forwarding plane may be completely separated and not on the same network device.
  • main control boards there may be one or more main control boards, and when there are multiple main control boards, they may include the main main control board and the backup main control board.
  • a network device may have at least one switching network board, and the switching network board realizes data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices in a distributed architecture are greater than those in a centralized architecture.
  • the form of the network device can also be that there is only one board, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on this board.
  • the central processing unit on the board can be combined into a central processing unit on this board to perform the functions of the two superimposed, the data exchange and processing capacity of this form of network equipment is low (for example, low-end switches or routers, etc. Network equipment).
  • the specific architecture used depends on the specific networking deployment scenario, and there is no restriction here.
  • the network device 2100 corresponds to any of the apparatuses for obtaining a path, which are applied to a control device, as shown in any of the above-mentioned FIG. 9 .
  • the sending module 903 in the apparatus for obtaining a path shown in FIG. 9 is equivalent to the physical interface card 2133 or the physical interface card 2143 in the network device 2100 .
  • the first obtaining module 901 and the second obtaining module 902 in the apparatus for obtaining a path shown in FIG. 9 are equivalent to at least one of the central processor 2111 , the network processor 2132 and the network processor 2142 in the network device 2100 .
  • the network device 2100 also corresponds to the apparatus for obtaining a path, which is applied to BFIR and shown in any of the above-mentioned FIG. 10 to FIG. 11 .
  • the receiving module 1001 and the sending module 1002 in the apparatus for obtaining a path shown in FIGS. 10-11 are equivalent to the physical interface card 2133 or the physical interface card 2143 in the network device 2100 .
  • an embodiment of the present application further provides a communication system, where the communication system includes: a control device and a BFIR device.
  • the control device is the network device 1500 shown in FIG. 12 or the network device 2000 shown in FIG. 13 or the network device 2100 shown in FIG. 14
  • the BFIR device is the network device 1500 shown in FIG. 12 or the network device 1500 shown in FIG. 13 .
  • the network device 2000 or the network device 2100 shown in FIG. 14 is
  • control device For the methods performed by the control device and the BFIR device, reference may be made to the relevant descriptions of the embodiments shown in FIG. 2 , FIG. 4 , and FIG. 6 , which will not be repeated here.
  • processor may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processing (digital signal processing, DSP), application specific integrated circuit (application specific integrated circuit, ASIC), field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or any conventional processor or the like. It should be noted that the processor may be a processor supporting an advanced RISC machine (ARM) architecture.
  • ARM advanced RISC machine
  • the above-mentioned memory may include read-only memory and random access memory, and provide instructions and data to the processor.
  • the memory may also include non-volatile random access memory.
  • the memory may also store device type information.
  • the memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory may be random access memory (RAM), which acts as an external cache. By way of example and not limitation, many forms of RAM are available.
  • SRAM static RAM
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • double data rate synchronous dynamic random access Memory double data date SDRAM, DDR SDRAM
  • enhanced synchronous dynamic random access memory enhanced SDRAM, ESDRAM
  • synchronous link dynamic random access memory direct memory bus random access memory
  • direct rambus RAM direct rambus RAM
  • a computer-readable storage medium is also provided, and at least one program instruction or code is stored in the storage medium, and when the program instruction or code is loaded and executed by the processor, the computer realizes any one of the above Fig. 2, Fig. 4 and Fig. 6 The method used to get the path.
  • the present application provides a computer program.
  • the processor or the computer can execute the corresponding steps and/or processes in the foregoing method embodiments.
  • a chip includes a processor for invoking and executing instructions stored in the memory from a memory to cause a communication device on which the chip is mounted to perform the methods of the above aspects.
  • Another chip including: an input interface, an output interface, a processor and a memory, the input interface, the output interface, the processor and the memory are connected through an internal connection path, and the processor is used to execute the code in the memory, when the code is executed When the processor is configured to execute the methods in the above aspects.
  • a computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored on or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g.
  • coaxial cable, optical fiber, digital subscriber line) or wireless means to another website site, computer, server or data center.
  • a computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media.
  • Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk), among others.
  • the computer program product includes one or more computer program instructions.
  • the methods of the embodiments of the present application may be described in the context of machine-executable instructions, such as included in program modules executed in a device on a target's real or virtual processor.
  • program modules include routines, programs, libraries, objects, classes, components, data structures, etc. that perform particular tasks or implement particular abstract data structures.
  • the functionality of the program modules may be combined or divided among the described program modules.
  • Machine-executable instructions for program modules may be executed within local or distributed devices. In a distributed facility, program modules may be located in both local and remote storage media.
  • Computer program code for implementing the methods of the embodiments of the present application may be written in one or more programming languages. Such computer program code may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus such that the program code, when executed by the computer or other programmable data processing apparatus, causes the flowchart and/or block diagrams The function or operation specified in is implemented.
  • the program code may execute entirely on the computer, partly on the computer, as a stand-alone software package, partly on the computer and partly on a remote computer or entirely on the remote computer or server.
  • computer program code or related data may be carried by any suitable carrier to enable a device, apparatus or processor to perform the various processes and operations described above.
  • suitable carriers include signals, computer-readable media, and the like.
  • Examples of signals may include electrical, optical, radio, acoustic, or other forms of propagated signals, such as carrier waves, infrared signals, and the like.
  • a machine-readable medium may be any tangible medium that contains or stores a program for or in connection with an instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination thereof. More detailed examples of machine-readable storage media include electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only Memory (EPROM or flash memory), optical storage devices, magnetic storage devices, or any suitable combination thereof.
  • the disclosed systems, devices and methods may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the modules is only a logical function division. In actual implementation, there may be other division methods.
  • multiple modules or components may be combined or Integration into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or modules, and may also be electrical, mechanical or other forms of connection.
  • modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solutions of the embodiments of the present application.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
  • the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may be stored in a computer-readable storage medium.
  • the technical solutions of the present application are essentially or part of contributions to the prior art, or all or part of the technical solutions can be embodied in the form of software products, and the computer software products are stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .
  • first, second and other words are used to distinguish the same or similar items with basically the same function and function, and it should be understood that between “first”, “second” and “nth” There are no logical or timing dependencies, and no restrictions on the number and execution order. It will also be understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another.
  • a first edge network device may be referred to as a second edge network device, and similarly, a second edge network device may be referred to as a first edge network device, without departing from the scope of various described examples.
  • Both the first edge network and device and the second edge network device may be edge network devices, and in some cases, may be separate and distinct edge network devices.
  • the size of the sequence number of each process does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not be used in the embodiment of the present application. Implementation constitutes any limitation.
  • the meaning of the term “at least one” refers to one or more, and the meaning of the term “plurality” in this application refers to two or more.
  • a plurality of second messages refers to two or more more than one second message.
  • system and “network” are often used interchangeably herein.
  • determining B according to A does not mean that B is only determined according to A, and B may also be determined according to A and/or other information.
  • references throughout the specification to "one embodiment,” “an embodiment,” and “one possible implementation” mean that a particular feature, structure, or characteristic associated with the embodiment or implementation is included herein. in at least one embodiment of the application. Thus, appearances of "in one embodiment” or “in an embodiment” or “one possible implementation” in various places throughout this specification are not necessarily necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.

Landscapes

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

Abstract

The present application relates to the field of communications, and provides a method and apparatus for acquiring a path. The method is applied to a BIER network, and comprises: a control device acquires a BIER network topology, the BIER network topology comprising a BFIR and at least one BFER; the control device obtains a correspondence on the basis of a service demand and the BIER network topology, the correspondence comprising a BFR-ID of the at least one BFER and information of a next hop; and the control device sends the correspondence to the BFIR. The control device obtains a correspondence on the basis of the service demand and the BIER network topology, the correspondence being more consistent with the requirements of service path planning, and sends the correspondence to the BFIR without requiring the BFIR to obtain the correspondence by learning, thereby improving the multicast deployment efficiency.

Description

用于获取路径的方法和装置Method and apparatus for obtaining a path
本申请要求于2021年03月18日提交的申请号为202110290636.4、发明名称为“一种确定路径的方法及装置”的中国专利申请以及2021年07月30日提交的申请号为202110872818.2、发明名称为“用于获取路径的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the Chinese patent application filed on March 18, 2021 with the application number of 202110290636.4 and the title of the invention as "A method and device for determining a path" and the application number of 202110872818.2 filed on July 30, 2021, and the title of the invention. The priority of the Chinese patent application for "Method and Apparatus for Obtaining a Path", the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请实施例涉及通信领域,尤其涉及一种用于获取路径的方法和装置。The embodiments of the present application relate to the field of communications, and in particular, to a method and apparatus for acquiring a path.
背景技术Background technique
基于比特位的显式复制(bit indexed explicit replication,BIER)或基于比特位的显式复制互联网协议第6版(internet protocol version 6,IPv6)封装(bit index explicit replication IPv6encapsulation,BIERv6)是一种基于比特位(bit)索引进行显式复制的组播转发技术。在BIER子域中,为BIER转发入口路由器(bit-forwarding ingress router,BFIR)和BIER转发出口路由器(bit-forwarding egress router,BFER)等BIER位转发路由器(bit-forwarding router,BFR)分配唯一的BFR标识(identifier,ID)。Bit indexed explicit replication (BIER) or bit indexed explicit replication (internet protocol version 6, IPv6) encapsulation (bit index explicit replication IPv6 encapsulation, BIERv6) is a A multicast forwarding technology that explicitly replicates the bit index. In the BIER subdomain, BIER bit-forwarding routers (BFR) such as the BIER forwarding ingress router (BFIR) and the BIER forwarding egress router (BFER) are assigned unique BFR identifier (identifier, ID).
在组播报文转发过程中,BFIR需明确要将组播报文发往哪些BFER,因而需要获取路径。相关技术中,组播报文发往的BFER集合用一个比特串(bitstring)来表示,比特串中的每个bit所在的位置或索引表示一个边缘路由器的BFR ID。BFR根据比特索引转发表(bit index forwarding table,BIFT)将封装了bitstring的组播报文发给下游路由器,下游路由器解析bitstring并根据自己的BIFT表进行报文复制,逐跳发送到BFER。In the process of forwarding multicast packets, BFIR needs to specify which BFERs to send multicast packets to, and thus needs to obtain paths. In the related art, the BFER set to which the multicast message is sent is represented by a bit string, and the position or index of each bit in the bit string represents the BFR ID of an edge router. The BFR sends the bitstring-encapsulated multicast packet to the downstream router according to the bit index forwarding table (BIFT). The downstream router parses the bitstring and copies the packet according to its own BIFT table, and sends it to the BFER hop by hop.
相关技术中,BIFT表由BIRT表生成,BIRT表项来自于BFR ID和BFR前缀(prefix)的映射关系,BIRT表中指示了路由下一跳,该表项根据各个设备学习产生的路由表优选而成,遵循的是最短路径优先(shortest path first,SPF)原则。但是,靠SPF原则根据各个设备学习产生的路由表而生成的BIFT转发表有时无法满足业务路径规划的要求。In the related art, the BIFT table is generated by the BIRT table, the BIRT table entry comes from the mapping relationship between the BFR ID and the BFR prefix (prefix), and the BIRT table indicates the next hop of the route. It follows the shortest path first (SPF) principle. However, the BIFT forwarding table generated by the SPF principle based on the routing table learned by each device sometimes cannot meet the requirements of service path planning.
发明内容SUMMARY OF THE INVENTION
本申请提出一种用于获取路径的方法和装置,以满足业务路径规划的要求。The present application proposes a method and apparatus for obtaining a path to meet the requirements of service path planning.
第一方面,提供了一种用于获取路径的方法,所述方法应用于BIER的网络中,包括:控制设备获取BIER网络拓扑,该BIER网络拓扑包括BFIR和至少一个BFER;控制设备基于业务需求和BIER网络拓扑,获取对应关系,该对应关系包括至少一个BFER的BFR-ID和下一跳的信息;控制设备向BFIR发送该对应关系。In a first aspect, a method for obtaining a path is provided, the method is applied to a BIER network, including: a control device obtains a BIER network topology, the BIER network topology includes a BFIR and at least one BFER; the control device is based on business requirements. and the BIER network topology to obtain the corresponding relationship, the corresponding relationship includes the BFR-ID of at least one BFER and the information of the next hop; the control device sends the corresponding relationship to the BFIR.
本申请提供的技术方案,由控制设备基于业务需求以及BIER网络拓扑获取对应关系,该对应关系更加符合业务路径规划的要求,且将该对应关系发送给BFIR,无需BFIR通过学习得到对应关系,提高了组播部署效率。此外,由于是控制设备获取对应关系,再以静态配置的方式下发给BFIR,因而能够解决跨自治系统(autonomous system,AS)或异构 组网等复杂组网环境下的一跳引流问题。In the technical solution provided by this application, the control device obtains the corresponding relationship based on the business requirements and the BIER network topology, and the corresponding relationship is more in line with the requirements of business path planning, and the corresponding relationship is sent to the BFIR, without the need for the BFIR to obtain the corresponding relationship through learning. The efficiency of multicast deployment is improved. In addition, because the control device obtains the corresponding relationship and sends it to the BFIR in a static configuration, it can solve the problem of one-hop traffic diversion in complex networking environments such as autonomous systems (AS) or heterogeneous networking.
在一种可能的实现方式中,所述至少一个BFER包括第一BFER,所述控制设备获取BIER网络拓扑包括:所述控制设备接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的end.BIER地址、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;In a possible implementation manner, the at least one BFER includes a first BFER, and the obtaining, by the control device, the BIER network topology includes: the control device receiving first information from the BFIR, where the first information includes all The BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
所述控制设备接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的end.BIER地址、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;The control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, and the node of the first BFER attribute, neighbor information of the first BFER and link information of the first BFER;
所述控制设备基于所述第一信息和所述第二信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述第一BFER的信息和所述BFIR与所述第一BFER间的链路SLA信息。The control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and Link SLA information between the BFIR and the first BFER.
在一种可能的实现方式中,本申请中的链路信息是指链路SLA信息。链路SLA信息包括但不限于:链路带宽、时延、网际协议(internet protocol,IP)地址、内部网关协议(interior gateway protocol,IGP)度量值(metric)、风险链路组(Shared Risk Link Group,SRLG)等信息。In a possible implementation manner, the link information in this application refers to link SLA information. Link SLA information includes but is not limited to: link bandwidth, delay, internet protocol (IP) address, interior gateway protocol (IGP) metric (metric), risk link group (Shared Risk Link Group, SRLG) and other information.
在一种可能的实现方式中,所述至少一个BFER包括第一BFER,所述控制设备获取BIER网络拓扑包括:所述控制设备接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的多协议标签交换MPLS标签、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;In a possible implementation manner, the at least one BFER includes a first BFER, and the obtaining, by the control device, the BIER network topology includes: the control device receiving first information from the BFIR, where the first information includes all The BFR-ID of the BFIR and the multi-protocol label switching MPLS label of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
所述控制设备接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的MPLS标签、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;The control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, neighbor information of the first BFER and link information of the first BFER;
所述控制设备基于所述第一信息和所述第二信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述第一BFER的信息和所述BFIR与所述第一BFER间的链路SLA信息。The control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and Link SLA information between the BFIR and the first BFER.
在一种可能的实现方式中,所述至少一个BFER包括第一BFER,所述控制设备获取BIER网络拓扑包括:所述控制设备接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的比特索引转发表BIFT标识、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;In a possible implementation manner, the at least one BFER includes a first BFER, and the obtaining, by the control device, the BIER network topology includes: the control device receiving first information from the BFIR, where the first information includes all The BFR-ID of the BFIR and the bit index forwarding table BIFT identification of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
所述控制设备接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的BIFT标识、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;The control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the node attribute of the first BFER, neighbor information of the first BFER and link information of the first BFER;
所述控制设备基于所述第一信息和所述第二信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述第一BFER的信息和所述BFIR与所述第一BFER间的链路SLA信息。The control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and Link SLA information between the BFIR and the first BFER.
在一种可能的实现方式中,所述至少一个BFER包括第一BFER,所述控制设备获取BIER网络拓扑包括:所述控制设备接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的end.BIER地址、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;In a possible implementation manner, the at least one BFER includes a first BFER, and the obtaining, by the control device, the BIER network topology includes: the control device receiving first information from the BFIR, where the first information includes all The BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
所述控制设备接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER 的BFR-ID、所述第一BFER的end.BIER地址、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;The control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, and the node of the first BFER attribute, neighbor information of the first BFER and link information of the first BFER;
所述控制设备接收来自中间BFR的第三信息,所述第三信息包括所述中间BFR的end.BIER地址、所述中间BFR的节点属性、所述中间BFR的邻居信息和所述中间BFR的链路信息;The control device receives third information from the intermediate BFR, the third information includes the end.BIER address of the intermediate BFR, the node attribute of the intermediate BFR, the neighbor information of the intermediate BFR, and the information of the intermediate BFR. link information;
所述控制设备基于所述第一信息、所述第二信息和所述第三信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述中间BFR的信息、所述第一BFER的信息、所述BFIR与所述中间BFR间的链路SLA信息和所述中间BFR与所述第一BFER间的链路SLA信息。The control device obtains the BIER network topology based on the first information, the second information and the third information, where the BIER network topology includes the information of the BFIR, the Information of the intermediate BFR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and link SLA information between the intermediate BFR and the first BFER.
在一种可能的实现方式中,所述至少一个BFER包括第一BFER,所述控制设备获取BIER网络拓扑包括:所述控制设备接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的MPLS标签、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;In a possible implementation manner, the at least one BFER includes a first BFER, and the obtaining, by the control device, the BIER network topology includes: the control device receiving first information from the BFIR, where the first information includes all The BFR-ID of the BFIR and the MPLS label of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
所述控制设备接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的MPLS标签、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;The control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, neighbor information of the first BFER and link information of the first BFER;
所述控制设备接收来自中间BFR的第三信息,所述第三信息包括所述中间BFR的MPLS标签、所述中间BFR的节点属性、所述中间BFR的邻居信息和所述中间BFR的链路信息;The control device receives third information from the intermediate BFR, the third information includes the MPLS label of the intermediate BFR, the node attribute of the intermediate BFR, the neighbor information of the intermediate BFR, and the link of the intermediate BFR information;
所述控制设备基于所述第一信息、所述第二信息和所述第三信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述中间BFR的信息、所述第一BFER的信息、所述BFIR与所述中间BFR间的链路SLA信息和所述中间BFR与所述第一BFER间的链路SLA信息。The control device obtains the BIER network topology based on the first information, the second information and the third information, where the BIER network topology includes the information of the BFIR, the Information of the intermediate BFR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and link SLA information between the intermediate BFR and the first BFER.
在一种可能的实现方式中,所述至少一个BFER包括第一BFER,所述控制设备获取BIER网络拓扑包括:所述控制设备接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的BIFT标识、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;In a possible implementation manner, the at least one BFER includes a first BFER, and the obtaining, by the control device, the BIER network topology includes: the control device receiving first information from the BFIR, where the first information includes all The BFR-ID of the BFIR and the BIFT identity of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
所述控制设备接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的BIFT标识、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;The control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the node attribute of the first BFER, neighbor information of the first BFER and link information of the first BFER;
所述控制设备接收来自中间BFR的第三信息,所述第三信息包括所述中间BFR的BIFT标识、所述中间BFR的节点属性、所述中间BFR的邻居信息和所述中间BFR的链路信息;The control device receives third information from an intermediate BFR, the third information includes a BIFT identity of the intermediate BFR, node attributes of the intermediate BFR, neighbor information of the intermediate BFR, and links of the intermediate BFR information;
所述控制设备基于所述第一信息、所述第二信息和所述第三信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述中间BFR的信息、所述第一BFER的信息、所述BFIR与所述中间BFR间的链路SLA信息和所述中间BFR与所述第一BFER间的链路SLA信息。The control device obtains the BIER network topology based on the first information, the second information and the third information, where the BIER network topology includes the information of the BFIR, the Information of the intermediate BFR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and link SLA information between the intermediate BFR and the first BFER.
在一种可能的实现方式中,所述控制设备接收来自所述BFIR的第一信息包括:所述控制设备接收与所述BFIR通信的路由反射器RR发送的所述第一信息;或者所述控制设备接收所述BFIR发送的所述第一信息。In a possible implementation manner, the receiving, by the control device, the first information from the BFIR includes: the control device receiving the first information sent by the route reflector RR that communicates with the BFIR; or the The control device receives the first information sent by the BFIR.
该种获取BIER网络拓扑的方式中,控制设备与RR交互获取第一信息的方式中,控制设备无需通过与网络拓扑中的各个设备交互来获取信息,因而可进一步节省控制设备的资 源。In this way of obtaining the BIER network topology, in the way that the control device interacts with the RR to obtain the first information, the control device does not need to obtain information by interacting with each device in the network topology, thus further saving the resources of the control device.
在一种可能的实现方式中,所述控制设备接收来自所述第一BFER的第二信息包括:所述控制设备接收与所述第一BFER通信的RR发送的所述第二信息;或者所述控制设备接收与所述第一BFER通信的中间BFR发送的所述第二信息;或者所述控制设备接收所述第一BFER发送的所述第二信息。In a possible implementation manner, the receiving, by the control device, the second information from the first BFER includes: the control device receiving the second information sent by the RR communicating with the first BFER; or The control device receives the second information sent by the intermediate BFR in communication with the first BFER; or the control device receives the second information sent by the first BFER.
在一种可能的实现方式中,所述第二信息还包括所述第一BFER对应的组播源组信息。In a possible implementation manner, the second information further includes multicast source group information corresponding to the first BFER.
在一种可能的实现方式中,所述控制设备基于业务需求和所述BIER网络拓扑,获取对应关系包括:所述控制设备基于业务需求获取目标BFR的信息;所述控制设备基于所述目标BFR的信息和所述BIER网络拓扑,获取所述对应关系,所述对应关系中的所述下一跳的信息为所述目标BFR的信息。In a possible implementation manner, the control device acquiring the corresponding relationship based on service requirements and the BIER network topology includes: the control device acquires target BFR information based on service requirements; the control device acquires target BFR information based on the service requirements; and the BIER network topology, obtain the corresponding relationship, and the information of the next hop in the corresponding relationship is the information of the target BFR.
在一种可能的实现方式中,所述业务需求包括带宽、时延、丢包和指定节点中的一个或多个。In a possible implementation manner, the service requirements include one or more of bandwidth, delay, packet loss, and designated nodes.
在一种可能的实现方式中,所述下一跳的信息包括作为所述BFIR邻居的节点的end.BIER地址和与作为所述BFIR邻居的节点通信的出接口信息。In a possible implementation manner, the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and outgoing interface information for communicating with the node serving as the BFIR neighbor.
在一种可能的实现方式中,所述第二信息还包括子域标识SD、BSL和集合标识SI中的一个或多个。In a possible implementation manner, the second information further includes one or more of subdomain identifiers SD, BSL, and set identifiers SI.
在一种可能的实现方式中,所述第一BFER的BFR-ID是所述第一BFER动态获取的标识,所述动态获取是从一个BFR-ID的集合中获取的未被使用的标识。In a possible implementation manner, the BFR-ID of the first BFER is an identifier dynamically acquired by the first BFER, and the dynamic acquisition is an unused identifier acquired from a set of BFR-IDs.
第二方面,提供了一种用于获取路径的方法,所述方法应用于基于比特索引显式复制BIER的网络中,包括:BIER转发入口路由器BFIR接收控制设备发送的对应关系,所述对应关系包括所述至少一个BFER的位转发路由器标识BFR-ID和下一跳的信息。In a second aspect, a method for obtaining a path is provided, the method is applied to a network that explicitly replicates BIER based on a bit index, including: BIER forwarding the ingress router BFIR to receive the correspondence sent by the control device, the correspondence The bit forwarding router identification BFR-ID and next hop information of the at least one BFER are included.
在一种可能的实现方式中,所述BFIR接收控制设备发送的对应关系之前,还包括:所述BFIR向所述控制设备发送第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的end.BIER地址、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息。In a possible implementation manner, before the BFIR receives the correspondence sent by the control device, the method further includes: the BFIR sends first information to the control device, where the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR, and the link information of the BFIR.
在一种可能的实现方式中,所述BFIR接收控制设备发送的对应关系之前,还包括:所述BFIR向所述控制设备发送第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的多协议标签交换MPLS标签、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息。In a possible implementation manner, before the BFIR receives the correspondence sent by the control device, the method further includes: the BFIR sends first information to the control device, where the first information includes the BFR-ID of the BFIR The MPLS label, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR are exchanged with the multi-protocol label of the BFIR.
在一种可能的实现方式中,所述BFIR接收控制设备发送的对应关系之前,还包括:所述BFIR向所述控制设备发送第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的比特索引转发表BIFT标识、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息。In a possible implementation manner, before the BFIR receives the correspondence sent by the control device, the method further includes: the BFIR sends first information to the control device, where the first information includes the BFR-ID of the BFIR and the bit index forwarding table of the BFIR, the BIFT identifier, the node attribute of the BFIR, the neighbor information of the BFIR, and the link information of the BFIR.
在一种可能的实现方式中,所述BFIR向所述控制设备发送第一信息包括:所述BFIR向路由反射器RR发送所述第一信息;或者所述BFIR直接向所述控制设备发送所述第一信息。In a possible implementation manner, the sending, by the BFIR, the first information to the control device includes: the BFIR sending the first information to the route reflector RR; or the BFIR directly sending all the information to the control device. the first information.
在一种可能的实现方式中,所述下一跳的信息包括作为所述BFIR邻居的节点的end.BIER地址和与作为所述BFIR邻居的节点通信的出接口信息。In a possible implementation manner, the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and outgoing interface information for communicating with the node serving as the BFIR neighbor.
第三方面,提供了一种用于获取路径的装置,所述装置应用于基于比特索引显式复制BIER的网络中,包括:In a third aspect, an apparatus for obtaining a path is provided, the apparatus is applied in a network that explicitly replicates BIER based on a bit index, including:
第一获取模块,用于获取BIER网络拓扑,所述BIER网络拓扑包括BIER转发入口路由器BFIR和至少一个BIER转发出口路由器BFER;The first acquisition module is used to acquire the BIER network topology, and the BIER network topology includes the BIER forwarding ingress router BFIR and at least one BIER forwarding egress router BFER;
第二获取模块,用于基于业务需求和所述BIER网络拓扑,获取对应关系,所述对应关系包括所述至少一个BFER的位转发路由器标识BFR-ID和下一跳的信息;The second acquisition module is used to acquire a corresponding relationship based on service requirements and the BIER network topology, and the corresponding relationship includes the bit forwarding router identifier BFR-ID of the at least one BFER and the information of the next hop;
发送模块,用于向所述BFIR发送所述对应关系。A sending module, configured to send the corresponding relationship to the BFIR.
在一种可能的实现方式中,所述至少一个BFER包括第一BFER,所述第一获取模块,用于接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的end.BIER地址、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;In a possible implementation manner, the at least one BFER includes a first BFER, and the first acquisition module is configured to receive first information from the BFIR, where the first information includes the BFR- ID and end.BIER address of the BFIR, node attributes of the BFIR, neighbor information of the BFIR and link information of the BFIR;
接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的end.BIER地址、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;Receive second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, the node attribute of the first BFER, the neighbor information of the first BFER and link information of the first BFER;
基于所述第一信息和所述第二信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述第一BFER的信息和所述BFIR与所述第一BFER间的链路SLA信息。Based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and the BFIR and the Link SLA information between the first BFERs.
在一种可能的实现方式中,所述至少一个BFER包括第一BFER,所述第一获取模块,用于接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的多协议标签交换MPLS标签、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;In a possible implementation manner, the at least one BFER includes a first BFER, and the first acquisition module is configured to receive first information from the BFIR, where the first information includes the BFR- ID and the multi-protocol label switching MPLS label of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的MPLS标签、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;Receive second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, the first BFER neighbor information of the BFER and link information of the first BFER;
基于所述第一信息和所述第二信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述第一BFER的信息和所述BFIR与所述第一BFER间的链路SLA信息。Based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and the BFIR and the Link SLA information between the first BFERs.
在一种可能的实现方式中,所述至少一个BFER包括第一BFER,所述第一获取模块,用于接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的比特索引转发表BIFT标识、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;In a possible implementation manner, the at least one BFER includes a first BFER, and the first acquisition module is configured to receive first information from the BFIR, where the first information includes the BFR- ID and bit index forwarding table BIFT identification of the BFIR, node attributes of the BFIR, neighbor information of the BFIR and link information of the BFIR;
接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的BIFT标识、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;Receive second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the node attribute of the first BFER, the first BFER neighbor information of the BFER and link information of the first BFER;
基于所述第一信息和所述第二信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述第一BFER的信息和所述BFIR与所述第一BFER间的链路SLA信息。Based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and the BFIR and the Link SLA information between the first BFERs.
在一种可能的实现方式中,所述至少一个BFER包括第一BFER,所述第一获取模块,用于接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的end.BIER地址、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;In a possible implementation manner, the at least one BFER includes a first BFER, and the first acquisition module is configured to receive first information from the BFIR, where the first information includes the BFR- ID and end.BIER address of the BFIR, node attributes of the BFIR, neighbor information of the BFIR and link information of the BFIR;
接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的end.BIER地址、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;Receive second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, the node attribute of the first BFER, the neighbor information of the first BFER and link information of the first BFER;
接收来自中间BFR的第三信息,所述第三信息包括所述中间BFR的end.BIER地址、所述中间BFR的节点属性、所述中间BFR的邻居信息和所述中间BFR的链路信息;receiving third information from the intermediate BFR, the third information including the end.BIER address of the intermediate BFR, the node attribute of the intermediate BFR, the neighbor information of the intermediate BFR, and the link information of the intermediate BFR;
基于所述第一信息、所述第二信息和所述第三信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述中间BFR的信息、所述第一BFER的信息、所述BFIR与所述中间BFR间的链路SLA信息和所述中间BFR与所述第一BFER间的链路SLA信息。Based on the first information, the second information and the third information, the BIER network topology is obtained, where the BIER network topology includes the information of the BFIR and the information of the intermediate BFR that is the neighbor of the BFIR , the information of the first BFER, the link SLA information between the BFIR and the intermediate BFR, and the link SLA information between the intermediate BFR and the first BFER.
在一种可能的实现方式中,所述至少一个BFER包括第一BFER,所述第一获取模块,用于接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的MPLS标签、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;In a possible implementation manner, the at least one BFER includes a first BFER, and the first acquisition module is configured to receive first information from the BFIR, where the first information includes the BFR- ID and MPLS label of the BFIR, node attributes of the BFIR, neighbor information of the BFIR and link information of the BFIR;
接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的MPLS标签、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;Receive second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, the first BFER neighbor information of the BFER and link information of the first BFER;
接收来自中间BFR的第三信息,所述第三信息包括所述中间BFR的MPLS标签、所述中间BFR的节点属性、所述中间BFR的邻居信息和所述中间BFR的链路信息;receiving third information from an intermediate BFR, where the third information includes an MPLS label of the intermediate BFR, a node attribute of the intermediate BFR, neighbor information of the intermediate BFR, and link information of the intermediate BFR;
基于所述第一信息、所述第二信息和所述第三信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述中间BFR的信息、所述第一BFER的信息、所述BFIR与所述中间BFR间的链路SLA信息和所述中间BFR与所述第一BFER间的链路SLA信息。Based on the first information, the second information and the third information, the BIER network topology is obtained, where the BIER network topology includes the information of the BFIR and the information of the intermediate BFR that is the neighbor of the BFIR , the information of the first BFER, the link SLA information between the BFIR and the intermediate BFR, and the link SLA information between the intermediate BFR and the first BFER.
在一种可能的实现方式中,所述至少一个BFER包括第一BFER,所述第一获取模块,用于接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的BIFT标识、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;In a possible implementation manner, the at least one BFER includes a first BFER, and the first acquisition module is configured to receive first information from the BFIR, where the first information includes the BFR- ID and BIFT identification of the BFIR, node attributes of the BFIR, neighbor information of the BFIR and link information of the BFIR;
接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的BIFT标识、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;Receive second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the node attribute of the first BFER, the first BFER neighbor information of the BFER and link information of the first BFER;
接收来自中间BFR的第三信息,所述第三信息包括所述中间BFR的BIFT标识、所述中间BFR的节点属性、所述中间BFR的邻居信息和所述中间BFR的链路信息;receiving third information from an intermediate BFR, where the third information includes a BIFT identity of the intermediate BFR, a node attribute of the intermediate BFR, neighbor information of the intermediate BFR, and link information of the intermediate BFR;
基于所述第一信息、所述第二信息和所述第三信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述中间BFR的信息、所述第一BFER的信息、所述BFIR与所述中间BFR间的链路SLA信息和所述中间BFR与所述第一BFER间的链路SLA信息。Based on the first information, the second information and the third information, the BIER network topology is obtained, where the BIER network topology includes the information of the BFIR and the information of the intermediate BFR that is the neighbor of the BFIR , the information of the first BFER, the link SLA information between the BFIR and the intermediate BFR, and the link SLA information between the intermediate BFR and the first BFER.
在一种可能的实现方式中,所述第一获取模块,用于接收与所述BFIR通信的路由反射器RR发送的所述第一信息;或者接收所述BFIR发送的所述第一信息。In a possible implementation manner, the first obtaining module is configured to receive the first information sent by the route reflector RR that communicates with the BFIR; or receive the first information sent by the BFIR.
在一种可能的实现方式中,所述第一获取模块,用于接收与所述第一BFER通信的RR发送的所述第二信息;或者接收与所述第一BFER通信的中间BFR发送的所述第二信息;或者接收所述第一BFER发送的所述第二信息。In a possible implementation manner, the first obtaining module is configured to receive the second information sent by the RR in communication with the first BFER; or receive the second information sent by the intermediate BFR in communication with the first BFER the second information; or receive the second information sent by the first BFER.
在一种可能的实现方式中,所述第二信息还包括所述第一BFER对应的组播源组信息。In a possible implementation manner, the second information further includes multicast source group information corresponding to the first BFER.
在一种可能的实现方式中,所述第二获取模块,用于基于业务需求获取目标BFR的信息;基于所述目标BFR的信息和所述BIER网络拓扑,获取所述对应关系,所述对应关系中的所述下一跳的信息为所述目标BFR的信息。In a possible implementation manner, the second obtaining module is configured to obtain the information of the target BFR based on business requirements; and obtain the corresponding relationship based on the information of the target BFR and the BIER network topology, and the corresponding The information of the next hop in the relationship is the information of the target BFR.
在一种可能的实现方式中,所述业务需求包括带宽、时延、丢包和指定节点中的一个 或多个。In a possible implementation manner, the service requirements include one or more of bandwidth, delay, packet loss, and designated nodes.
在一种可能的实现方式中,所述下一跳的信息包括作为所述BFIR邻居的节点的end.BIER地址和与作为所述BFIR邻居的节点通信的出接口信息。In a possible implementation manner, the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and outgoing interface information for communicating with the node serving as the BFIR neighbor.
在一种可能的实现方式中,所述第二信息还包括子域标识SD、BSL和集合标识SI中的一个或多个。In a possible implementation manner, the second information further includes one or more of subdomain identifiers SD, BSL, and set identifiers SI.
在一种可能的实现方式中,所述第一BFER的BFR-ID是所述第一BFER动态获取的标识,所述动态获取是从一个BFR-ID的集合中获取的未被使用的标识。In a possible implementation manner, the BFR-ID of the first BFER is an identifier dynamically acquired by the first BFER, and the dynamic acquisition is an unused identifier acquired from a set of BFR-IDs.
第四方面,提供了一种用于获取路径的装置,所述装置应用于基于比特索引显式复制BIER的网络中,包括:In a fourth aspect, a device for obtaining a path is provided, the device is applied to a network that explicitly replicates BIER based on a bit index, including:
接收模块,用于接收控制设备发送的对应关系,所述对应关系包括所述至少一个BFER的位转发路由器标识BFR-ID和下一跳的信息。The receiving module is configured to receive the correspondence sent by the control device, where the correspondence includes the bit forwarding router identification BFR-ID of the at least one BFER and the information of the next hop.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:
发送模块,用于向所述控制设备发送第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的end.BIER地址、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息。A sending module, configured to send first information to the control device, where the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, and the neighbors of the BFIR information and link information of the BFIR.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:
发送模块,用于向所述控制设备发送第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的多协议标签交换MPLS标签、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息。A sending module, configured to send first information to the control device, the first information includes the BFR-ID of the BFIR and the multi-protocol label switching MPLS label of the BFIR, the node attribute of the BFIR, the BFIR neighbor information and link information of the BFIR.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:
发送模块,用于向所述控制设备发送第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的比特索引转发表BIFT标识、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息。A sending module, configured to send first information to the control device, where the first information includes the BFR-ID of the BFIR and the bit index forwarding table BIFT identifier of the BFIR, the node attribute of the BFIR, the BFIR neighbor information and link information of the BFIR.
在一种可能的实现方式中,所述发送模块,用于向路由反射器RR发送所述第一信息;或者直接向所述控制设备发送所述第一信息。In a possible implementation manner, the sending module is configured to send the first information to the route reflector RR; or directly send the first information to the control device.
在一种可能的实现方式中,所述下一跳的信息包括作为所述BFIR邻居的节点的end.BIER地址和与作为所述BFIR邻居的节点通信的出接口信息。In a possible implementation manner, the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and outgoing interface information for communicating with the node serving as the BFIR neighbor.
第五方面,提供了一种网络设备,包括处理器,处理器与存储器耦合,存储器中存储有至少一条程序指令或代码,至少一条程序指令或代码由处理器加载并执行,以使网络设备实现第一方面或第二方面中任一的用于获取路径的方法。In a fifth aspect, a network device is provided, comprising a processor, the processor is coupled to a memory, and at least one program instruction or code is stored in the memory, and the at least one program instruction or code is loaded and executed by the processor, so that the network device realizes The method for obtaining a path of any one of the first aspect or the second aspect.
第六方面,提供了一种计算机可读存储介质,存储介质中存储有至少一条程序指令或代码,程序指令或代码由处理器加载并执行时以使计算机实现如第一方面或第二方面中任一所述的用于获取路径的方法。A sixth aspect provides a computer-readable storage medium, where at least one program instruction or code is stored in the storage medium, and when the program instruction or code is loaded and executed by a processor, the computer implements the method as described in the first aspect or the second aspect. Any of the described methods for obtaining a path.
第七方面,提供了一种用于获取路径的系统,所述系统包括控制设备和BFIR设备,所述控制设备用于执行第一方面或第一方面中任一可能的实现方式所述的用于获取路径的方法,所述BFIR设备用于执行第二方面或第二方面中任一可能的实现方式所述的用于获取路径的方法。In a seventh aspect, a system for obtaining a path is provided, the system includes a control device and a BFIR device, and the control device is configured to execute the method described in the first aspect or any possible implementation manner of the first aspect. In the method for obtaining a path, the BFIR device is configured to execute the method for obtaining a path according to the second aspect or any possible implementation manner of the second aspect.
提供了另一种通信装置,该装置包括:收发器、存储器和处理器。其中,该收发器、该存储器和该处理器通过内部连接通路互相通信,该存储器用于存储指令,该处理器用于执行该存储器存储的指令,以控制收发器接收信号,并控制收发器发送信号,并且当该处 理器执行该存储器存储的指令时,使得该处理器执行第一方面或第一方面的任一种可能的实施方式中的方法,或者执行第二方面或第二方面的任一种可能的实施方式中的方法。Another communication apparatus is provided that includes a transceiver, a memory, and a processor. The transceiver, the memory and the processor communicate with each other through an internal connection path, the memory is used for storing instructions, and the processor is used for executing the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals , and when the processor executes the instructions stored in the memory, it causes the processor to execute the method in the first aspect or any possible implementation manner of the first aspect, or execute the second aspect or any one of the second aspect method in a possible implementation.
作为一种示例性实施例,所述处理器为一个或多个,所述存储器为一个或多个。As an exemplary embodiment, the processor is one or more, and the memory is one or more.
作为一种示例性实施例,所述存储器可以与所述处理器集成在一起,或者所述存储器与处理器分离设置。As an exemplary embodiment, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
在具体实现过程中,存储器可以为非瞬时性(non-transitory)存储器,例如只读存储器(read only memory,ROM),其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型以及存储器与处理器的设置方式不做限定。In the specific implementation process, the memory can be a non-transitory memory, such as a read only memory (ROM), which can be integrated with the processor on the same chip, or can be separately set in different On the chip, the embodiment of the present application does not limit the type of the memory and the setting manner of the memory and the processor.
提供了一种计算机程序(产品),所述计算机程序(产品)包括:计算机程序代码,当所述计算机程序代码被计算机运行时,使得所述计算机执行上述各方面中的方法。A computer program (product) is provided, the computer program (product) comprising: computer program code which, when executed by a computer, causes the computer to perform the methods of the above aspects.
提供了一种芯片,包括处理器,用于从存储器中调用并运行所述存储器中存储的指令,使得安装有所述芯片的通信设备执行上述各方面中的方法。A chip is provided, including a processor for invoking and executing instructions stored in a memory, so that a communication device on which the chip is installed performs the methods in the above-mentioned aspects.
提供另一种芯片,包括:输入接口、输出接口、处理器和存储器,所述输入接口、输出接口、所述处理器以及所述存储器之间通过内部连接通路相连,所述处理器用于执行所述存储器中的代码,当所述代码被执行时,所述处理器用于执行上述各方面中的方法。Another chip is provided, including: an input interface, an output interface, a processor, and a memory, the input interface, the output interface, the processor, and the memory are connected through an internal connection path, and the processor is used to execute all The code in the memory, when the code is executed, the processor is configured to perform the methods of the above aspects.
附图说明Description of drawings
图1是本申请实施例提供的一种BIER网络示意图;1 is a schematic diagram of a BIER network provided by an embodiment of the present application;
图2是本申请实施例提供的一种用于获取路径的方法流程图;2 is a flowchart of a method for obtaining a path provided by an embodiment of the present application;
图3是本申请实施例提供的一种用于获取路径的方法的实施环境示意图;3 is a schematic diagram of an implementation environment of a method for obtaining a path provided by an embodiment of the present application;
图4是本申请实施例提供的另一种用于获取路径的方法流程图;4 is a flowchart of another method for obtaining a path provided by an embodiment of the present application;
图5是本申请实施例提供的另一种用于获取路径的方法的实施环境示意图;5 is a schematic diagram of an implementation environment of another method for obtaining a path provided by an embodiment of the present application;
图6是本申请实施例提供的另一种用于获取路径的方法流程图;6 is a flowchart of another method for obtaining a path provided by an embodiment of the present application;
图7是本申请实施例提供的一种组播转发路径示意图;7 is a schematic diagram of a multicast forwarding path provided by an embodiment of the present application;
图8是本申请实施例提供的另一种组播转发路径示意图图;8 is a schematic diagram of another multicast forwarding path provided by an embodiment of the present application;
图9是本申请实施例提供的一种用于获取路径的装置结构示意图;9 is a schematic structural diagram of an apparatus for obtaining a path provided by an embodiment of the present application;
图10是本申请实施例提供的另一种用于获取路径的装置结构示意图;10 is a schematic structural diagram of another apparatus for obtaining a path provided by an embodiment of the present application;
图11是本申请实施例提供的另一种用于获取路径的装置结构示意图;11 is a schematic structural diagram of another apparatus for obtaining a path provided by an embodiment of the present application;
图12是本申请实施例提供的网络设备的结构示意图;FIG. 12 is a schematic structural diagram of a network device provided by an embodiment of the present application;
图13是本申请实施例提供的网络设备的结构示意图;13 is a schematic structural diagram of a network device provided by an embodiment of the present application;
图14是本申请实施例提供的网络设备的结构示意图。FIG. 14 is a schematic structural diagram of a network device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请的实施方式部分使用的术语仅用于对本申请的实施例进行解释,而非旨在限定本申请。下面结合附图,对本申请的实施例进行描述。The terms used in the embodiment part of the present application are only used to explain the embodiments of the present application, and are not intended to limit the present application. The embodiments of the present application will be described below with reference to the accompanying drawings.
BIER或BIERv6作为通信领域中用于构建组播报文转发路径的技术,应用范围越来越广。在BIER子域(sub domain)中,BFIR和BFER分配有唯一的标识BFR-ID。示例性地,BFR-ID取值为1~65535的整数。BIER or BIERv6, as a technology for constructing a multicast packet forwarding path in the field of communication, has been applied more and more widely. In the BIER subdomain, BFIR and BFER are assigned a unique identification BFR-ID. Exemplarily, the BFR-ID is an integer ranging from 1 to 65535.
此外,BIER或BIERv6承载组播业务时,通过边界网关协议(border gateway protocol,BGP)在BFIR和BFER之间建立BGP邻居,通过BGP建立BIER转发隧道并传递用户组播请求。例如,当某个终端用户要观看某个组播频道节目时,则向其上游的BIER组播叶子节点发送针对该频道的网际组管理协议(internet group management protocol,IGMP)(互联网协议第4版(internet protocol version 4,IPv4))或组播标签分发协议(multicast label distribute protocol,MLDP)(互联网协议第6版(internet protocol version 6,IPv6))组播加入请求;若叶子节点无此频道数据,则将组播加入请求通过BGP协议发送给BFIR,BFIR收到叶子节点的组播加入请求后,设置此叶子节点的BFR-id对应的bitstring中的bit为1。由此,生成了发送该组播频道数据的bitstring。In addition, when BIER or BIERv6 carries multicast services, a BGP neighbor is established between BFIR and BFER through the border gateway protocol (BGP), and a BIER forwarding tunnel is established through BGP to transmit user multicast requests. For example, when an end user wants to watch a certain multicast channel program, it sends the Internet Group Management Protocol (IGMP) (Internet Protocol Version 4) for the channel to its upstream BIER multicast leaf node. (internet protocol version 4, IPv4)) or multicast label distribution protocol (multicast label distribute protocol, MLDP) (internet protocol version 6 (internet protocol version 6, IPv6)) multicast join request; if the leaf node does not have this channel data , the multicast join request is sent to the BFIR through the BGP protocol. After receiving the multicast join request from the leaf node, the BFIR sets the bit in the bitstring corresponding to the BFR-id of the leaf node to 1. Thus, a bitstring for transmitting the multicast channel data is generated.
在一个sub domain中,组播报文发往的BFER集合用一个bitstring来表示,bitstring中的每个bit所在的位置或索引表示一个边缘节点的BFR-ID;BFIR将此bitstring封装在组播报文的BIER头中,BFIR根据BIFT将封装了bitstring的组播报文发送给下游BFR。下游BFR解析bitstring并根据自己的BIFT表进行报文复制,将复制的报文逐跳发送到sub domain中的BFER节点。BFER节点解析bitstring,检查匹配到自己即BIER组播的发送目的节点,则删除包括BIER信息的外层封装,继续查找用户组播转发表,根据查找结果将原始组播报文转发给请求用户。In a sub domain, the BFER set to which a multicast packet is sent is represented by a bitstring, and the position or index of each bit in the bitstring represents the BFR-ID of an edge node; BFIR encapsulates this bitstring in the multicast packet In the BIER header of the message, BFIR sends the bitstring-encapsulated multicast message to the downstream BFR according to BIFT. The downstream BFR parses the bitstring, replicates the packet according to its own BIFT table, and sends the replicated packet to the BFER node in the sub domain hop by hop. The BFER node parses the bitstring, checks that it matches itself, the destination node of the BIER multicast, deletes the outer encapsulation including the BIER information, continues to search the user multicast forwarding table, and forwards the original multicast packet to the requesting user according to the search result.
其中,BIFT表中的内容具有对应关系,该对应关系可基于报文传输路径来确定。而在一些运营商网络或企业网络中,由于业务比较重要,需要规划特定的路径,或者需要规划多条不同的路径进行业务备份,或者需要设置一定的路径时延、带宽、指定位置等的约束条件。针对这些场景,本申请实施例提供了一种用于获取路径的方法,该方法可应用于BIER网络中,通过该方法获取的对应关系能够满足业务路径规划的要求。示例性地,本申请实施例提供的方法可针对BIER、BIERv6业务路径进行规划和布放。The contents in the BIFT table have a corresponding relationship, and the corresponding relationship can be determined based on a message transmission path. In some carrier networks or enterprise networks, due to the importance of services, specific paths need to be planned, or multiple different paths need to be planned for service backup, or certain path delay, bandwidth, and specified location constraints need to be set. condition. For these scenarios, an embodiment of the present application provides a method for obtaining a path, the method can be applied to a BIER network, and the corresponding relationship obtained by the method can meet the requirements of service path planning. Exemplarily, the methods provided in the embodiments of the present application can be used for planning and deployment of BIER and BIERv6 service paths.
以图1所示的BIER网络为例,该BIER网络中包括5个运营商边缘(provider edge,PE),分别为PE1、PE2、PE3、PE4和PE5。其中,PE1的BFR-id为1(图1中用id=1表示),PE2的BFR-id为2(图1中用id=2表示),PE3的BFR-id为3(图1中用id=3表示),PE4的BFR-id为4(图1中用id=4表示),PE5的BFR-id为5(图1中用id=5表示)。此外,BIER网络中的PE之间还包括3个运营商骨干路由器(provider backbone,P),如图1中所示的P1、P2和P3。可选地,该BIER网络中还可以包括路由反射器(route reflector,RR)。或者,BIER网络中的某个设备具有RR的功能,例如图1中的P1具有RR的功能。Taking the BIER network shown in FIG. 1 as an example, the BIER network includes five provider edges (provider edges, PE), namely PE1, PE2, PE3, PE4 and PE5. Among them, the BFR-id of PE1 is 1 (indicated by id=1 in Figure 1), the BFR-id of PE2 is 2 (indicated by id=2 in Figure 1), and the BFR-id of PE3 is 3 (indicated by id=2 in Figure 1 ) id=3), the BFR-id of PE4 is 4 (represented by id=4 in FIG. 1 ), and the BFR-id of PE5 is 5 (represented by id=5 in FIG. 1 ). In addition, the PEs in the BIER network also include three provider backbone routers (provider backbone, P), such as P1, P2 and P3 as shown in FIG. 1 . Optionally, the BIER network may further include a route reflector (route reflector, RR). Or, a certain device in the BIER network has the RR function, for example, P1 in FIG. 1 has the RR function.
结合图1所示的BIER网络,对本申请实施例提供的用于获取路径的方法进行举例说明,参见图2,该方法包括如下几个步骤。With reference to the BIER network shown in FIG. 1 , the method for obtaining a path provided by the embodiment of the present application is illustrated as an example. Referring to FIG. 2 , the method includes the following steps.
步骤201,控制设备获取BIER网络拓扑,该BIER网络拓扑包括BFIR和至少一个BFER。Step 201, the control device acquires a BIER network topology, where the BIER network topology includes a BFIR and at least one BFER.
其中,控制设备为具有算路能力的设备,包括但不限于控制器或者具有算路能力的BFIR,或者是其他具有算路能力的设备。关于控制设备获取BIER网络拓扑的方式,本申请实施例不进行限定,在一种可能的实现方式中,控制设备获取到的BIER网络拓扑包括BFIR和至少一个BFER,至少一个BFER包括第一BFER。根据BIER网络拓扑的结构不同,控制设备获取BIER网络拓扑的方式包括但不限于如下几种情况。The control device is a device with a path calculation capability, including but not limited to a controller or a BFIR with a path calculation capability, or other devices with a path calculation capability. The manner in which the control device acquires the BIER network topology is not limited in the embodiments of the present application. In a possible implementation manner, the BIER network topology acquired by the control device includes BFIR and at least one BFER, and at least one BFER includes the first BFER. Depending on the structure of the BIER network topology, the manner in which the control device obtains the BIER network topology includes but is not limited to the following situations.
情况一,针对BFIR与第一BFER之间不具有中间BFR的BIERv6场景,控制设备获取BIER网络拓扑包括:控制设备接收来自BFIR的第一信息,第一信息包括BFIR的 BFR-ID和BFIR的end.BIER地址、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息;控制设备接收来自第一BFER的第二信息,第二信息包括第一BFER的BFR-ID、第一BFER的end.BIER地址、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息;控制设备基于第一信息和第二信息,获得BIER网络拓扑,BIER网络拓扑包括BFIR的信息、作为BFIR邻居的第一BFER的信息和BFIR与第一BFER间的链路SLA信息。 Case 1, for a BIERv6 scenario where there is no intermediate BFR between the BFIR and the first BFER, the control device acquiring the BIER network topology includes: the control device receives the first information from the BFIR, and the first information includes the BFR-ID of the BFIR and the end of the BFIR. .BIER address, node attribute of BFIR, neighbor information of BFIR and link information of BFIR; the control device receives the second information from the first BFER, and the second information includes the BFR-ID of the first BFER and the end of the first BFER. The BIER address, the node attribute of the first BFER, the neighbor information of the first BFER, and the link information of the first BFER; the control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes BFIR information, as Information about the first BFER of the BFIR neighbor and link SLA information between the BFIR and the first BFER.
其中,BFIR的节点属性包括但不限于BFR-前缀(prefix);BFIR的邻居信息包括至少一个BFER;BFIR的链路信息是指链路SLA信息,包括但不限于:链路带宽、时延、IP地址、IGP metric、SRLG等信息。第一BFER的节点属性包括但不限于BFR-prefix;第一BFER的链路信息是指链路SLA信息,包括但不限于:链路带宽、时延、IP地址、IGP metric、SRLG等信息。第一BFER的邻居信息包括BFIR。The node attributes of BFIR include but are not limited to BFR-prefix; the neighbor information of BFIR includes at least one BFER; the link information of BFIR refers to link SLA information, including but not limited to: link bandwidth, delay, IP address, IGP metric, SRLG and other information. The node attributes of the first BFER include but are not limited to BFR-prefix; the link information of the first BFER refers to link SLA information, including but not limited to: link bandwidth, delay, IP address, IGP metric, SRLG and other information. The neighbor information of the first BFER includes BFIR.
示例性地,控制设备可分别与BFIR以及第一BFER建立BGP邻居,例如控制设备与BFIR以及第一BFER分别建立BGP_LS对等体(peer),控制设备接收BFIR通过BGP_LS发送的第一信息,控制设备接收第一BFER通过BGP_LS发送的第二信息。该控制设备基于第一信息和第二信息可确定第一BFER为BFIR的邻居,进而获取到包括BFIR的信息、作为BFIR邻居的第一BFER的信息和BFIR与第一BFER间的链路SLA信息的BIER网络拓扑。其中,该情况一获取到的BIER网络拓扑中包括的BFIR的信息包括但不限于BFIR的BFR-ID、BFIR的end.BIER地址和BFIR的节点属性,第一BFER的信息包括但不限于第一BFER的BFR-ID、第一BFER的end.BIER地址和第一BFER的节点属性。Exemplarily, the control device can establish BGP neighbors with the BFIR and the first BFER respectively, for example, the control device establishes a BGP_LS peer (peer) with the BFIR and the first BFER respectively, the control device receives the first information sent by the BFIR through the BGP_LS, and controls The device receives the second information sent by the first BFER through BGP_LS. The control device can determine that the first BFER is a neighbor of the BFIR based on the first information and the second information, and then obtain information including the BFIR, the information of the first BFER serving as a neighbor of the BFIR, and the link SLA information between the BFIR and the first BFER BIER network topology. Wherein, the information of the BFIR included in the BIER network topology obtained in this situation includes but is not limited to the BFR-ID of the BFIR, the end.BIER address of the BFIR, and the node attribute of the BFIR, and the information of the first BFER includes but is not limited to the first BFER. The BFR-ID of the BFER, the end.BIER address of the first BFER, and the node attribute of the first BFER.
情况二,针对BFIR与第一BFER之间不具有中间BFR的BIER MPLS场景,控制设备获取BIER网络拓扑包括:控制设备接收来自BFIR的第一信息,第一信息包括BFIR的BFR-ID和BFIR的多协议标签交换MPLS标签、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息;控制设备接收来自第一BFER的第二信息,第二信息包括第一BFER的BFR-ID、第一BFER的MPLS标签、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息;控制设备基于第一信息和第二信息,获得BIER网络拓扑,BIER网络拓扑包括BFIR的信息、作为BFIR邻居的第一BFER的信息和BFIR与第一BFER间的链路SLA信息。 Situation 2, for the BIER MPLS scenario that does not have an intermediate BFR between the BFIR and the first BFER, the control device acquiring the BIER network topology includes: the control device receives the first information from the BFIR, and the first information includes the BFR-ID of the BFIR and the BFIR's Multi-protocol label switching MPLS label, node attribute of BFIR, neighbor information of BFIR, and link information of BFIR; the control device receives second information from the first BFER, and the second information includes the BFR-ID of the first BFER, the first BFER The MPLS label of the first BFER, the node attribute of the first BFER, the neighbor information of the first BFER and the link information of the first BFER; the control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes the information of the BFIR, Information of the first BFER as a neighbor of the BFIR and link SLA information between the BFIR and the first BFER.
其中,BFIR的节点属性、BFIR的邻居信息、BFIR的链路信息、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息可参见上述情况一中的描述,此处不再赘述。The node attributes of the BFIR, the neighbor information of the BFIR, the link information of the BFIR, the node attributes of the first BFER, the neighbor information of the first BFER, and the link information of the first BFER may refer to the description in the above-mentioned case 1, here No longer.
示例性地,控制设备可分别与BFIR以及第一BFER建立BGP邻居,例如控制设备与BFIR以及第一BFER分别建立BGP_LS peer,控制设备接收BFIR通过BGP_LS发送的第一信息,控制设备接收第一BFER通过BGP_LS发送的第二信息。该控制设备基于第一信息和第二信息获取到包括BFIR的信息、作为BFIR邻居的第一BFER的信息和BFIR与第一BFER间的链路SLA信息的BIER网络拓扑。其中,该情况二获取到的BIER网络拓扑中包括的BFIR的信息包括但不限于BFIR的BFR-ID、BFIR的MPLS标签和BFIR的节点属性,第一BFER的信息包括但不限于第一BFER的BFR-ID、第一BFER的MPLS标签和第一BFER的节点属性。Exemplarily, the control device can establish BGP neighbors with BFIR and the first BFER respectively, for example, the control device and BFIR and the first BFER respectively establish a BGP_LS peer, the control device receives the first information sent by the BFIR through BGP_LS, and the control device receives the first BFER Second information sent through BGP_LS. The control device obtains, based on the first information and the second information, a BIER network topology including BFIR information, information of a first BFER that is a neighbor of the BFIR, and link SLA information between the BFIR and the first BFER. Wherein, the information of the BFIR included in the BIER network topology obtained in the second case includes but is not limited to the BFR-ID of the BFIR, the MPLS label of the BFIR and the node attribute of the BFIR, and the information of the first BFER includes but is not limited to the first BFER BFR-ID, MPLS label of the first BFER, and node attributes of the first BFER.
情况三,针对BFIR与第一BFER之间不具有中间BFR的BIER MPLS场景,控制设备获取BIER网络拓扑包括:控制设备接收来自BFIR的第一信息,第一信息包括BFIR 的BFR-ID和BFIR的比特索引转发表BIFT标识、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息;控制设备接收来自第一BFER的第二信息,第二信息包括第一BFER的BFR-ID、第一BFER的BIFT标识、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息;控制设备基于第一信息和第二信息,获得BIER网络拓扑,BIER网络拓扑包括BFIR的信息、作为BFIR邻居的第一BFER的信息和BFIR与第一BFER间的链路SLA信息。 Situation 3, for the BIER MPLS scenario that does not have an intermediate BFR between the BFIR and the first BFER, the control device acquiring the BIER network topology includes: the control device receives the first information from the BFIR, and the first information includes the BFR-ID of the BFIR and the BFIR of the BFIR. Bit index forwarding table BIFT identifier, node attribute of BFIR, neighbor information of BFIR and link information of BFIR; the control device receives second information from the first BFER, the second information includes the BFR-ID of the first BFER, the first BFER The BIFT identification, the node attribute of the first BFER, the neighbor information of the first BFER and the link information of the first BFER; the control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes the information of the BFIR, Information of the first BFER as a neighbor of the BFIR and link SLA information between the BFIR and the first BFER.
其中,BFIR的节点属性、BFIR的邻居信息、BFIR的链路信息、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息可参见上述情况一中的描述,此处不再赘述。The node attributes of the BFIR, the neighbor information of the BFIR, the link information of the BFIR, the node attributes of the first BFER, the neighbor information of the first BFER, and the link information of the first BFER may refer to the description in the above-mentioned case 1, here No longer.
示例性地,控制设备可分别与BFIR以及第一BFER建立BGP邻居,例如控制设备与BFIR以及第一BFER分别建立BGP_LS peer,控制设备接收BFIR通过BGP_LS发送的第一信息,控制设备接收第一BFER通过BGP_LS发送的第二信息。该控制设备基于第一信息和第二信息获取到包括BFIR的信息、作为BFIR邻居的第一BFER的信息和BFIR与第一BFER间的链路SLA信息的BIER网络拓扑。其中,该情况三获取到的BIER网络拓扑中包括的BFIR的信息包括但不限于BFIR的BFR-ID、BFIR的BIFT标识和BFIR的节点属性,第一BFER的信息包括但不限于第一BFER的BFR-ID、第一BFER的BIFT标识和第一BFER的节点属性。Exemplarily, the control device can establish BGP neighbors with BFIR and the first BFER respectively, for example, the control device and BFIR and the first BFER respectively establish a BGP_LS peer, the control device receives the first information sent by the BFIR through BGP_LS, and the control device receives the first BFER Second information sent through BGP_LS. The control device obtains, based on the first information and the second information, a BIER network topology including BFIR information, information of a first BFER that is a neighbor of the BFIR, and link SLA information between the BFIR and the first BFER. Wherein, the information of the BFIR included in the BIER network topology obtained in the third situation includes but is not limited to the BFR-ID of the BFIR, the BIFT identifier of the BFIR, and the node attribute of the BFIR, and the information of the first BFER includes but is not limited to the first BFER's BFR-ID, BIFT identifier of the first BFER, and node attributes of the first BFER.
情况四,针对BFIR与第一BFER之间具有中间BFR的BIERv6场景,控制设备获取BIER网络拓扑包括:控制设备接收来自BFIR的第一信息,第一信息包括BFIR的BFR-ID和BFIR的end.BIER地址、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息;控制设备接收来自第一BFER的第二信息,第二信息包括第一BFER的BFR-ID、第一BFER的end.BIER地址、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息;控制设备接收来自中间BFR的第三信息,第三信息包括中间BFR的end.BIER地址、中间BFR的节点属性、中间BFR的邻居信息和中间BFR的链路信息;控制设备基于第一信息、第二信息和第三信息,获得BIER网络拓扑,BIER网络拓扑包括BFIR的信息、作为BFIR邻居的中间BFR的信息、第一BFER的信息、BFIR与中间BFR间的链路SLA信息和中间BFR与第一BFER间的链路SLA信息。 Case 4, for a BIERv6 scenario with an intermediate BFR between the BFIR and the first BFER, obtaining the BIER network topology by the control device includes: the control device receives the first information from the BFIR, and the first information includes the BFR-ID of the BFIR and the end of the BFIR. BIER address, node attribute of BFIR, neighbor information of BFIR, and link information of BFIR; the control device receives the second information from the first BFER, and the second information includes the BFR-ID of the first BFER and the end.BIER of the first BFER address, node attributes of the first BFER, neighbor information of the first BFER, and link information of the first BFER; the control device receives third information from the intermediate BFR, and the third information includes the end.BIER address of the intermediate BFR, the Node attributes, neighbor information of the intermediate BFR, and link information of the intermediate BFR; the control device obtains the BIER network topology based on the first information, the second information, and the third information, and the BIER network topology includes the information of the BFIR and the intermediate BFR as the neighbor of the BFIR. information, the information of the first BFER, the link SLA information between the BFIR and the intermediate BFR, and the link SLA information between the intermediate BFR and the first BFER.
其中,BFIR的节点属性、BFIR的链路信息、第一BFER的节点属性、第一BFER的链路信息可参见上述情况一中的描述,此处不再赘述。For the node attribute of the BFIR, the link information of the BFIR, the node attribute of the first BFER, and the link information of the first BFER, reference may be made to the description in the foregoing case 1, and details are not repeated here.
此外,在该情况四中,BIER网络拓扑中除了包括BFIR和第一BFER之外,BFIR与第一BFER之间还包括至少一个中间BFR,BFIR的邻居信息包括中间BFR,第一BFER的邻居信息包括中间BFR。控制设备除了接收BFIR发送的第一信息以及第一BFER发送的第二信息外,还接收中间BFR发送的第三信息。中间BFR的节点属性包括但不限于BFR-prefix;中间BFR的邻居信息包括至少一个BFER或到达至少一个BFER的BFR,BFIR或到达所述BFIR的BFR;中间BFR的链路信息是指链路SLA信息,包括但不限于:链路带宽、时延、IP地址、IGP metric、SRLG等信息。In addition, in the fourth case, in addition to the BFIR and the first BFER, the BIER network topology includes at least one intermediate BFR between the BFIR and the first BFER, the neighbor information of the BFIR includes the intermediate BFR, and the neighbor information of the first BFER Including intermediate BFR. In addition to receiving the first information sent by the BFIR and the second information sent by the first BFER, the control device also receives the third information sent by the intermediate BFR. The node attributes of the intermediate BFR include but are not limited to BFR-prefix; the neighbor information of the intermediate BFR includes at least one BFER or the BFR reaching at least one BFER, the BFIR or the BFR reaching the BFIR; the link information of the intermediate BFR refers to the link SLA Information, including but not limited to: link bandwidth, delay, IP address, IGP metric, SRLG and other information.
示例性地,控制设备可分别与BFIR、第一BFER以及中间BFR建立BGP邻居,例如控制设备与BFIR、第一BFER以及中间BFR分别建立BGP_LS peer,控制设备接收BFIR通过BGP_LS发送的第一信息,控制设备接收第一BFER通过BGP_LS发送的第二信息,控制设备接收中间BFR通过BGP_LS发送的第三信息。该控制设备基于第一信息、第二 信息和第三信息获取到包括BFIR的信息、作为BFIR邻居的中间BFR的信息、第一BFER的信息、BFIR与中间BFR间的链路SLA信息和中间BFR与第一BFER间的链路SLA信息的BIER网络拓扑。Exemplarily, the control device can establish a BGP neighbor with the BFIR, the first BFER and the intermediate BFR respectively, for example, the control device and the BFIR, the first BFER and the intermediate BFR respectively establish a BGP_LS peer, and the control device receives the first information sent by the BFIR through the BGP_LS, The control device receives the second information sent by the first BFER through BGP_LS, and the control device receives the third information sent by the intermediate BFR through BGP_LS. The control device obtains, based on the first information, the second information, and the third information, information including BFIR, information of an intermediate BFR that is a neighbor of the BFIR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and intermediate BFR BIER network topology for link SLA information with the first BFER.
其中,该情况四获取到的BIER网络拓扑中包括的BFIR的信息包括但不限于BFIR的BFR-ID、BFIR的end.BIER地址和BFIR的节点属性,第一BFER的信息包括但不限于第一BFER的BFR-ID、第一BFER的end.BIER地址和第一BFER的节点属性,中间BFR的信息包括但不限于中间BFR的end.BIER地址和中间BFR的节点属性。Wherein, the information of the BFIR included in the BIER network topology obtained in the fourth case includes but is not limited to the BFR-ID of the BFIR, the end.BIER address of the BFIR and the node attribute of the BFIR, and the information of the first BFER includes but is not limited to the first The BFR-ID of the BFER, the end.BIER address of the first BFER and the node attribute of the first BFER, the information of the intermediate BFR includes but not limited to the end.BIER address of the intermediate BFR and the node attribute of the intermediate BFR.
例如,在图1所示的BIER网络中,PE1为BFIR,PE2为第一BFER,P1和P2分别为PE1和PE2之间的中间BFR。所有设备分别与控制设备建立BGP_LS peer,PE1通过BGP_LS将PE1的BFR-ID、PE1的end.BIER地址、PE1的节点属性、PE1的邻居信息和PE1的链路信息上报给控制设备;PE2通过BGP_LS将PE2的BFR-ID、PE2的end.BIER地址、PE2的节点属性、PE2的邻居信息和PE2的链路信息上报给控制设备;P1通过BGP_LS将P1的end.BIER地址、P1的节点属性、P1的邻居信息和P1的链路信息上报给控制设备;P2通过BGP_LS将P2的end.BIER地址、P2的节点属性、P2的邻居信息和P2的链路信息上报给控制设备;控制设备基于PE1、PE2、P1和P2上报的信息获取包括PE1的信息、作为PE1邻居的P1的信息、作为P1邻居的P2的信息、PE2的信息、PE1与P1间的链路SLA信息、P1与P2间的链路SLA信息、P2与PE2间的链路SLA信息的BIER网络拓扑。For example, in the BIER network shown in Figure 1, PE1 is the BFIR, PE2 is the first BFER, and P1 and P2 are the intermediate BFRs between PE1 and PE2, respectively. All devices establish BGP_LS peers with the control device respectively. PE1 reports the BFR-ID of PE1, the end.BIER address of PE1, the node attribute of PE1, the neighbor information of PE1 and the link information of PE1 to the control device through BGP_LS; PE2 reports to the control device through BGP_LS Report the BFR-ID of PE2, the end.BIER address of PE2, the node attribute of PE2, the neighbor information of PE2 and the link information of PE2 to the control device; P1 sends the end.BIER address of P1, the node attribute of P1, The neighbor information of P1 and the link information of P1 are reported to the control device; P2 reports the end.BIER address of P2, the node attribute of P2, the neighbor information of P2 and the link information of P2 to the control device through BGP_LS; the control device is based on PE1 , The information reported by PE2, P1 and P2 includes the information of PE1, the information of P1 as the neighbor of PE1, the information of P2 as the neighbor of P1, the information of PE2, the SLA information of the link between PE1 and P1, the information of the link between P1 and P2 BIER network topology of link SLA information and link SLA information between P2 and PE2.
情况五,针对BFIR与第一BFER之间具有中间BFR的BIER MPLS场景,控制设备获取BIER网络拓扑包括:控制设备接收来自BFIR的第一信息,第一信息包括BFIR的BFR-ID和BFIR的MPLS标签、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息;控制设备接收来自第一BFER的第二信息,第二信息包括第一BFER的BFR-ID、第一BFER的MPLS标签、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息;控制设备接收来自中间BFR的第三信息,第三信息包括中间BFR的MPLS标签、中间BFR的节点属性、中间BFR的邻居信息和中间BFR的链路信息;控制设备基于第一信息、第二信息和第三信息,获得BIER网络拓扑,BIER网络拓扑包括BFIR的信息、作为BFIR邻居的中间BFR的信息、第一BFER的信息、BFIR与中间BFR间的链路SLA信息和中间BFR与第一BFER间的链路SLA信息。 Case 5, for a BIER MPLS scenario with an intermediate BFR between the BFIR and the first BFER, obtaining the BIER network topology by the control device includes: the control device receives the first information from the BFIR, and the first information includes the BFR-ID of the BFIR and the MPLS of the BFIR. label, node attribute of BFIR, neighbor information of BFIR and link information of BFIR; the control device receives second information from the first BFER, the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the first BFER Node attributes of a BFER, neighbor information of the first BFER and link information of the first BFER; the control device receives third information from the intermediate BFR, the third information includes the MPLS label of the intermediate BFR, the node attribute of the intermediate BFR, the intermediate BFR The neighbor information and the link information of the intermediate BFR; the control device obtains the BIER network topology based on the first information, the second information and the third information, and the BIER network topology includes the information of the BFIR, the information of the intermediate BFR as the BFIR neighbor, the first BFER information, link SLA information between the BFIR and the intermediate BFR, and link SLA information between the intermediate BFR and the first BFER.
其中,BFIR的节点属性、BFIR的链路信息、第一BFER的节点属性、第一BFER的链路信息可参见上述情况一中的描述,此处不再赘述。For the node attribute of the BFIR, the link information of the BFIR, the node attribute of the first BFER, and the link information of the first BFER, reference may be made to the description in the foregoing case 1, and details are not repeated here.
此外,在该情况五中,BIER网络拓扑中除了包括BFIR和第一BFER之外,BFIR与第一BFER之间还包括至少一个中间BFR,BFIR的邻居信息包括中间BFR,第一BFER的邻居信息包括中间BFR。控制设备除了接收BFIR发送的第一信息以及第一BFER发送的第二信息外,还接收中间BFR发送的第三信息。中间BFR的节点属性包括但不限于BFR-prefix;中间BFR的邻居信息包括至少一个BFER或到达至少一个BFER的BFR,BFIR或到达所述BFIR的BFR;中间BFR的链路信息是指链路SLA信息,包括但不限于:链路带宽、时延、IP地址、IGP metric、SRLG等信息。In addition, in case 5, in addition to the BFIR and the first BFER, the BIER network topology includes at least one intermediate BFR between the BFIR and the first BFER, the neighbor information of the BFIR includes the intermediate BFR, and the neighbor information of the first BFER Including intermediate BFR. In addition to receiving the first information sent by the BFIR and the second information sent by the first BFER, the control device also receives the third information sent by the intermediate BFR. The node attributes of the intermediate BFR include but are not limited to BFR-prefix; the neighbor information of the intermediate BFR includes at least one BFER or the BFR reaching at least one BFER, the BFIR or the BFR reaching the BFIR; the link information of the intermediate BFR refers to the link SLA Information, including but not limited to: link bandwidth, delay, IP address, IGP metric, SRLG and other information.
示例性地,控制设备可分别与BFIR、第一BFER以及中间BFR建立BGP邻居,例如控制设备与BFIR、第一BFER以及中间BFR分别建立BGP_LS peer,控制设备接收BFIR通过BGP_LS发送的第一信息,控制设备接收第一BFER通过BGP_LS发送的第二信息, 控制设备接收中间BFR通过BGP_LS发送的第三信息。该控制设备基于第一信息、第二信息和第三信息获取到包括BFIR的信息、作为BFIR邻居的中间BFR的信息、第一BFER的信息、BFIR与中间BFR间的链路SLA信息和中间BFR与第一BFER间的链路SLA信息的BIER网络拓扑。Exemplarily, the control device can establish a BGP neighbor with the BFIR, the first BFER and the intermediate BFR respectively, for example, the control device and the BFIR, the first BFER and the intermediate BFR respectively establish a BGP_LS peer, and the control device receives the first information sent by the BFIR through the BGP_LS, The control device receives the second information sent by the first BFER through BGP_LS, and the control device receives the third information sent by the intermediate BFR through BGP_LS. The control device obtains, based on the first information, the second information, and the third information, information including BFIR, information of an intermediate BFR that is a neighbor of the BFIR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and intermediate BFR BIER network topology for link SLA information with the first BFER.
其中,该情况五获取到的BIER网络拓扑中包括的BFIR的信息包括但不限于BFIR的BFR-ID、BFIR的MPLS标签和BFIR的节点属性,第一BFER的信息包括但不限于第一BFER的BFR-ID、第一BFER的MPLS标签和第一BFER的节点属性,中间BFR的信息包括但不限于中间BFR的MPLS标签和中间BFR的节点属性。Wherein, the information of the BFIR included in the BIER network topology obtained in the fifth situation includes but is not limited to the BFR-ID of the BFIR, the MPLS label of the BFIR, and the node attribute of the BFIR, and the information of the first BFER includes but is not limited to the first BFER The BFR-ID, the MPLS label of the first BFER, and the node attribute of the first BFER, the information of the intermediate BFR includes but not limited to the MPLS label of the intermediate BFR and the node attribute of the intermediate BFR.
例如,在图1所示的BIER网络中,PE1为BFIR,PE2为第一BFER,P1和P2分别为PE1和PE2之间的中间BFR。所有设备分别与控制设备建立BGP_LS peer,PE1通过BGP_LS将PE1的BFR-ID、PE1的MPLS标签、PE1的节点属性、PE1的邻居信息和PE1的链路信息上报给控制设备;PE2通过BGP_LS将PE2的BFR-ID、PE2的MPLS标签、PE2的节点属性、PE2的邻居信息和PE2的链路信息上报给控制设备;P1通过BGP_LS将P1的MPLS标签、P1的节点属性、P1的邻居信息和P1的链路信息上报给控制设备;P2通过BGP_LS将P2的MPLS标签、P2的节点属性、P2的邻居信息和P2的链路信息上报给控制设备;控制设备基于PE1、PE2、P1和P2上报的信息获取包括PE1的信息、作为PE1邻居的P1的信息、作为P1邻居的P2的信息、PE2的信息、PE1与P1间的链路SLA信息、P1与P2间的链路SLA信息、P2与PE2间的链路SLA信息的BIER网络拓扑。For example, in the BIER network shown in Figure 1, PE1 is the BFIR, PE2 is the first BFER, and P1 and P2 are the intermediate BFRs between PE1 and PE2, respectively. All devices establish BGP_LS peers with the control device respectively. PE1 reports the BFR-ID of PE1, the MPLS label of PE1, the node attribute of PE1, the neighbor information of PE1 and the link information of PE1 to the control device through BGP_LS; PE2 reports PE2 through BGP_LS The BFR-ID of PE2, the MPLS label of PE2, the node attribute of PE2, the neighbor information of PE2 and the link information of PE2 are reported to the control device; P1 reports the MPLS label of P1, the node attribute of P1, the neighbor information of P1 and the information of P1 through BGP_LS. The link information is reported to the control device; P2 reports the MPLS label of P2, the node attribute of P2, the neighbor information of P2 and the link information of P2 to the control device through BGP_LS; the control device is based on the information reported by PE1, PE2, P1 and P2. Information acquisition includes the information of PE1, the information of P1 as the neighbor of PE1, the information of P2 as the neighbor of P1, the information of PE2, the SLA information of the link between PE1 and P1, the SLA information of the link between P1 and P2, the information of P2 and PE2 BIER network topology for link SLA information.
情况六,针对BFIR与第一BFER之间具有中间BFR的BIER MPLS场景,控制设备获取BIER网络拓扑包括:控制设备接收来自BFIR的第一信息,第一信息包括BFIR的BFR-ID和BFIR的BIFT标识、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息;控制设备接收来自第一BFER的第二信息,第二信息包括第一BFER的BFR-ID、第一BFER的BIFT标识、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息;控制设备接收来自中间BFR的第三信息,第三信息包括中间BFR的BIFT标识、中间BFR的节点属性、中间BFR的邻居信息和中间BFR的链路信息;控制设备基于第一信息、第二信息和第三信息,获得BIER网络拓扑,BIER网络拓扑包括BFIR的信息、作为BFIR邻居的中间BFR的信息、第一BFER的信息、BFIR与中间BFR间的链路SLA信息和中间BFR与第一BFER间的链路SLA信息。 Scenario 6, for a BIER MPLS scenario with an intermediate BFR between the BFIR and the first BFER, obtaining the BIER network topology by the control device includes: the control device receives the first information from the BFIR, and the first information includes the BFR-ID of the BFIR and the BIFT of the BFIR. identification, node attributes of BFIR, neighbor information of BFIR, and link information of BFIR; the control device receives second information from the first BFER, and the second information includes the BFR-ID of the first BFER, the BIFT identification of the first BFER, the first BFER Node attributes of a BFER, neighbor information of the first BFER and link information of the first BFER; the control device receives third information from the intermediate BFR, the third information includes the BIFT identifier of the intermediate BFR, the node attribute of the intermediate BFR, the intermediate BFR The neighbor information and the link information of the intermediate BFR; the control device obtains the BIER network topology based on the first information, the second information and the third information, and the BIER network topology includes the information of the BFIR, the information of the intermediate BFR as the BFIR neighbor, the first BFER information, link SLA information between the BFIR and the intermediate BFR, and link SLA information between the intermediate BFR and the first BFER.
其中,BFIR的节点属性、BFIR的链路信息、第一BFER的节点属性、第一BFER的链路信息可参见上述情况一中的描述,此处不再赘述。For the node attribute of the BFIR, the link information of the BFIR, the node attribute of the first BFER, and the link information of the first BFER, reference may be made to the description in the foregoing case 1, and details are not repeated here.
此外,在该情况六中,BIER网络拓扑中除了包括BFIR和第一BFER之外,BFIR与第一BFER之间还包括至少一个中间BFR,BFIR的邻居信息包括中间BFR,第一BFER的邻居信息包括中间BFR。控制设备除了接收BFIR发送的第一信息以及第一BFER发送的第二信息外,还接收中间BFR发送的第三信息。中间BFR的节点属性包括但不限于BFR-prefix;中间BFR的邻居信息包括至少一个BFER或到达至少一个BFER的BFR,BFIR或到达所述BFIR的BFR;中间BFR的链路信息是指链路SLA信息,包括但不限于:链路带宽、时延、IP地址、IGP metric、SRLG等信息。In addition, in case 6, in addition to the BFIR and the first BFER, the BIER network topology also includes at least one intermediate BFR between the BFIR and the first BFER, the neighbor information of the BFIR includes the intermediate BFR, and the neighbor information of the first BFER Including intermediate BFR. In addition to receiving the first information sent by the BFIR and the second information sent by the first BFER, the control device also receives the third information sent by the intermediate BFR. The node attributes of the intermediate BFR include but are not limited to BFR-prefix; the neighbor information of the intermediate BFR includes at least one BFER or the BFR reaching at least one BFER, the BFIR or the BFR reaching the BFIR; the link information of the intermediate BFR refers to the link SLA Information, including but not limited to: link bandwidth, delay, IP address, IGP metric, SRLG and other information.
示例性地,控制设备可分别与BFIR、第一BFER以及中间BFR建立BGP邻居,例如控制设备与BFIR、第一BFER以及中间BFR分别建立BGP_LS peer,控制设备接收BFIR通过BGP_LS发送的第一信息,控制设备接收第一BFER通过BGP_LS发送的第二信息, 控制设备接收中间BFR通过BGP_LS发送的第三信息。该控制设备基于第一信息、第二信息和第三信息获取到包括BFIR的信息、作为BFIR邻居的中间BFR的信息、第一BFER的信息、BFIR与中间BFR间的链路SLA信息和中间BFR与第一BFER间的链路SLA信息的BIER网络拓扑。Exemplarily, the control device can establish a BGP neighbor with the BFIR, the first BFER and the intermediate BFR respectively, for example, the control device and the BFIR, the first BFER and the intermediate BFR respectively establish a BGP_LS peer, and the control device receives the first information sent by the BFIR through the BGP_LS, The control device receives the second information sent by the first BFER through BGP_LS, and the control device receives the third information sent by the intermediate BFR through BGP_LS. The control device obtains, based on the first information, the second information, and the third information, information including BFIR, information of an intermediate BFR that is a neighbor of the BFIR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and intermediate BFR BIER network topology for link SLA information with the first BFER.
其中,该情况六获取到的BIER网络拓扑中包括的BFIR的信息包括但不限于BFIR的BFR-ID、BFIR的BIFT标识和BFIR的节点属性,第一BFER的信息包括但不限于第一BFER的BFR-ID、第一BFER的BIFT标识和第一BFER的节点属性,中间BFR的信息包括但不限于中间BFR的BIFT标识和中间BFR的节点属性。Wherein, the information of the BFIR included in the BIER network topology obtained in this situation 6 includes but is not limited to the BFR-ID of the BFIR, the BIFT identifier of the BFIR, and the node attribute of the BFIR, and the information of the first BFER includes but is not limited to the first BFER. The BFR-ID, the BIFT identifier of the first BFER, and the node attribute of the first BFER, and the information of the intermediate BFR includes, but is not limited to, the BIFT identifier of the intermediate BFR and the node attribute of the intermediate BFR.
例如,在图1所示的BIER网络中,PE1为BFIR,PE2为第一BFER,P1和P2分别为PE1和PE2之间的中间BFR。所有设备分别与控制设备建立BGP_LS peer,PE1通过BGP_LS将PE1的BFR-ID、PE1的BIFT标识、PE1的节点属性、PE1的邻居信息和PE1的链路信息上报给控制设备;PE2通过BGP_LS将PE2的BFR-ID、PE2的BIFT标识、PE2的节点属性、PE2的邻居信息和PE2的链路信息上报给控制设备;P1通过BGP_LS将P1的BIFT标识、P1的节点属性、P1的邻居信息和P1的链路信息上报给控制设备;P2通过BGP_LS将P2的BIFT标识、P2的节点属性、P2的邻居信息和P2的链路信息上报给控制设备;控制设备基于PE1、PE2、P1和P2上报的信息获取包括PE1的信息、作为PE1邻居的P1的信息、作为P1邻居的P2的信息、PE2的信息、PE1与P1间的链路SLA信息、P1与P2间的链路SLA信息、P2与PE2间的链路SLA信息的BIER网络拓扑。For example, in the BIER network shown in Figure 1, PE1 is the BFIR, PE2 is the first BFER, and P1 and P2 are the intermediate BFRs between PE1 and PE2, respectively. All devices establish BGP_LS peers with the control device respectively. PE1 reports the BFR-ID of PE1, the BIFT identifier of PE1, the node attribute of PE1, the neighbor information of PE1 and the link information of PE1 to the control device through BGP_LS; PE2 reports PE2 through BGP_LS The BFR-ID of PE2, the BIFT identifier of PE2, the node attribute of PE2, the neighbor information of PE2 and the link information of PE2 are reported to the control device; P1 reports the BIFT identifier of P1, the node attribute of P1, the neighbor information of P1 and the The link information of P2 is reported to the control device; P2 reports the BIFT identifier of P2, the node attribute of P2, the neighbor information of P2 and the link information of P2 to the control device through BGP_LS; the control device is based on the information reported by PE1, PE2, P1 and P2 Information acquisition includes the information of PE1, the information of P1 as the neighbor of PE1, the information of P2 as the neighbor of P1, the information of PE2, the SLA information of the link between PE1 and P1, the SLA information of the link between P1 and P2, the information of P2 and PE2 BIER network topology for link SLA information.
上述情况一至情况六中,控制设备接收来自BFIR的第一信息包括:控制设备接收与BFIR通信的RR发送的第一信息;或者控制设备接收BFIR发送的第一信息。In the above cases 1 to 6, receiving the first information from the BFIR by the control device includes: the control device receives the first information sent by the RR communicating with the BFIR; or the control device receives the first information sent by the BFIR.
上述情况一至情况六中,控制设备接收来自第一BFER的第二信息包括:控制设备接收与第一BFER通信的RR发送的第二信息;或者控制设备接收与第一BFER通信的中间BFR发送的第二信息;或者控制设备接收第一BFER发送的第二信息。In the above-mentioned situations 1 to 6, the control device receiving the second information from the first BFER includes: the control device receives the second information sent by the RR communicated with the first BFER; or the control device receives the information sent by the intermediate BFR communicated with the first BFER. second information; or the control device receives the second information sent by the first BFER.
针对通过RR向控制设备上报信息的方式,由于无需BIER网络拓扑中的各个设备向控制设备上报信息,而是由RR收集BIER网络拓扑中的各个设备的信息,再由RR将信息上报给控制设备。该方式下,控制设备仅与RR交互即可,控制设备无需通过与网络拓扑中的各个设备交互来获取信息,因而可进一步节省控制设备的资源。For the method of reporting information to the control device through the RR, since each device in the BIER network topology does not need to report information to the control device, the RR collects the information of each device in the BIER network topology, and then the RR reports the information to the control device. . In this way, the control device only needs to interact with the RR, and the control device does not need to obtain information by interacting with each device in the network topology, thus further saving the resources of the control device.
例如,BIER网络拓扑中的各个设备与RR建立BGP_LS peer,BIER网络中的各个设备收集内部网关协议(interior gateway protocol,IGP)拓扑,可选地,还收集带宽、链路时延等信息,通过BGP-LS将收集到的信息上报给RR。此外,BIER网络中的各个设备通过扩展BGP_LS的属性携带BIER信息,并发布该BIER信息。RR收集到BIER网络中的各个设备的信息后,将信息上报给控制设备。RR还与控制设备建立BGP_LS peer,将收集的信息上报给控制设备。For example, each device in the BIER network topology establishes a BGP_LS peer with the RR, and each device in the BIER network collects the interior gateway protocol (IGP) topology, and optionally, also collects information such as bandwidth and link delay. BGP-LS reports the collected information to RR. In addition, each device in the BIER network carries the BIER information by extending the attributes of the BGP_LS, and publishes the BIER information. After the RR collects the information of each device in the BIER network, it reports the information to the control device. The RR also establishes a BGP_LS peer with the control device and reports the collected information to the control device.
可选地,上述情况一至情况六种,第二信息还包括第一BFER对应的组播源组信息。需要说明的是,如果第二信息不包括第一BFER对应的组播源组信息,控制设备可为第一BFER配置对应的组播源组信息。本申请实施例不对第一BFER对应的组播源组信息进行限定,第一BFER对应的组播源组信息包括但不限于组播源地址和组播组标识。Optionally, in the above cases 1 to 6, the second information further includes multicast source group information corresponding to the first BFER. It should be noted that, if the second information does not include the multicast source group information corresponding to the first BFER, the control device may configure the corresponding multicast source group information for the first BFER. This embodiment of the present application does not limit the multicast source group information corresponding to the first BFER, and the multicast source group information corresponding to the first BFER includes but is not limited to the multicast source address and the multicast group identifier.
此外,在一种可能的实现方式中,上述六种情况中涉及的第一BFER的BFR-ID是第一BFER动态获取的标识,动态获取是从一个BFR-ID的集合中获取的未被使用的标识。In addition, in a possible implementation manner, the BFR-ID of the first BFER involved in the above six situations is an identifier dynamically acquired by the first BFER, and the dynamic acquisition is an unused identifier acquired from a set of BFR-IDs 's identification.
无论是上述哪种情况,在一种可能的实现方式中,第二信息还包括子域标识SD、比 特串长度(bitstring length,BSL)和集合标识SI中的至少一个。Regardless of the above situation, in a possible implementation manner, the second information further includes at least one of a subfield identifier SD, a bitstring length (bitstring length, BSL), and a set identifier SI.
步骤202,控制设备基于业务需求和BIER网络拓扑,获取对应关系,该对应关系包括至少一个BFER的BFR-ID和下一跳的信息。Step 202, the control device obtains a corresponding relationship based on the service requirements and the BIER network topology, where the corresponding relationship includes the BFR-ID of at least one BFER and the information of the next hop.
在一种可能的实现方式中,控制设备显示BIER网络拓扑,基于显示的BIER网络拓扑获取业务需求。示例性地,业务需求包括带宽、时延、丢包或者指定节点中的一个或多个。其中,指定节点是指报文传输路径不包括该指定节点,或者说该指定节点不在报文传输路径上。或者,指定节点是指报文传输路径包括该指定节点,或者说该指定节点在报文传输路径上。In a possible implementation manner, the control device displays the BIER network topology, and obtains service requirements based on the displayed BIER network topology. Illustratively, the service requirements include one or more of bandwidth, delay, packet loss, or a designated node. The designated node means that the message transmission path does not include the designated node, or the designated node is not on the message transmission path. Or, the designated node means that the message transmission path includes the designated node, or the designated node is on the message transmission path.
例如,业务需求包括路径需要包括的设备、路径需要满足的带宽范围、路径需要满足的时延范围及需要规避的链路中的至少一种。其中,需要规避的链路是指路径不包括该需要规避的链路。For example, the service requirement includes at least one of devices that the path needs to include, a bandwidth range that the path needs to meet, a delay range that the path needs to meet, and links that need to be avoided. The link that needs to be avoided means that the path does not include the link that needs to be avoided.
控制设备基于业务需求和BIER网络拓扑,获取对应关系时,控制设备可基于业务需求和BIER网络拓扑确定报文传输路径,基于报文传输路径确定对应关系。在一种可能的实现方式中,控制设备基于业务需求和BIER网络拓扑,获取对应关系包括:控制设备基于业务需求获取目标BFR的信息,基于目标BFR的信息和BIER网络拓扑,获取对应关系,对应关系包括至少一个BFER的BFR-ID和目标BFR的信息。例如,业务需求指定了路径需要包括的设备,即目标BFR,则控制设备基于该目标BFR的信息和BIER网络设备,获取对应关系,该对应关系包括至少一个BFER的BFR-ID和下一跳的信息,该下一跳为目标BFR,则对应关系包括至少一个BFER的BFR-ID和目标BFR的信息。When the control device obtains the corresponding relationship based on the service requirements and the BIER network topology, the control device can determine the message transmission path based on the service requirements and the BIER network topology, and determine the corresponding relationship based on the message transmission path. In a possible implementation manner, the control device obtains the corresponding relationship based on business requirements and the BIER network topology, including: the control device obtains the information of the target BFR based on the business requirements, obtains the corresponding relationship based on the information of the target BFR and the BIER network topology, and corresponds to The relationship includes the BFR-ID of at least one BFER and the information of the target BFR. For example, if the service requirement specifies the device to be included in the path, that is, the target BFR, the control device obtains the corresponding relationship based on the information of the target BFR and the BIER network device, and the corresponding relationship includes the BFR-ID of at least one BFER and the next hop. information, the next hop is the target BFR, and the corresponding relationship includes the BFR-ID of at least one BFER and the information of the target BFR.
在一种可能的实现方式中,下一跳的信息包括下一跳的BIFT-ID或者是下一跳的end.BIER地址。可选地,下一跳的信息包括作为BFIR邻居的节点的end.BIER地址和与作为BFIR邻居的节点通信的出接口信息。In a possible implementation manner, the information of the next hop includes the BIFT-ID of the next hop or the end.BIER address of the next hop. Optionally, the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and the information of the outgoing interface communicating with the node serving as the BFIR neighbor.
步骤203,控制设备向BFIR发送对应关系。Step 203, the control device sends the corresponding relationship to the BFIR.
本申请实施例不对控制设备向BFIR发送对应关系的方式进行限定,例如,控制设备通过网络配置协议(network configuration protocol,NETCONF)向BFIR发送对应关系。或者,控制设备还可以采用其他协议发送,例如,将对应关系携带在流量工程(segment routing,SR)策略(policy)中发送。This embodiment of the present application does not limit the manner in which the control device sends the corresponding relationship to the BFIR. For example, the control device sends the corresponding relationship to the BFIR through a network configuration protocol (network configuration protocol, NETCONF). Alternatively, the control device may also use other protocols for sending, for example, carrying the corresponding relationship in a traffic engineering (segment routing, SR) policy (policy) for sending.
在一种可能的实现方式中,控制设备除了向BFIR发送与该BFIR对应的对应关系,还可以向BFER发送与BFER对应的对应关系,如果BIER网络拓扑中BFIR和BFER之间还包括中间BFR,控制设备还向中间BFR发送与该中间BFR对应的对应关系。其中,中间BFR对应的对应关系包括中间BFR的地址信息和中间BFR的下一跳的信息。中间BFR的下一跳的信息包括中间BFR的下一跳的BIFT-ID或者是下一跳的end.BIER地址。可选地,中间BFR的下一跳的信息还包括与下一跳通信的出接口信息。In a possible implementation manner, in addition to sending the corresponding relationship corresponding to the BFIR to the BFIR, the control device may also send the corresponding relationship corresponding to the BFER to the BFER. If an intermediate BFR is also included between the BFIR and the BFER in the BIER network topology, The control device also sends the corresponding relationship corresponding to the intermediate BFR to the intermediate BFR. The corresponding relationship corresponding to the intermediate BFR includes address information of the intermediate BFR and information of the next hop of the intermediate BFR. The information of the next hop of the intermediate BFR includes the BIFT-ID of the next hop of the intermediate BFR or the end.BIER address of the next hop. Optionally, the information of the next hop of the intermediate BFR further includes the information of the outgoing interface communicated with the next hop.
示例性地,本申请实施例中获取的满足业务需求的路径可为两条,包括主路径和备路径;主路径包括第一BFIR和第一BFER,备路径包括第二BFIR和第二BFER,控制设备分别向主路径上的第一BFIR和备路径上的第二BFIR发送对应的对应关系。在一种可能的实现方式中,主路径上的各个设备和备路径上的各个设备均不同,从而使得主备路径完全分离,进一步保证可靠性。Exemplarily, the paths that meet the service requirements obtained in the embodiment of the present application may be two, including the main path and the backup path; the main path includes the first BFIR and the first BFER, and the backup path includes the second BFIR and the second BFER, The control device sends the corresponding correspondence to the first BFIR on the primary path and the second BFIR on the backup path, respectively. In a possible implementation manner, each device on the primary path and each device on the backup path are different, so that the primary and backup paths are completely separated and reliability is further ensured.
步骤204,BFIR接收控制设备发送的对应关系。Step 204, the BFIR receives the correspondence sent by the control device.
如上述步骤201,由于对应关系基于BIER网络拓扑得到,为了使得控制设备能够获 取BIER网络拓扑,BIER网络中的各个设备向控制设备上报各个设备的信息,或者各个设备将信息上报给RR,由RR上报给控制设备。因此,对于BFIR,该BFIR接收控制设备发送的对应关系之前,还包括上报信息,BFIR上报信息的方式包括但不限于如下几种情况。As in the above step 201, since the corresponding relationship is obtained based on the BIER network topology, in order to enable the control device to obtain the BIER network topology, each device in the BIER network reports the information of each device to the control device, or each device reports the information to the RR, and the RR Report to the control device. Therefore, for the BFIR, before the BFIR receives the corresponding relationship sent by the control device, it also includes reporting information, and the manner in which the BFIR reports information includes but is not limited to the following situations.
情况一,BFIR接收控制设备发送的对应关系之前,还包括:BFIR向控制设备发送第一信息,第一信息包括BFIR的BFR-ID和BFIR的end.BIER地址、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息。 Case 1, before the BFIR receives the correspondence sent by the control device, it further includes: the BFIR sends the first information to the control device, and the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attributes of the BFIR, and the neighbors of the BFIR. information and BFIR link information.
情况二,BFIR接收控制设备发送的对应关系之前,还包括:BFIR向控制设备发送第一信息,第一信息包括BFIR的BFR-ID和BFIR的MPLS标签、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息。In case 2, before the BFIR receives the correspondence sent by the control device, it also includes: the BFIR sends the first information to the control device, and the first information includes the BFR-ID of the BFIR and the MPLS label of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and Link information for BFIR.
情况三,BFIR接收控制设备发送的对应关系之前,还包括:BFIR向控制设备发送第一信息,第一信息包括BFIR的BFR-ID和BFIR的BIFT标识、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息。Case 3: Before BFIR receives the correspondence sent by the control device, it also includes: BFIR sends first information to the control device, and the first information includes BFIR's BFR-ID and BFIR's BIFT identifier, BFIR's node attributes, BFIR's neighbor information and Link information for BFIR.
针对情况一至情况三,BFIR向控制设备上报第一信息的方式包括但不限于BFIR与控制设备建立BGP邻居,例如,BFIR与控制设备建立BGP_LS peer,通过BGP-LS向控制设备发送第一信息。For cases 1 to 3, the way in which BFIR reports the first information to the control device includes but is not limited to establishing a BGP neighbor between BFIR and the control device. For example, BFIR and the control device establish a BGP_LS peer, and send the first information to the control device through BGP-LS.
可选地,BFIR向控制设备发送第一信息包括:BFIR向RR发送第一信息;或者BFIR直接向控制设备发送第一信息。Optionally, sending the first information to the control device by the BFIR includes: the BFIR sends the first information to the RR; or the BFIR directly sends the first information to the control device.
需要说明的是,控制设备向BFIR设备下发对应关系之后,还包括:控制设备接收路径上的任意设备发送的路径故障信息;控制设备根据该路径故障信息可重新确定满足业务需求的路径,向重新确定的路径上的BFIR设备下发对应的对应关系。如果重新确定的路径上的BFIR设备与之前确定的路径上的BFIR相同,该BFIR可删除之前接收到的对应关系,以节省存储空间。It should be noted that, after the control device sends the corresponding relationship to the BFIR device, it further includes: the control device receives the path failure information sent by any device on the path; The BFIR device on the re-determined path delivers the corresponding correspondence. If the BFIR device on the re-determined path is the same as the BFIR on the previously determined path, the BFIR may delete the previously received correspondence to save storage space.
在一种可能的实现方式中,如果网络拓扑中的路径发生故障,BFIR设备还可基于路由协议学习到的转发表也即学习到的对应关系转发报文。In a possible implementation manner, if a path in the network topology fails, the BFIR device may also forward the packet based on the forwarding table learned by the routing protocol, that is, the learned correspondence.
本申请实施例提供的方法,控制设备基于业务需求以及BIER网络拓扑获取对应关系,该对应关系更加符合业务路径规划的要求,且将该对应关系发送给BFIR,无需BFIR通过学习得到对应关系,提高了组播部署效率。此外,由于是控制设备获取对应关系,再以静态配置的方式下发给BFIR,因而能够解决跨自治系统(autonomous system,AS)或异构组网等复杂组网环境下的一跳引流问题。In the method provided by the embodiment of the present application, the control device obtains the corresponding relationship based on the service requirements and the BIER network topology, the corresponding relationship is more in line with the requirements of service path planning, and the corresponding relationship is sent to the BFIR, without the need for the BFIR to obtain the corresponding relationship through learning. The efficiency of multicast deployment is improved. In addition, because the control device obtains the corresponding relationship and sends it to the BFIR in a static configuration, it can solve the problem of one-hop traffic diversion in complex networking environments such as autonomous systems (AS) or heterogeneous networking.
为了便于理解,接下来以控制设备为控制器(controller),BIER网络中的设备通过RR向控制器上报信息,由控制器统一静态规划BIER或BIERv6组播业务路径并下发对应关系为例,对本申请实施例提供的方法进行举例说明。该用于获取路径的方法实施环境如图3所示。图3中,BIER网络设备包括包括5个PE,分别为PE1、PE2、PE3、PE4和PE5,PE1的BFR-id为1(图3中用id=1表示),PE2的BFR-id为2(图3中用id=2表示),PE3的BFR-id为3(图3中用id=3表示),PE4的BFR-id为4(图3中用id=4表示),PE5的BFR-id为5(图3中用id=5表示)。此外,BIER网络中的PE之间还包括P1、P2和P3。该BIER网络中还包括RR。结合图3所示的实施环境,如图4所示,该用于获取路径的方法包括如下几个过程。For ease of understanding, take the control device as the controller, the devices in the BIER network report information to the controller through the RR, and the controller statically plans the BIER or BIERv6 multicast service paths and delivers the corresponding relationship as an example. The methods provided in the embodiments of the present application are given by way of example. The implementation environment of the method for obtaining a path is shown in FIG. 3 . In Figure 3, the BIER network device includes 5 PEs, namely PE1, PE2, PE3, PE4 and PE5. The BFR-id of PE1 is 1 (indicated by id=1 in Figure 3), and the BFR-id of PE2 is 2 (indicated by id=2 in Figure 3), the BFR-id of PE3 is 3 (indicated by id=3 in Figure 3), the BFR-id of PE4 is 4 (indicated by id=4 in Figure 3), and the BFR of PE5 -id is 5 (indicated by id=5 in Figure 3). In addition, the PEs in the BIER network also include P1, P2 and P3. RR is also included in the BIER network. With reference to the implementation environment shown in FIG. 3 , as shown in FIG. 4 , the method for obtaining a path includes the following processes.
步骤401,控制器接收RR发送的拓扑信息集和BIER属性集。 Step 401, the controller receives the topology information set and the BIER attribute set sent by the RR.
示例性地,BIER网络中的各设备与RR建立BGP_LS peer,将各自的信息通过BGP-LS上报给RR。以BIERv6场景为例,如图3所示,RR获取到PE1、PE2、PE3、P1和P2的信息,得到拓扑信息集和BIER属性集。RR与控制器建立BGP_LS peer,RR通过BGP_LS将拓扑信息集和BIER属性集上报给控制器。示例性地,拓扑信息集包括PE1的邻居信息、PE2的邻居信息、PE3的邻居信息、P1的邻居信息、P2的邻居信息、PE1与P1间的链路信息,P1与P2间的链路信息、P2与PE2间的链路信息、P2与PE3间的链路信息;BIER属性集包括PE2的BFR-ID、PE2的节点属性、PE2的end.BIER地址,PE3的BFR-ID、PE3的节点属性、PE3的end.BIER地址,PE1的BFR-ID、PE1的节点属性、PE1的end.BIER地址,P1的end.BIER地址、P1的节点属性,P2的end.BIER地址、P2的节点属性。可选地,还包括PE2对应的组播源组信息和或或PE3对应的组播源组信息。Exemplarily, each device in the BIER network establishes a BGP_LS peer with the RR, and reports the respective information to the RR through the BGP-LS. Taking the BIERv6 scenario as an example, as shown in Figure 3, the RR obtains the information of PE1, PE2, PE3, P1, and P2, and obtains the topology information set and the BIER attribute set. The RR and the controller establish a BGP_LS peer, and the RR reports the topology information set and BIER attribute set to the controller through BGP_LS. Exemplarily, the topology information set includes neighbor information of PE1, neighbor information of PE2, neighbor information of PE3, neighbor information of P1, neighbor information of P2, link information between PE1 and P1, and link information between P1 and P2. , link information between P2 and PE2, link information between P2 and PE3; BIER attribute set includes PE2's BFR-ID, PE2's node attribute, PE2's end.BIER address, PE3's BFR-ID, PE3's node Attribute, end.BIER address of PE3, BFR-ID of PE1, node attribute of PE1, end.BIER address of PE1, end.BIER address of P1, node attribute of P1, end.BIER address of P2, node attribute of P2 . Optionally, the multicast source group information corresponding to PE2 and/or the multicast source group information corresponding to PE3 is also included.
步骤402,控制器基于拓扑信息集和BIER属性集,获取BIER网络拓扑。 Step 402, the controller obtains the BIER network topology based on the topology information set and the BIER attribute set.
在一种可能的实现方式中,控制器基于拓扑信息集和BIER属性集获取包括PE1、PE2、PE3、P1和P2的BIER网络拓扑。In a possible implementation manner, the controller acquires the BIER network topology including PE1, PE2, PE3, P1 and P2 based on the topology information set and the BIER attribute set.
可选地,控制器基于拓扑信息集和BIER属性集获取到BIER网络拓扑之后,控制器可通过配置界面显示该BIER网络拓扑,以便于用户输入业务需求。Optionally, after the controller obtains the BIER network topology based on the topology information set and the BIER attribute set, the controller may display the BIER network topology through the configuration interface, so as to facilitate the user to input service requirements.
控制器通过配置界面显示该BIER网络拓扑后,用户可在配置界面上输入业务需求,例如路径需要经过的设备、路径需要满足的带宽范围等,控制器基于配置界面上输入的信息获取业务需求。可选地,用户还可在配置界面上指定路径起始节点、根节点和路径目的节点、叶子节点汇聚节点(通常算到一个城域网的汇聚节点即可,特殊用户可以算到叶子节点)等,控制器算路时可以基于用户指定的内容增加约束条件,从而确定满足业务需求的路径。After the controller displays the BIER network topology through the configuration interface, the user can enter the service requirements on the configuration interface, such as the equipment that the path needs to pass through, the bandwidth range that the path needs to meet, etc. The controller obtains the service requirements based on the information entered on the configuration interface. Optionally, the user can also specify the path start node, root node, path destination node, and leaf node aggregation node on the configuration interface (usually, the aggregation node of a metropolitan area network can be counted, and the leaf node can be counted as a special user) etc. When calculating the path, the controller can add constraints based on the content specified by the user, so as to determine the path that meets the business requirements.
除了用户在配置界面上输入业务需求外,本申请实施例提供的方法中,也支持通过配置界面显示可选的业务需求,用户可进行选择,控制器将用户选择的内容作为获取到的业务需求。例如,如图5所示,在配置界面上显示设置算路意图和约束的可选项,如带宽(bandwidth)=300Mbps、成本(cost)=最低限度(minimum)以及潜在因素(latency)等,控制器将其中被选中的带宽和成本作为业务需求。In addition to the user inputting business requirements on the configuration interface, the method provided by the embodiment of the present application also supports displaying optional business requirements through the configuration interface, the user can make selections, and the controller takes the content selected by the user as the acquired business requirements . For example, as shown in Figure 5, options for setting route calculation intentions and constraints are displayed on the configuration interface, such as bandwidth=300Mbps, cost=minimum, and latency, etc. The server uses the selected bandwidth and cost as business requirements.
步骤403,控制器根据业务需求及网络拓扑获取对应关系,向BFIR发送对应关系。 Step 403, the controller obtains the corresponding relationship according to the service requirements and the network topology, and sends the corresponding relationship to the BFIR.
控制器获取到业务需求以及网络拓扑后,在网络拓扑中确定满足业务需求的路径,基于确定的路径获取对应关系,再将该对应关系发送给BFIR,以实现静态配置对应关系。示例性地,该对应关系可以形成转发表。After the controller obtains the service requirements and the network topology, it determines the path that meets the service requirements in the network topology, obtains the corresponding relationship based on the determined path, and then sends the corresponding relationship to the BFIR to implement the static configuration of the corresponding relationship. Illustratively, the correspondence may form a forwarding table.
例如,参见图3或图5,针对源设备发出的组播报文,控制器确定该组播报文的传输路径为PE1->P1->P2->PE2以及PE1->P1->P2->PE3。之后,控制器向PE1发送对应关系,该对应关系包括PE2和PE3的BFR-ID,以及PE1的下一跳的信息。PE1的下一跳的信息包括P1,例如该P1的BIFT-ID或end.BIER地址。此外,该对应关系可以作为静态路由配置,以NETCONF下发至PE1。For example, referring to Figure 3 or Figure 5, for a multicast packet sent by the source device, the controller determines that the transmission paths of the multicast packet are PE1->P1->P2->PE2 and PE1->P1->P2- >PE3. Afterwards, the controller sends the corresponding relationship to PE1, where the corresponding relationship includes the BFR-IDs of PE2 and PE3 and the information of the next hop of PE1. The information of the next hop of PE1 includes P1, such as the BIFT-ID or end.BIER address of the P1. In addition, the corresponding relationship can be configured as a static route and delivered to PE1 through NETCONF.
可选地,除了向BFIR发送对应关系外,控制器还可以向路径中的其他设备发送对应的对应关系。如图6所示,本申请实施例提供的用于获取路径的方法包括如下几个过程。Optionally, in addition to sending the corresponding relationship to the BFIR, the controller may also send the corresponding corresponding relationship to other devices in the path. As shown in FIG. 6 , the method for obtaining a path provided by this embodiment of the present application includes the following processes.
步骤601,控制器接收RR发送的拓扑信息集和BIER属性集,基于拓扑信息集和BIER属性集,获取BIER网络拓扑。 Step 601, the controller receives the topology information set and the BIER attribute set sent by the RR, and obtains the BIER network topology based on the topology information set and the BIER attribute set.
该步骤601可参考上述图4所示的方法中的步骤401和402,此处不再赘述。For this step 601, reference may be made to steps 401 and 402 in the method shown in FIG. 4 above, which will not be repeated here.
步骤602,控制器基于业务需求和BIER网络拓扑确定路径,基于路径获取对应关系。 Step 602, the controller determines the path based on the service requirements and the BIER network topology, and obtains the corresponding relationship based on the path.
该步骤601可参考上述图4所示的方法中的步骤403,此处不再赘述。For the step 601, reference may be made to the step 403 in the method shown in FIG. 4, which will not be repeated here.
控制器根据算出来的路径自动为路径上各节点下发静态路由配置,指定某BFR-ID范围的节点在本下发节点上的转发路径(NHP为下一跳节点,出接口为与下一跳直连的接口),与前述静态规划路径的处理相同。The controller automatically delivers static routing configuration to each node on the path according to the calculated path, and specifies the forwarding path of a node in a certain BFR-ID range on the delivery node (NHP is the next hop node, and the outbound interface is the same as the next hop node. directly connected interfaces), which is the same as the preceding statically planned path.
步骤603,控制器向路径上的各个设备发送对应关系。 Step 603, the controller sends the corresponding relationship to each device on the path.
本申请实施例提供的方法,通过控制器向路径上的各个设备发送对应关系,无需各个设备通过学习得到对应关系,进一步提高了组播部署效率。In the method provided by the embodiment of the present application, the controller sends the corresponding relationship to each device on the path, and each device does not need to obtain the corresponding relationship through learning, which further improves the efficiency of multicast deployment.
需要说明的是,图3和图5中的两条路径上的设备是有重叠的,本申请实施例提供的方法还支持计算主路径和备路径两条路径,且主路径和备路径上的设备均不同的情况。例如,以图7所示的组播转发路径,控制器上计算从主路径的根节点到子网1的汇聚点P3,从备路径的根节点到子网1的汇聚节点P4,对目的节点为子网1的节点P3和P4下发BIER或BIERv6报文转发表即对应关系为例。图7中,主、备两条路径的根节点(也即BFIR)分别是PE1和PE2。It should be noted that the devices on the two paths in FIG. 3 and FIG. 5 overlap, and the method provided in this embodiment of the present application also supports the calculation of two paths, the primary path and the backup path, and the devices are different. For example, with the multicast forwarding path shown in Figure 7, the controller calculates the path from the root node of the primary path to the sink node P3 of subnet 1, from the root node of the backup path to the sink node P4 of subnet 1, and the destination node The corresponding relationship is taken as an example of delivering a BIER or BIERv6 packet forwarding table to nodes P3 and P4 of subnet 1. In FIG. 7, the root nodes (ie, BFIRs) of the primary and backup paths are PE1 and PE2, respectively.
(一)基于主路径的根节点PE1到P3的转发路径下发的对应关系(转发表)包括但不限于如下内容。(1) The corresponding relationship (forwarding table) issued by the forwarding path of the root node PE1 to P3 based on the main path includes but is not limited to the following contents.
1、控制器向根节点PE1下发的对应关系(转发表)内容包括:1. The content of the corresponding relationship (forwarding table) sent by the controller to the root node PE1 includes:
(1)子域(sub-domain)ID,BSL,SI等;(1) Sub-domain ID, BSL, SI, etc.;
(2)FBM:为子网1中所有在线的叶子节点BFER的BFR-ID组成的bitstring,例如图7中PE3和PE4在线,以BSL为128为例,则下发的bitstring为:00……000110(共128位)。(2) FBM: Bitstring composed of BFR-IDs of all online leaf nodes BFER in subnet 1. For example, in Figure 7, PE3 and PE4 are online. Taking BSL as 128 as an example, the delivered bitstring is: 00... 000110 (128 bits in total).
(3)PE1的下一跳节点为P1,在BIER MPLS场景下,控制器向PE1下发P1分给PE1的BIFT-ID;在BIERv6场景下,控制器向PE1下发P1的end.BIER地址;(3) The next hop node of PE1 is P1. In the BIER MPLS scenario, the controller sends the BIFT-ID assigned by P1 to PE1 to PE1; in the BIERv6 scenario, the controller sends the end.BIER address of P1 to PE1 ;
(4)转发的出接口:PE1的出接口Intf1。(4) Forwarding outbound interface: the outbound interface Intf1 of PE1.
2、控制器向P1下发的对应关系(转发表)内容包括:2. The content of the corresponding relationship (forwarding table) issued by the controller to P1 includes:
(1)sub-domain ID,BSL,SI等;(1) sub-domain ID, BSL, SI, etc.;
(2)FBM:为子网1中所有在线的叶子节点BFER的BFR-ID组成的bitstring,例如图7中PE3和PE4在线,以BSL为128为,则下发的bitstring为:00……000110(共128位)。(2) FBM: a bitstring composed of the BFR-IDs of all online leaf nodes BFER in subnet 1. For example, PE3 and PE4 are online in Figure 7, and the BSL is 128, then the delivered bitstring is: 00...000110 (128 bits in total).
(3)P1的下一跳为P3,在BIER MPLS场景下,控制器向P1下发P3分给P1的BIFT-ID;在BIERv6场景下,控制器向P1下发P3的end.BIER地址;(3) The next hop of P1 is P3. In the BIER MPLS scenario, the controller sends P1 the BIFT-ID assigned by P3 to P1; in the BIERv6 scenario, the controller sends the end.BIER address of P3 to P1;
(4)转发的出接口:P1的出接口Intf2。(4) Forwarding outgoing interface: the outgoing interface Intf2 of P1.
需要说明的是,若要继续在子网1内下发静态路径配置,则需要根据学习到的拓扑,在子网内部针对一定的BFER组或者单个BFER下发转发路径对应的对应关系。因此,需获取子网中各节点之间的连接关系以及分配的BFIT-ID(BIER MPLS场景)和end.BIER地址(BIERv6地址)。下发的bitstring中bit所标识的节点需要与要转发的目的BFER的BFR-ID一致。It should be noted that, if you want to continue to deliver the static path configuration in subnet 1, you need to deliver the corresponding relationship of forwarding paths to a certain BFER group or a single BFER within the subnet according to the learned topology. Therefore, it is necessary to obtain the connection relationship between nodes in the subnet and the assigned BFIT-ID (BIER MPLS scenario) and end.BIER address (BIERv6 address). The node identified by the bit in the delivered bitstring must be consistent with the BFR-ID of the destination BFER to be forwarded.
(二)基于备路径的根节点PE2到P4的转发路径下发的对应关系(转发表)包括但不限于如下内容。(2) The correspondence (forwarding table) issued by the forwarding path from the root node PE2 to P4 based on the backup path includes but is not limited to the following contents.
1、控制器向根节点PE2下发的对应关系(转发表)内容包括:1. The content of the corresponding relationship (forwarding table) sent by the controller to the root node PE2 includes:
(1)sub-domain ID,BSL,SI等;(1) sub-domain ID, BSL, SI, etc.;
(2)FBM:为子网1中所有在线的叶子节点BFER的BFR-ID组成的bitstring,例如图7中PE3和PE4在线,以BSL为128为例,则下发的bitstring为:00……000110(共128位)。(2) FBM: Bitstring composed of BFR-IDs of all online leaf nodes BFER in subnet 1. For example, in Figure 7, PE3 and PE4 are online. Taking BSL as 128 as an example, the delivered bitstring is: 00... 000110 (128 bits in total).
(3)PE2的下一跳为P2,在BIER MPLS场景下,控制器向PE2下发P2分给PE2的BIFT-ID;在BIERv6场景下,控制器向PE2下发P2的end.BIER地址;(3) The next hop of PE2 is P2. In the BIER MPLS scenario, the controller sends the BIFT-ID of P2 to PE2 to PE2; in the BIERv6 scenario, the controller sends the end.BIER address of P2 to PE2;
(4)转发的出接口:PE2的出接口Intf2。(4) Forwarding outbound interface: Intf2 of the outbound interface of PE2.
2、控制器向P2下发的对应关系(转发表)内容包括:2. The content of the corresponding relationship (forwarding table) issued by the controller to P2 includes:
(1)sub-domain ID,BSL,SI等;(1) sub-domain ID, BSL, SI, etc.;
(2)FBM:为子网1中所有在线的叶子节点BFER的BFR-ID组成的bitstring,例如图7中PE3和PE4在线,以BSL为128为例,则下发的bitstring为:00……000110(共128位)。(2) FBM: Bitstring composed of BFR-IDs of all online leaf nodes BFER in subnet 1. For example, in Figure 7, PE3 and PE4 are online. Taking BSL as 128 as an example, the delivered bitstring is: 00... 000110 (128 bits in total).
(3)P2的下一跳为P4,在BIER MPLS场景下,控制器向P2下发P4分给P2的BIFT-ID;在BIERv6场景下,控制器向P2下发P4的end.BIER地址;(3) The next hop of P2 is P4. In the BIER MPLS scenario, the controller sends P2 the BIFT-ID assigned by P4 to P2; in the BIERv6 scenario, the controller sends the end.BIER address of P4 to P2;
(4)转发的出接口:P2的出接口Intf1。(4) Forwarding outgoing interface: the outgoing interface Intf1 of P2.
需要说明的是,子网1内的路径下发与主路径的根节点组播流量的静态配置相同。BIER网络中的各个设备基于对应关系传输报文的过程中,报文根据下发的BIER静态转发表转发,依然是采用逐跳查BIFT表项进行bitstring复制。本申请实施例提供的方法依据静态配置生成对应关系也即BIFT表项转发报文,最终达到路径规划的目的。It should be noted that the path delivery in subnet 1 is the same as the static configuration of the root node multicast traffic of the main path. When each device in the BIER network transmits packets based on the corresponding relationship, the packets are forwarded according to the BIER static forwarding table issued, and the bitstring copy is still performed by hop-by-hop query BIFT entry. The method provided by the embodiment of the present application generates a corresponding relationship, that is, a BIFT entry forwarding a message according to a static configuration, and finally achieves the purpose of path planning.
主路径的根节点流量隧道为PE1-P1-P3,由P3用动态学习到的BIER转发表复制转发;备路径的根节点流量隧道为PE2-P2-P4,由P4用动态学习到的BIER转发表复制转发。这两条隧道路径形成主备可靠性保护。由于主路径的根节点流量和备路径的根节点流量的两条静态配置路径形成可靠性保护,在网络拓扑有路径分离的条件下,通过路径静态指定,可以保证每个节点收到的主备根组播流经过的路径完全分离,实现主、备路径的根节点的双份流量的完全备份,当主根或主根流量路径上出现故障,叶子节点切换为接收经过备路径发来的备根流量;若静态指定的主根流量路径和备根流量路径均出现故障,则通过路由协议学习到的动态转发表可以继续转发组播流量。可选地,若静态指定的主根流量路径和备根流量路径均出现故障,隧道故障信息也可上报控制器,控制器删除为原来路径上的设备下发的对应关系,并重新算路、重新向新路径上的设备下发静态转发表项配置,即下发新的对应关系。The root node traffic tunnel of the primary path is PE1-P1-P3, which is replicated and forwarded by P3 using the dynamically learned BIER forwarding table; the root node traffic tunnel of the backup path is PE2-P2-P4, which is forwarded by P4 using the dynamically learned BIER forwarding table. Publish copy and forward. The two tunnel paths form active and standby reliability protection. Since the two statically configured paths of the root node traffic of the primary path and the root node traffic of the backup path form reliability protection, under the condition that paths are separated in the network topology, statically specifying paths can ensure that the primary and backup paths received by each node can be guaranteed. The paths traversed by the root multicast flow are completely separated, realizing full backup of the double traffic of the root node of the primary and backup paths. When the primary root or primary root traffic path fails, the leaf nodes switch to receive the backup root traffic sent through the backup path. ;If both the statically specified primary root traffic path and backup root traffic path fail, the dynamic forwarding table learned through the routing protocol can continue to forward multicast traffic. Optionally, if both the statically specified primary root traffic path and the backup root traffic path are faulty, the tunnel fault information can also be reported to the controller. Deliver the static forwarding entry configuration to the device on the new path, that is, deliver a new correspondence.
需要说明的是,若需要算路的目的BFER组比子网1的范围更小,则需指定目的节点为更靠近小范围BFER组的上游节点;若需要算路到某个具体的BFER节点,则需指定算路的目的节点为此BFER节点。例如,以图8所示的指定组播转发路径示意图为例,以向地市1的BFER叶子节点指定组播转发路径:主路径的根节点为省汇聚边缘路由器(edge router,ER)1,主路径的根流量路径为:省汇聚ER1-城域ER1-汇聚ER1,如图8中实线所示。备路径的根节点为省汇聚ER2,备路径的根流量路径为:省汇聚ER2-城域ER2-汇聚ER2,如图8中虚线所示。如果需要继续缩小算路的目的BFER,则可以在省会城市内进一步指定目的BFER,例如为id=5的PE或者id=7的PE。需要说明的是,图8仅以省会城市到地市1内的路径为例进行说明,在示例性实施例中,也可以获取省会城市到地市2内的路径。例如,流量路径为:省汇聚ER1-城域核心(metro core,MC)1-汇聚节点 (aggregation node,AGG)1。It should be noted that if the destination BFER group that needs to calculate the route is smaller than the range of subnet 1, the destination node needs to be specified as the upstream node closer to the BFER group in the small range; if the route needs to be calculated to a specific BFER node, Then the destination node of the route calculation needs to be specified as the BFER node. For example, taking the schematic diagram of the designated multicast forwarding path shown in FIG. 8 as an example, the multicast forwarding path is designated to the BFER leaf node of city 1: the root node of the main path is the provincial edge router (ER) 1, The root traffic path of the main path is: provincial aggregation ER1 - metro ER1 - aggregation ER1, as shown by the solid line in Figure 8. The root node of the backup path is the provincial aggregation ER2, and the root traffic path of the backup path is: provincial aggregation ER2 - metro ER2 - aggregation ER2, as shown by the dotted line in Figure 8. If the destination BFER for route calculation needs to be further reduced, the destination BFER can be further specified in the provincial capital city, for example, the PE with id=5 or the PE with id=7. It should be noted that FIG. 8 only takes the route from the provincial capital city to the prefecture city 1 as an example for description. In an exemplary embodiment, the route from the provincial capital city to the prefecture city 2 can also be obtained. For example, the traffic path is: provincial aggregation ER1-metro core (MC)1-aggregation node (AGG)1.
以上介绍了本申请实施例提供的用于获取路径的方法,与上述方法对应,本申请实施例还提供用于获取路径的装置。图9是本申请实施例提供的一种用于获取路径的装置的结构示意图,该装置应用于BIER的网络中,例如,该装置应用于BIER网络中的控制设备,该控制设备为上述图2、图4及图6任一附图所示的控制设备。基于图9所示的如下多个模块,该图9所示的用于获取路径的装置能够执行控制设备所执行的全部或部分操作。应理解到,该装置可以包括比所示模块更多的附加模块或者省略其中所示的一部分模块,本申请实施例对此并不进行限制。如图9所示,该装置包括:The method for obtaining a path provided by the embodiment of the present application has been described above. Corresponding to the above method, the embodiment of the present application further provides an apparatus for obtaining a path. 9 is a schematic structural diagram of an apparatus for obtaining a path provided by an embodiment of the present application. The apparatus is applied in a BIER network. For example, the apparatus is applied to a control device in the BIER network, and the control device is the above-mentioned FIG. 2 , Fig. 4 and Fig. 6 the control device shown in any of the accompanying drawings. Based on the following multiple modules shown in FIG. 9 , the apparatus for obtaining a path shown in FIG. 9 can perform all or part of the operations performed by the control device. It should be understood that the apparatus may include more additional modules than the shown modules or omit a part of the modules shown therein, which is not limited in this embodiment of the present application. As shown in Figure 9, the device includes:
第一获取模块901,用于获取BIER网络拓扑,BIER网络拓扑包括BFIR和至少一个BFER;The first obtaining module 901 is used to obtain the BIER network topology, and the BIER network topology includes BFIR and at least one BFER;
第二获取模块902,用于基于业务需求和BIER网络拓扑,获取对应关系,对应关系包括至少一个BFER的位转发路由器标识BFR-ID和下一跳的信息;The second obtaining module 902 is used to obtain a corresponding relationship based on business requirements and BIER network topology, and the corresponding relationship includes at least one BFER bit forwarding router identifier BFR-ID and the information of the next hop;
发送模块903,用于向BFIR发送对应关系。The sending module 903 is configured to send the corresponding relationship to the BFIR.
在一种可能的实现方式中,至少一个BFER包括第一BFER,第一获取模块901,用于接收来自BFIR的第一信息,第一信息包括BFIR的BFR-ID和BFIR的end.BIER地址、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息;接收来自第一BFER的第二信息,第二信息包括第一BFER的BFR-ID、第一BFER的end.BIER地址、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息;基于第一信息和第二信息,获得BIER网络拓扑,BIER网络拓扑包括BFIR的信息、作为BFIR邻居的第一BFER的信息和BFIR与第一BFER间的链路SLA信息。In a possible implementation manner, at least one BFER includes a first BFER, and the first acquisition module 901 is configured to receive first information from the BFIR, where the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, Node attributes of BFIR, neighbor information of BFIR, and link information of BFIR; receiving second information from the first BFER, the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, the first BFER The node attribute of the first BFER, the neighbor information of the first BFER and the link information of the first BFER; based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR and the information of the first BFER as the BFIR neighbor. and link SLA information between BFIR and first BFER.
在一种可能的实现方式中,至少一个BFER包括第一BFER,第一获取模块901,用于接收来自BFIR的第一信息,第一信息包括BFIR的BFR-ID和BFIR的多协议标签交换MPLS标签、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息;接收来自第一BFER的第二信息,第二信息包括第一BFER的BFR-ID、第一BFER的MPLS标签、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息;基于第一信息和第二信息,获得BIER网络拓扑,BIER网络拓扑包括BFIR的信息、作为BFIR邻居的第一BFER的信息和BFIR与第一BFER间的链路SLA信息。In a possible implementation manner, at least one BFER includes a first BFER, and the first obtaining module 901 is configured to receive first information from the BFIR, where the first information includes the BFR-ID of the BFIR and the multi-protocol label switching MPLS of the BFIR Label, node attribute of BFIR, neighbor information of BFIR, and link information of BFIR; receive second information from the first BFER, the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the first BFER The node attribute of the first BFER, the neighbor information of the first BFER and the link information of the first BFER; based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR and the information of the first BFER as the BFIR neighbor. and link SLA information between BFIR and first BFER.
在一种可能的实现方式中,至少一个BFER包括第一BFER,第一获取模块901,用于接收来自BFIR的第一信息,第一信息包括BFIR的BFR-ID和BFIR的比特索引转发表BIFT标识、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息;接收来自第一BFER的第二信息,第二信息包括第一BFER的BFR-ID、第一BFER的BIFT标识、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息;基于第一信息和第二信息,获得BIER网络拓扑,BIER网络拓扑包括BFIR的信息、作为BFIR邻居的第一BFER的信息和BFIR与第一BFER间的链路SLA信息。In a possible implementation manner, at least one BFER includes a first BFER, and the first acquisition module 901 is configured to receive first information from the BFIR, where the first information includes the BFR-ID of the BFIR and the bit index forwarding table BIFT of the BFIR Identity, node attribute of BFIR, neighbor information of BFIR, and link information of BFIR; receive second information from the first BFER, the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the first BFER The node attribute of the first BFER, the neighbor information of the first BFER and the link information of the first BFER; based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR and the information of the first BFER as the BFIR neighbor. and link SLA information between BFIR and first BFER.
在一种可能的实现方式中,至少一个BFER包括第一BFER,第一获取模块901,用于接收来自BFIR的第一信息,第一信息包括BFIR的BFR-ID和BFIR的end.BIER地址、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息;接收来自第一BFER的第二信息,第二信息包括第一BFER的BFR-ID、第一BFER的end.BIER地址、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息;接收来自中间BFR的第三信息,第三信息包括中间BFR的end.BIER地址、中间BFR的节点属性、中间BFR的邻居 信息和中间BFR的链路信息;基于第一信息、第二信息和第三信息,获得BIER网络拓扑,BIER网络拓扑包括BFIR的信息、作为BFIR邻居的中间BFR的信息、第一BFER的信息、BFIR与中间BFR间的链路SLA信息和中间BFR与第一BFER间的链路SLA信息。In a possible implementation manner, at least one BFER includes a first BFER, and the first acquisition module 901 is configured to receive first information from the BFIR, where the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, Node attributes of BFIR, neighbor information of BFIR, and link information of BFIR; receiving second information from the first BFER, the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, the first BFER Receive the third information from the intermediate BFR, the third information includes the end.BIER address of the intermediate BFR, the node attribute of the intermediate BFR, and the neighbors of the intermediate BFR. information and link information of the intermediate BFR; based on the first information, the second information and the third information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR, the information of the intermediate BFR as a neighbor of the BFIR, the information of the first BFER, The link SLA information between the BFIR and the intermediate BFR and the link SLA information between the intermediate BFR and the first BFER.
在一种可能的实现方式中,至少一个BFER包括第一BFER,第一获取模块901,用于接收来自BFIR的第一信息,第一信息包括BFIR的BFR-ID和BFIR的MPLS标签、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息;接收来自第一BFER的第二信息,第二信息包括第一BFER的BFR-ID、第一BFER的MPLS标签、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息;接收来自中间BFR的第三信息,第三信息包括中间BFR的MPLS标签、中间BFR的节点属性、中间BFR的邻居信息和中间BFR的链路信息;基于第一信息、第二信息和第三信息,获得BIER网络拓扑,BIER网络拓扑包括BFIR的信息、作为BFIR邻居的中间BFR的信息、第一BFER的信息、BFIR与中间BFR间的链路SLA信息和中间BFR与第一BFER间的链路SLA信息。In a possible implementation manner, at least one BFER includes a first BFER, and the first acquisition module 901 is configured to receive first information from the BFIR, where the first information includes the BFR-ID of the BFIR, the MPLS label of the BFIR, the BFIR's Node attribute, neighbor information of BFIR, and link information of BFIR; receive second information from the first BFER, the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, Neighbor information of the first BFER and link information of the first BFER; receive third information from the intermediate BFR, the third information includes the MPLS label of the intermediate BFR, the node attribute of the intermediate BFR, the neighbor information of the intermediate BFR, and the chain of the intermediate BFR road information; based on the first information, the second information and the third information, the BIER network topology is obtained. The BIER network topology includes the information of the BFIR, the information of the intermediate BFR that is the neighbor of the BFIR, the information of the first BFER, and the information between the BFIR and the intermediate BFR. Link SLA information and link SLA information between the intermediate BFR and the first BFER.
在一种可能的实现方式中,至少一个BFER包括第一BFER,第一获取模块901,用于接收来自BFIR的第一信息,第一信息包括BFIR的BFR-ID和BFIR的BIFT标识、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息;接收来自第一BFER的第二信息,第二信息包括第一BFER的BFR-ID、第一BFER的BIFT标识、第一BFER的节点属性、第一BFER的邻居信息和第一BFER的链路信息;接收来自中间BFR的第三信息,第三信息包括中间BFR的BIFT标识、中间BFR的节点属性、中间BFR的邻居信息和中间BFR的链路信息;基于第一信息、第二信息和第三信息,获得BIER网络拓扑,BIER网络拓扑包括BFIR的信息、作为BFIR邻居的中间BFR的信息、第一BFER的信息、BFIR与中间BFR间的链路SLA信息和中间BFR与第一BFER间的链路SLA信息。In a possible implementation manner, the at least one BFER includes a first BFER, and the first acquisition module 901 is configured to receive first information from the BFIR, where the first information includes the BFR-ID of the BFIR, the BIFT identifier of the BFIR, the BFIR's Node attribute, neighbor information of BFIR and link information of BFIR; receive second information from the first BFER, the second information includes the BFR-ID of the first BFER, the BIFT identification of the first BFER, the node attribute of the first BFER, Neighbor information of the first BFER and link information of the first BFER; receive third information from the intermediate BFR, where the third information includes the BIFT identifier of the intermediate BFR, the node attribute of the intermediate BFR, the neighbor information of the intermediate BFR, and the chain of the intermediate BFR road information; based on the first information, the second information and the third information, the BIER network topology is obtained. The BIER network topology includes the information of the BFIR, the information of the intermediate BFR that is the neighbor of the BFIR, the information of the first BFER, and the information between the BFIR and the intermediate BFR. Link SLA information and link SLA information between the intermediate BFR and the first BFER.
在一种可能的实现方式中,第一获取模块901,用于接收与BFIR通信的路由反射器RR发送的第一信息;或者接收BFIR发送的第一信息。In a possible implementation manner, the first obtaining module 901 is configured to receive the first information sent by the route reflector RR that communicates with the BFIR; or receive the first information sent by the BFIR.
在一种可能的实现方式中,第一获取模块901,用于接收与第一BFER通信的RR发送的第二信息;或者接收与第一BFER通信的中间BFR发送的第二信息;或者接收第一BFER发送的第二信息。In a possible implementation manner, the first obtaining module 901 is configured to receive the second information sent by the RR in communication with the first BFER; or receive the second information sent by the intermediate BFR in communication with the first BFER; or receive the second information sent by the RR in communication with the first BFER; A second message sent by the BFER.
在一种可能的实现方式中,第二信息还包括第一BFER对应的组播源组信息。In a possible implementation manner, the second information further includes multicast source group information corresponding to the first BFER.
在一种可能的实现方式中,第二获取模块902,用于基于业务需求获取目标BFR的信息;基于目标BFR的信息和BIER网络拓扑,获取对应关系,对应关系中的下一跳的信息为目标BFR的信息。In a possible implementation manner, the second obtaining module 902 is configured to obtain the information of the target BFR based on business requirements; obtain the corresponding relationship based on the information of the target BFR and the BIER network topology, and the information of the next hop in the corresponding relationship is: Information on the target BFR.
在一种可能的实现方式中,业务需求包括带宽、时延、丢包和指定节点中的一个或多个。In a possible implementation manner, the service requirements include one or more of bandwidth, delay, packet loss, and designated nodes.
在一种可能的实现方式中,下一跳的信息包括作为BFIR邻居的节点的end.BIER地址和与作为BFIR邻居的节点通信的出接口信息。In a possible implementation manner, the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and the information of the outgoing interface communicating with the node serving as the BFIR neighbor.
在一种可能的实现方式中,第二信息还包括子域标识SD、BSL和集合标识SI中的一个或多个。In a possible implementation manner, the second information further includes one or more of the subdomain identifier SD, BSL and set identifier SI.
在一种可能的实现方式中,第一BFER的BFR-ID是第一BFER动态获取的标识,动态获取是从一个BFR-ID的集合中获取的未被使用的标识。In a possible implementation manner, the BFR-ID of the first BFER is an identifier dynamically acquired by the first BFER, and the dynamic acquisition is an unused identifier acquired from a set of BFR-IDs.
本申请实施例还提供了另一种用于获取路径的装置,图10是本申请实施例提供的一种用于获取路径的装置的结构示意图,该装置应用于BIER的网络中,例如,该装置应用 于BIER网络中的BFIR设备,该BFIR设备为上述图2、图4及图6任一附图所示的BFIR设备。基于图10所示的如下多个模块,该图10所示的用于获取路径的装置能够执行BFIR设备所执行的全部或部分操作。应理解到,该装置可以包括比所示模块更多的附加模块或者省略其中所示的一部分模块,本申请实施例对此并不进行限制。如图10所示,该装置包括:An embodiment of the present application also provides another apparatus for obtaining a path. FIG. 10 is a schematic structural diagram of an apparatus for obtaining a path provided by an embodiment of the present application. The apparatus is applied to a BIER network. For example, this The apparatus is applied to a BFIR device in a BIER network, and the BFIR device is the BFIR device shown in any of the above-mentioned Figures 2 , 4 and 6 . Based on the following multiple modules shown in FIG. 10 , the apparatus for obtaining a path shown in FIG. 10 can perform all or part of the operations performed by the BFIR device. It should be understood that the apparatus may include more additional modules than the shown modules or omit a part of the modules shown therein, which is not limited in this embodiment of the present application. As shown in Figure 10, the device includes:
接收模块1001,用于接收控制设备发送的对应关系,对应关系包括至少一个BFER的位转发路由器标识BFR-ID和下一跳的信息。The receiving module 1001 is configured to receive the corresponding relationship sent by the control device, where the corresponding relationship includes at least one BFER bit forwarding router identifier BFR-ID and the information of the next hop.
在一种可能的实现方式中,参见图11,装置还包括:In a possible implementation, referring to FIG. 11 , the apparatus further includes:
发送模块1102,用于向控制设备发送第一信息,第一信息包括BFIR的BFR-ID和BFIR的end.BIER地址、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息。The sending module 1102 is configured to send first information to the control device, where the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR.
在一种可能的实现方式中,参见图11,装置还包括:In a possible implementation, referring to FIG. 11 , the apparatus further includes:
发送模块1102,用于向控制设备发送第一信息,第一信息包括BFIR的BFR-ID和BFIR的多协议标签交换MPLS标签、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息。The sending module 1102 is configured to send first information to the control device, where the first information includes BFIR BFR-ID and BFIR MPLS label, BFIR node attribute, BFIR neighbor information and BFIR link information.
在一种可能的实现方式中,参见图11,装置还包括:In a possible implementation, referring to FIG. 11 , the apparatus further includes:
发送模块1102,用于向控制设备发送第一信息,第一信息包括BFIR的BFR-ID和BFIR的比特索引转发表BIFT标识、BFIR的节点属性、BFIR的邻居信息和BFIR的链路信息。The sending module 1102 is configured to send first information to the control device, where the first information includes BFIR BFR-ID and BFIR bit index forwarding table BIFT identifier, BFIR node attribute, BFIR neighbor information and BFIR link information.
在一种可能的实现方式中,发送模块1102,用于向路由反射器RR发送第一信息;或者直接向控制设备发送第一信息。In a possible implementation manner, the sending module 1102 is configured to send the first information to the route reflector RR; or directly send the first information to the control device.
在一种可能的实现方式中,下一跳的信息包括作为BFIR邻居的节点的end.BIER地址和与作为BFIR邻居的节点通信的出接口信息。In a possible implementation manner, the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and the information of the outgoing interface communicating with the node serving as the BFIR neighbor.
应理解的是,上述图9-图11提供的装置在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be understood that when the devices provided in the above-mentioned Figures 9 to 11 realize their functions, they are only illustrated by the division of the above-mentioned functional modules. In practical applications, the above-mentioned functions can be allocated according to different functional modules. , that is, dividing the internal structure of the device into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.
上述实施例中的控制设备或BFIR设备的具体硬件结构如图12所示的网络设备1500,包括收发器1501、处理器1502和存储器1503。收发器1501、处理器1502和存储器1503之间通过总线1504连接。其中,收发器1501用于接收报文和发送报文,存储器1503用于存放指令或程序代码,处理器1502用于调用存储器1503中的指令或程序代码使得控制设备或BFIR设备执行上述方法实施例中的相关处理步骤。在具体实施例中,本申请实施例的网络设备1500可对应于上述各个方法实施例中的控制设备,网络设备1500中的处理器1502读取存储器1503中的指令或程序代码,使图12所示的网络设备1500能够执行控制设备所执行的全部或部分操作。The specific hardware structure of the control device or the BFIR device in the above-mentioned embodiment is the network device 1500 shown in FIG. 12 , including a transceiver 1501 , a processor 1502 and a memory 1503 . The transceiver 1501 , the processor 1502 and the memory 1503 are connected through a bus 1504 . The transceiver 1501 is used to receive and send messages, the memory 1503 is used to store instructions or program codes, and the processor 1502 is used to call the instructions or program codes in the memory 1503 to make the control device or the BFIR device execute the above method embodiments related processing steps. In a specific embodiment, the network device 1500 in this embodiment of the present application may correspond to the control device in each of the above method embodiments. The illustrated network device 1500 is capable of performing all or part of the operations performed by the control device.
在具体实施例中,本申请实施例的网络设备1500可对应于上述各个方法实施例中的BFIR设备,网络设备1500中的处理器1502读取存储器1503中的指令或程序代码,使图12所示的网络设备1500能够执行BFIR设备所执行的全部或部分操作。In a specific embodiment, the network device 1500 in this embodiment of the present application may correspond to the BFIR device in each of the above method embodiments. The illustrated network device 1500 is capable of performing all or part of the operations performed by a BFIR device.
网络设备1500还可以对应于上述图9所示的装置,例如,图9中所涉及的发送模块903相当于收发器1501,第一获取模块901和第二获取模块902相当于处理器1502。又例如,图10-图11中所涉及的接收模块1001和发送模块1002相当于收发器1501。The network device 1500 may also correspond to the apparatus shown in FIG. 9 . For example, the sending module 903 involved in FIG. 9 is equivalent to the transceiver 1501 , and the first acquiring module 901 and the second acquiring module 902 are equivalent to the processor 1502 . For another example, the receiving module 1001 and the transmitting module 1002 involved in FIG. 10 to FIG. 11 are equivalent to the transceiver 1501 .
参见图13,图13示出了本申请一个示例性实施例提供的网络设备2000的结构示意 图。图13所示的网络设备2000用于执行上述图2、图4和图6所示的用于获取路径的方法所涉及的操作。该网络设备2000例如是交换机、路由器等。Referring to FIG. 13, FIG. 13 shows a schematic structural diagram of a network device 2000 provided by an exemplary embodiment of the present application. The network device 2000 shown in FIG. 13 is configured to perform the operations involved in the methods for obtaining a path shown in the above-mentioned FIGS. 2 , 4 and 6 . The network device 2000 is, for example, a switch, a router, and the like.
如图13所示,网络设备2000包括至少一个处理器2001、存储器2003以及至少一个通信接口2004。As shown in FIG. 13 , the network device 2000 includes at least one processor 2001 , memory 2003 and at least one communication interface 2004 .
处理器2001例如是通用中央处理器(central processing unit,CPU)、数字信号处理器(digital signal processor,DSP)、网络处理器(network processer,NP)、图形处理器(Graphics Processing Unit,GPU)、神经网络处理器(neural-network processing units,NPU)、数据处理单元(Data Processing Unit,DPU)、微处理器或者一个或多个用于实现本申请方案的集成电路。例如,处理器2001包括专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。PLD例如是复杂可编程逻辑器件(complex programmable logic device,CPLD)、现场可编程逻辑门阵列(field-programmable gate array,FPGA)、通用阵列逻辑(generic array logic,GAL)或其任意组合。其可以实现或执行结合本发明实施例公开内容所描述的各种逻辑方框、模块和电路。处理器也可以是实现计算功能的组合,例如包括一个或多个微处理器组合,DSP和微处理器的组合等等。The processor 2001 is, for example, a general-purpose central processing unit (central processing unit, CPU), a digital signal processor (digital signal processor, DSP), a network processor (network processor, NP), a graphics processor (Graphics Processing Unit, GPU), A neural-network processing unit (NPU), a data processing unit (DPU), a microprocessor or one or more integrated circuits for implementing the solution of the present application. For example, the processor 2001 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It may implement or execute the various logical blocks, modules and circuits described in connection with the disclosure of the embodiments of the present invention. A processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
可选的,网络设备2000还包括总线。总线用于在网络设备2000的各组件之间传送信息。总线可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图13中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。图13中网络设备2000的各组件之间除了采用总线连接,还可采用其他方式连接,本发明实施例不对各组件的连接方式进行限定。Optionally, the network device 2000 further includes a bus. The bus is used to transfer information between the components of the network device 2000 . The bus may be a peripheral component interconnect (PCI for short) bus or an extended industry standard architecture (EISA for short) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in FIG. 13, but it does not mean that there is only one bus or one type of bus. In addition to the bus connection, the components of the network device 2000 in FIG. 13 may be connected in other manners, and the embodiment of the present invention does not limit the connection manner of the components.
存储器2003例如是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,又如是随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,又如是电可擦可编程只读存储器(electrically erasable programmable read-only Memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器2003例如是独立存在,并通过总线与处理器2001相连接。存储器2003也可以和处理器2001集成在一起。The memory 2003 is, for example, a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, or a random access memory (random access memory, RAM) or a memory device that can store information and instructions. Other types of dynamic storage devices, such as electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, optical disks storage (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of Any other medium accessed by a computer without limitation. The memory 2003 exists independently, for example, and is connected to the processor 2001 through a bus. The memory 2003 may also be integrated with the processor 2001 .
通信接口2004使用任何收发器一类的装置,用于与其它设备或通信网络通信,通信网络可以为以太网、无线接入网(RAN)或无线局域网(wireless local area networks,WLAN)等。通信接口2004可以包括有线通信接口,还可以包括无线通信接口。具体的,通信接口2004可以为以太(Ethernet)接口、快速以太(Fast Ethernet,FE)接口、千兆以太(Gigabit Ethernet,GE)接口,异步传输模式(Asynchronous Transfer Mode,ATM)接口,无线局域网(wireless local area networks,WLAN)接口,蜂窝网络通信接口或其组合。以太网接口可以是光接口,电接口或其组合。在本申请实施例中,通信接口2004可以用于网络设备2000与其他设备进行通信。The communication interface 2004 uses any device such as a transceiver for communicating with other devices or a communication network, which may be Ethernet, a radio access network (RAN), or wireless local area networks (WLAN), or the like. Communication interface 2004 may include a wired communication interface and may also include a wireless communication interface. Specifically, the communication interface 2004 may be an Ethernet (Ethernet) interface, a Fast Ethernet (FE) interface, a Gigabit Ethernet (GE) interface, an Asynchronous Transfer Mode (ATM) interface, a wireless local area network ( wireless local area networks, WLAN) interfaces, cellular network communication interfaces, or a combination thereof. The Ethernet interface can be an optical interface, an electrical interface or a combination thereof. In this embodiment of the present application, the communication interface 2004 may be used for the network device 2000 to communicate with other devices.
在具体实现中,作为一种实施例,处理器2001可以包括一个或多个CPU,如图13 中所示的CPU0和CPU1。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the processor 2001 may include one or more CPUs, such as CPU0 and CPU1 as shown in FIG. 13 . Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
在具体实现中,作为一种实施例,网络设备2000可以包括多个处理器,如图13中所示的处理器2001和处理器2005。这些处理器中的每一个可以是一个单核处理器(single-CPU),也可以是一个多核处理器(multi-CPU)。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the network device 2000 may include multiple processors, such as the processor 2001 and the processor 2005 shown in FIG. 13 . Each of these processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
在具体实现中,作为一种实施例,网络设备2000还可以包括输出设备和输入设备。输出设备和处理器2001通信,可以以多种方式来显示信息。例如,输出设备可以是液晶显示器(liquid crystal display,LCD)、发光二级管(light emitting diode,LED)显示设备、阴极射线管(cathode ray tube,CRT)显示设备或投影仪(projector)等。输入设备和处理器2001通信,可以以多种方式接收用户的输入。例如,输入设备可以是鼠标、键盘、触摸屏设备或传感设备等。In a specific implementation, as an embodiment, the network device 2000 may further include an output device and an input device. The output device communicates with the processor 2001 and can display information in a variety of ways. For example, the output device may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, a projector, or the like. The input device communicates with the processor 2001 and can receive user input in various ways. For example, the input device may be a mouse, a keyboard, a touch screen device, or a sensor device, or the like.
在一些实施例中,存储器2003用于存储执行本申请方案的程序代码2010,处理器2001可以执行存储器2003中存储的程序代码2010。也即是,网络设备2000可以通过处理器2001以及存储器2003中的程序代码2010,来实现方法实施例提供的用于获取路径的方法。程序代码2010中可以包括一个或多个软件模块。可选地,处理器2001自身也可以存储执行本申请方案的程序代码或指令。In some embodiments, the memory 2003 is used to store the program code 2010 for executing the solutions of the present application, and the processor 2001 can execute the program code 2010 stored in the memory 2003 . That is, the network device 2000 can implement the method for obtaining a path provided by the method embodiment through the processor 2001 and the program code 2010 in the memory 2003 . One or more software modules may be included in the program code 2010 . Optionally, the processor 2001 itself may also store program codes or instructions for executing the solutions of the present application.
在具体实施例中,本申请实施例的网络设备2000可对应于上述各个方法实施例中的控制设备,网络设备2000中的处理器2001读取存储器2003中的程序代码2010或处理器2001自身存储的程序代码或指令,使图13所示的网络设备2000能够执行控制设备所执行的全部或部分操作。In a specific embodiment, the network device 2000 in this embodiment of the present application may correspond to the control device in each of the above method embodiments, and the processor 2001 in the network device 2000 reads the program code 2010 in the memory 2003 or stores the program code 2001 itself The program codes or instructions that enable the network device 2000 shown in FIG. 13 to perform all or part of the operations performed by the control device.
在具体实施例中,本申请实施例的网络设备2000可对应于上述各个方法实施例中的BFIR设备,网络设备2000中的处理器2001读取存储器2003中的程序代码2010或处理器2001自身存储的程序代码或指令,使图13所示的网络设备2000能够执行BFIR设备所执行的全部或部分操作。In a specific embodiment, the network device 2000 in this embodiment of the present application may correspond to the BFIR device in the above method embodiments, and the processor 2001 in the network device 2000 reads the program code 2010 in the memory 2003 or stores the program code 2001 itself. The program code or instructions that enable the network device 2000 shown in FIG. 13 to perform all or part of the operations performed by the BFIR device.
网络设备2000还可以对应于上述图9所示的装置,图9所示的装置中的每个功能模块采用网络设备2000的软件实现。换句话说,图9所示的装置包括的功能模块为网络设备2000的处理器2001读取存储器2003中存储的程序代码2010后生成的。例如,图9中所涉及的发送模块903相当于通信接口2004,第一获取模块901和第二获取模块902相当于处理器2001和/或处理器2005。又例如,图10-图11中所涉及的接收模块1001和发送模块1002相当于通信接口2004。The network device 2000 may also correspond to the apparatus shown in FIG. 9 above, and each functional module in the apparatus shown in FIG. 9 is implemented by software of the network device 2000 . In other words, the functional modules included in the apparatus shown in FIG. 9 are generated after the processor 2001 of the network device 2000 reads the program code 2010 stored in the memory 2003 . For example, the sending module 903 involved in FIG. 9 is equivalent to the communication interface 2004 , and the first acquiring module 901 and the second acquiring module 902 are equivalent to the processor 2001 and/or the processor 2005 . For another example, the receiving module 1001 and the sending module 1002 involved in FIG. 10 to FIG. 11 are equivalent to the communication interface 2004 .
其中,图2、图4和图6所示的用于获取路径的方法的各步骤通过网络设备2000的处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤,为避免重复,这里不再详细描述。Wherein, each step of the method for obtaining a path shown in FIG. 2 , FIG. 4 , and FIG. 6 is completed by an integrated logic circuit of hardware or instructions in the form of software in the processor of the network device 2000 . The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware, which will not be described in detail here to avoid repetition.
参见图14,图14示出了本申请另一个示例性实施例提供的网络设备2100的结构示意图,图14所示的网络设备2100用于执行上述图2、图4和图6所示的用于获取路径的 方法所涉及的全部或部分操作。该网络设备2100例如是控制器、交换机、路由器等,该网络设备2100可以由一般性的总线体系结构来实现。Referring to FIG. 14, FIG. 14 shows a schematic structural diagram of a network device 2100 provided by another exemplary embodiment of the present application. The network device 2100 shown in FIG. 14 is used to perform the functions shown in the above-mentioned FIGS. 2, 4 and 6. All or part of the operations involved in the method of obtaining the path. The network device 2100 is, for example, a controller, a switch, a router, etc., and the network device 2100 can be implemented by a general bus architecture.
如图14所示,网络设备2100包括:主控板2110和接口板2130。As shown in FIG. 14 , the network device 2100 includes: a main control board 2110 and an interface board 2130 .
主控板也称为主处理单元(main processing unit,MPU)或路由处理卡(route processor card),主控板2110用于对网络设备2100中各个组件的控制和管理,包括路由计算、设备管理、设备维护、协议处理功能。主控板2110包括:中央处理器2111和存储器2112。The main control board is also called the main processing unit (MPU) or the route processor card (route processor card). The main control board 2110 is used to control and manage various components in the network device 2100, including route calculation, device management , Equipment maintenance, protocol processing functions. The main control board 2110 includes: a central processing unit 2111 and a memory 2112 .
接口板2130也称为线路接口单元卡(line processing unit,LPU)、线卡(line card)或业务板。接口板2130用于提供各种业务接口并实现数据包的转发。业务接口包括而不限于以太网接口、POS(Packet over SONET/SDH)接口等,以太网接口例如是灵活以太网业务接口(Flexible Ethernet Clients,FlexE Clients)。接口板2130包括:中央处理器2131网络处理器2132、转发表项存储器2134和物理接口卡(ph10sical interface card,PIC)2133。The interface board 2130 is also referred to as a line processing unit (LPU), a line card (line card) or a service board. The interface board 2130 is used to provide various service interfaces and realize data packet forwarding. The service interface includes, but is not limited to, an Ethernet interface, a POS (Packet over SONET/SDH) interface, etc. The Ethernet interface is, for example, a flexible Ethernet service interface (Flexible Ethernet Clients, FlexE Clients). The interface board 2130 includes: a central processing unit 2131, a network processor 2132, a forwarding table entry memory 2134, and a physical interface card (ph10sical interface card, PIC) 2133.
接口板2130上的中央处理器2131用于对接口板2130进行控制管理并与主控板2110上的中央处理器2111进行通信。The central processing unit 2131 on the interface board 2130 is used to control and manage the interface board 2130 and communicate with the central processing unit 2111 on the main control board 2110 .
网络处理器2132用于实现报文的处理。网络处理器2132的形态可以是转发芯片。转发芯片可以是网络处理器(network processor,NP)。在一些实施例中,转发芯片可以通过专用集成电路(application-specific integrated circuit,ASIC)或现场可编程门阵列(field programmable gate array,FPGA)实现。具体而言,网络处理器2132用于基于转发表项存储器2134保存的转发表转发接收到的报文,如果报文的目的地址为网络设备2100的地址,则将该报文上送至CPU(如中央处理器2131)处理;如果报文的目的地址不是网络设备2100的地址,则根据该目的地址从转发表中查找到该目的地址对应的下一跳和出接口,将该报文转发到该目的地址对应的出接口。其中,上行报文的处理可以包括:报文入接口的处理,转发表查找;下行报文的处理可以包括:转发表查找等等。在一些实施例中,中央处理器也可执行转发芯片的功能,比如基于通用CPU实现软件转发,从而接口板中不需要转发芯片。The network processor 2132 is used to realize the processing of the message. The form of the network processor 2132 may be a forwarding chip. The forwarding chip may be a network processor (NP). In some embodiments, the forwarding chip may be implemented by an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA). Specifically, the network processor 2132 is configured to forward the received message based on the forwarding table stored in the forwarding table entry memory 2134. If the destination address of the message is the address of the network device 2100, the message is sent to the CPU ( Such as processing by the central processing unit 2131); if the destination address of the message is not the address of the network device 2100, the next hop and outbound interface corresponding to the destination address are found from the forwarding table according to the destination address, and the message is forwarded to The outbound interface corresponding to the destination address. Wherein, the processing of the uplink message may include: processing of the incoming interface of the message, and forwarding table lookup; the processing of the downlink message may include: forwarding table lookup, and so on. In some embodiments, the central processing unit can also perform the function of a forwarding chip, for example, software forwarding is implemented based on a general-purpose CPU, so that a forwarding chip is not required in the interface board.
物理接口卡2133用于实现物理层的对接功能,原始的流量由此进入接口板2130,以及处理后的报文从该物理接口卡2133发出。物理接口卡2133也称为子卡,可安装在接口板2130上,负责将光电信号转换为报文并对报文进行合法性检查后转发给网络处理器2132处理。在一些实施例中,中央处理器2131也可执行网络处理器2132的功能,比如基于通用CPU实现软件转发,从而物理接口卡2133中不需要网络处理器2132。The physical interface card 2133 is used to realize the interconnection function of the physical layer, the original traffic enters the interface board 2130 through this, and the processed packets are sent from the physical interface card 2133 . The physical interface card 2133 is also called a daughter card, which can be installed on the interface board 2130, and is responsible for converting the photoelectric signal into a message, and after checking the validity of the message, it is forwarded to the network processor 2132 for processing. In some embodiments, the central processing unit 2131 can also perform the functions of the network processor 2132 , such as implementing software forwarding based on a general-purpose CPU, so that the network processor 2132 is not required in the physical interface card 2133 .
可选地,网络设备2100包括多个接口板,例如网络设备2100还包括接口板2140,接口板2140包括:中央处理器2141、网络处理器2142、转发表项存储器2144和物理接口卡2143。接口板2140中各部件的功能和实现方式与接口板2130相同或相似,在此不再赘述。Optionally, the network device 2100 includes multiple interface boards. For example, the network device 2100 further includes an interface board 2140 . The interface board 2140 includes a central processing unit 2141 , a network processor 2142 , a forwarding table entry storage 2144 and a physical interface card 2143 . The functions and implementation manners of the components in the interface board 2140 are the same as or similar to those of the interface board 2130, and will not be repeated here.
可选地,网络设备2100还包括交换网板2120。交换网板2120也可以称为交换网板单元(switch fabric unit,SFU)。在网络设备有多个接口板的情况下,交换网板2120用于完成各接口板之间的数据交换。例如,接口板2130和接口板2140之间可以通过交换网板2120通信。Optionally, the network device 2100 further includes a switch fabric board 2120 . The switch fabric unit 2120 may also be referred to as a switch fabric unit (switch fabric unit, SFU). When the network device has multiple interface boards, the switching network board 2120 is used to complete data exchange between the interface boards. For example, the interface board 2130 and the interface board 2140 can communicate through the switch fabric board 2120 .
主控板2110和接口板耦合。例如。主控板2110、接口板2130和接口板2140,以及交换网板2120之间通过系统总线与系统背板相连实现互通。在一种可能的实现方式中,主控板2110和接口板2130及接口板2140之间建立进程间通信协议(inter-process  communication,IPC)通道,主控板2110和接口板2130及接口板2140之间通过IPC通道进行通信。The main control board 2110 is coupled with the interface board. E.g. The main control board 2110, the interface board 2130, the interface board 2140, and the switching network board 2120 are connected to the system backplane through a system bus to achieve intercommunication. In a possible implementation manner, an inter-process communication (IPC) channel is established between the main control board 2110 and the interface board 2130 and the interface board 2140, and the main control board 2110 and the interface board 2130 and the interface board 2140 The communication is carried out through the IPC channel.
在逻辑上,网络设备2100包括控制面和转发面,控制面包括主控板2110和中央处理器2111,转发面包括执行转发的各个组件,比如转发表项存储器2134、物理接口卡2133和网络处理器2132。控制面执行路由器、生成转发表、处理信令和协议报文、配置与维护网络设备的状态等功能,控制面将生成的转发表下发给转发面,在转发面,网络处理器2132基于控制面下发的转发表对物理接口卡2133收到的报文查表转发。控制面下发的转发表可以保存在转发表项存储器2134中。在有些实施例中,控制面和转发面可以完全分离,不在同一网络设备上。Logically, the network device 2100 includes a control plane and a forwarding plane, the control plane includes a main control board 2110 and a central processing unit 2111, and the forwarding plane includes various components that perform forwarding, such as forwarding entry storage 2134, physical interface card 2133, and network processing device 2132. The control plane performs functions such as routers, generating forwarding tables, processing signaling and protocol packets, and configuring and maintaining the status of network devices. The control plane issues the generated forwarding tables to the forwarding plane. On the forwarding plane, the network processor 2132 controls the The following forwarding table forwards the packets received by the physical interface card 2133 by looking up the table. The forwarding table issued by the control plane may be stored in the forwarding table entry storage 2134 . In some embodiments, the control plane and forwarding plane may be completely separated and not on the same network device.
值得说明的是,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,网络设备的数据处理能力越强,提供的接口板越多。接口板上的物理接口卡也可以有一块或多块。交换网板可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,网络设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,网络设备可以有至少一块交换网板,通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的网络设备的数据接入和处理能力要大于集中式架构的网络设备。可选地,网络设备的形态也可以是只有一块板卡,即没有交换网板,接口板和主控板的功能集成在该一块板卡上,此时接口板上的中央处理器和主控板上的中央处理器在该一块板卡上可以合并为一个中央处理器,执行两者叠加后的功能,这种形态网络设备的数据交换和处理能力较低(例如,低端交换机或路由器等网络设备)。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。It is worth noting that there may be one or more main control boards, and when there are multiple main control boards, they may include the main main control board and the backup main control board. There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. There can also be one or more physical interface cards on the interface board. There may be no switch fabric boards, or there may be one or more boards. When there are multiple boards, load sharing and redundancy backup can be implemented together. Under the centralized forwarding architecture, the network device does not need to switch the network board, and the interface board is responsible for the processing function of the service data of the entire system. Under the distributed forwarding architecture, a network device may have at least one switching network board, and the switching network board realizes data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices in a distributed architecture are greater than those in a centralized architecture. Optionally, the form of the network device can also be that there is only one board, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on this board. The central processing unit on the board can be combined into a central processing unit on this board to perform the functions of the two superimposed, the data exchange and processing capacity of this form of network equipment is low (for example, low-end switches or routers, etc. Network equipment). The specific architecture used depends on the specific networking deployment scenario, and there is no restriction here.
在具体实施例中,网络设备2100对应于上述图9任一所示的应用于控制设备的用于获取路径的装置。在一些实施例中,图9所示的用于获取路径的装置中的发送模块903相当于网络设备2100中的物理接口卡2133或物理接口卡2143。图9所示的用于获取路径的装置中的第一获取模块901和第二获取模块902相当于网络设备2100中的中央处理器2111、网络处理器2132和网络处理器2142中的至少一个。In a specific embodiment, the network device 2100 corresponds to any of the apparatuses for obtaining a path, which are applied to a control device, as shown in any of the above-mentioned FIG. 9 . In some embodiments, the sending module 903 in the apparatus for obtaining a path shown in FIG. 9 is equivalent to the physical interface card 2133 or the physical interface card 2143 in the network device 2100 . The first obtaining module 901 and the second obtaining module 902 in the apparatus for obtaining a path shown in FIG. 9 are equivalent to at least one of the central processor 2111 , the network processor 2132 and the network processor 2142 in the network device 2100 .
在一些实施例中,网络设备2100还对应于上述图10-图11任一所示的应用于BFIR的用于获取路径的装置。在一些实施例中,图10-图11所示的用于获取路径的装置中的接收模块1001和发送模块1002相当于网络设备2100中的物理接口卡2133或物理接口卡2143。In some embodiments, the network device 2100 also corresponds to the apparatus for obtaining a path, which is applied to BFIR and shown in any of the above-mentioned FIG. 10 to FIG. 11 . In some embodiments, the receiving module 1001 and the sending module 1002 in the apparatus for obtaining a path shown in FIGS. 10-11 are equivalent to the physical interface card 2133 or the physical interface card 2143 in the network device 2100 .
基于上述图12、图13及图14所示的网络设备,本申请实施例还提供了一种通信系统,该通信系统包括:控制设备及BFIR设备。可选的,控制设备为图12所示的网络设备1500或图13所示的网络设备2000或图14所示的网络设备2100,BFIR设备为图12所示的网络设备1500或图13所示的网络设备2000或图14所示的网络设备2100。Based on the network devices shown in FIG. 12 , FIG. 13 , and FIG. 14 , an embodiment of the present application further provides a communication system, where the communication system includes: a control device and a BFIR device. Optionally, the control device is the network device 1500 shown in FIG. 12 or the network device 2000 shown in FIG. 13 or the network device 2100 shown in FIG. 14 , and the BFIR device is the network device 1500 shown in FIG. 12 or the network device 1500 shown in FIG. 13 . The network device 2000 or the network device 2100 shown in FIG. 14 .
控制设备及BFIR设备所执行的方法可参见上述图2、图4及图6所示实施例的相关描述,此处不再加以赘述。For the methods performed by the control device and the BFIR device, reference may be made to the relevant descriptions of the embodiments shown in FIG. 2 , FIG. 4 , and FIG. 6 , which will not be repeated here.
应理解的是,上述处理器可以是中央处理器(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组 件等。通用处理器可以是微处理器或者是任何常规的处理器等。值得说明的是,处理器可以是支持进阶精简指令集机器(advanced RISC machines,ARM)架构的处理器。It should be understood that the above-mentioned processor may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processing (digital signal processing, DSP), application specific integrated circuit (application specific integrated circuit, ASIC), field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or any conventional processor or the like. It should be noted that the processor may be a processor supporting an advanced RISC machine (ARM) architecture.
进一步地,在一种可选的实施例中,上述存储器可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。Further, in an optional embodiment, the above-mentioned memory may include read-only memory and random access memory, and provide instructions and data to the processor. The memory may also include non-volatile random access memory. For example, the memory may also store device type information.
该存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用。例如,静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic random access memory,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data date SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。The memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory may be random access memory (RAM), which acts as an external cache. By way of example and not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access Memory (double data date SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM) and direct memory bus random access memory (direct rambus RAM, DR RAM).
还提供了一种计算机可读存储介质,存储介质中存储有至少一条程序指令或代码,程序指令或代码由处理器加载并执行时以使计算机实现如上图2、图4及图6中任一的用于获取路径的方法。A computer-readable storage medium is also provided, and at least one program instruction or code is stored in the storage medium, and when the program instruction or code is loaded and executed by the processor, the computer realizes any one of the above Fig. 2, Fig. 4 and Fig. 6 The method used to get the path.
本申请提供了一种计算机程序,当计算机程序被计算机执行时,可以使得处理器或计算机执行上述方法实施例中对应的各个步骤和/或流程。The present application provides a computer program. When the computer program is executed by a computer, the processor or the computer can execute the corresponding steps and/or processes in the foregoing method embodiments.
提供了一种芯片,包括处理器,用于从存储器中调用并运行存储器中存储的指令,使得安装有芯片的通信设备执行上述各方面中的方法。A chip is provided that includes a processor for invoking and executing instructions stored in the memory from a memory to cause a communication device on which the chip is mounted to perform the methods of the above aspects.
提供另一种芯片,包括:输入接口、输出接口、处理器和存储器,输入接口、输出接口、处理器以及存储器之间通过内部连接通路相连,处理器用于执行存储器中的代码,当代码被执行时,处理器用于执行上述各方面中的方法。Another chip is provided, including: an input interface, an output interface, a processor and a memory, the input interface, the output interface, the processor and the memory are connected through an internal connection path, and the processor is used to execute the code in the memory, when the code is executed When the processor is configured to execute the methods in the above aspects.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk)等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can 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 the computer program instructions are loaded and executed on a computer, the processes or functions according to the present application result 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 on or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g. coaxial cable, optical fiber, digital subscriber line) or wireless (eg infrared, wireless, microwave, etc.) means to another website site, computer, server or data center. A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media. Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk), among others.
以上的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本 申请的保护范围之内。The above specific embodiments further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above are only specific embodiments of the present application, and are not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of the present application shall be included within the protection scope of the present application.
本领域普通技术人员可以意识到,结合本文中所公开的实施例中描述的各方法步骤和模块,能够以软件、硬件、固件或者其任意组合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各实施例的步骤及组成。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域普通技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that, in combination with the method steps and modules described in the embodiments disclosed herein, they can be implemented in software, hardware, firmware or any combination thereof, in order to clearly illustrate the interoperability of hardware and software Alternatively, the steps and components of each embodiment have been generally described in terms of their functions in the foregoing description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Persons of ordinary skill in the art may use different methods of implementing the described functionality for each particular application, but such implementations should not be considered beyond the scope of this application.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,该程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium can be read-only memory, magnetic disk or optical disk, etc.
当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机程序指令。作为示例,本申请实施例的方法可以在机器可执行指令的上下文中被描述,机器可执行指令诸如包括在目标的真实或者虚拟处理器上的器件中执行的程序模块中。一般而言,程序模块包括例程、程序、库、对象、类、组件、数据结构等,其执行特定的任务或者实现特定的抽象数据结构。在各实施例中,程序模块的功能可以在所描述的程序模块之间合并或者分割。用于程序模块的机器可执行指令可以在本地或者分布式设备内执行。在分布式设备中,程序模块可以位于本地和远程存储介质二者中。When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. As an example, the methods of the embodiments of the present application may be described in the context of machine-executable instructions, such as included in program modules executed in a device on a target's real or virtual processor. Generally, program modules include routines, programs, libraries, objects, classes, components, data structures, etc. that perform particular tasks or implement particular abstract data structures. In various embodiments, the functionality of the program modules may be combined or divided among the described program modules. Machine-executable instructions for program modules may be executed within local or distributed devices. In a distributed facility, program modules may be located in both local and remote storage media.
用于实现本申请实施例的方法的计算机程序代码可以用一种或多种编程语言编写。这些计算机程序代码可以提供给通用计算机、专用计算机或其他可编程的数据处理装置的处理器,使得程序代码在被计算机或其他可编程的数据处理装置执行的时候,引起在流程图和/或框图中规定的功能或操作被实施。程序代码可以完全在计算机上、部分在计算机上、作为独立的软件包、部分在计算机上且部分在远程计算机上或完全在远程计算机或服务器上执行。Computer program code for implementing the methods of the embodiments of the present application may be written in one or more programming languages. Such computer program code may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus such that the program code, when executed by the computer or other programmable data processing apparatus, causes the flowchart and/or block diagrams The function or operation specified in is implemented. The program code may execute entirely on the computer, partly on the computer, as a stand-alone software package, partly on the computer and partly on a remote computer or entirely on the remote computer or server.
在本申请实施例的上下文中,计算机程序代码或者相关数据可以由任意适当载体承载,以使得设备、装置或者处理器能够执行上文描述的各种处理和操作。载体的示例包括信号、计算机可读介质等等。In the context of embodiments of the present application, computer program code or related data may be carried by any suitable carrier to enable a device, apparatus or processor to perform the various processes and operations described above. Examples of carriers include signals, computer-readable media, and the like.
信号的示例可以包括电、光、无线电、声音或其它形式的传播信号,诸如载波、红外信号等。Examples of signals may include electrical, optical, radio, acoustic, or other forms of propagated signals, such as carrier waves, infrared signals, and the like.
机器可读介质可以是包含或存储用于或有关于指令执行系统、装置或设备的程序的任何有形介质。机器可读介质可以是机器可读信号介质或机器可读存储介质。机器可读介质可以包括但不限于电子的、磁的、光学的、电磁的、红外的或半导体系统、装置或设备,或其任意合适的组合。机器可读存储介质的更详细示例包括带有一根或多根导线的电气连接、便携式计算机磁盘、硬盘、随机存储存取器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或闪存)、光存储设备、磁存储设备,或其任意合适的组合。A machine-readable medium may be any tangible medium that contains or stores a program for or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination thereof. More detailed examples of machine-readable storage media include electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only Memory (EPROM or flash memory), optical storage devices, magnetic storage devices, or any suitable combination thereof.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、设备和模块的具体工作过程,可以参见前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described systems, devices and modules, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,该模块的划 分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、设备或模块的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or Integration into another system, or some features can be ignored, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or modules, and may also be electrical, mechanical or other forms of connection.
该作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solutions of the embodiments of the present application.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以是两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
该集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例中方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application are essentially or part of contributions to the prior art, or all or part of the technical solutions can be embodied in the form of software products, and the computer software products are stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .
本申请中术语“第一”“第二”等字样用于对作用和功能基本相同的相同项或相似项进行区分,应理解,“第一”、“第二”、“第n”之间不具有逻辑或时序上的依赖关系,也不对数量和执行顺序进行限定。还应理解,尽管以下描述使用术语第一、第二等来描述各种元素,但这些元素不应受术语的限制。这些术语只是用于将一元素与另一元素区别分开。例如,在不脱离各种所述示例的范围的情况下,第一边缘网络设备可以被称为第二边缘网络设备,并且类似地,第二边缘网络设备可以被称为第一边缘网络设备。第一边缘网络和设备和第二边缘网络设备都可以是边缘网络设备,并且在某些情况下,可以是单独且不同的边缘网络设备。In this application, the terms "first", "second" and other words are used to distinguish the same or similar items with basically the same function and function, and it should be understood that between "first", "second" and "nth" There are no logical or timing dependencies, and no restrictions on the number and execution order. It will also be understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, a first edge network device may be referred to as a second edge network device, and similarly, a second edge network device may be referred to as a first edge network device, without departing from the scope of various described examples. Both the first edge network and device and the second edge network device may be edge network devices, and in some cases, may be separate and distinct edge network devices.
还应理解,在本申请的各个实施例中,各个过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should also be understood that, in each embodiment of the present application, the size of the sequence number of each process does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not be used in the embodiment of the present application. Implementation constitutes any limitation.
本申请中术语“至少一个”的含义是指一个或多个,本申请中术语“多个”的含义是指两个或两个以上,例如,多个第二报文是指两个或两个以上的第二报文。本文中术语“系统”和“网络”经常可互换使用。In this application, the meaning of the term "at least one" refers to one or more, and the meaning of the term "plurality" in this application refers to two or more. For example, a plurality of second messages refers to two or more more than one second message. The terms "system" and "network" are often used interchangeably herein.
应理解,在本文中对各种所述示例的描述中所使用的术语只是为了描述特定示例,而并非旨在进行限制。如在对各种所述示例的描述和所附权利要求书中所使用的那样,单数形式“一个(“a”,“an”)”和“该”旨在也包括复数形式,除非上下文另外明确地指示。It is to be understood that the terminology used in describing the various described examples herein is for the purpose of describing particular examples and is not intended to be limiting. As used in the description of the various described examples and the appended claims, the singular forms "a", "an")" and "the" are intended to include the plural forms as well, unless the context dictates otherwise. clearly instructed.
还应理解,术语“包括”(也称“includes”、“including”、“comprises”和/或“comprising”)当在本说明书中使用时指定存在所陈述的特征、整数、步骤、操作、元素、和/或部件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元素、部件、和/或其分组。It will also be understood that the term "includes" (also referred to as "includes", "including", "comprises" and/or "comprising") when used in this specification designates the presence of stated features, integers, steps, operations, elements , and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groupings thereof.
还应理解,术语“若”和“如果”可被解释为意指“当...时”(“when”或“upon”)或“响应于确定”或“响应于检测到”。类似地,根据上下文,短语“若确定...”或“若检测到[所陈述的条件或事件]”可被解释为意指“在确定...时”或“响应于确定...”或“在检测到[所陈述的条件或事件]时”或“响应于检测到[所陈述的条件或事件]”。It should also be understood that the terms "if" and "if" may be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting." Similarly, depending on the context, the phrases "if it is determined..." or "if the [stated condition or event] is detected" can be interpreted to mean "when determining..." or "in response to determining... ” or “on detection of [recited condition or event]” or “in response to detection of [recited condition or event]”.
应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。It should be understood that determining B according to A does not mean that B is only determined according to A, and B may also be determined according to A and/or other information.
还应理解,说明书通篇中提到的“一个实施例”、“一实施例”、“一种可能的实现方式”意味着与实施例或实现方式有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”、“一种可能的实现方式”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It should also be understood that references throughout the specification to "one embodiment," "an embodiment," and "one possible implementation" mean that a particular feature, structure, or characteristic associated with the embodiment or implementation is included herein. in at least one embodiment of the application. Thus, appearances of "in one embodiment" or "in an embodiment" or "one possible implementation" in various places throughout this specification are not necessarily necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.

Claims (42)

  1. 一种用于获取路径的方法,其特征在于,所述方法应用于基于比特索引显式复制BIER的网络中,包括:A method for obtaining a path, wherein the method is applied in a network that explicitly replicates BIER based on a bit index, comprising:
    控制设备获取BIER网络拓扑,所述BIER网络拓扑包括BIER转发入口路由器BFIR和至少一个BIER转发出口路由器BFER;The control device acquires a BIER network topology, the BIER network topology includes a BIER forwarding ingress router BFIR and at least one BIER forwarding egress router BFER;
    所述控制设备基于业务需求和所述BIER网络拓扑,获取对应关系,所述对应关系包括所述至少一个BFER的位转发路由器标识BFR-ID和下一跳的信息;The control device obtains a corresponding relationship based on service requirements and the BIER network topology, and the corresponding relationship includes the bit forwarding router identifier BFR-ID of the at least one BFER and the information of the next hop;
    所述控制设备向所述BFIR发送所述对应关系。The control device sends the correspondence to the BFIR.
  2. 根据权利要求1所述的方法,其特征在于,所述至少一个BFER包括第一BFER,所述控制设备获取BIER网络拓扑包括:The method according to claim 1, wherein the at least one BFER includes the first BFER, and the control device acquiring the BIER network topology includes:
    所述控制设备接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的end.BIER地址、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;The control device receives first information from the BFIR, where the first information includes the BFIR's BFR-ID and the BFIR's end.BIER address, the BFIR's node attributes, and the BFIR's neighbor information and the link information of the BFIR;
    所述控制设备接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的end.BIER地址、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;The control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, and the node of the first BFER attribute, neighbor information of the first BFER and link information of the first BFER;
    所述控制设备基于所述第一信息和所述第二信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述第一BFER的信息和所述BFIR与所述第一BFER间的链路SLA信息。The control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and Link SLA information between the BFIR and the first BFER.
  3. 根据权利要求1所述的方法,其特征在于,所述至少一个BFER包括第一BFER,所述控制设备获取BIER网络拓扑包括:The method according to claim 1, wherein the at least one BFER includes the first BFER, and the control device acquiring the BIER network topology includes:
    所述控制设备接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的多协议标签交换MPLS标签、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;The control device receives the first information from the BFIR, the first information includes the BFR-ID of the BFIR and the multi-protocol label switching MPLS label of the BFIR, the node attribute of the BFIR, the neighbor information and link information of the BFIR;
    所述控制设备接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的MPLS标签、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;The control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, neighbor information of the first BFER and link information of the first BFER;
    所述控制设备基于所述第一信息和所述第二信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述第一BFER的信息和所述BFIR与所述第一BFER间的链路SLA信息。The control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and Link SLA information between the BFIR and the first BFER.
  4. 根据权利要求1所述的方法,其特征在于,所述至少一个BFER包括第一BFER,所述控制设备获取BIER网络拓扑包括:The method according to claim 1, wherein the at least one BFER includes the first BFER, and the control device acquiring the BIER network topology includes:
    所述控制设备接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的比特索引转发表BIFT标识、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;The control device receives the first information from the BFIR, the first information includes the BFR-ID of the BFIR and the bit index forwarding table BIFT identifier of the BFIR, the node attribute of the BFIR, the neighbor information and link information of the BFIR;
    所述控制设备接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的BIFT标识、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;The control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the node attribute of the first BFER, neighbor information of the first BFER and link information of the first BFER;
    所述控制设备基于所述第一信息和所述第二信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述第一BFER的信息和所述BFIR与所述第一BFER间的链路SLA信息。The control device obtains the BIER network topology based on the first information and the second information, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and Link SLA information between the BFIR and the first BFER.
  5. 根据权利要求1所述的方法,其特征在于,所述至少一个BFER包括第一BFER,所述控制设备获取BIER网络拓扑包括:The method according to claim 1, wherein the at least one BFER includes the first BFER, and the control device acquiring the BIER network topology includes:
    所述控制设备接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的end.BIER地址、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;The control device receives first information from the BFIR, where the first information includes the BFIR's BFR-ID and the BFIR's end.BIER address, the BFIR's node attributes, and the BFIR's neighbor information and the link information of the BFIR;
    所述控制设备接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的end.BIER地址、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;The control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, and the node of the first BFER attribute, neighbor information of the first BFER and link information of the first BFER;
    所述控制设备接收来自中间BFR的第三信息,所述第三信息包括所述中间BFR的end.BIER地址、所述中间BFR的节点属性、所述中间BFR的邻居信息和所述中间BFR的链路信息;The control device receives third information from the intermediate BFR, the third information includes the end.BIER address of the intermediate BFR, the node attribute of the intermediate BFR, the neighbor information of the intermediate BFR, and the information of the intermediate BFR. link information;
    所述控制设备基于所述第一信息、所述第二信息和所述第三信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述中间BFR的信息、所述第一BFER的信息、所述BFIR与所述中间BFR间的链路SLA信息和所述中间BFR与所述第一BFER间的链路SLA信息。The control device obtains the BIER network topology based on the first information, the second information and the third information, where the BIER network topology includes the information of the BFIR, the Information of the intermediate BFR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and link SLA information between the intermediate BFR and the first BFER.
  6. 根据权利要求1所述的方法,其特征在于,所述至少一个BFER包括第一BFER,所述控制设备获取BIER网络拓扑包括:The method according to claim 1, wherein the at least one BFER includes the first BFER, and the control device acquiring the BIER network topology includes:
    所述控制设备接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的MPLS标签、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;The control device receives the first information from the BFIR, the first information includes the BFR-ID of the BFIR and the MPLS label of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and all link information of the BFIR;
    所述控制设备接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的MPLS标签、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;The control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, neighbor information of the first BFER and link information of the first BFER;
    所述控制设备接收来自中间BFR的第三信息,所述第三信息包括所述中间BFR的MPLS标签、所述中间BFR的节点属性、所述中间BFR的邻居信息和所述中间BFR的链路信息;The control device receives third information from the intermediate BFR, the third information includes the MPLS label of the intermediate BFR, the node attribute of the intermediate BFR, the neighbor information of the intermediate BFR, and the link of the intermediate BFR information;
    所述控制设备基于所述第一信息、所述第二信息和所述第三信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述中间BFR的信息、所述第一BFER的信息、所述BFIR与所述中间BFR间的链路SLA信息和所述中间BFR与所述第一BFER间的链路SLA信息。The control device obtains the BIER network topology based on the first information, the second information and the third information, where the BIER network topology includes the information of the BFIR, the Information of the intermediate BFR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and link SLA information between the intermediate BFR and the first BFER.
  7. 根据权利要求1所述的方法,其特征在于,所述至少一个BFER包括第一BFER,所述控制设备获取BIER网络拓扑包括:The method according to claim 1, wherein the at least one BFER includes the first BFER, and the control device acquiring the BIER network topology includes:
    所述控制设备接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的BIFT标识、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;The control device receives the first information from the BFIR, the first information includes the BFR-ID of the BFIR and the BIFT identifier of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and all link information of the BFIR;
    所述控制设备接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的BIFT标识、所述第一BFER的节点属性、所述第一 BFER的邻居信息和所述第一BFER的链路信息;The control device receives second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the node attribute of the first BFER, neighbor information of the first BFER and link information of the first BFER;
    所述控制设备接收来自中间BFR的第三信息,所述第三信息包括所述中间BFR的BIFT标识、所述中间BFR的节点属性、所述中间BFR的邻居信息和所述中间BFR的链路信息;The control device receives third information from an intermediate BFR, the third information includes a BIFT identity of the intermediate BFR, node attributes of the intermediate BFR, neighbor information of the intermediate BFR, and links of the intermediate BFR information;
    所述控制设备基于所述第一信息、所述第二信息和所述第三信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述中间BFR的信息、所述第一BFER的信息、所述BFIR与所述中间BFR间的链路SLA信息和所述中间BFR与所述第一BFER间的链路SLA信息。The control device obtains the BIER network topology based on the first information, the second information and the third information, where the BIER network topology includes the information of the BFIR, the Information of the intermediate BFR, information of the first BFER, link SLA information between the BFIR and the intermediate BFR, and link SLA information between the intermediate BFR and the first BFER.
  8. 根据权利要求2至7任一所述的方法,其特征在于,所述控制设备接收来自所述BFIR的第一信息包括:The method according to any one of claims 2 to 7, wherein the receiving, by the control device, the first information from the BFIR comprises:
    所述控制设备接收与所述BFIR通信的路由反射器RR发送的所述第一信息;或者The control device receives the first information sent by the route reflector RR in communication with the BFIR; or
    所述控制设备接收所述BFIR发送的所述第一信息。The control device receives the first information sent by the BFIR.
  9. 根据权利要求2至7任一所述的方法,其特征在于,所述控制设备接收来自所述第一BFER的第二信息包括:The method according to any one of claims 2 to 7, wherein the receiving, by the control device, the second information from the first BFER comprises:
    所述控制设备接收与所述第一BFER通信的RR发送的所述第二信息;或者The control device receives the second information sent by the RR in communication with the first BFER; or
    所述控制设备接收与所述第一BFER通信的中间BFR发送的所述第二信息;或者The control device receives the second information sent by the intermediate BFR in communication with the first BFER; or
    所述控制设备接收所述第一BFER发送的所述第二信息。The control device receives the second information sent by the first BFER.
  10. 根据权利要求2至9任一所述的方法,其特征在于,所述第二信息还包括所述第一BFER对应的组播源组信息。The method according to any one of claims 2 to 9, wherein the second information further includes multicast source group information corresponding to the first BFER.
  11. 根据权利要求1至10任一所述的方法,其特征在于,所述控制设备基于业务需求和所述BIER网络拓扑,获取对应关系包括:The method according to any one of claims 1 to 10, wherein the control device, based on service requirements and the BIER network topology, obtains the corresponding relationship comprising:
    所述控制设备基于业务需求获取目标BFR的信息;The control device obtains the information of the target BFR based on business requirements;
    所述控制设备基于所述目标BFR的信息和所述BIER网络拓扑,获取所述对应关系,所述对应关系中的所述下一跳的信息为所述目标BFR的信息。The control device acquires the corresponding relationship based on the information of the target BFR and the BIER network topology, and the information of the next hop in the corresponding relationship is the information of the target BFR.
  12. 根据权利要求1至11任一所述的方法,其特征在于,所述业务需求包括带宽、时延、丢包和指定节点中的一个或多个。The method according to any one of claims 1 to 11, wherein the service requirements include one or more of bandwidth, delay, packet loss, and designated nodes.
  13. 根据权利要求2或5所述的方法,其特征在于,所述下一跳的信息包括作为所述BFIR邻居的节点的end.BIER地址和与作为所述BFIR邻居的节点通信的出接口信息。The method according to claim 2 or 5, wherein the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and outgoing interface information for communicating with the node serving as the BFIR neighbor.
  14. 根据权利要求2至9任一所述的方法,其特征在于,所述第二信息还包括子域标识SD、BSL和集合标识SI中的一个或多个。The method according to any one of claims 2 to 9, wherein the second information further includes one or more of subdomain identifiers SD, BSL and set identifiers SI.
  15. 根据权利要求1至14任一所述的方法,其特征在于,所述第一BFER的BFR-ID是所述第一BFER动态获取的标识,所述动态获取是从一个BFR-ID的集合中获取的未被使用的标识。The method according to any one of claims 1 to 14, wherein the BFR-ID of the first BFER is an identifier dynamically acquired by the first BFER, and the dynamic acquisition is from a set of BFR-IDs Obtained unused id.
  16. 一种用于获取路径的方法,其特征在于,所述方法应用于基于比特索引显式复制BIER的网络中,包括:A method for obtaining a path, wherein the method is applied in a network that explicitly replicates BIER based on a bit index, comprising:
    BIER转发入口路由器BFIR接收控制设备发送的对应关系,所述对应关系包括所述至少一个BFER的位转发路由器标识BFR-ID和下一跳的信息。The BIER forwarding ingress router BFIR receives the correspondence sent by the control device, where the correspondence includes the bit forwarding router identifier BFR-ID of the at least one BFER and the information of the next hop.
  17. 根据权利要求16所述的方法,其特征在于,所述BFIR接收控制设备发送的对应关系之前,还包括:The method according to claim 16, wherein before the BFIR receives the correspondence sent by the control device, the method further comprises:
    所述BFIR向所述控制设备发送第一信息,所述第一信息包括所述BFIR的BFR-ID和 所述BFIR的end.BIER地址、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息。The BFIR sends first information to the control device, and the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR, and Link information of the BFIR.
  18. 根据权利要求16所述的方法,其特征在于,所述BFIR接收控制设备发送的对应关系之前,还包括:The method according to claim 16, wherein before the BFIR receives the correspondence sent by the control device, the method further comprises:
    所述BFIR向所述控制设备发送第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的多协议标签交换MPLS标签、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息。The BFIR sends first information to the control device, the first information includes the BFR-ID of the BFIR and the multi-protocol label switching MPLS label of the BFIR, the node attribute of the BFIR, the neighbors of the BFIR information and link information of the BFIR.
  19. 根据权利要求16所述的方法,其特征在于,所述BFIR接收控制设备发送的对应关系之前,还包括:The method according to claim 16, wherein before the BFIR receives the correspondence sent by the control device, the method further comprises:
    所述BFIR向所述控制设备发送第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的比特索引转发表BIFT标识、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息。The BFIR sends first information to the control device, the first information includes the BFR-ID of the BFIR and the bit index forwarding table BIFT identifier of the BFIR, the node attribute of the BFIR, the neighbors of the BFIR information and link information of the BFIR.
  20. 根据权利要求17至19任一所述的方法,其特征在于,所述BFIR向所述控制设备发送第一信息包括:The method according to any one of claims 17 to 19, wherein the sending, by the BFIR, the first information to the control device comprises:
    所述BFIR向路由反射器RR发送所述第一信息;或者The BFIR sends the first information to the route reflector RR; or
    所述BFIR直接向所述控制设备发送所述第一信息。The BFIR directly sends the first information to the control device.
  21. 根据权利要求16至20任一所述的方法,其特征在于,所述下一跳的信息包括作为所述BFIR邻居的节点的end.BIER地址和与作为所述BFIR邻居的节点通信的出接口信息。The method according to any one of claims 16 to 20, wherein the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and the outgoing interface for communicating with the node serving as the BFIR neighbor information.
  22. 一种用于获取路径的装置,其特征在于,所述装置设于控制设备,包括:A device for obtaining a path, characterized in that the device is provided in a control device, comprising:
    第一获取模块,用于获取基于比特索引显式复制BIER网络拓扑,所述BIER网络拓扑包括BIER转发入口路由器BFIR和至少一个BIER转发出口路由器BFER;The first acquisition module is used to acquire an explicit replication BIER network topology based on a bit index, and the BIER network topology includes a BIER forwarding ingress router BFIR and at least one BIER forwarding egress router BFER;
    第二获取模块,用于基于业务需求和所述BIER网络拓扑,获取对应关系,所述对应关系包括所述至少一个BFER的位转发路由器标识BFR-ID和下一跳的信息;The second acquisition module is used to acquire a corresponding relationship based on service requirements and the BIER network topology, and the corresponding relationship includes the bit forwarding router identifier BFR-ID of the at least one BFER and the information of the next hop;
    发送模块,用于向所述BFIR发送所述对应关系。A sending module, configured to send the corresponding relationship to the BFIR.
  23. 根据权利要求22所述的装置,其特征在于,所述至少一个BFER包括第一BFER,所述第一获取模块,用于接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的end.BIER地址、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;The apparatus according to claim 22, wherein the at least one BFER includes a first BFER, and the first obtaining module is configured to receive first information from the BFIR, the first information including the The BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
    接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的end.BIER地址、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;Receive second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, the node attribute of the first BFER, the neighbor information of the first BFER and link information of the first BFER;
    基于所述第一信息和所述第二信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述第一BFER的信息和所述BFIR与所述第一BFER间的链路SLA信息。Based on the first information and the second information, the BIER network topology is obtained, where the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and the BFIR and the Link SLA information between the first BFERs.
  24. 根据权利要求22所述的装置,其特征在于,所述至少一个BFER包括第一BFER,所述第一获取模块,用于接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的多协议标签交换MPLS标签、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;The apparatus according to claim 22, wherein the at least one BFER includes a first BFER, and the first obtaining module is configured to receive first information from the BFIR, the first information including the The BFR-ID of the BFIR and the multi-protocol label switching MPLS label of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR, and the link information of the BFIR;
    接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、 所述第一BFER的MPLS标签、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;Receive second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, the first BFER neighbor information of the BFER and link information of the first BFER;
    基于所述第一信息和所述第二信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述第一BFER的信息和所述BFIR与所述第一BFER间的链路SLA信息。Based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and the BFIR and the Link SLA information between the first BFERs.
  25. 根据权利要求22所述的装置,其特征在于,所述至少一个BFER包括第一BFER,所述第一获取模块,用于接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的比特索引转发表BIFT标识、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;The apparatus according to claim 22, wherein the at least one BFER includes a first BFER, and the first obtaining module is configured to receive first information from the BFIR, the first information including the The BFR-ID of the BFIR and the bit index of the BFIR forwarding table BIFT identifier, the node attribute of the BFIR, the neighbor information of the BFIR, and the link information of the BFIR;
    接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的BIFT标识、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;Receive second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the node attribute of the first BFER, the first BFER neighbor information of the BFER and link information of the first BFER;
    基于所述第一信息和所述第二信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述第一BFER的信息和所述BFIR与所述第一BFER间的链路SLA信息。Based on the first information and the second information, the BIER network topology is obtained, and the BIER network topology includes the information of the BFIR, the information of the first BFER that is the neighbor of the BFIR, and the BFIR and the Link SLA information between the first BFERs.
  26. 根据权利要求22所述的装置,其特征在于,所述至少一个BFER包括第一BFER,所述第一获取模块,用于接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的end.BIER地址、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;The apparatus according to claim 22, wherein the at least one BFER includes a first BFER, and the first obtaining module is configured to receive first information from the BFIR, the first information including the The BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
    接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的end.BIER地址、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;接收来自中间BFR的第三信息,所述第三信息包括所述中间BFR的end.BIER地址、所述中间BFR的节点属性、所述中间BFR的邻居信息和所述中间BFR的链路信息;Receive second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the end.BIER address of the first BFER, the node attribute of the first BFER, the neighbor information of the first BFER and link information of the first BFER; receiving third information from the intermediate BFR, the third information including the end.BIER address of the intermediate BFR, the node attribute of the intermediate BFR, neighbor information of the intermediate BFR and link information of the intermediate BFR;
    基于所述第一信息、所述第二信息和所述第三信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述中间BFR的信息、所述第一BFER的信息、所述BFIR与所述中间BFR间的链路SLA信息和所述中间BFR与所述第一BFER间的链路SLA信息。Based on the first information, the second information and the third information, the BIER network topology is obtained, where the BIER network topology includes the information of the BFIR and the information of the intermediate BFR that is the neighbor of the BFIR , the information of the first BFER, the link SLA information between the BFIR and the intermediate BFR, and the link SLA information between the intermediate BFR and the first BFER.
  27. 根据权利要求22所述的装置,其特征在于,所述至少一个BFER包括第一BFER,所述第一获取模块,用于接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的MPLS标签、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;The apparatus according to claim 22, wherein the at least one BFER includes a first BFER, and the first obtaining module is configured to receive first information from the BFIR, the first information including the The BFR-ID of the BFIR and the MPLS label of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR and the link information of the BFIR;
    接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的MPLS标签、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;接收来自中间BFR的第三信息,所述第三信息包括所述中间BFR的MPLS标签、所述中间BFR的节点属性、所述中间BFR的邻居信息和所述中间BFR的链路信息;Receive second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the MPLS label of the first BFER, the node attribute of the first BFER, the first BFER Neighbor information of the BFER and link information of the first BFER; receive third information from the intermediate BFR, where the third information includes the MPLS label of the intermediate BFR, the node attribute of the intermediate BFR, the intermediate BFR neighbor information and link information of the intermediate BFR;
    基于所述第一信息、所述第二信息和所述第三信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述中间BFR的信息、所述第一BFER的信息、所述BFIR与所述中间BFR间的链路SLA信息和所述中间BFR与 所述第一BFER间的链路SLA信息。Based on the first information, the second information and the third information, the BIER network topology is obtained, where the BIER network topology includes the information of the BFIR and the information of the intermediate BFR that is the neighbor of the BFIR , the information of the first BFER, the link SLA information between the BFIR and the intermediate BFR, and the link SLA information between the intermediate BFR and the first BFER.
  28. 根据权利要求22所述的装置,其特征在于,所述至少一个BFER包括第一BFER,所述第一获取模块,用于接收来自所述BFIR的第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的BIFT标识、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息;The apparatus according to claim 22, wherein the at least one BFER includes a first BFER, and the first obtaining module is configured to receive first information from the BFIR, the first information including the The BFR-ID of the BFIR and the BIFT identifier of the BFIR, the node attribute of the BFIR, the neighbor information of the BFIR, and the link information of the BFIR;
    接收来自所述第一BFER的第二信息,所述第二信息包括所述第一BFER的BFR-ID、所述第一BFER的BIFT标识、所述第一BFER的节点属性、所述第一BFER的邻居信息和所述第一BFER的链路信息;Receive second information from the first BFER, where the second information includes the BFR-ID of the first BFER, the BIFT identifier of the first BFER, the node attribute of the first BFER, the first BFER neighbor information of the BFER and link information of the first BFER;
    接收来自中间BFR的第三信息,所述第三信息包括所述中间BFR的BIFT标识、所述中间BFR的节点属性、所述中间BFR的邻居信息和所述中间BFR的链路信息;receiving third information from an intermediate BFR, where the third information includes a BIFT identity of the intermediate BFR, a node attribute of the intermediate BFR, neighbor information of the intermediate BFR, and link information of the intermediate BFR;
    基于所述第一信息、所述第二信息和所述第三信息,获得所述BIER网络拓扑,所述BIER网络拓扑包括所述BFIR的信息、作为所述BFIR邻居的所述中间BFR的信息、所述第一BFER的信息、所述BFIR与所述中间BFR间的链路SLA信息和所述中间BFR与所述第一BFER间的链路SLA信息。Based on the first information, the second information and the third information, the BIER network topology is obtained, where the BIER network topology includes the information of the BFIR and the information of the intermediate BFR that is the neighbor of the BFIR , the information of the first BFER, the link SLA information between the BFIR and the intermediate BFR, and the link SLA information between the intermediate BFR and the first BFER.
  29. 根据权利要求23至28任一所述的装置,其特征在于,所述第一获取模块,用于接收与所述BFIR通信的路由反射器RR发送的所述第一信息;或者接收所述BFIR发送的所述第一信息。The apparatus according to any one of claims 23 to 28, wherein the first obtaining module is configured to receive the first information sent by a route reflector RR that communicates with the BFIR; or receive the BFIR the first information sent.
  30. 根据权利要求23至29任一所述的装置,其特征在于,所述第一获取模块,用于接收与所述第一BFER通信的RR发送的所述第二信息;或者接收与所述第一BFER通信的中间BFR发送的所述第二信息;或者接收所述第一BFER发送的所述第二信息。The apparatus according to any one of claims 23 to 29, wherein the first obtaining module is configured to receive the second information sent by the RR communicating with the first BFER; The second information sent by an intermediate BFR of a BFER communication; or the second information sent by the first BFER is received.
  31. 根据权利要求23至30任一所述的装置,其特征在于,所述第二信息还包括所述第一BFER对应的组播源组信息。The apparatus according to any one of claims 23 to 30, wherein the second information further includes multicast source group information corresponding to the first BFER.
  32. 根据权利要求22至31任一所述的装置,其特征在于,所述第二获取模块,用于基于业务需求获取目标BFR的信息;基于所述目标BFR的信息和所述BIER网络拓扑,获取所述对应关系,所述对应关系中的所述下一跳的信息为所述目标BFR的信息。The apparatus according to any one of claims 22 to 31, wherein the second obtaining module is configured to obtain information of a target BFR based on business requirements; and obtain information based on the information of the target BFR and the BIER network topology In the corresponding relationship, the information of the next hop in the corresponding relationship is the information of the target BFR.
  33. 根据权利要求22至32任一所述的装置,其特征在于,所述业务需求包括带宽、时延、丢包和指定节点中的一个或多个。The apparatus according to any one of claims 22 to 32, wherein the service requirements include one or more of bandwidth, delay, packet loss, and designated nodes.
  34. 根据权利要求23或26所述的装置,其特征在于,所述下一跳的信息包括作为所述BFIR邻居的节点的end.BIER地址和与作为所述BFIR邻居的节点通信的出接口信息。The apparatus according to claim 23 or 26, wherein the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and outgoing interface information for communicating with the node serving as the BFIR neighbor.
  35. 根据权利要求23至30任一所述的装置,其特征在于,所述第二信息还包括子域标识SD、BSL和集合标识SI中的一个或多个。The apparatus according to any one of claims 23 to 30, wherein the second information further includes one or more of subdomain identifiers SD, BSL and set identifiers SI.
  36. 根据权利要求22至35任一所述的装置,其特征在于,所述第一BFER的BFR-ID是所述第一BFER动态获取的标识,所述动态获取是从一个BFR-ID的集合中获取的未被使用的标识。The apparatus according to any one of claims 22 to 35, wherein the BFR-ID of the first BFER is an identifier dynamically acquired by the first BFER, and the dynamic acquisition is from a set of BFR-IDs Obtained unused id.
  37. 一种用于获取路径的装置,其特征在于,所述装置设于BIER转发入口路由器BFIR,包括:A device for obtaining a path, characterized in that the device is located in a BIER forwarding ingress router BFIR, comprising:
    接收模块,用于接收控制设备发送的对应关系,所述对应关系包括所述至少一个BFER的位转发路由器标识BFR-ID和下一跳的信息。The receiving module is configured to receive the correspondence sent by the control device, where the correspondence includes the bit forwarding router identification BFR-ID of the at least one BFER and the information of the next hop.
  38. 根据权利要求37所述的装置,其特征在于,所述装置还包括:The apparatus of claim 37, wherein the apparatus further comprises:
    发送模块,用于向所述控制设备发送第一信息,所述第一信息包括所述BFIR的 BFR-ID和所述BFIR的end.BIER地址、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息。A sending module, configured to send first information to the control device, where the first information includes the BFR-ID of the BFIR and the end.BIER address of the BFIR, the node attribute of the BFIR, and the neighbors of the BFIR information and link information of the BFIR.
  39. 根据权利要求37所述的装置,其特征在于,所述装置还包括:The apparatus of claim 37, wherein the apparatus further comprises:
    发送模块,用于向所述控制设备发送第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的多协议标签交换MPLS标签、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息。A sending module, configured to send first information to the control device, the first information includes the BFR-ID of the BFIR and the multi-protocol label switching MPLS label of the BFIR, the node attribute of the BFIR, the BFIR neighbor information and link information of the BFIR.
  40. 根据权利要求37所述的装置,其特征在于,所述装置还包括:The apparatus of claim 37, wherein the apparatus further comprises:
    发送模块,用于向所述控制设备发送第一信息,所述第一信息包括所述BFIR的BFR-ID和所述BFIR的比特索引转发表BIFT标识、所述BFIR的节点属性、所述BFIR的邻居信息和所述BFIR的链路信息。A sending module, configured to send first information to the control device, where the first information includes the BFR-ID of the BFIR and the bit index forwarding table BIFT identifier of the BFIR, the node attribute of the BFIR, the BFIR neighbor information and link information of the BFIR.
  41. 根据权利要求38至40任一所述的装置,其特征在于,所述发送模块,用于向路由反射器RR发送所述第一信息;或者直接向所述控制设备发送所述第一信息。The apparatus according to any one of claims 38 to 40, wherein the sending module is configured to send the first information to a route reflector RR; or directly send the first information to the control device.
  42. 根据权利要求37至41任一所述的装置,其特征在于,所述下一跳的信息包括作为所述BFIR邻居的节点的end.BIER地址和与作为所述BFIR邻居的节点通信的出接口信息。The apparatus according to any one of claims 37 to 41, wherein the information of the next hop includes the end.BIER address of the node serving as the BFIR neighbor and the outgoing interface for communicating with the node serving as the BFIR neighbor information.
PCT/CN2022/081132 2021-03-18 2022-03-16 Method and apparatus for acquiring path WO2022194193A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110290636 2021-03-18
CN202110290636.4 2021-03-18
CN202110872818.2A CN115118651A (en) 2021-03-18 2021-07-30 Method and device for acquiring path
CN202110872818.2 2021-07-30

Publications (1)

Publication Number Publication Date
WO2022194193A1 true WO2022194193A1 (en) 2022-09-22

Family

ID=83321733

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/081132 WO2022194193A1 (en) 2021-03-18 2022-03-16 Method and apparatus for acquiring path

Country Status (1)

Country Link
WO (1) WO2022194193A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660460A (en) * 2017-10-10 2019-04-19 中兴通讯股份有限公司 Processing method, server and the storage medium of BIER-TE information
CN112187648A (en) * 2020-08-24 2021-01-05 中盈优创资讯科技有限公司 Multicast message forwarding method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660460A (en) * 2017-10-10 2019-04-19 中兴通讯股份有限公司 Processing method, server and the storage medium of BIER-TE information
CN112187648A (en) * 2020-08-24 2021-01-05 中盈优创资讯科技有限公司 Multicast message forwarding method and device

Similar Documents

Publication Publication Date Title
CN108574639B (en) EVPN message processing method, device and system
US10193812B2 (en) Multicast load balancing in multihoming EVPN networks
US9787593B2 (en) Performing path-oriented systems management
CN112929274A (en) Method, equipment and system for processing route
US9515927B2 (en) System and method for layer 3 proxy routing
WO2022001835A1 (en) Method and apparatus for sending message, and network device, system and storage medium
WO2021143279A1 (en) Method and device for segment routing service processing, routing equipment, and storage medium
WO2021088561A1 (en) Method, device, and equipment for load sharing in bit index explicit replication network
EP3396897B1 (en) Multicast load balancing in multihoming evpn networks
WO2023274083A1 (en) Route publishing method and apparatus, packet forwarding method and apparatus, device, and storage medium
WO2022117018A1 (en) Packet transmission method and apparatus
WO2022111372A1 (en) Message transmission method and apparatus, device, and computer-readable storage medium
WO2022048418A1 (en) Method, device and system for forwarding message
WO2014183657A1 (en) Method and device for determining next hop and distributing routing information
CN115865769A (en) Message processing method, network equipment and system
WO2023179457A1 (en) Method, apparatus and system for identifying service connection, and storage medium
US20230353479A1 (en) Edge Computing Data and Service Discovery Using an Interior Gateway Protocol (IGP)
WO2022194193A1 (en) Method and apparatus for acquiring path
WO2022042403A1 (en) Method for generating routing information, method for sending location information, method for forwarding message, and device
WO2022166465A1 (en) Message processing method and related apparatus
WO2022057490A1 (en) Service processing method and network device
WO2021219049A1 (en) Information submitting method, information processing method, apparatus, and device
CN116094987A (en) Method and device for determining forwarding path
CN116828024A (en) Service connection identification method, device, system and storage medium
CN114513485A (en) Method, device, equipment and system for obtaining mapping rule and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22770546

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22770546

Country of ref document: EP

Kind code of ref document: A1