From sr.nsuser at gmail.com Thu Oct 1 00:07:56 2009 From: sr.nsuser at gmail.com (soheila rahmani) Date: Thu, 1 Oct 2009 10:37:56 +0330 Subject: [ns] my system shut down when using cygwin Message-ID: <24a228b00910010007i61f65c3aw1f30d39ee7d3a01b@mail.gmail.com> Hi all I work ns2.33 in cygwin, my computer shot down several time when I work with cygwin Do anyone what is the problem? I install cygwin in drive c that is windows drive Do I change my install drive? is this problem depended to cygwin? pleas help me From marwouta23 at yahoo.fr Thu Oct 1 02:03:32 2009 From: marwouta23 at yahoo.fr (carolina2) Date: Thu, 1 Oct 2009 02:03:32 -0700 (PDT) Subject: [ns] NAM error In-Reply-To: <707616.5014.qm@web38003.mail.mud.yahoo.com> References: <707616.5014.qm@web38003.mail.mud.yahoo.com> Message-ID: <25695288.post@talk.nabble.com> Hi, I have the same error than you. If you have found a solution please tell me about it. Thanks moinul islam wrote: > > > i am using cygwin-1.5.25 and ns-allinone-2.29.2 in windows vista.fut i got > the following error while trying to run nam > Moinul at Moinul-PC /usr/local > $ nam out.nam > nam: > [code omitted because of length] > : no event type or button # or keysym > ??? while executing > "bind Listbox { > %W yview scroll [expr {- (%D / 120) * 4}] units > }" > ??? invoked from within > "if {[string equal [tk windowingsystem] "classic"] > || [string equal [tk windowingsystem] "aqua"]} { > bind Listbox { > %W yview scroll [expr {..." > > > > > -- View this message in context: http://www.nabble.com/NAM-error-tp22892512p25695288.html Sent from the ns-users mailing list archive at Nabble.com. From raveenpal.kaur at bbsbec.ac.in Thu Oct 1 02:55:59 2009 From: raveenpal.kaur at bbsbec.ac.in (Raveen) Date: Thu, 1 Oct 2009 02:55:59 -0700 (PDT) Subject: [ns] [bug] problem while running make install for nam1.14 and ns-2.34 Message-ID: <200910010955.CAA19850@www.isi.edu> [Bug Report] ----------------------------- Category: Installation Failure Package: ns ns 2.34 OS: Fedora 10 Environment Variables: LD_LIBRARY_PATH=/home/raveen/Desktop/ns-allinone-2.34/otcl-1.13,/home/raveen/Desktop/ns-allinone-2.34/lib TCL_LIBRARY=/home/raveen/Desktop/ns-allinone-2.34/tcl8.4.14/library TK_LIBRARY= ----------------------------- Description: Description of Problem: How Easily Reproducible: (e.g. every time, intermittent, once only, etc.) Steps to Reproduce: (describe the minimal set of steps necessary to trigger the bug) 1. 2. 3. Actual Results: (describe what the application did after performing the above steps) Expected Results: (describe what the application should have done, were the bug not present) Additional Information: (the following infomation is helpful to debug: 1. simulation script, detailed output files, packet trace 2. patch file if you modify some source code 3. a backtrace from gdb if you get a segment fault If they are big files, PLEASE put them in your web space and include the URL here.) From raveenpal.kaur at bbsbec.ac.in Thu Oct 1 02:58:34 2009 From: raveenpal.kaur at bbsbec.ac.in (raveenpal kaur) Date: Thu, 1 Oct 2009 05:58:34 -0400 Subject: [ns] problem while installing ns-2.34 Message-ID: ---------- Forwarded message ---------- From: raveenpal kaur Date: Thu, Oct 1, 2009 at 5:40 AM Subject: Help To: ns-users at isi.edu while installing NS-2.34, the following error occurs at step make install:- [raveen at localhost ns-2.34]$ make install for d in /usr/local/man/man1; do \ if [ ! -d $d ]; then \ mkdir -p $d ;\ fi;\ done mkdir: cannot create directory `/usr/local/man': Permission denied make: *** [dirs] Error 1 Plz resolve my problem. -- Raveen Bajwa -- Raveen Bajwa From raveenpal.kaur at bbsbec.ac.in Thu Oct 1 02:59:15 2009 From: raveenpal.kaur at bbsbec.ac.in (raveenpal kaur) Date: Thu, 1 Oct 2009 05:59:15 -0400 Subject: [ns] problem while installing nam 1.14 Message-ID: ---------- Forwarded message ---------- From: raveenpal kaur Date: Thu, Oct 1, 2009 at 5:34 AM Subject: Help To: ns-users at isi.edu I have the problem in nam installation when I run make install following error occurs:- [raveen at localhost nam-1.14]$ make install /usr/bin/install -c -m 755 nam /usr/local/bin /usr/bin/install: cannot create regular file `/usr/local/bin/nam': Permission denied make: *** [install] Error 1 Please send me the resolution. -- Raveen Bajwa -- Raveen Bajwa From thiagotrufelli at gmail.com Thu Oct 1 04:50:18 2009 From: thiagotrufelli at gmail.com (Thiago Trufelli) Date: Thu, 1 Oct 2009 08:50:18 -0300 Subject: [ns] problem while installing ns-2.34 In-Reply-To: References: Message-ID: <4f3a50180910010450x306e9864xcaabfb66693d2bc4@mail.gmail.com> Hello, You should make the install using a profile with permission in creating folders in "/usr/local" , you can use the profile of root. Best Regards! On Thu, Oct 1, 2009 at 6:58 AM, raveenpal kaur wrote: > > ---------- Forwarded message ---------- > From: raveenpal kaur > Date: Thu, Oct 1, 2009 at 5:40 AM > Subject: Help > To: ns-users at isi.edu > > > > while installing NS-2.34, the following error occurs at step make install:- > > [raveen at localhost ns-2.34]$ make install > for d in /usr/local/man/man1; do \ > if [ ! -d $d ]; then \ > mkdir -p $d ;\ > fi;\ > done > mkdir: cannot create directory `/usr/local/man': Permission denied > make: *** [dirs] Error 1 > > Plz resolve my problem. > > -- > Raveen Bajwa > > > > -- > Raveen Bajwa > From marwouta23 at yahoo.fr Thu Oct 1 05:14:09 2009 From: marwouta23 at yahoo.fr (carolina2) Date: Thu, 1 Oct 2009 05:14:09 -0700 (PDT) Subject: [ns] nam problem In-Reply-To: <423217.60603.qm@web45112.mail.sp1.yahoo.com> References: <423217.60603.qm@web45112.mail.sp1.yahoo.com> Message-ID: <25696827.post@talk.nabble.com> Hi, I have the same problem than you when I try to run nam $ nam out.nam > nam: > [code omitted because of length] > : no event type or button # or keysym > while executing > "bind Listbox { > %W yview scroll [expr {- (%D / 120) * 4}] units > }" > invoked from within > "if {[string equal [tk windowingsystem] "classic"] > || [string equal [tk windowingsystem] "aqua"]} { > bind Listbox { > %W yview scroll [expr {..." PLEASE if you have resolved the problem can you tell me about it. It will be a great help for me . Thanks in advance. balador wrote: > > > > I have installed ns-2.33 on cygwin on xp. > > while running simple example programs, I get error, > > $ nam: no display name and no $DISPLAY environment variable. > > ? > > I tried set it with export DSIPLAY=:0..0 > > it gives error ? > > $ nam: couldn't connect to display "0.0" > > I also tried ?startx before running programs, it gives following error, > > $ nam: > > [code omitted because of length] > > : no event type or button # or keysym > > ? ?while executing > > "bind Listbox { > > %W yview scroll [expr {- (%D / 120) * 4}] units > > }" > > ? ?invoked from within > > "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} > { > > bind Listbox { > > %W yview scroll [expr {- (%D)}] units > > } > > bind Li..."? > > can anybody figure out where the problem lies? > > I am new to ns-2 as well as linux environment so please..... > > ? > > Thanks in anticipation. > ? > Regards,? > > ali balador, > > > > > -- View this message in context: http://www.nabble.com/nam-problem-tp22422807p25696827.html Sent from the ns-users mailing list archive at Nabble.com. From alihussein2008 at yahoo.com Thu Oct 1 10:55:32 2009 From: alihussein2008 at yahoo.com (Ali Al-Shra'ah.) Date: Thu, 1 Oct 2009 10:55:32 -0700 (PDT) Subject: [ns] TORA Simulation hangs/stops at a point Message-ID: <616400.89705.qm@web52303.mail.re2.yahoo.com> Hi all, Whenver I try to simulate TORA in ns2, after some time, the execution hangs/stops at some point and doesnot proceed. There is NO error shown as such, but program doesnot proceed. The tcl script is also attached below. If anyone faced similar problem before or knows the solution, please reply. Its urgent for my project. ------------------------------------------------------- num_nodes is set 20 found DATA 16384 data points read fm0 = 30.000000 fm = 0.000000 fs = 1000.000000 INITIALIZE THE LIST xListHead Loading connection pattern... Loading scenario file... Starting Simulation... SORTING LISTS ...DONE! channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 node 0 received `QRY` for itself. node 0 received `QRY` for itself. node 0 received `QRY` for itself. EXECUTION STOPS HERE AND DOESNT PROCEED FURTHER. -------------------------------------- TORA Tcl Script: proc getopt {argc argv} { global argv0 seed rate cp sc if {$argc < 4} { puts "\nusage: $argv0 seed rate cbr-connection_file node-movement_file\n" exit } set seed [lindex $argv 0] set rate [lindex $argv 1] set cp [lindex $argv 2] set sc [lindex $argv 3] #puts "\n $seed $rate $cp $sc \n" } # ==================================================================== # Define options # ==================================================================== set val(chan) Channel/WirelessChannel set val(prop) Propagation/Ricean ;# radio-propagation model set val(netif) Phy/WirelessPhy set val(mac) Mac/802_11 set val(ifq) Queue/DropTail/PriQueue ;# for aodv set val(ll) LL set val(ant) Antenna/OmniAntenna set val(x) 500 ;# X dimension of the topography set val(y) 500 ;# Y dimension of the topography set val(ifqlen) 50 ;# max packet in ifq set val(adhocRouting) TORA set val(nn) 20 ;# how many nodes are simulated set val(cn) 20 ;# how many connections set val(stop) 200 ;# simulation time # 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 works 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 # ==================================================================== # Main Program # ==================================================================== # # Initialize Global Variables # getopt $argc $argv # create simulator instance set ns_ [new Simulator] $ns_ use-newtrace; # setup topography object set topo [new Topography] # create trace object for ns and nam set tracefd [open out${sc}_nn${val(nn)}_mc${val(cn)}.tr w] set namtrace [open out${sc}_nn${val(nn)}_mc${val(cn)}.nam w] $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) # define topology $topo load_flatgrid $val(x) $val(y) # Create God set god_ [create-god $val(nn)] # Create channel #1 set chan_1_ [new $val(chan)] #global node setting # Create node "attached" to channel #1 $ns_ node-config -adhocRouting $val(adhocRouting) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channel $chan_1_ \ -topoInstance $topo \ -agentTrace ON \ -dsrTrace OFF \ -routerTrace OFF \ -macTrace ON \ -movementTrace OFF \ -toraDebug ON ############################################### # Set Ricean and Rayleigh fading propagation parameter ## ############################################ set prop_inst [$ns_ set propInstance_] $prop_inst MaxVelocity 2.5; $prop_inst RiceanK 0; $prop_inst LoadRiceFile "rice_table.txt"; # # Create the specified number of nodes [$val(nn)] and "attach" them # to the channel. for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } # # Define traffic model # source $cp #taken as argument if { $sc != 0} { source $sc #taken as argument } # Define node initial position in nam for {set i 0} {$i < $val(nn)} {incr i} { $ns_ initial_node_pos $node_($i) 20 } # # Tell nodes when the simulation ends # for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at $val(stop).0 "$node_($i) reset"; } $ns_ at $val(stop).0001 "$ns_ nam-end-wireless $val(stop).0001" puts $tracefd "M 0.0 nn=$val(nn) x=$val(x) y=$val(y) rp=$val(adhocRouting)" puts $tracefd "M 0.0 sc=$sc cp=$cp seed=$seed" puts $tracefd "M 0.0 prop=$val(prop) ant=$val(ant)" #Define a 'finish' procedure proc finish {} { global ns_ tracefd namtrace val(stop) $ns_ flush-trace close $tracefd close $namtrace } $ns_ at $val(stop).0002 "finish" $ns_ at $val(stop).0004 "$ns_ halt" puts "Starting Simulation..." $ns_ run From alihussein2008 at yahoo.com Thu Oct 1 11:04:24 2009 From: alihussein2008 at yahoo.com (Ali Al-Shra'ah.) Date: Thu, 1 Oct 2009 11:04:24 -0700 (PDT) Subject: [ns] how to get the energy and speed of a node Message-ID: <734727.38405.qm@web52310.mail.re2.yahoo.com> Hi all; If any one knows how to get the energy of a node and how to get the node's mobility speed, please let me know. regards, From mshrehmani at gmail.com Thu Oct 1 11:05:35 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Thu, 1 Oct 2009 20:05:35 +0200 Subject: [ns] TORA Simulation hangs/stops at a point In-Reply-To: <616400.89705.qm@web52303.mail.re2.yahoo.com> References: <616400.89705.qm@web52303.mail.re2.yahoo.com> Message-ID: Hi, I am sending you the file of tora.cc in which you can see on line number 380 that the error comes in recvQRY() function http://www-rp.lip6.fr/ns-doc/ns226-doc/html/tora_8cc-source.htm So, this is the source of the error. Hope it helps Regards Mubashir Husain Rehmani Lip6, UPMC, Paris, France 2009/10/1 Ali Al-Shra'ah. > > > Hi all, > > Whenver I try to simulate TORA in ns2, after some time, the execution > hangs/stops at some point and doesnot proceed. There is NO error shown as > such, but program doesnot proceed. > The tcl script is also attached below. > If anyone faced similar problem before or knows the solution, please reply. > Its urgent for my project. > > ------------------------------------------------------- > num_nodes is set 20 > found DATA > 16384 data points read > fm0 = 30.000000 fm = 0.000000 fs = 1000.000000 > INITIALIZE THE LIST xListHead > Loading connection pattern... > Loading scenario file... > Starting Simulation... > SORTING LISTS ...DONE! > channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ > highestAntennaZ_ = 1.5, distCST_ = 550.0 > node 0 received `QRY` for itself. > node 0 received `QRY` for itself. > node 0 received `QRY` for itself. > > > EXECUTION STOPS HERE AND DOESNT PROCEED FURTHER. > -------------------------------------- > > TORA Tcl Script: > > proc getopt {argc argv} { > global argv0 seed rate cp sc > if {$argc < 4} { > puts "\nusage: $argv0 seed rate cbr-connection_file node-movement_file\n" > exit > } > set seed [lindex $argv 0] > set rate [lindex $argv 1] > set cp [lindex $argv 2] > set sc [lindex $argv 3] > #puts "\n $seed $rate $cp $sc \n" > } > > # ==================================================================== > # Define options > # ==================================================================== > > set val(chan) Channel/WirelessChannel > set val(prop) Propagation/Ricean ;# radio-propagation model > set val(netif) Phy/WirelessPhy > set val(mac) Mac/802_11 > set val(ifq) Queue/DropTail/PriQueue ;# for aodv > set val(ll) LL > set val(ant) Antenna/OmniAntenna > set val(x) 500 ;# X dimension of the topography > set val(y) 500 ;# Y dimension of the topography > set val(ifqlen) 50 ;# max packet in ifq > set val(adhocRouting) TORA > set val(nn) 20 ;# how many nodes are simulated > set val(cn) 20 ;# how many connections > set val(stop) 200 ;# simulation time > # 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 works 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 > > # ==================================================================== > # Main Program > # ==================================================================== > # > # Initialize Global Variables > # > getopt $argc $argv > > # create simulator instance > set ns_ [new Simulator] > $ns_ use-newtrace; > > # setup topography object > set topo [new Topography] > > # create trace object for ns and nam > set tracefd [open out${sc}_nn${val(nn)}_mc${val(cn)}.tr w] > set namtrace [open out${sc}_nn${val(nn)}_mc${val(cn)}.nam w] > $ns_ trace-all $tracefd > $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) > # define topology > $topo load_flatgrid $val(x) $val(y) > > # Create God > set god_ [create-god $val(nn)] > > # Create channel #1 > set chan_1_ [new $val(chan)] > > #global node setting > > # Create node "attached" to channel #1 > $ns_ node-config -adhocRouting $val(adhocRouting) \ > -llType $val(ll) \ > -macType $val(mac) \ > -ifqType $val(ifq) \ > -ifqLen $val(ifqlen) \ > -antType $val(ant) \ > -propType $val(prop) \ > -phyType $val(netif) \ > -channel $chan_1_ \ > -topoInstance $topo \ > -agentTrace ON \ > -dsrTrace OFF \ > -routerTrace OFF \ > -macTrace ON \ > -movementTrace OFF \ > -toraDebug ON > > ############################################### > # Set Ricean and Rayleigh fading propagation parameter > ## ############################################ > set prop_inst [$ns_ set propInstance_] > $prop_inst MaxVelocity 2.5; > $prop_inst RiceanK 0; > $prop_inst LoadRiceFile "rice_table.txt"; > # > # Create the specified number of nodes [$val(nn)] and "attach" them > # to the channel. > for {set i 0} {$i < $val(nn) } {incr i} { > set node_($i) [$ns_ node] > $node_($i) random-motion 0 ;# disable random motion > } > > # > # Define traffic model > # > source $cp #taken as argument > if { $sc != 0} { > source $sc > > #taken as argument > } > > # Define node initial position in nam > for {set i 0} {$i < $val(nn)} {incr i} { > $ns_ initial_node_pos $node_($i) 20 > } > > # > # Tell nodes when the simulation ends > # > for {set i 0} {$i < $val(nn) } {incr i} { > $ns_ at $val(stop).0 "$node_($i) reset"; > } > $ns_ at $val(stop).0001 "$ns_ nam-end-wireless $val(stop).0001" > > puts $tracefd "M 0.0 nn=$val(nn) x=$val(x) y=$val(y) rp=$val(adhocRouting)" > puts $tracefd "M 0.0 sc=$sc cp=$cp seed=$seed" > puts $tracefd "M 0.0 prop=$val(prop) ant=$val(ant)" > > #Define a 'finish' procedure > proc finish {} { > global ns_ tracefd namtrace val(stop) > $ns_ flush-trace > close $tracefd > close $namtrace > } > > $ns_ at $val(stop).0002 "finish" > $ns_ at $val(stop).0004 "$ns_ halt" > puts "Starting Simulation..." > $ns_ run > > > > -- Mubashir Husain Rehmani From salemblue at gmail.com Thu Oct 1 22:53:57 2009 From: salemblue at gmail.com (mr quang huy) Date: Fri, 2 Oct 2009 12:53:57 +0700 Subject: [ns] MIPMANET simulation Message-ID: <3942bc510910012253q510016ffne0fedc4722ec34de@mail.gmail.com> Dear my friends i search in internet for some MIPMANET source code in NS but i found nothing, If any of you have the information about how to make a simulation like MIPMANET please help me.I really need it for my project. I'm new to NS2. Thanks From marwouta23 at yahoo.fr Fri Oct 2 02:36:30 2009 From: marwouta23 at yahoo.fr (carolina2) Date: Fri, 2 Oct 2009 02:36:30 -0700 (PDT) Subject: [ns] sample code for wsn In-Reply-To: <3eb5e9570901300846j1648e5a2j8cf8481fc1b1cc86@mail.gmail.com> References: <3eb5e9570901300846j1648e5a2j8cf8481fc1b1cc86@mail.gmail.com> Message-ID: <25712965.post@talk.nabble.com> Hi All, I want to use "802_15_4" in my simulation what should I install to take into consideration?? Thank you in advance. naveen prabu wrote: > > > I have pasted sample tcl file and scenario file here... > save scn file as wsn1.scn and tcl file as (say)wsn1.tcl and run tcl > file... > > try runnin this....if any bugs then let me know... > > wsn1.tcl > > > # ====================================================================== > # Define options > # ====================================================================== > set val(chan) Channel/WirelessChannel ;# Channel Type > set val(prop) Propagation/TwoRayGround ;# radio-propagation > model > set val(netif) Phy/WirelessPhy/802_15_4 > set val(mac) Mac/802_15_4 > set val(ifq) Queue/DropTail/PriQueue ;# interface queue type > set val(ll) LL ;# link layer type > set val(ant) Antenna/OmniAntenna ;# antenna model > set val(ifqlen) 50 ;# max packet in ifq > set val(nn) 25 ;# number of > mobilenodes > set val(rp) AODV ;# routing protocol > set val(x) 50 > set val(y) 50 > > set val(nam) wsn1.nam > set val(traffic) ftp ;# cbr/poisson/ftp > > #read command line arguments > proc getCmdArgu {argc argv} { > global val > 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 val($name) [lindex $argv [expr $i+1]] > } > } > getCmdArgu $argc $argv > > set appTime1 0.0 ;# in seconds > set appTime2 0.3 ;# in seconds > set appTime3 0.7 ;# in seconds > set stopTime 100 ;# in seconds > > # Initialize Global Variables > set ns_ [new Simulator] > set tracefd [open ./wsn1.tr w] > $ns_ trace-all $tracefd > if { "$val(nam)" == "wsn1.nam" } { > set namtrace [open ./$val(nam) w] > $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) > } > > $ns_ puts-nam-traceall {# nam4wpan #} ;# inform nam that this is a > trace file for wpan (special handling needed) > > Mac/802_15_4 wpanNam namStatus on ;# default = off (should be turned > on before other 'wpanNam' commands can work) > #Mac/802_15_4 wpanNam ColFlashClr gold ;# default = gold > #Mac/802_15_4 wpanNam NodeFailClr grey ;# default = grey > > > # For model 'TwoRayGround' > set dist(5m) 7.69113e-06 > set dist(9m) 2.37381e-06 > set dist(10m) 1.92278e-06 > set dist(11m) 1.58908e-06 > set dist(12m) 1.33527e-06 > set dist(13m) 1.13774e-06 > set dist(14m) 9.81011e-07 > set dist(15m) 8.54570e-07 > set dist(16m) 7.51087e-07 > set dist(20m) 4.80696e-07 > set dist(25m) 3.07645e-07 > set dist(30m) 2.13643e-07 > set dist(35m) 1.56962e-07 > set dist(40m) 1.20174e-07 > Phy/WirelessPhy set CSThresh_ $dist(15m) > Phy/WirelessPhy set RXThresh_ $dist(15m) > > # set up topography object > set topo [new Topography] > $topo load_flatgrid $val(x) $val(y) > > # Create God > set god_ [create-god $val(nn)] > > set chan_1_ [new $val(chan)] > > # 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) \ > -topoInstance $topo \ > -agentTrace OFF \ > -routerTrace OFF \ > -macTrace ON \ > -movementTrace OFF \ > #-energyModel "EnergyModel" \ > #-initialEnergy 1 \ > #-rxPower 0.3 \ > #-txPower 0.3 \ > -channel $chan_1_ > > for {set i 0} {$i < $val(nn) } {incr i} { > set node_($i) [$ns_ node] > $node_($i) random-motion 0 ;# disable random motion > } > > source ./wsn1.scn > > # Setup traffic flow between nodes > > proc cbrtraffic { src dst interval starttime } { > global ns_ node_ > set udp($src) [new Agent/UDP] > eval $ns_ attach-agent \$node_($src) \$udp($src) > set null($dst) [new Agent/Null] > eval $ns_ attach-agent \$node_($dst) \$null($dst) > set cbr($src) [new Application/Traffic/CBR] > eval \$cbr($src) set packetSize_ 70 > eval \$cbr($src) set interval_ $interval > eval \$cbr($src) set random_ 0 > #eval \$cbr($src) set maxpkts_ 10000 > eval \$cbr($src) attach-agent \$udp($src) > eval $ns_ connect \$udp($src) \$null($dst) > $ns_ at $starttime "$cbr($src) start" > } > > proc poissontraffic { src dst interval starttime } { > global ns_ node_ > set udp($src) [new Agent/UDP] > eval $ns_ attach-agent \$node_($src) \$udp($src) > set null($dst) [new Agent/Null] > eval $ns_ attach-agent \$node_($dst) \$null($dst) > set expl($src) [new Application/Traffic/Exponential] > eval \$expl($src) set packetSize_ 70 > eval \$expl($src) set burst_time_ 0 > eval \$expl($src) set idle_time_ [expr > $interval*1000.0-70.0*8/250]ms ;# idle_time + pkt_tx_time = interval > eval \$expl($src) set rate_ 250k > eval \$expl($src) attach-agent \$udp($src) > eval $ns_ connect \$udp($src) \$null($dst) > $ns_ at $starttime "$expl($src) start" > } > > if { ("$val(traffic)" == "cbr") || ("$val(traffic)" == "poisson") } { > puts "\nTraffic: $val(traffic)" > #Mac/802_15_4 wpanCmd ack4data on > puts [format "Acknowledgement for data: %s" [Mac/802_15_4 wpanCmd > ack4data]] > set lowSpeed 0.5ms > set highSpeed 1.5ms > Mac/802_15_4 wpanNam PlaybackRate $lowSpeed > $ns_ at [expr $appTime1+0.1] "Mac/802_15_4 wpanNam PlaybackRate > $highSpeed" > $ns_ at $appTime2 "Mac/802_15_4 wpanNam PlaybackRate $lowSpeed" > $ns_ at [expr $appTime2+0.1] "Mac/802_15_4 wpanNam PlaybackRate > $highSpeed" > $ns_ at $appTime3 "Mac/802_15_4 wpanNam PlaybackRate $lowSpeed" > $ns_ at [expr $appTime3+0.1] "Mac/802_15_4 wpanNam PlaybackRate > $highSpeed" > eval $val(traffic)traffic 19 6 0.2 $appTime1 > eval $val(traffic)traffic 10 4 0.2 $appTime2 > eval $val(traffic)traffic 3 2 0.2 $appTime3 > Mac/802_15_4 wpanNam FlowClr -p AODV -c tomato > Mac/802_15_4 wpanNam FlowClr -p ARP -c green > if { "$val(traffic)" == "cbr" } { > set pktType cbr > } else { > set pktType exp > } > Mac/802_15_4 wpanNam FlowClr -p $pktType -s 19 -d 6 -c blue > Mac/802_15_4 wpanNam FlowClr -p $pktType -s 10 -d 4 -c green4 > Mac/802_15_4 wpanNam FlowClr -p $pktType -s 3 -d 2 -c cyan4 > $ns_ at $appTime1 "$node_(19) NodeClr blue" > $ns_ at $appTime1 "$node_(6) NodeClr blue" > $ns_ at $appTime1 "$ns_ trace-annotate \"(at $appTime1) > $val(traffic) traffic from node 19 to node 6\"" > $ns_ at $appTime2 "$node_(10) NodeClr green4" > $ns_ at $appTime2 "$node_(4) NodeClr green4" > $ns_ at $appTime2 "$ns_ trace-annotate \"(at $appTime2) > $val(traffic) traffic from node 10 to node 4\"" > $ns_ at $appTime3 "$node_(3) NodeClr cyan3" > $ns_ at $appTime3 "$node_(2) NodeClr cyan3" > $ns_ at $appTime3 "$ns_ trace-annotate \"(at $appTime3) > $val(traffic) traffic from node 3 to node 2\"" > } > > proc ftptraffic { src dst starttime } { > global ns_ node_ > set tcp($src) [new Agent/TCP] > eval \$tcp($src) set packetSize_ 60 > set sink($dst) [new Agent/TCPSink] > eval $ns_ attach-agent \$node_($src) \$tcp($src) > eval $ns_ attach-agent \$node_($dst) \$sink($dst) > eval $ns_ connect \$tcp($src) \$sink($dst) > set ftp($src) [new Application/FTP] > eval \$ftp($src) attach-agent \$tcp($src) > $ns_ at $starttime "$ftp($src) start" > } > > if { "$val(traffic)" == "ftp" } { > puts "\nTraffic: ftp" > #Mac/802_15_4 wpanCmd ack4data off > puts [format "Acknowledgement for data: %s" [Mac/802_15_4 wpanCmd > ack4data]] > set lowSpeed 0.20ms > set highSpeed 1.5ms > Mac/802_15_4 wpanNam PlaybackRate $lowSpeed > $ns_ at [expr $appTime1+0.2] "Mac/802_15_4 wpanNam PlaybackRate > $highSpeed" > $ns_ at $appTime2 "Mac/802_15_4 wpanNam PlaybackRate $lowSpeed" > $ns_ at [expr $appTime2+0.2] "Mac/802_15_4 wpanNam PlaybackRate > $highSpeed" > $ns_ at $appTime3 "Mac/802_15_4 wpanNam PlaybackRate $lowSpeed" > $ns_ at [expr $appTime3+0.2] "Mac/802_15_4 wpanNam PlaybackRate 1ms" > ftptraffic 19 6 $appTime1 > ftptraffic 10 4 $appTime2 > ftptraffic 3 2 $appTime3 > Mac/802_15_4 wpanNam FlowClr -p AODV -c tomato > Mac/802_15_4 wpanNam FlowClr -p ARP -c green > Mac/802_15_4 wpanNam FlowClr -p tcp -s 19 -d 6 -c blue > Mac/802_15_4 wpanNam FlowClr -p ack -s 6 -d 19 -c blue > Mac/802_15_4 wpanNam FlowClr -p tcp -s 10 -d 4 -c green4 > Mac/802_15_4 wpanNam FlowClr -p ack -s 4 -d 10 -c green4 > Mac/802_15_4 wpanNam FlowClr -p tcp -s 3 -d 2 -c cyan4 > Mac/802_15_4 wpanNam FlowClr -p ack -s 2 -d 3 -c cyan4 > $ns_ at $appTime1 "$node_(19) NodeClr blue" > $ns_ at $appTime1 "$node_(6) NodeClr blue" > $ns_ at $appTime1 "$ns_ trace-annotate \"(at $appTime1) ftp traffic > from node 19 to node 6\"" > $ns_ at $appTime2 "$node_(10) NodeClr green4" > $ns_ at $appTime2 "$node_(4) NodeClr green4" > $ns_ at $appTime2 "$ns_ trace-annotate \"(at $appTime2) ftp traffic > from node 10 to node 4\"" > $ns_ at $appTime3 "$node_(3) NodeClr cyan3" > $ns_ at $appTime3 "$node_(2) NodeClr cyan3" > $ns_ at $appTime3 "$ns_ trace-annotate \"(at $appTime3) ftp traffic > from node 3 to node 2\"" > } > > # defines the node size in nam > for {set i 0} {$i < $val(nn)} {incr i} { > $ns_ initial_node_pos $node_($i) 2 > } > > # Tell nodes when the simulation ends > for {set i 0} {$i < $val(nn) } {incr i} { > $ns_ at $stopTime "$node_($i) reset"; > } > > $ns_ at $stopTime "stop" > $ns_ at $stopTime "puts \"\nNS EXITING...\"" > $ns_ at $stopTime "$ns_ halt" > > proc stop {} { > global ns_ tracefd val env > $ns_ flush-trace > close $tracefd > set hasDISPLAY 0 > foreach index [array names env] { > #puts "$index: $env($index)" > if { ("$index" == "DISPLAY") && ("$env($index)" != "") } { > set hasDISPLAY 1 > } > } > if { ("$val(nam)" == "wsn1.nam") && ("$hasDISPLAY" == "1") } { > exec ./nam wsn1.nam & > } > } > > puts "\nStarting Simulation..." > $ns_ run > > > -------------------------------- > wsn1.scn > > # > # nodes: 25, pause: 2.00, max speed: 2.00 max x = 50.00, max y: 50.00 > # > $node_(0) set X_ 26.608377307314 > $node_(0) set Y_ 49.446991827566 > $node_(0) set Z_ 0.000000000000 > $node_(1) set X_ 49.337311778721 > $node_(1) set Y_ 48.582820874924 > $node_(1) set Z_ 0.000000000000 > $node_(2) set X_ 27.437938215931 > $node_(2) set Y_ 30.091658830425 > $node_(2) set Z_ 0.000000000000 > $node_(3) set X_ 10.568766842667 > $node_(3) set Y_ 47.453389414657 > $node_(3) set Z_ 0.000000000000 > $node_(4) set X_ 32.496269526711 > $node_(4) set Y_ 2.257450139045 > $node_(4) set Z_ 0.000000000000 > $node_(5) set X_ 26.476535726599 > $node_(5) set Y_ 38.646396828920 > $node_(5) set Z_ 0.000000000000 > $node_(6) set X_ 49.430596917301 > $node_(6) set Y_ 31.320042376073 > $node_(6) set Z_ 0.000000000000 > $node_(7) set X_ 20.045665842364 > $node_(7) set Y_ 32.537008965783 > $node_(7) set Z_ 0.000000000000 > $node_(8) set X_ 13.641089465783 > $node_(8) set Y_ 28.871428688349 > $node_(8) set Z_ 0.000000000000 > $node_(9) set X_ 2.125856848941 > $node_(9) set Y_ 9.049644538277 > $node_(9) set Z_ 0.000000000000 > $node_(10) set X_ 0.596871605178 > $node_(10) set Y_ 0.816174228621 > $node_(10) set Z_ 0.000000000000 > $node_(11) set X_ 8.828197591068 > $node_(11) set Y_ 34.402175912553 > $node_(11) set Z_ 0.000000000000 > $node_(12) set X_ 18.759762507870 > $node_(12) set Y_ 25.069997591097 > $node_(12) set Z_ 0.000000000000 > $node_(13) set X_ 13.277017351151 > $node_(13) set Y_ 5.522149009306 > $node_(13) set Z_ 0.000000000000 > $node_(14) set X_ 28.935083056450 > $node_(14) set Y_ 37.156742480258 > $node_(14) set Z_ 0.000000000000 > $node_(15) set X_ 23.507724673396 > $node_(15) set Y_ 3.566772846479 > $node_(15) set Z_ 0.000000000000 > $node_(16) set X_ 20.236128396148 > $node_(16) set Y_ 45.484419961171 > $node_(16) set Z_ 0.000000000000 > $node_(17) set X_ 45.709636471608 > $node_(17) set Y_ 48.353113573382 > $node_(17) set Z_ 0.000000000000 > $node_(18) set X_ 45.610349971557 > $node_(18) set Y_ 49.787732692400 > $node_(18) set Z_ 0.000000000000 > $node_(19) set X_ 24.345058881159 > $node_(19) set Y_ 19.614188426582 > $node_(19) set Z_ 0.000000000000 > $node_(20) set X_ 35.972132273531 > $node_(20) set Y_ 10.620805728046 > $node_(20) set Z_ 0.000000000000 > $node_(21) set X_ 49.626765649851 > $node_(21) set Y_ 14.028905860151 > $node_(21) set Z_ 0.000000000000 > $node_(22) set X_ 14.914806804685 > $node_(22) set Y_ 24.094071765795 > $node_(22) set Z_ 0.000000000000 > $node_(23) set X_ 28.443020411336 > $node_(23) set Y_ 24.367299319338 > $node_(23) set Z_ 0.000000000000 > $node_(24) set X_ 48.102836431793 > $node_(24) set Y_ 22.394995544608 > $node_(24) set Z_ 0.000000000000 > > ------------- > > > -- View this message in context: http://www.nabble.com/sample-code-for-wsn-tp21750960p25712965.html Sent from the ns-users mailing list archive at Nabble.com. From agustin.cozzetti at gmail.com Fri Oct 2 06:45:44 2009 From: agustin.cozzetti at gmail.com (Hector Agustin Cozzetti) Date: Fri, 2 Oct 2009 15:45:44 +0200 Subject: [ns] [NS] Simulation Error -> Unable to realloc Message-ID: Hello,I have a strange error in my new simulation. When the simulation starts (during the initial loading) I receive the following error message: "Unable to realloc 268435461 byte". I use a big scenario: grid topology with 5000 veichle. I have seen that NS2 uses a lot of RAM memory (not all) and also a little bit of SWAP memory. I don't understand where is the problem...any suggestion? Thank you very much!!! Agustin From marwouta23 at yahoo.fr Fri Oct 2 14:21:29 2009 From: marwouta23 at yahoo.fr (carolina2) Date: Fri, 2 Oct 2009 14:21:29 -0700 (PDT) Subject: [ns] how to get the coordinates of the nodes in evrey period of time In-Reply-To: References: Message-ID: <25722075.post@talk.nabble.com> HI all, how can I extract the coordinates of a mobile node known that I have initialized their positions in the file.tcl ?? Are there a source code which the trace file has as fields the coordiantes (X,Y and Z) Hope that you will answer me soon. Thanks in advance. Mubashir Rehmani wrote: > > > Hi, > > Try to use timers to get the coordinates of the nodes periodically. See > ns2 > manual for timers. > > Regards > Mubashir Husain Rehmani > > 2009/3/24 anas > >> >> Dear users >> >> how to get the coordinates of the nodes in evrey period of time >> >> Regards >> >> Anas >> > > > > -- > Mubashir Husain Rehmani > > -- View this message in context: http://www.nabble.com/how-to-get-the-coordinates-of-the-nodes-in-evrey-period-of-time-tp22677334p25722075.html Sent from the ns-users mailing list archive at Nabble.com. From reevaa86 at gmail.com Fri Oct 2 22:01:51 2009 From: reevaa86 at gmail.com (Revathi Muthukumar) Date: Sat, 3 Oct 2009 10:31:51 +0530 Subject: [ns] energy value in trace file Message-ID: <8aaa36b30910022201g6daae318h5957992d954f3cd@mail.gmail.com> I have added a new protocol GPSR in ns2.I have done all the modifications accordingly inside ns2.I want the energy value to be printed in trace files. I have also added enregymodel in my tcl file.But i am not able to get the energy in trace file.Plz help.. -- Revathi From marwouta23 at yahoo.fr Sat Oct 3 05:51:19 2009 From: marwouta23 at yahoo.fr (carolina2) Date: Sat, 3 Oct 2009 05:51:19 -0700 (PDT) Subject: [ns] coordiantes of nodes mobile Message-ID: <25728483.post@talk.nabble.com> Hi all, how to get the coordinates of the nodes in evrey period of time ?? Hope that you will answer me soon !! Best regards -- View this message in context: http://www.nabble.com/coordiantes-of-nodes-mobile-tp25728483p25728483.html Sent from the ns-users mailing list archive at Nabble.com. From marwouta23 at yahoo.fr Sat Oct 3 05:52:11 2009 From: marwouta23 at yahoo.fr (carolina2) Date: Sat, 3 Oct 2009 05:52:11 -0700 (PDT) Subject: [ns] coordinates of node mobile Message-ID: <25728492.post@talk.nabble.com> Hi all, how to get the coordinates of the nodes in every period of time ?? Hope that you will answer me soon !! Best regards -- View this message in context: http://www.nabble.com/coordinates-of-node-mobile-tp25728492p25728492.html Sent from the ns-users mailing list archive at Nabble.com. From rakusust at gmail.com Sat Oct 3 08:15:40 2009 From: rakusust at gmail.com (Suranjit Paul) Date: Sat, 3 Oct 2009 11:15:40 -0400 Subject: [ns] Nam ERROR in ns-allinone-2.29 Message-ID: <90bb9e8d0910030815r7338df16p1ba2d96c4029a776@mail.gmail.com> Hi all, I am using ns-allinone-2.29 in my Ubuntu and I had to face some problems while installing ns-allinone-2.29. But now whenever I run a tcl file the following error occurs. Don't know what to do. ------------------------------------------------------------------------------------------------- nam: [code omitted because of length] : no event type or button # or keysym while executing "bind Listbox { %W yview scroll [expr {- (%D / 120) * 4}] units }" invoked from within "if {[string equal [tk windowingsystem] "classic"] || [string equal [tk windowingsystem] "aqua"]} { bind Listbox { %W yview scroll [expr {..." ------------------------------------------------------------------------------------------------- Please help me out here. Thanks, Suranjit From sr.nsuser at gmail.com Sat Oct 3 09:37:33 2009 From: sr.nsuser at gmail.com (soheila rahmani) Date: Sat, 3 Oct 2009 20:07:33 +0330 Subject: [ns] can I don't use routing protocol? Message-ID: <24a228b00910030937n3fb8976dka5ba6d4e4826d12e@mail.gmail.com> Hi all I write a new queue and my simulation topology has 5 wireless node. when I use AODV protocol I have an error (segmentation fault) and use DSDV not error bus all of the packet will be drop! can I don't use any routing protocol? because number of my node is small and I don't need routing ? thanks From sr.nsuser at gmail.com Sat Oct 3 11:11:18 2009 From: sr.nsuser at gmail.com (soheila rahmani) Date: Sat, 3 Oct 2009 21:41:18 +0330 Subject: [ns] have segmentation fault with using AODV Message-ID: <24a228b00910031111s205a5e67sac0c906fcda4da66@mail.gmail.com> Hi all I Write a new queue for wireless network when I use AODV I have segmentation fault error. what do I do? thanks From sr.nsuser at gmail.com Sat Oct 3 13:11:07 2009 From: sr.nsuser at gmail.com (soheila rahmani) Date: Sat, 3 Oct 2009 23:41:07 +0330 Subject: [ns] plz help me to wite a new queue that cache data Message-ID: <24a228b00910031311p7e4bf42wa7bb65b99062904b@mail.gmail.com> Hi I tried to write a new queue that cache some data which has frametype=1 in an array, and when a nack packe income to queue search array if there is send the stored packe in cache. but I use AODV in simulation TCl and have segmentation fault can you help me? void DtRrQueue::enque(Packet* p) { hdr_ip* ih = hdr_ip::access(p); hdr_cmn* ch = hdr_cmn::access(p); Packet *p2=p->copy(); hdr_ip* ih2 = hdr_ip::access(p2); hdr_cmn* ch2 = hdr_cmn::access(p2); if ( ch->nack_==1) // recive a nack packet { find=0; for(int f=0; f<1000;f++) { if (q3_[f]!=0){ hdr_cmn* ch3 = hdr_cmn::access(q3_[f]); if (ch3->uid_==ch->uid_) {find=1; temp=f; break;} }} if (find==1) { q1_->enque(q3_[temp] ); drop(p); } else { q1_->enque(p); } } else { // this is a data packet q1_->enque(p); if (ch2->frametype_==1 && ch2->nack_==0) { q3_[index]=p2; index++; } }//else } From nosterxander at yahoo.com Sat Oct 3 20:40:23 2009 From: nosterxander at yahoo.com (Varun Alex) Date: Sat, 3 Oct 2009 20:40:23 -0700 (PDT) Subject: [ns] spoofed attack Message-ID: <487338.91218.qm@web59901.mail.ac4.yahoo.com> i am doing project on DDoS attack if anyone has the code to manipulate the packet header of a node or any one has the code for spoofed attack please send it to the mail id nosterxander at yahoo.com please vey urgent. From Eclipse612 at hotmail.com Sat Oct 3 23:50:52 2009 From: Eclipse612 at hotmail.com (Eclipse612) Date: Sat, 3 Oct 2009 23:50:52 -0700 (PDT) Subject: [ns] TCP socket support for NS2 Message-ID: <25680954.post@talk.nabble.com> Hitesh Khandelwal wrote: > > > I want to have TCP socket support for NS2. On searching I came across > gnutella project which implemented TCP sockets for NS2. ( > http://www.cc.gatech.edu/computing/compass/gnutella/install.html). I > followed the instructions given on the page and recompiled NS2 > successfully. > But when I tried to compile the test program given > http://www.cc.gatech.edu/computing/compass/gnutella/socket.tcl I got the > following error: > > ------------------------------ > --------------------------------------------------------- > $ ns socket.tcl > > (_o3 cmd line 1) > invoked from within > "_o3 cmd create-sock 0 _o28 6346" > invoked from within > "catch "$self cmd $args" ret" > invoked from within > "if [catch "$self cmd $args" ret] { > set cls [$self info class] > global errorInfo > set savedInfo $errorInfo > error "error when calling class $cls: $args" $..." > (procedure "_o3" line 2) > (SplitObject unknown line 2) > invoked from within > "$ns create-sock $id0 $srv 6346" > invoked from within > "set ssock [$ns create-sock $id0 $srv 6346]" > (file "socket.tcl" line 8) > --------------------------------------------------------------------------------------- > > Has anyone else also faced the same problem? Please help me to sort this > problem. (NS2 version 2.31) > Is there any other code available for TCP socket support for NS2 ? > Thanks in advance. > > Hitesh Khandelwal > IIT Kanpur, INDIA > > I ran into a similar error and realized there are a couple of wrong calls to TCL procedures that cause the code to return errors. I guess it's old procedures that have changed names since the code was released. Anyway, I avoided those errors by making the following changes to ns-gnutella.tcl: -Substitute $node bind $tagent $port With $node attach $tagent $port -Substitute set port_ [$node bind $tagent 0] With set port_ [$node attach $tagent 0] -Substitute set bip [$lagent myipaddr] set bport [$lagent myport] With set bip [$lagent addr] set bport [$lagent port] This way I got the script to overcome that error. Anyway, many other issues open after this. If someone has experience in using the Tcp Socket code, please answer. I need to get this working and it looks like nobody is supporting the code right now. -- View this message in context: http://www.nabble.com/TCP-socket-support-for-NS2-tp16379848p25680954.html Sent from the ns-users mailing list archive at Nabble.com. From jeni_m110 at yahoo.com Sun Oct 4 02:34:06 2009 From: jeni_m110 at yahoo.com (jeni martin) Date: Sun, 4 Oct 2009 02:34:06 -0700 (PDT) Subject: [ns] run ADMR please Message-ID: <46460.77761.qm@web110311.mail.gq1.yahoo.com> hi all, ? can anyone check the ADMR code for me and tell me that it has bugs or not??i took this code from : http://www.monarch.cs.rice.edu/multicast_extensions.html ? it contains the tcl file too. From manoula_18 at hotmail.fr Sun Oct 4 15:52:11 2009 From: manoula_18 at hotmail.fr (manel MK) Date: Sun, 4 Oct 2009 22:52:11 +0000 Subject: [ns] Needed help with leach trace file !! Message-ID: Hello , I have fix all the bug when trying to run the leach script trace file generated by script-generator-tools using mannasim , but the tarce.tr that i get after the end of simulation is empty . what i have on shel : Initializing MannaSim Script... Setting up mica 2 mote with Antenna/OmniAntenna and range = 100 LEACH requires RCALinkLayer! Forcing it!!! LEACH requires LeachWirelessPhy! Forcing it!!! LEACH requires Mac/Sensor! Forcing it!!! Nodes count: - 1 access points - 10 common nodes - 0 cluster heads - 11 nodes - DumbAgent routing protocol - RCALinkLayer link layer - Phy/WirelessPhy/LeachWirelessPhy network interface Scenario size: 100.0 x 100.0 Using trace.tr as trace file num_nodes is set 11 Creating an access point... Setting up mica 2 mote with Antenna/OmniAntenna and range = 100 LEACH requires RCALinkLayer! Forcing it!!! LEACH requires Mac/Sensor! Forcing it!!! Using mica 2 mote settings Setting up mica 2 mote with Antenna/OmniAntenna and range = 100 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead * Access point 0 = 0 created in (50.0, 50.0, 0.0) Creating common node... Setting up mica 2 mote with Antenna/OmniAntenna and range = 100 LEACH requires RCALinkLayer! Forcing it!!! LEACH requires Mac/Sensor! Forcing it!!! Using mica 2 mote settings Setting up mica 2 mote with Antenna/OmniAntenna and range = 100 Setting disseminating type to programmed Setting disseminating interval: 20.0 * Node 1 = 1 created in (65.195718391423924, 22.10439477213863, 0.0) NO CLUSTER HEADS HAS BEEN DEFINED! Assuming 20% of common nodes. * Node 2 = 2 created in (48.997000394853295, 34.352317468427266, 0.0) * Node 3 = 3 created in (35.733602445448568, 35.65577135219042, 0.0) * Node 4 = 4 created in (41.243919144032489, 21.511542527708944, 0.0) * Node 5 = 5 created in (46.250442809541916, 77.977135906916644, 0.0) * Node 6 = 6 created in (45.98732574190354, 95.19141712002056, 0.0) * Node 7 = 7 created in (54.584607367676028, 65.441185126752217, 0.0) * Node 8 = 8 created in (83.214464449889249, 92.487147959176056, 0.0) * Node 9 = 9 created in (93.868381806587976, 82.022201866853138, 0.0) * Node 10 = 10 created in (41.294232495731784, 73.068146581327611, 0.0) Starting Simulation... 9 is setting code to 0 Node 9 is a cluster head at time 0.083247 9 is setting code to 1 csEnd(code): code > CS_MAX_CODE?; 1699622176 999 Is there any person that had something like this ( is this a properly execution for leach or there is some errors !!!! ) Plz help me , I really appreciate any suggestions Kind regards and thanks in advance _________________________________________________________________ Un avatar ? votre image ? Cr?ez votre mini-moi ! http://www.ilovemessenger.fr/minimize-me/ From atifet97 at yahoo.com Sun Oct 4 19:03:09 2009 From: atifet97 at yahoo.com (Atif Sharif) Date: Sun, 4 Oct 2009 19:03:09 -0700 (PDT) Subject: [ns] MAC layer access Message-ID: <334844.70380.qm@web57706.mail.re3.yahoo.com> Dear all! ? I want to access the MAC layer functionality at the Routing layer in NS_2.? Any body had done some work in this regard? is this can be made by using the 802.11.cc --modify it and recomplile the entire case as we normally did fo agent making? Cheers Atif From manoula_18 at hotmail.fr Mon Oct 5 00:18:30 2009 From: manoula_18 at hotmail.fr (manel MK) Date: Mon, 5 Oct 2009 07:18:30 +0000 Subject: [ns] Needed Help in aodv trace file Message-ID: Hi all, Can anyone help me to read this aodv.tcl trace file generated by the "script-generator-tools" mannasim, ns-2 networks module ( give me The role of each column ) and how i can get his xpragh s -t 0.029990624 -Hs 1 -Hd -2 -Ni 1 -Nx 22.64 -Ny 38.94 -Nz 0.00 -Ne 9.999987 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 0 -Iv 32 r -t 0.029990624 -Hs 1 -Hd -2 -Ni 1 -Nx 22.64 -Ny 38.94 -Nz 0.00 -Ne 9.999987 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 0 -Iv 32 s -t 0.029990624 -Hs 2 -Hd -2 -Ni 2 -Nx 79.21 -Ny 96.93 -Nz 0.00 -Ne 9.999987 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 2.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 1 -Iv 32 r -t 0.029990624 -Hs 2 -Hd -2 -Ni 2 -Nx 79.21 -Ny 96.93 -Nz 0.00 -Ne 9.999987 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 2.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 1 -Iv 32 s -t 0.029990624 -Hs 3 -Hd -2 -Ni 3 -Nx 11.29 -Ny 85.62 -Nz 0.00 -Ne 9.999987 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 3.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 2 -Iv 32 r -t 0.029990624 -Hs 3 -Hd -2 -Ni 3 -Nx 11.29 -Ny 85.62 -Nz 0.00 -Ne 9.999987 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 3.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 2 -Iv 32 s -t 0.029990624 -Hs 4 -Hd -2 -Ni 4 -Nx 36.99 -Ny 63.63 -Nz 0.00 -Ne 9.999987 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 4.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 3 -Iv 32 r -t 0.029990624 -Hs 4 -Hd -2 -Ni 4 -Nx 36.99 -Ny 63.63 -Nz 0.00 -Ne 9.999987 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 4.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 3 -Iv 32 s -t 0.029990624 -Hs 5 -Hd -2 -Ni 5 -Nx 78.52 -Ny 35.59 -Nz 0.00 -Ne 9.999987 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 5.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 4 -Iv 32 r -t 0.029990624 -Hs 5 -Hd -2 -Ni 5 -Nx 78.52 -Ny 35.59 -Nz 0.00 -Ne 9.999987 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 5.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 4 -Iv 32 s -t 0.029990624 -Hs 6 -Hd -2 -Ni 6 -Nx 8.82 -Ny 31.09 -Nz 0.00 -Ne 9.999987 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 6.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 5 -Iv 32 r -t 0.029990624 -Hs 6 -Hd -2 -Ni 6 -Nx 8.82 -Ny 31.09 -Nz 0.00 -Ne 9.999987 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 6.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 5 -Iv 32 s -t 0.029990624 -Hs 7 -Hd -2 -Ni 7 -Nx 85.47 -Ny 60.97 -Nz 0.00 -Ne 9.999987 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 7.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 6 -Iv 32 r -t 0.029990624 -Hs 7 -Hd -2 -Ni 7 -Nx 85.47 -Ny 60.97 -Nz 0.00 -Ne 9.999987 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 7.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 6 -Iv 32 s -t 0.029990624 -Hs 8 -Hd -2 -Ni 8 -Nx 45.57 -Ny 86.56 -Nz 0.00 -Ne 9.999987 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 8.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 7 -Iv 32 r -t 0.029990624 -Hs 8 -Hd -2 -Ni 8 -Nx 45.57 -Ny 86.56 -Nz 0.00 -Ne 9.999987 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 8.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 7 -Iv 32 s -t 0.029990624 -Hs 9 -Hd -2 -Ni 9 -Nx 94.25 -Ny 51.36 -Nz 0.00 -Ne 9.999987 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 9.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 8 -Iv 32 r -t 0.029990624 -Hs 9 -Hd -2 -Ni 9 -Nx 94.25 -Ny 51.36 -Nz 0.00 -Ne 9.999987 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 9.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 8 -Iv 32 s -t 0.029990624 -Hs 10 -Hd -2 -Ni 10 -Nx 42.49 -Ny 22.24 -Nz 0.00 -Ne 9.999987 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 10.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 9 -Iv 32 r -t 0.029990624 -Hs 10 -Hd -2 -Ni 10 -Nx 42.49 -Ny 22.24 -Nz 0.00 -Ne 9.999987 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 10.2020 -Id 0.2020 -It udp -Il 32 -If 0 -Ii 9 -Iv 32 s -t 0.029990624 -Hs 1 -Hd -2 -Ni 1 -Nx 22.64 -Ny 38.94 -Nz 0.00 -Ne 9.999837 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 1 -Pss 4 -Pc REQUEST s -t 0.029990624 -Hs 2 -Hd -2 -Ni 2 -Nx 79.21 -Ny 96.93 -Nz 0.00 -Ne 9.999837 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 2.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 2 -Pss 4 -Pc REQUEST s -t 0.029990624 -Hs 3 -Hd -2 -Ni 3 -Nx 11.29 -Ny 85.62 -Nz 0.00 -Ne 9.999837 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 3.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 3 -Pss 4 -Pc REQUEST s -t 0.029990624 -Hs 4 -Hd -2 -Ni 4 -Nx 36.99 -Ny 63.63 -Nz 0.00 -Ne 9.999837 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 4.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 4 -Pss 4 -Pc REQUEST s -t 0.029990624 -Hs 5 -Hd -2 -Ni 5 -Nx 78.52 -Ny 35.59 -Nz 0.00 -Ne 9.999837 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 5.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 5 -Pss 4 -Pc REQUEST s -t 0.029990624 -Hs 6 -Hd -2 -Ni 6 -Nx 8.82 -Ny 31.09 -Nz 0.00 -Ne 9.999837 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 6.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 6 -Pss 4 -Pc REQUEST s -t 0.029990624 -Hs 7 -Hd -2 -Ni 7 -Nx 85.47 -Ny 60.97 -Nz 0.00 -Ne 9.999837 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST s -t 0.029990624 -Hs 8 -Hd -2 -Ni 8 -Nx 45.57 -Ny 86.56 -Nz 0.00 -Ne 9.999837 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 8.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 8 -Pss 4 -Pc REQUEST s -t 0.029990624 -Hs 9 -Hd -2 -Ni 9 -Nx 94.25 -Ny 51.36 -Nz 0.00 -Ne 9.999837 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 9.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 9 -Pss 4 -Pc REQUEST s -t 0.029990624 -Hs 10 -Hd -2 -Ni 10 -Nx 42.49 -Ny 22.24 -Nz 0.00 -Ne 9.999837 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST s -t 0.030055624 -Hs 7 -Hd -2 -Ni 7 -Nx 85.47 -Ny 60.97 -Nz 0.00 -Ne 9.999837 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 100 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST N -t 0.030056 -n 9 -e 9.999818 N -t 0.030056 -n 5 -e 9.999818 N -t 0.030056 -n 2 -e 9.999818 N -t 0.030056 -n 0 -e 99.999600 N -t 0.030056 -n 8 -e 9.999818 N -t 0.030056 -n 4 -e 9.999818 N -t 0.030056 -n 10 -e 9.999818 N -t 0.030056 -n 1 -e 9.999818 N -t 0.030056 -n 3 -e 9.999818 N -t 0.030056 -n 6 -e 9.999818 r -t 0.030855667 -Hs 9 -Hd -2 -Ni 9 -Nx 94.25 -Ny 51.36 -Nz 0.00 -Ne 9.999818 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030855712 -Hs 5 -Hd -2 -Ni 5 -Nx 78.52 -Ny 35.59 -Nz 0.00 -Ne 9.999818 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030855746 -Hs 2 -Hd -2 -Ni 2 -Nx 79.21 -Ny 96.93 -Nz 0.00 -Ne 9.999818 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030855748 -Hs 0 -Hd -2 -Ni 0 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne 99.999600 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030855782 -Hs 8 -Hd -2 -Ni 8 -Nx 45.57 -Ny 86.56 -Nz 0.00 -Ne 9.999818 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030855786 -Hs 4 -Hd -2 -Ni 4 -Nx 36.99 -Ny 63.63 -Nz 0.00 -Ne 9.999818 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030855817 -Hs 10 -Hd -2 -Ni 10 -Nx 42.49 -Ny 22.24 -Nz 0.00 -Ne 9.999818 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030855846 -Hs 1 -Hd -2 -Ni 1 -Nx 22.64 -Ny 38.94 -Nz 0.00 -Ne 9.999818 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030855884 -Hs 3 -Hd -2 -Ni 3 -Nx 11.29 -Ny 85.62 -Nz 0.00 -Ne 9.999818 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030855898 -Hs 6 -Hd -2 -Ni 6 -Nx 8.82 -Ny 31.09 -Nz 0.00 -Ne 9.999818 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030880667 -Hs 9 -Hd -2 -Ni 9 -Nx 94.25 -Ny 51.36 -Nz 0.00 -Ne 9.999818 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030880712 -Hs 5 -Hd -2 -Ni 5 -Nx 78.52 -Ny 35.59 -Nz 0.00 -Ne 9.999818 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030880746 -Hs 2 -Hd -2 -Ni 2 -Nx 79.21 -Ny 96.93 -Nz 0.00 -Ne 9.999818 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030880748 -Hs 0 -Hd -2 -Ni 0 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne 99.999600 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST s -t 0.030880748 -Hs 0 -Hd 7 -Ni 0 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne 99.999600 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.255 -Id 7.255 -It AODV -Il 44 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x4 -Ph 1 -Pd 0 -Pds 4 -Pl 10.000000 -Pc REPLY r -t 0.030880782 -Hs 8 -Hd -2 -Ni 8 -Nx 45.57 -Ny 86.56 -Nz 0.00 -Ne 9.999818 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030880786 -Hs 4 -Hd -2 -Ni 4 -Nx 36.99 -Ny 63.63 -Nz 0.00 -Ne 9.999818 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030880817 -Hs 10 -Hd -2 -Ni 10 -Nx 42.49 -Ny 22.24 -Nz 0.00 -Ne 9.999818 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030880846 -Hs 1 -Hd -2 -Ni 1 -Nx 22.64 -Ny 38.94 -Nz 0.00 -Ne 9.999818 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030880884 -Hs 3 -Hd -2 -Ni 3 -Nx 11.29 -Ny 85.62 -Nz 0.00 -Ne 9.999818 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.030880898 -Hs 6 -Hd -2 -Ni 6 -Nx 8.82 -Ny 31.09 -Nz 0.00 -Ne 9.999818 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 7.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST s -t 0.031005817 -Hs 10 -Hd -2 -Ni 10 -Nx 42.49 -Ny 22.24 -Nz 0.00 -Ne 9.999818 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 100 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST N -t 0.031006 -n 1 -e 9.999799 N -t 0.031006 -n 0 -e 99.999200 N -t 0.031006 -n 6 -e 9.999799 N -t 0.031006 -n 5 -e 9.999799 N -t 0.031006 -n 4 -e 9.999799 N -t 0.031006 -n 7 -e 9.999789 N -t 0.031006 -n 9 -e 9.999799 N -t 0.031006 -n 8 -e 9.999799 N -t 0.031006 -n 3 -e 9.999799 N -t 0.031006 -n 2 -e 9.999799 r -t 0.031805903 -Hs 1 -Hd -2 -Ni 1 -Nx 22.64 -Ny 38.94 -Nz 0.00 -Ne 9.999799 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031805913 -Hs 0 -Hd -2 -Ni 0 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne 99.999200 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031805933 -Hs 6 -Hd -2 -Ni 6 -Nx 8.82 -Ny 31.09 -Nz 0.00 -Ne 9.999799 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031805945 -Hs 5 -Hd -2 -Ni 5 -Nx 78.52 -Ny 35.59 -Nz 0.00 -Ne 9.999799 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031805956 -Hs 4 -Hd -2 -Ni 4 -Nx 36.99 -Ny 63.63 -Nz 0.00 -Ne 9.999799 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031806010 -Hs 7 -Hd -2 -Ni 7 -Nx 85.47 -Ny 60.97 -Nz 0.00 -Ne 9.999789 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031806015 -Hs 9 -Hd -2 -Ni 9 -Nx 94.25 -Ny 51.36 -Nz 0.00 -Ne 9.999799 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031806031 -Hs 8 -Hd -2 -Ni 8 -Nx 45.57 -Ny 86.56 -Nz 0.00 -Ne 9.999799 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031806052 -Hs 3 -Hd -2 -Ni 3 -Nx 11.29 -Ny 85.62 -Nz 0.00 -Ne 9.999799 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031806094 -Hs 2 -Hd -2 -Ni 2 -Nx 79.21 -Ny 96.93 -Nz 0.00 -Ne 9.999799 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031830903 -Hs 1 -Hd -2 -Ni 1 -Nx 22.64 -Ny 38.94 -Nz 0.00 -Ne 9.999799 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031830913 -Hs 0 -Hd -2 -Ni 0 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne 99.999200 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST s -t 0.031830913 -Hs 0 -Hd 10 -Ni 0 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne 99.999200 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.255 -Id 10.255 -It AODV -Il 44 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x4 -Ph 1 -Pd 0 -Pds 6 -Pl 10.000000 -Pc REPLY r -t 0.031830933 -Hs 6 -Hd -2 -Ni 6 -Nx 8.82 -Ny 31.09 -Nz 0.00 -Ne 9.999799 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031830945 -Hs 5 -Hd -2 -Ni 5 -Nx 78.52 -Ny 35.59 -Nz 0.00 -Ne 9.999799 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031830956 -Hs 4 -Hd -2 -Ni 4 -Nx 36.99 -Ny 63.63 -Nz 0.00 -Ne 9.999799 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031831010 -Hs 7 -Hd -2 -Ni 7 -Nx 85.47 -Ny 60.97 -Nz 0.00 -Ne 9.999789 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031831015 -Hs 9 -Hd -2 -Ni 9 -Nx 94.25 -Ny 51.36 -Nz 0.00 -Ne 9.999799 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031831031 -Hs 8 -Hd -2 -Ni 8 -Nx 45.57 -Ny 86.56 -Nz 0.00 -Ne 9.999799 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031831052 -Hs 3 -Hd -2 -Ni 3 -Nx 11.29 -Ny 85.62 -Nz 0.00 -Ne 9.999799 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST r -t 0.031831094 -Hs 2 -Hd -2 -Ni 2 -Nx 79.21 -Ny 96.93 -Nz 0.00 -Ne 9.999799 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST s -t 0.031938987 -Hs 1 -Hd -2 -Ni 1 -Nx 22.64 -Ny 38.94 -Nz 0.00 -Ne 9.999799 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms a -Mt 800 -Is 1.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 29 -P aodv -Pt 0x2 -Ph 2 -Pb 1 -Pd 0 -Pds 0 -Ps 10 -Pss 4 -Pc REQUEST s -t 0.031972802 -Hs 10 -Hd -2 -Ni 10 -Nx 42.49 -Ny 22.24 -Nz 0.00 -Ne 9.999789 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 10.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 29 -P aodv -Pt 0x2 -Ph 2 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST s -t 0.032036052 -Hs 3 -Hd -2 -Ni 3 -Nx 11.29 -Ny 85.62 -Nz 0.00 -Ne 9.999799 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 3 -Mt 800 -Is 3.255 -Id -1.255 -It AODV -Il 100 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 3 -Pss 4 -Pc REQUEST N -t 0.032036 -n 4 -e 9.999780 N -t 0.032036 -n 8 -e 9.999780 N -t 0.032036 -n 1 -e 9.999780 N -t 0.032036 -n 0 -e 99.998800 N -t 0.032036 -n 6 -e 9.999780 N -t 0.032036 -n 2 -e 9.999780 N -t 0.032036 -n 10 -e 9.999770 N -t 0.032036 -n 7 -e 9.999770 N -t 0.032036 -n 5 -e 9.999780 N -t 0.032036 -n 9 -e 9.999780 s -t 0.032754537 -Hs 3 -Hd -2 -Ni 3 -Nx 11.29 -Ny 85.62 -Nz 0.00 -Ne 9.999770 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 7 -Mt 800 -Is 3.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 29 -P aodv -Pt 0x2 -Ph 2 -Pb 1 -Pd 0 -Pds 0 -Ps 7 -Pss 4 -Pc REQUEST r -t 0.032836165 -Hs 4 -Hd -2 -Ni 4 -Nx 36.99 -Ny 63.63 -Nz 0.00 -Ne 9.999780 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 3 -Mt 800 -Is 3.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 3 -Pss 4 -Pc REQUEST r -t 0.032836167 -Hs 8 -Hd -2 -Ni 8 -Nx 45.57 -Ny 86.56 -Nz 0.00 -Ne 9.999780 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 3 -Mt 800 -Is 3.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 0 -Pds 0 -Ps 3 -Pss 4 -Pc REQUEST r -t 0.032836212 -Hs 1 -Hd -2 -Ni 1 -Nx 22.64 -Ny 38.94 -Nz 0.00 -Ne 9.999780 -Nl MAC -N Thaking you for reading this . _________________________________________________________________ Tchattez en direct en en vid?o avec vos amis ! http://www.windowslive.fr/messenger/ From garingz at gmail.com Mon Oct 5 02:39:45 2009 From: garingz at gmail.com (reza aditya suseno) Date: Mon, 5 Oct 2009 16:39:45 +0700 Subject: [ns] help on running emulation in ns-2 Message-ID: dear all, i'm trying to patch emulation extension for NS-2.29 in ubuntu 8.10, after i read this article : < http://ivs.cs.uni-magdeburg.de/EuK/forschung/projekte/nse/ns2emu-dstapp.tgz i try apply that patch and i got some error like this : > common/scheduler.cc:223: warning: deprecated conversion from string > constant to ?char*? > common/scheduler.cc: In member function ?void RealTimeScheduler::sync_ > cputicks()?: > common/scheduler.cc:1061: error: ?rdtscll? was not declared in this scope > make: *** [common/scheduler.o] Error 1 > then i read the solution, it says that i must compile complete kernel source for linux then i compile my kernel in ubuntu, i'm try for compile ns-2.29 again, and i got some error again same as like before, my question is; how i compile my kernel source with right configuration to support this emulation patch? thanks for the attention.. From cresio at gmail.com Mon Oct 5 06:50:43 2009 From: cresio at gmail.com (Vinicius da Cunha M. Borges) Date: Mon, 5 Oct 2009 14:50:43 +0100 Subject: [ns] queue size in bytes and packets in 802.11 Message-ID: Hi, How can I get the queue size in bytes and packets? Best wishes, -- Vinicius From sadik.armagan at gmail.com Mon Oct 5 07:01:38 2009 From: sadik.armagan at gmail.com (=?ISO-8859-9?Q?SADIK_ARMA=D0AN?=) Date: Mon, 5 Oct 2009 15:01:38 +0100 Subject: [ns] -- What is the Maximum Delay (Delay Threshold) for Bluetooth Networks? -- Message-ID: Dear All, I am just searching for the "Maximum Delay (Delay Threshold) for Bluetooth Networks". It also can be the Maximum Delay (Delay Threshold) on Bluetooth Based Body Sensor Networks? Is there anyone there to help me about this? I am waiting to hearing from you. Thank you very much. Sadik From sfx at rocktale.de Mon Oct 5 08:25:10 2009 From: sfx at rocktale.de (Karsten Roscher) Date: Mon, 5 Oct 2009 17:25:10 +0200 (CEST) Subject: [ns] Return value of a scheduled command Message-ID: <00e0b19dc18559d6b4f3311a0a83bc8f.squirrel@rocktale.de> Hello. I was wondering if there is a way to access the return value of a TCL command scheduled with "$ns at ..." (where $ns is the instance of the simulator). Maybe an example will clarify what I mean: Let's say I want to setup and cancel some time slot reservation. I have two commands on a node "setup" with a bunch of parameters, returning the id of a reservation and cancel expecting the id of a reservation. What I wanted to do in my script is something like this... $ns at 2.0 "$node setup ..." -> we need to access the return value here $ns at 4.0 "$node cancel $id" I tried $ns at 2.0 "set id [$node setup ...]" and also set id [$ns at 2.0 "$node setup ..."] The first one gives an error that (when using cancel) the $id variable is not defined and the second stores a value in the id but it's not the id assigned (returned) by the method. I was wondering if it is possible at all to access the value because as far as I understood, the at command only schedules the events (and they get evaluated later). Hence, when scheduling the "cancel" event the setup command hasn't been run yet and therefore the assigend id is unknown. But maybe I'm missing something here. Any ideas? Thanks for your help. Kind regards, Karsten Roscher From pdro07 at gmail.com Mon Oct 5 09:00:09 2009 From: pdro07 at gmail.com (pedro chaparro) Date: Mon, 5 Oct 2009 18:00:09 +0200 Subject: [ns] where is the implementation of the Null agent? Message-ID: hi, i need to modify the behaviour of the Null agent, but i can not find its .cc implementation!! i add to its code socket connections capacities to take the information from an extern application.thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovaci?n iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain From sashtari at sce.carleton.ca Mon Oct 5 11:15:42 2009 From: sashtari at sce.carleton.ca (sashtari@sce.carleton.ca) Date: Mon, 5 Oct 2009 14:15:42 -0400 Subject: [ns] [Fwd: question regarding adding some fileds to a packet] Message-ID: ---------------------------- Original Message ---------------------------- Subject: question regarding adding some fileds to a packet From: sashtari at sce.carleton.ca Date: Mon, October 5, 2009 2:00 pm To: ns-users at ISI.EDU -------------------------------------------------------------------------- Hi everyone I want to add some fields to the Ethernet frame: 802.3. I want to add this fields to the data parts of this packet. Would you tell me how can I do that? Thanks Saeideh From caiomarziale at gmail.com Mon Oct 5 13:10:50 2009 From: caiomarziale at gmail.com (Caio Marziale) Date: Mon, 5 Oct 2009 17:10:50 -0300 Subject: [ns] IFQ ARP error after replacing 802.11 to 802.15.4 In-Reply-To: <3bed78220910051018p524695fu3454022f7992dbab@mail.gmail.com> References: <3bed78220910051018p524695fu3454022f7992dbab@mail.gmail.com> Message-ID: <3bed78220910051310g747c5930wbb5c8c364a792563@mail.gmail.com> Hello, I have worked with a routing algorithm built originally using 802.11, that is working fine. My goal is to test this routing algorithm using 802.15.4, but I got the following error many times: D 83.614966363 _32_ IFQ ARP 1923 cbr 74 [0 20 20 800] [energy 99.222740 ei 0.000 es 0.000 et 0.022 er 0.756] ------- [98:0 0:0 25 21] [3] 6 0 D 83.614966363 _32_ IFQ ARP 1926 cbr 74 [0 20 20 800] [energy 99.222740 ei 0.000 es 0.000 et 0.022 er 0.756] ------- [98:0 0:0 25 21] [4] 6 0 Does anybody know why I got this error? I have just replace the MAC layer using these command lines: From: set opt(netif) Phy/WirelessPhy set opt(mac) Mac/802_11 To: set opt(netif) Phy/WirelessPhy/802_15_4 ;# network interface type set opt(mac) Mac/802_15_4 ; Im using ns 2.33. Thanks! Caio From kashnet at gmail.com Mon Oct 5 21:10:09 2009 From: kashnet at gmail.com (Kashif Saleem) Date: Tue, 6 Oct 2009 12:10:09 +0800 Subject: [ns] AntSense Protocol Implementation Problem In-Reply-To: <52a37030909280319i40a67d9fua270bbd3f4646edb@mail.gmail.com> References: <52a37030909280319i40a67d9fua270bbd3f4646edb@mail.gmail.com> Message-ID: <52a37030910052110v7c9eb7bdg87a07ee9d674fdbe@mail.gmail.com> Hello, While compiling NS2 - 2.28 does not give any error, but when I use antsense under tcl as protocol it stops with the following error. INITIALIZE THE LIST xListHead (_o17 cmd line 1) invoked from within "_o17 cmd if-queue _o20" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o17" line 2) (SplitObject unknown line 2) invoked from within "$agent if-queue [$self set ifq_(0)] " (procedure "_o14" line 24) (Node/MobileNode add-target line 24) invoked from within "$self add-target $agent $port" (procedure "_o14" line 15) (Node attach line 15) invoked from within "$node attach $ragent [Node set rtagent_port_]" (procedure "_o3" line 71) (Simulator create-wireless-node line 71) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 14) (Simulator node line 14) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] # $node_($i) random-motion 0 ;# disable random motion }" (file "wpan_demo1.tcl" line 109) I'll be grateful and thankful if can help me. Regards, Kashif Saleem From udit.vlsi at gmail.com Tue Oct 6 00:08:40 2009 From: udit.vlsi at gmail.com (Udit Kumar) Date: Tue, 6 Oct 2009 16:08:40 +0900 Subject: [ns] Fwd: Ant-Net implementation on ns2.33 In-Reply-To: <345fa6f10910060006m1faf8762s62791b95a668e3b0@mail.gmail.com> References: <345fa6f10910060006m1faf8762s62791b95a668e3b0@mail.gmail.com> Message-ID: <345fa6f10910060008o4a76ebaeq71b78b107edffc74@mail.gmail.com> ---------- Forwarded message ---------- From: Udit Kumar Date: Oct 6, 2009 4:06 PM Subject: Ant-Net implementation on ns2.33 To: ns-users Hi Friends, I am trying to run ant-net algorithim I installed ns2.33 with all changes suggested by "http://antnet.wordpress.com/" Now when I am running one topology it is giving me below problem (But it is able to simulate others protocol) (gdb) run noc.tcl Starting program: /home/students/mtech/2008/iec/een083227/ns-allinone-2.33/bin/ns noc.tclns: [Simulator instance] get-drop-queue 0 4: (_o3 cmd line 1) invoked from within "_o3 cmd get-drop-queue 0 4" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o3" line 2) (SplitObject unknown line 2) invoked from within "[Simulator instance] get-drop-queue 0 4" Program exited with code 01. Please provide your suggestion ... Please help me ... Thanks & Regards, Udit Kumar From sadik.armagan at gmail.com Tue Oct 6 02:09:42 2009 From: sadik.armagan at gmail.com (=?ISO-8859-9?Q?SADIK_ARMA=D0AN?=) Date: Tue, 6 Oct 2009 10:09:42 +0100 Subject: [ns] -- Question? -- if there is a specific algorithm which NIST use for MIH in their NS2 implementation?? -- Message-ID: Hello All, Do you know if there is a specific algorithm which NIST use for MIH in their NS2 implementation?? Can you send me this algorithm? I am looking to hearing from you. Thank you very much. Best Regards, Sadik From claudio at cng1.iet.unipi.it Tue Oct 6 03:55:38 2009 From: claudio at cng1.iet.unipi.it (Claudio Cicconetti) Date: Tue, 06 Oct 2009 12:55:38 +0200 Subject: [ns] WiOpt'10: Call for papers Message-ID: <4ACB222A.606@cng1.iet.unipi.it> ============================================================= Our apologies for duplicated copies of this CFP. ============================================================= WiOPT 2010 CALL FOR PAPERS 9th International Symposium on Conference on Modeling and Optimization in Mobile, Ad Hoc, and Wireless Networks May 31 - June 4, 2010, Avignon, France http://www.wi-opt.org/ Scope This symposium intends to bring together researchers and practitioners working on modeling and optimization of wireless network design and operations. It welcomes original, high-quality works on different perspectives, including performance analysis and simulation, algorithms and protocol design, optimization theory and application, information theoretic analysis including capacity scaling, for all forms of wireless networks: cellular, metropolitan, ad hoc, delay- tolerant, mesh, sensor networks as well as any combination of these. Technical papers describing original, unpublished research, currently not under review by another conference or journal, are solicited. Topics of relevance include, but are not limited to: - Modeling, simulations and performance analysis - Optimization of network design - Optimal control of network operations - Network protocols design - Mobility modeling and management - Scalability and manageability of network architecture - Game theoretic models, pricing and incentive - Opportunistic and cooperative communication - Network and multi-user information theory - Asymptotic system properties (capacity, connectivity, coverage, delay) - Energy efficiency - Cognitive radio - Routing protocols - Cross layer design and optimization Adjunct Workshops One-day workshops will accompany the main WiOpt symposium: RAWNET 2010: Resource Allocation in Wireless Networks SPASWIN 2010: Spatial Stochastic Models for Wireless Networks WiNMee 2010: International Workshop On Wireless Network Measurement WNC3 2010: Wireless Networks:Communication,Cooperation and Competition Important Dates Main symposium: June 01-03, 2010 Adjunct workshops: May 31 and June 04, 2010 Submission deadline: January 8, 2010 Notification of acceptance: March 10, 2010 Camera-ready copy: April 01, 2010 Keynote speakers The WiOpt 2010 program will feature keynote addresses by Eytan Modiano (MIT), Shlomo Shamai (Technion), and Jean Walrand (UC Berkeley). Publication in Journals Top-ranking papers will be considered for fast-track publication in Elsevier's Journal of Computer Networks and in a special issue of Elsevier's Performance Evaluation. Submission instructions The submission format for the papers is an extended abstract, up to eight pages long. Please use the IEEE Transactions format, 11 pt character size, one column text, one-and-a-half line spacing, letter paper. This page budget should contain all figures, tables,references, etc. The extended abstract should also include a brief abstract of up to 150 words. The submission will be handled via EDAS system (http://edas.info). Only PDF files are acceptable; please make sure that the paper prints without problems (e.g., embedded fonts). General Chair ------------- Anthony Ephremides, Univ. of Maryland, USA General Co-chairs ----------------- Eitan Altman, INRIA, France Rachid El-Azouzi, Avignon Univ. France Steering Committee ------------------ Eitan Altman, INRIA, France Tamer Basar, UIUC, USA Imrich Chlamtac, Create-Net, Italy Song Chong, KAIST, Korea Marco Conti, IIT-CNR, Italy Jon Crowcroft, Cambridge Univ., UK Anthony Ephremides, Univ. of Maryland, USA Holger Karl, Univ. of Paderborn, Germany Muriel Medard, MIT, USA Daniele Miorandi, CREATE-NET, Italy Stavros Toumpis, Athens Univ., Greece Roger M. Whitaker, Cardiff Univ. UK Technical Program Chair ----------------------- Ariel Orda, Technion, Israel Technical Program Co-chairs -------------------------- Nidhi Hegde, Orange Labs, France Lavy Libman, Univ. of Sydney, Australia Workshops Chair --------------- David Gesbert, Eurecom, France Publication Chair ----------------- Tijani Chahed, Telecom SudParis, France Publicity Chairs ---------------- Claudio Cicconetti, Univ. Of Pisa, Italy Dinesh Kumar, IBM, USA Nelson Vicu?a, Univ. De Oriente, Venezuela Local Arrangements Chair ------------------------ Tania Jim?nez, Avignon Univ. France Conference Coordinator ---------------------- Agnes Cortell, INRIA, France From aoufi_souhila at yahoo.fr Tue Oct 6 06:29:24 2009 From: aoufi_souhila at yahoo.fr (aoufi souhila) Date: Tue, 6 Oct 2009 13:29:24 +0000 (GMT) Subject: [ns] diffserv in wireless environment In-Reply-To: Message-ID: <368873.41559.qm@web27604.mail.ukl.yahoo.com> Hi Can diffserv be used in wireless environment? in which version of ns can diffserv be used with wireless environment. Please give me a answer Thanks, Aoufi From iunanue at robotiker.es Tue Oct 6 07:53:18 2009 From: iunanue at robotiker.es (Iraide Unanue Calvo) Date: Tue, 6 Oct 2009 16:53:18 +0200 Subject: [ns] Shadowing-Visibility propagation model Message-ID: Hi, I?m interested in working with shadowing-visibility propagation model. I have executed the wireless-shadowing-vis-test.tcl example but the trace a file that I obtain shown that no package is received, the packages are dropped when there is a line of sight between the nodes. Has someone has similar results or knows why this happen? I copy some parts of the nam trace file Thank you in advance # Obstructed + -t 52.390297055 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 21 -k MAC - -t 52.390297055 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 21 -k MAC h -t 52.390297055 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 21 -k MAC + -t 55.505414534 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 22 -k MAC - -t 55.505414534 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 22 -k MAC h -t 55.505414534 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 22 -k MAC # Line of sight + -t 100.742811665 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 38 -k MAC - -t 100.742811665 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 38 -k MAC h -t 100.742811665 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 38 -k MAC d -t 100.744475731 -s 1 -d -1 -p cbr -e 208 -c 2 -a 0 -i 38 -k MAC + -t 106.034754600 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 39 -k MAC - -t 106.034754600 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 39 -k MAC h -t 106.034754600 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 39 -k MAC d -t 106.036418667 -s 1 -d -1 -p cbr -e 208 -c 2 -a 0 -i 39 -k MAC # Obstructed + -t 152.998782735 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 57 -k MAC - -t 152.998782735 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 57 -k MAC h -t 152.998782735 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 57 -k MAC + -t 159.982687058 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 59 -k MAC - -t 159.982687058 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 59 -k MAC h -t 159.982687058 -s 0 -d -1 -p cbr -e 208 -c 2 -a 0 -i 59 -k MAC From kenz1984 at gmail.com Mon Oct 5 21:37:42 2009 From: kenz1984 at gmail.com (Kenneth Zhu) Date: Tue, 6 Oct 2009 13:37:42 +0900 Subject: [ns] Datagram Protocol Simulation Problem Message-ID: Dear ns-users, I have browsed several manuals and tutorials about ns-2. It seems that even with datagram protocols like Agent/UDP, it is needed to connect 2 agents before sending any packets, isn't it? How can I simulate that a node can send a packet to any UDP peers without connection? Best regards, Kenneth From amina.bechtarzi at gmail.com Tue Oct 6 15:55:39 2009 From: amina.bechtarzi at gmail.com (amina bechtarzi) Date: Tue, 6 Oct 2009 23:55:39 +0100 Subject: [ns] Need help in LEACH trace file Message-ID: <1a0476df0910061555m4e8ed37es4d0ba356e05a865a@mail.gmail.com> Hi, I'm actually working on on wireless routing for *sensor* *networks using mannasim*. I tried to execute the leach.tcl generated by script-generator-tool. The trace file generated is empty and i couldn't visualize the simulation !! Any help is welcomed and i will be so grateful. From prajjwal at gmail.com Tue Oct 6 16:30:31 2009 From: prajjwal at gmail.com (Prajjwal Devkota) Date: Tue, 6 Oct 2009 18:30:31 -0500 Subject: [ns] Simulation of i.i.d Bernoulli arrivals Message-ID: <71561c940910061630o2a45bc56j8ef769fc24619da0@mail.gmail.com> Hi list, I need to simulate traffic which resembles iid Bernoulli arrivals with a given rate and fixed frame size. I tried a Poisson traffic model, but my results did not completely match the ones I wanted to reproduce, though the overall behavior was similar. I am suspecting a traffic issue, and someone suggested I should try to generate traffic using a binomial model. I have looked around the web, but have not been able to find anything on this: is it possible to generate binomial traffic using ns-2, and has someone already done it before? I would appreciate any pointers, and any suggestions as to how else I could simulate the i.i.d Bernoulli arrivals. Thanks, Prajjwal From marwouta23 at yahoo.fr Wed Oct 7 00:34:54 2009 From: marwouta23 at yahoo.fr (carolina2) Date: Wed, 7 Oct 2009 00:34:54 -0700 (PDT) Subject: [ns] help about perl script to analyze trace file In-Reply-To: <232877.31968.qm@web94809.mail.in2.yahoo.com> References: <232877.31968.qm@web94809.mail.in2.yahoo.com> Message-ID: <25781843.post@talk.nabble.com> Hi all, if anybody have perl script or documentation about perl in ns2 please send it to me. I will be very grateful. Thanks vaishali mandhare wrote: > > > Hello all, > I want to add some parameter in paper "performance comparision of tcp and > cbr in maodv" for parameters like no of drop out packets and no .of > successful connection, but I am fully unaware of perl script?.?If anybody > have perl script then please send me.PLZ..PLZ.. help as early as possible. > ? > Thanks! > ? > vaishali > > > Explore your hobbies and interests. Go to > http://in.promos.yahoo.com/groups/ > > -- View this message in context: http://www.nabble.com/help-about-perl-script-to-analyze-trace-file-tp23900872p25781843.html Sent from the ns-users mailing list archive at Nabble.com. From pietro.luigi.c at alice.it Wed Oct 7 01:48:17 2009 From: pietro.luigi.c at alice.it (pietro.luigi.c@alice.it) Date: Wed, 7 Oct 2009 10:48:17 +0200 Subject: [ns] NS2.34 BLUETOOTH PATCHES Message-ID: <4BCE17D297EC01429A23AD3CBEDC943D01D936D9@FBCMST05V06.fbc.local> Hi to everyone, I'd like to know if it's possible to install some Bluetooth patch(Blueware, bluehoc,...) on ns 2.34 version. I know they are developed for ns 2.1b7a but this is more difficult to install. Someone could help me? Thank u very much in advance... Pedro From bappyece at yahoo.com Wed Oct 7 05:00:02 2009 From: bappyece at yahoo.com (Shah Ahsanuzzaman) Date: Wed, 7 Oct 2009 05:00:02 -0700 (PDT) Subject: [ns] Need IEEE 802.11e patch files for ns 2.34 Message-ID: <530501.78546.qm@web56401.mail.re3.yahoo.com> Dear users, I installed ns2.34 in Ubuntu(Linux). Can any body give me iee802.11e patch files with some example for ns 2.34. I am developing collision minimization over EDCF. I installed a patch files but it was checked in ns2.28. Thanks you in advance. Shah Ahsanuzzaman Md. Tariq (Bappy) Masters Student Telecommunications Engineering Faculty of Engineering Department of Engineering and Information science University of Trento, Italy From t.ashish at iitg.ernet.in Wed Oct 7 06:51:27 2009 From: t.ashish at iitg.ernet.in (t.ashish@iitg.ernet.in) Date: Wed, 7 Oct 2009 19:21:27 +0530 (IST) Subject: [ns] Mpeg trace files Message-ID: <54670.10.1.1.22.1254923487.squirrel@webmail.iitg.ernet.in> Hi I am working in the field of QoS in small buffer routers.I have to work with video trace files for my simulation.But I get the following error bad file size in video.dat Segmentation fault I have searched the internet but could not find any solution.Any help on how to work with video trace files would be great help for me. Ashish From aoufi_souhila at yahoo.fr Wed Oct 7 07:11:23 2009 From: aoufi_souhila at yahoo.fr (aoufi souhila) Date: Wed, 7 Oct 2009 14:11:23 +0000 (GMT) Subject: [ns] how to present the requirement QoS for a stream In-Reply-To: Message-ID: <494475.45256.qm@web27604.mail.ukl.yahoo.com> Please, how to present the required quality of service for a stream. For example, how to declare that a video traffic require such bandwidth or that a audio traffic requires such delay in ns. give me more examples tcl your response will be very helpful for me Aoufi From sadik.armagan at gmail.com Wed Oct 7 08:47:54 2009 From: sadik.armagan at gmail.com (=?ISO-8859-9?Q?SADIK_ARMA=D0AN?=) Date: Wed, 7 Oct 2009 16:47:54 +0100 Subject: [ns] -- Question? -- What is the algorithm for MIH Link Events on NIST package of NS2? -- Message-ID: Hello everyone, I need your help immediately. I am looking at the link event algorithms on MIH on NIST pakcage of NS2. I could not find any documentation about this yet. I am reading codes but I am not good at C++ so I really don't understand the codes. Do you know the algorithm for creating the link events like Link Going Down, Link Up? Which algorithm they use to create the Link oing Down? I am looking to hearing from you. Thank you very much. Sadik From calafate at disca.upv.es Wed Oct 7 10:25:57 2009 From: calafate at disca.upv.es (Carlos Tavares Calafate) Date: Wed, 07 Oct 2009 19:25:57 +0200 Subject: [ns] IEEE Vehi-Mobi 2010 (co-located with ICC 2010) Message-ID: <4ACCCF25.2040600@disca.upv.es> -------------------------------------------------------------------------------- CALL FOR PAPERS IEEE Vehicular Networks & Applications Workshop (IEEE Vehi-Mobi 2010) Co-located with IEEE International Conference on Communications (ICC 2010) 23-27 May 2010, Cape Town, South Africa Web page: http://www.grc.upv.es/vehimobi2010/ IMPORTANT DATES -------------------------------------------------------------------------------- Paper Submission Deadline: November 1st, 2009 Notification of Acceptance: January 10, 2010 Camera-Ready Submissions: February 10, 2010 Workshop celebration date: To Be Defined -------------------------------------------------------------------------------- Papers submitted to IEEE ICC 2010 workshops with publication must undergo a peer-review process, and accepted papers will be published in IEEE Xplore. -------------------------------------------------------------------------------- AIMS AND SCOPE Vehicle Infrastructure Integration (VII) has been growing rapidly in importance in the past few years. Even despite the global economic downturn that has hit the car industry hard, research continues in this area, as new technical challenges have evolved that demand research and development. Industry players like the automobile companies, and government agencies, like the US Department of Transportation, are investing heavily in research and development in VII. Technologies and applications for VII are rapidly emerging, and there is an critical need to bring together researchers & engineers, academia and industry, standards, private and public sectors, to exchange ideas. This workshop is intended to serve as a forum and bring together the researchers and engineers in both academia and industry to exchange ideas, share experiences, and report original work about all aspects of vehicular communications, VANETs, information dissemination, road safety, ITS, emergency services, etc.. The main purpose is to promote discussions of research and relevant activities in the design of architectures, algorithms, and applications for inter-vehicular communication environments. This workshop will also address some leading standardization efforts (802.11p, p1609, TIA TR48, etc.). Work in progress is also welcome. Key industrial players (GM, Toyota, Telcordia, BMW, etc.) will be represented at this workshop. TOPICS Technical research papers are solicited in the following areas: - Network technologies for VII - New application scenarios of VII - Supporting technology for: Traffic and flow control issues and applications - Supporting technology for: Enhanced braking information dissemination and other road safety applications - Supporting technology for: driver assistance applications - MAC, routing, QoS, addressing, multicast, TCP protocols - Congestion Control and Cooperative VANETs - Mobility and handoff issues - Sensors & Data Collection - Content Distribution - Inter-car communications - Intra-car communications - Info Dissemination; Data organization - Security issues, architectures and solutions - Privacy issues and solutions - Data replication protocols in network partitions - Different technologies (DSRC, WiMAX, WiFi, 3G/4G, cell phone) - Application innovation - 802.11p WAVE ; 802.11s MESH; DSRC - Implementation/deployment status - Network Management for VII EXECUTIVE COMMITEE --------------------------------------------------------------------------------- General Chairs - Dr. Russell Hsing, Telcordia Technologies, USA - Prof. C.K. Toh, University of Hong Kong, CHINA General Vice Chairs - Dr. Daniel Wong, Daniel Wireless LLC, USA - Prof. Pietro Manzoni, Universidad Politecnica De Valencia, SPAIN TPC Chair - Prof. Teruo Higashino Osaka University, Japan TPC Vice Chairs - Dr. Timo Sukuvaara, Finland - Prof. Michele Weigle, Old Dominion Univ, USA - Prof. Juan-Carlos Cano, Universidad Politecnica De Valencia, SPAIN Publications Chair - Prof. Lingyang Song, Peking University, China Publicity Chair - Prof Carlos Calafate, Universidad Politecnica De Valencia, SPAIN Steering Committee - Dr. Russell Hsing, Telcordia Technologies, USA - Prof. C.K. Toh, University of Hong Kong, CHINA - Dr. Daniel Wong, Daniel Wireless LLC, USA - Prof. D K Kim, Kyungpook National University, KOREA --------------------------------------------------------------------------------- ****************************************** Carlos Calafate, PhD Vehi-Mobi 2010 Publicity Chair Computer Networks Group (GRC) Technical University of Valencia, Spain Voice: +34 96 387 7007 ext. 75727 Fax: +34 96 387 7579 E-mail: calafate at disca.upv.es ****************************************** From shakkeera841 at gmail.com Wed Oct 7 17:42:45 2009 From: shakkeera841 at gmail.com (shakkeera liaquath ali khan) Date: Thu, 8 Oct 2009 06:12:45 +0530 Subject: [ns] Problem to run olsr.tcl file in ns 2.34 In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: shakkeera liaquath ali khan Date: Wed, Oct 7, 2009 at 12:04 PM Subject: Problem to run olsr.tcl file in ns 2.34 To: ns-users at isi.edu Hi all, I have installed olsr patch file under olsr directory in ns 2.34.its working with the simple-wireless file correctly...but whenever i am running olsr.tcl file under olsr directory,it dispalys the following error...anybody tell how to clear this error to run the olsr tcl file without any problem... (_o19 cmd line 1) invoked from within "_o19 cmd ragent _o17" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o19" line 2) (SplitObject unknown line 2) invoked from within "$mac ragent $r " ("for" body line 9) invoked from within "for {set i 0} {$i < $opt(NumOfMN) } {incr i} { set node_($i) [$ns_ node] # Set initial position $node_($i) random-motion 0 ;# enable random moti..." (file "olsr.tcl" line 184) Thank you... From ksula88 at yahoo.com Wed Oct 7 19:23:54 2009 From: ksula88 at yahoo.com (Sula K) Date: Wed, 7 Oct 2009 19:23:54 -0700 (PDT) Subject: [ns] ns2 installation under windows Message-ID: <229738.54984.qm@web113116.mail.gq1.yahoo.com> Dear all , I installed NS2 under UBUNTU linux operation system, also I have windows on the same computer, can I install cygwin in the windows OS in my computer then NS2 under windows. does the cygwin interfere with Linux UBUNTU. thanks ksula From amina.bechtarzi at gmail.com Thu Oct 8 04:27:08 2009 From: amina.bechtarzi at gmail.com (amina bechtarzi) Date: Thu, 8 Oct 2009 13:27:08 +0200 Subject: [ns] Xgraph for LEACH Message-ID: <1a0476df0910080427k2d472d86v1de0ac2d7f405f54@mail.gmail.com> Hi all, Please, have anyone has an example of xgraph for LEACH.tcl script genertaed by manansim for calculating energy, please sharing with me a copy or point me in order to generate the xgraph or any other trace analysis for Leach protocol I'm looking for any help soon . thank you in advance From bryan at skynet.ie Thu Oct 8 14:19:06 2009 From: bryan at skynet.ie (Bryan Hogan) Date: Thu, 8 Oct 2009 22:19:06 +0100 (IST) Subject: [ns] Bryan's NS-2 Dynamic Source Routing FAQ Message-ID: Hello all, I have moved my FAQ from it previous location to a new location. Please see - http://www.skynet.ie/~bryan/dsr_faq/index.html Bryan's NS-2 Dynamic Source Routing FAQ Best regards, Bryan From ksula88 at yahoo.com Thu Oct 8 16:33:09 2009 From: ksula88 at yahoo.com (Sula K) Date: Thu, 8 Oct 2009 16:33:09 -0700 (PDT) Subject: [ns] rebroadcasting interval in ns2? Message-ID: <86239.77217.qm@web113104.mail.gq1.yahoo.com> Dear all, I have a problem with a scenario in ns2 as follow: I have one source node and 4 receivers, when the source send information to recivers , can some tell me what is the periodic time interval of rebroadcasting for reciver nodes. I mean normally what is the time interval of two rebroadcasts of one node. thanks ksulla From kenz1984 at gmail.com Thu Oct 8 17:15:41 2009 From: kenz1984 at gmail.com (Kenneth Zhu) Date: Fri, 9 Oct 2009 09:15:41 +0900 Subject: [ns] How to repeat a command in ns-2? Message-ID: Hi, all! I'm trying to implement an agent and I want to send a packet every time I issue some command, like this: $ns at 0.0 "$c0 request [$n1 id] a_temp_string" # .... some other commands $ns at 5.0 "$c0 request [$n1 id] a_temp_string" Unfortunately, ns-2 won't transfer the second (@5.0 one) command to my C++ code implementing sending packets. Interesting, when I modified the script like the following one: $ns at 0.0 "$c0 request [$n1 id] a_temp_string" # ... some other commands $ns at 5.0 "$c0 request [$n1 id] b_temp_string" Then ns-2 runs as expected. Does ns-2 automatically drop identical commands? How could I avoid that? Thank you very much! Regards, Kenneth From hbhubboub at gmail.com Thu Oct 8 20:32:18 2009 From: hbhubboub at gmail.com (huda hubboub) Date: Fri, 9 Oct 2009 05:32:18 +0200 Subject: [ns] installing leach in ns2.27 Message-ID: <2e663b860910082032j10a33bcg304f737a388f1013@mail.gmail.com> Hi all, I am wondering if any one can help me in installing the leach protocol in ns2.27. During my installation, I used the ns2 leach implementation paper as a reference . In the last step concerning bulding ns2 with leach, and when I execute the make command, the following error appears: nohup: ignoring input g++: ?DMIT_uAMPS: No such file or directory g++: ?I./mit/uAMPS: No such file or directory make: *** [common/misc.o] Error 1 could any one please help me in that. I follow the steps in the mentioned paper word by word, still I can't find the error since I am new in ns2. Thank you in advance for ur help. Huda From hbhubboub at gmail.com Thu Oct 8 20:52:48 2009 From: hbhubboub at gmail.com (huda hubboub) Date: Fri, 9 Oct 2009 05:52:48 +0200 Subject: [ns] -DMIT_uAMPS error during installing leach on ns2.27 Message-ID: <2e663b860910082052r19ca1e29v62d5c532e16f6203@mail.gmail.com> Hi all, I am wondering if any one can help me in installing the leach protocol in ns2.27. During my installation, I used the ns2 leach implementation paper as a reference . In the last step concerning bulding ns2 with leach, and when I execute the make command, the following error appears: nohup: ignoring input g++: ?DMIT_uAMPS: No such file or directory g++: ?I./mit/uAMPS: No such file or directory make: *** [common/misc.o] Error 1 could any one please help me in that. I follow the steps in the mentioned paper word by word, still I can't find the error since I am new in ns2. In the mentioned paper, it was written that, in order to perform compilatiom with leach support, u have to add the -DMIT_uAMPS falg to themake file. I don't know how to do that unless it means to add -DMIT_uAMPS to the define list, which I already did. Thank you in advance for ur help. Huda From Jonathan.Petit at irit.fr Fri Oct 9 00:49:19 2009 From: Jonathan.Petit at irit.fr (Jonathan Petit) Date: Fri, 9 Oct 2009 09:49:19 +0200 Subject: [ns] rebroadcasting interval in ns2 Message-ID: Hi Ksulla ! It depends on how do you send broadcast messages. Tell us how do you do. Jonathan From sr.nsuser at gmail.com Fri Oct 9 02:35:45 2009 From: sr.nsuser at gmail.com (soheila rahmani) Date: Fri, 9 Oct 2009 13:05:45 +0330 Subject: [ns] make clean" it does not remove Message-ID: <24a228b00910090235n19a953cdyd7b20151ec554326@mail.gmail.com> Hi all I use ns2.33 under cygwin when I type "make clean" it does not remove .o files ! why? and my protocol run true for 1 week and now it doesn't work and has segmentation error!!!!!!!! can any body help me? thanks From caiomarziale at gmail.com Fri Oct 9 04:51:42 2009 From: caiomarziale at gmail.com (Caio Marziale) Date: Fri, 9 Oct 2009 08:51:42 -0300 Subject: [ns] IFQ ARP error after replacing 802.11 to 802.15.4 Message-ID: <3bed78220910090451k6eec3e7eq63419df4af8072ad@mail.gmail.com> Hello, I have worked with a routing algorithm built originally using 802.11, that is working fine. My goal is to test this routing algorithm using 802.15.4, but I got the following error many times: D 83.614966363 _32_ IFQ ARP 1923 cbr 74 [0 20 20 800] [energy 99.222740 ei 0.000 es 0.000 et 0.022 er 0.756] ------- [98:0 0:0 25 21] [3] 6 0 D 83.614966363 _32_ IFQ ARP 1926 cbr 74 [0 20 20 800] [energy 99.222740 ei 0.000 es 0.000 et 0.022 er 0.756] ------- [98:0 0:0 25 21] [4] 6 0 Does anybody know why I got this error? I have just replace the MAC layer using these command lines: From: set opt(netif) Phy/WirelessPhy set opt(mac) Mac/802_11 To: set opt(netif) Phy/WirelessPhy/802_15_4 ;# network interface type set opt(mac) Mac/802_15_4 ; Im using ns 2.33. Thanks! Caio From jsebinfo at gmail.com Fri Oct 9 05:20:20 2009 From: jsebinfo at gmail.com (Sebastian Terence.J) Date: Fri, 9 Oct 2009 17:50:20 +0530 Subject: [ns] Help me Message-ID: <7eae22450910090520x53b0c3b2v57179a67e47b330@mail.gmail.com> Hi Friends, I want to know how to discover neighbor nodes in mobile environment. If any one know please tell me, it will useful for me. Thank you -Sebastian Terence From mshrehmani at gmail.com Fri Oct 9 08:16:40 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Fri, 9 Oct 2009 17:16:40 +0200 Subject: [ns] Help me In-Reply-To: <7eae22450910090520x53b0c3b2v57179a67e47b330@mail.gmail.com> References: <7eae22450910090520x53b0c3b2v57179a67e47b330@mail.gmail.com> Message-ID: Hi, See these links http://www.nabble.com/Finding-Neighbors-of-a-Mobile-Node.-td21019174.html#a21019289 Regards Mubashir Husain Rehmani 2009/10/9 Sebastian Terence.J > > Hi Friends, > > I want to know how to discover neighbor nodes in mobile environment. If any > one know please tell me, it will useful for me. > > Thank you > > -Sebastian Terence > -- Mubashir Husain Rehmani From t.ashish at iitg.ernet.in Sat Oct 10 00:41:49 2009 From: t.ashish at iitg.ernet.in (t.ashish@iitg.ernet.in) Date: Sat, 10 Oct 2009 13:11:49 +0530 (IST) Subject: [ns] Help regarding tracing Message-ID: <38328.10.1.1.22.1255160509.squirrel@webmail.iitg.ernet.in> Hi The out.tr file generated usually is really large(in my simulation a file of 10 GB is generated) so it is not possible for me use it. What I want to do is that I have a simulation scenario where both tcp and udp traffic exist and I want to find out no of udp packet loss. I have tried using flow monitor and queue monitor but I am not able to get the correct results.Any help regarding how to monitor only the udp packets to count their packet loss would prove to be a great help for my work. Thanks Ashish From bhosalemahesh87 at gmail.com Sat Oct 10 02:44:11 2009 From: bhosalemahesh87 at gmail.com (mahesh bhosale) Date: Sat, 10 Oct 2009 15:14:11 +0530 Subject: [ns] Fwd: help:AWK & ns basics In-Reply-To: <5186c1860910100230h6217a0d8x6d588a85a07ee982@mail.gmail.com> References: <5186c1860910100230h6217a0d8x6d588a85a07ee982@mail.gmail.com> Message-ID: <5186c1860910100244x11b0ba30kdb2a0d64a4c6484c@mail.gmail.com> ---------- Forwarded message ---------- From: mahesh bhosale Date: Sat, Oct 10, 2009 at 3:00 PM Subject: help:AWK & ns basics To: ns-users at isi.edu Hello I am a new user of ns working on energy aware olsr protocol of manet. I want to know about the energy structure of ns also* I want to write awk scripts for average node life time & avg. final energy*. Also one of the main problem to me is I am required to modify the ns 2 code to obtain the amount of energy consumed *over time* by type (energy spent in transmitting ,receiving, overhearing or idle state ) I am using ns2.34 & having the ns manual 2009,please tell me where should Istart;modify the ns code ;tell me in detail the ns code structure details & their references with each other . Suggest literature with topics which I must refer. As I am very new to ns linux I am facing lot of problems,So all the detailed help will be greatly appreciated & expected. Please help me all of you there , waiting for early replies. With Thanks & Regards, Mahesh From manoula_18 at hotmail.fr Sat Oct 10 08:36:09 2009 From: manoula_18 at hotmail.fr (manel MK) Date: Sat, 10 Oct 2009 15:36:09 +0000 Subject: [ns] Need help in tcl script file Message-ID: Hi , I changed the leach code given by mannasim to support my new protocol using the same leach agent. that was compiled without error. I made all necessary changes in the leach.tcl. After which i recompile ns-2 by typing make at ns-2.29 directory it got compiled well. But when i try to use this protocol in my simulation script, it produces the following errors: Initializing MannaSim Script... Setting up mica 2 mote with Antenna/OmniAntenna and range = 80 Nodes count: - 1 access points - 10 common nodes - 0 cluster heads - 11 nodes - LMEER routing protocol - LL link layer - Phy/WirelessPhy network interface Scenario size: 10.0 x 10.0 Using trace.tr as trace file num_nodes is set 11 Creating an access point... Setting up mica 2 mote with Antenna/OmniAntenna and range = 80 Using mica 2 mote settings Setting up mica 2 mote with Antenna/OmniAntenna and range = 80 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl (_o15 cmd line 1) invoked from within "_o15 cmd addr" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o15" line 2) (SplitObject unknown line 2) invoked from within "_o15 addr" ("eval" body line 1) invoked from within "eval $node addr $args" ("default" arm line 2) invoked from within "switch -exact $routingAgent_ { DSDV { set ragent [$self create-dsdv-agent $node] } DSR { $self at 0.0 "$node start-dsr" } AODV { set ragent [$self cre..." (procedure "_o3" line 11) (Simulator create-wireless-node line 11) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 23) (Simulator node line 23) invoked from within "$ns_ node" (procedure "create_access_point" line 11) invoked from within "create_access_point $local(energy) $local(x) $local(y) $local(z) $local(start) $local(stop)" (file "newprotocol.tcl" line 631) Plz help me . Thank you very much _________________________________________________________________ Un avatar ? votre image ? Cr?ez votre mini-moi ! http://www.ilovemessenger.fr/minimize-me/ From sashtari at sce.carleton.ca Sat Oct 10 14:16:38 2009 From: sashtari at sce.carleton.ca (sashtari@sce.carleton.ca) Date: Sat, 10 Oct 2009 17:16:38 -0400 Subject: [ns] question regarding switchs in NS2 In-Reply-To: References: Message-ID: Hello every body would you tell me how can I define a switch and its ports in NS2? Regards Saeideh From pietro.luigi.c at alice.it Sat Oct 10 15:04:47 2009 From: pietro.luigi.c at alice.it (pietro.luigi.c@alice.it) Date: Sun, 11 Oct 2009 00:04:47 +0200 Subject: [ns] Ns2 installation failed Message-ID: <4BCE17D297EC01429A23AD3CBEDC943D01D936DA@FBCMST05V06.fbc.local> Hi, i have the following error, please help me. If u have msn: unisa84 at hotmail.it Pietro ============================================================ * Build ns-2.1b7a ============================================================ loading cache ./config.cache No .configure file found in current directory Continuing with default options... checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for c++... (cached) c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... (cached) yes checking whether c++ accepts -g... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking for string.h... (cached) yes checking for main in -lXbsd... (cached) no checking for socket in -lsocket... (cached) no checking for gethostbyname in -lnsl... (cached) yes checking for dcgettext in -lintl... (cached) no checking for getnodebyname in -ldnet_stub... (cached) no checking that c++ can handle -O2... no checking standard STL is available... no checking for tcl.h... -I../include checking for libtcl8.3... -L../lib -ltcl8.3 checking for init.tcl... ../lib/tcl8.3 checking for tclsh8.3.2... (cached) ../bin/tclsh8.3 checking for tk.h... -I../include checking for libtk8.3... -L../lib -ltk8.3 checking for tk.tcl... ../lib/tk8.3 checking for otcl.h... -I../otcl-1.0a6 checking for libotcl1.0a6... -L../otcl-1.0a6 -lotcl checking for tclcl.h... -I../tclcl-1.0b10 checking for libtclcl... -L../tclcl-1.0b10 -ltclcl checking for tcl2c++... ../tclcl-1.0b10 checking for X11 header files checking for X11 library archive checking for XOpenDisplay in -lX11... (cached) yes checking for XShmAttach in -lXext... (cached) yes checking for libtcldbg... no checking dmalloc... not requested with --with-dmalloc checking for perl... /usr/bin checking for ANSI C header files... (cached) yes checking for bcopy... (cached) yes checking for bzero... (cached) yes checking for fesetprecision... (cached) no checking for getrusage... (cached) yes checking for sbrk... (cached) yes checking for snprintf... (cached) yes checking for arpa/inet.h... (cached) yes checking for netinet/in.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking for time.h... (cached) yes checking for unistd.h... (cached) yes checking for net/ethernet.h... (cached) yes checking return type of random... long checking for int8_t... (cached) yes checking for int16_t... (cached) yes checking for int32_t... (cached) yes checking for u_int8_t... (cached) yes checking for u_int16_t... (cached) yes checking for u_int32_t... (cached) yes checking for strtoq... (cached) yes checking for strtoll... (cached) yes checking size of long... (cached) 4 checking for __int64_t... no checking for long long... yes checking for int64_t... (cached) yes checking which kind of 64-bit int to use... int64_t checking for struct ether_header... found checking for struct ether_addr... found checking for addr2ascii... (cached) no Explicitly disabling static compilation checking for dlopen in -ldl... (cached) yes checking for a BSD compatible install... (cached) /usr/bin/install -c creating ./config.status creating Makefile creating tcl/lib/ns-autoconf.tcl creating tcl/lib/ns-stl.tcl creating indep-utils/webtrace-conv/ucb/Makefile creating indep-utils/webtrace-conv/dec/Makefile creating indep-utils/webtrace-conv/nlanr/Makefile creating indep-utils/webtrace-conv/epa/Makefile creating indep-utils/cmu-scen-gen/setdest/Makefile creating autoconf.h autoconf.h is unchanged c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A6 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/home/user/ns-allinone-2.1b7a/tclcl-1.0b10 -I/home/user/ns-allinone-2.1b7a/otcl-1.0a6 -I/home/user/ns-allinone-2.1b7a/include -I/home/user/ns-allinone-2.1b7a/include -o trace.o trace.cc In file included from trace.cc:40: packet.h: In constructor ?p_info::p_info()?: packet.h:152: warning: deprecated conversion from string constant to ?char*? packet.h:153: warning: deprecated conversion from string constant to ?char*? packet.h:154: warning: deprecated conversion from string constant to ?char*? packet.h:155: warning: deprecated conversion from string constant to ?char*? packet.h:156: warning: deprecated conversion from string constant to ?char*? packet.h:157: warning: deprecated conversion from string constant to ?char*? packet.h:158: warning: deprecated conversion from string constant to ?char*? packet.h:159: warning: deprecated conversion from string constant to ?char*? packet.h:160: warning: deprecated conversion from string constant to ?char*? packet.h:161: warning: deprecated conversion from string constant to ?char*? packet.h:162: warning: deprecated conversion from string constant to ?char*? packet.h:163: warning: deprecated conversion from string constant to ?char*? packet.h:164: warning: deprecated conversion from string constant to ?char*? packet.h:165: warning: deprecated conversion from string constant to ?char*? packet.h:166: warning: deprecated conversion from string constant to ?char*? packet.h:167: warning: deprecated conversion from string constant to ?char*? packet.h:168: warning: deprecated conversion from string constant to ?char*? packet.h:169: warning: deprecated conversion from string constant to ?char*? packet.h:170: warning: deprecated conversion from string constant to ?char*? packet.h:171: warning: deprecated conversion from string constant to ?char*? packet.h:173: warning: deprecated conversion from string constant to ?char*? packet.h:174: warning: deprecated conversion from string constant to ?char*? packet.h:175: warning: deprecated conversion from string constant to ?char*? packet.h:176: warning: deprecated conversion from string constant to ?char*? packet.h:177: warning: deprecated conversion from string constant to ?char*? packet.h:178: warning: deprecated conversion from string constant to ?char*? packet.h:180: warning: deprecated conversion from string constant to ?char*? packet.h:181: warning: deprecated conversion from string constant to ?char*? packet.h:182: warning: deprecated conversion from string constant to ?char*? packet.h:183: warning: deprecated conversion from string constant to ?char*? packet.h:184: warning: deprecated conversion from string constant to ?char*? packet.h:185: warning: deprecated conversion from string constant to ?char*? packet.h:186: warning: deprecated conversion from string constant to ?char*? packet.h:187: warning: deprecated conversion from string constant to ?char*? packet.h:188: warning: deprecated conversion from string constant to ?char*? packet.h:189: warning: deprecated conversion from string constant to ?char*? packet.h:190: warning: deprecated conversion from string constant to ?char*? packet.h:191: warning: deprecated conversion from string constant to ?char*? packet.h:192: warning: deprecated conversion from string constant to ?char*? packet.h:193: warning: deprecated conversion from string constant to ?char*? packet.h:195: warning: deprecated conversion from string constant to ?char*? packet.h:196: warning: deprecated conversion from string constant to ?char*? packet.h:198: warning: deprecated conversion from string constant to ?char*? packet.h:199: warning: deprecated conversion from string constant to ?char*? packet.h:200: warning: deprecated conversion from string constant to ?char*? packet.h:203: warning: deprecated conversion from string constant to ?char*? packet.h:206: warning: deprecated conversion from string constant to ?char*? packet.h:209: warning: deprecated conversion from string constant to ?char*? packet.h:212: warning: deprecated conversion from string constant to ?char*? packet.h:213: warning: deprecated conversion from string constant to ?char*? packet.h:214: warning: deprecated conversion from string constant to ?char*? packet.h:215: warning: deprecated conversion from string constant to ?char*? In file included from trace.h:45, from trace.cc:48: ./bt-def.h: At global scope: ./bt-def.h:220: error: ?string? does not name a type ./bt-def.h:221: error: ?string? does not name a type ./bt-def.h:222: error: ?string? does not name a type ./bt-def.h:704: warning: ?dequePkt? initialized and declared ?extern? ./bt-def.h:704: error: ?deque? was not declared in this scope ./bt-def.h:704: error: expected primary-expression before ?*? token ./bt-def.h:704: error: expected primary-expression before ?>? token ./bt-def.h:704: error: ?q? was not declared in this scope ./bt-def.h:704: error: expected primary-expression before ?int? ./bt-def.h:704: error: initializer expression list treated as compound expression trace.cc:162: warning: deprecated conversion from string constant to ?char*? trace.cc:162: warning: deprecated conversion from string constant to ?char*? trace.cc:162: warning: deprecated conversion from string constant to ?char*? trace.cc:162: warning: deprecated conversion from string constant to ?char*? trace.cc:162: warning: deprecated conversion from string constant to ?char*? trace.cc: In member function ?void BTNodeTrace::changeNodeColor(state_type, state_type)?: trace.cc:539: error: ?string? was not declared in this scope trace.cc:539: error: expected `;' before ?s? trace.cc:540: error: expected `;' before ?s1? trace.cc:541: error: expected `;' before ?c_new? trace.cc:542: error: expected `;' before ?c_old? trace.cc:543: error: ?s? was not declared in this scope trace.cc:544: error: ?s1? was not declared in this scope trace.cc:545: error: ?c_new? was not declared in this scope trace.cc:546: error: ?c_old? was not declared in this scope make: *** [trace.o] Error 1 Ns make failed! See http://www-mash.CS.Berkeley.EDU/ns/ns-problems.html for problems From jeherul at gmail.com Sun Oct 11 09:50:12 2009 From: jeherul at gmail.com (JEHERUL) Date: Sun, 11 Oct 2009 22:20:12 +0530 Subject: [ns] xgraph problem Message-ID: <46c1bcc20910110950s7fee4302na16d74d2caa8bb23@mail.gmail.com> Dear All I have install ns-2.34 on Fedora-core 11 . Everything is done as per instruction given . In validation it shows every test is passed . I have tried some example from http://www.isi.edu/nsnam/ns/tutorial/ and its working fine except the http://www.isi.edu/nsnam/ns/tutorial/examples/example4.tcl .This mean it shows xgraph problem . When I run this example it shows "couldn't execute "xgraph": no such file or directory while executing " I then go the directory "ns-allinone-2.34/xgraph-12.1" and try to configure and install it . But when I type "make Install" it gives the following error . [root at localhost xgraph-12.1]# make install gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c dialog.c dialog.c: In function ?make_msg_box?: dialog.c:780: warning: passing argument 2 of ?getline? from incompatible pointer type /usr/include/stdio.h:653: note: expected ?size_t * __restrict__? but argument is of type ?char *? dialog.c:780: error: too few arguments to function ?getline? dialog.c: In function ?getline?: dialog.c:899: error: argument ?lptr? doesn?t match prototype /usr/include/stdio.h:653: error: prototype declaration dialog.c:899: error: number of arguments doesn?t match prototype /usr/include/stdio.h:653: error: prototype declaration make: *** [dialog.o] Error 1 Please help me . Thanking you for your valuable time Regards -- Jeherul Islam Indian Institute of Information Technology and Management . Gwalior (MP) From mt57 at njit.edu Sun Oct 11 13:53:39 2009 From: mt57 at njit.edu (manoop talasila) Date: Sun, 11 Oct 2009 16:53:39 -0400 Subject: [ns] Segmentation fault (core dumped) for ping example In-Reply-To: References: Message-ID: Hi NSusers, I am new to ns2 and started learing from tutorial. I am using ns-2.34 in windowsXP thru cygwin. In this version ping example for adding new protocol comes with it with all settings already made in required files. So, I am trying to add new protocol named "link" to ns2 using ns tutorial's "ping" example steps. I just renamed 'ping' with 'link' in the ping example files. 1. Copied link.cc, link.h files to folder "ns-2/apps/" 2. Defined LINK packet type in "ns-2/common/packet.h" as per the tutorial ping example. 3. Defined default value of LINK agent in "ns-2/tcl/lib/ns-default.tcl" as Agent/Link set packet_size 64 4. Defined new packet type in ns-packet.tcl 5. Added apps/link.o in Makefile 6. under ns2 directory i ran "make" And finally, typed "$ns link.tcl" to run the example script, then i see below error. I looked into archives and didnot find why this issue is coming for the ping example. Why do we see this error. "Segmentation fault (core dumped)" means what. where can i see this stack trace atleat to find where it failed. Please guide me in right direction to fix this. I greatly appriciate your help. Error from my cygwin window: ------------------------- $ ns link.tcl warning: no class variable Agent/Link::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/Link::off_link_ warning: no class variable Agent/Link::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/Link::off_link_ Segmentation fault (core dumped) ----------------------------------------------------------------------- -- Regards, Manoop Talasila From yhuy2104 at live.ca Sun Oct 11 17:22:20 2009 From: yhuy2104 at live.ca (Quoc Huy My Y) Date: Sun, 11 Oct 2009 20:22:20 -0400 Subject: [ns] Broadcast data in NS2 Message-ID: Hi everybody, I have my project simulating wireless sensor networks that each sensor node broadcasts its sensed data to neighboring sensor nodes in the range. I do not need routing protocol, just normally one node broadcast packet and neigboring nodes receive that packet. Could anybody please help me how to do that? Does anyone know if any NS2 version or NS2 extension supports broadcasting? Please help me. Thank you in advanced. Huy Less clicking: Hotmail access on the new MSN homepage. _________________________________________________________________ New! Get to Messenger faster: Sign-in here now! http://go.microsoft.com/?linkid=9677407 From kashnet at gmail.com Sun Oct 11 19:53:10 2009 From: kashnet at gmail.com (Kashif Saleem) Date: Mon, 12 Oct 2009 10:53:10 +0800 Subject: [ns] New Routing Protocol Implementation Problem Message-ID: <52a37030910111953j47645bc0qfa042ae4e4335773@mail.gmail.com> Hi, While compiling NS2-2.28 does not give any error, but when I use the new routing protocol under tcl, it stops with the following error. INITIALIZE THE LIST xListHead (_o17 cmd line 1) invoked from within "_o17 cmd if-queue _o20" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o17" line 2) (SplitObject unknown line 2) invoked from within "$agent if-queue [$self set ifq_(0)] " (procedure "_o14" line 24) (Node/MobileNode add-target line 24) invoked from within "$self add-target $agent $port" (procedure "_o14" line 15) (Node attach line 15) invoked from within "$node attach $ragent [Node set rtagent_port_]" (procedure "_o3" line 71) (Simulator create-wireless-node line 71) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 14) (Simulator node line 14) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] # $node_($i) random-motion 0 ;# disable random motion }" (file "wpan_demo1.tcl" line 109) If some one can help me. Regards, Kashif From loulloudes.n at cs.ucy.ac.cy Mon Oct 12 00:54:20 2009 From: loulloudes.n at cs.ucy.ac.cy (Nicholas Loulloudes) Date: Mon, 12 Oct 2009 10:54:20 +0300 Subject: [ns] Mobile Node Turns off at wrong time instance Message-ID: <4AD2E0AC.7050709@cs.ucy.ac.cy> Hello, I face a problem with NS2 Mobile Nodes. I have a file in which i specify when individual nodes turn on / off and this file is passed as input in the NS2 simulation. Some mobile nodes turn off at different time instances than the ones specified in this file and this results to files getting dropped. Has anyone experienced this before? What do you suggest? Thanks in advance. -- _________________________________________________ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy _________________________________________________ From loulloudes.n at cs.ucy.ac.cy Mon Oct 12 01:43:29 2009 From: loulloudes.n at cs.ucy.ac.cy (Nicholas Loulloudes) Date: Mon, 12 Oct 2009 11:43:29 +0300 Subject: [ns] Mobile Node Turns off at wrong time instance In-Reply-To: References: <4AD2E0AC.7050709@cs.ucy.ac.cy> Message-ID: <4AD2EC31.2040008@cs.ucy.ac.cy> Hi Mubashir, Thanks for the quick response. I have 4 files: 1) the simulation parameters TCL file , 2) the mobility file, 3) the node's on/off file 4) the data file (says when nodes send some data) I make sure that each mobile node sends some data in the network when it is ON. In some cases i see some data are lost simply because when the node tries to send something it's energy model is OFF. I always perform the following check before sending something: if ( true == thisNode->energy_model()->node_on() ){ send_data.... } thanks. Mubashir Rehmani wrote: > Hi, > > But the question is that how you made synchronize your nodes to switch > to on/off states with the data you are providing with the file? > > Regards > Mubashir Husain Rehmani > > 2009/10/12 Nicholas Loulloudes > > > > > Hello, > > I face a problem with NS2 Mobile Nodes. > > I have a file in which i specify when individual nodes turn on / > off and > this file is passed as input in the NS2 simulation. > > Some mobile nodes turn off at different time instances than the ones > specified in this file and this results > to files getting dropped. > > Has anyone experienced this before? > > What do you suggest? > > Thanks in advance. > > -- > _________________________________________________ > > Nicholas Loulloudes > High Performance Computing Systems Laboratory (HPCL) > University of Cyprus, > Nicosia, Cyprus > > Tel: +357-22892663 > Email: loulloudes.n[at]cs.ucy.ac.cy > _________________________________________________ > > > > > > -- > Mubashir Husain Rehmani > > -- _________________________________________________ Nicholas Loulloudes PhD Candidate, High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy Web: www.cs.ucy.ac.cy/~nickl _________________________________________________ From jsebinfo at gmail.com Mon Oct 12 02:43:16 2009 From: jsebinfo at gmail.com (Sebastian Terence.J) Date: Mon, 12 Oct 2009 15:13:16 +0530 Subject: [ns] Help me In-Reply-To: References: <7eae22450910090520x53b0c3b2v57179a67e47b330@mail.gmail.com> Message-ID: <7eae22450910120243h7a34660fiea86857e45f3f198@mail.gmail.com> Hi, Thank you Sir, In my project, i am Using Hello Packets for neighbor discovery. But i don know how to create Hello Packets for neighbor discovery. If you have any idea, please share with me. It will usefull to me. Thank you With Regards Sebastian Terence On 10/9/09, Mubashir Rehmani wrote: > > Hi, > > See these links > > http://www.nabble.com/Finding-Neighbors-of-a-Mobile-Node.-td21019174.html#a21019289 > > Regards > Mubashir Husain Rehmani > > > 2009/10/9 Sebastian Terence.J > >> >> Hi Friends, >> >> I want to know how to discover neighbor nodes in mobile environment. If >> any >> one know please tell me, it will useful for me. >> >> Thank you >> >> -Sebastian Terence >> > > > > -- > Mubashir Husain Rehmani > > > From m.nurchis at imtlucca.it Mon Oct 12 02:45:02 2009 From: m.nurchis at imtlucca.it (Maddalena Nurchis IMT) Date: Mon, 12 Oct 2009 11:45:02 +0200 Subject: [ns] Deadline approaching - EW2010 - October 30 Message-ID: <9cc704170b03d8866b7076e5c9146827@imtlucca.it> [we apologize if multiple copies are received] Call for Papers 16th European Wireless Conference www.ew2010.org Lucca (Tuscany), Italy April 12-15, 2010 Submission deadline: Oct 30, 2009 ** GENERAL The 12th European Wireless Conference will take place in the city of Lucca, heart of Tuscany, Italy, from April 12 to April 15, 2010 and will be hosted by the IMT Institute for Advanced Studies (www.imtlucca.it), a post-graduate school recently founded in Lucca, which awards PhD degrees to a restricted group of outstanding students from all over the world. The 2010 edition of the conference will revolve around a main theme: "Towards the Future Internet". One of the key objectives of research in wireless communication, and notably the main one of 4th generation cellular/mobile networks, is full integration of wireless segments into the all-IP pervasive and ubiquitous network of the future, regardless of the nature (wired or wireless) of the physical media. In addition to technical sessions, tutorials and demonstation/poster sessions will be hosted. ** TOPICS Original contributions in any of the areas below are solicited: Wireless Networking - Ad-hoc and Mesh Wireless Networks - Transport Layer Issues in Mobile and Wireless Networks - Cross-layer Issues - Protocols and Architecture for Wireless Networks - Radio Resource Management - Mobility Management and Billing Technologies - QoS and Resource Allocation in Mobile Networks - Security and Robustness in Wireless Networks - Mobile/Wireless Networks Modeling and Simulation - Heterogeneous Wireless Networks - Wired-Wireless Integration Advanced Wireless Technology - Ultra-Wideband Communications - Software Radio & Re-congurability, Cognitive Radio and Networks - Cross-layer Design in Mobile and Wireless Networks - Power Management for Small Terminals - 2G-3G-4G Migration, Convergence and Interworking - WiFi, WiMAX, 3GPP LTE - Wireless LAN/PAN/BAN - Location-based Services and Positioning - Wireless Broadband Mobile Access - RFID - Cooperative Techniques - Experimental Systems - Sensor Networks Technologies and Protocols - Mobile Social Networks Transmission Techniques and Signal Processing - Modulation and Coding for Wireless Communications - Signal Processing for Wireless Communications - Synchronization, Channel Estimation, Equalization - Iterative Detection and Processing - MIMO Systems, Space-Time Coding, Diversity - Fundamental Limits, Information Theory - Multiple Access Schemes, Multiuser Detection Algorithms - Interference Mitigation and Management Techniques - Network Coding and Cooperative Diversity and Processing - Adaptive Systems - OFDM and OFDMA - Localization and Positioning - Source and Joint Source/Channel Coding - Physical Security - Resource Allocation and Game Theory - Spectrum Sensing and Signal Parameters Estimation Radio Channel and RF Subsystems - Radio Channel Measurements - Radio Channel Modeling and Estimation - Antenna Issues in Wireless Communications - Smart Antennas and MIMO systems - Compact Antennas for Mobile Terminals - Modeling and Mitigation of RF System Imperfections ** IMPORTANT DATES Paper submission: Oct 30, 2009 Notification of acceptance: Dec 31, 2009 Camera-ready due: Jan 31, 2010 Proposals for tutorials: Dec. 31, 2009 Tutorial acceptance notification: Feb 15, 2010 ** SUBMISSION Submission of papers, up to 8 pages, will be handled electronically via EDAS. Detailed instructions will be available soon in the conference website: http://www.ew2010.org/. Accepted papers will be published in the Proceedings of EW 2010. Acceptance will be based on quality, relevance and originality. All submitted papers will be peer-reviewed by at least three reviewers and their comments will be provided to the authors. Presentation at the conference of accepted papers is subject to full-fee registration of at least one author within the early registration deadline. Presented papers will be included in the IEEExplore database. A Special issues of European Transactions on Telecommunications will be devoted to selected EW2010 papers. Furthermore, papers of special merit will be considered for possible fast track publication on Computer Communications Journal. ** KEYNOTE SPEAKERS - Sajal Das, University Texas at Arlington, USA - Andrea Goldsmith, Stanford University, USA - Michele Zorzi, University of Padova, Italy ** ORGANIZING COMMITTEE General Co-Chairs - Luciano Lenzini, University of Pisa, Italy - Marco Luise, University of Pisa, Italy TPC Co-Chairs - Albert Banchs, Universidad Carlos III de Madrid, Madrid, Spain - Christoph Mecklenbr?uker, Vienna University of Technology, Austria Steering Committee Chair - Bernhard Walke, Aachen University of Technology, Germany Tutorial Co-Chairs - Carles Ant?n-Haro, CTTC, Spain - Daji Qiao, Iowa University, USA Panel Chair - Bernhard Walke, Aachen University of Technology, Germany Exibition Co-Chairs - Antonella Barbuti, IMT, Lucca, Italy - Luca Bisti, University of Pisa, Italy Publications Chair - Filippo Giannetti, University of Pisa, Italy Publicity Co-Chairs - Sinan Gezici, Bilkent University, Ankara, Turkey - Maddalena Nurchis, IMT, Lucca , Italy Student Papers Co-Chairs - Leonardo Badia, IMT, Lucca , Italy - Claudio Cicconetti, University of Pisa, Italy - Jan Sykora, Czech Technical University in Prague, Czech Republic Local Arrangements Chair - Alessandro Gallione, IMT, Lucca , Italy Webmasters - Pietro Carubbi, IMT, Lucca , Italy - Andrea Nardi, IMT, Lucca , Italy ** TECHNICAL PROGRAM COMMITTEE - Marco Ajmone Marsan, Politecnico di Torino, Italy - Angeliki Alexiou, Bell Labs, Alcatel-Lucent, UK - Carles Ant?n, CTTC, Spain - Andrea Baiocchi, University of Rome ?La Sapienza?, Italy - Jean-Claude Belfiore, ENST Paris, France - Sergio Benedetto, Politcenico di Torino, Italy - Giuseppe Bianchi, University of Rome ?Tor Vergata?, Italy - Christian Bettstetter, University of Klagenfurt, Austria - Alister Burr, University of York, UK - Periklis Chatzimisios, TEIThe, Greece - Marco Conti, IIT/CNR, Italy - Luis Correia, IST - Technical University of Lisbon, Portugal - Riccardo De Gaudenzi, European Space Agency, The Netherlands - Christos Douligeris, University of Piraeus, Greece - Andrzej Duda, Grenoble Institute of Technology, France - Carl Eklund, Nokia Siemens Networks, Finland - Luigi Fratta, Politecnico di Milano, Italy - Lajos Hanzo, University of Southampton, UK - Christian Hoymann, Ericsson, Germany - Kimmo Kansanen, NTNU, Trondheim, Norway - Gabriele Kotsis, Johannes Kepler University Linz, Austria - Marwan Krunz, University of Arizona, USA - Abbas Jamalipour, University of Sydney, Australia - Alberto L?pez Toledo, Telefonica I+D, Spain - Nick Maxemchuk, Columbia University, USA - Telemaco Melia, Alcatel Lucent, France - Vittoria Mignone, RAI Research Centre, Torino, Italy - Ana P?rez-Neira, Univ. Politecnica de Catalunya - Claude Oestges, Universit? catholique de Louvain, Belgium - Sergio Palazzo, University of Catania, Italy - L?szl? Pap, BUTE, Hungary - Dina Papagiannaki, Intel Research, USA - Josep Paradells, Technical University of Catalonia, Spain - Xavier P?rez-Costa, NEC Network Laboratories, Germany - Daji Qiao, Iowa State University, USA - Michele Rossi, University of Padua, Italy - Hans-Peter Schwefel, Aalborg University, Denmark - Isabelle Siaud, Orange Labs, France - Umberto Spagnolini, Politecnico di Milano, Italy - Erik Str?m, Chalmers University, Goteborg, Sweden - Jan Sykora, Czech Technical University in Prague, Czech Republic - Wolfgang Utschick, Technical University of M?nchen, Germany - Emmanuel Van Lil, Katholieke Universiteit Leuven, Belgium - Roberto Verdone, University of Bologna, Italy - Bernhard Walke, RWTH Aachen, Germany - J?rg Widmer, DoCoMo Euro-Labs, Germany - Adam Wolisz, Technische Universit?t Berlin, Germany - Henk Wymeersch, Massachusetts Institute of Technology, USA - Feng Xue, Intel Research, USA - Thomas Zemen, Telecommunications Research Center, Vienna, Austria - Michele Zorzi, University of Padua, Italy - Moshe Zukerman, City University of Hong Kong, Hong Kong, China - Ryuji Wakikawa, Toyota ITC, US ** AWARDS Papers bearing a PhD student as the first author will be considered for the European Wireless Best Paper Awards. Papers qualifying for the award shall be submitted to the Student Papers Co-Chairs. A special PhD Defense Workshop will be organized, with the participation of students who already have a dissertation proposal in which they outline the key issues they wish to address, along with applicable methodologies and strategies. ** CALL FOR TUTORIALS The first day of the conference will be devoted to half-day tutorials (two in parallel in the morning plus two in the afternoon) featuring a broad coverage of a specific research area. Tutorials attendance will be included in the conference subscription fee. If you wish to propose a tutorial for EW2010 then please submit your proposal (abstract, motivation, speaker?s biographies) to the Tutorial Co-Chairs by December 31, 2009. info at ew2010.org http://www.europeanwireless2010.org/ ----------------------------------------------------------- Maddalena Nurchis PhD student in Computer Science and Engineering (CSE XXIII) IMT - Institute for Advanced Studies Piazza san Ponziano 6 - 55100 Lucca - Italy e-mail: maddalena.nurchis at imtlucca.it; maddalena.nurchis at gmail.com ----------------------------------------------------------- From skafetzo at netmode.ntua.gr Mon Oct 12 03:17:52 2009 From: skafetzo at netmode.ntua.gr (Stella Kafetzoglou) Date: Mon, 12 Oct 2009 13:17:52 +0300 Subject: [ns] Having nodes use both 802.11 and SMAC Message-ID: <4AD30250.4010505@netmode.ntua.gr> Hello all, I am running a wireless sensor network project where nodes use the SMAC protocol to communicate and gather the data. Do you know if it is possible to have some nodes using SMAC and some others using 802.11 as their MAC protocol, in the same simulation? Thanks in advance Stella From sanaz.barghi at gmail.com Mon Oct 12 09:07:58 2009 From: sanaz.barghi at gmail.com (Sanaz) Date: Mon, 12 Oct 2009 09:07:58 -0700 (PDT) Subject: [ns] Why do I receive "Invalid MAC Control subtype"? Message-ID: <25849257.post@talk.nabble.com> Dear all, Can somebody tell me why exactly the "Invalid MAC Control subtype" message is being produced by mac-802_11 module? I have changed the ACK packet structure, and have not touched MAC header. This error message that always appears only when I increase the number of nodes in the network. And this makes me believe that my modifications should not be the source of the problem. When I tracked down the problem, I understood that the packet had a correct type and subtype before the defer timer being set, but somehow, the header becomes null when the defer timer expires and MAC goes to check_pktCTRL subroutine. Any idea why this message was originally put in the check_pkt* subroutines? Or any specific reason why the header might become null? Any kind of help is really appreciated. Regards, Sanaz -- View this message in context: http://www.nabble.com/Why-do-I-receive-%22Invalid-MAC-Control-subtype%22--tp25849257p25849257.html Sent from the ns-users mailing list archive at Nabble.com. From marwouta23 at yahoo.fr Mon Oct 12 09:31:16 2009 From: marwouta23 at yahoo.fr (marwa maazouli) Date: Mon, 12 Oct 2009 09:31:16 -0700 (PDT) Subject: [ns] ask for help!!!! help please Message-ID: <607199.36592.qm@web24705.mail.ird.yahoo.com> Hi all, I'am searching for a solution.. I have to send a message from one node to another node.. how to make it please tell in detail.. i am in need!! Thank you in advance and I'm sorry for the inconvenience Best REgards, From marwouta23 at yahoo.fr Mon Oct 12 12:24:29 2009 From: marwouta23 at yahoo.fr (carolina2) Date: Mon, 12 Oct 2009 12:24:29 -0700 (PDT) Subject: [ns] ask for help!!!! help please In-Reply-To: <607199.36592.qm@web24705.mail.ird.yahoo.com> References: <607199.36592.qm@web24705.mail.ird.yahoo.com> Message-ID: <25861691.post@talk.nabble.com> Hi, Thank you for your reply, the exemple that I have found in the Marc Greis's Tutorial concen only transfer data like CBR ,FTP....... but in my case I need to send message from node 1 to node 2 (such as "what is your actual postion ") and the node 2 answer by a message reply. If anyone have an idea about that please can you forward it to me because I'm stuck!! It will be a great help for me to advance in my project. Thank you in advance and I'm sorry for the inconvenience. carolina2 wrote: > > > Hi all, > > > I'am searching for a solution.. I have to send a message from one node to > another node.. > how to make it > please tell in detail.. i am in need!! > > Thank you in advance and I'm sorry for the inconvenience > > Best REgards, > > > > > -- View this message in context: http://www.nabble.com/ask-for-help%21%21%21%21-help-please-tp25858964p25861691.html Sent from the ns-users mailing list archive at Nabble.com. From marwouta23 at yahoo.fr Mon Oct 12 12:49:30 2009 From: marwouta23 at yahoo.fr (carolina2) Date: Mon, 12 Oct 2009 12:49:30 -0700 (PDT) Subject: [ns] how to send a message a node to another node? In-Reply-To: <1e87fc6c0904211119k35b8d7b9m8fd442550110bee2@mail.gmail.com> References: <1e87fc6c0904211119k35b8d7b9m8fd442550110bee2@mail.gmail.com> Message-ID: <25862059.post@talk.nabble.com> Hi Ane, I want to send a message from one node to another (not transfer data like FTP CBR .......). for exemple node 1 send to node 2 a message "what is your actual postion?" please if you have found a solution for that can you forward it to me. it will be a graet help for me. Thank you gisane wrote: > > > I am work the ping protocol e I have that to send a specifies message > a node to another node, how do I that? > Ane > > > -- View this message in context: http://www.nabble.com/how-to-send-a-message-a-node-to-another-node--tp23162002p25862059.html Sent from the ns-users mailing list archive at Nabble.com. From marwouta23 at yahoo.fr Mon Oct 12 12:51:35 2009 From: marwouta23 at yahoo.fr (carolina2) Date: Mon, 12 Oct 2009 12:51:35 -0700 (PDT) Subject: [ns] how to send message to a node using send_massage In-Reply-To: References: Message-ID: <25862099.post@talk.nabble.com> Hi, I want to send data from one node to another (not transfer data like FTP CBR.........) I have the same problem than please if you have found the solution can you forward it to me. thank you in advance. murali1509 wrote: > > > hi to all... > > i have a send a message from one node to a another particular node not for > all the nodes in the network.. one of our friend suggested me to see > flood.tcl.. in this the message goes to every node... > > but i am in need of only from one node to another one node please help me > regarding this.... > > thanks in advance.. > > -- View this message in context: http://www.nabble.com/how-to-send-message-to-a-node-using-send_massage-tp22764439p25862099.html Sent from the ns-users mailing list archive at Nabble.com. From marwouta23 at yahoo.fr Mon Oct 12 13:12:32 2009 From: marwouta23 at yahoo.fr (carolina2) Date: Mon, 12 Oct 2009 13:12:32 -0700 (PDT) Subject: [ns] sending a packet to a node In-Reply-To: <2247645d0804232006p703fd845xcf4d4dfd0b10d24f@mail.gmail.com> References: <2247645d0804232006p703fd845xcf4d4dfd0b10d24f@mail.gmail.com> Message-ID: <25862408.post@talk.nabble.com> Hi, I need to send message from node 1 to node 2 (such as "what is your actual postion ") and the node 2 answer by a message reply. If anyone have an idea about that please can you forward it to me because I'm stuck!! It will be a great help for me to advance in my project. Thank you in advance and I'm sorry for the inconvenience. srupesh wrote: > > > hi ns users, > I am trying to implement a modified DVMRP protocol > (wired networks). I want to access distance vector routing table from my > C++ code so that i can embed my info > in to my own packet. Can I use aleady implemented dvr in ns-2.32 to use in > my own code? (by using rtPeer objects or > should i write my own dvr starting from scratch?? > > I started my C++ part initially by creating an agent and > packet header to start sending a single packet from one node to another > by using tcl script. > But i couldn't send my own packet to a node. I used IP_BROADCAST (does > wired > networks support it??) > > I am trying hard to find where I am goin wrong .I looked > in > to FAQS and ns2 archives but couldn't find a solution.. > Can anybody help me regarding how to figure out my > problem?? > > I am submitting by trial code for sending a packet here (both C++ and tcl) > > > *******packet header********** > > #ifndef BCAST_PKT_H_ > #define BCAST_PKT_H_ > > #include > #include > > #define HDR_BCAST_PKT(p) hdr_bcast_pkt::access(p) > struct hdr_bcast_pkt { > > nsaddr_t pkt_src_; // Node which originated this packet > u_int16_t pkt_len_; // Packet length (in bytes) > u_int8_t pkt_seq_num_; // Packet sequence number > > inline nsaddr_t& pkt_src() { return pkt_src_; } > inline u_int16_t& pkt_len() { return pkt_len_; } > inline u_int8_t& pkt_seq_num() { return pkt_seq_num_; } > > static int offset_; > inline static int& offset() { return offset_; } > inline static hdr_bcast_pkt* access(const Packet* p) { > return (hdr_bcast_pkt*)p->access(offset_); > } > > }; > > > > #endif /*BCAST_PKT_H_*/ > > > #include > #include > > #include "bcast_pkt.h" > #include > #include > #include > #include > #include > #include > #include > int hdr_bcast_pkt::offset_ ; > class MyAgent : public Agent{ > public : > MyAgent(); > protected : > int command(int argc,const char*const* argv); > MyAgent *agent; > private: > //int my_var1; > //double my_var2; > nsaddr_t ra_addr_; > void my_func(void); > void my_bcast(Packet *p); > void recv(Packet* pkt, Handler*); > }; > static class bcastHeaderClass : public PacketHeaderClass { > public: > bcastHeaderClass() : PacketHeaderClass("PacketHeader/bcast", > sizeof(hdr_bcast_pkt)) { > bind_offset(&hdr_bcast_pkt::offset_); > } > } class_bcast_hdr; > > static class MyAgentClass : public TclClass { > public : > MyAgentClass() : TclClass("Agent/MyAgentOtcl") {} > TclObject* create(int argc,const char*const* argv) { > return (new MyAgent()); > //(nsaddr_t)Address::instance().str2addr(argv[4]) > } > } class_my_agent; > > MyAgent::MyAgent() : Agent(PT_bcast) { //nsaddr_t id > //bind("my_var1_otcl",&my_var1); > //bind("my_var2_otcl",&my_var2); > //ra_addr_ = id; > > } > > int MyAgent::command(int argc,const char*const* argv) { > > if(argc == 2) { > if(strcmp(argv[1],"callmyfunc") == 0) { > my_func(); > return (TCL_OK); > > } > if(strcmp(argv[1],"sendpkt") == 0) { > Packet* newpkt = allocpkt(); > //some packet configuration > agent->my_bcast(newpkt); > //recv(newpkt,0); > return (TCL_OK); > } > } > > return (Agent::command(argc,argv)); > } > > void MyAgent::my_func(void) { > Tcl& tcl = Tcl::instance(); > tcl.eval("puts \"Message from my_func\""); > //tcl.evalf("puts \" my_var1= %d\"",my_var1); > //tcl.evalf("puts \" my_var2 = %f\"",my_var2); > > } > > > > void MyAgent::my_bcast(Packet *p) > { > hdr_cmn* hdrcmn = HDR_CMN(p); > hdr_ip* iphdr = HDR_IP(p); > hdr_bcast_pkt* ph = HDR_BCAST_PKT(p); > > //ph ->pkt_src_ = ra_addr_; > //ph ->pkt_len_ = 64; > // set all the necessary things for the common header > hdrcmn ->size_ = IP_HDR_LEN + > sizeof(hdr_bcast_pkt);//IP_HDR_LEN + ph->pkt_len(); > hdrcmn ->ptype_ = PT_bcast; > hdrcmn->next_hop_ = IP_BROADCAST; > hdrcmn->prev_hop_ = this->addr(); > hdrcmn->direction() = hdr_cmn::DOWN; > //hdrcmn->iface() = -2; > //hdrcmn->error() = 0; > > //hdrcmn ->ptype_ = PT_bcast; // ********my > packet type********** i defined it in common/packet.h and > tcl/lib/ns-packet.tcl.......... > // setting the ip header > iphdr->saddr() = this->addr(); > iphdr->sport() = 254; // 1-254 > iphdr->daddr() = IP_BROADCAST; > iphdr->dport() = 254; // 1-254 > iphdr->ttl() = 32; > Tcl& tcl = Tcl::instance(); > tcl.eval("puts \"Message from my_bcast()\""); > Scheduler::instance().schedule(target_, p, 0.0); // ************* To > send a packet but i couldn't receive in recv function or should i > define > any time handler for this to work?? *************** > //send(p,0); > ///////***********I used in substitute for the above function but > getting > error "no slot default handler..." > > } > > > void MyAgent::recv(Packet* pkt, Handler*) > { > struct hdr_cmn *ch = HDR_CMN(pkt); > struct hdr_ip *ih = HDR_IP(pkt); > struct hdr_bcast_pkt *bh = HDR_BCAST_PKT(pkt); > Tcl& tcl = Tcl::instance(); > tcl.eval("puts \"1Message from recv()\""); > if(ch->ptype() == PT_bcast) > { > cout << "node " << this->addr() << "received from node " << > ch->prev_hop_; > } > //hdr_cmn* hdrcmn = HDR_CMN(pkt); //Access the common header for the > received packet: > //hdr_ip* hdrip = HDR_IP(pkt); // Access the IP header for the received > packet: > cout << "node " << this->addr() << "received from node " << ch->prev_hop_; > > tcl.eval("puts \"2Message from recv()\""); > } > > > tcl part..........################### > ################################################ > > > set ns [new Simulator] > > set n0 [$ns node] > set n1 [$ns node] > $ns duplex-link $n0 $n1 1Mb 10ms DropTail > > set a0 [new Agent/MyAgentOtcl] > $ns attach-agent $n0 $a0 > set a1 [new Agent/MyAgentOtcl] > $ns attach-agent $n1 $a1 > > > $ns connect $a0 $a1 ######******* for wired nodes i should > connect every agent right???? > > #set myagent [new Agent/MyAgentOtcl] > $a0 set my_var1_otcl 2 > $a0 set my_var2_otcl 3.14 > > $a0 callmyfunc > > $a0 sendpkt #command to send a packet... > > > Thanks > Rupesh > > -- View this message in context: http://www.nabble.com/sending-a-packet-to-a-node-tp16869248p25862408.html Sent from the ns-users mailing list archive at Nabble.com. From sophiasandhu5 at gmail.com Mon Oct 12 15:33:34 2009 From: sophiasandhu5 at gmail.com (sophia sandhu) Date: Mon, 12 Oct 2009 18:33:34 -0400 Subject: [ns] regarding example4.tcl in tutorial Message-ID: <9c9026c90910121533q15e5196w8e1cd3f1b2933e7f@mail.gmail.com> Hi , When I try running ?example4.tcl? given in tutorial , I get the following screen. I have saved it with name example3.tcl I have saved it in Sophia folder in tcl It neither create any output file nor does it open xgraph. And I m working in windows XP with cygwin installed aman at sonyl-lap /ns-allinone-2.34/ns-2.34/tcl/sophia $ ns example3.tcl warning: using backward compatibility mode (ns cmd line 1) invoked from within "ns cmd _o3" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "ns" line 2) (SplitObject unknown line 2) invoked from within "ns _o3" ("eval" body line 1) invoked from within "eval ns $args" (procedure "ns" line 3) invoked from within "ns [new Simulator]" (file "example3.tcl" line 1) aman at sonyl-lap /ns-allinone-2.34/ns-2.34/tcl/sophia $ From slumberjer at gmail.com Mon Oct 12 20:00:52 2009 From: slumberjer at gmail.com (Ahmad Hanis Mohd Shabli) Date: Tue, 13 Oct 2009 11:00:52 +0800 Subject: [ns] video tracefile anomalies Message-ID: <3525444a0910122000q4612b7a1gb40a10b808dee277@mail.gmail.com> I have the following problem to get my trace simulation working . I would like to simulate a simple video streaming client server simulation with two routers and client server node. I'm using a video trace file (Verbose_Jurassic_64.dat) from http://trace.eas.asu.edu/tools/ns-example2.tar.gz. The following codes has been modified from the above codes. The codes run on my ubuntu 8.04 with ns2.31allinone ok but the .tr file output from the simulation shows weird output. The packets queue about 99% percent of the simulation time. + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 0 0 - 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 0 0 + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 1 1 + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 2 2 + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 3 3 + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 4 4 ..... d 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 89 89 + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 90 90 d 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 90 90 + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 91 91 d 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 91 91 + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 92 92 d 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 92 92 + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 93 93 ..... + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 454 454 d 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 454 454 + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 455 455 d 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 455 455 + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 456 456 d 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 456 456 + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 457 457 d 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 457 457 + 141.242416 0 1 udp 1000 ------- 1 0.0 3.0 458 458 Here are the codes.. set ns [new Simulator] set nf [open out.nam w] set f [open out.tr w] $ns trace-all $f $ns namtrace-all $nf $ns color 1 Blue $ns color 2 Red # generate the sending node: set send_node [$ns node] set router_node_1 [$ns node] # generate the routers: set router_node_2 [$ns node] set recv_node [$ns node] # set router shape & label $router_node_1 shape "box" $router_node_2 shape "box" $send_node label "VSer" $router_node_1 label "R1" $router_node_2 label "R2" $recv_node label "VClie" # define the links between the nodes: $ns duplex-link $send_node $router_node_1 10Mb 10ms DropTail $ns duplex-link $router_node_1 $router_node_2 54Mb 10ms DropTail $ns duplex-link $router_node_2 $recv_node 10Mb 10ms DropTail # orientation of the links: $ns duplex-link-op $send_node $router_node_1 orient down $ns duplex-link-op $router_node_1 $router_node_2 orient right $ns duplex-link-op $router_node_2 $recv_node orient up # set que $ns duplex-link-op $router_node_1 $router_node_2 queuePos 0.5 $ns duplex-link-op $router_node_2 $recv_node queuePos 0.5 # set the maximal queue lengths of the routers: $ns queue-limit $router_node_1 $router_node_2 5 $ns queue-limit $router_node_2 $recv_node 5 #convert the trace file into binary for ns2 video data attachment. set original_file_name Verbose_Jurassic_64.dat set trace_file_name video.dat set original_file_id [open $original_file_name r] set trace_file_id [open $trace_file_name w] set last_time 0 while {[eof $original_file_id] == 0} { gets $original_file_id current_line if {[string length $current_line] == 0 || [string compare [string index $current_line 0] "#"] == 0} { continue } scan $current_line "%d %s %d" next_time type length set time [expr 1000*($next_time-$last_time)] set last_time $next_time puts -nonewline $trace_file_id[binary format "II" $time $length] #puts -nonewline $trace_file_id [binary format "II" $time $length] } close $original_file_id close $trace_file_id # set the simulation end time based on the video length: set end_sim_time [expr 1.0 * $last_time / 1000 + 0.001] # define the source and the source model: set udp [new Agent/UDP] $ns attach-agent $send_node $udp # define the destination: set snk [new Agent/Null] $ns attach-agent $recv_node $snk $ns connect $udp $snk $udp set fid_ 1 # read the video trace file: set trace_file [new Tracefile] $trace_file filename $trace_file_name #Attach binary trace file to the agent set video [new Application/Traffic/Trace] $video attach-tracefile $trace_file $video attach-agent $udp set cbr [new Application/Traffic/Trace] $cbr attach-agent $udp $cbr attach-tracefile $trace_file $cbr set type_ CBR $cbr set packet_size_ 1000 $cbr set random_ false $cbr set rate_ 1MB #start the simulation $ns at 0.0 "$cbr start" $ns at $end_sim_time "$cbr stop" $ns at [expr $end_sim_time + 1.0] "finish" proc finish {} { global ns nf f $ns flush-trace close $nf close $f exec nam out.nam & exit 0 } $ns run From Jonathan.Petit at irit.fr Mon Oct 12 22:58:43 2009 From: Jonathan.Petit at irit.fr (Jonathan Petit) Date: Tue, 13 Oct 2009 07:58:43 +0200 Subject: [ns] Broadcast data in NS2 Message-ID: <68FA3556-7924-4AA4-A7A7-F78C48131287@irit.fr> Hi ! In order to send broadcast messages, I use my own Agent which is quite similar to the p_bcast proposed here (http://www.crhc.illinois.edu/wireless/assignments/simulations/lab108.html ) Maybe you could use it for your sensor scenario. You just have to put the following lines in your tcl file: # Create your Agent set pbcast_($i) [new Agent/MessagePassing/MyPBCast] $ns_ attach-agent $node_($i) $pbcast_($i) $node_($i) attach $pbcast_($i) 90 $pbcast_($i) set agent_port_ 90 $pbcast_($i) setprob 1 . . . # Node 0 will send a broadcast packet $pbcast_(0) send Hope it will help you. Quoc Huy My Y wrote: Hi everybody, I have my project simulating wireless sensor networks that each sensor node broadcasts its sensed data to neighboring sensor nodes in the range. I do not need routing protocol, just normally one node broadcast packet and neigboring nodes receive that packet. Could anybody please help me how to do that? Does anyone know if any NS2 version or NS2 extension supports broadcasting? Please help me. Thank you in advanced. Huy Jonathan Petit Ph.D. student Institut de Recherche en Informatique de Toulouse Paul Sabatier University Phone: +33(0)5 61 55 65 77 Jonathan.Petit at irit.fr From kenz1984 at gmail.com Tue Oct 13 02:42:23 2009 From: kenz1984 at gmail.com (Kenneth Zhu) Date: Tue, 13 Oct 2009 18:42:23 +0900 Subject: [ns] How to change link properties during simulation? Message-ID: Hello, all! I know that ns-2 can control link up and down during simulation, but is it possible to change the delay and bandwidth during that? If it is possible, how to do that? Could I run "$ns_ duplex-link " again with different argument? Best regards, Kenneth Zhu From pdro07 at gmail.com Tue Oct 13 03:48:38 2009 From: pdro07 at gmail.com (pedro chaparro) Date: Tue, 13 Oct 2009 11:48:38 +0100 Subject: [ns] perfect transmission channel? Message-ID: hi, i'm working on a subject where i need to have a perfect transmission channel , i means, transmit a packet from a node A and received it on a node B wihout loss packets and not either have delays, in summary i'd like to eliminate the functions of the botton layers(link and physical layers). can i do this in some way? thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovaci?n iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain From hansadl at yahoo.de Tue Oct 13 08:01:24 2009 From: hansadl at yahoo.de (hans adlhoch) Date: Tue, 13 Oct 2009 08:01:24 -0700 (PDT) Subject: [ns] Block Wireless Transmission in MANET (i.e. around corner, through building, ...) Message-ID: <506606.86992.qm@web28607.mail.ukl.yahoo.com> Dear all, i have a question concerning ns-2.34 wireless transmissions: I'm simulating mobile ad-hoc networks and currently have a city-like layout where the static (roadside) nodes are very close. Some of the nodes are "behind corners" and thus are not supposed to communicate directly. Is there a way to prohibit direct links between certain nodes in wireless scenarios (using AODV, DYMOUM, HWMP, GPSR)? (Ideal: tell ns-2 that there is a building. ;) ) Thanks From aoufi_souhila at yahoo.fr Mon Oct 12 04:22:59 2009 From: aoufi_souhila at yahoo.fr (aoufi souhila) Date: Mon, 12 Oct 2009 11:22:59 +0000 (GMT) Subject: [ns] DiffServ in wireless network In-Reply-To: Message-ID: <669067.48006.qm@web27603.mail.ukl.yahoo.com> Hi how to configure DiffServ policies in a wireless network. I really need an illustrative example. I found in the directory tcl / ex / diffserv examples, but they all use a wired network. how in the case of wireless network your help is very useful for me, please From guga1985 at alice.it Wed Oct 14 01:02:55 2009 From: guga1985 at alice.it (Gustavo Atorino) Date: Wed, 14 Oct 2009 10:02:55 +0200 Subject: [ns] Implementation of AntHocNet & BeeAdHoc Message-ID: <000001ca4ca4$bc93a2a0$35bae7e0$@it> Hello All, I'm searching the ns2 code for my thesis of swarm intelligence algorithms of 1) AntHocNet 2) BeeAdHoc To compare their performance. Where and how I can get it? Thank you very much. Best Regards, From saaidal at um.edu.my Wed Oct 14 07:34:17 2009 From: saaidal at um.edu.my (saaidal@um.edu.my) Date: Wed, 14 Oct 2009 22:34:17 +0800 Subject: [ns] Optimal Active Route Timeout for AODV protocol Message-ID: <20091014223417.29fl1vapwk0ckog8@umpda.um.edu.my> Does anyone has a finding in what is an optimal value for Active Route Timeout (ART) for AODV protocol, especially for mobile node. The default value is 3, and in Charles E. perkin (Defining an optimal Active Route Timeout for AODV protocol..), semms that agree with this value (3 seconds), but from my simulation, it's 0-4 to 0-8 seconds. Appreciate if someone has done this type of simukation to obtain optimal value of mobile node. Tq ------------------------------------------------------------------------------------ UNIVERSITY OF MALAYA - " The Leader in Research & Innovation " From lionbedroo at yahoo.co.uk Wed Oct 14 09:51:15 2009 From: lionbedroo at yahoo.co.uk (Lion Bedroo) Date: Wed, 14 Oct 2009 09:51:15 -0700 (PDT) Subject: [ns] OIRC obs-ns simulator Message-ID: <215425.98129.qm@web24610.mail.ird.yahoo.com> Dear all, I've just noticed that the link to the OIRC OBS-ns simulator doesn't work anymore! I just need the tutorial of the prementioned simulator, thus I will be very thankful if anybody would be able to send it to me if he/she have it. Thanks in anticipates Lion From sanaz.barghi at gmail.com Wed Oct 14 15:39:41 2009 From: sanaz.barghi at gmail.com (Sanaz) Date: Wed, 14 Oct 2009 15:39:41 -0700 (PDT) Subject: [ns] Multiple Packet Recetion Message-ID: <25900047.post@talk.nabble.com> Hello everybody, I need to simulate a multi-packet reception network. Does anybody have any sample MAC code (based on mac-802_11) which handles multiple packet reception? Any idea how I can do that? Thank you in advance, Sanaz -- View this message in context: http://www.nabble.com/Multiple-Packet-Recetion-tp25900047p25900047.html Sent from the ns-users mailing list archive at Nabble.com. From kenz1984 at gmail.com Wed Oct 14 18:44:18 2009 From: kenz1984 at gmail.com (Kenneth Zhu) Date: Thu, 15 Oct 2009 10:44:18 +0900 Subject: [ns] Problem inserting new classifier Message-ID: Hello, all! I'm trying to make a new classifier, and make it the first classifier of some node (router). The simulation code looks like: #Create two nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set rtr [$ns node] #Connect the nodes with a link $ns duplex-link $n0 $rtr 1Mb 10ms DropTail $ns duplex-link $n1 $rtr 1Mb 10ms DropTail $ns duplex-link $n2 $rtr 1Mb 10ms DropTail set cr [new Classifier/Addr/Test] $rtr insert-entry RtModule/Base $cr 0 And in C++ code I override the classify() method of that class: static class TestClassifierClass : public TclClass { public: TestClassifierClass() : TclClass("Classifier/Addr/Test") {} TclObject* create(int, const char*const*) { return (new TestClassifier()); } } class_test_classifier; int TestClassifier::classify(Packet *p) { hdr_ip *iph = hdr_ip::access(p); std::cout << "[" << Scheduler::instance().clock() << "] test: gateway received a packet from " << iph->saddr() << " to " << iph->daddr() << "." << std::endl; return 0; } But now although I can send data from $no to $n2 successfully, but there is no output from the TestClassifier, looks like the classify() is by-passed. Does any one know what is the problem and how to make the TestClassifier effective? Thank you very much! Best regards, Kenneth Zhu From urlan at comp.ufla.br Wed Oct 14 19:52:46 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Wed, 14 Oct 2009 23:52:46 -0300 Subject: [ns] can I don't use routing protocol? In-Reply-To: <24a228b00910030937n3fb8976dka5ba6d4e4826d12e@mail.gmail.com> References: <24a228b00910030937n3fb8976dka5ba6d4e4826d12e@mail.gmail.com> Message-ID: <9bfab37d0910141952g1af9e1acxdd9fbc8324ef5004@mail.gmail.com> Hi, 2009/10/3 soheila rahmani > > Hi all > I write a new queue and my simulation topology has 5 wireless node. when I > use AODV protocol I have an error (segmentation fault) and use DSDV not > error bus all of the packet will be drop! > Did you take a look at trace file? > can I don't use any routing protocol? because number of my node is small > and > I don't need routing ? > thanks > Yes, you can. You could connect Transport Layer directly with Link Layer. You have to know how class "Connector" works. http://www-rp.lip6.fr/ns-doc/ns226-doc/html/classConnector.htm http://books.google.com.br/books?id=cD69He_oU60C&pg=PT105&lpg=PT105&dq=connector+ns2&source=bl&ots=Auub267p0v&sig=CPJRDm2qtTKGPipeoaouiaHK6wg&hl=pt-BR&ei=PI7WSsahKMuRuAeV5qz_Bg&sa=X&oi=book_result&ct=result&resnum=6&ved=0CCEQ6AEwBQ#v=onepage&q=connector%20ns2&f=false Urlan From estelad at fceia.unr.edu.ar Thu Oct 15 05:21:00 2009 From: estelad at fceia.unr.edu.ar (estelad@fceia.unr.edu.ar) Date: Thu, 15 Oct 2009 09:21:00 -0300 (ART) Subject: [ns] Questions about NS2, 802.15.4 and power transmission at packet level Message-ID: Hi We are a research group at the Universidad Nacional de Rosario (National U. of Rosario) in Argentina, working in the wireless sensor networks area, developing a hierarchical routing algorithm based in clusters. We are simulating our algorithm with NS2 and we programmed the routing as an Agent with 802.15.4 in the inferior layers. We need to define the transmission power at packet level, because the communications intercluster need less power that the communication between clusters heads. So, we have two packet types with different levels of transmission power for each one. We used de setPt function of WirelessPhy class to establish in C the power transmission every time a node sends a packet, and then, the code calls tx function to pass the packet with the transmission power level selected to the Scheduler. But it doesn't work, because when the WirelessPhy stamps the packet with the PT_ value, it writes 0,2818W which is the default value for the parameter and not the desired value. We need to know where the default value for transmission power is set and how can we change it at packet level. Any help or suggestions will be of great value for us. Best Regards, Estela D'Agostino Dpto. de Sistemas e Informatica Fac. Cs. Exactas, Ingenier?a y Agrimensura Universidad Nacional de Rosario From shakkeera841 at gmail.com Wed Oct 14 19:30:18 2009 From: shakkeera841 at gmail.com (shakkeera liaquath ali khan) Date: Thu, 15 Oct 2009 08:00:18 +0530 Subject: [ns] Need help to extract(by using tool or shell scripting)performance analysis parameters from new wireless trace file format Message-ID: hi all,' i doing project by using OLSR Protocol in ns 2.33 in fedora 8 platform....after i get the result of MPR computations in OLSR prortocol ,in trace file i want to extract the performance analysis parameters like sent packets ,received packets,packet delivery ratio,end to end delay,throughput...etc...if any body know how to extract these information from trace file...if there is any tool or shell scripting is available to extract the information...please help me... Thank you in advance... From urlan at comp.ufla.br Thu Oct 15 11:18:34 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Thu, 15 Oct 2009 15:18:34 -0300 Subject: [ns] Questions about NS2, 802.15.4 and power transmission at packet level In-Reply-To: References: Message-ID: <9bfab37d0910151118t445ede15oa9aa7dc70411cc70@mail.gmail.com> Hi, 2009/10/15 > > Hi > > We are a research group at the Universidad Nacional de Rosario > (National U. of Rosario) in Argentina, working in the wireless sensor > networks area, developing a hierarchical routing algorithm based in > clusters. We are simulating our algorithm with NS2 and we programmed the routing as > an Agent with 802.15.4 in the inferior layers. We need to define the > transmission power at packet level, because the communications > intercluster need less power that the communication between clusters > heads. So, we have two packet types with different levels of transmission > power for each one. We used de setPt function of WirelessPhy class to establish in C the power > transmission every time a node sends a packet, and then, the code calls tx > function to pass the packet with the transmission power level selected to > the Scheduler. But it doesn't work, because when the WirelessPhy stamps > the packet with the PT_ value, it writes 0,2818W which is the default > value for the parameter and not the desired value. > You need to send to WirelessPhy how much power it'll use on transmission. Try to create one atribute in "struct hdr_mac802_11" to pass to WirelessPhy ("double current_power_" for example). In the method sendDown (WirelessPhy) you have to set the atribute Pt_ with the power transmission (watts): hdr_mac802_11 *mh = HDR_MAC802_11(p); double power = mh->getCurrentPower(); this->Pt_ = power; We need to know where the default value for transmission power is set and > how can we change it at packet level. > You can change the power transmission with the command: Phy/WirelessPhy set Pt_ 0.200; # For 250m transmission range But, with this command, the power is changed only at the start of simulation. Any help or suggestions will be of great value for us. > Best Regards, > > Estela D'Agostino > Dpto. de Sistemas e Informatica > Fac. Cs. Exactas, Ingenier?a y Agrimensura > Universidad Nacional de Rosario > > Urlan PS.: Almost Argentina is not qualified for the World Cup. =D From adel.belkhiri at hotmail.com Thu Oct 15 14:19:39 2009 From: adel.belkhiri at hotmail.com (adel belkhiri) Date: Thu, 15 Oct 2009 22:19:39 +0100 Subject: [ns] Multihop Broacasting in ns2 Message-ID: Hi my dears, I'm writing an agent that broadcast a packet to all the neighbor nodes in the MANET network. I have search for a long time in the net to do that with ns2 but I fail. In fact, the problem is that only neighbors in the range of one hop from the sender node can receive the packet!! The solution proposed for the broadcast problem by Jeff Bolen didn't resolve the problem ( http://www.isi.edu/nsnam/archive/ns-users/webarch/2000/msg02832.html ). In his proposition Jeff says that we should make a duplicate the packet and send copy with the original packet up but I didn't know how to do it :( ... I absolutely agree with Sanjay Raghani in its post ( http://www.mail-archive.com/ns-users at isi.edu/msg02771.html ) when he says that the solution of Jeff is not the correct one for many reasons but till now I don't have any idea how to proceed to solve my problem :( My C++ function which I use to broadcast the packet is below : void DistacAgent::broadcast_packet( ) { Packet *p = allocpkt(); if(p==NULL){ abort(); } hdr_cmn *ch = HDR_CMN(p); hdr_ip *ih = HDR_IP(p); //filling the Common header ch->ptype() = PT_DISTAC; // My agent packet type !! ch->size() = IP_HDR_LEN + sizeof(hdr_distac); ch->iface() = -2; ch->error() = 0; ch->addr_type() = NS_AF_NONE; ch->prev_hop_ = Agent::addr(); ch->next_hop() = IP_BROADCAST; ch->direction() = hdr_cmn::DOWN ; //filling the IP header ih->saddr() = Agent::addr(); ih->daddr() = IP_BROADCAST; ih->sport() = DISTAC_PORT; ih->dport() = DISTAC_PORT; ih->ttl_ = 32; // and finally sending the packet by putting it on the scheduler Scheduler::instance().schedule(target_, p, 0); } Please if you have any idea don't hesitate to send to me and thanks in advance !! Adel. Windows Live: Keep your friends up to date with what you do online. _________________________________________________________________ Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010 From amir_adeli at yahoo.com Thu Oct 15 23:52:37 2009 From: amir_adeli at yahoo.com (amir adelipour) Date: Thu, 15 Oct 2009 23:52:37 -0700 (PDT) Subject: [ns] HELP (problem with connecting access points to each other) Message-ID: <373550.25475.qm@web45211.mail.sp1.yahoo.com> Dear friends, As you know, they have implemented infrastructure mode of 802.11 in NS2.33. I am simulating an infrastructure network with some access points and some end stations, but I cannot connect access points to each other at all. I have tried all routing protocol even HWMP, but it is not working. If there are only 3 APs, it works, otherwise no. Is there anybody that uses access points in his/her scenario. if so, how do you do that? please help me. I really need your help and appreciate it in advance. Many thanks. From radwanbr at hotmail.com Fri Oct 16 09:51:28 2009 From: radwanbr at hotmail.com (rad ab) Date: Fri, 16 Oct 2009 16:51:28 +0000 Subject: [ns] Help please Message-ID: Hi, I have got this problem [code omitted becuase of length] inavaild command namw "WFQClass" while excuting "WFQClass set limit_ 5000" someone can help me please hoe to fix this errore I will be very pleased? Regards Rawan From serena.dacquisto at libero.it Fri Oct 16 09:53:12 2009 From: serena.dacquisto at libero.it (serena.dacquisto@libero.it) Date: Fri, 16 Oct 2009 18:53:12 +0200 (CEST) Subject: [ns] sure response flash!!! Message-ID: <29958559.471241255711992806.JavaMail.defaultUser@defaultHost> Hi All, I'm a new ns user and I ask something simple for you experts! When I run the following command: ./setdest -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 > scen-20-test where should I write?In the tcl script, or somewhere else? Thank you in advance. Please someone answer me, it's important. Serena From serena.dacquisto at libero.it Fri Oct 16 10:01:42 2009 From: serena.dacquisto at libero.it (serena.dacquisto@libero.it) Date: Fri, 16 Oct 2009 19:01:42 +0200 (CEST) Subject: [ns] sure flash response !!! Message-ID: <15043855.471901255712502936.JavaMail.defaultUser@defaultHost> Hi All, I'm a new ns user and I ask something simple for you experts! When I run the following command: ./setdest -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 > scen-20-test where should I write?In the tcl script, or somewhere else? Thank you in advance. Please someone answer me, it's important. Serena From urlan at comp.ufla.br Fri Oct 16 11:52:28 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Fri, 16 Oct 2009 15:52:28 -0300 Subject: [ns] Help please In-Reply-To: References: <9bfab37d0910161001i796300dap6d41b4d4074c24b3@mail.gmail.com> Message-ID: <9bfab37d0910161152o5f42bd25l214058e7aa958ffe@mail.gmail.com> Take a look at the documentation: www.isi.edu/nsnam/ns/*doc*/ns_*doc*.pdf Chapter 3: OTcl Linkage Section 3.4.4 command Methods: Definition and Invocation Seeya. Urlan 2009/10/16 rad ab > thank you very much for relpy > Ya actually I don't know how to deal with this error ? so If you can let me > know how to solve it I will be very pleased > Regards > Rawan > > ------------------------------ > Date: Fri, 16 Oct 2009 14:01:26 -0300 > Subject: Re: [ns] Help please > From: urlan at comp.ufla.br > To: radwanbr at hotmail.com > CC: ns-users at isi.edu > > > Does exist this command in method "command" of the class? > > Is correct the number of parameters that you are passing? > > Urlan > > 2009/10/16 rad ab > > > > Hi, > > I have got this problem > > [code omitted becuase of length] > > inavaild command namw "WFQClass" > > while excuting > > "WFQClass set limit_ 5000" > > > > someone can help me please hoe to fix this errore I will be very pleased? > > Regards > > Rawan > > > From urlan at comp.ufla.br Fri Oct 16 10:01:26 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Fri, 16 Oct 2009 14:01:26 -0300 Subject: [ns] Help please In-Reply-To: References: Message-ID: <9bfab37d0910161001i796300dap6d41b4d4074c24b3@mail.gmail.com> Does exist this command in method "command" of the class? Is correct the number of parameters that you are passing? Urlan 2009/10/16 rad ab > > > Hi, > > I have got this problem > > [code omitted becuase of length] > > inavaild command namw "WFQClass" > > while excuting > > "WFQClass set limit_ 5000" > > > > someone can help me please hoe to fix this errore I will be very pleased? > > Regards > > Rawan > > From mutiullah15 at yahoo.com Sat Oct 17 01:30:28 2009 From: mutiullah15 at yahoo.com (Mutiullah Qureshi) Date: Sat, 17 Oct 2009 01:30:28 -0700 (PDT) Subject: [ns] What are INFINITY2 and RTF_DOWN in AODV code used for? Message-ID: <393285.46680.qm@web110704.mail.gq1.yahoo.com> Hello. I find following two preprocessor directives in aodv_rtable.h files of AODV code: #define INFINITY2 0xff and #define RTF_DOWN 0 I do not understand what these directives are used for. Please make clear the difference between these two directives. Regards. From adel.belkhiri at hotmail.com Sat Oct 17 07:08:16 2009 From: adel.belkhiri at hotmail.com (adel belkhiri) Date: Sat, 17 Oct 2009 15:08:16 +0100 Subject: [ns] Multihop Broadcasting in MANET with ns2 Message-ID: Hi dears ns-users, I'm writing an agent that broadcast a packet to All the neighbor nodes in the MANET network. I have search for a long time in the Internet to do it with ns2.33 but I fail. In fact, the problem is that only neighbors in the range of one hop from the sender node can receive the packet !! I have used many Ad hoc routing protocols (even OLSR !! ) but the problem remains the same. The solution proposed for the broadcast problem by Jeff Bolen didn't resolve the problem. ( Please follow this link for more details : http://www.isi.edu/nsnam/archive/ns-users/webarch/2000/msg02832.html). In his proposition Jeff says that we should make a duplicate the packet and send a copy with the original packet up but I didn't know how to do it and in which layer !! :( ... I absolutely agree with Sanjay Raghani in its post ( Please follow this link for more details : http://www.mail-archive.com/ns-users at isi.edu/msg02771.html ) when he says that the solution of Jeff is not the correct one for many reasons but till now I don't have any idea how to proceed to solve my problem :( Really I'm very confused !! My C++ function which I use to broadcast the packet is below : void DistacAgent::broadcast_packet( ) { Packet *p = allocpkt(); if(p==NULL){ abort(); } hdr_cmn *ch = HDR_CMN(p); hdr_ip *ih = HDR_IP(p); //filling the Common header ch->ptype() = PT_DISTAC; // My agent packet type !! ch->size() = IP_HDR_LEN + sizeof(hdr_distac); ch->iface() = -2; ch->error() = 0; ch->addr_type() = NS_AF_NONE; ch->prev_hop_ = Agent::addr(); ch->next_hop() = IP_BROADCAST; ch->direction() = hdr_cmn::DOWN ; //filling the IP header ih->saddr() = Agent::addr(); ih->daddr() = IP_BROADCAST; ih->sport() = DISTAC_PORT; ih->dport() = DISTAC_PORT; ih->ttl_ = 32; // and finally sending the packet by putting it on the scheduler Scheduler::instance().schedule(target_, p, 0); } Please if you can help or have any idea about this topic, don't hesitate to write to me and many thanks in advance. Regards !! /Adel. Windows Live: Keep your friends up to date with what you do online. Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you. _________________________________________________________________ Windows Live: Make it easier for your friends to see what you?re up to on Facebook. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009 From SNapear at cbi.com Thu Oct 15 17:59:34 2009 From: SNapear at cbi.com (Sarawut Napear) Date: Fri, 16 Oct 2009 07:59:34 +0700 Subject: [ns] Need help to extract(by using tool or shell scripting)performance analysis parameters from new wireless trace file format In-Reply-To: Message-ID: hi, The attached below is the script that used in my Master thesis may be it can help. Best regards, Sarawut Napear Network Administrator CBI(Thailand)Limted Email : SNapear at cbi.com Webpage : http://www.cbi.com Mobile : 089-2450248 Tel : +66 038-699013 "Believe in yourself - Believe in Democracy" shakkeera liaquath ali khan Sent by: ns-users-bounces at ISI.EDU 10/15/2009 11:07 PM To ns-users at ISI.EDU cc olsr-users at lists.olsr.org Subject [ns] Need help to extract(by using tool or shell scripting)performance analysis parameters from new wireless trace file format hi all,' i doing project by using OLSR Protocol in ns 2.33 in fedora 8 platform....after i get the result of MPR computations in OLSR prortocol ,in trace file i want to extract the performance analysis parameters like sent packets ,received packets,packet delivery ratio,end to end delay,throughput...etc...if any body know how to extract these information from trace file...if there is any tool or shell scripting is available to extract the information...please help me... Thank you in advance... From nguyenthanh_cb2007 at yahoo.com Sun Oct 18 01:41:46 2009 From: nguyenthanh_cb2007 at yahoo.com (Nguyen Thanh) Date: Sun, 18 Oct 2009 01:41:46 -0700 (PDT) Subject: [ns] transmit the address(node id) of node from TCL to C++ Message-ID: <529951.48217.qm@web38205.mail.mud.yahoo.com> Dear All, ? I'am new in ns2. Could anyone please help me? ? In the code of?UM-OLSR,AODV or?DSR where the address(node id) of node?was transmitted from TCL to C++? ? Thanks in advance. Thanh Truy c?p Mail nhanh h?n! Yahoo! khuy?n kh?ch b?n n?ng c?p tr?nh duy?t l?n Internet Explorer 8 m?i, t?i ?u h?a cho Yahoo!. T?i t?i ??y! http://downloads.yahoo.com/vn/internetexplorer/ From mt57 at njit.edu Sun Oct 18 20:48:19 2009 From: mt57 at njit.edu (manoop talasila) Date: Sun, 18 Oct 2009 23:48:19 -0400 Subject: [ns] Multihop Broacasting in ns2 In-Reply-To: References: Message-ID: Hi, I am trying to send broadcast packets from a node to its neighbors. Using similar code as in below mail. But, after below statement, c++ code is throwing "Segmentation fault (core dumped)" error. Scheduler::instance().schedule(target_, p, 0); I am not able to atleast send broadcast packets to neighbors. Please help me understand the issue. did anyone have this issue? I commented above schedulercode and tried direct send() function..like "send(p,0);". This also gives same segmentation fault. I am attaching my tcl, .h & .cc files. I am new nsuser. using ns2.34 with cygwin in XP. Thanks for help in advance. On Thu, Oct 15, 2009 at 5:19 PM, adel belkhiri wrote: > > > > > > Hi my dears, > > I'm writing an agent that broadcast a packet to all the neighbor nodes in > the MANET network. I have search for a long time in the net to do that with > ns2 but I fail. In fact, the problem is that only neighbors in the range of > one hop from the sender node can receive the packet!! The solution proposed > for the broadcast problem by Jeff Bolen didn't resolve the problem ( > http://www.isi.edu/nsnam/archive/ns-users/webarch/2000/msg02832.html ). In > his proposition Jeff says that we should make a duplicate the packet and > send copy with the original packet up but I didn't know how to do it :( ... > I absolutely agree with Sanjay Raghani in its post ( > http://www.mail-archive.com/ns-users at isi.edu/msg02771.html ) when he says > that the solution of Jeff is not the correct one for many reasons but till > now I don't have any idea how to proceed to solve my problem :( > > My C++ function which I use to broadcast the packet is below : > > void DistacAgent::broadcast_packet( ) > { > > Packet *p = allocpkt(); > if(p==NULL){ > abort(); > } > > hdr_cmn *ch = HDR_CMN(p); > hdr_ip *ih = HDR_IP(p); > > //filling the Common header > ch->ptype() = PT_DISTAC; // My agent packet type !! > ch->size() = IP_HDR_LEN + sizeof(hdr_distac); > ch->iface() = -2; > ch->error() = 0; > ch->addr_type() = NS_AF_NONE; > ch->prev_hop_ = Agent::addr(); > ch->next_hop() = IP_BROADCAST; > ch->direction() = hdr_cmn::DOWN ; > > //filling the IP header > ih->saddr() = Agent::addr(); > ih->daddr() = IP_BROADCAST; > > ih->sport() = DISTAC_PORT; > ih->dport() = DISTAC_PORT; > > ih->ttl_ = 32; > > // and finally sending the packet by putting it on the scheduler > Scheduler::instance().schedule(target_, p, 0); > > } > > Please if you have any idea don't hesitate to send to me and thanks in > advance !! > > Adel. > > Windows Live: Keep your friends up to date with what you do online. > _________________________________________________________________ > Windows Live: Friends get your Flickr, Yelp, and Digg updates when they > e-mail you. > > http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010 > -- Regards, Manoop Talasila Ph.D. student CS Dept, NJIT Phone: 732-789-7165 Email: mt57 at njit.edu From atifet97 at yahoo.com Sun Oct 18 21:49:46 2009 From: atifet97 at yahoo.com (Atif Sharif) Date: Sun, 18 Oct 2009 21:49:46 -0700 (PDT) Subject: [ns] WIRELESS MULTIMEDIA SENSOR NETWORKS - WMSN 2010 Message-ID: <831144.19612.qm@web57707.mail.re3.yahoo.com> Dea all! WIRELESS MULTIMEDIA SENSOR NETWORKS? - WMSN 2010 to be part of: The 2010 International Conference for Computational Science and Its Applications (ICCSA 2010) to be held on March 23 -26, 2010 at Kyushu Sangyo University, Fukuoka, Japan http://www.iccsa.org/sessions INTRODUCTION ------------------------ Wireless Multimeida Sensor Network (WMSN) has gathered a lot of interest in research community recently, since it has opened new challenges with the development of intresting application like survelliance, environmment monitoring etc. The development of efficient protocols for WMSN communication as well as development of WMSN motes itself presents numeours challenges for the research community. Energy is the biggest concern for such networks and achieving high energy efficiency is of paramount importance for the longevity of the network.? In order to combat against this energy challenge energy efficient hardware and communication protocol design for such devices has gathered the intentions of the research community recently.? The workshop aims to bring together the research community working in the similar areas.? It will be held in conjunction with ICCSA 2010, thus providing an ideal opportunity for researchers and specially high degree PhD research students to present their latest work and have a valuable feedback from experts. Authors are invited to submit original, previously unpublished work that clearly demonstrate their research related to energy efficient WSN.? Topics of interest include but are not limited to the following featured topics: ???? Hardware aspects of sensor design ???? Energy Conservation and Management ???? Energy-aware communication protocols ???? Cross-layer optimization ???? Collaborative signal processing ???? Quality-of-Service ???? Simulation tools, operating systems and middleware ???? Security, privacy, and data integrity in WSN ???? Scalability of wireless sensor networks ???? Integration with Other System ???? Sensor networks and the Web ???? Prototypes, field studies, and testbeds ???? WSN Applications such as environment, petroleum, healthcare, security, and agriculture. Important Dates August 30, 2009?October 31, 2009:?? Abstract and Full Paper submission November 1?December 3, 2009:???????? Reviewing of submitted Papers December? 7, 2009:???????????????????????????? Notification of Acceptance January 8, 2010:????????????????????????????????? Early-bird Registration ends. January 8, 2010:????????????????????????????????? Submission deadline for the final version of the Papers March 23-26, 2010:???????????????????????????? ICCSA 2010 Conference From pnimonkar at gmail.com Sun Oct 18 22:44:54 2009 From: pnimonkar at gmail.com (preeti nimonkar) Date: Mon, 19 Oct 2009 11:14:54 +0530 Subject: [ns] problem while creating wireless scenario Message-ID: <3792d16c0910182244n276397f2n45b6c55e51a00a9e@mail.gmail.com> hello all > I wanted to Implement AODV , DSDV or DSR protocol in wireless network . like If node 1 wanted to communicate with node 5 then it must show routing path . can some one please help me how to implement it ? thanks -- Regards, preeti From lea.yeh at gmail.com Mon Oct 19 02:18:54 2009 From: lea.yeh at gmail.com (lea YEH) Date: Mon, 19 Oct 2009 02:18:54 -0700 (PDT) Subject: [ns] configure a wimax Base Station Message-ID: <25955350.post@talk.nabble.com> Hello, Could you please explain to me how can I configure a wimax BS. Best regards & thanks in advance -- View this message in context: http://www.nabble.com/configure-a-wimax-Base-Station-tp25955350p25955350.html Sent from the ns-users mailing list archive at Nabble.com. From nguyenthanh_cb2007 at yahoo.com Mon Oct 19 12:27:47 2009 From: nguyenthanh_cb2007 at yahoo.com (Nguyen Thanh) Date: Mon, 19 Oct 2009 12:27:47 -0700 (PDT) Subject: [ns] code of AODV, please help me In-Reply-To: Message-ID: <917067.46071.qm@web38201.mail.mud.yahoo.com> ? Dear All, ? I am new in Ns2. Could?anyone please instruct me? ? In the following code of AODV,?I do not know where the?agrument Agent/AODV? was declared?and how?does TclClass("Agent/AODV") execute? ? static class AODVclass : public TclClass { public: AODVclass() : TclClass("Agent/AODV") {} TclObject* create(int argc, const char*const* argv) { assert(argc == 5); //return (new AODV((nsaddr_t) atoi(argv[4]))); return (new AODV((nsaddr_t) Address::instance().str2addr(argv[4]))); } } class_rtProtoAODV; ? Thanks in advance. Thanh L??t web nhanh h?n. Internet Explorer 8 t?i ?u h?a cho Yahoo!, t? ??ng kh?i ??ng 2 trang b?n th?ch m?i l?n m? tr?nh duy?t. T?i IE8 t?i ??y! http://downloads.yahoo.com/vn/internetexplorer/ From mt57 at njit.edu Mon Oct 19 16:56:35 2009 From: mt57 at njit.edu (manoop talasila) Date: Mon, 19 Oct 2009 19:56:35 -0400 Subject: [ns] Multihop Broacasting in ns2 In-Reply-To: <9610a5930910190042h6b70490fo9887261f7aa9666a@mail.gmail.com> References: <8043917286506133338@unknownmsgid> <9610a5930910190042h6b70490fo9887261f7aa9666a@mail.gmail.com> Message-ID: Hi, I added printf statements in scheduler() and i see that schedule function is completely executed till the end with out error. I see my print statements as below. inside send().. before schedule.. inside schedule().. before schedule::insert.. after schedule.. Segmentation fault (core dumped) I tried with JITTER as below, then also I get the same error. Scheduler::instance().schedule(target_,p,JITTER); Please help me. On Mon, Oct 19, 2009 at 3:42 AM, fahim maan wrote: > hi, > u must know that scheduler function works for > t<0, t>0 by checking the packet type e.g. broadcast, data etc. > i assume its the broadcast packet u are sending therefore u got > segmentation fault. > i also got the same error and got it removed by modifying scheduler.h, .cc > files. > u would see routins there for example t<0, t>0 i described for packets. and > one saying invalid packet uid type comment the one u dont wana follow in ur > scheme. hope it will work out. > best ov luk. > Fahim Maan > > On Sun, Oct 18, 2009 at 11:48 PM, manoop talasila wrote: > >> >> Hi, >> >> I am trying to send broadcast packets from a node to its neighbors. Using >> similar code as in below mail. But, after below statement, c++ code is >> throwing "Segmentation fault (core dumped)" error. >> >> Scheduler::instance().schedule(target_, p, 0); >> >> I am not able to atleast send broadcast packets to neighbors. Please help >> me >> understand the issue. did anyone have this issue? >> >> I commented above schedulercode and tried direct send() function..like >> "send(p,0);". This also gives same segmentation fault. >> >> I am attaching my tcl, .h & .cc files. I am new nsuser. using ns2.34 with >> cygwin in XP. >> >> Thanks for help in advance. >> >> On Thu, Oct 15, 2009 at 5:19 PM, adel belkhiri > >wrote: >> >> > >> > >> > >> > >> > >> > Hi my dears, >> > >> > I'm writing an agent that broadcast a packet to all the neighbor nodes >> in >> > the MANET network. I have search for a long time in the net to do that >> with >> > ns2 but I fail. In fact, the problem is that only neighbors in the range >> of >> > one hop from the sender node can receive the packet!! The solution >> proposed >> > for the broadcast problem by Jeff Bolen didn't resolve the problem ( >> > http://www.isi.edu/nsnam/archive/ns-users/webarch/2000/msg02832.html ). >> In >> > his proposition Jeff says that we should make a duplicate the packet and >> > send copy with the original packet up but I didn't know how to do it :( >> ... >> > I absolutely agree with Sanjay Raghani in its post ( >> > http://www.mail-archive.com/ns-users at isi.edu/msg02771.html ) when he >> says >> > that the solution of Jeff is not the correct one for many reasons but >> till >> > now I don't have any idea how to proceed to solve my problem :( >> > >> > My C++ function which I use to broadcast the packet is below : >> > >> > void DistacAgent::broadcast_packet( ) >> > { >> > >> > Packet *p = allocpkt(); >> > if(p==NULL){ >> > abort(); >> > } >> > >> > hdr_cmn *ch = HDR_CMN(p); >> > hdr_ip *ih = HDR_IP(p); >> > >> > //filling the Common header >> > ch->ptype() = PT_DISTAC; // My agent packet type !! >> > ch->size() = IP_HDR_LEN + sizeof(hdr_distac); >> > ch->iface() = -2; >> > ch->error() = 0; >> > ch->addr_type() = NS_AF_NONE; >> > ch->prev_hop_ = Agent::addr(); >> > ch->next_hop() = IP_BROADCAST; >> > ch->direction() = hdr_cmn::DOWN ; >> > >> > //filling the IP header >> > ih->saddr() = Agent::addr(); >> > ih->daddr() = IP_BROADCAST; >> > >> > ih->sport() = DISTAC_PORT; >> > ih->dport() = DISTAC_PORT; >> > >> > ih->ttl_ = 32; >> > >> > // and finally sending the packet by putting it on the scheduler >> > Scheduler::instance().schedule(target_, p, 0); >> > >> > } >> > >> > Please if you have any idea don't hesitate to send to me and thanks in >> > advance !! >> > >> > Adel. >> > >> > Windows Live: Keep your friends up to date with what you do online. >> > _________________________________________________________________ >> > Windows Live: Friends get your Flickr, Yelp, and Digg updates when they >> > e-mail you. >> > >> > >> http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010 >> > >> >> >> >> -- >> Regards, >> Manoop Talasila >> Ph.D. student >> CS Dept, NJIT >> Phone: 732-789-7165 >> Email: mt57 at njit.edu >> >> > -- Regards, Manoop Talasila Ph.D. student CS Dept, NJIT Phone: 732-789-7165 Email: mt57 at njit.edu From mt57 at njit.edu Mon Oct 19 17:53:44 2009 From: mt57 at njit.edu (manoop talasila) Date: Mon, 19 Oct 2009 20:53:44 -0400 Subject: [ns] broadcast packets using protoname example Message-ID: Hi, Here is what i am trying exactly: I followed the instructions from the below pdf link to setup MANET protocol in NS2. http://masimum.inf.um.es/nsrt-howto/pdf/nsrt-howto.pdf And I am able to setup "Protoname" protocol in ns2 as per the instructions. And i am trying from tcl script to send broad cast packets as below: $ns_ at 0.1 "[$node_(0) set ragent_] send" in command(), i parse the "send" to call sendit() function as below: if (strcasecmp(argv[1], "send") == 0) { printf("inside send elseif..\n"); sendit(); return TCL_OK; } and in sendit() function, finally i call scheduler as below: void Protoname::sendit() { printf("inside sendit..\n"); Packet* p = allocpkt(); struct hdr_cmn* ch = HDR_CMN(p); struct hdr_ip* ih = HDR_IP(p); ch->ptype() = PT_PROTONAME; ch->next_hop() = IP_BROADCAST; ih->saddr() = ra_addr(); ih->daddr() = IP_BROADCAST; ih->sport() = RT_PORT; ih->dport() = RT_PORT; ih->ttl() = IP_DEF_TTL;; printf("before schedule..\n"); Scheduler::instance().schedule(target_,p,0); printf("after schedule..\n"); } After schedule it takes some time and then throws "Segmentation fault (core dumped)". I added printf statements in scheduler.cc at schedule(), and in agent.cc & connector.cc at send(). But, not able to find where the error is thrown. Please let me know where to look at. Thanks for help in advance. -- Regards, Manoop Talasila Ph.D. student CS Dept, NJIT Phone: 732-789-7165 Email: mt57 at njit.edu From raveenpal.kaur at bbsbec.ac.in Tue Oct 20 00:26:31 2009 From: raveenpal.kaur at bbsbec.ac.in (raveenpal kaur) Date: Tue, 20 Oct 2009 12:56:31 +0530 Subject: [ns] Regarding virtual computer network lab setup project using WiFi Message-ID: Dear All, I have to submit my project on creation of Virtual lab using WiFi. Plz help me to start and make this project. I have installed Ns2.34 and run several senarios . but not specific for what to do to set a virtual computer network lab -- Raveen Bajwa From aoufi_souhila at yahoo.fr Tue Oct 20 00:51:44 2009 From: aoufi_souhila at yahoo.fr (aoufi souhila) Date: Tue, 20 Oct 2009 07:51:44 +0000 (GMT) Subject: [ns] Multihop Broacasting in ns2 In-Reply-To: Message-ID: <561581.47034.qm@web27604.mail.ukl.yahoo.com> When you want to broadcast packet, the ttl must be equal to 1. ih->ttl()= 1; best regards > Subject: Re: [ns] Multihop Broacasting in ns2 > To: adel belkhiri , > ns-users at ISI.EDU > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > I am trying to send broadcast packets from a node to its > neighbors.. Using > similar code as in below mail. But, after below statement, > c++ code is > throwing "Segmentation fault (core dumped)" error. > > Scheduler::instance().schedule(target_, p, 0); > > I am not able to atleast send broadcast packets to > neighbors. Please help me > understand the issue. did anyone have this issue? > > I commented above schedulercode and tried direct send() > function..like > "send(p,0);". This also gives same segmentation fault. > > I am attaching my tcl, .h & .cc files. I am new nsuser. > using ns2.34 with > cygwin in XP. > > Thanks for help in advance. > > On Thu, Oct 15, 2009 at 5:19 PM, adel belkhiri wrote: > > > > > > > > > > > > > Hi my dears, > > > > I'm writing an agent that broadcast a packet to all > the neighbor nodes in > > the MANET network. I have search for a long time in > the net to do that with > > ns2 but I fail. In fact, the problem is that only > neighbors in the range of > > one hop from the sender node can receive the > packet!! The solution proposed > > for the broadcast problem by Jeff Bolen didn't resolve > the problem ( > > http://www.isi.edu/nsnam/archive/ns-users/webarch/2000/msg02832.html > ). In > > his proposition Jeff says that we should make a > duplicate the packet and > > send copy with the original packet up but I didn't > know how to do it :( ... > > I absolutely agree with Sanjay Raghani in its post ( > > http://www.mail-archive.com/ns-users at isi.edu/msg02771.html > ) when he says > > that the solution of Jeff is not the correct one for > many reasons but till > > now I don't have any idea how to proceed to solve my > problem :( > > > > My C++ function which I use to broadcast the > packet is below : > > > > void DistacAgent::broadcast_packet( ) > > { > > > > Packet *p = allocpkt(); > > if(p==NULL){ > > abort(); > > } > > > > hdr_cmn *ch = HDR_CMN(p); > > hdr_ip *ih = HDR_IP(p); > > > > //filling the Common header > > ch->ptype() = PT_DISTAC; // My agent packet > type !! > > ch->size() = IP_HDR_LEN + > sizeof(hdr_distac); > > ch->iface() = -2; > > ch->error() = 0; > > ch->addr_type() = NS_AF_NONE; > > ch->prev_hop_ = Agent::addr(); > > ch->next_hop() = IP_BROADCAST; > > ch->direction() = hdr_cmn::DOWN ; > > > > //filling the IP header > > ih->saddr() = Agent::addr(); > > ih->daddr() = IP_BROADCAST; > > > > ih->sport() = DISTAC_PORT; > > ih->dport() = DISTAC_PORT; > > > > ih->ttl_ = 32; > > > > // and finally sending the packet by putting it on the > scheduler > > Scheduler::instance().schedule(target_, p, 0); > > > > } > > > > Please if you have any idea don't hesitate to send to > me and thanks in > > advance !! > > > > Adel. _________________________________________________________________ From kumar.mahendra509 at gmail.com Tue Oct 20 02:49:35 2009 From: kumar.mahendra509 at gmail.com (MAHENDRA Kumar) Date: Tue, 20 Oct 2009 15:19:35 +0530 Subject: [ns] code for dvb In-Reply-To: <15fbfaff0910200236u19ce967cy88f6a43366290fde@mail.gmail.com> References: <15fbfaff0910200236u19ce967cy88f6a43366290fde@mail.gmail.com> Message-ID: <15fbfaff0910200249o16dcc1cdg52af4b58d607058f@mail.gmail.com> ---------- Forwarded message ---------- From: MAHENDRA Kumar Date: Tue, Oct 20, 2009 at 3:06 PM Subject: code for dvb To: ns-users at isi.edu sir i m going to do a project on hybrid routing protocol. can you send me the dvb code in order to refer something in this code. From rakusust at gmail.com Tue Oct 20 03:18:09 2009 From: rakusust at gmail.com (Suranjit Paul) Date: Tue, 20 Oct 2009 06:18:09 -0400 Subject: [ns] =?windows-1252?q?What_does_this_ERROR=5B=2E/bcast/bcast=5Fqu?= =?windows-1252?q?eue=2Eh=3A49=3A_error=3A_expected_=60=29=27_befor?= =?windows-1252?q?e_=91*=92_token=5D_mean=3F?= Message-ID: <90bb9e8d0910200318m64b0b9a4tac5fed1af7821def@mail.gmail.com> Dear All, I am trying to compile some Broadcast Protocols which were written in ns-2.29. I am using ns-2.34 in Ubuntu 9.04 and I have made necessary modification according to the document *"Implementing a New Manet Unicast Routing Protocol in NS2 by Francisco J. Ros & Pedro M. Ruiz"* but still I can not 'make' these modified files. I am always facing the same ERROR: **./bcast/bcast_queue.h:49: error: expected `)' before =91*=92 token** Previously, I had ns-2.29 in my Laptop and I tried to run these code on my ns-2.29 distribution that but got the same ERROR. Can anyone please suggest me why I am facing this problem? Any Suggestion please? Thanks, Suranjit Note: No updated versions of those codes are available, so I have to make necessary changes to run these codes. From peter.decleyn at gmail.com Tue Oct 20 06:03:19 2009 From: peter.decleyn at gmail.com (Peter De Cleyn) Date: Tue, 20 Oct 2009 15:03:19 +0200 Subject: [ns] invitation to SyClick: the first symposium on Click Modular Router In-Reply-To: <832b47df0910200557n75ed9a00x189dca3ce801e549@mail.gmail.com> References: <832b47df0910200557n75ed9a00x189dca3ce801e549@mail.gmail.com> Message-ID: <832b47df0910200603w595a03d6k26e71cec5021f96d@mail.gmail.com> ~ Apologies if you receive multiple copies of this invitation ~ If you have received this e-mail in plain text, without any images, click here ! [image: *] [image: *] EVENT INVITATION *SyClick Symposium* 23/24 November *IBBT Ghent, Belgium* [image: *] View location: route [image: *] Dear Madam, Dear Sir, We would like to invite you and your colleagues to SyClick, the first symposium on Click Modular Router, which will take place on the 23rd and 24th of November in Ghent. Through this symposium, PATS (research group of the University of Antwerp and member of IBBT) wants to bring together users and developers of the Click Modular Router framework. The first day a developer day will be organized. This gives Click developers the opportunity to discuss various topics amongst each other in an informal setting. The second day is full of inspiring speeches by several key note speakers. Please find the schedule of the second day below: 9.00 Welcome 9.45 Invited Talk by Eddie Kohler 10.45 "An OpenFlow Switch for Click" by Yogesh Mundada 11.15 Coffee break 11.45 "LISP-Click: A Click implementation of the Locator/ID Seperation Protocol" by Damien Saucez (KULeuven) 12.15 "MultiFlowDispatcher and TCPSpeaker" by Harald Schi?berg (Deutche Telekom Laboratories) 12.45 Sandwich lunch 13.45 Poster & demo session 14.45 "Synthesizing Adaptive Protocols by Selective Enumeration (SYNAPSE)" by Jesse Brown (Lockheed Martin Advanced Technology Laboratories) 15.30 "Implementing Software Virtual Routers on Multi-core PCs using Click" by Adam Greenhalgh (University College London) 16.00 Coffee break 16.30 "Attaining a statistically reliable mobile ad hoc netwerk simulation environment" by Derek Huber (Air Force Institute of Technology) 17.00 "Virtual Private Ad hoc Networks and their implementation in Click Router" by Jeroen Hoebeke (IBBT-IBCN-UGent) 17.30 Closing session and reception The SyClick symposium encloses two days and is held at the IBBT offices in Ghent. The registration fee for this two day event is ? 30 for IBBT partners and ? 60 for non-IBBT partners. Registration beforehand is mandatory. For more information and registration, please go to: http://events.ibbt.be/syclick or visithttp://www.syclick.ua.ac.be/ Any questions? Mail to syclick at ua.ac.be Hoping to see you there! Kind regards, The IBBT & SyClick team ? IBBT vzw 2009 [image: *] [image: *] IBBT vzw, Interdisciplinair Instituut voor Breedbandtechnologie Gaston Crommenlaan 8 (bus 102), 9050 Gent, Belgi? - E info at ibbt.be T +32 9 331 48 00 - F +32 9 331 48 05 - www.ibbt.be privacy policy From mostafafoda at hotmail.com Tue Oct 20 07:45:51 2009 From: mostafafoda at hotmail.com (Mostafa Fouda) Date: Tue, 20 Oct 2009 23:45:51 +0900 Subject: [ns] Help.. Upload bandwidth of the nodes in ns2.33 In-Reply-To: <561581.47034.qm@web27604.mail.ukl.yahoo.com> References: Message-ID: Hello everybody, I am building a model of P2P overlay network using NS 2.33. I have one question, which is, how to know the upload and download bandwidths of the nodes in the C++ code??? Please help me if you know something, thanks *****************Mostafa Fouda _________________________________________________________________ Keep your friends updated?even when you?re not signed in. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010 From Eclipse612 at hotmail.com Tue Oct 20 09:29:19 2009 From: Eclipse612 at hotmail.com (Eclipse612) Date: Tue, 20 Oct 2009 09:29:19 -0700 (PDT) Subject: [ns] Where does TcpFull know no more data needs to be sent? Message-ID: <25978326.post@talk.nabble.com> Hello, I'd like to have the FullTcp agent call a certain method at the appropriate time, but can't find the spot to put the call in. The agent is sending a - let's call it that way - "application data object". Of course, it sends little 536-byte segments until the total bytes sent reach the size of the given "application layer payload". I want the sending agent to make the call when all bytes have been sent and all acks have been received, so that I can tell the application layer to send another data object. Where do I put the call? Thanks in advance! -- View this message in context: http://www.nabble.com/Where-does-TcpFull-know-no-more-data-needs-to-be-sent--tp25978326p25978326.html Sent from the ns-users mailing list archive at Nabble.com. From afaque.mozaff at gmail.com Tue Oct 20 22:12:20 2009 From: afaque.mozaff at gmail.com (Mozaffar Afaque) Date: Wed, 21 Oct 2009 10:42:20 +0530 Subject: [ns] Help....node stops sending message after sometime In-Reply-To: References: Message-ID: Hi, I am doing wireless simulation in ns2 with about 700 moving nodes. at time t = 0 simulation start and at t= 270 a node start raising a message small in size periodically after every 0.4 seconds. This message is heard by nearby(upto 300 meters) till about t=780 seconds. After that no one is able to hear it though there are many nodes around. please can any one help. the configuration are given below 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 Queue/DropTail/PriQueue set Prefer_Routing_Protocols 1 # 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 # This is for 250 set opt(rr) 250 Phy/WirelessPhy set Pt_ 0.60 Phy/WirelessPhy set freq_ 914e+6 Phy/WirelessPhy set L_ 1.0 # ===================================================================== # This puts in only the headers that we need. # ===================================================================== remove-all-packet-headers add-packet-header IP #add-packet-header CBR add-packet-header Common #add-packet-header SLC add-packet-header HDCtransport #add-packet-header AODV add-packet-header Flags add-packet-header LL add-packet-header Mac # ====================================================================== # Main Program # ====================================================================== # # Initialize Global Variables # *and node configuration is* * * * * *$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) \ -channel $chan_1_ \ -topoInstance $wtopo \ -agentTrace OFF \ -routerTrace OFF \ -macTrace ON \ -movementTrace ON \ -EotTrace OFF I made changes in Phy/WirelessPhy set Pt_ 0.60 by setting the value of Pt_ as 0.29 but it didnot help me. also I tried to put initialEnergy in node config section above with higher valu that also did not make any difference. Regards, Mozaffar * From sxhgoahead at gmail.com Wed Oct 21 07:21:47 2009 From: sxhgoahead at gmail.com (Daniel sun) Date: Wed, 21 Oct 2009 22:21:47 +0800 Subject: [ns] "throughput fluctuation" of IEEE 802.11 DCF Message-ID: <483768470910210721g7b748565s9c922b4e38a58d9@mail.gmail.com> Dear all, I am doing some simulations with ns-2.31 to calculate the saturation throughput of the IEEE 802.11 DCF, just as Bianchi did in his work "Performance Analysis of the IEEE 802.11 Distributed Coordination Function". I have used NOAH to get rid of the routing effect on the performance of mac layer. One weird phenomenon has confused me for months. When CWmax and CWmin are both small,say, CWmin=CWmax=32, or CWmin=2,CWmax=128, the saturated throughput of the network drops down initially, then it bounces back and fluctuates. I think in this high contention network the throughput should drops down to some low value. However the throughput in my simulation will never drops to that value. Anyone has experienced some similar thing? Thanks a lot! Daniel -- Daniel City University of Hong Kong Dept.of EE From cresio at gmail.com Wed Oct 21 07:50:02 2009 From: cresio at gmail.com (Vinicius da Cunha M. Borges) Date: Wed, 21 Oct 2009 15:50:02 +0100 Subject: [ns] Set data rate for each node in NS2 Message-ID: Hi, I saw one question that one person sent to NS2 mailing in 2004. http://mailman.isi.edu/pipermail/ns-users/2004-June/042814.html I need to define a different data rate for each node in my scenario. So... I would like if the tcl code that was described in that email works. Does it really set distinct data rate for each node? Sorry about that, but I didn?t find out any answer for this question :-( Besth wishes, Vinicius From pdro07 at gmail.com Wed Oct 21 07:57:24 2009 From: pdro07 at gmail.com (pedro chaparro) Date: Wed, 21 Oct 2009 15:57:24 +0100 Subject: [ns] berkeley library sockets into ns-2 Message-ID: hi, anybody have traid to integrate berkeley sockets into ns-2? How? thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovaci?n iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain From urlan at comp.ufla.br Wed Oct 21 09:16:46 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Wed, 21 Oct 2009 14:16:46 -0200 Subject: [ns] Set data rate for each node in NS2 In-Reply-To: References: Message-ID: <9bfab37d0910210916p6a8373d0k381736e9145434cb@mail.gmail.com> Hello 2009/10/21 Vinicius da Cunha M. Borges > > Hi, > > I saw one question that one person sent to NS2 mailing in 2004. > http://mailman.isi.edu/pipermail/ns-users/2004-June/042814.html< > https://mail.dei.uc.pt/horde/services/go.php?url=http%3A%2F%2Fmailman.isi.edu%2Fpipermail%2Fns-users%2F2004-June%2F042814.html > > > > Ok. > I need to define a different data rate for each node in my scenario. So... > I > would like if the tcl code > that was described in that email works. Does it really set distinct data > rate for each > node? Sorry about that, but I didn?t find out any answer for this question > :-( > > I don't know how you can do that in ns2. But dei80211mr works with multi-rate. In your script, try this: set mac($i) [$node_($i) getMac 0] $mac($i) dataMode_ $PHYDataRate $mac($i) basicMode_ $PHYBaseRate If you vary PHYDataRate, each mac, linked for one node, will have different data rate. You will find dei80211mr in link below or in ns2.34. Link dei80211mr: http://www.dei.unipd.it/wdyn/?IDsezione=5090 Besth wishes, > > > Vinicius > Urlan From yhuy2104 at live.ca Wed Oct 21 10:25:56 2009 From: yhuy2104 at live.ca (Quoc Huy My Y) Date: Wed, 21 Oct 2009 13:25:56 -0400 Subject: [ns] send a packet without using protocol In-Reply-To: <9bfab37d0910210916p6a8373d0k381736e9145434cb@mail.gmail.com> References: Message-ID: Hi all, Please help me with this scenario: I want to send a packet via wireless network without using protocol, just send a packet. One node sends a packet. Receivers store that packet. Thank you very much, Huy _________________________________________________________________ Click less, chat more: Messenger on MSN.ca http://go.microsoft.com/?linkid=9677404 From schen7009 at gmail.com Wed Oct 21 10:54:48 2009 From: schen7009 at gmail.com (Steve Chen) Date: Wed, 21 Oct 2009 13:54:48 -0400 Subject: [ns] link loss bug? In-Reply-To: <5873c3140910211047v5f3345eeqb74672483c0a6196@mail.gmail.com> References: <5873c3140910211047v5f3345eeqb74672483c0a6196@mail.gmail.com> Message-ID: <5873c3140910211054q1668d8d4v7e17b570d5cb6789@mail.gmail.com> I have a script that has six linearly connected nodes n(0)--n(1)--n(2)--n(3)--n(4)--n(5). I have one exponential source at n(0) and a sink at n(5). I have injected a loss model at the link from n(1) to n(2). Everything worked according to expectation. Then, in addition, I added the same loss model to the n(2) to n(1) direction. Now all packets are lost. Inspection of the trace file showed that a packet enroute from n(0) to n(5) would get turned around at link n(1)--n(2) and repeatedly going through multiple times of "+", "-" and "r" at the link n(2)--n(1) until it gets a "d." Has anyone seen this? Steve From schen7009 at gmail.com Wed Oct 21 11:48:38 2009 From: schen7009 at gmail.com (Steve Chen) Date: Wed, 21 Oct 2009 11:48:38 -0700 (PDT) Subject: [ns] [bug] add loss models to both directions of a link causes all packets dropped Message-ID: <200910211848.LAA03345@www.isi.edu> [Bug Report] ----------------------------- Category: Installation Failure Package: ns 2.34 OS: Redhat Enterprise 3.5 Environment Variables: LD_LIBRARY_PATH= TCL_LIBRARY= TK_LIBRARY= ----------------------------- Description: Happens every time. Script: # A linear network n(0)--n(1)--n(2) # A CBR source attached to n(0) # A sink attached to n(2) # A loss model injected to link n(1)--n(2) # Run script, results as expected # Add loss model to link n(2)--n(1) # Run script, all packets lost set ns [new Simulator] set tf [open tmp w] $ns trace-all $tf proc finish {} { global ns tf $ns flush-trace close $tf exit 0 } Trace file (one packet only but the same thing happens to all packets): Notice packet from n(1) to n(2) reversed direction and went through +-r multiple times and eventually gets a "d". + 1 0 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1 0 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.000688 0 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.000688 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.000688 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.001376 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.001376 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.001376 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.002064 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.002064 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.002064 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.002752 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.002752 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.002752 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.00344 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.00344 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.00344 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.004128 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.004128 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.004128 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.004816 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.004816 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.004816 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.005504 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.005504 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.005504 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.006192 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.006192 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.006192 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.00688 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.00688 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.00688 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.007568 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.007568 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.007568 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.008256 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.008256 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.008256 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.008944 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.008944 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.008944 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.009632 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.009632 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.009632 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.01032 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.01032 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.01032 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.011008 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.011008 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.011008 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.011696 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.011696 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.011696 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.012384 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.012384 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.012384 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.013072 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.013072 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.013072 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.01376 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.01376 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.01376 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.014448 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.014448 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.014448 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.015136 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.015136 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.015136 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.015824 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.015824 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.015824 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.016512 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.016512 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.016512 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.0172 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.0172 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.0172 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.017888 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.017888 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.017888 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.018576 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.018576 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.018576 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.019264 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.019264 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.019264 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.019952 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.019952 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.019952 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.02064 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.02064 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.02064 2 1 cbr 344 ------- 100 0.0 2.0 0 0 r 1.021328 2 1 cbr 344 ------- 100 0.0 2.0 0 0 + 1.021328 2 1 cbr 344 ------- 100 0.0 2.0 0 0 - 1.021328 2 1 cbr 344 ------- 100 0.0 2.0 0 0 d 1.022016 2 1 cbr 344 ------- 100 0.0 2.0 0 0 set loss_module [new ErrorModel] $loss_module unit packet $loss_module set rate_ 1e-5 $loss_module drop-target [$ns set nullAgent_] set IR(0) [$ns node] set IR(1) [$ns node] set IR(2) [$ns node] $ns simplex-link $IR(0) $IR(1) 4Mb 0ms DropTail $ns simplex-link $IR(1) $IR(2) 4Mb 0ms DropTail $ns simplex-link $IR(2) $IR(1) 4Mb 0ms DropTail $ns simplex-link $IR(1) $IR(0) 4Mb 0ms DropTail $ns lossmodel $loss_module $IR(1) $IR(2) $ns lossmodel $loss_module $IR(2) $IR(1) set udps0 [new Agent/UDP] $ns attach-agent $IR(0) $udps0 set cbrs0 [new Application/Traffic/CBR] $cbrs0 attach-agent $udps0 $cbrs0 set packet_size_ [expr 324 + 20] $udps0 set packetSize_ [expr 324 + 20] $cbrs0 set interval_ 100ms set sink0 [new Agent/Null] $ns attach-agent $IR(2) $sink0 $ns connect $udps0 $sink0 $udps0 set fid_ 100 $ns at 1 "$cbrs0 start" $ns at 99 "$cbrs0 stop" $ns at 100 "finish" $ns run From jeni_m110 at yahoo.com Wed Oct 21 17:59:14 2009 From: jeni_m110 at yahoo.com (jeni martin) Date: Wed, 21 Oct 2009 17:59:14 -0700 (PDT) Subject: [ns] Error : ./install: line179 : cd: ./tcl8.3.2/unix: nosuch file or directory Message-ID: <428055.38899.qm@web110301.mail.gq1.yahoo.com> ?hi guys,I installed slackware 10 and keep trying runnig NS,but I faced the following error: ./install: line179 : cd: ./tcl8.3.2/unix: nosuch file or directory,/install: line 186: ./configure : no such file or directory?tcl8.3.2 configuration failed! Exiting ...> Tcl is not part of the ns project. ?Please see> www.Scriptics.com%3chttp://www.scriptics.com/>> to see if they have a fix for your platform. anybody got any suggestions?thanks From jeni_m110 at yahoo.com Wed Oct 21 18:04:27 2009 From: jeni_m110 at yahoo.com (jeni martin) Date: Wed, 21 Oct 2009 18:04:27 -0700 (PDT) Subject: [ns] which Distribution?????? for NS-2.1b8 Message-ID: <343411.96945.qm@web110315.mail.gq1.yahoo.com> hi guys,anybody could tell me which version and Distribution of Linux shall I install so that I can compile & install NS?I tried two distribution,but still there are errors, thanks From sergio at larces.uece.br Wed Oct 21 18:19:56 2009 From: sergio at larces.uece.br (Sergio Luis O. B. Correia) Date: Wed, 21 Oct 2009 22:19:56 -0300 Subject: [ns] Error : ./install: line179 : cd: ./tcl8.3.2/unix: nosuch file or directory In-Reply-To: <428055.38899.qm@web110301.mail.gq1.yahoo.com> References: <428055.38899.qm@web110301.mail.gq1.yahoo.com> Message-ID: <430c4fa50910211819v215b9cc3j9e151b8ce8042724@mail.gmail.com> On Wed, Oct 21, 2009 at 9:59 PM, jeni martin wrote: > > hi guys,I installed slackware 10 and keep trying runnig NS,but I faced the > following error: > slackware 10.. I remember I had problems with it too, and the problem was the Tcl package from slackware didn't have a few headers ns2 would need to build. Try building new tcl packages with the slackbuild from slackware 11.0 (the tcl packaging problem was fixed there). It might solve this particular compilation problem. > ./install: line179 : cd: ./tcl8.3.2/unix: nosuch file or > directory,/install: line 186: ./configure : no such file or > directory tcl8.3.2 configuration failed! Exiting ...> Tcl is not part of the > ns project. Please see> www.Scriptics.com%3chttp://www.scriptics.com/>> > to see if they have a fix for your platform. > anybody got any suggestions?thanks > > > > -- Computer Networks and Security Laboratory (LARCES) State University of Ceara (UECE/Brazil) From adel.belkhiri at hotmail.com Thu Oct 22 04:20:53 2009 From: adel.belkhiri at hotmail.com (adel belkhiri) Date: Thu, 22 Oct 2009 12:20:53 +0100 Subject: [ns] Multicast routing protocols Message-ID: Hi, I want to ask a question : Are there any implementation for MAODV (Multicast AODV) for ns2.33 or ns2.34 ?? I have installed PUMA which is another multicast routing protocol but it seems that this protocol support only multicast routing (and not the unicast one in addition). Thanks in advance. Sincerely / Adel.Belkhiri. _________________________________________________________________ Windows Live: Make it easier for your friends to see what you?re up to on Facebook. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009 From carlosmbh at gmail.com Thu Oct 22 06:23:32 2009 From: carlosmbh at gmail.com (Carlos) Date: Thu, 22 Oct 2009 11:23:32 -0200 Subject: [ns] ns-2.34 - Simulation wireless (access point + 6 nodes) -> 802.11 Message-ID: <3c07f6280910220623y49965548rc3e98ddfdcb14dd1@mail.gmail.com> Hi everyone! I am using NS2.34 in Linux and I need simulation 802.11 AP-based wireless network and I need to connect 6 nodes to one Access Point (AP1). Does anyone know how to do it? Anyone have a tcl that to do it? Many thanks Carlos Alves From aag07 at aber.ac.uk Thu Oct 22 07:33:23 2009 From: aag07 at aber.ac.uk (Alexandros I. Giagkos) Date: Thu, 22 Oct 2009 15:33:23 +0100 (BST) Subject: [ns] ns2 cross-layering Message-ID: Hello list, I am working on a routing protocol and I'd like it to have access to things such as packet's signal strength, IFq size, signal-to-interference ratio, bit error rate, packet error rate, etc. Do you have any cross-layer (MAC,PHY-NET) approach to suggest? Any documentation, examples, tutorials, hints, etc. are most welcome. Many thanks in advance, -- Alexandros Giagkos Research Student (email) aag07 at aber.ac.uk - (web) http://users.aber.ac.uk/aag07 My GPG public key can be found at: (web)/gpg-public-key.asc From mutiullah15 at yahoo.com Thu Oct 22 12:10:32 2009 From: mutiullah15 at yahoo.com (Mutiullah Qureshi) Date: Thu, 22 Oct 2009 12:10:32 -0700 (PDT) Subject: [ns] How to send a packet from one to another layer bypassing an intermediate layer? Message-ID: <902608.74050.qm@web110713.mail.gq1.yahoo.com> Hello. I need to send a packet from one layer to another layer bypassing an intermediate layer. For example how can I send a packet from Transport layer directly to Link Layer, bypassing the intermediate Network Layer? Can someone help me out here please. Regards. From bethelmutanga at gmail.com Thu Oct 22 14:03:51 2009 From: bethelmutanga at gmail.com (Bethel Mutanga) Date: Thu, 22 Oct 2009 23:03:51 +0200 Subject: [ns] mobility models Message-ID: How do I generate the following mobility scenarios in ns2: Random Walk Manhattan Mobility (MH) model Freeway Mobility Model Group Mobility Model From saaidal at um.edu.my Thu Oct 22 16:48:01 2009 From: saaidal at um.edu.my (saaidal@um.edu.my) Date: Fri, 23 Oct 2009 07:48:01 +0800 Subject: [ns] AODV Expanding Ring Search in NS2 Message-ID: <20091023074801.n750413pe8csssgg@umpda.um.edu.my> Good day, just several questions i want to ask 1. IS AODV's Expanding Ring search implemented in current NS-2? 2. If yes, can i know the file location, source code etc? Thx in advanced ------------------------------------------------------------------------------------ UNIVERSITY OF MALAYA - " The Leader in Research & Innovation " From pvieiradeoliveira at gmail.com Thu Oct 22 18:40:33 2009 From: pvieiradeoliveira at gmail.com (Paulo Vieira) Date: Thu, 22 Oct 2009 23:40:33 -0200 Subject: [ns] how to install ns-2 in mac os x In-Reply-To: <8C408118-C361-4E68-A8FB-AA8C40EA9AB1@gmail.com> References: <8C408118-C361-4E68-A8FB-AA8C40EA9AB1@gmail.com> Message-ID: <9525B739-47AD-4CB1-8496-19CCDA056D98@gmail.com> Hi to all, someone can I help-me? how to install ns-2 in mac os x system? I need by an step-by-step. thanks, Paulo From urlan at comp.ufla.br Thu Oct 22 19:14:51 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Fri, 23 Oct 2009 00:14:51 -0200 Subject: [ns] How to send a packet from one to another layer bypassing an intermediate layer? In-Reply-To: <902608.74050.qm@web110713.mail.gq1.yahoo.com> References: <902608.74050.qm@web110713.mail.gq1.yahoo.com> Message-ID: <9bfab37d0910221914l58049b2ap1233e1ea1b3ba251@mail.gmail.com> Hi, 2009/10/22 Mutiullah Qureshi > > Hello. > I need to send a packet from one layer to another layer bypassing an > intermediate layer. For example how can I send a packet from Transport layer > directly to Link Layer, bypassing the intermediate Network Layer? Can > someone help me out here please. > Use "Connector" command to connect Transport Layer directly with Transport Layer. For example: Node/MobileNode instproc getLL { param0} { $self instvar ll_ return $ll_($param0) } set udp_ [new Agent/UDP] $ns_ attach-agent $node_($src) $udp_ set null [new Agent/Null] $ns_ attach-agent $node_($dst) $null set exp_ [new Application/Traffic/Exponential] $exp_ set burst_time_ 0.01ms $exp_ set idle_time_ 0.04ms $exp_ set rate_ 1.5Mbps $exp_ attach-agent $udp_ $exp_ attach-agent $udp_ $ns_ connect $udp_ $null set ll_src_ [$node_($src) getLL 0] $udp_ target $ll_src_ With command "target" I connected udp with Link Layer. Regards. > > I don't know if I've cleared your doubt. Urlan From jeni_m110 at yahoo.com Thu Oct 22 19:45:14 2009 From: jeni_m110 at yahoo.com (jeni martin) Date: Thu, 22 Oct 2009 19:45:14 -0700 (PDT) Subject: [ns] NS- Installation Message-ID: <914666.86521.qm@web110312.mail.gq1.yahoo.com> hi guys,the ns I've got it is not NS-allinOne;and I have to use tcl 8.3.2 & Otcl 8.3.2. anybody get results throughly,could tell me where should I put tcl & otcl,and what is the installation process? tnx From siyana223 at yahoo.co.uk Thu Oct 22 20:37:42 2009 From: siyana223 at yahoo.co.uk (Mukanyiligira Didacienne) Date: Fri, 23 Oct 2009 03:37:42 +0000 (GMT) Subject: [ns] WLAN coverage p[lan and optimization with NS2 In-Reply-To: <914666.86521.qm@web110312.mail.gq1.yahoo.com> Message-ID: <750920.77018.qm@web25404.mail.ukl.yahoo.com> Hello everyone! I want to do a project on access point placement optimization and channel allocation for 802.11n. Is it possible to do it in NS2? if yes Is there some one who can tell me if I can find similar code in NS2. Thank you very much. Mukanyiligira Didacienne Master Student Huazhong University of Science and Technology Hubei_Wuhan_China Freindship Appartment Room 512 Mob:+8615807157167 From mutiullah15 at yahoo.com Thu Oct 22 23:06:50 2009 From: mutiullah15 at yahoo.com (Mutiullah Qureshi) Date: Thu, 22 Oct 2009 23:06:50 -0700 (PDT) Subject: [ns] AODV Expanding Ring Search in NS2 Message-ID: <813264.68918.qm@web110710.mail.gq1.yahoo.com> Please visit: http://rp.lip6.fr/ns-doc/ns226-doc/html/aodv_8cc-source.htm For Expanding Ring Search goto line#01098 I hope it would be helpful. --------------------------------------------------------------------------------------------------------- Message: 9 Date: Fri, 23 Oct 2009 07:48:01 +0800 From: saaidal at um.edu.my Subject: [ns] AODV Expanding Ring Search in NS2 To: ns-users at ISI.EDU Message-ID: <20091023074801.n750413pe8csssgg at umpda.um.edu.my> Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Good day, just several questions i want to ask 1. IS AODV's Expanding Ring search implemented in current NS-2? 2. If yes, can i know the file location, source code etc? Thx in advanced ------------------------------------------------------------------------------------ UNIVERSITY OF MALAYA - " The Leader in Research & Innovation " From amir_adeli at yahoo.com Fri Oct 23 00:22:14 2009 From: amir_adeli at yahoo.com (amir adelipour) Date: Fri, 23 Oct 2009 00:22:14 -0700 (PDT) Subject: [ns] ns-2.34 - Simulation wireless (access point + 6 nodes) -> 802.11 In-Reply-To: <3c07f6280910220623y49965548rc3e98ddfdcb14dd1@mail.gmail.com> Message-ID: <747937.65694.qm@web45202.mail.sp1.yahoo.com> Hi, you can use this example to know how to create such scenario: go to this folder ns2.33/tcl/ex/802/infra.tcl ? Regards, Amir --- On Thu, 10/22/09, Carlos wrote: From: Carlos Subject: [ns] ns-2.34 - Simulation wireless (access point + 6 nodes) -> 802.11 To: ns-users at ISI.EDU Date: Thursday, October 22, 2009, 4:53 PM Hi everyone! ???I am using NS2.34 in Linux and I need simulation? 802.11 AP-based wireless network and I need to connect 6 nodes to one Access Point (AP1). Does anyone know how to do it? ???Anyone have a tcl that to do it? Many thanks Carlos Alves From mailrish at gmail.com Fri Oct 23 06:20:17 2009 From: mailrish at gmail.com (Rishabh Goel) Date: Fri, 23 Oct 2009 09:20:17 -0400 Subject: [ns] AODV changes Message-ID: I am trying to modify the AODV functionality to consider energy of neighbor nodes while deciding the next hop instead of the number of hop counts. I wanted to know if I am on the right track by saying that the following code in aodv.cc is responsible for choosing the next hop: if ( (rq->rq_src_seqno > rt0->rt_seqno) || 00696 ((rq->rq_src_seqno == rt0->rt_seqno ) && 00697 (rq->rq_hop_count < rt0->rt_hops )) ) { 00698 // If we have a fresher seq no. or lesser #hops for the 00699 // same seq no., update the rt entry. Else don't bother. 00700 rt_update (rt0, rq->rq_src_seqno, rq->rq_hop_count, ih->saddr(), 00701 max (rt0->rt_expire , (CURRENT_TIME + REV_ROUTE_LIFE )) ); [this code is on line 00695 at http://rp.lip6.fr/ns-doc/ns226-doc/html/aodv_8cc-source.htm] In that case I just change line 00697 to something like "(rq->energymodel()->energy()>{some threshold} ) ) {" Is this approach correct? Is this the only change required or do I have to make some other changes as well? Thank You. -- Goel Rishabh D. Graduate Student School of Electrical and Computer Engineering Georgia Institute of Technology Tel: (404) 386 - 9354 From galaxy-huang at 163.com Fri Oct 23 09:13:11 2009 From: galaxy-huang at 163.com (galaxy-huang) Date: Sat, 24 Oct 2009 00:13:11 +0800 (CST) Subject: [ns] install ns2 on cygwin for 8 hours, still not finish, no error, why? Message-ID: <33315947.435401256314391140.JavaMail.coremail@bj163app57.163.com> hello, my friends! i tried to install ns2.28 on cygwin these days, but each time the process STOP at the same point, without any error message. At first, i thought maybe it is a time-consuming process, but when i tried the whole night yesterday (the process lasted more than 8 hours), the same problem occurred (but stop at another point). ns2.34 has the problem as well. Could anyone tell me where the probem lies? From galaxy-huang at 163.com Fri Oct 23 09:15:16 2009 From: galaxy-huang at 163.com (galaxy-huang) Date: Sat, 24 Oct 2009 00:15:16 +0800 (CST) Subject: [ns] how to transmit every packet with different MAC retry limit? Message-ID: <6522555.435521256314516071.JavaMail.coremail@bj163app57.163.com> hi, everyone! I wonder whether it is possible to transmit each packet with different MAC retry limit.I have consider a possible way --There is a file which contains all the retry limits of all packets, each time when the packet is going to be transmitted, read the corresponding line and set the MAC retry limit to the value of that line. Is there anyone can tell me whether this can work or not, or a better way? thanks in advance! From jeni_m110 at yahoo.com Fri Oct 23 11:26:40 2009 From: jeni_m110 at yahoo.com (jeni martin) Date: Fri, 23 Oct 2009 11:26:40 -0700 (PDT) Subject: [ns] tcl_library environment variable after installing NS-2.1b8 Message-ID: <14168.62104.qm@web110316.mail.gq1.yahoo.com> hi all, it's my first time that install Ns-2.1b8, on slackware 10. after istalling it, i got two messages: ? one of them was ( i couldn't saw the first message, because i couln't define my mouse in slackware10) ? "you must put /root/Desktop/tcl.tk8.3.2/ns-2.1b8/allinone/tcl 8.3.2/library in to your TCL_LIBRARY enviromental variable. otherwise ns/nam will complain during start up" ? how can i fix two messages? ? thanks in advance From sandanet2005 at yahoo.com Fri Oct 23 18:54:14 2009 From: sandanet2005 at yahoo.com (=?utf-8?B?wq7CsMK3LsK4LuKAosKw4oSiIEF3UyDihKLCsMK3wrcuwrgu4oCiwrDCrg==?=) Date: Fri, 23 Oct 2009 18:54:14 -0700 (PDT) Subject: [ns] 802.11e AEDCF full package needed Message-ID: <225583.92948.qm@web65414.mail.ac4.yahoo.com> Hi every body.. I have downloaded the ns-802.11.AEDCF source codes from this link : http://www-sop.inria.fr/planete/qni/Research/AEDCF/? ? but it is a semi package, and I don't have good experience in ns2...so please if?any one?has an 802.11e AEDCF?full package installed successfully in?his?PC please share it with me.? My linux is?xandros desktop os 4.1 home edition premium ? Any help is welcomed. I look forward to hearing from all of you. ? Thanks. ? Regards, AWS ALI From tabeenahmad at gmail.com Fri Oct 23 23:03:29 2009 From: tabeenahmad at gmail.com (tabeen ahmad) Date: Sat, 24 Oct 2009 12:03:29 +0600 Subject: [ns] syntax for random way point Message-ID: can any one please tell me whats the syntax for writing random way point mobility model in ns2??? by default its two ray ground.. From bhosalemahesh87 at gmail.com Sat Oct 24 00:44:49 2009 From: bhosalemahesh87 at gmail.com (mahesh bhosale) Date: Sat, 24 Oct 2009 13:14:49 +0530 Subject: [ns] About explanation of the new energy model in ns2.34 Message-ID: <5186c1860910240044h63f70836sadf425d58f7d8fa3@mail.gmail.com> Hi everybody there, I am a beginner in ns2.I am using a ns 2.34 which has new energy model implementation modified from its former versions.Can anybody explain the terms used in *energy-model.(cc/h) *& in*cmu-trace.(h/cc) * referring different energies.Also please explain their theoretical background in detail. With thanks Mahesh Bhosale From anvyas007 at gmail.com Sat Oct 24 07:37:37 2009 From: anvyas007 at gmail.com (narayan vyas) Date: Sat, 24 Oct 2009 20:07:37 +0530 Subject: [ns] tcl_library environment variable after installing NS-2.1b8 In-Reply-To: <14168.62104.qm@web110316.mail.gq1.yahoo.com> References: <14168.62104.qm@web110316.mail.gq1.yahoo.com> Message-ID: <937a8ac60910240737y25929a85pab51c4c0ce001f1a@mail.gmail.com> Hi jeni, You will have to set the environmental variable to the given path example : $export TCL_LIBRARY=/root/Desktop/tcl. tk8.3.2/ns- 2.1b8/allinone/tcl 8.3.2/library where $ is the shell. * note that there is no space after the = symbol Do the same for the message that comes above this. After the export is done, you will have to execute ./validate from the ns -2 folder. On Fri, Oct 23, 2009 at 11:56 PM, jeni martin wrote: > > hi all, > it's my first time that install Ns-2.1b8, on slackware 10. > after istalling it, i got two messages: > > one of them was ( i couldn't saw the first message, because i couln't > define my mouse in slackware10) > > "you must put /root/Desktop/tcl.tk8.3.2/ns-2.1b8/allinone/tcl 8.3.2/library > in to your TCL_LIBRARY enviromental variable. > otherwise ns/nam will complain during start up" > > how can i fix two messages? > > thanks in advance > > > > -- A.Narayana Vyas 4th year Dept. of Computer Engineering NITK Surathkal From mruknown1 at yahoo.com Sat Oct 24 08:15:47 2009 From: mruknown1 at yahoo.com (uknown noname) Date: Sat, 24 Oct 2009 08:15:47 -0700 (PDT) Subject: [ns] any multipath routing protocol source code needed Message-ID: <595428.83292.qm@web23804.mail.ird.yahoo.com> Hi, ? Does anybody have a source code for any multipath routing protocol? I try to contact the author but no respond. How can I get a source code for any of this.. eg : SMR, RMPDSR, MAODV, MMR, MSR etc.. if somebody have the source code for any of this protocol, this will help me lot. Thanks From thangnd at joomservices.com Sat Oct 24 08:40:44 2009 From: thangnd at joomservices.com (thangnd) Date: Sat, 24 Oct 2009 22:40:44 +0700 Subject: [ns] How to set priority for packet Message-ID: <4AE31FFC.3010706@joomservices.com> Hi all, I have a question, how to set priority for packet in NS-2 using in WSN. Thanks for help. From udit.vlsi at gmail.com Sat Oct 24 10:17:40 2009 From: udit.vlsi at gmail.com (Udit Kumar) Date: Sat, 24 Oct 2009 22:47:40 +0530 Subject: [ns] Running NS2 from C File Message-ID: <345fa6f10910241017k3690e943qb11afc6fa667f5d3@mail.gmail.com> Hi Friends, I have one program in C and I am writting topology file for NS2 from my C program. Now once topology file is written I want to run NS2 from/inside C programme to get some result from NS2 run, Is it possible to run NS2 from C file. Please help me. Please give me some idea for this. Thanks & Regards, Udit Kumar From jeni_m110 at yahoo.com Sat Oct 24 15:38:16 2009 From: jeni_m110 at yahoo.com (jeni martin) Date: Sat, 24 Oct 2009 15:38:16 -0700 (PDT) Subject: [ns] ns installing problem Message-ID: <109338.15015.qm@web110309.mail.gq1.yahoo.com> hi all, i want to install ns-2.1b8-mcast on slackware 10. the install file is in the allinone folder, so i need to go to allinone folder for running command "./install". after istalling, it gives me a message to set path, "you must put /root/Desktop/tcl.tk8.3.2/ns-2.1b8/allinone/tcl 8.3.2/library in to your TCL_LIBRARY enviromental variable. otherwise ns/nam will complain during start up" but the problem is that i dont have the tcl8.3.2 in allinone folder, and if i put the tcl and other prerequisits in this folder and try "./install" command, it gives me a lot of errors. ? and another problem is, when i check the bin folder in /allinone/bin, i don't have NS.exe file after running command "./install. does anyone know how should i?fix it? ? From jeni_m110 at yahoo.com Sat Oct 24 17:50:57 2009 From: jeni_m110 at yahoo.com (jeni martin) Date: Sat, 24 Oct 2009 17:50:57 -0700 (PDT) Subject: [ns] add ADMR in NS Message-ID: <548064.354.qm@web110305.mail.gq1.yahoo.com> hi mates,I m wondering if anybody knows how I could add ADMR into NS(allinone Version),thanks in advance From amir_adeli at yahoo.com Sat Oct 24 23:50:02 2009 From: amir_adeli at yahoo.com (amir adelipour) Date: Sat, 24 Oct 2009 23:50:02 -0700 (PDT) Subject: [ns] Running NS2 from C File In-Reply-To: <345fa6f10910241017k3690e943qb11afc6fa667f5d3@mail.gmail.com> Message-ID: <549809.80830.qm@web45202.mail.sp1.yahoo.com> Hi Udit,you can use cammand "system()" to run nus2 inside C file.like this: system(ns);RegardsAmir --- On Sat, 10/24/09, Udit Kumar wrote: From: Udit Kumar Subject: [ns] Running NS2 from C File To: "ns-users" Date: Saturday, October 24, 2009, 8:47 PM Hi Friends, I have one program in C and I am writting topology file for NS2 from my C program. Now once topology file is written I want to run NS2 from/inside C programme to get some result from NS2 run, Is it possible to run NS2 from C file. Please help me. Please give me some idea for this. Thanks & Regards, Udit Kumar From pnimonkar at gmail.com Sun Oct 25 00:30:42 2009 From: pnimonkar at gmail.com (preeti nimonkar) Date: Sun, 25 Oct 2009 13:00:42 +0530 Subject: [ns] problem with change of node and packet flow colour Message-ID: <3792d16c0910250030iebfc6f0l55a308be388abeaa@mail.gmail.com> hello all , I am using commands $ns color 1 Red $tcp0 set class_ 1 with this their is no change of packet flow color and $node4 color blue $ns at 0.0 "$node0 color red" gives the following error--- avani at localhost ~/NS_WORKS/ns2program> ns routingex.tcl num_nodes is set 6 INITIALIZE THE LIST xListHead Starting Simulation... ns: _o14 color red: can't read "attr_(COLOR)": no such element in array while executing "eval list "n -t [format "%.15g" [$ns now]] -s $id_ -S COLOR -c $color -o $attr_(COLOR) -i $color -I $attr_(LCOLOR)"" invoked from within "if [$ns is-started] { $ns puts-nam-config [eval list "n -t [format "%.15g" [$ns now]] -s $id_ -S COLOR -c $color -o $attr_(COLOR) -i $color -I $attr..." (procedure "_o14" line 6) (Node color line 6) invoked from within "_o14 color red" Can someone point to the exact problem and solution. preeti khanwalkar From galaxy-huang at 163.com Sun Oct 25 01:22:43 2009 From: galaxy-huang at 163.com (galaxy-huang) Date: Sun, 25 Oct 2009 16:22:43 +0800 (CST) Subject: [ns] install ns2 on cygwin for 8 hours, still not finish, no In-Reply-To: References: Message-ID: <17683480.102871256458963987.JavaMail.coremail@app158.163.com> i have fixed the problem! the cause is i have install another version of ns2, and editted the PATH in .bashrc. yesterday i deleted the PATH information of the previous version and successfully installed another version. From aoufi_souhila at yahoo.fr Sun Oct 25 01:23:47 2009 From: aoufi_souhila at yahoo.fr (aoufi souhila) Date: Sun, 25 Oct 2009 08:23:47 +0000 (GMT) Subject: [ns] Re : How to set priority for packet (thangnd) In-Reply-To: Message-ID: <771661.86347.qm@web27602.mail.ukl.yahoo.com> Hi to set priority for packet, you need just to modify the field prio_ of the ip packet header, like this: iph = hdr_ip::access(pkt); //ip packet header iph->prio_ = codePt; // codePt: the code of priority hope that answer for your question > Message: 6 > Date: Sat, 24 Oct 2009 22:40:44 +0700 > From: thangnd > Subject: [ns] How to set priority for packet > To: ns-users at ISI.EDU > Message-ID: <4AE31FFC.3010706 at joomservices.com> > Content-Type: text/plain; charset=ISO-8859-1; > format=flowed > > Hi all, > I have a question, how to set priority for packet in NS-2 > using in WSN. > Thanks for help. From daniel.anguita at gmail.com Sun Oct 25 08:16:17 2009 From: daniel.anguita at gmail.com (Daniel Anguita) Date: Sun, 25 Oct 2009 12:16:17 -0300 Subject: [ns] problem with change of node and packet flow colour In-Reply-To: <3792d16c0910250030iebfc6f0l55a308be388abeaa@mail.gmail.com> References: <3792d16c0910250030iebfc6f0l55a308be388abeaa@mail.gmail.com> Message-ID: <5155927d0910250816t21ed8457w8de6c47b128accfc@mail.gmail.com> The coloring options has to be at an Agent level with the fid_ variable. Example: $ns color 1 red set tcp [new Agent/Tcp] $tcp set fid_ 1 in this way, the flow color in nam will be red for that Agent. regards 2009/10/25 preeti nimonkar > > hello all , > I am using commands > $ns color 1 Red > $tcp0 set class_ 1 with this their is no change of packet flow color > > and > $node4 color blue > $ns at 0.0 "$node0 color red" gives the following error--- > > avani at localhost ~/NS_WORKS/ns2program> ns routingex.tcl > num_nodes is set 6 > INITIALIZE THE LIST xListHead > Starting Simulation... > ns: _o14 color red: can't read "attr_(COLOR)": no such element in array > while executing > "eval list "n -t [format "%.15g" [$ns now]] -s $id_ -S COLOR -c $color -o > $attr_(COLOR) -i $color -I $attr_(LCOLOR)"" > invoked from within > "if [$ns is-started] { > > $ns puts-nam-config [eval list "n -t [format "%.15g" [$ns now]] -s $id_ -S > COLOR -c $color -o $attr_(COLOR) -i $color -I $attr..." > (procedure "_o14" line 6) > (Node color line 6) > invoked from within > "_o14 color red" > > > > Can someone point to the exact problem and solution. > preeti khanwalkar > -- Atte. Daniel Anguita O. Austral Technologies Ltda. _______________________ Skype: daniel.anguita Phone: +56 2 779 2425 danguita at austec.cl _______________________ Noticia: La informaci?n contenida en este mensaje e-mail y/o archivos adjuntos pueden contener informaci?n confidencial, privada o privilegiada. Si usted no es el destinario, cualquier difusi?n, uso, revisi?n, distribuci?n, impresi?n o copia de la informaci?n, contenida en este mensaje de correo electr?nico y/o archivos adjuntos, est?n estrictamente prohibidas. Si ha recibido esta comunicaci?n por error, por favor av?senos respondiente por e-mail o tel?fono e inmediatamente y permanentemente elimine este mensaje y cualquier archivo adjunto. Gracias. From juanjopavia at hotmail.com Sun Oct 25 12:05:30 2009 From: juanjopavia at hotmail.com (juanjo pavia) Date: Sun, 25 Oct 2009 19:05:30 +0000 Subject: [ns] information on DCCP Message-ID: Hello everyone, I want to use TFRC over wireless networks, so I have installed the patch ns-233-dccp-1.patch http://www.nicta.com.au/people/mehanio/nsmisc Site, but can not find information about your operation or examples. Does anyone know where I can find information and examples? thank you very much _________________________________________________________________ Inf?rmate, mantente en contacto y encu?ntralo todo, a la vez. Con la nueva Toolbar de MSN nunca has tenido tantas ventajas en tan poco espacio. http://toolbar.es.msn.com/ From thaalbimariem5 at gmail.com Sun Oct 25 12:38:33 2009 From: thaalbimariem5 at gmail.com (Mariem Thaalbi) Date: Sun, 25 Oct 2009 20:38:33 +0100 Subject: [ns] Compilation error while compiling NS 2.30 Message-ID: <8bfb9b940910251238mab09413jbe87117b55b38ea1@mail.gmail.com> Hi all, While compiling NS 2.30,i hadthe following errors trace/cmu-trace.cc:1309: error:syntax error before numeric contant trace/cmu-trace.cc:1310: error: non-lvalue in assigement Thanks to answer me, From jeni_m110 at yahoo.com Sun Oct 25 17:57:17 2009 From: jeni_m110 at yahoo.com (jeni martin) Date: Sun, 25 Oct 2009 17:57:17 -0700 (PDT) Subject: [ns] running a protocol in NS Message-ID: <656079.58557.qm@web110314.mail.gq1.yahoo.com> hi? I am a new user for NS,strived hardly so that I could just fix NS(ns-2.1b8-mcast) to run and now get stuck in running ADMR.I dont know how I should apply it in NS and which steps I gotta do to run. i just test these 3 commands from http://www.monarch.cs.rice.edu/ftp/multicast/README ? ./ns scripts/mcast_cbrgen.tcl -type cbr -nn 100 -seed 492832928 -rate 4 -ng 2 -nspg 5 -nrpg 10 -leave_mg 1 -join_dur_r 1 > cbr_100_4x64_2x5x10_mcast_ns_rl ? ./ns scripts/run.tcl -x 1200 -y 800 -nn 100 -stop 900 -tr TRACES/out.tr -mg mcast_communication_scenarios/cbr_100_4x64_3x3x20_mcast_ns_rs -sc movement_scenarios/scen-1200x800-100-0-20-1 -rp admr > & TRACES/sim_stdoutput scripts/mcast_totals.pl ADM 100 900 mcast_communication_scenarios/cbr_100_4x64_3x3x20_mcast_ns_rs TRACES/out.tr > RESULTS/admr_totals_output ? but when i write these 3 commands and check the file in result directory, all of the parameters in the simulation are 0. It s really nice of you,help me to teach me how I can run ADMR, thanks ? ? From pnimonkar at gmail.com Sun Oct 25 21:39:08 2009 From: pnimonkar at gmail.com (preeti nimonkar) Date: Mon, 26 Oct 2009 10:09:08 +0530 Subject: [ns] problem with change of packet flow and node colour Message-ID: <3792d16c0910252139v7454a576td25b2bb774ba05e@mail.gmail.com> hello all, I am using ns2.33 version of ns. I am using following commands to change the packet flow color $ns color 1 Red $tcp0 set class_ 1 but with this their is no change of packet flow color. even I have tried instead of class fid also but stll it is not working. and other commands like $node4 color blue - this is not giving any execution error but their is no change of node colour $ns at 0.0 "$node0 color red" gives the following error--- num_nodes is set 6 INITIALIZE THE LIST xListHead Starting Simulation... ns: _o14 color red: can't read "attr_(COLOR)": no such element in array while executing "eval list "n -t [format "%.15g" [$ns now]] -s $id_ -S COLOR -c $color -o $attr_(COLOR) -i $color -I $attr_(LCOLOR)"" invoked from within "if [$ns is-started] { $ns puts-nam-config [eval list "n -t [format "%.15g" [$ns now]] -s $id_ -S COLOR -c $color -o $attr_(COLOR) -i $color -I $attr..." (procedure "_o14" line 6) (Node color line 6) invoked from within "_o14 color red" can any one help me out. regards, Preeti khanwalkar From piyu1707 at gmail.com Sun Oct 25 22:16:02 2009 From: piyu1707 at gmail.com (priya deshpande) Date: Mon, 26 Oct 2009 10:46:02 +0530 Subject: [ns] Java Network Simulaor-Query. In-Reply-To: <65fa7e730910252211v225f9e67k3835cd9a9c9a5b53@mail.gmail.com> References: <65fa7e730910252211v225f9e67k3835cd9a9c9a5b53@mail.gmail.com> Message-ID: <65fa7e730910252216w46acb084jb4716419c2741905@mail.gmail.com> Dear NS2 users, I have simulated a wireless network using java network simulator(JNS).I want to differentiate between (real-time)voice packet and data packet(non-real-time packets)...A further I want to calculate the performance of WLAN in terms of real-time packets.So how do we do so?.Please help me to solve the problem. Thank you. Priya. From bhosalemahesh87 at gmail.com Sun Oct 25 23:45:03 2009 From: bhosalemahesh87 at gmail.com (mahesh bhosale) Date: Mon, 26 Oct 2009 12:15:03 +0530 Subject: [ns] About energy model in ns 2.34 Message-ID: <5186c1860910252345k39634893sa9002dce7ce2c5a@mail.gmail.com> Hi, I want to know about how the overhearing power consumption can be accounted in the ns 2.34 energy-model? With Regards Mahesh From mutiullah15 at yahoo.com Mon Oct 26 00:46:14 2009 From: mutiullah15 at yahoo.com (Mutiullah Qureshi) Date: Mon, 26 Oct 2009 00:46:14 -0700 (PDT) Subject: [ns] Cross-Layering script is not running. Message-ID: <374217.20246.qm@web110705.mail.gq1.yahoo.com> Hello. Please consider the following script. I have written it for demonstrating cross-layering: # Define options set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 3 ;# number of mobilenodes set val(rp) AODV ;# routing protocol set val(x) 500 ;# X dimension of topography set val(y) 400 ;# Y dimension of topography set val(stop) 150 ;# time of simulation end set ns [new Simulator] set tracefd [open cros_ex1_tr.tr w] set namtrace [open cros_ex1_nam.nam w] $ns trace-all $tracefd $ns namtrace-all-wireless $namtrace $val(x) $val(y) # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) create-god $val(nn) # # Create nn mobilenodes [$val(nn)] and attach them to the channel. # set chan_1_ [new $val(chan)] # configure the nodes $ns node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -channel $chan_1_ \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace ON \ for {set i 0} {$i < $val(nn) } { incr i } { set node_($i) [$ns node] } # Provide initial location of mobilenodes $node_(0) set X_ 5.0 $node_(0) set Y_ 5.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 490.0 $node_(1) set Y_ 285.0 $node_(1) set Z_ 0.0 $node_(2) set X_ 150.0 $node_(2) set Y_ 240.0 $node_(2) set Z_ 0.0 # Generation of movements $ns at 10.0 "$node_(0) setdest 250.0 250.0 3.0" $ns at 15.0 "$node_(1) setdest 45.0 285.0 5.0" $ns at 110.0 "$node_(0) setdest 480.0 300.0 5.0" set udp_ [new Agent/UDP] $ns attach-agent $node_(0) $udp_ set null [new Agent/Null] $ns attach-agent $node_(1) $null set exp_ [new Application/Traffic/Exponential] $exp_ set burst_time_ 0.01ms $exp_ set idle_time_ 0.04ms $exp_ set rate_ 1.5Mbps $exp_ attach-agent $udp_ $exp_ attach-agent $udp_ $ns connect $udp_ $null set ll_src_ [$node_(0) getLL 0] $udp_ target $ll_src_ set ftp [new Application/FTP] $ftp attach-agent $udp_ $ns at 10.0 "$ftp start" # Define node initial position in nam for {set i 0} {$i < $val(nn)} { incr i } { # 30 defines the node size for nam $ns initial_node_pos $node_($i) 30 } # Telling nodes when the simulation ends for {set i 0} {$i < $val(nn) } { incr i } { $ns at $val(stop) "$node_($i) reset"; } # ending nam and the simulation $ns at $val(stop) "$ns nam-end-wireless $val(stop)" $ns at $val(stop) "stop" $ns at 150.01 "puts \"end simulation\" ; $ns halt" proc stop {} { global ns tracefd namtrace $ns flush-trace close $tracefd close $namtrace } $ns run But this is the output: num_nodes is set 3 INITIALIZE THE LIST xListHead (_o14 cmd line 1) invoked from within "_o14 cmd getLL 0" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o14" line 2) (SplitObject unknown line 2) invoked from within "$node_(0) getLL 0" invoked from within "set ll_src_ [$node_(0) getLL 0]" (file "cros_ex1.tcl" line 96) I have read5th chapter of "Introduction to Network Simulator NS2", that explains the Connector class [http://books.google.com/books?id=cD69He_oU60C&pg=PP1&dq=Introduction+to+Network+Simulator+NS2#v=onepage&q=&f=false ] and also got help from Urlan [http://mailman.isi.edu/pipermail/ns-users/2009-October/066621.html] Please someone point out the mistake(s) or provide me with example script of your own. Thanks in advance. From om_vijisep03 at yahoo.co.in Mon Oct 26 05:14:03 2009 From: om_vijisep03 at yahoo.co.in (Vijayalakshmi M) Date: Mon, 26 Oct 2009 17:44:03 +0530 (IST) Subject: [ns] Regarding patch file Message-ID: <512820.6746.qm@web95115.mail.in2.yahoo.com> hai i am beginner to use ns2 ,i am doing my project in rsa security, i dont know how to convert my c language into otcl language, then dont know the body format of create patch file regarding RSA, please help me, its urgend ???????????????????????????????????????? Thank? you, ??????????????????????????????????????????????????? M.Viji (om_vijisep03 at yahoo.co.in) Keep up with people you care about with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/connectmore From urlan at comp.ufla.br Mon Oct 26 07:46:27 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Mon, 26 Oct 2009 12:46:27 -0200 Subject: [ns] Re : How to set priority for packet (thangnd) In-Reply-To: <771661.86347.qm@web27602.mail.ukl.yahoo.com> References: <771661.86347.qm@web27602.mail.ukl.yahoo.com> Message-ID: <9bfab37d0910260746p1658f908wcdb3f2cac121c6e1@mail.gmail.com> Hi, Evalvid works with priority for each packet. http://hpds.ee.ncku.edu.tw/~smallko/ns2/Evalvid_in_NS2.htm Urlan 2009/10/25 aoufi souhila > > Hi > to set priority for packet, you need just to modify the field prio_ of the > ip packet header, like this: > iph = hdr_ip::access(pkt); //ip packet header > iph->prio_ = codePt; // codePt: the code of priority > hope that answer for your question > > Message: 6 > > Date: Sat, 24 Oct 2009 22:40:44 +0700 > > From: thangnd > > Subject: [ns] How to set priority for packet > > To: ns-users at ISI.EDU > > Message-ID: <4AE31FFC.3010706 at joomservices.com> > > Content-Type: text/plain; charset=ISO-8859-1; > > format=flowed > > > > Hi all, > > I have a question, how to set priority for packet in NS-2 > > using in WSN. > > Thanks for help. > > > > > > From urlan at comp.ufla.br Mon Oct 26 07:52:20 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Mon, 26 Oct 2009 12:52:20 -0200 Subject: [ns] Cross-Layering script is not running. In-Reply-To: <374217.20246.qm@web110705.mail.gq1.yahoo.com> References: <374217.20246.qm@web110705.mail.gq1.yahoo.com> Message-ID: <9bfab37d0910260752r33b77c1cveaaae5b19155bc84@mail.gmail.com> Hello Mutiullah Qureshi, You need to create getLL procedure. Node/MobileNode instproc getLL { param0} { $self instvar ll_ return $ll_($param0) } Call this procedure with the command: set ll_src_ [$node_(0) getLL 0] Urlan 2009/10/26 Mutiullah Qureshi > > Hello. > Please consider the following script. I have written it for demonstrating > cross-layering: > > # Define options > set val(chan) Channel/WirelessChannel ;# channel type > set val(prop) Propagation/TwoRayGround ;# radio-propagation > model > set val(netif) Phy/WirelessPhy ;# network interface > type > set val(mac) Mac/802_11 ;# MAC type > set val(ifq) Queue/DropTail/PriQueue ;# interface queue type > set val(ll) LL ;# link layer type > set val(ant) Antenna/OmniAntenna ;# antenna model > set val(ifqlen) 50 ;# max packet in ifq > set val(nn) 3 ;# number of mobilenodes > set val(rp) AODV ;# routing protocol > set val(x) 500 ;# X dimension of topography > set val(y) 400 ;# Y dimension of topography > set val(stop) 150 ;# time of simulation end > > set ns [new Simulator] > set tracefd [open cros_ex1_tr.tr w] > set namtrace [open cros_ex1_nam.nam w] > > $ns trace-all $tracefd > $ns namtrace-all-wireless $namtrace $val(x) $val(y) > > # set up topography object > set topo [new Topography] > > $topo load_flatgrid $val(x) $val(y) > > create-god $val(nn) > > # > # Create nn mobilenodes [$val(nn)] and attach them to the channel. > # > > set chan_1_ [new $val(chan)] > > # configure the nodes > $ns node-config -adhocRouting $val(rp) \ > -llType $val(ll) \ > -macType $val(mac) \ > -channel $chan_1_ \ > -ifqType $val(ifq) \ > -ifqLen $val(ifqlen) \ > -antType $val(ant) \ > -propType $val(prop) \ > -phyType $val(netif) \ > -topoInstance $topo \ > -agentTrace ON \ > -routerTrace ON \ > -macTrace OFF \ > -movementTrace ON \ > > > for {set i 0} {$i < $val(nn) } { incr i } { > set node_($i) [$ns node] > } > > # Provide initial location of mobilenodes > $node_(0) set X_ 5.0 > $node_(0) set Y_ 5.0 > $node_(0) set Z_ 0.0 > > $node_(1) set X_ 490.0 > $node_(1) set Y_ 285.0 > $node_(1) set Z_ 0.0 > > $node_(2) set X_ 150.0 > $node_(2) set Y_ 240.0 > $node_(2) set Z_ 0.0 > > # Generation of movements > $ns at 10.0 "$node_(0) setdest 250.0 250.0 3.0" > $ns at 15.0 "$node_(1) setdest 45.0 285.0 5.0" > $ns at 110.0 "$node_(0) setdest 480.0 300.0 5.0" > > set udp_ [new Agent/UDP] > $ns attach-agent $node_(0) $udp_ > > set null [new Agent/Null] > $ns attach-agent $node_(1) $null > > set exp_ [new Application/Traffic/Exponential] > > $exp_ set burst_time_ 0.01ms > $exp_ set idle_time_ 0.04ms > $exp_ set rate_ 1.5Mbps > $exp_ attach-agent $udp_ > > $exp_ attach-agent $udp_ > $ns connect $udp_ $null > > set ll_src_ [$node_(0) getLL 0] > $udp_ target $ll_src_ > > set ftp [new Application/FTP] > $ftp attach-agent $udp_ > $ns at 10.0 "$ftp start" > > # Define node initial position in nam > for {set i 0} {$i < $val(nn)} { incr i } { > # 30 defines the node size for nam > $ns initial_node_pos $node_($i) 30 > } > > # Telling nodes when the simulation ends > for {set i 0} {$i < $val(nn) } { incr i } { > $ns at $val(stop) "$node_($i) reset"; > } > > # ending nam and the simulation > $ns at $val(stop) "$ns nam-end-wireless $val(stop)" > $ns at $val(stop) "stop" > $ns at 150.01 "puts \"end simulation\" ; $ns halt" > proc stop {} { > global ns tracefd namtrace > $ns flush-trace > close $tracefd > close $namtrace > } > > $ns run > > > But this is the output: > > num_nodes is set 3 > INITIALIZE THE LIST xListHead > > (_o14 cmd line 1) > invoked from within > "_o14 cmd getLL 0" > invoked from within > "catch "$self cmd $args" ret" > invoked from within > "if [catch "$self cmd $args" ret] { > set cls [$self info class] > global errorInfo > set savedInfo $errorInfo > error "error when calling class $cls: $args" $..." > (procedure "_o14" line 2) > (SplitObject unknown line 2) > invoked from within > "$node_(0) getLL 0" > invoked from within > "set ll_src_ [$node_(0) getLL 0]" > (file "cros_ex1.tcl" line 96) > > I have read5th chapter of > "Introduction to Network Simulator NS2", that explains the Connector > class > [ > http://books.google.com/books?id=cD69He_oU60C&pg=PP1&dq=Introduction+to+Network+Simulator+NS2#v=onepage&q=&f=false] > and also got help from Urlan [ > http://mailman.isi.edu/pipermail/ns-users/2009-October/066621.html] > > Please someone point out the mistake(s) or provide me with example script > of your own. > Thanks in advance. > > > > > From thienlong3t at yahoo.com Mon Oct 26 09:40:07 2009 From: thienlong3t at yahoo.com (Vo Trinh) Date: Mon, 26 Oct 2009 09:40:07 -0700 (PDT) Subject: [ns] mac-simple in ns2! Message-ID: <119.84986.qm@web76416.mail.sg1.yahoo.com> Dear all ns2-user, I have difficulty in understanding algorithm of mac-simple in ns2. I need algorithm of mac-simple to finish sth in my thesis as soon as posible. Those who know please tell me about it. Thanks in advance. == Thien Long From nill_akaser_tara at yahoo.com Mon Oct 26 09:53:44 2009 From: nill_akaser_tara at yahoo.com (qweq adcsad) Date: Mon, 26 Oct 2009 09:53:44 -0700 (PDT) Subject: [ns] How to set priority for packet In-Reply-To: <4AE31FFC.3010706@joomservices.com> Message-ID: <257381.77115.qm@web62402.mail.re1.yahoo.com> u need to use EDCA MAC in that case. u can try the EDCA patch. --- On Sat, 10/24/09, thangnd wrote: > From: thangnd > Subject: [ns] How to set priority for packet > To: ns-users at ISI.EDU > Date: Saturday, October 24, 2009, 8:40 AM > > Hi all, > I have a question, how to set priority for packet in NS-2 > using in WSN. > Thanks for help. > > From amina.bechtarzi at gmail.com Mon Oct 26 10:12:00 2009 From: amina.bechtarzi at gmail.com (amina bechtarzi) Date: Mon, 26 Oct 2009 18:12:00 +0100 Subject: [ns] Help needed in gdb and Node file Message-ID: <1a0476df0910261012v9907b28j14686e3acf49d9b1@mail.gmail.com> Dear all , I am using gdb to deluging my tcl and c++ code. I used a function size_neighbord_list (), in node.cc node.h code. But after I remove it for my code node.cc node.h. When doing some simulation test a segmentation fault occur : (gdb) continue Continuing. 4 is setting code to 0 Program received signal SIGSEGV, Segmentation fault. 0x081218fb in Node::size_neighbord_list () (gdb) bt #0 0x081218fb in Node::size_neighbord_list () #1 0x0821a014 in leachApp::decideClusterHead () #2 0x0821a52b in App::start () #3 0x0820b474 in CommonNodeApp::command () #4 0x082546c2 in TclClass::dispatch_cmd () #5 0x0825942c in OTclDispatch (cd=, in=0x8456490, argc=3, argv=0xbfdbc58c) at otcl.c:434 #6 0x0826018e in TclInvokeStringCommand () #7 0x08261c82 in TclEvalObjvInternal () #8 0x0828bf01 in TclExecuteByteCode () #9 0x0829073c in TclCompEvalObj () #10 0x0828bda2 in TclExecuteByteCode () #11 0x0829073c in TclCompEvalObj () #12 0x082b8cde in TclObjInterpProc () #13 0x082b9122 in TclProcInterpProc () #14 0x082595b6 in OTclDispatch (cd=, in=0x8456490, argc=2, argv=0xbfdbd16c) at otcl.c:477 #15 0x0826018e in TclInvokeStringCommand () #16 0x08261c82 in TclEvalObjvInternal () #17 0x08262245 in Tcl_EvalEx () #18 0x0826255c in Tcl_Eval () #19 0x082625f6 in Tcl_GlobalEval () #20 0x082571b9 in Tcl::eval () #21 0x0805494a in AtHandler::handle () #22 0x08054612 in Scheduler::dispatch () #23 0x0805485e in Scheduler::run () #24 0x08054b1d in Scheduler::command () #25 0x082546c2 in TclClass::dispatch_cmd () #26 0x0825942c in OTclDispatch (cd=, in=0x8456490, argc=3, argv=0xbfdbe0c8) at otcl.c:434 #27 0x0826018e in TclInvokeStringCommand () ---Type to continue, or q to quit--- #28 0x08261c82 in TclEvalObjvInternal () #29 0x0828bf01 in TclExecuteByteCode () #30 0x0829073c in TclCompEvalObj () #31 0x0828bda2 in TclExecuteByteCode () #32 0x0829073c in TclCompEvalObj () #33 0x082b8cde in TclObjInterpProc () #34 0x082b9122 in TclProcInterpProc () #35 0x082595b6 in OTclDispatch (cd=, in=0x8456490, argc=2, argv=0xbfdbe39c) at otcl.c:477 #36 0x0826018e in TclInvokeStringCommand () #37 0x08261c82 in TclEvalObjvInternal () #38 0x0828bf01 in TclExecuteByteCode () #39 0x0829073c in TclCompEvalObj () #40 0x082b8cde in TclObjInterpProc () #41 0x082b9122 in TclProcInterpProc () (gdb) I can not understand why i still have this error !!! Could any one give me any advice, pls ? I really appreciate it. Thank you From anvyas007 at gmail.com Mon Oct 26 11:25:24 2009 From: anvyas007 at gmail.com (narayan vyas) Date: Mon, 26 Oct 2009 23:55:24 +0530 Subject: [ns] Implementation of TDMA based MAC protocols and Clarifications on Z-MAC protocol Message-ID: <937a8ac60910261125v11334039ybae85ad23da390e1@mail.gmail.com> Hello Everyone, I would like to know if there is any Z-mac protocol for Wireless Sensor Networks, presently implemented only on ns-2.26, has been ported onto ns-2.29. And also, does anyone have an implementation of a TDMA based MAC protocol(Ex: A-mac) on NS-2. I am currently working on the implementation of a TDMA based MAC protocol and would need a reference code to work on the implementation. Thanks in Advance. -- A.Narayana Vyas Dept. of Computer Engineering NITK Surathkal. From mutiullah15 at yahoo.com Mon Oct 26 11:37:19 2009 From: mutiullah15 at yahoo.com (Mutiullah Qureshi) Date: Mon, 26 Oct 2009 11:37:19 -0700 (PDT) Subject: [ns] Cross-Layering script is not running. In-Reply-To: <9bfab37d0910260752r33b77c1cveaaae5b19155bc84@mail.gmail.com> References: <374217.20246.qm@web110705.mail.gq1.yahoo.com> <9bfab37d0910260752r33b77c1cveaaae5b19155bc84@mail.gmail.com> Message-ID: <386810.24367.qm@web110703.mail.gq1.yahoo.com> Thanks Urlan.. This time I created the said routine and get this: num_nodes is set 3 INITIALIZE THE LIST xListHead Error: sendmsg() for UDP should not be -1 SORTING LISTS ...DONE! end simulation ________________________________ From: Urlan Salgado de Barros To: Mutiullah Qureshi Cc: NS-USERS Mailing List Sent: Mon, October 26, 2009 8:52:20 PM Subject: Re: [ns] Cross-Layering script is not running. Hello Mutiullah Qureshi, You need to create getLL procedure. Node/MobileNode instproc getLL { param0} { $self instvar ll_ return $ll_($param0) } Call this procedure with the command: set ll_src_ [$node_(0) getLL 0] Urlan 2009/10/26 Mutiullah Qureshi >>Hello. >>Please consider the following script. I have written it for demonstrating cross-layering: > >># Define options >>set val(chan) Channel/WirelessChannel ;# channel type >>set val(prop) Propagation/TwoRayGround ;# radio-propagation model >>set val(netif) Phy/WirelessPhy ;# network interface type >>set val(mac) Mac/802_11 ;# MAC type >>set val(ifq) Queue/DropTail/PriQueue ;# interface queue type >>set val(ll) LL ;# link layer type >>set val(ant) Antenna/OmniAntenna ;# antenna model >>set val(ifqlen) 50 ;# max packet in ifq >>set val(nn) 3 ;# number of mobilenodes >>set val(rp) AODV ;# routing protocol >>set val(x) 500 ;# X dimension of topography >>set val(y) 400 ;# Y dimension of topography >>set val(stop) 150 ;# time of simulation end > >>set ns [new Simulator] >>set tracefd [open cros_ex1_tr.tr w] >>set namtrace [open cros_ex1_nam.nam w] > >>$ns trace-all $tracefd >>$ns namtrace-all-wireless $namtrace $val(x) $val(y) > >># set up topography object >>set topo [new Topography] > >>$topo load_flatgrid $val(x) $val(y) > >>create-god $val(nn) > >># >># Create nn mobilenodes [$val(nn)] and attach them to the channel. >># > >>set chan_1_ [new $val(chan)] > >># configure the nodes >> $ns node-config -adhocRouting $val(rp) \ >> -llType $val(ll) \ >> -macType $val(mac) \ >> -channel $chan_1_ \ >> -ifqType $val(ifq) \ >> -ifqLen $val(ifqlen) \ >> -antType $val(ant) \ >> -propType $val(prop) \ >> -phyType $val(netif) \ >> -topoInstance $topo \ >> -agentTrace ON \ >> -routerTrace ON \ >> -macTrace OFF \ >> -movementTrace ON \ > > >> for {set i 0} {$i < $val(nn) } { incr i } { >> set node_($i) [$ns node] >> } > >># Provide initial location of mobilenodes >>$node_(0) set X_ 5.0 >>$node_(0) set Y_ 5.0 >>$node_(0) set Z_ 0.0 > >>$node_(1) set X_ 490.0 >>$node_(1) set Y_ 285.0 >>$node_(1) set Z_ 0.0 > >>$node_(2) set X_ 150.0 >>$node_(2) set Y_ 240.0 >>$node_(2) set Z_ 0.0 > >># Generation of movements >>$ns at 10.0 "$node_(0) setdest 250.0 250.0 3.0" >>$ns at 15.0 "$node_(1) setdest 45.0 285.0 5.0" >>$ns at 110.0 "$node_(0) setdest 480.0 300.0 5.0" > >>set udp_ [new Agent/UDP] >>$ns attach-agent $node_(0) $udp_ > >>set null [new Agent/Null] >>$ns attach-agent $node_(1) $null > >>set exp_ [new Application/Traffic/Exponential] > >>$exp_ set burst_time_ 0.01ms >>$exp_ set idle_time_ 0.04ms >>$exp_ set rate_ 1.5Mbps >>$exp_ attach-agent $udp_ > >>$exp_ attach-agent $udp_ >>$ns connect $udp_ $null > >>set ll_src_ [$node_(0) getLL 0] >>$udp_ target $ll_src_ > >>set ftp [new Application/FTP] >>$ftp attach-agent $udp_ >>$ns at 10.0 "$ftp start" > >># Define node initial position in nam >>for {set i 0} {$i < $val(nn)} { incr i } { >># 30 defines the node size for nam >>$ns initial_node_pos $node_($i) 30 >>} > >># Telling nodes when the simulation ends >>for {set i 0} {$i < $val(nn) } { incr i } { >> $ns at $val(stop) "$node_($i) reset"; >>} > >># ending nam and the simulation >>$ns at $val(stop) "$ns nam-end-wireless $val(stop)" >>$ns at $val(stop) "stop" >>$ns at 150.01 "puts \"end simulation\" ; $ns halt" >>proc stop {} { >> global ns tracefd namtrace >> $ns flush-trace >> close $tracefd >> close $namtrace >>} > >>$ns run > > >>But this is the output: > >>num_nodes is set 3 >>INITIALIZE THE LIST xListHead > >> (_o14 cmd line 1) >> invoked from within >>"_o14 cmd getLL 0" >> invoked from within >>"catch "$self cmd $args" ret" >> invoked from within >>"if [catch "$self cmd $args" ret] { >>set cls [$self info class] >>global errorInfo >>set savedInfo $errorInfo >>error "error when calling class $cls: $args" $..." >> (procedure "_o14" line 2) >> (SplitObject unknown line 2) >> invoked from within >>"$node_(0) getLL 0" >> invoked from within >>"set ll_src_ [$node_(0) getLL 0]" >> (file "cros_ex1.tcl" line 96) > >>I have read5th chapter of >>"Introduction to Network Simulator NS2", that explains the Connector >>class >>[http://books.google.com/books?id=cD69He_oU60C&pg=PP1&dq=Introduction+to+Network+Simulator+NS2#v=onepage&q=&f=false ] >> >and also got help from Urlan [http://mailman.isi.edu/pipermail/ns-users/2009-October/066621.html] > >>Please someone point out the mistake(s) or provide me with example script of your own. >>Thanks in advance. > > > > > From thaalbimariem5 at gmail.com Mon Oct 26 11:43:59 2009 From: thaalbimariem5 at gmail.com (Mariem Thaalbi) Date: Mon, 26 Oct 2009 19:43:59 +0100 Subject: [ns] undefined refernce error while adding a new patch Message-ID: <8bfb9b940910261143l10aa9d01h97684833ecf7c36d@mail.gmail.com> Hi, I installed NS and i add on it a patch which supports 802.11s but while recompiling, i had this error : mac-802_11.cc: undefined refernce to 'hdr_phy802_11ag::offset_' I will appreciate any help. From urlan at comp.ufla.br Mon Oct 26 12:44:22 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Mon, 26 Oct 2009 17:44:22 -0200 Subject: [ns] Cross-Layering script is not running. In-Reply-To: <386810.24367.qm@web110703.mail.gq1.yahoo.com> References: <374217.20246.qm@web110705.mail.gq1.yahoo.com> <9bfab37d0910260752r33b77c1cveaaae5b19155bc84@mail.gmail.com> <386810.24367.qm@web110703.mail.gq1.yahoo.com> Message-ID: <9bfab37d0910261244q19b30db3pb16a45c0d379a951@mail.gmail.com> Hi, Are you trying to attach ftp with udp? FTP creates two TCP connections, one for sends data and one for sends commands. Do you want to use udp or tcp? If you consider udp, do this: Remove the following code: set ftp [new Application/FTP] $ftp attach-agent $udp_ $ns at 10.0 "$ftp start" And initialize the exponential traffic, for example: $ns_ at 2.0 "$exp_ $opt(start_traffic)" $ns_ at 2.0 "$exp_ $opt(stop_traffic)" Seeya. Urlan 2009/10/26 Mutiullah Qureshi > Thanks Urlan.. > This time I created the said routine and get this: > > num_nodes is set 3 > INITIALIZE THE LIST xListHead > Error: sendmsg() for UDP should not be -1 > SORTING LISTS ...DONE! > end simulation > > > ------------------------------ > *From:* Urlan Salgado de Barros > *To:* Mutiullah Qureshi > *Cc:* NS-USERS Mailing List > *Sent:* Mon, October 26, 2009 8:52:20 PM > *Subject:* Re: [ns] Cross-Layering script is not running. > > Hello Mutiullah Qureshi, > > You need to create getLL procedure. > > Node/MobileNode instproc getLL { param0} { > $self instvar ll_ > return $ll_($param0) > } > > Call this procedure with the command: > set ll_src_ [$node_(0) getLL 0] > > Urlan > > 2009/10/26 Mutiullah Qureshi > >> >> Hello. >> Please consider the following script. I have written it for demonstrating >> cross-layering: >> >> # Define options >> set val(chan) Channel/WirelessChannel ;# channel type >> set val(prop) Propagation/TwoRayGround ;# radio-propagation >> model >> set val(netif) Phy/WirelessPhy ;# network interface >> type >> set val(mac) Mac/802_11 ;# MAC type >> set val(ifq) Queue/DropTail/PriQueue ;# interface queue type >> set val(ll) LL ;# link layer type >> set val(ant) Antenna/OmniAntenna ;# antenna model >> set val(ifqlen) 50 ;# max packet in ifq >> set val(nn) 3 ;# number of >> mobilenodes >> set val(rp) AODV ;# routing protocol >> set val(x) 500 ;# X dimension of topography >> set val(y) 400 ;# Y dimension of topography >> set val(stop) 150 ;# time of simulation end >> >> set ns [new Simulator] >> set tracefd [open cros_ex1_tr.tr w] >> set namtrace [open cros_ex1_nam.nam w] >> >> $ns trace-all $tracefd >> $ns namtrace-all-wireless $namtrace $val(x) $val(y) >> >> # set up topography object >> set topo [new Topography] >> >> $topo load_flatgrid $val(x) $val(y) >> >> create-god $val(nn) >> >> # >> # Create nn mobilenodes [$val(nn)] and attach them to the channel. >> # >> >> set chan_1_ [new $val(chan)] >> >> # configure the nodes >> $ns node-config -adhocRouting $val(rp) \ >> -llType $val(ll) \ >> -macType $val(mac) \ >> -channel $chan_1_ \ >> -ifqType $val(ifq) \ >> -ifqLen $val(ifqlen) \ >> -antType $val(ant) \ >> -propType $val(prop) \ >> -phyType $val(netif) \ >> -topoInstance $topo \ >> -agentTrace ON \ >> -routerTrace ON \ >> -macTrace OFF \ >> -movementTrace ON \ >> >> >> for {set i 0} {$i < $val(nn) } { incr i } { >> set node_($i) [$ns node] >> } >> >> # Provide initial location of mobilenodes >> $node_(0) set X_ 5.0 >> $node_(0) set Y_ 5.0 >> $node_(0) set Z_ 0.0 >> >> $node_(1) set X_ 490.0 >> $node_(1) set Y_ 285.0 >> $node_(1) set Z_ 0.0 >> >> $node_(2) set X_ 150.0 >> $node_(2) set Y_ 240.0 >> $node_(2) set Z_ 0.0 >> >> # Generation of movements >> $ns at 10.0 "$node_(0) setdest 250.0 250.0 3.0" >> $ns at 15.0 "$node_(1) setdest 45.0 285.0 5.0" >> $ns at 110.0 "$node_(0) setdest 480.0 300.0 5.0" >> >> set udp_ [new Agent/UDP] >> $ns attach-agent $node_(0) $udp_ >> >> set null [new Agent/Null] >> $ns attach-agent $node_(1) $null >> >> set exp_ [new Application/Traffic/Exponential] >> >> $exp_ set burst_time_ 0.01ms >> $exp_ set idle_time_ 0.04ms >> $exp_ set rate_ 1.5Mbps >> $exp_ attach-agent $udp_ >> >> $exp_ attach-agent $udp_ >> $ns connect $udp_ $null >> >> set ll_src_ [$node_(0) getLL 0] >> $udp_ target $ll_src_ >> >> set ftp [new Application/FTP] >> $ftp attach-agent $udp_ >> $ns at 10.0 "$ftp start" >> >> # Define node initial position in nam >> for {set i 0} {$i < $val(nn)} { incr i } { >> # 30 defines the node size for nam >> $ns initial_node_pos $node_($i) 30 >> } >> >> # Telling nodes when the simulation ends >> for {set i 0} {$i < $val(nn) } { incr i } { >> $ns at $val(stop) "$node_($i) reset"; >> } >> >> # ending nam and the simulation >> $ns at $val(stop) "$ns nam-end-wireless $val(stop)" >> $ns at $val(stop) "stop" >> $ns at 150.01 "puts \"end simulation\" ; $ns halt" >> proc stop {} { >> global ns tracefd namtrace >> $ns flush-trace >> close $tracefd >> close $namtrace >> } >> >> $ns run >> >> >> But this is the output: >> >> num_nodes is set 3 >> INITIALIZE THE LIST xListHead >> >> (_o14 cmd line 1) >> invoked from within >> "_o14 cmd getLL 0" >> invoked from within >> "catch "$self cmd $args" ret" >> invoked from within >> "if [catch "$self cmd $args" ret] { >> set cls [$self info class] >> global errorInfo >> set savedInfo $errorInfo >> error "error when calling class $cls: $args" $..." >> (procedure "_o14" line 2) >> (SplitObject unknown line 2) >> invoked from within >> "$node_(0) getLL 0" >> invoked from within >> "set ll_src_ [$node_(0) getLL 0]" >> (file "cros_ex1.tcl" line 96) >> >> I have read5th chapter of >> "Introduction to Network Simulator NS2", that explains the Connector >> class >> [ >> http://books.google.com/books?id=cD69He_oU60C&pg=PP1&dq=Introduction+to+Network+Simulator+NS2#v=onepage&q=&f=false] >> and also got help from Urlan [ >> http://mailman.isi.edu/pipermail/ns-users/2009-October/066621.html] >> >> Please someone point out the mistake(s) or provide me with example >> script of your own. >> Thanks in advance. >> >> >> >> >> > > From juanjopavia at hotmail.com Mon Oct 26 12:50:10 2009 From: juanjopavia at hotmail.com (juanjo pavia) Date: Mon, 26 Oct 2009 19:50:10 +0000 Subject: [ns] simulation with DCCP/TFRC Message-ID: Hello everyone I have installed the patch ns-233-DCCP-1.Patch of [1] but can not find examples of simulation. I've tried to simulate a link cable but not generated traffic. Someone who is using this protocol and can send me an example? I've searched the mailing list but there is nothing. [1]http://www.nicta.com.au/people/mehanio/nsmisc I did this: set tcp0 [new Agent/DCCP/TFRC] $tcp0 set fid_ 1 $ns attach-agent $n0 $tcp0 set ftp0 [new Application/FTP] $ftp0 attach-agent $tcp0 set sinktcp0 [new Agent/DCCP/TFRC] $ns attach-agent $n3 $sinktcp0 $ns connect $tcp0 $sinktcp0 $ns at 0.2 "$ftp0 start" $ns at 9.5 "$ns detach-agent $n0 $tcp0; $ns detach-agent $n3 $sinktcp0" thank you very much. _________________________________________________________________ Inf?rmate, mantente en contacto y encu?ntralo todo, a la vez. Con la nueva Toolbar de MSN nunca has tenido tantas ventajas en tan poco espacio. http://toolbar.es.msn.com/ From vivek.vijayakumar at gmail.com Mon Oct 26 17:21:38 2009 From: vivek.vijayakumar at gmail.com (Vivek Vijaya Kumar) Date: Mon, 26 Oct 2009 20:21:38 -0400 Subject: [ns] Setting Values for CWmin and CWmax In-Reply-To: References: Message-ID: Hi, I am new to NS. I am trying to setup a network with 5 nodes, 4 of which are supposed to have one set for value for (CWmin, CWmax) and the other node is supposed to have another set of value?for (CWmin, CWmax). Please suggest a method of setting these parameters in tcl. Thank you Vivek From urlan at comp.ufla.br Mon Oct 26 19:55:17 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Tue, 27 Oct 2009 00:55:17 -0200 Subject: [ns] Setting Values for CWmin and CWmax In-Reply-To: References: Message-ID: <9bfab37d0910261955w2401c4bakd7937569eb487d52@mail.gmail.com> Did you try to search? http://mailman.isi.edu/pipermail/ns-users/2006-April/055338.html Urlan 2009/10/26 Vivek Vijaya Kumar > > Hi, > I am new to NS. I am trying to setup a network with 5 nodes, 4 of > which are supposed to have one set for value for (CWmin, CWmax) and > the other node is supposed to have another set of value for (CWmin, > CWmax). Please suggest a method of setting these parameters in tcl. > > Thank you > Vivek > > From vivek.vijayakumar at gmail.com Mon Oct 26 20:54:00 2009 From: vivek.vijayakumar at gmail.com (Vivek Vijaya Kumar) Date: Mon, 26 Oct 2009 23:54:00 -0400 Subject: [ns] Setting Values for CWmin and CWmax In-Reply-To: <9bfab37d0910261955w2401c4bakd7937569eb487d52@mail.gmail.com> References: <9bfab37d0910261955w2401c4bakd7937569eb487d52@mail.gmail.com> Message-ID: This one shows how to set CWmin and CWmax value for the entire simulation. But is it possible to make them node specific as in different values for different nodes? For example, if node A always has some higher priority data to transmit its CWmin should be lower than the rest of the nodes. Vivek On Mon, Oct 26, 2009 at 10:55 PM, Urlan Salgado de Barros wrote: > Did you try to search? > > http://mailman.isi.edu/pipermail/ns-users/2006-April/055338.html > > Urlan > > 2009/10/26 Vivek Vijaya Kumar >> >> Hi, >> I am new to NS. I am trying to setup a network with 5 nodes, 4 of >> which are supposed to have one set for value for (CWmin, CWmax) and >> the other node is supposed to have another set of value?for (CWmin, >> CWmax). Please suggest a method of setting these parameters in tcl. >> >> Thank you >> Vivek >> > > From radiantsoftwaresolutions at gmail.com Mon Oct 26 22:07:00 2009 From: radiantsoftwaresolutions at gmail.com (Sharad Patil) Date: Tue, 27 Oct 2009 10:37:00 +0530 Subject: [ns] Java Network Simulator-Query. In-Reply-To: <1993c4310910262156s38eb2bfau5a58b29de4e77ea4@mail.gmail.com> References: <1993c4310910262156s38eb2bfau5a58b29de4e77ea4@mail.gmail.com> Message-ID: <1993c4310910262207k1cb42d5fr77dd5d501aaecfc1@mail.gmail.com> Hello, I have simulated a wireless network using Java Network Simulator(JNS).Now I want to find the thoughput of network. So please tell me the formula for calculating throughput. Thanking you. Regards, Priya. From bilal26 at hotmail.co.uk Tue Oct 27 01:06:25 2009 From: bilal26 at hotmail.co.uk (BilalAKhan) Date: Tue, 27 Oct 2009 01:06:25 -0700 (PDT) Subject: [ns] how do I parse the trace file for xgraph? Message-ID: <26073666.post@talk.nabble.com> Dear NS-2 Users, I have made a simulation in NS-2 and want to plot a graph by xgraph. But it always gives me the error given below: . . . . Error in file `third.tr' at line 8971: Unknown line type Error in file `third.tr' at line 8972: Unknown line type Error in file `third.tr' at line 8973: Unknown line type Error in file `third.tr' at line 8974: Unknown line type Error in file `third.tr' at line 8975: Unknown line type Error in file `third.tr' at line 8976: Unknown line type Error in file `third.tr' at line 8977: Unknown line type Warning: cannot open file `800x600' Problems found with input data. I have searched on the web including ns-2 forum but no satisfactory answer is available. All I could get from some of the posts on the forum was that I need to parse the output trace file and then produce the graph. I do not want to go into awk and pascal scripting. How can I get the parse the file using xgraph. The .tcl file is attached http://www.nabble.com/file/p26073666/practice.tcl practice.tcl along with this email. Please see the code given in the file for details and tell me where am I going wrong. I have already tried using proc record {} in the code, but I think it does now parse the trace file. How do I generate the graph using xgraph... Can ant please help me with this.... I am stuck up... ----- Regards, Bilal A. Khan -- View this message in context: http://www.nabble.com/how-do-I-parse-the-trace-file-for-xgraph--tp26073666p26073666.html Sent from the ns-users mailing list archive at Nabble.com. From m.nurchis at imtlucca.it Tue Oct 27 03:14:52 2009 From: m.nurchis at imtlucca.it (Maddalena Nurchis IMT) Date: Tue, 27 Oct 2009 11:14:52 +0100 Subject: [ns] EW2010: Deadline EXTENDED to Nov. 8th! Message-ID: <101440ad26a6d5b4d713107bf2d0a1de@imtlucca.it> [we apologize if multiple copies are received] Call for Papers 16th European Wireless Conference www.ew2010.org Lucca (Tuscany), Italy April 12-15, 2010 Submission deadline: Nov 8, 2009 ** GENERAL The 12th European Wireless Conference will take place in the city of Lucca, heart of Tuscany, Italy, from April 12 to April 15, 2010 and will be hosted by the IMT Institute for Advanced Studies (www.imtlucca.it), a post-graduate school recently founded in Lucca, which awards PhD degrees to a restricted group of outstanding students from all over the world. The 2010 edition of the conference will revolve around a main theme: "Towards the Future Internet". One of the key objectives of research in wireless communication, and notably the main one of 4th generation cellular/mobile networks, is full integration of wireless segments into the all-IP pervasive and ubiquitous network of the future, regardless of the nature (wired or wireless) of the physical media. In addition to technical sessions, tutorials and demonstation/poster sessions will be hosted. ** TOPICS Original contributions in any of the areas below are solicited: Wireless Networking - Ad-hoc and Mesh Wireless Networks - Transport Layer Issues in Mobile and Wireless Networks - Cross-layer Issues - Protocols and Architecture for Wireless Networks - Radio Resource Management - Mobility Management and Billing Technologies - QoS and Resource Allocation in Mobile Networks - Security and Robustness in Wireless Networks - Mobile/Wireless Networks Modeling and Simulation - Heterogeneous Wireless Networks - Wired-Wireless Integration Advanced Wireless Technology - Ultra-Wideband Communications - Software Radio & Re-congurability, Cognitive Radio and Networks - Cross-layer Design in Mobile and Wireless Networks - Power Management for Small Terminals - 2G-3G-4G Migration, Convergence and Interworking - WiFi, WiMAX, 3GPP LTE - Wireless LAN/PAN/BAN - Location-based Services and Positioning - Wireless Broadband Mobile Access - RFID - Cooperative Techniques - Experimental Systems - Sensor Networks Technologies and Protocols - Mobile Social Networks Transmission Techniques and Signal Processing - Modulation and Coding for Wireless Communications - Signal Processing for Wireless Communications - Synchronization, Channel Estimation, Equalization - Iterative Detection and Processing - MIMO Systems, Space-Time Coding, Diversity - Fundamental Limits, Information Theory - Multiple Access Schemes, Multiuser Detection Algorithms - Interference Mitigation and Management Techniques - Network Coding and Cooperative Diversity and Processing - Adaptive Systems - OFDM and OFDMA - Localization and Positioning - Source and Joint Source/Channel Coding - Physical Security - Resource Allocation and Game Theory - Spectrum Sensing and Signal Parameters Estimation Radio Channel and RF Subsystems - Radio Channel Measurements - Radio Channel Modeling and Estimation - Antenna Issues in Wireless Communications - Smart Antennas and MIMO systems - Compact Antennas for Mobile Terminals - Modeling and Mitigation of RF System Imperfections ** IMPORTANT DATES Paper submission: Nov 8, 2009 Notification of acceptance: Dec 31, 2009 Camera-ready due: Jan 31, 2010 Proposals for tutorials: Dec. 31, 2009 Tutorial acceptance notification: Feb 15, 2010 ** SUBMISSION Submission of papers, up to 8 pages, will be handled electronically via EDAS. Detailed instructions will be available soon in the conference website: http://www.ew2010.org/. Accepted papers will be published in the Proceedings of EW 2010. Acceptance will be based on quality, relevance and originality. All submitted papers will be peer-reviewed by at least three reviewers and their comments will be provided to the authors. Presentation at the conference of accepted papers is subject to full-fee registration of at least one author within the early registration deadline. Presented papers will be included in the IEEExplore database. A Special issues of European Transactions on Telecommunications will be devoted to selected EW2010 papers. Furthermore, papers of special merit will be considered for possible fast track publication on Computer Communications Journal. ** KEYNOTE SPEAKERS - Sajal Das, University Texas at Arlington, USA - Andrea Goldsmith, Stanford University, USA - Michele Zorzi, University of Padova, Italy ** ORGANIZING COMMITTEE General Co-Chairs - Luciano Lenzini, University of Pisa, Italy - Marco Luise, University of Pisa, Italy TPC Co-Chairs - Albert Banchs, Universidad Carlos III de Madrid, Madrid, Spain - Christoph Mecklenbr?uker, Vienna University of Technology, Austria Steering Committee Chair - Bernhard Walke, Aachen University of Technology, Germany Tutorial Co-Chairs - Carles Ant?n-Haro, CTTC, Spain - Daji Qiao, Iowa University, USA Panel Chair - Bernhard Walke, Aachen University of Technology, Germany Exibition Co-Chairs - Antonella Barbuti, IMT, Lucca, Italy - Luca Bisti, University of Pisa, Italy Publications Chair - Filippo Giannetti, University of Pisa, Italy Publicity Co-Chairs - Sinan Gezici, Bilkent University, Ankara, Turkey - Maddalena Nurchis, IMT, Lucca , Italy Student Papers Co-Chairs - Leonardo Badia, IMT, Lucca , Italy - Claudio Cicconetti, University of Pisa, Italy - Jan Sykora, Czech Technical University in Prague, Czech Republic Local Arrangements Chair - Alessandro Gallione, IMT, Lucca , Italy Webmasters - Pietro Carubbi, IMT, Lucca , Italy - Andrea Nardi, IMT, Lucca , Italy ** TECHNICAL PROGRAM COMMITTEE - Marco Ajmone Marsan, Politecnico di Torino, Italy - Angeliki Alexiou, Bell Labs, Alcatel-Lucent, UK - Carles Ant?n, CTTC, Spain - Andrea Baiocchi, University of Rome ?La Sapienza?, Italy - Jean-Claude Belfiore, ENST Paris, France - Sergio Benedetto, Politcenico di Torino, Italy - Giuseppe Bianchi, University of Rome ?Tor Vergata?, Italy - Christian Bettstetter, University of Klagenfurt, Austria - Alister Burr, University of York, UK - Periklis Chatzimisios, TEIThe, Greece - Marco Conti, IIT/CNR, Italy - Luis Correia, IST - Technical University of Lisbon, Portugal - Riccardo De Gaudenzi, European Space Agency, The Netherlands - Christos Douligeris, University of Piraeus, Greece - Andrzej Duda, Grenoble Institute of Technology, France - Carl Eklund, Nokia Siemens Networks, Finland - Luigi Fratta, Politecnico di Milano, Italy - Lajos Hanzo, University of Southampton, UK - Christian Hoymann, Ericsson, Germany - Kimmo Kansanen, NTNU, Trondheim, Norway - Gabriele Kotsis, Johannes Kepler University Linz, Austria - Marwan Krunz, University of Arizona, USA - Abbas Jamalipour, University of Sydney, Australia - Alberto L?pez Toledo, Telefonica I+D, Spain - Nick Maxemchuk, Columbia University, USA - Telemaco Melia, Alcatel Lucent, France - Vittoria Mignone, RAI Research Centre, Torino, Italy - Ana P?rez-Neira, Univ. Politecnica de Catalunya - Claude Oestges, Universit? catholique de Louvain, Belgium - Sergio Palazzo, University of Catania, Italy - L?szl? Pap, BUTE, Hungary - Dina Papagiannaki, Intel Research, USA - Josep Paradells, Technical University of Catalonia, Spain - Xavier P?rez-Costa, NEC Network Laboratories, Germany - Daji Qiao, Iowa State University, USA - Michele Rossi, University of Padua, Italy - Hans-Peter Schwefel, Aalborg University, Denmark - Isabelle Siaud, Orange Labs, France - Umberto Spagnolini, Politecnico di Milano, Italy - Erik Str?m, Chalmers University, Goteborg, Sweden - Jan Sykora, Czech Technical University in Prague, Czech Republic - Wolfgang Utschick, Technical University of M?nchen, Germany - Emmanuel Van Lil, Katholieke Universiteit Leuven, Belgium - Roberto Verdone, University of Bologna, Italy - Bernhard Walke, RWTH Aachen, Germany - J?rg Widmer, DoCoMo Euro-Labs, Germany - Adam Wolisz, Technische Universit?t Berlin, Germany - Henk Wymeersch, Massachusetts Institute of Technology, USA - Feng Xue, Intel Research, USA - Thomas Zemen, Telecommunications Research Center, Vienna, Austria - Michele Zorzi, University of Padua, Italy - Moshe Zukerman, City University of Hong Kong, Hong Kong, China - Ryuji Wakikawa, Toyota ITC, US ** AWARDS Papers bearing a PhD student as the first author will be considered for the European Wireless Best Paper Awards. Papers qualifying for the award shall be submitted to the Student Papers Co-Chairs. A special PhD Defense Workshop will be organized, with the participation of students who already have a dissertation proposal in which they outline the key issues they wish to address, along with applicable methodologies and strategies. ** CALL FOR TUTORIALS The first day of the conference will be devoted to half-day tutorials (two in parallel in the morning plus two in the afternoon) featuring a broad coverage of a specific research area. Tutorials attendance will be included in the conference subscription fee. If you wish to propose a tutorial for EW2010 then please submit your proposal (abstract, motivation, speaker?s biographies) to the Tutorial Co-Chairs by December 31, 2009. info at ew2010.org http://www.europeanwireless2010.org/ ----------------------------------------------------------- Maddalena Nurchis PhD student in Computer Science and Engineering (CSE XXIII) IMT - Institute for Advanced Studies Piazza san Ponziano 6 - 55100 Lucca - Italy e-mail: maddalena.nurchis at imtlucca.it; maddalena.nurchis at gmail.com ----------------------------------------------------------- From galaxy-huang at 163.com Tue Oct 27 04:21:27 2009 From: galaxy-huang at 163.com (galaxy-huang) Date: Tue, 27 Oct 2009 19:21:27 +0800 (CST) Subject: [ns] Please recommend a kind of IDE for ns2 in windows system In-Reply-To: References: Message-ID: <24664660.489811256642487712.JavaMail.coremail@bj163app121.163.com> hi everyone, I find it very troublesome to debug with command line, Could anyone please recommend me a kind of IDE for ns2 in windows system£¿thanks in advance! From mutiullah15 at yahoo.com Tue Oct 27 04:50:28 2009 From: mutiullah15 at yahoo.com (Mutiullah Qureshi) Date: Tue, 27 Oct 2009 04:50:28 -0700 (PDT) Subject: [ns] Cross-Layering script is not running. Message-ID: <714949.26724.qm@web110714.mail.gq1.yahoo.com> Thanks for your non-stop assistance.. To initialize exponential traffic: $ns_ at 2.0 "$exp_ $opt(start_traffic)" was giving "No such element" error. So after reading section 39.3.1, page#340 of http://www.isi.edu/nsnam/ns/doc/ns_doc.pdf , I started this way: $ns_ at 2.0 "$exp_ start" Please tell me, if I start the traffic with this command, will it affect the results? Because simulation is running well, but I doubt if any packet transmission takes place. Please find attachment mail and run the script yourself to see .nam and/or .tr files. Alternatively here are first few lines from it's trace file: M 10.00000 0 (5.00, 5.00, 0.00), (250.00, 250.00), 3.00 M 15.00000 1 (490.00, 285.00, 0.00), (45.00, 285.00), 5.00 D 20.002360649 _0_ IFQ ARP 0 exp 210 [0 0 0 800] ------- [0:0 1:0 32 0] D 20.003488759 _0_ IFQ ARP 1 exp 210 [0 0 0 800] ------- [0:0 1:0 32 0] D 20.004615909 _0_ IFQ ARP 2 exp 210 [0 0 0 800] ------- [0:0 1:0 32 0] ...and the last few lines are: D 139.996526420 _0_ IFQ --- 103457 exp 210 [0 1 0 800] ------- [0:0 1:0 32 0] D 139.997699937 _0_ IFQ --- 103458 exp 210 [0 1 0 800] ------- [0:0 1:0 32 0] D 139.998825357 _0_ IFQ --- 103459 exp 210 [0 1 0 800] ------- [0:0 1:0 32 0] D 139.999988605 _0_ IFQ --- 103460 exp 210 [0 1 0 800] ------- [0:0 1:0 32 0] Please guide me further. Thanks again. ________________________________ From: Urlan Salgado de Barros To: Mutiullah Qureshi Cc: NS-USERS Mailing List Sent: Tue, October 27, 2009 1:44:22 AM Subject: Re: [ns] Cross-Layering script is not running. Hi, Are you trying to attach ftp with udp? FTP creates two TCP connections, one for sends data and one for sends commands. Do you want to use udp or tcp? If you consider udp, do this: Remove the following code: set ftp [new Application/FTP] $ftp attach-agent $udp_ $ns at 10.0 "$ftp start" And initialize the exponential traffic, for example: $ns_ at 2.0 "$exp_ $opt(start_traffic)" $ns_ at 2.0 "$exp_ $opt(stop_traffic)" Seeya. Urlan 2009/10/26 Mutiullah Qureshi Thanks Urlan.. >This time I created the said routine and get this: > >num_nodes is set 3 >INITIALIZE THE LIST xListHead >>Error: sendmsg() for UDP should not be -1 >SORTING LISTS ...DONE! >end simulation > > > > > ________________________________ From: Urlan Salgado de Barros >To: Mutiullah Qureshi >Cc: NS-USERS Mailing List >Sent: Mon, October 26, 2009 8:52:20 PM >Subject: Re: [ns] Cross-Layering script is not running. > >>Hello Mutiullah Qureshi, > >You need to create getLL procedure. > >Node/MobileNode instproc getLL { param0} { > $self instvar ll_ > return $ll_($param0) >} > >Call this procedure with the command: >> >set ll_src_ [$node_(0) getLL 0] > >Urlan > > >2009/10/26 Mutiullah Qureshi > > >>>>Hello. >>>>Please consider the following script. I have written it for demonstrating cross-layering: >> >>>># Define options >>>>set val(chan) Channel/WirelessChannel ;# channel type >>>>set val(prop) Propagation/TwoRayGround ;# radio-propagation model >>>>set val(netif) Phy/WirelessPhy ;# network interface type >>>>set val(mac) Mac/802_11 ;# MAC type >>>>set val(ifq) Queue/DropTail/PriQueue ;# interface queue type >>>>set val(ll) LL ;# link layer type >>>>set val(ant) Antenna/OmniAntenna ;# antenna model >>>>set val(ifqlen) 50 ;# max packet in ifq >>>>set val(nn) 3 ;# number of mobilenodes >>>>set val(rp) AODV ;# routing protocol >>>>set val(x) 500 ;# X dimension of topography >>>>set val(y) 400 ;# Y dimension of topography >>>>set val(stop) 150 ;# time of simulation end >> >>>>set ns [new Simulator] >>>>set tracefd [open cros_ex1_tr.tr w] >>>>set namtrace [open cros_ex1_nam.nam w] >> >>>>$ns trace-all $tracefd >>>>$ns namtrace-all-wireless $namtrace $val(x) $val(y) >> >>>># set up topography object >>>>set topo [new Topography] >> >>>>$topo load_flatgrid $val(x) $val(y) >> >>>>create-god $val(nn) >> >>>># >>>># Create nn mobilenodes [$val(nn)] and attach them to the channel. >>>># >> >>>>set chan_1_ [new $val(chan)] >> >>>># configure the nodes >>>> $ns node-config -adhocRouting $val(rp) \ >>>> -llType $val(ll) \ >>>> -macType $val(mac) \ >>>> -channel $chan_1_ \ >>>> -ifqType $val(ifq) \ >>>> -ifqLen $val(ifqlen) \ >>>> -antType $val(ant) \ >>>> -propType $val(prop) \ >>>> -phyType $val(netif) \ >>>> -topoInstance $topo \ >>>> -agentTrace ON \ >>>> -routerTrace ON \ >>>> -macTrace OFF \ >>>> -movementTrace ON \ >> >> >>>> for {set i 0} {$i < $val(nn) } { incr i } { >>>> set node_($i) [$ns node] >>>> } >> >>>># Provide initial location of mobilenodes >>>>$node_(0) set X_ 5.0 >>>>$node_(0) set Y_ 5.0 >>>>$node_(0) set Z_ 0.0 >> >>>>$node_(1) set X_ 490.0 >>>>$node_(1) set Y_ 285.0 >>>>$node_(1) set Z_ 0.0 >> >>>>$node_(2) set X_ 150.0 >>>>$node_(2) set Y_ 240.0 >>>>$node_(2) set Z_ 0.0 >> >>>># Generation of movements >>>>$ns at 10.0 "$node_(0) setdest 250.0 250.0 3.0" >>>>$ns at 15.0 "$node_(1) setdest 45.0 285.0 5.0" >>>>$ns at 110.0 "$node_(0) setdest 480.0 300.0 5.0" >> >>>>set udp_ [new Agent/UDP] >>>>$ns attach-agent $node_(0) $udp_ >> >>>>set null [new Agent/Null] >>>>$ns attach-agent $node_(1) $null >> >>>>set exp_ [new Application/Traffic/Exponential] >> >>>>$exp_ set burst_time_ 0.01ms >>>>$exp_ set idle_time_ 0.04ms >>>>$exp_ set rate_ 1.5Mbps >>>>$exp_ attach-agent $udp_ >> >>>>$exp_ attach-agent $udp_ >>>>$ns connect $udp_ $null >> >>>>set ll_src_ [$node_(0) getLL 0] >>>>$udp_ target $ll_src_ >> >>>>set ftp [new Application/FTP] >>>>$ftp attach-agent $udp_ >>>>$ns at 10.0 "$ftp start" >> >>>># Define node initial position in nam >>>>for {set i 0} {$i < $val(nn)} { incr i } { >>>># 30 defines the node size for nam >>>>$ns initial_node_pos $node_($i) 30 >>>>} >> >>>># Telling nodes when the simulation ends >>>>for {set i 0} {$i < $val(nn) } { incr i } { >>>> $ns at $val(stop) "$node_($i) reset"; >>>>} >> >>>># ending nam and the simulation >>>>$ns at $val(stop) "$ns nam-end-wireless $val(stop)" >>>>$ns at $val(stop) "stop" >>>>$ns at 150.01 "puts \"end simulation\" ; $ns halt" >>>>proc stop {} { >>>> global ns tracefd namtrace >>>> $ns flush-trace >>>> close $tracefd >>>> close $namtrace >>>>} >> >>>>$ns run >> >> >>>>But this is the output: >> >>>>num_nodes is set 3 >>>>INITIALIZE THE LIST xListHead >> >>>> (_o14 cmd line 1) >>>> invoked from within >>>>"_o14 cmd getLL 0" >>>> invoked from within >>>>"catch "$self cmd $args" ret" >>>> invoked from within >>>>"if [catch "$self cmd $args" ret] { >>>>set cls [$self info class] >>>>global errorInfo >>>>set savedInfo $errorInfo >>>>error "error when calling class $cls: $args" $..." >>>> (procedure "_o14" line 2) >>>> (SplitObject unknown line 2) >>>> invoked from within >>>>"$node_(0) getLL 0" >>>> invoked from within >>>>"set ll_src_ [$node_(0) getLL 0]" >>>> (file "cros_ex1.tcl" line 96) >> >>>>I have read5th chapter of >>>>"Introduction to Network Simulator NS2", that explains the Connector >>>>class >>>>[http://books.google.com/books?id=cD69He_oU60C&pg=PP1&dq=Introduction+to+Network+Simulator+NS2#v=onepage&q=&f=false ] >>>> >>and also got help from Urlan [http://mailman.isi.edu/pipermail/ns-users/2009-October/066621.html] >> >>>>Please someone point out the mistake(s) or provide me with example script of your own. >>>>Thanks in advance. >> >> >> >> >> > > From wzssyqa at gmail.com Tue Oct 27 08:27:18 2009 From: wzssyqa at gmail.com (yq s) Date: Tue, 27 Oct 2009 23:27:18 +0800 Subject: [ns] nam: invalid command name "tcl_findLibrary" In-Reply-To: <17e2b7570910270816v76e660bakaa659a5e1004eae0@mail.gmail.com> References: <17e2b7570910270816v76e660bakaa659a5e1004eae0@mail.gmail.com> Message-ID: <17e2b7570910270827j64949755i204de6d0f9c0556c@mail.gmail.com> i am testing ns2 2.28 on ubuntu 9.10 AMD64 i installed ns2 from deb http://bode.cs.uni-magdeburg.de/~aherms/debian sid ns2 but it have an error nam: invalid command name "tcl_findLibrary" who can help me? From urlan at comp.ufla.br Tue Oct 27 09:08:50 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Tue, 27 Oct 2009 14:08:50 -0200 Subject: [ns] Setting Values for CWmin and CWmax In-Reply-To: References: <9bfab37d0910261955w2401c4bakd7937569eb487d52@mail.gmail.com> Message-ID: <9bfab37d0910270908m1abe5f1aq3292ec1e3a0fcc5a@mail.gmail.com> Hi, Sorry for my mistake. You have to get a object to modify the mac's atributes: set mac($nodeid) [$node_($nodeid) getMac 0] After, you will modify the atributes using $mac($nodeid). To change CWmin, you could create a command for this, for example: $mac($nodeid) setCWmin $value; or you could call the method that changes CWmin using the object, for example: $mac($nodeid) set CWmin $value; But I don't if the second manner works. Urlan 2009/10/27 Vivek Vijaya Kumar > This one shows how to set CWmin and CWmax value for the entire > simulation. But is it possible to make them node specific as in > different values for different nodes? For example, if node A always > has some higher priority data to transmit its CWmin should be lower > than the rest of the nodes. > > Vivek > > On Mon, Oct 26, 2009 at 10:55 PM, Urlan Salgado de Barros > wrote: > > Did you try to search? > > > > http://mailman.isi.edu/pipermail/ns-users/2006-April/055338.html > > > > Urlan > > > > 2009/10/26 Vivek Vijaya Kumar > >> > >> Hi, > >> I am new to NS. I am trying to setup a network with 5 nodes, 4 of > >> which are supposed to have one set for value for (CWmin, CWmax) and > >> the other node is supposed to have another set of value for (CWmin, > >> CWmax). Please suggest a method of setting these parameters in tcl. > >> > >> Thank you > >> Vivek > >> > > > > > From urlan at comp.ufla.br Tue Oct 27 09:26:14 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Tue, 27 Oct 2009 14:26:14 -0200 Subject: [ns] Cross-Layering script is not running. In-Reply-To: References: <374217.20246.qm@web110705.mail.gq1.yahoo.com> <9bfab37d0910260752r33b77c1cveaaae5b19155bc84@mail.gmail.com> <386810.24367.qm@web110703.mail.gq1.yahoo.com> <9bfab37d0910261244q19b30db3pb16a45c0d379a951@mail.gmail.com> Message-ID: <9bfab37d0910270926l30f64bc3me47c42a7d4bb727e@mail.gmail.com> Hello, 2009/10/27 Basim Javed > hello Urlan > > 1. > Could u plz explain the purpose of your procedure? I understand the > declaration and return value, but I wonder if ll_ is some special variable, > and not user defined, so that it returns a pointer to the link layer of the > self node... then why do we need to pass the parameter of node > number...because who so ever will call getLL will have the pointer of its > own link layer...well for getting link layer of other nodes, then its good > to parameterise getLL? > > Take a looking in ns2 code, I saw that ns2 is attached using objects. The directory "../tcl/lib" has some implementations and has the function to attached all objects. The pointer returned of this procedure belongs to the object created in ".../tcl/lib". So, getLL returns the pointer to LL object. > ALSO: still I am not sure what is the meaning of: > set ll_src_ [$node_(0) getLL 0] > > I don't know what the last parameter does. I have to make some tests to tell you. > 2. > Do you think ftp can be run over udp? > > FTP needs to have stream delivery service that guarantees delivery of a data stream sent from one host to another without duplication or losing data. So, TCP works with that, not UDP. > THANKS > > regards > Basim > > > Node/MobileNode instproc getLL { param0} { > $self instvar ll_ > return $ll_($param0) > } > Call this procedure with the command: > set ll_src_ [$node_(0) getLL 0] > > On Mon, Oct 26, 2009 at 8:44 PM, Urlan Salgado de Barros < > urlan at comp.ufla.br> wrote: > >> >> Hi, >> >> Are you trying to attach ftp with udp? FTP creates two TCP connections, >> one >> for sends data and one for sends commands. >> Do you want to use udp or tcp? >> >> If you consider udp, do this: >> >> Remove the following code: >> set ftp [new Application/FTP] >> $ftp attach-agent $udp_ >> $ns at 10.0 "$ftp start" >> >> And initialize the exponential traffic, for example: >> $ns_ at 2.0 "$exp_ $opt(start_traffic)" >> $ns_ at 2.0 "$exp_ $opt(stop_traffic)" >> >> Seeya. >> >> Urlan >> >> 2009/10/26 Mutiullah Qureshi >> >> > Thanks Urlan.. >> > This time I created the said routine and get this: >> > >> > num_nodes is set 3 >> > INITIALIZE THE LIST xListHead >> > Error: sendmsg() for UDP should not be -1 >> > SORTING LISTS ...DONE! >> > end simulation >> > >> > >> > ------------------------------ >> > *From:* Urlan Salgado de Barros >> > *To:* Mutiullah Qureshi >> > *Cc:* NS-USERS Mailing List >> > *Sent:* Mon, October 26, 2009 8:52:20 PM >> > *Subject:* Re: [ns] Cross-Layering script is not running. >> > >> > Hello Mutiullah Qureshi, >> > >> > You need to create getLL procedure. >> > >> > Node/MobileNode instproc getLL { param0} { >> > $self instvar ll_ >> > return $ll_($param0) >> > } >> > >> > Call this procedure with the command: >> > set ll_src_ [$node_(0) getLL 0] >> > >> > Urlan >> > >> > 2009/10/26 Mutiullah Qureshi >> > >> >> >> >> Hello. >> >> Please consider the following script. I have written it for >> demonstrating >> >> cross-layering: >> >> >> >> # Define options >> >> set val(chan) Channel/WirelessChannel ;# channel type >> >> set val(prop) Propagation/TwoRayGround ;# radio-propagation >> >> model >> >> set val(netif) Phy/WirelessPhy ;# network interface >> >> type >> >> set val(mac) Mac/802_11 ;# MAC type >> >> set val(ifq) Queue/DropTail/PriQueue ;# interface queue >> type >> >> set val(ll) LL ;# link layer type >> >> set val(ant) Antenna/OmniAntenna ;# antenna model >> >> set val(ifqlen) 50 ;# max packet in ifq >> >> set val(nn) 3 ;# number of >> >> mobilenodes >> >> set val(rp) AODV ;# routing protocol >> >> set val(x) 500 ;# X dimension of >> topography >> >> set val(y) 400 ;# Y dimension of >> topography >> >> set val(stop) 150 ;# time of simulation end >> >> >> >> set ns [new Simulator] >> >> set tracefd [open cros_ex1_tr.tr w] >> >> set namtrace [open cros_ex1_nam.nam w] >> >> >> >> $ns trace-all $tracefd >> >> $ns namtrace-all-wireless $namtrace $val(x) $val(y) >> >> >> >> # set up topography object >> >> set topo [new Topography] >> >> >> >> $topo load_flatgrid $val(x) $val(y) >> >> >> >> create-god $val(nn) >> >> >> >> # >> >> # Create nn mobilenodes [$val(nn)] and attach them to the channel. >> >> # >> >> >> >> set chan_1_ [new $val(chan)] >> >> >> >> # configure the nodes >> >> $ns node-config -adhocRouting $val(rp) \ >> >> -llType $val(ll) \ >> >> -macType $val(mac) \ >> >> -channel $chan_1_ \ >> >> -ifqType $val(ifq) \ >> >> -ifqLen $val(ifqlen) \ >> >> -antType $val(ant) \ >> >> -propType $val(prop) \ >> >> -phyType $val(netif) \ >> >> -topoInstance $topo \ >> >> -agentTrace ON \ >> >> -routerTrace ON \ >> >> -macTrace OFF \ >> >> -movementTrace ON \ >> >> >> >> >> >> for {set i 0} {$i < $val(nn) } { incr i } { >> >> set node_($i) [$ns node] >> >> } >> >> >> >> # Provide initial location of mobilenodes >> >> $node_(0) set X_ 5.0 >> >> $node_(0) set Y_ 5.0 >> >> $node_(0) set Z_ 0.0 >> >> >> >> $node_(1) set X_ 490.0 >> >> $node_(1) set Y_ 285.0 >> >> $node_(1) set Z_ 0.0 >> >> >> >> $node_(2) set X_ 150.0 >> >> $node_(2) set Y_ 240.0 >> >> $node_(2) set Z_ 0.0 >> >> >> >> # Generation of movements >> >> $ns at 10.0 "$node_(0) setdest 250.0 250.0 3.0" >> >> $ns at 15.0 "$node_(1) setdest 45.0 285.0 5.0" >> >> $ns at 110.0 "$node_(0) setdest 480.0 300.0 5.0" >> >> >> >> set udp_ [new Agent/UDP] >> >> $ns attach-agent $node_(0) $udp_ >> >> >> >> set null [new Agent/Null] >> >> $ns attach-agent $node_(1) $null >> >> >> >> set exp_ [new Application/Traffic/Exponential] >> >> >> >> $exp_ set burst_time_ 0.01ms >> >> $exp_ set idle_time_ 0.04ms >> >> $exp_ set rate_ 1.5Mbps >> >> $exp_ attach-agent $udp_ >> >> >> >> $exp_ attach-agent $udp_ >> >> $ns connect $udp_ $null >> >> >> >> set ll_src_ [$node_(0) getLL 0] >> >> $udp_ target $ll_src_ >> >> >> >> set ftp [new Application/FTP] >> >> $ftp attach-agent $udp_ >> >> $ns at 10.0 "$ftp start" >> >> >> >> # Define node initial position in nam >> >> for {set i 0} {$i < $val(nn)} { incr i } { >> >> # 30 defines the node size for nam >> >> $ns initial_node_pos $node_($i) 30 >> >> } >> >> >> >> # Telling nodes when the simulation ends >> >> for {set i 0} {$i < $val(nn) } { incr i } { >> >> $ns at $val(stop) "$node_($i) reset"; >> >> } >> >> >> >> # ending nam and the simulation >> >> $ns at $val(stop) "$ns nam-end-wireless $val(stop)" >> >> $ns at $val(stop) "stop" >> >> $ns at 150.01 "puts \"end simulation\" ; $ns halt" >> >> proc stop {} { >> >> global ns tracefd namtrace >> >> $ns flush-trace >> >> close $tracefd >> >> close $namtrace >> >> } >> >> >> >> $ns run >> >> >> >> >> >> But this is the output: >> >> >> >> num_nodes is set 3 >> >> INITIALIZE THE LIST xListHead >> >> >> >> (_o14 cmd line 1) >> >> invoked from within >> >> "_o14 cmd getLL 0" >> >> invoked from within >> >> "catch "$self cmd $args" ret" >> >> invoked from within >> >> "if [catch "$self cmd $args" ret] { >> >> set cls [$self info class] >> >> global errorInfo >> >> set savedInfo $errorInfo >> >> error "error when calling class $cls: $args" $..." >> >> (procedure "_o14" line 2) >> >> (SplitObject unknown line 2) >> >> invoked from within >> >> "$node_(0) getLL 0" >> >> invoked from within >> >> "set ll_src_ [$node_(0) getLL 0]" >> >> (file "cros_ex1.tcl" line 96) >> >> >> >> I have read5th chapter of >> >> "Introduction to Network Simulator NS2", that explains the Connector >> >> class >> >> [ >> >> >> http://books.google.com/books?id=cD69He_oU60C&pg=PP1&dq=Introduction+to+Network+Simulator+NS2#v=onepage&q=&f=false >> ] >> >> and also got help from Urlan [ >> >> http://mailman.isi.edu/pipermail/ns-users/2009-October/066621.html] >> >> >> >> Please someone point out the mistake(s) or provide me with example >> >> script of your own. >> >> Thanks in advance. >> >> >> >> >> >> >> >> >> >> >> > >> > >> > > From udit.vlsi at gmail.com Tue Oct 27 11:36:28 2009 From: udit.vlsi at gmail.com (Udit Kumar) Date: Wed, 28 Oct 2009 00:06:28 +0530 Subject: [ns] Running NS2 from C File In-Reply-To: <549809.80830.qm@web45202.mail.sp1.yahoo.com> References: <345fa6f10910241017k3690e943qb11afc6fa667f5d3@mail.gmail.com> <549809.80830.qm@web45202.mail.sp1.yahoo.com> Message-ID: <345fa6f10910271136t5a6390cdr97efaa46bdb83286@mail.gmail.com> Hi Amir, Thanks a lot, It works for you, Thank you very much. Thanks & Regards, Udit Kumar On Sun, Oct 25, 2009 at 12:20 PM, amir adelipour wrote: > Hi Udit, > you can use cammand "system()" to run nus2 inside C file. > like this: system(ns); > Regards > Amir > > --- On *Sat, 10/24/09, Udit Kumar * wrote: > > > From: Udit Kumar > Subject: [ns] Running NS2 from C File > To: "ns-users" > Date: Saturday, October 24, 2009, 8:47 PM > > > > Hi Friends, > > I have one program in C and I am writting topology file for NS2 from my C > program. Now once topology file is written I want to run NS2 from/inside C > programme to get some result from NS2 run, Is it possible to run NS2 from C > file. > > Please help me. > > Please give me some idea for this. > > Thanks & Regards, > Udit Kumar > > > From radwanbr at hotmail.com Tue Oct 27 15:50:58 2009 From: radwanbr at hotmail.com (rad ab) Date: Tue, 27 Oct 2009 22:50:58 +0000 Subject: [ns] Hello packet Message-ID: Dear friends, I am working on link state protocol, and I am reading the code but I didn't find the Hello packets function? Can anyone tell me in which version can I find the Hello packet or if someone know about it can you please help me Regards Rawan From mutiullah15 at yahoo.com Wed Oct 28 02:30:34 2009 From: mutiullah15 at yahoo.com (Mutiullah Qureshi) Date: Wed, 28 Oct 2009 02:30:34 -0700 (PDT) Subject: [ns] What do the fields in trace file denote? Message-ID: <581202.37619.qm@web110709.mail.gq1.yahoo.com> Below are lines from a trace file: M 60.00000 0 (111.07, 111.07, 0.00), (480.00, 300.00), 5.00 D 100.002360649 _0_ IFQ ARP 0 exp 210 [0 0 0 800] ------- [0:0 1:0 32 0] r 100.013953435 _1_ AGT --- 2 exp 210 [13a 1 0 800] ------- [0:0 1:0 32 0] Please tell me what do the fields represent? Specially "M" in the first line; "D", "IFQ", "ARP" and "exp" in the second line; and "r" and "AGT" in the third line. Thanks. From urlan at comp.ufla.br Wed Oct 28 07:00:07 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Wed, 28 Oct 2009 12:00:07 -0200 Subject: [ns] What do the fields in trace file denote? In-Reply-To: <581202.37619.qm@web110709.mail.gq1.yahoo.com> References: <581202.37619.qm@web110709.mail.gq1.yahoo.com> Message-ID: <9bfab37d0910280700r4c11c5efjb31cb53f7447a0f8@mail.gmail.com> Hi, 2009/10/28 Mutiullah Qureshi > > Below are lines from a trace file: > M 60.00000 0 (111.07, 111.07, 0.00), (480.00, 300.00), 5.00 > D 100.002360649 _0_ IFQ ARP 0 exp 210 [0 0 0 800] ------- [0:0 1:0 32 0] > r 100.013953435 _1_ AGT --- 2 exp 210 [13a 1 0 800] ------- [0:0 1:0 32 0] > > Please tell me what do the fields represent? Specially "M" in the first > line; "D", "IFQ", "ARP" and "exp" in the second line; and "r" and "AGT" in > the third line. > > First line: M -> moviment Second line: D -> drop IFQ -> queue ARP -> Address Resolution Protocol exp -> exponential packet Third line r -> receive AGT -> agent If you are beginning, you must read ns2 documentation: www.isi.edu/nsnam/ns/*doc*/ns_*doc*.pdf Thanks. > > _________________________________________________ Urlan Salgado de Barros MSc. Student in Applied Informatics Member of NR2 Group Federal University of Paran? - Curitiba - Brazil URL: From urlan at comp.ufla.br Wed Oct 28 07:35:08 2009 From: urlan at comp.ufla.br (Urlan Salgado de Barros) Date: Wed, 28 Oct 2009 12:35:08 -0200 Subject: [ns] Re : How to set priority for packet (thangnd) In-Reply-To: <956639.11495.qm@web27605.mail.ukl.yahoo.com> References: <9bfab37d0910260746p1658f908wcdb3f2cac121c6e1@mail.gmail.com> <956639.11495.qm@web27605.mail.ukl.yahoo.com> Message-ID: <9bfab37d0910280735g66823a24h415a60c661945a44@mail.gmail.com> Hi, 2009/10/27 aoufi souhila > Dear Urlan > A have read the contribution for 'How to evaluate MPEG video transmission > using the NS2 simulator?' that is very important. but I have found that the > link 'An example for video transmission over wireless network' does not > work. > > Did you take a look in two methods shown at the link http://hpds.ee.ncku.edu.tw/~smallko/ns2/Evalvid_in_NS2.htm? Others Evalvid links: http://www.item.ntnu.no/~arnelie/Evalvid-RA.htm http://www.tkn.tu-berlin.de/research/evalvid/ http://www.ietf.org/mail-archive/web/dccp/current/msg02753.html Just google it! =) I am interested in the differentiation of service in NS but in wireless > networks, I found the DiffServ module in NS but it is only wired network > oriented > My question is how to apply this module on wireless networks? > How to configure the wireless node to edge node or core node? > Can you give me a sample tcl file that configures the wireless nodes with > DiffServ? > Sorry, but I don't have those samples. > How to mark packets? > Like Evalvid. Evalvid does what you need. > must we define another policy for wireless nodes? > Please, Your response is very important for me > waiting for reply > Best regards > Aoufi souhila > > > --- En date de : Lun 26.10.09, Urlan Salgado de Barros > a ?crit : > > > De: Urlan Salgado de Barros > > Objet: Re: [ns] Re : How to set priority for packet (thangnd) > > ?: "aoufi souhila" > > Cc: ns-users at isi.edu > > Date: Lundi 26 Octobre 2009, 15h46 > > Hi, > > > > Evalvid works with priority for each packet. > > > > http://hpds.ee.ncku.edu.tw/~smallko/ns2/Evalvid_in_NS2.htm > > > > Urlan > > > > > > 2009/10/25 aoufi souhila > > > > > > > > Hi > > > > to set priority for packet, you need just to modify the > > field prio_ of the ip packet header, like this: > > > > iph = hdr_ip::access(pkt); //ip packet header > > > > iph->prio_ = codePt; // codePt: the code of > > priority > > > > hope that answer for your question > > > > > Message: 6 > > > > > Date: Sat, 24 Oct 2009 22:40:44 +0700 > > > > > From: thangnd > > > > > Subject: [ns] How to set priority for packet > > > > > To: ns-users at ISI.EDU > > > > > Message-ID: <4AE31FFC.3010706 at joomservices.com> > > > > > Content-Type: text/plain; charset=ISO-8859-1; > > > > > format=flowed > > > > > > > > > > Hi all, > > > > > I have a question, how to set priority for packet in > > NS-2 > > > > > using in WSN. > > > > > Thanks for help. > > > > > > > > > Best regards. -- _________________________________________________ Urlan Salgado de Barros MSc. Student in Applied Informatics Member of NR2 Group Federal University of Paran? - Curitiba - Brazil URL: From daniel.anguita at gmail.com Wed Oct 28 09:36:27 2009 From: daniel.anguita at gmail.com (Daniel Anguita) Date: Wed, 28 Oct 2009 13:36:27 -0300 Subject: [ns] identifying per application packets, not per agent In-Reply-To: <5155927d0910232026i5d728dbpbbf1b10d0d69b55b@mail.gmail.com> References: <5155927d0910232026i5d728dbpbbf1b10d0d69b55b@mail.gmail.com> Message-ID: <5155927d0910280936t3bcc3ccfwe77645b5ef94914d@mail.gmail.com> is there a way to put a flag on each packet? a per flow flag. For example, if we have a video streaming and a messaging over TCP. Can we add an extra flag [V] for video and [M] for each packet sended by the applications over the same agent? Or i'll need to hack the ns2 source code at a C++ level? Thanks 2009/10/24 Daniel Anguita > It's possible to identify with a flag or something the packets being send > from an Application/Telnet? not by Agent. > > I have a emulation with two SCTP Agents, one on each node, to send data in > both ways. > And I add four Application/Telnet, each emulating a real world application. > > I need to analyze the trace files or nam files per application data flow, > but the problem is that i can't figure out how to distinguish packets of > each application. > I'm doing this test, because i want to prove that SCTP can balance several > streaming better than TCP. And maybe later add a priority algorithm to SCTP > and test again. > But how to distringuish each application flow????? > > Thanks a lot! > bye > > -- > Atte. > Daniel Anguita O. > UTFSM Student > From sashtari at sce.carleton.ca Wed Oct 28 10:04:40 2009 From: sashtari at sce.carleton.ca (sashtari@sce.carleton.ca) Date: Wed, 28 Oct 2009 13:04:40 -0400 Subject: [ns] question regarding In-Reply-To: References: Message-ID: Hello everybody I have a question about Mac header. When we define some nodes in tcl code, I checked and saw that their node IDs are used as source mac address(macSA) and destination mac address(macDA). (I've gotten these results by adding a fprintf command in mac802-3.cc.) Now, my question is where(in which c++ code) these IDS are assigned as macSA and macDA. regards Saeideh From sashtari at sce.carleton.ca Wed Oct 28 10:17:23 2009 From: sashtari at sce.carleton.ca (sashtari@sce.carleton.ca) Date: Wed, 28 Oct 2009 13:17:23 -0400 Subject: [ns] question regarding mac header in ns2 Message-ID: <2a57739c729a7a97a7514de6fa9a2ce7.squirrel@webmail.sce.carleton.ca> Hello everybody I have a question about Mac header. When we define some nodes in tcl code, I checked and saw that their node IDs are used as source mac address(macSA) and destination mac address(macDA). (I've gotten these results by adding a fprintf command in mac802-3.cc.) Now, my question is where(in which c++ code) these IDS are assigned as macSA and macDA. regards Saeideh From mt57 at njit.edu Wed Oct 28 10:40:01 2009 From: mt57 at njit.edu (manoop talasila) Date: Wed, 28 Oct 2009 13:40:01 -0400 Subject: [ns] global array Message-ID: Hi NSusers, I am trying to use a global array to store some info that is reported by each wireless node and later will use this stored info for processing some data when any other node request for it. To implement this scenario, where do I declare the global array? so that till the end of simulation any node can access the reported info from this array. -- Regards, Manoop Talasila Ph.D. student CS Dept, NJIT Phone: 732-789-7165 Email: mt57 at njit.edu From albane.delos at gmail.com Wed Oct 28 10:59:27 2009 From: albane.delos at gmail.com (Albane Delos) Date: Wed, 28 Oct 2009 18:59:27 +0100 Subject: [ns] Problem compiling ns-2.34 with eclipse Galileo under ubuntu Message-ID: <7c167b530910281059m39c0efaar82a617514df3ceca@mail.gmail.com> Hi all, I am currently trying to make ns-2.34 work in Eclipse Galileo. Without Eclipse it works and compiles just fine but in Eclipse I have the following errors: make all Building file: ../ns_tclsh.cc Invoking: GCC C++ Compiler g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"ns_tclsh.d" -MT"ns_tclsh.d" -o"ns_tclsh.o" "../ns_tclsh.cc" Dans le fichier inclus ? partir de ../ns_tclsh.cc:28: ../config.h:60:19: attention : tclcl.h : Aucun fichier ou dossier de ce type (No file or directory) ../ns_tclsh.cc:34: erreur: ?Tcl_Interp? was not declared in this scope ../ns_tclsh.cc:34: erreur: ?interp? was not declared in this scope ../ns_tclsh.cc:35: erreur: expected ?,? or ?;? before ?{? token ../ns_tclsh.cc: In function ?int main(int, char**)?: ../ns_tclsh.cc:52: erreur: ?Tcl_Main? was not declared in this scope make: *** [ns_tclsh.o] Erreur 1 I work with ns-2.34 under Ubuntu 9.04. The workspace for eclipse is ns-allinone-2.34. And the project directory is ns-2.34. I am guessing the compiler can't find the file tclcl.h because it is not actually in the project directory but I can't figure out how to resolve the problem. My environment variables LD_LIBRARY_PATH, and TCL_LIBRARY are well set. I have been looking everywhere but couldn't find anything that would have helped me. Thanks for your time and answer. Albane -- Albane Delos +34 693 902 686 ?tudiante ? l'INSA de Lyon, d?partement T?l?communications, Services et Usages ?tudiante ? l'UPC Barcelona, ETSETB (Escola T?cnica Superior d'Enginyeria de Telecomunicacions de Barcelona) ?tudiante ? l'UPC Barcelona, Master of Science in Information and Communication Technologies From hamideh_cheraghchi at yahoo.com Wed Oct 28 21:45:10 2009 From: hamideh_cheraghchi at yahoo.com (hamide cheraghchi) Date: Wed, 28 Oct 2009 21:45:10 -0700 (PDT) Subject: [ns] step by step debugging in C++,function not defined! Message-ID: <219778.27021.qm@web36903.mail.mud.yahoo.com> Hi I'm using ns2 with gdb and i've installed ddd, i use gdb to find my segmentation fault error. but i'd like to have a step by step debugging through my c++ code that is a new extention to ns2, but it doesnt work . i'm not able to insert breakpoint, it's written that you should use something like this in gdb) b 'classname::functionname()? but when i try it ,it says function? is not defined. in ddd it's worse, it doesnt show source code, i dont know how to work with it,please help me. thx in advance From hamideh_cheraghchi at yahoo.com Wed Oct 28 22:03:57 2009 From: hamideh_cheraghchi at yahoo.com (hamide cheraghchi) Date: Wed, 28 Oct 2009 22:03:57 -0700 (PDT) Subject: [ns] identifying per application packets, not per agent In-Reply-To: <5155927d0910280936t3bcc3ccfwe77645b5ef94914d@mail.gmail.com> Message-ID: <408275.23322.qm@web36902.mail.mud.yahoo.com> ?i set priority for my routing protocol by hacking ns2 code llike this: ?i bind a priority variable to udp.cc ,?bind("packetPrio_", &prio_); and in file void UdpAgent::sendmsg(int nbytes, AppData* data, const char* flags) { ?Packet *p; ?int n; ?assert (size_ > 0); ?assert (prio_ >= 0); ?n = nbytes / size_; ?if (nbytes == -1) { ??printf("Error:? sendmsg() for UDP should not be -1\n"); ??return; ?}? ?// If they are sending data, then it must fit within a single packet. ?if (data && nbytes > size_) { ??printf("Error: data greater than maximum UDP packet size\n"); ??return; ?} ?double local_time = Scheduler::instance().clock(); ?while (n-- > 0) { ??p = allocpkt(); ??hdr_cmn::access(p)->size() = size_; ??///*********change added ??hdr_ip::access(p)->prio() = prio_; //// *********end of change ? so now priority is set in prio() function of ip header from application. now you can add to file CMUTrace::format_ip(Packet *p, int offset) in cmutrace.cc this field so you can track priority in your?trace file like this: CMUTrace::format_ip(Packet *p, int offset) { ?if (pt_->tagged()) { ??sprintf(pt_->buffer() + offset, ???"-IP:s %d -IP:sp %d -IP:d %d -IP:dp %d -p %s -e %d -p %d " ???"-c %d -i %d -IP:ttl %d ", ???src,?????????????????????????? // packet src ???ih->sport(),?????????????????? // src port ???dst,?????????????????????????? // packet dest ???ih->dport(),?????????????????? // dst port ???packet_info.name(ch->ptype()), // packet type ???ch->size(),??????????????????? // packet size ???ih->flowid(),????????????????? // flow id ???ch->uid(),???????????????????? // unique id ???ih->ttl_?????????????????????? // ttl ???ih->prio()?????//priority? //added?*********** ???); ?} else if (newtrace_) { ???? sprintf(pt_->buffer() + offset, ????? "-Is %d.%d -Id %d.%d -It %s -Il %d -If %d -Ii %d -Iv %d -Ip %d ", ????? src,?????????????????????????? // packet src ????? ih->sport(),?????????????????? // src port ????? dst,?????????????????????????? // packet dest ????? ih->dport(),?????????????????? // dst port ????? packet_info.name(ch->ptype()),? // packet type ????? ch->size(),???????????????????? // packet size ????? ih->flowid(),?????????????????? // flow id ????? ch->uid(),????????????????????? // unique id ????? ih->ttl_,????????????????????? // ttl ???ih->prio()?????//priority? //added ****** ? i did it like this,i'm newbie to ns2, maybe there's a btter way,so let me know,in fact i added it to traffic file. i hope?it helps you and saves some time:). ? hamide ? ? --- On Wed, 10/28/09, Daniel Anguita wrote: From: Daniel Anguita Subject: Re: [ns] identifying per application packets, not per agent To: ns-users at ISI.EDU Date: Wednesday, October 28, 2009, 9:36 AM is there a way to put a flag on each packet? a per flow flag. For example, if we have a video streaming and a messaging over TCP. Can we add an extra flag [V] for video and [M] for each packet sended by the applications over the same agent? Or i'll need to hack the ns2 source code at a C++ level? Thanks 2009/10/24 Daniel Anguita > It's possible to identify with a flag or something the packets being send > from an Application/Telnet? not by Agent. > > I have a emulation with two SCTP Agents, one on each node, to send data in > both ways. > And I add four Application/Telnet, each emulating a real world application. > > I need to analyze the trace files or nam files per application data flow, > but the problem is that i can't figure out how to distinguish packets of > each application. > I'm doing this test, because i want to prove that SCTP can balance several > streaming better than TCP. And maybe later add a priority algorithm to SCTP > and test again. > But how to distringuish each application flow????? > > Thanks a lot! > bye > > -- > Atte. > Daniel Anguita O. > UTFSM Student > From jeni_m110 at yahoo.com Thu Oct 29 06:29:05 2009 From: jeni_m110 at yahoo.com (jeni martin) Date: Thu, 29 Oct 2009 06:29:05 -0700 (PDT) Subject: [ns] installing Ns Message-ID: <539050.93577.qm@web110305.mail.gq1.yahoo.com> hi all, i tried to install ns on redhat 7.2, it's ok with tcl8.3.2 but when i try to install tk8.3.2, it gives me along list of warnings and errors, end with: "/root/.gnome-desktop/ns/tk8.3.2/unix/../generic/tk3d.c:1398: 'objptr' undeclared (first use in this function) /root/.gnome-desktop/ns/tk8.3.2/unix/../generic/tk3d.c:1407:warning: control reachesend of non-void function /root/.gnome-desktop/ns/tk8.3.2/unix/../generic/tk3d.c:At top level: /root/.gnome-desktop/ns/tk8.3.2/unix/../generic/tk3d.c:1131: storage size of 'shift table' isn't known /root/.gnome-desktop/ns/tk8.3.2/unix/../generic/tk3d.c:30: warning: 'BorderInit' used but never defined /root/.gnome-desktop/ns/tk8.3.2/unix/../generic/tk3d.c:34: warning:'Intersect' declared 'static' but never defined /root/.gnome-desktop/ns/tk8.3.2/unix/../generic/tk3d.c:37: warning: 'shiftline' declared 'static' but never defined make ***[tk3d.0] Error 1 ? ? From mt57 at njit.edu Thu Oct 29 06:49:20 2009 From: mt57 at njit.edu (manoop talasila) Date: Thu, 29 Oct 2009 09:49:20 -0400 Subject: [ns] global array In-Reply-To: References: Message-ID: Hi Basim, Thanks for the reply. In my design I need to store this global info in Central Authority(CA). So, may be I can create a new node in my TCL script which will act as CA. 1. But, how do I specify this array for a single node (CA)? - Do I need to create a new agent with the Array & access functions. - And then attach this agent to the CA node? Please let me know if my understanding is right. On Thu, Oct 29, 2009 at 12:08 AM, Basim Javed wrote: > hi Manoop > > since u want to use the info reported by the wireless nodes, hence i > suggest to declare some class/object in the MAC layer...but then in which > node's mac layer... the answer to this question comes from your > design...where u would store this info in a real wireless network? > > rdgs > basim > > > On Wed, Oct 28, 2009 at 6:40 PM, manoop talasila wrote: > > >> Hi NSusers, >> >> I am trying to use a global array to store some info that is reported by >> each wireless node and later will use this stored info for processing some >> data when any other node request for it. >> >> To implement this scenario, where do I declare the global array? so that >> till the end of simulation any node can access the reported info from this >> array. >> >> -- >> Regards, >> Manoop Talasila >> Ph.D. student >> CS Dept, NJIT >> Phone: 732-789-7165 >> Email: mt57 at njit.edu >> >> > > -- Regards, Manoop Talasila Ph.D. student CS Dept, NJIT Phone: 732-789-7165 Email: mt57 at njit.edu From calafate at disca.upv.es Thu Oct 29 11:12:45 2009 From: calafate at disca.upv.es (Carlos T. Calafate) Date: Thu, 29 Oct 2009 19:12:45 +0100 Subject: [ns] IEEE Vehi-Mobi 2010: submission open & deadline extension Message-ID: <4AE9DB1D.4090906@disca.upv.es> -------------------------------------------------------------------------------- CALL FOR PAPERS IEEE Vehicular Networks & Applications Workshop (IEEE Vehi-Mobi 2010) Co-located with IEEE International Conference on Communications (ICC 2010) 23-27 May 2010, Cape Town, South Africa Web page: http://www.grc.upv.es/vehimobi2010/ IMPORTANT DATES -------------------------------------------------------------------------------- Extended Paper Submission Deadline: November 10, 2009 Notification of Acceptance: January 10, 2010 Camera-Ready Submissions: February 10, 2010 Workshop celebration date: To Be Defined -------------------------------------------------------------------------------- Papers submitted to IEEE ICC 2010 workshops with publication must undergo a peer-review process, and accepted papers will be published in IEEE Xplore. -------------------------------------------------------------------------------- AIMS AND SCOPE Vehicle Infrastructure Integration (VII) has been growing rapidly in importance in the past few years. Even despite the global economic downturn that has hit the car industry hard, research continues in this area, as new technical challenges have evolved that demand research and development. Industry players like the automobile companies, and government agencies, like the US Department of Transportation, are investing heavily in research and development in VII. Technologies and applications for VII are rapidly emerging, and there is an critical need to bring together researchers & engineers, academia and industry, standards, private and public sectors, to exchange ideas. This workshop is intended to serve as a forum and bring together the researchers and engineers in both academia and industry to exchange ideas, share experiences, and report original work about all aspects of vehicular communications, VANETs, information dissemination, road safety, ITS, emergency services, etc.. The main purpose is to promote discussions of research and relevant activities in the design of architectures, algorithms, and applications for inter-vehicular communication environments. This workshop will also address some leading standardization efforts (802.11p, p1609, TIA TR48, etc.). Work in progress is also welcome. Key industrial players (GM, Toyota, Telcordia, BMW, etc.) will be represented at this workshop. PAPER SUBMISSION Please, submit your papers through EDAS. Papers should be written in English with a standard length of five (5) printed pages (10-point font) including figures, without incurring additional page charges (maximum 1 additional page with extra charge if accepted). You may use the standard IEEE Transactions templates for Microsoft Word or LaTeX formats found at http://www.ieee.org/portal/pages/pubs/transactions/stylesheets.html. Alternatively you can follow the sample instructions in template.pdf at http://www.comsoc.org/confs/globecom/2008/template.pdf. Only PDF files are accepted for paper review. You submitted PDF file and registered EDAS account of a paper must list the same author(s), title and abstract (minor wording differences in the abstract are ok). Papers where the PDF and EDAS account do not match the author(s), title, and/or abstract will be withdrawn by the Technical Program Co-Chairs or Symposium Co-Chairs. TOPICS Technical research papers are solicited in the following areas: - Network technologies for VII - New application scenarios of VII - Supporting technology for: Traffic and flow control issues and applications - Supporting technology for: Enhanced braking information dissemination and other road safety applications - Supporting technology for: driver assistance applications - MAC, routing, QoS, addressing, multicast, TCP protocols - Congestion Control and Cooperative VANETs - Mobility and handoff issues - Sensors & Data Collection - Content Distribution - Inter-car communications - Intra-car communications - Info Dissemination; Data organization - Security issues, architectures and solutions - Privacy issues and solutions - Data replication protocols in network partitions - Different technologies (DSRC, WiMAX, WiFi, 3G/4G, cell phone) - Application innovation - 802.11p WAVE ; 802.11s MESH; DSRC - Implementation/deployment status - Network Management for VII EXECUTIVE COMMITEE --------------------------------------------------------------------------------- General Chairs - Dr. Russell Hsing, Telcordia Technologies, USA - Prof. C.K. Toh, University of Hong Kong, CHINA General Vice Chairs - Dr. Daniel Wong, Daniel Wireless LLC, USA - Prof. Pietro Manzoni, Universidad Politecnica De Valencia, SPAIN TPC Chair - Prof. Teruo Higashino Osaka University, Japan TPC Vice Chairs - Dr. Timo Sukuvaara, Finland - Prof. Michele Weigle, Old Dominion Univ, USA - Prof. Juan-Carlos Cano, Universidad Politecnica De Valencia, SPAIN Publications Chair - Prof. Lingyang Song, Peking University, China Publicity Chair - Prof Carlos Calafate, Universidad Politecnica De Valencia, SPAIN Steering Committee - Dr. Russell Hsing, Telcordia Technologies, USA - Prof. C.K. Toh, University of Hong Kong, CHINA - Dr. Daniel Wong, Daniel Wireless LLC, USA - Prof. D K Kim, Kyungpook National University, KOREA --------------------------------------------------------------------------------- ****************************************** Carlos Calafate, PhD Vehi-Mobi 2010 Publicity Chair Computer Networks Group (GRC) Technical University of Valencia, Spain Voice: +34 96 387 7007 ext. 75727 Fax: +34 96 387 7579 E-mail: calafate at disca.upv.es ****************************************** From adel.belkhiri at hotmail.com Thu Oct 29 15:43:09 2009 From: adel.belkhiri at hotmail.com (adel belkhiri) Date: Thu, 29 Oct 2009 23:43:09 +0100 Subject: [ns] Problems with Puma protocol Message-ID: Hello friends, I'm encountering some issues with Puma protocol...In fact I have added this protocol to my ns2.33 installation but when I tested it with the "Valgrind" tool I have noticed that the implementation suffer from memory leaks !!! also it present some others issues when I want to access the packet header reserved for my agent (some attributes of the header are set to zero !!). This seems strange for me because these problems doesn't exist when I use other routing protocol such as AODV or DSDV !!! I don't know if someone have noticed these problems and have corrected it. Please don't hesitate to write to me. I'll be grateful if you could help me and many thanks for advance. Sincerely / Adel Belkhiri. _________________________________________________________________ Windows Live: Make it easier for your friends to see what you?re up to on Facebook. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009 From konstaek at yahoo.gr Fri Oct 30 02:52:44 2009 From: konstaek at yahoo.gr (Matzaridis Constantinos) Date: Fri, 30 Oct 2009 09:52:44 +0000 (GMT) Subject: [ns] MRSVP & M-YESSIR...HELP!!! Message-ID: <747240.78131.qm@web28611.mail.ukl.yahoo.com> Hello everybody, I'm student and i have to make a project to compare two protocols in NS2, MRSVP and M-YESSIR. Does anybody knows were i can find that patches? Thanks a lot. Constantine ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From shaileshmota1234 at gmail.com Fri Oct 30 03:55:32 2009 From: shaileshmota1234 at gmail.com (shailesh mota) Date: Fri, 30 Oct 2009 16:25:32 +0530 Subject: [ns] Seeking help for ns2.1b6 with mobiwan patch Message-ID: <5f7588d0910300355p46465287p93488deb8f5c4805@mail.gmail.com> Hi I am Shailesh Mota , 7th semester, NITK surathkal (India). I am a newbie in the field of network simulators. I want to install ns2.1b6 for my Project "Binding cache management during handover in MIPv6, for Route Optimization". I have been struggling to install it on ubuntu 9.04. I have tried all instruction on net for ns2.1b6 installation. I am confused amidst versions of fedora/linux distribution that support ns2.1b6 for smooth installation. PLease help.... Regards Shailesh Mota Under Graduate Student Department of information Technology National Institue of Technology,Karnataka From mutiullah15 at yahoo.com Fri Oct 30 05:22:15 2009 From: mutiullah15 at yahoo.com (Mutiullah Qureshi) Date: Fri, 30 Oct 2009 05:22:15 -0700 (PDT) Subject: [ns] cannot see .nam or .tr of /ns-allinone-2.32/ns-2.32/aodv/aodv.tcl script Message-ID: <714833.94403.qm@web110704.mail.gq1.yahoo.com> Hi, I want to know about the script aodv.tcl found in /ns-allinone-2.32/ns-2.32/aodv/ directory. This script is very different from other mobile nodes' scripts usually found in tutorials and menus etc. This scripts runs with no errors if we replace all occurrences of Agent/rtProto/AODV with Agent/AODV. I want to know what is the purpose of this script and how to view it's .nam and .tr files. Regards. From serena.dacquisto at libero.it Fri Oct 30 09:08:09 2009 From: serena.dacquisto at libero.it (serena.dacquisto@libero.it) Date: Fri, 30 Oct 2009 17:08:09 +0100 (CET) Subject: [ns] difference between simulator and simulator instance Message-ID: <17765947.1518711256918889826.JavaMail.defaultUser@defaultHost> Hi all, is command new Simulator the same as Simulator instance? set ns [Simulator instance] set ns [new Simulator] thanks in advance From jeni_m110 at yahoo.com Fri Oct 30 09:43:30 2009 From: jeni_m110 at yahoo.com (jeni martin) Date: Fri, 30 Oct 2009 09:43:30 -0700 (PDT) Subject: [ns] installing problem Message-ID: <422018.80323.qm@web110307.mail.gq1.yahoo.com> when i want to install ns-2.1b8-mcast, i typed ./configure every thing seems to be ok! and it gives me : creating makefile creating autoconf.h and something else the problem is when i type make or make all, it gives me: "for i in indep-utils/cmu-scen-gen/setdest indeputils/webtrace-conv/dec indep-utils/webtrace-conv/nlanr indep-utils/webtrace-conv/ucb; do (cd $i; make all; ) done make[1]: Entering directory '/root/.gnome-desktop/ns/ns-2.1b8-mcast/indep-utils/cmu-scen-gen/setdest' make[1]:Nothing to be done for 'all' make[1]: Leaving directory '/root/.gnome-desktop/ns/ns-2.1b8-mcast/indep-utils/cmu-scen-gen/setdest' make[1]: Entering directory '/root/.gnome-desktop/ns/ns-2.1b8-mcast/indep-utils/webtrace-conv/dec' make[1]:Nothing to be done for 'all' make[1]: Leaving directory '/root/.gnome-desktop/ns/ns-2.1b8-mcast/indep-utils/webtrace-conv/epa' make[1]: Entering directory '/root/.gnome-desktop/ns/ns-2.1b8-mcast/indep-utils/webtrace-conv/epa' make[1]:Nothing to be done for 'all' make[1]: Leaving directory '/root/.gnome-desktop/ns/ns-2.1b8-mcast/indep-utils/webtrace-conv/epa' make[1]: Entering directory '/root/.gnome-desktop/ns/ns-2.1b8-mcast/indep-utils/webtrace-conv/nlanr' make[1]:Nothing to be done for 'all' make[1]: Leaving directory '/root/.gnome-desktop/ns/ns-2.1b8-mcast/indep-utils/webtrace-conv/lanr' make[1]: Entering directory '/root/.gnome-desktop/ns/ns-2.1b8-mcast/indep-utils/webtrace-conv/ucb' make[1]:Nothing to be done for 'all' make[1]: Leaving directory '/root/.gnome-desktop/ns/ns-2.1b8-mcast/indep-utils/webtrace-conv/ucb' ? when i look at the ns-2.1b8-mcast folde, i see configure,makefile and makefile.in files, do you know what is the problem? how can i solve it? From kaustav_deybiswas at yahoo.co.in Fri Oct 30 15:41:17 2009 From: kaustav_deybiswas at yahoo.co.in (kaustav_deybiswas) Date: Fri, 30 Oct 2009 15:41:17 -0700 (PDT) Subject: [ns] How to use snoop agent at base station? Message-ID: <26098578.post@talk.nabble.com> Hi , I am facing a huge problem in using snoop agent at base station. The base station is connected to wired nodes through duplex link. whenever i use IIType to be LL/LLSnoop , i get segmentation fault. When i use LL only then everything is ok. Please reply -- View this message in context: http://old.nabble.com/How-to-use-snoop-agent-at-base-station--tp26098578p26098578.html Sent from the ns-users mailing list archive at Nabble.com. From ksula88 at yahoo.com Fri Oct 30 17:26:03 2009 From: ksula88 at yahoo.com (Sula K) Date: Fri, 30 Oct 2009 17:26:03 -0700 (PDT) Subject: [ns] flooding in ns2 Message-ID: <326626.4494.qm@web113115.mail.gq1.yahoo.com> Dear Friends, I am trying to find a source code in ns2 for flooding based routing in mobile ad hoc network.However, I can not get it. please some body give me a link or any help to find a flooding based routing. thanks ksula/Tailand From x.ene at live.com Sat Oct 31 13:29:00 2009 From: x.ene at live.com (Muneeb Ahmed) Date: Sun, 1 Nov 2009 02:29:00 +0600 Subject: [ns] ns 2,29 mobility module installation problem Message-ID: hi i encounter the following problem while installing ns2 2.29 mobility module on ubuntu mac/mac-802_11.cc: In member function ?void Mac802_11::update_watch(StatWatch*, double)?: mac/mac-802_11.cc:3399: warning: deprecated conversion from string constant to ?char*? mac/mac-802_11.cc:3401: warning: deprecated conversion from string constant to ?char*? mac/mac-802_11.cc:3403: warning: deprecated conversion from string constant to ?char*? mac/mac-802_11.cc:3405: warning: deprecated conversion from string constant to ?char*? mac/mac-802_11.cc: In member function ?void Mac802_11::update_throughput(ThroughputWatch*, double)?: mac/mac-802_11.cc:3442: warning: deprecated conversion from string constant to ?char*? mac/mac-802_11.cc:3444: warning: deprecated conversion from string constant to ?char*? mac/mac-802_11.cc:3446: warning: deprecated conversion from string constant to ?char*? mac/mac-802_11.cc:3448: warning: deprecated conversion from string constant to ?char*? make: *** [mac/mac-802_11.o] Error 1 tnk092 at tnk092-desktop:~/ns-allinone-2.29/ns-2.29$ kindly reply if any body know the solution to this problem Regards Muneeb _________________________________________________________________ Windows Live: Keep your friends up to date with what you do online. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010 From elebsolaks at yahoo.com Sat Oct 31 14:56:05 2009 From: elebsolaks at yahoo.com (eleburuike ismail) Date: Sat, 31 Oct 2009 14:56:05 -0700 (PDT) Subject: [ns] Wireless sensor simulation Message-ID: <231695.86587.qm@web53605.mail.re2.yahoo.com> Hello ns2 users, I have been trying to run simple-wireless.tcl on ns2.34 on ubuntu 9.04.But it was given me error mesage shown below... root at eleburuike-desktop:/home/eleburuike# ns simple-wireless.tcl num_nodes is set 2 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! NS EXITING... root at eleburuike-desktop:/home/eleburuike# I will be very glad if anyone whose has encounter this problem can send me the solution.I really need this example because it is the basis of my project work. Thank you in advance as i look forward to responses. Ismail From thaalbimariem5 at gmail.com Sat Oct 31 16:10:42 2009 From: thaalbimariem5 at gmail.com (Mariem Thaalbi) Date: Sun, 1 Nov 2009 00:10:42 +0100 Subject: [ns] NS2.33 and multi channel and multi radio Message-ID: <8bfb9b940910311610r4bb37404wc1f5c3c3b3e33ed1@mail.gmail.com> Hello all, I want to know if the NS2.33 supports multichannel and multiradio. Thanks for help, From g.acar at surrey.ac.uk Sat Oct 31 19:24:10 2009 From: g.acar at surrey.ac.uk (Guray Acar) Date: Sun, 1 Nov 2009 02:24:10 +0000 Subject: [ns] ns 2,29 mobility module installation problem Message-ID: <2CDE66A4-1265-4AE2-8D49-D16B24355AE3@surrey.ac.uk> >Message: 2 >Date: Sun, 1 Nov 2009 02:29:00 +0600 >From: Muneeb Ahmed >Subject: [ns] ns 2,29 mobility module installation problem >To: >Message-ID: >Content-Type: text/plain; charset="Windows-1252" >hi >i encounter the following problem while installing ns2 2.29 mobility module on ubuntu >mac/mac-802_11.cc: In member function ?void Mac802_11::update_watch(StatWatch*, double)?: >mac/mac-802_11.cc:3399: warning: deprecated conversion from string constant to ?char*? >mac/mac-802_11.cc:3401: warning: deprecated conversion from string constant to ?char*? >mac/mac-802_11.cc:3403: warning: deprecated conversion from string constant to ?char*? >mac/mac-802_11.cc:3405: warning: deprecated conversion from string constant to ?char*? >mac/mac-802_11.cc: In member function ?void Mac802_11::update_throughput(ThroughputWatch*, double)?: >mac/mac-802_11.cc:3442: warning: deprecated conversion from string constant to ?char*? >mac/mac-802_11.cc:3444: warning: deprecated conversion from string constant to ?char*? >mac/mac-802_11.cc:3446: warning: deprecated conversion from string constant to ?char*? >mac/mac-802_11.cc:3448: warning: deprecated conversion from string constant to ?char*? >make: *** [mac/mac-802_11.o] Error 1 >tnk092 at tnk092-desktop:~/ns-allinone-2.29/ns-2.29$ >kindly reply if any body know the solution to this problem >Regards >Muneeb This is due to the changes in gcc version 4.3.0, which Ubuntu is probably is using. Either change to ns-2.34, or read below. Guray Acar wrote: > Greetings all. > > This is not a question. Recently, we changed our OS to Fedora Core 9. > The C++ compiler that came with it was gcc version 4.3.0. > I had some problems with compiling ns-2.33 with this version of gcc. > > Apparently, the new version of gcc is less tolerant with some > programming styles including assigning constant strings to nonconstant > char* pointers. > There were some other errors, too. > > To cut it short, if you have similar problems, have a look at this > website http://www.q2s.ntnu.no/~paquerea/ns.php, which was kindly > provided by Laurent Paquereau at Norwegian University of Science and > Technology. Quoted from this website is the following text: > > FAQ > Warnings generated by newest versions of gcc > Using the newest versions of gcc to compile ns-2 with -Wall triggers > the following warnings: > warning: deprecated conversion from string constant to 'char*' > warning: suggest explicit braces to avoid ambiguous 'else' > warning: suggest parentheses around && within || > warning: suggest parentheses around comparison in operand of & > warning: 'typedef' was ignored in this declaration > > To ignore the first four types of warnings, add -Wno-write-strings - > Wno-parentheses on line 3903 in configure. > > To correct the files causing these warnings, download and apply this > patch. This was fixed in ns-2.34. - Tom -------------------------------------------------------------------- Dr Guray ACAR Centre for Communication Systems Research (CCSR), University of Surrey, Guildford, Surrey, GU2 7XH, United Kingdom. http://www.ee.surrey.ac.uk/ccsr -------------------------------------------------------------------- Dr Guray ACAR Centre for Communication Systems Research (CCSR), University of Surrey, Guildford, Surrey, GU2 7XH, United Kingdom. Tel.: +44-1483-689123 Fax: +44-1483-686011 http://www.ee.surrey.ac.uk/ccsr