# US 2020/0403869 A1 · Method and network device for enabling in-place policy updates

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

- Number: US 2020/0403869 A1
- Document ID: US20200403869A1
- Status: Published application
- Kind: A1
- Application number: 16/446,101
- Filed: 2019-06-19
- Published: 2020-12-24
- Earliest claimed: 2019-06-19
- Assignees: Arista Networks, Inc.
- Applicants: Arista Networks, Inc.
- Inventors: Michael Chen; Eswaran Baskaran
- Web page: https://patentgrep.com/patent/US20200403869A1

## CPC

- H04L 41/082: the condition being updates or upgrades of network functionality
- H04L 41/0806: for initial configuration or provisioning, e.g. plug-and-play
- H04L 41/0894: Policy-based network configuration management
- H04L 41/5022: by giving priorities, e.g. assigning classes of service
- H04L 67/5682: Policies or rules for updating, deleting or replacing the stored data
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method and network device for enabling in-place policy updates. Specifically, the method and network device disclosed herein entail effecting the removal and/or insertion of policies on the network device while minimizing a window in which active policies may be disrupted by the policy updates. Further, in-place policy updates call upon the ordered-shifting of content stored across data structure elements. Through ordered-shifting, policy updates can utilize limited memory resources, on the network device, more efficiently over existing methodologies. Additionally, policy updates can also be committed faster, thereby allowing more policy updates to be processed with a fixed time window.

## Claims

### Claim 1

A method for programming a network device, comprising:
receiving a class modification batch directed to performing policy in-place updates on the network device;
obtaining a final target class sequence from updating an initial target class sequence based on the class modification batch;
generating an operation commit sequence based on the final target class sequence; and
performing, based on the operation commit sequence, the policy in-place updates on the network device by committing the class modification batch thereon.

### Claim 2 (depends on 1)

The method of claim 1, wherein the class modification batch comprises a class modification instruction, wherein obtaining the final target class sequence, comprises:
identifying, within the class modification instruction, a class operation and class information relevant to the class operation;
making a determination that the class operation is directed to a class removal;
extracting, based on the determination, a class identifier from the class information; and
obtaining the final target class sequence based on updating the initial target class sequence using at least the class identifier.

### Claim 3 (depends on 2)

The method of claim 2, wherein the class identifier uniquely identifies an existing class programmed on the network device.

### Claim 4 (depends on 3)

The method of claim 3, wherein the existing class comprises a set of related rules collectively effecting an active policy on the network device.

### Claim 5 (depends on 1)

The method of claim 1, wherein the class modification batch comprises a class modification instruction, wherein obtaining the final target class sequence, comprises:
identifying, within the class modification instruction, a class operation and class information relevant to the class operation;
making a determination that the class operation is directed to a class insertion;
extracting, based on the determination, a class identifier and a class priority from the class information; and
obtaining the final target class sequence based on updating the initial target class sequence using at least the class identifier and the class priority.

### Claim 6 (depends on 5)

The method of claim 5, wherein the class identifier uniquely identifies a new class that is sought to be programmed on the network device.

### Claim 7 (depends on 6)

The method of claim 6, wherein the class priority assigns a level of importance to the new class in relation to other classes programmed or sought to be programmed on the network device.

### Claim 8 (depends on 1)

The method of claim 1, wherein generating the operation commit sequence, comprises:
obtaining a deferred operation stack storing a set of class operation instructions, wherein the set of class operation instructions comprises a first class operation instruction;
retrieving the first class operation instruction from the deferred operation stack;
generating the operation commit sequence by:
allocating a first operation commit sequence element of the operation commit sequence; and
storing the first class operation instruction in the first operation commit sequence element.

### Claim 9 (depends on 8)

The method of claim 8, wherein the set of class operation instructions further comprises a second class operation instruction, wherein the second class operation instruction is stored before the first class operation instruction, wherein generating the operation commit sequence further comprises:
retrieving the second class operation instruction from the deferred operation stack;
generating the operation commit sequence by:
allocating a second operation commit sequence element of the operation commit sequence; and
storing the second class operation instruction in the second operation commit sequence element,
wherein the second operation commit sequence element is positioned after the first operation commit sequence element.

### Claim 10 (depends on 8)

