WO2020098611A1 - Method and apparatus for acquiring routing information - Google Patents

Method and apparatus for acquiring routing information Download PDF

Info

Publication number
WO2020098611A1
WO2020098611A1 PCT/CN2019/117251 CN2019117251W WO2020098611A1 WO 2020098611 A1 WO2020098611 A1 WO 2020098611A1 CN 2019117251 W CN2019117251 W CN 2019117251W WO 2020098611 A1 WO2020098611 A1 WO 2020098611A1
Authority
WO
WIPO (PCT)
Prior art keywords
import
extended community
vpn
multicast
routing information
Prior art date
Application number
PCT/CN2019/117251
Other languages
French (fr)
Chinese (zh)
Inventor
张佳希
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2020098611A1 publication Critical patent/WO2020098611A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Definitions

  • This application relates to the field of communications, and in particular to a method and device for obtaining routing information.
  • next-generation multicast virtual private network next-generation multicast virtual private network
  • NG MVPN next-generation multicast virtual private network
  • BGP Border Gateway Protocol
  • VPN technology is widely used in metropolitan area networks.
  • the typical structure of metropolitan area networks is a three-layer model: core layer, convergence layer and access layer.
  • BGP / MPLS VPN In order to deploy VPN functions in a hierarchical structure network, BGP / MPLS VPN must be changed from a flat model to a hierarchical model, so a hierarchical VPN (hierarchy VPN, HVPN) structure is generated.
  • the core layer includes the network side edge router (network provider edge, NPE).
  • the convergence layer includes an operator-side edge router (service provider-end edge, SPE).
  • SPE service provider-end edge
  • UPE user-side edge router
  • UPE only maintains user-side routes and does not need to maintain network-side routes. Since the SPE only sends the default route to the UPE, the UPE cannot receive the VPN's Internet Protocol (IP) route and the multicast information (such as extended community attributes) corresponding to the VPN's IP route.
  • IP Internet Protocol
  • the multicast information such as extended community attributes
  • the embodiments of the present application provide a method and device for obtaining routing information, which solves the problem of how to run NGMVPN in a HoVPN scenario.
  • an embodiment of the present application provides a method for obtaining routing information.
  • the method can be applied to SPE, or the method can be applied to a communication device that can support SPE to implement the method.
  • the communication device includes a chip system.
  • the SPE stores the first input route target (import-RT) extended community attribute to the import-RT set according to the first route target (RT), where the first message Including the first RT and the first import-RT extended community attributes; the import-RT set includes the first RT and the M import-RT extended community attributes corresponding to the first RT, and the M import-RT extended community attributes include the first import -RT extended community attribute, M is an integer greater than or equal to 1; then, SPE sends a second packet to UPE, the second packet includes the first RT, the M import-RT extended community attributes and the first The default route corresponding to an RT.
  • the method further includes: the SPE receives the third message and forwards the third message, and the third message includes the second import-RT extended community attribute and multicast information.
  • the first import-RT extended community attribute includes a global management ID and a local management ID.
  • an embodiment of the present application provides a method for obtaining routing information.
  • the method can be applied to UPE, or the method can be applied to a communication device that can support UPE to implement the method.
  • the communication device includes a chip system.
  • UPE after receiving the first message, UPE generates the correspondence between the default route and the M import-RT extended community attributes based on the M import-RT extended community attributes corresponding to the first RT and the default route corresponding to the first RT , Where the first packet includes the first RT, the M import-RT extended community attributes corresponding to the first RT, and the default route corresponding to the first RT.
  • the method further includes: the UPE determines the first import-RT extended community attribute from the M import-RT extended community attributes according to a preset rule; and sends a second packet to the SPE ,
  • the second packet includes the first import-RT extended community attribute and multicast information.
  • the first import-RT extended community attribute includes a global management ID and a local management ID.
  • UPE determines the first import-RT extended community attribute from M import-RT extended community attributes according to a preset rule, including: UPE according to the global management identifier The size determines the first import-RT extended community attribute from the M import-RT extended community attributes.
  • an embodiment of the present application further provides an apparatus for obtaining routing information, for implementing the method described in the first aspect above.
  • the device for obtaining routing information is an SPE or a communication device that supports SPE to implement the method described in the first aspect.
  • the communication device includes a chip system.
  • the device for obtaining routing information includes: a receiving unit, a processing unit, and a sending unit.
  • the receiving unit is configured to receive a first message, and the first message includes a first RT and a first import-RT extended community attribute.
  • the processing unit is configured to store the first import-RT extended community attribute in the import-RT set according to the first RT received by the receiving unit, and the import-RT set includes the first RT and M imports corresponding to the first RT -RT extended community attribute, M import-RT extended community attributes include the first import-RT extended community attribute, and M is an integer greater than or equal to 1.
  • the sending unit is configured to send a second message.
  • the second message includes a first RT, M import-RT extended community attributes corresponding to the first RT, and a default route corresponding to the first RT.
  • the specific processing method is the same as the corresponding description in the first aspect, which will not be repeated here.
  • an embodiment of the present application further provides an apparatus for obtaining routing information, which is used to implement the method described in the second aspect above.
  • the device for obtaining routing information is UPE or a communication device that supports UPE to implement the method described in the second aspect, for example, the communication device includes a chip system.
  • the device for obtaining routing information includes: a receiving unit and a processing unit.
  • the receiving unit is configured to receive a first message.
  • the first message includes a first RT, M import-RT extended community attributes corresponding to the first RT, and a default route corresponding to the first RT.
  • the processing unit is configured to generate a correspondence between the default route and the M import-RT extended community attributes based on the M import-RT extended community attributes corresponding to the first RT and the default route corresponding to the first RT.
  • the device for obtaining routing information may further include a sending unit, configured to send a second message, where the second message includes the first import-RT extended community attribute and multicast information.
  • the functional modules of the third aspect and the fourth aspect described above can be implemented by hardware, and can also be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • a transceiver is used to complete the functions of the receiving unit and the sending unit
  • a processor is used to complete the functions of the processing unit
  • a memory is used by the processor to process program instructions of the method of the embodiments of the present application.
  • the processor, transceiver and memory are connected through the bus and complete the communication with each other.
  • an embodiment of the present application further provides an apparatus for obtaining routing information, for implementing the method described in the first aspect above.
  • the device for obtaining routing information is an SPE or a communication device that supports SPE to implement the method described in the first aspect.
  • the communication device includes a chip system.
  • the device for obtaining routing information includes a processor for implementing the functions of the method described in the first aspect.
  • the device for obtaining routing information may further include a memory for storing program instructions and data.
  • the memory is coupled to the processor, and the processor may call and execute program instructions stored in the memory to implement the functions in the method described in the first aspect above.
  • the device for obtaining routing information may further include a communication interface, and the communication interface is used for the device for obtaining routing information to communicate with other devices. Exemplarily, if the device for obtaining routing information is SPE, the other device is UPE.
  • the device for obtaining routing information includes a communication interface, and the communication interface is used for the device for obtaining routing information to communicate with other devices.
  • the communication interface may be a transceiver.
  • the memory is used to store program instructions. Transceiver, used to receive the first message, the first message includes the first RT and the first import-RT extended community attributes, and sends a second message, the second message includes the first RT, corresponding to the first RT M import-RT extended community attributes and the default route corresponding to the first RT.
  • the processor is configured to store the first import-RT extended community attribute to the import-RT set according to the first RT, and the import-RT set includes the first RT and M import-RT extended community attributes corresponding to the first RT, M Each import-RT extended community attribute includes the first import-RT extended community attribute, and M is an integer greater than or equal to 1.
  • an embodiment of the present application further provides an apparatus for obtaining routing information, which is used to implement the method described in the second aspect above.
  • the device for obtaining routing information is UPE or a communication device that supports UPE to implement the method described in the second aspect, for example, the communication device includes a chip system.
  • the device for obtaining routing information includes a processor.
  • a processor configured to implement the functions in the method described in the second aspect above.
  • the device for obtaining routing information may further include a memory for storing program instructions and data.
  • the memory is coupled to the processor, and the processor may call and execute program instructions stored in the memory to implement the functions in the method described in the second aspect above.
  • the device for obtaining routing information may further include a communication interface, and the communication interface is used for the device for obtaining routing information to communicate with other devices. Exemplarily, if the device for obtaining routing information is UPE, the other device is SPE.
  • the device for obtaining routing information includes a communication interface, and the communication interface is used for the device for obtaining routing information to communicate with other devices.
  • the communication interface may be a transceiver.
  • the transceiver is used to receive a first message, and the first message includes a first RT, M import-RT extended community attributes corresponding to the first RT, and a default route corresponding to the first RT.
  • the memory is used to store program instructions.
  • the processor is configured to generate a correspondence between the default route and the M import-RT extended community attributes according to the M import-RT extended community attributes corresponding to the first RT and the default route corresponding to the first RT.
  • an embodiment of the present application further provides a computer-readable storage medium, including: computer software instructions; when the computer software instructions run in an apparatus for obtaining routing information, the apparatus for obtaining routing information executes the first aspect described above Or the method described in the second aspect.
  • an embodiment of the present application further provides a computer program product containing instructions, which, when the computer program product runs in an apparatus for obtaining routing information, causes the apparatus for obtaining routing information to perform the above-mentioned first aspect or second aspect Described method.
  • an embodiment of the present application provides a chip system.
  • the chip system includes a processor, and may further include a memory, which is used to implement the SPE or UPE function in the foregoing method.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • an embodiment of the present application further provides a communication system including the SPE described in the third aspect or a communication device supporting SPE to implement the method described in the first aspect, and the UPE or A communication device supporting UPE to implement the method described in the second aspect;
  • the communication system includes the SPE described in the fifth aspect or a communication device supporting SPE to implement the method described in the first aspect, and the UPE described in the sixth aspect or a communication device supporting UPE to implement the method described in the second aspect.
  • the UPE can receive the first RT sent by the SPE, the M import-RT extended community attributes corresponding to the first RT, and the default route corresponding to the first RT. Since the first RT is used to identify the first VPN, The default route is the default route of the first VPN, so that the UPE can forward the first RT, the M import-RT extended community attributes and the default route corresponding to the first RT to the NPE through the SPE, so that the NPE can perform The information establishes a multicast entry, and forwards the traffic of the first VPN according to the multicast forwarding entry, so as to realize the operation of NGMVPN in the HoVPN scenario.
  • the names of the SPE, UPE, the device for obtaining routing information, and the communication device do not limit the device itself. In actual implementation, these devices may appear under other names. As long as the functions of each device are similar to the embodiments of the present application, they fall within the scope of the claims of the present application and their equivalent technologies.
  • FIG. 1 is a simplified structural example of a virtual private network provided by the prior art
  • FIG. 2 is an example diagram of a simplified structure of a BGP / MPLS VPN network provided by the prior art
  • FIG. 3 is an example diagram of a simplified structure of an HVPN provided by the prior art
  • FIG. 4 is an example diagram of a simplified structure of a HoVPN provided by an embodiment of this application.
  • FIG. 5 is a flowchart of a method for obtaining routing information provided by an embodiment of the present application.
  • FIG. 6 is a flowchart of another method for obtaining routing information provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another simplified structure of HoVPN provided by an embodiment of the present application.
  • FIG. 8 is a diagram illustrating an example of the composition of an apparatus for obtaining routing information provided by an embodiment of the present application.
  • FIG. 9 is a diagram illustrating an example of the composition of another apparatus for obtaining routing information according to an embodiment of this application.
  • FIG. 10 is a diagram illustrating an example of the composition of another apparatus for obtaining routing information according to an embodiment of the present application.
  • Virtual private network Virtual Private Network, VPN
  • VPN Virtual Private Network
  • the basic principle of VPN is to use tunneling technology to encapsulate VPN packets in a tunnel, and use VPN backbone network to establish a dedicated data transmission channel to achieve transparent transmission of packets.
  • FIG. 1 is a simplified structural example diagram of a virtual private network provided by the prior art.
  • an organization has established private network A and private network B in two different locations far apart, and the network address of private network A is private address 10.1.0.0.
  • the network address of the private network B is the private address 10.2.0.0.
  • a VPN needs to be formed between the private network A and the private network B through the public Internet.
  • router R1 After receiving the internal datagram, router R1 finds that the destination network of the internal datagram can only be reached through the Internet, encrypts the internal datagram (to ensure the security of the internal datagram), and then adds the header of the datagram again, encapsulating it into the Internet
  • the source address of the external datagram is the global address of router R1 125.1.2.3
  • the destination address of the external datagram is the global address of router R2 194.4.5.6.
  • router R2 After receiving the external datagram, router R2 takes out part of its data and decrypts it to recover the original internal datagram.
  • the destination address of the internal datagram is 10.2.0.3.
  • the internal datagram is forwarded to host Y based on the destination address of the internal datagram. .
  • MPLS Multi-protocol label switching
  • IETF Internet Engineering Task Force
  • MPLS is a fast forwarding technology that supports multiple network layer protocols. It is an IP high-speed backbone network switching standard proposed by the Internet Engineering Task Force (IETF). It is a system used for rapid packet exchange and routing. It provides destination, routing address, forwarding, and switching capabilities for network data traffic.
  • IETF Internet Engineering Task Force
  • GRE Generic Routing Encapsulation
  • L2TP Layer 2 Tunneling Protocol
  • PPTP point-to-point tunneling protocol
  • Internet Protocol security InternetProtocolSecurity, IPSec
  • VPN IP routing may refer to VPN-IPv4 routing.
  • the so-called VPN is a collection of several sites. For example, company headquarters and branch offices are sites.
  • BGP / MPLS VPN includes customer network edge (customer edge, CE) router, backbone network edge (provider edge, PE) router and backbone network core (provider, P) router.
  • PE router is the main implementer of BGP / MPLS VPN.
  • the P router is responsible for MPLS forwarding.
  • the backbone network PE router and P router run the public network internal gateway protocol (Interior Gateway Protocol (IGP), public network internal border gateway protocol (Internal, Border Gateway Protocol, IBGP), and configure MPLS LSP for MPLS domain label forwarding.
  • the external border gateway protocol (External Border Gateway Protocol, EBGP) runs between the CE router and the PE router.
  • the CE router is the entrance to the site, and communication between different VPNs is isolated.
  • FIG. 2 is a simplified structural example of a BGP / MPLS VPN network provided by the prior art.
  • the backbone network includes PE router 1, PE router 2, and P router.
  • PE router 1 is connected to CE router 1 and CE router 3.
  • CE Router 1 is the user-side edge router of VPN1.
  • CE router 3 is the user-side edge router of VPN2.
  • PE router 2 connects CE router 2 and CE router 4.
  • CE router 2 is the user-side edge router of VPN1.
  • CE router 4 is the user-side edge router of VPN2.
  • Site 1 and site 2 belong to VPN1, and site 3 belongs to VPN2.
  • the PE router needs to perform route learning, and then the PE router can forward the IP datagram based on the learned route.
  • CE router 2 learns the route of VPN1 from site 2 according to the BGP / EBGP protocol, EBGP is established between CE router 2 and PE router 2, and CE router 2 uses EBGP to transfer the route of VPN1 from CE router 2 to PE router 2.
  • the route of VPN1 is 10.1 / 16.
  • the route 10.1 / 16 is saved in the virtual routing forwarding (VPN routing and forwarding, VRF) table corresponding to the VPN instance, and is Route 10.1 / 16 is assigned a VPN label, and the VPN label is the inner label.
  • VRF virtual routing forwarding
  • PE router 2 saves route 10.1 / 16 to the BGP routing table according to the IBGP routing protocol with PE router 1, and forwards other information related to route 10.1 / 16 to PE router 1, such as the VPN label for route 10.1 / 16 , Routing flag (routedistinguisher, RD) and output routing target (export routing target, export RT).
  • Routing flag routedistinguisher, RD
  • output routing target export routing target, export RT
  • RD is used to identify different VPN instances on the PE router.
  • RT is used by PE routers to distinguish which VRF table to send to after receiving IP routes of different VPNs.
  • RT is an extended community attribute in BGP. The generation of labels is performed by RT. The PE router relies on the RT attribute to distinguish routes between different VPNs.
  • PE router 1 After route 10.1 / 16 reaches PE router 1, PE router 1 stores multiple VRF tables. PE router 1 searches in multiple VRF tables based on the export RT to find the import RT that matches the export RT of route 10.1 / 16. And save the route 10.1 / 16 to the VRF table that includes the import RT that matches the export RT. At this time, the RD and the carried VPN label are stripped. As shown in Table 2, an example diagram of the structure of the VRF table imported on the PE router during the route learning process.
  • PE router 1 uses the EBGP protocol to transfer route 10.1 / 16 from PE router 1 to CE router 1.
  • CE router 1 stores the route 10.1 / 16 learned from the EBGP route into the IGP table.
  • the forwarding of datagrams between two sites belonging to the same VPN uses a two-layer label, that is, the inner PE label and the outer label are marked on the local PE router.
  • the outer label is used for switching within the backbone network and indicates an LSP from the local PE router to the peer PE router. IP datagrams can use the outer label to reach the peer PE router along the LSP.
  • the backbone network tunnel may be an LSP tunnel, an MPLS traffic engineering (TE) tunnel, or a general routing encapsulation (GRE) tunnel.
  • TE MPLS traffic engineering
  • GRE general routing encapsulation
  • the backbone network label is an MPLS LSP label (the CR-LSP of an MPLS TE tunnel also uses an LSP label).
  • the backbone network label is GRE encapsulated.
  • the inner (private network) label is used when the IP datagram travels from the peer PE router to the peer CE router, indicating which site the packet should be sent to, that is, the private network route allocated for different routes or different VPN instances label.
  • the private network label assigned by each private network VPN IP route learned by the local end will be notified to the peer PE router In this way, the peer PE router can find the VPN instance to which the packet belongs according to the private network label carried in the IP datagram, and then forward the IP datagram to the corresponding site by searching the routing table of the VPN instance.
  • Site 1 sends out an IP datagram with a destination address of 10.1.1.1
  • CE router 1 sends the IP datagram to PE router 1.
  • PE router 1 determines the VPN instance it belongs to based on the incoming interface. In the VRF table corresponding to the example, the route 10.1 / 16 is found. After matching, the VPN label is added.
  • PE router 1 serves as the LSR of the MPLS domain, and another layer of LSP label is encapsulated; the IP datagram carries two layers of labels through the MPLS VPN backbone In the network, the outer LSP label is continuously exchanged on the P router.
  • PE router 2 finds the corresponding outgoing interface according to the VPN label and the destination address, and sends the IP datagram To CE router 2, CE router 2 then sends the IP datagram to the destination according to the normal IP forwarding process.
  • the typical structure of a metropolitan area network is a three-layer model: core layer, convergence layer and access layer.
  • BGP / MPLS VPN In order to deploy VPN functions in a hierarchical structure network, BGP / MPLS VPN must be changed from a flat model to a hierarchical model, so a hierarchical VPN (hierarchy VPN, HVPN) structure is generated.
  • the core layer includes network side edge (network provider edge, NPE) routers.
  • the convergence layer includes service provider-end edge (SPE) routers.
  • SPE service provider-end edge
  • the access layer includes a user-side edge (UPE) router.
  • FIG. 3 is a simplified structural example diagram of an HVPN provided by the prior art.
  • the default route is a special static route, which refers to the route selected by the router when there is no matching entry in the routing table and the destination address of the IP datagram.
  • SPE routers can only publish default routes to UPE routers.
  • UPE routers only maintain user-side routes and do not need to maintain network-side routes.
  • the HVPN implementation can be called HoVPN (hierarchy of VPN).
  • Multicast VPN (multicast VPN, MVPN) encapsulates private network multicast packets and transmits the private network multicast packets through the multicast tunnels established between the sites to complete the multicast data between the private networks Transmission.
  • NG MVPN is a new generation framework for IP multicast data traffic traversing BGP / MPLS VPN networks.
  • BGP is used to transfer private network multicast protocol packets and private network multicast routes, which simplifies the network deployment complexity and reduces the difficulty of network maintenance.
  • HoVPN since the SPE router only sends the default route to the UPE router, the multicast-related information corresponding to the VPN IP route sent by the NPE router cannot be passed to the UPE router, and the UPE router cannot learn the source VPN IP route and VPN IP Multicast information corresponding to the route.
  • running the NGMVPN protocol requires the use of VPN IP routing and the multicast information corresponding to the VPN IP routing, which affects the normal operation of NGMVPN.
  • the embodiments of the present application provide a method for obtaining routing information.
  • the basic principle is that after the SPE receives the first packet including the first RT and the first import-RT extended community attribute, the SPE RT stores the first import-RT extended community attributes to the import-RT set.
  • the import-RT set includes the first RT and the M import-RT extended community attributes corresponding to the first RT.
  • the M import-RT extended community attributes include The first import-RT extended community attribute, M is an integer greater than or equal to 1; then send a second packet to the UPE, the second packet includes the first RT, the M import-RT extended community attributes and the first The default route corresponding to RT.
  • the UPE After receiving the second message, the UPE generates the correspondence between the default route and the M import-RT extended community attributes based on the M import-RT extended community attributes corresponding to the first RT and the default route corresponding to the first RT, and The UPE selects one import-RT extended community attribute from the M import-RT extended community attributes corresponding to the default route and sends it to the SPE.
  • the method for obtaining routing information provided by the embodiment of the present application can use the NGMVPN technology in a HoVPN scenario through the above method.
  • words such as “exemplary” or “for example” are used as examples, illustrations or explanations. Any embodiments or design solutions described as “exemplary” or “for example” in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as “exemplary” or “for example” is intended to present related concepts in a specific manner.
  • FIG. 4 is a simplified structural example diagram of a HoVPN provided by an embodiment of the present application.
  • SPE routers are connected to NPE router 1, NPE router 2 and UPE router respectively.
  • the UPE router is referred to as UPE for convenience.
  • the SPE router is called SPE for short.
  • NPE router 1 is abbreviated as NPE1.
  • FIG. 5 a flowchart of a method for obtaining routing information provided by an embodiment of the present application, the method may include:
  • the SPE receives the first message.
  • the SPE receives the first message sent by NPE1.
  • SPE is the BGP neighbor of NPE1.
  • the first packet may include the IP route of the VPN, the first RT, and the first import-RT extended community attribute.
  • the first message may be an update message specified by the BGP protocol.
  • the update message includes the network layer reachability information (NLRI) field and the extended community attribute field.
  • the IP route of the VPN can be located in the NLRI field.
  • the first RT and the first import-RT extended community attribute may be located in the extended community attribute field.
  • the first RT is used to determine the VPN to receive the first packet. In the following, it is assumed that the IP route of the VPN is the IP route of the first VPN, and the first RT is used to identify the first VPN.
  • the first RT may be an export RT included in the VRF table corresponding to the first VPN.
  • the VRF table corresponding to the first VPN may be stored on NPE1.
  • the VRF table corresponding to the first VPN may be referred to as VRF1 for short.
  • the import-RT extended community attributes include the global administrator ID (global administrator field) and the local administrator ID (local administrator field).
  • the global management identifier is used to represent the unique identifier of the PE in the network.
  • the local management identifier is used to represent the unique identifier of the VPN on the PE. It is assumed that the export RT included in the VRF table corresponding to the first VPN may be (1: 1).
  • NPE1's import-RT extended community attribute can be ⁇ 3.3.3.3:5>.
  • the import-RT extended community attribute of NPE2 can be ⁇ 4.4.4.4:2>.
  • 4.4.4.4 represents the global management ID
  • 2 represents the local management ID.
  • SPE confirms the reception of multicast information according to the global management identifier included in the import-RT extended community attribute, confirms the crossover to the VPN's VRF table according to the local management identifier included in the import-RT extended community attribute, and establishes multicast entries.
  • the VPN forwards according to the established P2MP tunnel.
  • the IP corresponding to the same VPN has the same RT.
  • the first message may include multiple RTs. import-RT
  • the messages described below all refer to update messages.
  • the SPE stores the first import-RT extended community attribute to the import-RT set according to the first RT.
  • the import-RT set includes the first RT and the M import-RT extended community attributes corresponding to the first RT, where the M import-RT extended community attributes include the first import-RT extended community attribute, and M is greater than or equal to 1. Integer.
  • the M import-RT extended community attributes may also include the import-RT extended community attributes corresponding to the first RT received by the SPE through other messages.
  • the import-RT set may also include other valued RTs, and each RT in the other valued RTs may correspond to at least one import-RT extended community attribute. Understandably, RT may be an index of the import-RT set.
  • the SPE sends a second message.
  • the SPE After storing the first import-RT extended community attribute in the import-RT set according to the first RT, the SPE sends a second message to the UPE, where the second message includes the first RT and M imports corresponding to the first RT -RT extended community attribute and default route corresponding to the first RT.
  • the first RT may be used to determine that the VPN that receives the first packet is the first VPN.
  • the administrator can configure a default route for all BGP neighbors adjacent to the SPE in the first VPN. Therefore, the default route corresponding to the first RT is the default route corresponding to the first VPN.
  • the UPE in the second message sent by the SPE to the UPE refers to all BGP neighbors adjacent to the SPE, and all BGP neighbors adjacent to the SPE may be one or two or more than two .
  • the SPE can send a second packet to the one UPE; if all BGP neighbors adjacent to the SPE are two or more UPEs, the SPE can send the two or More than two UPEs send the second message. It should be noted that one default route corresponds to one VPN. Understandably, SPE needs to send a default route for different VPNs.
  • the UPE receives the second message.
  • the UPE generates a correspondence between the default route and the M import-RT extended community attributes according to the M import-RT extended community attributes corresponding to the first RT and the default route corresponding to the first RT.
  • the list uses the import-RT logo as a key value, which is convenient for finding the content in the list.
  • Table 3 the correspondence between the default route and the import-RT extended community attribute.
  • the SPE passes the first RT, the M import-RT extended community attributes corresponding to the first RT, and the default route corresponding to the first RT to the UPE. Since the first RT is used to identify the first VPN, the default route is the first The default route of a VPN enables UPE to recognize the received M import-RT extended community attributes according to the first RT.
  • the embodiment of the present application further includes the following steps.
  • UPE saves the default route to the VRF table according to the first RT.
  • UPE searches for import-RT matching the first RT in multiple VRF tables according to the first RT, and after finding the VRF table including the import-RT matching the first RT, saves the default route to include the first RT matches the import-RT VRF table.
  • the UPE obtains the multicast entry corresponding to the first VPN and the default route in the VRF table.
  • Multicast entries can be established through Protocol Independent Multicast (PIM) protocol.
  • the multicast entries in the embodiments of the present application may refer to (S, G) routing entries.
  • the specific method for the UPE to establish the multicast entry according to the PIM protocol can refer to the prior art, and the embodiments of the present application will not repeat them here.
  • the PIM protocol indicates that a unicast routing table generated by a static route or any unicast routing protocol can be used to provide a route for IP multicast. Therefore, if a site in the VPN needs to receive multicast traffic, UPE can obtain the (S, G) entry corresponding to the VPN.
  • the (S, G) entry includes the multicast source and the multicast group. Since the UPE also stores the same VRF table corresponding to VPN, UPE can also obtain unicast route through VRF table corresponding to the same VPN, so that unicast route can be used to obtain multicast traffic of multicast source.
  • the UPE can obtain the multicast source and the multicast group in the (S, G) entry of the first VPN. Since the unicast route stored in the VRF table corresponding to the first VPN is the learned default route, UPE can obtain the default route in the VRF table corresponding to the first VPN, so that the UPE uses the default route to obtain the multicast of the multicast source flow.
  • UPE obtains M import-RT extended community attributes corresponding to the first RT according to the default route corresponding to the first RT.
  • the UPE can obtain the M import-RT extended community attributes corresponding to the first RT according to the default route corresponding to the first RT.
  • the UPE determines the second import-RT extended community attribute from the M import-RT extended community attributes according to a preset rule.
  • the second import-RT extended community attribute determined by the UPE from the M import-RT extended community attributes according to a preset rule may be the same as the first import-RT extended community attribute received by the SPE through the first message, or may be different.
  • UPE may determine an import-RT extended community attribute from M import-RT extended community attributes according to the global management identifier included in the import-RT extended community attribute. For example, select the import-RT extended community attribute that includes the minimum global management ID. Or, select the import-RT extended community attribute that includes the largest global management ID. This embodiment of the present application does not limit this. Assuming that the first import-RT extended community attribute is ⁇ 3.3.3.3:5> and the second import-RT extended community attribute is ⁇ 4.4.4.4:2>, UPE can select ⁇ 3.3.3.3:5>.
  • an import-RT extended community attribute may also be determined from the M import-RT extended community attributes according to the local management identifier included in the import-RT extended community attribute.
  • UPE sends a third message.
  • the third message includes the first import-RT extended community attribute and multicast information.
  • the multicast information may be located in the NLRI field included in the third message.
  • the first import-RT extended community attribute may be located in the extended community attribute field included in the third message.
  • Multicast information includes multicast sources and multicast groups. In the embodiment of the present application, it is assumed that the multicast information is the multicast information of the first VPN, and the multicast information includes the multicast source and the multicast group of the first VPN. In practical applications, multicast information may also include RD and source autonomous system (AS).
  • the third packet described in the embodiment of the present application may refer to a C-multicast route.
  • the SPE receives the third message.
  • the SPE After receiving the third message, the SPE forwards the third message to the BGP neighbor NPE adjacent to the SPE.
  • the NPE checks the first import-RT extended community attribute. Assume that the first import-RT extended community attribute is ⁇ 3.3.3.3:5>.
  • the NPE confirms receiving the multicast information according to the global management identifier 3.3.3.3, and confirms to cross under the VRF table of the first VPN according to the local management identifier 5, and establishes a multicast entry.
  • the first VPN has corresponding multicast traffic, it will According to the established P2MP tunnel forwarding. Therefore, when there are multiple NPEs, the NPE after receiving the multicast information can identify whether the multicast information should be handled by itself, and which of its own VRF tables the multicast information should cross to.
  • the IP route of the VPN learned by the NPE needs to be revoked. After the SPE adjacent to the NPE senses that the route is revoked, the corresponding import-RT set is refreshed, and the UPE updates the import-RT set. After that, recalculate the preferred attributes and send C multicast routing traffic.
  • two NPEs can also be linked to UPE through two SPEs, configure HoVPN and deploy NGMVPN dual-root 1 + 1 protection scenarios.
  • 7 is a schematic diagram of another simplified structure of HoVPN provided by an embodiment of the present application.
  • SPE1 is connected to NPE1 and UPE1 respectively.
  • SPE2 is connected to NPE2 and UPE2 respectively.
  • SPE1 and SPE2 are connected.
  • UPE1 is connected to UPE2.
  • NPE1 and NPE2 are connected.
  • the SPE1 can receive not only the first packet sent by NPE1, but also the second packet sent by NPE2 forwarded by SPE2.
  • the first packet includes the IP routing of the first VPN, the first RT, and the first import-RT extension Group attributes.
  • the first RT may be (1: 1).
  • the first import-RT extended community attribute may be ⁇ 3.3.3.3:5>.
  • the second packet includes the IP route of the first VPN, the first RT and the second import-RT extended community attribute.
  • the second import-RT extended community attribute may be ⁇ 4.4.4.4:2>.
  • SPE1 After SPE1 receives the first message and the second message, SPE1 stores the first import-RT extended community attribute and the second import-RT extended community attribute to the import-RT set according to the first RT, and sends a third packet , The third packet includes the first RT, the Q import-RT extended community attributes and the default route corresponding to the first RT.
  • SPE2 stores the first import-RT extended community attribute and the second import-RT extended community attribute to the import-RT set according to the first RT, and sends a fourth packet, the fourth packet includes the first RT, the first Q import-RT extension community attributes and default routes corresponding to RT.
  • Q is an integer greater than or equal to 1.
  • UPE1 can learn two default routes with different next hops and import-RT extended community attributes.
  • the default routes can form fast reroute (FRR).
  • FRR is a technology that realizes partial network protection in MPLS TE. Only interfaces with a rate above 100Mbps support FRR. The switching speed of FRR can reach 50 milliseconds, which can minimize the loss of data during network failure.
  • UPE1 receives the third packet and the fourth packet, that is, after receiving the first RT and the Q import-RT extended community attributes and the default route corresponding to the first RT, the default route is stored according to the first RT and a default route is generated Correspondence with Q import-RT extended community attributes.
  • UPE1 needs to generate a correspondence between the default route and the Q import-RT extended community attributes for each default route with the import-RT extended community attribute.
  • UPE1 queries the FRR scenario where the source or unicast route is the default route when generating the C multicast route.
  • Each default route is encapsulated by the C-multicast route through the import-RT extended community attribute of policy optimization.
  • the import-RT extended community attributes of the IP routing of the two VPNs should be treated exclusively.
  • the primary path preferred import-RT extended community attribute operation may be performed first.
  • the primary path preferred import-RT extended community attribute shall be excluded to ensure that two different roots are selected to form a 1 + 1 protection scenario.
  • SPE1 receives the C multicast route and forwards it to the NPE1 device.
  • NPE1 and NPE2 confirm that both the entry-RT extended community attribute establishes the entry traffic and corresponds to the P2MP tunnel forwarding.
  • UPE selectively receives the traffic according to the active-standby relationship, that is, UPE receives the same Multicast traffic, then the master and backup of the data routing choose a copy to forward to the CE, a simple description is the double-receiving and selective sending.
  • UPE2 selectively receives the traffic according to the active-standby relationship, that is, UPE receives the same Multicast traffic, then the master and backup of the data routing choose a copy to forward to the CE, a simple description is the double-receiving and selective sending.
  • the embodiments of the present application may divide the functional modules of the SPE and UPE according to the above method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules may be implemented in the form of hardware or software function modules. It should be noted that the division of the modules in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
  • FIG. 8 shows a schematic diagram of a possible composition of the device for obtaining routing information mentioned above and in the embodiments, and the device for obtaining routing information can execute each method of the present application.
  • the device for obtaining routing information is SPE or a communication device that supports SPE to implement the method provided in the embodiment.
  • the communication device may be a chip system.
  • the device for obtaining routing information may include a receiving unit 801, a processing unit 802, and a sending unit 803.
  • the receiving unit 801 is used to support a device for obtaining routing information to execute the method described in the embodiments of the present application.
  • the receiving unit 801 the device for performing or for supporting obtaining routing information executes S501 in the method for obtaining routing information shown in FIG. 5, and S501 and S606 in the method for obtaining routing information shown in FIG. 6.
  • the processing unit 802 is configured to execute or support an apparatus for acquiring routing information to execute S502 in the method for acquiring routing information shown in FIG. 5 and S502 in the method for acquiring routing information shown in FIG. 6.
  • the sending unit 803 is configured to perform or support an apparatus for acquiring routing information to execute S503 in the method for acquiring routing information shown in FIG. 5 and S503 in the method for acquiring routing information shown in FIG. 6.
  • the apparatus for obtaining routing information provided by the embodiments of the present application is used to execute the method of any of the above embodiments, and therefore can achieve the same effect as the method of the above embodiments.
  • FIG. 9 shows a schematic diagram of a possible composition of the device for obtaining routing information mentioned above and in the embodiment, and the device for obtaining routing information can execute each method of the present application.
  • the device for obtaining routing information is UPE or a communication device supporting UPE to implement the method provided in the embodiment, for example, the communication device may be a chip system.
  • the device for obtaining routing information may include a receiving unit 901 and a processing unit 902.
  • the receiving unit 901 is used to support the device for obtaining routing information to execute the method described in the embodiments of the present application.
  • the receiving unit 901 the device for performing or for supporting obtaining routing information executes S504 in the method for obtaining routing information shown in FIG. 5, and S504 in the method for obtaining the routing information shown in FIG. 6.
  • the processing unit 902 is configured to execute or support an apparatus for acquiring routing information to execute S505 in the method for acquiring routing information shown in FIG. 5, and S505 and S601 to S604 in the method for acquiring routing information shown in FIG. 6.
  • the communication device may further include: a sending unit 903.
  • the sending unit 903 is configured to execute or to support an apparatus for acquiring routing information to execute S605 in the method for acquiring routing information shown in FIG. 6.
  • the apparatus for obtaining routing information provided by the embodiments of the present application is used to execute the method of any of the above embodiments, and therefore can achieve the same effect as the method of the above embodiments.
  • an apparatus 1000 for obtaining routing information is used to implement the function of the SPE in the foregoing method.
  • the device 1000 for obtaining routing information may be an SPE or a device in the SPE.
  • the device 1000 for obtaining routing information may be a chip system.
  • the chip system may be composed of a chip, or may include a chip and other discrete devices.
  • the device 1000 for obtaining routing information is used to implement the UPE function in the above method.
  • the device 1000 for obtaining routing information may be a UPE or a device in the UPE.
  • the device 1000 for obtaining routing information may be a chip system.
  • the chip system may be composed of a chip, or may include a chip and other discrete devices.
  • the device 1000 for obtaining routing information includes at least one processor 1001 for implementing the functions of SPE or UPE in the method provided by the embodiments of the present application.
  • the processor 1001 may be used to store the first import-RT extended community attribute to the import-RT set according to the first RT, and save the default route to the VRF table according to the first RT, and generate the default route and M number
  • the processor 1001 may be used to store the first import-RT extended community attribute to the import-RT set according to the first RT, and save the default route to the VRF table according to the first RT, and generate the default route and M number
  • the device 1000 for obtaining routing information may further include at least one memory 1002 for storing program instructions and / or data.
  • the memory 1002 and the processor 1001 are coupled.
  • the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between devices, units or modules.
  • the processor 1001 may cooperate with the memory 1002.
  • the processor 1001 may execute program instructions stored in the memory 1002. At least one of the at least one memory may be included in the processor.
  • the device 1000 for obtaining routing information may further include a communication interface 1003 for communicating with other devices through a transmission medium, so that the device in the device 1000 for obtaining routing information can communicate with other devices.
  • a communication interface 1003 for communicating with other devices through a transmission medium, so that the device in the device 1000 for obtaining routing information can communicate with other devices.
  • the device for obtaining routing information is SPE
  • the other device is UPE.
  • the device for obtaining routing information is UPE
  • the other device is SPE.
  • the processor 1001 uses the communication interface 1003 to send and receive data, and is used to implement the method performed by the SPE or UPE described in the embodiments corresponding to FIG. 5 and FIG. 6.
  • the embodiments of the present application do not limit the specific connection media between the communication interface 1003, the processor 1001, and the memory 1002.
  • the communication interface 1003, the processor 1001, and the memory 1002 are connected by a bus 1004.
  • the bus is shown by a thick line in FIG. 10, and the connection mode between other components is only for schematic illustration. , Not to limit.
  • the bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, only a thick line is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.
  • the processor may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which may be Perform the disclosed methods, steps, and logical block diagrams in the embodiments of the present application.
  • the general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied and executed by a hardware processor, or may be executed and completed by a combination of hardware and software modules in the processor.
  • the memory may be a non-volatile memory, such as a hard disk (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), for example Random access memory (random-access memory, RAM).
  • the memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
  • the memory in the embodiment of the present application may also be a circuit or any other device capable of realizing a storage function, which is used to store program instructions and / or data.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the modules or units is only a division of logical functions.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or software functional unit.
  • the methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented using 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 instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions according to the embodiments of the present invention are generated.
  • the computer may be a general-purpose computer, a dedicated computer, a computer network, a network device, a terminal, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, computer, server or data center Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device including a server, a data center, and the like integrated with one or more available media.
  • the usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), optical medium (e.g., digital video disc (DVD)), or semiconductor medium (e.g., SSD), or the like.

