Flexible NetFlow Full Flow support

Similar documents
Flexible Netflow Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)

Flexible NetFlow - MPLS Support

Configuring Data Export for Flexible NetFlow with Flow Exporters

Flexible NetFlow IPv6 Unicast Flows

Flexible NetFlow IPv4 Unicast Flows

Configuring Data Export for Flexible NetFlow with Flow Exporters

Using Flexible NetFlow Flow Sampling

Using Flexible NetFlow Flow Sampling

Flexible NetFlow IPv6 Unicast Flows

Flexible NetFlow IPv6 Unicast Flows

Flexible NetFlow IPv6 Unicast Flows

Flexible NetFlow IPv6 Unicast Flows

Using Flexible NetFlow Top N Talkers to Analyze Network Traffic

Configuring NetFlow BGP Next Hop Support for Accounting and Analysis

Flexible NetFlow IPFIX Export Format

CAC for IPv6 Flows. Finding Feature Information. Prerequisites for CAC for IPv6 Flows. Restrictions for CAC for IPv6 Flows

CPU Thresholding Notification

Netflow v9 for IPv6. Finding Feature Information. Prerequisites for Netflow v9 for IPv6. Information About Netflow v9 for IPv6

Sun RPC ALG Support for Firewall and NAT

IPv6 Multicast Listener Discovery Protocol

Using the Multicast Routing Monitor

BGP Next Hop Unchanged

IPv6 Neighbor Discovery

Using NetFlow Sampling to Select the Network Traffic to Track

IP Source Tracker. Finding Feature Information. Restrictions for IP Source Tracker. Last Updated: January 18, 2012

Flexible NetFlow - Top N Talkers Support

EVC Quality of Service

PPPoE Client DDR Idle-Timer

Encrypted Vendor-Specific Attributes

Classifying Network Traffic

IEEE 802.1ad Support on Provider Bridges

RSVP Interface-Based Receiver Proxy

Configuring Cisco IOS IP SLAs DNS Operations

Classifying Network Traffic

Configuring NetFlow Top Talkers using Cisco IOS CLI Commands or SNMP Commands

IP Addressing: Fragmentation and Reassembly Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 1000)

Configuring TCP Header Compression

Configuring SDM Templates

Configuring MAC Authentication Bypass

Configuring COPS for RSVP

Configuring Application Visibility and Control for Cisco Flexible Netflow

Object Groups for ACLs

Using NetFlow Filtering or Sampling to Select the Network Traffic to Track

NetFlow Configuration Guide

Contextual Configuration Diff Utility

MPLS LDP Autoconfiguration

Configuring SNMP and using the NetFlow MIB to Monitor NetFlow Data

QoS: Classification, Policing, and Marking on LAC Configuration Guide, Cisco IOS Release 12.4T

IP Addressing: Fragmentation and Reassembly Configuration Guide

Firewall Stateful Inspection of ICMP

AToM Graceful Restart

MPLS VPN over mgre. Finding Feature Information. Last Updated: November 1, 2012

Cisco IOS Flexible NetFlow Command Reference

QoS: Child Service Policy for Priority Class

Inspection of Router-Generated Traffic

Network Admission Control Agentless Host Support

BGP Event-Based VPN Import

Configuring Priority Queueing

Implementing NAT-PT for IPv6

Configuring IP SLAs TCP Connect Operations

Cisco ASR 9000 Series Aggregation Services Router Netflow Command Reference, Release 4.3.x

Configuring IP SLAs ICMP Echo Operations

IEEE 802.1ah on Provider Backbone Bridges

Firewall Authentication Proxy for FTP and Telnet Sessions

Configuring IP Multicast over Unidirectional Links

Remote Access MPLS-VPNs

Expires Timer Reset on Receiving or Sending SIP 183 Message

Configuring the Physical Subscriber Line for RADIUS Access and Accounting

Logging to Local Nonvolatile Storage (ATA Disk)

Application Firewall-Instant Message Traffic Enforcement

BGP Policy Accounting Output Interface Accounting

Configuring NetFlow BGP Next Hop Support for Accounting and Analysis

BGP Support for the L2VPN Address Family

Configuring SDM Templates

Configuring IP SLAs TCP Connect Operations

