IP Library › Granted Patent US 11,451,473
Granted Patent B2
US 11,451,473 · App. 16/883,097 · Granted Sep 20, 2022

Egress mirroring packets to CPU using recirculation

Inventors: Robert Esposito (Manchester, NH); William Darby (Nashua, NH)
Assignee: ARISTA NETWORKS, INC.
H04L45/745H04L12/4633H04L12/4641H04L69/22
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,451,473
App. No.
16/883,097
Granted
Sep 20, 2022
Kind
B2
Abstract

Egress mirroring packets to a CPU includes processing ingress packets in a forwarding pipeline; egressing one or more packets from the forwarding pipeline to a first physical port of the switch; mirroring the one or more packets on the first physical port to a second physical port of the switch; recirculating the one or more packets on the second physical port to the forwarding pipeline, wherein the one or more packets on the second physical port become ingress packets on the second physical port and processing the recirculated one or more packets in the forwarding pipeline includes identifying packets that ingress on the second physical port; and sending the identified packets to a central processing unit (CPU) in the switch.

Claims (41)

1. A method in a switch comprising:

processing ingress packets in a forwarding pipeline;

egressing one or more packets from the forwarding pipeline to a first physical port of the switch;

mirroring the one or more packets on the first physical port to a second physical port of the switch;

recirculating the one or more packets on the second physical port to the forwarding pipeline, wherein the one or more packets on the second physical port become ingress packets on the second physical port and processing the recirculated one or more packets in the forwarding pipeline includes identifying packets that ingress on the second physical port; and

sending the identified packets to a central processing unit (CPU) in the switch.

2. The method of claim 1 further comprising using a ternary content-addressable memory (TCAM) rule to identify packets that ingress on the second physical port.

3. The method of claim 1 further comprising adding information to the one or more mirrored packets to distinguish different kinds of packets, wherein the CPU processes the packets according to the added information.

4. The method of claim 3 further comprising:

egressing a different one or more packets from the forwarding pipeline to a third physical port of the switch; and

mirroring the one or more packets on the third physical port to the second physical port of the switch.

5. The method of claim 4 wherein:

the mirroring adds information to the mirrored packets from the third physical port and the first physical port,

the information distinguishes the mirrored packets from the third physical port from the mirrored packets from the first physical port, and

the CPU processes the identified packets according to the added information.

6. The method of claim 1 wherein the CPU analyzes the identified packets, including decoding raw data of the identified packets.

7. A switch comprising:

a processor; and

a memory communicatively coupled to the processor, the memory storing instructions executable by the processor to configure a data plane circuit to perform a method, the method comprising:

mirroring one or more packets on a first physical port to a second physical port of the switch;

recirculating the one or more packets on the second physical port to a forwarding pipeline, wherein the one or more packets on the second physical port become ingress packets on the second physical port;

identifying, in the forwarding pipeline, packets that ingress on the second physical port; and

sending the identified packets to a central processing unit (CPU) in the switch.

8. The switch of claim 7 wherein the method further comprises using a ternary content-addressable memory (TCAM) rule to identify packets that ingress on the second physical port.

9. The switch of claim 7 wherein the method further comprises adding information to the one or more mirrored packets to distinguish different kinds of packets, and the CPU processes the packets according to the added information.

10. The switch of claim 9 wherein the method further comprises:

egressing a different one or more packets from the forwarding pipeline to a third physical port of the switch; and

mirroring the one or more packets on the third physical port to the second physical port of the switch.

11. The switch of claim 10 wherein the mirroring adds information to the mirrored packets from the third physical port and the mirrored packets from the first physical port, the information distinguishing the mirrored packets from the third physical port from the mirrored packets from the first physical port, the CPU processing the identified packets according to the added information.

12. The switch of claim 10 wherein the mirroring adds information to the mirrored packets from the third physical port and the mirrored packets from the first physical port, the information grouping the mirrored packets from the third physical port together and the mirrored packets from the first physical port together, the CPU processing the identified packets according to the added information.

13. The switch of claim 7 wherein the CPU analyzes the identified packets, including decoding raw data of the identified packets.

14. A switch comprising:

a mirroring circuit, the mirroring circuit copying one or more packets on a first physical port to a second physical port of the switch;

a recirculation circuit, the recirculation circuit providing the one or more packets on the second physical port to a forwarding pipeline, wherein the one or more packets on the second physical port become ingress packets on the second physical port; and

the forwarding pipeline, the forwarding pipeline identifying packets that ingress on the second physical port and sending the identified packets to a central processing unit (CPU) in the switch.

15. The switch of claim 14 further comprising a ternary content-addressable memory (TCAM), the TCAM storing a rule used by the forwarding pipeline to identify packets that ingress on the second physical port.

16. The switch of claim 14 wherein the mirroring circuit further adds added information to the one or more mirrored packets to distinguish different kinds of packets and the CPU processes the packets according to the added information.

17. The switch of claim 16 wherein the mirroring circuit copies a different one or more packets on a third physical port to the second physical port of the switch.

18. The switch of claim 17 wherein the mirroring adds information to the mirrored packets from the third physical port and the mirrored packets from the first physical port, the information is used by the CPU to distinguish the mirrored packets from the third physical port from the mirrored packets from the first physical port, the CPU processing the identified packets according to the added information.

19. The switch of claim 17 wherein the mirroring adds information to the mirrored packets from the third physical port and the mirrored packets from the first physical port, the information is used by the CPU to group the mirrored packets from the third physical port together and the mirrored packets from the first physical port together, the CPU processing the identified packets according to the added information.

20. The switch of claim 14 wherein the CPU analyzes the identified packets, including decoding raw data of the identified packets.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 26, 2020
From: ESPOSITO, ROBERT; DARBY, WILLIAM
To: ARISTA NETWORKS, INC.
Reel/Frame 052749/0593 →
Continuity (1)
Related Publication 20210377171A1 · Dec 2, 2021
Cited By (1)
US 12,348,393