# US 2023/0421473 A1 · Method and system for efficient input/output transfer in network devices

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

- Number: US 2023/0421473 A1
- Document ID: US20230421473A1
- Status: Published application
- Kind: A1
- Application number: 18/253,772
- Filed: 2020-11-20
- Published: 2023-12-28
- Earliest claimed: 2020-11-20
- Assignees: Telefonaktiebolaget LM Ericsson (publ)
- Applicants: Telefonaktiebolaget LM Ericsson (publ)
- Inventors: Amir ROOZBEH; Alireza FARSHIN; Dejan KOSTIC; Gerald Q MAGUIRE
- Web page: https://patentgrep.com/patent/US20230421473A1

## CPC

- G06F 12/0888: using selective caching, e.g. bypass
- H04L 43/0894: Packet rate
- G06F 13/128: {for dedicated transfers to a network (for protocol converters G06F13/387)}
- G06F 13/385: {for adaptation of a particular data processing system to different peripheral devices}
- G06F 13/4045: {where the bus bridge performs an extender function}
- H04L 43/026: using flow identification
- H04L 43/0829: Packet loss
- H04L 43/20: the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
- H04L 49/3018: {Input queuing}
- G06F 2212/1016: Performance improvement
- G06F 2212/154: Networked environment
- G06F 2212/502: using adaptive policy
- G06F 2212/601: Reconfiguration of cache memory
- H04L 45/742: {Route cache; Operation thereof}
- H04L 47/6215: {Individual queue per QOS, rate or priority}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Methods and systems for selective direct access to a processing unit of a network device are described. A network interface of the network device receives packets of a flow. The network interface determines based on attributes of the packets that the packets are to be directly sent to the processing unit. In response to determining that the packets are to be directly sent to the processing unit, they are directly sent to the processing unit for processing.

## Claims

### Claim 1

A method in a network interface (NI) that is coupled with a processing unit for processing packets received through the NI, the method comprising:
receiving at the NI a first packet;
determining based on one or more first attributes of the first packet that the first packet is to be directly sent to the processing unit;
responsive to determining that the first packet is to be directly sent to the processing unit, directly sending the first packet to the processing unit for processing;
receiving a second packet;
determining based on one or more second attributes of the second packet that the second packet is not to be directly sent to the processing unit; and
responsive to determining that the second packet is not to be directly sent to the processing unit, sending the second packet to be stored in a main memory associated with the processing unit before being processed by the processing unit.

### Claim 2 (depends on 1)

The method of claim 1 further comprises:
responsive to determining that the first packet is to be directly sent to the processing unit, adding the first packet to a first receive queue that is enabled for directly sending packets to the processing unit.

### Claim 3 (depends on 1)

The method of claim 1 further comprising:
responsive to determining that the second packet is not to be directly sent to the processing unit, adding the second packet to a second receive queue that is enabled for sending packets to the main memory associated with the processing unit.

### Claim 4 (depends on 1)

The method of claim 1, wherein the second packet is to be retrieved from the main memory and to be made available in a cache of the processing unit for processing.

### Claim 5 (depends on 1)

The method of claim 1, wherein the one or more first attributes include one or a combination of a user identifier, a user selector, a bearer selector, an application identifier, a protocol identifier, a source Internet Protocol (IP) address, a destination IP address, a source port number, and a destination port number.

### Claim 6 (depends on 1)

The method of claim 1 further comprising:
monitoring a rate of receipt of traffic at the NI and a miss rate of packets.

### Claim 7 (depends on 6)

The method of claim 6 further comprising,
updating at least based on the rate of receipt of traffic at the NI, one or more queues that are enabled for directly sending packets to processing unit; and
updating information related to configuration of the one or more queues that are enabled for directly sending packets to the processing unit.

### Claim 8 (depends on 7)

The method of claim 7, wherein the updating is further performed based on the miss rate of packets.

### Claim 9 (depends on 7)

The method of claim 7 further comprising:
transmitting to a network element executed on the processing unit, an indication regarding the update to the one or more queues.

### Claim 10 (depends on 1)

The method of claim 1 further comprising:
updating a size of a cache of the processing unit that is dedicated to direct access of the processing unit from the network interface.

### Claim 11

A non-transitory machine-readable storage medium comprising computer program code which when executed by a computer, causes a network interface (NI) that is coupled with a processing unit for processing packets received through the NI to perform operations comprising:
receiving at the NI a first packet;
determining based on one or more first attributes of the first packet that the first packet is to be directly sent to the processing unit;
responsive to determining that the first packet is to be directly sent to the processing unit, directly sending the first packet to the processing unit for processing;
receiving a second packet;
determining based on one or more second attributes of the second packet that the second packet is not to be directly sent to the processing unit; and
responsive to determining that the second packet is not to be directly sent to the processing unit, sending the second packet to be stored in a main memory associated with the processing unit before being processed by the processing unit.

### Claim 12

A network interface (NI) that is to be coupled with a processing unit for processing packets received through the NI, the NI comprising:
a non-transitory machine-readable storage medium that provides instructions that, when executed by a processor, will cause the NI to perform operations comprising,
receiving at the NI a first packet;
determining based on one or more first attributes of the first packet that the first packet is to be directly sent to the processing unit;
responsive to determining that the first packet is to be directly sent to the processing unit, directly sending the first packet to the processing unit for processing;
receiving a second packet;
determining based on one or more second attributes of the second packet that the second packet is not to be directly sent to the processing unit; and
responsive to determining that the second packet is not to be directly sent to the processing unit, sending the second packet to be stored in a main memory associated with the processing unit before being processed by the processing unit.

### Claim 13 (depends on 12)

The network interface of claim 12, wherein the operations further comprise:
responsive to determining that the first packet is to be directly sent to the processing unit, adding the first packet to a first receive queue that is enabled for directly sending packets to the processing unit.

### Claim 14 (depends on 12)

The network interface of claim 12, wherein the operations further comprise:
responsive to determining that the second packet is not to be directly sent to the processing unit, adding the second packet to a second receive queue that is enabled for sending packets to the main memory associated with the processing unit.

### Claim 15 (depends on 12)

The network interface of claim 12, wherein the second packet is to be retrieved from the main memory and to be made available in a cache of the processing unit for processing.

### Claim 16 (depends on 12)

The network interface of claim 12, wherein the one or more first attributes include one or a combination of a user identifier, a user selector, a bearer selector, an application identifier, a protocol identifier, a source Internet Protocol (IP) address, a destination IP address, a source port number, and a destination port number.

### Claim 17 (depends on 12)

The network interface of claim 12, wherein the operations further comprise:
monitoring a rate of receipt of traffic at the NI and a miss rate of packets.

### Claim 18 (depends on 17)

The network interface of claim 17, wherein the operations further comprise:
updating, at least based on the rate of receipt of traffic at the NI, one or more queues that are enabled for directly sending packets to processing unit; and
updating information related to configuration of the one or more queues that are enabled for directly sending packets to the processing unit.

### Claim 19 (depends on 18)

The network interface of claim 18, wherein the updating is further performed based on the miss rate of packets.

### Claim 20 (depends on 18)

The network interface of claim 18, wherein the operations further comprise:
transmitting to a network element executed on the processing unit, an indication regarding the update to the one or more queues.

### Claim 21

(canceled)
