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 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 confirgure
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-confiurable 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 that are configured for all flow types must not exceed 8000 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 be 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:
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 ISIS known max 500
Router(config-pifib-flows-per-node)#flow RSVP known max 0
Router(config-pifib-flows-per-node)#commit
Running Configuration
Router#show run lpts pifib hardware dynamic-flows location 0/1/CPU0
flow bgp known max 1800
flow isis known 500
flow RSVP known 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 2 -- 2/2 2
ISIS-known T 300 500 500/300 0
ISIS-default F 1 -- 1/1 1
BGP-known T 900 1800 1800/900 0
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
ICMP-default F 9 -- 9/9 9
ICMP-app-default F 2 -- 2/2 2
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/300 0
SNMP T 300 -- 0/300 0
SSH-known T 150 -- 0/150 0
SSH-default F 40 -- 0/40 0
TELNET-known T 150 -- 0/150 0
TELNET-default F 4 -- 0/4 0
UDP-default F 2 -- 2/2 2
TCP-default F 2 -- 2/2 2
Raw-default F 2 -- 2/2 2
GRE F 4 -- 0/4 0
VRRP T 150 -- 150/150 0
DNS T 40 -- 0/40 0
NTP-default F 4 -- 0/4 0
NTP-known T 150 -- 0/150 0
TPA T 5 -- 0/5 0
---------------------------
Local Limit : 7960/8000 /*The sum of maximum flow entries configured for all flow types
per line card is less than 8000*/
HWCnt/SWCnt : 45/51
---------------------------
In the above show command output, the last column P specifies the pending software flow entries for the flow type.