Execute online services in public cloud
By creating a logical network covering the address space and configuring the routing table, the problem of routing restrictions within the VPC in the public cloud is solved, the ability to insert services and route traffic in the public cloud is achieved, and the service deployment flexibility of public cloud tenants is enhanced.
Patent Information
- Application Number
- CN202210278875.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2017-08-27
- Filing Date
- 2018-08-22
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2038-08-22
AI Technical Summary
In public cloud environments, cloud providers do not allow traffic to be routed between subsets of endpoints within a virtual private cloud (VPC), limiting the ability of third-party service equipment to route traffic within the virtual data center.
By creating a logical network with an overlay address space, configuring logical forwarding elements and routing tables to insert services into the underlying network of the public cloud, forwarding and routing of data message flows is achieved, allowing third-party service devices to route traffic within the VPC.
It implements the insertion of services into the data message flow path between two machines in the public cloud, allowing third-party service equipment to route traffic within the VPC, solving the routing problem restricted by cloud providers, and enhancing the service deployment flexibility of public cloud tenants. sex.
Smart Images

Figure CN114584465B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with the application date of August 22, 2018, application number 201880055659.3, and invention name “Executing online services in a public cloud”. Technical Field
[0002] The present disclosure generally relates to executing online services in a public cloud. Background Art
[0003] In today's private clouds, many vendors offer specialized services such as deep packet inspection, firewalls, etc. In private data centers, administrators typically deploy such specialized services in the traffic path where the services are needed. With the proliferation of public clouds, these vendors also offer virtual appliances and service virtual machines (service VMs) that can be licensed and deployed in public cloud environments. For example, Palo Alto Networks makes its firewall available as a virtual appliance in the Amazon Web Services (AWS) marketplace.
[0004] Such devices are mostly deployed for traffic entering and leaving a virtual public cloud (VPC) in a data center and are therefore deployed as an Internet-facing gateway. However, public cloud tenants also want to route traffic between a subset of endpoints within a virtual data center through a third-party vendor's service device. Currently, this is not possible because cloud providers do not allow rewriting of routes for traffic between endpoints in a VPC. For example, in an AWS VPC, the provider routing table has a single entry for the VPC address block, and this entry cannot be modified. It is not possible to add more specific routes that overlap with the VPC address block. Summary of the invention
[0005] Some embodiments provide a method for inserting a service (e.g., a third-party service) in the path of a data message flow between two machines (e.g., two VMs, two containers, etc.) in a public cloud environment. For a specific tenant of a public cloud, in some embodiments, the method creates an overlay logical network with a different overlay address space. The overlay logical network is defined on top of an underlying network of the public cloud, which in some embodiments is a VPC network provided by a cloud provider. In some embodiments, the VPC network is also a logical overlay network provided by a cloud provider, while in other embodiments, the VPC network is just a portion for a specific tenant that is separate from the rest of the provider's physical network (e.g., a portion with a separate address space for a specific tenant).
[0006] In order to perform one or more services on a data message flow between two machines in a VPC network, the method configures one or more logical forwarding elements (e.g., logical routers) of an overlay logical network to forward such data message flow to one or more forwarding elements of an underlying network so that the underlying network can forward the data message to a service machine that performs the service on the data message flow. For example, in some embodiments, the method configures a logical interface (LIF) of a logical router of a logical overlay network to forward data messages directed to certain destination IP addresses to an underlying default downlink gateway specified by a public cloud provider for the VPC network. In some such embodiments, the method defines the underlying default downlink gateway as a next hop (which is accessible via the LIF) for data messages directed to certain destination IP addresses.
[0007] The method also modifies the routing table of the forwarding element (e.g., the underlying default gateway) of the underlying network to send data messages destined for some or all of the logical overlay addresses to one or more service machines that perform one or more services on the data messages. These machines can be independent service devices (e.g., third-party service devices, such as Palo Alto Network's firewall devices, etc.), or they can be service machines executed on a host computer (e.g., virtual machines, containers, etc.). In some embodiments, the service machines are within the public cloud, while in other embodiments, the service machines can be inside or outside the public cloud.
[0008] The service machine performs one or more services on the data message it receives from the underlying forwarding element, either directly or through an intermediate network fabric. After performing its service(s) on the data message, the service machine provides the message to its uplink interface, which handles forwarding the data message to a network external to the service machine's network. The method configures a separate routing table of the service machine's uplink interface to route the processed data message to an underlying default uplink gateway for a specific tenant in a public cloud.
[0009] The method also configures the routing table of the underlying default uplink gateway to forward data messages destined for some or all logical overlay addresses to the cloud gateway of the specific tenant. In some embodiments, the cloud gateway of the specific tenant processes data messages that enter or exit the tenant's VPC network in the public cloud. The method configures the tenant gateway to route data messages addressed to the logical overlay network destination address to the correct destination machine (e.g., the correct VM or container) in the VPC of the specific tenant.
[0010] When the destination machine sends a reply message to a message from the source machine, in some embodiments, the reply message of the destination machine follows a path similar to that of the received data message. Specifically, in some embodiments, a logical forwarding element (e.g., a logical router) associated with the destination machine forwards the reply message to a forwarding element of the underlying network through a logical forwarding element of the overlay network (e.g., through a LIF of a logical forwarding element having an underlying default gateway as its next hop for some logical overlay addresses). The underlying network forwarding element (e.g., the underlying default gateway) is configured to send data messages destined for some or all of the logical overlay addresses to one or more service machines.
[0011] After processing the reply message, the service machine again provides the message to its uplink interface, which again configures its routing table to route the processed reply data message to the underlying default uplink gateway. The gateway is again configured to forward the processed data message to the specific tenant's cloud gateway, which is again configured to route messages addressed to the logical overlay network destination address to the correct destination machine (e.g., the correct VM or container) in the specific tenant's VPC.
[0012] The foregoing summary is intended to serve as a brief introduction to some embodiments of the present invention. This is not meant to be an introduction or overview of all inventive subject matter disclosed in this document. The following detailed description and the drawings mentioned in the detailed description will further describe the embodiments described in the summary of the invention as well as other embodiments. Therefore, in order to understand all embodiments described by this document, a comprehensive review of the summary of the invention, the detailed description, the drawings and the claims is required. Moreover, the claimed subject matter is not limited by the illustrative details in the summary of the invention, the detailed description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The novel features of the invention are set forth in the appended claims. However, for purposes of illustration, several embodiments of the invention are set forth in the following figures.
[0014] Figure 1 Examples are given that illustrate how some embodiments perform services when a data message is sent from one machine to another in a public cloud environment.
[0015] Figure 2 An example of a virtual private cloud in a public cloud environment is illustrated.
[0016] Figure 3 Examples are given that illustrate how some embodiments direct reply messages to one or more service machines.
[0017] Figure 4A set of one or more network controllers of some embodiments are illustrated for processing performed to configure logical network elements, underlying network elements, service machines, and tenant gateways.
[0018] Figure 5 In some embodiments, how to configure Figure 1 and Figure 3 Examples of network and service elements in .
[0019] Figure 6 A computer system for implementing some embodiments of the invention is conceptually illustrated. DETAILED DESCRIPTION
[0020] In the following detailed description of the present invention, many details, examples and embodiments of the present invention are set forth and described. However, it will be clear and apparent to those skilled in the art that the present invention is not limited to the embodiments set forth, and the present invention can be practiced without some of the specific details and examples discussed.
[0021] Some embodiments provide novel ways to insert services (e.g., third-party services) in the path of a data message flow between two machines (e.g., two VMs, two containers, etc.) in a public cloud environment. For a specific tenant of a public cloud, some embodiments create an overlay logical network with a logical overlay address space. To perform a service on a data message flow between two machines, the logical overlay network passes the data message with its destination address (e.g., destination IP address) defined in the logical overlay network to the underlying network of the public cloud.
[0022] The underlying network (e.g., the underlying default downlink gateway) is configured to deliver data messages having such a destination address (e.g., having a logical overlay destination address) to a set of one or more service machines. The underlying network (e.g., the underlying default uplink gateway) is also configured to deliver processed data messages received from the set of service machines and addressed to the logical overlay destination address to a public cloud gateway of a specific tenant. The public cloud gateway of the tenant is configured to forward such data messages to a logical forwarding element of the logical network, which then processes the forwarding of the data messages to the correct destination machine.
[0023] As used in this document, a data message refers to a collection of bits in a specific format that is sent across a network. One of ordinary skill in the art will recognize that the term "data message" may be used herein to refer to various formatted collections of bits that may be sent across a network, such as Ethernet frames, IP packets, TCP segments, UDP datagrams, and the like. Furthermore, as used in this document, references to Layer 2 (L2), Layer 3 (L3), Layer 4 (L4), and Layer 7 (L7) (or Layer 2, Layer 3, Layer 4, Layer 7) are references to the second data link layer, the third network layer, the fourth transport layer, and the seventh application layer, respectively, of the OSI (Open Systems Interconnection) layer model.
[0024] Figure 1 An example is given illustrating how some embodiments perform services (e.g., third-party services) when a data message is sent from one machine to another machine in a public cloud environment. In this example, the machines are VMs 122 / 132 executing on host computers in the public cloud 100. These VMs belong to one tenant of the public data center 100. In some embodiments, the public cloud is located in one physical data center location, while in other embodiments, the public cloud spans multiple physical data center locations (e.g., in multiple cities).
[0025] As shown, the tenant has a virtual private cloud (VPC) 105 in the public cloud 100 . Figure 2 The VPC 205 of the public cloud 100 is illustrated. These VPCs are different cloud tenants. As shown, the public cloud has many computing resources 210 (e.g., host computers, etc.) and network resources 215 (e.g., software switches and routers executed on the host computers, independent switches and routers (such as top-of-rack switches), etc. In some embodiments, the network resources include middlebox service devices and VMs in some embodiments. Each tenant's VPC uses a subset of the computing and network resources of the public cloud. Typically, public cloud providers use computing virtualization and network virtualization / segmentation technologies to ensure that a tenant with one VPC cannot access the separated machines and / or networks of another tenant with another VPC.
[0026] like Figure 2As shown, the public cloud data center 100 allows its tenants to create service VPCs 225. Each tenant's service VPC 225 includes one or more service devices or machines (e.g., VMs or containers) that perform services (e.g., middlebox services such as DPI, firewalls, network address translation, encryption, etc.) on data messages exchanged between machines within the tenant's VPC and data messages entering and exiting the tenant's VPC 205. In some embodiments, all service devices and / or machines in the service VPC 225 are provided by third-party vendors. In other embodiments, a subset of these devices and / or machines are provided by third-party vendors, while the rest are provided by the public cloud provider and / or tenants.
[0027] exist Figure 1 In the example shown, tenant VPC 105 uses a service VPC 150 to perform a set of one or more services on a data message sent by VM 122 to VM 132. As shown, VPC 105 includes a logical overlay network 115. U.S. patent application 15 / 367,157 describes how some embodiments define a logical overlay network in a public cloud environment. The U.S. patent application is incorporated herein by reference. Overlay logical network 115 is defined on top of the underlying network of the public cloud, which in some embodiments is a VPC network provided by a cloud provider. In some embodiments, the VPC network is also a logical overlay network provided by a cloud provider, while in other embodiments, the VPC network is just a portion that is separate from the rest of the provider's physical network for a specific tenant (e.g., a portion with a separate address space for a specific tenant).
[0028] As shown, the logical overlay network 115 includes two logical switches 120 and 125 and a logical router 130. Each logical switch spans multiple software switches on multiple host computers to connect several VMs on these host computers. Similarly, the logical router spans multiple software routers on multiple host computers to connect to the logical switch instances on these host computers. In some embodiments, the VMs connected to two different logical switches 120 and 125 are on different subnets, while in other embodiments, these VMs do not necessarily have to be on two different subnets.
[0029] As further shown, the tenant VPC 105 includes at least one tenant gateway 135. The VPC typically has multiple gateways for redundancy and handles northbound and southbound traffic in and out of the tenant VPC. For the tenant VPC 105, the public cloud also provides an underlying downlink gateway 140 and an underlying uplink gateway 145. These gateways forward messages out of and into the tenant VPC 105.
[0030] Figure 1The path taken by a data message from VM 122 to VM 132 in some embodiments is illustrated. As shown, since the destination of the message is not connected to the logical switch 120, the logical switch 120 initially receives the message and forwards the message to the logical router 130. The logical router is configured to forward the data message flow between the two subnets associated with the two logical switches to the underlying network so that the underlying network can forward the data message to the service VPC to perform a set of one or more services on the data message flow. Some embodiments configure the logical interface (LIF) 155 of the logical router 130 as an interface associated with the default downlink gateway 140 of the underlying network specified by the public cloud provider for the VPC network. In some such embodiments, the underlying default downlink gateway is the next hop (which is accessible via the LIF) for the data message from the VM connected to the logical switch 120 to the VM connected to the logical switch 125.
[0031] The underlying default downlink gateway 140 is configured to send data messages destined for some or all of the logical overlay addresses to the service VPC 150 so that one or more service machines at the VPC can perform one or more services on the data messages. Thus, when the logical router 130 provides the data message from the VM 122 to the underlying downlink gateway 140, the gateway forwards the message to the service VPC 150.
[0032] One or more service machines 152 at the service VPC 150 are configured to perform one or more services on data messages received from the underlying gateway 140 of the public cloud (e.g., on data messages having source and / or destination addresses in the logical overlay address space). Examples of these service operations include typical middlebox service operations, such as firewall operations, NAT operations, etc. The service machines 152 can be independent service devices (e.g., third-party service devices, such as Palo Alto Network's firewall device, etc.), or they can be service machines executed on a host computer (e.g., virtual machines, containers, etc.). Figure 1 In the example shown, the service machine is located in a service VPC in a public cloud. In other embodiments, the service machine can be outside the public cloud. In other embodiments, the service machine is part of the tenant's VPC, but outside the tenant's logical overlay network 115.
[0033] When only one service machine performs a service on a data message from VM 122, Figure 1 The service machine 152 in the example provides the processed message to its uplink interface, which handles forwarding the data message to a network outside the VPC of the service machine. On the other hand, when multiple service machines perform multiple service operations on the data message, Figure 1 The last service machine 152 in the example provides the processed message to its uplink interface. In either case, the separate routing table of the uplink interface of the service machine is configured to route the processed data message to the underlying default uplink gateway 145 for a specific tenant in the public cloud. When the service operation requires the message to be discarded, in some embodiments, the message is discarded.
[0034] The underlying default uplink gateway 145 is configured to forward data messages destined for some or all logical overlay addresses to a specific tenant's cloud gateway 135. Thus, the gateway 145 forwards data messages from the VM 122 to the tenant gateway 135. The tenant's cloud gateway 135 is configured to forward data messages with a destination address in the logical overlay address space to the logical router 130.
[0035] Accordingly, the gateway forwards the processed data message to the logical router 130, which then forwards it to the logical switch 125. The switch then forwards the data message to the VM 132. In order for the logical switch 125 to forward the data message to the VM 132, the data message is provided by the logical router instance executing on one host computer to the logical switch instance (i.e., a software switch implementing the logical switch) executing on the same host computer as the VM 132. The logical switch instance then passes the data message to the VM 132.
[0036] In some embodiments, no service operation needs to be performed on the reply message from VM 132 to VM 122. In other embodiments, such a service operation is required. Figure 3 An example is given illustrating how some embodiments direct the reply message to one or more service machines 152 in service VPC 150. As shown, the path taken by the reply message is the same as the path of the original message from VM 122 to VM 132, except that the reply message (1) initially goes from VM 132 to logical switch 125, then to logical router 130, and (2) after being processed by the service VPC and passed to the underlying uplink gateway 145 and then to the tenant gateway, from logical router 130 to logical switch 120 to reach VM 122. As the reply message goes from logical router 130 to underlying downlink gateway 140, then to service VPC 150, underlying uplink gateway 145, and then to tenant gateway 135, the reply message traverses the same path as the original message.
[0037] Figure 4A process 400 is shown that a set of one or more network controllers of some embodiments performs to configure logical network elements, underlying network elements, service machines, and tenant gateways. Process 400 configures the network and service elements to direct a data message flow between different machines (e.g., two VMs, two containers, etc.) of a particular tenant of a public cloud to one or more service machines so that they can perform one or more services on the data message flow. Figure 5 To explain the processing of 400, Figure 5 In some embodiments, how to configure Figure 1 and Figure 3 Examples of network and service elements in .
[0038] In some embodiments, the set of network controllers that perform process 400 is deployed in a tenant VPC. In other embodiments, the set of network controllers is deployed in a management VPC in a public cloud. In some embodiments, the public cloud provider provides and operates the management VPC, while in other embodiments, a third-party provider deploys and operates the management VPC. Also, in some embodiments, the set of network controllers is located in a private data center outside of the public cloud environment. Several examples of a set of network controllers are described in U.S. Patent Application 15 / 367,157, incorporated above.
[0039] As shown, in some embodiments, process 400 initially creates (at 405) an overlay logical network with a different overlay address space. Logical overlay network 115 is an example of such an overlay logical network. The overlay logical network is defined (at 405) on top of an underlying network of a public cloud, which in some embodiments is a VPC network provided by a cloud provider. In some embodiments, the VPC network is also a logical overlay network provided by a cloud provider, while in other embodiments, the VPC network is just a portion for a specific tenant that is separate from the rest of the provider's physical network (e.g., a portion with a separate address space for a specific tenant).
[0040] Next, at 410, the process configures one or more logical forwarding elements (e.g., logical routers) of the overlay logical network to forward such data message flows to one or more forwarding elements of the underlying network so that the underlying network can forward the data messages to a service machine that performs a service on the data message flows. For example, in some embodiments, the process configures a logical interface of a logical router of the logical overlay network to forward data messages directed to certain destination IP addresses to an underlying default downlink gateway specified by a public cloud provider for a VPC network.
[0041] In some such embodiments, the process defines an underlying default downlink gateway as the next hop for data messages directed to certain destination IP addresses (which are accessible via the LIF). Figure 5 The routing table 505 of the logical router 130 is illustrated. As shown, the routing table 505 has a first routing record 552 that identifies the underlying default downlink gateway 140 as the next hop for any message from any logical IP address of subnet 1 (of the first logical switch 120) to any logical IP address of subnet 2 (of the second logical switch 125) when a data message is received along the ingress port X of the logical router associated with the logical switch 120.
[0042] Process 400 also configures (at 415) one or more logical forwarding elements of the overlay logical network to forward the data message to its destination in the logical address space after the data message has been processed by the service machine(s). Figure 5 The diagram illustrates a routing table 505 having a second routing record 554 that identifies the interface (LIF B) associated with the second logical switch 125 as the output port for any message from any logical IP address of subnet 1 (of the first logical switch 120) to any logical IP address of subnet 2 (of the second logical switch 125) when a data message is received on the ingress port Y of the logical router associated with the tenant gateway 135.
[0043] Next, at 420, process 400 configures a routing table of a forwarding element of the underlying network to send data messages destined for some or all of the logical overlay addresses to one or more service machines that perform one or more services on the data messages. Figure 5 The routing table 510 of the underlying downlink gateway 140 is illustrated. As shown, the routing table 510 has a routing record that identifies the service machine cluster 1 as the next hop for any message from any logical IP address of subnet 1 (of the first logical switch 120) to any logical IP address of subnet 2 (of the second logical switch 125).
[0044] At 425 , the process also configures a routing table of a forwarding element of the underlying network (eg, an underlying default uplink gateway) to forward data messages destined for some or all logical overlay addresses to a specific tenant's cloud gateway (eg, tenant gateway 135 ). Figure 5 The routing table 525 of the underlying uplink gateway 145 is illustrated. As shown, the routing table 525 has a routing record that identifies the tenant gateway 135 as the next hop for any message from any logical IP address of subnet 1 (of the first logical switch 120) to any logical IP address of subnet 2 (of the second logical switch 125).
[0045] The service machines can be stand-alone service devices (e.g., third-party service devices, such as Palo Alto Network's firewall devices, etc.), or they can be service machines executed on a host computer (e.g., virtual machines, containers, etc.). In some embodiments, the service machines are within the public cloud, while in other embodiments, the service machines can be inside or outside the public cloud.
[0046] At 430, process 400 configures one or more service machines using one or more service rules that direct the service machine to perform one or more services on data messages it receives from an underlying forwarding element directly or through an intermediate network fabric. Each such service rule is defined in terms of one or more logical overlay addresses. For example, in some embodiments, each service rule has a rule match identifier that is defined in terms of one or more flow identifiers, and one or more of these flow identifiers in the configured service rule are expressed in terms of a logical overlay address. Figure 5 An example of such a service rule is illustrated. Specifically, it shows a firewall rule table 515 with a firewall rule for a firewall service device 560. The firewall rule specifies that any data message from the logical IP address N of VM 122 of subnet 1 to the logical IP address O of VM 132 of subnet 2 should be allowed.
[0047] After performing its service(s) on the data message, the service machine provides the message to its uplink interface, which handles forwarding the data message to a network external to the service machine's network. Process 400 configures (at 430) a routing table of the service machine's uplink interface to route the processed data message to an underlying default uplink gateway for a particular tenant in the public cloud. Figure 5 The routing table 520 of the uplink interface of the firewall device 560 is illustrated. As shown, the routing table 520 has a routing record that identifies the underlying uplink gateway 145 as the next hop for any message from any logical IP address of subnet 1 (of the first logical switch 120) to any logical IP address of subnet 2 (of the second logical switch 125).
[0048] Next, at 435, the process configures the routing table of the tenant gateway to route data messages addressed to the logical overlay network destination address to the correct destination machine (eg, the correct VM or container) in the specific tenant's VPC. Figure 5The routing table 530 of the tenant gateway 135 is illustrated. As shown, the routing table 530 has a routing record that identifies the logical router 130 as the next hop for any message from any logical IP address of subnet 1 (of the first logical switch 120) to any logical IP address of subnet 2 (of the second logical switch 125). After 435, the process 400 ends.
[0049] Many of the above features and applications are implemented as software processes, which are specified as a set of instructions recorded on a computer-readable storage medium (also referred to as a computer-readable medium). When these instructions are executed by one or more processing units (e.g., one or more processors, cores of a processor, or other processing units), they cause the (one or more) processing units to perform the actions indicated in the instructions. Examples of computer-readable media include, but are not limited to, CD-ROMs, flash drives, RAM chips, hard drives, EPROMs, etc. Computer-readable media do not include carrier waves and electronic signals transmitted wirelessly or through wired connections.
[0050] In this specification, the term "software" refers to firmware residing in a read-only memory or an application stored in a magnetic storage device, which can be read into a memory for processing by a processor. In addition, in some embodiments, multiple software inventions can be implemented as sub-parts of a larger program while maintaining obvious software inventions. In some embodiments, multiple software inventions can also be implemented as separate programs. Finally, any combination of separate programs that implement the software inventions described herein together is within the scope of the present invention. In some embodiments, when a software program is installed to operate on one or more electronic systems, the software program defines one or more specific machine implementations that run and execute the operations of the software program.
[0051] Figure 6 A computer system 600 is conceptually shown that implements some embodiments of the present invention. The computer system 600 can be used to implement any of the above-described hosts, controllers, and managers. Thus, it can be used to perform any of the above-described processes. The computer system includes various types of non-transitory machine-readable media and interfaces for various other types of machine-readable media. The computer system 600 includes a bus 605, (one or more) processing units 610, a system memory 625, a read-only memory 630, a permanent storage device 635, an input device 640, and an output device 645.
[0052] Bus 605 collectively represents all system, peripheral, and chipset buses that communicatively connect the numerous internal devices of computer system 600. For example, bus 605 communicatively connects processing unit(s) 610 with read-only memory 630, system memory 625, and permanent storage device 635.
[0053] From these various memory units, the processing unit(s) 610 retrieves instructions to be executed and data to be processed in order to perform the processes of the present invention. The processing unit(s) may be a single processor or a multi-core processor in different embodiments. Read-only memory (ROM) 630 stores static data and instructions required by the processing unit(s) 610 and other modules of the computer system. On the other hand, permanent storage 635 is a read and write memory device. This device is a non-volatile storage unit that stores instructions and data even when the computer system 600 is turned off. Some embodiments of the present invention use a mass storage device (such as a magnetic or optical disk and its corresponding disk drive) as permanent storage 635.
[0054] Other embodiments use removable storage devices (such as floppy disks, flash drives, etc.) as permanent storage devices. Like permanent storage devices 635, system memory 625 is a read and write memory device. However, unlike storage devices 635, system memory 625 is a volatile read and write memory, such as random access memory. System memory 625 stores some instructions and data that the processor needs at run time. In some embodiments, the processes of the present invention are stored in system memory 625, permanent storage devices 635, and / or read-only memory 630. From these various memory units, processing unit(s) 610 retrieve instructions to execute and data to process in order to perform the processes of some embodiments.
[0055] The bus 605 is also connected to input and output devices 640 and 645. Input devices enable a user to communicate information and select commands to the computer system. Input devices 640 include an alphanumeric keyboard and a pointing device (also called a "cursor control device"). Output devices 645 display images generated by the computer system. Output devices include printers and display devices, such as cathode ray tubes (CRTs) or liquid crystal displays (LCDs). Some embodiments include devices such as touch screens that function as both input and output devices.
[0056] Finally, if Figure 6 As shown, bus 605 also couples computer system 600 to a network 665 via a network adapter (not shown). In this manner, the computer may be part of a network of computers (such as a local area network ("LAN"), a wide area network ("WAN"), or an intranet, or a network such as the Internet), and any or all components of computer system 600 may be used in conjunction with the present invention.
[0057] Some embodiments include electronic components such as a microprocessor, a storage device and memory that stores computer program instructions in a machine-readable or computer-readable medium (alternatively referred to as a computer-readable storage medium, a machine-readable medium, or a machine-readable storage medium). Some examples of such computer-readable media include RAM, ROM, a compact disc read only (CD-ROM), a compact disc recordable (CD-R), a compact disc rewritable (CD-RW), a read-only digital versatile disc (e.g., DVD-ROM, dual-layer DVD-ROM), various recordable / rewritable DVDs (e.g., DVD-RAM, DVD-RW, DVD+RW, etc.), flash memory (e.g., SD card, mini SD card, micro SD card, etc.), magnetic and / or solid-state hard drives, read-only and recordable A computer readable medium may store a computer program that is executable by at least one processing unit and includes a set of instructions for performing various operations. Examples of computer programs or computer code include machine code such as produced by a compiler, and files including higher-level code that is executed by a computer, electronic component, or microprocessor using an interpreter.
[0058] Although the above discussion mainly refers to a microprocessor or multi-core processor that executes software, some embodiments are performed by one or more integrated circuits, such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). In some embodiments, such an integrated circuit executes instructions stored on the circuit itself.
[0059] As used in this specification, the terms "computer", "server", "processor", and "memory" all refer to electronic or other technical devices. These terms do not include people or groups of people. For the purposes of this specification, the terms display or being displayed mean displayed on an electronic device. As used in this specification, the terms "computer-readable medium", "multiple computer-readable media" and "machine-readable medium" are completely limited to tangible, physical objects that store information in a form that is readable by a computer. These terms do not include any wireless signals, wired download signals, and any other transient or temporary signals.
[0060] Although the present invention has been described with reference to many specific details, it will be appreciated by those skilled in the art that the present invention may be embodied in other specific forms without departing from the spirit of the present invention. For example, several figures conceptually illustrate processing. The specific operations of these processing may not be performed in the exact order shown and described. Specific operations may not be performed in a series of continuous operations, and different specific operations may be performed in different embodiments. In addition, processing may be implemented using several sub-processes, or as part of a larger macro process. Therefore, it will be appreciated by those skilled in the art that the present invention is not limited by the above illustrative details, but is defined by the appended claims.
Claims
1. A method for providing services for data messages exchanged between machines in a virtual private cloud (VPC) in a public cloud, the method comprising: Establishing a first VPC and a second VPC for a first tenant and a second tenant in the public cloud; respectively configuring a first router for the first VPC and configuring a second router for the second VPC to connect a group of machines in each VPC, wherein the router of each VPC includes at least one logical interface LIF; configuring a router of each VPC to direct a subset of data messages exchanged between machines of the VPC to an underlying network of the public cloud via the at least one LIF of the router of the VPC; and The underlying network is configured to forward the subset of data messages received from the at least one LIF of the router of each VPC to a set of public service machines deployed in the service VPC for use by multiple tenant VPCs, the set of public service machines performing a set of one or more services on a specific received data message in the subset of data messages, and providing the received specific data message back to the underlying network to forward the received specific data message to the router of the VPC that previously provided the received specific data message, so that the router of the VPC forwards the received specific data message to a destination machine in the VPC corresponding to the corresponding router having the at least one LIF.
2. The method of claim 1, wherein configuring the underlying network comprises configuring at least one downlink gateway of the public cloud to forward a subset of data messages forwarded by a router of at least one VPC to the set of public service machines.
3. The method of claim 2, wherein the at least one downlink gateway forwards a subset of data messages it receives from each of at least two configured routers of each of at least two VPCs to the set of public service machines.
4. The method of claim 1, wherein the set of public service machines processes each data message forwarded by the underlying network from a router of each VPC.
5. The method of claim 1, further configuring the VPC gateway of each VPC to forward data messages processed by the set of public service machines to a configured router of the corresponding VPC.
6. The method of claim 5, wherein configuring the underlying network comprises configuring at least one uplink gateway of the public cloud to forward data messages of at least one VPC processed by the set of public service machines to a configured router of the at least one VPC.
7. The method of claim 6, wherein the at least one uplink gateway of the public cloud is configured to forward data messages of at least two VPCs processed by the set of public service machines to at least two configured routers of the at least two VPCs.
8. The method of claim 6, further comprising configuring a routing table of the service VPC to route messages processed by the set of public service machines for the first VPC to the at least one uplink gateway of the public cloud.
9. The method of claim 1, wherein each VPC of each tenant has a network that is separate from other networks of other VPCs of other tenants.
10. The method of claim 9, wherein the network for each tenant's VPC is a logical network defined on an underlying network of the public cloud.
11. The method of claim 10, wherein the logical network for each VPC includes at least one logical router and at least one logical switch.
12. The method of claim 11, wherein each VPC router LIF is a LIF of a logical router.
13. The method of claim 11, wherein the logical router of each VPC is a router of the VPC configured to direct a subset of data messages exchanged between machines of the VPC to an underlying network of the public cloud.
14. The method of claim 1, wherein the set of public service machines deployed in the service VPC comprises third-party service equipment.
15. The method of claim 1, wherein the set of public service machines deployed in the service VPC comprises service virtual machines or containers.
16. A machine-readable medium storing a program, wherein when the program is executed by at least one processing unit, the program implements the method according to any one of claims 1 to 15.
17. An electronic device comprising: a set of processing units; and A machine-readable medium storing a program, wherein the program, when executed by at least one of the processing units, implements the method according to any one of claims 1 to 15.
18. A system comprising means for implementing the method according to any one of claims 1 to 15.