Landscapes

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

Abstract

Disclosed are a method and apparatus for acquiring routing information, which solve the problem of operating an NGMVPN in a HoVPN scenario. The specific solution involves: an SPE stores a first import-RT extended group attribute in an import-RT set according to a first RT after receiving the first RT and the first import-RT extended group attribute, and sends the first RT, M import-RT extended group attributes corresponding to the first RT, and a default route corresponding to the first RT. A UPE generates a correlation between the default route and the M import-RT extended group attributes according to the M import-RT extended group attributes corresponding to the first RT and the default route corresponding to the first RT after receiving the first RT, the M import-RT extended group attributes corresponding to the first RT, and the default route corresponding to the first RT.

Description

一种获取路由信息方法及装置Method and device for obtaining routing information
本申请要求于2018年11月16日提交中国国家知识产权局、申请号为201811367864.1、申请名称为“一种获取路由信息的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the State Intellectual Property Office of China on November 16, 2018 with the application number 201811367864.1 and the application name "a method and device for obtaining routing information", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及通信领域,尤其涉及一种获取路由信息的方法及装置。This application relates to the field of communications, and in particular to a method and device for obtaining routing information.
背景技术Background technique
在下一代组播虚拟专用网(next-generation multicast virtual private network,NG MVPN)技术中,可以通过使用边界网关协议(Border Gateway Protocol,BGP)来传递私网组播协议报文和私网组播路由,有效地简化了网络部署复杂度,降低了网络维护难度。In the next-generation multicast virtual private network (next-generation multicast virtual private network, NG MVPN) technology, the border gateway protocol (Border Gateway Protocol, BGP) can be used to deliver private network multicast protocol messages and private network multicast Routing effectively simplifies the complexity of network deployment and reduces the difficulty of network maintenance.
VPN技术大量应用在城域网中,城域网的典型结构是三层模型:核心层、汇聚层和接入层。为了在分层结构网络中部署VPN功能,BGP/MPLS VPN要从平面模型转变为分层模型,因此产生了层次化VPN(hierarchy VPN,HVPN)结构。核心层包括网络侧边缘路由器(network provider edge,NPE)。汇聚层包括运营商侧边缘路由器(service provider-end edge,SPE)。接入层包括用户侧边缘路由器(user provider-end edge,UPE)。为了减小UPE存储路由信息的压力,SPE仅向UPE发布默认路由,UPE只维护用户侧路由无需维护网络侧路由。由于SPE仅向UPE发送默认路由,UPE无法接收到VPN的网际协议(Internet Protocol,IP)路由及VPN的IP路由对应的组播信息(如扩展团体属性)。但是,运行NGMVPN需要使用VPN的IP路由及VPN的IP路由对应的组播信息,这样就影响NGMVPN的正常运行。VPN technology is widely used in metropolitan area networks. The typical structure of metropolitan area networks is a three-layer model: core layer, convergence layer and access layer. In order to deploy VPN functions in a hierarchical structure network, BGP / MPLS VPN must be changed from a flat model to a hierarchical model, so a hierarchical VPN (hierarchy VPN, HVPN) structure is generated. The core layer includes the network side edge router (network provider edge, NPE). The convergence layer includes an operator-side edge router (service provider-end edge, SPE). The access layer includes the user-side edge router (user provider-end edge, UPE). To reduce the pressure on UPE to store routing information, SPE only publishes default routes to UPE. UPE only maintains user-side routes and does not need to maintain network-side routes. Since the SPE only sends the default route to the UPE, the UPE cannot receive the VPN's Internet Protocol (IP) route and the multicast information (such as extended community attributes) corresponding to the VPN's IP route. However, the operation of NGMVPN requires the use of VPN IP routing and the multicast information corresponding to VPN IP routing, which affects the normal operation of NGMVPN.
发明内容Summary of the invention
本申请实施例提供一种获取路由信息的方法及装置,解决了如何在HoVPN场景下运行NGMVPN的问题。The embodiments of the present application provide a method and device for obtaining routing information, which solves the problem of how to run NGMVPN in a HoVPN scenario.
为达到上述目的,本申请实施例采用如下技术方案:To achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
第一方面,本申请实施例提供了一种获取路由信息的方法,该方法可应用于SPE,或者该方法可应用于可以支持SPE实现该方法的通信装置,例如该通信装置包括芯片系统,方法包括:SPE接收到第一报文之后,根据第一路由目标(route target,RT)将第一输入路由目标(import-RT)扩展团体属性存储到import-RT集合,其中,该第一报文包括第一RT和第一import-RT扩展团体属性;import-RT集合包括第一RT以及与第一RT对应的M个import-RT扩展团体属性,M个import-RT扩展团体属性包括第一import-RT扩展团体属性,M为大于或等于1的整数;然后,SPE向UPE发送第二报文,第二报文包括第一RT、所述M个import-RT扩展团体属性和与所述第一RT对应的默认路由。In the first aspect, an embodiment of the present application provides a method for obtaining routing information. The method can be applied to SPE, or the method can be applied to a communication device that can support SPE to implement the method. For example, the communication device includes a chip system. Including: after receiving the first message, the SPE stores the first input route target (import-RT) extended community attribute to the import-RT set according to the first route target (RT), where the first message Including the first RT and the first import-RT extended community attributes; the import-RT set includes the first RT and the M import-RT extended community attributes corresponding to the first RT, and the M import-RT extended community attributes include the first import -RT extended community attribute, M is an integer greater than or equal to 1; then, SPE sends a second packet to UPE, the second packet includes the first RT, the M import-RT extended community attributes and the first The default route corresponding to an RT.
结合第一方面,在一种可能的实现方式中,方法还包括:SPE接收第三报文并转发第三报文,第三报文包括第二import-RT扩展团体属性和组播信息。其中,第一import-RT扩展团体属性包括全局管理标识和本地管理标识。With reference to the first aspect, in a possible implementation manner, the method further includes: the SPE receives the third message and forwards the third message, and the third message includes the second import-RT extended community attribute and multicast information. Among them, the first import-RT extended community attribute includes a global management ID and a local management ID.
第二方面,本申请实施例提供了一种获取路由信息的方法,该方法可应用于UPE,或者该方法可应用于可以支持UPE实现该方法的通信装置,例如该通信装置包括芯片系统,方法包括:UPE接收到第一报文之后,根据与第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由生成默认路由与M个import-RT扩展团体属性的对应关系,其中,第一报文包括第一RT、第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由。In a second aspect, an embodiment of the present application provides a method for obtaining routing information. The method can be applied to UPE, or the method can be applied to a communication device that can support UPE to implement the method. For example, the communication device includes a chip system. Including: after receiving the first message, UPE generates the correspondence between the default route and the M import-RT extended community attributes based on the M import-RT extended community attributes corresponding to the first RT and the default route corresponding to the first RT , Where the first packet includes the first RT, the M import-RT extended community attributes corresponding to the first RT, and the default route corresponding to the first RT.
结合第二方面,在一种可能的实现方式中,方法还包括:UPE根据预设规则从M个import-RT扩展团体属性中确定第一import-RT扩展团体属性;向SPE发送第二报文,第二报文包括第一import-RT扩展团体属性和组播信息。其中,第一import-RT扩展团体属性包括全局管理标识和本地管理标识。With reference to the second aspect, in a possible implementation manner, the method further includes: the UPE determines the first import-RT extended community attribute from the M import-RT extended community attributes according to a preset rule; and sends a second packet to the SPE , The second packet includes the first import-RT extended community attribute and multicast information. Among them, the first import-RT extended community attribute includes a global management ID and a local management ID.
结合上述可能的实现方式,在另一种可能的实现方式中,UPE根据预设规则从M个import-RT扩展团体属性中确定第一import-RT扩展团体属性,包括:UPE根据全局管理标识的大小从M个import-RT扩展团体属性中确定第一import-RT扩展团体属性。With reference to the above possible implementation manners, in another possible implementation manner, UPE determines the first import-RT extended community attribute from M import-RT extended community attributes according to a preset rule, including: UPE according to the global management identifier The size determines the first import-RT extended community attribute from the M import-RT extended community attributes.
第三方面,本申请实施例还提供了一种获取路由信息的装置,用于实现上述第一方面描述的方法。获取路由信息的装置为SPE或支持SPE实现该第一方面描述的方法的通信装置,例如该通信装置包括芯片系统。例如,该获取路由信息的装置包括:接收单元、处理单元和发送单元。所述接收单元,用于接收第一报文,第一报文包括第一RT和第一import-RT扩展团体属性。所述处理单元,用于根据接收单元接收到的第一RT将第一import-RT扩展团体属性存储到import-RT集合,import-RT集合包括第一RT以及与第一RT对应的M个import-RT扩展团体属性,M个import-RT扩展团体属性包括第一import-RT扩展团体属性,M为大于或等于1的整数。发送单元,用于发送第二报文,第二报文包括第一RT、与第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由。In a third aspect, an embodiment of the present application further provides an apparatus for obtaining routing information, for implementing the method described in the first aspect above. The device for obtaining routing information is an SPE or a communication device that supports SPE to implement the method described in the first aspect. For example, the communication device includes a chip system. For example, the device for obtaining routing information includes: a receiving unit, a processing unit, and a sending unit. The receiving unit is configured to receive a first message, and the first message includes a first RT and a first import-RT extended community attribute. The processing unit is configured to store the first import-RT extended community attribute in the import-RT set according to the first RT received by the receiving unit, and the import-RT set includes the first RT and M imports corresponding to the first RT -RT extended community attribute, M import-RT extended community attributes include the first import-RT extended community attribute, and M is an integer greater than or equal to 1. The sending unit is configured to send a second message. The second message includes a first RT, M import-RT extended community attributes corresponding to the first RT, and a default route corresponding to the first RT.
可选地,具体的处理方法同第一方面中相应的描述,这里不再赘述。Optionally, the specific processing method is the same as the corresponding description in the first aspect, which will not be repeated here.
第四方面,本申请实施例还提供了一种获取路由信息的装置,用于实现上述第二方面描述的方法。获取路由信息的装置为UPE或支持UPE实现该第二方面描述的方法的通信装置,例如该通信装置包括芯片系统。例如,获取路由信息的装置包括:接收单元和处理单元。接收单元,用于接收第一报文,第一报文包括第一RT、与第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由。所述处理单元,用于根据与第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由生成默认路由与M个import-RT扩展团体属性的对应关系。In a fourth aspect, an embodiment of the present application further provides an apparatus for obtaining routing information, which is used to implement the method described in the second aspect above. The device for obtaining routing information is UPE or a communication device that supports UPE to implement the method described in the second aspect, for example, the communication device includes a chip system. For example, the device for obtaining routing information includes: a receiving unit and a processing unit. The receiving unit is configured to receive a first message. The first message includes a first RT, M import-RT extended community attributes corresponding to the first RT, and a default route corresponding to the first RT. The processing unit is configured to generate a correspondence between the default route and the M import-RT extended community attributes based on the M import-RT extended community attributes corresponding to the first RT and the default route corresponding to the first RT.
可选地,获取路由信息的装置还可以包括发送单元,用于发送第二报文,第二报文包括第一import-RT扩展团体属性和组播信息。Optionally, the device for obtaining routing information may further include a sending unit, configured to send a second message, where the second message includes the first import-RT extended community attribute and multicast information.
需要说明的是,上述第三方面和第四方面的功能模块可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。 例如,收发器,用于完成接收单元和发送单元的功能,处理器,用于完成处理单元的功能,存储器,用于处理器处理本申请实施例的方法的程序指令。处理器、收发器和存储器通过总线连接并完成相互间的通信。具体的,可以参考第一方面所述的方法至第二方面所述的方法中的SPE或UPE的行为的功能。It should be noted that the functional modules of the third aspect and the fourth aspect described above can be implemented by hardware, and can also be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. For example, a transceiver is used to complete the functions of the receiving unit and the sending unit, a processor is used to complete the functions of the processing unit, and a memory is used by the processor to process program instructions of the method of the embodiments of the present application. The processor, transceiver and memory are connected through the bus and complete the communication with each other. Specifically, reference may be made to the function of the behavior of SPE or UPE in the method described in the first aspect to the method described in the second aspect.
第五方面,本申请实施例还提供了一种获取路由信息的装置,用于实现上述第一方面描述的方法。所述获取路由信息的装置为SPE或支持SPE实现该第一方面描述的方法的通信装置,例如该通信装置包括芯片系统。例如所述获取路由信息的装置包括处理器,用于实现上述第一方面描述的方法的功能。所述获取路由信息的装置还可以包括存储器,用于存储程序指令和数据。所述存储器与所述处理器耦合,所述处理器可以调用并执行所述存储器中存储的程序指令,用于实现上述第一方面描述的方法中的功能。所述获取路由信息的装置还可以包括通信接口,所述通信接口用于该获取路由信息的装置与其它设备进行通信。示例性地,若所述获取路由信息的装置为SPE,该其它设备为UPE。In a fifth aspect, an embodiment of the present application further provides an apparatus for obtaining routing information, for implementing the method described in the first aspect above. The device for obtaining routing information is an SPE or a communication device that supports SPE to implement the method described in the first aspect. For example, the communication device includes a chip system. For example, the device for obtaining routing information includes a processor for implementing the functions of the method described in the first aspect. The device for obtaining routing information may further include a memory for storing program instructions and data. The memory is coupled to the processor, and the processor may call and execute program instructions stored in the memory to implement the functions in the method described in the first aspect above. The device for obtaining routing information may further include a communication interface, and the communication interface is used for the device for obtaining routing information to communicate with other devices. Exemplarily, if the device for obtaining routing information is SPE, the other device is UPE.
在一种可能的设备中,该获取路由信息的装置包括:通信接口,所述通信接口用于所述获取路由信息的装置和其它装置进行通信。示例性地,该通信接口可以是收发器。存储器,用于存储程序指令。收发器,用于接收第一报文,第一报文包括第一RT和第一import-RT扩展团体属性,以及发送第二报文,第二报文包括第一RT、与第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由。处理器,用于根据第一RT将第一import-RT扩展团体属性存储到import-RT集合,import-RT集合包括第一RT以及与第一RT对应的M个import-RT扩展团体属性,M个import-RT扩展团体属性包括第一import-RT扩展团体属性,M为大于或等于1的整数。In a possible device, the device for obtaining routing information includes a communication interface, and the communication interface is used for the device for obtaining routing information to communicate with other devices. Illustratively, the communication interface may be a transceiver. The memory is used to store program instructions. Transceiver, used to receive the first message, the first message includes the first RT and the first import-RT extended community attributes, and sends a second message, the second message includes the first RT, corresponding to the first RT M import-RT extended community attributes and the default route corresponding to the first RT. The processor is configured to store the first import-RT extended community attribute to the import-RT set according to the first RT, and the import-RT set includes the first RT and M import-RT extended community attributes corresponding to the first RT, M Each import-RT extended community attribute includes the first import-RT extended community attribute, and M is an integer greater than or equal to 1.
可选地,具体的方法同第一方面中相应的描述,这里不再赘述。Optionally, the specific method is the same as the corresponding description in the first aspect, which will not be repeated here.
第六方面,本申请实施例还提供了一种获取路由信息的装置,用于实现上述第二方面描述的方法。所述获取路由信息的装置为UPE或支持UPE实现该第二方面描述的方法的通信装置,例如该通信装置包括芯片系统。例如所述获取路由信息的装置包括处理器。处理器,用于实现上述第二方面描述的方法中的功能。所述获取路由信息的装置还可以包括存储器,用于存储程序指令和数据。所述存储器与所述处理器耦合,所述处理器可以调用并执行所述存储器中存储的程序指令,用于实现上述第二方面描述的方法中的功能。所述获取路由信息的装置还可以包括通信接口,所述通信接口用于该获取路由信息的装置与其它设备进行通信。示例性地,若所述获取路由信息的装置为UPE,该其它设备为SPE。In a sixth aspect, an embodiment of the present application further provides an apparatus for obtaining routing information, which is used to implement the method described in the second aspect above. The device for obtaining routing information is UPE or a communication device that supports UPE to implement the method described in the second aspect, for example, the communication device includes a chip system. For example, the device for obtaining routing information includes a processor. A processor, configured to implement the functions in the method described in the second aspect above. The device for obtaining routing information may further include a memory for storing program instructions and data. The memory is coupled to the processor, and the processor may call and execute program instructions stored in the memory to implement the functions in the method described in the second aspect above. The device for obtaining routing information may further include a communication interface, and the communication interface is used for the device for obtaining routing information to communicate with other devices. Exemplarily, if the device for obtaining routing information is UPE, the other device is SPE.
在一种可能的设备中,该获取路由信息的装置包括:通信接口,所述通信接口用于所述获取路由信息的装置和其它装置进行通信。示例性地,该通信接口可以是收发器。所述收发器,用于接收第一报文,第一报文包括第一RT、与第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由。存储器,用于存储程序指令。处理器,用于根据与第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由生成默认路由与M个import-RT扩展团体属性的对应关系。In a possible device, the device for obtaining routing information includes a communication interface, and the communication interface is used for the device for obtaining routing information to communicate with other devices. Illustratively, the communication interface may be a transceiver. The transceiver is used to receive a first message, and the first message includes a first RT, M import-RT extended community attributes corresponding to the first RT, and a default route corresponding to the first RT. The memory is used to store program instructions. The processor is configured to generate a correspondence between the default route and the M import-RT extended community attributes according to the M import-RT extended community attributes corresponding to the first RT and the default route corresponding to the first RT.
第七方面,本申请实施例还提供了一种计算机可读存储介质,包括:计算机软件指令;当计算机软件指令在获取路由信息的装置中运行时,使得获取路由信息的装置 执行上述第一方面或第二方面所述的方法。In a seventh aspect, an embodiment of the present application further provides a computer-readable storage medium, including: computer software instructions; when the computer software instructions run in an apparatus for obtaining routing information, the apparatus for obtaining routing information executes the first aspect described above Or the method described in the second aspect.
第八方面,本申请实施例还提供了一种包含指令的计算机程序产品,当计算机程序产品在获取路由信息的装置中运行时,使得获取路由信息的装置执行上述第一方面或第二方面所述的方法。In an eighth aspect, an embodiment of the present application further provides a computer program product containing instructions, which, when the computer program product runs in an apparatus for obtaining routing information, causes the apparatus for obtaining routing information to perform the above-mentioned first aspect or second aspect Described method.
第九方面,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,还可以包括存储器,用于实现上述方法中SPE或UPE的功能。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In a ninth aspect, an embodiment of the present application provides a chip system. The chip system includes a processor, and may further include a memory, which is used to implement the SPE or UPE function in the foregoing method. The chip system may be composed of chips, or may include chips and other discrete devices.
第十方面,本申请实施例还提供了一种通信系统,所述通信系统包括第三方面描述的SPE或支持SPE实现该第一方面描述的方法的通信装置,以及第四方面描述的UPE或支持UPE实现该第二方面描述的方法的通信装置;According to a tenth aspect, an embodiment of the present application further provides a communication system including the SPE described in the third aspect or a communication device supporting SPE to implement the method described in the first aspect, and the UPE or A communication device supporting UPE to implement the method described in the second aspect;
或所述通信系统包括第五方面描述的SPE或支持SPE实现该第一方面描述的方法的通信装置,以及第六方面描述的UPE或支持UPE实现该第二方面描述的方法的通信装置。Or the communication system includes the SPE described in the fifth aspect or a communication device supporting SPE to implement the method described in the first aspect, and the UPE described in the sixth aspect or a communication device supporting UPE to implement the method described in the second aspect.
通过上述方法,UPE可以接收到SPE发送的第一RT、与第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由,由于第一RT用于标识第一VPN,默认路由为第一VPN的默认路由,使得UPE能够将第一RT、所述M个import-RT扩展团体属性和与所述第一RT对应的默认路由发通过SPE转发给NPE,使得NPE根据上述信息建立组播表项,并根据该组播转发表项转发第一VPN的流量,以实现在HoVPN场景下运行NGMVPN。Through the above method, the UPE can receive the first RT sent by the SPE, the M import-RT extended community attributes corresponding to the first RT, and the default route corresponding to the first RT. Since the first RT is used to identify the first VPN, The default route is the default route of the first VPN, so that the UPE can forward the first RT, the M import-RT extended community attributes and the default route corresponding to the first RT to the NPE through the SPE, so that the NPE can perform The information establishes a multicast entry, and forwards the traffic of the first VPN according to the multicast forwarding entry, so as to realize the operation of NGMVPN in the HoVPN scenario.
另外,上述任意方面的设计方式所带来的技术效果可参见第一方面和第二方面中不同设计方式所带来的技术效果,此处不再赘述。In addition, for the technical effects brought by the design methods in any of the above aspects, please refer to the technical effects brought by the different design methods in the first and second aspects, which will not be repeated here.
本申请实施例中,SPE、UPE、获取路由信息的装置和通信装置的名字对设备本身不构成限定,在实际实现中,这些设备可以以其他名称出现。只要各个设备的功能和本申请实施例类似,属于本申请权利要求及其等同技术的范围之内。In the embodiments of the present application, the names of the SPE, UPE, the device for obtaining routing information, and the communication device do not limit the device itself. In actual implementation, these devices may appear under other names. As long as the functions of each device are similar to the embodiments of the present application, they fall within the scope of the claims of the present application and their equivalent technologies.
附图说明BRIEF DESCRIPTION
图1为现有技术提供的一个虚拟专用网的简化结构示例图;FIG. 1 is a simplified structural example of a virtual private network provided by the prior art;
图2为现有技术提供的一种BGP/MPLS VPN网络的简化结构示例图;2 is an example diagram of a simplified structure of a BGP / MPLS VPN network provided by the prior art;
图3为现有技术提供的一种HVPN的简化结构示例图;3 is an example diagram of a simplified structure of an HVPN provided by the prior art;
图4为本申请实施例提供的一种HoVPN的简化结构示例图;4 is an example diagram of a simplified structure of a HoVPN provided by an embodiment of this application;
图5为本申请实施例提供的一种获取路由信息的方法的流程图;5 is a flowchart of a method for obtaining routing information provided by an embodiment of the present application;
图6为本申请实施例提供的另一种获取路由信息的方法的流程图;6 is a flowchart of another method for obtaining routing information provided by an embodiment of the present application;
图7为本申请实施例提供的另一种HoVPN的简化结构示例图;7 is a schematic diagram of another simplified structure of HoVPN provided by an embodiment of the present application;
图8为本申请实施例提供的一种获取路由信息的装置的组成示例图;8 is a diagram illustrating an example of the composition of an apparatus for obtaining routing information provided by an embodiment of the present application;
图9为本申请实施例提供的另一种获取路由信息的装置的组成示例图;9 is a diagram illustrating an example of the composition of another apparatus for obtaining routing information according to an embodiment of this application;
图10为本申请实施例提供的又一种获取路由信息的装置的组成示例图。FIG. 10 is a diagram illustrating an example of the composition of another apparatus for obtaining routing information according to an embodiment of the present application.
具体实施方式detailed description
为了下述各实施例的描述清楚简洁,首先给出相关技术的简要介绍:In order to describe the following embodiments clearly and concisely, a brief introduction of related technologies is first given:
虚拟专用网(virtual private network,VPN)技术就是通过隧道技术在公共数据网络上虚拟出的一条点到点的专有网络的技术。VPN的基本原理是利用隧道(tunneling)技术将VPN报文封装在隧道中,利用VPN骨干网建立专用数据传输通道,实现报文的透明传输。Virtual private network (Virtual Private Network, VPN) technology is the technology of a point-to-point private network virtualized on the public data network through the tunnel technology. The basic principle of VPN is to use tunneling technology to encapsulate VPN packets in a tunnel, and use VPN backbone network to establish a dedicated data transmission channel to achieve transparent transmission of packets.
图1为现有技术提供的一个虚拟专用网的简化结构示例图。假定某个机构在两个相隔较远的不同地点建立了专用网A和专用网B,专用网A的网络地址为专用地址10.1.0.0。专用网B的网络地址为专用地址10.2.0.0。专用网A和专用网B之间需要通过公用的因特网构成一个VPN。FIG. 1 is a simplified structural example diagram of a virtual private network provided by the prior art. Suppose that an organization has established private network A and private network B in two different locations far apart, and the network address of private network A is private address 10.1.0.0. The network address of the private network B is the private address 10.2.0.0. A VPN needs to be formed between the private network A and the private network B through the public Internet.
如图1所示,假设主机X的地址为10.1.0.1,主机Y的地址为10.2.0.3。若主机X向主机Y发送IP数据报,IP数据报的源地址是10.1.0.1,IP数据报的目的地址是10.2.0.3。这个IP数据报先作为本地机构的内部数据报从主机X发送到与因特网连接的路由器R1。路由器R1收到内部数据报后,发现内部数据报的目的网络通过因特网才能到达,将内部数据报进行加密(保证了内部数据报的安全),然后重新加上数据报的首部,封装成为在因特网上发送的外部数据报,外部数据报的源地址是路由器R1的全球地址125.1.2.3,外部数据报的目的地址是路由器R2的全球地址194.4.5.6。路由器R2收到外部数据报后将其数据部分取出进行解密,恢复出原来的内部数据报,内部数据报的目的地址是10.2.0.3,根据内部数据报的目的地址将内部数据报转发给主机Y。需要说明的是,外部数据报从路由器R1传输到路由器R2可能需要经过因特网中的很多个网络和路由器,但从逻辑上看,在路由器R1到路由器R2之间好像是一通直通的点对点链路,即VPN隧道。As shown in Figure 1, assume that the address of host X is 10.1.0.1 and the address of host Y is 10.2.0.3. If host X sends an IP datagram to host Y, the source address of the IP datagram is 10.1.0.1 and the destination address of the IP datagram is 10.2.0.3. This IP datagram is first sent from the host X to the router R1 connected to the Internet as an internal datagram of the local organization. After receiving the internal datagram, router R1 finds that the destination network of the internal datagram can only be reached through the Internet, encrypts the internal datagram (to ensure the security of the internal datagram), and then adds the header of the datagram again, encapsulating it into the Internet In the external datagram sent on the Internet, the source address of the external datagram is the global address of router R1 125.1.2.3, and the destination address of the external datagram is the global address of router R2 194.4.5.6. After receiving the external datagram, router R2 takes out part of its data and decrypts it to recover the original internal datagram. The destination address of the internal datagram is 10.2.0.3. The internal datagram is forwarded to host Y based on the destination address of the internal datagram. . It should be noted that the transmission of external datagrams from router R1 to router R2 may need to pass through many networks and routers in the Internet, but logically, it seems that there is a straight-through point-to-point link between router R1 and router R2. That is VPN tunnel.
多协议标签交换(multi-protocol label switching,MPLS)是一种支持多种网络层协议的快速转发技术,由因特网工程任务组(Internet Engineering Task Force,IETF)提出的IP高速骨干网交换标准。用于快速数据包交换和路由的体系,它为网络数据流量提供了目标、路由地址、转发和交换等能力。Multi-protocol label switching (MPLS) is a fast forwarding technology that supports multiple network layer protocols. It is an IP high-speed backbone network switching standard proposed by the Internet Engineering Task Force (IETF). It is a system used for rapid packet exchange and routing. It provides destination, routing address, forwarding, and switching capabilities for network data traffic.
传统的VPN一般是通过通用路由封装(Generic Routing Encapsulation,GRE)协议、二层隧道协议(Layer 2 Tunneling Protocol,L2TP)、点到点隧道协议(point to point tunneling protocol,PPTP)、Internet协议安全性(Internet Protocol Security,IPSec)协议等隧道协议来实现私有网络间数据流在公网上的传送。MPLS VPN是通过将私有网络的不同分支联结起来,形成一个统一的网络。Traditional VPNs generally use Generic Routing Encapsulation (GRE) protocol, Layer 2 tunneling protocol (Layer 2 Tunneling Protocol, L2TP), point-to-point tunneling protocol (point to point tunneling protocol, PPTP), Internet protocol security (InternetProtocolSecurity, IPSec) protocol and other tunnel protocols to achieve the transmission of data flow between private networks on the public network. MPLS VPN connects different branches of the private network to form a unified network.
VPN的IP路由可以是指VPN-IPv4路由。所谓VPN就是一个由若干个站点组成的集合。例如,公司总部、分支机构都是站点。BGP/MPLS VPN包括用户网边缘(customer edge,CE)路由器、骨干网边缘(provider edge,PE)路由器和骨干网核心(provider,P)路由器。PE路由器是BGP/MPLS VPN的主要实现者。P路由器负责MPLS转发。骨干网PE路由器和P路由器之间运行公网内部网关协议(InteriorGateway Protocol,IGP)、公网内部边界网关协议(Internal Border Gateway Protocol,IBGP),且配置MPLS LSP,用于MPLS域标签转发。CE路由器与PE路由器之间运行外部边界网关协议(External Border Gateway Protocol,EBGP)。CE路由器是站点 入口,不同VPN之间是隔离通信的。VPN IP routing may refer to VPN-IPv4 routing. The so-called VPN is a collection of several sites. For example, company headquarters and branch offices are sites. BGP / MPLS VPN includes customer network edge (customer edge, CE) router, backbone network edge (provider edge, PE) router and backbone network core (provider, P) router. PE router is the main implementer of BGP / MPLS VPN. The P router is responsible for MPLS forwarding. The backbone network PE router and P router run the public network internal gateway protocol (Interior Gateway Protocol (IGP), public network internal border gateway protocol (Internal, Border Gateway Protocol, IBGP), and configure MPLS LSP for MPLS domain label forwarding. The external border gateway protocol (External Border Gateway Protocol, EBGP) runs between the CE router and the PE router. The CE router is the entrance to the site, and communication between different VPNs is isolated.
图2为现有技术提供的一种BGP/MPLS VPN网络的简化结构示例图。骨干网包括PE路由器1、PE路由器2和P路由器。PE路由器1连接CE路由器1和CE路由器3。CE路由器1是VPN1的用户侧网边缘路由器。CE路由器3是VPN2的用户侧网边缘路由器。PE路由器2连接CE路由器2和CE路由器4。CE路由器2是VPN1的用户侧网边缘路由器。CE路由器4是VPN2的用户侧网边缘路由器。站点1和站点2属于VPN1,站点3属于VPN2。在转发IP数据报之前,PE路由器需要先进行路由学习,然后PE路由器才能基于学习的路由进行IP数据报的转发。Figure 2 is a simplified structural example of a BGP / MPLS VPN network provided by the prior art. The backbone network includes PE router 1, PE router 2, and P router. PE router 1 is connected to CE router 1 and CE router 3. CE Router 1 is the user-side edge router of VPN1. CE router 3 is the user-side edge router of VPN2. PE router 2 connects CE router 2 and CE router 4. CE router 2 is the user-side edge router of VPN1. CE router 4 is the user-side edge router of VPN2. Site 1 and site 2 belong to VPN1, and site 3 belongs to VPN2. Before forwarding IP datagrams, the PE router needs to perform route learning, and then the PE router can forward the IP datagram based on the learned route.
下面对路由学习的过程进行简单介绍。当CE路由器2从站点2上根据BGP/EBGP协议学习到VPN1的路由,CE路由器2和PE路由器2间建立EBGP,CE路由器2利用EBGP将VPN1的路由从CE路由器2传递给PE路由器2。假设VPN1的路由为10.1/16。PE路由器2接收到路由10.1/16之后,根据PE路由器2的接口绑定的VPN实例,将路由10.1/16保存到VPN实例对应的虚拟路由转发(VPN routing and forwarding,VRF)表中,并为路由10.1/16分配VPN标签,VPN标签也就是内层标签。如表1所示,路由学习过程中出口(egress)PE路由器上的VRF表结构示例图。The following is a brief introduction to the route learning process. When CE router 2 learns the route of VPN1 from site 2 according to the BGP / EBGP protocol, EBGP is established between CE router 2 and PE router 2, and CE router 2 uses EBGP to transfer the route of VPN1 from CE router 2 to PE router 2. Assume that the route of VPN1 is 10.1 / 16. After PE router 2 receives the route 10.1 / 16, according to the VPN instance bound to the interface of PE router 2, the route 10.1 / 16 is saved in the virtual routing forwarding (VPN routing and forwarding, VRF) table corresponding to the VPN instance, and is Route 10.1 / 16 is assigned a VPN label, and the VPN label is the inner label. As shown in Table 1, an example diagram of the structure of the VRF table on the egress PE router during the route learning process.
表1Table 1
Figure PCTCN2019117251-appb-000001
Figure PCTCN2019117251-appb-000001
PE路由器2根据与PE路由器1之间的IBGP路由协议将路由10.1/16保存到BGP路由表中,并向PE路由器1转发与路由10.1/16相关的其他信息,如路由10.1/16的VPN标签、路由标志(route distinguisher,RD)和输出路由目标(export routing target,export RT)。其中,由于公网无法区分多个VPN下相同的路由前缀,RD用于标识PE路由器上不同的VPN实例。RT用于PE路由器收到不同VPN的IP路由后区分下发给哪个VRF表。RT是BGP中的扩展团体属性,标签的生成由RT完成,PE路由器依靠RT属性区分不同VPN之间路由,当从VRF表中导出VPN的IP路由,并将VPN的IP路由进行封装发送时,要用export RT对VPN的IP路由进行标记。当往VRF表中保存VPN的IP路由时,只有所带RT标记与VRF表中任意一个输入路由目标(import RT)相符的路由才会被保存到VRF表中。PE router 2 saves route 10.1 / 16 to the BGP routing table according to the IBGP routing protocol with PE router 1, and forwards other information related to route 10.1 / 16 to PE router 1, such as the VPN label for route 10.1 / 16 , Routing flag (routedistinguisher, RD) and output routing target (export routing target, export RT). Among them, because the public network cannot distinguish the same routing prefix under multiple VPNs, RD is used to identify different VPN instances on the PE router. RT is used by PE routers to distinguish which VRF table to send to after receiving IP routes of different VPNs. RT is an extended community attribute in BGP. The generation of labels is performed by RT. The PE router relies on the RT attribute to distinguish routes between different VPNs. When exporting VPN IP routes from the VRF table and encapsulating and sending VPN IP routes Use export RT to mark VPN IP routes. When saving VPN IP routes in the VRF table, only the routes with the RT tag that matches any of the input route targets (import RT) in the VRF table will be saved in the VRF table.
路由10.1/16到达PE路由器1后,PE路由器1上存储有多个VRF表,PE路由器 1根据export RT在多个VRF表中查找,找到与路由10.1/16的export RT相匹配的import RT,并将路由10.1/16保存到包括与export RT相匹配的import RT的VRF表中。此时,剥去RD以及携带的VPN标签。如表2所示,路由学习过程中入口(import)PE路由器上的VRF表结构示例图。After route 10.1 / 16 reaches PE router 1, PE router 1 stores multiple VRF tables. PE router 1 searches in multiple VRF tables based on the export RT to find the import RT that matches the export RT of route 10.1 / 16. And save the route 10.1 / 16 to the VRF table that includes the import RT that matches the export RT. At this time, the RD and the carried VPN label are stripped. As shown in Table 2, an example diagram of the structure of the VRF table imported on the PE router during the route learning process.
表2Table 2
Figure PCTCN2019117251-appb-000002
Figure PCTCN2019117251-appb-000002
PE路由器1再利用EBGP协议将路由10.1/16从PE路由器1传递给CE路由器1,CE路由器1将从EBGP路由学到的路由10.1/16存储到IGP表中。 PE router 1 uses the EBGP protocol to transfer route 10.1 / 16 from PE router 1 to CE router 1. CE router 1 stores the route 10.1 / 16 learned from the EBGP route into the IGP table.
需要说明的是,属于同一个VPN的两个站点之间转发数据报使用两层标签,即在本端PE路由器上为报文打上内层标签和外层标签。It should be noted that the forwarding of datagrams between two sites belonging to the same VPN uses a two-layer label, that is, the inner PE label and the outer label are marked on the local PE router.
外层标签用于在骨干网内部进行交换,指示从本端PE路由器到对端PE路由器的一条LSP。IP数据报利用外层标签可以沿LSP到达对端PE路由器。骨干网隧道可以是LSP隧道、MPLS流量工程(traffic engineering,TE)隧道或通用路由封装(generic routing encapsulation,GRE)隧道。当骨干网隧道为LSP隧道或MPLS TE隧道时,骨干网标签为MPLS LSP标签(MPLS TE隧道的CR-LSP也是采用LSP标签)。当骨干网隧道为GRE隧道时,骨干网标签为GRE封装。The outer label is used for switching within the backbone network and indicates an LSP from the local PE router to the peer PE router. IP datagrams can use the outer label to reach the peer PE router along the LSP. The backbone network tunnel may be an LSP tunnel, an MPLS traffic engineering (TE) tunnel, or a general routing encapsulation (GRE) tunnel. When the backbone network tunnel is an LSP tunnel or an MPLS TE tunnel, the backbone network label is an MPLS LSP label (the CR-LSP of an MPLS TE tunnel also uses an LSP label). When the backbone network tunnel is a GRE tunnel, the backbone network label is GRE encapsulated.
内层(私网)标签用于在IP数据报从对端PE路由器到达对端CE路由器时使用,指示报文应该被送到哪个站点,即为不同路由或不同VPN实例所分配的私网路由标签。具体的,当PE路由器之间已在通过MP-BGP相互发布VPN的IP路由时,会将本端所学习的每个私网VPN的IP路由所分配的私网标签通告给了对端PE路由器,这样对端PE路由器根据IP数据报中所携带的私网标签可以找确定报文所属的VPN实例,然后再通过查找该VPN实例的路由表,将IP数据报正确地转发到相应的站点。The inner (private network) label is used when the IP datagram travels from the peer PE router to the peer CE router, indicating which site the packet should be sent to, that is, the private network route allocated for different routes or different VPN instances label. Specifically, when PE routers have mutually advertised VPN IP routes through MP-BGP, the private network label assigned by each private network VPN IP route learned by the local end will be notified to the peer PE router In this way, the peer PE router can find the VPN instance to which the packet belongs according to the private network label carried in the IP datagram, and then forward the IP datagram to the corresponding site by searching the routing table of the VPN instance.
假设站点1发出一个目的地址为10.1.1.1的IP数据报,CE路由器1将IP数据报发送至PE路由器1;PE路由器1收到IP数据报后,根据入接口判断出所属VPN实例,在VPN实例对应的VRF表中查找到路由10.1/16,匹配后打上VPN标签,同时PE路由器1作为MPLS域的LSR,还要再封装上一层LSP标签;IP数据报携带两层标签经过MPLS VPN骨干网,在P路由器上不断地交换外层的LSP标签,IP数据报到达PE路由器2时只剩下内层标签;PE路由器2根据VPN标签和目的地址找到对应的出接口,将IP数据报发送给CE路由器2,CE路由器2再根据正常的IP转发流程, 将IP数据报送到目的地。Suppose that Site 1 sends out an IP datagram with a destination address of 10.1.1.1, and CE router 1 sends the IP datagram to PE router 1. After PE router 1 receives the IP datagram, it determines the VPN instance it belongs to based on the incoming interface. In the VRF table corresponding to the example, the route 10.1 / 16 is found. After matching, the VPN label is added. At the same time, PE router 1 serves as the LSR of the MPLS domain, and another layer of LSP label is encapsulated; the IP datagram carries two layers of labels through the MPLS VPN backbone In the network, the outer LSP label is continuously exchanged on the P router. When the IP datagram reaches PE router 2, only the inner label is left; PE router 2 finds the corresponding outgoing interface according to the VPN label and the destination address, and sends the IP datagram To CE router 2, CE router 2 then sends the IP datagram to the destination according to the normal IP forwarding process.
城域网的典型结构是三层模型:核心层、汇聚层和接入层。为了在分层结构网络中部署VPN功能,BGP/MPLS VPN要从平面模型转变为分层模型,因此产生了层次化VPN(hierarchy VPN,HVPN)结构。核心层包括网络侧边缘(network provider edge,NPE)路由器。汇聚层包括运营商侧边缘(service provider-end edge,SPE)路由器。接入层包括用户侧边缘(user provider-end edge,UPE)路由器。图3为现有技术提供的一种HVPN的简化结构示例图。The typical structure of a metropolitan area network is a three-layer model: core layer, convergence layer and access layer. In order to deploy VPN functions in a hierarchical structure network, BGP / MPLS VPN must be changed from a flat model to a hierarchical model, so a hierarchical VPN (hierarchy VPN, HVPN) structure is generated. The core layer includes network side edge (network provider edge, NPE) routers. The convergence layer includes service provider-end edge (SPE) routers. The access layer includes a user-side edge (UPE) router. FIG. 3 is a simplified structural example diagram of an HVPN provided by the prior art.
默认路由(default route)是一种特殊的静态路由,指的是当路由表中与IP数据报的目的地址之间没有匹配的表项时路由器所选择的路由。为了减小UPE路由器存储路由信息的压力,SPE路由器可以仅向UPE路由器发布默认路由,UPE路由器只维护用户侧路由无需维护网络侧路由。在这种情况下,可以将该HVPN的实现方式称为HoVPN(hierarchy of VPN)。The default route is a special static route, which refers to the route selected by the router when there is no matching entry in the routing table and the destination address of the IP datagram. In order to reduce the pressure on UPE routers to store routing information, SPE routers can only publish default routes to UPE routers. UPE routers only maintain user-side routes and do not need to maintain network-side routes. In this case, the HVPN implementation can be called HoVPN (hierarchy of VPN).
组播VPN(multicast VPN,MVPN)通过对私网组播报文进行封装,并将私网组播报文由各站点间建立的组播隧道进行传递,以完成组播数据在私网之间的传送。Multicast VPN (multicast VPN, MVPN) encapsulates private network multicast packets and transmits the private network multicast packets through the multicast tunnels established between the sites to complete the multicast data between the private networks Transmission.
NG MVPN是IP组播数据流量穿越BGP/MPLS VPN网络的新一代框架,使用BGP来传递私网组播协议报文和私网组播路由,简化了网络部署复杂度,降低了网络维护难度,使组播和单播业务在同一个VPN架构中。在HoVPN中,由于SPE路由器仅向UPE路由器发送默认路由,NPE路由器发送的VPN的IP路由对应的组播相关信息无法传递给UPE路由器,UPE路由器无法学习到源的VPN的IP路由以及VPN的IP路由对应的组播信息。但是,运行NGMVPN协议需要使用VPN的IP路由及VPN的IP路由对应的组播信息,这样就影响了NGMVPN的正常运行。NG MVPN is a new generation framework for IP multicast data traffic traversing BGP / MPLS VPN networks. BGP is used to transfer private network multicast protocol packets and private network multicast routes, which simplifies the network deployment complexity and reduces the difficulty of network maintenance. Make multicast and unicast services in the same VPN architecture. In HoVPN, since the SPE router only sends the default route to the UPE router, the multicast-related information corresponding to the VPN IP route sent by the NPE router cannot be passed to the UPE router, and the UPE router cannot learn the source VPN IP route and VPN IP Multicast information corresponding to the route. However, running the NGMVPN protocol requires the use of VPN IP routing and the multicast information corresponding to the VPN IP routing, which affects the normal operation of NGMVPN.
为了解决上述问题,本申请实施例提供了一种获取路由信息的方法,其基本原理是:SPE接收到包括第一RT和第一import-RT扩展团体属性的第一报文之后,根据第一RT将第一import-RT扩展团体属性存储到import-RT集合,import-RT集合包括第一RT以及与第一RT对应的M个import-RT扩展团体属性,M个import-RT扩展团体属性包括第一import-RT扩展团体属性,M为大于或等于1的整数;再向UPE发送第二报文,第二报文包括第一RT、所述M个import-RT扩展团体属性和与第一RT对应的默认路由。UPE接收到第二报文之后,根据与第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由生成默认路由与M个import-RT扩展团体属性的对应关系,并且UPE根据与默认路由对应的M个import-RT扩展团体属性中选取一个import-RT扩展团体属性发送给SPE。本申请实施例提供的获取路由信息的方法,通过上述方法可以在HoVPN场景下使用NGMVPN技术。In order to solve the above problems, the embodiments of the present application provide a method for obtaining routing information. The basic principle is that after the SPE receives the first packet including the first RT and the first import-RT extended community attribute, the SPE RT stores the first import-RT extended community attributes to the import-RT set. The import-RT set includes the first RT and the M import-RT extended community attributes corresponding to the first RT. The M import-RT extended community attributes include The first import-RT extended community attribute, M is an integer greater than or equal to 1; then send a second packet to the UPE, the second packet includes the first RT, the M import-RT extended community attributes and the first The default route corresponding to RT. After receiving the second message, the UPE generates the correspondence between the default route and the M import-RT extended community attributes based on the M import-RT extended community attributes corresponding to the first RT and the default route corresponding to the first RT, and The UPE selects one import-RT extended community attribute from the M import-RT extended community attributes corresponding to the default route and sends it to the SPE. The method for obtaining routing information provided by the embodiment of the present application can use the NGMVPN technology in a HoVPN scenario through the above method.
本申请说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。The terms “first”, “second” and “third” in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, not to define a specific order.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or explanations. Any embodiments or design solutions described as “exemplary” or “for example” in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific manner.
下面将结合附图对本申请实施例的实施方式进行详细描述。The implementation of the embodiments of the present application will be described in detail below with reference to the drawings.
图4为本申请实施例提供的一种HoVPN的简化结构示例图。SPE路由器分别连接NPE路由器1、NPE路由器2和UPE路由器。为例方便起见,将UPE路由器简称为UPE。SPE路由器简称为SPE。NPE路由器1简称为NPE1。如图5所示,本申请实施例提供的一种获取路由信息的方法的流程图,该方法可以包括:FIG. 4 is a simplified structural example diagram of a HoVPN provided by an embodiment of the present application. SPE routers are connected to NPE router 1, NPE router 2 and UPE router respectively. For convenience, the UPE router is referred to as UPE for convenience. The SPE router is called SPE for short. NPE router 1 is abbreviated as NPE1. As shown in FIG. 5, a flowchart of a method for obtaining routing information provided by an embodiment of the present application, the method may include:
S501、SPE接收第一报文。S501. The SPE receives the first message.
SPE接收NPE1发送的第一报文。SPE为NPE1的BGP邻居。第一报文可以包括VPN的IP路由、第一RT和第一import-RT扩展团体属性。第一报文可以是BGP协议规定的更新(update)报文。更新报文包括网络层可达性信息(network layer reachability information,NLRI)字段和扩展团体属性字段。VPN的IP路由可以位于NLRI字段。第一RT和第一import-RT扩展团体属性可以位于扩展团体属性字段。第一RT用于确定接收第一报文的VPN。在下文中,假设VPN的IP路由为第一VPN的IP路由,第一RT用于标识第一VPN。第一RT可以是对应第一VPN的VRF表中包括的export RT。对应第一VPN的VRF表可以存储在NPE1上。对应第一VPN的VRF表可以简称为VRF1。import-RT扩展团体属性包括全局管理标识(global administrator field)和本地管理标识(local administrator field)。全局管理标识用于表示PE在网络中的唯一标识。本地管理标识用于表示PE上VPN的唯一标识。假设对应第一VPN的VRF表中包括的export RT可以为(1:1)。NPE1的import-RT扩展团体属性可以为<3.3.3.3:5>。其中,3.3.3.3表示全局管理标识,5表示本地管理标识。NPE2的import-RT扩展团体属性可以为<4.4.4.4:2>。其中,4.4.4.4表示全局管理标识,2表示本地管理标识。需要说明的是,扩展团体属性用于组播信息交叉。可理解的,SPE根据import-RT扩展团体属性包括的全局管理标识确认接收组播信息,根据import-RT扩展团体属性包括的本地管理标识确认交叉到VPN的VRF表下,建立组播表项,当此VPN有对应组播流量时,VPN按照已建立的P2MP隧道转发。另外,同一个VPN的IP路由对应的RT相同。可选的,第一报文可以包括多个RT。import-RT在本申请实施例中,下文中所述的报文均指更新报文。The SPE receives the first message sent by NPE1. SPE is the BGP neighbor of NPE1. The first packet may include the IP route of the VPN, the first RT, and the first import-RT extended community attribute. The first message may be an update message specified by the BGP protocol. The update message includes the network layer reachability information (NLRI) field and the extended community attribute field. The IP route of the VPN can be located in the NLRI field. The first RT and the first import-RT extended community attribute may be located in the extended community attribute field. The first RT is used to determine the VPN to receive the first packet. In the following, it is assumed that the IP route of the VPN is the IP route of the first VPN, and the first RT is used to identify the first VPN. The first RT may be an export RT included in the VRF table corresponding to the first VPN. The VRF table corresponding to the first VPN may be stored on NPE1. The VRF table corresponding to the first VPN may be referred to as VRF1 for short. The import-RT extended community attributes include the global administrator ID (global administrator field) and the local administrator ID (local administrator field). The global management identifier is used to represent the unique identifier of the PE in the network. The local management identifier is used to represent the unique identifier of the VPN on the PE. It is assumed that the export RT included in the VRF table corresponding to the first VPN may be (1: 1). NPE1's import-RT extended community attribute can be <3.3.3.3:5>. Among them, 3.3.3.3 represents the global management logo, and 5 represents the local management logo. The import-RT extended community attribute of NPE2 can be <4.4.4.4:2>. Among them, 4.4.4.4 represents the global management ID, and 2 represents the local management ID. It should be noted that the extended community attribute is used for multicast information crossover. Understandably, SPE confirms the reception of multicast information according to the global management identifier included in the import-RT extended community attribute, confirms the crossover to the VPN's VRF table according to the local management identifier included in the import-RT extended community attribute, and establishes multicast entries. When this VPN has corresponding multicast traffic, the VPN forwards according to the established P2MP tunnel. In addition, the IP corresponding to the same VPN has the same RT. Optionally, the first message may include multiple RTs. import-RT In the embodiments of the present application, the messages described below all refer to update messages.
S502、SPE根据第一RT将第一import-RT扩展团体属性存储到import-RT集合。S502. The SPE stores the first import-RT extended community attribute to the import-RT set according to the first RT.
import-RT集合包括第一RT以及与第一RT对应的M个import-RT扩展团体属性,其中,M个import-RT扩展团体属性包括第一import-RT扩展团体属性,M为大于或等于1的整数。M个import-RT扩展团体属性还可以包括SPE通过其他报文接收到的第一RT对应的import-RT扩展团体属性。The import-RT set includes the first RT and the M import-RT extended community attributes corresponding to the first RT, where the M import-RT extended community attributes include the first import-RT extended community attribute, and M is greater than or equal to 1. Integer. The M import-RT extended community attributes may also include the import-RT extended community attributes corresponding to the first RT received by the SPE through other messages.
可选的,import-RT集合还可以包括其他取值的RT,其他取值的RT中每个RT可以对应至少一个import-RT扩展团体属性。可理解的,RT可以是import-RT集合的索引。SPE接收到VPN的IP路由、第一RT和第一import-RT扩展团体属性之后,根据第一RT在import-RT集合中查找,将第一import-RT扩展团体属性存储到第一RT索引下。Optionally, the import-RT set may also include other valued RTs, and each RT in the other valued RTs may correspond to at least one import-RT extended community attribute. Understandably, RT may be an index of the import-RT set. After receiving the VPN IP route, the first RT and the first import-RT extended community attribute, the SPE searches the import-RT set according to the first RT and stores the first import-RT extended community attribute under the first RT index .
S503、SPE发送第二报文。S503. The SPE sends a second message.
SPE根据第一RT将第一import-RT扩展团体属性存储到import-RT集合之后,向UPE发送第二报文,其中,第二报文包括第一RT、与第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由。After storing the first import-RT extended community attribute in the import-RT set according to the first RT, the SPE sends a second message to the UPE, where the second message includes the first RT and M imports corresponding to the first RT -RT extended community attribute and default route corresponding to the first RT.
需要说明的是,第一RT可以用于确定接收第一报文的VPN为第一VPN。管理员可以为第一VPN内与SPE相邻的所有BGP邻居配置默认路由,因此,与第一RT对应的默认路由为对应第一VPN的默认路由。在本申请实施例中,SPE向UPE发送第二报文中的UPE指的是与SPE相邻的所有BGP邻居,与SPE相邻的所有BGP邻居可以是一个也可以是两个或两个以上。若与SPE相邻的所有BGP邻居是一个UPE,SPE可以向该一个UPE发送第二报文;若与SPE相邻的所有BGP邻居是两个或两个以上UPE,SPE可以向该两个或两个以上UPE发送第二报文。需要说明的是,一个默认路由对应一个VPN。可理解的,SPE需要针对不同的VPN发送一个默认路由。It should be noted that the first RT may be used to determine that the VPN that receives the first packet is the first VPN. The administrator can configure a default route for all BGP neighbors adjacent to the SPE in the first VPN. Therefore, the default route corresponding to the first RT is the default route corresponding to the first VPN. In the embodiment of the present application, the UPE in the second message sent by the SPE to the UPE refers to all BGP neighbors adjacent to the SPE, and all BGP neighbors adjacent to the SPE may be one or two or more than two . If all BGP neighbors adjacent to the SPE are one UPE, the SPE can send a second packet to the one UPE; if all BGP neighbors adjacent to the SPE are two or more UPEs, the SPE can send the two or More than two UPEs send the second message. It should be noted that one default route corresponds to one VPN. Understandably, SPE needs to send a default route for different VPNs.
S504、UPE接收第二报文。S504. The UPE receives the second message.
S505、UPE根据与第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由生成默认路由与M个import-RT扩展团体属性的对应关系。S505. The UPE generates a correspondence between the default route and the M import-RT extended community attributes according to the M import-RT extended community attributes corresponding to the first RT and the default route corresponding to the first RT.
示例的,可以使用列表结构存储,列表使用import-RT标识作为键值,便于查找列表中的内容。如表3所示,默认路由与import-RT扩展团体属性的对应关系。For example, you can use a list structure to store, the list uses the import-RT logo as a key value, which is convenient for finding the content in the list. As shown in Table 3, the correspondence between the default route and the import-RT extended community attribute.
表3table 3
Figure PCTCN2019117251-appb-000003
Figure PCTCN2019117251-appb-000003
从而,SPE将第一RT、与第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由传递给UPE,由于第一RT用于标识第一VPN,默认路由为第一VPN的默认路由,使得UPE能够根据第一RT识别接收到的M个import-RT扩展团体属性。Therefore, the SPE passes the first RT, the M import-RT extended community attributes corresponding to the first RT, and the default route corresponding to the first RT to the UPE. Since the first RT is used to identify the first VPN, the default route is the first The default route of a VPN enables UPE to recognize the received M import-RT extended community attributes according to the first RT.
进一步的,在UPE根据与第一RT对应的M个import-RT扩展团体属性和与第一RT对应的默认路由生成默认路由与M个import-RT扩展团体属性的对应关系,即S505之后,如图6所示,本申请实施例还包括以下步骤。Further, after the UPE generates the correspondence between the default route and the M import-RT extended community attributes based on the M import-RT extended community attributes corresponding to the first RT and the default route corresponding to the first RT, that is, after S505, such as As shown in FIG. 6, the embodiment of the present application further includes the following steps.
S601、UPE根据第一RT将默认路由保存到VRF表。S601. UPE saves the default route to the VRF table according to the first RT.
UPE根据第一RT在多个VRF表中查找与第一RT相匹配的import-RT,查找到包括与第一RT相匹配的import-RT的VRF表之后,将默认路由保存到包括与第一RT相匹配的import-RT的VRF表中。UPE searches for import-RT matching the first RT in multiple VRF tables according to the first RT, and after finding the VRF table including the import-RT matching the first RT, saves the default route to include the first RT matches the import-RT VRF table.
S602、UPE获取第一VPN对应的组播表项和VRF表中的默认路由。S602. The UPE obtains the multicast entry corresponding to the first VPN and the default route in the VRF table.
组播表项可以通过协议无关组播(Protocol Independent Multicast,PIM)协议建立的。本申请实施例中所述的组播表项可以是指(S,G)路由表项。UPE根据PIM协议建立组播表项的具体方法可以参考现有技术,本申请实施例在此不再赘述。PIM协议表示可以利用静态路由或者任意单播路由协议所生成的单播路由表为IP组播提供路由。因此,若VPN内的站点需要接收组播流量,UPE可以获取VPN对应的(S,G)表项,(S,G)表项包括组播源和组播组,由于UPE还存储有相同的VPN对应的VRF表,UPE并可以通过相同VPN对应的VRF表获取单播路由,从而,利用单播路由来 获取组播源的组播流量。Multicast entries can be established through Protocol Independent Multicast (PIM) protocol. The multicast entries in the embodiments of the present application may refer to (S, G) routing entries. The specific method for the UPE to establish the multicast entry according to the PIM protocol can refer to the prior art, and the embodiments of the present application will not repeat them here. The PIM protocol indicates that a unicast routing table generated by a static route or any unicast routing protocol can be used to provide a route for IP multicast. Therefore, if a site in the VPN needs to receive multicast traffic, UPE can obtain the (S, G) entry corresponding to the VPN. The (S, G) entry includes the multicast source and the multicast group. Since the UPE also stores the same VRF table corresponding to VPN, UPE can also obtain unicast route through VRF table corresponding to the same VPN, so that unicast route can be used to obtain multicast traffic of multicast source.
若第一VPN内站点需要接收组播流量,UPE可以获取第一VPN的(S,G)表项中的组播源和组播组。由于第一VPN对应的VRF表中存储的单播路由是学习到的默认路由,UPE可以获取第一VPN对应的VRF表中的默认路由,从而,UPE利用默认路由来获取组播源的组播流量。If the site in the first VPN needs to receive multicast traffic, the UPE can obtain the multicast source and the multicast group in the (S, G) entry of the first VPN. Since the unicast route stored in the VRF table corresponding to the first VPN is the learned default route, UPE can obtain the default route in the VRF table corresponding to the first VPN, so that the UPE uses the default route to obtain the multicast of the multicast source flow.
S603、UPE根据与第一RT对应的默认路由获取与第一RT对应的M个import-RT扩展团体属性。S603. UPE obtains M import-RT extended community attributes corresponding to the first RT according to the default route corresponding to the first RT.
由于UPE预先存储有默认路由与M个import-RT扩展团体属性的对应关系,因此,UPE可以根据与第一RT对应的默认路由获取到与第一RT对应的M个import-RT扩展团体属性。Since the UPE pre-stores the correspondence between the default route and the M import-RT extended community attributes, the UPE can obtain the M import-RT extended community attributes corresponding to the first RT according to the default route corresponding to the first RT.
S604、UPE根据预设规则从M个import-RT扩展团体属性中确定第二import-RT扩展团体属性。S604. The UPE determines the second import-RT extended community attribute from the M import-RT extended community attributes according to a preset rule.
UPE根据预设规则从M个import-RT扩展团体属性中确定的第二import-RT扩展团体属性可以与SPE通过第一报文接收到的第一import-RT扩展团体属性相同,也可以不同。The second import-RT extended community attribute determined by the UPE from the M import-RT extended community attributes according to a preset rule may be the same as the first import-RT extended community attribute received by the SPE through the first message, or may be different.
示例的,UPE可以根据import-RT扩展团体属性包括的全局管理标识从M个import-RT扩展团体属性中确定一个import-RT扩展团体属性。例如,选取包括最小全局管理标识的import-RT扩展团体属性。或者,选取包括最大全局管理标识的import-RT扩展团体属性。本申请实施例对此不作限定。假设第一import-RT扩展团体属性为<3.3.3.3:5>,第二import-RT扩展团体属性<4.4.4.4:2>,UPE可以选取<3.3.3.3:5>。当然,也可以根据import-RT扩展团体属性包括的本地管理标识从M个import-RT扩展团体属性中确定一个import-RT扩展团体属性。For example, UPE may determine an import-RT extended community attribute from M import-RT extended community attributes according to the global management identifier included in the import-RT extended community attribute. For example, select the import-RT extended community attribute that includes the minimum global management ID. Or, select the import-RT extended community attribute that includes the largest global management ID. This embodiment of the present application does not limit this. Assuming that the first import-RT extended community attribute is <3.3.3.3:5> and the second import-RT extended community attribute is <4.4.4.4:2>, UPE can select <3.3.3.3:5>. Of course, an import-RT extended community attribute may also be determined from the M import-RT extended community attributes according to the local management identifier included in the import-RT extended community attribute.
S605、UPE发送第三报文。S605. UPE sends a third message.
第三报文包括第一import-RT扩展团体属性和组播信息。组播信息可以位于第三报文包括的NLRI字段。第一import-RT扩展团体属性可以位于第三报文包括的扩展团体属性字段。组播信息包括组播源和组播组。在本申请实施例中,假设组播信息为第一VPN的组播信息,组播信息包括第一VPN的组播源和组播组。在实际应用中,组播信息还可以包括RD和源自治系统(autonomous system,AS)。本申请实施例中所述的第三报文可以是指C组播路由(C-multicast)路由。The third message includes the first import-RT extended community attribute and multicast information. The multicast information may be located in the NLRI field included in the third message. The first import-RT extended community attribute may be located in the extended community attribute field included in the third message. Multicast information includes multicast sources and multicast groups. In the embodiment of the present application, it is assumed that the multicast information is the multicast information of the first VPN, and the multicast information includes the multicast source and the multicast group of the first VPN. In practical applications, multicast information may also include RD and source autonomous system (AS). The third packet described in the embodiment of the present application may refer to a C-multicast route.
S606、SPE接收第三报文。S606. The SPE receives the third message.
SPE接收到第三报文后,向与SPE相邻的BGP邻居NPE转发第三报文。NPE接收到组播信息后,查看第一import-RT扩展团体属性。假设第一import-RT扩展团体属性为<3.3.3.3:5>。NPE根据全局管理标识3.3.3.3确认接收组播信息,并根据本地管理标识5确认交叉到第一VPN的VRF表下,建立组播表项,当此第一VPN有对应组播流量时,将按照已建立的P2MP隧道转发。从而,当存在多个NPE时,接收到组播信息后的NPE可以识别组播信息是不是该由自己处理,以及组播信息应该交叉到自己的哪一个VRF表。After receiving the third message, the SPE forwards the third message to the BGP neighbor NPE adjacent to the SPE. After receiving the multicast information, the NPE checks the first import-RT extended community attribute. Assume that the first import-RT extended community attribute is <3.3.3.3:5>. The NPE confirms receiving the multicast information according to the global management identifier 3.3.3.3, and confirms to cross under the VRF table of the first VPN according to the local management identifier 5, and establishes a multicast entry. When the first VPN has corresponding multicast traffic, it will According to the established P2MP tunnel forwarding. Therefore, when there are multiple NPEs, the NPE after receiving the multicast information can identify whether the multicast information should be handled by itself, and which of its own VRF tables the multicast information should cross to.
UPE、SPE和NPE2之间的获取路由信息的方法可以参考上述对于UPE、SPE和NPE1之间传输获取路由信息的的阐述,本申请实施例对此不作限定。For the method for obtaining routing information between UPE, SPE, and NPE2, reference may be made to the above description on the transmission of obtaining routing information between UPE, SPE, and NPE1, which is not limited in the embodiments of the present application.
需要说明的是,当NPE发生故障时,需要撤销NPE学习到的VPN的IP路由,与NPE相邻的BGP邻居SPE感知到路由撤销后,刷新对应的import-RT集合,UPE更新import-RT集合后,重新计算优选属性发送C组播路由引流。It should be noted that when the NPE fails, the IP route of the VPN learned by the NPE needs to be revoked. After the SPE adjacent to the NPE senses that the route is revoked, the corresponding import-RT set is refreshed, and the UPE updates the import-RT set. After that, recalculate the preferred attributes and send C multicast routing traffic.
可选的,两个NPE也可以通过两个SPE与UPE链接,配置HoVPN并部署NGMVPN双根1+1保护场景。图7为本申请实施例提供的另一种HoVPN的简化结构示例图。SPE1分别连接NPE1和UPE1。SPE2分别连接NPE2和UPE2。SPE1与SPE2连接。UPE1与UPE2连接。NPE1与NPE2连接。Optionally, two NPEs can also be linked to UPE through two SPEs, configure HoVPN and deploy NGMVPN dual-root 1 + 1 protection scenarios. 7 is a schematic diagram of another simplified structure of HoVPN provided by an embodiment of the present application. SPE1 is connected to NPE1 and UPE1 respectively. SPE2 is connected to NPE2 and UPE2 respectively. SPE1 and SPE2 are connected. UPE1 is connected to UPE2. NPE1 and NPE2 are connected.
SPE1不仅可以收到NPE1发送的第一报文,也可以收到SPE2转发的NPE2发送的第二报文,第一报文包括第一VPN的IP路由、第一RT和第一import-RT扩展团体属性。第一RT可以为(1:1)。第一import-RT扩展团体属性可以为<3.3.3.3:5>。第二报文包括第一VPN的IP路由、第一RT和第二import-RT扩展团体属性。第二import-RT扩展团体属性可以为<4.4.4.4:2>。在SPE1接收到第一报文和第二报文之后,SPE1根据第一RT将第一import-RT扩展团体属性和第二import-RT扩展团体属性存储到import-RT集合,发送第三报文,第三报文包括第一RT、第一RT对应的Q个import-RT扩展团体属性和默认路由。同理,SPE2根据第一RT将第一import-RT扩展团体属性和第二import-RT扩展团体属性存储到import-RT集合,发送第四报文,第四报文包括第一RT、第一RT对应的Q个import-RT扩展团体属性和默认路由。Q为大于或等于1的整数。详细解释可以参考S502和S503的详细阐述,本申请实施例在此不再赘述。SPE1 can receive not only the first packet sent by NPE1, but also the second packet sent by NPE2 forwarded by SPE2. The first packet includes the IP routing of the first VPN, the first RT, and the first import-RT extension Group attributes. The first RT may be (1: 1). The first import-RT extended community attribute may be <3.3.3.3:5>. The second packet includes the IP route of the first VPN, the first RT and the second import-RT extended community attribute. The second import-RT extended community attribute may be <4.4.4.4:2>. After SPE1 receives the first message and the second message, SPE1 stores the first import-RT extended community attribute and the second import-RT extended community attribute to the import-RT set according to the first RT, and sends a third packet , The third packet includes the first RT, the Q import-RT extended community attributes and the default route corresponding to the first RT. Similarly, SPE2 stores the first import-RT extended community attribute and the second import-RT extended community attribute to the import-RT set according to the first RT, and sends a fourth packet, the fourth packet includes the first RT, the first Q import-RT extension community attributes and default routes corresponding to RT. Q is an integer greater than or equal to 1. For detailed explanations, reference may be made to the detailed explanations of S502 and S503, and the embodiments of the present application will not be repeated here.
在此双归SPE场景下,UPE1可以学习到两条下一跳不同的带有import-RT扩展团体属性的默认路由,默认路由可以形成快速重路由(fast reroute,FRR)。FRR是MPLS TE中实现网络局部保护的技术,只有速率在100Mbps以上的接口才支持FRR。FRR的切换速度可以达到50毫秒,能够最大程度减少网络故障时数据的丢失。In this dual-homing SPE scenario, UPE1 can learn two default routes with different next hops and import-RT extended community attributes. The default routes can form fast reroute (FRR). FRR is a technology that realizes partial network protection in MPLS TE. Only interfaces with a rate above 100Mbps support FRR. The switching speed of FRR can reach 50 milliseconds, which can minimize the loss of data during network failure.
UPE1接收到第三报文和第四报文,即接收到第一RT、第一RT对应的Q个import-RT扩展团体属性和默认路由之后,根据第一RT存储默认路由,并生成默认路由与Q个import-RT扩展团体属性的对应关系。详细解释可以参考S505和S601的详细阐述,本申请实施例在此不再赘述。需要说明的是,UPE1需要为每条带有import-RT扩展团体属性的默认路由生成默认路由与Q个import-RT扩展团体属性的对应关系。UPE1 receives the third packet and the fourth packet, that is, after receiving the first RT and the Q import-RT extended community attributes and the default route corresponding to the first RT, the default route is stored according to the first RT and a default route is generated Correspondence with Q import-RT extended community attributes. For detailed explanations, reference may be made to the detailed explanations of S505 and S601, and the embodiments of the present application will not be repeated here. It should be noted that UPE1 needs to generate a correspondence between the default route and the Q import-RT extended community attributes for each default route with the import-RT extended community attribute.
UPE1在生成C组播路由时查询到源或到单播路由为默认路由的FRR场景,每条默认路由通过策略优选import-RT扩展团体属性封装C组播路由发送。需要说明的是,两条VPN的IP路由选择的import-RT扩展团体属性要做排他处理。例如,可以先做主路径优选import-RT扩展团体属性操作,备份路径优选时要排除主路径优选的import-RT扩展团体属性,以保证选择两个不同的根,形成1+1保护场景。UPE1 queries the FRR scenario where the source or unicast route is the default route when generating the C multicast route. Each default route is encapsulated by the C-multicast route through the import-RT extended community attribute of policy optimization. It should be noted that the import-RT extended community attributes of the IP routing of the two VPNs should be treated exclusively. For example, the primary path preferred import-RT extended community attribute operation may be performed first. When the backup path is preferred, the primary path preferred import-RT extended community attribute shall be excluded to ensure that two different roots are selected to form a 1 + 1 protection scenario.
SPE1收到C组播路由转发给NPE1设备,NPE1和NPE2根据import-RT扩展团体属性确认均建立表项流量走对应P2MP隧道转发,UPE根据主备关系选收流量,即UPE收到两份一样的组播流量,然后数据路由的主备选择一份向CE转发,简单描述就是双收选发。详细步骤可以参考现有技术本申请实施例在此不再赘述。另外,UPE2、SPE2和NPE2的相关步骤可以参考上述UPE1、SPE1和NPE1的描述,本申请实施例在此不再赘述。SPE1 receives the C multicast route and forwards it to the NPE1 device. NPE1 and NPE2 confirm that both the entry-RT extended community attribute establishes the entry traffic and corresponds to the P2MP tunnel forwarding. UPE selectively receives the traffic according to the active-standby relationship, that is, UPE receives the same Multicast traffic, then the master and backup of the data routing choose a copy to forward to the CE, a simple description is the double-receiving and selective sending. For detailed steps, reference may be made to the prior art embodiments of the present application, and details are not described herein again. In addition, for the relevant steps of UPE2, SPE2, and NPE2, reference may be made to the descriptions of UPE1, SPE1, and NPE1, and the embodiments of the present application will not repeat them here.
上述本申请提供的实施例中,分别从SPE、UPE、以及SPE和UPE之间交互的角 度对本申请实施例提供的方法进行了介绍。可以理解的是,各个网元,例如SPE、UPE为了实现上述本申请实施例提供的方法中的各功能,SPE和UPE包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。In the above embodiments provided by the present application, the methods provided by the embodiments of the present application are introduced from the perspectives of SPE, UPE, and the interaction between SPE and UPE. It can be understood that, in order to implement various functions in the method provided by the embodiments of the present application, various network elements, such as SPE and UPE, include hardware structures and / or software modules corresponding to performing each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of the examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed by hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对SPE、UPE进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present application may divide the functional modules of the SPE and UPE according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or software function modules. It should be noted that the division of the modules in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
在采用对应各个功能划分各个功能模块的情况下,图8示出了上述和实施例中涉及的获取路由信息的装置的一种可能的组成示意图,该获取路由信息的装置能执行本申请各方法实施例中任一方法实施例中SPE所执行的步骤。如图8所示,所述获取路由信息的装置为SPE或支持SPE实现实施例中提供的方法的通信装置,例如该通信装置可以是芯片系统。该获取路由信息的装置可以包括:接收单元801、处理单元802和发送单元803。In the case where each functional module is divided according to each function, FIG. 8 shows a schematic diagram of a possible composition of the device for obtaining routing information mentioned above and in the embodiments, and the device for obtaining routing information can execute each method of the present application. The steps performed by the SPE in any of the method embodiments. As shown in FIG. 8, the device for obtaining routing information is SPE or a communication device that supports SPE to implement the method provided in the embodiment. For example, the communication device may be a chip system. The device for obtaining routing information may include a receiving unit 801, a processing unit 802, and a sending unit 803.
其中,接收单元801,用于支持获取路由信息的装置执行本申请实施例中描述的方法。例如,接收单元801,用于执行或用于支持获取路由信息的装置执行图5所示的获取路由信息的方法中的S501,图6所示的获取路由信息的方法中的S501和S606。Among them, the receiving unit 801 is used to support a device for obtaining routing information to execute the method described in the embodiments of the present application. For example, the receiving unit 801, the device for performing or for supporting obtaining routing information executes S501 in the method for obtaining routing information shown in FIG. 5, and S501 and S606 in the method for obtaining routing information shown in FIG. 6.
处理单元802,用于执行或用于支持获取路由信息的装置执行图5所示的获取路由信息的方法中的S502,图6所示的获取路由信息的方法中的S502。The processing unit 802 is configured to execute or support an apparatus for acquiring routing information to execute S502 in the method for acquiring routing information shown in FIG. 5 and S502 in the method for acquiring routing information shown in FIG. 6.
发送单元803,用于执行或用于支持获取路由信息的装置执行图5所示的获取路由信息的方法中的S503,图6所示的获取路由信息的方法中的S503。The sending unit 803 is configured to perform or support an apparatus for acquiring routing information to execute S503 in the method for acquiring routing information shown in FIG. 5 and S503 in the method for acquiring routing information shown in FIG. 6.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the above method embodiments can be referred to the function description of the corresponding function module, which will not be repeated here.
本申请实施例提供的获取路由信息的装置,用于执行上述任意实施例的方法,因此可以达到与上述实施例的方法相同的效果。The apparatus for obtaining routing information provided by the embodiments of the present application is used to execute the method of any of the above embodiments, and therefore can achieve the same effect as the method of the above embodiments.
在采用对应各个功能划分各个功能模块的情况下,图9示出了上述和实施例中涉及的获取路由信息的装置的一种可能的组成示意图,该获取路由信息的装置能执行本申请各方法实施例中任一方法实施例中UPE所执行的步骤。如图9所示,所述获取路由信息的装置为UPE或支持UPE实现实施例中提供的方法的通信装置,例如该通信装置可以是芯片系统。该获取路由信息的装置可以包括:接收单元901和处理单元902。In the case where each functional module is divided corresponding to each function, FIG. 9 shows a schematic diagram of a possible composition of the device for obtaining routing information mentioned above and in the embodiment, and the device for obtaining routing information can execute each method of the present application. The steps performed by the UPE in any method embodiment of the embodiments. As shown in FIG. 9, the device for obtaining routing information is UPE or a communication device supporting UPE to implement the method provided in the embodiment, for example, the communication device may be a chip system. The device for obtaining routing information may include a receiving unit 901 and a processing unit 902.
其中,接收单元901,用于支持获取路由信息的装置执行本申请实施例中描述的方法。例如,接收单元901,用于执行或用于支持获取路由信息的装置执行图5所示的获取路由信息的方法中的S504,图6所示的获取路由信息的方法中的S504。Among them, the receiving unit 901 is used to support the device for obtaining routing information to execute the method described in the embodiments of the present application. For example, the receiving unit 901, the device for performing or for supporting obtaining routing information executes S504 in the method for obtaining routing information shown in FIG. 5, and S504 in the method for obtaining the routing information shown in FIG. 6.
处理单元902,用于执行或用于支持获取路由信息的装置执行图5所示的获取路由信息的方法中的S505,图6所示的获取路由信息的方法中的S505以及S601~S604。The processing unit 902 is configured to execute or support an apparatus for acquiring routing information to execute S505 in the method for acquiring routing information shown in FIG. 5, and S505 and S601 to S604 in the method for acquiring routing information shown in FIG. 6.
在本申请实施例中,进一步的,如图9所示,该通信装置还可以包括:发送单元903。In the embodiment of the present application, further, as shown in FIG. 9, the communication device may further include: a sending unit 903.
发送单元903,用于执行或用于支持获取路由信息的装置执行图6所示的获取路由信息的方法中的S605。The sending unit 903 is configured to execute or to support an apparatus for acquiring routing information to execute S605 in the method for acquiring routing information shown in FIG. 6.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the above method embodiments can be referred to the function description of the corresponding function module, which will not be repeated here.
本申请实施例提供的获取路由信息的装置,用于执行上述任意实施例的方法,因此可以达到与上述实施例的方法相同的效果。The apparatus for obtaining routing information provided by the embodiments of the present application is used to execute the method of any of the above embodiments, and therefore can achieve the same effect as the method of the above embodiments.
如图10所示为本申请实施例提供的获取路由信息的装置1000,用于实现上述方法中SPE的功能。该获取路由信息的装置1000可以是SPE,也可以是SPE中的装置。其中,该获取路由信息的装置1000可以为芯片系统。本申请实施例中,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。或者,获取路由信息的装置1000用于实现上述方法中UPE的功能。该获取路由信息的装置1000可以是UPE,也可以是UPE中的装置。其中,该获取路由信息的装置1000可以为芯片系统。本申请实施例中,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。As shown in FIG. 10, an apparatus 1000 for obtaining routing information provided by an embodiment of the present application is used to implement the function of the SPE in the foregoing method. The device 1000 for obtaining routing information may be an SPE or a device in the SPE. The device 1000 for obtaining routing information may be a chip system. In the embodiment of the present application, the chip system may be composed of a chip, or may include a chip and other discrete devices. Alternatively, the device 1000 for obtaining routing information is used to implement the UPE function in the above method. The device 1000 for obtaining routing information may be a UPE or a device in the UPE. The device 1000 for obtaining routing information may be a chip system. In the embodiment of the present application, the chip system may be composed of a chip, or may include a chip and other discrete devices.
获取路由信息的装置1000包括至少一个处理器1001,用于实现本申请实施例提供的方法中SPE或UPE的功能。示例性地,处理器1001可以用于根据第一RT将第一import-RT扩展团体属性存储到import-RT集合,以及根据第一RT将默认路由保存到VRF表,并生成默认路由与M个import-RT扩展团体属性的对应关系等等,具体参见方法示例中的详细描述,此处不做赘述。The device 1000 for obtaining routing information includes at least one processor 1001 for implementing the functions of SPE or UPE in the method provided by the embodiments of the present application. Exemplarily, the processor 1001 may be used to store the first import-RT extended community attribute to the import-RT set according to the first RT, and save the default route to the VRF table according to the first RT, and generate the default route and M number For the correspondence between the import-RT extended community attributes and so on, please refer to the detailed description in the method example for details, which will not be repeated here.
获取路由信息的装置1000还可以包括至少一个存储器1002,用于存储程序指令和/或数据。存储器1002和处理器1001耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理器1001可能和存储器1002协同操作。处理器1001可能执行存储器1002中存储的程序指令。所述至少一个存储器中的至少一个可以包括于处理器中。The device 1000 for obtaining routing information may further include at least one memory 1002 for storing program instructions and / or data. The memory 1002 and the processor 1001 are coupled. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between devices, units or modules. The processor 1001 may cooperate with the memory 1002. The processor 1001 may execute program instructions stored in the memory 1002. At least one of the at least one memory may be included in the processor.
获取路由信息的装置1000还可以包括通信接口1003,用于通过传输介质和其它设备进行通信,从而用于获取路由信息的装置1000中的装置可以和其它设备进行通信。示例性地,若获取路由信息的装置为SPE,该其它设备为UPE。若获取路由信息的装置为UPE,该其它设备为SPE。处理器1001利用通信接口1003收发数据,并用于实现图5和图6对应的实施例中所述的SPE或UPE所执行的方法。The device 1000 for obtaining routing information may further include a communication interface 1003 for communicating with other devices through a transmission medium, so that the device in the device 1000 for obtaining routing information can communicate with other devices. Exemplarily, if the device for obtaining routing information is SPE, the other device is UPE. If the device for obtaining routing information is UPE, the other device is SPE. The processor 1001 uses the communication interface 1003 to send and receive data, and is used to implement the method performed by the SPE or UPE described in the embodiments corresponding to FIG. 5 and FIG. 6.
本申请实施例中不限定上述通信接口1003、处理器1001以及存储器1002之间的具体连接介质。本申请实施例在图10中以通信接口1003、处理器1001以及存储器1002之间通过总线1004连接,总线在图10中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The embodiments of the present application do not limit the specific connection media between the communication interface 1003, the processor 1001, and the memory 1002. In the embodiment of the present application, in FIG. 10, the communication interface 1003, the processor 1001, and the memory 1002 are connected by a bus 1004. The bus is shown by a thick line in FIG. 10, and the connection mode between other components is only for schematic illustration. , Not to limit. The bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, only a thick line is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.
在本申请实施例中,处理器可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件 组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which may be Perform the disclosed methods, steps, and logical block diagrams in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied and executed by a hardware processor, or may be executed and completed by a combination of hardware and software modules in the processor.
在本申请实施例中,存储器可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。In the embodiment of the present application, the memory may be a non-volatile memory, such as a hard disk (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), for example Random access memory (random-access memory, RAM). The memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory in the embodiment of the present application may also be a circuit or any other device capable of realizing a storage function, which is used to store program instructions and / or data.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that, for convenience and conciseness of description, only the above-mentioned division of each functional module is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated as needed It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a division of logical functions. In actual implementation, there may be other divisions, for example, multiple units or components may be The combination can either be integrated into another device, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or software functional unit.
本申请实施例提供的方法中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、终端或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机可以存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,数字视 频光盘(digital video disc,DVD))、或者半导体介质(例如,SSD)等。The methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using 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 instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions according to the embodiments of the present invention are generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, a network device, a terminal, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, computer, server or data center Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device including a server, a data center, and the like integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), optical medium (e.g., digital video disc (DVD)), or semiconductor medium (e.g., SSD), or the like.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only the specific implementation of this application, but the scope of protection of this application is not limited to this, any changes or replacements within the technical scope disclosed in this application should be covered within the scope of protection of this application . Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (17)

  1. 一种获取路由信息的方法,其特征在于,包括:A method for obtaining routing information, which includes:
    运营商侧边缘路由器SPE接收第一报文,所述第一报文包括第一路由目标RT和第一输入路由目标import-RT扩展团体属性;The operator-side edge router SPE receives the first message, where the first message includes the first routing target RT and the first input routing target import-RT extended community attribute;
    所述SPE根据所述第一RT将所述第一import-RT扩展团体属性存储到import-RT集合,所述import-RT集合包括所述第一RT以及与所述第一RT对应的M个import-RT扩展团体属性,所述M个import-RT扩展团体属性包括所述第一import-RT扩展团体属性,M为大于或等于1的整数;The SPE stores the first import-RT extended community attribute to an import-RT set according to the first RT, where the import-RT set includes the first RT and M corresponding to the first RT import-RT extended community attribute, the M import-RT extended community attributes include the first import-RT extended community attribute, and M is an integer greater than or equal to 1;
    所述SPE发送第二报文,所述第二报文包括所述第一RT、所述M个import-RT扩展团体属性和与所述第一RT对应的默认路由。The SPE sends a second message, where the second message includes the first RT, the M import-RT extended community attributes, and a default route corresponding to the first RT.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    所述SPE接收第三报文,所述第三报文包括第二import-RT扩展团体属性和组播信息;The SPE receives a third message, where the third message includes the second import-RT extended community attribute and multicast information;
    所述SPE转发所述第三报文。The SPE forwards the third message.
  3. 根据权利要求2所述的方法,其特征在于,所述第一RT用于标识第一VPN,所述默认路由为所述第一VPN的默认路由,所述组播信息为所述第一VPN的组播信息,所述组播信息包括组播源和组播组。The method according to claim 2, wherein the first RT is used to identify a first VPN, the default route is a default route of the first VPN, and the multicast information is the first VPN Multicast information, the multicast information includes a multicast source and a multicast group.
  4. 一种获取路由信息的方法,其特征在于,所述方法包括:A method for obtaining routing information, characterized in that the method includes:
    用户侧边缘路由器UPE接收第一报文,所述第一报文包括第一路由目标RT、与所述第一RT对应的M个输入路由目标import-RT扩展团体属性和与所述第一RT对应的默认路由,M为大于或等于1的整数;The user-side edge router UPE receives a first packet, the first packet includes a first routing target RT, M input routing targets corresponding to the first RT, an import-RT extended community attribute, and the first RT Corresponding default route, M is an integer greater than or equal to 1;
    所述UPE根据与所述第一RT对应的M个import-RT扩展团体属性和与所述第一RT对应的默认路由生成所述默认路由与所述M个import-RT扩展团体属性的对应关系。The UPE generates a correspondence between the default route and the M import-RT extended community attributes according to the M import-RT extended community attributes corresponding to the first RT and the default route corresponding to the first RT .
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    所述UPE根据预设规则从所述M个import-RT扩展团体属性中确定第一import-RT扩展团体属性;The UPE determines the first import-RT extended community attribute from the M import-RT extended community attributes according to a preset rule;
    所述UPE发送第二报文,所述第二报文包括所述第一import-RT扩展团体属性和组播信息。The UPE sends a second message, where the second message includes the first import-RT extended community attribute and multicast information.
  6. 根据权利要求5所述的方法,其特征在于,所述UPE根据预设规则从所述M个import-RT扩展团体属性中确定第一import-RT扩展团体属性,包括:The method according to claim 5, wherein the UPE determining the first import-RT extended community attribute from the M import-RT extended community attributes according to a preset rule includes:
    所述UPE根据全局管理标识的大小从所述M个import-RT扩展团体属性中确定所述第一import-RT扩展团体属性。The UPE determines the first import-RT extended community attribute from the M import-RT extended community attributes according to the size of the global management identifier.
  7. 根据权利要求4-6中任一项所述的方法,其特征在于,所述第一RT用于标识第一VPN,所述默认路由为所述第一VPN的默认路由,所述组播信息为所述第一VPN的组播信息,所述组播信息包括组播源和组播组。The method according to any one of claims 4-6, wherein the first RT is used to identify a first VPN, the default route is a default route of the first VPN, and the multicast information Is the multicast information of the first VPN, and the multicast information includes a multicast source and a multicast group.
  8. 一种获取路由信息的装置,其特征在于,包括:An apparatus for obtaining routing information is characterized by comprising:
    接收单元,用于接收第一报文,所述第一报文包括第一路由目标RT和第一输入路由目标import-RT扩展团体属性;A receiving unit, configured to receive a first message including a first routing target RT and a first input routing target import-RT extended community attribute;
    处理单元,用于根据所述接收单元接收到的所述第一RT将所述第一import-RT扩展团体属性存储到import-RT集合,所述import-RT集合包括所述第一RT以及与所述第一RT对应的M个import-RT扩展团体属性,所述M个import-RT扩展团体属性包括所述第一import-RT扩展团体属性,M为大于或等于1的整数;A processing unit, configured to store the first import-RT extended community attribute to an import-RT set according to the first RT received by the receiving unit, the import-RT set including the first RT and the M import-RT extended community attributes corresponding to the first RT, the M import-RT extended community attributes include the first import-RT extended community attributes, and M is an integer greater than or equal to 1;
    发送单元,用于发送第二报文,所述第二报文包括所述第一RT、所述M个import-RT扩展团体属性和与所述第一RT对应的默认路由。The sending unit is configured to send a second message, where the second message includes the first RT, the M import-RT extended community attributes, and a default route corresponding to the first RT.
  9. 根据权利要求8所述的装置,其特征在于,The device according to claim 8, characterized in that
    所述接收单元,还用于接收第三报文,所述第三报文包括第二import-RT扩展团体属性和组播信息;The receiving unit is further configured to receive a third message, where the third message includes the second import-RT extended community attribute and multicast information;
    所述发送单元,还用于转发所述第三报文。The sending unit is also used to forward the third message.
  10. 根据权利要求9所述的装置,其特征在于,所述第一RT用于标识第一VPN,所述默认路由为所述第一VPN的默认路由,所述组播信息为所述第一VPN的组播信息,所述组播信息包括组播源和组播组。The apparatus according to claim 9, wherein the first RT is used to identify a first VPN, the default route is a default route of the first VPN, and the multicast information is the first VPN Multicast information, the multicast information includes a multicast source and a multicast group.
  11. 一种获取路由信息的装置,其特征在于,包括:An apparatus for obtaining routing information is characterized by comprising:
    接收单元,用于接收第一报文,所述第一报文包括第一路由目标RT、与所述第一RT对应的M个输入路由目标import-RT扩展团体属性和与所述第一RT对应的默认路由,M为大于或等于1的整数;A receiving unit, configured to receive a first message including a first routing target RT, M input routing targets corresponding to the first RT, import-RT extended community attributes, and the first RT Corresponding default route, M is an integer greater than or equal to 1;
    处理单元,用于根据与所述第一RT对应的M个import-RT扩展团体属性和与所述第一RT对应的默认路由生成所述默认路由与所述M个import-RT扩展团体属性的对应关系。The processing unit is configured to generate the default route and the M import-RT extended community attributes based on the M import-RT extended community attributes corresponding to the first RT and the default route corresponding to the first RT Correspondence.
  12. 根据权利要求11所述的装置,其特征在于,The device according to claim 11, characterized in that
    所述处理单元,还用于根据预设规则从所述M个import-RT扩展团体属性中确定第一import-RT扩展团体属性;The processing unit is further configured to determine the first import-RT extended community attribute from the M import-RT extended community attributes according to a preset rule;
    所述装置还包括发送单元,The device also includes a sending unit,
    所述发送单元,用于发送第二报文,所述第二报文包括所述第一import-RT扩展团体属性和组播信息。The sending unit is configured to send a second message, where the second message includes the first import-RT extended community attribute and multicast information.
  13. 根据权利要求12所述的装置,其特征在于,所述处理单元,用于:The apparatus according to claim 12, wherein the processing unit is configured to:
    根据全局管理标识的大小从所述M个import-RT扩展团体属性中确定所述第一import-RT扩展团体属性。The first import-RT extended community attribute is determined from the M import-RT extended community attributes according to the size of the global management identifier.
  14. 根据权利要求11-13中任一项所述的装置,其特征在于,所述第一RT用于标识第一VPN,所述默认路由为所述第一VPN的默认路由,所述组播信息为所述第一VPN的组播信息,所述组播信息包括组播源和组播组。The device according to any one of claims 11 to 13, wherein the first RT is used to identify a first VPN, the default route is a default route of the first VPN, and the multicast information Is the multicast information of the first VPN, and the multicast information includes a multicast source and a multicast group.
  15. 一种获取路由信息的装置,其特征在于,包括:至少一个处理器、存储器和收发器,其中,所述存储器用于存储计算机程序,使得所述计算机程序被所述至少一个处理器执行时实现如权利要求1-3中任一项所述的获取路由信息的方法或如权利要求4-7中任一项所述的获取路由信息的方法。An apparatus for obtaining routing information, comprising: at least one processor, a memory, and a transceiver, wherein the memory is used to store a computer program, so that the computer program is implemented when executed by the at least one processor The method for obtaining routing information according to any one of claims 1-3 or the method for obtaining routing information according to any one of claims 4-7.
  16. 一种计算机可读存储介质,其特征在于,包括:计算机软件指令;A computer-readable storage medium, characterized by comprising: computer software instructions;
    当所述计算机软件指令在获取路由信息的装置或内置在获取路由信息的装置的芯片中运行时,使得所述获取路由信息的装置执行如权利要求1-3中任一项所述的获取 路由信息的方法或如权利要求4-7中任一项所述的获取路由信息的方法。When the computer software instruction runs in a device that obtains routing information or a chip built into the device that obtains routing information, causes the device that obtains routing information to perform the route obtaining according to any one of claims 1-3 The method for information or the method for obtaining routing information according to any one of claims 4-7.
  17. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在获取路由信息的装置或内置在获取路由信息的装置的芯片中运行时,使得所述获取路由信息的装置执行如权利要求1-3中任一项所述的获取路由信息的方法或如权利要求4-7中任一项所述的获取路由信息的方法。A computer program product containing instructions, characterized in that when the computer program product runs in a chip of a device for obtaining routing information or a chip built in a device for obtaining routing information, the device for obtaining routing information is executed The method for obtaining routing information according to any one of claims 1-3 or the method for obtaining routing information according to any one of claims 4-7.
