# US 2021/0243140 A1 · Network Adapter with Time-Aware 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 2021/0243140 A1
- Document ID: US20210243140A1
- Status: Published application
- Kind: A1
- Application number: 16/782,075
- Filed: 2020-02-05
- Published: 2021-08-05
- Earliest claimed: 2020-02-05
- Assignees: Mellanox Technologies, Ltd.
- Applicants: Mellanox Technologies, Ltd.
- Inventors: Dotan David Levi; Avi Urman; Lior Narkis; Liron Mula
- Web page: https://patentgrep.com/patent/US20210243140A1

## CPC

- H04W 56/0075: {based on arrival time vs. expected arrival time}
- H04J 3/0697: {Synchronisation in a packet node}
- H04L 12/40032: {Details regarding a bus interface enhancer}
- H04L 12/4633: {Interconnection of networks using encapsulation techniques, e.g. tunneling}
- H04L 49/70: {Virtual switches}
- H04L 49/90: Buffering arrangements
- H04L 63/0263: {Rule management}
- H04L 69/22: Parsing or analysis of headers
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)
- H04J: MULTIPLEX COMMUNICATION (transmission in general H04B; peculiar to transmission of digital information H04L5/00; systems for the simultaneous or sequential transmission of more than one television signal H04N7/08; in exchanges H04Q11/00; stereophonic systems H04S)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A network adapter includes a host interface configured to communicate with a host, a network interface configured to communicate with a communication network, and packet processing circuitry. The packet processing circuitry is configured to receive a packet from the host via the host interface, or from the communication network via the network interface, to receive an indication of a network time used for synchronizing network elements in the communication network, to match the packet to a rule, the rule including a condition and an action, and to perform the action in response to the packet meeting the condition, wherein one or more of (i) the condition in the rule and (ii) the action in the rule, depend on the network time.

## Claims

### Claim 1

A network adapter, comprising:
a hardware-implemented host interface configured to communicate with a host;
a hardware-implemented network interface configured to communicate with a communication network; and
packet processing circuitry, configured to:
receive a packet from the host via the host interface, or from the communication network via the network interface;
receive an indication of a network time that serves as a common time-base for synchronizing network elements in the communication network; and
match the packet to a rule, the rule comprising a condition and an action, and perform the action in response to the packet meeting the condition, wherein the condition in the rule includes a comparison of a first value of the network time to a periodic time-range defined relative to a second value of the network time obtained by masking selected bits of the first value of the network time to generate a masked time value and comparing the masked time value to the second value of the network time.

### Claim 2 (depends on 1)

The network adapter according to claim 1, further comprising a hardware clock that is synchronized to the network time and is configured to provide the indication of the network time to the packet processing circuitry.

### Claim 3 (depends on 1)

The network adapter according to claim 1, further comprising a timestamping circuit that is configured to insert the indication of the network time into the packet upon arrival of the packet to the network adapter, or upon departure of the packet from the network adapter.

### Claim 4

(canceled)

### Claim 5 (depends on 1)

The network adapter according to claim 1, wherein the first and second values of the network time are selected from a list comprising:
a time indicated in the packet;
an arrival time of the packet to the network adapter;
a departure time of the packet from the network adapter;
a time value specified in the rule; and
a current value of the network time.

### Claim 6 (depends on 1)

The network adapter according to claim 1, wherein, upon a successful match to the rule, the packet processing circuitry is configured to control a departure time of the packet from the network adapter depending on the network time.

### Claim 7 (depends on 1)

The network adapter according to claim 1, wherein, upon a successful match to the rule, the packet processing circuitry is configured to modify a time field in the packet depending on the network time.

### Claim 8 (depends on 1)

The network adapter according to claim 1, wherein, upon a successful match to the rule, the packet processing circuitry is configured to insert into the packet a time field depending on the network time.

### Claim 9 (depends on 1)

The network adapter according to claim 1, wherein, upon a successful match to the rule, the packet processing circuitry is configured to update statistical information depending on the network time.

### Claim 10 (depends on 1)

The network adapter according to claim 1, wherein, by dependence on the network time, the packet processing circuitry is configured to match the packet to the rule synchronously with application of another rule is another network device in the communication network.

