Efficient tlv style header parsing and editing
AssigneeAvago Technologies International Sales Pte. Limited
InventorsAmit Narayan Gupta, Bhaswar Mitra, Chi Ho Fredrek Choi, Arun Prasath Chandrasekaran
Life of this patent
Estimating the term…
Abstract
In some aspects, the disclosure is directed to methods and systems for a flexible type-length-value (TLV) parser and identification map that may be used to quickly identify TLV sequences of packet headers for subsequent processing in a pipeline. A flexible TLV bus may provide a secondary path for the TLV header and identification map, allowing for subsequent processing stages to read, process, modify, delete, or otherwise utilize individual TLV sequences within the header.
Claims20
A method comprising:
- identifying, by a type-length-value (TLV) processor of a device, a type of a TLV sequence of one or more TLV sequences present in a header of a packet and a starting location of the header, the packet received via communications over one or more networks;
- determining, by the TLV processor, an offset of a location of the TLV sequence in the header based at least on the starting location;
- encoding, by the TLV processor, the TLV sequence in a bitmap using the type and offset;
- and
- providing, by the TLV processor, the bitmap for use by another TLV processor to identify the TLV sequence in the header.
A system comprising:
- a device configured with a type-length-value (TLV) processor, the device having a network interface configured to receive one or more packets via communications over one or more networks;
- the TLV processor configured to:
- identify a type of a TLV sequence of one or more TLV sequences present in a header of a packet and a starting location of the header;
- determine an offset of a location of the TLV sequence in the header based at least on the starting location;
- encode the TLV sequence in a bitmap using the type and offset;
- and
- communicate the bitmap on a bus for use by another TLV processor to identify the TLV sequence in the header.
A device comprising:
- circuitry providing a type-length-value (TLV) circuit;
- the TLV circuit configured to:
- identify a type of a TLV sequence of one or more TLV sequences present in a header of a packet and a starting location of the header;
- determine an offset of a location of the TLV sequence in the header based at least on the starting location;
- encode the TLV sequence in a bitmap using the type and offset;
- and
- place the bitmap on a bus for use by another TLV circuit to identify the TLV sequence in the header.
Dependencies are inferred from the claim text.