# US 2017/0286460 A1 · Use of null rows to indicate the end of a one-shot query in network switch

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

- Number: US 2017/0286460 A1
- Document ID: US20170286460A1
- Status: Published application
- Kind: A1
- Application number: 15/273,973
- Filed: 2016-09-23
- Published: 2017-10-05
- Earliest claimed: 2016-04-01
- Assignees: Arista Networks, Inc.
- Applicants: Arista Networks, Inc.
- Inventors: Michael Greenwald; Stephen Schleimer
- Web page: https://patentgrep.com/patent/US20170286460A1

## CPC

- G06F 16/2455: Query execution
- G06F 9/48: Program initiating; Program switching, e.g. by interrupt
- G06F 16/2358: {Change logging, detection, and notification (replication G06F16/27)}
- H04L 49/25: Routing or path finding in a switch fabric
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- 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

A network device includes a query service instance (QSI), a database, and an observer. The QSI is programmed to generate an output based on a, at least in part, a first table of a database; send the output to the database for storage; and send a query completion indicator to the database. The database is programmed to store the output in a second table of the database. The observer is programmed to obtain the query completion indicator from the database and notify an entity that the QSI is complete in response to obtaining the query completion indicator.

## Claims

### Claim 1

A network device, comprising:
a query service instance (QSI) programmed to:
generate an output based on a, at least in part, a first table of a database;
send the output to the database for storage;
send a query completion indicator to the database;
the database programmed to store the output in a second table of the database;
an observer programmed to:
obtain the query completion indicator from the database; and
notify an entity that the QSI is complete in response to obtaining the query completion indicator.

### Claim 2 (depends on 1)

The network device of claim 1, wherein the first table and the second table are different tables.

### Claim 3 (depends on 1)

The network device of claim 1, wherein the database stores the query completion indicator in the second table of the database.

### Claim 4 (depends on 1)

The network device of claim 1, wherein the query completion indicator is a null row.

### Claim 5 (depends on 1)

The network device of claim 1,
wherein the database further comprises a history list,
wherein the history list comprises entries that indicate an order in which entries of the second table are written,
wherein the database is further programmed to store the query completion indicator in an entry of the entries of the history list.

### Claim 6 (depends on 5)

The network device of claim 5, wherein obtaining the query completion indicator comprises:
reading entries of the history list in the order;
obtaining entries of the second table, based on the entries of the history list, in response to reading each entry of the history list; and
determining that the entry of the entries of the history list comprises the query completion indicator.

### Claim 7 (depends on 1)

The network device of claim 1, wherein obtaining the query completion indicator comprises:
reading entries of the second table; and
determining that an entry of the entries of the second table comprises the query completion indicator.

### Claim 8 (depends on 1)

The network device of claim 1, wherein the entity is an agent.

### Claim 9 (depends on 1)

The network device of claim 1, wherein the entity is a third table of the database.

### Claim 10 (depends on 1)

The network device of claim 1, wherein the third table is stored on a second network device.

### Claim 11 (depends on 1)

The network device of claim 1, wherein the network device is one network device selected from the group of network devices consisting of a switch, a router, and a multilevel switch.

### Claim 12 (depends on 1)

The network device of claim 1, wherein the QSI is a one-shot query service instance.

### Claim 13

A method of operating a network device, comprising:
generating, by a query service instance (QSI) of the network device, an output based on, at least in part, a first table of a database of the network device;
sending, by the QSI, the output to the database for storage;
sending, by the QSI, a query completion indicator to the database based on the output;
obtaining, by an observer of the network device, the query completion indicator from the database; and
notifying, by the QSI, an entity that the QSI is complete in response to obtaining the query completion indicator.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
storing, by the database, the output in a second table of the database,
wherein the first table and the second table are different tables.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
storing, by the database, the query completion indicator in the second table of the database in response to receiving the query completion indicator.

### Claim 16 (depends on 15)

The method of claim 15, wherein obtaining the query completion indicator comprises:
reading entries of the second table; and
determining that an entry of the entries of the second table comprises the query completion indicator.

### Claim 17 (depends on 14)

The method of claim 14, further comprising:
storing, by the database, the query completion indicator in an entry of a history list,
wherein the history list comprising entries that indicate an order in which entries of the second table are written.

### Claim 18 (depends on 17)

The method of claim 17, wherein obtaining the query completion indicator comprises:
reading entries of the history list in the order;
obtaining entries of the second table, based on the entries of the history list, in response to reading each entry of the history list; and
determining that the entry of the entries of the history list comprises the query completion indicator.

### Claim 19 (depends on 13)

The method of claim 13, wherein the query completion indicator is a null row.

### Claim 20 (depends on 13)

The method of claim 13, wherein the entity is an agent.

### Claim 21 (depends on 13)

The method of claim 13, wherein the network device is one network device selected from the group of network devices consisting of a switch, a router, and a multilevel switch.

### Claim 22 (depends on 13)

The method of claim 13, wherein the QSI is a one-shot query service instance.
