Ios Netflow Ov
Ios Netflow Ov
NetFlow is a Cisco IOS application that provides statistics on packets flowing through the router. It is
emerging as a primary network accounting and security technology. This module provides an overview of
the NetFlow application and advanced NetFlow features and services.
NetFlow identifies packet flows for both ingress and egress IP packets. It does not involve any connection-setup
protocol, either between routers or to any other networking device or end station. NetFlow does not require
any change externally--either to the packets themselves or to any networking device. NetFlow is completely
transparent to the existing network, including end stations and application software and network devices like
LAN switches. Also, NetFlow capture and export are performed independently on each internetworking
device; NetFlow need not be operational on each router in the network.
NetFlow is supported on IP and IP encapsulated traffic over most interface types and encapsulations. However,
NetFlow does not support ATM LAN emulation (LANE) and does not support an Inter-Switch Link
(ISL)/virtual LAN (VLAN), ATM, or Frame Relay interfaces when more than one input access control list
(ACL) is used on the interface. Cisco 12000 IP Service Engine ATM line cards do not have this restriction
when more than one input ACL is used on the interface.
You can display and clear NetFlow statistics. NetFlow statistics consist of IP packet size distribution data, IP
flow switching cache information, and flow information. See the NetFlow Flows, on page 3.
Network Planning
NetFlow can capture data over a long period of time, which enables you to track and anticipate network growth
and plan upgrades. NetFlow service data can be used to optimize network planning, which includes peering,
backbone upgrade planning, and routing policy planning. It also enables you to minimize the total cost of
network operations while maximizing network performance, capacity, and reliability. NetFlow detects unwanted
WAN traffic, validates bandwidth and quality of service (QoS) usage, and enables the analysis of new network
applications. NetFlow offers valuable information that you can use to reduce the cost of operating the network.
type-of-service, and application ports. Service providers might utilize the information for billing based on
time-of-day, bandwidth usage, application usage, or quality of service. Enterprise customers might utilize the
information for departmental chargeback or cost allocation for resource utilization.
Traffic Engineering
NetFlow provides autonomous system (AS) traffic engineering details. You can use NetFlow-captured traffic
data to understand source-to-destination traffic trends. This data can be used for load-balancing traffic across
alternate paths or for forwarding traffic to a preferred route. NetFlow can measure the amount of traffic
crossing peering or transit points to help you determine if a peering arrangement with other service providers
is fair and equitable.
>Other Routers
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support.
Access Cisco Feature Navigator at http://www.cisco.com/go/fn . You must have an account on Cisco.com.
If you do not have an account or have forgotten your username or password, click Cancel at the login dialog
box and follow the instructions that appear.
NetFlow Flows
A NetFlow network flow is defined as a unidirectional stream of packets between a given source and destination.
The source and destination are each defined by a network-layer IP address and transport-layer source and
destination port numbers. Specifically, a flow is defined by the combination of the following seven key fields:
• Source IP address
• Destination IP address
• Source port number
• Destination port number
• Layer 3 protocol type
• Type of service (ToS)
• Input logical interface
These seven key fields define a unique flow. If a packet has one key field different from another packet, it is
considered to belong to another flow. A flow might also contain other accounting fields (such as the AS
number in the NetFlow export Version 5 flow format), depending on the export record version that you
configure. Flows are stored in the NetFlow cache.
NetFlow captures data for all egress (outgoing) packets through the use of the following features:
• Egress NetFlow Accounting--NetFlow gathers data for all egress packets for IP traffic only.
• NetFlow MPLS Egress--NetFlow gathers data for all egress MPLS-to-IP packets.
• Version 8--A format added to support data export from aggregation caches. Version 8 allows export
datagrams to contain a subset of the usual Version 5 export data, if that data is valid for a particular
aggregation cache scheme.
• Version 7--A version supported on Catalyst 6000 series switches with a Multilayer Switch Feature Card
(MSFC) on CatOS Release 5.5(7) and later.
On Catalyst 6000 series switches with an MSFC, you can export using either the Version 7 or Version 8
format.
Information about and instructions for configuring NetFlow on Catalyst 6000 series switches is available in
the Catalyst 6500 Series Switches documentation.
• Version 5--A version that adds BGP autonomous system (AS) information and flow sequence numbers.
• Version 1, the initially released export format, is rarely used today. Do not use the Version 1 export
format unless the legacy collection system you are using requires it. Use either the Version 9 export
format or the Version 5 export format for data export from the main cache.
For more information on a specific NetFlow data export format, see the "Configuring NetFlow and NetFlow
Data Export" module.
You need to decide if you want to further analyze your network traffic. If you do want to do further analysis,
you need to make choices in two areas:
• Do you want to customize or fine-tune the way that you collect NetFlow data? For example, you might
want to configure packet sampling, or packet filtering, or an aggregation scheme.
• Do you want to collect and analyze data about the use of other Cisco IOS applications? For example,
you might want to configure NetFlow support for BGP next hop, multicast, MPLS, or IPv6.
Before you configure or enable an additional NetFlow feature or service, you need to understand the
prerequisites, restrictions, and key concepts that apply to each feature or service. Refer to the following sections
for information about and links to the NetFlow features and services:
Filtering Sets up a specific subset of network See the "Using NetFlow Filtering
traffic for class-based traffic or Sampling to Select the Network
analysis and monitoring Traffic to Track" module.
on-network or off-network traffic
NetFlow Advanced Features and Services BGP Next Hop Multicast MPLS
NetFlow Layer 2
The table below briefly describes advanced features and services supported by NetFlow and indicates where
you can find concept and task information about each. Configure these features and services to collect and
analyze NetFlow traffic statistics about them (features such as BGP Next Hop, multicast, and MPLS).
Multicast support Sets up the capture of multicast- See the "Configuring NetFlow
specific data that allows you to get Multicast Accounting" module.
a complete multicast traffic billing
solution
MPLS support Sets up the capture of MPLS traffic See the "Configuring MPLS-aware
containing both IP and non-IP NetFlow" module.
packets for use in MPLS network
management, network planning,
and enterprise accounting
NetFlow Layer 2 and Security Sets up the capture of Layer 2 and See the "NetFlow Layer 2 and
Monitoring Exports Layer 3 fields for use in security Security Monitoring Exports"
monitoring, network management, module.
network planning, and enterprise
accounting
NetFlow MIBs
The NetFlow MIB and the NetFlow MIB and Top Talkers features provide real time access to NetFlow cache
information. These feature do not require a collector to obtain NetFlow data. This allows smaller enterprises
to collect NetFlow data.
With the NetFlow MIB feature, you can access in real time the system information that is stored in the NetFlow
cache by utilizing a MIB implementation based on the Simple Network Management Protocol (SNMP). This
information is accessed by get and set commands entered on the network management system (NMS)
workstation for which SNMP has been implemented. The NetFlow MIB feature provides MIB objects that
allow you to monitor cache flow information, the current NetFlow configuration, and statistics. For details
about the NetFlow MIB, see the "Configuring SNMP and using the NetFlow MIB to Monitor NetFlow Data"
module.
The NetFlow MIB and Top Talkers feature uses NetFlow functionality to obtain information regarding heaviest
traffic patterns and most-used applications in the network. You can use this feature for security monitoring
or accounting purposes for top talkers, and matching and identifying addresses for key users of the network.
You configure the criteria by which flows from the NetFlow cache are sorted and placed in a special cache.
The flows that are displayed by this feature are known as "top talkers." For details about the NetFlow MIB
and Top Talkers, see the "Configuring NetFlow Top Talkers using Cisco IOS CLI Commands or SNMP
Commands" module.
See the "Additional References" section for links to configuration information for NetFlow features and
services.
Where to Go Next
To configure basic NetFlow, refer to the "Configuring NetFlow and NetFlow Data Export" module. See the
"Additional References" section for links to configuration information about additional NetFlow features and
services.
Additional References
Related Documents
The minimum information about and tasks required "Getting Started with Configuring NetFlow and
for configuring NetFlow and NetFlow Data Export NetFlow Data Export"
Tasks for configuring NetFlow to capture and export "Configuring NetFlow and NetFlow Data Export"
network traffic data
Tasks for configuring Configuring MPLS Aware Configuring MPLS Aware NetFlow
NetFlow
Tasks for configuring MPLS egress NetFlow Configuring MPLS Egress NetFlow Accounting and
accounting Analysis
Tasks for configuring NetFlow input filters "Using NetFlow Filtering or Sampling to Select the
Network Traffic to Track"
Tasks for configuring Random Sampled NetFlow "Using NetFlow Filtering or Sampling to Select the
Network Traffic to Track"
Tasks for configuring NetFlow aggregation caches "Configuring NetFlow Aggregation Caches"
Tasks for configuring NetFlow BGP next hop support "Configuring NetFlow BGP Next Hop Support for
Accounting and Analysis"
Tasks for detecting and analyzing network threats Detecting and Analyzing Network Threats With
with NetFlow NetFlow
Tasks for configuring NetFlow Reliable Export With NetFlow Reliable Export With SCTP
SCTP
Tasks for configuring NetFlow Layer 2 and Security "NetFlow Layer 2 and Security Monitoring Exports"
Monitoring Exports
Tasks for configuring the SNMP NetFlow MIB "Configuring SNMP and using the NetFlow MIB to
Monitor NetFlow Data"
Tasks for configuring the NetFlow MIB and Top "Configuring NetFlow Top Talkers using Cisco IOS
Talkers feature CLI Commands or SNMP Commands"
Information for installing, starting, and configuring "Cisco CNS NetFlow Collection Engine
the CNS NetFlow Collection Engine Documentation"
Standards
Standards Title
No new or modified standards are supported by this --
feature, and support for existing standards has not
been modified by this feature.
MIBs
RFCs
RFCs Title
Internet Protocol, Version 6 (IPv6) Specification
• RFC 2460
RFCs Title
Cisco Systems NetFlow Services Export Version 9
• RFC 3954
Technical Assistance
Description Link
The Cisco Technical Support website contains http://www.cisco.com/techsupport
thousands of pages of searchable technical content,
including links to products, technologies, solutions,
technical tips, and tools. Registered Cisco.com users
can log in from this page to access even more content.
Glossary
AS --autonomous system. A collection of networks under a common administration sharing a common routing
strategy. Autonomous systems are subdivided into areas. An autonomous system must be assigned a unique
16-bit number by the Internet Assigned Numbers Authority (IANA).
BGP --Border Gateway Protocol. An interdomain routing protocol that replaces Exterior Gateway Protocol
(EGP). A BGP system exchanges reachability information with other BGP systems. BGP is defined by RFC
1163.
BGP next hop --IP address of the next hop to be used to reach a certain destination.
flow --(NetFlow) A set of packets with the same source IP address, destination IP address, protocol,
source/destination ports, and type-of-service, and the same interface on which the flow is monitored. Ingress
flows are associated with the input interface, and egress flows are associated with the output interface.
IPv6 --IP Version 6. Replacement for the current version of IP (Version 4). IPv6 includes support for flow
ID in the packet header, which can be used to identify flows. Formerly called IPng (next generation).
ISL --Inter-Switch Link. Cisco-proprietary protocol that maintains VLAN information as traffic flows between
switches and routers.
MPLS --Multiprotocol Label Switching. An emerging industry standard for the forwarding of packets along
normally routed paths (sometimes called MPLS hop-by-hop forwarding).
multicast --When single packets are copied by the network and sent to a specific subset of network addresses,
they are said to be multicast. These addresses are specified in the Destination Address field.
NetFlow --A Cisco IOS application that provides statistics on packets flowing through the routing devices in
the network. It is emerging as a primary network accounting and security technology.
NetFlow aggregation --A NetFlow feature that lets you summarize NetFlow export data on an IOS router
before the data is exported to a NetFlow data collection system such as the NetFlow Collection Engine. This
feature lowers bandwidth requirements for NetFlow export data and reduces platform requirements for NetFlow
data collection devices.
NetFlow Collection Engine (formerly NetFlow FlowCollector)--Cisco application that is used with NetFlow
on Cisco routers and Catalyst series switches. The NetFlow Collection Engine collects packets from the router
or switch that is running NetFlow and decodes, aggregates, and stores them. You can generate reports on
various aggregations that can be set up on the NetFlow Collection Engine.
NetFlow V9 --NetFlow export format Version 9. A flexible and extensible means for carrying NetFlow records
from a network node to a collector. NetFlow Version 9 has definable record types and is self-describing for
easier NetFlow Collection Engine configuration.
QoS --quality of service. A measure of performance for a transmission system that reflects the system’s
transmission quality and service availability.
traffic engineering --Techniques and processes that cause routed traffic to travel through the network on a
path other than the one that would have been chosen if standard routing methods were used.
VLAN --virtual LAN. Group of devices on one or more LANs that are configured (by management software)
so that they can communicate as if they were attached to the same wire, when in fact they are located on a
number of different LAN segments. Because VLANs are based on logical instead of physical connections,
they are extremely flexible.