Multi-tenant isolation using programmable clients
By using application-specific integrated circuits ASIC and VPC controllers in cloud service switches, routing guidance for fast paths and slow paths is realized, which solves the problems of multi-tenant isolation and efficient network business flow processing in cloud services, and reduces costs and power consumption. Improved performance and scalability.
Patent Information
- Application Number
- CN201980086996.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-12-28
- Filing Date
- 2019-12-26
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2039-12-26
AI Technical Summary
When existing technologies provide cloud services, multi-tenant isolation and network business flow processing have the problems of high cost, high power consumption, limited performance and poor scalability, especially when dealing with a large number of routing connections and high bandwidth requirements. There are devices that struggle to meet user performance and capacity requirements.
A switch is designed, using application-specific integrated circuit ASIC and memory, through the routing guidance mechanism of fast path and slow path, bypassing the gateway and directly forwarding packets, reducing network waiting time and energy usage, and working together through the VPC controller and VRC, Automate routing configuration and connection management to achieve isolation and efficient processing of tenant business flows.
It reduces network waiting time, reduces energy usage and management costs, supports high bandwidth and multiple routing requirements, improves the flexibility and scalability of the network architecture, avoids the need to deploy virtual routing guidance and forwarding, and reduces hardware costs.
Smart Images

Figure CN113261240B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims the benefit of priority to U.S. Application No. 16,236,263, filed on December 28, 2018, and entitled “Multi-Tenant Isolation Using Programmable Switch,” the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of communications, and in particular to multi-tenant isolation using a programmable client. Background Art
[0004] One of the main services provided by a cloud service provider is to provide its users with the provider's infrastructure (e.g., processor cores, storage space) for running virtual machines (VMs). Users can remotely access instances of VMs running on the infrastructure via a virtual private cloud (VPC). Network traffic flows generated from customer premises equipment (CPE) seeking to access a specific VM instance running in a VPC can be received at a network controller (NC), which forwards the network traffic flows to a switch, which forwards the traffic flows to the appropriate gateway via routes announced according to an external gateway protocol (e.g., external gateway protocol (EGP), border gateway protocol (BGP)). The gateway in turn forwards the traffic to the appropriate physical machine running the VM via a MAC address. In other words, the gateway handles all packets in and out of the overlay network.
[0005] However, users are increasingly demanding greater capacity and performance for remote VPC access. For example, recent bandwidth requirements have quadrupled and then more than doubled. In addition, users need to increase port density. Processing all packets in and out of the overlay network at the gateway does not provide port density and / or bandwidth to the VPC (which requires some form of traffic segmentation) without experiencing increased latency and reduced per-connection consistency (PCC) during frequent VM changes. The demand for more routes has also increased - in some cases, users need 20,000 routes per VPC. For a customer switch hosting approximately 1,000 users, this means that the customer switch would need to support up to 20 million routes. There is currently no such equipment.
[0006] In addition, multiple tenants can share the same physical infrastructure of the provider. Cloud service providers can implement network function virtualization (NFV) to allow tenants to form an overlay network in a multi-tenant network. Typically, NFV is deployed on x86 systems and forms an overlay network layer. The use of x86 systems increases the flexibility of the network architecture and allows new features to be quickly applied to the infrastructure. However, x86 systems result in high management costs, high power consumption, limited performance, and poor scalability.
[0007] To isolate tenants' traffic flows, providers can deploy virtual routing and forwarding (VRF) for each VM host. Deploying VRF involves generating a routing table for each VM host so that a router that receives a packet destined for a specific VM host can use the routing table associated with that VM host to route the directed packet. However, this increases the amount of routing tables that take up space and the number of open connections in the underlying network. Overlay solutions for handling all of this traffic flows are very expensive at this point (e.g., routers that can handle thousands and / or millions of connections can each cost a million dollars or more). In addition, the routers that handle these connections typically have statically allocated resources, such as memory space, which also leads to scalability bottlenecks as the number of tenants grows. Summary of the invention
[0008] A switch is provided, the switch comprising: a port, the port being configured to send and receive a network service flow including a packet; an application specific integrated circuit ASIC; a memory, the memory storing an instruction set, the instruction set causing the ASIC, when executed, to: receive a packet via the port; determine to forward the packet via a first path instead of a second path, wherein the first path comprises forwarding the packet to at least one of a virtual private cloud (VPC) and a virtual machine (VM) host, and wherein the second path comprises forwarding the packet to a gateway; and forwarding the packet via the first path.
[0009] A method for routing and isolating network service flows is also provided, the method comprising the following steps: receiving an ingress packet including first data at a switch application-specific integrated circuit ASIC; performing a lookup in a connection table to determine whether the first data generates a hit or a miss, wherein the connection table is stored on a memory accessible to the switch ASIC; and forwarding the ingress packet to at least one of a virtual private cloud (VPC) router and a virtual machine (VM) host based at least in part on generating a hit based on the lookup step; or forwarding the ingress packet to a network gateway based at least in part on determining that the first data generates a miss.
[0010] A non-transitory computer-readable medium is also provided, the non-transitory computer-readable medium having a connection table and an instruction set, the instruction set causing an application-specific circuit ASIC associated with a network switch when executed to: determine that a first virtual local area network (VLAN) tag and a destination address match at least a portion of an entry of the connection table, wherein a first ingress packet includes the first VLAN tag, and wherein the first destination address is associated with a first virtual machine (VM) instance that is a destination of the ingress packet; identify at least one of a first virtual extensible local area network (VxLAN) network identifier (VNI) and a first VxLAN tunnel endpoint (VTEP) address based at least in part on the entry; encapsulate the first ingress packet into a first encapsulated packet based at least in part on at least one of the first VNI and the first VTEP address; and forward the first encapsulated packet to at least one of a first virtual private cloud (VPC) router and the first VM instance. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The detailed description is described with reference to the accompanying drawings. In the drawings, the left-most digit(s) of a reference number identifies the drawing in which the reference number first appears. The same reference numbers in different drawings indicate similar or identical items.
[0012] Figure 1 A block diagram illustrating an example architecture for handling network traffic flows into and out of an overlay network through a gateway is illustrated.
[0013] Figure 2 A block diagram illustrating an overview of an example network architecture for handling network traffic flows into and out of a virtual private cloud.
[0014] Figure 3 A block diagram of an example device for processing network traffic flows into and out of a virtual private cloud is illustrated.
[0015] Figure 4A and Figure 4B The upstream operation and downstream operation of the switch and / or the diversion controller are shown respectively.
[0016] Figure 5 A block diagram of a virtual routing boot controller storing an exemplary fast path table and / or slow path table and pushing rules associated therewith to a switch is illustrated.
[0017] Figure 6 A block diagram illustrating an example cache lookup and packet forwarding using fast path at a switch.
[0018] Figure 7 A block diagram illustrating an example cache lookup and packet forwarding using a slow path at a switch.
[0019] Figure 8Depicted is a block diagram of an example offload controller architecture including a VPC controller and / or VRC for determining routes for connections, maintaining connection state, advertising routes to CPEs, and / or controlling switches. DETAILED DESCRIPTION
[0020] The present disclosure generally relates to techniques (e.g., machines, processes) for handling network traffic flows between a point of delivery (PoD) (e.g., provider infrastructure that receives ingress packets from customer premises equipment (CPE) and / or sends egress packets to the CPE) and a virtual machine (VM) instance running at a VM host. The VM instance may run within a virtual private cloud (VPC). The techniques discussed herein may include a network architecture for handling such (and other) traffic, the network architecture including a traffic diversion controller (OC) and / or a programmable switch application specific integrated circuit (ASIC), hereinafter referred to as a CSW. In some examples, these components may divert at least some of the packet forwarding and / or routing steering operations from a gateway.
[0021] In other techniques, the gateway handles all packets entering and leaving the overlay network. For example, in other techniques, peer-to-peer traffic received by the switch can be routed to the gateway (e.g., as the next hop) so that the gateway can perform route guidance and MAC address lookup to correctly route the guided packets between the VPC and the CPE. In some examples, the gateway can run on an x86 machine. However, in some examples, the techniques discussed herein can include bypassing the gateway using operations and hardware settings that reduce network latency, support full bisection traffic flows, reduce energy usage, reduce active management, and increase consistency of each connection.
[0022] According to some techniques discussed herein, the OC may include a VPC controller and / or a virtual routing controller (VRC). The VPC controller may (1) receive instructions from a client via a VPC console, which may include software-defined network (SDN) instructions (e.g., virtual switch (Vswitch) subnet definitions, user-defined routes, user-defined Internet Protocol (IP) addresses); (2) receive and / or configure cross-region routes with other VPC controllers and / or gateways (e.g., in other regions and / or availability zones); (3) learn and / or publish Border Gateway Protocol (BGP) routes in collaboration with the VRC; and / or (4) configure routes to VM hosts and / or VM instances in collaboration with the VPC switches and / or gateways.
[0023] In some examples, the VPC controller can configure a BGP session to be advertised from the VRC directly to the CPE and / or to the CPE via the CSW. In additional or alternative examples, the VPC controller can configure routing between the CSW and the VM host and / or VM instance that bypasses the gateway. When routing is completed, whether it is BGP routing or routing between the CSW and the VM host, the VPC controller can push the rules for the routing to the VRC.
[0024] In some examples, operations of the VPC controller may be performed by the VRC, and vice versa. Additionally or alternatively, in some examples, the OC may be configured to automatically execute user-specified network connectivity policies to automate multi-region multi-VPC virtual networks, automatically detect address conflicts and control user-related routing changes to ensure that network connectivity and user traffic flows are not affected or interrupted, even when the virtual network topology changes frequently (e.g., VMs migrate to new virtual switches and / or subnets); and / or provide users with the ability to customize network connectivity policies (e.g., via a client-facing VPC console that interfaces with the VPC controller).
[0025] The VRC may be configured to receive rules from the VPC controller. In some examples, the VRC and / or the VPC controller may configure the rules as entries in a key-value table, and may manage the entries in the table so that there is one entry for each connection / route. The VRC may maintain a key-value table that sets rules for ingress packets (i.e., incoming packets received from the CPE), i.e., an "ingress key-value table," and / or a key-value table that sets rules for egress packets (e.g., packets flowing to users, packets flowing between regions, packets flowing between provider infrastructures), i.e., an "egress key-value table."
[0026] In some examples, the VRC may determine a subset of a table stored at the VRC for programming the CSW. For example, the VRC may determine a portion of an entry key-value table and a portion of an exit key-value table for programming the CSW. In some examples, programming the CSW with a portion of the table may include hashing the portion of the table to determine a hashed table that is pushed to the CSW. The table that the CSW receives from the VRC may be stored in the CSW's cache as a "connection table." The VRC may additionally or alternatively determine when to add and / or delete entries in a connection table stored at the CSW. The VRC may push instructions to add entries to or delete entries from the CSW's control to remotely control the behavior of the CSW, as well as remotely program the CSW to bypass the gateway in some cases, as described below. The VRC may additionally or alternatively resolve conflicts at the CSW (e.g., false positives due to matching table keys and / or hash conflicts, where two key / value pairs are actually unique but generate the same profile).
[0027] The CSW may receive the rules from the VRC (e.g., in the form of a portion and / or a hashed portion of a table stored at the VRC), and may store the received rules in a connection table in a cache of the CSW. In some examples, the connection table may include a hashed ingress key-value table and / or an egress key-value table. In some examples, the CSW may include and / or replace an underlying switch, and may assist in bypassing a gateway based at least in part on being programmed by the OC.
[0028] To bypass the gateway, the techniques discussed herein may include offloading at least some packet processing from the gateway to the CSW and / or OC. For example, an ASIC of the CSW may receive an incoming packet and may route the incoming packet via a slow path or a fast path based at least in part on the programming of the ASIC, which may include a connection table. The fast path may bypass the gateway, while the slow path may forward the packet to the gateway as the next hop. In order to determine which path to use for the packet, upon receiving the packet, the CSW may look up in the connection table to determine whether the packet data associated with the packet generates a hit in at least one entry in the connection table. If the packet generates a hit, the CSW may route the packet via a fast path, which may include forwarding the packet directly to the VPC bypassing the gateway (e.g., by rewriting and / or encapsulating the packet). In some examples, the VM host and / or the VPC switch may be the next hop from the CSW in the fast path. In an example where the VPC switch receives a packet forwarded from the CSW, the VPC switch may decapsulate the packet and forward the decapsulated packet to the VM host and / or VM instance.
[0029] On the other hand, when a packet does not generate a hit with the connection table (i.e., a "miss," where a lookup in the connection table returns no results), the CSW may forward the packet via the slow path. For example, the packet that generates the miss when the CSW searches the connection table may be the first packet (e.g., a Transmission Control Protocol (TCP) synchronization (SYN) message) received in a cloud overlay network where a session has not yet been established. The CSW may direct the packet via slow path routing by forwarding the packet to a gateway. The gateway may then implement various session establishment functions, such as configuring routing (e.g., identifying the fastest path), MAC address lookup, etc., and upon completion of these functions, the gateway may forward the packet to the appropriate VPC.
[0030] In some examples, after processing a packet and / or performing a session establishment function, the gateway may report session information such as routing configuration, MAC address, etc. to the OC (e.g., to a VPC controller and / or VRC). The OC may use the session information to generate a key-value entry in an ingress table and / or an egress table, and may push instructions to the CSW to insert the entry in a connection table on the CSW. In some examples, the VRC may additionally or alternatively determine an entry to be deleted from the connection table (e.g., to make room in a cache, as the CSW memory allocation may be limited, e.g., 3MB or less). The inserted entry may cause the CSW to direct subsequent packets received for the new session (e.g., packets from the same source and / or for the same destination) via fast path routing.
[0031] In this way, ingress packets corresponding to the same session may no longer arrive at the gateway, and the CSW can be fully responsible for forwarding packets directly to the VPC. For example, for packets that can be forwarded based on existing paths (reflected by rules in the connection table stored at the CSW and / or negotiated by the OC and / or gateway), the CSW can forward the packets to the appropriate physical machine (e.g., using MAC addresses, VxLAN network identifiers (VNIs), VM host IP addresses). In this way, ingress packets may no longer arrive at the VPC gateway, and the switch ASIC can be fully responsible for forwarding packets directly to the VPC. This technology can reduce overall network latency while still supporting full bisection business flows and increasing the consistency of each connection. In addition, the technology can eliminate the need to deploy virtual routing guidance and forwarding (VRF), as discussed in more detail below. Since VRF is a "heavy" protocol, avoiding its use can reduce memory usage, computing time, and / or energy usage on the provider network.
[0032] In some examples, the CSW may generate a false positive hit. For example, if a TCP SYN packet generates a hit, this should not be the case because the TCP SYN packet should trigger the insertion of a new entry into the connection table. The CSW may forward the packet and / or disambiguation request to the OC. The OC may resolve the false positive, which may be generated by a hash collision in some cases, by looking up the packet information in the complete ingress table / egress table and routing the packet. In some examples, the OC may include multiple pipelines and / or stages for rule processing, which may include generating a key-value entry in the ingress table / egress table for a session and / or hashing the entry. In some examples, two different levels of the OC may use different hash functions and / or hash salts. Therefore, the OC may migrate the conflicting entries to different pipelines / stages, so that a new hash may be generated for the conflicting entries. The conflicting entries may be replaced with new hash entries (which are hashed using different salts and / or hash functions), and the VRC may push the new hash entries to the CSW.
[0033] In other technologies, provider networks can use VRF (e.g., via the connection table scheme discussed herein) to isolate network traffic flows. For example, a router configured on an x86 machine or on a component of a network function virtualization (NFV) architecture can use a VRF scheme to route traffic flows, and the VRF scheme uses different routing tables for different clients and / or VM hosts. According to this scheme, a router can use a routing table corresponding to a client or VM host to route packets received from the client. However, as the number of clients increases, provider resource allocation becomes less flexible, and as routing tables proliferate, statically allocated resources (e.g., storage space) become bottlenecks. In addition, with the proliferation of underlying connections, routers that can handle thousands or millions of routes are extremely expensive at this time.
[0034] However, according to the techniques discussed herein, the CSW may additionally or alternatively be configured to isolate client traffic flows without using VRFs. For example, the CSW may route packets directly to a VPC switch and / or VM host (isolating client traffic flows from other clients) based at least in part on data associated with the ingress packet, such as a virtual LAN (VLAN) tag, a destination Internet Protocol (IP) address, etc. In some examples, the CSW may accomplish this without using VRFs (and without configuring the router to transmit VRFs). For example, the CSW may use a switch interface that receives a packet, a VLAN tag of the packet, and / or a destination IP address (e.g., a VM IP address) to determine a VxLAN network identifier (VNI) corresponding to an appropriate VPC switch and / or VM host to route the ingress traffic flow via a fast path. In this example, the CSW may encapsulate the VM host IP (e.g., a virtual tunnel endpoint (VTEP) address, which may be a provider's address for the destination VM and / or may be referenced by the client's destination IP address in the packet) based on the VPC VNI and send it to the VPC switch. For ingress traffic flows directed via slow path routing, the CSW may use the switch interface that received the packet, the VLAN tag associated with the packet, and / or the Classless Inter-Domain Routing (CIDR) block (e.g., destination subnet) to which the packet is directed to determine the global VNI in which the packet is encapsulated and / or the gateway IP to which the encapsulated packet is to be forwarded. Directing ingress packets via slow or fast path routing may include decapsulating the packet from the VLAN and encapsulating the packet in a VxLAN.
[0035] For egress traffic flows, the CSW may use the VNI associated with the packet received at the CSW to determine the interface, VLAN tag, and / or next hop that should be associated with the egress packet. Routing the egress traffic flow may include decapsulating the egress packet from the VxLAN and encapsulating the egress packet in a VLAN. Thus, between the ingress and egress traffic flow processing described herein, a provider may choose not to deploy VRFs while still maintaining tenant isolation.
[0036] In an example where the CSW and / or router performs VRF, the VRC can advertise BGP routes and / or next hops into a VRF maintained by the CSW. This can allow the VRC to advertise BGP routes to the CPE. For example, according to the first technique, a gateway (e.g., a VPC gateway) can run a BGP session with a switch to advertise the VPC address prefix to the switch, and then the switch forwards the VPC address prefix to the user's network via the CPE, and the gateway can also receive the CPE prefix from the CPE via the switch. The gateway can then configure path rules for the CPE prefix and / or the VPC address prefix. The Level 3 business flow received by the switch from the host on the premises with a destination of VPC can be tunneled in a virtual extensible local area network (LAN) (VxLAN) tunnel. Since the tunnel is stateless, the business flow from the VPC VM to the on-premises device on the return path can follow the optimized path orchestrated by the virtual networking data plane, bypassing the VPC gateway and being forwarded directly to the CSW. However, this cannot provide BGP route guidance to meet the requirements of some users because in this first technique, both the control and data planes converge at the CSW.
[0037] However, according to at least one of the techniques discussed herein, the VRC can perform BGP route steering, thereby offloading BGP route steering from the CSW and / or gateway to the VRC. The VRC can also reduce the number of hops in the data plane and the latency of each remaining hop, eliminate the load balancer located in front of the VPC in some architectures, and improve the resilience of the architecture so that flows from the CSW can be quickly failed over between VPC gateways by controlling BGP peering. In some examples, the VRC can directly advertise the BGP routes to the CPE, or the VRC can advertise the BGP routes via the CSW.
[0038] Ingress packets may alternatively and equivalently be referred to as "upstream" packets, and the direction of ingress packets toward the core of the provider infrastructure (e.g., to a VM host) is referred to as "upstream," and egress packets may alternatively and equivalently be referred to as "downstream" packets, and the direction of egress packets toward the Internet, other areas, and / or CPE is referred to as "downstream."
[0039] Example Architecture
[0040] Figure 1 A block diagram of a first example network architecture 100 is illustrated according to a first technique for handling network traffic flows into and out of an overlay network, such as VPC 102(1), through a gateway 104. Figure 1 A first gateway 104(1) through an mth gateway 104(M) are shown. In some examples, there can be multiple gateways for each VPC and / or multiple VPCs for each gateway. According to a first technique, gateway 104 can provide targets in a VPC routing table for Internet routable traffic and can perform network address translation (NAT) for VM instances that have been assigned public IPv4 addresses. In some examples, gateway 104 can be a virtual private gateway (VGW) for dynamically routing virtual private network (VPN) connections directed to other gateways and / or VPCs (possibly in different availability zones and / or regions), and / or the VGW can relay traffic into and out of the VPC. Gateway 104 can also peer with other gateways (e.g., gateways in different regions such as region 106(0)) via a BGP session.
[0041] According to the first technique, a network traffic flow received from CPE 108 may be received at a PoD and forwarded to a router 110. The topology of the PoD is not shown in any of the figures herein because there are a variety of topologies (e.g., leaf-spine, core / aggregation / access), and each of these topologies may ultimately relay packets between the CPE and the router 108 (and / or the CSW shown in other figures). The router 110 (and / or the CSW shown in other figures) may itself be part of the PoD topology (e.g., it may be a border spine switch). However, in other examples, the router 110 is the next hop of the border spine switch. Regardless, due to potential variations in the PoD topology, the PoD topology is not depicted.
[0042] In some examples, a packet (112) received at a router 110 may be tunneled in a VPN (e.g., 802.1Q tunneling (Q-in-Q)) and may include one or more VLAN tags in the frame. The router 110 may receive the packet 112 and may decapsulate the Q-in-Q ingress packet 112 and encapsulate (114) the decapsulated packet as a VxLAN upstream packet 114. The router 108 may then forward the VxLAN upstream packet 114 to the appropriate gateway 104 (1) based on the VRF routing table. In some examples, in order to encapsulate and forward the VxLAN upstream packet 114 in a manner that implements routing isolation between tenants, according to the first technique, separate VNIs may be mapped to individual VRF instances, and each tenant may have its own VRF routing instance. Each VRF instance may be associated with a routing table, and the VRF may require a forwarding table that specifies the next hop for each data packet, a list of devices that may be invoked to forward the packet, and a set of rules and routing protocols that govern how the packet is forwarded. These tables prevent traffic from being forwarded outside a specific VRF path and also keep traffic that should remain outside of a VRF path outside. This can cause bottlenecks at memory-constrained devices when clients / connections proliferate and can incur high energy consumption and compute cycles.
[0043] According to the first technique, gateway 104(1) can be the next hop for a peer-to-peer service flow received by a customer switch from CPE 106 and destined for VPC 102(1) and / or VM host 118(1). Gateway 104 can receive VxLAN uplink packet 114, decapsulate it, and forward the decapsulated packet to the correct VM host 116 via data plane 118 after performing routing and / or MAC lookup. VM host 116 may include a physical machine running a hypervisor that can create, run and / or manage one or more VM instances. For example, a VM host may include one or more cores of a processor and / or associated memory, and a VM instance may run on one or more cores of the processor, depending on a service level agreement (SLA) between the tenant and the provider.
[0044] In some examples, gateway 104 may run a BGP session 120 with router 110 and advertise the VPC address prefix to router 110, which may then forward 122 the VPC address prefix to CPE 108. Gateway 104(1) may also receive CPE prefixes from the CPE via router 110.
[0045] Since the VxLAN tunnel is stateless, the traffic flow on the return path from the VPC VM to the CPE follows the optimized path orchestrated by the virtual networking data plane 118, which can bypass the gateway 104(1) and be forwarded directly to the customer switch. This cannot provide BGP routing guidance services to meet the requirements of some users because both the control and data planes converge at the customer switch.
[0046] However, processing all packets in and out of the overlay network at the gateway also causes various problems. For example, the network cannot meet strict performance guarantees unless it is over-provisioned, which leads to waste (e.g., increased energy use, increased heat, unused processing cycles, reduced hardware life); the operation and management mechanisms unique to the overlay system have no visibility into the underlying transport topology, which hinders troubleshooting through the necessary toolkits across the overlay network and the underlay network; and failures within the underlay that affect the bisection bandwidth of the entire structure (e.g., when a link in an Ethernet bundle fails) are transparent to the superimposed overlay network unless a feedback mechanism propagates the state to the edge device to perform head-end rerouting decisions, or in some way exposes certain knowledge of the overlay traffic flow to the underlay so that the underlay transport directs the critical flow away from the traffic congestion point caused by the failure. However, these are highly dangerous methods that may erode the isolation of tenants' traffic flows from other tenants. Furthermore, as the number of ports and connections required by individual tenants increases, routing all packets into and out of the overlay network via gateways may not provide the latency and PCC requirements specified in the SLA, and / or (stable, non-beta) hardware that can handle the number of connections required may not exist or may be cost prohibitive.
[0047] The figures and discussion that follow describe techniques that overcome these and other deficiencies and improve provider architecture and resource provisioning.
[0048] Example Architecture
[0049] Figure 2 A block diagram illustrating an overview of an example network architecture 200 according to the techniques discussed herein for processing network traffic flows to and from a provider core service such as a VPC 202(1). Operation of the components of the architecture is discussed in more detail in subsequent figures. The example network architecture 200 may include an OC 204 and / or a switch ASIC 206 ("CSW 206"). In some examples, the OC 204 may include a VPC controller 208 and / or a VRC 210. In some examples, the VRC 210 may remotely program and control the CSW 206. In some examples, the OC 204 and the CSW 206 may collaborate to bypass gateways when processing tenant traffic flows and / or tenant network configuration (e.g., establishing a subnet, connecting a subnet to the Internet, instantiating a VM instance).
[0050] In additional or alternative examples, the example network architecture 200 can isolate tenant traffic flows without using VRFs. For example, (1) the CSW 206 can find the destination VPC (e.g., a VxLAN network identifier (VNI) corresponding to the VPC) based on the VLAN tag and / or the destination IP (e.g., the VM IP address) of the ingress packet, and / or (2) the CSW 206 can find the IP address of the VM host (e.g., a VxLAN virtual tunnel endpoint (VTEP) address) based at least in part on the destination IP (e.g., the VM IP address) of the ingress packet. In some examples, the CSW 206 can encapsulate the CSW 206 using the VPC VNI and / or the VM host address.
[0051] VRC 210 may additionally or alternatively be configured to peer with CPE 212 and advertise external gateway protocol (e.g., external gateway protocol (EGP), BGP, multi-protocol BGP (MP-BGP)) routes 214 directly to CPE 212. In other examples, CSW 206 may advertise BGP routes 214 to CPE 212, route-steal BGP route advertisements from VRC 210 to CPE 212, and / or VRC 210 may advertise BGP routes to CPE 212 itself. In at least one example, and without limitation, VRC 210 may advertise MP-BGP routes to VPC controller 208 and / or CPE 212, and CSW 206 may forward the advertisements to CPE 212. In some examples, VRC 210 can establish and / or maintain BGP protocol session 214 and can learn appropriate routes by coordinating with VPC controller 208, as VPC controller 208 can include provider VPC information (e.g., network data associated with a physical machine on which a particular VM instance is running, such as a MAC address and / or a VxLAN address) and / or customer-defined information (e.g., a subnet defined by a customer, a customer-defined IP address associated with a particular VM instance).
[0052] In some cases, VRC 210 may also receive a user routing configuration from CPE 212. For example, the user routing configuration may specify new virtual switching instructions, new subnets, and / or new user-defined IP addresses associated with the VM instance.
[0053] In some examples, CSW 206 can receive and decode upstream packets included in Internet Protocol (IP) (e.g., Q-in-Q, IPv4, IPv6) traffic flows 216 destined for an overlay network, and / or can encode downstream packets from the overlay network to CPE 212 into downstream IP traffic flows 216. For example, IP traffic flows 216 can include a 5-tuple that can include a source address, a destination address (e.g., a VLAN address), a source port, a destination port, and / or a protocol number. Upon receiving upstream packets constrained for an overlay network (e.g., at least some of IP traffic flows 216), CSW 206 can forward the packets directly to VPC 202(1) via fast path 218, or forward the packets to gateway 222(1) via slow path 220 (or, in some cases, the slow path can be directed to OC 204).
[0054] For example, forwarding upstream packets via fast path 218 may include decapsulating packets (e.g., decapsulating packets from a VLAN) and / or encapsulating packets destined for VPC 202(1). Encapsulation frame formats may include Virtual Extensible LAN (VxLAN), Network Virtualization using Generic Routing Encapsulation (NVGRE), Transparent Interconnection of a Large Number of Links (TRILL), Location / Identity Separation Protocol (LISP), etc. As discussed in more detail below, CSW 206 may use a connection table (e.g., pushed from VRC 210 to CSW 206) to maintain the state of each connection, and thus may forward / encapsulate packets based at least in part on the connection table stored at CSW 206. Thus, fast path 218 may be a VxLAN (and / or other encapsulation frame format) tunnel between CSW 206 and VPC 202(1).
[0055] In some examples, packets routed to VPC 202(1) (e.g., by encapsulating the packets and forwarding the packets) may be received by VPC router 224(1). In some examples, VPC router 224(1) may be a logical router that decapsulates packets received via a fast path and routes the packets to an appropriate VM host (e.g., one of 224(1)-(P)). In some cases, VPC router 224(1) may include a virtual switch, such as an application virtual switch (AVS), which may be part of a hypervisor. In additional or alternative examples, the packets may be delivered directly to VM host 226. Regardless, as used herein, "forwarding the packet to VPC 202(1)" ultimately results in the packet being delivered to a destination VM host and / or VM instance. In some examples, VPC 202 may include one or more VM hosts 226. VM host 226(P) may include one or more kernels and / or memory and / or hypervisors that may create, run, and / or manage (host) one or more VM instances. In some examples, there may be multiple VPCs in an availability zone and / or region 228. For example, the mth region 228(M) is depicted as including up to N VPCs 202(N). In some examples, a region 228 may include one or more gateways 222, and gateways in different regions may peer with each other via an external border protocol session. In some examples, a gateway 224(1) associated with a region 228(1) may be a peer of a gateway 222(M) associated with a region 228(M). In some examples, a data plane may be established between gateways in different regions. Additionally or alternatively, a separate VRC 210 may be assigned to a subset of CPEs connected to a VPC within a region 228, and a region 228 may be associated with multiple VRCs. A separate VRC 210 may peer with one or more VRCs in different regions. Furthermore, a hierarchy of VRCs may exist in a single region (e.g., front-end VRC, back-end VRC, front-end VRC, back-end VRC, central VRC).
[0056] In some examples, forwarding the packet via slow path 220 may include forwarding the packet to gateway 222(1) when there is no rule for the packet in a connection table at CSW 206 (e.g., the packet includes a TCP SYN message, the VRC has not yet pushed a new entry to CSW 206 for a connection associated with the packet, the packet creates a hash collision, as discussed in more detail below). In this case, gateway 222(1) may perform route steering (e.g., identifying the fastest route to VPC 202(1)), MAC address lookup, etc. to establish a connection between CPE 212 and VPC 202(1) and / or VM host 226 associated with VPC 202(1). In some cases, CSW 206 may maintain encapsulation of the packet in a VLAN when forwarding the packet via slow path 218, although other approaches are also contemplated.
[0057] In the example where packets are forwarded to gateway 222(1), gateway 222(1) may push connection state information to OC 204 and / or OC 204 may periodically pull new routing configurations from gateway 222(1) (230). For example, the routing configuration may specify MAC addresses, routes, etc. associated with a path between CPE 212 and VPC 202(1). In some examples, VPC controller 208 may receive this data and may send at least some of it to VRC 210 (230). VRC 210 may in turn generate a virtual routing steering object (VRO) based at least in part on the portion of the user routing configuration and may control (232) CSW 206 by pushing instructions (based on the VRO) to add and / or delete rules to the connection table at CSW 206 so that subsequent packets received from CSW 206 are forwarded via fast path 218. Thus, VRC 210 may control the operation of CSW 206.
[0058] Additionally or alternatively, VRC 210 may control entries in the connection table (e.g., by sending instructions to add or delete entries) based at least in part on a cache management policy at VRC 210. In some cases, the cache management policy may include: determining a least recently used (LRU) connection and sending instructions to delete an LRU entry corresponding to the LRU connection (and similar techniques); determining a most recently used (MRU) connection and sending instructions to add an MRU entry corresponding to the MRU connection (and similar techniques); and / or a machine learning model that takes as input the MRU connection (e.g., information about CPE 212, VPC 202(1) and / or the routes therebetween) and outputs one or more other connections that are associated with a probability of being started that exceeds a threshold probability.
[0059] In other words, the machine learning model is configured to receive data about connections (e.g., notifications of new connections being opened or restarted and / or associated network information), and the machine learning model can determine a subset of connections that are likely to be initiated in the near future (e.g., in the next minute, in the next 5 minutes, in the next hour). For example, a certain user in a certain company's office may tend to be the first to access the VM instance, while other users may arrive at the office and log in later. The machine learning model does not need to know these details, but can learn other connections that are likely to be opened based on observing one or more connections that become active through unsupervised learning techniques.
[0060] In some instances, CSW 206 may include an edge switch, such as a switch at the user-facing edge of a provider network, although in other instances CSW 206 may be located elsewhere. In some examples, while routers will typically route boot data at the network layer (Layer 3) and bridges, and switches will route boot data at the data link layer (Layer 2), CSW 206 may be a switch configured to receive a Layer 3 traffic flow and route the traffic flow via a VxLAN tunnel by utilizing the routing details specified by a connection table stored at CSW 206.
[0061] Example Device
[0062] Figure 3 A block diagram of an example device 300 and a switch 302 for processing network traffic flows into and out of a virtual private cloud is illustrated. The example device 300 may be one or more devices that make up the OC 204. For example, the example device 300 may include a VPC controller 304 and / or a VRC 306, which may represent the VPC controller 208 and the VRC 210, respectively. In some cases, the VPC controller 304 and the VRC 306 may work on the same machine or on different machines. In some cases, the computing device 300 may include a server, such as a blade server. The computing device 300 may include an x86 or similar microprocessor configuration. For example, the example device 300 may include a processor 308, a memory 310, an input / output (I / O) device 312, and / or a network interface 314 for establishing communication with other devices via a network 316. The switch 302 may represent the CSW 206 and may include an ASIC 318, a port 320, and a memory 322.
[0063] Processor 308 can represent one or more processors, such as a single processor system including one processor, or a multiprocessor system including multiple processors (e.g., two, four, eight or other suitable numbers). Processor 308 can be any suitable processor capable of executing instructions. For example, in various implementations, processor 308 can be a general-purpose or embedded processor that implements any of various instruction set architectures (ISAs) such as x86, ARM, PowerPC, SPARC or MIPS ISA or any other suitable ISA. In a multiprocessor system, each processor 308 can implement the same ISA in common but not necessarily. Processor 308 can include one or more central processing units (CPUs) and / or one or more graphics processing units (GPUs). In at least one example, processor 308 includes an x86 system.
[0064] Memory 310 and memory 322 may include non-transitory computer-readable media configured to store executable instructions / modules\data and / or data items that can be accessed by processor 308. In various implementations, non-transitory computer-readable media can be implemented using any suitable memory technology, such as static random access memory (SRAM), synchronous dynamic RAM (SDRAM), non-volatile / flash memory, or any other type of memory. In the illustrated example, program instructions and data that implement desired operations such as the above operations are shown as being stored in non-transitory computer-readable memory. In other implementations, program instructions and / or data may be received, sent, or stored on different types of computer-accessible media, such as non-transitory computer-readable media, or on similar media separated from the non-transitory computer-readable media. In general, non-transitory computer-readable memory may include storage media or memory media that are coupled to computing device 300 and / or switch 302 and / or available via I / O device 312 and / or network interface 314 and / or port 320, such as flash memory (e.g., solid-state memory), magnetic or optical media (e.g., disk). Program instructions and data stored via non-transitory computer-readable media may be transmitted via transmission media or signals (e.g., electrical, electromagnetic, or digital signals), which may be transmitted via communication media (e.g., a network and / or wireless link), such as may be implemented via network interface 314 and / or port 320.
[0065] The I / O device 312 may include an I / O interface configured to coordinate the I / O traffic flow between the processor 308, the memory 310, the network interface 314, and / or any other hardware and / or provider network infrastructure of the example computing device 300. The I / O interface may perform protocol, timing, or other data conversion to convert a data signal from one component (e.g., a non-transitory computer-readable medium) into a format suitable for use by another component (e.g., a processor). The I / O interface may include support for devices attached through various types of peripheral buses (e.g., the peripheral component interconnect (PCI) bus standard, the universal serial bus (USB) standard, or a variant thereof). The functions of the I / O interface may be divided into two or more separate components, such as a north bridge and a south bridge. In addition, some or all of the functions of the I / O interface (e.g., an interface to the memory 310) may be directly incorporated into the processor 308 and / or one or more other components and / or provider network infrastructure of the example computing device 300. The I / O device 312 may include external and / or internal speakers, displays, input devices, etc.
[0066] The network interface 314 may be configured to establish a communication link (e.g., network 316) between the example computing device 300 and the provider's network infrastructure and / or other devices of the CPE. For example, the network interface 314 may be configured to allow data to be exchanged, for example, with the switch 302. The network interface 314 may enable wireless communication via a wireless general data network such as a Wi-Fi network and / or a communication network such as a cellular communication network, a satellite network, etc. In additional or alternative examples, the network interface 314 may include hardwired connections between nodes of the provider's network infrastructure.
[0067] Memory 310 may store VPC controller 304 and / or VRC 306, each of which may be executed by processor 308 to enable processor 308 to perform the functions discussed herein. In some cases, VPC controller 304 and / or VRC 306 may execute on the same server as gateway 222.
[0068] In some examples, the VPC controller 304 can allocate and / or track physical machines (e.g., cores, blades, racks) to which VPCs and / or VM instances are allocated within the provider's network infrastructure. Tracking the VPCs can include associating physical machine data with user data (e.g., IP addresses associated with the user) and / or data defined by the user (e.g., subnets, user-specified addresses). In some cases, the VPC controller 304 can track all connections within a region and can peer with VPC controllers in other regions. The VPC controller 304 can include a routing configuration component 324 that tracks VPCs in a region and / or can configure routing to the VPCs through the provider infrastructure. The VPC controller 304 may configure routes to the VPC based at least in part on: MAC addresses and / or other identifiers associated with VM instances / VPCs received from gateways; cross-region routes received from VPC controllers in other regions; network configuration instructions defined by a user, such as definitions of virtual switches, subnets, and / or routes received from a VPC console (e.g., the CPE may provide this information via an application programming interface (API) available to the CPE), and / or BGP routes advertised by VRC 306. In some cases, the VPC controller 304 may track any of the above information as connection state data.
[0069] In some cases, the VPC controller 304 may push at least a subset of the routing data 326 to the VRC 306. For example, the routing data 326 may be a routing configuration including connection details, including appropriate details to route packets from the CPE to the VPC and vice versa. In some examples, there may be a hierarchy of VRCs within the provider's network infrastructure (e.g., the front end of the network, the back end of the network, or the central portion of the network). The VPC controller 304 may determine a subset of the routes 326 (from all routes associated with all active connections in the region) based at least in part on the VPCs and / or CPEs associated with the VRC 306 (e.g., the VRC 306 may control switches and / or routes associated with those CPEs and / or VPCs). The VPC controller 304 may also determine to associate the VRC 306 with a particular subset of the VPCs and / or CPEs.
[0070] VRC 306 may include a virtual routing steering object (VRO) generator 328 , a cache management component 330 , and / or a BGP interface 332 . In some cases, upon receiving route 326 from VPC controller 304, VRO generator 328 may generate a VRO that includes at least one of the following: an identification of a virtual network segment associated with the CPE (e.g., a three-dimensional address space, including VPCs and subnets); an identification of a virtual route guidance type (e.g., a virtual switch and / or subnet, a dedicated endpoint for a BGP session); attributes of the virtual network segment (e.g., region, VPC, virtual switch); virtual route data channel forwarding information (e.g., tunnel ID, gateway virtual IP address); network connectivity policy information (e.g., virtual network segment range); release range (e.g., virtual router (VR), border router (BR), control cross point (CxP), which may be bidirectional, outbound can be reached and inbound direction is reach); status of the network node's route guidance for the network traffic flow (e.g., indication of connectivity, routing, etc., which may include packet counts, successful delivery, failure, interruption, etc.); an indication of a conflict or the absence of a conflict (e.g., information about the VRC 306 in communicating with the VRC 306); an indication that one or more VRCs have accepted the VRO; an indication that the VRO has been deployed at switch 302; and / or an indication that network traffic has been successfully routed between the CPE and the VPC.
[0071] The VRO may be executed by the processor 308 and / or may include logic data. For example, the VRO may cause the VRC 306 to send rules to the switch 302 when a connection is active, when the route for the connection has been configured to not conflict with other routes (thereby isolating tenants), etc. The VRO may also determine when to cause the switch 304 to delete a rule from the connection table 334, thereby stopping packets from being passed along the fast path and / or the slow path (or not at all). For example, while the VRO is executing, it may be determined based on data stored in the VRO that a connection should be released, and the VRO may cause an instruction to be sent to the switch 302 that causes the switch 302 to delete the entry in the connection table 334 corresponding to the connection.
[0072] In other words, the VRC can configure packet forwarding policies for underlying data plane nodes such as switch 302 through VROs associated with connections managed by the VRC. Additionally or alternatively, VRC 306 can control VPC routing by calculating relevant BGP and / or MP-BGP routes (e.g., via BGP interface 332) based at least in part on network connectivity policies. These can also be included in the VROs because, in some examples, switch 302 can forward BGP and / or MP-BGP advertisements to the CPE.
[0073] In some cases, VRC 306 may include a cache management component 330. Cache management component 330 may determine rules to send to switch 304. In some cases, sending the rules to switch 304 may include sending instructions to add entries in connection table 334 and / or delete entries from connection table 334. In some examples, sending the subset may be based at least in part on receiving at VRC 306 and from switch 304 an indication that no matching entry was found in connection table 334 for a packet received at switch 304, and / or an indication that the packet matched an entry in connection table 334 when the packet included a synchronization message (and / or other session establishment message), such as a Transmission Control Protocol (TCP) synchronization (SYN) message.
[0074] In some examples, the cache management component 330 may include a cache management policy 336, a model 338, and / or a hash level 340. The cache management component 330 may determine a set of rules to push to the switch 302 based at least in part on the output of the cache management policy 336 and / or the model 338. For example, the cache management policy 336 may include one or more cache replacement strategies, such as, for example, determining LRU connections, MRU connections, time-aware least recently used (TLRU) connections, segmented LRU connections, low inter-referenced recency sets (LIRS) of connections, etc. The model 338 may include a machine learning model generated using unsupervised learning techniques (although supervised techniques may be used in other examples). Thus, model 338 may include a neural network, such as a boosted collection of random forests and / or decision trees; a directed acyclic graph (DAG) (e.g., where nodes are organized as a Bayesian network); a deep learning algorithm, such as an artificial neural network (ANN) (e.g., a recurrent neural network (RNN), a residual neural network (ResNet)), a deep belief network (DBN), a deep stacked network (DSN); in some cases, model 338 may receive as input one or more connections that become active, and based on these inputs, model 338 may output identification of one or more other connections.
[0075] When cache management component 330 identifies the subset of connections, cache management component 330 may send rules and instructions associated with the subset of connections to switch 302 via network 316 to insert and / or delete entries in connection table 334. Note that the subset of rules sent from VRC 306 to switch 302 corresponds to the subset of connections that VRC 306 determines are active or may become active among the connections associated with routes 326 in the tier / region associated with VRC 306, which is a further subset of all active connections maintained by VPC controller 304.
[0076] In some examples, cache management component 330 can maintain routing 326 as a fast table associated with a fast path and / or a slow table associated with a slow path. In some examples, for each connection managed by VRC 306, cache management component can store the following data in the fast path table and / or the slow path table, respectively:
[0077]
[0078] Table 1 Fast path table
[0079]
[0080]
[0081] Table 2 Slow path table
[0082] In some examples, the cache management component 330 can hash the table to save memory and / or because the memory 322 at the switch 304 may be limited. In some examples, the cache management component 330 can generate multiple summaries using more than one hash level 340. The VRC 306 can migrate an entry that conflicts with another entry in a single summary to a different hash level, thereby changing the first summary (but not the underlying information) associated with the first entry. Such migration of the entry can include generating a new summary including the entry using a different salt (e.g., a cryptographic nonce on which a hash function can be based) than the salt originally used to generate the first summary.
[0083] In some examples, the switch 302 may include an ASIC 318 dedicated to forwarding packets received at the port 320. To decide where to forward a packet received at the port 320 (whether the packet is an ingress packet and / or an egress packet), the memory 322 may store a connection table 334 and may determine whether the received packet matches an entry in the connection table. In some cases, the memory 322 may include a cache associated with the ASIC 318. The connection table 334 may include a summary generated by hashing entries of the fast table and / or the slow table. In some examples, instructions received from the VRC 306 to add and / or delete entries of the connection table 334 may cause the switch 302 to re-hash one or more entries of the connection table 334 to generate a new summary, although in some examples the VRC 306 may perform the hashing and may push the resulting summary to the connection table 334 for the entry. In some cases, the connection table 334 may include a 5-tuple associated with the VPC VNI and / or the destination IP address. The 5-tuple may be the hash key, and the VPC VNI and / or the destination IP address may be the hash value.In some examples, the switch 302 may be an edge switch located at the user-facing edge of the provider network, although the switch 302 may also be located elsewhere.
[0084] Example Operation
[0085] Figure 4A and Figure 4B The operation diagram of CSW 400 and OC 402 is illustrated, and in some cases, CSW 400 and OC 402 work together to route network traffic between CPE 404 and VM instance 406 to bypass gateway 408. In some cases, gateway 408 can be part of a hypervisor. As described above, OC 402 can include VPC controller 410 and / or VRC 412, and these components can be executed on the same machine or different machines. Note that although the following discussion specifically refers to VM instance 406, it should be understood that the packet can be delivered to a VM host associated with a user-defined subnet or another component of the VPC.
[0086] Figure 4AThe upstream operation of the components discussed herein when an ingress packet destined for VPC 406 is received from CPE 404 is illustrated. In some cases, CSW 400 may receive an ingress packet from CPE 404 at a port of CSW 400, and at operation 414, CSW 400 may perform a lookup in a connection table to determine whether the ingress packet generates a hit with at least one entry in the connection table. In some examples, CSW 400 may decapsulate the ingress packet (e.g., decapsulate from the VLAN) before performing the lookup, but in other examples, the ingress packet may remain encapsulated. CSW 400 may use at least a portion of the data contained within the packet (e.g., at least a portion of the routing data in the packet header / footer) to determine whether the ingress packet generates a hit. For example, CSW 400 may determine whether the plaintext data matches an entry in the connection table, and / or CSW 400 may hash the data contained in the packet to see whether the hashed data matches a hash key in the connection table. In some examples, CSW 400 can determine whether the ingress packet matches a switch interface identifier, VLAN tag, and / or destination IP address (e.g., VMIP) in the fast path table and / or a switch interface identifier, LAN tag, destination subnet (e.g., CIDR block) in the slow path table.
[0087] If CSW 400 determines that the ingress packet generates a hit (416), CSW 400 may forward the ingress packet to VPC router 418, which may include encapsulating the ingress packet, and VPC router 418 may decapsulate the packet and forward the packet to the appropriate VM host running VM instance 406. This is the fast path. In some examples, VPC router 418 may be a virtual switch. In some examples, CSW 400 may encapsulate the ingress packet using a VxLAN protocol (or any other Layer 3 protocol) that specifies a VPC VNI and / or VTEP address for the VM host. For example, CSW 400 may use a VLAN tag and a destination IP address (e.g., a VM IP address) to find a destination VPC that may be mapped to a VNI, and after identifying the destination VPC, CSW 400 may use the destination IP to find the IP address of the VM host (e.g., a VxLAN VTEP address). In some examples, each VNI / VPC may be mapped to a different destination VTEP for different VM hosts in the same VPC. In some instances, each VLAN tag may be mapped to a different VNI for different VPCs. Mapping individual VNIs / VPCs to different destination VTEPs for different VM hosts in the same VPC may increase network and server resource utilization, reduce power consumption, and / or free up CPU and memory, thereby increasing available computing bandwidth that can be consumed by tenants.
[0088] In some cases, after determining that the ingress packet generates a hit, CSW 400 may also determine whether the ingress packet includes a synchronization message, such as a TCP SYN message, attempting to establish a connection. If not, CSW 400 may forward (416) the ingress packet to VPC router 418. However, if the ingress packet includes a TCP SYN message and matches an entry in the connection table, CSW 400 may send a notification and / or the ingress packet to VRC 412 (operation 420) instead of forwarding the ingress packet to the appropriate VPC router 418.
[0089] In the event that the ingress packet includes a sync message and matches an entry in the connection table, CSW 400 may send a notification and / or ingress packet to VRC 412 because there is likely a hash collision (e.g., where hashing two different sets of data results in the same digest). When CPE 404 initializes a connection, CPE 404 may send a sync message, so there should be no entry in the connection table because the connection has not yet been configured, and therefore VRC 412 must also push the rules to CSW 400.
[0090] After receiving the notification and / or the ingress packet, VRC 412 may configure a route for the ingress packet (e.g., by communicating with VPC controller 410 and / or gateway 408), forward the ingress packet via the route, generate a new rule for the ingress packet, and / or push the new rule to CSW 400. To avoid hash collision issues, VRC 412 may generate rules by hashing entries in the fast table and / or slow table using a different level and / or salt than the level and / or salt used by the entry that caused the hash collision. Information identifying the entry that caused the collision may be included in the notification sent from CSW 400 to VRC 412.
[0091] If CSW 400 determines that the ingress packet does not match any entry in the connection table (operation 422, "miss"), CSW 400 can forward the ingress packet to gateway 408 so that gateway 408 can perform routing guidance and / or MAC address lookup to correctly route the ingress packet. Gateway 408 can then forward the ingress packet to VM instance 406. This is the slow path.
[0092] In some examples, gateway 408 and VPC controller 410 can collaborate to perform routing configuration (424) (e.g., when packets are forwarded to gateway 408 via a slow path and when routing conflicts occur, no routing / connection is configured). For example, VPC controller 410 can receive cross-region routes, BGP advertisements (from VRC 412), user-defined network configurations (e.g., subnet definitions, IP addresses defined by the user), etc., and can receive MAC addresses associated with VM instances, and can configure routing from the CPE to the VM instances.
[0093] Upon completing the routing configuration, the VPC controller 410 may store the routing configuration in association with the CPE 404 and the new connection. The VPC controller 410 may push (426) at least some of the routing configuration data to the VRC 412, and the VRC in turn may program (428) the CSW 400 to add an entry to a connection table associated with the new connection so that subsequent packets received from the CPE 404 may be routed via the fast path. As described above, the VRC 412 may be one of a plurality of VRCs organized hierarchically, and thus the VRC 412 may be responsible for handling a subset of all connections in a region, and thus may control one or more switches. Thus, in some examples, the VPC controller 410 may determine that the VRC 412 is the appropriate VRC 412 for handling the connection (e.g., using load balancing techniques and / or because the VRC 412 is associated with provider resources that have been allocated to the CPE 404) before sending the routing configuration information to the VRC 412.
[0094] Figure 4B 404. The downstream operation of the components discussed herein is illustrated when an egress packet destined for CPE 404 is received from VM instance 406. In some examples, an egress packet received at CSW 400 from VPC 406 (e.g., via a fast path via VPC router 418, via a slow path via gateway 408) can be encapsulated in a VxLAN header. Upon receiving the egress packet, CSW 400 can perform a cache lookup 430 to determine whether the VNI associated with the egress generates a hit in the egress table. Additionally or alternatively, upon receiving the egress packet and / or generating a hit in the egress table, CSW 400 can decapsulate the egress packet.
[0095] If cache lookup 430 does not generate a hit (miss 432 ), CSW 400 may drop the packet and / or CSW 400 may forward the packet and / or notification to a hypervisor and / or OC 402 associated with VM instance 406 .
[0096] If the cache lookup 430 generates a hit (434), the CSW 400 can decapsulate the egress packet from the VxLAN header, and / or can encapsulate the egress packet using a VLAN or similar protocol if the VM instance 406 (or VPC router 418 or gateway 408) does not encapsulate the egress packet using a VLAN protocol. For example, the VLAN header / tag can specify the switch interface, VLAN tag, and next hop ID so that the CSW 400 can appropriately forward the egress packet so that it reaches the CPE 404.
[0097] Example VRC and CSW Operations
[0098] Figure 5 A block diagram of VRC 412 is illustrated, which stores an exemplary fast path table 500 and / or slow path table 502 and pushes rules related thereto to CSW 400. In some cases, VPC controller 410 can push a set of routing configurations (504) to VRC 412. In some cases, the set of routing configurations can be associated with a subset of connections in a region associated with VPC controller 410, and VRC 412 can be responsible for managing the subset of connections. In some cases, VRC 412 can store routing configurations 504 as key-value pairs in a hash table. Table 500 and / or table 502 can include a hash table.
[0099] For example, key 506 of fast path table 500 may map a VLAN tag and / or a destination address (e.g., a VMIP) to a value 508, which may be a VNI associated with the VPC. Additionally or alternatively, the destination address (e.g., a VMIP) and / or the VNI may be mapped to a VM host address, which may include a VTEP address such as a VxLAN tunnel endpoint address. In other words, a VPC may be mapped to different destination VTEPs for different VM hosts in the same VPC. In some cases, the VTEP may be located within the hypervisor containing the VM instance to which the packet is addressed (and when the hypervisor runs multiple VMs, the hypervisor may perform routing guidance functions between VMs).
[0100] In some examples, key 510 of slow path table 502 may map a VLAN tag and / or a CIDR block identifier (e.g., a subnet identifier) to a value 512, which may include a global VNI (e.g., a range and / or a group of VNIs) and / or a gateway IP address (e.g., a VTEP address terminating at gateway 408).
[0101] Additionally or alternatively, keys 506 and / or 510 may include switch interface identifications that may identify entry and exit points into the provider network (e.g., trunk ports, IP interfaces to IP networks, racks, network controllers, leafs / spines).
[0102] VRC 412 may push instructions to insert at least one of the entries from fast path table 500 and / or slow path table 502 into connection table 334 at CSW 400, thereby programming CSW 400 (514) to forward the packet via the route associated with the at least one entry. In some cases, VRC 412 may push the entry as a "rule," which may include any portion of a 5-tuple of fast path table 500 and / or slow path table 502. In some cases, the rule pushed to CSW 400 may be a digest generated by hashing the entries of fast path table 500 and / or slow path table 502.
[0103] As described above, the VRC 412 may determine a subset of the fast path table 500 and / or the slow path table 502 to send to the CSW 400 based at least in part on the model 338 and / or the cache management policy 336 stored at the VRC 412 .
[0104] Figure 6 A block diagram of an example cache lookup 414 and packet forwarding at CSW 400 is illustrated. In some examples, when CSW 400 receives a user IP (upstream / ingress) traffic flow (which may include an interface identifier, a VLAN tag, and / or a VM IP address), CSW 400 may decapsulate (602) the traffic flow (e.g., from a VLAN) and / or use a fast path table (if available, such as when a connection has been established for a CPE associated with the traffic flow) to identify the VNI and / or VM host IP address, and encapsulate (604) the traffic flow using the VNI and / or VM host IP address (e.g., in a VxLAN tunnel that terminates at a hypervisor running on a VM host). CSW 400 may then forward the traffic flow to a subsequent node in the network according to any technique, such as by identifying a next hop identifier 608 based at least in part on an IP address 610, which may include performing IP routing guidance 606. In some examples, the key 610 / value 608 pair may be part of the connection table 334. At this point, CSW 400 may forward the traffic flow to the next node associated with the next hop ID, and / or CSW 400 may additionally or alternatively identify a set of MAC addresses 610 associated with the next hop ID 608 / 612. CSW 400 and / or the upstream node may update the MAC addresses 614 associated with the set of MAC addresses 608. These MAC addresses may be used by the node to forward traffic to the VM host.
[0105] Figure 7 A block diagram of an example cache lookup 430 and packet forwarding at CSW 400 is illustrated. In some examples, when CSW 400 receives a downstream service flow 700 destined for a CPE (e.g., from a VPC / VM host, encapsulated in a VxLAN), CSW 400 can determine a VNI associated with the downstream service flow. Based at least in part on the VNI, CSW 400 can determine a switch interface identifier, VLAN tag, and / or next hop ID associated with the VNI. In some examples, the VNI can be mapped to a switch interface identifier, VLAN tag, and / or next hop ID in an egress table stored in a connection table at CSW 400.
[0106] If the CSW 400 determines that the VNI is not associated with the data in the egress table, the CSW 400 may drop the traffic flow and / or may notify the VRC, VPC, and / or VPC controller. If the CSW 400 determines that the VNI is associated with the data in the egress table, the CSW 400 may decapsulate (702) the downstream traffic flow (e.g., by decapsulating the traffic flow from the VxLAN header) and / or encapsulate (704) the downstream traffic flow (e.g., using a VLAN protocol, a switch interface identifier, a VLAN tag, and / or a next hop ID). The CSW 400 and / or the upstream node may additionally or alternatively perform IP routing guidance 706, which may include identifying a set of MAC addresses 708 associated with the next hop ID 710 and updating a MAC address 712 for forwarding the traffic flow.
[0107] Example VPC Controller and VRC
[0108] Figure 8 A block diagram of an example traffic offload controller architecture 800 is shown that includes a VPC controller 410 and / or a VRC 412 for determining routes for connections, maintaining connection state, advertising routes to CPEs 802(1)-(R), and / or controlling CSWs. In some examples, there may be multiple VRCs 412(1)-(S). VRCs 412(1)-(S) may be organized hierarchically such that each VRC is associated with a different portion of a provider network. For example, a corresponding VRC may be assigned a subset of all active connections in the network, and / or the VRCs may operate at different depths in the network (e.g., front-end, back-end, hub, layer 2, layer 3). Note that from this point forward, VRCs are discussed collectively and / or individually as VRCs 412. In other words, any one or more of VRCs 412(1)-(S) may perform the actions discussed herein.
[0109] In some examples, by using VRC, the CSW does not need to use VRF for segmentation, and the CPE 800(R) can communicate (send commands, instructions, packets, user-defined routes, etc.) directly to the VRC 412 via BGP and / or MP-BGP (e.g., BGP sessions 804(T) and 806(U) run by the VRC agent 808(S)). In some examples, the user can communicate with the VRC 412 via an API such as OpenAPI, Swift, etc.
[0110] In some cases, traffic between CPE 802(R) and VRC 412 may be passed through CSW 400, but CSW 400 may pass traffic from CPE 802(R) to VRC 412 (or vice versa), allowing the user to talk directly to VRC 412. Therefore, CSW 400 is not illustrated in this figure. Deploying VRCs for a subset of active connections in a region may also replace and / or supplement load balancers located in front of the VPC. In other examples that may not be advantageous, gateway 408 may advertise BGP routes to CPE. In some examples, gateway 408 may be completely replaced by VPC controller 410, VRC 412, and / or CSW 400.
[0111] In some examples, a user may send a user-defined rule / routing configuration (e.g., a new subnet, a new virtual switch instruction, a user-defined IP address associated with a VM) to VRC 412, and VRC 412 may send at least a portion of the user-defined rule / routing configuration to VPC controller 410. In some examples, VPC controller 410 may be centrally located in the network topology of the provider network, although other techniques are also contemplated.
[0112] VRC 412 may publish (808) BGP and / or MP-BGP routes to CPEs 802 (1)-(R) and VPC controller 410 and / or any other nodes. VPC controller 410 may be ultimately responsible for managing VM hosts (e.g., physical machines and / or hypervisors) on which VM instances run, which may include migrating VM instances / hypervisors, instantiating VM instances, assigning resources (e.g., specific kernels / physical machines) to specific VPCs, tracking routing data (e.g., MAC addresses, IP addresses) associated with resources assigned to the VPC, etc.
[0113] For example, with respect to the nth VPC 810(N), the VPC controller 410 may allocate one or more physical machines (e.g., processor cores and / or memory) to the VPC 810(N), and the CPE 802(R) may request that a VM instance 812(P) be instantiated in association with a user-defined IP address and a private subnet (e.g., in response to instructions received from a user via the VPC console 814). The VPC controller 410 may receive user requirements and user routing configurations for VM instances to be instantiated from the VRC 412(S) and / or the VPC console 814, and may configure connection and routing details through the provider network such that traffic flows between the VM 812(P) and the CPE 802(R) are isolated from other tenants. To achieve isolation and successful packet routing, VPC controller 410 may receive user-defined routes (816) from a VPC console (e.g., an API interface) and / or from VRC 412, receive cross-region routes 818 from VPC controllers 820 associated with different regions that are peered with VPC controller 410 (e.g., this may include negotiating routes with VPC controller 816 so that VPC 808(N) can span multiple regions without creating routing conflicts), learn BGP routes (808) received from VRC 412, configure final fast path routes with VPC router 824 (822), and / or configure final slow path routes with gateway 408 (826).
[0114] In some cases, the VPC router 824 may include a virtual switch located within a hypervisor, and the VPC controller 410 may configure the final route (822) as a fast path connection by communicating with the VPC router 824 to set the VPC router 824 as an endpoint of the VxLAN tunnel from the CSW 400. Setting the VPC router 824 as an endpoint of the VxLAN tunnel may include mapping the VPC 810 (N) to a VNI and / or mapping the VPC VNI, switch interface, VLAN tag, and / or VM IP address (one or more of which may be user-defined rather than provider-defined) to the VPC router 824. The VPC controller 410 may then push routing data related to the fast path connection to the VRC 412 (S) responsible for the connection between the CPE 802 (R) and the VM 812 (P), such as for an entry in a fast table stored at the VRC 412 (S). In turn, VRC 412(S) may send instructions to CSW 400 to insert an entry in a connection table associated with the connection based at least in part on the cache management policy and / or model output, as discussed further above.
[0115] In some examples, the VPC controller 410 may configure the final route (824) to the gateway 408 as a slow path connection by communicating with the gateway 408 (which may be associated with the VM host on which the VM 812 (P) is running) to establish a connection between the CSW 400 and the gateway 408. The VPC controller 410 may then push routing data related to the slow path connection to the VRC 412 (S) responsible for the connection between the CPE 802 (R) and the VM 812 (P), such as for an entry in a slow table stored at the VRC 412 (S). In turn, the VRC 412 (S) may send an instruction to the CSW 400 to insert an entry in a connection table associated with the connection based at least in part on a cache management policy and / or an output model, as discussed further above.
[0116] In some examples, VRC 412 can automate user-specified network connectivity policies to automate multi-region, multi-VPC virtual networks, automatically detect address conflicts and control routing changes to ensure that network connectivity and user business flows are not affected and interrupted (even when the provider network topology changes frequently, such as when VM instances are migrated to new virtual switches or subnets), and / or can provide users with the ability to customize network connectivity policies.
[0117] For example, based at least in part on a user-specified network connectivity policy (e.g., a "routing configuration"), VRC 412 may calculate relevant BGP routes and may configure packet forwarding policies to underlying data plane nodes. In some cases, a single VRC 412 may operate in multiple network topology layers and / or different VRCs may be assigned to each different network topology layer. For example, these layers may include: a VR layer, where the VRC may manage and control current VR / VPC connectivity and routing (e.g., VPC peering); a BR layer, where the VRC may manage and control current BR connectivity and routing (e.g., cross-region VPC peering); and / or a CxP layer, where the VRC may manage and control current CxP connectivity and routing (e.g., cross-region multi-BR VPC peering).
[0118] In some cases, VRC 412 may include a VRO that includes executable and / or logical components for implementing such management and control. For example, the VRO may include: an identification of a virtual network segment associated with the CPE (e.g., a three-dimensional address space including VPCs and subnets); an identification of a virtual routing guidance type (e.g., a virtual switch and / or subnet, a dedicated endpoint for a BGP session); attributes of the virtual network segment (e.g., region, VPC, virtual switch); virtual routing data channel forwarding information (e.g., tunnel ID, gateway virtual IP address); network connectivity policy information (e.g., virtual network segment range); release range (e.g., virtual switch, VR, BR, CxP, which may be bidirectional, outbound can be reached, and the inbound direction is reach); the status of the routing guidance of the network traffic flow by the network node (e.g., indications of connectivity, routing, etc., which may include packet counts, successful delivery, failures, interruptions, etc.); an indication of a conflict or the absence of a conflict (e.g., an indication that the VRC 306 identifies a conflicting route in a layer associated with the VRC 306); an indication that one or more VRCs have accepted the VRO; an indication that the VRO has been deployed at the switch 302; and / or an indication that the network traffic flow has been successfully routed between the CPE and the VPC.
[0119] In some examples, an active VRC (e.g., a VRC currently configuring a connection / VRO associated therewith) may communicate with a VPC to establish management and control terms and / or routing configurations to generate a VRO, and after successfully generating the VRO, the active VRC may exchange VROs (including the newly generated VRO) with VRCs in layers above and / or below the active VRC. VRCs in other layers may choose to accept or reject the VRO based at least in part on whether the VRO creates a conflict in layers associated with other VRCs. Upon accepting the newly generated and exchanged VRO, the active VRC may implement network connectivity policies and routing controls by operating the VRO. In some cases, the VRC 412 may generate VROs for individual CPEs 802.
[0120] The generation and exchange of VROs to ensure at least upstream isolation is described below. In some examples, the VRO exchange may include a first VRC at the bottom layer (e.g., the virtual switching layer) generating an initial VRO and checking if there is a routing conflict and accepting or rejecting the current virtual routing decision (e.g., made by the VPC controller 410 and / or another VRC 412). If the VRC accepts the routing decision, the VRC may indicate that the VRO is accepted at the layer associated with the first VRC, and the first VRC may pass the VRO to VRCs associated with the upper and / or lower layers compared to the layer associated with the first VRC, and so on, until all relevant VRCs have accepted the VRO. For example, the relevant VRCs may be the VRC that controls network connectivity for the connection being routed, and / or the VRC associated with the highest layer associated with the new / modified connection and all VRCs of the layers below (e.g., if a change is made at the BR layer (e.g., a user defines a new subnet), the relevant VRCs may include the VRC associated with the BR layer and the VRC associated with the VR layer, but not the VRC associated with the CxP layer). In some cases, a user-specified range may determine the limits of the VRC that the VRO achieves.
[0121] In some cases, if a VRO accepted at the highest layer of the user-defined range is detected as being down / down between VRCs, the VRC associated with at least one of the highest layer or any layers below may check if there is a routing conflict. If a VRC detects a routing conflict, the VRC may stop downlink processing by sending an instruction to CSW 400, and / or the VRC may send an identity of the conflicting route to an underlying data forwarding node via a VPC controller.
[0122] Sample Clauses
[0123] A. A switch, comprising: a port, the port being configured to send and receive a network service flow including a packet; an application-specific integrated circuit ASIC; a memory, the memory storing an instruction set, the instruction set causing the ASIC, when executed, to: receive a packet via the port; determine to forward the packet via a first path instead of a second path, wherein the first path comprises forwarding the packet to at least one of a virtual private cloud (VPC) and a virtual machine (VM) host, and wherein the second path comprises forwarding the packet to a gateway; and forwarding the packet via the first path.
[0124] B. The switch of paragraph A, wherein forwarding the packet via the first path comprises bypassing the gateway.
[0125] C. A switch according to paragraph A or B, wherein the memory also stores a connection table, and wherein the processing of determining to forward the packet via the first path includes: determining that the packet includes a virtual local area network (VLAN) tag and a destination IP address that matches an entry in the connection table; identifying, from the connection table, a virtual extensible local area network (VxLAN) network identifier (VNI) associated with the VPC as the destination of the packet based at least in part on at least one of the VLAN tag and the destination IP address; and identifying, from the connection table, a VxLAN tunnel endpoint (VTEP) address associated with the VM host as the destination of the packet based at least in part on the destination IP address.
[0126] D. A switch according to any of paragraphs A to C, wherein the process of determining to forward the packet via the first path is based at least in part on a connection table, and wherein the memory also stores the connection table, the connection table comprising: a first entry, the first entry corresponding to a first active connection between a first customer device and a first VPC; and a second entry, the second entry corresponding to a second active connection between a second customer device and a second VPC.
[0127] E. A switch according to any of paragraphs A to D, wherein the processing of forwarding the packet via the first path includes encapsulating the packet in a VxLAN frame and forwarding it to at least one of a VPC router and the VM host.
[0128] F. A switch according to any of paragraphs A to E, wherein: the switch is deployed as part of an edge of a network architecture, and the upstream network traffic received at the port includes an Internet layer protocol.
[0129] G. A switch according to any one of paragraphs A to F, wherein the instructions further cause the ASIC to: receive an egress packet from the VPC at the port; identify at least one of a virtual local area network (VLAN) tag and a next hop identifier based at least in part on a virtual extensible local area network (VxLAN) network identifier (VNI) associated with the egress packet and a connection table stored in the memory; and forward the egress packet toward a customer device based at least in part on the VLAN tag.
[0130] H. A method for routing and isolating network business flows, the method comprising the following steps: receiving an ingress packet including first data at a switch application-specific integrated circuit ASIC; performing a lookup in a connection table to determine whether the first data generates a hit or a miss, wherein the connection table is stored on a memory accessible to the switch ASIC; and forwarding the ingress packet to at least one of a virtual private cloud (VPC) router and a virtual machine (VM) host based at least in part on generating a hit based on the lookup step; or forwarding the ingress packet to a network gateway based at least in part on determining that the first data generates a miss.
[0131] I. A method according to paragraph H, wherein: the entry of the connection table includes a key-value pair; and the step of generating the hit includes determining that the first data includes a layer 2 identifier and a destination address that matches the key of the entry.
[0132] J. A method according to paragraphs H or I, wherein the step of forwarding the ingress packet to at least one of the VPC router and the VM host includes: encapsulating the ingress packet into an encapsulated packet based at least in part on an overlay identifier associated with a VPC that is a destination of the ingress packet, the overlay identifier being at least a portion of a value associated with the key; and forwarding the encapsulated packet to the VPC router based at least in part on a VM host address associated with the entry, the VM host address being at least a portion of the value associated with the key.
[0133] K. A method according to any one of paragraphs H to J, wherein: the step of generating a miss includes: determining that the first data does not match an entry in the connection table; and the step of forwarding the ingress packet to the network gateway is at least partially based on at least one of an identifier of the destination subnet and a corresponding gateway address.
[0134] L. According to the method described in any one of paragraphs H to K, the method also includes: receiving the ingress packet at the network gateway; generating routing information associated with the ingress packet; forwarding the ingress packet to at least one of the VPC router and the VM instance based at least in part on the routing information; and pushing the routing information to the diversion controller.
[0135] M. According to the method described in paragraphs H to L, the method also includes: receiving the routing information at the diversion controller and from the network gateway; generating a key-value pair based at least in part on the routing information; and pushing the key-value pair to the switch ASIC to insert it into a connection table stored at the switch ASIC.
[0136] N. According to the method described in any one of paragraphs H to M, the method also includes: receiving an egress packet, the egress packet including a virtual extensible local area network (VxLAN) network identifier (VNI); determining whether the VNI exists in the connection table; and forwarding the egress packet to the customer device based at least in part on determining that the VNI corresponds to at least one of a VLAN tag and a next hop identifier in the customer device; or forwarding the egress packet to the gateway or discarding the egress packet based at least in part on determining that the VNI does not match an entry in the connection table.
[0137] O. A non-transitory computer-readable medium having a connection table and an instruction set, which, when executed, causes an application-specific circuit ASIC associated with a network switch to: determine that a first virtual local area network (VLAN) tag and a destination address match at least a portion of an entry of the connection table, wherein a first ingress packet includes the first VLAN tag, and wherein the first destination address is associated with a first virtual machine (VM) instance that is a destination of the ingress packet; identify at least one of a first virtual extensible local area network (VxLAN) network identifier (VNI) and a first VxLAN tunnel endpoint (VTEP) address based at least in part on the entry; encapsulate the first ingress packet into a first encapsulated packet based at least in part on at least one of the first VNI and the first VTEP address; and forward the first encapsulated packet to at least one of a first virtual private cloud (VPC) router and the first VM instance.
[0138] P. The non-transitory computer-readable medium of paragraph O, wherein the instructions further cause the ASIC to:
[0139] Determining that a second ingress packet with a second VLAN tag and a second destination does not match any entry in the connection table; identifying a subnet identifier from the second ingress packet; encapsulating the second ingress packet into a second encapsulated packet based at least in part on at least one of a global VNI and a gateway address associated with the subnet identifier; and forwarding the second encapsulated packet to a network gateway.
[0140] Q. A non-transitory computer-readable medium as described in paragraphs O or P, wherein the instructions further cause the ASIC to: determine that a VNI associated with a first egress packet matches a second entry in the connection table; and forward the egress packet to a customer device based at least in part on at least one of a third VLAN tag and a next hop identifier associated with the second entry.
[0141] R. A non-transitory computer-readable medium as described in any of paragraphs O to Q, wherein the instructions further cause the ASIC to: determine that the VNI associated with the second egress packet does not match any entry in the connection table; and at least one of forwarding the second egress packet to a network gateway and discarding the second egress packet.
[0142] S. A non-transitory computer-readable medium as described in any of paragraphs O to R, wherein the connection table includes: a first entry, the first entry corresponding to a first active connection between a first customer device and a first VPC; and a second entry, the second entry corresponding to a second active connection between a second customer device and a second VPC.
[0143] T. The non-transitory computer-readable medium of any of paragraphs O to S, wherein the non-transitory computer-readable medium comprises a cache associated with the switch.
[0144] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as example forms of implementing the claims.
[0145] The module described herein represents an instruction that can be stored in any type of computer-readable medium and can be implemented in software and / or hardware. All methods and processes described above can be implemented in software code modules and / or computer-executable instructions executed by one or more computers or processors, hardware or some combination thereof, and are fully automated via software code modules and / or computer-executable instructions executed by one or more computers or processors, hardware or some combination thereof. Alternatively, some or all of these methods can be implemented in dedicated computer hardware.
[0146] Unless expressly stated otherwise, conditional language, such as "may," "can," "could," or "might," should be understood in context to mean that some examples include certain features, elements, and / or steps, while other examples do not. Thus, such conditional language is generally not intended to imply that one or more examples in any way require certain features, elements, and / or steps, or that one or more examples must include logic for deciding whether to include or perform certain features, elements, and / or steps in any particular example, with or without user input or prompting.
[0147] Unless expressly stated otherwise, linking language such as the phrase "at least one of X, Y, or Z" should be understood to mean that the item, etc. can be X, Y, or Z, or any combination thereof, including a plurality of the corresponding elements. Unless expressly described as singular, "a" and "an" refer to both the singular and the plural.
[0148] Any routine description, element or block in the flowcharts described herein and / or depicted in the accompanying drawings should be understood to potentially represent a module, segment or portion of code including one or more computer executable instructions for implementing a specific logical function or element in the routine. Alternative implementations are included within the scope of the examples described herein, where elements or functions may be deleted or performed out of order from the order shown or discussed, including substantially synchronously, in reverse order, with additional operations, or omitting operations, depending on the functions involved as will be understood by those skilled in the art.
[0149] It should be emphasized that many changes and modifications may be made to the above examples, and the elements of these changes and modifications should be understood as other acceptable examples. All these modifications and changes are intended to be included within the scope of this disclosure and protected by the accompanying claims.
Claims
1. A switch, comprising: a port configured to send and receive network traffic including packets; Application-specific integrated circuit ASIC; a memory storing a set of instructions that, when executed, cause the ASIC to: receiving a packet via the port; Determine to forward the packet via a first path instead of a second path, wherein the first path includes forwarding the packet to at least one of a virtual private cloud (VPC) and a virtual machine (VM) host, and wherein the second path includes forwarding the packet to a gateway; and forwarding the packet via the first path; The memory further stores a connection table, and the process of determining to forward the packet via the first path comprises: determining that the packet includes a virtual local area network (VLAN) tag and a destination IP address that matches an entry in the connection table; Based at least in part on at least one of the VLAN tag and the destination IP address, identifying from the connection table a virtual extensible local area network (VxLAN) network identifier (VNI) associated with the VPC that is a destination of the packet; and Based at least in part on the destination IP address, identify from the connection table a VxLAN tunnel endpoint VTEP address associated with a VM host that is a destination for the packet.
2. The switch according to claim 1, wherein: Forwarding the packet via the first path includes bypassing the gateway.
3. The switch according to claim 1, wherein: The process of determining to forward the packet via the first path is based at least in part on a connection table, and wherein the memory also stores the connection table, the connection table comprising: a first entry corresponding to a first active connection between a first customer device and a first VPC; and A second entry corresponds to a second active connection between a second customer device and a second VPC.
4. The switch according to claim 1, wherein: The process of forwarding the packet via the first path includes encapsulating the packet in a VxLAN frame and forwarding it to at least one of a VPC router and the VM host.
5. The switch according to claim 1, wherein: The switch is deployed as part of the edge of the network architecture, and The upstream network traffic received at the port includes an Internet layer protocol.
6. The switch according to claim 1, wherein: The instructions further cause the ASIC to: receiving an egress packet from the VPC at the port; identifying at least one of a virtual local area network (VLAN) tag and a next hop identifier based at least in part on a virtual extensible local area network (VxLAN) network identifier (VNI) associated with the egress packet and a connection table stored in the memory; The egress packet is forwarded toward a customer device based at least in part on the VLAN tag.
7. A method for routing and isolating network traffic, the method comprising the following steps: receiving, at a switch application specific integrated circuit ASIC, an ingress packet including first data; performing a lookup in a connection table to determine whether the first data generates a hit or a miss, wherein the connection table is stored in a memory accessible to the switch ASIC; and Based at least in part on generating a hit in the step of searching, forwarding the ingress packet to at least one of a virtual private cloud (VPC) router and a virtual machine (VM) host; or forwarding the ingress packet to a network gateway based at least in part on determining that the first data generation was missed; The entries of the connection table include key-value pairs; and The step of determining that the first data generates the hit includes determining that the first data includes a layer 2 identification and a destination address that matches a key of the entry; The step of forwarding the ingress packet to at least one of the VPC router and the VM host comprises: encapsulating the ingress packet into an encapsulated packet based at least in part on an overlay identifier associated with a VPC that is a destination of the ingress packet, the overlay identifier being at least a portion of a value associated with the key; and The encapsulated packet is forwarded to the VPC router based at least in part on a VM host address associated with the entry, the VM host address being at least a portion of a value associated with the key.
8. The method according to claim 7, wherein: The step of determining that the first data generation is missed comprises: determining that the first data does not match an entry in the connection table; and The step of forwarding the ingress packet to the network gateway is based at least in part on at least one of an identifier of a destination subnet and a corresponding gateway address.
9. The method according to claim 7, further comprising: receiving the ingress packet at the network gateway; generating routing information associated with the ingress packet; forwarding the ingress packet to at least one of the VPC router and the VM host based at least in part on the routing information; as well as The routing information is pushed to the traffic distribution controller.
10. The method according to claim 9, further comprising: receiving, at the offload controller and from the network gateway, the routing information; generating key-value pairs based at least in part on the routing information; as well as An instruction is pushed to the switch ASIC to insert the key-value pair into a connection table stored at the switch ASIC.
11. The method according to claim 7, further comprising: Receive an egress packet, wherein the egress packet includes a virtual extensible local area network VxLAN network identifier VNI; Determining whether the VNI exists in the connection table; as well as forwarding the egress packet to the customer device based at least in part on determining that the VNI corresponds to at least one of a VLAN tag and a next hop identifier in the customer device; or Based at least in part on determining that the VNI does not match an entry in the connection table, the egress packet is forwarded to the network gateway or the egress packet is dropped.
12. A non-transitory computer readable medium having a connection table and an instruction set that, when executed, causes an application specific integrated circuit ASIC associated with a network switch to: determining that the first virtual local area network (VLAN) tag and the first destination address match at least a portion of an entry in the connection table, wherein: a first ingress packet including the first VLAN tag, and wherein the first destination address is associated with a first virtual machine VM instance that is a destination of the ingress packet; Identify at least one of a first virtual extensible local area network (VxLAN) network identifier (VNI) and a first VxLAN tunnel endpoint (VTEP) address based at least in part on the entry; encapsulating the first ingress packet into a first encapsulation packet based at least in part on at least one of the first VNI and the first VTEP address; and forwarding the first encapsulated packet to at least one of a first virtual private cloud (VPC) router and the first VM instance; Wherein, the instruction set further enables the ASIC to: determining that a second VLAN tag and a second destination address of a second ingress packet do not match any entry in the connection table; identifying a subnet identifier from a second ingress packet; encapsulating the second ingress packet into a second encapsulated packet based at least in part on at least one of a global VNI and a gateway address associated with the subnet identifier; and The second encapsulated packet is forwarded to a network gateway.
13. The non-transitory computer readable medium of claim 12, wherein: The instruction set also enables the ASIC to: determining that a VNI associated with the first egress packet matches a second entry in the connection table; and The egress packet is forwarded to a customer device based at least in part on at least one of a third VLAN tag and a next hop identification associated with the second entry.
14. The non-transitory computer readable medium of claim 12, wherein: The instruction set also enables the ASIC to: determining that a VNI associated with a second egress packet does not match any entry in the connection table; and At least one of forwarding the second egress packet to a network gateway and discarding the second egress packet is performed.
15. The non-transitory computer readable medium of claim 12, wherein: The connection table includes: a first entry corresponding to a first active connection between a first customer device and a first VPC; and A second entry corresponds to a second active connection between a second customer device and a second VPC.
16. The non-transitory computer readable medium of claim 12, wherein: The non-transitory computer-readable medium includes a cache associated with the switch.
Citation Information
Patent Citations
Connection-oriented communications scheme for connection-less communications traffic
CN101107824A
Connecting on-premise networks with public clouds
CN103188339A
Data forwarding method and system, and related device
CN106789667A
Physical path determination for virtual network packet flows
CN107094090A
Method and network infrastructure for a direct public traffic connection within a datacenter
CN107465590A
