By default, /48 prefix length is inserted in the LEM memory. This feature allows you to
choose a custom IPv6 prefix length to be inserted into the largest exact match (LEM)
memory.
Verification
Verify the prefix distribution with different prefix lengths.
Router# show dpa resources ip6route location 0/0/CPU0
Fri Jul 9 15:33:00.652 UTC
"ip6route" OFA Table (Id: 53, Scope: Global)
--------------------------------------------------
IPv6 Prefix len distribution
Prefix Actual Prefix Actual
/0 1 /1 0
/2 0 /3 0
/4 0 /5 0
/6 0 /7 0
/8 0 /9 0
/10 1 /11 0
/12 0 /13 0
/14 0 /15 0
/16 3 /17 0
/18 0 /19 0
/20 0 /21 0
/22 0 /23 0
/24 0 /25 0
/26 0 /27 0
/28 0 /29 0
/30 0 /31 0
/32 0 /33 0
/34 0 /35 0
/36 0 /37 0
/38 0 /39 0
/40 0 /41 0
/42 0 /43 0
/44 0 /45 0
/46 0 /47 0
/48 0 /49 0
/50 0 /51 0
/52 0 /53 0
/54 0 /55 0
/56 0 /57 0
/58 0 /59 0
/60 0 /61 0
/62 0 /63 0
/64 0 /65 0
/66 0 /67 0
/68 0 /69 0
/70 0 /71 0
/72 0 /73 0
/74 0 /75 0
/76 0 /77 0
/78 0 /79 0
/80 0 /81 0
/82 0 /83 0
/84 0 /85 0
/86 0 /87 0
/88 0 /89 0
/90 0 /91 0
/92 0 /93 0
/94 0 /95 0
/96 0 /97 0
/98 0 /99 0
/100 0 /101 0
/102 0 /103 0
/104 1 /105 0
/106 0 /107 0
/108 0 /109 0
/110 0 /111 0
/112 0 /113 0
/114 0 /115 0
/116 0 /117 0
/118 0 /119 0
/120 0 /121 0
/122 0 /123 0
/124 0 /125 0
/126 0 /127 0
/128 1
OFA Infra Stats Summary
Create Requests: 7
Delete Requests: 0
Update Requests: 0
Get Requests: 0
Backwalk Stats
Update Requests: 0
Update Skipped: 0
Errors
Resolve Failures: 0
Not Found in DB: 0
Exists in DB: 0
No Memory in DB: 0
Reserve Resources: 0
Release Resources: 0
Update Resources: 0
Retry Attempts: 0
Recovered from error: 0
Errors from bwalk: 0
NPU ID: NPU-0
Create Server API Err: 0
Update Server API Err: 0
Delete Server API Err: 0
show dpa resources ip6route location 0/0/CPU0
Fri Jul 9 17:42:09.728 UTC
"ip6route" OFA Table (Id: 53, Scope: Global)
--------------------------------------------------
IPv6 Prefix len distribution
Prefix Actual Prefix Actual
/0 1 /1 0
/2 0 /3 0
/4 0 /5 0
/6 0 /7 0
/8 0 /9 0
/10 1 /11 0
/12 0 /13 0
/14 0 /15 0
/16 3 /17 0
/18 0 /19 0
/20 0 /21 0
/22 0 /23 0
/24 0 /25 0
/26 0 /27 0
/28 0 /29 0
/30 0 /31 0
/32 0 /33 0
/34 0 /35 0
/36 0 /37 0
/38 0 /39 0
/40 0 /41 0
/42 0 /43 0
/44 0 /45 0
/46 0 /47 0
/48 0 /49 0
/50 0 /51 0
/52 0 /53 0
/54 0 /55 0
/56 0 /57 0
/58 0 /59 0
/60 0 /61 0
/62 0 /63 0
/64 2055 /65 0 >>>>>>>>> total prefixes with /64 length
/66 0 /67 0
/68 0 /69 0
/70 0 /71 0
/72 0 /73 0
/74 0 /75 0
/76 0 /77 0
/78 0 /79 0
/80 0 /81 0
/82 0 /83 0
/84 0 /85 0
/86 0 /87 0
/88 0 /89 0
/90 0 /91 0
/92 0 /93 0
/94 0 /95 0
/96 0 /97 0
/98 0 /99 0
/100 0 /101 0
/102 0 /103 0
/104 1 /105 0
/106 0 /107 0
/108 0 /109 0
/110 0 /111 0
/112 0 /113 0
/114 0 /115 0
/116 0 /117 0
/118 0 /119 0
/120 0 /121 0
/122 0 /123 0
/124 0 /125 0
/126 0 /127 0
/128 29
OFA Infra Stats Summary
Create Requests: 2090
Delete Requests: 0
Update Requests: 0
Get Requests: 0
Backwalk Stats
Update Requests: 0
Update Skipped: 0
Errors
Resolve Failures: 0
Not Found in DB: 0
Exists in DB: 0
No Memory in DB: 0
Reserve Resources: 0
Release Resources: 0
Update Resources: 0
Retry Attempts: 0
Recovered from error: 0
Errors from bwalk: 0
NPU ID: NPU-0
Create Server API Err: 0
Update Server API Err: 0
Delete Server API Err: 0
Verify the configured prefix LEM length. In the below example, the configured LEM
length is indicated as 48.
Router# show controller fia diagshell 0 "config" location 0/0/CPU0
Fri Jul 9 15:31:45.616 UTC
custom_feature_bfd_ipv6_protection=1
bfd_ipv6_trap_port=208
bcm886xx_ipv6_tunnel_enable=1
custom_feature_li_ipv6_disable=1
bcm886xx_ipv6_ext_hdr_enable=1
enhanced_fib_scale_prefix_length_ipv6_long=48
mcs_load_uc0=bfd_ipv6
l3_vrrp_ipv6_distinct=1
custom_feature_kbp_ipv6_uc_no_rpf_dip_sip_sharing_from_fwd_header=1
enhanced_fib_scale_prefix_length_ipv6_short=48
bfd_ipv6_enable=1
Verify the configured prefix LEM length. In the below example, the configured LEM
length is indicated as 64.
show controller fia diagshell 0 "config" location 0/0/cpu0 | i ipv6
Fri Jul 9 17:41:39.518 UTC
custom_feature_bfd_ipv6_protection=1
bfd_ipv6_trap_port=208
bcm886xx_ipv6_tunnel_enable=1
custom_feature_li_ipv6_disable=1
bcm886xx_ipv6_ext_hdr_enable=1
enhanced_fib_scale_prefix_length_ipv6_long=64
mcs_load_uc0=bfd_ipv6
l3_vrrp_ipv6_distinct=1
custom_feature_kbp_ipv6_uc_no_rpf_dip_sip_sharing_from_fwd_header=1
enhanced_fib_scale_prefix_length_ipv6_short=64
bfd_ipv6_enable=1
Verify the usage of resources.
Routers# show controllers npu resources lem loc 0/5/CPU0
Mon Jul 12 16:17:48.751 UTC
HW Resource Information
Name : lem
Asic Type : Jericho Plus
NPU-0
OOR Summary
Estimated Max Entries : 786432
Red Threshold : 95 %
Yellow Threshold : 80 %
OOR State : Green
Current Usage
Total In-Use : 26 (0 %)
iproute : 0 (0 %)
ip6route : 0 (0 %)
mplslabel : 1 (0 %)
l2brmac : 0 (0 %)
NPU-1
OOR Summary
Estimated Max Entries : 786432
Red Threshold : 95 %
Yellow Threshold : 80 %
OOR State : Green
Current Usage
Total In-Use : 26 (0 %)
iproute : 0 (0 %)
ip6route : 0 (0 %)
mplslabel : 1 (0 %)
l2brmac : 0 (0 %)
NPU-2
OOR Summary
Estimated Max Entries : 786432
Red Threshold : 95 %
Yellow Threshold : 80 %
OOR State : Green
Current Usage
Total In-Use : 26 (0 %)
iproute : 0 (0 %)
ip6route : 0 (0 %)
mplslabel : 1 (0 %)
l2brmac : 0 (0 %)
NPU-3
OOR Summary
Estimated Max Entries : 786432
Red Threshold : 95 %
Yellow Threshold : 80 %
OOR State : Green
Current Usage
Total In-Use : 26 (0 %)
iproute : 0 (0 %)
ip6route : 0 (0 %)
mplslabel : 1 (0 %)
l2brmac : 0 (0 %)
Verify the usage of resources.
show controllers npu resources lem location 0/0/CPU0
Fri Jul 9 17:42:34.516 UTC
HW Resource Information
Name : lem
Asic Type : Jericho
NPU-0
OOR Summary
Estimated Max Entries : 786432
Red Threshold : 95 %
Yellow Threshold : 80 %
OOR State : Green
Current Usage
Total In-Use : 4223 (1 %)
iproute : 2172 (0 %)
ip6route : 2055 (0 %). >>>>>>>> LEM resources allocation should = dpa resources for /64
mplslabel : 1 (0 %)
l2brmac : 0 (0 %)
Verify the summary of the CEF table.
show cef ipv6 summary
Fri Jul 9 17:51:02.788 UTC
Router ID is 192.168.1.3
IP CEF with switching (Table Version 0) for node0_RP0_CPU0
Load balancing: L4
Tableid 0xe0800000 (0x8a4f2748), Vrfid 0x60000000, Vrid 0x20000000, Flags 0x1019
Vrfname default, Refcount 2179
2090 routes, 0 protected, 0 reresolve, 0 unresolved (0 old, 0 new), 317680 bytes
2083 rib, 0 lsd, 0 aib, 0 internal, 0 interface, 6 special, 1 default routes
Prefix masklen distribution:
unicast: 28 /128, 2055 /64 , 1 /10 , 1 /0 >>>>>>> cef prefixes received to LC hardware
multicast: 1 /128, 1 /104, 3 /16
61 load sharing elements, 37968 bytes, 2090 references
Shared load sharing elements with 9664 bytes, 2032 references, including:
3 Pathlist elements, 0 recursive, 0 platform shared, 0 in retry
3 Loadinfo elements, 0 recursive, 0 platform shared
Exclusive load sharing elements with 28304 bytes, 58 references, including:
58 Pathlist elements, 0 recursive, 0 platform shared, 0 in retry
58 Loadinfo elements, 0 recursive, 0 platform shared
0 Drop Pathlist elements
0 route delete cache elements
156 local route bufs received, 0 remote route bufs received, 0 mix bufs received
2083 local routes, 0 remote routes
2155 total local route updates processed
0 total remote route updates processed
0 pkts pre-routed to cust card
0 pkts pre-routed to rp card
0 pkts received from core card
0 CEF route update drops, 50 revisions of existing leaves
0 CEF route update drops due to version mis-match
Resolution Timer: 15s
0 prefixes modified in place
0 deleted stale prefixes
0 prefixes with label imposition, 0 prefixes with label information
0 LISP EID prefixes, 0 merged, via 0 rlocs
22 next hops
0 incomplete next hops
0 PD backwalks on LDIs with backup path