Understanding NCS5500 Resources (S01E01)

7 minutes read

You can find more content related to NCS5500 including routing memory management, VRF, URPF, Netflow following this link.

S01E01 The Platforms

In the marketing datasheet, you probably read that NCS5501-SE supports up to 2.7M+ routes or that NCS5502 support up to 1.1M routes. It’s true, but it’s actually a bit more complex since it will not be 2.7M of any kind of routes. So, how many routes can I actually use ? Well, it depends…

This series of posts aims at explaining in details how NCS5500 routers use the different memory resources available for each type of features or prefixes. But we will go further than just discussing “how many routes” and we will try to identify how other data types (Next-hop, load balancing information, ACL entries, …) are affecting the scale.

Today, we will start describing the hardware implementation then we will explain how “databases” are used, which profiles can be enabled and how they can be monitored and troubleshot.

NCS5500 Portfolio

Routers in the NCS5500 portfolio offer diverse form-factors. Some are fixed (1RU, 2RU), others are modular (4-slot, 8-slot, 16-slot) with multiple line cards types.

In August 2017, with one exception covered in a follow-up xrdocs post, we are leveraging Qumran-MX or Jericho forwarding ASICs (FA). Qumran is used for System-on-Chip (SoC) routers like NCS5501 and NCS5501-SE, all other systems are using several Jerichos interconnected via Fabric Engines.

Update: In December 2017, Jericho+ systems are available in line cards (36x 100G with NG eTCAM) and in fixed formed 1RU (36x 100G with or without NG eTCAM, 24x 100G with a larger internal memory). They will be described in follow-up posts.

Update2: In August 2018, we introduced a new modular line card NC55-MOD-* and two new 2-RU fixed chassis based on the same philosophy of modular “MPA”. All of them are powered by Jericho+ ASICs.

We can categorize these systems and line cards in two families:

Base vs Scale

Using external TCAM

(named “Scale” and identified with -SE in the product ID)

  • NCS5501-SE

NCS5501-SE

  • NCS5502-SE

NCS5502

  • NC55-24X100G-SE

NC55-24X100G-SE

  • NC55-24H12F-SE

NC55-24H12F-SE

  • NC55-36X100G-A-SE

NC55-36X100G


RP/0/RP0/CPU0:Router#sh platform | i XR RUN
0/RP0/CPU0        NCS-5501-SE(Active)        IOS XR RUN        NSHUT
RP/0/RP0/CPU0:Router#

RP/0/RP0/CPU0:Router#sh plat | i XR RUN
0/1/CPU0          NC55-36X100G-A-SE          IOS XR RUN        NSHUT
0/6/CPU0          NC55-24H12F-SE             IOS XR RUN        NSHUT
0/7/CPU0          NC55-24X100G-SE            IOS XR RUN        NSHUT
0/RP0/CPU0        NC55-RP(Active)            IOS XR RUN        NSHUT
0/RP1/CPU0        NC55-RP(Standby)           IOS XR RUN        NSHUT
RP/0/RP0/CPU0:Router#

Not using external TCAM

only the memories inside the FA (named “Base”)

  • NCS5501

NCS5501

  • NCS5502

NCS5502

  • NCS-55A1-24H

55A1-24h.jpg

  • NCS-55A2-MOD-S / NCS-55A2-MOD-HD-S

new-55a2-mod.jpg

  • NC55-36X100G

NC55-36X100G

  • NC55-18H18F

NC55-18H18F

  • NC55-36x100G-S (MACsec card)

NC55-36X100G-S

  • NC55-6X200-DWDM-S (Coherent card)

NC55-6X200G-DWDM-S

  • NC55-MOD-A-S

nc55-mod2.jpg


RP/0/RP0/CPU0:Router#show platform | i XR RUN
0/RP0/CPU0        NCS-5501(Active)           IOS XR RUN        NSHUT
RP/0/RP0/CPU0:Router#

RP/0/RP0/CPU0:Router#sh platform | i XR RUN
0/0/CPU0          NC55-36X100G               IOS XR RUN        NSHUT
0/1/CPU0          NC55-18H18F                IOS XR RUN        NSHUT
0/RP0/CPU0        NC55-RP(Active)            IOS XR RUN        NSHUT
0/RP1/CPU0        NC55-RP(Standby)           IOS XR RUN        NSHUT
RP/0/RP0/CPU0:Router#

Note: Inside a modular chassis, we can mix and match eTCAM and non-eTCAM line cards. A feature is available to decide where the prefixes should be programmed (differentiating IGP and BGP, and using specific ext-communities). You can check the blog post dedicated to this topic here.

So basically, this external memory used to extend the scale in terms of routes and classifiers (Access-list entries for instance) is what differentiates the systems and line cards.
eTCAM should not be confused with the 4GB external packet buffer which is present on the side of each FA, regardless the type of system or line card.
The external packet buffer will be used in case of queue congestion only. It’s a very rapid graphical memory, specifically used for packets.
The eTCAM only handles prefixes and ACEs, not packets.

If you are familiar with traditional IOS XR routers, there are some similarities and some differences with the line cards classification “-SE vs -TR” on ASR9000, or “-FP vs -MSC vs -LSP” on CRS routers:

  • route and feature scales can be different among the different types of LC
  • but not the number of queues or the capability to support Hierarchical QoS (it’s not the case for NCS5500 routers, QoS capability is the same on -SE and non-SE)

On Jericho-based systems, we have two eTCAM blocks per FA offering up to 2M additional routes and they are soldered to the board. It’s not a field-replaceable part. This means you can not convert a NC55-36X100G non-eTCAM card into an eTCAM card.
On systems running Jericho+, we have a new generation eTCAM qualified for 4M IPv4 routes but supporting much more if needed in the future.

