# US 9,356,834 B2 · Smart dumping of network switch forwarding database

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

- Number: US 9,356,834 B2
- Document ID: US9356834B2
- Status: Granted
- Kind: B2
- Application number: 14/164,655
- Filed: 2014-01-27
- Published: 2015-07-23
- Granted: 2016-05-31
- Earliest claimed: 2014-01-17
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Josep Cors; Venkatesh K. Janakiraman; Joseph A. Kirscht; David A. Shedivy; Colin B. Verrilli
- Web page: https://patentgrep.com/patent/US9356834B2

## CPC

- H04L 41/0853: by actively collecting configuration information or by backing up configuration information
- H04L 41/0895: Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques are provided for retrieving entries from a routing table or a forwarding database in a distributed network switch. The forwarding database includes match and mask registers used to compare routing entries and return matching routing entries to a requesting management controller. The forwarding database uses a separate timeout value associated with the forwarding database to avoid timeout errors for general register operations, and allows for an asynchronous dump operation of routing entries.

## Claims

### Claim 1

A method for retrieving routing entries from a switch module, the method comprising:
receiving, from a management controller, a request for at least one routing entry in a forwarding database (FDB) matching a specified criteria, wherein the request is associated with a first timeout value;
initiating a timer associated with the FDB having a value less than the first timeout value;
responsive to determining a first routing entry in the FDB matches the specified criteria before expiration of the timer associated with the FDB, writing the first routing entry to an output register;
responsive to expiration of the timer associated with the FDB, writing an indication that an FDB timeout has occurred to the output register;
asserting that a write operation to the output register has been completed; and
generating a response frame, to the management controller, containing the value of the output register.

### Claim 2 (depends on 1)

The method of claim 1, wherein the specified criteria comprises a match value and a mask value, wherein the mask value specifies a portion of the first routing entry to compare to the match value.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the first routing entry in the FDB matches the specified criteria before expiration of the timer associated with the FDB further comprises:
modifying the first routing entry based on a value in a mask register to select a portion of the first routing entry; and
determining the selected portion of the first routing entry matches a value in a match register.

### Claim 4 (depends on 1)

The method of claim 1, wherein generating the response frame, to the management controller, containing the value of the output register further comprises:
generating the response frame comprising the first routing entry and a status indication that a match has been found.

### Claim 5 (depends on 1)

The method of claim 1, wherein generating the response frame, to the management controller, containing the value of the output register further comprises:
generating the response frame comprising a payload containing dummy values and the indication that an FDB timeout has occurred, wherein the response frame is configured to cause the management controller to discard the dummy values.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
responsive to determining an end of the FDB has been reached and a last routing entry in the FDB does not match the specified criteria, writing an indication that the end of the FDB has been reached to the output register; and
generating the response frame comprising a payload containing dummy values and the indication that the end of the FDB has been reached, wherein the response frame is configured to cause the management controller to discard the dummy values.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
receiving, from the management controller, a read operation associated with the output register; and
executing the read operation associated with the output register, wherein execution of the read operation triggers finding of a next routing entry in the FDB that matches the specified criteria and writing the next routing entry to the output register.

### Claim 8 (depends on 1)

The method of claim 1, wherein the first timeout value comprises a 24-bit counter, and the timer associated with the FDB comprises a 16-bit counter.

### Claim 9 (depends on 1)

The method of claim 1, wherein the request for the at least one routing entry in the FDB is received in an Ethernet frame.

### Claim 10 (depends on 1)

The method of claim 1, wherein the first timeout value comprises a pipeline timeout value for register operations of the switch module to be completed.

### Claim 11 (depends on 1)

The method of claim 1, wherein the generating the response frame, to the management controller, containing the value of the output register further comprises:
modifying the received request by overlaying the value of the output register into a payload portion of the request, thereby turning the request into the response frame.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
responsive to determining that a current routing entry in the FDB does not match the specified criteria and that the timer associated with the FDB has not expired, incrementing a read pointer to a next routing entry in the FDB.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
initializing a read pointer to a routing entry of the FDB according to an index parameter in the received request.

### Claim 14 (depends on 1)

The method of claim 1, further comprising:
initializing a read pointer to a next routing entry of the FDB after a prior routing entry last matching the specified criteria.
