WO2023050932A1 - 路由通告方法、网络设备及计算机存储介质 - Google Patents

路由通告方法、网络设备及计算机存储介质 Download PDF

Info

Publication number
WO2023050932A1
WO2023050932A1 PCT/CN2022/101607 CN2022101607W WO2023050932A1 WO 2023050932 A1 WO2023050932 A1 WO 2023050932A1 CN 2022101607 W CN2022101607 W CN 2022101607W WO 2023050932 A1 WO2023050932 A1 WO 2023050932A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
pseudowire
evpn
route
srv6
Prior art date
Application number
PCT/CN2022/101607
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to EP22874329.0A priority Critical patent/EP4329259A1/en
Publication of WO2023050932A1 publication Critical patent/WO2023050932A1/zh

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
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's

Definitions

  • the embodiments of the present application relate to the technical field of communications, and in particular to a route notification method, network equipment, and computer storage media.
  • Pseudo-Wire is a communication connection established between edge devices (Provider Edge, PE) in a packet network. Different PEs communicate through PWs. At present, the PW between PEs is usually created based on the Layer 2 Virtual Private Network Virtual Private Wire Service (L2VPN VPWS). However, with the development of Ethernet Virtual Private Network (EVPN) technology, PEs can usually support both L2VPN VPWS and EVPN VPWS services to create PWs. In this scenario, how to evolve L2VPN VPWS to EVPN VPWS is a current research hotspot.
  • L2VPN VPWS Layer 2 Virtual Private Network Virtual Private Wire Service
  • EVPN Ethernet Virtual Private Network
  • the embodiment of the present application provides a route notification method, network equipment and computer storage medium, which can realize the evolution from L2VPN VPWS based on MPLS forwarding to EVPN VPWS based on SRv6 forwarding. Described technical scheme is as follows:
  • a route advertisement method is provided.
  • a first network device receives a route advertisement message from a second network device.
  • the route advertisement message is used to announce the EVPN SRv6 route
  • the route advertisement message carries the next hop information of the EVPN SRv6 route as the IPv6 address of the second network device
  • the route advertisement message also carries pseudowire identification information , the pseudowire identification information is used to identify the L2VPN PW between the first network device and the second device.
  • the embodiment of the present application extends the EVPN SRv6 route advertisement message, so that the extended EVPN SRv6 route advertisement message carries the pseudowire identification information of the L2VPN PW between the first network device and the second network device. Therefore, by extending the route advertisement message, the pseudowire identification information related to the L2VPN PW can be carried while the route is advertised, so that the network device can implement MPLS-based forwarding from L2VPN to SRv6-based EVPN in the transition scenario of the existing network. smooth evolution.
  • the PW in the existing L2VPN can be closed in time, and the PW of EVPN SRv6 can be successfully established.
  • the EVPN SRv6 route advertisement packet is an EVPN-VPWS SRv6 route advertisement packet
  • PE1 receives the EVPN-VPWS SRv6 route advertisement packet sent by PE2
  • PE1 can also search for the L2VPN PW locally according to the pseudo-wire identification information, and then process the L2VPN PW, so as to realize the conversion from the L2VPN VPWS based on MPLS forwarding to the EVPN VPWS based on SRv6 forwarding. evolve.
  • the method provided in the embodiment of the present application can not only realize the process of processing the established L2VPN PW when creating the EVPN SRv6-based PW during the evolution process from the traditional L2VPN to the EVPN SRv6 network scenario. It can also realize the evolution from traditional L2VPN to other types of EVPN SRv6, and process the established L2VPN PW when creating other types of EVPN SRv6 routes.
  • the first network device closes the L2VPN PW based on the pseudowire identification information.
  • the L2VPN PW can be shut down (down).
  • closing the L2VPN PW can be to delete the forwarding table entry associated with the L2VPN PW, or invalidate the forwarding table entry associated with the L2VPN PW, etc., so that subsequent packets will not be forwarded according to the L2VPN PW, but based on the new Advertised EVPN SRv6 routes are forwarded.
  • the first network device establishes an EVPN SRv6 PW.
  • the destination address of the EVPN SRv6 PW is the IPv6 address of the second network device.
  • the first network device also configures the priority of the EVPN SRv6 PW to be greater than that of the L2VPN PW.
  • the previously established EVPN SRv6 PW is a PW in VPWS, or a PW in VPLS. That is to say, the PW involved in the embodiment of this application can be a PW in VPWS, or a PW in VPLS, so as to realize the evolution from L2VPN VPWS based on MPLS forwarding to EVPN VPWS based on SRv6 forwarding, or, based on MPLS forwarding L2VPN VPLS evolves to EVPN VPLS based on SRv6 forwarding.
  • the route advertisement message includes an extended community attribute, and the extended community attribute carries the aforementioned pseudowire identification information.
  • the extended community attribute in the route advertisement message can be extended, so that the extended extended community attribute can carry the pseudowire identification information of the L2VPN PW between the first network device and the second network device.
  • the extended community attribute includes a type field and a pseudowire identifier field.
  • the type field indicates that the extended community attribute is used to carry the pseudowire identification information, and the pseudowire identification field is used to carry the aforementioned pseudowire identification information.
  • the extended community attribute includes a type field and a global administrator field. Wherein, the type field indicates that the extended community attribute is used to carry characteristic information of the IPv4 address, and the global administrator field is used to carry the aforementioned pseudowire identification information.
  • the existing extended community attribute can be extended, or a new extended community attribute can be extended, so that the extended extended community attribute can carry the information between the first network device and the second network device.
  • Pseudowire identification information of the L2VPN PW Pseudowire identification information of the L2VPN PW.
  • the foregoing pseudowire identification information includes one or more of the following: the IPv4 address of the second network device, the identification of the L2VPN PW, and the site identification.
  • the L2VPN PW between the first network device and the second network device may be identified by using different pseudowire identification information.
  • a route advertisement method is provided.
  • the second network device issues a route advertisement message to the first network device, and the route advertisement message is used to announce the EVPN SRv6 route, and the route advertisement message carries
  • the next hop information of the EVPN SRv6 route is the IPv6 address of the second network device, and the route advertisement message also carries pseudowire identification information, which is used to identify the L2VPN between the first network device and the second device PW.
  • the route advertisement message includes an extended community attribute, and the extended community attribute carries the aforementioned pseudowire identification information.
  • the extended community attribute includes a type field and a pseudowire identifier field.
  • the type field indicates that the extended community attribute is used to carry the pseudowire identification information, and the pseudowire identification field is used to carry the aforementioned pseudowire identification information.
  • the extended community attribute includes a type field and a global administrator field. Wherein, the type field indicates that the extended community attribute is used to carry characteristic information of the IPv4 address, and the global administrator field is used to carry the aforementioned pseudowire identification information.
  • the foregoing pseudowire identification information includes one or more of the following: the IPv4 address of the second network device, the identification of the L2VPN PW, and the site identification.
  • a route advertisement method is provided.
  • a first network device receives a route advertisement message from a second network device.
  • the route advertisement message is used to announce the EVPN SRv6 route
  • the next hop information of the EVPN SRv6 route carried in the route advertisement message is the IPv6 address of the second network device
  • the first network device locally stores the next hop information of the EVPN SRv6 route.
  • the one-hop information is the IPv4 address of the second network device.
  • the first network device selects one from the IPv6 address of the second network device and the IPv4 address of the second network device as the next hop information of the EVPN SRv6 route.
  • the evolution of the EVPN-VPWS forwarded based on the MPLS network to the EVPN-VPWS forwarded based on the SRV6 network can be realized through the above route notification method.
  • a first network device in a fourth aspect, is provided, and the first network device has a function of implementing the behavior of the route advertisement method in the first aspect.
  • the first network device includes at least one unit, and the at least one unit is configured to implement the route advertisement method provided in the first aspect above.
  • a second network device is provided, and the second network device has a function of implementing the behavior of the route advertisement method in the second aspect above.
  • the second network device includes at least one unit, and the at least one unit is configured to implement the route advertisement method provided in the second aspect above.
  • another first network device is provided, and the first network device has a function of implementing the behavior of the route advertisement method in the above third aspect.
  • the first network device includes at least one unit, and the at least one unit is configured to implement the route advertisement method provided in the above third aspect.
  • a first network device in a seventh aspect, includes a memory storing instructions; a processor connected to the memory, when the instructions are executed in the processor , so that the first network device executes the above route advertisement method.
  • a second network device in an eighth aspect, includes a memory storing instructions; a processor connected to the memory, when the instructions are executed in the processor , so that the second network device executes the above route advertisement method.
  • a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the above-mentioned first aspect or the second aspect or the third aspect.
  • a computer program product containing instructions, which, when run on a computer, causes the computer to execute the route advertisement method described in the first aspect, or the second aspect, or the third aspect.
  • a communication system in an eleventh aspect, includes the aforementioned first network device and second network device.
  • FIG. 1 is a schematic diagram of a network architecture of a VPWS provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of another VPWS network architecture provided by an embodiment of the present application.
  • FIG. 3 is a flow chart of a route notification method provided by an embodiment of the present application.
  • Fig. 4 is a schematic diagram of the format of an extended new extended community attribute provided by the embodiment of the present application.
  • FIG. 5 is a schematic diagram of the format of an IPv4 address feature extended community attribute provided by an embodiment of the present application.
  • FIG. 6 is a flow chart of another route notification method provided by the embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • Multi-Protocol Label Switching (Multi-Protocol Label Switching, MPLS) L2VPN is a Layer 2 VPN (Virtual Private Network, virtual private network) technology based on MPLS, which is an edge-to-edge pseudowire emulation (Pseudo Wire Emulation Edge-to-Edge, An implementation of PWE3).
  • MPLS L2VPN encapsulates the user's Layer 2 data (such as Ethernet data frames, Asynchronous Transfer Mode (Asynchronous Transfer Mode, ATM) cells, etc.) The end decapsulates the packet and restores the original layer 2 data, so that the user layer 2 data can be transparently transmitted across the MPLS network.
  • the MPLS network is a Layer 2 switching network, which can establish Layer 2 connections between different sites (Sites) in the user network.
  • MPLS L2VPN can include VPWS, VPLS, etc.
  • VPWS is a layer 2 VPN technology that provides point-to-point services.
  • VPWS refers to a layer 2 that imitates the basic behaviors and characteristics of ATM, frame relay, Ethernet, low-speed (Time Division Multiplexing, TDM) circuits and other services as realistically as possible in a packet switched network (Packet Switched Network, PSN).
  • PSN Packet Switched Network
  • Business bearer technology VPWS technology is a point-to-point virtual private line technology that can support almost all link layer protocols, and communicates between different PEs through the established PW.
  • VPLS refers to a point-to-multipoint L2VPN service provided on a shared network.
  • VPLS also uses the signaling protocol to establish and maintain PWs between PE nodes in the VPLS instance, so that Layer 2 protocol frames can be encapsulated and then transmitted and exchanged on the PW, so that multiple LANs in the wide area can be controlled at the data link level. Integrate into a network to provide users with virtual Ethernet services. That is, the point-to-multipoint communication in VPLS is also based on the established PW communication.
  • the PW involved in this embodiment of the present application may be a PW established based on the VPWS technology, or a PW established based on the VPLS technology.
  • L2VPN gradually has shortcomings such as inability to realize load sharing and large consumption of network resources.
  • EVPN came into being.
  • EVPN transfers the process of learning and publishing MAC addresses between Layer 2 networks from the data plane to the control plane by extending the BGP protocol.
  • the device manages the MAC address like a route, and implements load balancing for multiple EVPN routes with the same destination MAC address but different next hops.
  • PE devices on the carrier's backbone network no longer need to establish full connections, which greatly reduces network complexity and reduces the number of network signaling, thereby avoiding the waste of network resources.
  • L2VPN VPWS can evolve into EVPN VPWS
  • L2VPN VPLS can evolve into EVPN VPLS.
  • VPWS and VPLS are described in an MPLS scenario.
  • IPv6-based segment routing segment routing over IPv6, SRv6
  • SRv6 segment routing over IPv6
  • the SRH extension is added in the IPv6 message to replace the label forwarding function under the traditional MPLS, and the 128-bit IPv6 address is used as the identification SID of the network node.
  • SRv6 gathers the SIDs of each node on the transmission path at the first node and puts them in the SRH in the form of a Segment List (Segment List), and uses the number of remaining segments (segment left, SL) to indicate the end from the current node The number of intermediate nodes that need to be visited to reach the destination node, so as to modify the SL value to realize the next hop. Based on the above advantages, SRv6 technology will gradually replace MPLS technology.
  • FIG. 1 is a schematic diagram of a network architecture of a VPWS provided by an embodiment of the present application.
  • PE1 and PE2 are deployed in the network, as well as a customer edge router (customer edge1, CE1) connected to PE1, and CE2 connected to PE2.
  • the IPv4 address of PE1 is 1.1.1.1
  • the IPv4 address of PE2 is 2.2.2.2.
  • CE is a customer edge device directly connected to the service provider network.
  • PE is a service provider network-side device connected to CE.
  • the PE is mainly responsible for the access of VPN services, and completes the mapping and forwarding of packets from the user network to the public network tunnel, and from the public network tunnel to the user network.
  • CE and PE are connected through an access circuit (Attachment Circuit, AC).
  • AC is a physical circuit or a virtual circuit connecting CE and PE, and AC may be, for example, an Ethernet (Ethernet) interface.
  • PEs are connected based on pseudowires.
  • a pseudowire is a virtual bidirectional connection between two PEs. That is, the PW involved in this application is directional.
  • the PW between the two PEs essentially refers to two unidirectional transmission PWs with opposite directions.
  • the destination of the PW between PE1 and PE2 is PE2
  • the destination of the PW between PE1 and PE2 is PE1
  • the PWs between PE1 and PE2 include the PWs from PE1 to PE2 and the PWs from PE2 to PE1.
  • PW technology is a service bearing technology, time-division multiplexing (TDM) service, synchronous digital system (Synchronous Digital Hierarchy, SDH) service, synchronous optical network (Synchronous Optical Network, SONET) service, asynchronous transmission Asynchronous Transfer Mode (ATM) services, frame relay services, and Ethernet services can all be carried on the PW.
  • TDM time-division multiplexing
  • SDH synchronous digital system
  • SONET synchronous optical network
  • ATM Asynchronous Transfer Mode
  • frame relay services and Ethernet services
  • a PW can be based on any type of tunnel, such as an SR-MPLS tunnel or an SRv6 tunnel.
  • the PW is carried in a public network tunnel, which can be an LSP, MPLS TE, GRE tunnel, SR-MPLS tunnel, or SRv6 tunnel.
  • Figure 1 uses two PEs and each PE is connected to a CE as an example.
  • the embodiment of the present application does not limit the number of PEs included in the VPWS network and the number of CEs connected to the PEs. .
  • FIG. 1 takes VPWS networking as an example to illustrate the network architecture involved in the embodiment of the present application.
  • the method provided in the embodiment of the present application is also applied to the VPLS networking, where the network architecture of the VPLS networking is basically the same as that of the VPWS networking, so details are not repeated here.
  • both PE1 and PE2 support the hybrid mode in the MPLS scenario, that is, both PE1 and PE2 support MPLS L2VPN VPWS and MPLS EVPN VPWS.
  • the first PW for transmitting packets between CE1 and CE2 has been established between PE1 and PE2 through the MPLS L2VPN VPWS service, the first PW can also be called the L2VPN PW.
  • the first PW needs to be A PW is processed to avoid errors when PE1 and PE2 forward packets.
  • the aforementioned timing for PE1 to establish the second PW is: when receiving the MPLS EVPN VPWS route advertisement message issued by PE2, PE1 will establish the second PW from PE1 to PE2 based on the information carried in the MPLS EVPN VPWS route advertisement message.
  • processing the first PW in this embodiment of the present application may refer to closing the first PW.
  • Closing the first PW specifically means that PE1 locally deletes the forwarding entry related to the first PW or invalidates the forwarding entry of the first PW. In this way, when PE1 subsequently forwards packets between CE1 and CE2, it will not find the first PW from the local forwarding entry, and thus will not forward packets between CE1 and CE2 based on the first PW.
  • processing the first PW may also refer to configuring the priority of the second PW to be higher than the priority of the first PW, that is, lowering the priority of the first PW.
  • the so-called priority of the PW is also the priority of the forwarding entry of the PW.
  • the priority of the second PW is higher than that of the first PW, so the second PW is preferentially used to forward packets between CE1 and CE2.
  • the aforementioned timing for PE1 to establish the third PW is when it receives the EVPN VPWS SRv6 route advertisement message issued by PE2, PE1 will establish the third PW from PE1 to PE2 based on the information carried in the EVPN VPWS SRv6 route advertisement message.
  • the destination address of the first PW is the IPv4 address of PE2.
  • the destination address of the third PW carried in the EVPN VPWS SRv6 route advertisement message is the IPv6 address of PE2.
  • PE1 will not be able to find the first PW locally based on the destination address of the third PW, and thus cannot process the first PW, so that it cannot implement L2VPN VPWS based on MPLS forwarding to EVPN VPWS based on SRV6 forwarding evolution.
  • the embodiment of the present application provides a route notification method, so that the first PW can be processed in time when the third PW is established, so as to complete the evolution from L2VPN VPWS based on MPLS forwarding to EVPN VPWS based on SRV6 forwarding .
  • the route advertisement method provided by the embodiment of the present application is explained in detail below.
  • Fig. 3 is a flow chart of a route advertisement method provided by an embodiment of the present application. As shown in Figure 3, the method includes the following steps.
  • Step 301 The second network device publishes a route notification message, which is used to notify the EVPN SRv6 route, and the route notification message carries the next hop information of the EVPN SRv6 route as the IPv6 address of the second network device, and the route notification message carries the IPv6 address of the second network device.
  • the notification message also carries pseudowire identification information, which is used to identify the pseudowire L2VPN PW based on the two-layer virtual private network between the first network device and the second device.
  • the first network device and the second network device may specifically be PEs.
  • the first network device is also called the first PE
  • the second network device is also called the second PE.
  • the PW involved in the embodiment of this application may be a PW in VPWS or a PW in VPLS. Since the relevant content of a PW in VPLS is basically the same as that in VPWS, the following embodiments Take the PW as the PW in the VPWS as an example for illustration. When the PW involved in the embodiment of the present application is the PW in the VPLS, the following embodiments may also be referred to to implement the route advertisement method provided in the embodiment of the present application.
  • the route advertisement message issued by the second network device is an EVPN-VPWS route advertisement message.
  • the second network device receives the route advertisement message, it can create a PW under the EVPN-VPWS between the first network device and the second network device based on the information carried in the route advertisement message. .
  • the specific information carried in the EVPN-VPWS route notification message will be explained in the following content, and will not be elaborated here.
  • the processing of the L2VPN PW can be to close the L2VPN PW or reduce the priority of the L2VPN PW, and these two processing processes need to first find the forwarding table entry of the L2VPN PW in the local forwarding table, so as to delete L2VPN PW forwarding entries or reduce the priority of L2VPN PW forwarding entries.
  • the EVPN-VPWS route advertisement message needs to carry the pseudowire identification information of the established L2VPN PW, and the pseudowire identification information is used To identify the L2VPN PW between the first network device and the second network device, so as to find the forwarding table item associated with the L2VPN PW based on the pseudowire identification information, and then process the forwarding table item associated with the L2VPN PW .
  • the pseudowire identification information of the L2VPN PW includes one or more of the following: the IPv4 address (origin IP) of the second network device, the identification of the L2VPN PW (the identification of the PW may specifically be a virtual channel identification (Virtual Channel Identifier) , VC ID), site ID (site ID).
  • the site ID is the parameter that uniquely identifies CE in the same VPN, and the CE ID must be different from each other in the same VPN.
  • each The PW is bound to a locally connected CE, so the site ID can also identify the PW.
  • the destination address of the PW to be created carried in the EVPN-VPWS SRv6 route advertisement message is PE2's
  • the address 2::2 in the SRv6 network indicates that a PW under EVPN-VPWS SRv6 needs to be established. For the convenience of explanation later, this PW is called EVPN SRv6 PW.
  • the address of PE2 in the IPv4 network is 2.2.2.2
  • the pseudowire identification information of the L2VPN PW such as the address of PE2 in the IPv4 network
  • the forwarding entry of the L2VPN PW cannot be searched according to the address 2::2 in the SRV6 network carried in the EVPN-VPWS SRv6 route advertisement message.
  • L2VPN PW for processing. In this way, even if PE2 publishes the EVPN-VPWS SRv6 route advertisement message, the forwarding plane and the control plane still run under the L2VPN VPWS.
  • the existing EVPN-VPWS SRv6 route advertisement message is extended, so that the extended EVPN-VPWS SRv6 route advertisement message carries the pseudowire identification information of the L2VPN PW between the first network device and the second network device.
  • the EVPN-VPWS SRv6 route advertisement message usually includes two parts. Part of it is the prefix field, which is used to indicate the identity of the EVPN SRv6 PW that needs to be established. The other part is the attribute field, which is used to indicate the related attributes of EVPN SRv6 PW. Therefore, in a possible implementation manner, the attribute field in the EVPN-VPWS SRv6 route advertisement message can be extended.
  • the attribute field may be a community attribute field or an extended community attribute field, so that the extended community attribute or the extended community attribute can carry the pseudowire identification information of the L2VPN PW between the first network device and the second network device.
  • the extended community attribute field in the EVPN-VPWS route notification message can be extended in the following two ways.
  • a new extended community attribute may be extended.
  • the new extended community attribute includes a type (type) field and a pseudowire identification field, the type field indicates that the function of the extended community attribute is to carry pseudowire identification information, and the pseudowire identification field is used to carry the first network device and Pseudowire identification information of the L2VPN PW between the second network devices.
  • Fig. 4 is a schematic diagram of the format of an extended new extended community attribute provided by the embodiment of the present application.
  • the extended community attribute includes a type (type) field, a sub-type (sub-type) field, an L2VPN PW address (represented as L2VPN VPWS origin IP in Figure 4) field and a reserved (reserved) field.
  • the type field may be 0x06, which is used to indicate that the extended community attribute is an EVPN type community attribute.
  • the subtype field is a type that requires a new application, which indicates that the extended community attribute is an extended community attribute used to carry the L2VPN PW address.
  • the L2VPN PW address field is used to bear the IPv4 address of the second network device.
  • the reserved field has no other functions temporarily, so fill it with 0 first.
  • FIG. 4 is an illustration of the format of the extended new extended community attribute.
  • the embodiment of the present application does not limit the format of the extended new extended community attribute, as long as the extended new extended community attribute can It only needs to carry the pseudowire identification information of the L2VPN PW between the first network device and the second network device.
  • IPv4 Address Specific Extended Community (IPv4Address Specific Extended Community) attribute in Request For Comments (Request For Comments, RFC) 4360 can be extended, so that the IPv4 Address Specific Extended Community attribute can carry Pseudowire identification information of the L2VPN PW between the first network device and the second network device.
  • Fig. 5 is a schematic diagram of the format of an IPv4 address feature extended community attribute provided by the embodiment of the present application.
  • the extended community attribute includes a type field and a global administrator field.
  • the type field is 0x01, which is used to indicate that the function of the community attribute is to carry the characteristic information of the IPv4 address
  • the global administrator field is used to carry the L2VPN PW address (represented as L2VPN VPWS origin IP in Figure 5).
  • the local administrator (Local Administrator) in Figure 5 can be set to 0.
  • the subtype (sub-type) field in the extended community attribute is 0x03, which is used to indicate the route origin (route origin).
  • the above is an example of extending the extended community attribute of IPv4 address characteristics in RFC4360.
  • the existing extended community attribute in other standards can also be extended, so that the extended The community attribute can carry the pseudowire identification information of the L2VPN PW between the first network device and the second network device.
  • the second network device can obtain the information created under the L2VPN VPWS when issuing the EVPN-VPWS SRv6 route notification message. Pseudowire identification information of the L2VPN PW. Then carry the pseudowire identification information of the L2VPN PW in the EVPN-VPWS SRv6 route advertisement message through the above-mentioned Figure 4 or Figure 5, and then publish the EVPN-VPWS SRv6 route advertisement message to the first network device, and the first network device passes The following step 302 receives the EVPN-VPWS SRv6 route advertisement message.
  • PE2 when PE2 issues an EVPN-VPWS SRv6 route advertisement message, it carries PE2's IPV4 address 2.2.2.2 in the EVPN-VPWS SRv6 route advertisement message.
  • Step 302 the first network device receives the route advertisement message from the second network device.
  • the first network device When the first network device receives the route advertisement message, it can process the L2VPN PW between the first network device and the second network device.
  • the first network device can establish an EVPN SRv6 PW according to the route advertisement message, and the purpose of the EVPN SRv6 PW
  • the address is an IPv6 address of the second network device.
  • the two processes of closing the L2VPN PW and establishing the EVPN SRv6 PW are in no particular order, which is not limited in this embodiment of the application.
  • the first network device closes the L2VPN PW, that is, finds the forwarding table entry of the L2VPN PW in the local forwarding table entry based on the pseudowire identification information, and then deletes the forwarding table entry of the L2VPN PW or changes the forwarding table entry of the L2VPN PW to invalid.
  • the first network device configures the priority of the EVPN SRv6 PW to be greater than that of the L2VPN PW, that is, sets the priority of the forwarding entry of the EVPN SRv6 PW to be greater than that of the forwarding entry of the L2VPN PW.
  • PE2 when PE2 issues an EVPN-VPWS SRv6 route advertisement message, it carries PE2's IPv4 address 2.2.2.2 in the EVPN-VPWS SRv6 route advertisement message.
  • PE1 can find the L2VPN PW from PE1 to PE2 according to the IPv4 address 2.2.2.2, and then shut down the L2VPN PW or adjust the priority of the L2VPN PW.
  • the first PE and the second PE are pre-configured with their respective local service IDs (local service ID) and Remote service ID (remote service ID), where the local service ID configured by any PE is used to indicate a CE connected to itself, the configured remote service ID is used to indicate a CE connected to other PEs, and the configured
  • the local service identifier and the remote service identifier are paired, that is, each local service identifier corresponds to a remote service identifier, or each remote service identifier corresponds to a local service identifier.
  • any PE is bound with a PW identifier for each local service identifier.
  • the second PE can issue the EVPN-VPWS route notification message.
  • the EVPN-VPWS route advertisement message carries the local service identifier configured on the second PE and the identifier of the PW bound to the local service identifier.
  • the local service identifier carried in the EVPN-VPWS route notification message is called the first local service identifier.
  • the first PE receives the EVPN-VPWS route advertisement message, it matches the first local service identifier with the remote service identifier configured in the first PE. If the first local service identifier is consistent with a remote service identifier configured in the first PE, it indicates that the EVPN-VPWS route advertisement message is used to notify the first PE to create a PW under the EVPN-VPWS.
  • the first PE when the first PE receives the EVPN-VPWS route advertisement message, it matches the first local service identifier carried in the EVPN-VPWS route advertisement message with the remote service identifier configured in the first PE. If the first local service identifier is consistent with a remote service identifier configured on the first PE, the first PE creates a PW under the EVPN-VPWS.
  • the specific operation is: the first PE establishes the identifier of the PW to be created carried in the EVPN-VPWS route advertisement message and the locally configured local service identifier corresponding to the remote service identifier, and the EVPN-VPWS route advertisement message carried
  • the corresponding relationship between the next hop information of the corresponding relationship is a forwarding entry, and thus a PW from the first PE to the second PE is established.
  • the local service identifier corresponding to the remote service identifier is called a second local service identifier.
  • the first PE when it receives the message sent by the CE indicated by the second local service identifier, it can find out the PW identifier and next hop information based on the corresponding relationship, and then send the message based on the found information. Or, when the message carrying the PW identifier is received, the second local service identifier is found based on the correspondence, and then the message is sent to the CE indicated by the second local service identifier.
  • the route advertisement message may be an EVPN-VPLS route advertisement message. Since the networking of the EVPN-VPLS is basically the same as that of the EVPN-VPWS, the implementations of steps 301 to 302 are also basically the same. I won't go into details here.
  • the above-mentioned route advertisement message is described by announcing the PW in EVPN-VPWS or VPLS as an example.
  • the route advertisement method shown in Figure 3 it is possible to realize L2VPN VPWS or VPLS forwarded based on MPLS to forwarded based on SRv6.
  • the route advertisement method in Figure 3 can also be applied to advertise other types of EVPN SRv6 routes.
  • L2VPN VPWS or VPLS forwarding based on MPLS can be implemented to other types of routes.
  • the evolution of the EVPN SRv6 network will not be illustrated one by one in the embodiment of this application.
  • the embodiment of this application extends the EVPN SRv6 route advertisement message so that the extended EVPN SRv6 route advertisement message carries the pseudowire identifier of the L2VPN PW between the first network device and the second network device Information, in order to find the forwarding table entry associated with the L2VPN PW based on the pseudowire identification information, and then process the forwarding table entry associated with the L2VPN PW, so as to realize the forwarding from L2VPN VPWS or VPLS based on MPLS to SRv6 based Evolution of EVPN VPWS or VPLS.
  • the method provided by the embodiment of the present application can also realize the evolution from L2VPN VPWS or VPLS based on MPLS forwarding to other types of EVPN SRv6 networks.
  • the evolution from L2VPN VPWS or VPLS based on MPLS forwarding to EVPN SRv6 network can be realized.
  • the embodiment of the present application also provides a route notification method. Based on the route notification method, the evolution from EVPN-VPWS based on MPLS network forwarding to SRv6 network forwarded EVPN-VPWS can be realized. The following describes the route notification method Give a detailed explanation.
  • FIG. 6 is a flow chart of another route advertisement method provided by the embodiment of the present application. As shown in Figure 6, the method includes the following steps.
  • Step 601 The first network device receives a route advertisement message from the second network device, the route advertisement message is used to advertise the EVPN SRv6 route, and the route advertisement message carries the next hop information of the EVPN SRv6 route as the second network
  • the IPv6 address of the device, the next hop information of the EVPN SRv6 route locally stored in the first network device is the IPv4 address of the second network device.
  • the application scenario of the route advertisement method shown in FIG. 6 is that an MPLS EVPN PW has been established between the first network device and the second network device. Since the route advertisement message used to establish the MPLS EVPN PW and the route advertisement message for announcing the EVPN SRv6 route in step 601 are both published based on the BGP protocol, these two route advertisement messages are used to advertise the same route.
  • the first network device when the first network device receives the route advertisement message for announcing the EVPN SRv6 route, the next hop information of the EVPN SRv6 route has been configured locally based on the previously received route advertisement message, therefore, the first network device The locally configured next hop information of the EVPN SRv6 route needs to be modified based on the next hop information in the route advertisement message received again.
  • the destination address of the EVPN PW is PE2's IPv4 address.
  • PE1 receives the route advertisement message in step 601 it indicates that the current EVPN PW whose destination address is the IPv6 address of PE2 needs to be established, that is, the EVPN PW in the SRv6 scenario needs to be established.
  • PE1 needs to select one of the two next-hop information as the destination address of the EVPN PW through the following step 602.
  • Step 602 The first network device selects one from the IPv6 address of the second network device and the IPv4 address of the second network device as the next hop information of the EVPN SRv6 route.
  • step 602 can be configured by a manager. That is, it is up to the administrator to choose which address among the IPv6 address of the second network device and the IPv4 address of the second network device is used as the next hop information of the EVPN SRv6 route. For example, the administrator can modify the locally stored next hop information of the EVPN SRv6 route from the IPv4 address of the second network device to the IPv6 address of the second network device.
  • the evolution from EVPN-VPWS forwarded over MPLS network to EVPN-VPWS forwarded over SRv6 network can be realized, or the evolution from EVPN-VPLS forwarded over MPLS network to EVPN-VPLS forwarded over SRv6 network can be realized.
  • FIG. 7 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • the communication device 700 includes a transceiver unit 701 and a processing unit 702 .
  • the communication device 700 may be used to execute the route advertisement method shown in FIG. 4 or the route advertisement method shown in FIG. 6 above.
  • the communication device 700 can execute the embodiment shown in FIG. 4 above.
  • the communication device 700 is equivalent to the first A network device.
  • the transceiving unit 701 is configured to perform the transceiving operation performed by the first network device in the embodiment in FIG. 4 .
  • the processing unit 702 is configured to perform operations performed by the first network device in the embodiment in FIG. 4 except the transceiving operation.
  • the transceiver unit 701 is configured to receive a route advertisement message from the second network device, the route advertisement message is used to announce the EVPN SRv6 route, and the route advertisement message carries the next hop information of the EVPN SRv6 route as the second
  • the IPv6 address of the network device the route advertisement message also carries pseudowire identification information, and the pseudowire identification information is used to identify the pseudowire L2VPN PW based on the two-layer virtual private network between the first network device and the second device.
  • the processing unit 702 is configured to process the L2VPN PW based on the pseudowire identification information, such as closing the L2VPN PW, or establishing an EVPN SRv6 PW, and configuring the priority of the EVPN SRv6 PW to be greater than that of the L2VPN PW.
  • the communication device 700 can execute the embodiment shown in FIG. 4 above.
  • the communication device 700 is equivalent to the embodiment shown in FIG. 4
  • the second network device in The transceiving unit 701 is configured to perform the transceiving operation performed by the second network device in the embodiment shown in FIG. 4 .
  • the processing unit 702 is configured to perform operations performed by the second network device in the embodiment shown in FIG. 4 except the transceiving operation.
  • the processing unit 702 is configured to generate a route notification message for notifying the EVPN SRv6 route, the route notification message is used to notify the EVPN SRv6 route, and the route notification message carries the next hop information of the EVPN SRv6 route as the first
  • the IPv6 address of the second network device the route notification message also carries pseudowire identification information, and the pseudowire identification information is used to identify the pseudowire L2VPN PW based on the two-layer virtual private network between the first network device and the second device;
  • the transceiver unit 701 is configured to send the route advertisement message to the first network device, so as to trigger the first network device to process the L2VPN PW based on the pseudowire identification information.
  • the communication device 700 can execute the embodiment shown in FIG. 6 above.
  • the communication device 700 is equivalent to the embodiment shown in FIG. 6
  • the first network device in The transceiving unit 701 is configured to perform the transceiving operation performed by the first network device in the embodiment shown in FIG. 6 .
  • the processing unit 702 is configured to perform operations performed by the first network device in the embodiment shown in FIG. 6 , except the transceiving operation.
  • the transceiver unit 701 is configured to receive a route advertisement message sent by the second network device, the route advertisement message is used to announce the EVPN SRv6 route, and the route advertisement message carries the next hop information of the EVPN SRv6 route as the first
  • the IPv6 address of the second network device, the next hop information of the EVPN SRv6 route locally stored in the first network device is the IPv4 address of the second network device;
  • the processing unit 702 is used to obtain the IPv6 address of the second network device and the second network device Select one of the IPv4 addresses of the two network devices as the next hop information of the EVPN SRv6 route.
  • the communication device 700 when the communication device 700 is used to execute the embodiment shown in FIG. 6 in the above embodiments, the communication device 700 is equivalent to the second network device in the embodiment shown in FIG. 6 .
  • the transceiving unit 701 is configured to perform the transceiving operation performed by the second network device in the embodiment shown in FIG. 6 .
  • the processing unit 702 is used for operations performed by the second network device in the embodiment shown in FIG. 6 except the transceiving operation.
  • the processing unit 702 is configured to generate a route advertisement message, where the route advertisement message is used to announce the EVPN SRv6 route, and the route advertisement message carries the next hop information of the EVPN SRv6 route as the second network device
  • the IPv6 address the first network device locally stores the next hop information of the EVPN SRv6 route as the IPv4 address of the second network device
  • the transceiver unit 701 is configured to send the route notification message to the first network device, To trigger the first network device to select one from the IPv6 address of the second network device and the IPv4 address of the second network device as the next hop information of the EVPN SRv6 route.
  • each functional unit in the embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the transceiver unit 701 and the processing unit 702 may be the same unit or different units.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the embodiment of the present application also provides a communication device 800 , as shown in FIG. 8 , which is a schematic structural diagram of a communication device provided in the embodiment of the present application.
  • the communication device 800 includes a communication interface 801 and a processor 802 connected to the communication interface 801 .
  • the communication interface is, for example, a device such as a transceiver.
  • the communication device 800 may be used to implement the above embodiment shown in FIG. 4 or the embodiment shown in FIG. 6 .
  • the communication apparatus 800 may serve as the first network device, and respectively execute the operations performed by the first network device in the embodiment shown in FIG. 4 or the embodiment shown in FIG. 6 .
  • the communication apparatus 800 may also serve as a second network device, and respectively execute operations performed by the second network device in the embodiment shown in FIG. 4 or the embodiment shown in FIG. 6 .
  • the communication interface 801 is configured to perform the transceiving operations performed by the first network device or the second network device in the foregoing method embodiments.
  • the processor 802 is configured to perform operations other than the transceiving operations performed by the first network device or the second network device in the foregoing method embodiments.
  • the communication interface 801 is used to receive a route advertisement message from the second network device, and the route advertisement message is used to notify the EVPN SRv6 route,
  • the route notification message carries the next hop information of the EVPN SRv6 route as the IPv6 address of the second network device, and the route notification message also carries pseudowire identification information, which is used to identify the first network device and the second network device. Pseudowire L2VPN PW based on two-layer virtual private network between devices.
  • the processor 802 is configured to process the L2VPN PW based on the pseudowire identification information, such as closing the L2VPN PW, or establishing an EVPN SRv6 PW, and configuring the priority of the EVPN SRv6 PW to be greater than that of the L2VPN PW.
  • a communications device 900 may include a processor 910 , a memory 920 coupled to the processor 910 , and a transceiver 930 .
  • the transceiver 930 may be, for example, a communication interface, an optical module, and the like.
  • the processor 910 may be a central processing unit (English: central processing unit, abbreviated: CPU), a network processor (English: network processor, abbreviated: NP) or a combination of CPU and NP.
  • the processor can also be an application-specific integrated circuit (English: application-specific integrated circuit, abbreviation: ASIC), a programmable logic device (English: programmable logic device, abbreviation: PLD) or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above PLD can be a complex programmable logic device (English: complex programmable logic device, abbreviated: CPLD), field programmable logic gate array (English: field-programmable gate array, abbreviated: FPGA), general array logic (English: generic array logic, abbreviation: GAL) or any combination thereof.
  • the processor 910 may refer to one processor, or may include multiple processors.
  • the memory 920 may include a volatile memory (English: volatile memory), such as a random-access memory (English: random-access memory, abbreviated as RAM); the memory may also include a non-volatile memory (English: non-volatile memory) , such as read-only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid-state drive (English: solid-state drive , abbreviation: SSD); the storage 920 may also include a combination of the above-mentioned types of storage.
  • the storage 920 may refer to one storage, or may include multiple storages.
  • computer-readable instructions are stored in the memory 920 , and the computer-readable instructions include a plurality of software modules, such as a sending module 921 , a processing module 922 and a receiving module 923 .
  • the sending module 921 is used to indicate operations related to sending
  • the receiving module 923 is used to indicate operations related to receiving
  • the processing module is used to indicate operations related to processing.
  • the processor 910 may perform corresponding operations according to instructions of each software module.
  • the operations performed by a software module actually refer to the operations performed by the processor 910 according to the instructions of the software module.
  • the processor 910 may also store program codes or instructions for executing the solutions of the present application. In this case, the processor 701 does not need to read the program codes or instructions from the memory 920 .
  • the communication device 900 may be used to implement the above embodiment shown in FIG. 4 or the embodiment shown in FIG. 6 .
  • the communication device 900 may be used to implement the above embodiment shown in FIG. 4 or the embodiment shown in FIG. 6 .
  • the communication apparatus 900 may serve as the first network device, and respectively execute the operations performed by the first network device in the embodiment shown in FIG. 4 or the embodiment shown in FIG. 6 .
  • the communication apparatus 900 may also serve as a second network device, and respectively execute operations performed by the second network device in the embodiment shown in FIG. 4 or the embodiment shown in FIG. 6 .
  • the communication device 900 is used as the first network device to execute the embodiment shown in FIG.
  • the route advertisement message of the device is used to announce the EVPN SRv6 route, the route advertisement message carries the next hop information of the EVPN SRv6 route as the IPv6 address of the second network device, and the route advertisement message also carries the fake Line identification information, the pseudo-wire identification information is used to identify the pseudo-wire L2VPN PW based on the two-layer virtual private network between the first network device and the second device, so as to process the L2VPN PW based on the pseudo-wire identification information.
  • the embodiment of the present application also provides a computer-readable storage medium, and instructions are stored in the computer-readable storage medium, and when it is run on a processor, the method described in any one of the preceding embodiments is implemented ( Any one or more operations in the embodiment shown in Fig. 4 or Fig. 6).
  • An embodiment of the present application also provides a computer program product, including a computer program, which, when running on a processor, implements the method described in any of the preceding embodiments (for example, the method shown in FIG. 4 or FIG. 6 Embodiment) in any one or more operations.
  • the embodiment of the present application also provides a communication system, including a first network device and a second network device, and the structures of the first network device and the second network device are any communication devices corresponding to those shown in FIGS. 7-9 .
  • the aforementioned communication system may be, for example, the communication system shown in FIG. 1 or FIG. 2 .
  • the foregoing communication system is used to implement part or all of the operations in any one of the methods described in the embodiments corresponding to FIG. 4 and FIG. 6 .
  • the embodiment of the present application also provides another communication system, including at least one memory and at least one processor, the at least one memory stores instructions, and the at least one processor executes the instructions, so that the communication system implements the aforementioned Part or all of the operations in the method described in any one of the embodiments.
  • the embodiment of the present application also provides a chip system, including: a processor, the processor is coupled with a memory, and the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the The chip system implements part or all of the operations in any one of the methods described in any one of the foregoing embodiments of the present application.
  • processors in the chip system there may be one or more processors in the chip system.
  • the processor can be realized by hardware or by software.
  • the processor may be a logic circuit, an integrated circuit, or the like.
  • the processor may be a general-purpose processor implemented by reading software codes stored in a memory.
  • the memory can be integrated with the processor, or can be set separately from the processor, which is not limited in this application.
  • the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip, or can be respectively arranged on different chips.
  • the setting method of the processor is not specifically limited.
  • the system-on-a-chip can be an FPGA, an ASIC, a system on chip (SoC), a CPU, an NP, or a digital signal processing circuit (digital signal processor, DSP), can also be a microcontroller (micro controller unit, MCU), can also be a programmable controller (programmable logic device, PLD) or other integrated chips.
  • SoC system on chip
  • DSP digital signal processing circuit
  • MCU microcontroller
  • PLD programmable controller
  • the disclosed system, device and method can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of units is only a logical business division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • a unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each business unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software business units.
  • the integrated unit is realized in the form of a software business unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
  • the services described in the present invention may be implemented by hardware, software, firmware or any combination thereof.
  • the services may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

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

