Submitters: Stella Pantofel Michael Halperin Igor Berman

Slides:



Advertisements
Similar presentations
Katz, Stoica F04 EECS 122 Introduction to Computer Networks (Fall 2004) Network simulator 2 (ns-2) Department of Electrical Engineering and Computer Sciences.
Advertisements

NS2-TCP Internet Computing KUT ( Youn-Hee Han It is licensed under a Creative Commons Attribution.
Introduction to Network Simulator NS-2 Part I
1 ns-2 Tutorial, part 2 Dave Anderson, Xiaowei Yang (Modified from Polly Huang’s slides)
1 NS Fundamentals (contd..) Padma Haldar USC/ISI.
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,
Network Simulator (NS) Prof. Nelson L. S. da Fonseca State University of Campinas, Brazil.
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.
Improving TCP Performance over Mobile Ad Hoc Networks by Exploiting Cross- Layer Information Awareness Xin Yu Department Of Computer Science New York University,
NS TUTORIAL Padma Haldar USC/ISI 09/04/02.
Katz, Stoica F04 EECS 122 Introduction to Computer Networks (Fall 2003) Network simulator 2 (ns-2) Department of Electrical Engineering and Computer Sciences.
AQM for Congestion Control1 A Study of Active Queue Management for Congestion Control Victor Firoiu Marty Borden.
Reduced TCP Window Size for Legacy LAN QoS II Niko Färber Sept. 20, 2000.
A simulation-based comparative evaluation of transport protocols for SIP Authors: M.Lulling*, J.Vaughan Department of Computer science, University college.
Computer Networks NS. Features F Event driven simulator –developed at UC Berkeley F Network Topologies –nodes (connectivity), links (bandwidth, delay)
Questions  RED vs. DropTail  What’s the key difference?  Why RED drops packet randomly?  What’s the major effect if using RED.
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
1 TCP-LP: A Distributed Algorithm for Low Priority Data Transfer Aleksandar Kuzmanovic, Edward W. Knightly Department of Electrical and Computer Engineering.
1 Modified Schedule Day 2 Network AniMator (nam) Examples simple.tcl mcast.tcl Day 3 Wireless (ad-hoc)
Random Early Detection Gateways for Congestion Avoidance
17/10/2003TCP performance over ad-hoc mobile networks. 1 LCCN – summer 2003 Uri Silbershtein Roi Dayagi Nir Hasson.
Congestion Control for High Bandwidth-Delay Product Environments Dina Katabi Mark Handley Charlie Rohrs.
Ns Simulation Final presentation Stella Pantofel Igor Berman Michael Halperin
EECS122 - UCB1 Measurements and Modeling Table of Contents 1. Measurements Measurements 2. Modeling and its Shortcomings Modeling and its Shortcomings.
Introduction to Network Simulator NS-2 Part II
Network Simulator 2(NS2) Yingyue Xu 8/25/2015. Overview: The Network simulator (NS): discrete event simulator for networks. supports wired, wireless,
Network Simulator (NS2) 1 Tutorial on Network Simulator (NS2) Hemant Kumar Rath Infonet Lab, Dept of Electrical Engineering IIT Bombay, Mumbai
NS2 Agents Leo Bhebhe. Contents Introduction Application Composition Attaching Transport Agents to Nodes UDP Agent TCP Agents SCTP Agents Agent SRM.
1 Ns Tutorial: Case Studies John Heidemann (USC/ISI) Polly Huang (ETH Zurich) March 14, 2002.
Wireless Networking and Systems CSE 590 ns2 tutorial.
10b_ns: CSci551 SP2002 Friday © 2002 John Heidemann1 NS Tutorial, Class 10 CSci551: Computer Networks SP2002 Friday Section John Heidemann.
ACN: RED paper1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking, Vol.1, No. 4, (Aug.
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.
NetFlow Very useful for traffic analysis Very useful for traffic analysis Standard sampler: Standard sampler: –Cisco Netflow –Juniper Traffic Sampling.
1 Network Simulator Tutorial. 2 Network Simulation * Motivation: Learn fundamentals of evaluating network performance via simulation Overview: fundamentals.
Internet Computing KUT Youn-Hee Han
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.
Chapter 4 Random Number Generator Speaker : H.M. Liang.
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.
Network Simulator 2. Introduction Open source network simulator NS uses two languages: C++ and OTcl  C++ is fast to run but slower to change Kernel 
Lab The network simulator ns The network simulator ns Allows us to watch evolution of parameters like cwnd and ssthresh Allows us to watch evolution of.
CDA6530: Performance Models of Computers and Networks Chapter 10: Introduction to Network Simulator (NS2) TexPoint fonts used in EMF. Read the TexPoint.
1 Transport Control Protocol for Wireless Connections ElAarag and Bassiouni Vehicle Technology Conference 1999.
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.
Applications and transport agent API 許庭瑋.
TCP continued. Discussion – TCP Throughput TCP will most likely generate the saw tooth type of traffic. – A rough estimate is that the congestion window.
Network Topology. Network Topology Cont. Sender = 0 and Receiver = 5 Sender = 0 and Receiver = 5 Sender transmits ftp traffic over TCP/IP to receiver.
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 
Other Methods of Dealing with Congestion
DMET 602: Networks and Media Lab
(Modified from Polly Huang’s and last year’s original)
Network Simulator Tutorial
Choe, Hyun Jung (Stella)
Introduction to ns-2: “The” Network Simulator
Ns Tutorial: Case Studies
Karthik Sadasivam Banuprasad Samudrala
Presentation transcript:

Submitters: Stella Pantofel Michael Halperin Igor Berman NS2 First Report Submitters: Stella Pantofel Michael Halperin Igor Berman

Simulation of Explicit Congestion Notification(ECN) and Random Early Detection(RED) With TCP Reno and TCP Sack

The outline of the project Using NS-2 simulator, we simulate a congested network that uses RED with ECN with following options: TCP Reno / TCP SACK Different RED threshold parameters . Variable number of connections. The network will have usual links and a satellite link. We will supply results (graphs) that compare the throughput and the congestion window behavior.

Example Topologies : The main idea of any chosen topology is to create a bottle neck in order to simulate the congestion problem. In the 1st case the link zero-one is the bottle neck of the topology. In the 2nd case the link two-three is the bottle neck.

Description of NS2 options using Tcl Defining variables/constants: set NodeNumber 10 Comments: # this is comment New instance of simulator: set ns [new Simulator] New node: set N [$ns node] New link: $ns <kind of link> <src> <dst> <bandwidth><delay><kind of queue> Example: set link [$ns simplex-link $N $D 2Mb 1ms RED]

Ns2 options continue… New protocol agent: Attaching to node some agent set tcpAgent [new Agent/TCP/Newreno] set tcpAgetn [new Agent/TCP/Sack1] Attaching to node some agent $ns attach-agent $n0 $tcpAgent And sink agent set sink [new Agent/TCPSink/DelAck] set sink [new Agent/TCPSink/Sack1] $ns attach-agent $n4 $sink Connecting tcp and sink agents: $ns connect $tcp $sink

Parameters to Tcp Agent Size of window: $tcp set window_ 8000 Size of packet $tcp set packetSize_ 552 Flow id: $tcp set fid_ $k Ecn option: $tcp set ecn_ 1

Creating new application over Tcp agent Creation: set ftp [new Application/FTP] Attaching: $ftp attach-agent $tcp Type: $ftp set type_ FTP

Scheduling Events In format of: $ns2 at <time> <event> Examples: $ns at 0.1 "$ftp start“ $ns at 124.0 "$ftp stop“ And at the end: $ns run

Red Queue Parameters: Queue/RED set thresh_ 5 Queue/RED set maxthresh_ 15 Queue/RED set q_weight_ 0.002 Remark: Parameters should be set, before defining new instance of queue.

ECN options Red queue marks messages rather than throws them away: Queue/RED set setbit_ true : turning option on $redq set setbit_ true : defining particular queue Tcp agent have to support ecn option: Agent/TCP set old_ecn_ 1 : turning option on $tcpAgent set ecn_ 1 : defining particular agent

Error model over the link Creation of loss module: set loss_module [new ErrorModel] Rate of loosing packets: $loss_module set rate_ 0.2 Loss module uses random generator of uniformly distributed random variable: $loss_module ranvar [new RandomVariable/Uniform] Where go lost packets to: $loss_module drop-target [new Agent/Null] Connecting loss model with link between 2 nodes: $ns lossmodel $loss_module $n2 $n3

Random variables and their uses Delays between connections. Delays of the links. Size of data. Example: Delays between connections are distributed exponentially:

Random variables and their uses continue… Define generator for random variable: set rng [new RNG] Define seed to generator (if 0 generates each time new sequence of values. $rng2 seed 2 Define new random variable and parameters to it: set RV [new RandomVariable/Exponential] $RV set avg_ 0.3 $RV use-rng $rng1 Use: set t [expr $t + [$RV value]] $tcp set starts $t

Traces of the simulation Simulator allows to get information about the events registered in the network. Example: $ns trace-all <filename> The output file will contain following data: <event><time><source><destination><flags> and more… By using these files as input to different scripts we can calculate desired statistics. Example: throughput per time unit on any specified link.

Congestion Window Behavior Each time unit we sample the window size of the given TCP connection. The command we use in order to sample: $tcp set cwnd_ Cwnd_ is the current window size of the TCP connection The result is recorded in a special file. Later on this file is processed and a graph is created from its data