hottub.patents
US 12,381,963 B2#3476324 Most CitedActiveUnited States (USPTO)Utility

Method of using bit vectors to allow expansion and collapse of header layers within packets for enabling flexible modifications and an apparatus thereof

0Forward Citations (#3476324 Global)
0.0/yrCitation Velocity (#3476324 Global)
0.00Citation PageRank (#3476324 Global)
80Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

Embodiments of the apparatus for modifying packet headers relate to a use of bit vectors to allow expansion and collapse of protocol headers within packets for enabling flexible modification. A rewrite engine expands each protocol header into a generic format and applies various commands to modify the generalized protocol header. The rewrite engine maintains a bit vector for the generalized protocol header with each bit in the bit vector representing a byte of the generalized protocol header. A bit marked as 0 in the bit vector corresponds to an invalid byte, while a bit marked as 1 in the bit vector corresponds to a valid byte. The rewrite engine uses the bit vector to remove all the invalid bytes after all commands have been operated on the generalized protocol header to thereby form a new protocol header.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 80 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A method of a network device, the method comprising: receiving a packet having a header including one or more protocol layers, wherein each protocol layer of the one or more protocol layers corresponds to one of a plurality of protocols; and for at least one protocol layer of the one or more protocol layers: converting the at least one protocol layer to a generic protocol layer format associated with the protocol of the at least one protocol layer by adding one or more fields to the at least one protocol layer, wherein the one or more fields added to the at least one protocol layer were not previously a part of the at least one protocol layer and are dependent on the protocol of the at least one protocol layer.

  2. Claim 2Depends on #1

    The method of claim 1, further comprising maintaining a protocol table including a plurality of entries, wherein each entry of the plurality of entries is associated with a unique identifier and includes data associated with a different combination of the plurality of protocols.

  3. Claim 3Depends on #1

    The method of claim 1, wherein the header of the packet includes a body that is a portion of the header that is not modified by the set of generic commands.

  4. Claim 4Depends on #3

    The method of claim 3, further comprising: maintaining a pointer structure for the packet that includes an end pointer, a plurality of layer pointers and a total size of the header of the packet, wherein each of the layer pointers point to a start position of a different one of the protocol layers of the header of the packet and the end pointer points to the start of the body of the header.

  5. Claim 5Depends on #1

    The method of claim 1, further comprising, for each protocol layer of the at least one protocol layer that is converted, storing a bit vector including a plurality of values that each represent a different portion of the converted protocol layer.

  6. Claim 6Depends on #1

    The method of claim 1, wherein the generic format includes all supported fields of the protocol of the at least one protocol layer.

  7. Claim 7Depends on #1

    The method of claim 1, wherein converting the at least one protocol layer includes: of fields supported by the protocol of the at least one protocol layer, detecting which of the fields are missing from the at least one protocol layer; and based on the detection, expanding the at least one protocol layer to the generic format by adding the missing fields.

  8. Claim 8Independent Claim

    A network switch comprising: an input port for receiving a packet having a header including one or more protocol layers, wherein each protocol layer of the one or more protocol layers corresponds to one of a plurality of protocols; and a non-transitory computer-readable memory storing a rewrite engine that, for at least one protocol layer of the one or more protocol layers, converts the at least one protocol layer to a generic protocol layer format associated with the protocol of the at least one protocol layer by adding one or more fields to the at least one protocol layer, wherein the one or more fields added to the at least one protocol layer were not previously a part of the at least one protocol layer and are dependent on the protocol of the at least one protocol layer.

Technical Overview & Description

Related Applications This application is a continuation of U.S. application Ser. No. 17/330,782, filed on May 26, 2021, and entitled “ A METHOD OF USING BIT VECTORS TO ALLOW EXPANSION AND COLLAPSE OF HEADER LAYERS WITHIN PACKETS FOR ENABLING FLEXIBLE MODIFICATIONS AND AN APPARATUS THEREOF, ” which is a continuation of U.S. application Ser. No. 15/457,970, filed on Mar. 13, 2017, and entitled “ A METHOD OF USING BIT VECTORS TO ALLOW EXPANSION AND COLLAPSE OF HEADER LAYERS WITHIN PACKETS FOR ENABLING FLEXIBLE MODIFICATIONS AND AN APPARATUS THEREOF, ” which is a continuation of U.S. application Ser. No. 14/309,659, filed on Jun. 19, 2014, and entitled “ A METHOD OF USING BIT VECTORS TO ALLOW EXPANSION AND COLLAPSE OF HEADER LAYERS WITHIN PACKETS FOR ENABLING FLEXIBLE MODIFICATIONS AND AN APPARATUS THEREOF, ” both of which are hereby incorporated by reference. FIELD OF INVENTION The present invention relates to packet header modifications. More particularly, the present invention relates to a method of using bit vectors to allow expansion and collapsing of header layers within packets for enabling flexible modifications and an apparatus thereof. BACKGROUND OF THE INVENTION A network packet carries data via protocols that the Internet uses, such as Transmission Control Protocol/Internet Protocol/Ethernet Protocol (TCP/IP/Ethernet). A typical switch is able to modify various fields of incoming packets prior to sending the packets out to a destination or to another switch. Incoming packets are modified for various reasons, such as where the packets are being forwarded to, the protocol the destination supports, priority of the packets, incoming format of the protocol header, etc. Since network protocols are evolving, one or more fields of a protocol header can be optional, which complicates the hardware of the switch as a given field within a protocol header may not be always at a fixed offset. During modification of a packet, the prior art switch linearly processes each pr

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

Non-Patent Literature (10)

  • Second Official Action dated Dec. 6, 2023 from the Indian Patent Application No. 834/DEL/2015.
  • Office Action dated Jul. 17, 2019 for Chinese Patent Application No. 201510276426.4.
  • Office Action dated Jul. 17, 2019 for Chinese Patent Application No. 201510276588.8.
  • Office Action dated Jul. 29, 2019 for Chinese Patent Application No. 2015102724093.
  • Office Action dated Aug. 2, 2019 for Chinese Patent Application No. 2015102369392.
  • Office Action dated Aug. 5, 2019 for Chinese Patent Application No. 201510272163X.
  • Office Action from the Chinese Patent Application No. 201510229770.8 dated Aug. 5, 2019.
  • Chinese Office Action dated May 7, 2020 for the Chinese Patent Application No. 201510272409.3.
  • Chinese Office Action dated May 8, 2020 for the Chinese Patent Application No. 201510229779.9.
  • Chinese Office Action dated May 18, 2020 for the Chinese Patent Application No. 201510229610.3.