# US 2019/0245949 A1 · Packet handling based on virtual network configuration information in software-defined networking (sdn) environments

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0245949 A1
- Document ID: US20190245949A1
- Status: Published application
- Kind: A1
- Application number: 15/889,224
- Filed: 2018-02-06
- Published: 2019-08-08
- Earliest claimed: 2018-02-06
- Assignees: Nicira, Inc.
- Applicants: Nicira, Inc.
- Inventors: Yusheng WANG; Donghai HAN
- Web page: https://patentgrep.com/patent/US20190245949A1

## CPC

- H04L 41/0895: Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
- H04L 69/22: Parsing or analysis of headers
- H04L 12/4633: {Interconnection of networks using encapsulation techniques, e.g. tunneling}
- H04L 12/4641: {Virtual LANs, VLANs, e.g. virtual private networks [VPN] (LAN interconnection over a bridge based backbone H04L12/462; encapsulation techniques H04L12/4633; routing of packets H04L45/00; packet switches H04L49/00; virtual private networks for security H04L63/0272)}
- H04L 41/0803: Configuration setting
- H04L 41/083: for increasing network speed
- H04L 2212/00: Encapsulation of packets
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Example methods are provided for packet handling based on virtual network configuration information in a software-defined networking (SDN) environment. An example comprises a first host obtaining virtual network configuration information that specifies a first virtual object identifier (ID) and a first address associated with a first virtualized computing instance, and a second virtual object ID and a second address associated with a second virtualized computing instance. In response to detecting an egress packet with an inner header that is addressed from the first address to the second address, the first host may generate an encapsulated packet by encapsulating the egress packet with an outer header that specifies the second virtual object ID; and send the encapsulated packet to the second host to cause the second host to decapsulate the outer header and, based on the second virtual object ID, send the egress packet to the second virtualized computing instance.

## Claims

### Claim 1

A method for a first host to perform packet handling based on virtual network configuration information in a software-defined networking (SDN) environment that includes the first host and a second host, wherein the method comprises:
obtaining virtual network configuration information that specifies a first virtual object identifier (ID) and a first address associated with a first virtualized computing instance supported by the first host, and a second virtual object ID and a second address associated with a second virtualized computing instance supported by the second host; and
in response to detecting, from the first virtualized computing instance, an egress packet with an inner header that is addressed from the first address to the second address specified in the virtual network configuration information,
generating an encapsulated packet by encapsulating the egress packet with an outer header that specifies the second virtual object ID; and
sending the encapsulated packet to the second host to cause the second host to decapsulate the outer header and, based on the second virtual object ID in the outer header, send the egress packet to the second virtualized computing instance.

### Claim 2 (depends on 1)

The method of claim 1, wherein obtaining the virtual network configuration information comprises:
obtaining, from a network management entity, the virtual network configuration information that specifies the first virtual object ID in the form of a first virtual network interface controller (VNIC) ID and the second virtual object ID in the form of a second virtual network interface controller (VNIC) ID, wherein the first VNIC ID identifies a first VNIC associated with the first virtualized computing instance and the second VNIC ID identifies a second VNIC associated with the second virtualized computing instance in the SDN environment.

### Claim 3 (depends on 2)

The method of claim 2, wherein obtaining the virtual network configuration information comprises:
receiving, from the network management entity, the virtual network configuration information that specifies the first VNIC ID and the first address based on the network management entity identifying that first VNIC is activated on the first host; and
receiving, from the network management entity, the virtual network configuration information that specifies the second VNIC ID and the second address based on the network management entity identifying that the second VNIC is activated on the second host, and both the first VNIC and second VNIC are associated with a same tenant.

### Claim 4 (depends on 1)

The method of claim 1, wherein the method further comprises:
detecting, from the first virtualized computing instance, a further packet that includes an inner header addressed from the first address to a third address that is not specified in the virtual network configuration information;
generating a further encapsulated packet by encapsulating the further packet with an outer header that specifies the first virtual object ID; and
sending the further encapsulated packet to a gateway to cause the gateway to decapsulate the outer header, perform a network address translation (NAT) operation associated with the first virtual object ID, and forward a decapsulated packet to an external network.

