# US 2023/0068914 A1 · Methods and systems for network flow tracing within a packet processing pipeline

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

- Number: US 2023/0068914 A1
- Document ID: US20230068914A1
- Status: Published application
- Kind: A1
- Application number: 17/463,202
- Filed: 2021-08-31
- Published: 2023-03-02
- Earliest claimed: 2021-08-31
- Assignees: Pensando Systems Inc.
- Applicants: Pensando Systems Inc.
- Inventors: Vijay Srinivasan; Sarat Kamisetty; Krishna Doddapaneni; John Cruz; Loganathan Nallusamy
- Web page: https://patentgrep.com/patent/US20230068914A1

## CPC

- H04L 43/028: by filtering
- H04L 43/10: Active monitoring, e.g. heartbeat, ping or trace-route
- H04L 41/12: Discovery or management of network topologies
- H04L 43/062: related to network traffic
- H04L 43/18: Protocol analysers
- H04L 49/1546: using pipelined operation
- H04L 49/20: Support for services
- H04L 49/254: {Centralised controller, i.e. arbitration or scheduling}
- H04L 49/3063: {Pipelined operation}
- H04L 49/60: Software-defined switches
- H04L 69/22: Parsing or analysis of headers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Network appliances can use packet processing pipeline circuits to implement network rules for processing network packet flows by configuring the pipeline's processing stages to execute specific policies for specific network packets in accordance with the network rules. Trace reports that indicate network rules implemented at specific processing stages can be more informative than those indicating policies implemented by the processing stages. A method implemented by a network appliance can store network rules for processing network flows by the processing stages of a packet processing pipeline circuit. The method can produce a trace report in response to to receiving a trace directive for one of the network flows wherein one of the processing stages has applied a network rule to a network packet in one of the network flows. The trace report can indicate the network rule in association with the processing stage and the network flow.

## Claims

### Claim 1

A method implemented by a network appliance, the method comprising:
storing a plurality of network rules for processing a plurality of network flows by a packet processing pipeline circuit that includes a plurality of processing stages; and
producing a trace report in response to receiving a trace directive for one of the network flows,
wherein
one of the processing stages has applied one of the network rules to a network packet in the one of the network flows, and
the trace report indicates the one of the network rules in association with the one of the processing stages and the one of the network flows.

### Claim 2 (depends on 1)

The method of claim 1 further including:
producing a pipeline configuration data based on the network rules and the trace directive;
using the pipeline configuration data to configure the packet processing pipeline circuit to process the one of the network flows;
receiving a metadata for the network packet from the packet processing pipeline circuit; and
using a hardware identifier and a policy identifier in the metadata to identify the one of the network rules.

### Claim 3 (depends on 2)

The method of claim 2 wherein the hardware identifier indicates the one of the processing stages.

### Claim 4 (depends on 2)

The method of claim 2 wherein the policy identifier indicates the one of the network rules applied to the network packet by the one of the processing stages.

### Claim 5 (depends on 1)

The method of claim 1 wherein the packet processing pipeline circuit is configured to process a second network packet of a second one of the network flows without producing a second metadata that includes a second hardware identifier and a second policy identifier.

### Claim 6 (depends on 1)

The method of claim 1 further including:
using the network rules to generate a configuration map; and
using the configuration map to identify the one of the network rules.

### Claim 7 (depends on 1)

The method of claim 1 further including:
injecting a debug packet into the packet processing pipeline circuit;
receiving a second metadata from the packet processing pipeline circuit; and
using a second hardware identifier and a second policy identifier in the second metadata to identify a second one of the network rules, wherein
the trace report indicates application of the second one of the network rules to the debug packet.

### Claim 8 (depends on 7)

The method of claim 7 wherein the debug packet is injected into an inbound network flow or into an outbound network flow.

### Claim 9 (depends on 7)

The method of claim 7 wherein the debug packet is transmitted via an egress port.

### Claim 10 (depends on 7)

The method of claim 7 wherein the debug packet is not transmitted via an egress port.

### Claim 11 (depends on 1)

The method of claim 1 wherein the packet processing pipeline circuit is configured to drop the network packet in accordance with the network rules.

### Claim 12 (depends on 1)

The method of claim 1 wherein the trace report shows a source IP address of the network packet in association with the one of the network rules.

### Claim 13 (depends on 1)

The method of claim 1 wherein the trace report shows a destination IP address and a destination port of the network packet in association with the one of the network rules.

### Claim 14 (depends on 1)

The method of claim 1 wherein
the packet processing pipeline circuit includes a parser that produces a packet header vector from the network packet, and
the packet header vector produced by the parser does not include the trace directive.

### Claim 15

A network appliance comprising:
a memory that is configured to store a plurality of network rules for processing a plurality of network flows; and
a packet processing pipeline circuit that includes a plurality of processing stages, wherein
the packet processing pipeline circuit is configured to produce a metadata for a network packet that is in one of the network flows,
the metadata includes a hardware identifier and a policy identifier,
the hardware identifier indicates a one of the processing stages,
the policy identifier indicates a policy applied by the one of the processing stages to the network packet,
the packet processing pipeline circuit is configured to not produce an additional metadata for a second network packet of another one of the network flows,
the network appliance is configured to use the policy identifier and the hardware identifier to identify one of the network rules, and
the network appliance is configured to produce a trace report that indicates the one of the network rules in association with the one of the processing stages and the one of the network flows.

### Claim 16 (depends on 15)

The network appliance of claim 15 wherein the network appliance is configured to:
produce a pipeline configuration data based on the network rules and a trace directive; and
use the pipeline configuration data to configure the packet processing pipeline circuit to process the one of the network flows.

### Claim 17 (depends on 15)

The network appliance of claim 15 wherein the network appliance is configured to:
use the network rules to generate a configuration map; and
use the configuration map to identify the one of the network rules.

### Claim 18 (depends on 15)

The network appliance of claim 15 wherein the network appliance is configured to:
inject a debug packet into the packet processing pipeline circuit;
receive a second metadata from the packet processing pipeline circuit; and
use a second hardware identifier and a second policy identifier in the second metadata to identify a second one of the network rules that is one of the network rules,
wherein
the trace report indicates application of the second one of the network rules to the debug packet.

### Claim 19

A network appliance comprising:
a special purpose packet processing pipeline circuit that includes a plurality of processing stages;
a means for storing a plurality of network rules for processing a plurality of network flows;
a means for causing a one of the processing stages to produce a metadata while processing a network packet that is in one of the network flows; and
a means for using the metadata to produce a trace report,
wherein
the trace report indicates the one of the processing stages that applied a one of the network rules to the network packet, and
the trace report indicates the one of the network rules applied to the network packet by the one of the processing stages.

### Claim 20 (depends on 19)

The network appliance of claim 19 wherein the means for causing the one of the processing stages to produce the metadata while processing the network packet does not also cause the one of the processing stages to produce a second metadata while processing a second network packet of a second one of the network flows.
