IP Library Granted Patent US 12,640,985
Granted Patent B2
US 12,640,985 · App. 18/747,653 · Granted May 26, 2026

Hitless network traffic policy upgrades

Inventors: Nitin Karkhanis (Fremont, CA); Joseph Olakangil (San Jose, CA); Aman Aman-Ul-Haq (Surrey, CA); Purushothaman Nandakumaran (Milpitas, CA); Anuraag Mittal (Livermore, CA)
Assignee: ARISTA NETWORKS, INC.
H04L41/0894H04L45/586H04L47/20
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 12,640,985
App. No.
18/747,653
Granted
May 26, 2026
Kind
B2
Abstract

Techniques for implementing hitless network traffic policy upgrades are provided. In one set of embodiments, these techniques allow a hitless upgrade of a network traffic policy to be performed in a manner that guarantees all network packets subject to the policy are evaluated against either the old policy version or the new policy version. Accordingly, these techniques avoid scenarios where some network packets fail to be evaluated against the traffic policy at all during the hitless upgrade process (which can result in incorrect forwarding behavior).

Claims (48)

1 . A method performed by a network device for implementing a hitless upgrade of a network traffic policy from an old version to a new version, the network device comprising one or more interfaces that are assigned an existing virtual routing and forwarding (VRF) identifier (ID), the method comprising:

determining a new VRF ID corresponding to the new version of the network traffic policy;

computing a new set of longest prefix match (LPM) entries for the new version of the network traffic policy, each LPM entry in the new set of LPM entries being associated with the new VRF ID;

computing a new set of ternary content-addressable memory (TCAM) entries for the new version of the network traffic policy, each TCAM entry in the new set of TCAM entries being associated with the new VRF ID;

programming the new set of LPM entries into a set of LPM tables of the network device;

programming the new set of TCAM entries into a TCAM of the network device; and

after completing the programming of the new set of LPM entries and the new set of TCAM entries, performing a VRF ID switchover with respect to the one or more interfaces, the VRF ID switchover causing each interface in the one or more interfaces to be assigned the new VRF ID rather than the existing VRF ID.

2 . The method of claim 1 wherein the programming of the new set of LPM entries is performed while an existing set of LPM entries associated with the existing VRF ID is stored in the set of LPM tables.

3 . The method of claim 1 wherein the programming of the new set of TCAM entries is performed while an existing set of TCAM entries associated with the existing VRF ID is stored in the TCAM.

4 . The method of claim 1 wherein the existing VRF ID identifies a VRF to which the old version of the network traffic policy applies.

5 . The method of claim 1 wherein each LPM entry in the new set of LPM entries includes the new VRF ID, an Internet Protocol (IP) prefix taken from a match criterion of a rule in the new version of the network traffic policy, and a label that is mapped to the IP prefix.

6 . The method of claim 1 wherein each TCAM entry in the new set of TCAM entries includes the new VRF ID, a label, and an action taken from a rule in the new version of the network traffic policy that is mapped to the label.

7 . The method of claim 1 wherein the new VRF ID is determined by modifying the existing VRF ID according to a predetermined rule.

8 . The method of claim 1 wherein performing the VRF ID switchover comprises:

modifying interface-to-VRF ID mappings maintained in an interface table of the network device.

9 . The method of claim 1 further comprising, after performing the VRF ID switchover:

deleting the existing set of LPM entries from the set of LPM tables; and

deleting the existing set of TCAM entries from the TCAM.

10 . A network device comprising:

a central processing unit (CPU);

a packet processor;

one or more interfaces that are assigned an existing virtual routing and forwarding (VRF) identifier (ID);

a set of longest prefix match (LPM) tables;

a ternary content-addressable memory (TCAM); and

a main memory having stored thereon program code that, when executed by the CPU, causes the CPU to execute a hitless upgrade of a network traffic policy from an old version to a new version by:

determining a new VRF ID corresponding to the new version of the network traffic policy;

computing a new set of LPM entries for the new version of the network traffic policy, each LPM entry in the new set of LPM entries being associated with the new VRF ID;

computing a new set of TCAM entries for the new version of the network traffic policy, each TCAM entry in the new set of TCAM entries being associated with the new VRF ID;

programming the new set of LPM entries into the set of LPM tables;

programming the new set of TCAM entries into the TCAM; and

after completing the programming of the new set of LPM entries and the new set of TCAM entries, performing a VRF ID switchover with respect to the one or more interfaces, the VRF ID switchover causing each interface in the one or more interfaces to be assigned the new VRF ID rather than the existing VRF ID.

11 . The network device of claim 10 wherein the programming of the new set of LPM entries is performed while an existing set of LPM entries associated with the existing VRF ID is stored in the set of LPM tables, and wherein the programming of the new set of TCAM entries is performed while an existing set of TCAM entries associated with the existing VRF ID is stored in the TCAM.