SIP RFC 2782 Compliance with DNS SRV Queries

Role-Based CLI Access

Constraining IP Multicast in a Switched Ethernet Network

Using NetFlow Filtering or Sampling to Select the Network Traffic to Track

Configuring Flexible NetFlow

Configuring Flexible NetFlow

Configuring RTP Header Compression

DHCP Server Port-Based Address Allocation

Configuring Secure Shell

Configuring Flexible NetFlow

Constraining IP Multicast in a Switched Ethernet Network

Implementing Traffic Filters for IPv6 Security

EVC Quality of Service

Configuring System MTU

VLANs over IP Unnumbered SubInterfaces

Using Cisco Discovery Protocol

Configuring Flexible NetFlow

BGP Support for Next-Hop Address Tracking

Flexible Netflow Configuration Guide, Cisco IOS Release 15S

IPv6 First-Hop Security Binding Table

IP over IPv6 Tunnels. Information About IP over IPv6 Tunnels. GRE IPv4 Tunnel Support for IPv6 Traffic

Configuring Template ACLs

SIP Gateway Support for the bind Command

IGMP Static Group Range Support

Flexible Packet Matching XML Configuration

Transcription:

Flexible NetFlow Full Flow support Last Updated: January 29, 2013 The Flexible NetFlow - Full Flow support feature enables Flexible NetFlow to collect flow records for every packet. Finding Feature Information, page 1 Restrictions for Flexible NetFlow - Full Flow Support, page 1 Information About Flexible NetFlow Full Flow support, page 2 How to Configure Flexible NetFlow Full Flow Support, page 2 Configuration Examples for Flexible NetFlow Full Flow Support, page 10 Additional References, page 11 Feature Information for Flexible NetFlow - Full Flow support, page 11 Finding Feature Information Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required. Restrictions for Flexible NetFlow - Full Flow Support The Microflow Policing feature shares the NetFlow hardware resource with Flexible NetFlow. One flow monitor per interface, per direction, is supported. Layer 2, IPv4 and IPv6 traffic types are supported. However, a flow monitor can be applied to only one of these types at a time for a given direction and interface. Layer 2, VLAN, and Layer 3 interfaces are supported. Switched virtual interfaces and tunnels are not supported. The Ingress and Egress NetFlow tables do not support LAN base license level. The Ingress NetFlow table supports an IP base license level of 8K on a per Application Specific Integrated Circuit (ASIC) basis. Americas Headquarters: Cisco Systems, Inc., 170 West Tasman Drive, San Jose, CA 95134-1706 USA

Information About Flexible NetFlow Full Flow support Flexible NetFlow - Full Flow support Overview The Egress NetFlow table supports an IP base license level of 16K on a per ASIC basis. The Ingress NetFlow table supports an IP services license level of 8K on a per ASIC basis. The Egress NetFlow table supports an IP services license level of 16K on a per ASIC basis. Depending on the switch type, Cisco Catalyst 3850 Series Switches have one or two forwarding ASICs. The Cisco 5700 Wireless Controller supports three ASICs. The NetFlow tables are on separate compartments and cannot be combined. Depending on which ASIC processed the packet, the flows will be created in the table in the corresponding ASIC. Only full flow accounting is supported for wireless traffic. For information about the fields supported by Flexible NetFlow, refer to the Cisco IOS Flexible NetFlow Command Reference. NetFlow hardware uses hash tables internally. It is possible that hash collisions happen in the hardware. So, in spite of the internal overflow CAM, the actual NetFlow table utilization could be about 80%. Depending on what fields are used for the flow, a single flow could take two consecutive entries. Also, IPv6 flows take two entries. So, for these cases, the effective usage of NetFlow entries is half the table size. This is apart from the hash collision limitation. Up to 16 flow monitors are supported. Microflow policing uses a separate set of flow monitors. Service Set Identifier (SSID)-based NetFlow accounting is supported. SSID is treated like an interface. However, fields like AP MAC address and user ID are not supported. The NetFlow software supports distributed NetFlow export, so the flows are exported from the same switch in which the flow was created. Ingress flows are present in the ASIC that first received the packets for the flow. Egress flows are present in the ASIC from which the packets actually left the switch setup. The reported value for the bytes count field (IN_BYTES) is (layer-2-packet-size - 18 bytes). For classic Ethernet traffic, this field will be accurate. For all other Ethernet types, this field will not be accurate. Please use the bytes Layer 2 field, which will always report the accurate Layer 2 packet size. Information About Flexible NetFlow Full Flow support Flexible NetFlow - Full Flow support Overview, page 2 Flexible NetFlow - Full Flow support Overview The Flexible NetFlow - Full Flow support feature enables Flexible NetFlow to collect flow records for every packet. The feature is enabled by applying a flow monitor in input (ingress) and output (egress) mode on the device. If you configure a Flexible NetFlow exporter for the flow monitors you use for the Flexible NetFlow - Full Flow support feature, the device will export the captured flows to the configured collector devices in the provider network. How to Configure Flexible NetFlow Full Flow Support 2

