Configuring Traffic Analytics

This chapter describes how to configure the Traffic Analytics feature on Cisco NX-OS devices.

Traffic Analytics

Traffic Analytics is a feature that

  • provides the ability to identify services offered by servers behind a switch, aggregates analytics data, and exports summarized flow records for analysis

  • distinguishes between servers and clients using TCP flags (SYN and SYN ACK) in a three-way handshake

  • collapses multiple TCP session data traffic into a single record in the show flow cache database and exports it to the collector; during aggregation, the source port of TCP is set to 0

A flow is defined by the source interface, protocol, source IP address, source port, destination IP address, and destination port values. If traffic analytics is enabled, the flows of TCP sessions are aggregated based on source IP address (SIP), destination IP address (DIP), source port (SP) for server to client traffic and SIP, DIP, destination port (DP) for client to server traffic.

Aging of traffic database entries

The traffic database entries will be monitored every 24 hours using a timer. If there is no traffic hitting a database entry, then within 24 to 48 hours that traffic database entry will be deleted. By default the size of the database is 5000.

Troubleshooting rules

The troubleshooting rules are used to debug a flow by programming an analytics ACL filter. These rules take precedence over the traffic analytics rules and can be used for capturing specific flow. Troubleshooting rules might result in two entries in the flow cache.

Troubleshooting rules should be used only for specific flows preferably host for short duration only.

Guidelines and limitations for Traffic Analytics

The guidelines and limitations are applicable to Traffic Analytics are:

  • If the Traffic Analytics feature is enabled, other than TCP all other IP protocols get 3 tuple information.

  • The Traffic Analytics feature is supported only on Mixed mode in standalone devices.

  • Before enabling the traffic analytics feature, ensure to remove the flow filters else an error message is displayed.

  • If the traffic analytics database size is reduced, new entries happen only after removing the old entries.

    When a system flow filter is configured, the traffic flow behavior is as follows:

    • If a traffic analytics database has information, two flows are seen in the cache.

    • If a traffic analytics database does not have information, only one flow is seen in the cache.

  • When NetFlow and traffic analytics are enabled, profiles 29–31 is used for both functions if we have a scaled NetFlow configuration that is using those profiles. When neighbor discovery or special packets hit these profiles, it is not possible to differentiate whether the record created is traffic analytics or NetFlow. As a result, it gets processed twice, leading to the appearance of two packets with an AN profile.

  • Netflow and Flow Telemetry are not supported in N9K-C9364C-H1 platform SFP+ ports, Ethernet1/65, and Ethernet1/66.

  • Traffic Analytics (TA) and Flow Telemetry Engine (FTE) are not supported on End-of-Row (EOR) EX line cards due to hardware limitations. However, legacy analytics features, such as NetFlow and basic flow monitoring, are supported on these line cards.

Platform support

The table lists the supported platforms for TA features through releases.

Features

Platforms

Release

Support for Traffic Analytics

9300-FX, FX2, FX3, GX, GX2, and H2R

10.4(2)F

Support for Traffic Analytics

9300-H1

10.4(3)F

Support for Traffic Analytics

9300-H2R and H1

10.4(4)M


Note


For more information about supported platforms for features through releases, refer to Nexus Switch Platform Support Matrix.


Configure Traffic Analytics

Enable and configure the traffic analytics feature to monitor and analyze network flows.

You can configure the traffic analytics feature only in mixed mode.

Before you begin

Ensure that you are in mixed mode before enabling the traffic analytics feature. To enable the mixed mode, use the following commands. For more information on mixed mode, see Mixed Mode:

(Config)#feature netflow
(Config)#feature analytics

Procedure


Configure traffic analytics feature as follows:

feature analytics
ip access-list telemetryIpv4Acl
permit ip 192.0.2.0/32 198.51.100.0/32
ipv6 access-list telemetryIpv6Acl
permit ipv6 2001:DB8::1/128 2001:DB8:1::1/128
analytics
  flow filter telemetryFP
    ipv4 telemetryIpv4Acl
    ipv6 telemetryIpv6Acl
  flow exporter e11
    destination 192.168.0.0 v9
    transport udp 1100
    events transport udp 55
    source Ethernet1/42
  flow exporter e12
    destination 192.168.0.0 v9
    transport udp 9200
    events transport udp 555
    source Ethernet1/42
  flow record fte-record
    match ip source address
    match ip destination address
    match ip protocol
    match transport source-port
    match transport destination-port
    collect counter packets
    collect timestamp sys-uptime first
    collect timestamp sys-uptime last
  flow monitor m1
    record fte-record
    exporter-bucket-id 1 0 4095
      exporter e11
  flow monitor m2
    record fte-record
    exporter-bucket-id 1 0 2000
      exporter e11
    exporter-bucket-id 2 2001 4095
      exporter e12
  flow profile telemetryProf
    collect interval 1000
    source port 1001
  flow event fte-event1
    group drop-events
      capture buffer-drops
      capture acl-drops
      capture fwd-drops
    group packet-events
      capture tos 50
      capture ttl 50
  flow traffic-analytics <<configures the database size>>
      db-size 4500
  flow system config
    traffic-analytics <<enables the traffic analytics feature>>
    exporter-id 4
    monitor m1 input
    profile telemetryProf
    event fte-event1
    filter telemetryFP <<enables the Troubleshooting rules>>