### Claim 5 (depends on 1)

The method of claim 1, wherein generating the encapsulated packet comprises:
determining whether the first address and the second address are associated with a same layer-2 network, or different layer-2 networks; and
in response to determination that the first address and the second address are associated with different layer-2 networks, performing a packet modification operation to modify the inner header of the egress packet.

### Claim 6 (depends on 1)

The method of claim 1, wherein the method further comprises:
in response receiving, from the second host or a gateway, an encapsulated packet that includes an outer header specifying the first virtual object ID, performing decapsulation to remove the outer header and sending a decapsulated packet to the first virtualized computing instance based on the first virtual object ID.

### Claim 7 (depends on 1)

The method of claim 1, wherein the method further comprises:
detecting, from the first virtualized computing instance, a request for a network service, wherein the request is one of the following: Dynamic Host Control Protocol (DHCP) request, Domain Name Server (DNS) query, address resolution request and ping request; and
generating and sending a response to the first virtualized computing instance based on the virtual network configuration information.

### Claim 8

A non-transitory computer-readable storage medium that includes a set of instructions which, in response to execution by a processor of a first host, cause the processor to perform a method of packet handling based on virtual network configuration information in a software-defined networking (SDN) environment that includes the first host and a second host, wherein the method comprises:
obtaining virtual network configuration information that specifies a first virtual object identifier (ID) and a first address associated with a first virtualized computing instance supported by the first host, and a second virtual object ID and a second address associated with a second virtualized computing instance supported by the second host; and
in response to detecting, from the first virtualized computing instance, an egress packet with an inner header that is addressed from the first address to the second address specified in the virtual network configuration information,
generating an encapsulated packet by encapsulating the egress packet with an outer header that specifies the second virtual object ID; and
sending the encapsulated packet to the second host to cause the second host to decapsulate the outer header and, based on the second virtual object ID in the outer header, send the egress packet to the second virtualized computing instance.

### Claim 9 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein obtaining the virtual network configuration information comprises:
obtaining, from a network management entity, the virtual network configuration information that specifies the first virtual object ID in the form of a first virtual network interface controller (VNIC) ID and the second virtual object ID in the form of a second virtual network interface controller (VNIC) ID, wherein the first VNIC ID identifies a first VNIC associated with the first virtualized computing instance and the second VNIC ID identifies a second VNIC associated with the second virtualized computing instance in the SDN environment.

### Claim 10 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein obtaining the virtual network configuration information comprises:
receiving, from the network management entity, the virtual network configuration information that specifies the first VNIC ID and the first address based on the network management entity identifying that first VNIC is activated on the first host; and
receiving, from the network management entity, the virtual network configuration information that specifies the second VNIC ID and the second address based on the network management entity identifying that the second VNIC is activated on the second host, and both the first VNIC and second VNIC are associated with a same tenant.

### Claim 11 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein the method further comprises:
detecting, from the first virtualized computing instance, a further packet that includes an inner header addressed from the first address to a third address that is not specified in the virtual network configuration information;
generating a further encapsulated packet by encapsulating the further packet with an outer header that specifies the first virtual object ID; and
sending the further encapsulated packet to a gateway to cause the gateway to decapsulate the outer header, perform a network address translation (NAT) operation associated with the first virtual object ID, and forward a decapsulated packet to an external network.

### Claim 12 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein generating the encapsulated packet comprises:
determining whether the first address and the second address are associated with a same layer-2 network, or different layer-2 networks; and
in response to determination that the first address and the second address are associated with different layer-2 networks, perform a packet modification operation to modify the inner header of the egress packet.

### Claim 13 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein the method further comprises:
in response receiving, from the second host or a gateway, an encapsulated packet that includes an outer header specifying the first virtual object ID, performing decapsulation to remove the outer header and sending a decapsulated packet to the first virtualized computing instance based on the first virtual object ID.

