Headerspace Analysis for Distributed Firewall Rule Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In virtualized network environments, it is challenging to determine which firewall flow entries are necessary and which are unnecessary, leading to issues like false positives and false negatives, which can cause problems in the system by either retaining unnecessary entries or eliminating needed ones.

Innovation Solution

The solution involves representing packet headers and metadata as a set of fields and modeling flow entries as transfer functions to identify unreachable firewall flow entries, using headerspace analysis to determine which flow entries will never be matched, and modifying or removing the corresponding distributed firewall rules to optimize memory usage and rule enforcement.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a large number of flow entries are generated to manage network behavior, then network control capability is improved, but system complexity and memory usage increase

Engineering Contradiction:
Improvenetwork control capabilityVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent extracts and removes unreachable flow entries from the system by analyzing packet header spaces and determining which flow entries can never be matched. This extraction process eliminates unnecessary components while preserving the essential control capability provided by reachable flow entries.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent changes the parameter of flow entry reachability by introducing analysis methods that evaluate whether flow entries can be matched by any valid packet headers. This parameter change enables the system to distinguish between necessary and unnecessary flow entries, optimizing the balance between control capability and system complexity.

Inventive Principle:
Principle #35Parameter changes

2Loss of energy

If flow entries are removed to reduce memory usage, then memory efficiency is improved, but false negatives may occur where needed flow entries are eliminated

Engineering Contradiction:
Improvememory usageVSAvoidflow entry necessity
Core Design Contradiction:
Loss of energyVSReliability

Solution Approach 1:

The patent performs preliminary analysis of flow entry reachability before removing any flow entries from the system. By analyzing packet header spaces and determining which flow entries are unreachable in advance, the system can safely remove only those entries that will never be matched, avoiding false negatives while optimizing memory usage.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements a feedback mechanism where the analysis results of packet header space evaluation are used to determine which flow entries should be removed. This feedback loop ensures that only flow entries proven to be unreachable are eliminated, maintaining system reliability while improving memory efficiency.

Inventive Principle:
Principle #23Feedback

3Difficulty of detecting and measuring

If random packet injection is used to analyze flow entry usage, then analysis capability is improved, but false negatives occur due to incomplete coverage

Engineering Contradiction:
Improveflow entry usage detectionVSAvoidanalysis accuracy
Core Design Contradiction:
Difficulty of detecting and measuringVSMeasurement precision

Solution Approach 1:

The patent replaces the mechanical approach of random packet injection with a theoretical analysis method based on packet header space evaluation. Instead of physically injecting packets and observing flow entry matches, the system analyzes the header space mathematically to determine reachability, eliminating false negatives while maintaining detection capability.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The patent introduces packet header space analysis as an intermediary between packet injection and flow entry evaluation. This intermediary theoretical framework allows the system to determine flow entry reachability without actual packet injection, providing complete and accurate analysis without the limitations of random sampling.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS10044676B2Using headerspace analysis to identify unneeded distributed firewall rules
Publication Date: 2018.08.07 VMWARE INC
  • US10044676B2 patent drawing
  • US10044676B2 patent drawing
  • US10044676B2 patent drawing

AI summary

Some embodiments provide a method for identifying unnecessary firewall rules for a distributed firewall of a logical network. The method identifies a firewall policy for network traffic of the logical network. The firewall policy includes a set of firewall rules. The method generates a set of data for implementing the firewall policy on a set of managed forwarding elements that implement the logical network. The method analyzes potential network traffic based on the generated set of data to identify a subset of unnecessary data. The method identifies a subset of unnecessary firewall rules of the set of firewall rules that corresponds to the subset of unnecessary data.