# US 2021/0176171 A1 · Combined input and output queue for packet forwarding 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 2021/0176171 A1
- Document ID: US20210176171A1
- Status: Published application
- Kind: A1
- Application number: 16/709,611
- Filed: 2019-12-10
- Published: 2021-06-10
- Earliest claimed: 2019-12-10
- Assignees: Juniper Networks, Inc.
- Applicants: Juniper Networks, Inc.
- Inventors: Craig R. Frink; Weidong Xu; Anurag P. Gupta; Harshad B. Agashe
- Web page: https://patentgrep.com/patent/US20210176171A1

## CPC

- H04L 45/566: {Routing instructions carried by the data packet, e.g. active networks}
- H04L 49/3027: {Output queuing}
- G06F 9/4887: {involving deadlines, e.g. rate based, periodic}
- H04L 45/586: of virtual routers
- H04L 45/74: Address processing for routing
- H04L 49/3036: {Shared queuing}
- H04L 49/3045: {Virtual queuing}
- H04L 49/901: using storage descriptor, e.g. read or write pointers
- H04L 49/9036: {Common buffer combined with individual queues}
- H04L 49/9047: including multiple buffers, e.g. buffer pools
- H04L 2012/5681: {Buffer or queue management}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus for switching network traffic includes an ingress packet forwarding engine and an egress packet forwarding engine. The ingress packet forwarding engine is configured to determine, in response to receiving a network packet, an egress packet forwarding engine for outputting the network packet and enqueue the network packet in a virtual output queue. The egress packet forwarding engine is configured to output, in response to a first scheduling event and to the ingress packet forwarding engine, information indicating the network packet in the virtual output queue and that the network packet is to be enqueued at an output queue for an output port of the egress packet forwarding engine. The ingress packet forwarding engine is further configured to dequeue, in response to receiving the information, the network packet from the virtual output queue and enqueue the network packet to the output queue.

## Claims

### Claim 1

An apparatus for switching network traffic, the apparatus comprising:
an ingress packet forwarding engine implemented in circuitry and configured to:
determine, in response to receiving a network packet, an egress packet forwarding engine for outputting the network packet; and
enqueue the network packet in a virtual output queue for output to the egress packet forwarding engine;
the egress packet forwarding engine implemented in processing circuitry and configured to, in response to a first scheduling event, output, to the ingress packet forwarding engine, information indicating the network packet in the virtual output queue and that the network packet is to be enqueued at an output queue for an output port of the egress packet forwarding engine;
wherein the ingress packet forwarding engine is further configured to, in response to receiving the information:
dequeue the network packet from the virtual output queue; and
enqueue the network packet to the output queue; and
wherein the egress packet forwarding engine is further configured to, in response to a second scheduling event that is after the first scheduling event:
dequeue the network packet from the output queue; and
output the network packet at the output port.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein, to output the information, the egress packet forwarding engine is configured to output, to the ingress packet forwarding engine, the network packet with a header comprising the information.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein, in response to receiving the network packet with the header, the ingress packet forwarding engine is configured to:
perform a drop check for the network packet.

### Claim 4 (depends on 2)

The apparatus of claim 2, wherein, to output the network packet with the header, the egress packet forwarding engine is configured to output the network packet with the header from a first port of the egress packet forwarding engine to a second port of the ingress packet forwarding engine.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein, to output the information, the egress packet forwarding engine is configured to output metadata comprising the information to the ingress packet forwarding engine and refrain from outputting the network packet to the ingress packet forwarding engine.

### Claim 6 (depends on 5)

The apparatus of claim 5, wherein, to output the metadata, the egress packet forwarding engine is configured to output the metadata to the ingress packet forwarding engine using local switching.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the egress packet forwarding engine comprises a scheduler implemented in circuitry and configured to:
select the output port from a plurality of output ports at the egress packet forwarding engine, wherein the information is generated to specify that the network packet is to be enqueued at the output queue based on the selection of the output port by the scheduler; and
determine the first scheduling event and the second scheduling event to regulate a speed at which data is exchanged from the apparatus.

### Claim 8 (depends on 1)

The apparatus of claim 1, comprising:
a combined buffer for the ingress packet forwarding engine and the egress packet forwarding engine,
wherein, to enqueue the network packet in the virtual output queue, the ingress packet forwarding engine is configured to enqueue the network packet in a first portion of the combined buffer assigned to the virtual output queue;
wherein, to dequeue the network packet from the virtual output queue, the egress packet forwarding engine is configured to dequeue the network packet from the first portion of the combined buffer;
wherein, to enqueue the network packet the network packet to the output queue, the egress packet forwarding engine is configured to enqueue the network packet in a second portion of the combined buffer assigned to the output queue; and
wherein, to dequeue the network packet from the output queue, the egress packet forwarding engine is configured to dequeue the network packet from the second portion of the combined buffer.

