The present application claims the benefit of Patent Cooperation Treaty (PCT) Application No. PCT/CN2020/141197, filed Dec. 30, 2020. The PCT application is herein incorporated by reference in its entirety.
Virtualization allows the abstraction and pooling of hardware resources to support virtual machines in a Software-Defined Networking (SDN) environment, such as a Software-Defined Data Center (SDDC). For example, through server virtualization, virtualization computing instances such as virtual machines (VMs) running different operating systems may be supported by the same physical machine (e.g., referred to as a “host”). Each VM is generally provisioned with virtual resources to run an operating system and applications. The virtual resources may include central processing unit (CPU) resources, memory resources, storage resources, network resources, etc. In practice, VMs supported by different hosts may be deployed on the same logical overlay network, or different logical overlay networks. However, traffic over logical overlay tunnels may be susceptible to various performance issues, which may affect the quality of packet flows among VMs connected via logical overlay networks.
According to examples of the present disclosure, logical overlay tunnel monitoring may be implemented using tunnel monitoring agents (see 181-183 in
In the following detailed description, reference is made to the accompanying drawings, which form a part hereof. In the drawings, similar symbols typically identify similar components, unless context dictates otherwise. The illustrative embodiments described in the detailed description, drawings, and claims are not meant to be limiting. Other embodiments may be utilized, and other changes may be made, without departing from the spirit or scope of the subject matter presented here. It will be readily understood that the aspects of the present disclosure, as generally described herein, and illustrated in the drawings, can be arranged, substituted, combined, and designed in a wide variety of different configurations, all of which are explicitly contemplated herein. Although the terms “first,” “second” and so on are used to describe various elements, these elements should not be limited by these terms. These terms are used to distinguish one element from another. A first element may be referred to as a second element, and vice versa.
Each host 110A/110B/110C may include suitable hardware 112A/112B/112C and virtualization software (e.g., hypervisor-A 114A, hypervisor-B 114B, hypervisor-C 114C) to support various virtual machines (VMs) 131-136. For example, host-A 110A supports VM1 131 and VM2 132; host-B 110B supports VM3 133 and VM4 134; and host-C 110C supports VM5 135 VM6 136. Hypervisor 114A/114B/114C maintains a mapping between underlying hardware 112A/112B/112C and virtual resources allocated to respective VMs 131-136. Hardware 112A/112B/112C includes suitable physical components, such as central processing unit(s) (CPU(s)) or processor(s) 120A/120B/120C; memory 122A/122B/122C; physical network interface controllers (NICs) 124A/124B/124C; and storage disk(s) 126A/126B/126C, etc.
Virtual resources are allocated to respective VMs 131-136 to support a guest operating system (OS) and application(s). For example, the virtual resources may include virtual CPU, guest physical memory, virtual disk, virtual network interface controller (VNIC), etc. Hardware resources may be emulated using virtual machine monitors (VMMs). For example in
Although examples of the present disclosure refer to VMs, it should be understood that a “virtual machine” running on a host is merely one example of a “virtualized computing instance” or “workload.” A virtualized computing instance may represent an addressable data compute node (DCN) or isolated user space instance. In practice, any suitable technology may be used to provide isolated user space instances, not just hardware virtualization. Other virtualized computing instances may include containers (e.g., running within a VM or on top of a host operating system without the need for a hypervisor or separate operating system or implemented as an operating system level virtualization), virtual private servers, client computers, etc. Such container technology is available from, among others, Docker, Inc. The VMs may also be complete computational environments, containing virtual equivalents of the hardware and software components of a physical computing system.
The term “hypervisor” may refer generally to a software layer or component that supports the execution of multiple virtualized computing instances, including system-level software in guest VMs that supports namespace containers such as Docker, etc. Hypervisors 114A-C may each implement any suitable virtualization technology, such as VMware ESX® or ESXi™ (available from VMware, Inc.), Kernel-based Virtual Machine (KVM), etc. The term “packet” may refer generally to a group of bits that can be transported together, and may be in another form, such as “frame,” “message,” “segment,” etc. The term “traffic” may refer generally to multiple packets. The term “layer-2” may refer generally to a link layer or Media Access Control (MAC) layer; “layer-3” to a network or Internet Protocol (IP) layer; and “layer-4” to a transport layer (e.g., using Transmission Control Protocol (TCP), User Datagram Protocol (UDP), etc.), in the Open System Interconnection (OSI) model, although the concepts described herein may be used with other networking models.
Hypervisor 114A/114B/114C implements virtual switch 115A/115B/115C and logical distributed router (DR) instance 117A/117B/117C to handle egress packets from, and ingress packets to, corresponding VMs 131-136. In SDN environment 100, logical switches and logical DRs may be implemented in a distributed manner and can span multiple hosts to connect VMs 131-136. For example, logical switches that provide logical layer-2 connectivity may be implemented collectively by virtual switches 115A-C and represented internally using forwarding tables 116A-C at respective virtual switches 115A-C. Forwarding tables 116A-C may each include entries that collectively implement the respective logical switches. Further, logical DRs that provide logical layer-3 connectivity may be implemented collectively by DR instances 117A-C and represented internally using routing tables 118A-C at respective DR instances 117A-C. Routing tables 118A-C may each include entries that collectively implement the respective logical DRs.
Packets may be received from, or sent to, each VM via an associated logical switch port. For example, logical switch ports 151-156 (labelled “LSP1” to “LSP6”) are associated with respective VMs 131-136. Here, the term “logical port” or “logical switch port” may refer generally to a port on a logical switch to which a virtualized computing instance is connected. A “logical switch” may refer generally to a software-defined networking (SDN) construct that is collectively implemented by virtual switches 115A-C in the example in
SDN manager 164 and SDN controller 160 are example network management entities in SDN environment 100. For example, SDN manager 164 may reside on a management plane (see module 166) and SDN controller 160 on a central control plane (see module 162). To send and receive the control information (e.g., configuration information), each host 110A/110B/110C may implement local control plane (LCP) agent (not shown) to interact with SDN controller 160. For example, control-plane channel 101/102/103 may be established between SDN controller 160 and host 110A/110B/110C using TCP over Secure Sockets Layer (SSL), etc. Management entity 160/164 may be implemented using physical machine(s), virtual machine(s), a combination thereof, etc. Hosts 110A-C may also maintain data-plane connectivity with each other via physical network 104.
Through virtualization of networking services, logical overlay networks may be provisioned, changed, stored, deleted and restored programmatically without having to reconfigure the underlying physical hardware architecture. A logical overlay network (also known as “logical network”) may be formed using any suitable tunneling protocol, such as Generic Network Virtualization Encapsulation (GENEVE), Virtual eXtensible Local Area Network (VXLAN), Stateless Transport Tunneling (STT), etc. For example, tunnel encapsulation may be implemented according to a tunneling protocol to extend layer-2 segments across multiple hosts. The term “logical overlay tunnel” in relation to a logical overlay network may refer generally to a tunnel established between a pair of virtual tunnel endpoints (VTEPs) over physical network 104, over which respective hosts are in layer-3 connectivity with one another.
In the example in
Some example logical overlay networks are shown in
A logical DR (see “DR” 205) connects logical switches 201-202 to facilitate communication among VMs 131-136 on different segments. See also logical switch ports “LSP7” 203 and “LSP8” 204, and logical router ports “LRP1” 207 and “LRP2” 208 connecting DR 205 with logical switches 201-202. Logical switch 201/202 may be implemented collectively by multiple transport nodes, such as using virtual switches 115A-C and represented internally using forwarding tables 116A-C. DR 205 may be implemented collectively by multiple transport nodes, such as using edge node 206 and hosts 110A-C. For example, DR 205 may be implemented using DR instances 117A-C and represented internally using routing tables 118A-C at respective hosts 110A-C.
Edge node 206 (labelled “EDGE1”) may implement one or more logical DRs and logical service routers (SRs), such as DR 205 and SR 209 in
Depending on the desired implementation, a multi-tier topology may be used to isolate multiple tenants. For example, a two-tier topology includes an upper tier associated with a provider logical router (PLR) and a lower tier associated with a tenant logical router (TLR). Each tier may include both DRs and SRs, or DRs and SRs on the upper tier (known as “tier-0”) but only DRs at the lower tier (known “tier-1”). In this case, a logical router may be categorized as one of the following types: TLR-DR, TLR-SR, PLR-DR and PLR-SR. Depending on the desired implementation, DR 205 and SR 209 may be connected via a transit logical switch (not shown in
The virtualization of networking services generally provides improved flexibility, manageability and serviceability in relation to forwarding policy, performance and security. However, in practice, logical overlay networks are susceptible to various performance issues, which may affect the performance of applications supported by VMs 131-136. For example, some applications may have relatively stringent requirement in relation to network latency, such as applications relating to autonomous driving, video streaming, stock trading and e-commerce sales. For latency-sensitive traffic, high latency affects the quality of the applications (e.g., timely delivery of streaming data), which in turn hinders user experience and possibly leads to business loss. To facilitate health checks and network diagnosis, it is desirable to monitor logical overlay tunnels to obtain monitor their real-time performance.
Conventionally, one approach is to use bidirectional forwarding detection (BFD) for connectivity checks. However, BFD has some drawbacks and might not be suitable for all real-world scenarios. For example, BFD generally works on an uplink level, which means only latency between a source PNIC and a destination PNIC may be measured. In this case, latency incurred by some hypervisor-implemented network functions (e.g., firewall) will not be measured. In another example, since BFD is implemented using a kernel module, hypervisor context switching latency (and the associated number of applications) might not be measured. Further, BFD might be complex to implement, and require BFD session establishment and interaction with other components (e.g., VDL2 and netcpa).
Logical Overlay Tunnel Monitoring
According to examples of the present disclosure, logical overlay tunnel monitoring may be implemented in an improved manner using tunnel monitoring agents (see 181-183 in
In practice, logical overlay tunnel monitoring according to examples of the present disclosure may be integrated with a network monitoring platform accessible by network administrators and developers to facilitate network diagnosis and troubleshooting. As used herein, the term “logical overlay tunnel” may refer generally to a logical connection or link that is established between a pair of VTEPs to facilitate forwarding of logical overlay network traffic. The term “logical overlay network traffic” may refer generally to encapsulated packet(s) associated with a packet flow between a pair of endpoints (e.g., VMs) that are connected via a logical overlay network that includes logical switch(es) and/or logical router(s). The pair of endpoints may be deployed on the same logical overlay network (e.g., VNI=5000) or different logical overlay networks (e.g., source VNI=5000 to destination VNI=6000). Throughout the present disclosure, various examples will be explained using host-A 110A as an example “first host” or “first computer system,” host 110B/110C as “second host” or “second computer system,” SDN controller 160 residing on a control plane as “management entity,” etc.
In more detail,
At 310 in
At 320 and 330 in
At 340 and 350 in
Depending on the desired implementation, monitoring agents 181-183 may be operating in a “user space” (or user world) of hypervisor 114A/114B/114C on host 110A/110B/110C. Monitoring agents 181-183 may be configured to interact with respective VTEPs 171-176 that operate in a “kernel space” of hypervisor 114A/114B/114C on host 110A/110B/110C. In this case, at block 330, first monitoring agent 181 (i.e., operating in a user space) may use an OS interface supported by first VTEP-A1 171 (i.e., operating in a kernel space) to perform the injection. In practice, the term “user space” may refer generally to memory and/or address space that has been allocated to application software and/or components. The term “kernel space” may generally refer to memory and/or address space that has been allocated to an OS kernel and/or OS component(s). In practice, the user space and kernel space may represent virtual memory allocations, execution contexts or address spaces that are segregated from each other.
For packets that are passed from the user space/world in which monitoring agents 181-183 are operating, respective hypervisors 114A-C are configured to pass the packets from the user space/world to a kernel space (e.g., vmkernel world) before sending the packets out onto physical network 104. Such operations are referred to as “hypervisor context switching,” which may be measured as part of the RTT according to examples of the present disclosure. As such, user-space monitoring agents 181-183 should be contrasted against conventional BFD implementation that requires kernel space access and does not consider hypervisor context switching and/or routing operations that are performed in the user space during latency measurement.
As will be discussed using
Example Tunnel Calculation
(a) Event Information
At 405 in
In the example in
At host-B 110B, a configuration event may be VM2 132 attaching to logical switch=LS1 201 via logical switch port=LSP2 152 to join the same logical network=LN1. Here, host-B 110B is configured with VTEP-B1 173 and VTEP-B2 174 assigned with respective PNIC-B1 503 and PNIC-B2 504. Based on a teaming policy, VTEP-B2 174 may be assigned to LSP2 152. In this case, host-B 110B may generate and send event information=<LN1, HOST-B, LSP2, IP-VTEP-B2>. See VTEP assignment 220 in
Similarly, at host-C 110C, a configuration event may be VM3 133 attaching to LS1 201 via LSP3 153 to join LN1. Host-C 110C is configured with VTEP-C1 175 and VTEP-C2 176 assigned with respective PNIC-C1 505 and PNIC-C2 506. Based on a teaming policy, LSP3 153 may be assigned with VTEP-C1 175 to handle packet encapsulation and decapsulation for traffic detected via LSP3 153. In this case, host-C 110C may generate and send event information=<LN1, HOST-C, LSP3, IP-VTEP-C1>. See VTEP assignment 230 in
(b) Control Information
At 410 in
At 415 in
For example, to configure logical overlay tunnel monitoring by first agent 181, control information identifying first VTEP pair=<IP-VTEP-A1, IP-VTEP-B2> and second VTEP pair=<IP-VTEP-1, IP-VTEP-C1> is sent to host-A 110A. For host-B 110B, control information identifying <IP-VTEP-B2, IP-VTEP-A1> and <IP-VTEP-B2, IP-VTEP-C1> is ent to second agent 182. For host-C 110C, control information identifying <IP-VTEP-C1, IP-VTEP-A1> and <IP-VTEP-C1, IP-VTEP-B2> is sent to third agent 182. See “C1” 550, “C2” 560 and “C3” 570 in
Further, the configuration process at block 415 may be based on input information from a user (e.g., network administrator) using any suitable user interface supported by SDN manager 164, such web-based graphical user interface (GUI), command line interface (CLI), application programming interface (API), etc. Based on the input information, SDN controller 160 may perform calculation for distribution span and control information dissemination to hosts 110A-C. The user may configure tunnels for the whole network, a particular logical network, a pair of logical ports, etc. Monitoring may be triggered and stopped manually or automatically (i.e., programmatically based on stopping condition(s)).
Note that hosts 110A-C may establish logical overlay tunnels with each other at any suitable time. In the example in
Example Probe Packets
In the following,
At 420-425 in
At 430, 435 and 440 in
In a first example in
Once injected at VTEP-A1 171, the first probe packet (P1) may be encapsulated with an outer header (O1) to generate a first encapsulated probe packet (O1, P1). To reach second monitoring agent 182, the outer header (O1) may specify outer address information (source VTEP IP address=IP-VTEP-A1, destination VTEP IP address=IP-VTEP-Bpb2) associated with respective VTEP-A1 171 and VTEP-B2 174. The outer header (O1) may also specify VNI=5000 associated with LS1 201 and LN1. The first encapsulated probe packet is then sent via PNIC-A1 501 associated with source VTEP-A1 171 towards destination VTEP-B2 174 over first logical overlay tunnel 601. See 620 in
In a second example in
Once injected at VTEP-A1 171, the second probe packet (P2) may be encapsulated with an outer header (O2) to generate a second encapsulated probe packet (O2, P2). To reach third monitoring agent 183, the outer header (O2) may specify outer address information (source IP-VTEP-A1, destination IP-VTEP-C1) associated with respective VTEP-A1 171 and VTEP-C1 175. Further, VNI=5000 associated with LS1 201 and LN1 may be specified. The second encapsulated probe packet is then sent via PNIC-A1 501 associated with source VTEP-A1 171 towards destination VTEP-C1 175 over second logical overlay tunnel 701. See 720 in
Example Response Packets
At 450 in
In the example in
Once injected at VTEP-B2 174, the first response packet (R1) may be encapsulated with an outer header (O2) to generate a first encapsulated response packet (O2, R1). To reach first monitoring agent 181 on host-A 110A, the outer header (O2) may specify VNI=5000 and outer address information (source IP-VTEP-B2, destination IP-VTEP-A1) associated with respective VTEP-B2 174 and VTEP-A1 171. The first encapsulated response packet is then sent via PNIC-B2 504 towards destination VTEP-A1 171 over first logical overlay tunnel 601. See 640 in
In the example in
Once injected at VTEP-C1 175, the second response packet (R2) may be encapsulated with an outer header (O4) to generate a second encapsulated response packet (O4, R2). To reach first monitoring agent 181 on host-A 110A, the outer header (O4) may specify outer address information (source IP-VTEP-C1, destination IP-VTEP-A1) associated with respective VTEP-C1 175 and VTEP-A1 171. The outer header (O4) may also specify VNI=5000. The encapsulated response packet is then sent via PNIC-C1 505 towards VTEP-A1 171 on host-A 110A over second logical overlay tunnel 701. See 740 in
Example Latency Measurement and Use Cases
At 470 in
In the example in
In the example in
At 480-485 in
Stateless Monitoring Agents
Depending on the desired implementation, monitoring agents 181-183 may be configured to be “stateless,” which means it is not necessary for them to store all state information. Being stateless, monitoring agents 181-183 may be implemented to reduce the complexity associated with logical overlay tunnel monitoring. At 490 in
TCP Probe and Response Packets
In the above examples, TCP packets are used as probe and response packets to better reflect data center traffic that is generally TCP-based. In this case, the use of UDP packets (e.g., BFD packets) as probe and response packets may result in a different behavior or outcome compared to TCP packets. By using TCP packets, the accuracy of latency measurement may be improved. Depending on the data center traffic pattern, any other protocol (e.g., UDP) may be used for the probe and response packets.
Additionally, probe and response packets may be configured or injected with time information to facilitate latency measurement without time synchronization. For example, a probe packet may be configured to record first time information (T1) associated with the transmission of the probe packet by first monitoring agent 181. A response packet may be configured to include second time information (T3−T2), where T2 is associated with the receipt of the probe packet and T3 with the transmission of the response packet by agent 182/183. This way, a roundtrip latency may be calculated as L=(T4−T1)−(T3−T2), where T4=fourth time information associated with the receipt of the response packet by agent 181. Examples of roundtrip calculation approach have been described in a related U.S. patent application Ser. No. 17/093,517 entitled “FLOW-BASED LATENCY MEASUREMENT FOR LOGICAL OVERLAY NETWORK TRAFFIC,” the content of which is incorporated herein in its entirety.
Container Implementation
Although explained using VMs, it should be understood that SDN environment 100 may include other virtual workloads, such as containers, etc. As used herein, the term “container” (also known as “container instance”) is used generally to describe an application that is encapsulated with all its dependencies (e.g., binaries, libraries, etc.). In the examples in
Computer System
The above examples can be implemented by hardware (including hardware logic circuitry), software or firmware or a combination thereof. The above examples may be implemented by any suitable computing device, computer system, etc. The computer system may include processor(s), memory unit(s) and physical NIC(s) that may communicate with each other via a communication bus, etc. The computer system may include a non-transitory computer-readable medium having stored thereon instructions or program code that, when executed by the processor, cause the processor to perform process(es) described herein with reference to
The techniques introduced above can be implemented in special-purpose hardwired circuitry, in software and/or firmware in conjunction with programmable circuitry, or in a combination thereof. Special-purpose hardwired circuitry may be in the form of, for example, one or more application-specific integrated circuits (ASICs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), and others. The term ‘processor’ is to be interpreted broadly to include a processing unit, ASIC, logic unit, or programmable gate array etc.
The foregoing detailed description has set forth various embodiments of the devices and/or processes via the use of block diagrams, flowcharts, and/or examples. Insofar as such block diagrams, flowcharts, and/or examples contain one or more functions and/or operations, it will be understood by those within the art that each function and/or operation within such block diagrams, flowcharts, or examples can be implemented, individually and/or collectively, by a wide range of hardware, software, firmware, or any combination thereof.
Those skilled in the art will recognize that some aspects of the embodiments disclosed herein, in whole or in part, can be equivalently implemented in integrated circuits, as one or more computer programs running on one or more computers (e.g., as one or more programs running on one or more computing systems), as one or more programs running on one or more processors (e.g., as one or more programs running on one or more microprocessors), as firmware, or as virtually any combination thereof, and that designing the circuitry and/or writing the code for the software and or firmware would be well within the skill of one of skill in the art in light of this disclosure.
Software and/or to implement the techniques introduced here may be stored on a non-transitory computer-readable storage medium and may be executed by one or more general-purpose or special-purpose programmable microprocessors. A “computer-readable storage medium”, as the term is used herein, includes any mechanism that provides (i.e., stores and/or transmits) information in a form accessible by a machine (e.g., a computer, network device, personal digital assistant (PDA), mobile device, manufacturing tool, any device with a set of one or more processors, etc.). A computer-readable storage medium may include recordable/non recordable media (e.g., read-only memory (ROM), random access memory (RAM), magnetic disk or optical storage media, flash memory devices, etc.).
The drawings are only illustrations of an example, wherein the units or procedure shown in the drawings are not necessarily essential for implementing the present disclosure. Those skilled in the art will understand that the units in the device in the examples can be arranged in the device in the examples as described, or can be alternatively located in one or more devices different from that in the examples. The units in the examples described can be combined into one module or further divided into a plurality of sub-units.
Number | Date | Country | Kind |
---|---|---|---|
PCT/CN2020/141197 | Dec 2020 | WO | international |
Number | Name | Date | Kind |
---|---|---|---|
7940685 | Breslau | May 2011 | B1 |
9787559 | Schroeder | Oct 2017 | B1 |
20080151771 | Dowse | Jul 2008 | A1 |
20130100816 | Bergamasco et al. | Apr 2013 | A1 |
20140211780 | Kang et al. | Jul 2014 | A1 |
20140269327 | Fulknier et al. | Sep 2014 | A1 |
20160112182 | Karnes | Apr 2016 | A1 |
20160226742 | Apathotharanan | Aug 2016 | A1 |
20160315860 | Nichols | Oct 2016 | A1 |
20160380859 | Edsall et al. | Dec 2016 | A1 |
20170135009 | Ling | May 2017 | A1 |
20170223062 | Jing et al. | Aug 2017 | A1 |
20180255036 | Fiedler | Sep 2018 | A1 |
20190081877 | Wang et al. | Mar 2019 | A1 |
20190097934 | Zhang et al. | Mar 2019 | A1 |
20190109769 | Jain et al. | Apr 2019 | A1 |
20200021532 | Borikar et al. | Jan 2020 | A1 |
20200127906 | Malboubi et al. | Apr 2020 | A1 |
20200374228 | Yang et al. | Nov 2020 | A1 |
20210226875 | Chen et al. | Jul 2021 | A1 |
20210235313 | Devadoss et al. | Jul 2021 | A1 |
20210392016 | Boutros | Dec 2021 | A1 |
Entry |
---|
Non-Published Commonly Owned U.S. Appl. No. 17/093,517, filed Nov. 9, 2020, VMware, Inc. |
Number | Date | Country | |
---|---|---|---|
20220210040 A1 | Jun 2022 | US |