Home > Articles > Cisco > CCNA Security

Flexible Netflow Concepts and Configuration

In modern networks, there is a need to compile and maintain a good set of traffic records for a number of different purposes. These purposes include the ability to monitor network traffic for network planning, security and analysis as well as track traffic usage for billing purposes. To provide this ability, Cisco developed the Netflow feature; the Netflow feature was then extended to provide further configuration flexibility and the Flexible Netflow feature was created. This article takes a look at the typical uses for the Flexible Netflow feature, how it works and how it can be configured into a complete solution.
Like this article? We recommend

In modern networks, there is a need to compile and maintain a good set of traffic records for a number of different purposes. These purposes include the ability to monitor network traffic for network planning, security and analysis as well as track traffic usage for billing purposes. To provide this ability, Cisco developed the Netflow feature; the Netflow feature was then extended to provide further configuration flexibility and the Flexible Netflow feature was created. This article takes a look at the typical uses for the Flexible Netflow feature, how it works, and how it can be configured into a complete solution.

Flexible Netflow Concepts

There are a number of different uses for a traffic statistics feature when dealing with modern networks; the Flexible Netflow feature can provide a solution for a number of different tasks, including those shown in Table 1 below:

Table 1—Typical Netflow Uses

Network Monitoring

Netflow can provide extensive network monitoring capabilities that can be used by network operators to visualize traffic patterns across the network.

Application Monitoring and Profiling

Netflow can be used to view time-based application network usage information that can be used to help understand usage patterns. This analysis can then be used to plan for new application resource deployment and/or to further refine application resources.

User Monitoring and Profiling

Netflow can be used to view user (or customer) network and application resource usage patterns. This analysis can then be used to plan for new network and application resource deployment and/or to further refine network and application resources.

Network Planning

Netflow can be used to track the usage (longer term) of the various links across a network; this information can be used to better allocate future network expansion resources to those parts of the network with the most usage.

Security Analysis

Netflow can be used to identify and classify Denial of Service (DoS), virus and worm attacks in real time.

Billing and Accounting

Netflow can be used to provide a very granular picture of the resources being used on a network. This information can then be used to produce very detailed resource usage accounting across the various network components.

Data Warehousing and Mining

Netflow can be used to warehouse data for later retrieval and analysis; there are a number of different uses for this ability including historical analysis.

Netflow Components

The basic concept with Flexible Netflow (and the Original Netflow) is to categorize and track different traffic flows.

Records

These flows are defined by a number of different pieces of traffic information; the information used when using Flexible Netflow can be defined by user records or within standard records. With the original Netflow, a flow was defined by seven different pieces of information that is used to categorize traffic; this information includes the following fields:

  • Source IP address
  • Destination IP address
  • Source port number
  • Destination port number
  • Layer 3 protocol type
  • Type of service (ToS)
  • Input logical interface

Traffic with the same values for these seven fields was defined as a flow and individually tracked. Flexible Netflow provides the ability to either use this original flow definition (“Record”) or to create a new, more specific flow definition. When creating a user-defined flow definition, the fields that are going to be tracked are selected and then defined as either a key field or as a nonkey field; these key fields are then used by Flexible Netflow to define traffic flows; the fields that are defined as nonkey are captured with the flow but are not used to define specific flows.

Flow Monitor

The Netflow flow monitor component is used to provide the actual traffic monitoring on a configured interface. When a flow monitor is applied to an interface, a flow monitor cache is created that is used to collect the traffic based on the key and nonkey fields in the configured record. There are three different modes of flow monitor cache that can be used with each flow monitor:

  • Layer 3—When in the normal mode, cache entries are aged out according to timeout parameters, based on the activity of a flow. This is the default mode.
  • Immediate—When in the immediate mode, cache entries are aged out as soon as created. When in this mode, each flow contains only one packet; this is used when traffic information is required immediately at the flow export destination (see next section).
  • Permanent—When in the permanent mode, cache entries that are newer are aged out. This is useful when long term statistics on a device are required and the number of flows is expected to be low.

Flow Exporter

A flow exporter is used to transfer the contents of the Netflow cache from the device to a remote system. The Netflow Data Export Format Version 9 is used with Flexible Netflow (as opposed to Version 5) in order to provide additional flexibility. Multiple flow exporters can be configured and assigned to a variety of different flow monitors if there is a need to export to multiple locations.

Flow Sampler

A flow sampler is used when there is a high volume of traffic to analyze that could potentially affect the performance of the monitored device. In this situation, a flow sampler can be used to limit the number of packets that will be analyzed by the flow monitor. For example, 1 out of every 2 packets could be captured and analyzed.

Flexible Netflow Configuration

The exact configuration that is required to setup Flexible Netflow depends on whether a flow exporter is going to be used and whether a flow sampler is required to be configured. The steps required to setup a basic Flexible Netflow exporter configuration are shown in Table 2 below:

Table 2—Flow Exporter Configuration

Step 1

Enter global configuration mode.

router#configure terminal

Step 2

Create and configure a flow exporter.

router(config)#flow exporter exporter-name

Step 3

Configure the exporter destination.

router(config-flow-exporter)#destination {hostname | ip-address}

Step 4

Configure the UDP port used by the flow exporter (by default, UDP port 9995 is used).

router(config-flow-exporter)#transport udp udp-port

Step 5

Enter flow monitor configuration mode.

router(config-flow-exporter)#flow monitor flow-monitor-name

Step 6

Apply the flow exporter.

router(config-flow-monitor)#exporter exporter-name

Step 7

Exit configuration mode.

router(config-flow-monitor)#end

The steps required to setup a basic Flexible Netflow sampler configuration are shown in Table 3 below (for application, see the flow monitor configuration):

Table 3—Flow Sampler Configuration

Step 1

Enter global configuration mode.

router#configure terminal

Step 2

Create and configure a flow sampler.

router(config)#sampler sampler-name

Step 3

Configure the sampler mode.

router(config-sampler)#mode {deterministic | random} 1 out-of window-size

Step 4

Exit configuration mode.

router(config-sampler)#end

The steps required to setup a basic Flexible Netflow monitor configuration are shown in Table 4 below:

Table 4—Flow Monitor Configuration

Step 1

Enter global configuration mode.

router#configure terminal

Step 2

Create and configure a flow monitor.

router(config)#flow monitor monitor-name

Step 3

Define the record format that will be used by the flow monitor.

router(config-flow-monitor)#record {record-name | netflow-original | netflow {ipv4 | ipv6}}

Step 4

Enter interface configuration mode.

router(config-flow-monitor)#interface interface-type interface-number

Step 5

Apply the flow monitor (during application of a flow monitor, the flow sampler is also applied).

IPv4 Flow Monitor:

router(config-if)#ip flow monitor monitor-name [[sampler] sampler-name] input

or

IPv6 Flow Monitor:

router(config-if)#ipv6 flow monitor monitor-name [[sampler] sampler-name] input

Step 6

Exit configuration mode.

router(config-if)#end

Summary

The Flexible Netflow feature provides a solution for a number of different needs within an organization. With little investment in time and resources, the Flexible Netflow feature can save an organization money, provide better accounting of organizational traffic, and provide a solution that can help solve a number of different problems within an organizational network. Hopefully, the information in this article can be used to become familiar with the Flexible Netflow feature as well as help with initial feature configuration.

vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |