The Dynamic LPTS flow type feature enables you to configure LPTS flow types and also enables you to define the maximum LPTS
entries for each flow type in the TCAM. The dynamic LPTS flow type configuration is on per line card basis, hence you can
have multiple profiles configured across line cards.
When the router boots, the default LPTS flow types are programmed in the TCAM. For each flow type the maximum flow entries
are predefined. Later, at runtime, you have an option to choose the flow type based on network requirements and also configure
the maximum flow entry value. The maximum flow entry value of zero denotes that a flow type is not configured.
Note
|
You can get the default maximum flow values for both configurable flow and non-configurable flow from the output of the following
show command:
show lpts pifib dynamic-flows statistics location <location specification>
|
The list of configurable and non-configurable flow types are listed in below tables. You can also use show lpts pifib dynamic-flows statistics location command to view the list of configurable and non-configurable flow types:
Note
|
The sum of maximum LPTS entries configured for all flow types must not exceed 16000 entries per line card.
|
Configuration Example
In this example you will configure the BGP-known and ISIS-known LPTS flow type in the TCAM and define the maximum flow entries
as 1800 and 500 for node location 0/1/CPU0. As the new maximum values are more than the default values, we have to create
space in the TCAM by disabling other flow types so that the sum of maximum entries for all flow types per line card does not
exceed 8000 entries. Hence RSVP-known flow type is set to zero in our example:
The maximum dynamic scale for any flow type should be configured such that all LPTS entries for that flow type are in hardware.
One way to achieve that is to increase the dynamic scale. This may help avoid session flaps for NSR-enabled protocols like
BGP and OSPF in case of triggers like RP fail overs.
Router#configure
Router(config)#lpts pifib hardware dynamic-flows location 0/1/CPU0
Router(config-pifib-flows-per-node)#flow bgp known max 1800
Router(config-pifib-flows-per-node)#flow rsvp known max 0
Router(config-pifib-flows-per-node)#commit
Running Configuration
Router#show running-config lpts pifib hardware dynamic-flows location 0/1/CPU0
lpts pifib hardware dynamic-flows location 0/1/CPU0
flow bgp known max 1800
flow rsvp known max 0
!
Verification
This show command displays dynamic flow statistics. You can see that the flow types BGP-known and ISIS-known are configured
in the TCAM with newly configured maximum flow entry value. You can also see that the RSVP-known flow type is disabled:
Router#show lpts pifib dynamic-flows statistics location 0/1/CPU0
Dynamic-flows Statistics:
-------------------------
(C - Configurable, T - TRUE, F - FALSE, * - Configured)
Def_Max - Default Max Limit
Conf_Max - Configured Max Limit
HWCnt - Hardware Entries Count
ActLimit - Actual Max Limit
SWCnt - Software Entries Count
P, (+) - Pending Software Entries
FLOW-TYPE C Def_Max Conf_Max HWCnt/ActLimit SWCnt P
-------------------- -- ------- -------- -------/-------- -------- -
Fragment F 2 -- 2/2 2
OSPF-mc-known T 600 -- 2/600 2
OSPF-mc-default F 4 -- 4/4 4
OSPF-uc-known T 300 -- 1/300 1
OSPF-uc-default F 0 -- 0/0 1 +
BFD-default F 2 -- 2/2 2
BFD-MP-known T 40 -- 1/40 0
BGP-known T* 2400 1800 6/900 6
BGP-cfg-peer T 900 -- 0/900 0
BGP-default F 4 -- 4/4 4
PIM-mcast-default F 40 -- 0/40 0
PIM-mcast-known T 300 -- 0/300 0
PIM-ucast F 40 -- 2/40 2
IGMP T 1200 -- 0/1200 0
ICMP-local F 4 -- 4/4 4
ICMP-control F 5 -- 5/5 5
LDP-TCP-known T 300 -- 0/300 0
LDP-TCP-cfg-peer T 300 -- 0/300 0
LDP-TCP-default F 40 -- 0/40 0
LDP-UDP T 300 -- 0/300 0
All-routers T 300 -- 0/300 0
RSVP-default F 4 -- 1/4 1
RSVP-known T* 300 0 0/0 1 +
SNMP T 300 -- 8/300 8
SSH-known T 40 -- 0/40 0
SSH-default T 1 -- 1/1 2 +
HTTP-known T 40 -- 0/40 0
SHTTP-known T 40 -- 0/40 0
TELNET-known T 40 -- 0/40 0
TELNET-default T 1 -- 1/1 1
UDP-known T 0 -- 0/0 0
UDP-default F 2 -- 2/2 2
TCP-known T 40 -- 0/40 0
TCP-default F 2 -- 2/2 2
Raw-default F 2 -- 2/2 2
GRE F 4 -- 0/4 0
VRRP T 150 -- 0/150 0
DNS T 40 -- 0/40 0
NTP-known T 40 -- 0/40 0
DHCPv4 T 40 -- 0/40 0
DHCPv6 T 40 -- 0/40 0
TPA T 1000 -- 0/1000 0
PM-TWAMP T 10 -- 0/10 0
---------------------------------------------------
Active TCAM Usage : 13421/16000 [Platform MAX: 16000]
HWCnt/SWCnt : 65/88
---------------------------------------------------
In the above show command output, the last column P specifies the pending software flow entries for the flow type.