Scalable cell-based packet processing service using client-provided decision metadata
Through the design of multi-layer packet processing services and virtual business hubs, the problem of unscalable packet processing in large networks is solved, efficient and secure packet processing is achieved, and responsiveness and user experience are improved.
Patent Information
- Application Number
- CN201980060476.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-09-19
- Filing Date
- 2019-09-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2039-09-06
AI Technical Summary
In large provider networks, existing technologies are difficult to effectively implement packet processing based on customized policies, especially in business processing between multiple virtual machines or physical machines, resulting in network packet processing being unable to scale and affecting the responsiveness of services. and security.
Multi-layer packet processing services are used to manage and process network packets through virtual service hubs and isolated cells (IPPC). Control plane and data plane resources are used to implement adaptive and secure processing of packets, and support multi-tenant mode and high availability.
Improves the responsiveness and security of packet processing, reduces CPU load, supports efficient packet processing, enhances system administrator and user experience, and maintains application isolation and reliability in multi-tenant environments.
Smart Images

Figure CN112714903B_ABST
Abstract
Description
Background Art
[0001] Many companies and other organizations operate computer networks that interconnect multiple computing systems to support their operations, such as where the computing systems are co-located (e.g., as part of a local network) or alternatively located in multiple different geographic locations (e.g., connected through one or more private or public intermediate networks). For example, data centers that house large numbers of interconnected computing systems have become commonplace, such as private data centers operated by and on behalf of a single organization, and public data centers operated by entities that are businesses to provide computing resources to customers. Some public data center operators provide network access, power, and secure installation facilities for various customer-owned hardware, while other public data center operators provide "full service" facilities that also include hardware resources available for use by the operator's customers.
[0002] The advent of virtualization technology for commodity hardware has provided benefits in managing large-scale computing resources for many customers with different needs, thereby allowing multiple customers to share various computing resources efficiently and securely. For example, virtualization technology can allow a single physical virtualization host to be shared among multiple users by providing each user with one or more "guest" virtual machines hosted by a single virtualization host. Each such virtual machine can represent a software simulation that acts as a different logical computing system, which provides users with the illusion that they are the only operator of a given hardware computing resource, while also providing application isolation and security between various virtual machines. Materializing several different virtual machines on the same host can also help increase the overall hardware utilization level at the data center, thereby bringing a higher return on investment.
[0003] As demand for virtualization-based services for provider networks continues to grow, more and more networking and interconnectivity-related features may have to be added to meet the needs of applications implementing the services. Many of these features may require one form or another of network packet address manipulation, such as at Layer 3 or Layer 4 of the Open Systems Interconnection stack. Some clients of virtualized computing services may wish to employ customized policy-based packet processing for application traffic flowing between a particular set of endpoints. Using ad hoc solutions for all the different types of packet transformation requirements is not scalable in large provider networks where traffic associated with hundreds of thousands of virtual or physical machines may be processed in parallel. BRIEF DESCRIPTION OF THE DRAWINGS
[0004] Figure 1An example system environment is shown that includes resources for a scalable cell-based packet processing service under which a variety of networking applications can be implemented using client-specified forwarding metadata and policies in accordance with at least some embodiments.
[0005] Figure 2 A high-level overview of example interactions between components of an isolated cell designated for a particular application of packet processing services is shown in accordance with at least some embodiments.
[0006] Figure 3 An example scenario is shown in which an isolated packet processing cell may include nodes distributed among multiple availability containers of a virtualized computing service in accordance with at least some embodiments.
[0007] Figure 4 An example use of a multiplexed virtual network interface for communications between an isolated network and a packet processing service is shown in accordance with at least some embodiments.
[0008] Figure 5 An example packet flow identifier element and an example packet handling policy element are shown in accordance with at least some embodiments.
[0009] Figure 6 1 and 2. Example classes of packet processing applications that may be implemented using a cell-based packet processing service in accordance with at least some embodiments are shown.
[0010] Figure 7 Example configuration parameters for a cell of a packet processing service are shown in accordance with at least some embodiments.
[0011] Figure 8 , Fig. 9 , Fig.10 and Fig.11 Together, example techniques for migrating traffic of an application between cells of a packet processing service are illustrated in accordance with at least some embodiments.
[0012] Fig.12 Example control plane elements of a packet processing service are shown in accordance with at least some embodiments.
[0013] Fig.13 An example path of health-related messages between nodes of an isolated packet processing cell is shown, according to at least some embodiments.
[0014] Fig.14 Example techniques are shown that may be used to gather health information within an action implementation node of a packet processing service in accordance with at least some embodiments.
[0015] Fig.15 is a flow diagram illustrating aspects of operations that may be performed to implement multi-layer cell-based packet processing services in accordance with at least some embodiments.
[0016] Fig.16 An example system environment is shown in which a virtual service hub for managing traffic flows between isolated networks using cell-based packet processing services may be implemented in accordance with at least some embodiments.
[0017] Fig.17 An example of a packet data path between isolated networks connected via a virtual service backbone is shown, such as from a customer perspective and implemented using a packet processing service, in accordance with at least some embodiments.
[0018] Fig.18 An example of management of virtual service hub-related packet processing workload at an action implementation node of a packet processing service is shown in accordance with at least some embodiments.
[0019] Fig.19 An example of management of virtual business hub-related packet processing workload at a decision master node for a packet processing service is shown in accordance with at least some embodiments.
[0020] Fig. 20 An example of an interaction sequence between an action implementation node and a decision master node is shown according to at least some embodiments.
[0021] Fig.21 , Fig. 22 and Fig.23 Together, examples of creation and use of a filtered routing table at a decision master node designated for a virtual service hub are illustrated in accordance with at least some embodiments.
[0022] Fig.24 Example virtual business hub-related control plane programming interactions between a client and a packet processing service are shown in accordance with at least some embodiments.
[0023] Fig.25 An example scenario is shown in which multiple virtual business hubs may be programmatically linked to one another in accordance with at least some embodiments.
[0024] Fig.26 is a flow diagram illustrating aspects of operations that may be performed to route traffic between isolated networks using a virtual traffic hub that utilizes resources of a packet processing service, according to at least some embodiments.
[0025] Fig. 27 An example system environment is shown in which a virtual service backbone may be used to connect isolated networks that may have overlapping network address ranges, in accordance with at least some embodiments.
[0026] Fig.28 and Fig.29Together, examples of alternative methods for detecting and responding to overlapping address ranges between isolated networks connected via a virtual service backbone are illustrated in accordance with at least some embodiments.
[0027] Fig.30 is a flow diagram illustrating aspects of operations that may be performed to route traffic between isolated networks using a virtual traffic hub in scenarios where the isolated networks may have overlapping address ranges, according to at least some embodiments.
[0028] Fig.31 An example system environment is shown in which a virtual service backbone can be used to automatically propagate routing information between isolated networks in accordance with at least some embodiments.
[0029] Fig.32 Examples of triggering events that may cause a virtual service hub to propagate routing information to one or more isolated networks are shown in accordance with at least some embodiments.
[0030] Fig.33 An example of domain-restricted propagation of routing information by a virtual service hub is shown in accordance with at least some embodiments.
[0031] Fig.34 An example of the use of address translation mappings during propagation of routing information by a virtual service hub is shown in accordance with at least some embodiments.
[0032] Fig.35 is a flow diagram illustrating aspects of operations that may be performed at a virtual service hub to propagate routing information between isolated networks, according to at least some embodiments.
[0033] Fig.36 An example system environment is shown in which a virtual service hub can participate in distributing Domain Name System (DNS) information to resources of an isolated network in accordance with at least some embodiments.
[0034] Fig.37 An example of programmatic interaction between a client and a packet processing network where a virtual service hub may be used to perform DNS-related operations is shown in accordance with at least some embodiments.
[0035] Fig.38 An example use of a virtual service hub to provide DNS information to isolated networks both inside and outside a provider network is shown in accordance with at least some embodiments.
[0036] Fig.39 is a flow diagram illustrating aspects of operations that may be performed at a virtual service hub to propagate DNS information to resources at an isolated network, according to at least some embodiments.
[0037] Fig.40is a block diagram illustrating an example computing device that may be used in at least some embodiments.
[0038] Although embodiments are described herein for several embodiments and illustrative drawings by way of example, it will be appreciated by those skilled in the art that embodiments are not limited to the described embodiments or drawings. It should be understood that the drawings and detailed description thereof are not intended to limit the embodiments to the specific forms disclosed, but on the contrary, are intended to cover all modifications, equivalents and alternatives falling within the spirit and scope defined by the appended claims. The titles used herein are only for organizational purposes and are not meant to limit the scope of the specification or claims. As used throughout this application, the word "may" is used in an allowed sense (i.e., meaning to have a potential meaning), rather than a mandatory sense (i.e., meaning to have to). Similarly, the word "include, including and includes" means including but not limited to. When used in the claims, the term "or" is used as an inclusive rather than an exclusive or. For example, the phrase "at least one of x, y or z" means any one of x, y and z, and any combination thereof. DETAILED DESCRIPTION
[0039] Various embodiments of methods and apparatus for implementing a multi-layer packet processing service including multiple logically isolated cells and utilizing the service to build multiple higher-level applications such as virtual business hubs are described. In at least some embodiments, this service may include two broad categories of resources: control plane resources, and data plane resources. The control plane may include resources primarily responsible for management tasks, such as setting up initial service resource configurations for various networked applications, monitoring the configurations, modifying the configurations if necessary, and the like. In contrast, the data plane may be responsible for implementing the processing of application packets based on criteria indicated by a client of the packet processing service, and transmitting the contents of such packets between endpoints associated with the application that has been set up on behalf of the client. In at least some embodiments, a group of data plane nodes and control plane nodes of a packet processing service may be grouped together to form isolated packet processing cells (IPPCs), and at least one such cell may be assigned to implement a given instance of an application, where each of the nodes may be implemented using one or more computing devices. One such application may, for example, include a virtual service hub (e.g., a transit gateway) that may be used to (among other functions) route traffic between isolated networks (e.g., a virtual network hosted by a service provider, where the service provider operates an underlying network and virtualizes the Internet Protocol (IP) space available to resources in the virtual network, whose resources may be assigned to private Internet Protocol (IP) addresses that are not advertised outside the network, etc.). In an example embodiment, a customer of the service provider may use the virtual service hub to centrally manage the interconnectivity of isolated networks and local networks. In one embodiment, multiple virtual service hubs may be established, for example based on requests received at a packet processing service from different customers with their respective connectivity needs, and each such hub may represent an instance of the virtual service hub application and be assigned a corresponding IPPC. Another example of an application to which one or more cells may be assigned may involve, in some embodiments, multicasting individual packets from a set of source endpoints to multiple destination endpoints.
[0040] A given cell of packet processing service may be referred to as "isolated" in some embodiments because, at least during normal operating conditions, no data plane network traffic is expected to flow from the cell to any other cell of the service. In at least one embodiment, control plane traffic also cannot flow across cell boundaries under normal operating conditions. Due to such isolation, several benefits may be obtained: for example, (a) an increase in the workload of an instance of a packet processing application implemented using one cell may have no effect on the resources being used for other applications at other cells, and (b) in the rare case of a failure within a given cell, the failure is not expected to have any effect on the applications that other cells have been assigned to. Software updates may be applied to the nodes of one cell at a time, so any errors potentially introduced from such updates will not affect applications using other cells. The specific type of packet processing being performed may differ between applications, and therefore differ between cells in at least some embodiments. In some embodiments, although at least one isolated packet processing cell may be assigned to a given application instance, a given cell may potentially be used in a multi-tenant mode for multiple application instances configured on behalf of multiple customers. In at least some embodiments, nodes of a packet processing serving cell may generate and run efficient executable programs to implement specialized packet processing logic based on customer-supplied policies, for example, using a virtual machine instruction set optimized for networking-related operations.
[0041] As will be appreciated by those skilled in the art in light of this disclosure, certain embodiments may be able to achieve various advantages, including some or all of the following: (a) enabling a wide variety of client-selected custom packet processing operations (e.g., associated with layer 3 of the Internet networking protocol stack or its equivalent in other protocol stacks) to be efficiently implemented, thereby reducing the overall CPU load associated with packet processing, (b) improving the overall responsiveness of applications that utilize packet processing operations, for example, by adding packet processing resources as application workload increases, (c) enhancing the security of networked applications by isolating the set of resources used for a given instance of an application, and / or (d) enhancing the user experience for system administrators and / or application owners by providing configuration information and metrics separately on a per-application instance level. The amount of computing resources and other resources required to handle scenarios such as possible overlap between private address ranges used in different isolated networks, the propagation of routing changes from one isolated network to another, and / or the propagation of DNS information to resources within an isolated network may also be reduced in at least some embodiments.
[0042] According to some embodiments, the system may include a group of computing devices for packet processing services. The computing device may include instructions that, when executed on a processor, cause the computing device to assign a first isolated packet processing cell among multiple isolated packet processing cells (IPPCs) of a packet processing service to a first application having a first group of source endpoints and a second group of destination endpoints. In at least one embodiment, the IPPC may include, for example, (a) multiple action implementation nodes (AINs), (b) one or more decision master nodes (DMNs), and (c) one or more management or control plane nodes (ANs). In some embodiments, at least the first AIN of the IPPC may have a programmatically attached virtual network interface (VNI), which is configured to receive network services originating from one or more of the source endpoints, and at least the second AIN of the IPPC may have a programmatically attached VNI, which enables service transmission along a path to one or more of the destination endpoints. As the name implies, a VNI may include a set of networking configuration settings (e.g., one or more IP addresses, security rules, and the like) in various embodiments, which may be programmatically associated with an execution platform such as a virtual machine, and potentially programmatically transferred from one platform to another so that the configuration settings can be used to transmit and receive network services on different physical network interfaces. In some cases, a given AIN may be connected (e.g., using one or more VNIs) to one or more sources and destinations of application services. In various embodiments, the application isolation policy of the packet processing service may prohibit the transmission of at least some types of network packets between a first IPPC and other IPPCs. In at least some embodiments, network configuration settings (e.g., security-related settings of one or more VNIs for communicating with IPPC nodes / between IPPC nodes, or routing table entries used within an IPPC) may prohibit / prevent the transmission of some types of messages (e.g., data plane packets) across IPPC boundaries. For example, in various embodiments, a given DMN may be configured to provide only representations of actions to the AIN of its own IPPC, and not to the AINs in other IPPCs.
[0043] An indication of a set of packet forwarding metadata for a first application, such as an entry in a forwarding information base, can be received from a client of a packet processing service via a programming interface, and the set can be propagated to a DMN in various embodiments. Such forwarding metadata can represent an instance of decision metadata used to make decisions about actions at the DMN in various embodiments. An action query can be received from a first AIN at the DMN, for example, due to a cache miss in a local action cache accessible at the first AIN when trying to find an action corresponding to a packet received from a first source endpoint in some embodiments. From the DMN, in response to the action query, a representation of a packet processing action to be implemented with respect to a group of one or more packets can be provided to the first AIN. The group of packets can include packets that cause cache misses and action queries, as well as other packets of the same flow in some embodiments, where one flow can be different from other flows by a combination of header entry values and / or other characteristics. Therefore, if / when other packets of the group are received, the action can be cached at the first AIN and may be reused later. The action determined at the DMN may be based at least in part on the packet forwarding metadata and the packet processing policy indicated by the client or customer, on whose behalf the first IPPC is configured in at least some embodiments. At the first AIN, an action may be performed with respect to a packet received from a source endpoint; thus, at least one outbound (with respect to the packet processing service) packet may be transmitted along a path to a destination endpoint. In some cases, the outbound packet may be transmitted via a second AIN, i.e., not all AINs may have connectivity to all source or destination endpoints. In other cases, the outbound packet may not necessarily be transmitted via a path that includes other endpoints.
[0044] The management node of the IPPC may monitor various metrics associated with the AIN and DMN in some embodiments, and initiate a cell reconfiguration operation based on a resource management policy enforced for at least the first IPPC when necessary in various embodiments. The reconfiguration operation may include, for example, adding AINs / DMNs, removing / de-authorizing AIN / DMNs, setting additional virtual network interfaces, and similar operations. In some embodiments, for example, where the nodes of the IPPC are being used in a multi-tenant mode, the services of the application may be transferred or migrated from one IPPC to another IPPC under some conditions, for example, based on metrics collected at the management node. In some embodiments, a multi-stage migration technique may be employed that avoids transmitting data plane services across the pre-migration IPPC and the post-migration IPPC.
[0045] In some embodiments, a given IPPC may be assigned to multiple applications of one or more clients of a packet processing service, based on policies and metadata provided by the client for the application, e.g., resulting in the generation (at the DMN) and execution (at the AIN) of corresponding action sets for different applications. The multiple applications to which a given IPPC is assigned may be instances of the same type of application (e.g., a virtual routing application that provides routing between different groups of isolated networks), or instances of different networking application categories (e.g., a virtual routing application and a multicast application may be implemented using a given cell).
[0046] In at least some embodiments, a shuffle sharding algorithm may be used to assign a subset of nodes (e.g., AINs) of an IPPC to a given set of one or more source endpoints or destination endpoints of a given application. According to this algorithm, if the IPPC includes N AINs, packets from a given source endpoint E1 may be directed (e.g., based on a hash of packet header values) to one of a subset S1 of K AINs (K<N), and packets from another source endpoint E2 may be directed to another subset S2 of K AINs, where the maximum overlap between S1 and S2 is limited to L common AINs. In various embodiments, similar parameters may be used for connectivity of outbound packets from a packet processing service to a destination endpoint. In at least some embodiments, such shuffle sharding techniques may combine the advantages of hash-based load balancing with higher availability of services for each of the source and destination endpoints.
[0047] In various embodiments, the packet processing service may be implemented at least in part using the resources of the provider network. In one or more embodiments, a network set up by an entity such as a company or a public sector organization to provide one or more network-accessible services (e.g., various types of cloud-based computing, storage, or analysis services) accessible to a group of distributed clients via the Internet and / or other networks may be referred to as a provider network. The provider network may sometimes be referred to as a "public cloud" environment. In some cases, the resources of the provider network are distributed across multiple data centers, which in turn may be distributed across numerous geographic regions (e.g., each region corresponds to one or more cities, states, or countries). In one embodiment, each region may contain one or more availability containers, which may also be referred to as "availability zones." The availability container may in turn include part or all of one or more different locations or data centers, which are engineered in this way (e.g., with independent infrastructure components, such as power-related equipment, cooling equipment, or physical security components) so that resources in a given availability container are isolated from failures in other availability containers. A failure in one availability container may not cause a failure in any other availability container; therefore, the availability profile of a given resource is intended to be independent of the availability profile of resources in different availability containers. Various types of services, including (for example) packet processing services of the kind described above, can therefore be protected from failures at a single location by starting multiple resources on behalf of a given application in a corresponding availability container, or (in the case of packet processing services) distributing the nodes of a given cell across multiple availability containers. Thus, for example, in some embodiments, at least one AIN for a given IPPC can be established within each of at least two availability containers, and similarly, the IPPC's respective DMNs and management nodes (ANs) can also be established in more than one availability container.
[0048] In some embodiments, at least some nodes (e.g., AIN, DMN, and / or AN) of at least some IPPCs may be implemented using, for example, virtual machines instantiated on a host of a virtualized computing service (VCS) of a provider network. In other embodiments, physical machines that do not implement virtualization may be used for at least some nodes of a packet processing service. In one embodiment, a corresponding isolated virtual network (IVN) may be established on behalf of various clients at the VCS. An isolated virtual network may include a series of networking resources (including, for example, virtual machines) assigned to a given client, which are logically isolated from (and inaccessible by default from) resources assigned to other clients in other isolated virtual networks. The client on whose behalf an IVN is established may be granted substantial flexibility in the network configuration of resources used for the IVN, for example, a private IP address for a virtual machine may be selected by the client without having to consider the possibility that other resources within other IVNs may have been assigned the same IP address, a subnet selected by the client may be established within the IVN, security rules may be set by the client for incoming and outgoing traffic relative to the IVN, and so on. In at least one embodiment, a given IPPC may be implemented using one or more IVNs. In some embodiments where packet processing services are being used to route traffic between isolated networks, the isolated networks themselves may include one or more IVNs of the VCS.
[0049] Several programming interfaces, such as a set of application programming interfaces (APIs), a web-based console, command line tools, and the like, may be implemented by the packet processing service in various embodiments, thereby enabling clients to submit requests and receive responses regarding their networked applications. A wide variety of APIs may be supported in some embodiments, including, for example, APIs for hosting or creating new application instances such as virtual router hubs, for associating virtual network interfaces (VNIs) with applications and IPPCs, for submitting routing / forwarding metadata and policies, and the like. In at least some embodiments, the VNIs may be configured in a multiplexed manner, where, for example, a "relay" VNI is attached to the AIN and configured to receive packets from (or send packets to) multiple network endpoints that are accessible from an isolated network whose packets will be processed at the service.
[0050] Example system environment
[0051] Figure 1An example system environment is shown that includes resources for a scalable cell-based packet processing service according to at least some embodiments, under which a variety of networking applications can be implemented using client-specified forwarding metadata and policies. As shown, the system 100 includes various layers of a layer 3 packet processing service (PPS) 102, including an action implementation layer 142, a decision layer 142, and a cell management layer 143, and a set of service-level control plane resources 170, which in the depicted embodiment include API handlers, metadata storage devices / repositories, and the like. Each of the layers 141, 142, and 143 may include multiple nodes, such as an action implementation node (AIN) at layer 141, a decision master node (DMN) at layer 142, and an management node (AN) at layer 142. In various embodiments, the resources of the layers 141, 142, and 143 may be organized into a group called an isolated packet processing cell (IPPC) 127 (e.g., 127A or 127), where a given IPPC 127 includes a certain number of AINs, a certain number of DMNs, and a certain number of ANs. For example, in the depicted embodiment, IPPC 127A may include AINs 120A, 120B, and 120C, DMNs 122A and 122B, and ANs 125A and 125B, while IPPC 127B may include AINs 120L, 120M, and 120N, DMNs 122C and 122D, and ANs 125J and 125K. Individual nodes such as AINs, DMNs, and / or ANs may be implemented at one or more computing devices using some combination of software and hardware in different embodiments, e.g., in some embodiments, a given AIN, DMN, or AN may include a virtual machine running at a host managed by a virtualized computing service, while in other embodiments, the AINs, DMNs, and / or ANs may be implemented using non-virtualized servers.
[0052] The resources of packet processing service 102 can serve as the infrastructure or framework that can be used to build a variety of networked applications, such as applications for forwarding / routing packets between isolated networks, applications for multicast packets, virtual private networked applications, and similar applications in different embodiments. In some embodiments, individual IPPC 127 can be assigned to implement the logic of one or more instances of this application, wherein the business associated with the application is processed (at least under normal operating conditions) without crossing the IPPC boundary. For example, in the depicted embodiment, IPPC 127A has been assigned to an application for transmitting packets at least between isolated network 110A and isolated network 110B, and IPPC 127B has been assigned to transmit packets at least between isolated networks 110J and 110K. Each of the isolated networks 110 can have an associated private IP address range such that addresses assigned to resources within a given isolated network 110 may not be visible to resources outside the isolated network and such that, at least by default (e.g., prior to the assignment of an IPPC that implements a virtual routing application), paths between resources within different isolated networks may not necessarily be available.
[0053] In various embodiments, instances of networking applications, such as a virtual service hub that performs routing between isolated networks 110, may be set up in response to programmatic requests received from clients of PPS 102. Such requests may be received, for example, at an API handler of PPS control plane 170. In response to one or more requests from clients to enable virtualized routing via a hub between isolated networks 110A and 110B, for example, in the depicted embodiment, IPCC 127A may be assigned to forward packets between the two isolated networks. Similarly, in response to a request from another client (or a request by the same client) to enable multicast connectivity between isolated networks 110J, 110K, and 110L, IPPC 127B may be assigned. In at least some embodiments, as discussed in further detail below, a series of virtual network interfaces may be programmatically configured to enable traffic to flow between endpoints (TE 112, e.g., 112D, 112E, 112J, 112K, 112P, 112Q, 112R, 112S, 112V, and 112W) in isolated networks and AINs assigned to cells of those isolated networks. The client on whose behalf the networking application is being configured may provide decision metadata (e.g., layer 3 metadata 123, e.g., forwarding information base entries, routing information base entries, and the like) and / or policies, which in some embodiments may be used to determine packet processing actions to be performed via the control plane programming interface of the PPS. In the depicted embodiment, the metadata received from the client may be propagated, e.g., from the PPS API handler via AN 125 or directly to the decision manager node of the appropriate IPPC 127. In at least some embodiments, the metadata initially provided by the client may be transformed, for example by converting high-level routing / forwarding entries into more specific entries that take into account identifiers of virtual network interfaces to be used, locality-related information, information about availability containers in which various AINs are configured, and the like, and the transformed versions may be stored at different DMNs 122, as discussed in further detail below.
[0054] In the depicted embodiment, a given packet from a source endpoint, such as TE 112K of an isolated network 110A, may be received at a specific AIN, such as 120C. In some embodiments, the specific AIN to be used may be selected, for example, based on a shuffle slicing algorithm, so that packets of a specific flow from a specific endpoint are directed to one of a subset of the AINs of the cell. Each of the AINs may include or be able to access a corresponding action cache, such as action cache 121A. The action cache may be indexed by a combination of attributes of the received packet, such as a combination of an identifier of the sending client, source and destination IP addresses, source and destination ports, and the like. In some embodiments, the action may be stored in an executable form in the cache, for example, using byte codes expressed using instructions of a register-based virtual machine optimized for implementing network processing operations. AIN 120C may attempt to find a representation of the action for the received packet in its cache. If this action is found, the packet may be processed using a "fast path" 166 in the depicted embodiment. For example, an executable version of the action may be implemented at AIN 120C, resulting in the transmission of the contents of the packet on a path toward one or more destination endpoints, such as TE 112E in isolated network 110B. The path may include zero or more additional AINs, for example, as shown using arrows 161 and 162, the contents of the packet may be transmitted to TE 112E via AIN 120B in the depicted fast packet path. AIN 120B may have a virtual network interface configured to access, for example, TE 112E, while AIN 120C may not be configured with this virtual network interface, thus resulting in the transmission of the contents of the packet via AIN 120B. It should be noted that at least in some embodiments, one or more header values of the packet may be modified by the action (e.g., in a scenario where overlapping private address ranges happen to be used at the source and destination isolated networks, as discussed in further detail below), that is, the packet ultimately received at the destination endpoint 112E may differ from the packet submitted from the source endpoint 112K in terms of one or more header values.
[0055] If the AIN's local action cache does not contain an action for the received packet, a slightly longer workflow may be required. Thus, for example, if a packet is received at AIN 120M from TE 112P (as indicated via arrow 167), and a cache miss occurs in the local cache of AIN 120M when attempting to look up the received packet, AIN 120M may send an action query to a selected DMN (DMN 122D) in its IPCC 127B, as indicated by arrow 168. For example, based on a client-supplied policy indicating that a multicast operation is to be performed and based on forwarding / routing metadata provided by the client, DMN 122D in the depicted example may determine that the contents of the packet are to be transmitted to a pair of endpoints 112R and 112V in isolated networks 110K and 110L, respectively. Representations of the actions to implement this multicast operation may be sent back to AIN 120M, stored in its local cache, and executed at AIN 120M, resulting in the transmissions shown by arrows 169 and 170. In this example, AIN 120M may send outbound packets directly to destination TEs 112R and 112V, and may not need to use a path through other AINs including IPCC 127B.
[0056] When the traffic associated with the application flows via the IPCC 127, its corresponding AN can collect various types of metrics. Based at least in part on the metrics, additional AINs, DMNs (or even ANs) can be instantiated in various embodiments when needed. In at least some embodiments, different IPCCs can have different initial configurations, for example, some IPCCs can start with 10 AINs and 3 DMNs, others start with 20 AINs and 7 DMNs, and so on. If the total workload handled by the current set of IPCCs exceeds a threshold, then in some embodiments, a new IPCC can be instantiated and assigned to a new application instance (or assigned to an existing application instance via application migration). Similarly, if the total workload is below a threshold, or the resource utilization metrics of one or more IPCCs are below a certain threshold, then in various embodiments, the selected IPPC (or individual nodes within the selected IPPC) can be deactivated. Some application instances can potentially generate more traffic than can be handled by the maximum capacity supplied by a given IPCC, and in such scenarios, multiple IPCCs can be used for a given application instance in at least one embodiment.
[0057] Interaction between cell components
[0058] Figure 2 A high-level overview of example interactions between components of an isolated cell designated for a particular application of a packet processing service is shown according to at least some embodiments. Figure 1227 of a packet processing service (PPS) discussed in the context of has been designated for a particular application. In the depicted embodiment, a client 210 of the PPS may submit a programming request 243 to the PPS control plane 214, for example, via a web-based console, a command line tool, an API, a graphical user interface, or the like. The request 243 may indicate the type of application to be set (e.g., the policy to be implemented for packet processing), the required performance or other goals to be met by the configuration set for the application, etc. Based on the requirements of the client and / or the availability and current resource consumption levels at the various IPPCs, in the depicted embodiment the PPS control plane 214 may designate an IPPC 227 for the client.
[0059] Configuration metadata 205, such as forwarding information base (FIB) entries provided by the client, policies / rules indicated by the client, etc., to be used in making packet processing decisions, can be transmitted from the PPS control plane 214 to one or more decision master nodes 225 of the IPPC 227 in the depicted embodiment. In some embodiments, the configuration metadata can first be transmitted to the IPPC management node (AN) 270, and from there to the decision master node (DMN) 225. In some embodiments where a given IPPC 227 includes multiple DMNs, all metadata about the one or more applications to which the IPPC is assigned can be provided to all DMNs. In other embodiments, corresponding subsets of metadata can be provided to individual DMNs.
[0060] When a packet is received from a source service endpoint 264 of an application at an action implementation node (AIN) 268, an attempt may be made to find a corresponding action in an action cache 297. If such an action is found, for example, via a lookup using a key based on some combination of packet header values, client identifiers, and the like, the action may be implemented, resulting in at least some of the contents of the received packet being transmitted to one or more destination service endpoints 272 in the depicted embodiment. This "fast path" packet processing path, in which a cache hit occurs at the AIN and in which a decision master node is not directly involved, may in fact be encountered more frequently than a slower cache miss in various embodiments. It should be noted that at least for some applications, the total number of packets for which the same logical action will be implemented may be quite large, for example, hundreds or thousands of packets may be sent using the same long-lived TCP connection from one source endpoint to a destination endpoint.
[0061] In the scenario where the arrival of a packet results in a cache miss at AIN 268, a request-response interaction with DMN 225 may be initiated by AIN in the depicted embodiment. An action query (which may include the entire received packet in some embodiments, and may include a representation or portion of a packet, such as a certain combination of its header values, in other embodiments) may be submitted from AIN 268 to DMN 225. In the depicted embodiment, DMN 225 may, for example, examine the content of the action query and configuration metadata 205, and determine the actions to be implemented for the packet that caused the cache miss and related packets (e.g., packets belonging to the same flow, where the flow is defined at least in part by a certain combination of packet header values). In at least some embodiments, DMN 225 may include an action code generator 226 that generates an executable version of an action that (a) can be quickly executed at AIN and (b) does not necessarily need to be interpreted or "understood" at AIN. In at least one embodiment, the generated action may include a certain number of instructions of a virtual machine instruction set based on registers in the kernel, which may be used to perform operations similar to those of the extended Berkeley Packet Filter (eBPF) interface. In at least some embodiments, actions may be communicated back to the AIN for caching and for enforcement relative to the packet that caused the cache miss.
[0062] At the AIN 268 where the action query is submitted, the generated action can be stored in the cache 297 and in various embodiments, in addition to the identification and the first packet generated that caused the action, it is also reused as needed for other packets. Any one of a plurality of eviction strategies 298 can be used to remove entries from the cache 297, for example, if in one embodiment, a packet requiring the implementation of a given action A1 is not received in a certain threshold time interval, then A1 can be removed from the cache. In at least one embodiment, individual entries in the cache can have an associated use timing record, including (for example) a timestamp corresponding to the last time an action was performed for a certain packet. In such embodiments, entries can be removed from the cache if / when its use timing record indicates that an eviction criterion has been met (for example, when an action has not been performed within a certain threshold number of seconds / minutes). In some embodiments, cached actions may be periodically rechecked relative to the current state of the configuration metadata 205, e.g., every T seconds (where T is a configurable parameter) the AIN may submit a revalidation query indicating the cached actions to the DMN layer, and the DMN may verify that the cached actions have not been invalidated by some newly updated configuration metadata entry. In at least one embodiment, the DMN may send an invalidation message to the AIN when the new configuration metadata 205 supersedes or invalidates one or more actions generated earlier. It should be noted that in various embodiments, as long as the actions ultimately executed for a given received packet are correct, it does not matter from a functional perspective whether the actions are cached at the AIN or must be generated at the DMN. Therefore, even if actions are occasionally evicted from the cache 297 unnecessarily or due to overly pessimistic eviction decisions, the overall impact on the packet processing application in such embodiments may be small (as long as unnecessary evictions are not extremely frequent). The IPPC management node 270 may receive monitoring or measurement-related messages 208 from the AIN and / or DMN in some embodiments, and transmit management commands (e.g., restart commands, shutdown / startup commands), and the like to the AIN and / or DMN in at least some embodiments. In at least one embodiment, the IPPC management node 270 may initiate reconfiguration of the IPPC 227 based on the collected metrics, e.g., by adding or removing other nodes, changing VNI settings, and the like.
[0063] Cells implemented using multiple availability containers
[0064] As mentioned previously, in some embodiments, similar to Figure 1 At least some of the elements of the packet processing service discussed in the context of may be implemented using resources of a provider network, such as virtual machines implemented at a virtual computing service. Figure 3An example scenario is shown in which an isolated packet processing cell may include nodes distributed between multiple availability containers of a virtualized computing service according to at least some embodiments. In the depicted embodiment, a provider network 302 may include a virtualized computing service (VCS) 305, where an isolated virtual network may be established on behalf of various customers or clients. An isolated virtual network or IVN (e.g., IVN 310A and 310B, which may be established for one or more VCS customers, and IVN 310C, which may be configured to implement the IPCC of the packet processing service itself) may include a series of networked resources assigned to a client / client of the VCS. In at least some embodiments, such resources (including, for example, virtual machines) may be logically isolated from (and by default, inaccessible from) resources allocated to other clients in other isolated virtual networks. In the depicted embodiment, the packet processing service itself may be considered a client or client of the VCS 305, i.e., the packet processing service may be constructed by utilizing the functionality supported by the VCS 305. The client on whose behalf the IVN is established can be granted substantial flexibility regarding the network configuration of resources used for the IVN, for example, a private IP address for a virtual machine can be selected by the client without regard to the possibility that other resources within other IVNs may have been assigned the same IP address, subnets of the client's choice can be established within the IVN, security rules can be set by the client for incoming and outgoing traffic relative to the IVN, and so on.
[0065] In at least some embodiments, the resources of the VCS 305, such as the hosts on which the various virtual machines run, can be distributed among multiple availability containers 350, such as 350A and 350B. As previously mentioned, an availability container can in turn include part or all of one or more different locations or data centers that are engineered in such a way (e.g., with independent infrastructure components, such as power-related equipment, cooling equipment, or physical security components) that resources in a given availability container are isolated from failures in other availability containers. A failure in one availability container may not cause a failure in any other availability container; therefore, the availability profile of a given resource is intended to be independent of the availability profiles of resources in different availability containers.
[0066] In the depicted embodiment, the action implementation node (AIN) 325, the decision master node (DMN) 327, and the management node (AN) 329 can all be implemented at least in part using the corresponding virtual machines (VMs) 320 of the VCS 305. As shown, the AIN 325A, 325B, 325C, 325D, 325E, and 325F can be implemented at virtual machines 320A, 320B, 320C, 320F, 320G, and 320H, respectively. The DMN 327A, 327B, 327C, and 327D can be implemented at virtual machines 320D, 320E, 320J, and 320K, respectively, and the AN 329A, 329B, 329C, and 329D can be implemented at VMs 320L, 320M, 320N, and 320P, respectively. In some embodiments, a given VM 320 may be instantiated at a corresponding physical virtualization host; in other embodiments, multiple VMs may be set up at a given physical host. The illustrated cell implemented in IVN 310C may include at least two data plane subnets 340A and 340B, and at least two control plane subnets 342A and 342B. One data plane subnet and one control plane subnet may be implemented in each of the at least two availability containers 350, for example, subnets 340A and 342A may be configured in availability container 350A, while subnets 340B and 342B may be configured in availability container 350B. In some embodiments, the control plane subnet 342 may include one or more ANs 329 at the corresponding VM 320, while the data plane subnet 340 may include one or more AINs 325 and one or more DMNs 327 at the corresponding VM 320. Due to the use of multiple availability containers, the probability that the entire IPPC is affected by any given failure event may be minimized in the depicted embodiment. In various embodiments, using different subnets for the control plane versus the data plane nodes may help separate at least a majority of the control plane traffic of the IPPC from the data plane traffic of the IPPC.
[0067] As shown, in the depicted embodiment, the IPPC implemented using IVN 310C can be used for packet processing applications involving at least four isolated networks-IVN 310A and 310B and customer premises isolated networks 390A and 390B. IVN 310A and 310B can each include, for example, a group of virtual machines 310 (e.g., 310A, 310B, 310C, or 310D) set up on behalf of VCS customers. In the depicted embodiment, the isolated network 390A, which can be set up at a customer premises or location outside the provider network's own data center and can include a certain number of hosts such as host 395A, can communicate with the IPPC via a group of virtual private network (VPN) paths 308. In the depicted embodiment, the isolated network 390B can also be set up at a group of customer premises or locations outside the provider network 302, and can include a certain number of hosts such as host 395K. In the depicted embodiment, traffic between isolated network 390B and the IPPC may flow over a set of dedicated physical links 309 (e.g., rather than a set of links that may be shared with traffic on the public Internet), which may also be referred to as "directly connected" links. Thus, in the depicted embodiment, packet processing services implemented by VCS 305 using provider network 302 may be able to process packets generated at (or directed toward) a variety of network configurations, including (but not necessarily limited to) isolated virtual networks within the VCS itself, external networks such as 390A that communicate with the VCS using VPN connections over shared links, and external networks such as 390B that communicate with the VCS using dedicated links. Other types of networks may also be connected using packet processing services in various embodiments. In at least some embodiments, nodes of the IPPC may not utilize Figure 3 A multi-availability container architecture of the type shown may use non-virtualized hosts in place of or in addition to virtual machines, and / or may not necessarily use virtualized computing services or other services of a provider network.
[0068] Multiplexing virtual network interfaces
[0069] In some embodiments, a virtualized computing service (VCS) may implement a virtual network interface (VNI) to help simplify various aspects of networking configuration for virtual machines. As indicated earlier, a virtual network interface may include a set of networking configuration properties or attributes (e.g., IP addresses, subnet settings, security settings, and the like) that may be dynamically associated ("attached" to) or disassociated ("detached" from) with individual virtual machines, without having to make changes at the physical network interface, for example, if and when the virtual machine migrates from one physical host to another. In some embodiments, at least one IP address "IPaddr1" may be assigned to a given virtual network interface VNI1, and security rules restricting inbound and outbound traffic may be set for VNI1. When the VNI is programmatically attached to a given virtual machine VM1 started at a host having a physical network interface card NIC1, a network packet indicating IPaddr1 as its destination address (and complying with security rules) may be received at VM1 via NIC1. In addition, an outbound packet generated at VM1 may indicate IPaddr1 as its source address and may be physically transmitted toward its destination via NIC1. If VNI1 is subsequently programmatically detached from VM1 and attached to VM2 (which is executed at a different host with a different physical network interface card NIC2), then the IPaddr1 traffic previously received at VM1 can now be received at VM2 with the same security rules in place.
[0070] Support for virtual network interfaces can greatly simplify several types of network configuration tasks, including, in some embodiments, the operation of various nodes of a packet processing service. When a new VNI is created, for example, in response to a programmatic request from a client of a virtual computing service that supports the VNI, a new interface identifier (VNI-ID) can be generated for it. In some embodiments, the provider network in which the VNI will be used may include multiple logical partitions (such as the isolated virtual networks (IVNs) described earlier), and in these cases the attributes of the VNI may contain logical partition identifiers. In some cases, the attributes may include a zone identifier, which may, for example, indicate an availability container, a geographic region, or a set of data centers where its virtual machines may be available for programmatic attachment to the VNI.
[0071] In different embodiments, any of several types of network addressing related fields may be included in the attribute set of the VNI. For example, in some embodiments, one or more private IP addresses may be specified. Such private IP addresses may be used, for example, internally for routing within the IVN and may not be directly accessible from outside the IVN. Generally speaking, in some embodiments, zero or more public IP addresses may also or actually be associated with a given VNI; these IP addresses may be visible outside the provider network, for example, to various routers of the public Internet or peer network of the provider network. In some embodiments, one or more subnet identifiers (e.g., expressed in classless inter-domain routing or CIDR format) may be included in the attributes of the VNI, such as an identifier of a subnet set by a client within the IVN in which the VNI will be used. In one embodiment, the identification of at least one domain name service (DNS) server responsible for propagating addresses or other DNS-related information associated with the VNI may also be included in the VNI attributes. In some embodiments, VNI attributes may include security-related properties. Some provider networks may allow users to specify rules for the types of incoming and / or outgoing services allowed at the VM to which the VNI can be attached, including (for example) firewall-related rules. In some embodiments, such rules may be referred to as "security groups" and identified among the attributes of the VNI. Various port and protocol restrictions may be imposed using such rules, and multiple rules may be associated with each VNI. For example, a client may use security groups to ensure that only HTTP and HTTPs outgoing or incoming traffic is allowed, limit the set of TCP or UDP ports for permitted traffic, filter incoming and outgoing traffic according to various policies, and so on. In some embodiments, VNI security settings may be used to impose cell isolation policies (e.g., to allow intra-IPCC traffic and prohibit inter-IPCC traffic). In various embodiments, many other attributes may also be specified for the VNI, such as authorization-related settings / permissions and the like.
[0072] In at least one embodiment, the VNIs may be arranged in a multiplexed configuration, making it easier to balance traffic workloads among a given set of sources and destinations. Figure 4 An example use of multiplexed virtual network interfaces for communication between isolated networks and a packet processing service is shown in accordance with at least some embodiments. In the example scenario depicted, network packets will flow between virtual machines (VMs) 410 of two isolated virtual networks (IVNs) 408A and 408B using resources of an IPPC 450 of a packet processing service implemented at a VCS 405. The packet processing service may have a protocol similar to that in Figure 1The capabilities and features of service 102 discussed in the context of . In the depicted embodiment, IVN 408A includes VMs 410A and 410B, each of which can have one or more virtual network interfaces attached; similarly, IVN 408B includes at least VMs 410C and 410D. In addition, in the depicted embodiment, IVN 408A and 408B can also each include a client-side VNI (CVNI) 412 that is configured to handle business directed to other IVNs or received from other IVNs via the packet processing service. Thus, IVN 408A includes CVNI 412A, while IVN 408B includes CVNI 412B. In various embodiments, an API or other programming interface implemented by the packet processing service can be used to associate a VNI that will be used to receive / transmit packets from the isolated virtual network 408A with an AIN. For example, in response to obtaining an indication of a particular VNI (e.g., CVNI 412) that will be used to transmit packets for an application to one or more action implementation nodes (AIN) of the IPPC, in at least some embodiments metadata indicating an association between the application, the VNI, and the IPPC may be stored at a control plane repository of the packet processing service.
[0073] In the depicted embodiment, the IPPC 450 assigned to process packets flowing between IVN 408A and 408B may include a set of data plane nodes implemented at corresponding virtual machines, such as action implementation nodes (AIN) 425A-425D at VM 420A-420D, and decision manager nodes (DMN) 427A and 427B at VM 420K and 420L. In at least some embodiments, an intermediate VNI multiplexing resource pool 415, including at least a certain number of client-facing service endpoint addresses (CSEA) 422 and a certain number of relay VNIs 432, can be used for communication between AIN 425 and IVN 408.
[0074] In at least some embodiments, the client-facing service endpoint address or CSEA 422 (which may be provided to the client, for example, in response to a request to attach the IVN to an instance of a packet processing application, such as a virtual service hub) may effectively serve as an identifier or target address for the packet processing service from the perspective of the IVN configured with the CSEA. Thus, in some embodiments, a virtualization management stack (e.g., a hypervisor or an offloaded virtualization manager component) that transmits network packets originating at a VM 410 of an IVN 408 may use the CSEA as the destination for encapsulated packets without having to obtain the address of an individual AIN. An individual AIN 425 may cause its own relay VNI (TVNI) 432 to be configured to receive packets originally directed to any one of several CSEAs 422, for example, in the depicted example scenario, each on the TVNI 432 may receive packets directed to CSEA 422A (from IVN 408A) or 422B (from IVN 408B). In the depicted embodiment, a given CSEA can be used to direct packets to any of several AINs (e.g., using a shuffle slicing algorithm to select a specific AIN for a given packet), representing one multiplexing level. In a second multiplexing level, a given TVNI 432 (e.g., TVNI 432A attached to VM 420A instantiated by AIN 425A, TVNI 432B attached to VM 420B attached to AIN 425B, TVNI 432C attached to VM 420C attached to AIN 420C, or TVNI 432D attached to VM 420D attached to AIN 425D) can receive packets from (or transmit packets to) a VM of any of several IVNs via the corresponding CSEA 422 of the IVN in the depicted embodiment. Using this multiplexing approach in combination with the IPPC of the packet processing service, in various embodiments, many (e.g., tens of thousands or hundreds of thousands) resources at a large number of isolated networks may be able to communicate with each other based on client-selected policies and client-provided metadata. In at least some embodiments, a given TVNI itself may be programmatically associated with multiple spoke VNIs, e.g., with correspondingly distinct IP addresses and security settings, thereby enabling even more complex multiplexing traffic management at individual VMs 420. It should be noted that in at least some embodiments, it may not be necessary to employ, for example, Figure 4 Those multiplexing techniques shown in .
[0075] Packet Flow Identifier Element
[0076] In at least some embodiments, based on Figure 1 A given action generated by a client-selected policy at the decision layer of the packet processing service (PPS) of the service 102 can potentially be applied to a group of related packets called a packet flow, or simply a flow. Figure 5An example packet flow identifier element and an example packet processing policy element according to at least some embodiments are shown. In the depicted embodiment, a flow (or distinguished from other flows) can be characterized based on one or all of the following attributes or elements 520 of the packet received at the packet processing service: a network protocol 521 for sending the packet to the PPS, a source network address 522, a source port 523, a destination network address 524, a destination port 525, and / or an application identifier 526 (e.g., an identifier of a specific virtual network interface set up for communication between an isolated network and the PPS). In some embodiments, the direction of the transmission packet (e.g., toward the PPS, or away from the PPS) can also be included as an identification element for the flow. Many different networking protocols can be supported in different embodiments, for example, including Internet Protocol (IP), Transmission Control Protocol (TCP), User Datagram Protocol (UDP), Internet Control Message Protocol (ICMP), protocols that do not belong to or rely on the TCP / IP protocol suite, and the like. In some embodiments, a specific combination of attributes used to distinguish one packet group from another packet group for a given packet processing application requirement or client can be collectively referred to as a packet flow identifier element 520. In some embodiments, the process of selecting a particular node or cell from among the accessible nodes / cells of the action implementation layer may include flow hashing (e.g., in addition to or as an alternative to shuffle slicing). In some embodiments, some or all of the packet flow identifier elements 520 for a given packet may be aggregated (e.g., via concatenation or using some other function), and the result of the aggregation may be provided as input to a selected hash function, where the output of the hash function is used to select a particular node or cell as part of the flow hash.
[0077] As previously mentioned, in various embodiments, the client of the packet processing service can indicate the strategy used at the decision master to generate the action for various streams. In the depicted embodiment, a given strategy can include several types of rules, parameters or elements 540. The specific parameter set for the application of a given client can be different from the parameter set for different applications of the same client (or the parameter set for the application of some other client). The payload replication rule 541 can indicate how many copies of the content or body of a given received packet will be transmitted to the corresponding destination, for example, if a multicast protocol will be implemented for a given client and the destination multicast group contains eight endpoints, then the payload replication parameter can indicate that eight copies will be transmitted. By default, in some embodiments, for example, if a payload replication rule is not included, a single outbound or transformed packet corresponding to each received packet can be generated.
[0078] For some packet processing applications, in some embodiments, the PPS can act as a protocol translator, for example, an incoming packet can be received via a particular networking protocol (e.g., TCP) while the corresponding outgoing packets can be sent via a different protocol (e.g., UDP, or a custom networking protocol that is not part of the TCP / IP protocol family). The protocol for the send packet element 542 of the policy can indicate whether this protocol change will be implemented, and if so, the specific protocol that will be used for the transformed packet. In various embodiments, the source replacement rule 543 can indicate whether the source address and / or source port will change, and if so, the acceptable source (address, port) range that will be used for the transformed packet. Similarly, the destination selection rule 544 can indicate whether the destination address and / or port will change as part of the packet transformation, and if so, what the acceptable destination addresses and / or ports are for the flow being considered. In some cases (e.g., for multicast), multiple destinations corresponding to a given received packet can be indicated. In some embodiments, at least some packet processing policies may not take into account Figure 5 All the different elements 540 shown in FIG. 5 and / or may be considered for some packet processing strategies in FIG. Figure 5 Parameters not shown in the figure.
[0079] Example application category
[0080] Figure 6 6. Example classes of packet processing applications that may be implemented using cell-based packet processing services according to at least some embodiments are shown. As shown, application classes 600 in the depicted embodiment may include, for example, scalable cross-IVN (isolated virtual network) channels 606, scalable VPN (virtual private network) connectivity 608, scalable dedicated link connectivity 610, multicast 612, address substitution 616, and the like. Other types of packet processing applications may be supported in various embodiments. In general, applications having a similar Figure 1 The packet processing services of the service capabilities shown can be configurable to implement any desired type of packet processing or transformation (or a combination of different types of packet processing or transformation), where nodes can be dynamically assigned at each layer to support a large range of traffic rates in a transparent and scalable manner.
[0081] In some embodiments, as described earlier, a packet processing service can be implemented at a provider network in which an isolated virtual network can be established. In such embodiments, the packet processing service can be used to act as an application of an intermediary or channel between the private address spaces of two or more different IVNs, such as a virtual business hub, thereby actually setting up a scalable and secure cross-IVN channel 606. In at least some embodiments, the PPS can also or actually be used to support scalable VPN connectivity 608 between a certain set of resources within the provider network and one or more client networks or client premises outside the provider network, or between multiple client premises networks each linked to the PPS via a VPN connection. In some embodiments, the provider network can support connectivity 610 with an external network via a dedicated physical link called a "direct connection" link, and packet processing services can be used to manage business between such external networks (as well as between such external networks and external networks connected to IVNs or VPNs). As the name implies, address substitution 616 can involve replacing source addresses and ports in a consistent manner for packets for a particular flow. For example, such address substitution techniques may be useful when there is overlap between the private address ranges of two or more isolated networks, and in some embodiments, the packet processing service may serve as an intermediary responsible for such substitution. Multicast 612 is a networking technique that may be implemented using PPS in some embodiments in which the contents (e.g., body) of a single packet sent from a source is replicated to multiple destinations in a specified multicast group. It should be noted that, at least in some embodiments, a single instance of an application may be combined with Figure 6 For example, in some embodiments, a single instance of a virtual business hub application (types of which are discussed in further detail below) built using PPS can simultaneously implement scalable cross-IVN channels, scalable VPN connectivity, scalable dedicated link-based connectivity, and the like. PPS can be used in different embodiments to support other categories of packet processing applications, and in some embodiments may not support Figure 6 At least some of the applications of the type indicated in .
[0082] Cell configuration parameters
[0083] As discussed earlier, in various embodiments, a method similar to Figure 1 The illustrated packet processing services may be organized as a collection of isolated cells, thereby enabling resources assigned to different applications to be managed individually. Figure 7 Example configuration parameters for a cell of a packet processing service according to at least some embodiments are shown. At least some of these parameters can be set based on input provided by a client, on whose behalf a packet processing application is run in various embodiments. In at least one embodiment, the packet processing service can assign default values to one or more of the parameters.
[0084] Initially, when a new isolated packet processing cell (IPPC) is set up, it may have a default or baseline number of action implementation nodes (AINs), decision master nodes (DMNs), and management nodes (ANs) in the depicted embodiment. The control plane component of the packet processing service may analyze various collected metrics of the data plane nodes including the AINs and DMNs, as well as the ANs themselves in various embodiments, such as resource utilization levels, responsiveness, and the like, and increase / decrease the number of nodes at various layers as needed based on meeting threshold conditions. In the depicted embodiment, the IPPC parameters 700 may include an initial minimum and maximum number of AINs 704, DMNs 706, and ANs 708. In some embodiments, the ratio of the number of nodes at different layers may remain fixed (e.g., two AINs may be configured for each DMN) so that when the number of nodes at a given layer is modified, the change is accompanied by proportional changes at other layers.
[0085] As previously mentioned, in at least some embodiments, AIN, DMN and / or AN can be implemented as programs running on virtual machines, and a given virtualization host can be capable of supporting multiple virtual machines. Even in scenarios where virtual machines are not used, for example, when individual nodes at one or more layers include one or more processes running within an operating system on a non-virtualized physical machine, multiple nodes at one or more layers can be instantiated at a given host in some embodiments. In the depicted embodiment, the node-to-host mapping parameters 710 can indicate how many nodes at various layers will be implemented at a given host.
[0086] In some embodiments, the lease setting parameter 712 can govern whether the cell will be used for a single application of a single client, multiple applications of only a single client, or multiple applications of the corresponding client. In some embodiments, the availability setting 714 can indicate, for example, the minimum / default / maximum number of availability containers to be used for the nodes of the IPPC. The shuffle fragmentation parameter 716 can indicate how many different AINs of the IPPC will be used for packets associated with a given source or destination endpoint, and how much overlap is allowed between the AIN sets for different endpoints in the depicted parameters. According to the shuffle fragmentation algorithm, if the IPPC includes N AINs, then packets from a given source endpoint E1 can be directed (e.g., based on a hash of packet header values) to one of the subsets S1 of K AINs (K<N), and packets from another source endpoint E2 can be directed to another subset S2 of K AINs, where the maximum overlap between S1 and S2 is limited to L common AINs. The migration trigger parameter 718 can indicate the threshold conditions that will lead to the initiation of application migration from one IPPC to another IPPC (an example of a multi-stage migration procedure is provided below). The scale up / down trigger parameter 720 may indicate under what conditions new AINs, DMNs and / or ANs will be instantiated within the IPPC, and under what conditions the number of AINs, DMNs and / or ANs will be reduced. Figure 7 Parameter settings other than those shown in FIG. 700 are used to guide the management of the IPPC. In at least one embodiment, one or more of the parameters 700 may not be used.
[0087] Application migration across communities
[0088] As mentioned above, one of the principles of design based on the cell of the packet processing service of the kind introduced above is to minimize the interaction across the cell boundary. However, when using the multi-tenant operation mode, sometimes the situation may be that the total workload of the application set assigned to by a given IPPC becomes too large and cannot be handled by the maximum number of AIN, DMN and AN that can be adapted to the cell. In at least some embodiments, in such scenarios, the business associated with a given application can be migrated to different IPPCs. In certain embodiments, even if the source IPPC (IPPC from which the application is migrating) is operating in the single-tenant mode, this type of migration can also be initiated, such as when the workload of application exceeds the maximum capacity of the source IPPC, it may be necessary to adopt a larger IPPC.
[0089] Figure 8 , Fig. 9 , Fig.10 and Fig.11 Together, example techniques for migrating traffic of an application between cells of a packet processing service are illustrated in accordance with at least some embodiments. Figure 8A pre-migration scenario 802 is shown. IPPC 850A (the source IPPC from which the application is to be migrated) is using connectivity between two isolated virtual networks (IVNs) 810A and 810B to provide virtualized computing services. IPPC 850A includes AINs 825A-825D running on virtual machines (VMs) 820A-820D, and DMNs 827A and 827B running on VMs 820K and 820L. Cell metadata 829A of IPPC 850A may include, for example, forwarding information base entries, configuration settings identifying the set of AINs and DMNs being used, health information for the DMNs and AINs, etc. Virtual network interface (VNI) multiplexing resource pools are used in the depicted embodiment similar to Figure 4 The techniques shown in are used to connect the IVN to the AIN. For IVN 850A having a client-side virtual network interface 812A and a series of VMs such as 810A and 810B from which packets directed to IVN 850B originate (and packets originating from IVN 850B can be received there), a client-oriented service endpoint address (CSEA) 822A has been configured. Each of AIN 825A-825D has an attached relay VNI 832 (TVNI 832A-832D), and in the depicted embodiment, the business received at CSEA 822A is distributed among the groups of 3 TVNs-TVN 832A, 832B and 832C, for example, according to a shuffle slicing algorithm. Similarly, CSEA 822B is established in the depicted example scenario for the business associated with CVNI 812B of IVN 850B and VMs 810C and 810D. The IPPC 850B, with its own set of DMNs and AINs running on a VM with an attached TVNI, is currently not used for traffic flowing between IVNs 850A and 850B.
[0090] In various embodiments where multiple paths between CSE 822 and TVNI 832 are potentially available, corresponding path selection weights (PWs) may be used to control which paths will actually be used; for example, a PW value of 1 may indicate that a path will be used in at least some time intervals, while a PW value of 0 may indicate that a path will not be used in at least some time intervals. As shown, in pre-migration scenario 802, path selection weights of "1" have been assigned to three paths each between CSEA 822 and the TVNI of IPPC 850A. Based on the policy and forwarding metadata specified by the client, traffic flows between the VMs of IVN 850A and 850B via IPPC 850A.
[0091] At some point, a decision may be made to migrate the application to IPPC 850B (eg, based on analysis of metrics obtained from IPPC 850A and / or IPPC 850B), and in the depicted embodiment a phased migration technique may be initiated. Fig. 9 832G, and between CSEA 822A and TVCN 832E-832G, and between CSEA 822B and TVNI 832F-832H), so that application traffic continues to be processed at IPPC 850A. The assignment of a transient zero weight may enable, for example, the propagation of configuration information to the destination cell AINs (AINs 825E-825H) prior to the performance of actions to initiate an application at the destination IPPC 850B.
[0092] Fig.10 850A and 850B. Metadata changes, if any, are indicated by the client and can be propagated to both IPPCs, as indicated by arrow 872, thereby keeping the two metadata sets effectively synchronized in the depicted embodiment. It should be noted that in Fig. 9 and Fig.10 The replication and propagation of cell metadata indicated by arrows 870 and 872, respectively, in FIG. 8 represent control plane operations and in at least some embodiments may be accomplished without using data plane resources.
[0093] exist Fig.11In the final stage of migration (Stage 3) depicted in FIG, the path selection weights assigned to the paths used prior to migration may be set to zero, thereby draining traffic from IPPC 850A and directing all traffic between IVNs 810A and 810B to IPPC 850B. In the depicted embodiment, the portion of cell metadata 828A corresponding to the migrated application may be deleted from IPPC 850A, as indicated by arrow 874. Figure 8-Figure 11 In the multi-stage approach shown in, in various embodiments, applications can be transferred from one IPPC to another IPPC without the need to transfer data plane packets across cell boundaries, thereby complying with the cell-based isolation principle underlying the design of packet processing services.
[0094] Control Plane Overview
[0095] Fig.12 1 shows example control plane elements for a packet processing service according to at least some embodiments. As shown in the figure, in the depicted embodiment, a control plane having a function similar to Figure 1 The API handler cluster 1290 of the packet processing service of the service 102 features and capabilities receives programming requests from clients 1292. In some embodiments, the API handler of the cluster 1290 may be responsible for assigning a specific isolated packet processing cell (IPPC) 1210, such as IPPC 1210A or 1210B, to an application instance of a given client. In other embodiments, a separate cell mapping manager cluster may be responsible for the assignment of IPPCs to clients.
[0096] In the depicted embodiment, a number of components within a given IPPC and a series of network-accessible services except the packet processing service itself can be used to manage the control plane or management information. As shown, a given IPPC such as 1210A or 1210B may include at least one management node (AN) 1250, such as 1250A or 1250B. AN 1250 may include a cell-level control plane API manager 1274 (e.g., 1274A or 1274B), a cell-level health manager 1262 (e.g., 1262A or 1262B), and / or a cell-level metric aggregator 1260 (e.g., 1260A or 1260B). The cell-level API manager 1274 may, for example, receive management commands from an API handler cluster 1290 and provide responses thereto. Such management commands may, for example, include startup / shutdown commands and / or other configuration change requests to be transmitted to various data plane nodes. In some embodiments, configuration information 1272 (e.g., 1272A or 1272B) for the IPPC (e.g., the number and identifiers of data plane nodes, shuffle sharding parameters, and the like) may be stored at a separate repository, such as a high-performance key-value database service. In at least one embodiment, a network-accessible data stream management service may be used to store various metric streams 1252 (e.g., 1252A or 1252B) collected from the data plane and control plane nodes of the IPPC, such as resource usage and other performance measurements, the number of packet processing actions performed per stream or per application during various intervals, and the like. In the depicted embodiment, a cell-level health manager 1262 may be responsible for collecting node health information about the various nodes of the IPPC and providing the health information to a higher-level health data aggregator.
[0097] Although in various embodiments, decision master nodes (DMNs) may primarily perform data plane functions, they may need to obtain metadata (e.g., forwarding information base contents and the like) provided by service clients to control plane components. Therefore, in at least some embodiments, one or more of the DMNS 1225 (e.g., DMN 1225A or 1225A) may include a corresponding metadata reader 1228 (e.g., 1228A or 1228B) that obtains client-supplied metadata 1230 (e.g., 1230A or 1230B) required for determining and generating packet processing actions. In some embodiments, when such metadata is received at the API handler cluster 1292, it may be stored as one or more objects within the object storage service, and the metadata reader 1228 of the DMN of the IPPC, whose metadata may be provided as an identifier of the object and appropriate credentials for accessing the object. In some embodiments, a push method may be used to propagate metadata, for example, whenever a client supplies a new version or update, the new version may be immediately transmitted to the metadata reader. In other embodiments, a pull approach may be employed, where metadata readers periodically check for updated client metadata, or a combination of pull and push approaches may be employed, where metadata readers periodically verify that they have the most recent metadata.
[0098] In various embodiments, cell-level metadata and metrics may be collected from multiple IPPCs 1210 of a packet processing service and stored in an aggregate metadata / metrics storage 1272 (which may, for example, also include a number of tables in a high-performance key-value database). Such aggregate information may be used, for example, to enable an operator of a packet processing service to analyze trends across different applications and clients, make long-term equipment purchase plans, etc.
[0099] Node health management
[0100] The packet processing service may be responsible for ensuring that a sufficient number of nodes of the data plane remain operational and responsive to be able to handle the workload of client applications. To do this, multiple availability containers of the type introduced above and a number of node health monitoring and analysis techniques may be implemented in various embodiments. Fig.13An example path of health-related messages between nodes of an isolated packet processing cell is shown according to at least some embodiments. An isolated packet processing cell 1350 similar to the packet processing service discussed earlier in the depicted embodiment includes an AIN 1325 and a DMN 1327 distributed between two availability containers 1340A and 1340B of a provider network. DMN 1327A and AINs 1325A, 1325B, and 1325C are instantiated in availability container 1340A, while DMN 1327B, AINs 1325D, 1325E, and 1325F are instantiated in availability container 1340B.
[0101] In the depicted embodiment, each of the AINs 1325 may be responsible for monitoring and transmitting health (e.g., node reachability and responsiveness) information about other AINs and / or DMNs of the cell. Thus, a given AIN 1325 may periodically send health probe messages to each other AIN of the IPPC, including the AINs in its own availability container and other availability containers being used by the IPPC, and receive corresponding responses from each of the other AINs. For example, as shown, AIN 1325A may send probes not only to AINs 1325B and 1325C in its own availability container 1340A, but also to AINs 1325D-1325F in availability container 1340B. In addition, a given AIN 1325A may also be configured to send health probes to a DMN 1327 within its own availability container 1340, e.g., each of AINs 1325A, 1325B, and 1325C of availability container 1340A sends health probes to DMN 1327A within the same availability container 1340A, while in availability container 1340B, each of AINs 1325D, 1325E, and 1325F sends health probes to DMN 1327B. In at least some embodiments, a form of piggybacking may be used for at least some health information messages 1302. For example, when sending a health probe message to a DMN 1327, the AIN may include the latest health information (e.g., reachability status or the like) available at the AIN about other nodes in the message. In at least one embodiment, when DMN 1327 replies to a health probe, it may include a timestamp indicating when its local metadata reader obtained the most recent version of the client-supplied metadata used to make packet processing decisions at the DMN. In some embodiments, health information collected at the AIN / DMN for individual availability containers for one or more cells may be stored in aggregate tables, such as per-availability container tables 1355A and 1355B.
[0102] In embodiments where virtual machines are employed for IPCC nodes, a given AIN or DMN may itself include multiple execution engines, such as corresponding virtual cores or threads. Fig.14 An example technique is shown that can be used to collect health information within an action implementation node of a packet processing service according to at least some embodiments. In some embodiments, an AIN execution device / platform 1430 (e.g., a virtual machine or a physical machine) can include one or more action implementer processes 1440 and a health agent process 1452. In some embodiments, a data plane development kit (DPDK) including a set of data plane libraries and a network interface controller driver for fast packet processing can be used to create a program embodied as process 1440. In other embodiments, DPDK may not necessarily be used.
[0103] The action implementer process 1440 may in turn include an I / O manager 1427 and a number of workers 1425, such as 1425A-1425C in the depicted embodiment. Individual workers may be responsible for implementing actions for corresponding sets of packet flows, where flow hashing is used in at least some embodiments to select workers for various flows. In some embodiments, the I / O manager 1427 and / or the workers 1425 may each be implemented using a corresponding virtual core or execution thread. In at least some embodiments, the health agent process 1452 may receive health probes sent from other AINs and pass them to the I / O manager 1427. The I / O manager 1427 may in turn forward the corresponding health probes to each of the workers 1425 and collect the corresponding responses. In some embodiments, the probe may be considered as the logical equivalent of a ping or heartbeat message, and the probe response may indicate that the probed worker is alive and can respond to a specific timestamp. From the individual worker-level health response, the health status of the AIN may be determined as a whole, for example, in some embodiments, all workers 1425 may be expected to be responsive in order to declare the AIN healthy. Additionally, in various embodiments, the health proxy process may also send health probes to other AINs and DMNs, receive responses from those nodes (based on similar per-worker responses obtained at those nodes), and pass them to the I / O manager. In at least some embodiments, individual DMNs may also include a health proxy process and a decision-making process with workers and I / O managers, and a similar approach may be used at the DMN. Fig.14 The flow of health-related messages described in .
[0104] In the depicted embodiment, the health proxy process 1452 can transmit the collected health status from the action implementer process 1440 to the health information table 1455. In some embodiments, the table 1455 can include a set 1473 of cell reachability vectors (CRVs) 1472. A given CRV 1472 can, for example, contain a database update timestamp 1430 indicating the time when the CRV was created / inserted into the table, and the corresponding last successful ping time value for each of the AIN (e.g., ping time value entries 1431A-1431K) and DMN (e.g., ping time value entries 1432A-1432J) of the IPPC. The cell reachability vector 1472 can be analyzed and used, for example, at the packet processing service control plane to make decisions about replacement of unhealthy nodes and the like. In the depicted embodiment, each AIN (e.g., the action implementer process of the AIN) can receive responses to health probes sent from the AIN to other nodes, and in at least some embodiments construct a local reachability vector with entries indicating the responsiveness of other nodes, conceptually similar to a cell reachability vector. Similar local reachability vectors may also be constructed at the DMN in such embodiments. In scenarios where the IPPC includes several DMNs, local reachability information at the AIN may be used in some embodiments to pick the "healthiest" (most responsive) DMN as the target for an action query. Similarly, when responding to an action request, local reachability information (which may have been provided to the DMN by the AIN) may be used at the DMN in at least some embodiments to pick the healthiest (most responsive) AIN for the action, e.g., if several AINs are available as potential next hops for routing / forwarding the action.
[0105] Method for implementing cell-based packet processing services
[0106] Fig.15 is a flow chart illustrating aspects of operations that may be performed to implement a multi-layer cell-based packet processing service in accordance with at least some embodiments. As shown in element 1501, in the depicted embodiment, a system similar in features and functionality to Figure 1A pool of isolated packet processing cells (IPPCs) of the layer 3 packet processing service (PPS) of the PPS 102. A given IPPC may include a selected number of AINs (action implementation nodes), decision manager nodes (DMNs), and management nodes (ANs), some or all of which may be implemented using virtual machines of a virtualized computing service in one embodiment. In various embodiments, during normal operation, the transmission of at least some types of packets (e.g., data plane packets) across cell boundaries may be generally prohibited, but in at least some embodiments a given cell (and individual resources within the cell) may be assigned to multiple applications. In at least one embodiment, a pool of IPPCs may be set prior to a request to establish a specific application instance (e.g., a virtual business hub of the type discussed below), wherein each of the pre-provided IPPCs is assigned as needed from the pool for the new application instance. In other embodiments, at least some new IPPCs may be established, for example, on demand, rather than selected from a pre-created pool.
[0107] In the depicted embodiment, a particular IPPC C1 may be assigned to a first application App1 by a set of source and destination endpoints (element 1504). In some embodiments, this assignment may be triggered in response to one or more programmatic requests (e.g., a create application instance request followed by an attach to application instance request, as discussed in further detail below). In at least one embodiment, a virtual network interface may be used for connectivity between the AIN of C1 and the source and destination endpoints, for example, using a multiplexing scheme similar to that discussed earlier.
[0108] In some embodiments, dedicated metadata (e.g., entries in a forwarding information base) and / or client-specified policies (element 1507) that will be used to make packet processing decisions may be obtained, for example, via the control plane programming interface of the PPS. In various embodiments, the metadata and policies may be propagated to the DMN of C1. In some embodiments, as discussed earlier, a cluster of API handlers of the PPS may receive metadata and policies and transmit them to one or more ANs of the relevant IPPC, where the AN may transmit the metadata to the DMN. In other embodiments, the API handler may transmit metadata and policies directly to the DMN of the appropriate cell. In some embodiments, an intermediate cluster of API handlers may not be required; in fact, the AN of the IPPC may receive management or control plane requests submitted by the client. The policy may, for example, indicate various aspects of the logic that will be used to generate packet processing actions for the application, such as which combination of headers of the received packet should be analyzed to determine the content of the header of the outbound packet, how the header content of the outbound packet should be generated, how many outbound packets will be transmitted per received packet, etc.
[0109] After the metadata has been distributed, App1 packets may be permitted to begin flowing from the source endpoint to the selected AIN (element 1510) (e.g., where a particular AIN for a given packet of a group or flow is selected using a shuffle slicing technique of the kind described above). The AN may begin collecting metrics from the AINs and DMNs, and may initiate cell reconfiguration / migration operations when needed, e.g., when some AINs / DMNs become unhealthy or unresponsive, or when the overall workload of C1 exceeds a threshold (which may occur due to other applications to which C1 has been assigned).
[0110] A particular AIN of C1, AIN-k, may receive a packet from a source endpoint of App1 (element 1513). In at least some embodiments, AIN-k may attempt to find (e.g., using a key generated by applying a hash function to some combination of the packet's header or flow identifier) a corresponding action in a local action cache. If an action for the packet (and other related packets of the flow) is found in the cache, as detected in an operation corresponding to element 1516, the action may be executed by AIN-k (element 1519), resulting in one or more packets being sent to one or more destination endpoints of App1. In some cases, depending on the manner in which the source and destination endpoints are connected to the various AINs of C1, AIN-k may be able to send the packet to the destination endpoint without utilizing another AIN; in other cases, the outbound packet may be sent along a path that includes one or more other AINs of C1. In some embodiments, the outbound packet may include a transformed version of the received packet, for example, one or more header element values may be changed in the packet processing action.
[0111] If an action for the received packet is not found in the local cache at AIN-k (also via an operation corresponding to element 1516), then in the depicted embodiment, an action query may be transmitted from AIN-k to the selected DMN DMN-p of C1 (element 1522). DMN-p may be selected using any of a number of techniques in different embodiments, such as flow hashing, random selection, responsiveness of different DMNs of C1 to health probes from AIN-k, etc. In the depicted embodiment, DMN-p may use propagated application metadata and / or policies to generate actions, and provide a representation (e.g., an executable representation) of the action to AIN-k. In some embodiments, actions may be expressed, for example, using instructions of a virtual machine based on registers in a kernel optimized for, for example, eBPF or similar networking operations. In the depicted embodiment, AIN-k may execute the received action and store it in its cache, from which the action may be retrieved if / when additional related packets are received at AIN-k. When additional packets arrive at any of the AINs, in various embodiments, operations corresponding to element 1513 may be performed forward.
[0112] Virtual Business Hub using Packet Processing Services
[0113] In various embodiments, packet processing services of the type described above may be used for a variety of applications. Fig.16 An example system environment is shown in which a virtual business hub for managing business flows between isolated networks using cell-based packet processing services can be implemented according to at least some embodiments. As shown, system 1600 may include multiple isolated networks 1640, such as 1640A, 1640B, 1640C, and 1640D, each of which may include one or more computing devices having a corresponding network address selected from an address range selected for the isolated network. In at least some embodiments, the address range used in one or more of the isolated networks 1640 may include private addresses that are not announced outside the network by default. Therefore, in such embodiments, a routing / forwarding intermediary may be required to enable packets to flow between resources of different isolated networks, and a scalable virtual business hub (VTH) 1602 may be established to help meet such connectivity requirements. Conceptually, a higher-level hub-spoke network can be constructed by isolated virtual networks 1640 that are linked to each other via a virtual business hub 1602, similar to a spoke effect. In the depicted embodiment, the VTH may be set up using the control plane and data plane resources of a packet processing service (PPS), for example, the control plane of the PPS may be responsible for automatically adding data plane nodes as more isolated virtual networks are programmatically attached to the VTH, or as traffic increases from existing isolated virtual networks that have been programmatically attached to the VTH. In some embodiments, the virtual service hub may be referred to as a virtual router or a virtual gateway.
[0114] At a high level, in various embodiments, a given instance of a VTH may include a set of fast path PPS resources 1610 (e.g., a series of one or more action implementation nodes or AINs with corresponding action caches, similar to the AINs discussed earlier), a set of slow path PPS resources 1614 (e.g., a series of routing decision master nodes or DMNs, similar to the DMNs discussed earlier), and a set of routing / forwarding metadata or network state information entries 1608 (e.g., forwarding information base or FIB entries, associated policies, and the like). In the depicted embodiment, the routing / forwarding metadata 1608 may determine and generate actions based on the requirements of the client of the PPS. In some embodiments, the PPS control plane metadata 1690 may, for example, indicate a mapping between various VTH instances and corresponding data plane resources (AINs, DMNSs, etc.) assigned to the VTH instances. The term "routing decision layer" may be used to collectively refer to the DMNs assigned to the VTH in at least some embodiments, and the term "action implementation layer" may be used to collectively refer to the AINs. The term "routing action" may be used in various embodiments to refer to at least some of the actions performed at the action implementation layer (which may be as simple as forwarding a packet, and in some cases, may include transforming / copying the packet in various ways before forwarding it). In some embodiments, at least some of the AINs and / or DMNs assigned to a VTH instance may be part of an isolated virtual network of a provider network (e.g., implemented using their respective virtual machines). In at least some embodiments, each of the hosts / servers for the AINs and / or DMNs may be used for multiple VTHs and / or multiple clients, e.g., a multi-tenant approach may be used for managing resources for the VTHs.
[0115] Based on its routing / forwarding metadata 1602, in at least some embodiments, the VTH may not necessarily permit network traffic to flow between all pairs of isolated networks attached to the VTH. For example, as indicated by arrows 1655A, 1655B, 1655C, resources in isolated network 1640C may be in Fig.15In the depicted scenario of , resources in each of the other three isolated networks 1640A, 1640B, and 1640C are communicated via VTH 1602. However, although resources in isolated networks 1640B and 1640D can communicate with resources in each other (as indicated by arrow 1655D) and communicate with resources in isolated network 1640C via VTH 1602, they cannot communicate with resources in isolated network 1640A. Similarly, in the depicted example scenario, resources in isolated network 1640A can only communicate with resources in isolated network 1640C via VTH 1602. In fact, in at least some embodiments, one or more routing domains (each with a corresponding routing table) can be generated and managed using VTH 1602 according to domain-specific metadata 1608 provided to the VTH, wherein traffic is routed only within a specific isolated network belonging to a given domain. It should be noted that in at least some embodiments, connectivity between several different types of isolated networks can be implemented using a single VTH instance 1602. For example, in one situation, Fig.16 Isolated networks 1640C and 1640D may be a pair of isolated virtual networks (IVNs) of a virtualized computing service (VCS), each of which includes resources located within a data center of a provider network. Isolated network 1640A may include a collection of resources at a location external to the provider network, such as a customer's data center, connected to the VCS via a VPN connection, while isolated network 1640B may also be connected to a different collection of external resources of the VCS via a dedicated physical link of the type discussed above. In various embodiments, some VTH instances may be used for connectivity between homogeneous collections of isolated networks (e.g., all IVNs within a provider network, all VPN-connected external networks, or all dedicated link-connected external networks), while others may be used for connectivity between heterogeneous collections of isolated networks.
[0116] According to some embodiments, the system may include one or more computing devices of a packet processing service. The computing device may include instructions that, when executed on a processor, cause the computing device to obtain or receive one or more programming requests to configure a virtual service hub (VTH) as an intermediary for network services between multiple isolated networks. In response to the programming request, in various embodiments, metadata indicating a resource set assigned to the VTH may be stored, for example, in a control plane repository of the service. The resource set may include, for example, at least a first action implementation node (AIN) and at least a first routing decision master node (DMN). In some embodiments, an isolated packet processing cell (IPPC) of the type introduced earlier may be assigned to the VTH. In various embodiments, network status information entries such as FIB entries or the like may be propagated, for example, from a PPS control plane to a DMN assigned to the VTH.
[0117] In the depicted embodiment, at the first AIN, a first executable action or instruction may be obtained from the first DMN, for example, in response to an action query. In some embodiments, an action may be generated for one or more packets of a first network flow, wherein the first network flow is distinguished from other network flows by one or more header entries of at least one data packet received from the first isolated network at the first action implementation node. The first executable action may be generated at the DMN at least in part based on the network state information entry. In at least some embodiments, an indication of the semantics of the first executable action may not be provided to the AIN, that is, the exact details of what is being completed in the action may not be provided, and the action implementation node may simply be responsible for quickly executing the action when a packet corresponding to the action is received. In at least some embodiments, an instruction set of a virtual machine based on registers in the kernel optimized for network processing may be used to express executable actions. The executable action may be stored at the AIN in a high-speed cache memory with a flow index (e.g., a high-speed cache memory where the flow identifier can be used as a keyword for performing a search for the action). In various embodiments, based at least in part on implementing the executable action at the first AIN, the content of one or more packets of the first network flow may be transmitted from the first AIN to another isolated network on a path. In some cases, the path may include one or more other AINs in some embodiments. In various embodiments, a number of programming interfaces (e.g., APIs, command line tools, web-based consoles, graphical user interfaces, and the like) may be implemented to enable PPS clients to submit various types of requests about the VTH and receive corresponding responses. In at least some embodiments, equal cost multi-path (ECMP) technology may be employed at the VTH to enable high bandwidth for message traffic. In embodiments in which a VTH is established using a managed packet processing service of the type described, the client of the service may not need to contribute any of its own resources (e.g., a hardware router or virtual machine acquired by the client or allocated to the client) to implement scalable routing of network packets between various isolated networks.
[0118] In at least one embodiment, many different metrics associated with the virtual business hub instance 1602 can be collected at the packet processing service and provided to the client as needed, for example, via an easy-to-use visualization interface and / or other programming interface. For example, for a given VTH hub, the metrics collected and provided may include the total number of inbound packets received during a given time interval, the total number of outbound packets transmitted during a given time interval, the total number of inbound packets whose outbound packets were not generated during a given time interval (for example, because the routing / forwarding metadata for the inbound packets is not provided to the VTH, or because the client has sent a programming instruction to discard packets that meet the specified criteria), etc. In some embodiments, the rates of inbound, outbound and discarded packets, for example, expressed in units per second, may also be provided or actually provided. In some embodiments, separate metrics may be provided for different reasons for discarding packets, for example, the number of packets discarded due to insufficient routing / forwarding information can be separated from the number of packets discarded based on instructions submitted by the client. In at least one embodiment, the metrics may also be decomposed by isolated networks, for example, a corresponding set of metrics may be presented for each of the four isolated networks 1640A-1640D. In one embodiment, metrics aggregated for different categories of isolated networks may be presented, such as IVNs within a provider network's VCS, for networks connected via VPNs, for networks connected via dedicated physical links. In at least some embodiments, a provider network implementing a packet processing service may implement a metrics service that may be used to obtain metrics about various other services of the provider network, and VTH-related metrics may be presented via this metrics service.
[0119] Customer perspective on underlying implementation
[0120] Fig.17 An example of a packet data path between isolated networks connected via a virtual service backbone, such as from a customer perspective and implemented using a packet processing service, is shown in accordance with at least some embodiments. In the depicted example scenario, a packet processing service may be provided on behalf of respective customers or clients C1 and C2 of the packet processing service in a functionally similar manner. Fig.161702. From the customer's perspective 1702, a programming request may be submitted, for example, to create a VTH instance, and another programming request may be used to programmatically attach or associate an isolated network 1740 (e.g., 1740A, 1740B, 1740C, or 1740D) to a specified VTH. In some cases, another programming request may be used to submit routing / forwarding metadata, which will be used to determine or generate actions for a given routing domain at a given VTH. After the VTH instance 1710 has been created and the logical association / attachment 1720 (e.g., 1720A, 1720B, 1720C, or 1720D) of the isolated virtual network to the VTH has been performed, from the customer's perspective, services may begin to flow between isolated networks 1740 via the VTH, for example along logical data paths 1722A or 1722B. In some embodiments, the customer may not necessarily know the details of exactly how many nodes are being used at the VTH instance, the paths along which packets are transmitted between nodes serving packet processing, etc. In other embodiments, at least some of the details may be provided to the customer, for example, in response to a programmatic request.
[0121] Within the packet processing service, as indicated in the underlying multi-tenant AIN view 1705, multiple AINs 1730 (e.g., action implementation nodes 1730A-1730M belonging to a given isolated packet processing cell of the type discussed earlier) may be assigned to each of the two CTH instances 1710A and 1710B. A shuffle slicing algorithm may be used to identify, for a given flow, a subset of AINs 1730 that will be used for packets of a given flow originating from a given isolated network 1740. Thus, for example, for a given flow of packets transmitted from isolated network 1740A to isolated network 1740B, any one of the three AINs 1730A, 1730F, and 1730L may be used to process inbound packets, while AINs 1730C, 1730I, or 1730G may be used to transmit outbound packets. Similarly, for another flow associated with the isolated network of customer C2, AINs 1730B, 1730J, and 1730M may be available for inbound packets from isolated network 1740C, and AINs 1730B, 1730H, and 1730J may be available for outbound packets to isolated network 1740D according to shuffle fragmentation alternative 1777. In the depicted embodiment, a given packet of a flow from a source resource or endpoint of isolated network 1740A may be processed, for example, at AIN 1730A, and, as a result of the actions performed at AIN 1730A, a corresponding forwarded packet may be sent from AIN 1730A along path 1772A to AIN 1730G and from AIN 1730G to a destination resource at isolated network 1740B. In some cases, in various embodiments, where data path 1772B is traversed, an AIN (e.g., 1730) that receives an inbound packet of a flow may be able to transmit the corresponding outbound packet directly to the destination isolated network (1740D in the example associated with path 1772B), rather than using another intermediary AIN. Fig.17 As indicated in , at least some AINs may be configured in multi-tenant mode to be used on behalf of different customers' VTHs, e.g., AIN 1730F may be used for packets associated with isolated network 1740A of customer C1, and for packets associated with isolated network 1740C of customer C2. In some embodiments in which a cell including multiple AINs 1730 (or multiple DMNs) is assigned to more than one VTH instance, any of the AINs (or DMNs) of the cell may be used for any of the VTHs, e.g., depending on the shuffle sharding or other workload distribution algorithm being used.
[0122] Central data plane node elements
[0123] As mentioned previously, in at least some embodiments, a virtual service hub may be assigned a set of one or more action implementation nodes and a set of one or more routing decision master nodes. Fig.18 An example of management of a virtual service hub-related packet processing workload at an action implementation node of a packet processing service according to at least some embodiments is shown. In the depicted embodiment, at least one virtual network interface 1852 (similar to a virtual network interface 1852) may be established for network services entering and exiting an AIN (action implementation node) execution device / platform 1830. Figure 4 1825B). For example, in some embodiments, the platform 1830 may include a virtual machine implemented at a virtualized computing service of a provider network. In the depicted embodiment, the action implementation node itself may include an I / O manager 1827 and one or more workers 1825 (e.g., 1825A, 1825B, or 1825C). It should be noted that in some embodiments, control plane and health management related operations may also be performed by the I / O manager and workers, such as in Fig.14 discussed earlier in the context of; Fig.18 More emphasis is placed on data plane operations.
[0124] In at least some embodiments, I / O manager 1827 may be referred to as a work distributor because it may be responsible for receiving packets via virtual network interface 1852 and directing a given packet to a specific worker 1825 for processing, where the worker is selected using, for example, a consistent deterministic flow hash algorithm 1862 applied to a flow identifier associated with the packet. Inputs to the flow hash algorithm may include, for example, Figure 5One or more flow identification packet header elements of the type discussed earlier in the context of . In different embodiments, the deterministic flow hash can represent an instance of a deterministic mapping function that can be used to select a worker 1825 for a given packet or flow. In at least some embodiments, each of the workers 1825 and / or I / O managers 1827 may include one or more virtual cores or threads. In at least some embodiments, the worker 1825 may include an execution engine for a program expressed in an instruction set of a virtual machine based on registers in a kernel optimized for network processing similar to eBPF. In other embodiments, such a virtual machine instruction set execution engine may not be used. In some embodiments, each worker 1825 may instantiate and / or use an action cache memory with an associated per-worker flow index, and a representation of an executable action generated at a decision master node may be stored therein. When a packet is received from the I / O manager at the worker 1825, the action for it can be found in the corresponding cache memory and executed when a cache hit occurs. If the action is not in the cache, the worker can indicate to the I / O manager that a cache miss has occurred, and in at least some embodiments an action query can be sent from the I / O manager to the decision master node. In various embodiments, entries can be removed or evicted from the action cache based on various factors, such as a usage timing record indicating that a given action has not been executed within a threshold amount of time. In at least some embodiments, locks or other concurrency control mechanisms may not be required to access individual caches, and / or store / evict cache entries, for example, because when deterministic mapping techniques of the type discussed above are used to select workers for handling flows, it can be expected that only a single worker will access entries associated with a given flow.
[0125] As the name implies, in the depicted embodiment, the I / O manager 1827 can be responsible for the data plane input / output operations of the workers 1825, e.g., the I / O manager can act as an intermediary for messages between individual workers 1825 and other entities (including other AINs, DMNs, and the like). In at least some embodiments, a given worker 1825 may not necessarily communicate directly with other workers at the device 1830; in fact, all communications to / from the workers can flow through the I / O manager. In some embodiments, the workers and the I / O manager can be implemented as parts of the same program or application, e.g., a program implemented using a data plane development kit or DPDK.
[0126] In at least one embodiment, a virtual machine or execution device of an AIN for a virtual service hub may have several different virtual network interfaces (VNIs) attached, for example, one for services from / to an isolated network, and others for communications with a DMN, other AINs in the same cell, management nodes, etc. In some embodiments, one or more branch VNIs may be programmatically associated with a single trunk VNI, and such branch VNIs may be used to communicate with other AINs, DMNs, etc.
[0127] Fig.19 An example of management of a virtual business hub-related packet processing workload at a decision master node of a packet processing service according to at least some embodiments is shown. In the depicted embodiment, at least one virtual network interface 1952 can be established for network services entering and exiting a DMN (decision master node) execution device / platform 1930. For example, in some embodiments, the platform 1930 may include a virtual machine implemented at a virtualized computing service of a provider network. In the depicted embodiment, the DMN itself may include an I / O manager 1927, one or more workers 1925 (e.g., 1925A, 1925B, or 1925C), a local copy of at least a portion of a routing table 1926, and / or a routing table synchronization manager 1966.
[0128] As in the case of the I / O manager of the AIN, in at least some embodiments, the I / O manager 1927 of the DMN may be referred to as a work distributor because it may be responsible for receiving messages (e.g., action queries corresponding to packets received at the AIN) via the virtual network interface 1952 and directing a given message to a specific worker 1925 for processing. In some embodiments, the DMN worker 1927 may be randomly selected from the available workers at the device 1930, while in other embodiments, the worker may be selected, for example, using a consistent deterministic flow hashing algorithm. In at least some embodiments, each of the workers 1925, the routing table synchronization manager 1966, and / or the I / O manager 1927 may include a virtual core or thread. In some embodiments, the worker 1925 may include a code generator for expressing a program in an instruction set of a virtual machine based on registers in the kernel optimized for network processing similar to eBPF. In other embodiments, such a code generator may not be employed. In some embodiments, each DMN worker 1925 may have access to a common or shared routing table 1926 into which the contents of a metadata table 1955 (e.g., managed by a packet processing control plane) or information derived from such a table may be stored by a synchronization manager 1966. In some embodiments, the synchronization manager 1966 may update the routing table 1926, e.g., using entries from the cell-level metadata table 1955, thereby ensuring that recent changes to routing / forwarding information provided by the client are reflected at the DMN.
[0129] When an action query (including some indication of a packet for which a cache miss occurred at the AIN) is received from the I / O manager 1927 at a worker 1925, a corresponding route for the packet that caused the cache miss may be looked up in at least some embodiments (e.g., using a longest prefix match (LPM) lookup algorithm). If the lookup 1933 is successful, an executable version of the action to route the packet (and other packets of the same flow, if any) may be generated at the worker 1925 and sent back to the AIN from which the action query was received, e.g., via the I / O manager 1927. In some embodiments, if a route for the packet is not found, a default action (e.g., an action that results in discarding the received packet) or an error handling action (e.g., sending an error message to the source endpoint from which the packet was received at the AIN) may be generated in some embodiments and sent to the AIN. In the depicted embodiment, the DMN I / O manager 1927 may be responsible for the data plane input / output operations of the workers 1925, e.g., the I / O manager may act as an intermediary for messages between individual workers 1925 and other entities (including AINs and the like). In at least some embodiments, a given worker 1925 may not necessarily communicate with other workers at device 1930. In some embodiments, DMN workers 1925 and DMN I / O managers 1927 may be implemented as parts of the same program or application, for example, a program implemented using a data plane development kit or DPDK.
[0130] In at least one embodiment, a virtual machine or execution device of a DMN for a virtual service hub may have attached thereto several different virtual network interfaces (VNIs) 1952. For example, one VNI 1952 may be used for services from / to the AIN, and others may be used for communications with other DMNs, management nodes, etc. of the same cell.
[0131] Protocol for AIN-DMN interaction
[0132] In some embodiments, an encapsulation protocol may be used for communications assigned to virtual service hubs and between AINs and DMNs. For example, this protocol may be used in embodiments where the AIN and / or DMN are implemented using respective virtual machines, each of which may have one or more virtual network interfaces with respective IP addresses. In such embodiments, encapsulation may be performed for AIN-to-DMN and DMN-to-AIN communications because the network address of the physical network interface at the host where the AIN / DMN is instantiated does not match the address of the virtual network interface attached to the AIN / DMN. (In at least some embodiments, encapsulation may also be performed for similar reasons during communications between a source virtual machine at an isolated network from which an application packet originates and the AIN.)
[0133] Fig. 20 An example of an interaction sequence between an action implementation node and a decision master node is shown according to at least some embodiments. In the depicted example, events at four types of entities are shown: a source endpoint 2002 that generates a packet and sends it to a virtual service hub similar to the one discussed above, the AIN layer 2010 of the virtual service hub, the DMN layer 2015 of the virtual service hub, and a destination endpoint 2020 to which the original packet is directed. It should be noted that in various embodiments, Fig. 20 Each of the events shown in may take a different amount of time, for example, generating an executable action may take longer than transmitting a message.
[0134] In the event marked E1, an original packet OP (e.g., the very first packet of the flow) is generated and sent to the AIN layer 2010. In event E2, a cache miss occurs in the action cache of the AIN that receives the OP, and an encapsulated version of the received packet EOP representing the action query is sent to the DMN selected at the DMN layer 2015. It should be noted that for at least some applications, quite large messages can be transmitted from the source 2002 to the destination 2020, so it is not straightforward or possible in at least some cases to add a large amount of metadata (e.g., encapsulation header, generated executable actions, etc.) to the message frame containing the OP. Because the executable actions generated at the DMN itself can include a large number of bytes (e.g., hundreds of bytes or even thousands of bytes), in some embodiments, the actions and OP can be sent back to the requesting AIN in multiple messages rather than a single message.
[0135] Upon receiving the EOP, the DMN may extract the OP from the EOP and obtain the flow identifier from the OP as part of event E3 in the depicted embodiment. A longest prefix match (LPM) algorithm may be used to query the routing table and / or forwarding table to determine the action to be performed for the OP, and in some embodiments, an executable version of the action (e.g., in the form of eBPF byte code) may be generated. In event E4, in the depicted embodiment, the action and flow identifier may be sent back to the AIN from which the action query was received. At the AIN layer 2005, in event E5, in the depicted embodiment, an executable version of the action may be inserted into the local action cache, for example, using the flow identifier as a key for the cache entry.
[0136] At event E6, in the depicted embodiment, an EOP may be sent back to the AIN from which the action query was received. It should be noted that in at least some embodiments, the AIN may be stateless and therefore no information is maintained at the AIN regarding the fact that it had earlier sent an action query for the OP. In the depicted embodiment, when the AIN receives the EOP, it may extract the OP and its flow identifier, look up the corresponding action in its cache memory (which was inserted in event E5), and execute the action, resulting in the contents of the OP being forwarded to destination 2020. Given the fixed MTU (maximum transmission unit) size used for communication between the various layers, in at least some embodiments it becomes possible to support larger OPs (and / or larger executable actions) by sending the executable action and the OP back to the requesting AIN using separate messages than might have been supported if a single message was sent from the DMN layer back to the requesting AIN. In fact, in Fig. 20 In the example scenario shown in , two messages may be sent back in response to an action query, one containing a representation of the action and causing the AIN to store the action in its cache, and a second message used by the AIN to retrieve the action from the cache and execute / perform the action. In at least one embodiment, if the size of the executable action exceeds a threshold, the action may be split into multiple fragments, and each of the fragments may be sent back from the DMN layer (e.g., along with a flow identifier and a token indicating whether additional fragments are held for the flow identifier) to the AIN layer.
[0137] Routing Instance
[0138] In at least some embodiments, starting with high-level routing / forwarding metadata provided by a client on whose behalf a virtual service hub (VTH) is being established, a filtered routing table can be created at a decision master node assigned to the VTH that can consider details such as subnet membership, availability container membership, etc. to select the most actions for client-submitted packets. Fig.21 , Fig. 22 and Fig.23 Together, examples of creation and use of a filtered routing table at a decision master node designated for a virtual service hub are illustrated in accordance with at least some embodiments.
[0139] exist Fig.21In the embodiment depicted in , an isolated packet processing cell (IPPC) 2150 has been assigned to a particular VTH that will act as a network intermediary between resources distributed among three isolated networks of customer C1: an isolated network 2140A including subnet C1S1, an isolated network 2140B including a different subnet C1S2, and an isolated network 2140C including a third subnet C1S3. The IPPC 2150 includes at least twelve AINs 2130, six of which (2130A-2130F) are in a first availability container (AC) 2131A, and the remaining six (2130H-2130M) are in a second AC 2131B. Subnets C1S1 and C1S2 are also established in AC 2131A, while subnet C1S3 is in AC 2131B. For purposes of Figure 21-23 For purposes of discussion, the six AAINs in AC 2131A may be referred to as members of sub-cell 2150-2131A of IPPC 2150, and the six AAINs in AC 2131B may be referred to as members of sub-cell 2150-2131B.
[0140] In the depicted example scenario, subnet C1S1 has an associated CIDR (Classless Inter-Domain Routing) block 192.168.1.0 / 24, subnet C1S2 has a CIDR block 10.10.1.0 / 24, and subnet C1S3 has a CIDR block 21.12.1.0 / 24. From the perspective of customer C1, in the depicted embodiment, isolated networks 2140A, 2140B, and 2140C can simply be programmatically attached to the VTH to achieve connectivity therebetween. Within the packet processing service for the VTH, in various embodiments, specific paths can be set up between individual isolated networks and corresponding subsets of the AIN, for example using virtual network interfaces (VNIs). For example, in the depicted embodiment, each subnet can be programmatically associated with three AINs within its own availability container: subnet C1S1 with AINs 2130A, 2130C, and 2130D, subnet C1S2 with AINs 2130C, 2130E, and 2130F, and subnet C1S3 with AINs 2130H, 2130J, and 2130M. In at least some embodiments, a corresponding VNI can be set at the AIN for each subnet associated with the AIN, for example, if a given AIN is associated with three subnets, then the AIN can establish three separate VNIs. In various embodiments, such VNIs may be referred to as branch VNIs. In some embodiments, a branch VNI may represent a VNI that can be programmatically associated with a relay VNI of the type discussed earlier to perform additional levels of multiplexing with minimal overhead. For example, in some embodiments, a relay VNI may have several associated private IP addresses, and at least some of the associated branch VNIs may be assigned each of the sets of associated private IP addresses.
[0141] The advanced routing table 2148 may be provided to the control plane of the packet processing service where the VTH is established for Fig.21 0 / 24. In the embodiment of the present invention, the routing table 2149 of the present invention can be used to represent the connectivity between the three isolated networks shown in FIG. At this level, the routing table can simply indicate that if the destination address of the packet belongs to one of the three CIDR blocks, it should be routed to the resources in one of the three corresponding subnets. In the depicted embodiment, the advanced routing table can be used to construct a second-level routing table 2149 considering the subcell information in the transformation step 2199, for example, at the control plane of the packet processing service and / or at the decision-making master node. In this second-level table 2149, the destination information includes the subcell identifier and the identifier of the specific virtual network interface at each of the AINs associated with the subnet. As shown in the figure, for example, the entry for CIDR 192.168.1.0 / 24 indicates that the packet with the destination address in the block can be routed via the VNI with the identifier VNI-1 at AIN 2130A, the VNI with the identifier VNI-2 at AIN 2130C, or the VNI with the identifier VNI-3 at AIN 2130D.
[0142] In at least some embodiments, the second level routing table can be configured in each sub-cell's DMN ( Figure 21-23 DMN is not shown in the figure to avoid confusion) and a corresponding filtered routing table is generated, which takes into account the availability container of AIN. Fig. 222251A and 2251B. In this version of the routing table, the entries in the second-level routing table 2149 can be modified as follows: (a) for entries in the same subcell as the DMN in which filtering is being performed, the VNI identifier information can be retained and the subcell information can be discarded, and (b) for entries in different subcells, the VNI information can be discarded and the availability container information can be included. In at least some embodiments, these two types of changes can be made because the subcell or availability container information may not be required when communicating within a given availability container. In contrast, in such embodiments, when communicating outside of a local availability container, an identifier (e.g., a host identifier or address) of the AIN can be used instead of a branch VNI identifier. As shown, the filtered routing tables 2251A and 2251B generated in each of the subcells or availability containers can have different entries derived from the same second-level table entry. In table 2251A generated in sub-cell 2150-2131A, the sub-cell or availability container information in the first two entries (for CIDRs 192.168.1.0 / 24 and 10.10.1.0 / 24 in the same availability container) is removed, and the identifier of the availability container is appended (e.g., using a notation equivalent to AIN 2130H@AC2131B) for the entry corresponding to the non-local availability container. In contrast, in table 2251B, the VNI identifier may be maintained only for the 21.12.1.0 / 24 entry, and the availability container identifier (@AC2131A) of the remote availability container may be appended to the AIN identifiers used for the other two entries.
[0143] When determining or generating actions for a given packet flow, DMN can use Fig. 22 AIN by using branch VNIs within the same AIN where possible, and / or if such a route is not possible, then in some embodiments, a route that minimizes the number of cross-AIN transmissions may be preferred. Fig.23Table 2351 shows three different example routing resolutions that may be generated by the DMN, each corresponding to packets directed to the same destination 192.168.1.100. In the depicted embodiment, the routing resolution action may vary based on the availability container in which the action is generated by the DMN (and which corresponding filtered table 2251A or 2251B is used at the DMN). Thus, for example, for a packet flow from 10.10.1.1 to 192.168.1.100, if an action is generated at the DMN in availability container 2131A in response to a query from AIN 2130C, then a branch VNI to branch VNI route (VNI-4 to VNI-3) at AIN 2130C itself may be selected, as indicated by the forwarding rule in the first row of Table 2351.
[0144] In contrast, if an action query for the same flow is received from AIN 2130E, filtered routing table 2251A may indicate that AIN 2130E does not have a local branch VNI for reaching the destination, so a different AIN (one of 2130A, 2130C, or 2130D) may be used. As shown in the third row of table 2351, AIN 2130C may be selected for AIN-to-AIN routing corresponding to the flow, and forwarding rules indicate that packets for the flow received at AIN 2130E should be sent to AIN 2130C.
[0145] In the third example shown in the middle row of table 2351, for example, a route across availability container boundaries may be selected when packets originating from 21.12.1.10 are to be directed to 192.168.1.100, and a corresponding action query is generated from AIN 2130H. In this scenario, the first row of filtered table 2251B may be used, and an AIN-to-AIN route with AIN 2130D may be selected for the flow.
[0146] Hub-related programming interactions
[0147] As previously mentioned, in at least some embodiments, the packet processing service may implement a variety of programming interfaces to enable clients to submit requests, for example, to establish an instance of an application such as a virtual business hub, make configuration changes to the hub, and so on. Fig.24 1 illustrates example virtual business hub-related control plane programming interactions between a client and a packet processing service according to at least some embodiments. In the depicted embodiment, the features and functionality of the Figure 1The packet processing service (PPS) 2412 of the PPS 102 may implement a set of programming interfaces 2477, such as an API, a command line tool, a web-based console, a graphical user interface, and the like. In at least some embodiments, an API handler cluster 2478 may receive requests submitted via such interfaces, and may pass internal versions of at least some of the requests to various other components of the PPS 2412. Responses to the requests generated by the other components may be provided back to the client 2410 from the API handler cluster. In various embodiments, the API handler cluster itself may be automatically scaled up and down by the control plane of the PPS as the rate of submitted requests increases or decreases, for example, independently of the scaling of the isolated packet processing cells of the PPS. In other embodiments, a separate API handler cluster may not be used.
[0148] In the depicted embodiment, a client may submit a CreateVTH request via programming interface 2477, requesting the creation of a new instance of a virtual service hub (VTH) of the type introduced earlier. In response, one or more metadata records representing the new VTH instance may be stored at the PPS control plane, and in at least some embodiments, an identifier of the VTH instance (VTHID 2415) may be provided to the client. In some embodiments, several target attributes of the VTH may be indicated in the CreateVTH request, such as the rate at which packets are expected to be processed at the VTH, a response time target for packet transmission, and the like.
[0149] As previously mentioned, in some embodiments, multiple routing domains may be implemented using a given VTH instance, wherein a given routing domain is represented internally to the PPS at least in part by a high-level routing table that will be used to direct traffic between a particular set of isolated networks. Thus, for example, in some embodiments, routing between isolated networks IN1 and IN2 may be determined as part of operations associated with one routing domain RD1 managed using VTH instance VTH1, while routing between isolated networks IN3 and IN4 may be determined as part of operations associated with a second routing domain RD2 managed using the same VTH instance VTH1. Fig.17In the embodiment depicted in , a CreateVTHRoutingDomain request 2417 may be submitted by a client 2410 to establish a new routing domain associated with a specified VTH. In some embodiments, routing / forwarding metadata for the routing domain, such as entries in a routing information base (RIB), a forwarding information base (FIB), routing tables, and the like, may be passed as parameters of the request to establish the routing domain; in other embodiments, the metadata may be provided in a separate programmatic interaction. In response, in some embodiments, the PPS may provide an identifier of the routing domain (RoutingDomainID 2419). In at least one embodiment, by default, a given VTH may be associated with a single automatically created routing domain, so a separate request to create a first routing domain for the VTH may not be required. In a scenario where multiple routing domains are associated with a given VTH instance, the VTH may be responsible for transmitting the contents of network packets between isolated networks in each of the routing domains without crossing routing domain boundaries in various embodiments.
[0150] In various embodiments, the client may submit a programming request AttachIsolatedNetworkToRoutingDomain 2421 to associate a specified isolated network (e.g., identified using one or more virtual network interface identifiers to be used for communication between the isolated network and the VTH) with a routing domain. In some embodiments, an identifier of the routing domain may be included as a parameter of the request 2421. In one embodiment, if the VTH instance has only one routing domain, then an identifier of the domain may not be required. In response to the attachment request 2421, in some embodiments, additional metadata indicating that the specified isolated network has been linked to the VTH instance may be stored at the PPS control plane, and an attachment identifier 2423 may be provided to indicate that the requested attachment has been completed. After the attachment is completed, packets may be permitted to flow between the isolated network and the nodes of the VTH, for example, via one or more virtual network interfaces, in various embodiments. In at least one embodiment, a polling mode driver (e.g., a DPDK polling mode driver, which does not require asynchronous notifications and therefore results in lower processing overhead than at least some other methods for data transmission) may be used to transmit packets to the AIN (e.g., to an I / O manager of the type discussed earlier). In at least some embodiments, the particular isolated network being attached may be configured at a location external to the provider network data center implementing the PPS. In some embodiments, a VPN connection or a dedicated physical link ("direct connection") to the provider network may be indicated in the attach request 2421 (e.g., by identifying one or more gateways set up for traffic to the external network). In some embodiments, separate types of attach request APIs may be supported for isolated virtual networks external to the provider network, e.g., an AttachIsolatedNetworkViaVPN API may be supported for VPN scenarios, and an AttachIsolatedNetworkViaDirectConnectAPI may be supported for attaching an isolated network connected to the provider network via a dedicated physical link.
[0151] In different embodiments, the assignment of the isolated packet processing cell (IPPC) to the VTH instance may occur in response to the first attachment request 2421 for the routing domain, in response to the request 2417 to create the routing domain, or in response to the request 2414 to create the VTH instance. Therefore, in different embodiments, the specific request that triggers the assignment of data plane resources (a certain set of action implementation nodes and decision master nodes) may be different.
[0152] In the depicted embodiment, a programmatic DescribeVTHConfig request 2425 may be submitted by a client 2410 to view various properties of a VTH, such as the number of routing domains of the VTH, the number and identifiers of different isolated networks attached to a routing domain or VTH, the number of data plane nodes at each layer, etc. In response, in the depicted embodiment, the requested information may be provided via one or more VTHConfigInfo messages 2427. In at least one embodiment, a user-friendly graphical view of the configuration may be provided.
[0153] The client 2410 may submit various types of ModifyVTHConfig messages 2429 in different embodiments to request changes to the configuration of the VTH. In different embodiments, such changes may, for example, include modified / additional FIB entries or specific routes supplied by the client, changes to the policy used to determine the action, changes to the number of AINs and / or DMNs being used (e.g., increasing the number of AINs / DMNs to handle increased business levels), changes to the availability or performance targets of the VTH, and the like. The PPS control plane may verify that the requested changes are acceptable relative to the PPS's own policies on security, accounting, and the like, and make the requested changes if they are found to be acceptable. In some embodiments, a ModComplete message 2431 may be sent to the client to indicate that the requested changes have been performed.
[0154] In at least one embodiment, multiple VTH instances can be established on behalf of a client (e.g., in different geographic regions), and the client can submit a LinkVTHs request 2433 to establish a network path between a pair of VTH instances. In some embodiments, this request may be referred to as a hub link request. In response, in the depicted embodiment, appropriate networking configuration changes can be implemented at the PPS control plane, metadata indicating that the path between the pair of VTH instances has been configured / established can be stored, and a LinkComplete message 2435 can be sent to the client to indicate that the two VTH instances have been linked to enable traffic to flow between them. After this hub link is completed, in various embodiments, traffic can be routed / forwarded from an isolated network associated with a first VTH to a second isolated network through a second (linked) VTH.
[0155] In some embodiments, Fig.24One or more other types of VTH-related programmatic requests not shown in the figure may be submitted by the client 2410 and satisfied at the PPS. For example, in one embodiment, a given VTH instance may be shared among multiple client accounts, for example, in response to the equivalent of a ShareVTHWithAccounts(AccountsList) request indicating a set of client accounts and the VTH instance to be shared. In some embodiments, an authorized client may programmatically accept or reject attachment requests submitted by other clients or users, for example, client C1 may establish a VTH, share the VTH with other clients or users, and if / when one of the other clients or users submits an attachment request, C1 may send a programmatic request to approve or reject the attachment of a specified isolated network to the VTH. In one embodiment, programmatic requests for packet processing metrics of the types discussed earlier may be supported (e.g., the total number of inbound packets received at the VTH from one or more isolated networks in a specified time interval, the total number of outbound packets sent from the VTH to one or more isolated networks, the total number of inbound packets discarded, etc.). In at least one embodiment, Fig.24 At least some of the requests of the types indicated in and / or discussed above may not necessarily be supported by the packet processing service.
[0156] The hub of links
[0157] In some embodiments in which a packet processing service in which a virtual business hub is established is implemented at a provider network, the resources of the provider network may be geographically distributed, for example, between a number of regions, where individual regions include corresponding sets of cities, states, or countries. Some clients of this packet processing service may also have corresponding isolated networks in different geographic regions within the provider network, or in external premises. In at least some embodiments, the packet processing service may support the linking of virtual business hubs in response to client requests, for example, enabling business to be routed between geographically distant isolated networks. Hubs may also or actually be linked for other reasons, for example, based on a client's preference that they may wish to separate groups of isolated networks and associated hubs for management purposes while still enabling business to flow between groups.
[0158] Fig.25 An example scenario is shown in which multiple virtual business hubs can be programmatically linked to each other according to at least some embodiments. In the depicted embodiment, a similar Figure 1Two VTH instances, 2502A and 2502B, are established for the same customer of the packet processing service of the PPS 102 of FIG. The isolated networks 2540A and 2540B have been programmatically associated with the VTH 2502A, while the isolated networks 2540C, 2540D, and 2540E have been programmatically associated with the VTH 2502B. In at least some embodiments, the isolated networks 2540A and 2540B and the VTH 2502A in the depicted scenario may be, for example, located in a different geographic region from the isolated networks 2540C-2540E and the VTH 2502B, but such geographic separation may not be required to link the VTHs. In response to a programmatic request from a client, a hub-to-hub link 2572 may be established in the depicted embodiment, including, for example, a certain set of networking intermediaries, such as one or more routers, gateways, or the like. In the depicted embodiment, appropriate routing metadata may be propagated to the intermediaries to enable data packets to flow along one or more multi-VTH paths 2556. In some embodiments, the paths may utilize high-speed dedicated physical links associated with the provider network. By setting up such VTH-to-VTH links in response to client requests, in some embodiments, the packet processing service may enable the setting up of arbitrarily complex hub and spoke configurations, wherein resources in the spoke-isolated networks of any given hub can efficiently and in a scalable manner communicate with other resources in the spoke-isolated networks of other hubs that may be geographically distant.
[0159] Method for supporting a virtual business hub
[0160] Fig.26It is a flowchart showing the operational aspects of routing services between isolated networks using a virtual business hub that utilizes resources of a packet processing service according to at least some embodiments. As shown in element 2601, for example, metadata indicating that one or more AINs (action implementation nodes) and DMNs (decision master nodes) of a packet processing service have been assigned to a virtual business hub (VTH) instance that will act as a packet forwarding intermediary between multiple isolated networks can be stored at the control plane of the service. In different embodiments, each of AIN and DMN can be implemented using one or more physical and / or virtual computing devices. In some embodiments, the packet processing service can be implemented as part of a set of services including a virtual computing service (VCS) of a provider network, and one or more of the isolated networks can include corresponding isolated virtual networks set up on behalf of VCS clients. Other isolated networks can include, for example, networks on premises owned or managed by a client, such as a data center outside a provider network. In some embodiments, a VTH instance can be created, and metadata indicating the assignment of AIN and DMN can be stored in response to one or more programming requests directed to the packet processing service. For example, in one embodiment, one programming request may result in the storage of metadata indicating that a new VTH has been created (without associating the VTH to any isolated network), and metadata indicating AIN / DMN assignments may be generated in response to a second request to attach one or more of the isolated networks to the VTH. As previously mentioned, in some embodiments, a given VTH may be established for routing traffic for several different routing domains. In some embodiments, a VTH similar to Figure 1 At least one of the IPPCs shown is assigned to the VTH.
[0161] As indicated in element 2604, network state information entries (e.g., FIB entries) and / or routing / forwarding policies that can be used to determine and / or generate packet processing actions for groups of related packets originating at the isolated network can be propagated to the DMN. In at least one embodiment, the client can provide routing information base (RIB) entries to one or more control plane components of the packet processing service instantiated by the VTH via a programming interface, and corresponding forwarding information base (FIB) entries can be generated from the RIB entries and included in the state information provided to the DMN. After the metadata has been propagated, in at least some embodiments, packets can be allowed to flow from resources within the isolated network to the AIN designated for the VTH (element 2607).
[0162] In the depicted embodiment, a given AIN, AIN-k can receive a packet from a certain source endpoint within a given isolated network (element 2610). In various embodiments, AIN-k can be selected as the recipient of a packet, for example, based on the use of a flow hash and / or shuffle fragmentation algorithm. In the depicted embodiment, AIN-k can attempt to use, for example, the flow identifier of the packet as a search keyword to find the packet forwarding action to be implemented for the received packet in the local cache memory. If this action is found in the cache memory, as detected in the operation corresponding to element 2613, an action can be performed at AIN-k, resulting in one or more outbound packets corresponding to the received packet being sent to one or more destinations in another isolated network associated with VTH (element 2616). In some cases, an outbound packet can be sent along a path comprising another AIN, and in other embodiments, the path may not include any other AIN except AIN-k itself.
[0163] In the depicted embodiment, if the representation of the forwarding action is not found in the cache memory, then AIN-k can transmit the action query to the specific DMN (DMN-p) assigned to the VTH (element 2619).DMN-p can use the network state information entry and / or strategy of the DMN propagated to the VTH earlier to generate executable packet processing / forwarding actions and send the executable actions to AIN-k.In various embodiments, the AIN-k can cache and perform actions.In some embodiments, the action can be, for example, expressed as an instruction set of a virtual machine based on registers in the kernel optimized for networking operations.If / when the next packet is received at the AIN assigned to the VTH, in various embodiments, the operation corresponding to element 2610 can be performed forward for the newly received packet.
[0164] As previously mentioned, in at least some embodiments, the packet processing service can implement one or more programming interfaces. In response to programming requests submitted via such interfaces, several different management or control plane VTH related operations (element 2622) can be performed. For example, in some embodiments, properties or metrics associated with VTH (e.g., the rate at which packets are received from each of the isolated networks, the rate at which packets are forwarded to each of the isolated networks, the resource utilization level at various nodes of VTH, etc.) can be provided in response to programming requests. In different embodiments, in response to other types of requests, additional isolated networks can be programmatically attached to the hub, FIB entries and / or other metadata can be updated or provided to the packet processing service for use at the VTH, the number of AIN / DMNs assigned to the VTH can be changed, multiple VTHs can be linked, etc.
[0165] Dealing with overlapping private address ranges
[0166] In some embodiments, isolated networks that enable connectivity using a virtual business hub of the type discussed above may each have one or more associated private network address ranges, from which various addresses can be assigned to different resources (e.g., physical or virtual machines) within the isolated network. As indicated by the use of the term "private" to describe such addresses, these addresses may typically not be announced outside the isolated network, at least by default. Because the address ranges are private and can be independently selected by the respective administrators or owners of the isolated networks, it is sometimes the case that the address ranges of two or more isolated networks overlap. In such scenarios, some form of address translation may be required when enabling communication between resources with potentially identical addresses. In at least some embodiments, the virtual business hub may be configured to implement such address translation, for example, as part of an action generated at the routing decision layer of the hub and executed at the action implementation layer of the hub. In some embodiments, appropriate translation rules / mappings for generating actions may be provided by the client. In at least one embodiment, rules / mappings may be automatically generated within the VTH.
[0167] Fig. 27 An example system environment is shown in which a virtual service backbone may be used to connect isolated networks that may have overlapping network address ranges according to at least some embodiments. In system 2700, a client has been represented, for example, using a virtual service backbone similar to Figure 1 The resources of the packet processing service of the PPS 102 of the present invention establish a virtual service hub (VTH) 2750 to enable network services to flow from the isolated network 2702B to the isolated network 2702A, and also to enable network services to flow from the isolated network 2702C to the isolated network 2702A. In the depicted embodiment, the isolated network 2702A may, for example, include a certain collection of servers, such as email servers, file servers, or the like, to which service requests are directed from the isolated networks 2702B and 2702C. The isolated networks 2702B and 2702C may have corresponding private network address ranges 2721A and 2721B, which may potentially overlap with each other. Such overlap may exist, for example, because the networking configurations for the isolated networks may have been set up independently and at different times (e.g., within different commercial or public sector organizations, or within different units of the same organization). In some cases, an isolated network that has been in operation for many years may be connected at some point via a VTH such as VTH 2750, and it may not be practical to change the set of private addresses being used within the isolated network. In different embodiments, each of the isolated networks 2702 may, for example, include an isolated virtual network of a provider network, a customer premises network external to the provider network, and the like.
[0168] In the depicted embodiment, the routing / forwarding metadata 2725 used to generate packet processing actions at the VTH (e.g., at a decision master node that employs a longest prefix match algorithm to look up routing actions) may include a translation map 2757, which may be used to transform the packet header for packets originating from one of the isolated networks 2702B or 2702C when transmitting packets to the isolated network 2702A. For example, consider a virtual machine VM1 with a private IP address 192.168.1.1 in which the isolated network 2702B has, and the isolated network 2702C also has a virtual machine VM2 to which the same private IP address 192.168.1.1 has been assigned. In the depicted embodiment, packets from VM1 transmitted along path 2755 via the VTH 2750 may be forwarded without modifying the sender's IP address. However, in the depicted embodiment, packets from VM2 sent along path 2756 may be modified by applying a translation map (e.g., changing the sender IP address of VM2 packets from 192.168.1.1 to, for example, 12.7.1.1) at VTH 2757. Similarly, in the depicted embodiment, at least some response packets sent from isolated network 2702A back to isolated network 2702C may have their destination addresses translated by applying a translation map in the reverse direction (e.g., changing the destination IP address from 12.7.1.1 to 192.168.1.1).
[0169] In various embodiments, the translation map 2757 may indicate, for example, a specific translation or header transformation to be applied, as well as the source / destinations for which packets are to be transformed (e.g., specified using a specific virtual network interface for VTH to isolated network or isolated network to VTH communications). Because the translation techniques are implemented at the VTH, the internal networking configuration settings of the isolated networks in the depicted embodiments do not need to be modified, thereby substantially simplifying the task of managing interconnected isolated networks. It should be noted that in at least some embodiments, such translation techniques may be applied to packets flowing directly between multiple pairs of isolated networks with overlapping address ranges, not just for packets flowing directly between multiple pairs of isolated networks with overlapping address ranges. Fig. 27 For example, in the depicted embodiment, address translation may be performed at VTH 2750 for packets flowing from isolated network 2702B to isolated network 2702C and / or for packets flowing from isolated network 2702C to isolated network 2702B.
[0170] According to at least some embodiments, the system may include a collection of computing devices of a provider network. The computing device may include instructions that, when executed on a processor, cause the computing device to perform one or more configuration operations to implement connectivity between multiple isolated networks including a first isolated network using a first virtual service hub (VTH). The first virtual service hub may include multiple layers, the multiple layers including (a) a routing decision layer that identifies corresponding routing actions for network packets, and (b) an action implementation layer that executes routing actions identified in the routing decision layer. In various embodiments, each of the layers may include one or more nodes similar to the packet processing service described above. In at least one embodiment, actions may be identified at least in part at the routing decision layer using, for example, metadata supplied by a client and a longest prefix matching algorithm. Corresponding network addresses may be assigned from a first private address range (e.g., an IP version 4 or IP version 6 address range) to one or more resources of the first isolated virtual network.
[0171] In at least one embodiment, for example, a determination can be made at one or more nodes of a virtual business hub and / or at a control plane element of a packet processing service being used for the virtual business hub that a first private address range overlaps with a second private address range of a second isolated network (having at least one address in common). In different embodiments, the determination can be made in response to various types of triggering events, such as when a request is received to associate or attach a second isolated network to a virtual business hub, or when a post-attachment configuration change is made at the second isolated network. In some embodiments, an indication of a translation mapping can be propagated to at least a first decision master node (DMN) of a routing decision layer. The translation mapping can be intended to be applied to at least a portion of the second private address range. From the first DMN, a representation of a first action containing an application of the translation mapping can be provided to one or more action implementation nodes (AIN) of the action implementation layer of the VTH. At a particular action implementation node, a first action can be performed with respect to a packet received from the second isolated network. This can result in, for example, forwarding a modified version of a received packet (originating from a second resource within the first isolated network) to a second resource outside the second isolated network (e.g., at a third isolated network associated with the hub, or at the first isolated network). In at least some embodiments, the modified version of the received packet can include one or more header elements that are changed using a translation map.
[0172] Fig.28 and Fig.29 Together, examples of alternative methods for detecting and responding to overlapping address ranges between isolated networks connected via a virtual service backbone are illustrated in accordance with at least some embodiments. Fig.28In option A of, for example, the client 2801 may include a translation mapping as a parameter in a request (AttachIsolatedNetwork) to attach an isolated network (having an overlapping private address range relative to some other isolated network currently attached or to be attached) to a VTH or a routing domain of the VTH. The AttachIsolatedNetwork request may be submitted, for example, to the packet processing service 2802 as one of the steps to configure the VTH, similar to the steps discussed earlier. In some embodiments, the inclusion of the mapping parameter within the request may serve as an indication that an overlap exists. In the depicted embodiment, the packet processing service may provide a programmatic response 2804 indicating that the mapping is accepted. In some embodiments, the packet processing service 2802 may perform a set of verification or validation operations before accepting the mapping, for example, to ensure that the provided mapping does not cause a conflict with other private IP address ranges of isolated networks associated with the VTH.
[0173] exist Fig.28 In option B of , the client 2801 can submit an AttachIsolatedNetwork request to the packet processing service 2802, and the service can detect whether there is an overlap between the private IP address ranges configured at the isolated network to be attached and some other isolated network already attached to the target VTH. If such an overlap is detected, then in at least some embodiments the client 2801 can be notified, for example, via an AddressOverlapDetected message 2809 that can contain details of the overlapping address ranges. In response to the AddressOverlapDetected message 2809, the client can provide a translation mapping 2810, which can be stored at the packet processing service as part of the VTH-related metadata.
[0174] exist Fig.28 In Option C of FIG. 28, if / when the PPS 2802 receives a request 2821 to attach an isolated network and detects an address overlap, the service can generate a proposed or candidate translation mapping for the overlapping range and programmatically send the proposed mapping 2823 to the client for approval. If / when the client approves the proposed candidate mapping, in the depicted embodiment, the mapping can be propagated to the DMN assigned to the VTH and the corresponding actions can begin to be generated and applied.
[0175] exist Fig.29In another method shown in Option D of , prior to requesting attachment of the isolated networks, the client 2801 may provide an indication of a set of isolated networks that will be connected to the PPS 2802 using VTH, and request that the PPS detect address overlaps (e.g., via a DetectAddressOverlaps message 2903). The PPS 2802 may check the networking configuration of the isolated networks, and if any overlaps between private IP addresses are detected, an indication of such overlapping address ranges may be programmatically provided to the client (e.g., via a CurrentOverlappedRanges message 2904). In the depicted embodiment, the client 2801 may then submit an attachment request 2906 indicating the translation mapping to be applied relative to the overlapping ranges identified by the PPS.
[0176] exist Fig.28 and Fig.29 In options AD shown in , the client generates and / or approves the translation mapping to be applied at the VTH. In some embodiments, the client may wish to leave the details of detecting and generating the address translation mapping entirely to the PPS and may not necessarily be interested in approving the mapping. Fig.29 In Option E of , for example, the client can use AutomateOverlappingAddressHandling request 2908 to inform PPS 2802 that address overlap detection and management will be fully automatic without additional work from the client. In response, in the depicted embodiment, PPS 2802 can send a confirmation message 2909 indicating that the automated handling of overlapping address ranges has been initiated. Subsequently, when the isolated network will attach to the VTH on behalf of the client 2801, PPS 2802 can determine whether the isolated network has any private address ranges that overlap with those of other attached isolated networks. If such an overlap is detected, PPS 2802 can generate a translation mapping and begin using the mapping, for example, without additional interaction with the client 2801.
[0177] In at least some embodiments, the PPS 2802 may include a post-attach configuration change detector 2957 that may check whether any new address ranges have been configured or identified for use within an isolated network already associated with the VTH, and if so, whether those new address ranges overlap with existing address ranges used in other isolated networks associated with the VTH. If such overlaps are detected, corresponding new translation mappings may be automatically generated and used in the depicted embodiment. It should be noted that in at least some embodiments, regardless of the specific options used to detect address overlaps and generate / use mappings ( Fig.28 and Fig.29Option A-Option E) of FIG. 10 can perform such automated detection of post-attachment configuration changes.
[0178] If and when the client 2801 wishes to view the translation mappings in use for its VTH, in the depicted embodiment a ShowTranslationMappingsInUse request 2910 may be submitted to the PPS 2802, and in response the current set of mappings in use 2911 (including one or more properties of the mappings, such as when they were generated, the source from which the mappings were obtained, and the like) may be provided or displayed. In at least one embodiment, regardless of the specific options used to detect address overlaps and generate / use mappings ( Fig.28 and Fig.29 Options A-Option E) of the present invention may receive and satisfy requests for mappings displayed in use by the VTH. In various embodiments, any of a variety of response actions may be performed if / when address overlap is detected between one or more pairs of isolated networks connected via the hub, for example, in some cases, the overlap response action may include notifying one or more clients of the existence of overlap, in other cases the response action may include automatically generating candidate mappings, etc. In at least some embodiments, before programmatically attaching / associating a given isolated network to the hub, the PPS may verify that (a) there is no overlap between the address ranges of the isolated network to be associated and other currently attached isolated networks, or (b) if any such overlap exists, then a corresponding translation mapping has been generated and propagated to the decision layer of the virtual business hub. Later, in such embodiments when configuration changes are made at one or more of the attached isolated networks, in some cases, a new address range overlap may be detected and the VTH may initiate a corresponding action. In some embodiments, methods other than Fig.28 and Fig.29 Methods of detecting and responding to overlapping private address ranges beyond those methods shown in .
[0179] Fig.30 3001, a configuration operation may be initiated or performed to implement connectivity between various isolated networks using a multi-layer scalable virtual service hub (VTH) having a set of action implementation nodes (AIN) and decision master nodes (DMN). In the depicted embodiment, the AIN and DMN may be similar to Figure 1The PPS 102 of FIG. 104 is a data plane of the packet processing services of the PPS 102. In some embodiments discussed earlier, a longest prefix matching algorithm may be employed at the DMN as part of the operations performed to determine the routing / forwarding actions to be taken for various packets. Each of the isolated networks may have a respective private address range from which addresses are selected and assigned to its resources.
[0180] In the depicted embodiment, it can be determined that there is an overlap between the private address range A range of an isolated network IN-A associated with the hub and the private address range B range of another isolated network IN-B (element 3004). This determination can be made, for example, when a programming request is received to attach IN-B to the hub or when a configuration change is made within IN-B that results in the selection or use of a new address set. In the depicted embodiment, the translation mapping can be propagated, for example, from the control plane of the packet processing service to one or more of the DMNs (element 3007). The mapping can be used, for example, to transform the header of a packet associated with the overlapping portion of the B range and the A range when a packet is transmitted from one of the isolated networks with overlapping ranges. In various embodiments, the mapping may have been provided by a client on whose behalf the VTH is set up, or may have been generated at the packet processing service that established the VTH. In at least some embodiments, the mapping can be propagated before (e.g., as a prerequisite) enabling services to begin flowing between at least some pairs of isolated networks.
[0181] In at least some embodiments, the DMN can, for example, provide to the AIN (element 3010) an action TA that implements the translation mapping in response to an action query generated by a miss in the action cache at the AIN. At the AIN, in the depicted embodiment, the TA action can be cached and executed, resulting in the forwarding of one or more packets after their headers have been modified based on the translation mapping (element 3013). The cached TA can be executed at the AIN for additional packets of the same stream, for example, without further interaction with the DMN (element 3016). In the depicted embodiment, if / when a new overlapping address range is set within an isolated network already associated with a VTH, or if / when a new isolated network with an overlapping address range is attached, the translation mapping for the additional overlapping range can be generated and propagated to the DMN, where they can be used to generate additional actions for execution at the AIN.
[0182] Automated propagation of routing metadata between isolated networks
[0183] In some embodiments in which a virtual service hub is used to provide connectivity between isolated networks, some or all of the private networks associated with the hub may have corresponding routing tables within the isolated network, which can be changed as needed, for example, by an administrator or by a client that has set up the isolated network on its behalf. These routing tables can be used, for example, to determine where to direct packets originating from resources such as virtual or physical machines within the isolated network, for example, whether a given packet should be sent to the virtual service hub, or to resources within the isolated network itself. When new routes are added to such local routing tables within a given isolated network or existing routes are modified or removed, the changes can potentially affect services entering or leaving the isolated network via the hub, for example, local routing tables within other isolated networks may not have the entries required to allow packets to be transmitted using the correct updated routing information. Even after a virtual service hub with an appropriate forwarding information base is connected to the isolated network IN1, in at least some embodiments, services may not necessarily begin to flow from resources within the isolated network to the hub until appropriate entries (e.g., paths identifying resources in other isolated networks IN2, IN3, etc. via the hub) are added to IN1's own internal routing table.
[0184] In at least one embodiment, the virtual service hub can be configured to (e.g., in addition to performing operations of the types discussed earlier) automatically propagate local routing metadata between isolated networks, for example, to enable local routers within the isolated networks to begin directing traffic to / from the virtual service hub. Fig.31 An example system environment is shown in which a virtual service hub can be used to automatically propagate routing information between isolated networks according to at least some embodiments. As shown, the system 3100 can include multiple isolated networks (INs) 3102, such as 3102A, 3102B, and 3102C, which are programmatically attached to a virtual service hub using a virtual service hub similar to the virtual service hub. Figure 1A virtual service hub (VTH) 3150 is implemented as a resource of the packet processing service of the PPS 102. In the depicted embodiment, each of the isolated networks may have its own routing table, which may be referred to as an IN-level routing table, such as table 3105A at IN 3102, table 3105B at IN 3102B, and table 3105C at IN 3102C. For example, when new resources are configured or decommissioned within individual isolated networks, these IN-level routing tables can be modified independently of each other. As shown, in the depicted embodiment, the VTH 3150 may include a collection of hub-level routing metadata 3121 and a routing table entry propagation manager 3122. In the depicted embodiment, the hub-level routing metadata 3121 may be generated and / or stored based on input provided by a client via an API of the type discussed earlier (e.g., an API whose parameters contain forwarding information base entries or routing information base entries that can be converted into forwarding information base entries). In some embodiments, one or more of the INs 3102 may include an isolated virtual network set up at a virtualized computing service (similar to, for example, Figure 3 In at least one embodiment, at least some of the nodes of VTH 3150, for example at a routing decision layer or an action implementation layer, may be implemented using resources of a provider network, while one or more of the resources for a given isolated network 3102 may be external to the provider network, for example at a customer premises.
[0185] In the depicted embodiment, the propagation manager 3122 can be responsible for the change made at the given IN level routing table 3105 of a given isolated network to be intelligently propagated to the appropriate set of other IN level routing tables in other isolated networks. For example, as indicated by arrows 3166A and 3166B, the change made to the IN level routing table 3105B can be propagated to tables 3105A and 3105B. In at least some cases, the entry introduced into the remote IN level routing table (e.g., 3105A or 3105B in the above example) may not be a copy of the entry in the source IN level routing table (e.g., 3105C), in fact, the transformed version of the source entry (generated using address translation mapping) or the new entry considering the available path to / from the VTH 3150 can be inserted into the remote IN level routing table. In a more general sense, in the depicted embodiment, the VTH 3150 can be responsible for propagating updated routing related information (contrary to the content of the routing table entry that must be copied) between its associated isolated networks as needed. In various embodiments, the decision to propagate routing information may be made, for example, when an update to a routing table of an already attached isolated network is detected and / or when a request is received to attach a new isolated network to the VTH 3150. In the depicted embodiment, the propagation manager 3122 may, in some embodiments, utilize various types of application programming interfaces and programmatic requests supported at the isolated network 3102 to obtain / examine the contents of IN-level routing tables, be notified when changes are made to such IN-level routing tables, and the like.
[0186] According to some embodiments, a system may include a collection of computing devices of a provider network. The computing device may include instructions that, when executed on a processor, cause the computing device to store metadata indicating that a virtual business hub is configured as an intermediary for network services between a first isolated network and a second isolated network. In at least some embodiments, the first isolated network may have an associated first routing table, and the second isolated network may have its own associated second routing table. In at least some embodiments, the virtual business hub may include multiple layers, the multiple layers including (a) a routing decision layer that can determine a routing action for a network packet, and (b) an action implementation layer that can perform the routing action identified at the routing decision layer. In at least some embodiments, the action may be determined at the routing decision layer at least in part based on using a longest prefix matching algorithm to find an entry in a set of routing / forwarding entries. In some embodiments, the computing device may determine that at least a first entry of the first routing table is to be represented in the second routing table, for example, so that a network packet originating at one or more resources of the second isolated network can be transmitted to one or more resources of the first isolated network via the virtual business hub. In such embodiments, the computing device may cause a new entry corresponding to the first entry to be included in the second routing table. Based at least in part on the new entry, in various embodiments, a network packet originating from a first resource of a second isolated network can be transmitted to an action implementation node of a virtual business hub, and a routing action can be performed at the action implementation node, thereby causing the contents of the network packet to be transmitted along a path to one or more resources of the first isolated network.
[0187] In various embodiments, the propagation of routing information from one isolated network to another isolated network via a virtual service backbone may be triggered by any of several types of events. Fig.32 An example of a triggering event that may cause a virtual business hub to propagate routing information to one or more isolated networks according to at least some embodiments is shown. Receiving an attachment request (AttachIsolatedNetwork) 3203 via a programming interface at the packet processing service control plane 3202 may represent a type of event that causes routing table entry propagation 3204. For example, in the depicted embodiment, the control plane of the packet processing service implementing the hub may issue a set of routing detection APIs to obtain entries in the IN-level routing table of the isolated network to be attached, and propagate the corresponding entries to the IN-level routing tables of other networks in the routing domain. Similarly, in at least some embodiments, new entries may be added to the IN-level routing table of the isolated network to be attached as a result of the control plane 3202 issuing an API.
[0188] In a second type of triggering event, a post-attachment routing table entry change 3213 at a given isolated network can be detected by the packet processing service control plane 3202. In some embodiments, the control plane 3202 can use an automated notification mechanism or API to detect when a change to the IN-level routing table occurs, while in other embodiments, the control plane 3202 can use routing-related APIs or requests from isolated networks to periodically check for updates to the IN-level routing table. If / when a change is detected, in the depicted embodiment, the corresponding entry 3214 can be propagated to the appropriate set of other isolated networks.
[0189] As mentioned previously, in at least some embodiments, a virtual service backbone may be used to set up several different routing domains, each comprising a plurality of interconnected isolated networks. In at least some embodiments, automated propagation of routing information may be performed with regard to domain boundaries. Fig.33 An example of domain-restricted propagation of routing information by a virtual business hub according to at least some embodiments is shown. In the depicted embodiment, a virtual business hub 3350 that is functionally similar to the VTH introduced above can be used to set up two routing domains: domain 3355A (including interconnection groups 3327A of isolated networks 3301A, 3302B, and 3302C) and domain 3355B (including different interconnection groups 3327B of isolated networks 3301D and 3302E). In the depicted embodiment, the VTH can store separate hub-level routing domain metadata 3356A and 3356B (e.g., containing corresponding FIBs or RIBs) for the corresponding routing domains 3355A and 3355B. Each of the isolated networks 3302A-3302E can have its corresponding IN-level routing table 3305A-3305E.
[0190] As indicated by arrows 3366A-3366D, in the depicted embodiment, the routing table entry (RTE) propagation manager 3322 of the VTH 3350 can propagate the RTE along a path that does not cross the domain boundary. Therefore, in the depicted embodiment, routing information can be propagated between isolated networks 3302A and 3302B (arrow 3366A), between isolated networks 3302A and 3302C (arrow 3366C), and between isolated networks 3302B and 3302C (arrow 3366B), but not from any of the isolated networks of group 3327A to any of the isolated networks of group 3327B. Similarly, within domain 3355B, routing information can be propagated between IN 3302D and 3302E (arrow 3366D), but the routing information of group 3327B may not be passed to any of the isolated networks of domain 3355A. In at least some embodiments, RTE propagation manager 3322 may examine routing domain metadata 3356 to determine where routing information from a given isolated network 3302 will be propagated. For example, if a request is received to attach another isolated network 3302F to domain 3355, then in some embodiments, propagation manager 3322 may query domain metadata 3356B and determine that routing information for the to-be-attached isolated network 3302F will be propagated between INs 3302D and 3302E, and not between other isolated networks (e.g., INs 3302A-3302C) in other domains.
[0191] In various embodiments, as discussed earlier, the private network address ranges of different isolated networks can overlap in some cases. In such embodiments, when routing information is propagated from one isolated network to another isolated network, address translation mappings can be used for overlapping portions of the address ranges. Fig.34 An example of the use of address translation mappings during propagation of routing information by a virtual business hub is shown in accordance with at least some embodiments. In the depicted embodiment, a virtual business hub 3450 is configured as a routing intermediary between isolated networks (IN) 3402A and 3402B. Isolated network 3402A has an IN-level routing table 3405A, and isolated network 3402B has its own IN-level routing table 3405B. A private network address range 3421A of isolated network 3402 overlaps with a private network address range 3421B of isolated network 3402B. Due to the overlap, some entries in table 3405A may contain addresses that have been assigned to resources in IN 3402B, and vice versa.
[0192] exist Fig.34In the embodiment depicted in , the routing table entry propagation manager 3422 of the VTH 3450 can utilize the address translation map 3423 to transform at least a portion of the one or more entries 3466 propagated from IN 3402A to IN 3402B. In some embodiments, the translation map 3423 can be automatically generated at the VTH 3450, while in other embodiments, the client can provide the translation map 3423. In general, for example, in Fig.28 and Fig.29 Any of the methods of detecting overlapping private address ranges and obtaining corresponding translation mappings discussed earlier in the context of may be employed in embodiments where routing information propagation includes address translation, such as Fig.34 In response to determining that there is Fig.34 In various embodiments, the VTH or packet processing service may initiate one or more overlap response actions if there is an overlap of the type indicated in . Such actions may include, for example, providing an indication of the overlap via a programming interface (e.g., to a client or network administrator), generating or obtaining a translation map 3423 and applying it to modify the routing information propagated to one or both of the isolated networks involved, and the like. In at least one embodiment, an indication of a specific overlap response action to be performed if / when such an overlap is detected may be obtained via a programming interface, for example, a client on whose behalf the VTH is set may provide an indication of a specific type of response to be performed for address overlap. In some embodiments, a client may programmatically indicate that the detection of an overlap and / or the response to such an overlap will be fully automatic, e.g., without requiring additional interaction with the client, in which case the packet processing service may generate a translation map 3423 and use it to modify the propagated routing information.
[0193] Fig.35 35 is a flow chart illustrating aspects of operations that may be performed at a virtual service hub to propagate routing information between isolated networks according to at least some embodiments. As shown in element 3501, in the depicted embodiment, configuration operations may be performed to implement connectivity between multiple isolated networks, such as IN-A and IN-B, using a multi-layer scalable virtual service hub (VTH), and metadata indicating the establishment of connectivity may be stored. The VTH may use a method similar to Figure 1In at least some embodiments, the packet processing service of the PPS102 shown in the figure can be implemented, and can include a group of AIN nodes of the action implementation node (AIN) layer and a certain number of decision master nodes (DMN) at the decision layer. In at least some embodiments, the DMN can identify or generate the action to be performed at the AIN for various packets or packet flows, and the operation performed at the DMN can include the use of the longest prefix matching algorithm. In the depicted embodiment, the isolated network connected via the VTH can have its corresponding routing table, which can be used, for example, to transmit packets in the isolated network (or from the isolated network to the VTH). In the above example scenario, IN-A can have its own routing table RT-A, and IN-B can have its own routing table RT-B. In at least some embodiments, changes to these isolated network-level routing tables can be made independently, for example, based on changes to the resource set deployed / configured in the isolated network. It should be noted that at least in some embodiments, for example, for each routing domain configured as an intermediary between isolated networks for VTH, VTH itself can maintain a hub-level routing table and / or other routing / forwarding metadata.
[0194] For example, at the routing information propagation manager of VTH or packet processing service, it can be determined that at least one entry RTE-1 in one (e.g., RT-A of IN-A) of isolated network level routing table will be represented in another isolated network level routing table (e.g., RT-B of IN-B) (element 3504). This propagation of routing information may be required, for example, so that the business at the resource originating from IN-B can send a packet to the resource in IN-A. In some embodiments, only a subset of the routing table entries of a given isolated network such as RT-A may need to be represented by the corresponding entry in RT-B, for example, some isolated network level routing information may not necessarily be shared with other isolated networks. In one embodiment, for example, the client can programmatically inform the packet processing service of which subsets of routing table entries will not be propagated (or specifically which routing information will be propagated) outside a given isolated network.
[0195] In the depicted embodiment, a routing information propagation manager, which may be implemented, for example, using one or more computing devices of a control plane of a packet processing service, may cause a new entry NRTE-1 corresponding to RTE-1 to be stored in RT-B (element 3507). In the depicted embodiment, the new entry NRTE-1 may represent at least some of the information contained in RTE-1, but in at least some embodiments the information may not necessarily be expressed in the same manner as in RT-A, for example, in some cases, NRTE-1 may be generated using an address translation mapping, or the address of a virtual network interface associated with a VTH may be contained in NRTE-1 instead of an address internal to IN-A.
[0196] Due to the insertion of NRTE-1, in at least some embodiments, network packets originating at one or more resources within the isolated network (e.g., IN-B) into which NRTE-1 is inserted can be transmitted to the AIN of the VTH (element 3510). At the AIN, in such embodiments, a routing action identified at the DMN can be performed, resulting in the contents of the network packet being forwarded to a resource in the isolated network (e.g., IN-A) whose information is propagated. In fact, in various embodiments, the automatic propagation of routing information by the packet processing service or VTH can simplify the task of the network administrator of the isolated network, because the administrator may not have to track all destinations to which routing changes made locally must be propagated to enable the service to flow as intended via the VTH.
[0197] Using a virtual business hub to handle DNS operations
[0198] In some embodiments, a virtual service hub that is configured at least in part to route service between resources at isolated networks using client-supplied forwarding / routing metadata may also perform other types of networking-related operations, including (for example) providing DNS (Domain Name System) information. Fig.36 An example system environment is shown in which a virtual service hub can participate in distributing domain name system (DNS) information to resources of an isolated network according to at least some embodiments. As shown, system 3600 may include a system similar to Figure 1 A virtual service hub (VTH) 3650 for packet processing services of the PPS 102 of the present invention. In the depicted embodiment, the VTH 3650 can be set up to provide connectivity between resources of at least two isolated networks (INs) 3602A and 3602B, for example, due to a set of configuration operations performed at the packet processing service control plane in response to programmatic requests from clients. The VTH 3650 can, for example, include several layers, including a routing decision layer with one or more decision master nodes (DMNs) similar to those discussed earlier, and an action implementation layer with one or more action implementation nodes (AINs) similar to those discussed earlier; the DMN can, for example, use forwarding / routing metadata to determine the actions to be implemented for various packet flows, and the AIN can cache the actions and execute the actions when packets of the corresponding flows are received at the VTH. In at least some embodiments, in addition to providing DNS support of the type discussed below, VTH 3650 may implement any combination of the different VTH features discussed earlier, including generating and executing optimized executable actions for forwarding packets, providing address translation for packets flowing between isolated networks, propagating IN-level routing information from one isolated network to another, and so on.
[0199] Isolated networks (IN) 3602A and 3602B may each have a respective private IP address range 3621, such as range 3621A and 3621B, from which addresses may be assigned to individual resources (e.g., virtual or physical machines) in the respective isolated networks. Such private IP address ranges may be independently selected for different isolated networks, such as by a client on whose behalf the isolated network is being set up, and may overlap with each other in some cases. For example, in Fig.36 , at least one address in scope 3621A of IN 3602A is also in scope 3621B of IN 3602B. Additionally, in at least some embodiments, various resources in one or more of isolated networks 3602 may have been assigned domain names (e.g., " <xyz>.com" format). In at least some embodiments, each of the isolated networks can have its own DNS settings, such as a corresponding set of one or more DNS server identifiers 3605 (e.g., 3605A or 3605B).
[0200] In the depicted embodiment, the VTH 3650 may include a DNS operations manager 3622 implemented, for example, using a combination of control plane and data plane components (e.g., DMN and AIN) at one or more computing devices. Any of several different modes of DNS support may be provided using the VTH 3650 in different embodiments, as discussed in further detail below. In the depicted embodiment, a collection of VTH-specific DNS configuration metadata 3624 may be stored, such as indicating a specific type of DNS message interception and / or transformation to be performed, additional DNS information sources to be consulted (e.g., one or more managed DNS services implemented by a provider network), and the like. In at least some embodiments, representations of address translation mappings 3623 may also be stored to enable handling of overlapping address ranges, for example, for direct routing purposes as well as for DNS messages.
[0201] In various embodiments, the DNS operations manager 3622 may determine that a particular DNS message (e.g., a response 3666 to a DNS query 3667 originating from one of the isolated networks 3602) directed to a resource R1 in one of the INs 3602 will indicate that a resource R2 in one of the other INs (R1 and R2 are in Fig.36 36). R2 may have, for example, a DNS name D1, and a DNS query to obtain R2's IP address may have been submitted from R1. In addition, the operations manager 3622 may determine that within R2's IN, R2 is assigned a private IP address IPAddr1 that falls within an overlapping private IP address range, and therefore, some other resource R3 in R1's IN may also potentially be assigned the same private IP address IPAddr1. Therefore, in at least some embodiments, the operations manager 3622 may obtain (e.g., using an address translation mapping 3623) a different or translated version TIPAddr1 of IPAddr1, and cause this modified version TIPAddr1 to be included in the DNS message delivered to R1 instead of IPAddr1. In some embodiments, the translation mapping 3623 used to modify the DNS message may be provided by the client via a programming interface. In other embodiments, the VTH may automatically detect overlapping private IP address ranges as discussed above, and may automatically generate an address translation mapping to be used for the DNS message.
[0202] According to some embodiments, the system may include a collection of computing devices of a provider network. The computing device may include instructions that, when executed by a processor, cause the computing device to perform configuration operations to set up a virtual business hub that implements connectivity between at least a first and a second isolated network, and store metadata indicating the hub and its association. Each of the isolated networks may have a corresponding private network address range, from which the corresponding address can be assigned to one or more resources (e.g., virtual machines, physical machines, etc.) of the isolated network. In at least some embodiments, the private IP addresses of different isolated networks associated with the VTH may overlap with each other, for example, at least one address in the address range of an isolated network may also exist in the address range of another isolated network. In at least some embodiments, the virtual business hub may include multiple layers, the multiple layers including (a) a routing decision layer that can identify / determine routing actions for network packets, and (b) an action implementation layer that can execute routing actions identified at the routing decision layer. In at least some embodiments, the action can be determined at the routing decision layer at least in part based on using a longest prefix matching algorithm to find entries in a set of routing / forwarding entries.
[0203] In various embodiments, a computing device may determine that (a) a particular Domain Name System (DNS) message directed to a second resource in a second isolated network will include an indication of a first resource of a first isolated virtual network, and (b) at the first isolated network, the first resource is assigned a first network address within an overlapping private address range. In response, in at least some embodiments the computing device may obtain a transformed version of the first network address and cause the transformed version to be included in a particular DNS message delivered to the second resource. Using this approach, in various embodiments the problem of potentially receiving a DNS response with an IP address shared by a local resource (within the second isolated network) when the actual resource generating the query is in another isolated network and happens to be assigned the same IP address as the local resource may be avoided.
[0204] As indicated earlier, in some embodiments, DNS support may be provided in a number of different ways or modes, with the particular mode being indicated by a client of the packet processing service via one or more programming interfaces. Fig.37 An example of programmatic interaction between a client and a packet processing network is shown, where a virtual service hub can be used to perform DNS-related operations according to at least some embodiments. In various embodiments, a packet processing service that sets up a VTH can implement a variety of programming interfaces, such as one or more web-based consoles, a set of APIs, command line tools, graphical user interfaces, and the like.
[0205] Fig.37 , three alternative options A, B, and C for setting up VTH-based DNS support programmatically using such a programming interface are shown by example. In option A, in some embodiments, a client 3701 may, for example, submit a programming request 3703 (ShareDNSInfo) to a packet processing service (PPS) 3702, thereby indicating that DNS information will be shared between isolated networks of a specified list associated with a given VTH. In fact, this programming request may allow the packet processing service to start processing DNS requests originating from each of the isolated networks via the VTH. The packet processing service may store metadata indicating that automatic sharing of DNS information will be implemented, and in at least some embodiments, a confirmation message 3704 may be provided indicating that the requested sharing of DNS information has been initiated. As part of the internal operation of implementing the requested sharing, in some embodiments, a router within the isolated network may be configured to transmit a DNS request to the VTH (e.g., to one of the AIN sets of the VTH), and an executable action may be generated at the DMN to perform address translation when a DNS host / resource with an overlapping private IP address needs to be used. Since metadata indicating the sharing method is stored, the DNS messages may be modified as discussed above to handle overlapping IP addresses.
[0206] According to option B, in the depicted embodiment, a special DNS endpoint (e.g., an IP address associated with a particular virtual network interface of the kind discussed earlier) may be established at the VTH, and the DNS server settings for the isolated network may be set to point to that endpoint. For example, the client 3701 may submit a GetVTH-DNS-Settings request 3708 to the PPS 3702. The PPS 3702 may provide the DNS endpoint information to the client, e.g., via a VTH-DNS-EndpointInfo message 3709. The client 3701 may then change the DNS settings for the isolated network, e.g., using a SetIsolatedNetworkDNSServer message 3710 directed to the control plane 3702 of the isolated network itself. Thus, in the depicted embodiment, a metadata entry may be stored indicating that the VTH (via its DNS endpoint) is to be used as the DNS server for requests originating in the isolated network. In some embodiments, the VTH may serve as the primary DNS server for the isolated network, while in other embodiments the VTH may be included as a non-primary DNS server to which DNS queries may be directed only when the primary DNS server of the isolated network is unable to resolve the query.
[0207] according to Fig.37 Option C, the client 3701 may not necessarily change the DNS settings, but may simply submit an InterceptDNSResponsesAtVTH request 3721 to the PPS 3702 via a programming interface. This request may, for example, indicate that responses to DNS requests from sources outside the isolated network are to be intercepted at the VTH and modified if necessary, such as to handle overlapping private IP addresses in scenarios similar to those discussed earlier. In response, in the depicted embodiment, the PPS 3702 may store metadata indicating that such interception is to be performed (e.g., using a combination of DMN and AIN), perform one or more networking configuration operations at the isolated network associated with the VTH to cause at least a subset of DNS messages to be directed to the VTH, and provide a confirmation message 3723 (DNSInterceptionInitiated) indicating that the requested type of interception has begun. In some embodiments, the PPS 3702 may employ a protocol that allows the client 3701 to perform a DNS request. Fig.37 Other types of programming interactions not shown in the figure are used to configure VTH to perform various types of DNS operations.
[0208] As discussed earlier, in at least some embodiments, packet processing services for instantiating a VTH may be implemented at a provider network. Fig.38 An example use of a virtual service hub to provide DNS information to isolated networks inside and outside a provider network is shown in accordance with at least some embodiments. In the depicted embodiment, provider network 3802 may include multiple network accessible services, some of which may utilize other services, for example, managed DNS service 3810 and / or packet processing service 3850 may include virtual machines set up using virtualized computing service 3852. As shown, for example, in Figure 3 As discussed earlier in the context of , in at least some embodiments, a VTH 3820, such as 3820A or 3820B, can be configured to handle packets transmitted between a set of isolated virtual networks (IVNs), such as IVN 3830A or 3830B, established on behalf of various clients of a virtualized computing service 3852.
[0209] In the depicted embodiment, isolated networks 3890, such as 3890A or 3890B, set up at customer premises outside the provider network 3802 can also be connected to each other (and to the IVN 3830) via the VTH 3820. In general, in the depicted embodiment, any combination of isolated virtual networks 3830 of the VCS 3852 and / or external (e.g., customer premises) isolated networks can be programmatically associated with a VTH such as 3820A, and DNS support can be provided to resources within any of the IVNs or external isolated networks via the VTH. For example, in the depicted embodiment, a host or virtual machine can be assigned a domain name that maps to a private IP address in IVN 3830A, IVN 3830B, customer premises isolated network 3890A, and / or customer premises isolated network 3890B. In at least some embodiments, different isolated networks associated with a given VTH 3820 can each have private IP address ranges that can overlap with each other. DNS queries for domain names being used for resources in any of the illustrated isolated networks may also originate from any of the isolated networks; for example, queries for domain names set in network 3890A may originate from resources in network 3890B or 3830A, and queries for domain names set in network 3830A may originate from resources in network 3890A or 3830B. In the depicted embodiment, VTH 3820A may determine when an IP address included in a DNS message directed to any of the isolated networks needs to be modified, such as to handle overlapping IP addresses in the manner discussed above, and apply the necessary address transformation to the DNS message (e.g., DNS response 3866A, 3866B, 3866C, or 3866D).
[0210] In at least some embodiments, one or more of the IP addresses contained in the DNS message can be obtained from the managed DNS service 3810 of the provider network at the VTH 3820. This managed DNS service 3810 can be used, for example, by an entity that uses VCS3852 to host applications for its own end-user customers, so that the end-user customers can use domain names instead of IP addresses to access the applications. In at least some embodiments, the managed DNS service 3180 can also interact seamlessly with other parts of the computing infrastructure of the provider network, such as load balancing services, health management services, and similar services to help route application requests to appropriate VCS resources. In at least some embodiments, the managed DNS service can store DNS records for domain names configured in various isolated networks such as networks 3830 and / or 3890. In some embodiments, the VTH 3820 can act as a client of the managed DNS service and use the information obtained from the managed DNS service to prepare a DNS response that will be provided to resources within the isolated network. In other embodiments, the VTH 3820 can act as an intermediary between the isolated network and the managed DNS service.
[0211] Fig.39 is a flow chart illustrating aspects of operations that may be performed at a virtual service hub to propagate DNS information to resources at an isolated network in accordance with at least some embodiments. As shown in element 3901, for example, in a manner similar to Figure 1 The packet processing service of PPS 102 performs a set of configuration operations to implement connectivity between multiple isolated networks such as IN-A and IN-B using a multi-layer scalable virtual service backbone VTH1. VTH1 can be assigned, for example, a set of action implementation nodes (AIN) and decision master nodes (DMN) as discussed earlier. In various embodiments, resources in IN-A and IN-B can be assigned addresses from potentially overlapping respective private network address ranges.
[0212] At VTH1, it may be determined that a particular DNS message directed to resource R1 in IN-B will contain an indication of resource R2 of IN-A, and that the private address Addr1 assigned to R2 is part of an overlapping address range (element 3904). A transformed version of Addr1 may be generated or obtained at VTH1, for example, using an address translation map that may have been provided by the client or may have been generated at VTH1 (element 3907). VTH1 may cause the transformed version of Addr1 to be included in a DNS response message (element 3910), and in the depicted embodiment the DNS response message may be sent to R1 (element 3913).
[0213] It should be noted that in various embodiments, the Fig.15 , Fig.26 , Fig.30 , Fig.35 and / or Fig.39 At least some operations outside those operations shown in the flowchart of to implement the packet processing related and / or DNS related technologies described above. Some operations shown may not be implemented in some embodiments, or may be implemented in a different order, or implemented in parallel rather than sequentially.
[0214] Use Cases
[0215] The techniques described above for implementing instances of various types of networked applications such as virtual business hubs using isolated packet processing cells can be useful for a variety of scenarios. As more and more distributed applications migrate to provider network environments, particularly environments in which isolated virtual networks can be established for different clients, the need for efficient and fault-tolerant management of packet transformation operations has also increased. The clear separation of functions between the fast-action implementation layer and the decision-making layer can simplify the deployment of new functionality or additional nodes at various layers without affecting the completion of work at other layers. For example, customized packet processing operations for a wide variety of client selections associated with layer 3 of the Internet networking protocol stack or its equivalent in other protocol stacks can be efficiently implemented using the described techniques, including (for example) virtual routing applications, multicast applications, and similar technologies. Clients of packet processing services may not need to deal with issues such as possible overlaps between private address ranges used in isolated networks, propagation of routing changes from one isolated network to another isolated network, and / or propagation of DNS information to resources within isolated networks. For example, by quickly adding packet processing resources as application workload increases, the overall responsiveness of applications utilizing packet processing operations can be improved. The security of networked applications can be enhanced by isolating the resource set for a given instance of an application. In addition, the user experience of system administrators and / or application owners can be improved by providing configuration information and metrics separately at each application instance level.
[0216] Illustrative Computer System
[0217] In at least some embodiments, a server implementing part or all of one or more of the techniques described herein, including various data plane and control plane components of a packet processing service and a client-side device that can programmatically interact with such services, may include a general-purpose computer system that contains or is configured to access one or more computer-accessible media. Fig.40 Such a general purpose computing device 9000 is shown. In the illustrated embodiment, the computing device 9000 includes one or more processors 9010 coupled to a system memory 9020 (which may include non-volatile and volatile memory modules) via an input / output (I / O) interface 9030. The computing device 9000 further includes a network interface 9040 coupled to the I / O interface 9030.
[0218] In various embodiments, the computing device 9000 may be a single processor system including one processor 9010, or a multiprocessor system including several processors 9010 (e.g., two, four, eight, or another suitable number). The processor 9010 may be any suitable processor capable of executing instructions. For example, in various embodiments, the processor 9010 may be a general-purpose or embedded processor implementing any of a variety of instruction set architectures (ISAs), such as x86, PowerPC, SPARC, or MIPS ISAs or any other suitable ISAs. In a multiprocessor system, each of the processors 9010 may implement the same ISA in common but not necessarily. In some implementations, a graphics processing unit (GPU) may be used to replace a conventional processor or as a supplement to a conventional processor.
[0219] The system memory 9020 may be configured to store instructions and data accessible by one or more processors 9010. In at least some embodiments, the system memory 9020 may include volatile and non-volatile portions; in other embodiments, only volatile memory may be used. In various embodiments, the volatile portion of the system memory 9020 may be implemented using any suitable memory technology, such as static random access memory (SRAM), synchronous dynamic RAM, or any other type of memory. For the non-volatile portion of the system memory (e.g., which may include one or more NVDIMMs), in some embodiments, flash-based memory devices may be used, including NAND flash devices. In at least some embodiments, the non-volatile portion of the system memory may include a power source, such as a supercapacitor or other power storage device (e.g., a battery). In various embodiments, memristor-based resistive random access memory (ReRAM), three-dimensional NAND technology, ferroelectric RAM, magnetoresistive RAM (MRAM), or any of various types of phase change memory (PCM) may be used at least for the non-volatile portion of the system memory. In the illustrated embodiment, program instructions and data implementing one or more desired functions, such as those methods, techniques, and data described above, are shown stored in system memory 9020 as code 9025 and data 9026 .
[0220] In one embodiment, the I / O interface 9030 may be configured to coordinate I / O traffic between the processor 9010, the system memory 9020, and any peripheral devices in the device, including the network interface 9040 or other peripheral interfaces such as various types of persistent and / or volatile storage devices. In some embodiments, the I / O interface 9030 may perform any necessary protocol, timing, or other data transformations to convert data signals from one component (e.g., the system memory 9020) into a format suitable for use by another component (e.g., the processor 9010). In some embodiments, the I / O interface 9030 may include support for devices connected through various types of peripheral buses, such as, for example, variants of the peripheral component interconnect (PCI) bus standard or the universal serial bus (USB) standard. In some embodiments, the functionality of the I / O interface 9030 may be divided into two or more separate components, such as, for example, a north bridge and a south bridge. Moreover, in some embodiments, some or all of the functionality of the I / O interface 9030 (e.g., an interface to the system memory 9020) may be directly incorporated into the processor 9010.
[0221] The network interface 9040 may be configured to allow data to be exchanged between the computing device 9000 and other devices 9060 attached to one or more networks 9050, such as Figures 1 to 39 In various embodiments, the network interface 9040 may support communication via any suitable wired or wireless general purpose data network, such as a type of Ethernet network. Additionally, the network interface 9040 may support communication via a telecommunications / telephone network such as an analog voice network or a digital fiber optic communication network, via a storage area network SAN such as Fibre Channel, or via any other suitable type of network and / or protocol.
[0222] In some embodiments, system memory 9020 may be an embodiment of a computer-accessible medium configured to store the computer-accessible medium described above with respect to Figures 1 to 39 The program instructions and data described herein are used to implement embodiments of the corresponding methods and apparatus. However, in other embodiments, program instructions and / or data may be received, sent, or stored on different types of computer-accessible media. In general, computer-accessible media may include non-transitory storage media or storage media such as magnetic or optical media, such as a disk or DVD / CD coupled to the computing device 9000 via an I / O interface 9030. Non-transitory computer-accessible storage media may also include any volatile or non-volatile media, such as RAM (e.g., SDRAM, DDR SDRAM, RDRAM, SRAM, etc.), ROM, etc., which may be included in some embodiments of the computing device 9000 as system memory 9020 or another type of memory. In addition, computer-accessible media may include transmission media or signals such as electrical signals, electromagnetic signals, or digital signals transmitted via a communication medium such as a network and / or a wireless link, for example, which may be implemented via a network interface 9040. As Fig.40 Some or all of the computing devices described in the description may be used to implement the described functionality in various embodiments; for example, software components running on a variety of different devices and servers may cooperate to provide the functionality. In at least one embodiment, one or more non-transitory computer-accessible storage media may include program instructions that, when executed on one or more processors, cause one or more computer systems (e.g., including similar Fig.40 In some embodiments, a computer system may be used to implement some or all of the described functionality, in addition to or instead of using a general-purpose computer system. In some embodiments, a storage device, a network device, or a dedicated computer system may be used to implement part of the described functionality. The term "computing device" as used herein refers to at least all of these types of devices and is not limited to these types of devices.
[0223] Embodiments of the present disclosure may be described in terms of the following:
[0224] 1. A system comprising:
[0225] one or more computing devices of a provider network;
[0226] The one or more computing devices include instructions that, when executed on or across one or more processors, cause the one or more computing devices to perform the following operations:
[0227] enabling connectivity between a first isolated network and a second isolated network via a virtual service hub, wherein a first private address range from which corresponding network addresses are assigned to one or more resources of the first isolated virtual network includes at least a first network address that is also part of a second private address range of the second isolated virtual network, wherein the virtual service hub includes a plurality of layers, the plurality of layers including (a) a routing decision layer that identifies routing actions for network packets, and (b) an action implementation layer that performs routing actions identified at the routing decision layer;
[0228] determining, at the virtual service hub, that a particular Domain Name System (DNS) message will include an indication of a first resource of the first isolated virtual network, wherein at the first isolated network the first resource is assigned a first network address within the first private address range, and wherein the particular DNS message is to be directed to a second resource in the second isolated network;
[0229] obtaining, at the virtual service hub, a transformed version of the first network address; and
[0230] The transformed version is caused to be included in the particular Domain Name System message delivered to the second resource.
[0231] 2. The system of clause 1, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0232] obtaining a programming request indicating that at least a subset of domain name system messages originating at the first or second isolated network are to be intercepted at the virtual service hub; and
[0233] One or more networking configuration operations are performed at the first or second isolated network to cause at least the subset of domain name system messages to be directed to the virtual service hub.
[0234] 3. A system according to any of clauses 1 to 2, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0235] Assigning a domain name system endpoint to the virtual service hub; and
[0236] Metadata is stored in response to a programmatic request, wherein the request indicates the endpoint, the metadata indicating that the virtual service hub is configured to respond to domain name system requests originating in at least one of the first and second isolated networks.
[0237] 4. A system according to any of clauses 1 to 3, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0238] At least one network address to be used to respond to a specific Domain Name System query originating from the second isolated network is obtained from a Domain Name System service managed by the virtual service hub.
[0239] 5. A system according to any of clauses 1 to 4, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0240] A programmatic request is obtained indicating that Domain Name System information is to be shared between resources of the first and second isolated networks, wherein determining that the particular Domain Name System message is to include an indication of the first resource is responsive to the programmatic request.
[0241] 6. A method comprising:
[0242] Executed by one or more computing devices:
[0243] enabling connectivity between resources of at least first and second isolated networks using a virtual service hub, wherein the virtual service hub comprises a plurality of nodes including at least a first decision master node responsible for determining routing actions for network packets received at the virtual service hub;
[0244] determining, at the virtual service hub, that a particular domain name system message is to include an indication of a first resource of the first isolated network, wherein the first resource is assigned a first network address within a first private address range of the first isolated network, wherein the particular domain name system message is to be directed to a second resource in the second isolated virtual network, and wherein a second private address range of the second isolated virtual network includes at least one address of the first private address range;
[0245] A transformed version of the first network address is caused, at the virtual service hub, to be included in the particular Domain Name System message delivered to the second resource.
[0246] 7. The method of clause 6, further comprising executing, by the one or more computing devices:
[0247] obtaining a programming request indicating that at least a subset of domain name system messages originating at the first or second isolated network are to be intercepted at the virtual service hub; and
[0248] One or more networking configuration operations are performed at the first or second isolated network to cause at least the subset of domain name system messages to be directed to the virtual service hub.
[0249] 8. A method according to any one of clauses 6 to 7, further comprising executing, by the one or more computing devices:
[0250] Assigning a domain name system endpoint to the virtual service hub; and
[0251] Metadata is stored in response to a programmatic request from a client of at least one of the isolated networks on whose behalf the first and second isolated networks are configured, wherein the request indicates the endpoint, and the metadata indicates that the virtual business hub is configured to respond to domain name system requests originating from at least one of the first and second isolated networks.
[0252] 9. A method according to any one of clauses 6 to 8, further comprising performing, by the one or more computing devices:
[0253] At least one network address to be used to respond to a specific Domain Name System query originating from the second isolated network is obtained from a Domain Name System service managed by the virtual service hub.
[0254] 10. The method of any one of clauses 6 to 9, further comprising executing, by the one or more computing devices:
[0255] A programmatic request is obtained indicating that Domain Name System information is to be shared between resources of the first and second isolated networks, wherein determining that the particular Domain Name System message is to include an indication of the first resource is responsive to the programmatic request.
[0256] 11. The method of any of clauses 6 to 10, wherein the first isolated network comprises resources of a virtualized computing service of a provider network, and wherein the second isolated network comprises at least one resource external to the provider network.
[0257] 12. A method according to any one of clauses 6 to 11, wherein the decision master node is implemented using resources of a provider network, wherein the first isolated network includes at least some resources outside the provider network, and wherein the second isolated network includes at least some resources outside the provider network.
[0258] 13. A method according to any one of clauses 6 to 12, further comprising executing, by the one or more computing devices:
[0259] An indication of an address translation map is obtained via a programming interface, wherein the transformed version of the first network address is generated using the address translation map.
[0260] 14. A method according to any one of clauses 6 to 13, further comprising performing, by the one or more computing devices:
[0261] In response to detecting that the first private address range overlaps with the second private address range, an address translation map is automatically generated, wherein the transformed version of the first network address is obtained using the address translation map.
[0262] 15. A method according to any one of clauses 6 to 14, wherein the virtual service hub comprises at least a first action implementation node, the method further comprising executing, by the one or more computing devices:
[0263] An executable action is transmitted from the first decision master node to the first action implementation node, wherein implementation of the executable action at the first action implementation node results in the transformed version of the first network address being included in the specific domain name message delivered to the second resource.
[0264] 16. One or more non-transitory computer-accessible storage media storing program instructions that, when executed on or across one or more processors, cause one or more computer systems to:
[0265] enabling connectivity between resources of at least first and second isolated networks using a virtual service hub, wherein the virtual service hub comprises a plurality of nodes including at least a first decision master node responsible for determining routing actions for network packets received at the virtual service hub;
[0266] determining, at the virtual service hub, that a particular domain name system message is to include an indication of a first resource of the first isolated network, wherein the first resource is assigned a first network address within a first private address range of the first isolated network, wherein the particular domain name system message is to be directed to a second resource in the second isolated virtual network, and wherein a second private address range of the second isolated virtual network includes at least one address of the first private address range;
[0267] A transformed version of the first network address is caused, at the virtual service hub, to be included in the specific domain name message delivered to the second resource.
[0268] 17. One or more non-transitory computer-accessible storage media as described in clause 16, storing additional program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0269] determining that a programming request has been submitted, the programming request indicating that at least a subset of domain name system messages originating at the first or second isolated network are to be intercepted at the virtual service hub; and
[0270] One or more networking configuration operations are performed at the first or second isolated network to cause at least the subset of domain name system messages to be directed to the virtual service hub.
[0271] 18. One or more non-transitory computer-accessible storage media as described in any of clauses 16 to 17, storing further program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0272] Assigning a domain name system endpoint to the virtual service hub; and
[0273] Metadata is stored in response to a programmatic request, wherein the request indicates the endpoint, the metadata indicating that the virtual service hub is configured to respond to domain name system requests originating in at least one of the first and second isolated networks.
[0274] 19. One or more non-transitory computer-accessible storage media as described in any of clauses 16 to 18, storing further program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0275] At least one network address to be used to respond to a specific Domain Name System query originating from the second isolated network is obtained from a Domain Name System service managed by the virtual service hub.
[0276] 20. One or more non-transitory computer-accessible storage media as described in any of clauses 16 to 19, storing further program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0277] A determination is made that a programmatic request has been submitted indicating that Domain Name System information is to be shared between resources of the first and second isolated networks, wherein determining that the particular Domain Name System message is to include an indication of the first resource is responsive to the programmatic request.
[0278] Embodiments of the present disclosure may be further described according to the following clauses:
[0279] 1. A system comprising:
[0280] one or more computing devices of a provider network;
[0281] The one or more computing devices include instructions that, when executed on or across one or more processors, cause the one or more computing devices to perform the following operations:
[0282] initiating one or more configuration operations to implement connectivity between a plurality of isolated networks including a first isolated network using a virtual service backbone, wherein the virtual service backbone comprises a plurality of layers, the plurality of layers comprising (a) a routing decision layer that identifies routing actions for network packets, and (b) an action implementation layer that performs routing actions identified at the routing decision layer;
[0283] determining that a first private address range from which corresponding network addresses are assigned to one or more resources of the first isolated network includes at least a first network address that is also part of a second private address range of a second isolated network;
[0284] propagating an indication of a translation mapping to be applied to at least a portion of the second private network address range of the second isolated network to at least a first decision master node at the routing decision layer of the virtual service hub; and
[0285] A representation of a first action is provided from the first decision master node to at least a first one of the action implementation nodes, the first action implementing the translation map to enable the first implementation node to forward a modified version of a network packet originating from a first resource within the second isolated network to a destination.
[0286] 2. The system of clause 1, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0287] An indication is provided via a programming interface that the translation map is a candidate for address translation relative to the first and second private address ranges.
[0288] 3. A system according to any one of clauses 1 to 2, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0289] Prior to forwarding the modified version of the network packet using the translation map, approval to use the translation map is obtained from a client via a programming interface.
[0290] 4. A system according to any one of clauses 1 to 3, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0291] A representation of one or more properties of the translation map is provided in response to a query received via a programming interface.
[0292] 5. A system as described in any of clauses 1 to 4, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0293] The translation map is obtained from a client via a programming interface.
[0294] 6. A method comprising:
[0295] Executed by one or more computing devices:
[0296] initiating one or more configuration operations to enable connectivity between a plurality of isolated networks including a first isolated network using a virtual service hub, wherein the virtual service hub comprises a plurality of nodes including at least a first decision master node responsible for determining routing actions for network packets received at the virtual service hub, and wherein corresponding network addresses are assigned from a first private address range to one or more resources of the first isolated network;
[0297] determining, at the first decision master node, an indication of a translation mapping to be applied to at least a portion of a second private network address range of a second isolated network, wherein the second private address range includes at least a first network address that is also part of the first private address range; and
[0298] One or more headers of a network packet directed from a first resource within the second isolated network to a destination outside the second isolated network are modified at a particular node of the virtual service hub based at least in part on the translation map.
[0299] 7. The method of clause 6, further comprising executing, by the one or more computing devices:
[0300] In response to obtaining a programmatic request to attach the second isolated network to the virtual service hub, detecting that the first private address range overlaps the second private address range; and
[0301] Implement one or more overlapping response actions.
[0302] 8. The method of clause 7, wherein the one or more overlap response actions include one or more of: (a) providing an indication of the overlap via a programming interface, or (b) generating the translation map.
[0303] 9. The method of any one of clauses 6 to 7, further comprising executing, by the one or more computing devices:
[0304] An indication is provided via a programming interface that the translation map is a candidate for address translation relative to the first and second private address ranges.
[0305] 10. A method according to any one of clauses 6 to 7 or 9, further comprising performing, by the one or more computing devices:
[0306] Prior to modifying the one or more headers, approval of the translation mapping is obtained from a client via a programming interface.
[0307] 11. A method according to any one of clauses 6 to 7 or 9 to 10, further comprising performing, by the one or more computing devices:
[0308] A representation of one or more properties of the translation map is provided in response to a query received via a programming interface.
[0309] 12. A method according to any one of clauses 6 to 7 or 9 to 11, further comprising performing, by the one or more computing devices:
[0310] The translation map is obtained from a client via a programming interface.
[0311] 13. The method of clause 12, wherein the translation map is provided as a parameter of a request to programmatically attach one or more isolated networks to the virtual service hub.
[0312] 14. A method as described in any of clauses 6 to 7 or 9 to 12, wherein at least one of the first and second isolated networks comprises an isolated virtual network of a virtualized computing of a provider network.
[0313] 15. A method according to any one of clauses 6 to 7 or 9 to 13, wherein at least one of the first and second isolated networks includes resources of a provider network, and wherein at least one of the first and second isolated networks includes resources external to the provider network.
[0314] 16. One or more non-transitory computer-accessible storage media storing program instructions that, when executed on or across one or more processors, cause one or more computer systems to:
[0315] initiating one or more configuration operations to enable connectivity between a plurality of isolated networks including a first isolated network using a virtual service hub, wherein the virtual service hub comprises a plurality of nodes including at least a first decision master node responsible for determining routing actions for network packets received at the virtual service hub, and wherein corresponding network addresses are assigned from a first private address range to one or more resources of the first isolated network;
[0316] determining, at the first decision master node, an indication of a translation mapping to be applied to at least a portion of a second private network address range of a second isolated network, wherein the second private address range includes at least a first network address that is also part of the first private address range; and
[0317] One or more headers of a network packet directed from a first resource within the second isolated network to a destination outside the second isolated network are modified at a particular node of the virtual service hub based at least in part on the translation map.
[0318] 17. One or more non-transitory computer-accessible storage media as described in clause 16, storing additional program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0319] In response to obtaining a programmatic request to attach the second isolated network to the virtual service hub, detecting that the first private address range overlaps the second private address range; and
[0320] Implement one or more overlapping response actions.
[0321] 18. One or more non-transitory computer-accessible storage media as described in any of clauses 16 to 17, wherein the one or more overlap response actions include one or more of the following: (a) providing an indication of the overlap via a programming interface, or (b) generating the translation map.
[0322] 19. One or more non-transitory computer-accessible storage media as described in any one of clauses 16 to 18, wherein the program instructions, when executed on one or more processors, cause the one or more computer systems to:
[0323] An indication is provided via a programming interface that the translation map is a candidate for address translation relative to the first and second private address ranges.
[0324] 20. One or more non-transitory computer-accessible storage media as described in any of clauses 16 to 19, storing further program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0325] Before programmatically associating the second isolated network with the virtual service hub, verifying that a set of one or more private address ranges used within the second isolated network does not include private addresses of the first private address range;
[0326] After the second isolated network has been programmatically associated with the virtual service hub, it is determined that the second private address range has been identified for use within the second isolated network.
[0327] Embodiments of the present disclosure may be further described according to the following clauses:
[0328] 1. A system comprising:
[0329] one or more computing devices providing packet processing services for the provider network;
[0330] The one or more computing devices include instructions that, when executed on or across one or more processors, cause the one or more computing devices to perform the following operations:
[0331] In response to a programmatic request to configure a first virtual service hub as an intermediary for network services between a plurality of isolated networks, storing metadata indicating (a) at least a first action implementation node assigned to the first virtual service hub, and (b) at least a first routing decision master node assigned to the first virtual service hub;
[0332] propagating a corresponding set of state information entries for a first isolated network to the first routing decision master node;
[0333] obtaining, at the first action implementation node, a first executable action from the first routing decision master node, wherein the first executable action is to be implemented for one or more packets of a first network flow, wherein the first executable action is generated at the first routing decision master node based at least in part on the corresponding set of state information entries, and wherein an indication of the semantics of the first executable action is not provided to the first action implementation node;
[0334] storing the first executable action in a flow-indexed cache memory of the first action-performing node;
[0335] The first executable action causes contents of one or more packets of the first network flow to be transmitted to a second isolated network based at least in part on performing the first executable action at the first routing action performing node.
[0336] 2. The system of clause 1, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0337] One or more executable instructions of the first executable action are generated at the first decision master node using an instruction set of a virtual machine based on registers in a kernel optimized for network processing.
[0338] 3. The system of any one of clauses 1 to 2, wherein the first action-performing node comprises a plurality of execution engines including a first execution engine, wherein the one or more computing devices comprise further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0339] instantiating, at the first action-performing node, a respective cache memory with a stream index corresponding to each of the execution engines;
[0340] A deterministic mapping function is utilized at the first action implementation engine to determine that a first execution engine will be assigned to process packets of the first network flow, wherein an input to the deterministic mapping function includes one or more flow identification packet headers, wherein the first executable action is stored by the first execution engine in a corresponding cache memory with a flow index without acquiring a lock, and wherein after obtaining a data packet of the first network flow, the first execution engine immediately performs a lookup operation in the first cache memory with a flow index without acquiring a lock.
[0341] 4. A system as described in any one of clauses 1 to 3, wherein the path to the second isolated network includes at least a second action implementation node.
[0342] 5. A system as described in any of clauses 1 to 4, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0343] obtaining, via a programming interface, one or more routing information base (RIB) entries associated with the isolated network;
[0344] generating one or more forwarding information base (FIB) entries using the one or more routing information entries; and
[0345] The one or more forwarding information base entries are transmitted to the first routing decision master node, wherein the one or more forwarding information base entries are included in the network state information entry.
[0346] 6. A method comprising:
[0347] Executed at one or more computing devices:
[0348] storing metadata indicating that (a) at least a first action implementation node is assigned to a virtual service hub programmatically associated with one or more isolated networks, and (b) at least a first routing decision master node is assigned to the first virtual service hub;
[0349] obtaining, at the first action-implementing node, from the first routing decision master node, a representation of a first action, wherein the first action is to be implemented for a first network flow, and wherein the first action is determined at the first routing decision master node using state information of the one or more isolated networks;
[0350] Based at least in part on performing the first action at the first action-performing node, contents of one or more data packets received from a first isolated network are caused to be transmitted to a second isolated network, wherein the one or more packets are part of the first network flow.
[0351] 7. The method of clause 6, further comprising executing, by the one or more computing devices:
[0352] In response to an attachment request received via a programmatic interface, metadata is stored indicating that a first virtual network interface associated with the first isolated network has been programmatically attached to the first virtual business hub, wherein after the programmatic attachment is completed, at least one packet of the first network flow is directed to the first action implementation node via the first virtual network interface.
[0353] 8. The method of clause 7, further comprising executing, by the one or more computing devices:
[0354] A polling mode driver is utilized to obtain the at least one data packet via the first virtual network interface.
[0355] 9. The method of any one of clauses 6 to 7, further comprising executing, by the one or more computing devices:
[0356] In response to a hub link request received via a programming interface, storing metadata indicating that a path between the first virtual service hub and a second virtual service hub has been configured, wherein the second virtual service hub is associated with a third isolated network; and
[0357] Based at least in part on executing a second executable action at the first action implementation node, contents of one or more packets received from the first isolated network are caused to be transmitted to a second action implementation node assigned to the second virtual service hub.
[0358] 10. A method according to any one of clauses 6 to 7 or 9, further comprising performing, by the one or more computing devices:
[0359] obtaining, via a programming interface, one or more entries of one or more of: (a) a routing table of the first isolated network, or (b) a forwarding information base of the first isolated network; and
[0360] The state information of the one or more isolated networks is propagated to one or more decision master nodes including the first decision master node of the first virtual service hub, wherein the state information includes the one or more entries.
[0361] 11. A method according to any one of clauses 6 to 7 or 9 to 10, further comprising performing, by the one or more computing devices:
[0362] obtaining, via one or more programmatic interactions, an indication of a first routing domain and a second routing domain associated with the first virtual service hub, wherein the first routing domain includes the first and second isolated networks, and wherein the second routing domain includes a third isolated network and a fourth isolated network; and
[0363] Contents of network packets are transmitted between isolated networks in each of the routing domains without crossing routing domain boundaries.
[0364] 12. A method as described in any of clauses 6 to 7 or 9 to 11, wherein the first action-performing node is configured within a provider network, and wherein the first isolated network is external to the provider network.
[0365] 13. A method as described in any of clauses 6 to 7 or 9 to 12, wherein the representation of the first action comprises an executable program expressed in an instruction set of an in-kernel register-based virtual machine optimized for network processing.
[0366] 14. A method according to clauses 6 to 7 or 9 to 13, wherein the first isolated network includes a first isolated virtual network established at a virtualized computing service of a provider network, and wherein the second isolated network includes a second isolated virtual network established at the virtualized computing service.
[0367] 15. A method according to any one of clauses 6 to 7 or 9 to 14, further comprising:
[0368] In response to the second programming request, one or more of: (a) the number of action implementation nodes assigned to the first virtual service hub, or (b) the number of decision master nodes assigned to the first virtual service hub is modified.
[0369] 16. One or more non-transitory computer-accessible storage media storing program instructions that, when executed on or across one or more processors, cause one or more computer systems to:
[0370] storing metadata indicating that (a) at least a first action implementation node is assigned to a virtual service hub programmatically associated with one or more isolated networks, and (b) at least a first routing decision master node is assigned to the virtual service hub;
[0371] obtaining, at the first action-implementing node, from the first routing decision master node, a representation of a first action, wherein the first action is to be implemented for a first network flow, and wherein the first action is determined at the first routing decision master node using state information of the one or more isolated networks;
[0372] Based at least in part on performing the first action at the first action-performing node, contents of one or more data packets received from a first isolated network are caused to be transmitted to a second isolated network, wherein the one or more packets are part of the first network flow.
[0373] 17. One or more non-transitory computer-accessible storage media as described in clause 16, storing additional program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0374] storing an entry in a cache memory at the first action-performing node, the entry comprising (a) the representation of the first action and (b) a usage chronological record of the first action; and
[0375] Based at least in part on a determination that the usage timing record indicates that the first action satisfies eviction criteria, removing the entry from the cache memory after the first action has been performed with respect to one or more data packets.
[0376] 18. One or more non-transitory computer-accessible storage media as described in any of clauses 16 to 17, wherein the first action-implementing node is instantiated at a first host, wherein the first virtual service hub is established on behalf of a first client of a network-accessible service of a provider network, wherein the one or more computer-accessible storage media store additional program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0377] A second action-implementation node is instantiated at the first host and is assigned to a second virtual service hub established on behalf of a second client of the network-accessible service.
[0378] 19. One or more non-transitory computer-accessible storage media as described in any of clauses 16 to 18, storing further program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0379] transmitting a first action query from the first action implementation node to the first routing decision master node in response to receiving a first packet of the first network flow, wherein the first action query includes at least a portion of the first packet;
[0380] transmitting, from the first routing decision master node to the first action implementation node, a first message followed by a second message in response to the first action query, wherein the first message includes the representation of the first action, and wherein the second message includes at least the portion of the first packet;
[0381] storing, by the first action-implementing node in a cache memory in response to receiving the first message from the first routing decision master node, the representation of the first action; and
[0382] The representation of the first action is retrieved from the cache by the first action-implementing node in response to receiving the second message from the first routing decision master node.
[0383] 20. One or more non-transitory computer-accessible storage media as described in any of clauses 16 to 19, storing further program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0384] One or more packet processing metrics of the virtual business hub are provided via a programming interface, wherein the packet processing metrics include one or more of the following: (a) the number or rate of packets received at the virtual business hub from one or more isolated networks during a time interval, (b) the number or rate of packets transmitted from the virtual business hub to one or more isolated networks during a time interval, or (c) the number or rate of received packets whose corresponding outbound packets were not transmitted from the virtual business hub during a time interval.
[0385] Embodiments of the present disclosure may be further described according to the following clauses:
[0386] 1. A system comprising:
[0387] one or more computing devices of a provider network;
[0388] The one or more computing devices include instructions that, when executed on or across one or more processors, cause the one or more computing devices to perform the following operations:
[0389] storing metadata indicating that a virtual service hub is configured to be an intermediary for network services between a first isolated network and a second isolated network, wherein the first isolated network has an associated first routing table, wherein the second isolated network has an associated second routing table, wherein the virtual service hub comprises a plurality of layers, the plurality of layers comprising (a) a routing decision layer that identifies routing actions for network packets, and (b) an action implementation layer that performs routing actions identified at the routing decision layer;
[0390] determining that at least a first entry of the first routing table is to be represented in the second routing table so that network packets originating at one or more resources of the second isolated network can be transmitted to one or more resources of the first isolated network via the virtual service hub; and
[0391] At least in part based on the new entry inserted into the second routing table, network packets originating from the first resource of the second isolated network are transmitted to the first action implementation node of the virtual business hub, so that the first action implementation node can execute the routing action identified at the routing decision layer.
[0392] 2. The system of clause 1, wherein at least one of the first and second isolated networks comprises an isolated virtual network established on behalf of a client of a virtualized computing service.
[0393] 3. A system according to any one of clauses 1 to 2, wherein at least some nodes of at least one layer of the virtual business hub include corresponding resources of the provider network, and wherein at least one of the first and second isolated networks includes one or more resources outside the provider network.
[0394] 4. A system according to any one of clauses 1 to 3, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0395] In response to obtaining a first programmatic request to attach a third isolated network to the virtual service hub,
[0396] issuing at least a second programmatic request to obtain at least a subset of the contents of a third routing table for the third isolated network; and
[0397] New entries corresponding to the one or more entries of the third routing table are caused to be stored in a fourth routing table of a fourth isolated network.
[0398] 5. The system of clause 4, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0399] In response to obtaining the first programming request to attach the third isolated network to the virtual business hub, a set of one or more isolated networks whose routing tables will be updated is identified based at least in part on routing domain metadata indicating a group of connected isolated networks, wherein the set includes the fourth isolated network and wherein the set does not include the first isolated network.
[0400] 6. A method comprising:
[0401] Executed at one or more computing devices:
[0402] determining that at least a first entry of a first routing table of a first isolated network programmatically attached to a virtual business hub is to be represented in a second routing table of a second isolated network programmatically attached to the virtual business hub to enable network packets originating at one or more resources of the second isolated network to be transmitted to one or more resources of the first isolated network via the virtual business hub; and
[0403] A routing action identified at a second node of the virtual business hub is implemented at a first node of the virtual business hub, thereby causing the contents of the network packet to be transmitted to one or more resources of the first isolated network, wherein the routing action is identified using an entry added to the second routing table.
[0404] 7. The method of clause 6, wherein at least one of the first and second isolated networks comprises an isolated virtual network established on behalf of a client of a virtualized computing service.
[0405] 8. A method according to any one of clauses 6 to 7, wherein the virtual business hub includes a plurality of nodes, wherein at least some of the nodes of the virtual business hub include corresponding resources of a provider network, and wherein at least one of the first and second isolated networks includes one or more resources outside the provider network.
[0406] 9. A method according to any one of clauses 6 to 8, further comprising performing, by the one or more computing devices:
[0407] In response to obtaining a first programmatic request to attach a third isolated network to the virtual service hub,
[0408] issuing at least a second programmatic request to obtain at least a subset of the contents of a third routing table for the third isolated network; and
[0409] New entries corresponding to the one or more entries of the third routing table are caused to be stored in a fourth routing table of a fourth isolated network.
[0410] 10. The method of clause 9, further comprising executing, by the one or more computing devices:
[0411] In response to obtaining the first programming request to attach the third isolated network to the virtual business hub, a set of one or more isolated networks whose routing tables will be updated is identified based at least in part on routing domain metadata indicating a group of connected isolated networks, wherein the set includes the fourth isolated network and wherein the set does not include the first isolated network.
[0412] 11. The method of any one of clauses 6 to 9, further comprising executing, by the one or more computing devices:
[0413] In response to determining that there is an overlap between a network address range represented in a third routing table for a third isolated network and a network address range represented in the first routing table, one or more overlap response actions are initiated.
[0414] 12. A method according to clause 11, wherein the one or more overlap response actions include one or more of the following: (a) providing an indication of the overlap via a programming interface, or (b) obtaining a translation mapping for modifying a second routing table entry of the third routing table, and causing the modified version of the second routing table entry to be stored in the first routing table.
[0415] 13. The method of clause 11, further comprising executing, by the one or more computing devices:
[0416] An indication of the one or more overlapping response actions to be performed is obtained via a programming interface.
[0417] 14. A method according to any one of clauses 6 to 9 or 11, further comprising performing, by the one or more computing devices:
[0418] obtaining, via a programming interface, a request to provide automated address translation for propagated routing table entries having overlapping address ranges; and
[0419] In response to determining that there is an overlap between the network address ranges represented in the third routing table for the third isolated network and the network address ranges represented in the first routing table,
[0420] Generate translation mapping;
[0421] modifying a second routing table entry of the third routing table using the translation map; and
[0422] The modified version of the second routing table entry is caused to be stored in the first routing table.
[0423] 15. A method as described in any of clauses 6 to 9, 11 or 14, further comprising performing, by the one or more computing devices:
[0424] obtaining an automated notification indicating that a second entry has been added to the first routing table; and
[0425] Another new entry corresponding to the second entry is caused to be added to the second routing table.
[0426] 16. One or more non-transitory computer-accessible storage media storing program instructions that, when executed on or across one or more processors, cause one or more computer systems to:
[0427] storing metadata indicating that a virtual service hub that enables connectivity between a plurality of isolated networks has been established;
[0428] determining that at least a first entry of a first routing table of a first isolated network programmatically attached to a virtual business hub is to be represented in a second routing table of a second isolated network programmatically attached to the virtual business hub to enable network packets originating at one or more resources of the second isolated network to be transmitted to one or more resources of the first isolated network via the virtual business hub; and
[0429] A new entry corresponding to the first entry is caused to be included in the second routing table.
[0430] 17. The one or more non-transitory computer-accessible storage media of clause 16, wherein at least one of the first and second isolated networks comprises an isolated virtual network established on behalf of a client of a virtualized computing service.
[0431] 18. One or more non-transitory computer-accessible storage media as described in any of clauses 16 to 17, wherein the virtual business hub includes a plurality of nodes, wherein at least some of the plurality of nodes are implemented using corresponding resources of a provider network, and wherein at least one of the first and second isolated networks includes one or more resources external to the provider network.
[0432] 19. One or more non-transitory computer-accessible storage media as described in any of clauses 16 to 18, storing further program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0433] In response to obtaining a first programmatic request to attach a third isolated network to the virtual service hub,
[0434] issuing at least a second programmatic request to obtain at least a subset of the contents of a third routing table for the third isolated network; and
[0435] New entries corresponding to the one or more entries of the third routing table are caused to be stored in a fourth routing table of a fourth isolated network.
[0436] 20. One or more non-transitory computer-accessible storage media as described in clause 19, storing additional program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0437] In response to obtaining the first programming request to attach the third isolated network to the virtual business hub, a set of one or more isolated networks whose routing tables will be updated is identified based at least in part on routing domain metadata indicating a group of connected isolated networks, wherein the set includes the fourth isolated network and wherein the set does not include the first isolated network.
[0438] Embodiments of the present disclosure may be further described according to the following clauses:
[0439] 1. A system comprising:
[0440] one or more computing devices for packet processing services;
[0441] The one or more computing devices include instructions that, when executed on or across one or more processors, cause the one or more computing devices to perform the following operations:
[0442] Assigning a first isolated packet processing cell of a plurality of isolated packet processing cells of the packet processing service to a first application having a first set of source endpoints and a second set of destination endpoints, wherein the first isolated packet processing cell comprises (a) a plurality of action implementation nodes, including a first action implementation node and a second action implementation node, (b) one or more decision master nodes, and (c) one or more management nodes, wherein at least the first action implementation node has a programmatically attached virtual network interface configured to receive network traffic originating at a first source endpoint of the first set, and wherein at least the second action implementation node has a programmatically attached virtual network interface configured to transmit the network traffic along a path to a first destination endpoint of the second set;
[0443] propagating an indication of a forwarding information base of the first application to the one or more decision master nodes, wherein the indication is received from a client of the packet processing service via a programming interface;
[0444] providing, from a first decision master node of the one or more decision master nodes, a representation of a first packet processing action to be performed with respect to a group of one or more packets originating at the first source endpoint in response to an action query generated at the first action performing node, wherein the first packet processing action is based at least in part on (a) contents of the forwarding information base and (b) a packet processing policy indicated by the client; and
[0445] The specific packet processing action is performed at the first action-implementing node with respect to a first packet of the group.
[0446] 2. The system of clause 1, wherein the first application is assigned the first isolated packet processing cell in response to a programmatic request from a first client, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0447] Assigning the first isolated packet processing cell to a second application of a second client; and
[0448] The packet processing action of the second application is executed at the first action implementation node.
[0449] 3. A system according to any one of clauses 1 to 2, wherein the cell reconfiguration operation initiated by the one or more management nodes includes modifying one or more of the following: (a) the number of action implementation nodes included in the first isolated packet processing cell or (b) the number of decision-making master nodes included in the first isolated packet processing cell.
[0450] 4. A system according to any one of clauses 1 to 3, wherein the first isolated packet processing cell comprises a plurality of action-performing nodes, wherein the one or more computing devices contain further instructions which, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0451] The first packet of the group is determined using a shuffle fragmentation algorithm to be processed at least in part at the first action-performing node.
[0452] 5. A system as described in any of clauses 1 to 4, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to:
[0453] determining, based at least in part on one or more metrics, that traffic associated with the first application is to be migrated to a second isolated packet processing cell;
[0454] Migration is performed to migrate the service of the first application to the second isolated packet processing cell.
[0455] 6. A method comprising:
[0456] Executed by one or more computing devices:
[0457] Assigning a first isolated packet processing cell of a packet processing service to a first application having a source endpoint and a destination endpoint, wherein the first isolated packet processing cell comprises (a) one or more action implementation nodes including a first action implementation node, and (b) one or more decision master nodes including a first decision master node;
[0458] obtaining, at the one or more decision master nodes, an indication of one or more packet forwarding rules for the first application;
[0459] providing, from the first decision master node, a representation of a first packet processing action to be implemented for a group of one or more packets originating at the source endpoint in response to an action query generated at the first action implementation node, wherein the first packet processing action is based at least in part on the one or more packet forwarding rules;
[0460] The specific packet processing action is performed at the first action-performing node with respect to a first packet of the group, wherein performing the specific packet processing action includes transmitting at least one data packet on a path to the destination endpoint.
[0461] 7. The method of clause 6, wherein the first application is assigned the first isolated packet processing cell in response to a programmatic request from a first client, the method further comprising executing, by the one or more computing devices:
[0462] Assigning the first isolated packet processing cell to a second application of a second client; and
[0463] The packet processing action of the second application is executed at the first action implementation node.
[0464] 8. A method as described in any of clauses 6 to 7, wherein the first application comprises a routing application for routing packets between a pair of isolated networks, the method further comprising executing, by the one or more computing devices:
[0465] assigning a second isolated packet processing cell of the plurality of isolated packet processing cells to a second application, wherein the second application is a multicast application; and
[0466] The packet processing action of the second application is executed at the first action implementation node.
[0467] 9. A method according to any one of clauses 6 to 8, wherein the first isolated packet processing cell comprises a plurality of action implementation nodes, the method further comprising executing, by the one or more computing devices:
[0468] A shuffle fragmentation algorithm is used to determine that the first packet of the group is to be processed at the first action implementation node.
[0469] 10. The method of any one of clauses 6 to 9, further comprising executing, by the one or more computing devices:
[0470] determining, based at least in part on one or more metrics, that traffic associated with the first application is to be migrated to a second isolated packet processing cell;
[0471] Migration is performed to migrate the traffic of the first application to the second isolated packet processing cell, wherein in at least one phase of the migration, path selection weights are assigned to paths between the source endpoint of the application and the first action implementation node.
[0472] 11. A method according to any one of clauses 6 to 10, further comprising executing, by the one or more computing devices:
[0473] establishing (a) at least one of the one or more action implementation nodes, and (b) at least one decision primary cell of the one or more decision primary nodes within a first availability container of the provider network; and
[0474] (a) at least one of the one or more action implementation nodes and (b) at least one of the one or more decision master nodes are established within a second availability container of the provider network.
[0475] 12. A method as described in any of clauses 6 to 11, wherein the one or more action implementation nodes are established within an isolated virtual network of a virtualized computing service of a provider network.
[0476] 13. A method according to any one of clauses 6 to 12, further comprising executing, by the one or more computing devices:
[0477] storing the representation of the first packet processing action in a cache memory of the first action-performing node; and
[0478] Packets of the group are responded to at the first action-implementing node using the cached representation without submitting additional action queries.
[0479] 14. A method according to any one of clauses 6 to 13, further comprising performing, by the one or more computing devices:
[0480] obtaining, via a programming interface, an indication of a first virtual network interface to be used to transmit packets of the first application; and
[0481] Metadata indicating an association between the first application, the first virtual network interface, and the first isolated packet processing cell is stored.
[0482] 15. A method according to any one of clauses 6 to 14, wherein the one or more action implementation nodes include a plurality of action implementation nodes, and wherein the one or more decision master nodes include a plurality of decision master nodes, the method further comprising executing, by the one or more computing devices:
[0483] transmitting a corresponding set of health queries from the first action implementation node to each of the other action implementation nodes of the first isolated packet processing cell;
[0484] generating, at the first action-implementing node, an indication of a reachability status of the one or more other action-implementing nodes based at least in part on received responses to the respective set of health queries;
[0485] providing the indication of the reachability state from the action performing node to the first decision master node; and
[0486] The indication of the reachability status is utilized at the first decision master node to select the first action implementation node to perform at least one action.
[0487] 16. One or more non-transitory computer-accessible storage media storing program instructions that, when executed on or across one or more processors, cause one or more computer systems to:
[0488] Assigning a first isolated packet processing cell of a packet processing service to a first packet processing application, wherein the first isolated packet processing cell comprises (a) a first action implementation node, and (b) a first decision master node;
[0489] causing an indication of one or more processing rules to be applied by the first packet processing to be transmitted to the first decision master node; and
[0490] Enables network packets from one or more source endpoints associated with the first packet processing application to be transmitted to the first action implementation node, wherein in response to receiving a specific packet, the first action implementation node (a) obtains from the first decision master node a representation of a specific action to be performed, wherein the specific action is based at least in part on the one or more packet processing rules, and (b) performs the specific action.
[0491] 17. The one or more non-transitory computer-accessible storage media of clause 16, wherein the first application is assigned the first isolated packet processing cell in response to a programmatic request from a first client, wherein the one or more non-transitory computer-accessible storage media store additional program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0492] Assigning the first isolated packet processing cell to a second application of a second client; and
[0493] A packet processing action of the second application is caused at the first action implementation node.
[0494] 18. One or more non-transitory computer-accessible storage media as described in any of clauses 16 to 17, storing further program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0495] analyzing one or more metrics of the first isolated packet processing cell; and
[0496] Based at least in part on the analysis, one or more nodes are added to the first isolated packet processing cell, wherein the one or more nodes include one or more of: an action implementation node, or a decision master node.
[0497] 19. One or more non-transitory computer-accessible storage media as described in any of clauses 16 to 18, storing further program instructions that, when executed on or across the one or more processors, further cause the one or more computer systems to:
[0498] determining, based at least in part on one or more metrics, that traffic associated with the first application is to be migrated to a second isolated packet processing cell; and
[0499] Migrate the service of the first application to the second isolated packet processing cell.
[0500] 20. The one or more non-transitory computer-accessible storage media of any one of clauses 16 to 19, wherein the first action-performing node or the first decision master node is implemented at least in part within a virtual machine of a virtualized computing service.
[0501] in conclusion
[0502] Various embodiments may further include receiving, sending or storing instructions and / or data implemented according to the above description on a computer-accessible medium. In general, a computer-accessible medium may include storage media such as magnetic or optical media or memory media, such as a disk or DVD / CD-ROM, volatile or non-volatile media such as RAM (e.g., SDRAM, DDR, RDRAM, SRAM, etc.), ROM, etc., and transmission media such as electrical signals, electromagnetic signals, or digital signals transmitted through communication media such as a network and / or wireless links.
[0503] The various methods shown in the figures and described herein represent exemplary embodiments of the methods. The methods may be implemented in software, hardware, or a combination thereof. The order of the methods may be changed, and various elements may be added, reordered, combined, omitted, modified, etc.
[0504] Various modifications and changes may be made, which will be apparent to those skilled in the art having the benefit of this disclosure. It is intended to include all such modifications and changes, and therefore, the above description should be regarded in an illustrative rather than a limiting sense.< / xyz>
Claims
1. A system, include: one or more computing devices for packet processing services; The one or more computing devices include instructions that, when executed on or across one or more processors, cause the one or more computing devices to perform the following operations: Assigning a first isolated packet processing cell of a plurality of isolated packet processing cells of the packet processing service to a first application having a first set of source endpoints and a second set of destination endpoints, wherein the first isolated packet processing cell comprises (a) a plurality of action implementation nodes, including a first action implementation node and a second action implementation node, (b) one or more decision master nodes, and (c) one or more management nodes, wherein at least the first action implementation node has a programmatically attached virtual network interface configured to receive network traffic originating at a first source endpoint in the first set of source endpoints, and wherein at least the second action implementation node has a programmatically attached virtual network interface configured to transmit the network traffic along a path to a first destination endpoint in the second set of destination endpoints; propagating an indication of a forwarding information base of the first application to the one or more decision master nodes, wherein the indication is received from a client of the packet processing service via a programming interface; providing, from a first decision master node of the one or more decision master nodes, a representation of a first packet processing action to be implemented with respect to a group of one or more packets originating at the first source endpoint in response to an action query generated at the first action implementation node, wherein the first packet processing action is based at least in part on (a) contents of the forwarding information base and (b) a packet processing policy indicated by the client; as well as A specific packet processing action is performed at the first action-performing node with respect to a first packet of the group.
2. The system of claim 1 , wherein the first application is assigned the first isolated packet processing cell in response to a programmatic request from a first client, wherein the one or more computing devices include further instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to: Assigning the first isolated packet processing cell to a second application of a second client; and The packet processing action of the second application is executed at the first action implementation node.
3. A system according to claim 1, wherein the cell reconfiguration operation initiated by the one or more management nodes includes modifying one or more of the following: (a) the number of action implementation nodes included in the first isolated packet processing cell or (b) the number of decision-making master nodes included in the first isolated packet processing cell.
4. The system of claim 1 , wherein the first isolated packet processing cell comprises a plurality of action-performing nodes, wherein the one or more computing devices contain additional instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to: The first packet of the group is determined using a shuffle fragmentation algorithm to be at least partially processed at the first action-performing node.
5. The system of claim 1, wherein the one or more computing devices include additional instructions that, when executed on or across the one or more processors, further cause the one or more computing devices to: determining, based at least in part on one or more metrics, that traffic associated with the first application is to be migrated to a second isolated packet processing cell; Migration is performed to migrate the service of the first application to the second isolated packet processing cell.
6. A method, include: Executed by one or more computing devices: Assigning a first isolated packet processing cell of a packet processing service to a first application having a source endpoint and a destination endpoint, wherein the first isolated packet processing cell comprises (a) one or more action implementation nodes including a first action implementation node, and one or more decision master nodes including a first decision master node; obtaining, at the one or more decision master nodes, an indication of one or more packet forwarding rules for the first application; providing, from the first decision master node, a representation of a first packet processing action to be implemented for a group of one or more packets originating at the source endpoint in response to an action query generated at the first action implementation node, wherein the first packet processing action is based at least in part on the one or more packet forwarding rules; A specific packet processing action is performed at the first action-performing node with respect to a first packet of the group, wherein performing the specific packet processing action includes transmitting at least one data packet on a path to the destination endpoint.
7. The method of claim 6, further comprising executing, by the one or more computing devices: determining, based at least in part on one or more metrics, that traffic associated with the first application is to be migrated to a second isolated packet processing cell; Migration is performed to migrate the traffic of the first application to the second isolated packet processing cell, wherein in at least one phase of the migration, path selection weights are assigned to paths between the source endpoint of the application and the first action implementation node.
8. The method according to claim 6, further comprising executing, by the one or more computing devices: establishing (a) at least one of the one or more action implementation nodes, and (b) at least one decision primary cell of the one or more decision primary nodes within a first availability container of the provider network; and (a) at least one of the one or more action implementation nodes and (b) at least one of the one or more decision master nodes are established within a second availability container of the provider network.
9. The method of claim 6, wherein the one or more action-performing nodes are established within an isolated virtual network of a virtualized computing service of a provider network.
10. The method according to claim 6, further comprising executing, by the one or more computing devices: storing the representation of the first packet processing action in a cache memory of the first action-performing node; and Packets of the group are responded to at the first action-implementing node using the cached representation without submitting additional action queries.
11. The method according to claim 6, further comprising executing, by the one or more computing devices: obtaining, via a programming interface, an indication of a first virtual network interface to be used to transmit packets of the first application; and Metadata indicating an association between the first application, the first virtual network interface, and the first isolated packet processing cell is stored.
12. The method of claim 6, wherein the one or more action implementation nodes include a plurality of action implementation nodes, and wherein the one or more decision master nodes include a plurality of decision master nodes, the method further comprising executing, by the one or more computing devices: transmitting a corresponding set of health queries from the first action implementation node to each of the other action implementation nodes of the first isolated packet processing cell; generating, at the first action-implementing node, an indication of a reachability status of the one or more other action-implementing nodes based at least in part on received responses to the respective set of health queries; providing, from the action-implementing node, the indication of the reachability state to the first decision master node; as well as The indication of the reachability status is utilized at the first decision master node to select the first action implementation node to perform at least one action.
13. One or more non-transitory computer-accessible storage media storing program instructions that, when executed on one or more processors, cause one or more computer systems to: Assigning a first isolated packet processing cell of a packet processing service to a first packet processing application, wherein the first isolated packet processing cell comprises (a) a first action implementation node, and (b) a first decision master node; causing an indication of one or more packet processing rules of the first packet processing application to be transmitted to the first decision master node; as well as Enables network packets from one or more source endpoints associated with the first packet processing application to be transmitted to the first action implementation node, wherein in response to receiving a specific packet, the first action implementation node (a) obtains from the first decision master node a representation of a specific action to be performed, wherein the specific action is based at least in part on the one or more packet processing rules, and (b) performs the specific action.
14. The one or more non-transitory computer-accessible storage media of claim 13 storing additional program instructions that, when executed on one or more processors, further cause the one or more computer systems to: analyzing one or more metrics of the first isolated packet processing cell; and Based at least in part on the analysis, one or more nodes are added to the first isolated packet processing cell, wherein the one or more nodes include one or more of: an action implementation node, or a decision master node.
15. The one or more non-transitory computer-accessible storage media of claim 13, wherein the first action-performing node or the first decision master node is implemented at least in part within a virtual machine of a virtualized computing service.