12 . The network device of claim 10 wherein the existing VRF ID identifies a VRF to which the old version of the network traffic policy applies.

13 . The network device of claim 10 wherein each LPM entry in the new set of LPM entries includes the new VRF ID, an Internet Protocol (IP) prefix taken from a match criterion of a rule in the new version of the network traffic policy, and a first label that is mapped to the IP prefix, and wherein each TCAM entry in the new set of TCAM entries includes the new VRF ID, a second label that is included in at least one LPM entry, and an action taken from a rule in the new version of the network traffic policy that is mapped to the second label.

14 . The network device of claim 10 wherein the new VRF ID is determined by modifying the existing VRF ID according to a predetermined rule.

15 . The network device of claim 10 wherein performing the VRF ID switchover comprises:

modifying interface-to-VRF ID mappings maintained in an interface table of the network device.

16 . The network device of claim 10 wherein the program code further causes the CPU to, after performing the VRF ID switchover:

delete the existing set of LPM entries from the set of LPM tables; and

delete the existing set of TCAM entries from the TCAM.

17 . A method performed by a network device for implementing a hitless upgrade of a network traffic policy from an old version to a new version, the network device comprising one or more interfaces that are assigned an existing virtual routing and forwarding (VRF) identifier (ID), the method comprising:

determining a new VRF ID corresponding to the new version of the network traffic policy;

computing a new set of ternary content-addressable memory (TCAM) entries for the new version of the network traffic policy, each TCAM entry in the new set of TCAM entries being associated with the new VRF ID;

programming the new set of TCAM entries into a TCAM of the network device; and

after completing the programming of the new set of TCAM entries, performing a VRF ID switchover with respect to the one or more interfaces, the VRF ID switchover causing each interface in the one or more interfaces to be assigned the new VRF ID rather than the existing VRF ID.

18 . The method of claim 17 further comprising:

computing a new set of longest prefix match (LPM) entries for the new version of the network traffic policy, each LPM entry in the new set of LPM entries being associated with the new VRF ID; and

programming the new set of LPM entries into a set of LPM tables of the network device.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 19, 2024
From: KARKHANIS, NITIN; OLAKANGIL, JOSEPH; AMAN-UL-HAQ, AMAN; NANDAKUMARAN, PURUSHOTHAMAN; MITTAL, ANURAAG
To: ARISTA NETWORKS, INC.
Reel/Frame 067769/0959 →
Continuity (1)
Related Publication 20250392515A1 · Dec 25, 2025
References Cited (22)
US 6651096B1 · Gai et al. · 2003 [cited by applicant]
US 6970462B1 · McRae · 2005 [cited by applicant]
US 7181567B2 · Krishnan · 2007 [cited by applicant]
US 7720948B2 · Hariharan et al. · 2010 [cited by applicant]
US 8090901B2 · Lin et al. · 2012 [cited by applicant]
US 8448162B2 · Ramanathan et al. · 2013 [cited by applicant]
US 8750144B1 · Zhou et al. · 2014 [cited by applicant]
US 10129088B2 · Sharma et al. · 2018 [cited by applicant]
US 20040170171A1 · Kanekar et al. · 2004 [cited by applicant]
US 20060294297A1 · Gupta · 2006 [cited by applicant]
US 20100080223A1 · Wong et al. · 2010 [cited by applicant]
US 20130218853A1 · Bullis et al. · 2013 [cited by applicant]
US 20130232104A1 · Goyal et al. · 2013 [cited by applicant]
US 20130304917A1 · Mittal et al. · 2013 [cited by applicant]
US 20190372895A1 · Parthasarathy · 2019 [cited by examiner]
US 20200412615A1 · Baskaran et al. · 2020 [cited by applicant]
US 20230308447A1 · Ramakrishna · 2023 [cited by applicant]
WO WO2017219842A1 · 2017 [cited by applicant]
Chang et al., TCAM-Based Multi-Match Packet Classification Using Multidimensional Rule Layering, IEEE Apr. 1, 2016, All pages. [cited by applicant]
Eugene W. Myers, “An O(ND) Difference Algortihm and Its Variations”, Department of Computer Science, University of Arizona, vol. 1, Issue 1-4, Tucson, AZ, Nov. 1986, 15 pages. [cited by applicant]
Norige et al., A Ternary Unification Framework for Optimizing TCAM-Based Packet Classification Systems, Apr. 2018, IEEE, All Pages. [cited by applicant]
Shah et al., Fast updating algorithms for TCM, IEEE Micro (vol. 21, Issue 1, pp. 36-47, 2001. [cited by applicant]