US9749262B2

Packet processing method and forwarding element

Summary by NHIP

Dynamic Packet Key Extraction

The method processes packets by extracting a key from a specific data segment defined by offset and length values stored in a port table entry. The forwarding element determines this key without interpreting the packet's data format, enabling flexible support for different formats.

Claim Score by NHIP

Read claim 7, the broadest

Abstract

Embodiments provide a method, including: receiving, by a forwarding element, a packet through an inbound port; searching for, by the forwarding element, a port table according to the inbound port and determining a first offset, a first length, and an identifier of a first table; determining, by the forwarding element, a first key according to the first offset and the first length, searching for the first table according to the first key, and determining a first instruction; and processing, by the forwarding element, the packet according to the first instruction. In addition, a forwarding element is provided. In the foregoing technical solutions, before processing a packet, the forwarding element does not need to interpret a data format of the packet, so that the forwarding element can flexibly support packets in different data formats.

US9749262B2, drawing sheet 1
Sheet 1 of 6

Term

Projected expiry 13 August 2033.

  1. Priority
  2. Filed
  3. Granted
  4. Today
  5. Projected expiry

12 claims: 2 independent, 10 dependent

  1. 1
    A packet processing method, comprising:receiving, by a forwarding element, a packet through an inbound port;searching, by the forwarding element, for a first offset, a first length, and an identifier of a first table according to a port table and the inbound port, wherein the first offset, the first length, and the identifier of the first table are stored in an entry of the port table and the first offset, the first length, and the identifier of the first table correspond to the inbound port;determining, by the forwarding element, a first key and a first instruction, wherein the first key is determined according to the first offset and the first length, and wherein the first instruction is determined via a search of the first table according to the first key;and processing, by the forwarding element, the packet according to the first instruction.
  2. 7
    Broadest claimClaim Score 65, broad(NHIP)A forwarding element, comprising:a receiving circuit, configured to receive a packet through an inbound port;a searching unit, configured to search for a first offset, a first length, and an identifier of a first table according to a port table and the inbound port, wherein the first offset, the first length, and the identifier of the first table are stored in an entry of the port table and the first offset, the first length, and the identifier of the first table correspond to the inbound port;a determining unit, configured to determine a first key and a first instruction, wherein the first key is determined according to the first offset and the first length, and wherein the first instruction is determined via a search of the first table according to the first key;and a processing unit, configured to process the packet according to the first instruction.