# US 2021/0243163 A1 · Intent-based policy generation for virtual networks

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

- Number: US 2021/0243163 A1
- Document ID: US20210243163A1
- Status: Published application
- Kind: A1
- Application number: 17/301,279
- Filed: 2021-03-30
- Published: 2021-08-05
- Earliest claimed: 2018-09-28
- Assignees: Juniper Networks, Inc.
- Applicants: Juniper Networks, Inc.
- Inventors: Prasad Miriyala; Sundaresan Rajangam; Miraj Subhashbhai Kheni; Suresh B. Akula
- Web page: https://patentgrep.com/patent/US20210243163A1

## CPC

- H04L 47/20: Traffic policing
- H04L 41/0806: for initial configuration or provisioning, e.g. plug-and-play
- H04L 41/0893: Assignment of logical groups to network elements
- H04L 41/0894: Policy-based network configuration management
- H04L 41/0895: Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
- H04L 41/142: using statistical or mathematical methods
- H04L 43/026: using flow identification
- H04L 43/062: related to network traffic
- H04L 47/2475: for supporting traffic characterised by the type of applications
- H04L 63/0263: {Rule management}
- H04L 63/20: {for managing network security; network security policies in general (filtering policies H04L63/0227)}
- H04L 45/586: of virtual routers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques are disclosed for generating intent-based policies and applying the policies to traffic of a computer network. In one example, a policy controller for the computer network receives traffic statistics for traffic flows among a plurality of application workloads executed by a first set of computing devices. The policy controller correlates the traffic statistics into session records for the plurality of application workloads. The policy controller generates, based on the session records for the application workloads, application firewall policies for the application workloads. Each of the application firewall policies define whether traffic flows between application workloads are to be allowed or denied. The policy controller distributes the application firewall policies to a second set of one or more computing devices for application to traffic flows between instances of the application workloads.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A method comprising:
receiving, by a policy controller for a computer network, traffic statistics for a plurality of traffic flows among first instances of a plurality of application workloads, the first instances of the plurality of application workloads executed by a first set of one or more computing devices of a computer network;
applying, by the policy controller, a clustering algorithm to correlate the traffic statistics for the plurality of traffic flows into session records of traffic statistics for the plurality of application workloads;
generating, by the policy controller and from the session records of traffic statistics for the plurality of application workloads, one or more tags for the plurality of application workloads;
generating, by the policy controller and based on the one or more tags for the plurality of application workloads, one or more application firewall policies for the plurality of application workloads, wherein the one or more application firewall policies define whether traffic flows between application workloads of the plurality of application workloads are to be allowed or denied; and
distributing, by the policy controller, the one or more application firewall policies to a second set of one or more computing devices for application to traffic flows among second instances of the plurality of application workloads, the second instances of the plurality of application workloads executed by the second set of one or more computing devices, wherein the second set of one or more computing devices is different from the first set of one or more computing devices.

### Claim 22 (depends on 21)

The method of claim 21, wherein applying the clustering algorithm to correlate the traffic statistics for the plurality of traffic flows into session records of traffic statistics for the plurality of application workloads comprises:
applying the clustering algorithm to identify at least one relationship between the traffic statistics for the plurality of traffic flows; and
aggregating, based on the identified at least one relationship between the traffic statistics for the plurality of traffic flows, the traffic statistics for the plurality of traffic flows into session records of traffic statistics for the plurality of application workloads.

### Claim 23 (depends on 21)

The method of claim 21, wherein the clustering algorithm comprises one of:
a K-Means clustering algorithm;
a Mean-Shift clustering algorithm;
a Density-based Spatial Clustering of Applications with Noise (DBSCAN) clustering algorithm;
an Expectation-Maximization (EM) clustering algorithm using Gaussian Mixture Models (GMM); or
an Agglomerative Hierarchical clustering algorithm.

### Claim 24 (depends on 21)

The method of claim 21, wherein the one or more tags specify a plurality of different object levels for the plurality of application workloads.

### Claim 25 (depends on 24)

The method of claim 24, wherein the one or more tags specify one or more of:
a global environment level for the plurality of application workloads;
a project level for the plurality of application workloads;
a virtual network level for the plurality of application workloads;
a virtual machine level for the plurality of application workloads; or
an interface level for the plurality of application workloads.

### Claim 26 (depends on 21)

The method of claim 21, wherein generating, from the session records of traffic statistics for the plurality of application workloads, the one or more tags for the plurality of application workloads comprises generating, from metadata of the session records of traffic statistics for the plurality of application workloads, the one or more tags for the plurality of application workloads.

### Claim 27 (depends on 21)

The method of claim 21, wherein the one or more application firewall policies define whether traffic flows between interfaces of the application workloads of the plurality of application workloads tagged with the one or more tags for the plurality of application workloads are to be allowed or denied.

### Claim 28 (depends on 21)

The method of claim 21,
wherein receiving the traffic statistics for the plurality of traffic flows among the first instances of the plurality of application workloads comprises receiving, from a first set of virtual router agents for the first set of one or more computing devices, the traffic statistics for the plurality of traffic flows among the first instances of the plurality of application workloads, and
wherein distributing the one or more application firewall policies to the second set of one or more computing devices for application to the traffic flows among the second instances of the plurality of application workloads comprises distributing, to a second set of virtual router agents for the second set of one or more computing devices, the one or more application firewall policies for application to the traffic flows among the second instances of the plurality of application workloads.

