# US 2023/0188447 A1 · Network processor with external memory protection

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

- Number: US 2023/0188447 A1
- Document ID: US20230188447A1
- Status: Published application
- Kind: A1
- Application number: 17/548,438
- Filed: 2021-12-10
- Published: 2023-06-15
- Earliest claimed: 2021-12-10
- Assignees: Nokia Solutions and Networks Oy
- Applicants: Nokia Solutions and Networks Oy
- Inventors: Brian Alleyne; Matias Cavuoti; Li-Chuan Egan; Mimi Dannhardt; Krishnan Subramani; Mohamed Abdul Malick Mohamed Usman; Roxanna Ganji; Stephen Russell
- Web page: https://patentgrep.com/patent/US20230188447A1

## CPC

- H04L 43/0882: Utilisation of link capacity
- H04L 47/30: in combination with information about buffer occupancy at either end or at transit nodes
- H04L 43/0811: by checking connectivity
- H04L 43/0817: by checking functioning
- H04L 43/0876: Network utilisation, e.g. volume of load or congestion level
- H04L 43/0894: Packet rate
- H04L 47/12: Avoiding congestion; Recovering from congestion
- H04L 47/122: by diverting traffic away from congested entities
- H04L 47/32: by discarding or delaying data units, e.g. packets or frames
- H04L 47/326: {with random discard, e.g. random early discard [RED]}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Systems and methods for protecting external memory resources to prevent bandwidth collapse in a network processor. One embodiment is a network processor including an input port configured to receive packets from a source device, on-chip memory configured to store packets in queues, an external memory interface configured to couple the on-chip memory with an external memory providing a backing store to the on-chip memory, and bandwidth monitor configured to measure a bandwidth utilization of the external memory. The network processor also includes a processor configured to apply the bandwidth utilization of the external memory to a congestion notification profile, to generate one or more congestion notifications based on the bandwidth utilization applied to the congestion notification profile, and to send the one or more congestion notifications to the source device to request decreasing packet rate for decreasing the bandwidth utilization of the external memory.

## Claims

### Claim 1

A network processor comprising:
an input port configured to receive packets from a source device;
on-chip memory configured to store packets in queues;
an external memory interface configured to couple the on-chip memory with an external memory providing a backing store to the on-chip memory;
a bandwidth monitor configured to measure a bandwidth utilization of the external memory; and
a processor configured to apply the bandwidth utilization of the external memory to a congestion notification profile, to generate one or more congestion notifications based on the bandwidth utilization applied to the congestion notification profile, and to send the one or more congestion notifications to the source device to request decreasing packet rate for decreasing the bandwidth utilization of the external memory.

### Claim 2 (depends on 1)

The network processor of claim 1 wherein:
the processor is configured to discard packets stored in the on-chip memory based on the bandwidth utilization applied to the congestion notification profile, wherein packets discarded via the congestion notification profile generates the one or more congestion notifications, and
the processor is configured, in response to determining that the source device is unresponsive to packets discarded via the congestion notification profile, to reduce a size of one or more queues to prevent packets transferring from the on-chip memory to the external memory.

### Claim 3 (depends on 1)

The network processor of claim 1 wherein:
the processor is configured to process packet headers to determine packet attributes, and
the processor is configured to determine congestion notification profiles for packets based on the packet attributes, the congestion notification profiles having different bandwidth utilization thresholds than one another for triggering congestion notification.

### Claim 4 (depends on 3)

The network processor of claim 3 wherein:
the processor is configured to group packets into one or more aggregate packet pools based on the packet attributes, to track the bandwidth utilization of the one or more aggregate pools relative to one or more congestion profiles, and to select packets to discard via the one or more congestion notification profiles based at least in part on packets belonging to an aggregate packet pool that is exceeding a threshold bandwidth of the external memory.

### Claim 5 (depends on 4)

The network processor of claim 4 wherein:
the one or more aggregate packet pools include one or more of a port pool, a global pool, and a class pool.

### Claim 6 (depends on 4)

The network processor of claim 4 wherein:
the processor is configured to select packets to discard based at least in part on packets associated with a low priority.

### Claim 7 (depends on 1)

The network processor of claim 1 wherein:
the congestion notification profile includes bandwidth thresholds that increase a probability of generating a congestion notification for the source device as the bandwidth utilization of the external memory increases.

