Middlebox services have historically been hardware appliances that are implemented at one or more points in a network topology in an enterprise or a datacenter. With the advent of software defined networking (SDN) and network virtualization, traditional hardware appliances do not take advantage of the flexibility and control that is provided by SDN and network virtualization. Accordingly, in recent years, some have suggested various ways to provide middlebox services on hosts that take advantage of the rich contextual data that can be captured for each data message flow on the host. However, middlebox services not acting on the host have not taken advantage of the rich contextual data available to services provided on the hosts.
Some embodiments of the invention provide a novel architecture for capturing contextual attributes on host computers that execute one or more machines and providing the captured contextual attributes to middlebox service engines executing at the edge of a physical datacenter. In some embodiments, the middlebox service engines run in an edge host (e.g., an NSX Edge) that provides routing services and connectivity to external networks (e.g., networks external to an NSX-T deployment). The machines are virtual machines (VMs) in some embodiments, containers in other embodiments, or a mix of VMs and containers in still other embodiments. In some embodiments, the machines belong to a logical overlay network implemented by managed forwarding elements of the physical datacenter.
In addition to executing one or more machines on each host computer, some embodiments also execute a context engine and a software forwarding element (SFE). Through the GI agents of the machines on a host, the context engine of that host, in some embodiments, collects contextual attributes associated with network events and/or process events on the machines. As further described below, the context engine then provides the contextual attributes to the context header insertion processor, which, in turn, uses these contextual attributes to generate a header including data regarding the contextual attributes (a “context header”) that is used to encapsulate a data message that is processed by the SFE.
In some embodiments, the context header insertion processor on a machine registers hooks (e.g., callbacks) with one or more modules (e.g., kernel-space modules or user-space modules) in the machine's operating system for all data messages processed by the SFE of the host. In some embodiments, the context header insertion processor of a host provides the generated context header in response to a callback from a port of the SFE executing on the host. The encapsulated data message is then forwarded to its destination by the SFE. In some embodiments, forwarding the data message includes a further encapsulation with network addresses in the physical network.
Upon occurrence of a new network connection event, the context engine identifies, through the GI, a network event identifier. The network event identifier provides a set of attributes pertaining to the network event. These network event attributes in some embodiments include a five-tuple identifier (i.e., source port and IP address, destination port and IP address, and protocol) of the requested network connection, process identifier of the process requesting the network connection, a user identifier associated with the requesting process, and a group identifier (e.g., an activity directory (AD) identifier) associated with the requesting process.
In some embodiments, the context engine directs the GI agent to collect from the OS modules additional process parameters that are associated with the process identifier (ID) that it received with the network event. These additional process parameters in some embodiments include the process name, the process hash, the process path with command line parameters, the process network connection, the process-loaded modules, and one or more process consumption parameters specifying the process' consumption of one or more resources of the machine (e.g., central processing unit consumption, network consumption, and memory consumption). Instead of using the process identifier to query the GI agent for additional process parameters associated with a network event, the context engine in other embodiments receives all the process parameters associated with a network event in one shot when the GI agent reports the network event to the context engine.
The context engine of some embodiments augments the contextual attributes that it receives from the GI agent with contextual attributes that it receives from other modules that execute on the host. For instance, in some embodiments, a deep packet inspection (DPI) module executes on the host. The context engine directs this DPI engine to examine data messages of a data message flow associated with a process ID to identify the type of traffic being sent in these data messages by the application associated with the process ID.
The identified traffic-type identity is today commonly referred to as the AppID. Also, currently there are a number of DPI modules that analyze messages of a data message flow to generate the AppID. In some embodiments, the context engine combines the AppID that it obtains for a network event with other context attributes that it identifies for this event (e.g., by using the event's five-tuple identifier to associate the AppID with the collected contextual attributes), in order to produce a very rich set of attributes that the middlebox service engines can then use to perform their services. This rich set of attributes provides true application identity (i.e., the application name, application version, application traffic type, etc.), based on which the middlebox service engines can perform their services.
Also, in some embodiments, a threat detection module executes on the host computer along with the context engine. Once the context engine obtains a set of process parameters that specify that a process has started on a machine or is sending data messages on the machine, the context engine in some embodiments provides one or more process parameters (e.g., process hash, application name, application version, AppID, other process parameters, etc.) to the threat detection module. This threat detection module then generates a threat level indicator (e.g., low, medium, high, etc.) for the identified process and provides this threat level indicator to the context engine. The context engine then provides this threat level indicator to one or more middlebox service engines, through the context header insertion processor, as another contextual attribute for performing middlebox services on a new process event or the data messages of a new network event; a middlebox service engine can use the threat level indicator as another attribute to identify service rules to enforce.
The context engine employs a push model in some embodiments to distribute the collected contextual attributes to the context header insertion processor, while it employs a pull model in other embodiments to distribute these attributes to the context header insertion processor. In the push model, the context engine populates a context table with the contextual attributes that it collects for a process event or a network event with the process's identifier and/or the network event's flow identifier (e.g., the flow's five-tuple identifier). In some embodiments, the context engine populates the context table with only the contextual attributes that are relevant for middlebox service engines active at the edge of the datacenter.
In the pull model, the context engine receives queries from a context header insertion processor for the contextual attributes that the context engine has collected for a particular process or network connection. In some embodiments, the context engine receives a process ID or a flow identifier (e.g., five-tuple identifier) with a query from the context header insertion processor, and uses the received identifier to identify the attribute set that it has to provide to the context header insertion processor. In some embodiments, the context engine generates a context token (also called a context tag) for the collection of attributes that are relevant for the middlebox service and provides this context token to the context header insertion processor for inclusion in the generated header. When the data message arrives at the edge host, the middlebox service engines extract the context token and use it to identify the contextual attributes that are relevant to the individual middlebox services.
Different embodiments use different types of context-based middlebox service engines. For instance, in some embodiments, the attribute-based middlebox service engines include (1) a firewall engine that performs context-based firewall operations on data messages sent by or received for the datacenter, (2) a load-balancing engine that performs context-based load-balancing operations to distribute the data message flows from the machines to different destination or service nodes in one or more destination/service node clusters operating in different datacenters, (3) an encryption engine that performs context-based encryption or decryption operations to encrypt data message from the machines, or to decrypt data messages received for the machines, and (4) a wide area network (WAN) optimization engine that performs operations to increase data transfer efficiencies across WANs (e.g., between resources in an on-premises network and resources in a public cloud network).
When a data message is received at an edge host, in some embodiments, the data message is first processed based on the outer, physical network addresses and then the context header is analyzed to identify context data. The context data, in some embodiments, includes contextual attributes or a context tag. Contextual attributes, either received in the context header or identified using the context tag, are stored, in some embodiments, on an edge host for use by the middlebox service engines executing on the edge host. After providing the middlebox services to the data message, the data message is forwarded to its destination. In some embodiments, forwarding the data message to its destination includes encapsulating the data message with additional header information (e.g., in a custom header) for transmission over a WAN to a second datacenter. In embodiments employing a peer middlebox service (e.g., WAN optimization, etc.) at the second data center, the encapsulation includes a header portion that indicates for the peer middlebox service the relevant context data (e.g., information indicating an action state and options relevant to that action, such as an encryption method used by a middlebox service to encrypt the data message) needed to provide the peer middlebox service. The header information (e.g., custom header), in some embodiments, includes contextual attributes or a context tag that is used by the peer middlebox service to identify the relevant context data.
In some embodiments, middlebox service engines provide services differently for data messages that include different contextual attributes or different context tags. For example, a WAN optimization engine in some embodiments applies high compression for a data message with a context tag identifying a recommended/approved browser while applying low or no compression for a data message with a context tag identifying a non-recommended/non-approved browser.
The preceding Summary is intended to serve as a brief introduction to some embodiments of the invention. It is not meant to be an introduction or overview of all inventive subject matter disclosed in this document. The Detailed Description that follows and the Drawings that are referred to in the Detailed Description will further describe the embodiments described in the Summary as well as other embodiments. Accordingly, to understand all the embodiments described by this document, a full review of the Summary, Detailed Description, the Drawings and the Claims is needed. Moreover, the claimed subject matters are not to be limited by the illustrative details in the Summary, Detailed Description and the Drawing.
The novel features of the invention are set forth in the appended claims. However, for purposes of explanation, several embodiments of the invention are set forth in the following figures.
In the following detailed description of the invention, numerous details, examples, and embodiments of the invention are set forth and described. However, it will be clear and apparent to one skilled in the art that the invention is not limited to the embodiments set forth and that the invention may be practiced without some of the specific details and examples discussed.
Some embodiments of the invention provide a novel architecture for capturing contextual attributes on host computers that execute one or more machines and providing the captured contextual attributes to middlebox service engines executing at the edge of a physical datacenter. The machines are virtual machines (VMs) in some embodiments, containers in other embodiments, or a mix of VMs and containers in still other embodiments. In some embodiments, the machines belong to a logical overlay network implemented by managed forwarding elements of the physical datacenter.
Some embodiments execute a context header insertion processor that receives contextual attributes relating to network events and/or process events on the machines collected using a guest-introspection (GI) agent on each machine. In addition to executing one or more machines on each host computer, some embodiments also execute a context engine and a software forwarding element (SFE). Through the GI agents of the machines on a host, the context engine of that host, in some embodiments, collects contextual attributes associated with network events and/or process events on the machines. As further described below, the context engine then provides the contextual attributes to the context header insertion processor, which, in turn, uses these contextual attributes to generate a header including data regarding the contextual attributes (a “context header”) that is used to encapsulate a data message that is processed by the SFE.
As used in this document, data messages refer to a collection of bits in a particular format 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, etc. Also, as used in this document, references to L2, L3, L4, and L7 layers (or layer 2, layer 3, layer 4, layer 7) are references respectively to the second data link layer, the third network layer, the fourth transport layer, and the seventh application layer of the OSI (Open System Interconnection) layer model.
The DCNs are endpoint machines executing on the host computer 100. The DCNs are virtual machines (VMs) in some embodiments, containers in other embodiments, or a mix of VMs and containers in still other embodiments. On each DCN, a GI agent 150 executes in order to collect contextual attributes for the context engine 110. In some embodiments, the context engine 110 collects contextual attributes from the GI agents 150 of the DCNs on its host through a variety of different ways. For instance, in some embodiments, the GI agent on a DCN registers hooks (e.g., callbacks) with one or more modules (e.g., kernel-space modules or user-space modules) in the DCN's operating system for all new network connection events and all new process events.
Upon occurrence of a new network connection event, the GI agent 150 receives a callback from its DCN's OS and based on this callback, provides a network event identifier to the context engine 110. The network event identifier provides a set of attributes pertaining to the network event. These network event attributes in some embodiments include attributes at layers 2 through 4 L2-L4 such as a five-tuple identifier (i.e., source port and IP address, destination port and IP address, and protocol) of the requested network connection, attributes at layer 7 (L7) such as a process identifier of the process requesting the network connection, a user identifier associated with the requesting process, and a group identifier (e.g., an activity directory (AD) identifier) associated with the requesting process. In some embodiments, all the communication between the context engine 110 and the GI agents 150 are relayed through the MUX 127. One example of such a mux is the mux that is used by the Endpoint Security (EPSec) platform of ESX hypervisors of VMware, Inc.
In some embodiments, the GI agents communicate with the MUX 127 through a fast communication channel (such as VMCI channel of ESX). In some embodiments, this communication channel is a shared memory channel. As mentioned above, the attributes collected by the context engine 110 from the GI agents 150 in some embodiments include a rich group of parameters (e.g., layer 7 parameters, process identifiers, user identifiers, group identifiers, process name, process hash, loaded module identifiers, consumption parameters, etc.)
As shown, each VM 105 also includes a virtual network interface card (VNIC) 155 in some embodiments. Each VNIC is responsible for exchanging messages between its VM and the software forwarding element (SFE) 112. Each VNIC connects to a particular port 160 of the SFE 112. The SFE 112 also connects to a physical network interface card (NIC) (not shown) of the host. In some embodiments, the VNICs are software abstractions created by the hypervisor of one or more physical NICs (PNICs) of the host.
In some embodiments, the SFE 112 maintains a single port 160 for each VNIC of each VM. The SFE 112 connects to the host PNIC (through a NIC driver (not shown)) to send outgoing messages and to receive incoming messages. In some embodiments, the SFE 112 is defined to include a port 165 that connects to the PNIC's driver to send and receive messages to and from the PNIC. The SFE 112 performs message-processing operations to forward messages that it receives on one of its ports to another one of its ports. For example, in some embodiments, the SFE tries to use data in the message (e.g., data in the message header) to match a message to flow based rules, and upon finding a match, to perform the action specified by the matching rule (e.g., to hand the message to one of its ports 160 or 165, which directs the message to be supplied to a destination VM or to the PNIC).
In some embodiments, the SFE 112 is a software switch, while in other embodiments it is a software router or a combined software switch/router. The SFE 112 in some embodiments implements one or more logical forwarding elements (e.g., logical switches or logical routers) with SFEs executing on other hosts in a multi-host environment. A logical forwarding element in some embodiments can span multiple hosts to connect VMs that execute on different hosts but belong to one logical network.
Different logical forwarding elements can be defined to specify different logical networks for different users, and each logical forwarding element can be defined by multiple software forwarding elements on multiple hosts. Each logical forwarding element isolates the traffic of the VMs of one logical network from the VMs of another logical network that is serviced by another logical forwarding element. A logical forwarding element can connect VMs executing on the same host and/or different hosts, both within a datacenter and across datacenters. In some embodiments, the SFE extracts from a data message a logical network identifier (e.g., a VNI) and a MAC address. The SFE in these embodiments uses the extracted VNI to identify a logical port group, and then uses the MAC address to identify a port within the port group.
Software switches (e.g., software switches of hypervisors) are sometimes referred to as virtual switches because they operate in software and they provide the VMs with shared access to the PNIC(s) of the host. However, in this document, software switches are referred to as physical switches because they are items in the physical world. This terminology also differentiates software switches from logical switches, which are abstractions of the types of connections that are provided by the software switches. There are various mechanisms for creating logical switches from software switches. VXLAN provides one manner for creating such logical switches. The VXLAN standard is described in Mahalingam, Mallik; Dutt, Dinesh G.; et al. (May 8, 2013), VXLAN: A Framework for Overlaying Virtualized Layer 2 Networks over Layer 3 Networks, IETF.
The ports of the SFE 112 in some embodiments include one or more function calls to one or more modules that implement special input/output (I/O) operations on incoming and outgoing messages that are received at the ports. Examples of I/O operations that are implemented by the ports 160 include ARP broadcast suppression operations and DHCP broadcast suppression operations, as described in U.S. Pat. No. 9,548,965. Other I/O operations (such as firewall operations, load-balancing operations, network address translation operations, etc.) can be so implemented in some embodiments of the invention. By implementing a stack of such function calls, the ports can implement a chain of I/O operations on incoming and/or outgoing messages in some embodiments. Also, in some embodiments, other modules in the data path (such as the VNICs 155, port 165, etc.) implement the I/O function call operations instead of, or in conjunction with, the ports 160. In some embodiments, one or more of function calls of the SFE ports 160 can be to context insertion engine 115 that generates context headers (e.g., headers including context data) as discussed in relation to
In some embodiments, the context engine directs the GI agent 150 to collect, from the OS modules, additional process parameters that are associated with the process identifier (ID) that it received with the network event. These additional process parameters in some embodiments include the process name, the process hash, the process path with command line parameters, the process network connection, the process-loaded modules, and one or more process consumption parameters specifying the process' consumption of one or more resources of the machine (e.g., central processing unit consumption, network consumption, and memory consumption). Instead of using the process identifier to query the GI agent 150 for additional process parameters associated with a network event, the context engine 110 in other embodiments receives all the process parameters associated with a network event in one shot when the GI agent reports the network event to the context engine.
The OS of the DCN in some embodiments holds up a new network event (i.e., does not start sending data messages for the network event) until the GI agent 150 on that DCN directs it to proceed with processing the network event. In some of these embodiments, the GI agent 150 only allows the OS to proceed with processing the network event after the context engine 110 has collected all the needed attributes for this event (e.g., after receiving a message from the context engine that specifies that it has received all the process or network attributes that it needs for the new network event).
In some embodiments, the context engine 110 uses the process hash that it receives from the GI agent 150 to identify the name and version of the application (i.e., the software product) to which the process belongs. To do this, the context engine 110 in some embodiments stores process hashes and associated application names/versions, compares the process hash that it receives from the GI agent with the stored process hashes to identify a matching hash, and then uses the application name/version of the matching hash as the application name and version of the process associated with the event.
In some embodiments, the context engine 110 obtains the process hashes and application names/versions from one or more network or compute managers, which may operate on another device or computer. In other embodiments, the context engine provides the hash associated with a process identifier to a network or compute manager, which then matches this hash to its process hash records and provides the application name/version of the associated process to the context engine. Once the context engine 110 obtains the application name/version associated with a network event, it can provide the name and version attributes to the context insertion engine, which can use this information (i.e., the application name and/or version) to identify the context data to include in the data message.
Upon occurrence of a process event on a DCN 105, the DCN's GI agent 150 in some embodiments receives a callback from the DCN's OS and based on this callback, provides a process event identifier to the context engine 110. The process event identifier provides a set of attributes pertaining to the process event. This set of attributes includes the process identifier in some embodiments. In some embodiments, this set also includes a user identifier and/or a group identifier (e.g., an activity directory (AD) identifier).
In some embodiments, the GI agent provides all the process parameters (e.g., process identifier, user ID, group ID, process name, process hash, loaded module identifiers, consumption parameters, etc.) associated with a process event to the context engine when it reports the process event to the context engine. In other embodiments, the context engine directs the GI agent to collect from the OS modules additional process parameters that are associated with the process identifier that context engine received with the process event. These additional process parameters in some embodiments are the same (e.g., process name, process hash, loaded module identifiers, consumption parameters, etc.) as the process parameters mentioned above for reported network events.
The context engine 110 of some embodiments augments the contextual attributes that it receives from the GI agents 150 with contextual attributes that it receives from other modules that execute on the host. The DPI module 135 (also referred to as the deep packet inspector) and the threat detector 132 (also referred to as the threat inspection module) are two such modules that provide contextual attributes to augment those that the context engine collects from the GI agents 150. In some embodiments, a DPI module is directed by the context engine 110 to examine data messages of a data message flow associated with a process ID to identify the type of traffic being sent in these data messages by the application associated with the process ID.
The identified traffic-type identity is today commonly referred to as the AppID. Also, currently there are a number of DPI modules that analyze messages of a data message flow to generate the AppID for the data message flow. In some embodiments, the context engine combines the AppID that it obtains for a network event with other context attributes that it identifies for this event, in order to produce a very rich set of attributes that the middlebox service at the edge of a datacenter can use to provide the service. This rich set of attributes provides true application identity (i.e., the application name, application version, application traffic type, etc.), based on which the middlebox services can perform their services. In some embodiments, the context engine 110 uses a network event's five-tuple identifier to associate the AppID for this event's data message flow with the contextual attributes that the context engine collects from the GI agent of the DCN associated with the data message flow (e.g., of the DCN from which the data message flow emanates).
The threat detector 132 provides a threat level indicator that specifies the threat level associated with a particular application that is executing on a DCN. Once the context engine obtains a set of process parameters that specify that a process has started on a machine or is sending data messages on the machine, the context engine in some embodiments provides one or more process parameters (e.g., process hash, application name, application version, AppID, other process parameters, etc.) to the threat detection module.
This threat detection module then generates a threat level indicator (e.g., low, medium, high, etc.) for the identified process and provides this threat level indicator to the context engine. In some embodiments, the threat detector assigns a threat score to an application running on a DCN based on various application behavioral factors, such as (1) whether it does poor input validation, (2) whether it passes authentication credentials over unencrypted network links, (3) whether it uses weak password and account policies, (4) whether it stores configuration secrets in clear text, (5) whether it can transfer files, (6) whether the application is known to propagate malware, (7) whether the application is purposely evasive, (8) whether the application has known vulnerabilities, etc. In some embodiments, the threat detector is a third-party whitelisting application, such as the Bit9.
The context engine in some embodiments provides the threat level indicator produced by the threat detector 132 to one or more middlebox service engines (using the context insertion engine) as another contextual attribute for performing services on a new process event or the data messages of a new network event; a middlebox service engine can use the threat level indicator as another attribute to identify service rules to enforce.
The context engine 110 stores the contextual attributes that it collects for network events and process events in the attribute storage 145. In some embodiments, the context engine stores each set of contextual attributes with one or more network event identifiers and/or process identifiers. For example, in some embodiments, the context engine 110 stores the collected contextual attributes for a new process event with the process identifier, or with a reference to this identifier. The context engine then uses the process identifier to provide the collected context attributes to context insertion engine 115 that inserts the relevant information into data messages related to the process event for use by a middlebox service engine.
The context engine in some embodiments stores the collected context attributes for a new network connection event with the five-tuple identifier of the network connection event, or with a reference to this five-tuple identifier. In some of these embodiments, the context engine provides to the context insertion engine the context attributes for a network event along with this event's five-tuple identifier. The data messages for this network event will use this five-tuple identifier, and hence the context insertion engine can use the supplied five-tuple identifier to identify the context attributes associated with a data message flow.
The context engine employs a push model in some embodiments to distribute the collected contextual attributes to the context insertion engine 115, while in other embodiments the context engine 110 employs a pull model to distribute these attributes to the context insertion engine 115. In the push model, the context engine 110, in some embodiments, distributes, to a context insertion engine 115, the contextual attributes that it collects for a process event or a network event with the process's identifier and/or the network event's flow identifier (e.g., the flow's five-tuple identifier).
In some embodiments, the context engine distributes to the context insertion engine only the contextual attributes that are relevant for middlebox service engines that are identified as being relevant to the data message. In other words, in these embodiments, the context engine compares each collected attribute in a set of collected attributes (e.g., for a network event or a process event) with a list of attributes specified by a middlebox service's service rules and discards each collected attribute that is not specified by at least one middlebox service's service rules. In some embodiments, each middlebox service's service rules are stored in the policy storage 140. The context engine then provides to the context insertion engine only the subset of collected attributes (in the set of collected attributes) that is being used by at least one middlebox service's service rules. In other embodiments, the middlebox services perform this filtering operation to discard the contextual attributes that are not needed.
In the pull model, the context engine receives queries from a context insertion engine for the contextual attributes that the context engine has collected for a particular process or network connection. In some embodiments, the context engine receives a process ID or a flow identifier (e.g., five-tuple identifier) with a query from the context insertion engine and uses the received identifier to identify the attribute set that it has to provide to the context insertion engine.
In some embodiments, the context engine generates a context token (also called a context tag) for the collection of attributes that are relevant for the middlebox service engines and provides this context token to the context insertion engine to include in the data message's header. The middlebox service engine that receives the data message at the edge host extracts the context token and identifies the contextual attributes associated with the context token.
In some embodiments, one or more other modules (e.g., ports 160) on the host 100 intercept data messages from an egress datapath and call the context insertion engine 115 for the context insertion engine to generate and insert context data into a header of the data messages as will be discussed further in relation to
As described above, the context engine 110 in some embodiments interacts (at 210) with the reporting GI agent 150 to collect additional information regarding a reported event. The GI agent in some embodiments interacts with the network stack and/or process subsystem in the VM's OS kernel space to collect contextual attributes regarding a process or network event. The GI agent in some embodiments also collects this information from user-space modules (e.g., a user mode dynamic-link library, DLL) that operate in user-space process (e.g., a VMtool.exe) to collect contextual attributes. On VM's using Microsoft Windows, the GI agent in some embodiments registers hooks in the Windows Filtering Platform (WFP) to obtain network events, while registering in the Window's Process Subsystem to collect process related attributes. In some embodiments, the GI agent hook is at the Application Layer Enforcement (ALE) layer of WFP, so that it can capture all socket-connection requests from application processes on the VM.
In some embodiments, the context engine 110 interacts with the management or control plane to collect contextual attributes, and/or to receive records that it can examine to identify contextual attributes for identified network or process events. In some of these embodiments, the context engine interacts with a management or control plane proxy (that operates on its host) in order to obtain data from the management or control plane servers that operate outside of the host. In some of these embodiments, the context engine operates in the kernel space.
After collecting the contextual attributes at 210, the process uses (at 215) the attributes of the received event or the contextual attributes collected for the received event to identify a set of contextual data to include in related data messages. In some embodiments, the identification is based on a set of policies stored in a policy storage 143. In some embodiments, the context engine interacts with a management or control plane proxy (that operates on its host) in order to obtain data from the management or control plane servers that operate outside of the host to identify the contextual data necessary for middlebox services required by the related data messages.
Once the relevant context data has been identified (at 215), the process provides (at 220) the relevant context data to the context insertion engine 115. In some embodiments, this is in response to a call from the context insertion engine. In some embodiments, providing (at 220) the contextual data includes populating a contextual data table that is subsequently accessed by the context insertion engine. In some embodiments, the contextual data is identified for a particular network or process event in the contextual data table by a set of header fields (e.g., a five-tuple) of data messages related to the event.
Once the data message has been received (at 505) the process calls (at 510) the context insertion engine as part of an I/O process.
After receiving the callback (at 605), the process identifies (at 610) the relevant contextual data for the data message. In some embodiments, the relevant contextual data is identified by searching the contextual data table populated by the context engine 110. Searching the contextual data table, in some embodiments, includes comparing data message attributes to data message attributes of events captured by the GI agent and processed by the context engine for inclusion in the contextual data table. In some embodiments, the data message attributes include the five-tuple header values as depicted in
Once the contextual data has been identified (at 610), the contextual data is provided (at 615) to the process (e.g., port 160) which called the context insertion engine 115. As depicted in
Once the context insertion engine 115 has sent (at 615) the contextual data, process 500 receives (at 515) the contextual data sent by the context insertion engine 115. As discussed above, the received contextual data, in some embodiments, is a header to append to the data message and, in other embodiments, is contextual data to include in a header generated by the calling process. In some embodiments, the received header is appended to the data message to produce a data message (e.g. data message 420).
Once the contextual data is received and included in a first header, the data message is forwarded (at 520) to the edge gateway. In some embodiments, forwarding the data message includes appending a further header to the data message. The further header, in some embodiments, is a VLAN or VXLAN encapsulation header (as for data message 425) to allow the data message to traverse a physical network while maintaining the logical separation from other logical overlay networks. In some embodiments, forwarding the data message to the edge gateway includes providing the encapsulated data message (e.g., data message 425) to a physical NIC of host 100 to be sent out over the physical network of a datacenter. Process 500 then ends.
In some embodiments, context-aware middlebox services are also provided at a machine's 105 host 100 as described in U.S. patent application Ser. No. 15/650,251, now published as U.S. Patent Publication 2018/0181423 which is hereby incorporated by reference.
Middlebox service configurations are defined in the management plane, in some embodiments based on user input, and are distributed to the edge hosts for enforcement. For instance, an administrator, in some embodiments, specifies optimization rules for a WAN optimizer middlebox service engine that define which application traffic will be optimized and the method of optimization (e.g., sanctioned applications are provided with the highest quality of bandwidth, or large file transfers initiated by trusted applications are compressed with a high compression algorithm). In some embodiments, the management plane controller 705 communicates the middlebox service configurations to the control plane controllers 710 for the control plane controllers 710 to provide control plane data to the edge hosts 720 to configure the edge hosts 720 to implement the desired middlebox services according to the middlebox service configurations. In some embodiments, messages from the management plane controller 705 to the control plane controller 710 are sent via RabbitMQ.
The control plane controllers 710, in some embodiments, communicate with each other to maintain consistent middlebox service configuration data. In some embodiments, consistency is necessary for proper functioning of the middlebox services (e.g., parameters such as encryption type or protocol must be consistent across edge hosts for WAN optimization to be able to decompress a compressed data message). In some embodiments, consistency is desirable but not critical. For each different middlebox service implemented by the edge hosts, the control plane cluster, in some embodiments, uses a different mechanism or schedule for maintaining consistent middlebox service configuration data across the control plane controllers. In some embodiments, the middlebox service configuration data (including rules) are sent from the control plane controller 710 to edge hosts via an NSX channel (e.g., an existing channel that delivers messages between the control plane cluster and an edge host). The rules, in some embodiments, are stored in a NestDB on the edge host 720 from which the middlebox service engines 725 can retrieve them.
In
To perform its service operation for a data message flow, a context-aware middlebox service engine 725, in some embodiments, uses context data included in the data message to determine the action to perform on the data message as part of providing the middlebox service. In some embodiments, middlebox service engines execute on a same physical device as an edge gateway (i.e., edge host 720) and each of the middlebox service engines and the edge gateway are implemented using virtual machines (service virtual machines), containers, or software modules executing on the physical device. In other embodiments, edge gateways and middlebox service engines execute on separate physical devices (not shown). In some embodiments, each physical device is one of a standalone device for performing a particular gateway or middlebox function or a device executing a set of virtual machines, containers or software modules to implement the gateway or middlebox function. The specific steps of the process will be described in relation to
Once the outer header has been processed and removed, the process identifies (at 810) the context data included in the inner (e.g., GENEVE) header. In some embodiments, the context data (e.g., contextual attributes or context token) are stored for later access by the middlebox service engine or provided to the middlebox service engine. As indicated in
Once the data message has been encapsulated with the GRE header, process 800 provides (at 815) the middlebox service based on the contextual data it identified from the data message header. In some embodiments, the middlebox service 725 uses the contextual data to match to contextual attributes recited by service rules in a context-based service rule storage. If no service rule specifies contextual data matching the contextual data identified in the header, no action is taken. In some embodiments, a default service rule is specified that matches any contextual data (e.g., specified as a set of wildcard values) and specifies a default action (e.g., no action) so that all data messages match at least one service rule. One of ordinary skill in the art will appreciate that certain middlebox services are performed before encapsulation with the GRE header.
As mentioned above, application 1015 of a service rule in some embodiments represents a specific example of a contextual attribute specified in a rule, but in other embodiments, the rule may specify one or more other contextual attributes that are not L2-L4 header parameters (e.g., are L7 parameters, process identifiers, user identifiers, group identifiers, process name, process hash, loaded module identifiers, consumption parameters, etc.). In some embodiments, a rule also specifies L2-L4 header parameters. Also, in some embodiments, one or more contextual attributes in a rule can be specified in terms of an individual value or a wildcard value. Also, in some embodiments, a rule can specify a set of individual values or a group identifier, such as a security group identifier, a compute construct identifier, a network construct identifier, etc.
In some embodiments, to match received contextual data with the rules, the middlebox services (or another module of the edge host) compare the received contextual data with the attribute specification of the service rules stored in the context-based service rule storage. Upon identifying a matching rule for a specific middlebox service, the middlebox service in the set of middlebox services 725 performs a service operation (e.g., a WAN optimization operation, a firewall operation, a load balancing operation, an encryption operation, other middlebox operation, etc.), based on the action parameter set (e.g., based on optimization parameters, Allow/Drop parameters, load balancing criteria, encryption parameters, etc.) of the matching rule.
In some embodiments, the context-based service rule storage is defined in a hierarchical manner to ensure that a message rule check will match a higher priority rule before matching a lower priority rule, when the message's contextual attribute subset matches multiple rules. Also, in some embodiments, the context-based service rule storage contains a default rule that specifies a default action for any message rule check that cannot identify any other service rules; this default rule will be a match for all possible attribute subsets in some embodiments and ensures that the service rule engine will return an action for all received attribute subsets. In some embodiments, the default rule will specify no service.
After providing (at 815) the middlebox service, the process determines (at 820) whether the middlebox service has a peer middlebox at a destination that requires contextual data. If there is a peer at a destination that requires contextual data, the process includes (at 825) contextual data in the data message. In the embodiment depicted in
Once the custom header is included, or if the process determines (at 820) that no peer at a destination edge host of the data message requires peer data, the process forwards (at 830) the data message to the destination. In some embodiments, forwarding the data message includes encapsulating the data message with a further encapsulation to be sent to a different datacenter using a tunneling or security protocol, for example using IPSec as depicted in
As discussed above in relation to
The process then determines (at 1210) whether the data message includes contextual data. As described above, the contextual data, in some embodiments, is included in a custom header. The custom header contains contextual data that indicates the processes, algorithms, encryption keys, etc. used by the middlebox service that processed the data message at the other datacenter, for the receiving middlebox service to use to provide the middlebox service before forwarding the data message to its destination. In some embodiments, contextual data is included in an inner header and reflects the contextual data passed to the first middlebox service for use by a machine in the second datacenter (e.g., an edge host hosting an edge gateway, or a host machine hosting a destination machine) that processes the data message on its path to a destination machine.
If the process determines (at 1210) that the data message includes contextual data, the process provides (at 1215) the middlebox service (or services) associated with the contextual data to the data message and forwards (at 1220) the data message to its destination and the process ends. If the process determines (at 1210) that the data message does not include contextual data, the process forwards (at 1220) the data message to its destination and the process ends. In some embodiments, forwarding (at 1220) the data message includes providing additional middlebox services besides those associated with any contextual data included in the custom header.
Many of the above-described features and applications are implemented as software processes that are specified as a set of instructions recorded on a computer readable storage medium (also referred to as computer readable medium). When these instructions are executed by one or more processing unit(s) (e.g., one or more processors, cores of processors, or other processing units), they cause the processing unit(s) 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. The computer readable media does not include carrier waves and electronic signals passing wirelessly or over wired connections.
In this specification, the term “software” is meant to include firmware residing in read-only memory or applications stored in magnetic storage, which can be read into memory for processing by a processor. Also, in some embodiments, multiple software inventions can be implemented as sub-parts of a larger program while remaining distinct software inventions. In some embodiments, multiple software inventions can also be implemented as separate programs. Finally, any combination of separate programs that together implement a software invention described here is within the scope of the invention. In some embodiments, the software programs, when installed to operate on one or more electronic systems, define one or more specific machine implementations that execute and perform the operations of the software programs.
The bus 1405 collectively represents all system, peripheral, and chipset buses that communicatively connect the numerous internal devices of the computer system 1400. For instance, the bus 1405 communicatively connects the processing unit(s) 1410 with the read-only memory 1430, the system memory 1425, and the permanent storage device 1435.
From these various memory units, the processing unit(s) 1410 retrieve instructions to execute and data to process in order to execute the processes of the invention. The processing unit(s) may be a single processor or a multi-core processor in different embodiments. The read-only-memory (ROM) 1430 stores static data and instructions that are needed by the processing unit(s) 1410 and other modules of the computer system. The permanent storage device 1435, on the other hand, is a read-and-write memory device. This device is a non-volatile memory unit that stores instructions and data even when the computer system 1400 is off. Some embodiments of the invention use a mass-storage device (such as a magnetic or optical disk and its corresponding disk drive) as the permanent storage device 1435.
Other embodiments use a removable storage device (such as a floppy disk, flash drive, etc.) as the permanent storage device. Like the permanent storage device 1435, the system memory 1425 is a read-and-write memory device. However, unlike storage device 1435, the system memory is a volatile read-and-write memory, such a random access memory. The system memory stores some of the instructions and data that the processor needs at runtime. In some embodiments, the invention's processes are stored in the system memory 1425, the permanent storage device 1435, and/or the read-only memory 1430. From these various memory units, the processing unit(s) 1410 retrieve instructions to execute and data to process in order to execute the processes of some embodiments.
The bus 1405 also connects to the input and output devices 1440 and 1445. The input devices enable the user to communicate information and select commands to the computer system. The input devices 1440 include alphanumeric keyboards and pointing devices (also called “cursor control devices”). The output devices 1445 display images generated by the computer system. The output devices include printers and display devices, such as cathode ray tubes (CRT) or liquid crystal displays (LCD). Some embodiments include devices such as a touchscreen that function as both input and output devices.
Finally, as shown in
Some embodiments include electronic components, such as microprocessors, storage and memory that store computer program instructions in a machine-readable or computer-readable medium (alternatively referred to as computer-readable storage media, machine-readable media, or machine-readable storage media). Some examples of such computer-readable media include RAM, ROM, read-only compact discs (CD-ROM), recordable compact discs (CD-R), rewritable compact discs (CD-RW), read-only digital versatile discs (e.g., DVD-ROM, dual-layer DVD-ROM), a variety of recordable/rewritable DVDs (e.g., DVD-RAM, DVD-RW, DVD+RW, etc.), flash memory (e.g., SD cards, mini-SD cards, micro-SD cards, etc.), magnetic and/or solid state hard drives, read-only and recordable Blu-Ray® discs, ultra-density optical discs, any other optical or magnetic media, and floppy disks. The computer-readable media may store a computer program that is executable by at least one processing unit and includes sets of instructions for performing various operations. Examples of computer programs or computer code include machine code, such as is produced by a compiler, and files including higher-level code that are executed by a computer, an electronic component, or a microprocessor using an interpreter.
While the above discussion primarily refers to microprocessor or multi-core processors that execute software, some embodiments are performed by one or more integrated circuits, such as application specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs). In some embodiments, such integrated circuits execute instructions that are stored on the circuit itself.
As used in this specification, the terms “computer”, “server”, “processor”, and “memory” all refer to electronic or other technological devices. These terms exclude people or groups of people. For the purposes of the specification, the terms display or displaying means displaying on an electronic device. As used in this specification, the terms “computer readable medium,” “computer readable media,” and “machine readable medium” are entirely restricted to tangible, physical objects that store information in a form that is readable by a computer. These terms exclude any wireless signals, wired download signals, and any other ephemeral or transitory signals.
While the invention has been described with reference to numerous specific details, one of ordinary skill in the art will recognize that the invention can be embodied in other specific forms without departing from the spirit of the invention. For instance, several figures conceptually illustrate processes. The specific operations of these processes may not be performed in the exact order shown and described. The specific operations may not be performed in one continuous series of operations, and different specific operations may be performed in different embodiments. Furthermore, the process could be implemented using several sub-processes, or as part of a larger macro process. Thus, one of ordinary skill in the art would understand that the invention is not to be limited by the foregoing illustrative details, but rather is to be defined by the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
5504921 | Dev et al. | Apr 1996 | A |
5528516 | Yemini et al. | Jun 1996 | A |
5550816 | Hardwick et al. | Aug 1996 | A |
5729685 | Chatwani et al. | Mar 1998 | A |
5751967 | Raab et al. | May 1998 | A |
5796936 | Watabe et al. | Aug 1998 | A |
5825779 | Putnins et al. | Oct 1998 | A |
6104699 | Holender et al. | Aug 2000 | A |
6219699 | McCloghrie et al. | Apr 2001 | B1 |
6512745 | Abe et al. | Jan 2003 | B1 |
6539432 | Taguchi et al. | Mar 2003 | B1 |
6680934 | Cain | Jan 2004 | B1 |
6785843 | McRae et al. | Aug 2004 | B1 |
6842768 | Shaffer et al. | Jan 2005 | B1 |
6941487 | Balakrishnan et al. | Sep 2005 | B1 |
6963585 | Pennec et al. | Nov 2005 | B1 |
7079544 | Wakayama et al. | Jul 2006 | B2 |
7096228 | Theimer et al. | Aug 2006 | B2 |
7197572 | Matters et al. | Mar 2007 | B2 |
7200144 | Terrell et al. | Apr 2007 | B2 |
7209439 | Rawlins et al. | Apr 2007 | B2 |
7286490 | Saleh et al. | Oct 2007 | B2 |
7359971 | Jorgensen | Apr 2008 | B2 |
7450598 | Chen et al. | Nov 2008 | B2 |
7483370 | Dayal et al. | Jan 2009 | B1 |
7606260 | Oguchi et al. | Oct 2009 | B2 |
7649851 | Takashige et al. | Jan 2010 | B2 |
7710874 | Balakrishnan et al. | May 2010 | B2 |
7730486 | Herington | Jun 2010 | B2 |
7792987 | Vohra et al. | Sep 2010 | B1 |
7818452 | Matthews et al. | Oct 2010 | B2 |
7826482 | Minei et al. | Nov 2010 | B1 |
7885276 | Lin | Feb 2011 | B1 |
7937438 | Miller et al. | May 2011 | B1 |
7948986 | Ghosh et al. | May 2011 | B1 |
8027354 | Portolani et al. | Sep 2011 | B1 |
8046456 | Miller et al. | Oct 2011 | B1 |
8054832 | Shukla et al. | Nov 2011 | B1 |
8055789 | Richardson et al. | Nov 2011 | B2 |
8166201 | Richardson et al. | Apr 2012 | B2 |
8223668 | Allan et al. | Jul 2012 | B2 |
8224931 | Brandwine et al. | Jul 2012 | B1 |
8224971 | Miller et al. | Jul 2012 | B1 |
8312129 | Miller et al. | Nov 2012 | B1 |
8456984 | Ranganathan et al. | Jun 2013 | B2 |
8504718 | Wang et al. | Aug 2013 | B2 |
8621058 | Eswaran et al. | Dec 2013 | B2 |
8644188 | Brandwine et al. | Feb 2014 | B1 |
8705513 | Merwe et al. | Apr 2014 | B2 |
9021098 | Nagle et al. | Apr 2015 | B1 |
9596126 | Shen et al. | Mar 2017 | B2 |
10148484 | Shen et al. | Dec 2018 | B2 |
10225270 | Reddy et al. | Mar 2019 | B2 |
10374830 | Datta et al. | Aug 2019 | B1 |
20030006919 | Collins et al. | Jan 2003 | A1 |
20030093481 | Mitchell et al. | May 2003 | A1 |
20040047286 | Larsen et al. | Mar 2004 | A1 |
20040073659 | Rajsic et al. | Apr 2004 | A1 |
20040098505 | Clemmensen | May 2004 | A1 |
20040267897 | Hill et al. | Dec 2004 | A1 |
20050018669 | Arndt et al. | Jan 2005 | A1 |
20050038834 | Souder et al. | Feb 2005 | A1 |
20050083953 | May | Apr 2005 | A1 |
20050120160 | Plouffe et al. | Jun 2005 | A1 |
20060002370 | Rabie et al. | Jan 2006 | A1 |
20060026225 | Canali et al. | Feb 2006 | A1 |
20060092940 | Ansari et al. | May 2006 | A1 |
20060092976 | Lakshman et al. | May 2006 | A1 |
20060174087 | Hashimoto et al. | Aug 2006 | A1 |
20060184937 | Abels et al. | Aug 2006 | A1 |
20060193266 | Siddha et al. | Aug 2006 | A1 |
20070043860 | Pabari | Feb 2007 | A1 |
20070156919 | Potti et al. | Jul 2007 | A1 |
20070220059 | Lu et al. | Sep 2007 | A1 |
20070220358 | Goodill et al. | Sep 2007 | A1 |
20070260721 | Bose et al. | Nov 2007 | A1 |
20070283348 | White | Dec 2007 | A1 |
20070297428 | Bose et al. | Dec 2007 | A1 |
20080002579 | Lindholm et al. | Jan 2008 | A1 |
20080040467 | Mendiratta et al. | Feb 2008 | A1 |
20080049621 | McGuire et al. | Feb 2008 | A1 |
20080059556 | Greenspan et al. | Mar 2008 | A1 |
20080071900 | Hecker et al. | Mar 2008 | A1 |
20080080559 | Singh | Apr 2008 | A1 |
20080159301 | Heer | Jul 2008 | A1 |
20080165704 | Marchetti et al. | Jul 2008 | A1 |
20090067331 | Watsen et al. | Mar 2009 | A1 |
20090296726 | Snively et al. | Dec 2009 | A1 |
20100039296 | Marggraff et al. | Feb 2010 | A1 |
20100125667 | Soundararajan | May 2010 | A1 |
20100169441 | Lafleur et al. | Jul 2010 | A1 |
20100177789 | Chen et al. | Jul 2010 | A1 |
20110103259 | Aybay et al. | May 2011 | A1 |
20110296052 | Guo et al. | Dec 2011 | A1 |
20120075991 | Sugita et al. | Mar 2012 | A1 |
20120120964 | Koponen et al. | May 2012 | A1 |
20120147894 | Mulligan et al. | Jun 2012 | A1 |
20120226799 | Kapur et al. | Sep 2012 | A1 |
20130024579 | Zhang et al. | Jan 2013 | A1 |
20130044752 | Koponen et al. | Feb 2013 | A1 |
20130103817 | Koponen et al. | Apr 2013 | A1 |
20130332602 | Nakil et al. | Dec 2013 | A1 |
20130332619 | Xie et al. | Dec 2013 | A1 |
20140050223 | Foo et al. | Feb 2014 | A1 |
20140089488 | Chong et al. | Mar 2014 | A1 |
20140181829 | Hathaway et al. | Jun 2014 | A1 |
20140229944 | Wang et al. | Aug 2014 | A1 |
20140241247 | Kempf et al. | Aug 2014 | A1 |
20140280836 | Kumar et al. | Sep 2014 | A1 |
20140351229 | Gupta | Nov 2014 | A1 |
20140355516 | Baudoin et al. | Dec 2014 | A1 |
20150009995 | Gross, IV et al. | Jan 2015 | A1 |
20150103645 | Shen et al. | Apr 2015 | A1 |
20150103661 | Shen et al. | Apr 2015 | A1 |
20160080244 | Retana et al. | Mar 2016 | A1 |
20160099853 | Nedeltchev et al. | Apr 2016 | A1 |
20160105377 | Nakagawa | Apr 2016 | A1 |
20160119156 | Drake et al. | Apr 2016 | A1 |
20160330070 | Datta et al. | Nov 2016 | A1 |
20160330111 | Manghirmalani et al. | Nov 2016 | A1 |
20160380886 | Blair et al. | Dec 2016 | A1 |
20170063674 | Maskalik et al. | Mar 2017 | A1 |
20170063782 | Jain et al. | Mar 2017 | A1 |
20170078207 | Atkins et al. | Mar 2017 | A1 |
20170235774 | Colgrove et al. | Aug 2017 | A1 |
20170317954 | Masurekar et al. | Nov 2017 | A1 |
20170359247 | Dixon | Dec 2017 | A1 |
20180006935 | Mutnuru et al. | Jan 2018 | A1 |
20180063036 | Chandrashekhar | Mar 2018 | A1 |
20180159957 | Hooda | Jun 2018 | A1 |
20180270288 | Wang et al. | Sep 2018 | A1 |
20180295036 | Krishnamurthy et al. | Oct 2018 | A1 |
20190028300 | Mathew et al. | Jan 2019 | A1 |
20190045031 | Feghali et al. | Feb 2019 | A1 |
20190075012 | Shen et al. | Mar 2019 | A1 |
20190104111 | Cidon et al. | Apr 2019 | A1 |
20190149512 | Sevinc | May 2019 | A1 |
20190238363 | Boutros | Aug 2019 | A1 |
20200014663 | Chen et al. | Jan 2020 | A1 |
20200162377 | Sarva et al. | May 2020 | A1 |
20200177458 | Rahman et al. | Jun 2020 | A1 |
Number | Date | Country |
---|---|---|
2013184846 | Dec 2013 | WO |
2020009784 | Jan 2020 | WO |
Entry |
---|
Non-Published commonly owned International Patent Application PCT/US2019/036645, filed Jun. 12, 2019, 46 pages, VMware, Inc. |
PCT International Search Report and Written Opinion dated Sep. 2, 2019 for commonly owned International Patent Application PCT/US2019/036645, 13 pages, VMware, Inc. |
Author Unknown, “Viltual Machine Backup Guide,” Nov. 2007, 78 pages, VMware, Inc., Palo Alto, California. |
Author Unknown, “Apache Catisandra™ 1.2 Documentation,” Jan. 13, 2013, 201 pages, DataStax. |
Non-Published commonly owned U.S. Appl. No. 16/028,347, filed Jul. 5, 2018, 46 pages, VMware, Inc. |
Number | Date | Country | |
---|---|---|---|
20200014638 A1 | Jan 2020 | US |