Netflow Overview PacNOG 6 Nadi, Fiji. Agenda Netflow –What it is and how it works –Uses and Applications Vendor Configurations/ Implementation –Cisco.

Slides:



Advertisements
Similar presentations
NETFLOW & NETWORK-BASED APPLICATION RECOGNITION
Advertisements

Network Monitoring System In CSTNET Long Chun China Science & Technology Network.
Top-Down Network Design Chapter Nine Developing Network Management Strategies Copyright 2010 Cisco Press & Priscilla Oppenheimer.
© 2006 Cisco Systems, Inc. All rights reserved. MPLS v Frame-Mode MPLS Implementation on Cisco IOS Platforms Troubleshooting Frame-Mode MPLS on Cisco.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 8: Monitoring the Network Connecting Networks.
Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
Switching & Operations. Address learning Forward/filter decision Loop avoidance Three Switch Functions.
Implementing Inter-VLAN Routing
© 2009 Cisco Systems, Inc. All rights reserved. SWITCH v1.0—4-1 Implementing Inter-VLAN Routing Deploying Multilayer Switching with Cisco Express Forwarding.
Instructor & Todd Lammle
Implementing a Highly Available Network
© 2006 Cisco Systems, Inc. All rights reserved. Implementing Secure Converged Wide Area Networks (ISCW) Module 6: Cisco IOS Threat Defense Features.
1 Interconnection ECS 152A. 2 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r But individual.
Network Monitoring for Internet Traffic Engineering Jennifer Rexford AT&T Labs – Research Florham Park, NJ 07932
Monitoring System Monitors Basics Monitor Types Alarms Actions RRD Charts Reports.
Using Argus Audit Trails to Enhance IDS Analysis Jed Haile Nitro Data Systems
Experiences in Analyzing Network Traffic Shou-Chuan Lai National Tsing Hua University Computer and Communication Center Nov. 20, 2003.
1 © 2000, Cisco Systems, Inc _05_2000_c3 Netflow Michael Lin.
1 Netflow 6/12/07. 2 Overview Why use netflow? What is a flow? Deploying Netflow Performance Impact.
© 2006 Cisco Systems, Inc. All rights reserved. Optimizing Converged Cisco Networks (ONT) Module 4: Implement the DiffServ QoS Model.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
Flow tools APRICOT 2008 Network Management Taipei, Taiwan February 20-24, 2008.
NetfFow Overview SANOG 17 Colombo, Sri Lanka. Agenda Netflow –What it is and how it works –Uses and Applications Vendor Configurations/ Implementation.
Network Flow-Based Anomaly Detection of DDoS Attacks Vassilis Chatzigiannakis National Technical University of Athens, Greece TNC.
© 2006 Cisco Systems, Inc. All rights reserved.1 Microsoft Network Load Balancing Support Vivek V
Session 2 Security Monitoring Identify Device Status Traffic Analysis Routing Protocol Status Configuration & Log Classification.
POSTECH DP&NM Lab. Internet Traffic Monitoring and Analysis: Methods and Applications (1) 5. Passive Monitoring Techniques.
Module 12: Routing Fundamentals. Routing Overview Configuring Routing and Remote Access as a Router Quality of Service.
© 2002, Cisco Systems, Inc. All rights reserved. NetFlow Overview, 2/03.
NetFlow: Digging Flows Out of the Traffic Evandro de Souza ESnet ESnet Site Coordinating Committee Meeting Columbus/OH – July/2004.
© 2006 Cisco Systems, Inc. All rights reserved. Module 4: Implement the DiffServ QoS Model Lesson 4.2: Using NBAR for Classification.
Net-flow APRICOT 2008 Network Management Taipei, Taiwan February 20-24, 2008.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
Chapter 5: Implementing Intrusion Prevention
Networks and Protocols CE Week 7b. Routing an Overview.
Jennifer Rexford Princeton University MW 11:00am-12:20pm Measurement COS 597E: Software Defined Networking.
April 4th, 2002George Wai Wong1 Deriving IP Traffic Demands for an ISP Backbone Network Prepared for EECE565 – Data Communications.
Project Requirements (NetFlow Generator) 정승화 분산 처리 및 네트워크 관리 연구실 포항 공과 대학교
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
Open-Eye Georgios Androulidakis National Technical University of Athens.
S7C7 – Multilayer Switching Design and Configuration.
Net Flow Network Protocol Presented By : Arslan Qamar.
IPv6 Flow. IPv6 Flow Options Netflow v9 (aka cflow/jflow) Sflow IPFix.
NetPro-ITI Ethernet LANs. Microsegmentation Microsegmentation of the Network.
RMON 1. RMON is a set of standardized MIB variables that monitor networks. Even if RMON initially referred to only the RMON MIB, the term RMON now is.
POSTECH DP&NM Lab Detailed Design Document NetFlow Generator 정승화 DPNM Lab. in Postech.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
© 2006 Cisco Systems, Inc. All rights reserved. Implementing Secure Converged Wide Area Networks (ISCW) Module 4: Frame Mode MPLS Implementation.
1 Netflow Collection and Aggregation in the AT&T Common Backbone Carsten Lund.
Application Protocol - Network Link Utilization Capability: Identify network usage by aggregating application protocol traffic as collected by a traffic.
Network Management Workshop
InterVLAN Routing 1. InterVLAN Routing 2. Multilayer Switching.
Introduction to Networks v6.0
Instructor Materials Chapter 6: Network Layer
Network Environment Management
Instructor Materials Chapter 5: Ethernet
RMON.
Chapter 6: Network Layer
Hubs Hubs are essentially physical-layer repeaters:
© 2002, Cisco Systems, Inc. All rights reserved.
Chapter 6: Network Layer
Network Administration CNET-443
Network Environment Management
Hubs Hubs are essentially physical-layer repeaters:
Maximizing the Benefits of Switching
IP : Internet Protocol Surasak Sanguanpong
© 2002, Cisco Systems, Inc. All rights reserved.
Chapter 8: Monitoring the Network
© 2002, Cisco Systems, Inc. All rights reserved.
Chapter 4: outline 4.1 Overview of Network layer data plane
Presentation transcript:

Netflow Overview PacNOG 6 Nadi, Fiji

Agenda Netflow –What it is and how it works –Uses and Applications Vendor Configurations/ Implementation –Cisco and Juniper Flow-tools –Architectural issues –Software, tools etc More Discussion / Lab Demonstration

Network Flows Packets or frames that have a common attribute. Creation and expiration policy – what conditions start and stop a flow. Counters – packets,bytes,time. Routing information – AS, network mask, interfaces.

Network Flows Unidirectional or bidirectional. Bidirectional flows can contain other information such as round trip time, TCP behavior. Application flows look past the headers to classify packets by their contents. Aggregated flows – flows of flows.

Working with Flows Generating and Viewing Flows Exporting Flows from devices –Types of flows –Sampling rates Collecting it –Tools to Collect Flows - Flow-tools Analyzing it –More tools available, can write your own

Flow Descriptors A Key with more elements will generate more flows. Greater number of flows leads to more post processing time to generate reports, more memory and CPU requirements for device generating flows. Depends on application. Traffic engineering vs. intrusion detection.

Flow Accounting Accounting information accumulated with flows. Packets, Bytes, Start Time, End Time. Network routing information – masks and autonomous system number.

Flow Generation/Collection Passive monitor A passive monitor (usually a unix host) receives all data and generates flows. Resource intensive, newer investments needed Router or other existing network device. Router or other existing devices like switch, generate flows. Sampling is possible Nothing new needed

Passive Monitor Collection Workstation AWorkstation B Campus Flow probe connected to switch port in “ traffic mirror” mode

Router Collection Flow collector stores exported flows from router. LAN Internet LAN

Passive Monitor Directly connected to a LAN segment via a switch port in “mirror” mode, optical splitter, or repeated segment. Generate flows for all local LAN traffic. Must have an interface or monitor deployed on each LAN segment. Support for more detailed flows – bidirectional and application.

Router Collection Router will generate flows for traffic that is directed to the router. Flows are not generated for local LAN traffic. Limited to “simple” flow criteria (packet headers). Generally easier to deploy – no new equipment.

Vendor implementations

Cisco NetFlow Unidirectional flows. IPv4 unicast and multicast. Aggregated and unaggregated. Flows exported via UDP. Supported on IOS and CatOS platforms. Catalyst NetFlow is different implementation.

Cisco NetFlow Versions 4 Unaggregated types (1,5,6,7). 14 Aggregated types (8.x, 9). Each version has its own packet format. Version 1 does not have sequence numbers – no way to detect lost flows. The “version” defines what type of data is in the flow. Some versions specific to Catalyst platform.