The method of claim 8, wherein the set of class operation instructions further comprises a second class operation instruction, wherein the second class operation instruction is stored after the first class operation instruction, wherein generating the operation commit sequence further comprises:
retrieving the second class operation instruction from the deferred operation stack;
generating the operation commit sequence by:
allocating a second operation commit sequence element of the operation commit sequence; and
storing the second class operation instruction in the second operation commit sequence element,
wherein the second operation commit sequence element is positioned before the first operation commit sequence element,
wherein the second class operation instruction is retrieved from the deferred operation stack prior to retrieving the first class operation instruction.

### Claim 11 (depends on 1)

The method of claim 1, wherein the operation commit sequence comprises an operation commit sequence element, wherein committing the class modification batch on the network device, comprises:
retrieving a class operation instruction stored in the operation commit sequence element;
obtaining, from the class operation instruction, an operation, a class identifier, and
a shift direction;
making a determination that the operation is a MOVE operation;
performing a lookup on a class table using the class identifier, to identify a class slot of a plurality of class slots in the class table;
retrieving a class rule offset and a trial class rule offset from the class slot;
calculating an absolute offset difference using the class rule offset and the trial class rule offset; and
performing an ordered-shift of at least a subset of a rule table,
wherein the ordered-shift is defined by the shift direction, the class rule offset, and the absolute offset difference.

### Claim 12 (depends on 11)

The method of claim 11, wherein the shift direction is directed to a higher priority or a lower priority.

### Claim 13

A network device, comprising:
a computer processor; and
a policy update programmer executing on the computer processor, and configured to:
receive a class modification batch directed to performing policy in-place updates on the network device;
obtain a final target class sequence from updating an initial target class sequence based on the class modification batch;
generate an operation commit sequence based on the final target class sequence; and
perform, based on the operation commit sequence, the policy in-place updates on the network device by committing the class modification batch thereon.

### Claim 14 (depends on 13)

The network device of claim 13, further comprising:
a device configuration interface operatively connected to the computer processor,
wherein the policy update programmer receives the class modification batch from the device configuration interface.

### Claim 15 (depends on 13)

The network device of claim 13, further comprising:
a central management service operatively connected to the network device over a network,
wherein the policy update programmer receives the class modification batch from the central management service.

### Claim 16 (depends on 13)

The network device of claim 13, wherein the network device is a switch, a router, or a multilayer switch.

### Claim 17

A non-transitory computer readable medium (CRM) comprising computer readable program code, which when executed by a computer processor residing on a network device, enables the computer processor to:
receive a class modification batch directed to performing policy in-place updates on the network device;
obtain a final target class sequence from updating an initial target class sequence based on the class modification batch;
generate an operation commit sequence based on the final target class sequence; and
perform, based on the operation commit sequence, the policy in-place updates on the network device by committing the class modification batch thereon.

### Claim 18 (depends on 17)

The non-transitory CRM of claim 17, wherein the class modification batch comprises a class modification instruction, wherein the computer readable program code, when executed by the computer processor, further enables the computer processor to:
obtain the final target class sequence, by:
identifying, within the class modification instruction, a class operation and class information relevant to the class operation;
making a determination that the class operation is directed to a class removal;
extracting, based on the determination, a class identifier from the class information; and
obtaining the final target class sequence based on updating the initial target class sequence using at least the class identifier.

### Claim 19 (depends on 17)

The non-transitory CRM of claim 17, wherein the class modification batch comprises a class modification instruction, wherein the computer readable program code, when executed by the computer processor, further enables the computer processor to:
obtain the final target class sequence, by:
identifying, within the class modification instruction, a class operation and class information relevant to the class operation;
making a determination that the class operation is directed to a class insertion;
extracting, based on the determination, a class identifier and a class priority from the class information; and
obtaining the final target class sequence based on updating the initial target class sequence using at least the class identifier and the class priority.

### Claim 20 (depends on 17)

The non-transitory CRM of claim 17, wherein the operation commit sequence comprises an operation commit sequence element, wherein the computer readable program code, when executed by the computer processor, further enables the computer processor to:
commit the class modification batch on the network device, by:
retrieving a class operation instruction stored in the operation commit sequence element;
obtaining, from the class operation instruction, an operation, a class identifier, and a shift direction;
making a determination that the operation is a MOVE operation;
performing a lookup on a class table using the class identifier, to identify a class slot of a plurality of class slots in the class table;
retrieving a class rule offset and a trial class rule offset from the class slot;
calculating an absolute offset difference using the class rule offset and the trial class rule offset; and
performing an ordered-shift of at least a subset of a rule table,
wherein the ordered-shift is defined by the shift direction, the class rule offset, and the absolute offset difference.
