# US 2012/0250686 A1 · Offload device-based stateless packet processing

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

- Number: US 2012/0250686 A1
- Document ID: US20120250686A1
- Status: Published application
- Kind: A1
- Application number: 13/076,339
- Filed: 2011-03-30
- Published: 2012-10-04
- Earliest claimed: 2011-03-30
- Assignees: Amazon Technologies, Inc.
- Inventors: Pradeep Vincent; Matthew D. Klein; Samuel J. McKelvie
- Web page: https://patentgrep.com/patent/US20120250686A1

## CPC

- 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 12/4666: {Operational details on the addition or the stripping of a tag in a frame, e.g. at a provider edge node}
- H04L 45/64: using an overlay routing layer
- H04L 63/0218: {Distributed architectures, e.g. distributed firewalls}
- H04L 47/13: {in a LAN segment, e.g. ring or bus}
- H04L 63/1466: {Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

High-speed processing of packets to, and from, a virtualization environment can be provided while utilizing hardware-based segmentation offload and other such functionality. A hardware vendor such as a network interface card (NIC) manufacturer can enable the hardware to support open and proprietary stateless tunneling in conjunction with a protocol such as single root I/O virtualization (SR-IOV) in order to implement a virtualized overlay network. The hardware can utilize various rules, for example, that can be used by the NIC to perform certain actions, such as to encapsulate egress packets and decapsulate packets.

## Claims

### Claim 1

A computer-implemented method for processing data packets in an electronic environment, comprising:
under control of one or more computer systems configured with executable instructions,
receiving a user data packet to a virtual function associated with a virtual network for a user;
performing a lookup in a rule table for at least one rule for processing the user data packet;
performing software-based processing of the user data packet in a trusted domain in response to determining a trap rule from the rule table;
performing no further processing of the user data packet in response to determining a drop rule from the rule table; and
performing at least a portion of the processing of the user data packet using an offload device in response to determining a forward rule from the rule table, the processing including at least adding an outer header to the user data packet and sending the user data packet out onto a physical network, the outer header including at least one opaque field and including protocol-specific information.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
performing at least one generic check on the user data packet before performing the lookup.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the at least one generic check includes at least one of level two (L2) or level three (L3) anti-spoofing, or trapping for at least one type of packet.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the lookup is performed by the offload device.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein the offload device provides a virtualized overlay network based on a single root I/O virtualization (SR-IOV) protocol.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
performing at least one metric update on the user data packet before performing the lookup.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the processing using an offload device further includes at least one of throttling the user data packet, or performing a quality of service action.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein sending the user data packet out onto a physical network is performed as part of a segmentation offload process.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the processing using an offload device further includes updating header fields of the user data packet, the header fields including at least one of an inner and an outer packet length, and inner and an outer checksum, a source and a destination address, and a time-to-live (TTL) value.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the processing using an offload device includes performing packet source checking on each egress packet based at least in part upon a source virtual machine.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, wherein the software-based processing includes processing by Dom-0 control software.

### Claim 12 (depends on 1)

The computer-implemented method of claim 1, wherein the processing utilizes a generic format such that any appropriate protocol is able to be supported through changing parameters of a lookup key.

### Claim 13 (depends on 12)

The computer-implemented method of claim 12, wherein the appropriate protocol is able to be mapped to a stateless tunneling protocol.

### Claim 14

A computer-implemented method for processing data packets in an electronic environment, comprising:
under control of one or more computer systems configured with executable instructions,
receiving a user data packet to a physical function associated with an offload device;
building a lookup key for the user data packet using the offload device;
performing a lookup in a rule table for at least one rule for processing the user data packet using the lookup key;
performing software-based processing of the user data packet in a trusted domain in response to determining a trap rule from the rule table;
performing no further processing of the user data packet in response to determining a drop rule from the rule table; and
performing at least a portion of the processing of the user data packet using the offload device in response to determining a forward rule from the rule table, the processing including at least stripping an inner and outer header, performing any packet modification, and forwarding the user data packet to an internal virtual function, the internal virtual function operable to deliver the user data packet to a guest virtual machine.

### Claim 15 (depends on 14)

The computer-implemented method of claim 14, wherein the processing using the offload device includes removing at least one outer encapsulation header from the user data packet.

### Claim 16 (depends on 14)

The computer-implemented method of claim 14, wherein the internal virtual function is identified by the forward rule.

### Claim 17 (depends on 14)

The computer-implemented method of claim 14, wherein the processing using the offload device is operable to identify the user data packet as being encapsulated using a format of a predefined protocol at a predefined offset.

### Claim 18 (depends on 14)

The computer-implemented method of claim 14, further comprising:
processing the user data packet using software-based processing when the user data packet is not encapsulated.

### Claim 19 (depends on 14)

The computer-implemented method of claim 14, wherein the offload device is a network interface card (NIC).

### Claim 20 (depends on 14)

The computer-implemented method of claim 14, further comprising:
determining a virtual machine corresponding to the user data packet using a fixed-length field in the opaque bits at a pre-determined offset in the user data packet.

### Claim 21 (depends on 14)

The computer-implemented method of claim 14, wherein each physical function has a set of ingress rules, each rule consisting at least partially of a set of opaque bits capable of being matched with the opaque bits of encapsulated ingress packets.

### Claim 22 (depends on 14)

The computer-implemented method of claim 14, wherein other traffic is passed through without processing in response to determining a pass rule from the rule table.

### Claim 23 (depends on 14)

The computer-implemented method of claim 14, wherein customer encapsulated traffic and control traffic is trapped independent of determining a pass rule from the rule table.

### Claim 24

A system for processing data packets in an electronic environment, comprising:
a processor; and
a memory device including instructions that, when executed by the processor, cause the processor to:
receive a user data packet to a virtual function associated with a virtual network for a user;
perform a lookup in a rule table for at least one rule for processing the user data packet;
perform software-based processing of the user data packet in a trusted domain in response to determining a trap rule from the rule table;
perform no further processing of the user data packet in response to determining a drop rule from the rule table; and
perform at least a portion of the processing of the user data packet using an offload device in response to determining a forward rule from the rule table, the processing including at least adding an outer header to the user data packet and sending the user data packet out onto a physical network, the outer header including at least one opaque field and including protocol-specific information.

### Claim 25 (depends on 24)

The system of claim 24, further comprising:
at least one offload device operable to perform the lookup.

### Claim 26 (depends on 24)

The system of claim 24, wherein the offload device provides a virtualized overlay network based on a single root I/O virtualization (SR-IOV) protocol.

### Claim 27

A system for processing data packets in an electronic environment, comprising:
a processor; and
a memory device including instructions that, when executed by the processor, cause the processor to:
receive a user data packet to a physical function associated with an offload device;
build a lookup key for the user data packet using the offload device;
perform a lookup in a rule table for at least one rule for processing the user data packet using the lookup key;
perform software-based processing of the user data packet in a trusted domain in response to determining a trap rule from the rule table;
perform no further processing of the user data packet in response to determining a drop rule from the rule table; and
perform at least a portion of the processing of the user data packet using the offload device in response to determining a forward rule from the rule table, the processing including at least stripping an inner and outer header, performing any packet modification, and forwarding the user data packet to an internal virtual function, the internal virtual function operable to deliver the user data packet to a guest virtual machine.

### Claim 28 (depends on 27)

The system of claim 27, wherein the processing using an offload device includes removing at least one outer encapsulation header from the user data packet.

### Claim 29 (depends on 27)

The system of claim 27, wherein the offload device is a network interface card (NIC).
