NetFlow Very useful for traffic analysis Very useful for traffic analysis Standard sampler: Standard sampler: –Cisco Netflow –Juniper Traffic Sampling.

Slides:



Advertisements
Similar presentations
Vacha Dave, University of Texas at Austin 1 Network Simulator Tutorial Advanced Computer Networks (CS378)
Advertisements

Network Simulator and problems in installing. Introduction Problems in installing Wired networks modified example2.tcl commands in OTcl usual problems.
NS2 Tutorial – Part II Internet Computing KUT Youn-Hee Han.
NS-2 (network simulator) NS by example παρουσίαση Κων/νος Τρούλος.
NS2-TCP Internet Computing KUT ( Youn-Hee Han It is licensed under a Creative Commons Attribution.
Wireless and Mobile Computing Simulations Lecture 27.
Introduction to Network Simulator NS-2 Part I
1 ns-2 Tutorial, part 2 Dave Anderson, Xiaowei Yang (Modified from Polly Huang’s slides)
Network Simulation One tool to simulation network protocols for the Internet is the network simulator (NS) The simulation environment needs to be set-
An Introduction to NS-2 * Gayatri Swamynathan CS 276 TA *some slides are from a presentation by Haobo Yu & Nader Salehi, USC/ISI.
NS-2 Shahin Shayandeh December 2004 Session 2. Ns programming  Create the event scheduler  Turn on tracing  Create network  Setup routing  Insert.
Brief Intro to ns2: The most widely used Network Simulator COMP5416 Advanced Network Technologies Based on: Marc Greis's
Ns-2 Tutorial Exercise (1) Multimedia Networking Group, The Department of Computer Science, UVA Jianping Wang Adopted from Nicolas’s slides Jianping Wang,
Ns-2 tutorial Karthik Sadasivam Banuprasad Samudrala CSCI 5931 Network Security Instructor : Dr. T. Andrew Yang.
How to Add a New Protocol in NS2 Xu Leiming CSCW Lab. at CS Dept., Tsinghua Univ. June 1, 2001.
5-Jul-141 S.Pushpalatha, Associate Professor, PSNACET.
Introduction to NS. Information Main website Documentation, mailing list archive, tutorial Location of Source codes –C++ files.
Winter 2008 Evaluation Tools1 Brief Overview of Networking Evaluation Methods and Tools.
NS TUTORIAL Padma Haldar USC/ISI 09/04/02.
Network Simulator 2 Tejas Vasavada.
1 Network Simulator (NS-2). 2 講義 Network Simulator (NS2) Part 1: 下載 Part 2: 安裝與測試 Part 3: 劇本 Part 4: 數據.
Katz, Stoica F04 EECS 122 Introduction to Computer Networks (Fall 2003) Network simulator 2 (ns-2) Department of Electrical Engineering and Computer Sciences.
CprE 543x – ns-2 Tutorial Zak Abichar, Dept of Electrical and Computer Engineering Iowa State University Ames,
Uni Innsbruck Informatik - 1 Tutorial: The ns-2 Network Simulator Michael Welzl Institute of Computer Science University.
Computer Networks NS. Features F Event driven simulator –developed at UC Berkeley F Network Topologies –nodes (connectivity), links (bandwidth, delay)
1 Ns Tutorial Alhussein A. Abouzeid Elect. Eng. Dept./U. of Washington Parts of this educational presentation use examples available.
Day 3 Outline Multicast example (from Day 2) Wireless Misc. utilities
EECS122 - UCB1 Project 3: ns Simulation of Application-Level Routing Improve the application performance by user-level / application-level routing. Understand.
1 Modified Schedule Day 2 Network AniMator (nam) Examples simple.tcl mcast.tcl Day 3 Wireless (ad-hoc)
Submitters: Stella Pantofel Michael Halperin Igor Berman
EECS122 - UCB1 Measurements and Modeling Table of Contents 1. Measurements Measurements 2. Modeling and its Shortcomings Modeling and its Shortcomings.
Network Simulator (NS2) 1 Tutorial on Network Simulator (NS2) Hemant Kumar Rath Infonet Lab, Dept of Electrical Engineering IIT Bombay, Mumbai
Wireless Networking and Systems CSE 590 ns2 tutorial.
NS2 - Wireless Network Ming-Feng Yang. 2 2 Outline Basic wireless model Extensions wireless model Example - Ad hoc network Example – WLAN Example – Mobile.
Tutorial: The ns-2 Network Simulator Amirali Habibi Shrif Univesity Adapted from: Michael Welzl Institute of Computer Science University of Innsbruck,
Date : 2010/11/23 Speaker : Chia-Wen Lu 1.  Network Simulation  Introduction to NS2  Simple Simulation Example 2.
Role and Mechanism of Queue Internet Engineering.
Bridging the Gap: Turning a Network Simulation into an Emulation Mac Newbold.
JIA-HUI HUANG INSTITUTE OF COMPUTER SCIENCE AND INFORMATION ENGINEERING NATIONAL TAIPEI UNIVERSITY OF TECHNOLOGY Network Simulator – NS-2 1.
Network Simulator-2 Sandeep singla 1998A2A7540. NS-2 A discrete event simulator Focused on modeling network protocols –Wired, wireless –TCP,UDP,unicast,multicast.
TNK092: Network Simulation - Nätverkssimulering Lecture 3: TCP Vangelis Angelakis.
1 Network Simulator Tutorial. 2 Network Simulation * Motivation: Learn fundamentals of evaluating network performance via simulation Overview: fundamentals.
Internet Computing KUT Youn-Hee Han
NS-2 Tutorial. Motivation What’s NS-2 Network simulator –Discrete event simulator It covers multiple layers –Application layer, transport layer, network.
Quality evaluation of MPEG4 video transmission over GPRS networks.. Presented by: Abdullah M. Rana Multimedia Communication.
1 NS Fundamentals. USC INFORMATION SCIENCES INSTITUTE 2 OTcl and C++: The Duality C++ OTcl Pure C++ objects Pure OTcl objects C++/OTcl split objects ns.
Ns-2 Tutorial (1) Multimedia Networking Group, The Department of Computer Science, UVA Jianping Wang Jianping Wang, 2002 cs757 1.
1 Introduction to NS-2 r Tutorial overview of NS m Create basic NS simulation r Walk-through a simple example m Model specification m Execution and trace.
NS2-TCP Internet Computing KUT ( Youn-Hee Han It is licensed under a Creative Commons Attribution.
Lab 2, Network Simulator ns2 Shiv Kalyanaraman Yong Xia (TA) Satish Raghunath Sept 4,
Network Simulator Tutorial Wireless Networks. Acknowledgements Material is taken from the presentations by Jim Kurose, University of Massachusetts, Amherst.
CDA6530: Performance Models of Computers and Networks Chapter 10: Introduction to Network Simulator (NS2) TexPoint fonts used in EMF. Read the TexPoint.
The Creation of NS2 Simulated Environment ( 1 ) LI Chengbo
TNK092: Network Simulation - Nätverkssimulering Lecture #1: Course basics and a first taste of NS2 Vangelis Angelakis Ph.D.
July 7, 2003 Building a Wireless LAN traffic test case in ns2 Radio Science Laboratory Department of Electrical and Computer Engineering The University.
NS-2 Shahin Shayandeh December 2004 Session 1. Ns-2, the Network Simulator  A discrete event simulator Simple model  Focused on modeling network protocols.
Network Simulation Using NS2
Lab 2, Network Simulator ns2
1 NS-2: the network simulator 15 September 2005 Network Lab., SNU Changjee Joo.
DMET 602: Networks and Media Lab Amr El Mougy Yasmeen EssamAlaa Tarek.
NS-2 Training 12/12/2011. Introduction  NS-2: Network Simulator Generation 2  Latest Release: 2.35 / Nov. 4, 2011 
NS-2 Simulator 최 종 훈 Contents  About NS  Installation  Based on Linux  Based on Windows  Architecture  Using NS-2  Example  References.
ECE 6610 Sandeep Kakumanu GNAN research Lab
DMET 602: Networks and Media Lab
(Modified from Polly Huang’s and last year’s original)
Network Simulator Tutorial
Basics of NS-2 Training in TCL script
Choe, Hyun Jung (Stella)
Introduction to ns-2: “The” Network Simulator
Karthik Sadasivam Banuprasad Samudrala
Presentation transcript:

NetFlow Very useful for traffic analysis Very useful for traffic analysis Standard sampler: Standard sampler: –Cisco Netflow –Juniper Traffic Sampling Parameters: Parameters: –Flow export timer (Determines when current flow info is written to disk) –Sampling scheme (Deterministic, Stratified, Simple random) –Sampling rate Available resources: Available resources: –GEANT network routers in Europe1/1000 deterministic + Unanonymized –Abilene (Internet2) routers in US1/100 deterministic + Anonymized –GT ingress/egress (Dr.Russ Clark)Unsampled + Anonymized

NetFlow (contd.) Netflow format: Netflow format: –unix_secs, unix_nsecs, sysuptime, exaddr, dpkts, doctets, first, last, engine_type, engi ne_id, srcaddr, dstaddr, nexthop, input, output, srcport, dstport, prot, tos, tcp_flags, sr c_mask, dst_mask, src_as, dst_as NetFlow data Example: ,0, , ,1,1500, , ,0,0, , , ,33,35,1373,4753,6,0,16,16,16,25656, ,0, , ,3,1884, , ,0,0, , , ,33,35,1373,4753,6,0,24,16,16,25656, ,0, , ,1,628, , ,0,0, , , ,33,35,1373,3855,6,0,24,16,16,25656, ,0, , ,1,1500, , ,0,0, , , ,33,35,1373,3864,6,0,16,16,16,25656, ,0, , ,1,1500, , ,0,0, , , ,33,35,1373,3831,6,0,16,16,16,25656, ,0, , ,6,3768, , ,0,0, , , ,33,35,1373,3831,6,0,24,16,16,25656, ,0, , ,1,92, , ,0,0, , , ,18,35,0,0,1,0,0,16,24,10546, ,0, , ,1,92, , ,0,0, , , ,18,35,0,0,1,0,0,16,16,10546, ,0, , ,1,92, , ,0,0, , , ,18,35,0,0,1,0,0,16,17,10546, ,0, , ,1,92, , ,0,0, , , ,18,35,0,0,1,0,0,16,17,10546,9768 NetFlow data Example: ,0, , ,1,1500, , ,0,0, , , ,33,35,1373,4753,6,0,16,16,16,25656, ,0, , ,3,1884, , ,0,0, , , ,33,35,1373,4753,6,0,24,16,16,25656, ,0, , ,1,628, , ,0,0, , , ,33,35,1373,3855,6,0,24,16,16,25656, ,0, , ,1,1500, , ,0,0, , , ,33,35,1373,3864,6,0,16,16,16,25656, ,0, , ,1,1500, , ,0,0, , , ,33,35,1373,3831,6,0,16,16,16,25656, ,0, , ,6,3768, , ,0,0, , , ,33,35,1373,3831,6,0,24,16,16,25656, ,0, , ,1,92, , ,0,0, , , ,18,35,0,0,1,0,0,16,24,10546, ,0, , ,1,92, , ,0,0, , , ,18,35,0,0,1,0,0,16,16,10546, ,0, , ,1,92, , ,0,0, , , ,18,35,0,0,1,0,0,16,17,10546, ,0, , ,1,92, , ,0,0, , , ,18,35,0,0,1,0,0,16,17,10546,9768 TCPDump data Example: IP > :. ack win IP > :. 1448:2896(1448) ack 1 win IP > :. 2920:4380(1460) ack 1 win IP > : : (1448) ack win IP > :. ack win IP > :. 1448:2896(1448) ack 1 win IP > : R 0:0(0) ack 1 win IP > :. 2896:4344(1448) ack 1 win IP > :. 2896:4344(1448) ack 1 win IP > :. 5792:7240(1448) ack TCPDump data Example: IP > :. ack win IP > :. 1448:2896(1448) ack 1 win IP > :. 2920:4380(1460) ack 1 win IP > : : (1448) ack win IP > :. ack win IP > :. 1448:2896(1448) ack 1 win IP > : R 0:0(0) ack 1 win IP > :. 2896:4344(1448) ack 1 win IP > :. 2896:4344(1448) ack 1 win IP > :. 5792:7240(1448) ack

ns2 Important components: Important components: –Basic ns2 code downloaded from –TCL script to setup and simulate the test environment –Topology generator (Ex: GT-ITM) Example TCL script: Example TCL script: #Create links between the nodes $ns duplex-link $n0 $n2 1Mb 10ms DropTail $ns duplex-link $n1 $n2 1Mb 10ms DropTail $ns duplex-link $n3 $n2 1Mb 10ms SFQ $ns duplex-link-op $n0 $n2 orient right- down $ns duplex-link-op $n1 $n2 orient right- up $ns duplex-link-op $n2 $n3 orient right #Monitor the queue for link between node 2 and 3 $ns duplex-link-op $n2 $n3 queuePos 0.5 #Create a UDP agent and attach it to node n0 set udp0 [new Agent/UDP] $udp0 set class_ 1 $ns attach-agent $n0 $udp0 # Create a CBR traffic source and attach it to udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 set packetSize_ 500 $cbr0 set interval_ $cbr0 attach-agent $udp0 #Create a UDP agent and attach it to node n1 set udp1 [new Agent/UDP] $udp1 set class_ 2 $ns attach-agent $n1 $udp1 #Create a simulator object set ns [new Simulator] #Define different colors for flows $ns color 1 Blue $ns color 2 Red #Open the nam trace file set nf [open out.nam w] $ns namtrace-all $nf #Define a 'finish' procedure proc finish {} { global ns nf $ns flush-trace #Close the trace file close $nf exit 0 } #Create four nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] # Create a CBR traffic source and # attach it to udp1 set cbr1 [new Application/Traffic/CBR] $cbr1 set packetSize_ 500 $cbr1 set interval_ $cbr1 attach-agent $udp1 #Create a Null agent (a traffic sink) # and attach it to node n3 set null0 [new Agent/Null] $ns attach-agent $n3 $null0 #Connect the traffic sources with # the traffic sink $ns connect $udp0 $null0 $ns connect $udp1 $null0 # Schedule events for the CBR agents $ns at 0.5 "$cbr0 start" $ns at 1.0 "$cbr1 start" $ns at 4.0 "$cbr1 stop" $ns at 4.5 "$cbr0 stop" #Call the finish procedure after # 5 seconds of simulation time $ns at 5.0 "finish" #Run the simulation $ns run

ns2 (contd.) Topology Topology –Create Spec file (“Geo” is used for Intra-domain topologies. Use “ts” for inter- domain transit-stub topologies): ## Comments : ## [ ] ## ## [ ] [ ] ## number of nodes = 1*8* (1 + 4*6) = 200 geo –Execute command: itm –Execute command: itm –Generates topology in Stanford Graph Base format * GraphBase graph (util_types ZZZIIZIZIZZZZZ,9V,102A) "geo(0,{5,10,3,1.000,0.000,0.000})",5,20,10 * Vertices "0",A6,3,2"1",A12,9,9"2",A16,2,4"3",A18,8,4"4",A19,2,1"",0,0,0"",0,0,0"",0,0,0"",0,0,0 –Convert SGB to NS format using sgb2ns command * Arcs V1,0,9, 0 V0,0,9, 0 V2,A0,2,0 V0,0,2, 0 V3,A2,5,0 V0,0,5, 0 V4,A4,1,0 V0,0,1, 0 V2,A1,9,0 V1,A3,9,0