Ns Tutorial: Case Studies

Slides:



Advertisements
Similar presentations
1 The ns-2 Network Simulator H Plan: –Discuss discrete-event network simulation –Discuss ns-2 simulator in particular –Demonstration and examples: u Download,
Advertisements

Katz, Stoica F04 EECS 122 Introduction to Computer Networks (Fall 2004) Network simulator 2 (ns-2) Department of Electrical Engineering and Computer Sciences.
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 Karthik Sadasivam Banuprasad Samudrala CSCI 5931 Network Security Instructor : Dr. T. Andrew Yang.
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.
Different TCP Flavors CSCI 780, Fall TCP Congestion Control Slow-start Congestion Avoidance Congestion Recovery Tahoe, Reno, New-Reno SACK.
Doc.: IEEE /0604r1 Submission May 2014 Slide 1 Modeling and Evaluating Variable Bit rate Video Steaming for ax Date: Authors:
The War Between Mice and Elephants LIANG GUO, IBRAHIM MATTA Computer Science Department Boston University ICNP (International Conference on Network Protocols)
The War Between Mice and Elephants Presented By Eric Wang Liang Guo and Ibrahim Matta Boston University ICNP
Katz, Stoica F04 EECS 122 Introduction to Computer Networks (Fall 2003) Network simulator 2 (ns-2) Department of Electrical Engineering and Computer Sciences.
A simulation-based comparative evaluation of transport protocols for SIP Authors: M.Lulling*, J.Vaughan Department of Computer science, University college.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #7 TCP New Reno Vs. Reno.
Split-TCP: State of the Union Address Dan Berger 03/03/03.
17/10/2003TCP performance over ad-hoc mobile networks. 1 LCCN – summer 2003 Uri Silbershtein Roi Dayagi Nir Hasson.
Submitters: Stella Pantofel Michael Halperin Igor Berman
Reduced TCP Window Size for VoIP in Legacy LAN Environments Nikolaus Färber, Bernd Girod, Balaji Prabhakar.
Investigating Forms of Simulating Web Traffic Yixin Hua Eswin Anzueto Computer Science Department Worcester Polytechnic Institute Worcester, MA.
EECS122 - UCB1 Measurements and Modeling Table of Contents 1. Measurements Measurements 2. Modeling and its Shortcomings Modeling and its Shortcomings.
Comparing the Accuracy of Network Simulators for Packet-Level Analysis using a Network Testbed Chaudhry Usman Ali UNB, Fredericton.
Network Simulation Internet Technologies and Applications.
1 Ns Tutorial: Case Studies John Heidemann (USC/ISI) Polly Huang (ETH Zurich) March 14, 2002.
Wireless Networking and Systems CSE 590 ns2 tutorial.
Advanced Network Architecture Research Group 2001/11/149 th International Conference on Network Protocols Scalable Socket Buffer Tuning for High-Performance.
Raj Jain The Ohio State University R1: Performance Analysis of TCP Enhancements for WWW Traffic using UBR+ with Limited Buffers over Satellite.
TFRC: TCP Friendly Rate Control using TCP Equation Based Congestion Model CS 218 W 2003 Oct 29, 2003.
1 Network Simulator Tutorial. 2 Network Simulation * Motivation: Learn fundamentals of evaluating network performance via simulation Overview: fundamentals.
TCP performance Sven Ubik FTP throughput capacity load ftp.uninett.no 12.3 Mb/s 1.2 Gb/s 80 Mb/s (6.6%) ftp.stanford.edu 1.3 Mb/s 600.
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.
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.
Transport Layer3-1 TCP throughput r What’s the average throughout of TCP as a function of window size and RTT? m Ignore slow start r Let W be the window.
TCP Behavior Inference Tool Jitendra Padhye, Sally Floyd Presented by Songjie Wei.
Network Simulator Tutorial Wireless Networks. Acknowledgements Material is taken from the presentations by Jim Kurose, University of Massachusetts, Amherst.
1 Sonia FahmyPurdue University TCP Congestion Control Sonia Fahmy Department of Computer Sciences Purdue University
1 Transport Control Protocol for Wireless Connections ElAarag and Bassiouni Vehicle Technology Conference 1999.
The Macroscopic behavior of the TCP Congestion Avoidance Algorithm.
CATNIP – Context Aware Transport/Network Internet Protocol Carey Williamson Qian Wu Department of Computer Science University of Calgary.
Internet research Needs Better Models Sally Floyd, Eddie Kohler ISCI Center for Internet Research, Berkeley, California Presented by Max Podlesny.
Midterm Review Chapter 1: Introduction Chapter 2: Application Layer
U Innsbruck Informatik - 1 Specification of a Network Adaptation Layer for the Grid GGF7 presentation Michael Welzl University.
Sandeep Kakumanu Smita Vemulapalli Gnan
DMET 602: Networks and Media Lab
(Modified from Polly Huang’s and last year’s original)
Window Control Adjust transmission rate by changing Window Size
Satellite TCP Lecture 19 04/10/02.
TCP Vegas: New Techniques for Congestion Detection and Avoidance
Introduction to ns-2: “The” Network Simulator
Khiem Lam Jimmy Vuong Andrew Yang
TCP-LP Distributed Algorithm for Low-Priority Data Transfer
TCP Westwood(+) Protocol Implementation in ns-3
Removing Exponential Backoff from TCP
A Cognitive Approach for Cross-Layer Performance Management
Process-to-Process Delivery:
ECE 599: Multimedia Networking Thinh Nguyen
The Future of Transport
Karthik Sadasivam Banuprasad Samudrala
Internet Research Needs a Critical Perspective Towards Models
Sven Ubik TCP performance Sven Ubik
ECEN “Internet Protocols and Modeling”
University of Houston Datacom II Lecture 1B Review Dr Fred L Zellner
RAP: Rate Adaptation Protocol
Ns-3 Tutorial Xin Li.
A Fair Scheduling Scheme for HCF
CS4470 Computer Networking Protocols
Process-to-Process Delivery: UDP, TCP
Internet Research Group at Clemson University
Modeling and Evaluating Variable Bit rate Video Steaming for ax
Presentation transcript:

