# US 2020/0394060 A1 · Network Policy and Flow State Save/Restore for Highly Available Servicing

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

- Number: US 2020/0394060 A1
- Document ID: US20200394060A1
- Status: Published application
- Kind: A1
- Application number: 16/442,072
- Filed: 2019-06-14
- Published: 2020-12-17
- Earliest claimed: 2019-06-14
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Harish Kumar CHANDRAPPA; Milan DASGUPTA; Daniel Max FIRESTONE
- Web page: https://patentgrep.com/patent/US20200394060A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/5016: {the resource being the memory}
- G06F 9/548: {Object oriented; Remote method invocation [RMI] (non-remote method invocation G06F9/449)}
- H04L 41/0894: Policy-based network configuration management
- H04L 41/342: between virtual entities, e.g. orchestrators, SDN or NFV entities
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Described herein is a system and method for flow state save/restore of a virtual filtering platform. A first instance of a driver manages policy and flow state for ongoing flows between client device(s) and virtual machine(s). The virtual filtering platform is transitioned from the first instance of a driver to a second instance of the driver by serializing the policy and state for the ongoing flows on the first instance of the driver using a one pass algorithm. The serialized policy and state for the ongoing flows can be de-serialized with the ongoing flows re-established and/or reconciled on the second instance of the driver in accordance with the de-serialized policy and state for the plurality of ongoing flows. In some embodiments, a memory management technique can use a single operating system memory allocation call to allocate memory for the transition, with the technique managing utilization of the allocation memory.

## Claims

### Claim 1

A system for flow state save/restore, comprising:
a computer comprising a processor and a memory having computer-executable instructions stored thereupon which, when executed by the processor, cause the computer to:
receive a request to transition a virtual filtering platform from a first instance of a driver to a second instance of the driver, wherein the first instance of the driver manages policy and flow state for a plurality of ongoing flows between one or more client devices and one or more virtual machines;
serialize the policy and state for the plurality of ongoing flows on the first instance of the driver using a one pass algorithm;
unload the first instance of the driver;
load the second instance of the driver;
de-serialize the serialized policy and state for the plurality of ongoing flows; and,
reconcile the plurality of ongoing flows on the second instance of the driver in accordance with the de-serialized policy and state for the plurality of ongoing flows.

### Claim 2 (depends on 1)

The system of claim 1, wherein the one pass algorithm stores information regarding a plurality of objects related to the plurality of ongoing flows in a dynamic hash table, with each entry in the dynamic hash table uniquely pointing to a particular object.

### Claim 3 (depends on 2)

The system of claim 2, wherein the objects comprise information regarding at least one of flows, unified flows, rules, mappings, network address translation (NAT) ports, rule contexts, action contexts, or data structures.

### Claim 4 (depends on 2)

The system of claim 2, the memory having further computer-executable instructions stored thereupon which, when executed by the processor, cause the computer to:
using a single operating system memory allocation call to allocate a block of memory for storing the plurality of objects;
for each object, allocating a portion of the block of memory, and, storing information regarding the particular object in the allocated portion; and
releasing the block of memory once the plurality of ongoing flows have been re-established on the second instance of the driver.

### Claim 5 (depends on 1)

The system of claim 1, wherein the serialized policy and state for the plurality of ongoing flows is stored in memory during serialization and de-serialization.

### Claim 6 (depends on 1)

The system of claim 1, wherein the one pass algorithm utilizes a dependency model in which an object serializes any dependencies within the object prior to serializing itself.

### Claim 7 (depends on 1)

The system of claim 1, wherein the policy and flow state for the plurality of ongoing flows comprises complex relationships related to the ongoing flows comprising at least one of flows, unified flows, rules, mappings, network address translation ports, rule contexts, or action contexts.

### Claim 8 (depends on 1)

The system of claim 1, wherein the policy and flow state for the plurality of ongoing flows comprises complex relationships related to the ongoing flows comprising data structures.

### Claim 9

A method of performing virtual filtering platform flow state save/restore, comprising:
receiving a request to transition a virtual filtering platform from a first instance of a driver to a second instance of the driver, wherein the first instance of the driver manages policy and flow state for a plurality of ongoing flows between one or more client devices and one or more virtual machines;
serializing the policy and state for the plurality of ongoing flows on the first instance of the driver using a one pass algorithm;
unloading the first instance of the driver;
loading the second instance of the driver;
de-serializing the serialized policy and state for the plurality of ongoing flows; and,
reconciling the plurality of ongoing flows on the second instance of the driver in accordance with the de-serialized policy and state for the plurality of ongoing flows.

### Claim 10 (depends on 9)

The method of claim 9, wherein the one pass algorithm stores information regarding a plurality of objects related to the plurality of ongoing flows in a dynamic hash table, with each entry in the dynamic hash table uniquely pointing to a particular object.

### Claim 11 (depends on 10)

The method of claim 10, wherein the objects comprise information regarding at least one of flows, unified flows, rules, mappings, network address translation (NAT) ports, rule contexts, action contexts, or data structures.

### Claim 12 (depends on 10)

The method of claim 10, further comprising:
using a single operating system memory allocation call to allocate a block of memory for storing the plurality of objects;
for each object, allocating a portion of the block of memory, and, storing information regarding the particular object in the allocated portion; and
releasing the block of memory once the plurality of ongoing flows have been re-established on the second instance of the driver.

### Claim 13 (depends on 9)

The method of claim 9, wherein the serialized policy and state for the plurality of ongoing flows is stored in memory during serialization and de-serialization.

### Claim 14 (depends on 9)

The method of claim 9, wherein the one pass algorithm utilizes a dependency model in which an object serializes any dependencies within the object prior to serializing itself.

### Claim 15 (depends on 9)

The method of claim 9, wherein the policy and flow state for the plurality of ongoing flows comprises complex relationships related to the ongoing flows comprising at least one of flows, unified flows, rules, mappings, network address translation ports, rule contexts, or action contexts.

### Claim 16 (depends on 9)

The method of claim 9, wherein the policy and flow state for the plurality of ongoing flows comprises complex relationships related to the ongoing flows comprising data structures.

### Claim 17

A computer storage media storing computer-readable instructions that when executed cause a computing device to:
receive a request to transition a virtual filtering platform from a first instance of a driver to a second instance of the driver, wherein the first instance of the driver manages policy and flow state for a plurality of ongoing flows between one or more client devices and one or more virtual machines;
serialize the policy and state for the plurality of ongoing flows on the first instance of the driver using a one pass algorithm;
unload the first instance of the driver;
load the second instance of the driver;
de-serialize the serialized policy and state for the plurality of ongoing flows; and,
reconcile the plurality of ongoing flows on the second instance of the driver in accordance with the de-serialized policy and state for the plurality of ongoing flows.

### Claim 18 (depends on 17)

The computer storage media of claim 17, wherein the one pass algorithm stores information regarding a plurality of objects related to the plurality of ongoing flows in a dynamic hash table, with each entry in the dynamic hash table uniquely pointing to a particular object.

### Claim 19 (depends on 18)

The computer storage media of claim 18, wherein the objects comprise information regarding at least one of flows, unified flows, rules, mappings, network address translation (NAT) ports, rule contexts, action contexts, or data structures.

### Claim 20 (depends on 18)

The computer storage media of claim 18 storing computer-readable instructions that when executed cause a computing device to:
use a single operating system memory allocation call to allocate a block of memory for storing the plurality of objects;
for each object, allocate a portion of the block of memory, and, storing information regarding the particular object in the allocated portion; and
release the block of memory once the plurality of ongoing flows have been re-established on the second instance of the driver.