### Claim 29 (depends on 28)

The method of claim 28, further comprising applying, by the second set of virtual router agents, the one or more application firewall policies to the traffic flows among the second instances of the plurality of application workloads to at least one of allow or deny at least one traffic flow.

### Claim 30 (depends on 21)

The method of claim 21, further comprising presenting, by the policy controller, the one or more application firewall policies for display to a user.

### Claim 31

A policy controller for a computer network, the policy controller comprising processing circuitry and configured to:
receive traffic statistics for a plurality of traffic flows among first instances of a plurality of application workloads, the first instances of the plurality of application workloads executed by a first set of one or more computing devices of a computer network;
apply a clustering algorithm to correlate the traffic statistics for the plurality of traffic flows into session records of traffic statistics for the plurality of application workloads;
generate, from the session records of traffic statistics for the plurality of application workloads, one or more tags for the plurality of application workloads;
generate, based on the one or more tags for the plurality of application workloads, one or more application firewall policies for the plurality of application workloads, wherein the one or more application firewall policies define whether traffic flows between application workloads of the plurality of application workloads are to be allowed or denied; and
distribute the one or more application firewall policies to a second set of one or more computing devices for application to traffic flows among second instances of the plurality of application workloads, the second instances of the plurality of application workloads executed by the second set of one or more computing devices, wherein the second set of one or more computing devices is different from the first set of one or more computing devices.

### Claim 32 (depends on 31)

The policy controller of claim 31, wherein to apply the clustering algorithm to correlate the traffic statistics for the plurality of traffic flows into session records of traffic statistics for the plurality of application workloads, the policy controller is configured to:
apply the clustering algorithm to identify at least one relationship between the traffic statistics for the plurality of traffic flows; and
aggregate, based on the identified at least one relationship between the traffic statistics for the plurality of traffic flows, the traffic statistics for the plurality of traffic flows into session records of traffic statistics for the plurality of application workloads.

### Claim 33 (depends on 31)

The policy controller of claim 31, wherein the clustering algorithm comprises one of:
a K-Means clustering algorithm;
a Mean-Shift clustering algorithm;
a Density-based Spatial Clustering of Applications with Noise (DBSCAN) clustering algorithm;
an Expectation-Maximization (EM) clustering algorithm using Gaussian Mixture Models (GMM); or
an Agglomerative Hierarchical clustering algorithm.

### Claim 34 (depends on 31)

The policy controller of claim 31, wherein the one or more tags specify a plurality of different object levels for the plurality of application workloads.

### Claim 35 (depends on 34)

The policy controller of claim 34, wherein the one or more tags specify one or more of:
a global environment level for the plurality of application workloads;
a project level for the plurality of application workloads;
a virtual network level for the plurality of application workloads;
a virtual machine level for the plurality of application workloads; or
an interface level for the plurality of application workloads.

### Claim 36 (depends on 31)

The policy controller of claim 31, wherein to generate, from the session records of traffic statistics for the plurality of application workloads, the one or more tags for the plurality of application workloads, the policy controller is configured to generate, from metadata of the session records of traffic statistics for the plurality of application workloads, the one or more tags for the plurality of application workloads.

### Claim 37 (depends on 31)

The policy controller of claim 31, wherein the one or more application firewall policies define whether traffic flows between interfaces of the application workloads of the plurality of application workloads tagged with the one or more tags for the plurality of application workloads are to be allowed or denied.

### Claim 38 (depends on 31)

The policy controller of claim 31,
wherein to receive the traffic statistics for the plurality of traffic flows among the first instances of the plurality of application workloads, the policy controller is configured to receive, from a first set of virtual router agents for the first set of one or more computing devices, the traffic statistics for the plurality of traffic flows among the first instances of the plurality of application workloads, and
wherein to distribute the one or more application firewall policies to the second set of one or more computing devices for application to the traffic flows among the second instances of the plurality of application workloads, the policy controller is configured to distribute, to a second set of virtual router agents for the second set of one or more computing devices, the one or more application firewall policies for application to the traffic flows among the second instances of the plurality of application workloads.

### Claim 39 (depends on 31)

The policy controller of claim 31, further configured to present the one or more application firewall policies for display to a user.

### Claim 40

A non-transitory, computer-readable medium comprising instructions that, when executed, are configured to cause processing circuitry to execute a policy controller for a computer network, the policy controller configured to:
receive traffic statistics for a plurality of traffic flows among first instances of a plurality of application workloads, the first instances of the plurality of application workloads executed by a first set of one or more computing devices of a computer network;
apply a clustering algorithm to correlate the traffic statistics for the plurality of traffic flows into session records of traffic statistics for the plurality of application workloads;
generate, from the session records of traffic statistics for the plurality of application workloads, one or more tags for the plurality of application workloads;
generate, based on the one or more tags for the plurality of application workloads, one or more application firewall policies for the plurality of application workloads, wherein the one or more application firewall policies define whether traffic flows between application workloads of the plurality of application workloads are to be allowed or denied; and
distribute the one or more application firewall policies to a second set of one or more computing devices for application to traffic flows among second instances of the plurality of application workloads, the second instances of the plurality of application workloads executed by the second set of one or more computing devices, wherein the second set of one or more computing devices is different from the first set of one or more computing devices.