### Claim 8

A method of reducing traffic congestion in a network processor, the method comprising:
receiving packets from a source device;
storing, in on-chip memory, packets in queues;
providing external memory as a backing store to the on-chip memory;
measuring a bandwidth utilization of the external memory;
applying the bandwidth utilization as an input parameter to a congestion notification profile;
generating one or more congestion notifications based on the bandwidth utilization applied to the congestion notification profile; and
sending the one or more congestion notifications to the source device to request decreasing packet rate for decreasing the bandwidth utilization of the external memory.

### Claim 9 (depends on 8)

The method of claim 8 further comprising:
discarding packets stored in the on-chip memory based on the bandwidth utilization applied to the congestion notification profile, wherein packets discarded via the congestion notification profile generates the one or more congestion notifications; and
in response to determining that the source device is unresponsive to packets discarded via the congestion notification profile, reducing a size of one or more queues to prevent packets transferring from the on-chip memory to the external memory.

### Claim 10 (depends on 8)

The method of claim 8 further comprising:
processing packet headers to determine packet attributes; and
determining congestion notification profiles for packets based on the packet attributes, the congestion notification profiles having different bandwidth utilization thresholds than one another for triggering congestion notification.

### Claim 11 (depends on 10)

The method of claim 10 further comprising:
grouping packets into one or more aggregate packet pools based on the packet attributes;
tracking the bandwidth utilization of the one or more aggregate pools relative to one or more congestion profiles; and
selecting packets to discard via the one or more congestion notification profiles based at least in part on packets belonging to an aggregate packet pool that is exceeding a threshold bandwidth of the external memory.

### Claim 12 (depends on 11)

The method of claim 11 wherein:
the one or more aggregate packet pools include one or more of a port pool, a global pool, and a class pool.

### Claim 13 (depends on 8)

The method of claim 8 wherein:
the congestion notification profile includes bandwidth thresholds that increase a probability of generating a congestion notification for the source device as the bandwidth utilization of the external memory increases.

### Claim 14

A non-transitory computer readable medium embodying programmed instructions which, when executed by a processor, are operable for performing a method of reducing traffic congestion in a network processor, the method comprising:
receiving packets from a source device;
determining a bandwidth utilization of external memory which provides a backing store to on-chip memory;
applying the bandwidth utilization as an input parameter to a congestion notification profile;
generating one or more congestion notifications based on the bandwidth utilization applied to the congestion notification profile; and
sending the one or more congestion notifications to the source device to request decreasing packet rate for decreasing the bandwidth utilization of the external memory.

### Claim 15 (depends on 14)

The non-transitory computer readable medium of claim 14 wherein the method further comprises:
discarding packets stored in the on-chip memory based on the bandwidth utilization applied to the congestion notification profile, wherein packets discarded via the congestion notification profile generates the one or more congestion notifications; and
in response to determining that the source device is unresponsive to packets discarded via the congestion notification profile, reducing a size of one or more queues to prevent packets transferring from the on-chip memory to the external memory.

### Claim 16 (depends on 14)

The non-transitory computer readable medium of claim 14 wherein the method further comprises:
processing packet headers to determine packet attributes; and
determining congestion notification profiles for packets based on the packet attributes, the congestion notification profiles having different bandwidth utilization thresholds than one another for triggering congestion notification.

### Claim 17 (depends on 16)

The non-transitory computer readable medium of claim 16 wherein the method further comprises:
grouping packets into one or more aggregate packet pools based on the packet attributes;
tracking the bandwidth utilization of the one or more aggregate pools relative to one or more congestion profiles; and
selecting packets to discard via the one or more congestion notification profiles based at least in part on packets belonging to an aggregate packet pool that is exceeding a threshold bandwidth of the external memory.

### Claim 18 (depends on 17)

The non-transitory computer readable medium of claim 17 wherein:
the one or more aggregate packet pools include one or more of a port pool, a global pool, and a class pool.

### Claim 19 (depends on 14)

The non-transitory computer readable medium of claim 14 wherein the method further comprises:
selecting packets to discard based at least in part on packets associated with a low priority.

### Claim 20 (depends on 14)

The non-transitory computer readable medium of claim 14 wherein:
the congestion notification profile includes bandwidth thresholds that increase a probability of generating a congestion notification for the source device as the bandwidth utilization of the external memory increases.
