[ns] sensing range and values for RXThreshold ans CSThreshold
Hi all! I want to use 802.11 and 802.15.4 in my WSN simulation as a mac layer protocol... can any body tell me the values for RXThreshold and CSThreshold for node seperation of 1. 50 meters 2. 100 meters. for both 802.11 and 802.15.4. Also any body have done some work with AODV and S-MAC? please pass me some details. Thanks
[ns] Wireless mesh Simulation
Hello Everyone, I am doing a simulation on wireless mesh network. I have created a scenario. But i have few problems. Hope you will help me.My problems are... 1. In case of wireless to wireless transmission my code is not using any base stations. So I want to change the transmission range of the mobile nodes (so that they use the base station for wireless to wireless transmission.) 2. why my nodes are overlapped. Though i have set the node position?? 3. Is the Base station creation have any problem?? 4.Finally what is the function of Phy/WirelessPhy set CSThresh_ Phy/WirelessPhy set RXThresh_ Phy/WirelessPhy set Pt_ Phy/WirelessPhy set Pt_ these variables?? From where I can change the value of these variables? Please answer my questions. I have 10 days left for submitting my project. My code is given below... # wireless simulation related parameters # set opt(chan) Channel/WirelessChannel ;# channel type set opt(prop) Propagation/TwoRayGround ;# radio-propagation model set opt(netif) Phy/WirelessPhy ;# network interface type set opt(mac) Mac/802_11 ;# MAC type set opt(ifq) Queue/DropTail/PriQueue ;# interface queue type set opt(ll) LL ;# link layer type set opt(ant) Antenna/OmniAntenna ;# antenna model set opt(ifqlen) 50 ;# max packet in ifq set opt(nn) 9 ;# number of mobilenodes set opt(adhocRouting) DSDV ;# routing protocol set opt(x) 670 ;# x coordinate of topology set opt(y) 670 ;# y coordinate of topology set opt(cp) "" ;# connection pattern file set opt(sc) "" ;# node movement file. set opt(seed) 0.0 ;# seed for random number gen. set opt(stop) 5 ;# time to stop simulation set opt(ftp1-start) 1.7 set opt(ftp2-start) 3.0 set opt(ftp3-start) 2.0 set opt(ftp4-start) 2.5 set num_wired_nodes 3 set num_bs_nodes 3 # Initialization # # 1. create simulator # # 2. tracing # # 3. define topography # set ns_ [new Simulator] set tracefd [open mesh.tr w] $ns_ trace-all $tracefd set namtracefd [open mesh.nam w] $ns_ namtrace-all-wireless $namtracefd $opt(x) $opt(y) set topo [new Topography] $topo load_flatgrid $opt(x) $opt(y) create-god [expr $opt(nn) + $num_bs_nodes] # check for boundary parameters and random seed if { $opt(x) == 0 || $opt(y) == 0 } { puts "No X-Y boundary values given for wireless topology\n" } if {$opt(seed) > 0} { puts "Seeding Random number generator with $opt(seed)\n" ns-random $opt(seed) } # Define/create/initialize nodes # # 1. define nodes # # 2. create nodes # # 3. disable random motion # # 4. coordinates of wilress nodes # # 5. nam setting, size and position # # set up for hierarchical routing $ns_ node-config -addressType hierarchical AddrParams set domain_num_ 4 ;# number of domains lappend cluster_num 3 1 1 1 ;# number of clusters in each domain AddrParams set cluster_num_ $cluster_num lappend eilastlevel 1 1 1 4 4 4 ;# number of nodes in each cluster AddrParams set nodes_num_ $eilastlevel ;# of each domain #create wired nodes set temp {0.0.0 0.1.0 0.2.0} ;# hierarchical addresses for wired domain for {set i 0} {$i < $num_wired_nodes} {incr i} { set W($i) [$ns_ node [lindex $temp $i]] } $W(0) set X_ 95.0 $W(0) set Y_ 146.0 $W(0) set Z_ 0.0 $W(1) set X_ 36.0 $W(1) set Y_ 113.0 $W(1) set Z_ 0.0 $W(2) set X_ 24.0 $W(2) set Y_ 62.0 $W(2) set Z_ 0.0 # configure for base-station node $ns_ node-config -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channelType $opt(chan) \
[ns] Wireless mesh Simulation
Hello Everyone, I am doing a simulation on wireless mesh network. I have created a scenario. But i have few problems. Hope you will help me.My problems are... 1. In case of wireless to wireless transmission my code is not using any base stations. So I want to change the transmission range of the mobile nodes (so that they use the base station for wireless to wireless transmission.) 2. why my nodes are overlapped. Though i have set the node position?? 3. Is the Base station creation have any problem?? 4.Finally what is the function of Phy/WirelessPhy set CSThresh_ Phy/WirelessPhy set RXThresh_ Phy/WirelessPhy set Pt_ Phy/WirelessPhy set Pt_ these variables?? From where I can change the value of these variables? Please answer my questions. I have 10 days left for submitting my project. My code is given below... # wireless simulation related parameters # set opt(chan) Channel/WirelessChannel ;# channel type set opt(prop) Propagation/TwoRayGround ;# radio-propagation model set opt(netif) Phy/WirelessPhy ;# network interface type set opt(mac) Mac/802_11 ;# MAC type set opt(ifq) Queue/DropTail/PriQueue ;# interface queue type set opt(ll) LL ;# link layer type set opt(ant) Antenna/OmniAntenna ;# antenna model set opt(ifqlen) 50 ;# max packet in ifq set opt(nn) 9 ;# number of mobilenodes set opt(adhocRouting) DSDV ;# routing protocol set opt(x) 670 ;# x coordinate of topology set opt(y) 670 ;# y coordinate of topology set opt(cp) "" ;# connection pattern file set opt(sc) "" ;# node movement file. set opt(seed) 0.0 ;# seed for random number gen. set opt(stop) 5 ;# time to stop simulation set opt(ftp1-start) 1.7 set opt(ftp2-start) 3.0 set opt(ftp3-start) 2.0 set opt(ftp4-start) 2.5 set num_wired_nodes 3 set num_bs_nodes 3 # Initialization # # 1. create simulator # # 2. tracing # # 3. define topography # set ns_ [new Simulator] set tracefd [open mesh.tr w] $ns_ trace-all $tracefd set namtracefd [open mesh.nam w] $ns_ namtrace-all-wireless $namtracefd $opt(x) $opt(y) set topo [new Topography] $topo load_flatgrid $opt(x) $opt(y) create-god [expr $opt(nn) + $num_bs_nodes] # check for boundary parameters and random seed if { $opt(x) == 0 || $opt(y) == 0 } { puts "No X-Y boundary values given for wireless topology\n" } if {$opt(seed) > 0} { puts "Seeding Random number generator with $opt(seed)\n" ns-random $opt(seed) } # Define/create/initialize nodes # # 1. define nodes # # 2. create nodes # # 3. disable random motion # # 4. coordinates of wilress nodes # # 5. nam setting, size and position # # set up for hierarchical routing $ns_ node-config -addressType hierarchical AddrParams set domain_num_ 4 ;# number of domains lappend cluster_num 3 1 1 1 ;# number of clusters in each domain AddrParams set cluster_num_ $cluster_num lappend eilastlevel 1 1 1 4 4 4 ;# number of nodes in each cluster AddrParams set nodes_num_ $eilastlevel ;# of each domain #create wired nodes set temp {0.0.0 0.1.0 0.2.0} ;# hierarchical addresses for wired domain for {set i 0} {$i < $num_wired_nodes} {incr i} { set W($i) [$ns_ node [lindex $temp $i]] } $W(0) set X_ 95.0 $W(0) set Y_ 146.0 $W(0) set Z_ 0.0 $W(1) set X_ 36.0 $W(1) set Y_ 113.0 $W(1) set Z_ 0.0 $W(2) set X_ 24.0 $W(2) set Y_ 62.0 $W(2) set Z_ 0.0 # configure for base-station node $ns_ node-config -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channelType $opt(chan) \
[ns] Adjust a node component,after node creation
Hi all, I want to see if it's possible in NS2 to change the property of a wireless node component(such as LL) ,after node creation. i.e. I need to do something like (node(0).LL.delay_ = 0) after configuring and creating my wireless node,during my simulation scenario. Thanks Sehati
[ns] Purpose of RTR packet
Following are two consecutive lines from a trace file. My doubt is when node 10 is already broadcasting a packet RTR for RouteRequest in AODV, why is it broadcasting again using MAC trace-level when already broadcasted for requesting route. So, what is the exact purpose of RTR trace-level. s 2.558708243 _10_ RTR --- 0 AODV 48 [0 1 800] --- [10:255 -1:255 29 0] [0x2 2 1 [2 0] [1 4]] (REQUEST) s 2.558983243 _10_ MAC --- 0 AODV 106 [0 a 800] --- [10:255 -1:255 29 0] [0x2 2 1 [2 0] [1 4]] (REQUEST) Lokendra Singh Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com
Re: [ns] NS2 debugger
Hello, I am using ns 2.33.Hence there could be little bit difference of the mentioned file in(http://pauseandreconsider.blogspot.com/2007/07/debugging-ns-2.html). I am giving the changes that I made below... Could you please check the following things ? 1)INSTALL file a) In line no 432 the --enable-symbols is entered-- # Build Tcl8.4.18 echo "" echo "* Build tcl$TCLVER" echo "" cd ./tcl$TCLVER/unix if [ -f Makefile ] ; then make distclean fi blame='Tcl is not part of the ns project. Please see www.Scriptics.com to see if they have a fix for your platform.' autoconf ./configure --enable-gcc --enable-symbols --disable-shared --prefix=$CUR_PATH || die "tcl$TCLVER configuration failed! Exiting ..." if make then b)In line 497 --enable-debug is entered # Build otcl echo "" echo "* Build OTcl-$OTCLVER" echo "" cd ./otcl-$OTCLVER blame='Please check http://www.isi.edu/nsnam/ns/ns-problems.html for common problems and bug fixes.' if [ "${test_cygwin}" = "true" ]; then ./configure --x-libraries=/usr/X11R6/lib --x-includes=/usr/X11R6/include || die "otcl-$OTCLVER configuration failed! Exiting ..."; else ./configure --enable-debug || die "otcl-$OTCLVER configuration failed! Exiting ..."; fi 2)In Makefile.in the -g flag is entered in line no 85 LIB = \ @V_LIBS@ \ @V_LIB_X11@ \ @V_LIB@ \ -lm @LIBS@ # -...@libdir@ \ CFLAGS += -g $(CCOPT) $(DEFINE) # Explicitly define compilation rules since SunOS 4's make doesn't like gcc. # Also, gcc does not remove the .o before forking 'as', which can be a # problem if you don't own the file but can write to the directory. .SUFFIXES: .cc # $(.SUFFIXES) Then I had to run ./configure in ns-allinone-2.33/ns-2.33 folder make clean ./install from ns-allinone-2.33 folder sudo make install in ns-allinone-2.33/ns-2.33 folder tried ddd ns in ns-allinone-2.33/ns-2.33 folder But again the namespace error that was mentioned before is coming after ddd is loaded. Please let me know if there is anything wrong in the above procedure. Really it would be a great experience for me if I could run ddd with NS2. Regards, Nill --- On Wed, 7/1/09, Mubashir Rehmani wrote: > From: Mubashir Rehmani > Subject: Re: [ns] NS2 debugger > To: "qweq adcsad" > Cc: "ns-users" > Date: Wednesday, July 1, 2009, 5:14 AM > Hi, > > Yes, it worked well for me. First confirm that DDD is > running properly or not, then proceed with this guide... > > Regards > Mubashir Husain Rehmani > > 2009/7/1 qweq adcsad > > > > > Hi, > > Thanks a lot. I followed that > guide(http://pauseandreconsider.blogspot.com/2007/07/debugging-ns-2.html) > but could not succeed. > > > > Have you tried it before? If it had already worked for > you please let me know. > > > > Regards, > > Nill > > > > --- On Wed, 7/1/09, Mubashir Rehmani > wrote: > > > > > From: Mubashir Rehmani > > > Subject: Re: [ns] NS2 debugger > > > To: "qweq adcsad" > > > Cc: "ns-users" > > > Date: Wednesday, July 1, 2009, 3:53 AM > > > Hi > > > > > > Here are a very nice link for debugging ns2 with DDD. > > > > > > http://pauseandreconsider.blogspot.com/2007/07/debugging-ns-2.html > > > > > > > > > Regards > > > Mubashir Husain Rehmani > > > Lip6, UPMC, Paris, France > > > > > > 2009/7/1 qweq adcsad > > > > > > > > > > > > > > > > > > Hello, > > > > > > I am trying to debug NS2 with DDD. I > compiled it > > > with -g flag, but still it can not load the source > code. It > > > says "/home//ns2.33/< such > > > file or directory>>" . > > > > > > > > > > > > I am using Ubuntu 9.04 and the compiler is gcc-4.3 > .Even > > > when I use gdb in command prompt and put " > list" > > > command it gives the above message.Could anybody > help me > > > in this matter? > > > > > > > > > > > > > > > > > > regards, > > > > > > Nill > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Mubashir Husain Rehmani > > > > > > > > > > > > > > > > > > > > > > > -- > Mubashir Husain Rehmani > > > >
Re: [ns] NS2 debugger
Hi, Yes, it worked well for me. First confirm that DDD is running properly or not, then proceed with this guide... Regards Mubashir Husain Rehmani 2009/7/1 qweq adcsad > > Hi, > Thanks a lot. I followed that guide( > http://pauseandreconsider.blogspot.com/2007/07/debugging-ns-2.html) but > could not succeed. > Have you tried it before? If it had already worked for you please let me > know. > > Regards, > Nill > > --- On Wed, 7/1/09, Mubashir Rehmani wrote: > > > From: Mubashir Rehmani > > Subject: Re: [ns] NS2 debugger > > To: "qweq adcsad" > > Cc: "ns-users" > > Date: Wednesday, July 1, 2009, 3:53 AM > > Hi > > > > Here are a very nice link for debugging ns2 with DDD. > > > > http://pauseandreconsider.blogspot.com/2007/07/debugging-ns-2.html > > > > > > Regards > > Mubashir Husain Rehmani > > Lip6, UPMC, Paris, France > > > > 2009/7/1 qweq adcsad > > > > > > > > > > > > Hello, > > > > I am trying to debug NS2 with DDD. I compiled it > > with -g flag, but still it can not load the source code. It > > says "/home//ns2.33/< > file or directory>>" . > > > > > > > > I am using Ubuntu 9.04 and the compiler is gcc-4.3 .Even > > when I use gdb in command prompt and put " list" > > command it gives the above message.Could anybody help me > > in this matter? > > > > > > > > > > > > regards, > > > > Nill > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Mubashir Husain Rehmani > > > > > > > > > > > > -- Mubashir Husain Rehmani
Re: [ns] NS2 debugger
Hi, Thanks a lot. I followed that guide(http://pauseandreconsider.blogspot.com/2007/07/debugging-ns-2.html) but could not succeed. Have you tried it before? If it had already worked for you please let me know. Regards, Nill --- On Wed, 7/1/09, Mubashir Rehmani wrote: > From: Mubashir Rehmani > Subject: Re: [ns] NS2 debugger > To: "qweq adcsad" > Cc: "ns-users" > Date: Wednesday, July 1, 2009, 3:53 AM > Hi > > Here are a very nice link for debugging ns2 with DDD. > > http://pauseandreconsider.blogspot.com/2007/07/debugging-ns-2.html > > > Regards > Mubashir Husain Rehmani > Lip6, UPMC, Paris, France > > 2009/7/1 qweq adcsad > > > > > > Hello, > > I am trying to debug NS2 with DDD. I compiled it > with -g flag, but still it can not load the source code. It > says "/home//ns2.33/< file or directory>>" . > > > > I am using Ubuntu 9.04 and the compiler is gcc-4.3 .Even > when I use gdb in command prompt and put " list" > command it gives the above message.Could anybody help me > in this matter? > > > > > > regards, > > Nill > > > > > > > > > > > > > > > > > -- > Mubashir Husain Rehmani > > > >
[ns] problem with queue length of mobile node
hello ns-users, this is Shalini, I am working on Congestion Avoidance in AODV using queue. Sir I am not able to find out which factor will determine the congestion. i have tried len_ present in aodv_rqueue but this factor just gives me the number of requesy packets. as far as i have read len_ present in queue.h is used to determine it. but this value i am not able to use in my protocol. Thanks in advance. Regards, Shalini
Re: [ns] NS2 debugger
Hi Here are a very nice link for debugging ns2 with DDD. http://pauseandreconsider.blogspot.com/2007/07/debugging-ns-2.html Regards Mubashir Husain Rehmani Lip6, UPMC, Paris, France 2009/7/1 qweq adcsad > > > Hello, > I am trying to debug NS2 with DDD. I compiled it with -g flag, but > still it can not load the source code. It says > "/home//ns2.33/<>" . > > I am using Ubuntu 9.04 and the compiler is gcc-4.3 .Even when I use gdb in > command prompt and put " list" command it gives the above message.Could > anybody help me in this matter? > > > regards, > Nill > > > > > > > -- Mubashir Husain Rehmani
[ns] connected dominating set
Hi every one Has anyone implemented ocnnnected dominating set in wireless sensor networks . I want to do that . If any one has please help me with the code Thanks in advance ANKUR JAIN Undergraduate Student, Dept. of Information Technology, National Institute of Technology, Durgapur
[ns] NS2 debugger
Hello, I am trying to debug NS2 with DDD. I compiled it with -g flag, but still it can not load the source code. It says "/home//ns2.33/<>" . I am using Ubuntu 9.04 and the compiler is gcc-4.3 .Even when I use gdb in command prompt and put " list" command it gives the above message.Could anybody help me in this matter? regards, Nill
[ns] Error: Please guide me it's urgent
Hi all , when i am recompiling ns2 and just write make command.it gives me an following error: [r...@localhost ns-2.29]# make for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done make[1]: Entering directory `/root/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen -gen/setdest' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen- gen/setdest' make[1]: Entering directory `/root/ns-allinone-2.29/ns-2.29/indep-utils/webtrace -conv/dec' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/ns-allinone-2.29/ns-2.29/indep-utils/webtrace- conv/dec' make[1]: Entering directory `/root/ns-allinone-2.29/ns-2.29/indep-utils/webtrace -conv/epa' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/ns-allinone-2.29/ns-2.29/indep-utils/webtrace- conv/epa' make[1]: Entering directory `/root/ns-allinone-2.29/ns-2.29/indep-utils/webtrace -conv/nlanr' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/ns-allinone-2.29/ns-2.29/indep-utils/webtrace- conv/nlanr' make[1]: Entering directory `/root/ns-allinone-2.29/ns-2.29/indep-utils/webtrace -conv/ucb' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/ns-allinone-2.29/ns-2.29/indep-utils/webtrace- conv/ucb' [r...@localhost ns-2.29]# Makefile bash: /root/ns-allinone-2.29/tcl8.4.11/unix/Makefile: Permission denied [r...@localhost ns-2.29]# please tell me how to remove it.i have used make clean before make.and also ./configure before make. regards umang _ Live Search extreme As India feels the heat of poll season, get all the info you need on the MSN News Aggregator http://news.in.msn.com/National/indiaelections2009/aggregator/default.aspx
Re: [ns] NAM in Ubuntu
Hello Liv, I installed Nam on my Ubuntu by using the sources on http://www.isi.edu/nsnam/dist/ To make the installation work properly tcl and tk must be installed. If you are done so far, you can use the first sections of Marc Greis' tutorial. At least until section VI this works fine for me and nam ist automatically used by executing a *.tcl script on the shell by typing ns *.tcl HTH, Oliver LiViAn ZaH schrieb: > Hello > > How can I use NAM in ubuntu ? I m using ubuntu 9.04 and my ns version is > 2.33. > > Regards > Liv > > > > >
[ns] mobility (speed)
Hi all ns users, I want to ask question related to the mobility. I am using random way point model. When I am increasing speed (0- 25 m/sec) then packet delivery should be decreasing. But in my case for 10 nodes it is giving delivery ratio for 0 m/s low then increasing for 5 m/s and again decreases for 15 m/sec. Can anybody tell me why this happens? Please reply me. Thank you.
[ns] questions about wireless.tcl
Hi all ns users, I want to ask questions about the procedures used in wireless.tcl file of ns2. 1) What is the use of following commands? LL set mindelay_50us LL set delay_25us LL set bandwidth_0;# not used Agent/Null set sport_0 Agent/Null set dport_0 Agent/CBR set sport_0 Agent/CBR set dport_0 Agent/TCPSink set sport_0 Agent/TCPSink set dport_0 Agent/TCP set sport_0 Agent/TCP set dport_0 Agent/TCP set packetSize_1460 Queue/DropTail/PriQueue set Prefer_Routing_Protocols1 2) Is it necessary to define the antenna configurations # unity gain, omni-directional antennas # set up the antennas to be centered in the node and 1.5 meters above it Antenna/OmniAntenna set X_ 0 Antenna/OmniAntenna set Y_ 0 Antenna/OmniAntenna set Z_ 1.5 Antenna/OmniAntenna set Gt_ 1.0 Antenna/OmniAntenna set Gr_ 1.0 # Initialize the SharedMedia interface with parameters to make # it work like the 914MHz Lucent WaveLAN DSSS radio interface Phy/WirelessPhy set CPThresh_ 10.0 Phy/WirelessPhy set CSThresh_ 1.559e-11 Phy/WirelessPhy set RXThresh_ 3.652e-10 Phy/WirelessPhy set Rb_ 2*1e6 Phy/WirelessPhy set Pt_ 0.2818 Phy/WirelessPhy set freq_ 914e+6 Phy/WirelessPhy set L_ 1.0 3) what is the use of following procedures? proc usage { argv0 } { puts "Usage: $argv0" puts "\tmandatory arguments:" puts "\t\t\[-x MAXX\] \[-y MAXY\]" puts "\toptional arguments:" puts "\t\t\[-cp conn pattern\] \[-sc scenario\] \[-nn nodes\]" puts "\t\t\[-seed seed\] \[-stop sec\] \[-tr tracefile\]\n" } proc getopt {argc argv} { global opt lappend optlist cp nn seed sc stop tr x y for {set i 0} {$i < $argc} {incr i} { set arg [lindex $argv $i] if {[string range $arg 0 0] != "-"} continue set name [string range $arg 1 end] set opt($name) [lindex $argv [expr $i+1]] } } 4) what is the use of the following portion ? Is it necessary to include external tcl files? what is the use of those files? getopt $argc $argv # # Source External TCL Scripts # source ../lib/ns-bsnode.tcl source ../mobility/com.tcl # do the get opt again incase the routing protocol file added some more # options to look for getopt $argc $argv if { $val(x) == 0 || $val(y) == 0 } { usage $argv0 exit 1 } if {$opt(seed) > 0} { puts "Seeding Random number generator with $opt(seed)\n" ns-random $opt(seed) } 5) What is the seed? Please help me . Regards Dinesh.