BRKNMS 3134 PDF
BRKNMS 3134 PDF
BRKNMS 3134 PDF
BRKNMS-3134
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 2
For Your
Session Abstract Reference
This advanced session by the author of a Cisco Press book on the same
subject presents the latest NetFlow developments: new features, NetFlow
version 9, and its standardization at the IETF. The new Flexible NetFlow feature
is covered in detail. Technical details of the new features are addressed with
configuration examples, show commands, tricks, and best practice advice.
Scenarios such as NetFlow for security and NetFlow for capacity planning are
covered. The NetFlow performance impact is also discussed, as well as the
support matrix of all NetFlow features.
This session is for enterprise, service provider, and NREN experts engaged in
designing, maintaining, and troubleshooting security, capacity planning, and
accounting solutions. Attendees should be familiar with network management
basics and should already have some understanding of NetFlow, perhaps by
already having taken the introductory session.
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
The Content of This Session Is…
Not about
- A level one type of presentation
- Introduction to IP accounting and NetFlow
- Marketing slides
- NetFlow collector details
- The ecosystem partners applications and mediations
- Many platform specific details
About
- New features
- Advanced information
- And a few scenarios …
Assuming the NetFlow basics are known
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Agenda
• Introduction
• NetFlow Version 9
• Flexible NetFlow
• NetFlow for Security
• NetFlow for Application Visibility and Control
• NetFlow & IPv6
• NetFlow Performance
• NetFlow Standardization
• Support Matrix
• Appendix
5
Version 5 Flow Format
3. Aggregation
4. Export version E.g., Protocol-Port Aggregation
Non-aggregated flows—export version 5 or 9 Scheme Becomes
Protocol Pkts SrcPort DstPort Bytes/Pkt
5. Transport protocol Export
Header
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
NetFlow Flow Keys on the Router
By default, the 7 flow keys are:
- Source IP address, destination IP address, source port, destination port,
Layer 3 protocol type, TOS byte (DSCP), input interface
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
Flow Keys on the Cisco Catalyst 6500/7600
The Flow Mask
Full-Interface
VLAN SRC IP DST IP IP Protocol Src Port Dst Port
Full
VLAN SRC IP DST IP IP Protocol Src Port Dst Port
Destination-Source-Interface
VLAN SRC IP DST IP IP Protocol Src Port Dst Port
Source-Only
VLAN SRC IP DST IP IP Protocol Src Port Dst Port
Destination-Only
VLAN SRC IP DST IP IP Protocol Src Port Dst Port
Destination-Source
VLAN SRC IP DST IP IP Protocol Src Port Dst Port
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
NetFlow Partners
Traffic Analysis
CS-Mars
• Introduction
• NetFlow Version 9
• Flexible NetFlow
• NetFlow for Security
• NetFlow for Application Visibility and Control
• NetFlow & IPv6
• NetFlow Performance
• NetFlow Standardization
• Support Matrix
• Appendix
17
NetFlow Version 9
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
NetFlow Version 9 Export Packet
Template 1 Template 2
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
NetFlow Version 9 Export Packet
Options Template FlowSet Specifies the Scope: Cache, System,
Template, etc.
Template 3
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
Interface Name Export with
NetFlow Version 9
Example of options template FlowSet
NetFlow exports the ifIndex
Instead of the collector polling the ifName MIB variable for a specific ifIndex, the
matching (ifIndex, ifName) is sent in an option data record
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
NetFlow Version 9
Main Cache Configuration
(Options)
(Options) Templates
Templates Sent
Sent Five
Every Every Five
Minutes
Minutes or20
or Every 20Packets
Packets
Should you export from the main cache with NetFlow Version 5
or Version 9?
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
NetFlow Version 9
Aggregation Cache Configuration
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
Agenda
• Introduction
• NetFlow Version 9
• Flexible NetFlow
• NetFlow for Security
• NetFlow for Application Visibility and Control
• NetFlow & IPv6
• NetFlow Performance
• NetFlow Standardization
• Support Matrix
• Appendix
24
Typical NetFlow Deployment
Managed Services:
Application Visibility ISP
NetFlow for Peering
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
Flexible NetFlow
High-Level Concepts and Advantages
Flexible NetFlow feature allows user configurable NetFlow record formats,
selecting from a collection
of fields:
-Key, non-key, counter, timestamp
Advantages:
-Tailor a cache for specific applications, not covered by existing 21 NetFlow features in
traditional NetFlow
-Different NetFlow caches: per subinterface, per direction (ingress, egress), per
sampler, per …
-Better scalability since flow record customization for particular application reduces
number of flows to monitor
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
Flexible NetFlow Model
Interface
Record ―Y‖
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
Service Planning
FNF Configuration – Example
4. Apply to an Interface
Router(config)# interface s3/0
Which interface do I want to monitor?
Router(config-if)# ip flow monitor my-monitor input
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
Flexible NetFlow
User-Defined Record Configuration
Router(config-flow-record)# match ?
Specify a Non-Key Kield
application Application Fields
datalink Datalink (layer 2) fields
flow Flow identifying fields
interface Interface fields
ipv4 IPv4 fields
ipv6 IPv6 fields
routing routing attributes
transport Transport layer field
Router(config-flow-record)# collect ?
application Application Fields
counter Counter fields
datalink Datalink (layer 2) fields
flow Flow identifying fields
interface Interface fields
ipv4 IPv4 fields
ipv6 IPv6 fields
routing IPv4 routing attributes
timestamp Timestamp fields
transport Transport layer fields
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
Flexible Flow Record: Key Fields
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
Flexible Flow Record: Key Fields
NEW: 2 or NEW
4 bytes
Routing Transport Application
src or dest AS Destination Port TCP Flag: ACK Application ID
Peer AS Source Port TCP Flag: CWR
Traffic Index ICMP Code TCP Flag: ECE
Forwarding ICMP Type TCP Flag: FIN
Multicast
Status Replication
IGMP Type* TCP Flag: PSH
IGP Next Hop Factor*
TCP ACK Number TCP Flag: RST
BGP Next Hop RPF Check
TCP Header Length TCP Flag: SYN
Drop*
Input VRF TCP Sequence Number TCP Flag: URG
Name Is-Multicast
TCP Window-Size UDP Message Length
NEW
TCP Source Port UDP Source Port
TCP Destination Port UDP Destination Port
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
Flexible Flow Record: Non-Key Fields
Packets
Packets Long
Plus any of the potential “key” fields: will be the value from the first packet in
the flow
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
Flow Exporter Configuration
New in 12.4(20)T
NetFlow Exported Packets Go
Through QoS, Crypto-Map, etc…
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
Transition Steps from Traditional NetFlow to Flexible
NetFlow
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
Flexible Monitor Configuration
Collect Protocol
Collect Size Distribution Statistics
Distribution Statistics
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
Three Types of NetFlow Caches
Normal cache (traditional NetFlow)
- More flexible active and inactive timers: one second minimum
Immediate cache
- Flow accounts for a single packet
- Desirable for real-time traffic monitoring, DDoS detection, logging
- Desirable when only very small flows are expected (ex: sampling)
- Caution: may result in a large amount of export data
Permanent cache
- To track a set of flows without expiring the flows from the cache
- Entire cache is periodically exported (update timer)
- After the cache is full (size configurable), new flows will not
be monitored
- Uses update counters rather than delta counters
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
Complete Permanent Flexible NetFlow Configuration
Example
Per DSCP accounting flow record definition:
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Complete Permanent Flexible NetFlow Configuration
Example
Extra Options:
CSV, Table, Record
Flows added: 0
Updates sent ( 1800 secs) 0
BRKNMS-3134
Flow Keys in Upper Case Cisco Public
© 2012 Cisco and/or its affiliates. All rights reserved. 39
Flexible NetFlow Activation per Interface
Send the
―Sampler-Table‖ Option
Template assignment
- show flow exporter template
NetFlow configuration
- show running flow [exporter | monitor | record]
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
NetFlow Deployment Scenarios
Managed Service
Application ISP
Visibility
Peering Flow Monitor
IP addresses
Destination AS
Application
Source traffic index
DSCP
BGP next hop
DSCP
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
Flexible NetFlow Platforms, Features
Platforms:
- 800, 1700, ISR (1800, 2800, 3800), ISR-G2 (890, 1900, 2900, 3900), 2600,
2800, 3700, 3800, 7200, 7301, 12000, Nexus 7000, Nexus 1000V, Catalyst
4500, cat6500 sup 2T, ASR1000, ASR9000, CRS-1
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
Agenda
• Introduction
• NetFlow Version 9
• Flexible NetFlow
• NetFlow for Security
• NetFlow for Application Visibility and Control
• NetFlow & IPv6
• NetFlow Performance
• NetFlow Standardization
• Support Matrix
• Appendix
44
What Does a DoS Attack Look Like?
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
Flexible Flow Record: Key Fields
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
Flexible Flow Record: Non-Key Fields
Packets
(*) IPV4_TOTAL_LEN_MIN, IPV4_TOTAL_LEN_MAX
(**)IP_LENGTH_TOTAL_MIN, IP_LENGTH_TOTAL_MAX
Packets Long
Plus any of the potential “key” fields: will be the value from the first packet in
the flow
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
Useful Fields for Security Monitoring
Flow Issued From Very Large Packets or Attacks that Might Always
the Same Origin Have The Same Generated Identification
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
The Forwarding Status
Unknown (00b)
Forwarded (01b)
Dropped (10b) ACL, QoS
Consumed (11b) Destined to the router
(ex: management traffic)
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 51
Packet Section Fields
Contiguous chunk of a packet of a user configurable size, used as a key or a
non-key field
Sections used for detailed traffic monitoring, DDoS attack investigation, worm
detection, other security applications
Chunk defined as flow key, should be used in sampled mode with immediate
aging cache
Starts at the beginning of the IPv4 header
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
Flexible NetFlow TopTalkers
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
Flexible NetFlow Top Talkers
Examples
Top ten IP addresses that are sending the most packets
Router# show flow monitor <monitor> cache
aggregate ipv4 source address
sort highest counter bytes top 10
Top five destination addresses to which we’re routing most traffic
from the 10.10.10.0/24 prefix
Router# show flow monitor <monitor> cache
filter ipv4 destination address 10.10.10.0/24
aggregate ipv4 destination address
sort highest counter bytes top 5
TCP My Servers
SYN Network
Attacks 10.10.10.0/24
The top 100 pairs of IP addresses with one or two packet(s) that are destined
for My Servers Network
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
Embedded Event Manager 3.0
Flexible NetFlow Event Detector
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
Embedded Event Manager 3.0
Flexible NetFlow Event Detector
Flows added: 32
Flows aged: 27
- Active timeout ( 1800 secs) 0
- Inactive timeout ( 15 secs) 27
- Event aged 0
- Watermark aged 0
- Emergency aged 0
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
Security and Traditional NetFlow
“NetFlow L2 and Security Monitoring”
- Source MAC address, destination MAC address, Received VLAN ID
field (802.1q and Cisco’s ISL), Transmitted VLAN ID, Time-to-live,
Identification, Packet length, ICMP type and code, Fragment offset
“NetFlow Top Talkers”
- Must be configured
- Potentially match statements, working as a filter
- Can be retrieved via the CISCO-NETFLOW-MIB (cnfTopFlowsTable)
“NetFlow Dynamic Top Talkers”
- On the fly with show commands: does not require router config
modifications
- But not available with the MIB
- Potentially match statements, working as a filter
- “show ip flow top <N> <aggregate-field> <sort-criteria>
<match-criteria>”
- Almost as powerful as the “Flexible NetFlow Top Talkers”
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
Cisco Adaptive Security Appliances (ASA) 5580—NetFlow
Export Version 9
Logging in high-performance environments is nontrivial, NetFlow is
replacing syslog
Flow event information can now be exported through NetFlow v9
- Information about NAT modifications to the traffic
- Information about Flows denied by security policy
- Information about AAA/usernames associated with flows
- Bidirectional flows
Provides scalable logging
- 10-Gbps flows, 100-k connections per second = lots of logs
Adds new NetFlow fields to
represent security related
parameters
NetFlow export is the logical
evolution in logging technology
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
Agenda
• Introduction
• NetFlow Version 9
• Flexible NetFlow
• NetFlow for Security
• NetFlow for Application Visibility and Control
• NetFlow & IPv6
• NetFlow Performance
• NetFlow Standardization
• Support Matrix
• Appendix
62
What is NBAR?
Network Based Application Recognition
Classification of L3-L7 Application traffic
Can be used with Protocol Discovery to get an idea of what the traffic patterns in
the network
Can be used with MQC (Modular QoS Control) to control the traffic patterns in
the network
NBAR helps to identify high priority and low priority traffic, for which appropriate
QoS can be applied
Flexible NetFlow (FNF) integration: NBAR can export traffic data to a NetFlow
Collector
Supported devices: ISR-G1 (85x, 87x, 18xx, 28xx, 38xx), ISR-G2 (86x, 88x,
89x, 19xx, 29xx, 39xx), 2600XM, 3700, 7200, 7301, 7304-NPE, ASR1000, 7600
FlexWAN and SIP-200, catalyst 6000 supervisor 32 PISA (now End-of-Live),
- Note2: NBAR2 (next slide) only supported on ISR-G2 and ASR1000
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 63
15.2(1)T1,
IOS XE
3.3.0S
What is NBAR2?
Complete redesign compared NBAR
Up to 900 applications
- Platform independent signatures, combine NBAR and SCE Application Library
- Common application library for NBAR2 across platforms
- Consistent application Id across Cisco
http://www.cisco.com/en/US/prod/collateral/iosswrel/ps6537/ps6558/ps6616/product_bulletin_c25-627831.html
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
Flexible NetFlow—NBAR Integration
Configuration Example “match application name”: calls NBAR
“account-on-resolution” (ASR1000): accurate
accounting until classification
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
Reporting Example (Plixer)
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
Medianet Performance Monitoring
class-map match-all telepresence-CS4
match dscp cs4
class-map match-all SAP-HTTP
match access-group name web-app
!
ip access-list extended web-app
permit tcp any host 10.1.1.10 eq www
permit tcp host 10.1.1.10 eq www any
!
policy-map type performance-monitor all-apps
class telepresence-CS4
Predefined flow monitor inline
Flow record default-rtp
Record: exporter ecmd-rtp-1-capture
“default-rtp” monitor metric rtp
“default-tcp” clock-rate 96 48000
clock-rate 112 90000
clock-rate 101 8000
class SAP-HTTP
flow monitor inline
record default-tcp
exporter ecmd-rtp-1-capture
!
interface FastEthernet0/0
service-policy type performance-monitor input all-apps
service-policy type performance-monitor output all-apps
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Router# show performance monitor history
Medianet Performance ...
start time 01:51:31
Monitoring ============
*history bucket number : 1
*counter flow : 1
counter bytes : 162329
counter bytes rate (Bps) : 5410
Aggregation over all *counter bytes rate per flow
*counter bytes rate per flow min
(Bps)
(Bps)
:
:
5410
5410
RTP Performance
transport rtp jitter mean (usec) : 476
transport rtp jitter minimum (usec) : 1
transport rtp jitter maximum (usec) : 1997
Metrics: *transport rtp payload type
transport event packet-loss counter
:
:
96
0
*transport event packet-loss counter min : 0
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
IOS Performance Agent
IOS Performance Agent (IOS PA)
provides visibility into application and
network performance
- Available as software feature in
base IOS image
- Supported hardware - 880, 890,
and ISR G2
Available in 15.2(1)T
ISR Platforms
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 74
Flexible NetFlow Integration with Performance Agent
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 75
Performance Based Routing (PfR):
Configuration Templates – Options
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
Agenda
• Introduction
• NetFlow Version 9
• Flexible NetFlow
• NetFlow for Security
• NetFlow for Application Visibility and Control
• NetFlow & IPv6
• NetFlow Performance
• NetFlow Standardization
• Support Matrix
• Appendix
79
NetFlow & IPv6
Traditional NetFlow
- Native IPv6 supported: 12.3(7)T, 12.2(33)SXH, 12.2(33)SRB
- Beginning with Cisco IOS® Release 12.4(20)T, traditional NetFlow
for IPv6 is being replaced by flexible NetFlow for IPv6
Flexible NetFlow
- Native IPv6 supported
- NBAR 2 and IPv6 in 15.2(1)T
- IPV6 transition techniques (IPv6 inside IPv4)
Can detect now teredo, isatap, 6to4, 6rd
Classification inside isatap, 6to4, 6rd in 15.2(2)T
- Export on the top of IPv6: supported (15.2(2)T, Nexus 4.2.1)
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 80
Agenda
• Introduction
• NetFlow Version 9
• Flexible NetFlow
• NetFlow for Security
• NetFlow for Application Visibility and Control
• NetFlow & IPv6
• NetFlow Performance
• NetFlow Standardization
• Support Matrix
• Appendix
81
Performance Challenge
Moving Bottleneck
Consumes a lot of CPU
- Packet sampling
- Metering process in hardware
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 82
CPU Impact
NetFlow Performance Paper Tests
Paper at www.cisco.com/go/netflow under
Technical Documents
0, 1, and 2 NetFlow data export destinations
Initial performance after enabling
v8 aggregation vs. v5, v9 performance
Full NetFlow vs. 1:100 sampled NetFlow
Tested hardware: Cisco 1841, 2600, 2811, 2851, 3640, 3745, 3845, 7200, 7301,
7500, 12000
-> will be updated soon with newest platform
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 83
CPU Impact
Finding Summary
Larger number of cache entries will have an increasing level of impact to CPU
- This is much more visible on the low end systems (LES)
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 84
CPU Impact
NetFlow Sampling
1 K 1 K 1 K Packet Sampling
(Random or Systematic)
Export
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 85
Configuring Packet Based Sampling
interface pos3/0
ip flow monitor <my-monitor> <my-sampler> ingress|egress
multicast|unicast
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
Accuracy Impact
Random Packet NetFlow Sampling
Packet Sampling for Flow
Accounting: Challenges
and Limitations, Estimation Accuracy
Tanja Zseby, (PLT_NZIX1, S24D00, Cisco, f=5%
Thomas Hirsch,
Benoit Claise, PAM 2008
Square sum of
bytes available in
#Packets Nf
flexible NetFlow
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 87
Flexible NetFlow in Hardware on Catalyst 6500/Sup2T
System Scalability. Up to ~512K (with 99% utilization
efficiency) cached flows for Forwarding Engine. Per
direction, per DFC => 13 million flow entries
Sampled NetFlow. Effective hardware-based sampling
to improve and preserve NetFlow table utilization
Ingress & Egress NetFlow. Useful for example to track
packets de-capsulated after tunneling mechanisms
Per Interface or Sub-Interface activation
Bridged NetFlow. Capability of creating and tracking
bridged IP flows
TCP Flags are now exported as part of the flow
information. Very useful to understand TCP flow
directions and to detect denial of service attacks
IPv4, IPv6 and Layer 2 Flows support
Export version 5 (the most used) and export version 9
(the most flexible) are both supported
VRF aware export
Hitless ISSU
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 88
Yielding NetFlow Data Export Feature
Specific to the cat6500/Sup2T
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
Flexible NetFlow in Hardware on ASR 1000
System Scalability. Up to ~1M cached flows for
Forwarding Engine, in hardware
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
NetFlow in Hardware on Catalyst 3750-X and 3560-X
3KX-SM-10G Service Module
System Scalability. Up to ~32K cached flows
Export version 9
3KX-SM-10G
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
NetFlow in Hardware on CRS Family
System Scalability. Up to ~1M cached flows per Line
Card
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
Reducing Performance Impact
CPU and Memory Impact on the Network Element, Collector, and Network
Flexible NetFlow (collect only what is really required)
Aging timers
Sampled NetFlow
Leverage distributed architectures (VIP, linecards)
Flow masks (only Cisco Catalyst 6500/7600)
Aggregation schemes (v8 on router or on collector)
Filters (router or collector)
Data compression (collector)
Increase collection bucket sizes (collector)
Place collector and router on the same LAN segment/
dedicated interface
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
Bandwidth Impact
Case 1: Traditional NetFlow
NETFLOW-MiB:
Router# show ip flow export cnfESRecordsExported
Flow export is enabled
Exporting flows to 1.1.1.1 (9999)
Exporting using source IP address 198.198.198.11
Version 5 flow records cnfESPktsExported
29 flows exported in 4 udp datagrams
0 flows failed due to lack of export packet
0 export packets were sent up to process level
0 export packets were dropped due to no fib
0 export packets were dropped due to adjacency issues
0 export packets were dropped due to fragmentation failures
0 export packets were dropped due to encapsulation fixup
failures
Router# clear ip flow stats
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 96
Bandwidth Impact
Case 2: Flexible NetFlow
The counter for this MIB object only contain L3 bytes, Layer 2 encapsulation needs
to be added
• Introduction
• NetFlow Version 9
• Flexible NetFlow
• NetFlow for Security
• NetFlow for Application Visibility and Control
• NetFlow & IPv6
• NetFlow Performance
• NetFlow Standardization
• Support Matrix
• Appendix
98
IETF: IP Flow Information Export
WG (IPFIX)
RFC3954 Cisco Systems NetFlow Services Export Version 9
RFC3917 Requirements for IP Flow Information Export
-Gathers all IPFIX requirements for the IPFIX evaluation process
RFC3955 Evaluation of Candidate Protocols for IPFIX
RFC5101 Specification of the IPFIX Protocol for the Exchange of
IP Traffic Flow Information
RFC5102 Information Model for IP Flow Information Export
RFC5103 “Bidirectional Flow Export using IP Flow Information
Export (IPFIX)”
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 99
IETF: IP Flow Information Export
WG (IPFIX)
IPFIX protocol specifications
- Changes in terminology but same NetFlow Version 9 principles
- Improvements vs. NetFlow Version 9: SCTP-PR, security, variable length
information element, IANA registration, etc.
- Generic streaming protocol, not flow-centric anymore
- Security:
Threat: confidentiality, integrity, authorization
Solution: DTLS on SCTP-PR
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 100
IETF: Packet Sampling WG (PSAMP)
PSAMP is an effort to:
- Specify a set of selection operations by which packets are sampled, and
describe protocols by which information on sampled packets is reported to
applications
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 101
Agenda
• Introduction
• NetFlow Version 9
• Flexible NetFlow
• NetFlow for Security
• NetFlow for Application Visibility and Control
• NetFlow & IPv6
• NetFlow Performance
• NetFlow Standardization
• Support Matrix
• Appendix
102
Traditional NetFlow
For Your
Exporting Process Reference
Version 5 2.1
Version 8 2.1
Reliable Export
Bridged NF
Input Filters
Mac Address
Security Exports
Vlan Export
NetFlow MIB
12.3(11)T 12.2(33)SXH
with Top Talker
Dynamic Top
12.4(4)T
Talker CLI
ifIndex to
12.4(4)T
Name Map
Systematic
12.3(11)T 12.0(11)S
Sampling
Random
12.4(9)T 12.0(33)S 12.2(31)SB
Sampling
Output Sampled
12.0(24)S
NetFlow
Systematic
Sampling
Random
3.2 3.3 2.1
Sampling
Output Sampled
2.1
NetFlow
Flow Sampling
Sampling
Full Flow support 12.4(9)T 15.0(1)M 12.4(9)T IOS XE 3.1.1S
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 112
Platform Feature Comparison
Flexible NetFlow Available
Sampling
Full Flow support 12.2(50)SY IOS XE 3.1.0SG 15.0(1)SE
Random Sampling 1:M 12.2(50)SY Radar 15.0(1)SE
Random Sampling N:M
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 113
Platform Feature Comparison
Flexible NetFlow
Immediate Cache
Permanent Cache
Dynamic TopNTalkers
FNF EEM Monitor
Sampling
Full Flow support 4.0 4.0(4)SV1
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 114
Platform Feature Comparison
Flexible NetFlow
Feature CRS-1 XR12000 ASR9000 C12000
Sampling
Full Flow support 3.2 3.3.0 3.9(1) 12.0(33)S
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 115
Platform Feature Comparison
Flexible NetFlow
Feature Cisco ISR Cisco ISR-G2 Cisco 72/73xx ASR1000
Activation
Ingress support 12.4(9)T 15.0(1)M 12.4(9)T IOS XE 3.1.1S
Per Vlan
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 116
Platform Feature Comparison
Flexible NetFlow
Activation
Ingress support 12.2(50)SY IOS XE 3.1.0SG 15.0(1)SE
Egress support 12.2(50)SY 15.0(1)SE
Per Interface 12.2(50)SY IOS XE 3.1.0SG 15.0(1)SE
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 117
Platform Feature Comparison
Flexible NetFlow
Activation
Ingress support 4.0 4.0(4)SV1
On VRF Interface
Per Vlan
Per Class-map
On CoPP Interface
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 118
Platform Feature Comparison
Flexible NetFlow
Activation
Ingress support 3.2 3.3.0 3.9(1) 12.0(33)S
Per Vlan
Per Class-map
On CoPP Interface
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 119
Platform Feature Comparison
Flexible NetFlow
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 120
Platform Feature Comparison
Flexible NetFlow
Exporter
NetFlow v5 Export Format 12.2(50)SY IOS XE 3.1.0SG
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 121
Platform Feature Comparison
Flexible NetFlow
Exporter
NetFlow v5 Export Format 4.0 4.0(4)SV1
Export in VRF
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 122
Platform Feature Comparison
Flexible NetFlow
Exporter
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 123
Platform Feature Comparison
Flexible NetFlow
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 124
Platform Feature Comparison
Flexible NetFlow
IPv4 Flows
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 125
Platform Feature Comparison
Flexible NetFlow
IPv4 Flows
SCTP Fields
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 126
Platform Feature Comparison
Flexible NetFlow
IPv4 Flows
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 127
Platform Feature Comparison
Flexible NetFlow
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 128
Platform Feature Comparison
Flexible NetFlow
IPv6 Flows
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 129
Platform Feature Comparison
Flexible NetFlow
IPv6 Flows
SCTP Fields
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 130
Platform Feature Comparison
Flexible NetFlow
IPv6 Flows
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 131
Platform Feature Comparison
Flexible NetFlow
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 132
Platform Feature Comparison
Flexible NetFlow
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 133
Platform Feature Comparison
Flexible NetFlow
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 134
Platform Feature Comparison
Flexible NetFlow
Available Now
BRKNMS-3134 Not Available
© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public Roadmap 135
Agenda
• Introduction
• NetFlow Version 9
• Flexible NetFlow
• NetFlow for Security
• NetFlow for Application Visibility and Control
• NetFlow & IPv6
• NetFlow Performance
• NetFlow Standardization
• Support Matrix
• Conclusion
• Appendix
136
Recommended
Reading
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 137
NetFlow Summary and Conclusion
NetFlow is a mature Cisco IOS feature (in Cisco IOS since 1996)
NetFlow provides input for accounting, performance, security, application
visibiilty, and billing applications
Cisco standardizes on NetFlow/IPFIX: NetFlow 9 and Flexible NetFlow
consistency across many devices, including in hardware now
- NetFlow v9 eases the exporting of additional fields
- Flexible NetFlow is a major enhancement
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 138
Please complete your Session Survey
We value your feedback
Don't forget to complete your online session evaluations after each session.
Complete 4 session evaluations & the Overall Conference Evaluation
(available from Thursday) to receive your Cisco Live T-shirt.
All surveys can be found on our onsite portal and mobile website:
www.ciscolivelondon.com/mobile
2. Login
3. Complete and Submit the evaluation http://m.cisco.com/mat/cleu12/
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 139
References
NetFlow
-http://www.cisco.com/go/netflow
Cisco network accounting services
-Comparison of Cisco NetFlow versus other available
accounting technologies
-http://www.cisco.com/warp/public/cc/pd/iosw/prodlit/nwact_wp.htm
Cisco IT case study
-http://business.cisco.com/prod/tree.taf%3Fasset_id=106882&IT=104252&pu
blic_view=true&kbns=1.html
A complete white paper
-http://www.cisco.com/univercd/cc/td/doc/cisintwk/intsolns/netflsol/
nfwhite.htm
NetFlow product manager: Jean Charles Griviaud
-jgriviau@cisco.com
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 140
Meet the Engineer
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 141
Join Cisco Support Communities!
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 142
Complete Your Online
Session Evaluation
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 143
Visit the Cisco Store for Related Titles
http://theciscostores.com
144
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 145
Thank you.
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 146
Appendix: Traditional NetFlow
‗show ip cache flow‘
512 544 576 1024 1536 2048 2560 3072 3584 4096 4608
.000 .000 .000 .000 .500 .000 .000 .000 .000 .000 .000
# of Active Flows
IP Flow Switching Cache, 278544 bytes
2728 active, 1368 inactive, 85310 added
463824 ager polls, 0 flow alloc failures
Active flows timeout in 30 minutes Rates and Duration
Inactive flows timeout in 15 seconds
last clearing of statistics never
Protocol Total Flows Packets Bytes Packets Active(Sec) Idle(Sec)
-------- Flows /Sec /Flow /Pkt /Sec /Flow /Flow
TCP-X 2 0.0 1 1440 0.0 0.0 9.5
TCP-other 82580 11.2 1 1440 11.2 0.0 12.0
Total: 82582 11.2 1 1440
Flow Details 11.2 0.0 12.0
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 148
‗show ip cache verbose flow‘
512 544 576 1024 1536 2048 2560 3072 3584 4096 4608 Flow Rate
.000 .000 .000 .000 1.00 .000 .000 .000 .000 .000 .000
and Duration
IP Flow Switching Cache, 278544 bytes
1323 active, 2773 inactive, 23533 added ToS Byte
151644 ager polls, 0 flow alloc failures
Active flows timeout in 30 minutesDestination and TCP
Inactive flows timeout in 15 seconds
Information Flags
last clearing of statistics never
Protocol Total Flows Packets Bytes Packets Active(Sec) Idle(Sec)
-------- Flows /Sec /Flow /Pkt /Sec /Flow /Flow
Source
TCP-otherMask and AS
22210 3.1 1 1440 3.1 0.0 12.9
Total: 22210 3.1 1 1440 3.1 0.0 12.9
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 149
NetFlow Export Version 5 and Main Cache Configuration
Example
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 150
NetFlow Export Version 8 and Aggregation Configuration
Example
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 151
NetFlow Export Version 8 and Aggregation Configuration
Example
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 152
Appendix: NetFlow for Capacity Planning
The Core Traffic Matrix Traffic Engineering and Capacity
Planning
Best Effort
Traffic
Best Effort
London POP
Munich POP
Rome Exit Point Paris Exit Point London Exit Point Munich Exit Point
Rome Entry Point NA (*) …Mb/s …Mb/s …Mb/s
Paris Entry Point …Mb/s NA (*) …Mb/s …Mb/s
London Exit Point …Mb/s …Mb/s NA (*) …Mb/s
Munich Exit Point …Mb/s …Mb/s …Mb/s NA (*)
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 155
BGP Next Hop TOS Aggregation
Typical Example
C PE PE C
u MPLS Core u
s or s
t PE PE t
IP Core with BGP Routes Only
o o
m m
e PE PE e
r r
s PoP PoP s
interface pos3/0
ip flow monitor traffic-matrix-monitor
Minute (0 59)
Hour (0 23)
Day of the month (1 31)
Month of the year (1 12)
Day of the week (0 6 with 0=Sunday)
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 160
Recommended Reading
BRKNMS-3134 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Public 164