Configuring a Flow Exporter for the Flow Monitor How to Configure Flexible NetFlow Full Flow Support Configuring a Flow Exporter for the Flow Monitor, page 3 Creating a Customized Flow Monitor, page 5 Applying a Flow Monitor to an Interface, page 8 Configuring a Flow Exporter for the Flow Monitor Perform this optional task to configure a flow exporter for the flow monitor in order to export the data that is collected by Flexible NetFlow to a remote system for further analysis and storage. Flow exporters are used to send the data that you collect with Flexible NetFlow to a remote system such as a NetFlow Collection Engine. Exporters use UDP as the transport protocol and use the Version 9 export format. Note Each flow exporter supports only one destination. If you want to export the data to multiple destinations, you must configure multiple flow exporters and assign them to the flow monitor. You can export to a destination using either an IPv4 or IPv6 address. SUMMARY STEPS 1. enable 2. configure terminal 3. flow exporter exporter-name 4. description description 5. destination {hostname ip-address} [vrf vrf-name] 6. export-protocol {netflow-v5 netflow-v9 ipfix} 7. transport udp udp-port 8. exit 9. flow monitor flow-monitor-name 10. exporter exporter-name 11. end 12. show flow exporter exporter-name 13. show running-config flow exporter exporter-name DETAILED STEPS Step 1 enable Device> enable Enables privileged EXEC mode. Enter your password if prompted. 3

How to Configure Flexible NetFlow Full Flow Support Configuring a Flow Exporter for the Flow Monitor Step 2 configure terminal Enters global configuration mode. Step 3 Step 4 Device# configure terminal flow exporter exporter-name Device(config)# flow exporter EXPORTER-1 description description Creates a flow exporter and enters Flexible NetFlow flow exporter configuration mode. This command also allows you to modify an existing flow exporter. (Optional) Creates a description for the flow exporter. Step 5 Step 6 Step 7 Step 8 Device(config-flow-exporter)# description Exports to datacenter destination {hostname ip-address} [vrf vrf-name] Device(config-flow-exporter)# destination 172.16.10.2 export-protocol {netflow-v5 netflow-v9 ipfix} Device(config-flow-exporter)# export-protocol netflow-v9 transport udp udp-port Device(config-flow-exporter)# transport udp 65 exit Device(config-flow-exporter)# exit Specifies the hostname or IP address of the system to which the exporter sends data. Note You can export to a destination using either an IPv4 or IPv6 address. Specifies the version of the NetFlow export protocol used by the exporter. Default: netflow-v9. Configures UDP as the transport protocol and specifies the UDP port on which the destination system is listening for exported Flexible NetFlow traffic. Exits Flexible NetFlow flow exporter configuration mode and returns to global configuration mode. 4