Resources / Memories

Each forwarding ASIC is made of two cores (0 and 1). Also we have an ingress and an egress pipeline. Each pipeline itself is made of different blocks. For clarity and intellectual property reasons, we will simplify the description and represent the series of blocks as just a Packet Processor (PP) and a Traffic Manager (TM).

Resources

Along the pipeline, the different blocks can access (read or write) different “databases”. They are memory entities used to store specific type of information.

In follow up posts, we will describe in detail how they are used, but let’s introduce them right now.

  • The Longest Prefix Match Database (LPM sometimes referred to as KAPS for KBP Assisted Prefix Search, KBP being itself Knowledge Based Processor) is an SRAM used to store IPv4 and IPv6 prefixes. It’s an algorithmic memory qualified for 256k entries IPv4 and 128k entries IPv6 in the worst case. We will see it can go much higher with internet distribution. One exception with the Jericho+ used in NCS55A1-24H where LPM can store more than 1M IPv4 routes.
  • The Large Exact Match Database (LEM) is used to store IPv4 and IPv6 routes also, plus MAC addresses and MPLS labels. It scales to 786k entries.
  • The Internal TCAM (iTCAM) is used for Packet classification (ACL, QoS) and is 48k entries large.
  • The FEC database is used to store NextHop (128k entries), containing also the FEC ECMP (4k entries).
  • Egress Encapsulation DB (EEDB) is used for egress rewrites (96k entries), including adjacency encapsulation like link-local details from ARP, ND and for MPLS labels or GRE headers.

All these databases are present inside the Forwarding ASIC.

  • The external TCAMs (eTCAM) are only present in the -SE line cards and systems and, as the name implies, are not a resource inside the Forwarding ASIC. They are used to extend unicast route and ACL / classifiers scale (up to 2M or to 4M IPv4 entries).

RP/0/RP0/CPU0:NCS5501-622#show contr npu resources all location 0/0/CPU0

HW Resource Information
    Name                            : lem

OOR Information
    NPU-0
        Estimated Max Entries       : 786432  
        Red Threshold               : 95 %
        Yellow Threshold            : 80 %
        OOR State                   : Green

Current Usage
    NPU-0
        Total In-Use                : XXXXX    (X %)
        iproute                     : XXXXX    (X %)
        ip6route                    : XXXXX    (X %)
        mplslabel                   : XXXXX    (X %)

HW Resource Information
    Name                            : lpm

OOR Information
    NPU-0
        Estimated Max Entries       : 351346  
        Red Threshold               : 95 %
        Yellow Threshold            : 80 %
        OOR State                   : Green

Current Usage
    NPU-0
        Total In-Use                : XXXXX    (X %)
        iproute                     : XXXXX    (X %)
        ip6route                    : XXXXX    (X %)
        ipmcroute                   : XXXXX    (X %)

HW Resource Information
    Name                            : encap

OOR Information
    NPU-0
        Estimated Max Entries       : 100000  
        Red Threshold               : 95 %
        Yellow Threshold            : 80 %
        OOR State                   : Green

Current Usage
    NPU-0
        Total In-Use                : XXX      (X %)
        ipnh                        : XXX      (X %)
        ip6nh                       : XXX      (X %)
        mplsnh                      : XXX      (X %)

HW Resource Information
    Name                            : ext_tcam_ipv4

OOR Information
    NPU-0
        Estimated Max Entries       : 2048000 
        Red Threshold               : 95 %
        Yellow Threshold            : 80 %
        OOR State                   : Green

Current Usage
    NPU-0
        Total In-Use                : XXXXXX   (X %)
        iproute                     : XXXXXX   (X %)
        ipmcroute                   : XXXXX    (X %)

HW Resource Information
    Name                            : ext_tcam_ipv6_short

OOR Information
    NPU-0
        Estimated Max Entries       : 0       
        Red Threshold               : 95 %
        Yellow Threshold            : 80 %
        OOR State                   : Green

Current Usage
    NPU-0
        Total In-Use                : XXXXX    (X %)
        ip6route                    : XXXXX    (X %)

HW Resource Information
    Name                            : ext_tcam_ipv6_long

OOR Information
    NPU-0
        Estimated Max Entries       : 0       
        Red Threshold               : 95 %
        Yellow Threshold            : 80 %
        OOR State                   : Green

Current Usage
    NPU-0
        Total In-Use                : XXXXX    (X %)
        ip6route                    : XXXXX    (X %)

HW Resource Information
    Name                            : fec

OOR Information
    NPU-0
        Estimated Max Entries       : 126976  
        Red Threshold               : 95 %
        Yellow Threshold            : 80 %
        OOR State                   : Green

Current Usage
    NPU-0
        Total In-Use                : XXXX     (X %)
        ipnhgroup                   : XXXX     (X %)
        ip6nhgroup                  : XXXX     (X %)

HW Resource Information
    Name                            : ecmp_fec

OOR Information
    NPU-0
        Estimated Max Entries       : 4096    
        Red Threshold               : 95 %
        Yellow Threshold            : 80 %
        OOR State                   : Green

Current Usage
    NPU-0
        Total In-Use                : XXXXX    (X %)
        ipnhgroup                   : XXXXX    (X %)
        ip6nhgroup                  : XXXXX    (X %)

RP/0/RP0/CPU0:NCS5501-622#

Depending on the address family (IPv4 or IPv6), but also depending on the prefix subnet length, routes will be sorted and stored in LEM, LPM or eTCAM. Route handling will depend on the platform type, the IOS XR release running and the profile activated. That’s what we will cover in the next episode

Leave a Comment