PCT/CN2019/117251 2018-11-16 2019-11-11 Method and apparatus for acquiring routing information WO2020098611A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811367864.1 2018-11-16
CN201811367864.1A CN111200549B (en) 2018-11-16 2018-11-16 Method and device for acquiring routing information

Publications (1)

Publication Number Publication Date
WO2020098611A1 true WO2020098611A1 (en) 2020-05-22

Family

ID=70731939

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117251 WO2020098611A1 (en) 2018-11-16 2019-11-11 Method and apparatus for acquiring routing information

Country Status (2)

Country Link
CN (1) CN111200549B (en)
WO (1) WO2020098611A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800338B (en) * 2020-06-01 2022-09-16 锐捷网络股份有限公司 Cross-AS EVPN route interaction method and device
CN112637056A (en) * 2020-12-25 2021-04-09 杨世标 Method and system for realizing dynamic adjustment of default route of metropolitan area network
CN113364692B (en) * 2021-06-02 2022-04-26 烽火通信科技股份有限公司 Route memory optimization method and route memory optimization device in biplane mode
CN115277535B (en) * 2022-09-30 2022-12-16 紫光恒越技术有限公司 VPN routing processing method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105247822A (en) * 2013-05-21 2016-01-13 思科技术公司 Chaining service zones by way of route re-origination
CN107026791A (en) * 2016-01-29 2017-08-08 华为技术有限公司 VPN vpn service optimization method and equipment
US20170289216A1 (en) * 2016-03-30 2017-10-05 Juniper Networks, Inc. Hot root standby support for multicast
CN107707474A (en) * 2017-09-29 2018-02-16 烽火通信科技股份有限公司 A kind of route distribution method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1214583C (en) * 2002-08-23 2005-08-10 华为技术有限公司 Three layer virtual private network and its construction method
CN101136832A (en) * 2004-07-13 2008-03-05 华为技术有限公司 Multi-protocol label switching virtual dedicated network and its control and forwarding method
CN102387061B (en) * 2011-10-21 2014-05-07 华为技术有限公司 Method, device and system for accessing VPC (virtual private cloud) to VPN (virtual private network)
CN103401752B (en) * 2013-07-23 2017-11-17 迈普通信技术股份有限公司 The method and apparatus for accessing Virtual Private Network
CN106034075B (en) * 2015-03-09 2020-03-27 中兴通讯股份有限公司 Method and device for distributing label for VPN route

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105247822A (en) * 2013-05-21 2016-01-13 思科技术公司 Chaining service zones by way of route re-origination
CN107026791A (en) * 2016-01-29 2017-08-08 华为技术有限公司 VPN vpn service optimization method and equipment
US20170289216A1 (en) * 2016-03-30 2017-10-05 Juniper Networks, Inc. Hot root standby support for multicast
CN107707474A (en) * 2017-09-29 2018-02-16 烽火通信科技股份有限公司 A kind of route distribution method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
E. ROSEN, ED, MULTICAST IN MPLS/BGP IP VPNS, vol. 6513, 29 February 2012 (2012-02-29) *
IP ROUTING: BGP CONFIGURATION GUIDE, 12 August 2013 (2013-08-12) *
LI, BIN: "Hierarchy of Provider Edge Device in BGP/MPLS VPN", INTERNET DRAFT, 27 May 2003 (2003-05-27) *