Abstract

公开了一种路由通告方法、网络设备及计算机存储介质,属于通信技术领域。本申请实施例对EVPN SRv6路由通告报文进行了扩展,以携带第一网络设备和第二网络设备之间的L2VPN PW的伪线标识信息,以便于基于该伪线标识信息查找到该L2VPN PW相关联的转发表项,进而对该L2VPN PW相关联的转发表项进行处理,从而实现基于MPLS转发的L2VPN VPWS向基于SRv6转发的EVPN VPWS的演进,或者,基于MPLS转发的L2VPN VPLS向基于SRv6转发的EVPN VPLS的演进。此外,还能够实现基于MPLS转发的L2VPN VPWS或VPLS向其他类型的EVPN SRv6网络的演进。

Description

路由通告方法、网络设备及计算机存储介质
本申请要求于2021年09月30日提交的申请号为202111161855.9、发明名称为“路由通告方法、网络设备及计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,特别涉及一种路由通告方法、网络设备及计算机存储介质。
背景技术
伪线(Pseudo-Wire,PW)是建立在分组网络中的边缘设备(Provider Edge,PE)之间的一种通信连接。不同的PE之间通过PW通信。目前,PE之间的PW通常是基于二层虚拟专用网的虚拟专用线路业务(Layer 2 Virtual Private Network Virtual Private Wire Service,L2VPN VPWS)创建的。但是,随着以太虚拟私有网(Ethernet Virtual Private Network,EVPN)技术的发展,PE通常能够同时支持L2VPN VPWS和EVPN VPWS两种业务来创建PW。这种场景下,如何将L2VPN VPWS演进至EVPN VPWS是当前研究的热点。
发明内容
本申请实施例提供了一种路由通告方法、网络设备及计算机存储介质,能够实现基于MPLS转发的L2VPN VPWS演进至基于SRv6转发的EVPN VPWS。所述技术方案如下:
第一方面,提供了一种路由通告方法,在该方法中,第一网络设备接收来自第二网络设备的路由通告报文。其中,该路由通告报文用于通告EVPN SRv6路由,该路由通告报文携带该EVPN SRv6路由的下一跳信息为第二网络设备的IPv6地址,且该路由通告报文还携带伪线标识信息,该伪线标识信息用于标识第一网络设备和第二设备之间的L2VPN PW。
本申请实施例对EVPN SRv6路由通告报文进行了扩展,以使扩展后的EVPN SRv6路由通告报文携带第一网络设备和第二网络设备之间的L2VPN PW的伪线标识信息。由此,通过对路由通告消息进行扩展,使得在通告路由的同时能够携带L2VPN PW相关的伪线标识信息,使得网络设备在现网过渡的场景中,能够实现基于MPLS转发的L2VPN向基于SRv6 EVPN的平滑演进。能够及时关闭现有L2VPN中的PW,并顺利建立EVPN SRv6的PW。例如,在第一网络设备为PE1,第二网络设备为PE2,EVPN SRv6路由通告报文为EVPN-VPWS SRv6路由通告报文的场景中,当PE1接收到PE2发送的EVPN-VPWS SRv6路由通告报文时,PE1在建立基于EVPN SRv6的PW时,还能够根据该伪线标识信息在本地查找L2VPN PW,进而对L2VPN PW进行处理,从而实现基于MPLS转发的L2VPN VPWS向基于SRv6转发的EVPN VPWS的演进。
此外,本申请实施例提供的方法不仅能够实现在传统的L2VPN向EVPN SRv6网络场景的演进过程中,在创建基于EVPN SRv6的PW时对已经建立的L2VPN PW进行处理。也能 够实现传统L2VPN向其他类型的EVPN SRv6演进场景中,在创建其他类型的EVPN SRv6路由时对已经建立的L2VPN PW进行处理。
在一种可能的实现方式中,在该方法中,第一网络设备基于该伪线标识信息关闭L2VPN PW。
具体地,在实现传统的L2VPN向EVPN SRv6网络演进的场景中,可以将L2VPN PW关闭(置down)。其中,关闭L2VPN PW可以是删除L2VPN PW相关联的转发表项,或者将L2VPN PW相关联的转发表项置无效等,这样后续在转发报文时便不会根据L2VPN PW转发,而是基于新通告的EVPN SRv6路由转发。
在一种可能的实现方式中,在该方法中,第一网络设备建立EVPN SRv6 PW。其中,EVPN SRv6 PW的目的地址为第二网络设备的IPv6地址。第一网络设备还将EVPN SRv6 PW的优先级配置为大于L2VPN PW的优先级。
具体地,在基于该路由通告报文建立EVPN SRv6 PW的场景下,除了可以将L2VPN PW关闭,还可以不关闭L2VPN PW,而是降低L2VPN PW的优先级,如此,在转发报文时,优先使用EVPN SRv6 PW。
在一种可能的实现方式中,其中,前述建立的EVPN SRv6 PW为VPWS中的PW,或者,VPLS中的PW。也即是,本申请实施例中涉及的PW可以为VPWS中的PW,也可以为VPLS中的PW,从而实现基于MPLS转发的L2VPN VPWS向基于SRv6转发的EVPN VPWS演进,或者,基于MPLS转发的L2VPN VPLS向基于SRv6转发的EVPN VPLS演进。
在一种可能的实现方式中,该路由通告报文包括扩展团体属性,该扩展团体属性中携带有前述的伪线标识信息。
具体地,可以对路由通告报文中的扩展团体属性进行扩展,以使扩展后的扩展团体属性能够携带第一网络设备和第二网络设备之间的L2VPN PW的伪线标识信息。
在一种可能的实现方式中,该扩展团体属性包括类型字段和伪线标识字段。其中,类型字段指示扩展团体属性用于携带伪线标识信信息,伪线标识字段用于承载前述的伪线标识信息。在另一种可能的实现方式中,扩展团体属性包括类型字段和全局管理员字段。其中,类型字段指示扩展团体属性用于携带IPv4地址的特征信息,全局管理员字段用于承载前述的伪线标识信息。
基于上述两种方式,可以对已有的扩展团体属性进行扩展,也可以扩展一种新的扩展团体属性,以使扩展后的扩展团体属性能够携带第一网络设备和第二网络设备之间的L2VPN PW的伪线标识信息。
在一种可能的实现方式中,前述的伪线标识信息包括以下一项或多项:第二网络设备的IPv4地址、L2VPN PW的标识以及站点标识。
在本申请实施例中,可以通过不同伪线标识信息来标识第一网络设备和第二网络设备之间的L2VPN PW。
第二方面,提供了一种路由通告方法,在该方法中,第二网络设备向第一网络设备发布路由通告报文,该路由通告报文用于通告EVPN SRv6路由,该路由通告报文携带该EVPN SRv6路由的下一跳信息为第二网络设备的IPv6地址,该路由通告报文还携带伪线标识信息,该伪线标识信息用于标识第一网络设备和第二设备之间的L2VPN PW。
在一种可能的实现方式中,该路由通告报文包括扩展团体属性,该扩展团体属性中携带有前述的伪线标识信息。
在一种可能的实现方式中,该扩展团体属性包括类型字段和伪线标识字段。其中,类型字段指示扩展团体属性用于携带伪线标识信信息,伪线标识字段用于承载前述的伪线标识信息。在另一种可能的实现方式中,扩展团体属性包括类型字段和全局管理员字段。其中,类型字段指示扩展团体属性用于携带IPv4地址的特征信息,全局管理员字段用于承载前述的伪线标识信息。
在一种可能的实现方式中,前述的伪线标识信息包括以下一项或多项:第二网络设备的IPv4地址、L2VPN PW的标识以及站点标识。
该路由通告方法的技术效果可以参考前述第一方面提供的路由通告方法的技术效果,在此不再重复说明。
第三方面,提供了一种路由通告方法,在该方法中,第一网络设备接收来自第二网络设备的路由通告报文。其中,该路由通告报文用于通告EVPN SRv6路由,该路由通告报文携带该EVPN SRv6路由的下一跳信息为第二网络设备的IPv6地址,第一网络设备本地存储有EVPN SRv6路由的下一跳信息为第二网络设备的IPv4地址。之后,第一网络设备从第二网络设备的IPv6地址以及第二网络设备的IPv4地址中选择一个作为EVPN SRv6路由的下一跳信息。
通过上述路由通告方法能够实现基于MPLS网络转发的EVPN-VPWS向基于SRV6网络转发的EVPN-VPWS演进。
第四方面,提供了一种第一网络设备,第一网络设备具有实现上述第一方面中路由通告方法行为的功能。第一网络设备包括至少一个单元,该至少一个单元用于实现上述第一方面所提供的路由通告方法。
第五方面,提供了一种第二网络设备,第二网络设备具有实现上述第二方面中路由通告方法行为的功能。第二网络设备包括至少一个单元,该至少一个单元用于实现上述第二方面所提供的路由通告方法。
第六方面,提供了另一种第一网络设备,第一网络设备具有实现上述第三方面中路由通告方法行为的功能。第一网络设备包括至少一个单元,该至少一个单元用于实现上述第三方面所提供的路由通告方法。
第七方面,提供了一种第一网络设备,所述第一网络设备的结构中包括存储器,存储有指令;与所述存储器相连的处理器,当所述指令在所述处理器中运行时,使得所述第一网络设备执行上述的路由通告方法。
第八方面,提供了一种第二网络设备,所述第二网络设备的结构中包括存储器,存储有指令;与所述存储器相连的处理器,当所述指令在所述处理器中运行时,使得所述第二网络 设备执行上述的路由通告方法。
第九方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面或第二方面或第三方面所述的路由通告方法。
第十方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面、或者第二方面或者第三方面所述的路由通告方法。
第十一方面,提供了一种通信系统,该通信系统包括前述的第一网络设备和第二网络设备。
上述第四方面至第十一方面所获得的技术效果与前述第一方面第二方面以及第三方面中对应的技术手段获得的技术效果近似,在这里不再赘述。
附图说明
图1是本申请实施例提供的一种VPWS的网络架构示意图;
图2是本申请实施例提供的另一种VPWS的网络架构示意图;
图3是本申请实施例提供的一种路由通告方法流程图;
图4是本申请实施例提供的一种扩展的新的扩展团体属性的格式示意图;
图5是本申请实施例提供的一种IPv4地址特征扩展团体属性的格式示意图;
图6是本申请实施例提供的另一种路由通告方法流程图;
图7为本申请实施例提供的一种通信装置的结构示意图;
图8为本申请实施例提供的另一种通信装置的结构示意图;
图9为本申请实施例提供的另一种通信装置的结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
在对本申请实施例进行详细解释说明之前,先对本申请实施例的应用场景进行介绍。
多协议标签交换(Multi-Protocol Label Switching,MPLS)L2VPN是基于MPLS的二层VPN(Virtual Private Network,虚拟专用网络)技术,是边缘到边缘的伪线仿真(Pseudo Wire Emulation Edge-to-Edge,PWE3)的一种实现方式。MPLS L2VPN将用户的二层数据(如以太网数据帧、异步传输模式(Asynchronous Transfer Mode,ATM)信元等)封装成可以在MPLS网络中传送的分组,通过MPLS隧道转发封装后的分组,接收端解封装分组后恢复原来的二层数据,从而实现用户二层数据跨越MPLS网络透明地传送。从用户的角度来看,MPLS网络是一个二层交换网络,可以在用户网络的不同站点(Site)间建立二层连接。
目前MPLS L2VPN的组网类型可以包括VPWS、VPLS等。
其中,VPWS是一种提供点到点服务的二层VPN技术。VPWS是指在分组交换网络(Packet Switched Network,PSN)中尽可能真实地模仿ATM、帧中继、以太网、低速(Time Division Multiplexing,TDM)电路等业务的基本行为和特征的一种二层业务承载技术。VPWS技术是一种点到点的虚拟专线技术,能够支持几乎所有的链路层协议,不同PE之间通过建立的PW通信。
VPLS是指在共用网络上提供的一种点到多点的L2VPN业务。VPLS同样是利用信令协议在VPLS实例中的PE节点之间建立及维护PW,以将二层协议帧封装后在PW上传输、交换,使广域范围内多个局域网在数据链路层面被整合为一张网络,向用户提供虚拟的以太网服务。也即是,VPLS中点到多点之间同样是基于建立的PW通信。
本申请实施例涉及的PW可以是基于VPWS技术建立的PW,也可时基于VPLS技术建立的PW。
随着发展,L2VPN逐渐出现无法实现负载分担、网络资源消耗大等缺点。基于此,EVPN应运而生。EVPN通过扩展BGP协议使二层网络间的MAC地址学习和发布过程从数据平面转移到控制平面。这样可以使设备在管理MAC地址时像管理路由一样,使目的MAC地址相同但下一跳不同的多条EVPN路由实现负载分担。并且,通过使用EVPN技术,运营商骨干网上的PE设备之间不再需要建立全连接,大大降低了网络复杂度,同时也减少了网络信令数量,进而避免了网络资源的浪费。
基于上述EVPN技术的优势,前述的L2VPN VPWS可演进为EVPN VPWS,L2VPN VPLS可演进为EVPN VPLS。
此外,上述VPWS以及VPLS均是以MPLS场景进行说明。随着分段路由技术的发展以及网络全面由IPv4向IPv6演进,基于IPv6的段路由(segment routing over IPv6,SRv6)技术逐渐成熟。SRv6技术中,在IPv6报文中新增了SRH扩展,来替代传统的MPLS下的标签转发功能,并使用128位的IPv6地址作为网络节点的标识SID。当传输数据时,SRv6在首节点将传输路径上各节点的SID集合起来以SID列表(Segment List)的形式放在SRH中,并通过剩余段数(segment left,SL)来表示从当前节点开始截止到目的节点还需访问的中间节点的数量,以此修改SL值来实现下一跳。基于上述优势,SRv6技术将逐渐替代MPLS技术。
这种场景下,如何实现基于MPLS转发的L2VPN或EVPN VPWS向基于SRV6转发的EVPN VPWS演进、以及基于MPLS转发的L2VPN VPLS或EVPN VPLS向基于SRv6转发的EVPN VPLS演进是当前研究的特点。本申请实施例提供的路由通告方法就用于实现这几个方面的演进。
下面对本申请实施例涉及的网络架构进行解释说明。
图1是本申请实施例提供的一种VPWS的网络架构示意图。如图1所示,网络中部署有PE1和PE2,以及与PE1连接的用户边缘路由器(customer edge1,CE1)、与PE2连接的CE2。其中,PE1的IPv4地址为1.1.1.1,PE2的IPv4地址为2.2.2.2。
CE是直接与服务提供商网络相连的用户边缘设备。PE是与CE相连的服务提供商网络侧设备。PE主要负责VPN业务的接入,完成报文从用户网络到公网隧道、从公网隧道到用户网络的映射与转发。
CE和PE之间通过接入电路(Attachment Circuit,AC)连接。其中,AC是连接CE和 PE的物理电路或虚拟电路,AC例如可以为以太网(Ethernet)接口。
PE之间基于伪线连接。伪线是两个PE之间的虚拟双向连接。也即是本申请涉及的PW是有方向性的,对于任意两个PE,这两个PE之间的PW实质上是指两个方向相反的单向传输PW。比如,对于图1中的PE1和PE2,对于PE1而言,PE1和PE2之间的PW的目的地为PE2,对于PE2,PE1和PE2之间的PW的目的地为PE1,也即是说,PE1和PE2之间的PW有PE1至PE2方向的PW以及PE2至PE1方向的PW。
其中,PW技术是一种业务承载技术,时分复用(time-division multiplexing,TDM)业务、同步数字体系(Synchronous Digital Hierarchy,SDH)业务、同步光纤网络(Synchronous Optical Network,SONET)业务、异步传输模式(Asynchronous Transfer Mode,ATM)业务、帧中继业务和以太网业务都可以承载在PW上。PW可以是基于任一种类型的隧道的PW,如SR-MPLS隧道或SRv6隧道。换句话说,PW承载在公网隧道中,公网隧道可以是LSP、MPLS TE、GRE隧道、SR-MPLS隧道或SRv6隧道等。
需要说明的是,图1是以两个PE、以及每个PE连接一个CE为例进行说明,本申请实施例对VPWS组网中包括的PE的数量以及PE连接的CE的数量并不做限定。
图1是以VPWS组网为例说明本申请实施例涉及的网络架构。可选地,本申请实施例提供的方法也应用于VPLS组网中,其中VPLS组网的网络架构和VPWS组网的网络架构基本相同,因此在此不再赘述。
如图1所示,假设PE1和PE2均支持MPLS场景下的混合模式,也即是PE1和PE2均同时支持MPLS L2VPN VPWS以及MPLS EVPN VPWS。这种场景下,假设PE1和PE2之间已经通过MPLS L2VPN VPWS业务建立用于传输CE1和CE2之间的报文的第一PW,该第一PW还可以称为L2VPN PW,那么在PE1和PE2之间基于MPLS EVPN VPWS业务建立用于传输CE1和CE2之间的报文第二PW时,由于第一PW的功能和第二PW的功能完全一致,因此在建立第二PW时,需对第一PW进行处理,以避免PE1和PE2在转发报文时出错。前述PE1建立第二PW的时机是:在接收到PE2发布的MPLS EVPN VPWS路由通告报文时,PE1将基于MPLS EVPN VPWS路由通告报文中携带的信息建立PE1至PE2的第二PW。
其中,本申请实施例中对第一PW进行处理可以是指关闭第一PW。关闭第一PW具体是指PE1在本地删除关于第一PW的转发表项或者将第一PW的转发表项置无效。如此PE1后续在转发CE1和CE2之间的报文时,便不会从本地转发表项中查找到第一PW,进而也就不会基于第一PW转发CE1和CE2之间的报文了。
本申请实施例中对第一PW进行处理也可以是指将第二PW的优先级配置为大于第一PW的优先级,也即是降低第一PW的优先级。其中,所谓的PW的优先级也即是PW的转发表项的优先级。如此PE1后续在转发CE1和CE2之间的报文时,从本地转发表项中查找到第一PW和第二PW的转发表项均能用于转发CE1和CE2之间的报文,但是由于第二PW的优先级大于第一PW的优先级,因此优先使用第二PW转发CE1和CE2之间的报文。
需要说明的是,在图1所示的场景中,由于第一PW和第二PW均是在MPLS场景下构建的,因此,对于PE1而言,第一PW和第二PW的目的地址均是PE2的IPv4地址,因此PE1在建立第二PW时,PE1能够根据第二PW的目的地址顺利在本地查找到第一PW,然后对第一PW进行处理。
但是,如图2所示,假设PE1和PE2之间已经通过MPLS L2VPN VPWS业务建立用于传输CE1和CE2之间的报文第一PW,但是当前PE1和PE2已经支持SRv6 EVPN VPWS业务,此时便可基于SRv6 EVPN VPWS建立用于传输CE1和CE2之间的报文的第三PW。同样地,在PE1和PE2之间建立第三PW时,由于第三PW的功能和第一PW的功能完全一致,因此需要在建立第三PW时,对第一PW进行处理,以避免PE1和PE2在转发报文时出错。前述PE1建立第三PW的时机是在接收到PE2发布的EVPN VPWS SRv6路由通告报文时,PE1将基于EVPN VPWS SRv6路由通告报文中携带的信息建立PE1至PE2的第三PW。
需要说明的是,在图2所示的场景中,由于第一PW是在MPLS场景下构建的,因此,对于PE1而言,第一PW的目的地址是PE2的IPv4地址。但是PE1在建立第三PW时,EVPN VPWS SRv6路由通告报文中携带的第三PW的目的地址为PE2的IPv6地址。这种场景下,PE1将无法根据第三PW的目的地址在本地查找到第一PW,进而也就无法对第一PW进行处理,从而无法实现基于MPLS转发的L2VPN VPWS到基于SRV6转发的EVPN VPWS的演进。
基于上述问题,本申请实施例提供了一种路由通告方法,以便于在建立第三PW时能够及时对第一PW进行处理,从而完成基于MPLS转发的L2VPN VPWS到基于SRV6转发的EVPN VPWS的演进。下面对本申请实施例提供的路由通告方法进行详细解释说明。
图3是本申请实施例提供的一种路由通告方法流程图。如图3所示,该方法包括如下几个步骤。
步骤301:第二网络设备发布路由通告报文,该路由通告报文用于通告EVPN SRv6路由,该路由通告报文携带EVPN SRv6路由的下一跳信息为第二网络设备的IPv6地址,该路由通告报文还携带伪线标识信息,该伪线标识信息用于标识第一网络设备和第二设备之间的基于两层虚拟专用网络的伪线L2VPN PW。
在分组网络中,第一网络设备和第二网络设备具体可以为PE。此时,第一网络设备也称为第一PE,第二网络设备也称为第二PE。
如前述内容可知,本申请实施例中涉及的PW可以为VPWS中的PW,也可以为VPLS中的PW,由于VPLS中的PW的相关内容和VPWS中的相关内容基本相同,因此下述实施例以PW为VPWS中的PW为例进行说明。当本申请实施例涉及的PW为VPLS中的PW时,同样可以参考下述实施例实现本申请实施例提供的路由通告方法。
当PW为VPWS中的PW时,第二网络设备发布的路由通告报文为EVPN-VPWS路由通告报文。这种场景下,当第二网络设备接收到该路由通告报文时,便可基于该路由通告报文中携带的信息创建第一网络设备至第二网络设备之间的EVPN-VPWS下的PW。关于EVPN-VPWS路由通告报文中携带的具体信息将在后续内容中解释说明,在此先不展开阐述。
在第一网络设备基于该EVPN-VPWS路由通告报文建立第一网络设备至第二网络设备之间的PW之前,如果第一网络设备已经基于L2VPN-VPWS建立有PW,则需对已经建立的L2VPN PW进行处理。如前述内容,对L2VPN PW进行处理可以为关闭L2VPN PW或降低L2VPN PW的优先级,而这两个处理过程均需先在本地的转发表项中查找到L2VPN PW的转发表项,以便于删除L2VPN PW的转发表项或降低L2VPN PW的转发表项的优先级。因此,在本申请实施例中,为了能够成功对已经建立的L2VPN PW进行处理,在EVPN-VPWS路由通告报文中需要携带该已经建立的L2VPN PW的伪线标识信息,该伪线标识信息用于标识第 一网络设备和第二网络设备之间的L2VPN PW,以便于基于该伪线标识信息查找到该L2VPN PW相关联的转发表项,进而对该L2VPN PW相关联的转发表项进行处理。
具体地,该L2VPN PW的伪线标识信息包括以下一项或多项:第二网络设备的IPv4地址(origin IP)、L2VPN PW的标识(该PW的标识具体可以为虚拟通道标识(Virtual Channel Identifier,VC ID)、站点标识(site ID)。其中,站点标识是同一个VPN内唯一标识CE的参数,在同一个VPN内CE ID必须是互不相同的。基于前述PW创建过程可知,每个PW和本地所连接的一个CE绑定的,因此站点标识也能够标识PW。
比如,在图2所示的组网中,当PE1接收到PE2发送的EVPN-VPWS SRv6路由通告报文时,该EVPN-VPWS SRv6路由通告报文中携带待创建的PW的目的地址为PE2在SRv6网络中的地址2::2,此时则表明需要建立EVPN-VPWS SRv6下的PW,为了后续便于说明,将该PW称为EVPN SRv6 PW。由于PE2在IPv4网络中的地址为2.2.2.2,如果PE1之前已经建立了PE1至PE2的L2VPN PW,则该L2VPN PW的伪线标识信息比如PE2的地址为IPv4网络中的地址为2.2.2.2,因此如果不对EVPN-VPWS SRv6路由通告报文进行扩展,则无法根据EVPN-VPWS SRv6路由通告报文中携带的SRV6网络中的地址2::2查找L2VPN PW的转发表项,进而也就无法对L2VPN PW进行处理。这样,即时PE2发布了EVPN-VPWS SRv6路由通告报文,转发面和控制面仍然运行在L2VPN VPWS下。
基于上述问题,在本申请实施例中,为了能够实现该EVPN-VPWS SRv6路由通告报文携带第一网络设备和第二网络设备之间的L2VPN PW的伪线标识信息,对现有的EVPN-VPWS SRv6路由通告报文进行了扩展,以使扩展后的EVPN-VPWS SRv6路由通告报文携带第一网络设备和第二网络设备之间的L2VPN PW的伪线标识信息。
其中,EVPN-VPWS SRv6路由通告报文通常包括两部分。一部分为前缀字段,该前缀字段用于指示需要建立的EVPN SRv6 PW的标识。另一部分为属性字段,该属性字段用于指示EVPN SRv6 PW的相关属性。因此,在一种可能的实现方式中,可以对EVPN-VPWS SRv6路由通告报文中的属性字段进行扩展。该属性字段可以为团体属性字段或扩展团体属性字段,以使扩展后的团体属性或扩展团体属性能够携带第一网络设备和第二网络设备之间的L2VPN PW的伪线标识信息。具体地,可以通过以下两种方式对EVPN-VPWS路由通告报文中的扩展团体属性字段进行扩展。
(1)扩展一种新的扩展团体属性
在一种可能的实现方式中,可以扩展一种新的扩展团体属性。该新的扩展团体属性包括类型(type)字段和伪线标识字段,该类型字段指示该扩展团体属性的功能是用于携带伪线标识信息,该伪线标识字段用于承载第一网络设备和第二网络设备之间的L2VPN PW的伪线标识信息。
图4是本申请实施例提供的一种扩展的新的扩展团体属性的格式示意图。如图4所示,该扩展团体属性包括类型(type)字段、子类型(sub-type)字段、L2VPN PW地址(图4中表示为L2VPN VPWS origin IP)字段以及预留(reserved)字段。其中,类型字段可以为0x06,用于表示该扩展团体属性为EVPN类型的团体属性。子类型字段为需要新申请的一个类型,该类型指示该扩展团体属性是一个用于携带L2VPN PW地址的扩展团体属性。L2VPN PW地址字段用于承载第二网络设备的IPv4地址。预留字段暂时没有其他功能,因此先填写为0。
需要说明的是,图4是扩展的新的扩展团体属性的格式的示例说明,本申请实施例并不 限定扩展的新的扩展团体属性的格式,只需满足扩展后的新的扩展团体属性能够携带第一网络设备和第二网络设备之间的L2VPN PW的伪线标识信息即可。
(2)对现有的团体属性中的字段进行扩展
在另一种可能的实现方式中,可以对请求评论(Request For Comments,RFC)4360中的IPv4地址特征扩展团体(IPv4Address Specific Extended Community)属性进行扩展,以使该IPv4地址特征扩展团体属性能够携带第一网络设备和第二网络设备之间的L2VPN PW的伪线标识信息。
图5是本申请实施例提供的一种IPv4地址特征扩展团体属性的格式示意图。如图5所示,该扩展团体属性包括类型字段和全局管理员字段。该类型字段为0x01,用于指示该团体属性的功能是用于携带IPv4地址的特征信息,该全局管理员字段用于承载L2VPN PW地址(图5中表示为L2VPN VPWS origin IP)。图5中的本地管理员(Local Administrator)可以设置为0。此外,如图5所示,该扩展团体属性中的子类型(sub-type)字段为0x03,用于指示路由源(route origin)。
需要说明的是,上述是以对RFC4360中的IPv4地址特征扩展团体属性进行扩展为例进行说明,可选地,也可以对其他标准中已有的扩展团体属性进行扩展,以使扩展后的扩展团体属性能够携带第一网络设备和第二网络设备之间的L2VPN PW的伪线标识信息。
此外,对于第二网络设备而言,由于L2VPN VPWS和EVPN-VPWS在同一个VPN实例中,因此,第二网络设备能够在发布EVPN-VPWS SRv6路由通告报文时,获取到L2VPN VPWS下创建的L2VPN PW的伪线标识信息。进而通过上述图4或图5将L2VPN PW的伪线标识信息携带在EVPN-VPWS SRv6路由通告报文中,然后将EVPN-VPWS SRv6路由通告报文发布给第一网络设备,第一网络设备通过下述步骤302接收该EVPN-VPWS SRv6路由通告报文。
比如,对于图2所示的组网,PE2在发布EVPN-VPWS SRv6路由通告报文时,将PE2的IPV4地址2.2.2.2携带在该EVPN-VPWS SRv6路由通告报文中。
步骤302:第一网络设备接收来自第二网络设备的路由通告报文。
第一网络设备在接收到该路由通告报文时,便可对第一网络设备和第二网络设备之间的L2VPN PW进行处理。
在一种可能的实现方式中,在该路由通告报文为EVPN-VPWS SRv6路由通告报文的情况下,第一网络设备可以根据该路由通告报文建立EVPN SRv6 PW,该EVPN SRv6 PW的目的地址为第二网络设备的IPv6地址。在建立EVPN SRv6 PW时,可以基于伪线标识信息关闭L2VPN PW或将EVPN SRv6 PW的优先级配置为大于L2VPN PW的优先级。其中,关闭L2VPN PW和建立EVPN SRv6 PW两个过程不分先后,本申请实施例对此不做限定。
其中,第一网络设备关闭L2VPN PW,也即是基于伪线标识信息在本地的转发表项中查找到L2VPN PW的转发表项,然后删除L2VPN PW的转发表项或者将L2VPN PW的转发表项置无效。第一网络设备将EVPN SRv6 PW的优先级配置为大于L2VPN PW的优先级,也即是,将EVPN SRv6 PW的转发表项的优先级设置为大于L2VPN PW的转发表项的优先级。
比如,对于图2所示的组网,PE2在发布EVPN-VPWS SRv6路由通告报文时,将PE2的IPv4地址2.2.2.2携带在该EVPN-VPWS SRv6路由通告报文中。这样,PE1便可根据该IPv4地址2.2.2.2查找到PE1至PE2的L2VPN PW,然后关闭该L2VPN PW或调整该L2VPN PW 的优先级。
此外,在EVPN-VPWS中,在第一网络设备为第一PE,第二网络设备为第二PE的情况下,第一PE和第二PE预先配置各自的本地服务标识(local service ID)和远端服务标识(remote service ID),其中,任一PE配置的本地服务标识用于指示自身所连接的一个CE,配置的远端服务标识用于指示其他PE所连接的一个CE,且配置的本地服务标识和远端服务标识是成对的,也即是每个本地服务标识对应一个远端服务标识,或者每个远端服务标识对应一个本地服务标识。并且任一PE均为每个本地服务标识绑定一个PW标识。
如此,第二PE便可发布EVPN-VPWS路由通告报文。其中,EVPN-VPWS路由通告报文携带第二PE配置的本地服务标识和与该本地服务标识绑定的PW的标识。为了后续便于说明,将EVPN-VPWS路由通告报文中携带的本地服务标识称为第一本地服务标识。第一PE在接收到该EVPN-VPWS路由通告报文时,将第一本地服务标识和第一PE中配置的远端服务标识进行匹配。如果第一本地服务标识和第一PE中配置的一个远端服务标识一致,则表明该EVPN-VPWS路由通告报文是用来通告第一PE创建EVPN-VPWS下的PW的。
因此,第一PE在接收到该EVPN-VPWS路由通告报文时,将EVPN-VPWS路由通告报文中携带的第一本地服务标识和第一PE中配置的远端服务标识进行匹配。如果第一本地服务标识和第一PE中配置的一个远端服务标识一致,第一PE则创建EVPN-VPWS下的PW。具体操作为:第一PE建立EVPN-VPWS路由通告报文中携带的待创建的PW的标识和本地配置的与该远端服务标识对应的本地服务标识、以及EVPN-VPWS路由通告报文中携带的下一跳信息之间对应关系,该对应关系即为一个转发表项,如此便是建立了第一PE至第二PE的一个PW。为了后续便于说明,将与该远端服务标识对应的本地服务标识称为第二本地服务标识。
后续第一PE在接收到第二本地服务标识所指示的CE发送的报文时,便可基于该对应关系查找到该PW标识和下一跳信息,从而基于查找到的信息发送该报文。或者,在接收到携带该PW标识的报文时,基于该对应关系查找到第二本地服务标识,然后将该报文发送至该第二本地服务标识所指示的CE。
需要说明的是,上述步骤301至步骤302的实现方式中,均是以EVPN-VPWS为例进行说明。在另一种可能的实现方式中,该路由通告报文可以为EVPN-VPLS路由通告报文。由于EVPN-VPLS的组网和EVPN-VPWS的组网基本相同,因此两者在步骤301至步骤302的实现方式上也基本相同。在此不在赘述。
此外,上述路由通告报文是以通告EVPN-VPWS或VPLS中的PW为例进行说明,此时,基于图3所示的路由通告方法能够实现基于MPLS转发的L2VPN VPWS或VPLS向基于SRv6转发的EVPN-VPWS或VPLS演进。可选地,图3中的路由通告方法也可以应用于通告其他类型的EVPN SRv6路由,这种场景下,基于图3所示的路由通告方法能够实现基于MPLS转发的L2VPN VPWS或VPLS向其他类型的EVPN SRv6网络的演进,本申请实施例对此不再一一举例说明。
综上所述,本申请实施例对EVPN SRv6路由通告报文进行了扩展,以使扩展后的EVPN SRv6路由通告报文携带第一网络设备和第二网络设备之间的L2VPN PW的伪线标识信息,以便于基于该伪线标识信息查找到该L2VPN PW相关联的转发表项,进而对该L2VPN PW相关联的转发表项进行处理,从而实现基于MPLS转发的L2VPN VPWS或VPLS向基于SRv6 转发的EVPN VPWS或VPLS的演进。此外,本申请实施例提供的方法还能够实现基于MPLS转发的L2VPN VPWS或VPLS向其他类型的EVPN SRv6网络的演进。
基于图3所示的实施例,能够实现基于MPLS转发的L2VPN VPWS或VPLS向EVPN SRv6网络的演进。可选地,本申请实施例还提供了一种路由通告方法,基于该路由通告方法能够实现基于MPLS网络转发的EVPN-VPWS向基于SRv6网络转发的EVPN-VPWS演进,下面对该路由通告方法进行详细解释说明。
图6是本申请实施例提供的另一种路由通告方法流程图。如图6所示,该方法包括如下几个步骤。
步骤601:第一网络设备接收来自第二网络设备的路由通告报文,该路由通告报文用于通告EVPN SRv6路由,该路由通告报文携带该EVPN SRv6路由的下一跳信息为第二网络设备的IPv6地址,第一网络设备本地存储有该EVPN SRv6路由的下一跳信息为第二网络设备的IPv4地址。
图6所示的路由通告方法的应用场景为第一网络设备和第二网络设备之间已经建立了MPLS EVPN PW。由于建立MPLS EVPN PW时所依据的路由通告报文和步骤601中通告EVPN SRv6路由的路由通告报文均为基于BGP协议发布的,因此,这两个路由通告报文用于通告同一个路由。如此,在第一网络设备接收到用于通告EVPN SRv6路由的路由通告报文时,本地已经基于之前接收的路由通告报文配置有该EVPN SRv6路由的下一跳信息,因此,第一网络设备需要基于再次接收到的路由通告报文中的下一跳信息对本地配置的该EVPN SRv6路由的下一跳信息进行修改。
示例地,对于图3所示的组网,假设PE1和PE2之间已经基于接收到的路由通告报文建立了MPLS场景下的EVPN PW,对于PE1而言,该EVPN PW的目的地址为PE2的IPv4地址。当PE1接收到步骤601中的路由通告报文时,表明当前需要建立目的地址为PE2的IPv6地址的EVPN PW,也即是,建立SRv6场景下的EVPN PW。此时,PE1便需要通过下述步骤602从这两个下一跳信息中选择一个作为EVPN PW的目的地址。
步骤602:第一网络设备从第二网络设备的IPv6地址以及第二网络设备的IPv4地址中选择一个作为该EVPN SRv6路由的下一跳信息。
在一种可能的实现方式中,步骤602可以通过管理人员配置得到。也即是,通过管理人员来选择将第二网络设备的IPv6地址以及第二网络设备的IPv4地址中哪个地址作为EVPN SRv6路由的下一跳信息。比如,管理人员可以将本地存储的该EVPN SRv6路由的下一跳信息由第二网络设备的IPv4地址修改为第二网络设备的IPv6地址。
基于步骤601至步骤602便可实现基于MPLS网络转发的EVPN-VPWS向基于SRv6网络转发的EVPN-VPWS演进,或者,基于MPLS网络转发的EVPN-VPLS向基于SRv6网络转发的EVPN-VPLS演进。
此外,本申请实施例还提供了一种通信装置700,参见图7所示。图7为本申请实施例提供的一种通信装置的结构示意图。该通信装置700包括收发单元701和处理单元702。该通信装置700可以用于执行以上图4所示的路由通告方法或图6所示的路由通告方法。
在一个示例中,所述通信装置700可以执行以上图4所示的实施例,当通信装置700用 于执行以上图4所示的实施例时,通信装置700相当于图4实施例中的第一网络设备。收发单元701用于执行图4实施例中由所述第一网络设备执行的收发操作。处理单元702用于执行图4实施例中由所述第一网络设备执行的除收发操作之外的操作。例如,所述收发单元701用于接收来自第二网络设备的路由通告报文,该路由通告报文用于通告EVPN SRv6路由,该路由通告报文携带EVPN SRv6路由的下一跳信息为第二网络设备的IPv6地址,该路由通告报文还携带伪线标识信息,该伪线标识信息用于标识第一网络设备和第二设备之间的基于两层虚拟专用网络的伪线L2VPN PW。所述处理单元702用于基于该伪线标识信息对L2VPN PW进行处理,比如关闭L2VPN PW,或者用于建立EVPN SRv6 PW,且将EVPN SRv6 PW的优先级配置为大于L2VPN PW的优先级。
在一个示例中,所述通信装置700可以执行以上图4所示的实施例,当通信装置700用于执行以上图4所示的实施例时,通信装置700相当于图4所示的实施例中的第二网络设备。收发单元701用于执行图4所示的实施例中由所述第二网络设备执行的收发操作。处理单元702用于执行图4所示的实施例中由所述第二网络设备执行的除收发操作之外的操作。例如,所述处理单元702用于生成用于通告EVPN SRv6路由的路由通告报文,该路由通告报文用于通告EVPN SRv6路由,该路由通告报文携带EVPN SRv6路由的下一跳信息为第二网络设备的IPv6地址,该路由通告报文还携带伪线标识信息,该伪线标识信息用于标识第一网络设备和第二设备之间的基于两层虚拟专用网络的伪线L2VPN PW;所述收发单元701用于向所述第一网络设备发送该路由通告报文,以触发所述第一网络设备基于该伪线标识信息对L2VPN PW进行处理。
在一个示例中,所述通信装置700可以执行以上图6所示的实施例,当通信装置700用于执行以上图6所示的实施例时,通信装置700相当于图6所示的实施例中的第一网络设备。收发单元701用于执行图6所示的实施例中由所述第一网络设备执行的收发操作。处理单元702用于执行图6所示的实施例中由所述第一网络设备执行的除收发操作之外的操作。例如,所述收发单元701用于接收第二网络设备发送的路由通告报文,该路由通告报文用于通告EVPN SRv6路由,该路由通告报文携带该EVPN SRv6路由的下一跳信息为第二网络设备的IPv6地址,第一网络设备本地存储有该EVPN SRv6路由的下一跳信息为第二网络设备的IPv4地址;所述处理单元702,用于从第二网络设备的IPv6地址以及第二网络设备的IPv4地址中选择一个作为该EVPN SRv6路由的下一跳信息。
在一个示例中,当通信装置700用于执行以上实施例中的图6所示的实施例时,通信装置700相当于图6所示的实施例中的第二网络设备。收发单元701用于执行图6所示的实施例中由所述第二网络设备执行的收发操作。处理单元702用于图6所示的实施例中由所述第二网络设备执行的除收发操作之外的操作。例如,所述处理单元702用于生成路由通告报文,其中,该路由通告报文用于通告EVPN SRv6路由,该路由通告报文携带该EVPN SRv6路由的下一跳信息为第二网络设备的IPv6地址,第一网络设备本地存储有该EVPN SRv6路由的下一跳信息为第二网络设备的IPv4地址;所述收发单元701用于向所述第一网络设备发送所述路由通告报文,以触发所述第一网络设备从第二网络设备的IPv6地址以及第二网络设备的IPv4地址中选择一个作为该EVPN SRv6路由的下一跳信息。
需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。本申请实施例中的各功能单元可以集成在一个处理单元 中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。例如,上述实施例中,收发单元701和处理单元702可以是同一个单元,也不同的单元。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
此外,本申请实施例还提供了一种通信装置800,参见图8所示,图8为本申请实施例提供的一种通信装置的结构示意图。该通信装置800包括通信接口801和与通信接口801连接的处理器802。通信接口例如为收发器一类的装置。该通信装置800可以用于执行以上图4所示的实施例或图6所示的实施例。具体来说,该通信装置800可以作为第一网络设备,分别执行图4所示的实施例或图6所示的实施例中由第一网络设备所执行的操作。所述通信装置800也可以作为第二网络设备,分别执行图4所示的实施例或图6所示的实施例中由第二网络设备所执行的操作。其中,通信接口801用于执行上述各方法实施例中由所述第一网络设备或所述第二网络设备所执行的收发操作。处理器802用于执行上述各方法实施例中由所述第一网络设备或所述第二网络设备所执行的收发操作以外的操作。
例如,当通信装置800作为第一网络设备执行图4所示的实施例时,通信接口801用于接收来自第二网络设备的路由通告报文,该路由通告报文用于通告EVPN SRv6路由,该路由通告报文携带EVPN SRv6路由的下一跳信息为第二网络设备的IPv6地址,该路由通告报文还携带伪线标识信息,该伪线标识信息用于标识第一网络设备和第二设备之间的基于两层虚拟专用网络的伪线L2VPN PW。处理器802用于基于该伪线标识信息对L2VPN PW进行处理,比如关闭L2VPN PW,或者用于建立EVPN SRv6 PW,且将EVPN SRv6 PW的优先级配置为大于L2VPN PW的优先级。
此外,本申请实施例还提供了一种通信装置900,参见图9所示,图9为本申请实施例提供的一种通信装置的结构示意图。如图9所示,通信装置900可以包括处理器910,与所述处理器910耦合连接的存储器920,收发器930。收发器930例如可以是通信接口,光模块等。处理器910可以是中央处理器(英文:central processing unit,缩写:CPU),网络处理器(英文:network processor,缩写:NP)或者CPU和NP的组合。处理器还可以是专用集成电路(英文:application-specific integrated circuit,缩写:ASIC),可编程逻辑器件(英文:programmable logic device,缩写:PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(英文:complex programmable logic device,缩写:CPLD),现场可编程逻辑门阵列(英文:field-programmable gate array,缩写:FPGA),通用阵列逻辑(英文:generic array logic,缩写:GAL)或其任意组合。处理器910可以是指一个处理器,也可以包括多个处理器。存储器920可以包括易失性存储器(英文:volatile memory),例如随机存取存储器(英文:random-access memory,缩写:RAM);存储器也可以包括非易失性存储器(英文:non-volatile memory),例如只读存储器(英文:read-only memory,缩写:ROM),快闪存储器(英文:flash memory),硬盘(英文:hard disk drive,缩写:HDD)或固态硬盘(英文:solid-state drive,缩写:SSD);存储器920还可以包括上述种类的存储器的组合。存储器920可以是指一个存储器,也可以包括多个存储器。
在一个实施方式中,存储器920中存储有计算机可读指令,所述计算机可读指令包括多个软件模块,例如发送模块921,处理模块922和接收模块923。其中,发送模块921用于指示与发送相关的操作,接收模块923用于指示与接收相关的操作,处理模块用于指示与处理相关的操作。处理器910执行各个软件模块后可以按照各个软件模块的指示进行相应的操作。 一个软件模块所执行的操作实际上是指处理器910根据所述软件模块的指示而执行的操作。可选地,处理器910也可以存储执行本申请方案的程序代码或指令,在这种情况下处理器701不需要到存储器920中读取程序代码或指令。
该通信装置900可以用于执行以上图4所示实施例或图6所示的实施例。该通信装置900可以用于执行以上图4所示实施例或图6所示的实施例。具体来说,该通信装置900可以作为第一网络设备,分别执行图4所示实施例或图6所示的实施例中由第一网络设备所执行的操作。所述通信装置900也可以作为第二网络设备,分别执行图4所示实施例或图6所示的实施例中由第二网络设备所执行的操作。例如,当通信装置900作为第一网络设备执行图4所示的实施例时,所述处理器910用于执行所述存储器920中的相关指令,使得通信装置900用于:接收来自第二网络设备的路由通告报文,该路由通告报文用于通告EVPN SRv6路由,该路由通告报文携带EVPN SRv6路由的下一跳信息为第二网络设备的IPv6地址,该路由通告报文还携带伪线标识信息,该伪线标识信息用于标识第一网络设备和第二设备之间的基于两层虚拟专用网络的伪线L2VPN PW,以基于该伪线标识信息对L2VPN PW进行处理。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在处理器上运行时,实现前述实施例中任一实施例所述的方法(图4或图6所示的实施例)中任意一个或多个操作。
本申请实施例还提供了一种计算机程序产品,包括计算机程序,当其在处理器上运行时,实现前述实施例中任一实施例所述的方法(例如,图4或图6所示的实施例)中任意一个或多个操作。
本申请实施例还提供了一种通信系统,包括第一网络设备和第二网络设备,第一网络设备和第二网络设备的结构如图7-图9对应的任一通信装置。上述通信系统例如可以是图1或图2所示的通信系统。上述通信系统用于实现图4和图6对应的实施例中所述的方法中任意一个方法中的部分或全部操作。
本申请实施例还提供了另一种通信系统,包括至少一个存储器和至少一个处理器,该至少一个存储器存储有指令,该至少一个处理器执行所述指令,使得所述通信系统实现本申请前述实施例中任一实施例所述的方法中的部分或全部操作。
本申请实施例还提供一种芯片系统,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现本申请前述实施例中任一实施例所述的方法中任意一个方法中的部分或全部操作。
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请并不限定。示例性的,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请对存储器的类型,以及存储器与处理器的设置方式不作具体限定。
示例性的,该芯片系统可以是FPGA,可以是ASIC,还可以是系统芯片(system on chip,SoC),还可以是CPU,还可以是NP,还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable  logic device,PLD)或其他集成芯片。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑业务划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各业务单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件业务单元的形式实现。
集成的单元如果以软件业务单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的业务可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些业务存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上仅为本发明的具体实施方式而已。
以上,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换, 并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (33)

  1. 一种路由通告方法,其特征在于,所述方法包括:
    第一网络设备接收来自第二网络设备的路由通告报文,所述路由通告报文用于通告基于第六代网络协议分段路由的以太网虚拟私有网EVPN SRv6路由,所述路由通告报文携带所述EVPN SRv6路由的下一跳信息为所述第二网络设备的IPv6地址,所述路由通告报文还携带伪线标识信息,所述伪线标识信息用于标识所述第一网络设备和所述第二设备之间的基于两层虚拟专用网络的伪线L2VPN PW。
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    所述第一网络设备基于所述伪线标识信息关闭所述L2VPN PW。
  3. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    所述第一网络设备建立EVPN SRv6 PW,所述EVPN SRv6 PW的目的地址为所述第二网络设备的IPv6地址;
    将所述EVPN SRv6 PW的优先级配置为大于所述L2VPN PW的优先级。
  4. 如权利要求3所述的方法,其特征在于,所述EVPN SRv6 PW为虚拟专用线路业务VPWS中的PW,或者,虚拟专用局域网业务VPLS中的PW。
  5. 如权利要求1至4任一所述的方法,其特征在于,所述路由通告报文包括扩展团体属性,所述扩展团体属性中携带有所述伪线标识信息。
  6. 如权利要求5所述的方法,其特征在于,所述扩展团体属性包括类型字段和伪线标识字段,所述类型字段指示所述扩展团体属性用于携带所述伪线标识信信息,所述伪线标识字段用于承载所述伪线标识信息。
  7. 如权利要求5所述的方法,其特征在于,所述扩展团体属性包括类型字段和全局管理员字段,所述类型字段指示所述扩展团体属性用于携带第四代网络协议IPv4地址的特征信息,所述全局管理员字段用于承载所述伪线标识信息。
  8. 如权利要求1至7任一所述的方法,其特征在于,所述伪线标识信息包括以下一项或多项:所述第二网络设备的IPv4地址、所述L2VPN PW的标识以及站点标识。
  9. 一种路由通告方法,其特征在于,所述方法包括:
    第二网络设备向第一网络设备发布路由通告报文,所述路由通告报文用于通告基于第六代网络协议分段路由的以太网虚拟私有网EVPN SRv6路由,所述路由通告报文携带所述EVPN SRv6路由的下一跳信息为所述第二网络设备的IPv6地址,所述路由通告报文还携带 伪线标识信息,所述伪线标识信息用于标识所述第一网络设备和所述第二设备之间的基于两层虚拟专用网络的伪线L2VPN PW。
  10. 如权利要求9所述的方法,其特征在于,所述路由通高报文包括扩展团体属性,所述扩展团体属性中携带有所述伪线标识信息。
  11. 如权利要求10所述的方法,其特征在于,所述扩展团体属性包括类型字段和伪线标识字段,所述类型字段指示所述扩展团体属性用于携带所述伪线标识信信息,所述伪线标识字段用于承载所述伪线标识信息。
  12. 如权利要求10所述的方法,其特征在于,所述扩展团体属性包括类型字段和全局管理员字段,所述类型字段指示所述扩展团体属性用于携带第四代网络协议IPv4地址的特征信息,所述全局管理员字段用于承载所述伪线标识信息。
  13. 如权利要求9至12任一所述的方法,其特征在于,所述伪线标识信息包括以下一项或多项:所述第二网络设备的IPv4地址、所述L2VPN PW的标识以及站点标识。
  14. 一种路由通告方法,其特征在于,所述方法包括:
    第一网络设备接收来自第二网络设备的路由通告报文,所述路由通告报文用于通告基于第六代网络协议分段路由的以太网虚拟私有网EVPN SRv6路由,所述路由通告报文携带所述EVPN SRv6路由的下一跳信息为所述第二网络设备的IPv6地址,所述第一网络设备本地存储有所述EVPN SRv6路由的下一跳信息为所述第二网络设备的IPv4地址;
    所述第一网络设备从所述第二网络设备的IPv6地址以及所述第二网络设备的IPv4地址中选择一个作为所述EVPN SRv6路由的下一跳信息。
  15. 一种第一网络设备,其特征在于,所述第一网络设备包括:
    收发单元,用于接收来自第二网络设备的路由通告报文,所述路由通告报文用于通告基于第六代网络协议分段路由的以太网虚拟私有网EVPN SRv6路由,所述路由通告报文携带所述EVPN SRv6路由的下一跳信息为所述第二网络设备的IPv6地址,所述路由通告报文还携带伪线标识信息,所述伪线标识信息用于标识所述第一网络设备和所述第二设备之间的基于两层虚拟专用网络的伪线L2VPN PW。
  16. 如权利要求15所述的第一网络设备,其特征在于,所述第一网络设备还包括:
    处理单元,用于基于所述伪线标识信息关闭所述L2VPN PW。
  17. 如权利要求15所述的第一网络设备,其特征在于,所述处理单元还用于:
    建立EVPN SRv6 PW,所述EVPN SRv6 PW的目的地址为所述第二网络设备的IPv6地址;
    将所述EVPN SRv6 PW的优先级配置为大于所述L2VPN PW的优先级。
  18. 如权利要求17所述的第一网络设备,其特征在于,所述EVPN SRv6 PW为虚拟专用线路业务VPWS中的PW,或者,虚拟专用局域网业务VPLS中的PW。
  19. 如权利要求15至18任一所述的第一网络设备,其特征在于,所述路由通告报文包括扩展团体属性,所述扩展团体属性中携带有所述伪线标识信息。
  20. 如权利要求19所述的第一网络设备,其特征在于,所述扩展团体属性包括类型字段和伪线标识字段,所述类型字段指示所述扩展团体属性用于携带所述伪线标识信信息,所述伪线标识字段用于承载所述伪线标识信息。
  21. 如权利要求19所述的第一网络设备,其特征在于,所述扩展团体属性包括类型字段和全局管理员字段,所述类型字段指示所述扩展团体属性用于携带第四代网络协议IPv4地址的特征信息,所述全局管理员字段用于承载所述伪线标识信息。
  22. 如权利要求15至21任一所述的第一网络设备,其特征在于,所述伪线标识信息包括以下一项或多项:所述第二网络设备的IPv4地址、所述L2VPN PW的标识以及站点标识。
  23. 一种第二网络设备,其特征在于,所述第二网络设备包括:
    收发单元,用于向第一网络设备发布路由通告报文,所述路由通告报文用于通告基于第六代网络协议分段路由的以太网虚拟私有网EVPN SRv6路由,所述路由通告报文携带所述EVPN SRv6路由的下一跳信息为所述第二网络设备的IPv6地址,所述路由通告报文还携带伪线标识信息,所述伪线标识信息用于标识所述第一网络设备和所述第二设备之间的基于两层虚拟专用网络的伪线L2VPN PW。
  24. 如权利要求23所述的第二网络设备,其特征在于,所述路由通告报文包括扩展团体属性,所述扩展团体属性中携带有所述伪线标识信息。
  25. 如权利要求24所述的第二网络设备,其特征在于,所述扩展团体属性包括类型字段和伪线标识字段,所述类型字段指示所述扩展团体属性用于携带所述伪线标识信信息,所述伪线标识字段用于承载所述伪线标识信息。
  26. 如权利要求24所述的第二网络设备,其特征在于,所述扩展团体属性包括类型字段和全局管理员字段,所述类型字段指示所述扩展团体属性用于携带第四代网络协议IPv4地址的特征信息,所述全局管理员字段用于承载所述伪线标识信息。
  27. 如权利要求23至26任一所述的第二网络设备,其特征在于,所述伪线标识信息包括以下一项或多项:所述第二网络设备的IPv4地址、所述L2VPN PW的标识以及站点标识。
  28. 一种第一网络设备,其特征在于,所述第一网络设备包括:
    收发单元,用于接收来自第二网络设备的路由通告报文,所述路由通告报文用于通告基于第六代网络协议分段路由的以太网虚拟私有网EVPN SRv6路由,所述路由通告报文携带所述EVPN SRv6路由的下一跳信息为所述第二网络设备的IPv6地址,所述第一网络设备本地存储有所述EVPN SRv6路由的下一跳信息为所述第二网络设备的IPv4地址;
    处理单元,用于从所述第二网络设备的IPv6地址以及所述第二网络设备的IPv4地址中选择一个作为所述EVPN SRv6路由的下一跳信息。
  29. 一种第一网络设备,其特征在于,包括:
    存储器,存储有指令;
    与所述存储器相连的处理器,当所述指令在所述处理器中运行时,使得所述第一网络设备执行权利要求1-8或权利要求14任一项所述的方法。
  30. 一种第二网络设备,其特征在于,包括:
    存储器,存储有指令;
    与所述存储器相连的处理器,当所述指令在所述处理器中运行时,使得所述第二网络设备执行权利要求9-13任一项所述的方法。
  31. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在处理器上运行时,实现权利要求1-8或权利要求14中任一项所述的方法。
  32. 一种计算机程序产品,其特征在于,包括程序,当所述程序在处理器上运行时,实现权利要求9-13任一项所述的方法。
  33. 一种通信系统,其特征在于,包括权利要求15-22任一项所述第一网络设备和权利要求23-27任一项所述的第二网络设备。
PCT/CN2022/101607 2021-09-30 2022-06-27 路由通告方法、网络设备及计算机存储介质 WO2023050932A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22874329.0A EP4329259A1 (en) 2021-09-30 2022-06-27 Route advertisement method, network device, and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111161855.9A CN115914092A (zh) 2021-09-30 2021-09-30 路由通告方法、网络设备及计算机存储介质
CN202111161855.9 2021-09-30

Publications (1)

Publication Number Publication Date
WO2023050932A1 true WO2023050932A1 (zh) 2023-04-06

Family

ID=85735673

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/101607 WO2023050932A1 (zh) 2021-09-30 2022-06-27 路由通告方法、网络设备及计算机存储介质

Country Status (3)

Country Link
EP (1) EP4329259A1 (zh)
CN (1) CN115914092A (zh)
WO (1) WO2023050932A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130148657A1 (en) * 2011-12-07 2013-06-13 Cisco Technology, Inc. Mechanism for e-vpn interoperability with vpls
US10250552B1 (en) * 2016-04-27 2019-04-02 Cisco Technology, Inc. L3VPN service with single IGP/BGP session from a multi-homed CE with fast convergence using EVPN
US20190394066A1 (en) * 2018-06-25 2019-12-26 Juniper Networks, Inc. Using multiple ethernet virtual private network (evpn) routes for corresponding service interfaces of a subscriber interface
CN110798403A (zh) * 2018-08-01 2020-02-14 华为技术有限公司 通信方法、通信设备和通信系统
CN110832813A (zh) * 2017-06-27 2020-02-21 思科技术公司 使用分段路由的以太网虚拟专用网
CN112511423A (zh) * 2020-09-03 2021-03-16 中兴通讯股份有限公司 报文处理方法、边界设备和计算机可读介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130148657A1 (en) * 2011-12-07 2013-06-13 Cisco Technology, Inc. Mechanism for e-vpn interoperability with vpls
US10250552B1 (en) * 2016-04-27 2019-04-02 Cisco Technology, Inc. L3VPN service with single IGP/BGP session from a multi-homed CE with fast convergence using EVPN
CN110832813A (zh) * 2017-06-27 2020-02-21 思科技术公司 使用分段路由的以太网虚拟专用网
US20190394066A1 (en) * 2018-06-25 2019-12-26 Juniper Networks, Inc. Using multiple ethernet virtual private network (evpn) routes for corresponding service interfaces of a subscriber interface
CN110798403A (zh) * 2018-08-01 2020-02-14 华为技术有限公司 通信方法、通信设备和通信系统
CN112511423A (zh) * 2020-09-03 2021-03-16 中兴通讯股份有限公司 报文处理方法、边界设备和计算机可读介质

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
22 February 2021 (2021-02-22), C. FILSFILS, ED. P. CAMARILLO, ED. CISCO SYSTEMS, INC. J. LEDDY AKAMAI TECHNOLOGIES D. VOYER BELL CANADA S. MATSUSHIMA SOFTBANK Z.: "Segment Routing over IPv6 (SRv6) Network Programming; rfc8986.txt", XP015146191, Database accession no. 8986 *
HE XIAOMING, PING YUE, QUAN LU, YUANYANG YIN: "Evolution and key technologies of 5G-oriented IP RAN", TELECOMMUNICATIONS SCIENCE, vol. 36, no. 3, 1 January 2020 (2020-01-01), pages 125 - 135, XP093053734, DOI: 10.11959/j.issn.1000−0801.2020001 *

Also Published As

Publication number Publication date
CN115914092A (zh) 2023-04-04
EP4329259A1 (en) 2024-02-28

Similar Documents

Publication Publication Date Title
US11533249B2 (en) Route processing method and apparatus, and data transmission method and apparatus
WO2021063232A1 (zh) 建立bier转发表项的方法、装置和系统
US11936552B2 (en) Method and device for implementing VPN cross-domain, and border node
US20220360527A1 (en) EVPN Packet Processing Method, Device, and System
CN109218178B (zh) 一种报文处理方法及网络设备
CN111510379B (zh) Evpn报文处理方法、设备及系统
JP7208386B2 (ja) パケット転送方法、パケット送信装置、およびパケット受信装置
US11902049B2 (en) BIER packet sending method and apparatus
WO2015165311A1 (zh) 传输数据报文的方法和供应商边缘设备
WO2018103099A1 (zh) 发送和接收消息的方法、设备和系统
EP4231597A1 (en) Method for forwarding bier message, and device and system
WO2015000173A1 (zh) 建立隧道的方法、分配标签的方法、设备及网络系统
EP3836492B1 (en) Pseudo wire load sharing method and device
US20230155932A1 (en) Multicast traffic transmission method and apparatus, communication node, and storage medium
WO2013139270A1 (zh) 实现三层虚拟专用网络的方法、设备及系统
WO2020098611A1 (zh) 一种获取路由信息方法及装置
US11929923B2 (en) Packet transmission method and apparatus
EP4044523A1 (en) Packet forwarding method, first network device, and first device group
WO2012122844A1 (zh) 一种多链接互连网络分域互连的方法和系统
CN112887139A (zh) 报文处理方法及装置
WO2023050932A1 (zh) 路由通告方法、网络设备及计算机存储介质
WO2024016869A1 (zh) 一种组播配置方法及装置
WO2024061184A1 (zh) 对应关系的获取方法、参数通告方法、装置、设备及介质
WO2022116615A1 (zh) 报文传输的方法、获取对应关系的方法、装置及系统
WO2023284547A1 (zh) 一种故障检测的方法、装置和系统

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022874329

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022874329

Country of ref document: EP

Effective date: 20231121