본문 바로가기

Ryu's Tech

%EARL_NETFLOW-4-TCAM_THRLD: Netflow TCAM threshold exceeded, TCAM Utilization [[dec]%]

 

 

 

이슈 발생 장비 & 로그 :

 

cisco WS-C6509-E (R7000) processor (revision 1.2) with 458720K/65536K bytes of memory.

IOS (tm) s72033_rp Software (s72033_rp-IPSERVICES_WAN-M), Version 12.2(18)SXF15a, RELEASE SOFTWARE (fc1)

 

Dec 10 00:10:11.885 KST: %EARL_NETFLOW-SP-4-TCAM_THRLD: Netflow TCAM threshold exceeded, TCAM Utilization [92%]

Dec 10 00:10:19.293 KST: %EARL_NETFLOW-SP-STDBY-4-TCAM_THRLD: Netflow TCAM threshold exceeded, TCAM Utilization [91%]

원인 분석 :

 

 

6509_E#show mls netflow ip count

Displaying Netflow entries in Supervisor Earl

 

 Number of shortcuts = 86222

 

The capacity for each policy feature card (PFC) NetFlow table (IPv4), for PFC3a and PFC3b, is 128,000 flows. For the PFC3bXL, the capacity is 256,000 flows.

 

출처: <http://www.cisco.com/en/US/products/hw/switches/ps708/products_tech_note09186a00801b42bf.shtml>

 

 

6509_E#show module

<생략>

Mod  Sub-Module                  Model              Serial       Hw     Status

---- --------------------------- ------------------ ----------- ------- -------

  5  Policy Feature Card 3       WS-F6K-PFC3B       SALXXXXXXXX  2.3    Ok

  5  MSFC3 Daughterboard         WS-SUP720          SALXXXXXXXX  2.5    Ok

  6  Policy Feature Card 3       WS-F6K-PFC3B       SALXXXXXXXX  2.3    Ok

  6  MSFC3 Daughterboard         WS-SUP720          SALXXXXXXXX  2.5    Ok

 

6509_E#  

 

PFC3B 문서와 같이 128,000개를 지원함. 현재 사용중인 장비의 flow 수는 8만개정도...

 

SUP-720 30초마다 netflow table 확인하고 90% 넘어가면 aggressive aging mode 동작하게 된다. 하지만 30 내로 netflow table 100% 까지 도달해 버리면 더 이상 flow 생성할 없게 된다. Table 100% 되기 전에 확인이 되면 aggressive aging mode 동작하기 때문에 어느정도 다행이지만 그렇지 않으면 100% 차버리고 나면 이상 netflow 생성할 수가 없게 된다.

 

 

해결 방법 :

 

 

 

"No mls flow ip"

the *no mls flow ip" command.

Note: Generally, the "no mls flow ip" command does not affect packet forwarding because TCAM for packet forwarding and the TCAM for NetFlow accounting are separate.

 

 

 

mls flow

To configure the flow mask for NDE, use the mls flow command in global configuration mode. To specify a null flow mask, use the no form of this command. To restore the default flow mask, use the default form of this command.

mls flow {{ip | ipv6} {destination | destination-source | full | interface-destination-source | interface-full | source}}

no mls flow {ip | ipv6}

default mls flow {ip | ipv6}

Syntax Description

ip

Enables the flow mask for MLS IP packets.

ipv6

Enables the flow mask for MLS IPv6 packets.

destination

Uses the destination IP address as the key to the Layer 3 table.

destination-source

Uses the destination and the source IP address as the key to the Layer 3 table.

full

Uses the source and destination IP address, the IP protocol (UDP or TCP), and the source and destination port numbers as the keys to the Layer 3 table.

interface-destination-source

Uses all the information in the destination and source flow mask and the source VLAN number as the keys to the Layer 3 table.

interface-full

Uses all the information in the full flow mask and the source VLAN number as the keys to the Layer 3 table.

source

Uses the source IP address as the key to the Layer 3 table.

Defaults

The defaults are as follows:

•For Cisco 7600 series routers that are configured with a Supervisor Engine 2, the default flow mask is destination.

•For Cisco 7600 series routers that are configured with a Supervisor Engine 720, the default flow mask is null.

•For IPv4, the default flow mask is null.

•For IPv6, the default flow mask is null.

Command Modes

Global configuration

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17b)SXA

This command was changed to support the ipv6 keyword.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to the 12.2 SX release.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2(33)SRB

This command was changed to accommodate per-interface NetFlow.

Usage Guidelines

This command collects statistics for the supervisor engine.

In Cisco IOS Release 12.2(33)SRB and later, the interface-destination-source and interface-full flow masks are the only masks supported for IPv4 traffic. This change was made to accommodate the per-interface NetFlow feature. If other flow mask values are used, the router upgrades them as follows:

•Source, destination, and destination-source flow masks are treated as interface-destination-source.

•Full flow masks are treated as interface-full.

 

Note To ensure that the Optimized Edge Routing passive-monitoring feature can use NetFlow, you must change the IPv4 flow mask to interface-full.

 

Examples

This example shows how to set the desired flow mask used to populate the hardware cache for IPv4 NetFlow Data Export:

Router(config)# mls flow ip full

Router(config)#

Related Commands

Command

Description

show mls netflow

Displays configuration information about the NetFlow hardware.

 

출처: <http://www.cisco.com/en/US/docs/ios/netflow/command/reference/nf_02.html>

 

 

 

 

 

 

 

 

 

mls aging timer

Aging timer 감소시켜서 이를 해결 수도 있다.

 

6509_E(config)#mls aging fast threshold 64 time 30

 

mls aging fast

To configure the fast-aging time for unicast entries in the Layer 3 table, use the mls aging fast command in global configuration mode. To restore the MLS fast-aging time to the default settings, use the no form of this command.

mls aging fast [{threshold packet-count} [{time seconds}]]

mls aging fast [{time seconds} [{threshold packet-count}]]

no mls aging fast

Syntax Description

threshold packet-count

(Optional) Specifies the packet count of the fast-aging threshold for Layer 3 fast aging; valid values are from 1 to 128.

time seconds

(Optional) Specifies how often entries are checked; valid values are from 1 to 128 seconds.

 

Defaults

The defaults are as follows:

•Fast aging is disabled.

•If fast aging is enabled, the default packet-count value is 100 packets and the seconds default is 32 seconds.

Command Modes

Global configuration

 

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to the 12.2 SX release.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

This command has no effect when you configure sampled NetFlow. You must disable sampled NetFlow to allow this command to take effect.

Examples

This example shows how to configure the MLS fast-aging threshold:

Router(config)# mls aging fast threshold 50

Router(config)#

Related Commands

Command

Description

show mls netflow

Displays configuration information about the NetFlow hardware.

 

출처: <http://www.cisco.com/en/US/docs/ios/netflow/command/reference/nf_02.html>

 

 

혹은 시스코에서는 아래와 같은 해결 방법도 있다. 하지만 "service internal" command undocumented command[hidden command] 알고 있는데 command 시스템 전체에 어떤 영향을 주는 지는 확실하게 수가 없으므로 추천하는 방법은 아니다.

 

The other workaround would disable service intrenal in case if you have enabled, and remove mls flow ip interface-full in case if you do not need full flow.

Switch(config)#no service internal
Switch(config)#mls flow ip interface-full