Ns Tutorial: Case Studies John Heidemann (USC/ISI) Polly Huang (ETH Zurich) March 14, 2002

Road Map Simple examples Case Study TCP web traffic Impact of HTTP and TCP parameters to Web performance Hidden structure behind aggregated Web traffic Provide an entry point Show case ns’s functionality and relevance to the CN program

Presentation Style Slides Script walk-through Live demos with nam (Network AniMator)

Example I: TCP n0 n1 set ns [new Simulator] set n0 [$ns node] set ftp [new Application/FTP] $ftp attach-agent $tcp $ns at 0.2 "$ftp start" $ns at 1.2 ”exit" $ns run $ns duplex-link $n0 $n1 1.5Mb 10ms DropTail set tcp [new Agent/TCP] set tcpsink [new Agent/TCPSink] $ns attach-agent $n0 $tcp $ns attach-agent $n1 $tcpsink $ns connect $tcp $tcpsink

Example II: Web Traffic A Web session – a series of page downloads Number of pages Inter-page time Page size (number of embedded objects) Inter-object time Object size (KB) 5 random variables

Case Study I: Web Performance Impact of TCP and HTTP parameters Try to answer: Will the proposed changes work in a variety of conditions? Should TCP Sack be deployed? Should persistency or pipelining be deployed? Which parameters are more cost effective to tune?

Methodology Methodology Toward a systematic and exhaustive evaluation Select performance critical parameters Use most commonly used values as the base case Tune parameter values to compare to the base case Toward a systematic and exhaustive evaluation Enabled by ns rich library of workload and protocol implementations Contributed code from a huge user/developer community

Parameters and Values HTTP TCP Connection type Packet size persistent, simple, pipelined Number of parallel connections 2, 1, 4 Packet size 576, 1460 Delayed ack on, off Congestion avoidance NewReno, Tahoe, Reno, Sack Initial retransmission timeout 3, 6 sec Timer granularity 100, 500 msec Timestamp option Initial window size 2, 4

Page Download Time – TCP Sack, NewReno, Reno, Tahoe, gradually better Timer-related parameters, no significant impact

Page Download Time - HTTP Simple, persistent, and pipelined connections, gradually better Higher the number of parallel connections, Smaller the range of improvement

TCP vs. HTTP TCP HTTP Impact of TCP Sack is relatively small.

Low vs. High loss - TCP Low loss High loss That tiny bit of advantage in TCP Sack disappears in high-loss case.

Low vs. High loss - HTTP Pipelining loses its advantage when # of parallel connections is high.

Preliminary Findings Will the proposed changes work in a variety of conditions? Not really TCP Sack and HTTP pipelining Should TCP Sack be deployed? Maybe not, if deployment cost is high Should persistency or pipelining be deployed? Maybe yes, but doesn’t make sense to work with too many parallel connections

The Real Message Design decisions need to be validated in the context of the Internet. Layers of protocols, tremendous amount of unknown dynamics Simulation tools like ns can help us track the complexity (within a layer or across layers) Ns en-powers such studies A rich library base A large community contributing to the base

Case Study II: Web Traffic Web traffic is not exact self-similar How does it diverge from exact self-similar? Why is there this divergence?

Self-similarity Distributions of #packets/time unit look alike in different time scale

Wavelet Analysis FFT - frequency decomposition dj WT - frequency and time decomposition dj,k k(dj,k2) / Nj  Ej = 2j(2H-1) C log2Ej = (2H-1) j + log2C Self-Similar log2Ej j

Global Scaling - Trace Round Trip Time

Global Scaling - Simulation

UDP

TCP

Findings Periodicity emerges at round-trip time scales That periodicity dominates the traffic behavior at those scales TCP ack clocking plays a critical role Need to be cautious when to use or not use mathematical self-similar models

The Real Message Proposed (traffic) models need to be validated in the context of the Internet. Mechanisms can influence Internet characteristics in a surprising way Simulation tools like ns can help us track the implicit complexity Ns en-powers such studies A rich library base A large community contributing to the base

Concluding remarks Learning ns Research with ns video recording (huang@tik.ee.ethz.ch) on-line tutorials (audio and slides) tons of info from the ns web site Research with ns promote sharing and confidence