Network Simulator 2 Network Simulator 2 Practice SungKyunKwan-Univ Mobile Computing LAB (http://csn.skku.ac.kr) 안혜환

Slides:



Advertisements
Similar presentations
1 NS-2 Tutorial COMP R2 University of Manitoba March 4, 2009.
Advertisements

Wireless Communication : LAB 3
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.
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,
LAB 3 NS2 Preliminaries. Contents TCL/OTCl Fundamentals Creating Network Setting Connections Generating Traffic Inserting Errors Configuring for multicast.
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.
Highly-Resilient, Energy-Efficient Multipath Routing in Wireless Sensor Networks Computer Science Department, UCLA International Computer Science Institute,
Emulatore di Protocolli di Routing per reti Ad-hoc Alessandra Giovanardi DI – Università di Ferrara Pattern Project Area 3: Problematiche di instradamento.
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.
SANS A Simple Ad hoc Network Simulator Nicolas Burri Roger Wattenhofer Yves Weber Aaron Zollinger.
Matching Data Dissemination Algorithms to Application Requirements John Heidermann, Fabio Silva, Deborah Estrin Presented by Cuong Le (CPSC538A)
WSN Simulation Template for OMNeT++
EECS122 - UCB1 Project 3: ns Simulation of Application-Level Routing Improve the application performance by user-level / application-level routing. Understand.
Adaptive Self-Configuring Sensor Network Topologies ns-2 simulation & performance analysis Zhenghua Fu Ben Greenstein Petros Zerfos.
Color Aware Switch algorithm implementation The Computer Communication Lab (236340) Spring 2008.
TOSSIM: Visualizing the Real World Philip Levis, Nelson Lee, Dennis Chi and David Culler UC Berkeley NEST Retreat, January 2003.
EECS122 - UCB1 Measurements and Modeling Table of Contents 1. Measurements Measurements 2. Modeling and its Shortcomings Modeling and its Shortcomings.
November 9th, 2011 Dr. Janise McNair, Paul Muri
Minor Thesis Presentation By: Junaid M. Shaikh Supervisor: Dr. Ivan Lee 1.
BRITE integration with ns-3 Joshua Pelkey and Dr. George Riley Wns3 March 25, 2011.
Tuning the Carrier Sensing Range of IEEE MAC Jing Deng,Ben Liang and Pramod K. Varshney Univ. of New Orleans Globecom 2004.
Redes Inalámbricas Máster Ingeniería de Computadores 2008/2009 Tema 7.- CASTADIVA PROJECT Performance Evaluation of a MANET architecture.
1 Chalermek Intanagonwiwat (USC/ISI) Ramesh Govindan (USC/ISI) Deborah Estrin (USC/ISI and UCLA) DARPA Sponsored SCADDS project Directed Diffusion
NetSim ZigBee Simulation Code Walkthrough in 10 steps
1 Enabling Large Scale Network Simulation with 100 Million Nodes using Grid Infrastructure Hiroyuki Ohsaki Graduate School of Information Sci. & Tech.
Introduction to NS2 -Network Simulator- -Prepared by Changyong Jung.
Heterogeneous Network Topology Generators Amer Zaheer 1.
Patch Based Mobile Sink Movement By Salman Saeed Khan Omar Oreifej.
NS2 - Appendix Ming-Feng Yang. 2 2 Outline NS2 Models NS2 Directory Structure Extending NS2 in OTcl Extending NS2 in C++ NS2 related links.
JIA-HUI HUANG INSTITUTE OF COMPUTER SCIENCE AND INFORMATION ENGINEERING NATIONAL TAIPEI UNIVERSITY OF TECHNOLOGY Network Simulator – NS-2 1.
Intelligent Database Systems Lab 國立雲林科技大學 National Yunlin University of Science and Technology 1 Wireless Sensor Network Wireless Sensor Network Based.
 SNU INC Lab MOBICOM 2002 Directed Diffusion for Wireless Sensor Networking C. Intanagonwiwat, R. Govindan, D. Estrin, John Heidemann, and Fabio Silva.
1 Network Simulator Tutorial. 2 Network Simulation * Motivation: Learn fundamentals of evaluating network performance via simulation Overview: fundamentals.
1 Siphon: Overload Traffic Management using Multi-Radio Virtual Sinks in Sensor Networks Chieh-Yih Wan, Intel Research, et al. SenSys ’05 Presented by.
Internet Computing KUT Youn-Hee Han
Chapter 15 The Addressing Structure in NS. The Default Address Format 32 lower bits for port-id, 1 higher bit for mcast and the rest 32 higher bits for.
College of Engineering Grid-based Coordinated Routing in Wireless Sensor Networks Uttara Sawant Major Advisor : Dr. Robert Akl Department of Computer Science.
Background of Wireless Communication Student Presentations and Projects Wireless Communication Technology Wireless Networking and Mobile IP Wireless Local.
/ 22 1 A Distributed and Efficient Flooding Scheme Using 1-hop Information in Mobile Ad Hoc Networks Hai Liu Xiaohua Jia Peng-Jun Wan Dept. of Comput.
Quality evaluation of MPEG4 video transmission over GPRS networks.. Presented by: Abdullah M. Rana Multimedia Communication.
Mitigating Congestion in Wireless Sensor Networks Bret Hull, Kyle Jamieson, Hari Balakrishnan Networks and Mobile Systems Group MIT Computer Science and.
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.
Performance Validation of Mobile IP Wireless Networks Presented by Syed Shahzad Ali Advisor Dr. Ravi Pendse.
Group Management in Mobile Ad Hoc Networks Revathi Ranganathan Preeti Venkateswaran.
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 
NS-2 Training 4/15/2013. Introduction  NS-2: Network Simulator Generation 2  Latest Release: 2.35 / Nov. 4, 2011 
The Creation of NS2 Simulated Environment ( 1 ) LI Chengbo
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.
Throughput-Oriented MAC for Mobile Ad Hoc Networks with Variable Packet Sizes Fan Wang, Ossama Younis, and Marwan Krunz Department of Electrical & Computer.
Grid-Based Energy-Efficient Routing from Multiple Sources to Multiple Mobile Sinks in Wireless Sensor Networks Kisuk Kweon, Hojin Ghim, Jaeyoung Hong and.
KAIS T Location-Aided Flooding: An Energy-Efficient Data Dissemination Protocol for Wireless Sensor Networks Harshavardhan Sabbineni and Krishnendu Chakrabarty.
DETECTION OF WORMHOLE ATTACK IN MANET
Overview of VANET Project(2011) on NS2 Perspective Part 1 of 2 Jae-Myeong Lee Human-centric Mobile Computing Lab.
Jae Chung and Mark Claypool
ECE 6610 Sandeep Kakumanu GNAN research Lab
Simulators for Sensor Networks
Introduction to ns-2: “The” Network Simulator
Introduction to NS Srinath Perur.
Including Your Modules into NS 2
任課教授:陳朝鈞 教授 學生:王志嘉、馬敏修
Karthik Sadasivam Banuprasad Samudrala
Presentation transcript:

Network Simulator 2 Network Simulator 2 Practice SungKyunKwan-Univ Mobile Computing LAB ( 안혜환

Network Simulator 2 Contents  User’s view of NS-2  What are Tcl, Otcl, Tclcl, NS ?  Tcl Function Implementation  Otcl Function Implementation  Very Important Tcl “ns-lib.tcl” Otcl Library  Add New Uniform Distribution Agent  Add New Uniform Distribution Agent (WinCam)  Binding Variable  Add New Application  Implementation :33% Packets are not sent  Drop and Not Drop Packet (WinCam)  Sensor Network Simulation  Topology Generator “setdest” (WinCam)  Experiment (WinCam)  Performance Evaluation  Sink and Source Node Transmission Frequency  Agent Level and Entire Network Transmission Frequency  Reference

Network Simulator 2 User’s view of NS-2 Network Topology Event It can be available by using script such as “awk” OTcl C++

Network Simulator 2 What are Tcl, Otcl, Tclcl, NS ? Linkage Like “C++” Like “C” Ns is Not Simulator but Object set ns [new Simulator] common/simulator.cc C++ Object

Network Simulator 2 Tcl Function Implementation

Network Simulator 2 Otcl Function Implementation

Network Simulator 2 Very Important Tcl “ns-lib.tcl” Otcl Library set ns [ new Simulator] ns-allinone-xxx/ ns-2xx/ Makefile TCL_LIB source ns-autoconf.tcl source ns-address.tcl source ns-node.tcl source ns-rtmodule.tcl source ns-hiernode.tcl source ns-mobilenode.tcl source ns-bsnode.tcl source ns-link.tcl …….....

Network Simulator 2 Add New Uniform Distribution Agent 1/2

Network Simulator 2 Add New Uniform Distribution Agent 2/2  Modify : “ns-allinone2.xx/ns-2.xx/Makefile  OBJ_CC= common/ex-uniform.o  Re Compile : make clean, make depend, make

Network Simulator 2 Add New Uniform Distribution Agent (WinCam)  Result

Network Simulator 2 Variable Binding

Network Simulator 2 Add New Application  New Data Structure  New Application C++  New Application Header  New Agent C++  New Agent Header  Modify packet.h  Modify ns-packet.tcl  Modify agent.h  Modify app.h  Modify /ns-allinone-2.xx/ns-2.xx/Makefile  Set Default Values in ns-default.tcl  NS-2 Recompile  Implementation : 33% Uniform Distribution Send Loss Drop Modeling

Network Simulator 2 Implementation :33% Packets are not sent

Network Simulator 2 Drop and Not Drop Packet (WinCam) Drop PacketNot Drop Packet

Network Simulator 2 Sensor Network Simulator  Topology Generator  Simulation - Directed Diffusion - Flood  Experiment  Performance Evaluation

Network Simulator 2 Topology Generator “setdest” (WinCam)

Network Simulator 2 Experiment (WinCam)  Sensor network 1000 nodes with Flooding  Sensor network 1000 nodes with Directed Diffusion

Network Simulator 2 Performance Evaluation  Sink and Source Node Transmission Frequency  Agent Level and Entire Network Transmission Frequency

Network Simulator 2 Sink and Source Node Transmission Frequency

Network Simulator 2 Agent Level and Entire Network Transmission Frequency

Network Simulator 2 Reference  Ns manual  NS by example

Network Simulator 2 Thank You Q & A