Also Published As

Publication number Publication date
CN111200549B (en) 2021-04-20
CN111200549A (en) 2020-05-26

Similar Documents

Publication Publication Date Title
CN109218178B (en) Message processing method and network equipment
US11381500B2 (en) Efficient multicast traffic forwarding in EVPN-based multi-homed networks
WO2021063232A1 (en) Method, apparatus and system for establishing bier forwarding table entry
JP7208386B2 (en) Packet transfer method, packet transmitter, and packet receiver
US9225640B2 (en) Intra-domain and inter-domain bridging over MPLS using MAC distribution via border gateway protocol
EP3896923A1 (en) Bier packet sending method and apparatus
US9148290B2 (en) Flow-based load-balancing of layer 2 multicast over multi-protocol label switching label switched multicast
US7339929B2 (en) Virtual private LAN service using a multicast protocol
WO2017162095A1 (en) Communication method, device and system based on flow specification protocol
US8125926B1 (en) Inter-autonomous system (AS) virtual private local area network service (VPLS)
WO2019105462A1 (en) Method and apparatus for sending packet, method and apparatus for processing packet, pe node, and node
WO2020098611A1 (en) Method and apparatus for acquiring routing information
US20230155932A1 (en) Multicast traffic transmission method and apparatus, communication node, and storage medium
CN107040469A (en) The network equipment and method
CN108574630A (en) EVPN message processing methods, equipment and system
CN108574639A (en) EVPN message processing methods, equipment and system
US20210243111A1 (en) Supporting multicast communications
CN110324226A (en) Improve the aliasing behavior of more host site flows in ether Virtual Private Network network
US20150146727A1 (en) Forwarding Packets and PE Devices in VPLS
EP3799354B1 (en) Synchronizing multicast router capability towards ethernet virtual private network (evpn) multi homed protocol independent multicast (pim) device
WO2013139270A1 (en) Method, device, and system for implementing layer3 virtual private network
WO2021093463A1 (en) Packet forwarding method, first network device, and first device group
US11929923B2 (en) Packet transmission method and apparatus
CN113904981B (en) Routing information processing method and device, electronic equipment and storage medium
US11228459B2 (en) Anycast address configuration for extended local area networks

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

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

Country of ref document: EP

Kind code of ref document: A1