Define options(1/2) #channel type set val(chan) Channel/WirelessChannel # radio-propagation model set val(prop) Propagation/TwoRayGround # network interface.

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.
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.
 شبیه سازی شبکه توسط نرم افزار NS2  ارائه دهنده : حسین معمارزاده.
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.
Network Simulator 2 Tejas Vasavada.
1 Network Simulator (NS-2). 2 講義 Network Simulator (NS2) Part 1: 下載 Part 2: 安裝與測試 Part 3: 劇本 Part 4: 數據.
CS603 Summer II 2003 Homework #2 Presentation Weng Liong Low.
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
Mobile and cellular IP CS 215 W 01. Mobile IP Mobile IP allows a computer to roam freely on the Internet while being reachable at the same IP address.
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.
Networked Software Systems Laboratory Department of Electrical Engineering Technion The Internet communication speed is not as fast as we would like it.
Wireless Network Simulation on NS By Edward Mulimba.
Wireless Sensor Network for Tracking the Traffic in INTERNET Network Routers Supervisor: Mark Shifrin Students: Yuriy Kipnis Nir Bar-Or Networked Software.
Ns Simulation of IEEE SC546 Project (Fall 2002) SOO IL KIM JISUN YOON
Introduction to Network Simulator NS-2 Part II
Routing in Mobile Ad-Hoc Networks An M.Tech. Project by Srinath Perur Guide: Prof. Sridhar Iyer.
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,
Redes Inalámbricas Máster Ingeniería de Computadores 2008/2009 Tema 7.- CASTADIVA PROJECT Performance Evaluation of a MANET architecture.
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.
1 / 10 Mobile Networking in ns Speaker : Mark Yang
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:
MOBILE IP SOMULATION IN NS2 Presenter: 吳寶緣. Outlines  Overview  Hierarchical Address Format  Hierarchical Address Format-ex  MoblieIP Demo  Additional.
Network Simulator-2 Sandeep singla 1998A2A7540. NS-2 A discrete event simulator Focused on modeling network protocols –Wired, wireless –TCP,UDP,unicast,multicast.
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.
OSI Model. Switches point to point bridges two types store & forward = entire frame received the decision made, and can handle frames with errors cut-through.
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
Multiple Gateways Project E Spring Professor Campbell Group members: Adrija Biswas, Will Jenkins, Charalampos Mantelis, Naoya Seta, Nil Unerdem.
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.
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.
Performance Comparison of Ad Hoc Network Routing Protocols Presented by Venkata Suresh Tamminiedi Computer Science Department Georgia State University.
Ch7: Link and Buffer Management. 2 Portrait of A Mobile Node Node ARP Propagation and antenna models MobileNode LL MAC PHY LL CHANNEL LL MAC PHY Classifier:
1 Network Simulator 2 Install Chao-Ying Chiu
ECE 6610 Sandeep Kakumanu GNAN research Lab
Dzmitry Kliazovich, Fabrizio Granelli, University of Trento, Italy
Basics of NS-2 Training in TCL script
Analysis the performance of vehicles ad hoc network simulation based
Dzmitry Kliazovich, Fabrizio Granelli, University of Trento, Italy
Chapter 16 Mobile Networking in ns
NS : The Network Simulator
Mobicom ‘99 Per Johansson, Tony Larsson, Nicklas Hedman
Planned Activities on Computer Networks for Sunday Academy
Ad hoc Routing Protocols
Distributed Routing Protocol in Wireless Network Simulation
NS2 tutorial ChihHeng, Ke (柯志亨) Phd Candidate, EE Department, NCKU
ModelNet: A Large-Scale Network Emulator for Wireless Networks Priya Mahadevan, Ken Yocum, and Amin Vahdat Duke University, Goal:
Introduction to ns-2 Noun Choi Oct. 11, 2007.
Traffic Aware Authors: Date: /28/2006 6/28/2006
Aga Zhang Dependable Computing Lab
TexPoint fonts used in EMF.
Presentation transcript:

Define options(1/2) #channel type set val(chan) Channel/WirelessChannel # radio-propagation model set val(prop) Propagation/TwoRayGround # network interface type set val(netif) Phy/WirelessPhy # MAC type set val(mac) Mac/802_11 # interface queue type set val(ifq) Queue/DropTail/PriQueue # link layer type set val(ll) LL

Define options(2/2) # antenna model set val(ant) Antenna/OmniAntenna # max packet in ifq set val(ifqlen) 50 # number of mobilenodes set val(nn) 2 # routing protocol set val(rp) DSDV

Set up topography object set topo [new Topography] $topo load_flatgrid

Configure node $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF

Create the 2 mobilenodes for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] # disable random motion $node_($i) random-motion 0 }

Provide initial node position $node_(0) set X_ 5.0 $node_(0) set Y_ 2.0 $node_(0) set Z_ 0.0 $node_(1) set X_ $node_(1) set Y_ $node_(1) set Z_ 0.0

Set node movements # Node_(1) starts to move towards node_(0) $ns_ at 50.0 "$node_(1) setdest “ $ns_ at 10.0 "$node_(0) setdest “ # Node_(1) then starts to move away from node_(0) $ns_ at "$node_(1) setdest "

Node-movement/traffic-pattern # how many nodes are simulated set val(nn) 3 set val(cp) "../mobility/scene/cbr-3-test" set val(sc) "../mobility/scene/scen-3-test"

How Load # Define traffic model puts "Loading connection pattern..." source $val(cp) # Define node movement model puts "Loading scenario file..." source $val(sc)

Define node initial position in nam for {set i 0} {$i < $val(nn)} {incr i} { # 20 defines the node size in nam, must adjust it according to your scenario # The function must be called after mobility model is defined $ns_ initial_node_pos $node_($i) 20 }

Set up for hierarchical routing $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

Create God create-god [expr $opt(nn) + $num_bs_nodes]

Create wired nodes set temp { } for {set i 0} {$i < $num_wired_nodes} {incr i} { set W($i) [$ns_ node [lindex $temp $i]] } Ex:set W(0) [$ns_ node 0.0.0]

Configure for base-station node $ns_ node-config -wiredRouting ON set temp { } set BS(0) [$ns_ node [lindex $temp 0]]

Configure for mobilenodes $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]] }

MobileIP in wired-cum-wireless topology

Set Variable set opt(nn) 1 set num_wired_nodes 2 #this is not really used here. #set num_bs_nodes 2

Set domain # number of domains AddrParams set domain_num_ 3 # number of clusters in each domain lappend cluster_num AddrParams set cluster_num_ $cluster_num # number of nodes in each cluster lappend eilastlevel AddrParams set nodes_num_ $eilastlevel

Create God # 2 for HA and FA create-god [expr $opt(nn) + 2]

Create wired nodes #set temp { } for {set i 0} {$i < $num_wired_nodes} {incr i} { set W($i) [$ns_ node [lindex $temp $i]] }

Create HA and FA $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 # Position (fixed) for base-station nodes (HA & FA). $HA set X_ $HA set Y_ $HA set Z_ $FA set X_ $FA set Y_ $FA set Z_

Create MH $ns_ node-config -wiredRouting OFF set MH [$ns_ node 1.0.1] set HAaddress [AddrParams addr2id [$HA node-addr]] [$MH set regagent_] set home_agent_ $HAaddress $MH set Z_ $MH set Y_ $MH set X_ # MH starts to move towards FA $ns_ at "$MH setdest " # goes back to HA $ns_ at "$MH setdest "