1 / 10 Mobile Networking in ns Speaker : Mark Yang 93.03.09.

Slides:



Advertisements
Similar presentations
Network Modeling and Simulation with Network Simulator 2 (ns2)
Advertisements

Jump to first page NS Tutorial: mobile and wireless network simulation Ya Xu USC/ISI June 18, 1999.
How (not) to Simulate Wireless Networks with ns Brad Karp University College London ns Workshop MSR Cambridge 9 th December, 2005.
Wireless world in NS Padma Haldar USC/ISI.
Ad-Hoc Networks: Routing Algorithms
Ns-2 Tutorial Exercise (1) Multimedia Networking Group, The Department of Computer Science, UVA Jianping Wang Adopted from Nicolas’s slides Jianping Wang,
NS Tutorial (For CMPE 252 A) By Duy Nguyen 10/25/2012.
Network Simulator (NS) Prof. Nelson L. S. da Fonseca State University of Campinas, Brazil.
How to Add a New Protocol in NS2 Xu Leiming CSCW Lab. at CS Dept., Tsinghua Univ. June 1, 2001.
Introduction to Wireless simulations Shao-Cheng Wang.
Simulation of GPRS MS-BS Interface Using ns-Network Simulator Dual Degree Presentation by Richa Jain (96D07007) Department of Electrical Engineering, Indian.
報告者:黃亮維 NS2 Chapter 26 Trace Support. Outline  Trace Support ‧ OTcl Helper Functions  Library support and examples  The C++ Trace Class  Trace File.
Network Simulator 2 Tejas Vasavada.
1 Network Simulator (NS-2). 2 講義 Network Simulator (NS2) Part 1: 下載 Part 2: 安裝與測試 Part 3: 劇本 Part 4: 數據.
Day 3 Outline Multicast example (from Day 2) Wireless Misc. utilities
Project Progress Presentation GENERATION OF NS2 TRACE FILES FOR SATELLITE-WIRELESS NETWORKS CS603 - Wireless Communications & Networks Summer II 2003 Wasim.
Yinfei Pan SUNY Binghamton Computer Science
Jump to first page NS Tutorial: mobile and wireless network simulation Ya Xu USC/ISI September 10th, 1999.
1 2nd European ns-2 Workshop Polly Huang ETH Zurich April 18 & 19, 2001.
Wireless Network Simulation on NS By Edward Mulimba.
Ns Simulation of IEEE SC546 Project (Fall 2002) SOO IL KIM JISUN YOON
Introduction to Network Simulator NS-2 Part II
Simulators for Sensor Networks Sagnik Bhattacharya 9/12/2001.
NS2 Tutorial Aga Zhang Dependable Computing Lab. Outline Introduction Fundamental Skills - Tcl and OTcl Network Simulator - ns-2 Study Project - Mobile.
Network Simulator 2(NS2) Yingyue Xu 8/25/2015. Overview: The Network simulator (NS): discrete event simulator for networks. supports wired, wireless,
Wireless Networking and Systems CSE 590 ns2 tutorial.
Introduction to ns-2 Noun Choi Oct. 11, Outline Background ns-2 Internals Short demo Troubleshooting Reference links Q & A.
1 Introduction to Ns-2 Zhibin WU WINLAB, ECE Dept. Rutgers U.
NS2 Tutorial for CS740 Jianming Wu *modified from Aga Zhang.
Introduction to Mobility & Network Simulator 2 (NS-2)
NS2 - Wireless Network Ming-Feng Yang. 2 2 Outline Basic wireless model Extensions wireless model Example - Ad hoc network Example – WLAN Example – Mobile.
NS2 tutorial ChihHeng, Ke ( 柯志亨 ) Phd Candidate, EE Department, NCKU MSN:
Define options(1/2) #channel type set val(chan) Channel/WirelessChannel # radio-propagation model set val(prop) Propagation/TwoRayGround # network interface.
MOBILE IP SOMULATION IN NS2 Presenter: 吳寶緣. Outlines  Overview  Hierarchical Address Format  Hierarchical Address Format-ex  MoblieIP Demo  Additional.
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
Dynamic Source Routing (DSR) Sandeep Gupta M.Tech - WCC.
Network Simulator ns-2. 2 Agenda Introduction Interface Tcl and OTcl TclCL Simulator Wired network Wireless network Program Assignment.
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.
Scuola Superiore Sant’Anna Synchronize the WSNs Paolo Pagano (ReTiS Lab)
Quality evaluation of MPEG4 video transmission over GPRS networks.. Presented by: Abdullah M. Rana Multimedia Communication.
1 Network Simulation and Testing Polly Huang EE NTU
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.
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
Use of Mobility models in ns-2 Karthik Dantu Shyam Kapadia.
July 7, 2003 Building a Wireless LAN traffic test case in ns2 Radio Science Laboratory Department of Electrical and Computer Engineering The University.
IP-BASED MOBILITY FOR WIRELESS LANS WITH THE NETWORK SIMULATOR NS Frank Christahl, Andreas Huber, Matthias Rosenschon University of Applied Sciences Giessen-Friedberg.
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 Simulator with Mobile IP 2003 Huang – Yu Liu.
PERFORMANCE EVALUATION OF COMMON POWER ROUTING FOR AD-HOC NETWORK Zhan Liang Supervisor: Prof. Sven-Gustav Häggman Instructor: Researcher Boris Makarevitch.
FAMU-FSU COLLEGE OF ENGINEERING Department of Electrical and Computer Engineering Students: Hung Khong – Derek Vollmer Instructor: Dr Ming Yu Computer.
DMET 602: Networks and Media Lab Amr El Mougy Yasmeen EssamAlaa Tarek.
1 Network Simulator 2 Install Chao-Ying Chiu
Basics of NS-2 Training in TCL script
Chapter 16 Mobile Networking in ns
NS : The Network Simulator
Mobicom ‘99 Per Johansson, Tony Larsson, Nicklas Hedman
Ad Hoc Networks - Performance
Planned Activities on Computer Networks for Sunday Academy
NS2 tutorial ChihHeng, Ke (柯志亨) Phd Candidate, EE Department, NCKU
Introduction to ns-2 Noun Choi Oct. 11, 2007.
Aga Zhang Dependable Computing Lab
TexPoint fonts used in EMF.
Presentation transcript:

