# US 2020/0403826 A1 · Monitoring network traffic using traffic mirroring

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

- Number: US 2020/0403826 A1
- Document ID: US20200403826A1
- Status: Published application
- Kind: A1
- Application number: 16/579,743
- Filed: 2019-09-23
- Published: 2020-12-24
- Earliest claimed: 2019-06-21
- Assignees: Amazon Technologies, Inc.
- Applicants: Amazon Technologies, Inc.
- Inventors: Anoop Dawani; Joseph Elmar Magerramov; Zachary Brandes; Apoorv Mittal; Bharadwaj Avva; Ryan James Schaefer; Kiran Venkat Sayeeram Karpurapu; Ajay Jha; Steven Bruce Richards; Richard H Galliher
- Web page: https://patentgrep.com/patent/US20200403826A1

## CPC

- H04L 43/12: Network monitoring probes
- 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/046: comprising network management agents or mobile agents therefor
- H04L 41/0894: Policy-based network configuration management
- H04L 41/40: using virtualisation of network functions or resources, e.g. SDN or NFV entities
- H04L 43/028: by filtering
- H04L 43/0876: Network utilisation, e.g. volume of load or congestion level
- H04L 43/10: Active monitoring, e.g. heartbeat, ping or trace-route
- H04L 43/20: the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
- H04L 2212/00: Encapsulation of packets
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Technologies are disclosed for monitoring network traffic using traffic mirroring. According to some examples, traffic mirroring allows customers to monitor traffic at different sources within a VPC. For example, a source may be any Elastic Network Interface (ENI) in their VPC, including elastic network interfaces (ENIs) on virtual machine instances, Network Address Translation (NAT) Gateways, Load Balancers, VPC endpoints, Internal Gateways, Transit Gateways, and more. Filters can be utilized to determine the network traffic to mirror. A customer may also configure to monitor real-time traffic with a monitoring appliance of their choice. With traffic mirroring, data traffic may be identified and sent to one or more target devices. Customers may monitor traffic within a VPC for content inspection, forensic analysis, troubleshooting, record keeping, and the like. Using traffic mirroring, customers can replicate VPC traffic, along with full payload data, without installing and managing agents on virtual machine instances.

## Claims

### Claim 1

A system, comprising:
one or more processors; and
a non-transitory computer-readable storage medium having instructions stored thereupon which, when executed by the one or more processors, cause the system to:
receive a request to mirror at least a portion of data packets originating within a Virtual Private Cloud (VPC) associated with a customer of a cloud provider network;
identify a traffic mirror source within the VPC that acts as a source of mirrored data packets;
identify one or more traffic mirror targets that act as a target for receiving the mirrored data packets;
configure one or more filters that specify one or more rules used to identify the at least the portion of the data packets to mirror;
establish a traffic mirror session between the traffic mirror source and the one or more traffic mirror targets;
configure, the traffic mirror source, to provide data to the one or more traffic mirror targets based, at least in part, on the one or more filters;
identify data packets associated with the traffic mirror source, wherein the data packets comprise one or more of incoming data packets to the traffic mirror source or outgoing data packets from the traffic mirror source;
identify characteristics of the data packets;
determine the at least the portion of the data packets to mirror to at least one of the one or more traffic mirror targets based at least in part on one or more of the characteristics and the one or more filters;
generate mirrored data packets based at least in part on the at least the portion of the data packets; and
provide the mirrored data packets to the target.

### Claim 2 (depends on 1)

The system of claim 1, wherein the one or more traffic mirror sources comprise one or more of a virtual machine instance within the VPC, a load balancer within the VPC, an internal gateway within the VPC, a transit gateway, an elastic network interface (ENI) within the VPC, an Elastic Container Service (ECS), an Elastic Kubnernetes Service (EKS) interface, an interface for a compute engine that runs containers, or an interface for a service that runs code without provisioning or managing servers.

### Claim 3 (depends on 1)

The system of claim 1, wherein at least one of the one or more traffic mirror targets are located within a second VPC that is associated with a second customer of the cloud provider network.

### Claim 4 (depends on 1)

The system of claim 1, wherein generate the mirrored data packets comprises encapsulating the at least the portion of the data packets within a VxLAN header.

### Claim 5 (depends on 1)