NetFlow v1 Key fields: Source/Destination IP, Source/Destination Port, IP Protocol, ToS, Input interface. Accounting: Packets, Octets, Start/End time, Output interface Other: Bitwise OR of TCP flags.

NetFlow v5 Key fields: Source/Destination IP, Source/Destination Port, IP Protocol, ToS, Input interface. Accounting: Packets, Octets, Start/End time, Output interface. Other: Bitwise OR of TCP flags, Source/Destination AS and IP Mask. Packet format adds sequence numbers for detecting lost exports.

NetFlow v8 Aggregated v5 flows. Not all flow types available on all equipments Much less data to post process, but loses fine granularity of v5 – no IP addresses.

Cisco IOS Configuration Configured on each input interface. Define the version. Define the IP address of the collector (where to send the flows). Optionally enable aggregation tables. Optionally configure flow timeout and main (v5) flow table size. Optionally configure sample rate.

Cisco IOS Configuration interface FastEthernet0/0 description Access to backbone ip address ip route-cache flow duplex auto speed auto ! interface FastEthernet0/1 description Access to local net ip address ip route-cache flow duplex auto speed auto ip flow-export version 5 ip flow-export destination

Cisco IOS Configuration gw #sh ip flow export Flow export v5 is enabled for main cache Export source and destination details : VRF ID : Default Destination(1) (5004) Version 5 flow records flows exported in 3348 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

Cisco IOS Configuration gw #sh ip cache flow IP packet size distribution ( total packets): IP Flow Switching Cache, bytes 26 active, 4070 inactive, added ager polls, 0 flow alloc failures Active flows timeout in 30 minutes Inactive flows timeout in 15 seconds IP Sub Flow Cache, bytes 26 active, 998 inactive, added, added to flow 0 alloc failures, 0 force free 1 chunk, 2 chunks added last clearing of statistics never

Cisco IOS Configuration ip flow-top-talkers top 10 sort-by bytes gw #sh ip flow top-talkers SrcIf SrcIPaddress DstIf DstIPaddress Pr SrcP DstP Bytes Fa0/ Fa0/ B K Fa0/ Fa0/ B K Fa0/ Fa0/ B K Fa0/ Fa0/ B K Fa0/ Local K Fa0/ Fa0/ C K Fa0/ Fa0/ C K Fa0/ Fa0/ BB DC Fa0/ Fa0/ C Fa0/ Local DB of 10 top talkers shown. 49 flows processed.

Cisco command summary Enable CEF (done by default) – ip cef Enable flow on each interface ip route cache flow OR ip flow ingress ip flow egress View flows – show ip cache flow – show ip flow top-talkers

Cisco Command Summary Exporting Flows to a collector ip flow-export version 5 [origin-as|peer-as] ip flow-export destination x.x.x.x Exporting aggregated flows ip flow-aggregation cache as|prefix|dest|source|proto enabled export destination x.x.x.x

Flows and Applications

Uses for Flow Problem identification / solving –Traffic classification –DoS Traceback (some slides by Danny McPherson)‏ Traffic Analysis –Inter-AS traffic analysis –Reporting on application proxies Accounting –Cross verification from other sources –Can cross-check with SNMP data

Detect Anomalous Events: SQL “Slammer” Worm*

Flow-based Detection (cont)* Once baselines are built anomalous activity can be detected –Pure rate-based (pps or bps) anomalies may be legitimate or malicious –Many misuse attacks can be immediately recognized, even without baselines (e.g., TCP SYN or RST floods)‏ –Signatures can also be defined to identify “interesting” transactional data (e.g., proto udp and port 1434 and 404 octets(376 payload) == slammer!)‏ –Temporal compound signatures can be defined to detect with higher precision

Flow-based Commercial Tools…*

Commercial Detection A Large Scale DOS attack*

Traffic Analysis Can see traffic based on source and destination AS –Source and destination AS derived through the routing table on the router –Introduces the need to run full mesh BGP at IXPs as well as transit and peering –Source and destination prefix based flows can be collected and plotted against external prefix to ASN data

Accounting Flow based accounting can be a good supplement to SNMP based accounting.

References flow-tools: NetFlow Applications Netflow HOW-TO IETF standards effort:

References Abilene NetFlow page Flow-tools mailing list: Cisco Centric Open Source Community