# US 9,356,964 B2 · Application based policy enforcement

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

- Number: US 9,356,964 B2
- Document ID: US9356964B2
- Status: Granted
- Kind: B2
- Application number: 14/067,864
- Filed: 2013-10-30
- Published: 2014-05-08
- Granted: 2016-05-31
- Earliest claimed: 2012-11-02
- Assignees: Aruba Networks, Inc.
- Applicants: Aruba Networks, Inc.
- Inventors: Mohan Maturi; Sridhar Kamsetty; Andrew E. Schweig
- Web page: https://patentgrep.com/patent/US9356964B2

## CPC

- H04L 63/20: {for managing network security; network security policies in general (filtering policies H04L63/0227)}
- H04L 67/104: Peer-to-peer [P2P] networks
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

One embodiment is directed to a system that comprises a network device, including at least a first port, which is configured to analyze information within one or more messages received during a session initiated by another network device. The system is configured to perform operations including determining a total number of sessions for the first port of the network device and determining whether the total number of sessions for the first port exceeds a threshold value. If the total number of sessions for the first port exceeds the threshold value, an application associated with the first port is classified as a peer-to-peer application. Thereafter, a policy may be enforced based on this classification.

## Claims

### Claim 1

A non-transitory computer-readable storage medium comprising instructions which, when executed by at least one hardware processor on a network device, causes performance of operations, comprising:
determining a total number of sessions for a first port of the network device;
determining whether the total number of sessions for the first port exceeds a threshold value;
classifying an application associated with the first port as a peer-to-peer application in response to a determination that the total number of sessions for the first port exceeds the threshold value;
determining whether the application supports multiple sessions from a particular source address using different source ports to a common destination address and destination port;
excluding sessions associated with at least the first port and the second port from the classification of the application; and
enforcing, with the network device, a policy on the application based on the classification of the application as a peer-to-peer application.

### Claim 2 (depends on 1)

The non-transitory computer-readable storage medium of claim 1, wherein the first port is a source (SRC) port.

### Claim 3 (depends on 1)

The non-transitory computer-readable storage medium of claim 1, wherein the at least one hardware processor further causes performance of operations comprising:
determining whether at least two sessions are from a first source address, the at least two sessions include a first session from the first source address using the first port and a second session from the first source address using a second port;
determining whether both the first session from the first source address using the first port and the second session from the first source address using the second port are directed to an identical destination address and destination port; and
classifying the first port and the second port to be different than a peer-to-peer port so that applications associated with the first port and the second port are to be classified differently than a peer-to-peer application.

### Claim 4 (depends on 3)

The non-transitory computer-readable storage medium of claim 3, wherein the first port is a source port and the second port is a source port.

### Claim 5 (depends on 4)

The non-transitory computer-readable storage medium of claim 4, wherein the first port is different from the second port.

### Claim 6 (depends on 1)

The non-transitory computer-readable storage medium of claim 1, wherein enforcing a policy based on a classification of the application as a peer-to-peer application includes enforcing bandwidth constraints on the application in response to a determination that a total number of peer-to-peer sessions for all detected peer-to-peer applications on the network exceed a prescribed threshold.

### Claim 7 (depends on 1)

The medium of claim 1, further comprising:
instructions which, when executed by at least one hardware processor on the network device, causes performance of operations, comprising:
detecting addressing information within a Domain Name System (DNS) response message;
mapping the addressing information to a DNS name;
applying a regular expression on the DNS name, the regular expression being a pattern of at least one of alphanumeric characters and symbols;
matching the regular expression to an application; and
mapping a session to the application based on addressing information included within the session to form a session-application mapping.

### Claim 8 (depends on 7)

The non-transitory computer-readable storage medium of claim 7, wherein the DNS name is obtained from a DNS Request message associated with the DNS response message.

### Claim 9 (depends on 7)

The non-transitory computer-readable storage medium of claim 7, wherein the addressing information includes one or more Internet Protocol (IP) addresses operating as pointers to stored content.

### Claim 10 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein the matching of the regular expression to the application includes analysis of a hostname list preloaded within a memory of the network device, the hostname list includes a plurality of regular expressions and a corresponding plurality of application names.

### Claim 11 (depends on 7)

The non-transitory computer-readable storage medium of claim 7, wherein the session-application mapping is used for policy enforcement of the application.

### Claim 12 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the policy enforcement of the application includes controlling access to network services for the application.

### Claim 13 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the policy enforcement of the application includes adjusting access to network services based on quality of service levels.

### Claim 14 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the policy enforcement of the application includes logging usage of the application on at least one of a per-use or per-role basis.

### Claim 15

A system comprising a network device, including at least a first port, that is to analyze information within one or more messages received during a session initiated by another network device, the system to perform operations comprising:
determining a total number of sessions for the first port of the network device;
determining whether the total number of sessions for the first port exceeds a threshold value;
classifying an application associated with the first port as a peer-to-peer application if the total number of sessions for the first port exceeds the threshold value;
determining whether the application supports multiple sessions from a particular source address using different source ports to a common destination address and destination port;
excluding sessions associated with at least the first port and the second port from the classification of the application; and
enforcing, with the network device, a policy on the application based on the classification of the application as a peer-to-peer application.

### Claim 16 (depends on 15)

The system of claim 15, wherein the first port is a source (SRC) port.

### Claim 17 (depends on 15)

The system of claim 15, wherein enforcing the policy on the application based on a classification of the application includes enforcing bandwidth constraints on the application.

### Claim 18 (depends on 15)

The system of claim 15, wherein the system further causes performance of operations comprising:
determining whether at least two sessions are from a first source address, the at least two sessions include a first session from the first source address using the first port and a second session from the first source address using a second port;
determining whether both the first session from the first source address using the first port and the second session from the first source address using the second port are directed to an identical destination address and destination port; and
classifying the first port and the second port to be different than a peer-to-peer port so that applications associated with the first port and the second port are to be classified differently than a peer-to-peer application.

### Claim 19 (depends on 18)

The system of claim 18, wherein the first port is a source port and the second port is a source port that is different from the first port.

### Claim 20 (depends on 15)

The system of claim 15, the system further to perform operations comprising:
detecting addressing information within a Domain Name System (DNS) response message;
mapping the addressing information to a DNS name;
applying a regular expression on the DNS name, the regular expression being a pattern of at least one of alphanumeric characters and symbols;
matching the regular expression to an application; and
mapping a session to the application based on addressing information included within the session to form a session-application mapping.

### Claim 21 (depends on 20)

The system of claim 20, wherein the DNS name is obtained from a DNS Request message associated with the DNS response message.

### Claim 22 (depends on 20)

The system of claim 20, wherein the addressing information includes one or more Internet Protocol (IP) addresses operating as pointers to stored content.

### Claim 23 (depends on 22)

The system of claim 22, wherein the matching of the regular expression to the application includes analysis of a hostname list preloaded within a memory of the network device, the hostname list includes a plurality of regular expressions and a corresponding plurality of application names.

### Claim 24 (depends on 20)

The system of claim 20, wherein the session-application mapping is used for policy enforcement of the application.

### Claim 25 (depends on 24)

The system of claim 24, wherein the policy enforcement of the application includes at least one of (1) controlling access to network services for the application, (2) adjusting access to network services based on quality of service levels, and (3) logging usage of the application on at least one of a per-use or per-role basis.