The system of claim 1, wherein the instructions further cause the system to provide a user interface to a computing device associated with the customer, wherein the request to mirror is received via the user interface.

### Claim 6

A computer-implemented method, comprising:
identifying data packets at a traffic mirror source within a Virtual Private Cloud (VPC) that is associated with a customer of a service provider, wherein the service provider executes the traffic mirror source on behalf of the customer within the VPC;
identifying characteristics of the data packets;
determining at least a portion of the data packets to mirror to one or more traffic mirror targets based at least in part on one or more of the characteristics; and
provide the at least a portion of the data packets to the one or more traffic mirror targets.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, further comprising receiving, from a computing device associated with the customer, a request to monitor the target mirror source for the at least the portion of the data packets to mirror to the one or more traffic mirror targets.

### Claim 8 (depends on 6)

The computer-implemented method of claim 6, wherein the one or more traffic mirror sources comprise one or more of a virtual machine instance within the VPC, a load balancer within the VPC, an internal gateway within the VPC, a transit gateway, an elastic network interface (ENI) within the VPC, an Elastic Kubnernetes Service (EKS) interface, an interface for a compute engine that runs containers, or an interface for a service that runs code without provisioning or managing servers.

### Claim 9 (depends on 6)

The computer-implemented method of claim 6, further comprising receiving, from a computing device associated with the customer, data identifying the one or more traffic mirror targets.

### Claim 10 (depends on 6)

The computer-implemented method of claim 6, wherein at least one of the one or more traffic mirror targets are located within a second VPC that is associated with a second customer of the service provider.

### Claim 11 (depends on 6)

The computer-implemented method of claim 6, further comprising:
receiving one or more filter rules associated with the target mirror source, wherein the one or more filter rules include one or more inbound rules associated with incoming data packets, or outbound rules associated with outgoing data packets; and
configuring the one or more filters to apply the one or more filter rules to the data packets.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, further comprising
establishing a traffic mirror session between the traffic mirror source and the one or more traffic mirror targets; and
configuring the traffic mirror source to provide data to the one or more traffic mirror targets based, at least in part, on the one or more filters.

### Claim 13 (depends on 6)

The computer-implemented method of claim 6, further comprising encapsulating individual ones of the at least the portion of the data packets within a VxLAN header before providing the at least the portion of the data packets to the one or more traffic mirror targets and unencapsulating the individual ones of the at least the portion of the data packets after the providing the at least the portion of the data packets to the one or more traffic mirror targets.

### Claim 14 (depends on 6)

The computer-implemented method of claim 6, further comprising limiting a size of the at least the portion of the data packets before providing the at least a portion of the data packets to the one or more traffic mirror targets.

### Claim 15 (depends on 6)

The computer-implemented method of claim 6, further comprising:
causing a computing device associated with the customer to display a graphical user interface that includes user interface elements; and
receiving data from the computing device indicating the traffic mirror source, the traffic mirror target, and one or more filter rules based, at least in part, on an interaction with one or more of the user interface elements.

### Claim 16

A system, comprising:
one or more processors; and
a non-transitory computer-readable storage medium having instructions stored thereupon which, when executed by the one or more processors, cause the system to perform actions comprising:
identifying data packets at a traffic mirror source within a Virtual Private Cloud (VPC);
determining at least a portion of the data packets to mirror to one or more traffic mirror targets based at least in part on one or more filters; and
providing the at least a portion of the data packets to the one or more traffic mirror targets.

### Claim 17 (depends on 16)

The system of claim 16, further comprising receiving, from a computing device, a request to monitor the target mirror source for the at least the portion of the data packets to mirror to the one or more traffic mirror targets.

### Claim 18 (depends on 16)

The system of claim 16, wherein the one or more traffic mirror sources comprise one or more of a virtual machine instance within the VPC, a load balancer within the VPC, an internal gateway within the VPC, a transit gateway, an elastic network interface (ENI) within the VPC, an Elastic Kubnernetes Service (EKS) interface, an interface for a compute engine that runs containers, or an interface for a service that runs code without provisioning or managing servers.

### Claim 19 (depends on 16)

The system of claim 16, further comprising:
receiving, from a computing device, data identifying the one or more traffic mirror targets.

### Claim 20 (depends on 16)

The system of claim 16, wherein at least one of the one or more traffic mirror targets are located within a second VPC.