Creating a Customized Flow Monitor How to Configure Flexible NetFlow Full Flow Support Step 9 flow monitor flow-monitor-name Device(config)# flow monitor FLOW-MONITOR-1 Enters Flexible NetFlow flow monitor configuration mode for the flow monitor that you created previously. Step 10 exporter exporter-name Specifies the name of an exporter that you created previously. Device(config-flow-monitor)# exporter EXPORTER-1 Step 11 end Exits Flexible NetFlow flow monitor configuration mode and returns to privileged EXEC mode. Device(config-flow-monitor)# end Step 12 show flow exporter exporter-name (Optional) Displays the current status of the specified flow exporter. Device# show flow exporter FLOW_EXPORTER-1 Step 13 show running-config flow exporter exporter-name (Optional) Displays the configuration of the specified flow exporter. Device<# show running-config flow exporter FLOW_EXPORTER-1 Creating a Customized Flow Monitor Perform this required task to create a customized flow monitor. Each flow monitor has a separate cache assigned to it. Each flow monitor requires a record to define the contents and layout of its cache entries. An advanced user can create a customized format using the flow record command. If you want to use a customized record instead of using one of the Flexible NetFlow predefined records, you must create the customized record before you can perform this task. If you want to add a flow exporter to the flow monitor for data export, you must create the exporter before you can complete this task. 5

How to Configure Flexible NetFlow Full Flow Support Creating a Customized Flow Monitor Note You must use the no ip flow monitor command to remove a flow monitor from all of the interfaces to which you have applied it before you can modify the parameters for the record command on the flow monitor. For information about the ip flow monitor command, refer to the Cisco IOS Flexible NetFlow Command Reference. SUMMARY STEPS 1. enable 2. configure terminal 3. flow monitor monitor-name 4. description description 5. record {record-name netflow-original netflow {ipv4 ipv6} record [peer]} 6. cache {entries number timeout {active inactive update} seconds type {immediate normal permanent}} 7. Repeat Step 6 as required to finish modifying the cache parameters for this flow monitor. 8. statistics packet protocol 9. statistics packet size 10. exporter exporter-name 11. end 12. show flow monitor [[name] monitor-name [cache [format {csv record table}]] [statistics]] 13. show running-config flow monitor monitor-name DETAILED STEPS Step 1 Step 2 enable Device> enable configure terminal Enables privileged EXEC mode. Enter your password if prompted. Enters global configuration mode. Step 3 Device# configure terminal flow monitor monitor-name Device(config)# flow monitor FLOW-MONITOR-1 Creates a flow monitor and enters Flexible NetFlow flow monitor configuration mode. This command also allows you to modify an existing flow monitor. 6

Creating a Customized Flow Monitor How to Configure Flexible NetFlow Full Flow Support Step 4 description description (Optional) Creates a description for the flow monitor. Device(config-flow-monitor)# description Used for basic ipv4 traffic analysis Step 5 record {record-name netflow-original netflow {ipv4 ipv6} record [peer]} Specifies the record for the flow monitor. Step 6 Step 7 Step 8 Step 9 Device(config-flow-monitor)# record FLOW-RECORD-1 cache {entries number timeout {active inactive update} seconds type {immediate normal permanent}} Device(config-flow-monitor)# cache type normal Repeat Step 6 as required to finish modifying the cache parameters for this flow monitor. statistics packet protocol Device(config-flow-monitor)# statistics packet protocol statistics packet size Device(config-flow-monitor)# statistics packet size (Optional) Modifies the flow monitor cache parameters such as timeout values, number of cache entries, and the cache type. The values for the keywords associated with the timeout keyword have no effect when the cache type is set to immediate. (Optional) Enables the collection of protocol distribution statistics for Flexible NetFlow monitors. (Optional) Enables the collection of size distribution statistics for Flexible NetFlow monitors. Step 10 exporter exporter-name (Optional) Specifies the name of an exporter that was created previously. Device(config-flow-monitor)# exporter EXPORTER-1 7

How to Configure Flexible NetFlow Full Flow Support Applying a Flow Monitor to an Interface Step 11 end Exits Flexible NetFlow flow monitor configuration mode and returns to privileged EXEC mode. Device(config-flow-monitor)# end Step 12 show flow monitor [[name] monitor-name [cache [format {csv record table}]] [statistics]] (Optional) Displays the status and statistics for a Flexible NetFlow flow monitor. Device# show flow monitor FLOW-MONITOR-2 cache Step 13 show running-config flow monitor monitor-name (Optional) Displays the configuration of the specified flow monitor. Device# show running-config flow monitor FLOW_MONITOR-1 Applying a Flow Monitor to an Interface Before it can be activated, a flow monitor must be applied to at least one interface. Perform this required task to activate a flow monitor. SUMMARY STEPS 1. enable 2. configure terminal 3. interface type number 4. {ip ipv6} flow monitor monitor-name {input output} 5. Repeat Steps 3 and 4 to activate a flow monitor on any other interfaces in the device over which you want to monitor traffic. 6. end 7. show flow interface type number 8. show flow monitor name monitor-name cache format record 8

