Efficient storage implementation of downstream VXLAN identifiers
By creating a unique egress RIF for each D-VNI and associating it with routing entries, the high cost problem of storing explicit D-VNI information in VXLAN inter-tunnel data communication is solved, and a VXLAN tunnel solution with low storage footprint is realized, supporting Multi-VRF and multi-site communication.
Patent Information
- Application Number
- CN202210614851.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-02-03
- Filing Date
- 2022-05-31
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-05-31
AI Technical Summary
When implementing data communication between VXLAN tunnels, the existing technology needs to store a large amount of explicit downstream VXLAN identifier (D-VNI) information, resulting in high storage costs and infeasibility. Especially for a large number of routing entries, it takes up too much storage space. many.
Reduce storage requirements by creating a unique egress routing interface (RIF) for each imported D-VNI and associating it with the relevant routing entries, storing it only once on the network device.
It implements a VXLAN tunnel solution with low storage footprint and supports multi-VRF communication systems, hub-spoke topology and multi-site communication systems, reducing storage requirements and improving data communication efficiency.
Smart Images

Figure CN115604056B_ABST
Abstract
Description
Technical Field
[0001] Embodiments described herein relate generally to data communications, and more particularly to methods and systems for efficient storage implementation of downstream VXLAN identifiers (D-VNIs). Background Art
[0002] Virtual Extensible LAN (VXLAN) is a network virtualization technology suitable for large-scale deployments such as cloud computing and data centers. VXLAN uses an encapsulation technology similar to VLAN. For example, VXLAN is described in Request for Comments (RFC) 7348.
[0003] Ethernet Virtual Private Network (EVPN) is the control plane for VXLAN, allowing large-scale VXLAN-based networks to be built and deployed. EVPN is specified, for example, in RFC 8365.
[0004] VRF is a technology in which multiple independent forwarding tables are located in the same network device, such as a router or switch. The forwarding table in each VRF instance is used to specify the next hop for each data packet, as well as a set of rules and routing protocols that control how the packet is forwarded. Because VRF routing instances are independent, the same or overlapping IP addresses can be used in different instances without conflicting with each other, and network paths can be segmented without the need for multiple routers. In addition, because traffic is automatically isolated, VRF also improves network security and can reduce the need for encryption and authentication. Summary of the invention
[0005] Embodiments described herein provide a network device for use as a local virtual extensible local area network (VXLAN) tunnel endpoint (VTEP), the network device comprising a communication interface, a first processor, and a packet processor. The communication interface communicates between a local virtual routing and forwarding domain (VRF) and a remote VRF, each of the local VRFs and each of the remote VRFs having a unique VXLAN identifier (VNI). The first processor runs a control program that creates a local VRF instance for a local VRF configured in a local VTEP, imports a downstream-VNI (D-VNI) for forwarding packets from the local VRF to a remote VTEP instead of a remote VRF configured in the local VTEP, creates a unique egress routing interface (RIF) that can be converted to the imported D-VNI, and associates the unique egress RIF with one or more routing entries in the local VRF instance. The packet processor receives a packet destined for a remote VRF, looks up the packet in one or more routing entries in a local VRF instance to retrieve a unique egress RIF, converts the unique egress RIF to an imported D-VNI, encapsulates the packet with the imported D-VNI, and forwards the encapsulated packet according to the unique egress RIF.
[0006] In some embodiments, a control program in a local VTEP exports a local VNI of a local VRF to a remote VTEP for forwarding packets from the remote VRF to the local VRF by the remote VTEP. The control program further creates a second egress RIF for the local VNI and associates the second egress RIF with one or more second routing entries in the local VRF instance. The packet processor receives a second packet addressed to the local VRF from the remote VRF through a communication interface, the second packet is encapsulated by the remote VTEP with the exported local VNI, decapsulates the second packet, searches for the decapsulated packet in one or more second routing entries in the local VRF instance to retrieve the second egress RIF, and forwards the second packet according to the second egress RIF. In other embodiments, the local VTEP and the remote VTEP are included in an Ethernet virtual private network (EVPN), wherein packets communicated between different VRFs are encapsulated based on VXLAN encapsulation. In other embodiments, the control program imports the D-VNI using an instance of a Border Gateway Protocol (BGP) associated with the local VRF.
[0007] In one embodiment, the control program associates a unique egress RIF with a plurality of routing entries, which belong to a plurality of VRF instances respectively created for a plurality of local VRFs provided in the local VTEP. In another embodiment, the control program configures one or more routing entries in a forwarding rule in an access control list (ACL), and the packet processor looks up the packet by matching the packet with one of the forwarding rules in the ACL. In yet another embodiment, each of the local VTEP and the remote VTEP includes a leaf network device or a service network device in the communication network, each of the leaf network devices is assigned one or more local VRFs, and each of the service network devices is assigned one or more remote VRFs different from the local VRFs.
[0008] In some embodiments, a serving host is coupled to a given serving network device configured with a corresponding shared serving VRF, and the serving host provides services to one or more served hosts in a local VRF through a communication network. In other embodiments, a communication network having a hub-and-spoke topology, wherein one or more hub network devices are configured with a hub VRF that supports routing between served hosts belonging to different VRFs in a local VRF. In other embodiments, the communication network supports an equal-cost multi-path (ECMP) routing protocol, and a packet processor encapsulates packets forwarded to multiple remote VTEPs using different ECMP paths with different corresponding D-VNIs.
[0009] In one embodiment, the packet processor receives a packet from a host or network element in the first VRF, or receives a packet from a third VRF. In another embodiment, the control program imports the D-VNI from the remote VTEP, or imports the D-VNI automatically by receiving the D-VNI in one or more commands manually sent by a user, or by running a script containing one or more commands.
[0010] According to the embodiments described herein, a method for data communication is also provided, including, in a network device used as a local virtual extensible local area network (VXLAN) tunnel endpoint (VTEP), communicating between a local virtual routing and forwarding domain (VRF) and a remote VRF, each of the local VRFs and each of the remote VRFs having a unique VXLAN identifier (VNI). The local VRF instance is created by a local VRF control program configured in the local VTEP. A downstream-VNI (D-VNI) is imported for forwarding packets from the local VRF to a remote VRF configured in a remote VTEP (rather than the local VTEP). A unique egress routing interface (RIF) that can be converted to the imported D-VNI is created, and the unique egress RIF is associated with one or more routing entries in the local VRF instance. A packet processor of the local VTEP receives a packet destined for the remote VRF. The packet is searched in one or more routing entries in the local VRF instance to retrieve a unique egress RIF. The unique egress RIF is converted to the imported D-VNI, and the packet is encapsulated using the imported D-VNI. The encapsulated packet is forwarded according to the unique egress RIF.
[0011] According to the embodiments described herein, a network device used as a local virtual extensible local area network (VXLAN) tunnel endpoint (VTEP) is further provided, the network device including a communication interface, a first processor and a packet processor. The communication interface communicates with one or more remote VTEPs, and the local VTEP and the one or more remote VTEPs are assigned corresponding VXLAN identifiers (VNIs). The first processor running a control program imports a downstream-VNI (D-VNI) for forwarding packets from the local VTEP to the remote VTEP, creates a unique egress routing interface (RIF) that can be converted to the imported D-VNI, and associates the unique egress RIF with one or more routing entries in the local VTEP. The packet processor receives a packet sent to the remote VTEP, searches for the packet in one or more routing entries in the local VTEP to retrieve a unique egress RIF, converts the unique egress RIF to the imported D-VNI, encapsulates the packet with the imported D-VNI, and forwards the encapsulated packet according to the unique egress RIF.
[0012] In some embodiments, the control program exports the local VNI of the local VTEP to the remote VTEP for forwarding the packet from the remote VTEP to the local VTEP by the remote VTEP. The control program further creates a second egress RIF for the local VNI and associates the second egress RIF with one or more second routing entries in the local VTEP. The packet processor receives a second packet sent to the local VTEP from the remote VTEP through the communication interface, the second packet is encapsulated by the remote VTEP with the exported local VNI, decapsulates the second packet, searches for the decapsulated packet in one or more second routing entries to retrieve the second egress RIF, and forwards the second packet according to the second egress RIF. In other embodiments, the local VTEP and the one or more remote VTEPs belong to different corresponding sites in a multi-site topology. In yet another embodiment, the local VTEP is used as a border gateway (BGW) VTEP, and the one or more remote VTEPs are used as leaf VTEPs coupled to a host, and the BGW VTEP and the host are assigned a common virtual routing and forwarding domain (VRF).
[0013] In one embodiment, the local VTEP and the remote VTEP are assigned different respective VNIs. In another embodiment, the network device is included in a communication network including a plurality of interconnected network devices, and the network device functions as a leaf VTEP or a BGW VTEP in the communication network.
[0014] According to the embodiments described herein, a method for data communication is also provided, including: in a network device used as a local virtual extensible local area network (VXLAN) tunnel endpoint (VTEP), communicating with one or more remote VTEPs, the local VTEP and the one or more remote VTEPs being assigned corresponding VXLAN identifiers (VNIs). A downstream-VNI (D-VNI) is imported by a control program running on the local VTEP for forwarding packets from the local VTEP to the remote VTEP. A unique egress routing interface (RIF) that can be converted to the imported D-VNI is created, and the unique egress RIF is associated with one or more routing entries in the local VTEP. A packet sent to the remote VTEP is received by a packet processor of the local VTEP. The packet is searched in one or more routing entries in the local VTEP to retrieve a unique egress RIF. The unique egress RIF is converted to the imported D-VNI, and the packet is encapsulated using the imported D-VNI. The encapsulated packet is forwarded according to the unique egress RIF.
[0015] According to the embodiments described herein, a method for communication between virtual routing and forwarding domains (VRFs) is also provided, the method comprising: communicating between a local VRF configured in a local VXLAN tunnel endpoint (VTEP) and a remote VRF configured in a remote VTEP but not in the local VTEP. A downstream VXLAN identifier (D-VNI) associated with the remote VRF is imported by the local VTEP for forwarding packets from the local VRF to the remote VRF, and a unique egress routing interface (RIF) is created that can be converted to the imported D-VNI. As soon as the local VTEP receives a packet destined for the remote VRF, a unique egress RIF retrieved based on the packet is converted to the imported D-VNI, and the packet is encapsulated with the imported D-VNI. The encapsulated packet is forwarded according to the unique egress RIF.
[0016] According to the embodiments described herein, there is also provided a method for communicating between sites in different routing domains, the method comprising: communicating between a local VXLAN tunnel endpoint (VTEP) and a remote VTEP belonging to a different corresponding routing domain. A downstream VNI (D-VNI) is imported by the local VTEP for forwarding packets from the local VTEP to the remote VTEP, and a unique egress routing interface (RIF) is created that can be converted to the imported D-VNI. As soon as the local VTEP receives a packet destined for the remote VTEP, the unique egress RIF retrieved based on the packet is converted to the imported D-VNI, and the packet is encapsulated with the imported D-VNI. The encapsulated packet is forwarded according to the unique egress RIF. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] To provide a more complete understanding of these and other embodiments, the following detailed description of the embodiments and the accompanying drawings will be provided, in which:
[0018] Figure 1 is a block diagram schematically illustrating a computer system providing a sharing service according to an embodiment described herein;
[0019] Figure 2 is a block diagram schematically illustrating a network device used as a virtual tunnel endpoint (VTEP) according to embodiments described herein;
[0020] Figure 3A and 3B is a diagram schematically illustrating VTEP processing and forwarding applied to non-encapsulated and encapsulated packets according to an embodiment described herein;
[0021] Figure 4 is a flow chart schematically illustrating a method for configuring a VTEP to communicate with a remote VTEP according to an embodiment described herein;
[0022] Figure 5 is a block diagram schematically illustrating a computer system having a hub-and-spoke topology according to embodiments described herein; and
[0023] Figure 6 is a diagram schematically illustrating a multi-site computer system according to embodiments described herein. DETAILED DESCRIPTION
[0024] Overview
[0025] Embodiments described herein provide improved methods and systems for Virtual Extensible Local Area Network (VXLAN) tunnels with downstream VXLAN identifiers (D-VNIs) encapsulation across different routing domains.
[0026] Various communication networks are divided into multiple routing domains, which are usually isolated from each other, for example, for security reasons. For isolated routing domains, traffic is allowed to flow within each routing domain, but not between different routing domains. For example, a routing domain may be associated with a site or a virtual routing and forwarding domain (VRF) in a multi-site computer system.
[0027] A network device that supports VXLAN is called a Virtual Tunnel Endpoint (VTEP). The VTEP encapsulates VXLAN traffic and decapsulates the traffic when it leaves the VXLAN tunnel.
[0028] In a VXLAN, each VXLAN tunnel is typically assigned a unique Open Systems Interconnection (OSI) Layer 3 (L3) VXLAN Identifier (VNI). In the following description, for brevity, the term "L3VNI" is also simply referred to as "VNI". VNIs can be assigned in a communication network in various ways. For example, in a multi-VRF configuration, different VRFs are typically assigned different corresponding VNIs, and in a multi-site configuration, network devices belonging to a common site can be assigned the same or different VNIs. Different sites typically belong to different management domains.
[0029] In some applications, for example, a communication network needs to support communication between different routing domains associated with various sites or VRFs. For example, inter-domain communication can be achieved by importing and exporting certain VNIs between different routing domains. A VNI imported from another routing domain for establishing a VXLAN tunnel is called a "downstream-VNI" (D-VNI).
[0030] In some embodiments, packet forwarding in a network device is based on pre-ordered routing entries, where each routing entry is associated with a corresponding egress router interface (RIF). In principle, routing entries associated with an inter-domain VXLAN tunnel can store explicit D-VNI information for imported D-VNIs. However, this approach is often costly or even infeasible because storing explicit D-VNI information on a large number of routing entries may take up a large amount of storage space. For example, assuming that each routing entry has 10 bytes of D-VNI information, the storage space for more than 10,000 routing entries totals 100KB. For example, another requirement in hardware implementation is that hardware is required to support storing explicit D-VNI information in routing entries.
[0031] In some embodiments, an efficient solution for supporting VXLAN encapsulation with D-VNI is provided. In the efficient solution, a unique egress RIF is created for the corresponding imported D-VNI and associated with the relevant routing entry.
[0032] Consider an embodiment of a network device used as a local virtual extensible local area network (VXLAN) tunnel endpoint (VTEP), for example, in a multi-site computer system. The network device includes a communication interface, a first processor, and a packet processor. The communication interface communicates with one or more remote VTEPs, wherein the local VTEP and the one or more remote VTEPs are assigned corresponding VXLAN identifiers (VNIs). The first processor runs a control program that imports (e.g., from a remote VTEP or from a user) a downstream-VNI (D-VNI) for forwarding packets from the local VTEP to the remote VTEP, creates a unique egress routing interface (RIF) that is convertible to the imported D-VNI, and associates the unique egress RIF with one or more routing entries in the local VTEP. The packet processor receives a packet destined for the remote VTEP, looks up the packet in one or more routing entries in the local VTEP to retrieve a unique egress RIF, converts the unique egress RIF to the imported D-VNI, encapsulates the packet with the imported D-VNI, and forwards the encapsulated packet according to the unique egress RIF.
[0033] In some embodiments, the control program exports the local VNI of the local VTEP to the remote VTEP for the remote VTEP to create an egress RIF for the local VNI when forwarding a packet from the remote VTEP to the local VTEP, and associate the egress RIF with one or more second routing entries in the local VTEP. In response to receiving a second packet encapsulated by the remote VTEP with the exported local VNI and sent to the local VTEP via the communication interface from the remote VTEP, the packet processor decapsulates the second packet, searches the decapsulated packet in the one or more second routing entries to retrieve the second egress RIF, and forwards the second packet according to the second egress RIF.
[0034] In some embodiments, the local VTEP and one or more remote VTEPs belong to different respective sites in a multi-site topology, e.g., a multi-site data center. In some embodiments, the local VTEP acts as a border gateway (BGW) VTEP, and one or more remote VTEPs act as leaf VTEPs coupled to a host, wherein the BGW VTEP and the host are assigned a common VRF.
[0035] In the technology of the present disclosure, a low storage solution for supporting VXLAN tunnels with D-VNI is provided. To this end, a unique RIF is created for the corresponding imported D-VNI and associated with the relevant routing entry. Each of the unique egress RIFs can be associated with multiple routing entries, but is typically only stored once in a network device, regardless of the number of VRFs configured in the network device. Since the number of imported D-VNIs is typically relatively small, the unique egress RIF consumes very little storage space.
[0036] The low storage solution of the present disclosure may be used in various applications, including but not limited to multi-VRF communication systems providing shared services, multi-VRF communication systems with a hub-and-spoke topology, and multi-site communication systems.
[0037] System Description
[0038] Figure 1 is a block diagram schematically illustrating a computer system 20 that provides a sharing service according to an embodiment described herein.
[0039] Computer system 20 includes service hosts 24A and 24B that provide services to hosts 28A, 28B, and 28C via a communications network 30. Communications network 30 may include, for example, Ethernet.
[0040] Service hosts 24A and 24B belong to routing domains specified by a Domain Name System (DNS) VRF and a storage VRF, which are assigned corresponding VNI values of 20001 and 20002. Hosts 28A, 28B, and 28C belong to different routing domains specified by corresponding VRFs represented as pink, blue, and purple, which are assigned corresponding VNI values of 10001, 10002, and 10003.
[0041] In this example, each of hosts 28A, 28B, and 28C receives DNS services from DNS host 24A, denoted DN1 and DN2, and storage services from storage hosts 24B, denoted ST1 and ST2. In other embodiments, other types of services and / or other numbers of service types may also be used.
[0042] Communication network 30 includes a plurality of interconnected network devices, such as leaf switches 34 denoted L11 ... L32, spine switches 36 denoted S1 and S2, and service leaf switches 38 denoted SL1 and SL2. For simplicity, service leaf switches 34 are also referred to herein as "service switches."
[0043] In the following description, a leaf switch includes a switch that is directly or indirectly coupled to one or more hosts. A host may include, for example, a physical server and / or a virtual machine or server in a virtualized data center environment.
[0044] Leaf switches 34 are coupled to hosts 28A, 28B, and 28C on one side and to spine switches 36 on the other side. For example, leaf switch L11 is coupled to hosts 28A represented by H11 and H12 in the pink VRF and hosts 28B represented by H13 and H14 in the blue VRF. Service switches SL1 and SL2 are coupled to DNS hosts DN1 and DN2 and storage hosts ST1 and ST2 on one side and to spine switches 36 on the other side.
[0045] In computer system 20, leaf, spine, and service switches are assigned corresponding autonomous system numbers (ASNs). Specifically, leaf switches L11 ... L32 are assigned ASNs 65001 ... 65006, spine switches S1 and S2 are assigned ASNs 65100 and 65101, respectively, and service switches SL1 and SL2 are assigned ASNs 65201 and 65202, respectively. For example, ASNs can be used to specify routing targets (RTs), as described below.
[0046] In some embodiments, the communication network 30 includes an Ethernet virtual private network (EVPN), wherein at least some of the network devices function as VXLAN virtual tunnel endpoints (VTEPs). In the following description, the terms "network device", "switch", "router", "gateway" and "VTEP" may be used interchangeably.
[0047] In some embodiments, a network device acting as a VTEP typically creates a VRF instance for each VRF provided in the VTEP. In this example, each of the leaf VTEPs L11...L32 is configured with two VRFs of the pink, blue, and purple VRFs, depending on the VRFs of the hosts coupled to the leaf switches. Similarly, in this example, each of the service VTEPS SL1 and SL2 creates a corresponding VRF instance for its configured VRFs (e.g., DNS and storage VRFs).
[0048] In some embodiments, the communication network 30 is required to support VXLAN tunnels between different VRFs provided in different VTEPs. To this end, the VTEPs can establish inter-VRF VXLAN tunnels by mutually exchanging VNIs associated with different VRFs.
[0049] In the service-to-host direction, each of the service VTEPs SL1 and SL2 imports the D-VNI of each VRF configured in the leaf VTEP from each leaf VTEP. The service VTEP then encapsulates packets destined for a given VRF in the leaf VTEP using the D-VNI imported from the leaf VTEP for the given VRF. In the host-to-service direction, each leaf VTEP in L11…L32 imports the D-VNI from each service VTEP SL1 and SL2. In this example, the leaf VTEP imports two D-VNIs corresponding to the DNS and storage VRFs from the service VTEP. The leaf VTEP then encapsulates packets destined for a given VRF in the service VTEP using the D-VNI imported from the service VTEP for the given VRF.
[0050] As described above, the VRFs configured in the VTEP have corresponding forwarding tables that include routing entries. Each routing entry is associated with (e.g., points to) a corresponding egress RIF, which the VTEP uses for packet forwarding. In some embodiments, the VTEP creates a unique egress RIF for each imported D-VNI and associates the unique egress RIF with the relevant routing entry in the VRF configured in the VTEP.
[0051] In some embodiments, the communication network 30 supports communication between different VRFs in different leaf VTEPs using VXLAN encapsulation with D-VNI. For example, L11 can import the D-VNI associated with the purple VRF for its pink VRF from L21, L22, L31 and / or L32. L11 creates a unique RIF for the imported D-VNI and associates the unique egress RIF with a route entry sent to the purple VRF via one of L21...L32 in the local pink VRF instance. Then, L11 uses the imported D-VNI to encapsulate packets sent by H11 to H22, for example via L11, S1, and L22.
[0052] In some embodiments, the control program in the network device uses a route target (RT) to import and export routes. RT is a construct in the BGP protocol used to specify and control the direction and content of route import / export. In some embodiments, RT is used to control the import and export of routes / VNIs between VTEPs.
[0053] In some embodiments, a VRF instance in a VTEP includes an import RT list and an export RT list. The RTs in the export list are attached to each route that the VTEP publishes to other VTEPs. When a remote VTEP receives a published route with an attached RT, the remote VTEP compares the RT to the import list defined in its corresponding VRF instance. If any of the attached RTs matches the import list of the VRF instance, the remote VTEP imports the published route into the VRF instance. When all RTs attached to the published route do not match the import list of the VRF instance, the remote VTEP ignores importing the published route into the VRF instance.
[0054] In some embodiments, accessing a shared service in computer system 20 using a VXLAN tunnel with a D-VNI involves the following stages:
[0055] Each of the leaf VTEPs L11 ... L32 imports RTs for each of its configured VRFs (e.g., in the pink, blue, and purple VRFs) where service VTEPs SL1 and SL2 export routes corresponding to their shared service VRFs. For example, if the service VTEPs export automatically derived RTs, the leaf VTEPs import RTs *:20001 and *:20002. The wildcard character "*" in these RTs represents the Autonomous System Numbers (ASNs) 65201 and 65202 assigned to SL1 and SL2, respectively. Alternatively, the RTs may be specified using explicit ASNs instead of using the wildcard notation.
[0056] Each of SL1 and SL2 imports the RTs announced by the leaf VTEPs for the pink, blue, and purple VRFs for its configured VRFs (DNS and storage VRFs). In this example, each of SL1 and SL2 imports RTs *:10001, *:10002, and *:10003. Alternatively, explicit ASNs of leaf VTEPs may be used in RTs instead of wildcard notation.
[0057] Based on the imported routes, the leaf VTEP creates unique egress RIFs for the corresponding D-VNIs 20001 and 20002. In the routing table of the VRF provided in the leaf VTEP, the leaf VTEP further associates these unique egress RIFs with the route entries sent to the DNS and storage hosts.
[0058] Based on the routes imported from the leaf VTEPs, each of SL1 and SL2 creates unique egress RIFs for the corresponding D-VNIs 10001, 10002, and 10003. The serving VTEP further associates these unique egress RIFs with route entries to hosts H11...H34 in the DNS and corresponding routing tables of the storage VRFs.
[0059] Consider a packet sent from a source host, such as H11 (IP 192.168.51.11), to a DNS host, such as DN1 (IP 200.11.3.1). The leaf VTEP (L11 or L12) receives the packet from H11, encapsulates the packet with D-VNI 20001, and tunnels the encapsulated packet to SL1 (IP 10.150.3.1) or SL2 (IP 10.150.3.2). SL1 or SL2 decapsulates the packet and routes the decapsulated packet to DN1 in the target DNS VRF based on the D-VNI (20001) in the received packet. SL1 or SL2 performs the last routing by selecting the routing table of the DNS VRF based on the D-VNI in the received packet. Conversely, SL1 or SL2 receives a packet from host DN1 and encapsulates the packet with D-VNI 10001 of the pink VRF to which H11 belongs. SL1 or SL2 transmits the encapsulated packet to L11 or L12 through a tunnel. L11 or L12 uses the routing table of the pink VRF to decapsulate the packet and routes the decapsulated packet.
[0060] In some embodiments, the leaf VTEP 34 or the service VTEP 38 connects to the local host using a multi-chassis link aggregation (MLAG) configuration. In such an embodiment, the peer VTEPs appear to be a single logical network device to the host binding. For example, leaf VTEPs L11 and L12 can be configured as MLAG peers for each of the hosts H11, H12, H13, and H14. Similarly, service VTEPs SL1 and SL2 can be configured as MLAG peers for each of the service hosts DN1, DN2, ST1, and ST2.
[0061] In some embodiments, the communication network 30 supports an equal-cost multi-path (ECMP) routing protocol. Typically, ECMP can be used for fast failover recovery. For example, ECMP is applicable to EVPN multi-master (MH) configurations, such as data centers with CLOS network topology. In ECMP, a source VTEP forwards packets to multiple destination VTEPs via multiple corresponding ECMP paths, where the source VTEP encapsulates packets forwarded via different ECMP paths using different corresponding D-VNIs.
[0062] Network device used as VTEP
[0063] Figure 2 is a block diagram schematically illustrating a network device 50 used as a virtual tunnel endpoint (VTEP) according to an embodiment described herein. For example, the network device 50 may be used to implement Figure 1 The leaf VTEPs L11...L32 and service VTEPs SL1 and SL2 in the computer system 20, and the following Figure 5 The leaf VTEPs L11 . . . L22 and the hub VTEPs SL1 and SL2 in the computer system 300 .
[0064] The network device 50 includes a packet processor 54 coupled to a network interface 56 that uses a port 58 to connect to a communication network (e.g., Figure 1 Each port 58 can be used as an input port for incoming packets, an output port for outgoing packets, or a combined port for incoming and outgoing packets. The packet processor 54 typically handles real-time packet processing and forwarding.
[0065] The network device 50 also includes a general purpose processor 60, such as a central processing unit (CPU), and a memory 62 accessible by the CPU 60 and the packet processor 54. The CPU 60 runs a control plane program 64, which handles offline control and provisioning tasks for the network device. In some embodiments, the control plane program 64 (or a portion thereof) includes a network operating system (NOS) 65, such as Cumulus Linux NOS. For the sake of brevity, the control plane program 64 is also referred to herein as simply the "control program."
[0066] In some embodiments, the control program 64 creates one or more VRF instances 66 in the memory 62, each VRF instance corresponding to a VRF provided in the network device 50. In one embodiment, the VRF instance stores various types of information, such as: the network device's own VNI 70, one or more imported D-VNIs 72, and one or more local VNIs 74 (exported by the network device). In the inter-domain VXLAN tunnel, the VTEP 50 uses the D-VNI imported from the remote VTEP to encapsulate the packet sent to the remote VTEP. The remote VTEP uses the exported local VNI 74 received from the VTEP 50 as the D-VNI to encapsulate the packet sent to the VTEP 50. The exported local VNI 74 may include, for example, the same value as its own VNI 70.
[0067] The VRF instance 66 also includes a forwarding information base (FIB) 76, which includes a plurality of routing entries 78. In some embodiments, the FIB is implemented in hardware but is controlled by the control plane program 64. In some embodiments, the packet processor 54 looks up the packet in the routing entries of the FIB to find a routing entry that specifies how the packet should be forwarded. In one embodiment, the packet lookup in the FIB 76 is typically based on information in the packet header, such as an IP address and prefix.
[0068] In this example, the route entry includes at least an egress routing interface (RIF) and next hop information. The route entry may also store vendor-specific information. The egress RIF includes a logical interface representing a routable interface, which may include a physical port, a subinterface, a switch virtual interface (SVI), an L3VNI, or any other suitable type of interface. In some embodiments, a VNI or D-VNI may be derived from the egress RIF and used for VXLAN encapsulation.
[0069] In one embodiment, VTEP 50 stores the egress RIFs in RIF table 80 in memory 62. In this embodiment, routing entries 78 in FIB 76 point to individual egress RIFs in the RIF table, where multiple different routing entries may point to a common egress RIF.
[0070] In some embodiments, VTEP 50 creates a unique egress RIF for each imported D-VNI and stores the unique egress RIF in RIF table 80. In some embodiments, VTEP 50 also creates a unique egress RIF for each local VNI 74 and stores the unique egress RIF in RIF table 80. The exported local VNI is associated with the same egress RIF created for the local VNI.
[0071] The next hop information in routing entry 78 typically specifies the IP address of the next network device to be traversed along the path to the destination.
[0072] In some embodiments, the control program 64 creates a unique forwarding identifier (FID) for each imported D-VNI and each local VNI (except for the unique egress RIF), where the FID is mapped to the imported D-VNI of the unique egress RIF. In these embodiments, the FIB 76 provides a routing entry pointing to the egress RIF, which in turn points to the FID of the imported D-VNI mapped to the egress RIF. In one embodiment, the packet processor uses an operation chain to derive the imported D-VNI for the packet: FIB lookup->egress RIF->FID->imported D-VNI. Since each imported D-VNI is assigned only one FID, the storage area occupied by the FID is very small.
[0073] In some embodiments, VTEP 50 includes one or more instances of a gateway protocol 84, such as a Border Gateway Protocol (BGP). For example, VTEP 50 can allocate a dedicated BGP instance for each VRF configured in the VTEP. In some embodiments, VTEP 50 uses BGP 84 to exchange routing information such as VNIs and RTs with other VTEPs.
[0074] In some embodiments, control program 64 specifies one or more routing entries in a forwarding rule in an access control list (ACL). In these embodiments, packet processor 54 looks up a packet by matching the packet to one of the forwarding rules in the ACL.
[0075] Packet processing in a network device acting as a VTEP
[0076] Figure 3A and 3B is a diagram schematically illustrating VTEP processing and forwarding applied to non-encapsulated and encapsulated packets according to embodiments described herein.
[0077] Figure 3A Depicted is the processing in packet processor 100. The same or similar processing may be performed by packet processor 54 of VTEP 50, for example.
[0078] The packet processor 100 receives an unencapsulated input packet 104. In the computing system 20, the input packet 104 may come from, for example, a host 28A, 28B, or 28C, a service host such as a DNS host 24A (DN1 or DN2) or a storage host 24B (ST1 or ST2). In this example, the input packet 104 is sent to a VRF that is not configured in the VETP of the packet processor 100, and therefore needs to be encapsulated with a suitable imported D-VNI.
[0079] At the lookup stage 106, the packet processor 100 identifies the VRF from which the input packet came and looks up the input packet in the FIB (76) of the identified VRF. For example, assuming that the input packet originated from host H11 of the pink VEF, the packet processor 100 looks up the input packet in the FIB of the pink VRF to which host H11 belongs. A successful lookup operation results in a routing entry 78 specifying an egress RIF. In this example, the egress RIF includes a unique egress RIF assigned to the imported D-VNI.
[0080] In the adjacency stage 110, the packet processor 100 generates next hop information from the routing ingress or egress RIF of the stage 106. In the mapping stage 112, the packet processor 100 derives the imported D-VNI associated with the egress RIF of the stage 106, and in the rewrite stage 114, generates a VXLAN output packet 120 encapsulated with the imported D-VNI of the stage 112 from the input packet 104. The packet processor 100 forwards the output packet according to the egress RIF of the stage 106.
[0081] Figure 3B Processing is depicted in packet processor 150. The same or similar processing may be performed by packet processor 54 of VTEP 50, for example.
[0082] Packet processor 150 receives input packet 154 encapsulated with a VNI previously exported to a remote VTEP. The exported VNI is used by the remote VTEP as a D-VNI for encapsulating packets destined for the VTEP that includes packet processor 150.
[0083] Packet processor 150 decapsulates input packet 154 (stage 156), selects a target VRF based on the VNI with which the input packet was encapsulated, and looks up the decapsulated packet in the FIB 76 of the selected VRF (stage 158).
[0084] In some embodiments, packet processor 150 terminates the VXLAN tunnel through which input packet 154 arrives. In this case, the lookup operation of stage 158 results in a regular egress RIF that is independent of the D-VNI. In adjacency stage 160, packet processor generates next hop information. In rewrite stage 162, packet processor 154 generates unencapsulated output packet 164A and routes the output packet according to the egress RIF of stage 158.
[0085] In some embodiments, a VTEP including a packet processor 154 acts as a mediator VTEP that mediates communications between different routing domains. Figure 5 Describes a hub-and-spoke topology that includes a mediator VTEP.
[0086] When operating as a mediator VTEP, packet processor 154 exports the local VNI (74) to the source VTEP and imports the D-VNI (72) from the destination VTEP. Packet processor 154 receives input packet 154 from the source VTEP and processes the packet in stages 156 and 158, resulting in an egress RIF as described above.
[0087] exist Figure 3B , the processing associated with the mediator VTEP is depicted in dashed lines. In response to identifying that the egress RIF is uniquely associated with the D-VNI (the D-VNI imported from the destination VTEP), the packet processor 154 maps the unique egress RIF to the imported D-VNI (stage 170). In the rewrite stage 162, the packet processor 154 re-encapsulates the packet using the D-VNI imported from the destination VTEP, generating an output packet 164B. The packet processor 154 then routes the output packet 164B according to the egress RIF of stage 158.
[0088] Note that although Figure 3A and 3B Different packet processing flows are depicted, but in one embodiment, a VTEP (eg, VTEP 50 ) generally implements both packet processing flows of packet processors 100 and 150 .
[0089] Control plane processing
[0090] Figure 4 is a flow chart schematically illustrating a method for configuring a VTEP for communicating with a remote VTEP according to embodiments described herein.
[0091] Figure 4 The method will be described as being performed by a control program 64 running on the CPU 60 of the VTEP 50, denoted herein as the local VTEP.
[0092] The method begins with a VRF instance creation step 200 where the control program 64 creates one or more VRF instances for corresponding one or more local VRFs configured in the local VTEP.
[0093] In an import step 204, the control program imports one or more D-VNIs (72) from the remote VTEP. In this example, each of the imported D-VNIs is associated with a corresponding remote VRF configured in the remote VTEP instead of the local VTEP.
[0094] In the export step 208, the control program exports one or more local VNIs (74) to the remote VTEP. These local VNIs are respectively associated with local VRFs configured in the local VTEP and will be used by the remote VTEP as D-VNIs to encapsulate packets sent to the local VTEP.
[0095] In the outbound RIF creation step 212, the control program creates corresponding unique outbound RIFs for the imported D-VNIs so that each D-VNI can be inferred from its unique outbound RIF. In the inbound RIF creation step 214, the control program creates corresponding unique inbound egress RIFs for the local VNIs (these outbound RIFs are also used for the corresponding exported local VNIs in the inbound direction) so that each exported local VNI can be inferred from its unique inbound egress RIF.
[0096] In a RIF association step 216, the control program associates the outbound egress RIF of step 212 and the inbound egress RIF of step 214 with the relevant routing entries in the VRF instances of the corresponding local VRFs. In some embodiments, the control program associates the unique egress RIF with multiple routing entries, which belong to multiple VRF instances created for multiple local VRFs provided in the local VTEP, respectively. After step 216, the local VTEP is ready to handle communications between the local VRF in the local VTEP and the remote VRF in the remote VTEP.
[0097] Computer system with hub-and-spoke network topology
[0098] Figure 5 is a block diagram schematically illustrating a computer system 300 having a hub-spoke topology according to embodiments described herein.
[0099] In a hub-and-spoke network topology, a hub routing domain acts as a central point of connection for multiple other routing domains (spokes).
[0100] Computer system 300 supports multiple routing domains (VRFs) represented as pink, blue and HUB01, which are assigned L3VNI values 10001, 10002 and 20001 respectively.
[0101] The computer system 300 includes a communication network 302 in which a plurality of network devices are interconnected, including hub switches (also referred to as hub VTEPs) 304, represented as SL1 and SL2, leaf switches (also referred to as leaf VTEPs) 308, represented as L11 ... L22, and spine switches 316, represented as S1 and S2. In the computer system 300, the hub VTEP 304 acts as a mediator VTEP, mediating communications between different VRFs configured in the leaf VTEP 308.
[0102] In communication network 302, leaf switches L11 ... L22 are coupled to hosts 312A and 312B on one side and to spine switches 316 (S1 and S2) on the other side. In addition, each of spine switches S1 and S2 is coupled to hub switches SL1 and SL2 on one side and to a leaf switch on the other side.
[0103] In this example, HUB01 VRF is configured in each of hub VTEPs SL1 and SL2, while pink and blue VRFs are configured in each of leaf VTEPs L11 ... L22. In general, each leaf VTEP 308 is configured with VRFs for hosts 312A and 312B coupled to the leaf VTEP.
[0104] In some embodiments, the computer system 300 supports communication between different VRFs using D-VNI technology. To this end, VTEPs configured with different VRFs can establish VXLAN-based communication by exchanging VNIs with each other.
[0105] exist Figure 5 In the example of FIG. 5 , each of the hub VTEPs SL1 and SL2 imports a D-VNI for the pink VRF and another D-VNI for the blue VRF from each of the leaf VTEPs L11 ... L22. In addition, each of the leaf VTEPs L11 ... L22 imports a D-VNI for the HUB01 VRF from SL1 and SL2.
[0106] Consider a source leaf VTEP sending a packet to a target leaf VTEP via a hub VTEP. The source VTEP encapsulates the packet using the D-VNI imported from the hub VTEP and transmits the encapsulated packet to the hub VTEP via a tunnel. Based on the D-VNI in the received packet, the hub VTEP re-encapsulates the packet using the D-VNI imported by the hub VTEP from the target VTEP.
[0107] In some embodiments, the computer system 300 supports VXLAN tunnels with D-VNIs having a low storage footprint, as described above, for example, with reference to the above Figure 1 In such an embodiment, the leaf and hub VTEPs in computer system 300 create a unique egress RIF for the imported D-VNI and store the unique egress RIF only once in the VTEP.
[0108] In computer system 300, hosts 312A and 312B that are coupled to a common leaf switch but belong to different VRFs can also communicate using D-VNI via hub switches SL1 and SL2. For example, although H11 of pink VRF and H13 of blue VRF are both coupled to leaf switch L11, hosts H11 and H13 communicate with each other via mediators VTEPs SL1 and SL2 as described above.
[0109] In some embodiments, communication in a hub-and-spoke topology using VXLAN tunnels and D-VNI involves the following stages:
[0110] Each hub VTEP SL1 and SL2 imports the pink and blue VRFs from the leaf VTEP routes (e.g., using RT as described above). For example, the hub VRF instance of the HUB01 VRF of SL1 or SL2 imports RT *:10001 and *:10002 from the leaf VTEP. For example, each of SL1 and SL2 imports from the L11 and L12 routes that include the IP addresses of hosts H11 ... H14, and imports from the L21 and L22 routes that include the IP addresses of H21 ... H24.
[0111] Each of SL1 and SL2 aggregates the imported routes into an aggregate route and initiates an aggregate route with export RT65201:10002 (or 65202:10002) as a pink VRF route. Similarly, SL1 and SL2 initiate an aggregate route with export RT65201:10001 (or 65201:10001) as a blue VRF route. In some embodiments, SL1 or SL2 generates the aggregate route by applying the longest prefix match (LPM) method to the imported routes represented by the IP addresses of hosts 312A and 312B. For example, SL1 and SL2 generate an aggregate route 192.168.62.0 / 24 for the pink VRF in L11 for reaching H23 and H24 of the blue VRF via L21 or L22.
[0112] Leaf VTEPs L11…L22 use their automatically exported RTs for route export and import. This means that the leaf VTEPs import aggregate routes from SL1 and SL2 for inter-VRF routing via the hub VTEPs, such as routing between H11 (pink VRF) and H24 (blue VRF).
[0113] Consider a host in the pink VRF sending a packet to a host in the blue VRF. For example, H11 (IP 192.168.51.11) sends a packet to H24 (IP 192.168.62.24). The packet is received by L11 or L12, which forwards the packet using the aggregate route 192.168.62.0 / 24 previously originated from SL1 and / or SL2. L11 or L22 encapsulates the packet using D-VNI 20001 of HUB01 VRF and tunnels the encapsulated packet to hub VTEP SL1 or SL2. SL1 or SL2 decapsulates the packet in HUB01 VRF and routes the decapsulated packet based on the full host route imported from L21 and / or L22 (e.g., 192.168.62.24 / 32 for host H24). SL1 or SL2 re-encapsulates the packet using VNI 10002 (imported from L21 and / or L22) and tunnels the re-encapsulated packet to L21 or L22 via VXLAN. L21 or L22 then routes the packet in the blue VRF (e.g., to H24 in this example). A similar forwarding scheme applies to communications between hotspots in different VRFs, where hosts are coupled to a common leaf VTEP (e.g., H11 and H13).
[0114] Multi-site computer systems
[0115] Figure 6 4 is a diagram schematically illustrating a multi-site computer system 400 according to an embodiment described herein. For example, Figure 6 The computer system in the invention may be used to implement a multi-site data center, where the sites may be deployed in different geographical locations and / or have different administrative domains.
[0116] In this example, computer system 400 includes data center (DC) sites 404 represented as DC-1, DC-2, and DC-3, which can be managed separately by different network managers. In alternative embodiments, the multi-site computer system can include other appropriate numbers of sites. In some embodiments, DC sites 404 are associated with different corresponding routing domains.
[0117] Each of the DC sites 404 includes a border gateway (BGW) router (also referred to as a BGW VTEP) 412, which is locally connected to one or more leaf switches (also referred to as leaf VTEPs) 416 of the DC site. The BGW VTEPs in DC sites DC-1, DC-2, and DC-3 are denoted as BGW1, BGW2, and BGW3, respectively. In some embodiments, the BGW VTEP 412 acts as a mediator VTEP, mediating communications between DC sites with different routing domains.
[0118] In some embodiments, using Figure 2 VTEP 50 implements BGW VTEP 412 and leaf VTEP 416, and as above Figure 3A and 3B The processing is grouped.
[0119] The leaf VTEPs 416 in DC sites DC-1, DC-2, and DC-3 are represented as DCL-1, DCL-2, and DCL-3, respectively. Figure 6 Only one leaf VTEP in each DC site is depicted. Each DC site 404 typically includes a host 420 accessible via the leaf VTEP of the DC site. In some embodiments, the BGW VTEP 412 and the host 420 share a common VRF denoted as "A".
[0120] In this example, BGW1, BGW2, and BGW3 are assigned VNI 50002, 50003, and 50099, respectively, while leaf VTEPs DCL-1, DCL-2, and DCL-3 are assigned VNI 50001, 50004, and 50099, respectively. The VNI allocation in the DC-1 and DC-2 sites is asymmetric (because the BGW VTEPs are assigned different VNIs than the leaf switches in the DC sites), while the VNI allocation in the DC-3 site is symmetric (because the BGW VTEPs and leaf VTEPs share a common VNI value of 50099 in this DC site).
[0121] exist Figure 6 In the example shown in FIG. 1 , leaf VTEP DCL-1 in site DC-1 needs to send packets to leaf VTEP DCL-2 in site DC-2. This inter-domain communication can be achieved using a VXLAN tunnel with a D-VNI.
[0122] In an example scenario, a host behind leaf VTEP DCL-1 sends a packet to another host behind leaf VTEP DCL-2. To support this scenario, DCL-1 imports D-VNI 50002 from BGW1, BGW1 imports D-VNI50003 from BGW2, and BGW2 imports VNI 50004 from DCL-2. Packets sent from DCL-1 to DCL-2 will be encapsulated with D-VNI 50002 and tunneled to BGW1. BGW1 decapsulates the packet, re-encapsulates the packet with D-VNI 50003, and tunnels the packet to BGW2. BGW2 decapsulates the packet, re-encapsulates the packet with D-VNI 50004, and tunnels the packet to leaf DCL-2. As the final terminating leaf VTEP, DCL-2 decapsulates the packet and forwards the decapsulated packet to the destination host behind DCL-2.
[0123] In another example scenario, a host behind leaf VTEP DCL-1 sends a packet to a host behind leaf VTEP DCL-3. To support this scenario, DCL-1 imports VNI 50002 from BGW1, and BGW1 imports VNI 50099 from BGW3. Packets sent from a host behind DCL-1 to another host behind DCL-3 are processed as in the previous scenario with BGW1. In the current scenario, BGW1 re-encapsulates the packet using D-VNI 50099 and transmits the packet to BGW3 through a tunnel. BGW3 forwards the packet to the destination host behind DCL-3 through DCL-3 based on VNI 50099.
[0124] As mentioned above, the VNI allocation in site DC-3 is symmetric, which means that communication within site DC-3 does not require D-VNI. However, in order to send packets from site DC-3 to DC-1 or DC-2, BGW3 needs to import D-VNI 50002 from BGW1 or D-VNI 50003 from BGW2, respectively.
[0125] In some embodiments, the computer system 400 supports VXLAN tunnels with D-VNIs having a low storage footprint, as described above, for example, with reference to Figure 1 In these embodiments, a VTEP in computer system 400 creates a unique egress RIF for the imported D-VNI and stores the unique egress RIF only once in the VTEP.
[0126] Figure 1 Computer system 20, Figure 5 Computer system 300 and Figure 6 The configuration of the computer system 400 and Figure 2The configuration of the network device (VTEP) 50 is an example configuration, which is selected purely for conceptual clarity. In alternative embodiments, any other suitable computer system and network device configuration may also be used. For clarity, components not required for understanding the principles of the present invention, such as various interfaces, addressing circuits, timing and sorting circuits, and debugging circuits are omitted from the figure.
[0127] Some elements of the network device (VTEP) 50, such as the packet processor 54, may be implemented in hardware, such as in one or more application specific integrated circuits (ASICs) or FPGAs. Additionally or alternatively, the packet processor 54 may be implemented using software or a combination of hardware and software elements. The memory 62 may include any suitable type of memory using any suitable storage technology, such as random access memory (RAM), dynamic RAM (DRAM), non-volatile memory (e.g., flash memory), or a combination of multiple memory types.
[0128] In some embodiments, some functions of CPU 60 and / or packet processor 54 may be performed by a general purpose processor that is programmed in software to perform the functions described herein. The software may be downloaded to the processor in electronic form, such as over a network, or may alternatively or additionally be provided and / or stored on a non-transitory tangible medium, such as a magnetic, optical or electronic memory.
[0129] The embodiments described above are given by way of example, and other suitable embodiments may also be used.
[0130] In the above embodiments, routes / VNIs are primarily imported and exported using the BGP protocol. However, in alternative embodiments, routes / VNIs may be configured in a network device by a user of the communication network. In an example embodiment, the network device imports the D-VNI by receiving the D-VNI in one or more commands originating from the user, where the user sends the one or more commands manually or automatically by running a script containing the one or more commands.
[0131] The above embodiments mainly refer to the layers specified in the OSI model. However, this is not mandatory, and in alternative embodiments, layers according to any other suitable layered model may also be used. It is assumed that this alternative layered model includes a transport layer and an IP layer, similar to the transport layer and the IP layer specified in the OSI model.
[0132] Although the embodiments described herein primarily address efficient storage implementation of D-VNI in network devices such as switches and routers, the methods and systems described herein may also be used in other applications, such as implementing D-VNI using a small storage space in a network adapter such as a NIC or a smart NIC.
[0133] It should be understood that the embodiments described above are cited as examples, and the following claims are not limited to what is particularly shown and described above. On the contrary, the scope includes combinations and sub-combinations of the various features described above, as well as changes and modifications not disclosed in the prior art that would occur to a person skilled in the art upon reading the foregoing description. Documents incorporated by reference into this patent application should be considered an integral part of this application, unless the definition of any term in these incorporated documents conflicts with the definition expressly or impliedly in this specification, only the definition in this specification should be considered.
Claims
1. A network device used as a local virtual extensible local area network (VXLAN) tunnel endpoint VTEP, the network device comprising: a communication interface configured to communicate between a local virtual routing and forwarding domain VRF and a remote VRF, wherein each of the local VRFs and each of the remote VRFs has a unique VXLAN identifier VNI; a first processor running a control program configured to: Creating a local VRF instance for the local VRF configured in the local VTEP; importing a downstream-VNID-VNI for forwarding a packet from the local VRF to a remote VRF, the remote VRF being provided in a remote VTEP instead of the local VTEP; For the imported D-VNI, create (i) a unique egress routing interface RIF and (ii) a unique forwarding identifier FID, wherein the unique RIF is convertible to the unique FID, and the unique FID is mapped to the imported D-VNI; as well as associating the unique egress RIF with one or more routing entries in the local VRF instance; as well as A packet processor configured to: receiving a packet sent to the remote VRF; looking up the packet in the one or more routing entries in the local VRF instance to retrieve the unique egress RIF, translating the unique egress RIF into the unique FID, mapping the unique FID to the imported D-VNI, and encapsulating the packet with the imported D-VNI; and The encapsulated packet is forwarded according to the unique egress RIF.
2. The network device of claim 1 , wherein the control program in the local VTEP is configured to: exporting a local VNI of the local VRF to the remote VTEP for forwarding packets from the remote VRF to the local VRF by the remote VTEP; as well as creating a second egress RIF for the local VNI and associating the second egress RIF with one or more second routing entries in the local VRF instance; as well as The packet processor is configured to: receiving, via the communication interface, a second packet from the remote VRF addressed to the local VRF, the second packet being encapsulated by the remote VTEP with the derived local VNI; decapsulating the second packet; looking up the decapsulated second packet in the one or more second routing entries in the local VRF instance to retrieve the second egress RIF; as well as The second packet is forwarded according to the second egress RIF.
3. The network device according to claim 1, wherein the local VTEP and the remote VTEP are included in an Ethernet virtual private network (EVPN), wherein packets communicated between different VRFs are encapsulated based on VXLAN encapsulation. 4 . The network device of claim 1 , wherein the control program is configured to import the D-VNI using an instance of a Border Gateway Protocol (BGP) associated with the local VRF.
5. The network device according to claim 1, wherein the control program is configured to associate the unique egress RIF with a plurality of routing entries, the plurality of routing entries respectively belonging to a plurality of VRF instances respectively created for a plurality of local VRFs configured in the local VTEP.
6. A network device according to claim 1, wherein the control program is configured to configure the one or more routing entries in a forwarding rule in an access control list (ACL), and wherein the packet processor is configured to find the packet by matching the packet with one of the forwarding rules in the ACL.
7. A network device according to claim 1, wherein each of the local VTEP and the remote VTEP comprises a leaf network device or a service network device in a communication network, and wherein each of the leaf network devices is assigned one or more local VRFs, and each of the service network devices is assigned one or more remote VRFs different from the local VRFs.
8. The network device of claim 7, wherein the service host is coupled to a given service network device on which a corresponding shared service VRF is configured, and wherein the service host provides services to one or more served hosts in the local VRF through the communication network.
9. The network device of claim 7, wherein the communication network has a hub-and-spoke topology, wherein one or more hub network devices are configured with a hub VRF that supports routing between served hosts belonging to different VRFs in the local VRF.
10. The network device of claim 1, wherein the communication network supports an equal-cost multi-path (ECMP) routing protocol, and wherein the packet processor is configured to encapsulate packets forwarded to a plurality of remote VTEPs using different ECMP paths with different corresponding D-VNIs.
11. The network device of claim 1, wherein the packet processor is configured to receive the packet from a host or a network element in a first VRF, or to receive the packet from a third VRF.
12. The network device of claim 1, wherein the control program is configured to import the D-VNI from the remote VTEP, or by receiving the D-VNI in one or more commands manually sent by a user, or automatically receiving the D-VNI by running a script containing the one or more commands.
13. A method for data communication, comprising: In a network device serving as a local virtual extensible local area network (VXLAN) tunnel endpoint (VTEP), communicating between a local virtual routing and forwarding domain (VRF) and a remote VRF, wherein each of the local VRFs and each of the remote VRFs has a unique VXLAN identifier (VNI); Creating a local VRF instance for the local VRF configured in the local VTEP by a control program; importing a downstream-VNID-VNI for forwarding a packet from the local VRF to a remote VRF, the remote VRF being provided in a remote VTEP instead of the local VTEP; For the imported D-VNI, create (i) a unique egress routing interface RIF and (ii) a unique forwarding identifier FID, wherein the unique RIF is convertible to the unique FID, and the unique FID is mapped to the imported D-VNI; associating the unique egress RIF with one or more routing entries in the local VRF instance; The packet processor of the local VTEP receives the packet sent to the remote VRF; looking up the packet in the one or more routing entries in the local VRF instance to retrieve the unique egress RIF, translating the unique egress RIF into the unique FID, mapping the unique FID to the imported D-VNI, and encapsulating the packet with the imported D-VNI; and The encapsulated packet is forwarded according to the unique egress RIF.
14. The method according to claim 13, comprising: exporting a local VNI of the local VRF to the remote VTEP for forwarding packets from the remote VRF to the local VRF by the remote VTEP, creating a second egress RIF for the local VNI, and associating the second egress RIF with one or more second routing entries in the local VRF instance; receiving a second packet from the remote VRF addressed to the local VRF, the second packet being encapsulated by the remote VTEP with the derived local VNI; decapsulating the second packet and looking up the decapsulated second packet in the one or more second routing entries in the local VRF instance to retrieve the second egress RIF; as well as The second packet is forwarded according to the second egress RIF. 15 . The method according to claim 13 , wherein the local VTEP and the remote VTEP are included in an Ethernet virtual private network (EVPN), wherein packets communicated between different VRFs are encapsulated based on VXLAN encapsulation. 16 . The method of claim 13 , wherein importing the D-VNI comprises importing the D-VNI using an instance of a Border Gateway Protocol (BGP) associated with the local VRF.
17. The method of claim 13, wherein associating the unique egress RIF comprises associating the unique egress RIF with a plurality of routing entries, the plurality of routing entries respectively belonging to a plurality of VRF instances respectively created for a plurality of local VRFs configured in the local VTEP.
18. The method of claim 13, comprising configuring the one or more routing entries in forwarding rules in an access control list (ACL), and wherein looking up the packet comprises matching the packet to one of the forwarding rules in the ACL.
19. The method according to claim 13, wherein each of the local VTEP and the remote VTEP comprises a leaf network device or a service network device in a communication network, and wherein each of the leaf network devices is assigned one or more local VRFs, and each of the service network devices is assigned one or more remote VRFs different from the local VRFs.
20. The method of claim 19, wherein the service host is coupled to a given service network device on which a corresponding shared service VRF is configured, and wherein the service host provides services to one or more served hosts in the local VRF through the communication network.
21. The method of claim 19, wherein the communication network has a hub-and-spoke topology, wherein one or more hub network devices are configured with a hub VRF that supports routing between served hosts belonging to different ones of the local VRFs.
22. The method of claim 13, wherein the communication network supports an equal-cost multi-path (ECMP) routing protocol, and wherein the method further comprises encapsulating packets forwarded to a plurality of remote VTEPs using different ECMP paths with different corresponding D-VNIs.
23. The method of claim 13, wherein receiving the packet comprises receiving the packet from a host or a network element in a first VRF, or receiving the packet from a third VRF.
24. The method of claim 13, wherein importing the D-VNI comprises importing the D-VNI from the remote VTEP, or by receiving the D-VNI in one or more commands manually sent by a user, or automatically receiving the D-VNI by running a script containing the one or more commands.
25. A network device used as a local virtual extensible local area network (VXLAN) tunnel endpoint VTEP, the network device comprising: a communication interface configured to communicate with one or more remote VTEPs, wherein the local VTEP and the one or more remote VTEPs are assigned corresponding VXLAN identifiers VNI; a first processor running a control program configured to: Importing downstream-VNID-VNI for forwarding packets from the local VTEP to a remote VTEP; For the imported D-VNI, create (i) a unique egress routing interface RIF and (ii) a unique forwarding identifier FID, wherein the unique RIF is convertible to the unique FID, and the unique FID is mapped to the imported D-VNI; as well as Associating the unique egress RIF with one or more routing entries in the local VTEP; as well as A packet processor configured to: Receiving a packet sent to the remote VTEP; looking up the packet in the one or more routing entries in the local VTEP to retrieve the unique egress RIF, translating the unique egress RIF into the unique FID, mapping the unique FID to the imported D-VNI, and encapsulating the packet with the imported D-VNI; and The encapsulated packet is forwarded according to the unique egress RIF.
26. The network device of claim 25, wherein the control program is configured to: exporting a local VNI of the local VTEP to the remote VTEP for the remote VTEP to forward packets from the remote VTEP to the local VTEP; as well as creating a second egress RIF for the local VNI and associating the second egress RIF with one or more second routing entries in the local VTEP; and The packet processor is configured to: receiving, via the communication interface, a second packet from the remote VTEP addressed to the local VTEP, the second packet being encapsulated by the remote VTEP with the derived local VNI; decapsulating the second packet; searching the decapsulated second packet in the one or more second routing entries to retrieve the second egress RIF; as well as The second packet is forwarded according to the second egress RIF.
27. The network device of claim 25, wherein the local VTEP and the one or more remote VTEPs belong to different respective sites in a multi-site topology.
28. The network device of claim 25, wherein the local VTEP functions as a border gateway (BGW) VTEP and the one or more remote VTEPs function as leaf VTEPs coupled to a host, and wherein the BGW VTEP and the host are assigned a common virtual routing and forwarding domain (VRF).
29. The network device of claim 25, wherein the local VTEP and the remote VTEP are assigned different corresponding VNIs.
30. The network device of claim 25, wherein the network device is included in a communication network including a plurality of interconnected network devices, and wherein the network device functions as a leaf VTEP or a BGW VTEP in the communication network.
31. A method for data communication, comprising: In a network device serving as a local virtual extensible local area network (VXLAN) tunnel endpoint VTEP, communicating with one or more remote VTEPs, wherein the local VTEP and the one or more remote VTEPs are assigned respective VXLAN identifiers VNI; importing, by a control program running on the local VTEP, a downstream VNID-VNI for forwarding packets from the local VTEP to a remote VTEP; For the imported D-VNI, create (i) a unique egress routing interface RIF and (ii) a unique forwarding identifier FID, wherein the unique RIF is convertible to the unique FID, and the unique FID is mapped to the imported D-VNI; Associating the unique egress RIF with one or more routing entries in the local VTEP; The packet processor of the local VTEP receives the packet sent to the remote VTEP; looking up the packet in the one or more routing entries in the local VTEP to retrieve the unique egress RIF, translating the unique egress RIF into the unique FID, mapping the unique FID to the imported D-VNI, and encapsulating the packet with the imported D-VNI; and The encapsulated packet is forwarded according to the unique egress RIF.
32. The method according to claim 31, comprising: exporting a local VNI of the local VTEP to the remote VTEP for forwarding packets from the remote VTEP to the local VTEP by the remote VTEP, creating a second egress RIF for the local VNI, and associating the second egress RIF with one or more second routing entries in the local VTEP; receiving, from the remote VTEP, a second packet addressed to the local VTEP, the second packet being encapsulated by the remote VTEP using the derived local VNI; decapsulating the second packet and searching the decapsulated second packet in the one or more second routing entries to retrieve the second egress RIF; as well as The second packet is forwarded according to the second egress RIF.
33. The method of claim 31, wherein the local VTEP and the one or more remote VTEPs belong to different respective sites in a multi-site topology.
34. The method of claim 31, wherein the local VTEP functions as a border gateway (BGW) VTEP and the one or more remote VTEPs function as leaf VTEPs coupled to a host, and wherein the BGW VTEP and the host are assigned a common virtual routing and forwarding domain (VRF).
35. The method of claim 31, wherein the local VTEP and the remote VTEP are assigned different respective VNIs.
36. The method of claim 31, wherein the network device is included in a communication network including a plurality of interconnected network devices, and wherein the network device functions as a leaf VTEP or a BGW VTEP in the communication network.
37. A method for communicating between virtual routing and forwarding domains (VRFs), the method comprising: Communicate between a local VRF configured in a local VXLAN tunnel endpoint VTEP and a remote VRF, the remote VRF being provided in a remote VTEP instead of in the local VTEP; Importing, by the local VTEP, a downstream VXLAN identifier D-VNI associated with the remote VRF for forwarding packets from the local VRF to the remote VRF, and creating (i) a unique egress routing interface RIF and (ii) a unique forwarding identifier FID for the imported D-VNI, wherein the unique RIF is convertible to the unique FID, and the unique FID is mapped to the imported D-VNI; as well as When a packet destined for the remote VRF is received by the local VTEP, converting the unique egress RIF retrieved based on the packet into the unique FID, mapping the unique FID to the imported D-VNI, and encapsulating the packet with the imported D-VNI; and The encapsulated packet is forwarded according to the unique egress RIF.
38. A method for communicating between sites in different routing domains, the method comprising: Communication between a local VXLAN tunnel endpoint VTEP and a remote VTEP belonging to a different corresponding routing domain; Importing, by the local VTEP, a downstream-VNID-VNI for forwarding packets from the local VTEP to the remote VTEP, and creating (i) a unique egress routing interface RIF and (ii) a unique forwarding identifier FID for the imported D-VNI, wherein the unique RIF is convertible to the unique FID, and the unique FID is mapped to the imported D-VNI; When a packet sent to the remote VTEP is received by the local VTEP, converting the unique egress RIF retrieved based on the packet into the unique FID, mapping the unique FID to the imported D-VNI, and encapsulating the packet with the imported D-VNI; and The encapsulated packet is forwarded according to the unique egress RIF.
