# US 2023/0069356 A1 · Fragment modification of routing control functions

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

- Number: US 2023/0069356 A1
- Document ID: US20230069356A1
- Status: Published application
- Kind: A1
- Application number: 17/398,321
- Filed: 2021-08-10
- Published: 2023-03-02
- Earliest claimed: 2021-08-10
- Assignees: Arista Networks, Inc.
- Applicants: Arista Networks, Inc.
- Inventors: Sharad Birmiwal; Matthieu Loriol; Keon Vafai
- Web page: https://patentgrep.com/patent/US20230069356A1

## CPC

- H04L 45/02: Topology update or discovery
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A network device that provides packet forwarding services includes: a command line interface and a route manager. The command line interface is programmed to: obtain a command, for updating a routing control function, that specifies positional information; identify a portion of the routing control function based on the positional information; identify a syntactic style associated with the portion of the routing control function; make a modification to the routing control function to obtain a modified routing control function; and update operation of the network device based on the modified routing control function. The route manager is programmed to process a route for forwarding packets of the network device based on the modified routing control function, after the operation of the network device is updated, to obtain a processed route for forwarding the packets.

## Claims

### Claim 1

Non-transitory computer readable storage media comprising computer-executable instructions that, when executed by one or more processors for a network device, cause the one or more processors to:
obtain a request for commitment of a routing control function to a database, wherein the routing control function:
specifies at least a step for processing a class of routes, and
comprises a plurality of labels that delineate a plurality of portions of the routing control function;
update the database based on the routing control function to obtain a first updated database;
obtain a command that specifies:
a routing control function name of the routing control function,
a first label,
a type of a modification for the routing control function, and
a payload that specifies a change to the routing control function;
identify a portion of the plurality of portions of the routing control function having a second label that matches the first label, wherein the second label is one of the plurality of labels;
identify a syntactic style associated with the portion of the plurality of portions;
update, to obtain an updated routing control function, the routing control function based on:
the type of the modification,
the payload,
the portion of the plurality of portions, and
the syntactic style;
initiate commitment of the updated routing control function to the database;
after the updated routing control function is committed to the database:
obtain an unprocessed route, and
process the unprocessed route using a portion of the database corresponding to the committed updated routing control function to obtain a processed route; and
provide packet forwarding services based on the processed route.

### Claim 2

A network device that provides packet forwarding services, comprising:
one or more processors;
a command line interface configured, when executing on the one or more processors, to:
obtain a command, for updating a routing control function stored in a database of the network device, wherein the command specifies positional information in the routing control function,
identify a portion of the routing control function based on the positional information,
identify a syntactic style associated with the portion of the routing control function,
make a modification to the routing control function stored in the database, wherein the modification is based on:
the command,
the portion of the routing control function, and
the syntactic style, and
update operation of the network device based on the modified routing control function; and
a route manager configured, when executing on the one or more processors, to process a route for forwarding packets received by the network device based on the modified routing control function, after the operation of the network device is updated, to obtain a processed route for forwarding the packets.

### Claim 3 (depends on 2)

The network device of claim 2, wherein the positional information is specified using a label.

### Claim 4 (depends on 2)

The network device of claim 2, wherein the positional information is specified as a target position in the routing control function.

### Claim 5 (depends on 2)

The network device of claim 2, wherein
the command further specifies a payload, and
the modification is further based on the payload.

### Claim 6 (depends on 5)

The network device of claim 5, wherein making the modification to the routing control function comprises:
inserting the payload at a location within the routing control function based on the portion of the routing control function; and
formatting the payload based on the syntactic style.

### Claim 7 (depends on 3)

The network device of claim 3, wherein the portion of the routing control function comprises a second label that matches the label.

### Claim 8 (depends on 6)

The network device of claim 6, wherein identifying the syntactic style associated with the portion of the routing control function comprises identifying an indentation level of the second label within the routing control function.

### Claim 9 (depends on 8)

The network device of claim 8, wherein the routing control function comprises human-readable text in a format that enables separable elements of the routing control function to be distinguished, wherein the format comprises different levels of indentation for different separable elements.

### Claim 10 (depends on 8)

The network device of claim 8, wherein formatting the payload based on the syntactic style comprises:
identifying a line of the payload having a lowest level of indentation;
identifying a relative level of indentation relative to the lowest level of indentation for each other line of the payload;
setting an indentation level of the line of the payload inserted in the routing control function to the indentation level of the second label; and
setting an indentation level of the other lines of the payload inserted in the routing control function based on the identified relative level of indentation for each respective other line.

### Claim 11 (depends on 2)

The network device of claim 2, wherein the operation of the network device is updated by committing the modification to a data structure, wherein the route manager processes the route based on a function compiled using information stored in the data structure.

### Claim 12 (depends on 11)

The network device of claim 11, further comprising:
a packet processor configured, when executing on the one or more processors, to:
obtain a packet;
make a forwarding decision for the packet based, at least in part, on the processed route; and
forward the packet to a second network device based on the forwarding decision.

### Claim 13 (depends on 2)

The network device of claim 2, wherein making the modification to the routing control function further comprises:
making a determination that the command is a replacement;
based on the determination:
using the positional information to determine a location for inserting a payload; and
executing the replacement by deleting the portion of the routing control function and inserting the payload at the location.

### Claim 14 (depends on 2)

The network device of claim 2, wherein making the modification to the routing control function further comprises:
making a determination that the command is an addition;
using the positional information to determine a location for adding the payload; and
adding the payload at the determined location.

### Claim 15 (depends on 2)

The network device of claim 2, wherein making the modification to the routing control function comprises:
making a determination that the command is a deletion of content within the portion of the routing control function;
using the positional information to identify content of the routing control function to be deleted; and
deleting the content identified using the positional information.

### Claim 16 (depends on 2)

The network device of claim 2, wherein the command line interface is configured, when executing on the one or more processors, to:
in response to receiving the command and prior to making the modification to the routing control function, determine whether the command can be executed.

### Claim 17 (depends on 16)

The network device of claim 16, wherein determining whether the command can be executed comprises:
determining a first class included in a type of modification specified by the command;
determining a second class associated with the portion of the routing control function; and
determining that the command can be executed if the first class supports the second class.

### Claim 18 (depends on 16)

The network device of claim 16, wherein determining whether the command can be executed comprises:
determining a first class included in a type of modification specified by the command;
determining a second class included in a payload specified by the command; and
determining that the command can be executed if the first class matches the second class.

### Claim 19

A method for modifying a fragment of a routing control function stored in a network device that provides packet forwarding services, the method comprising:
obtaining a command, for updating the routing control function, specifying a modification to the routing control function;
determining that the command can be executed based on classes included in the command and the routing control function;
identifying a portion of the routing control function specified in the modification;
identifying a syntactic style associated with the portion of the routing control function; and
making a modification to the routing control function to obtain a modified routing control function, wherein the modification is based on:
the command,
the portion of the routing control function, and
the syntactic style; and
committing the modification to a data structure storing the routing control function to update an operation of the network device,
wherein a route for forwarding packets of the network device is processed based on the modified routing control function, after the operation of the network device is updated, to obtain a processed route for forwarding the packets.

### Claim 20 (depends on 19)

The method of claim 19, wherein
the modification specifies a label and a payload,
the portion of the routing control function comprises a second label matching the first label, and
the modification is further based on the payload.