1 / 10 Mobile Networking in ns Speaker : Mark Yang

2 / 10 Abstract  Basic wireless model Pure wireless LANs Multihop ad-hoc networks  Extensions wireless model Wired-cum-wireless MobileIP

3 / 10 Basic – creating wireless topology set topo [new Topography] $topo load_flatgrid $opt(x) $opt(y) where opt(x) and opt(y) are the boundaries used in simulation.

4 / 10 Basic – node config $ns_ node-config-adhocRouting DSDV or DSR or TORA or AODV \ -topoInstance $topo \ -addressType hierarchical \ -wiredRouting ON \ -mobileIP ON \ -llType LL \ -macType Mac/802_11 \ -antType Antenna/OmniAntenna \ -propType Propagation/TwoRayGround \ -phyType Phy/WirelessPhy \ -channelType Channel/WirelessChannel \ -ifqType Queue/DropTail/PriQueue \ -ifqLen \ -agentTrace ON or OFF \ -routerTrace ON or OFF \ -macTrace ON or OFF \ -movementTrace ON or OFF Wired-cum-wireless MobileIP

5 / 10 Basic – node movement $node set X_ $node set Y_ $node set Z_  Start-position $ns at $time $node setdest  Future destinations

6 / 10 Basic – new traces $ns use-newtrace s -t Hs 1 -Hd -1 -Ni 1 -Nx Ny Nz Ne Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is Id It message -Il 32 -If 0 -Ii 0 -Iv 32 event s,r,d,f time id for next hop next hop destination node id node’s x- coordinate node’s z- coordinate node’s y- coordinate node energy level trace level reason for this event duration dest’s ethernet addr source’s ethernet addr ethernet type source’s addr.port dest’s addr.port packet type packet size flow id unique id ttl value -H: next hop info -N: node info -M: MAC level info -I: IP level info

7 / 10 Basic – traffic scenario generator source pattern-file ns cbrgen.tcl -type cbr -nn 10 -seed 1.0 -mc 8 -rate 4.0 > pattern-file ns cbrgen.tcl -type tcp -nn 25 -seed 0.0 -mc 8 > pattern-file # nodes: 10, max conn: 8, send rate: 0.25, seed: 1.0 # 1 connecting to 2 at time set udp_(0) [new Agent/UDP] $ns_ attach-agent $node_(1) $udp_(0) set null_(0) [new Agent/Null] $ns_ attach-agent $node_(2) $null_(0) set cbr_(0) [new Application/Traffic/CBR] $cbr_(0) set packetSize_ 512 $cbr_(0) set interval_ 0.25 $cbr_(0) set random_ 1 $cbr_(0) set maxpkts_ $cbr_(0) attach-agent $udp_(0) $ns_ connect $udp_(0) $null_(0) $ns_ at "$cbr_(0) start“ : Introduce random “noise” in the scheduled departure time.

8 / 10 Basic – movement scenario generator source pattern-file ~ns/indep-utils/cmu-scen-gen/setdest./setdest -n 3 -p 2.0 -s t 300 -x 600 -y 600 > pattern-file set god_ [God instance] $ns_ at "$node_(2) setdest ” $ns_ at "$node_(1) setdest ” $ns_ at "$node_(0) setdest ” $god_ set-dist $god_ set-dist $god_ set-dist $node_(2) set Z_ $node_(2) set Y_ $node_(2) set X_ $node_(1) set Z_ $node_(1) set Y_ $node_(1) set X_ $node_(0) set Z_ $node_(0) set Y_ $node_(0) set X_ : The shortest path between node 1 and node 2 is 2 hops.

9 / 10 Extensions – wired-cum-wireless $ns_ node-config -addressType hierarchical AddrParams set domain_num_ 2 lappend cluster_num 2 1 AddrParams set cluster_num_ $cluster_num lappend eilastlevel AddrParams set nodes_num_ $eilastlevel set temp { } for {set i 0} {$i < $num_wired_nodes} {incr i} { set W($i) [$ns_ node [lindex $temp $i]] } $ns_ node-config -wiredRouting ON set temp { } set BS(0) [$ns_ node [lindex $temp 0]] $BS(0) random-motion 0 $ns_ node-config -wiredRouting OFF for {set j 0} {$j < $opt(nn)} {incr j} { set node_($j) [ $ns_ node [lindex $temp [expr $j+1]] ] $node_($j) base-station [AddrParams addr2id [$BS(0) node-addr]] } W(0) W(1) BS(0) node_(1) node_(0) node_(2) domain 0 domain 1 cluster 0 cluster 1 cluster 0 0,0,0 0,1,0 1,0,0 1,0,1 1,0,2 1,0,3

10 / 10 Extensions – MobileIP $ns_ node-config -mobileIP ON set HA [$ns_ node 1.0.0] set FA [$ns_ node 2.0.0] $HA random-motion 0 $FA random-motion 0 set MH [$ns_ node 1.0.1] set node_(0) $MH set HAaddress [AddrParams addr2id [$HA node-addr]] [$MH set regagent_] set home_agent_ $HAaddress W(0) W(1) HA MH FA