# US 2019/0245893 A1 · Policy evaluation trees

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

- Number: US 2019/0245893 A1
- Document ID: US20190245893A1
- Status: Published application
- Kind: A1
- Application number: 16/386,117
- Filed: 2019-04-16
- Published: 2019-08-08
- Earliest claimed: 2014-07-25
- Assignees: Facebook, Inc.
- Applicants: Facebook, Inc.
- Inventors: Kendall Blair Hopkins; Dwayne Lloyd Reeves
- Web page: https://patentgrep.com/patent/US20190245893A1

## CPC

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

## Abstract

In one embodiment, a method includes accessing policy states associated with a policy, determining that a particular policy state of the policy states should not be pruned, and generating possible next policy states for the particular policy state based on one or more policy actions and one or more costs associated with the respective policy actions, wherein each policy action is associated with one or more probabilities corresponding to one or more possibilities of resulting in one or more of the possible next policy states, wherein the respective cost associated with the policy action is determined based on one or more computing costs of the policy action resulting in the one or more of the possible next policy states in combination with the respective one or more probabilities, and wherein each policy state of the created policy evaluation tree comprises a rule state for each rule of the policy.

## Claims

### Claim 1

A method comprising, by one or more computing devices:
accessing a plurality of policy states associated with a policy;
determining that a particular policy state of the plurality of policy states should not be pruned; and
generating, for the particular policy state, possible next policy states based on one or more policy actions and one or more costs associated with the respective one or more policy actions, wherein each of the one or more policy actions is associated with one or more probabilities corresponding to one or more possibilities of resulting in one or more of the possible next policy states, wherein the respective cost associated with the policy action is determined based on one or more computing costs of the policy action resulting in the one or more of the possible next policy states in combination with the respective one or more probabilities, and wherein each policy state of the created policy evaluation tree comprises a rule state for each rule of the policy.

### Claim 2 (depends on 1)

The method of claim 1, wherein each of the one or more computing costs is based on one or more of processor use, network latency, or disk latency.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining that the particular policy state of the plurality of policy states should not be pruned is based on one or more pruning criteria.

### Claim 4 (depends on 3)

The method of claim 3, wherein the one or more pruning criteria comprises one or more of:
a likelihood of the particular policy state occurring is below a threshold value;
a result of the policy is determinable from the particular policy state; or
a cost of performing a policy action that resulted in the particular policy state relative to a probability of achieving an allow or deny result by performing that policy action is lower than that of performing another policy action.

### Claim 5 (depends on 4)

The method of claim 4, wherein the threshold value is 1%.

### Claim 6 (depends on 4)

The method of claim 4, wherein the likelihood of the particular policy state occurring being below the threshold value is determined based on historical data for the policy.

### Claim 7 (depends on 1)

The method of claim 1, wherein the policy comprises a plurality of rules.

### Claim 8 (depends on 7)

The method of claim 7, wherein each policy state comprises an identification of a rule state for each rule in the policy.

### Claim 9 (depends on 8)

The method of claim 8, wherein each rule state comprises one of:
an outcome comprising one of allow, deny, or skip;
a partial rule outcome; or
an unknown rule outcome.

### Claim 10 (depends on 9)

The method of claim 9, wherein a result of the policy is determinable from the particular policy state if a rule outcome in the particular policy state is allow and all the rules in the policy that are of a deny type and that have a higher priority than the rule with an allow outcome have a skip outcome.

### Claim 11 (depends on 9)

The method of claim 9, wherein a result of the policy is determinable from the particular policy state if a rule outcome in the particular policy state is deny and all the rules in the policy that are of an allow type and that have a higher priority than the rule with a deny outcome have a skip outcome.

### Claim 12 (depends on 9)

The method of claim 9, wherein at least one generated possible next policy state is associated with both a policy action that would yield that possible next policy state and one or more rule outcomes that would yield that possible next policy state.

### Claim 13 (depends on 1)

The method of claim 1, wherein the policy defines a priority ordering among a plurality of rules.

### Claim 14 (depends on 1)

The method of claim 1, wherein each of the one or more policy actions comprises one of:
running an identified rule,
waiting for all partially run rules to complete, or
performing a finish policy action.

### Claim 15

One or more computer-readable non-transitory storage media embodying software that is operable when executed to:
access a plurality of policy states associated with a policy;
determine that a particular policy state of the plurality of policy states should not be pruned; and
generate, for the particular policy state, possible next policy states based on one or more policy actions and one or more costs associated with the respective one or more policy actions, wherein each of the one or more policy actions is associated with one or more probabilities corresponding to one or more possibilities of resulting in one or more of the possible next policy states, wherein the respective cost associated with the policy action is determined based on one or more computing costs of the policy action resulting in the one or more of the possible next policy states in combination with the respective one or more probabilities, and wherein each policy state of the created policy evaluation tree comprises a rule state for each rule of the policy.

### Claim 16 (depends on 15)

The media of claim 15, wherein each of the one or more computing costs is based on one or more of processor use, network latency, or disk latency.

### Claim 17 (depends on 15)

The media of claim 15, wherein determining that the particular policy state of the plurality of policy states should not be pruned is based on one or more pruning criteria.

### Claim 18 (depends on 17)

The media of claim 17, wherein the one or more pruning criteria comprises one or more of:
a likelihood of the particular policy state occurring is below a threshold value;
a result of the policy is determinable from the particular policy state; or
a cost of performing a policy action that resulted in the particular policy state relative to a probability of achieving an allow or deny result by performing that policy action is lower than that of performing another policy action.

### Claim 19 (depends on 2015)

The media of claim 2015, wherein the policy comprises a plurality of rules.

### Claim 20

A system comprising: one or more processors; and a non-transitory memory coupled to the processors comprising instructions executable by the processors, the processors operable when executing the instructions to:
access a plurality of policy states associated with a policy;
determine that a particular policy state of the plurality of policy states should not be pruned; and
generate, for the particular policy state, possible next policy states based on one or more policy actions and one or more costs associated with the respective one or more policy actions, wherein each of the one or more policy actions is associated with one or more probabilities corresponding to one or more possibilities of resulting in one or more of the possible next policy states, wherein the respective cost associated with the policy action is determined based on one or more computing costs of the policy action resulting in the one or more of the possible next policy states in combination with the respective one or more probabilities, and wherein each policy state of the created policy evaluation tree comprises a rule state for each rule of the policy.