### Claim 14 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein the method further comprises:
detecting, from the first virtualized computing instance, a request for a network service, wherein the request is one of the following: Dynamic Host Control Protocol (DHCP) request, Domain Name Server (DNS) query, address resolution request and ping request; and
generating and sending a response to the first virtualized computing instance based on the virtual network configuration information.

### Claim 15

A host, being a first host, configured to perform packet handling based on virtual network configuration information in a software-defined networking (SDN) environment that includes the first host and a second host, wherein the host comprises:
a processor; and
a non-transitory computer-readable medium having stored thereon instructions that, when executed by the processor, cause the processor to:
obtain virtual network configuration information that specifies a first virtual object identifier (ID) and a first address associated with a first virtualized computing instance supported by the first host, and a second virtual object ID and a second address associated with a second virtualized computing instance supported by the second host; and
in response to detecting, from the first virtualized computing instance, an egress packet with an inner header that is addressed from the first address to the second address specified in the virtual network configuration information,
generate an encapsulated packet by encapsulating the egress packet with an outer header that specifies the second virtual object ID; and
send the encapsulated packet to the second host to cause the second host to decapsulate the outer header and, based on the second virtual object ID in the outer header, send the egress packet to the second virtualized computing instance.

### Claim 16 (depends on 15)

The host of claim 15, wherein the instructions for obtaining the virtual network configuration information cause the processor to:
obtain, from a network management entity, the virtual network configuration information that specifies the first virtual object ID in the form of a first virtual network interface controller (VNIC) ID and the second virtual object ID in the form of a second virtual network interface controller (VNIC) ID, wherein the first VNIC ID identifies a first VNIC associated with the first virtualized computing instance and the second VNIC ID identifies a second VNIC associated with the second virtualized computing instance in the SDN environment.

### Claim 17 (depends on 16)

The host of claim 16, wherein the instructions for obtaining the virtual network configuration information further cause the processor to:
receive, from the network management entity, the virtual network configuration information that specifies the first VNIC ID and the first address based on the network management entity identifying that first VNIC is activated on the first host; and
receive, from the network management entity, the virtual network configuration information that specifies the second VNIC ID and the second address based on the network management entity identifying that the second VNIC is activated on the second host, and both the first VNIC and second VNIC are associated with a same tenant.

### Claim 18 (depends on 15)

The host of claim 15, wherein the instructions further cause the processor to:
detect, from the first virtualized computing instance, a further packet that includes an inner header addressed from the first address to a third address that is not specified in the virtual network configuration information;
generate a further encapsulated packet by encapsulating the further packet with an outer header that specifies the first virtual object ID; and
send the further encapsulated packet to a gateway to cause the gateway to decapsulate the outer header, perform a network address translation (NAT) operation associated with the first virtual object ID, and forward a decapsulated packet to an external network.

### Claim 19 (depends on 15)

The host of claim 15, wherein the instructions for generating the encapsulated packet comprises:
determine whether the first address and the second address are associated with a same layer-2 network, or different layer-2 networks; and
in response to determination that the first address and the second address are associated with different layer-2 networks, perform a packet modification operation to modify the inner header of the egress packet.

### Claim 20 (depends on 15)

The host of claim 15, wherein the instructions further cause the processor to:
in response receiving, from the second host or a gateway, an encapsulated packet that includes an outer header specifying the first virtual object ID, perform decapsulation to remove the outer header and send a decapsulated packet to the first virtualized computing instance based on the first virtual object ID.

### Claim 21 (depends on 15)

The host of claim 15, wherein the instructions further cause the processor to:
detect, from the first virtualized computing instance, a request for a network service, wherein the request is one of the following: Dynamic Host Control Protocol (DHCP) request, Domain Name Server (DNS) query, address resolution request and ping request; and
generate and send a response to the first virtualized computing instance based on the virtual network configuration information.