Applying a Flow Monitor to an Interface How to Configure Flexible NetFlow Full Flow Support DETAILED STEPS Step 1 enable Enables privileged EXEC mode. Enter your password if prompted. Device> enable Step 2 configure terminal Enters global configuration mode. Device# configure terminal Step 3 interface type number Specifies an interface and enters interface configuration mode. Device(config)# interface GigabitEthernet 0/0/0 Step 4 {ip ipv6} flow monitor monitor-name {input output} Activates a flow monitor that was created previously by assigning it to the interface to analyze traffic. Device(config-if)# ip flow monitor FLOW-MONITOR-1 input Step 5 Repeat Steps 3 and 4 to activate a flow monitor on any other interfaces in the device over which you want to monitor traffic. Step 6 end Exits interface configuration mode and returns to privileged EXEC mode. Device(config-if)# end Step 7 show flow interface type number Displays the status of Flexible NetFlow (enabled or disabled) on the specified interface. Device# show flow interface GigabitEthernet 0/0/0 Step 8 show flow monitor name monitor-name cache format record Displays the status, statistics, and flow data in the cache for the specified flow monitor. Device# show flow monitor name FLOW_MONITOR-1 cache format record 9

Configuration Examples for Flexible NetFlow Full Flow Support Configuring Full Flow Accounting for IPv4 and IPv6 Traffic Configuration Examples for Flexible NetFlow Full Flow Support Configuring Full Flow Accounting for IPv4 and IPv6 Traffic, page 10 Configuring Full Flow Accounting for IPv4 and IPv6 Traffic The following example shows how to configure Flexible NetFlow full flow accounting for IPv4 and IPv6 traffic. This example starts in global configuration mode. flow record v4_r1 match ipv4 tos match ipv4 protocol match ipv4 source address match ipv4 destination address match transport source-port match transport destination-port collect counter bytes long collect counter packets long flow record v6_r1 match ipv6 traffic-class match ipv6 protocol match ipv6 source address match ipv6 destination address match transport source-port match transport destination-port collect counter bytes long collect counter packets long flow monitor FLOW-MONITOR-1 record v4_r1 exit flow monitor FLOW-MONITOR-2 record v6_r1 exit flow monitor FLOW-MONITOR-3 record v4_r1 exit flow monitor FLOW-MONITOR-4 record v6_r1 exit ip cef ipv6 cef interface GigabitEthernet0/0/0 ip address 172.16.6.2 255.255.255.0 ipv6 address 2001:DB8:2:ABCD::2/48 ip flow monitor FLOW-MONITOR-1 output ipv6 flow monitor FLOW-MONITOR-2 output ip flow monitor FLOW-MONITOR-3 input ipv6 flow monitor FLOW-MONITOR-4 input 10

Configuring Full Flow Accounting for IPv4 and IPv6 Traffic Additional References Additional References Related Documents Related Topic Cisco IOS commands Flexible NetFlow conceptual information and configuration tasks Flexible NetFlow commands Document Title Cisco IOS Master Command List, All Releases Flexible NetFlow Configuration Guide Cisco IOS Flexible NetFlow Command Reference Standards/RFCs Standard No new or modified standards/rfcs are supported by this feature. Title MIBs MIB None MIBs Link To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html Feature Information for Flexible NetFlow - Full Flow support The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software 11

Configuring Full Flow Accounting for IPv4 and IPv6 Traffic release train. Unless noted otherwise, subsequent releases of that software release train also support that feature. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required. Table 1 Feature Information for Flexible NetFlow - Full Flow support Feature Name Releases Feature Information Flexible NetFlow - Full Flow support Cisco IOS XE Release 3.1S Cisco IOS XE Release 3.2SE This feature enables Flexible NetFlow to collect flow records for every packet. No commands were introduced or modified by this feature. Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. 2013 Cisco Systems, Inc. All rights reserved. 12