### Claim 11 (depends on 1)

The network adapter according to claim 1, wherein the condition in the rule depends on the network time and on a value of a counter in the network adapter.

### Claim 12

(canceled)

### Claim 13

A method for packet processing, comprising:
in a network adapter, receiving a packet from a host via a host interface, or from a communication network via a network interface;
receiving in the network adapter an indication of a network time that serves as a common time-base for synchronizing network elements in the communication network; and
matching the packet to a rule using a match engine in the network adapter, the rule comprising a condition and an action, and performing the action in response to the packet meeting the condition, wherein the condition in the rule includes a comparison of a first value of the network time to a periodic time-range defined relative to a second value of the network time obtained by masking selected bits of the first value of the network time to generate a masked time value and comparing the masked time value to the second value of the network time.

### Claim 14 (depends on 13)

The method according to claim 13, wherein receiving the indication of the network time comprises receiving the indication from a hardware clock in the network adapter that is synchronized to the network time.

### Claim 15 (depends on 13)

The method according to claim 13, further comprising inserting the indication of the network time into the packet upon arrival of the packet to the network adapter, or upon departure of the packet from the network adapter.

### Claim 16

(canceled)

### Claim 17 (depends on 13)

The method according to claim 13, wherein the first and second values of the network time are selected from a list comprising:
a time indicated in the packet;
an arrival time of the packet to the network adapter;
a departure time of the packet from the network adapter;
a time value specified in the rule; and
a current value of the network time.

### Claim 18 (depends on 13)

The method according to claim 13, wherein performing the action comprises, upon a successful match to the rule, controlling a departure time of the packet from the network adapter depending on the network time.

### Claim 19 (depends on 13)

The method according to claim 13, wherein performing the action comprises, upon a successful match to the rule, modifying a time field in the packet depending on the network time.

### Claim 20 (depends on 13)

The method according to claim 13, wherein performing the action comprises, upon a successful match to the rule, inserting into the packet a time field depending on the network time.

### Claim 21 (depends on 13)

The method according to claim 13, wherein performing the action comprises, upon a successful match to the rule, updating statistical information depending on the network time.

### Claim 22 (depends on 13)

The method according to claim 13, matching the packet to the rule is performed synchronously with application of another rule is another network device in the communication network.

### Claim 23 (depends on 13)

The method according to claim 13, wherein the condition in the rule depends on the network time and on a value of a counter in the network adapter.

### Claim 24

(canceled)

### Claim 25

A network adapter, comprising:
a hardware-implemented host interface configured to communicate with a host;
a hardware-implemented network interface configured to communicate with a communication network; and
packet processing circuitry, configured to:
receive a packet from the host via the host interface, or from the communication network via the network interface;
receive an indication of a network time that serves as a common time-base for synchronizing network elements in the communication network; and
match the packet to a rule, the rule comprising a condition and an action, and perform the action in response to the packet meeting the condition, wherein the action in the rule includes forcing the packet to depart from the network adapter at a time that is specified based on the network time.

### Claim 26

A method for packet processing, comprising:
in a network adapter, receiving a packet from a host via a host interface, or from a communication network via a network interface;
receiving in the network adapter an indication of a network time that serves as a common time-base for synchronizing network elements in the communication network; and
matching the packet to a rule using a match engine in the network adapter, the rule comprising a condition and an action, and performing the action in response to the packet meeting the condition, wherein the action in the rule includes forcing the packet to depart from the network adapter at a departure time that is specified based on the network time.

### Claim 27 (depends on 25)

The network adapter according to claim 25, wherein the action in the rule includes delaying a departure of the packet from the network adapter until the network time reaches a predefined value.

### Claim 28 (depends on 25)

The network adapter according to claim 25, wherein the action in the rule comprises forcing the packet to depart from the network adapter before the network time reaches a predefined value, and otherwise dropping the packet.

### Claim 29 (depends on 1)

The network adapter according to claim 1, wherein the packet is a part of a stream of packets transmitted in a periodic streaming application, and wherein the packet processing circuitry is configured to align a start time of the packet responsively to the comparison in order to correct a drift in the application.