### Claim 9

A method comprising:
determining, in response to receiving a network packet and by an ingress packet forwarding engine implemented in processing circuitry, an egress packet forwarding engine for outputting the network packet;
enqueuing, by the ingress packet forwarding engine, the network packet in a virtual output queue for output to the egress packet forwarding engine;
outputting, in response to a first scheduling event and by the egress packet forwarding engine implemented in processing circuitry, to the ingress packet forwarding engine, information indicating the network packet in the virtual output queue and that the network packet is to be enqueued at an output queue for an output port of the egress packet forwarding engine;
dequeuing, in response to receiving the information and by the ingress packet forwarding engine, the network packet from the virtual output queue and enqueuing, by the ingress packet forwarding engine, the network packet to the output queue; and
dequeuing, in response to a second scheduling event that is after the first scheduling event and by the egress packet forwarding engine, the network packet from the output queue and outputting, by the egress packet forwarding engine, the network packet at the output port.

### Claim 10 (depends on 9)

The method of claim 9, wherein outputting the information comprises outputting, to the ingress packet forwarding engine, the network packet with a header comprising the information.

### Claim 11 (depends on 10)

The method of claim 10, comprising:
performing, in response to receiving the network packet with the header and by the ingress packet forwarding engine, a drop check for the network packet.

### Claim 12 (depends on 10)

The method of claim 10, wherein outputting the network packet with the header comprises outputting the network packet with the header from a first port of the egress packet forwarding engine to a second port of the ingress packet forwarding engine.

### Claim 13 (depends on 9)

The method of claim 9, wherein outputting the information comprises outputting metadata comprising the information to the ingress packet forwarding engine and refraining from outputting the network packet to the ingress packet forwarding engine.

### Claim 14 (depends on 13)

The method of claim 13, wherein outputting the metadata comprises outputting the metadata to the ingress packet forwarding engine using local switching.

### Claim 15 (depends on 9)

The method of claim 9, comprising:
selecting, by a scheduler implemented in circuitry, the output port from a plurality of output ports at the egress packet forwarding engine, wherein the information is generated to specify that the network packet is to be enqueued at the output queue based on the selection of the output port by the scheduler; and
determining, by the scheduler, the first scheduling event and the second scheduling event to regulate a speed at which data is exchanged.

### Claim 16 (depends on 9)

The method of claim 9,
wherein enqueuing the network packet in the virtual output queue comprises enqueueing the network packet in a first portion of a combined buffer for the ingress packet forwarding engine and the egress packet forwarding engine that is assigned to the virtual output queue;
wherein dequeuing the network packet from the virtual output queue comprises dequeuing the network packet from the first portion of the combined buffer;
wherein enqueuing the network packet the network packet to the output queue comprises enqueueing the network packet in a second portion of the combined buffer assigned to the output queue; and
wherein dequeuing the network packet from the output queue comprises dequeuing the network packet from the second portion of the combined buffer.

### Claim 17

An apparatus for switching network traffic, the apparatus comprising:
a plurality of interface cards;
an ingress packet forwarding engine implemented in circuitry and configured to:
determine, in response to receiving a network packet with the plurality of interface cards, an egress packet forwarding engine for outputting the network packet; and
enqueue the network packet in a virtual output queue for output to the egress packet forwarding engine;
the egress packet forwarding engine implemented in processing circuitry and configured to, in response to a first scheduling event, output, to the ingress packet forwarding engine, information indicating the network packet in the virtual output queue and that the network packet is to be enqueued at an output queue for an output port of the egress packet forwarding engine;
wherein the ingress packet forwarding engine is further configured to, in response to receiving the information:
dequeue the network packet from the virtual output queue; and
enqueue the network packet to the output queue; and
wherein the egress packet forwarding engine is further configured to, in response to a second scheduling event that is after the first scheduling event:
dequeue the network packet from the output queue; and
output, with the plurality of interface cards, the network packet at the output port.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein, to output the information, the egress packet forwarding engine is configured to output, to the ingress packet forwarding engine, the network packet with a header comprising the information.

### Claim 19 (depends on 17)

The apparatus of claim 17, wherein, to output the network packet with the header, the egress packet forwarding engine is configured to output the network packet with the header from a first port of the egress packet forwarding engine to a second port of the ingress packet forwarding engine.

### Claim 20 (depends on 1)

The apparatus of claim 1, wherein, to output the information, the egress packet forwarding engine is configured to output metadata comprising the information to the ingress packet forwarding engine and refrain from outputting the network packet to the ingress packet forwarding engine.
