From em_sit at yahoo.com Tue Jul 1 04:16:10 2008 From: em_sit at yahoo.com (mona mohammed) Date: Tue, 1 Jul 2008 04:16:10 -0700 (PDT) Subject: [ns] urgent help to compute the avergage queue size Message-ID: <712412.91066.qm@web54206.mail.re2.yahoo.com> hi ns2 users, can any one help me to understand the command of queue monitoring $ns_ monitor-queue and how can i use the handler of the queue average size. please help me, thanks in advance, Mona From najla.triki at cert.mincom.tn Tue Jul 1 04:21:10 2008 From: najla.triki at cert.mincom.tn (najla) Date: Tue, 1 Jul 2008 13:21:10 +0200 Subject: [ns] difficulties in simulating 802.11 and UMTS Message-ID: <200807011122.m61BMX09021295@smtpin.ati.tn> Hi all, I'am simulating a 802.11 infrastructure with 2 APs connected to a wired network and 2 mobiles moving between the APs. I followed in my script the model provided with NS2.33 in infra.tcl, and the 2 mobiles are configured to make an active scan. However, the mobiles can't detect the APs even when they are near them. Could any one help me? Thanking you. With Regards From zofilo at yahoo.com Tue Jul 1 04:41:50 2008 From: zofilo at yahoo.com (zoran filipovic) Date: Tue, 1 Jul 2008 04:41:50 -0700 (PDT) Subject: [ns] Three questions about WSN - 3D, obstacles, ZigBee Message-ID: <635446.55523.qm@web50903.mail.re2.yahoo.com> Hello, I have two questions: 1. ns works with 3 dimensions (x,y,z) but Z is used just for antenna. Is it possible to define z component for nodes as well and make 3D scenario, like hilly field? And how is it possible? Has anyone examle script? 2. Is it possible to model obstacles? How? Any tcl example? If not,can I model somehow link weights? 3. can I use ZigBee (802.15.4) with ns-2? How? Any tcl example? I am using ns-2-29 with mannasim extension for WSN. thank you very much ********************************************** Zoran Filipovic ALaRI - University of Lugano, Switzerland Universit? della Svizzera italiana, USI Mobile: +41 78 9006714 Mail: zoran.filipovic at lu.unisi.ch ********************************************** From mangku.sarjana at gmail.com Tue Jul 1 06:05:53 2008 From: mangku.sarjana at gmail.com (gede mangku sarjana) Date: Tue, 1 Jul 2008 20:05:53 +0700 Subject: [ns] help me to implementation hybrid RED algorithm in ns 2 Message-ID: <7a274dc80807010605h77f22f80l1f056a33543f65bb@mail.gmail.com> hai guys....my name gede....can you help me to understant and implementing hybrid RED algorithm for congestion control in TCP?? thanks....thats the paper. From vinioktm at hotmail.com Tue Jul 1 16:27:28 2008 From: vinioktm at hotmail.com (Vinicio Guanochanga) Date: Tue, 1 Jul 2008 18:27:28 -0500 Subject: [ns] Patch SIP for ns2.28 Message-ID: Hi Users... I'm trying to simulate MIPv6 and SIP in the samesimulation and I don't know any patch for SIP in ns2.28.. I waswondering if the patch 'ns-allinone-2.1b9a.sip.patch' for ns2.1b9 canbe used in ns2.28 or I need to do some especial to adapt it. I'm using ns2.28 over ubuntu 6.10 Best regards... Vinicio... _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From sandeepsinghmails at yahoo.com Tue Jul 1 22:11:30 2008 From: sandeepsinghmails at yahoo.com (sandeep singh) Date: Tue, 1 Jul 2008 22:11:30 -0700 (PDT) Subject: [ns] tcpdump to nam format Message-ID: <565851.38559.qm@web34207.mail.mud.yahoo.com> Is there anyway with which I can convert the network trace captured with tcpdump to nam/ns format -- so that nam can design the network topology -- by reading the tcpdump trace file ? From irfana_kanwal at yahoo.com Tue Jul 1 23:15:13 2008 From: irfana_kanwal at yahoo.com (irfana kanwal) Date: Tue, 1 Jul 2008 23:15:13 -0700 (PDT) Subject: [ns] how to implement olsr Message-ID: <51566.87106.qm@web36106.mail.mud.yahoo.com> --- On Wed, 7/2/08, irfana kanwal wrote: From: irfana kanwal Subject: how to implement olsr To: ns-users at isi.edu Date: Wednesday, July 2, 2008, 10:49 AM Hi Can some one tell me how to implement and use? UM-OLSR in ns-2.33. I followed the procedure? on http://masimum.dif.um.es/?Software:UM-OLSR:Using but while running a tcl file for olsr..I got the following warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl ??? (_o14 cmd line 1) ??? invoked from within "_o14 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 "_o14" line 2) ??? (SplitObject unknown line 2) ??? invoked from within "_o14 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 14) ??? (Simulator create-wireless-node line 14) ??? 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" ??? ("for" body line 2) ??? invoked from within "for {set i 0} {$i < $opt(nn)} {incr i} { ??? set node_($i) [$ns_ node] }" //////////////////////////////// thanks From rbraol1 at gmail.com Wed Jul 2 00:33:39 2008 From: rbraol1 at gmail.com (Raol Boni) Date: Wed, 2 Jul 2008 00:33:39 -0700 Subject: [ns] problem with AODV/DSR Message-ID: Hi all, Sorry to be sending multiple emails to this list but I'm really struggling with this. when I run my script, I get an error which says; .............................................................................................. $ num_nodes is set 10 Error!! str2addr:Address 1628668875 outside range of address field length 2048 .................................................................................................. so please any comment will be greatly appreciated !! thank you ! Raol B. From gem.damon at gmail.com Wed Jul 2 03:06:58 2008 From: gem.damon at gmail.com (GeD) Date: Wed, 2 Jul 2008 18:06:58 +0800 Subject: [ns] How to turn on/off wireless nodes In-Reply-To: <73afcc010807020253u3d8d2bc5wc946ca561cf9c079@mail.gmail.com> References: <73afcc010807020253u3d8d2bc5wc946ca561cf9c079@mail.gmail.com> Message-ID: <73afcc010807020306u2b4aa7f3lc7a579da3ad9abd4@mail.gmail.com> Hi all, When simulating nodes in Mobile ad hoc networks, it is sometimes desirable to turn on/off the wireless nodes (to be more precisely, turn on/off the network interface card, so that packets will not be received on almost all layers). However, I found that it is difficult to implement this in NS2. I've tried to address the issue by adjusting the radio range of nodes through "Phy/WirelessPhy set RXThresh_....", but it seems that the radio range cannot be changed anymore after node creation. I'v read up the previous discussions but none clue was found. How should I tackle this problem? Thanks! GeD From agustin.cozzetti at gmail.com Wed Jul 2 10:53:54 2008 From: agustin.cozzetti at gmail.com (Hector Agustin Cozzetti) Date: Wed, 2 Jul 2008 19:53:54 +0200 Subject: [ns] New layer 2 protocol developped Message-ID: Hello everybody, I'm developing a new mac protocol to be included within NS2. I built the new header structure, but I do not know insert within the structure of NS2 simulator (the struct header defines in my_mac.h). We could illustrate the steps and the codes to be carried out and to be included in the various files? Other doubt: The header is totally created at the beginning and then, in each layer, is analyzed by moving pointers instead of extracting the corresponding header? Thanks for all of your help, Agus From vijju.madasu at gmail.com Thu Jul 3 02:37:29 2008 From: vijju.madasu at gmail.com (VijayaLaxmi Madasu) Date: Thu, 3 Jul 2008 10:37:29 +0100 Subject: [ns] error in implementing in tcl script Message-ID: <7f32ce300807030237p7215b30bub683fb7e60e1d221@mail.gmail.com> Hi, This is vijaya, presently doing my project work in simulation of wireless LAN using ns2. Presently i got a problem in implementing one of the solution.I'm attaching the tcl script for which im getting the below error: can't read "f": no such variable while executing "$ns trace-all $f" line 21 Thanks & Regards Vijayalaxmi Madasu From sasan175571 at gmail.com Thu Jul 3 16:28:33 2008 From: sasan175571 at gmail.com (sasan zhalehpour) Date: Fri, 4 Jul 2008 03:58:33 +0430 Subject: [ns] backoff timer implementation in 802.11 Message-ID: <74184d630807031628m3f1ce1d9t3afdb3a8817c975a@mail.gmail.com> ---------- Forwarded message ---------- From: sasan zhalehpour Date: Sun, Jun 29, 2008 at 3:46 AM Subject: backoff timer 802.11 To: ns-users at isi.edu hi, i read in ns2.33 in MAC802_11.cc/....MAC802_11:: send(...) class ... /* if the medium is not IDLE, then we start the backoff timer */ but as i know backoff timer starts when the channel is idle after expiration of defer timer. please tell if i made a mistake!!! best regards sasan. From kangjh0101 at hotmail.com Wed Jul 2 13:27:26 2008 From: kangjh0101 at hotmail.com (kangjihwan) Date: Thu, 3 Jul 2008 05:27:26 +0900 Subject: [ns] wireless network interference question Message-ID: Hi, I'm trying to figure out the effect of microwave on home network and simulate it on NS2. But I don't know how to add the components that produce interference, something like microwaves. Is there any specific agent that can be use as a source of interference? Or can I add just normal agent which is configured to produce interference? Does anyone have idea about this? Thanx. _________________________________________________________________ ?? ??? ??, Windows Live Space! http://www.spaces.live.com From vnbaitipuli at rediffmail.com Fri Jul 4 02:24:36 2008 From: vnbaitipuli at rediffmail.com (venkatesh NB) Date: 4 Jul 2008 09:24:36 -0000 Subject: [ns] Urgent requirement redarding SCTP Protocol propagation delay increasing to 800 seconds Message-ID: <20080704092436.5649.qmail@f5mail-237-202.rediffmail.com> ? Hello ns users, I am not able to simulate SCTP protocol for the delay of 800 seconds, i am providing my TCL script please help regarding simulation using point to point communication using single stream, multistream and multihoming and where to modify in the code plsase tell me it is little bit urgent for submitting papaer for one of the conference //this is my TCL SCRIPT Trace set show_sctphdr_ 1 set ns [new Simulator] set nf [open sctp.nam w] $ns namtrace-all $nf set allchan [open all.tr w] $ns trace-all $allchan proc finish {} { global ns nf allchan set PERL "/usr/bin/perl" set USERHOME [exec env | grep "^HOME" | sed /^HOME=/s/^HOME=//] set NSHOME "/NetworkSimulator/ns-allinone-2.32/ns-2.32/sctp/" set SETFID "/NetworkSimulator/ns-allinone-2.32/ns-2.32/bin/set_flow_id" set XGRAPH "/NetworkSimulator/ns-allinone-2.32/xgraph-12.1/xgraph" set RAW2XG_SCTP "/NetworkSimulator/ns-allinone-2.32/ns-2.32/bin/raw2xg-sctp" $ns flush-trace close $nf close $allchan exec nam sctp.nam & exit 0 } set host0_core [$ns node] set host0_if0 [$ns node] set host0_if1 [$ns node] $host0_core color Red $host0_if0 color Red $host0_if1 color Red $ns multihome-add-interface $host0_core $host0_if0 $ns multihome-add-interface $host0_core $host0_if1 set host1_core [$ns node] set host1_if0 [$ns node] set host1_if1 [$ns node] $host1_core color Blue $host1_if0 color Blue $host1_if1 color Blue $ns multihome-add-interface $host1_core $host1_if0 $ns multihome-add-interface $host1_core $host1_if1 set router [$ns node] $ns duplex-link $host0_if0 $router .5Mb 800s DropTail $ns duplex-link $host0_if1 $router .5Mb 800s DropTail $ns duplex-link $host1_if0 $router .5Mb 800s DropTail $ns duplex-link $host1_if1 $router .5Mb 800s DropTail set sctp0 [new Agent/SCTP] $ns multihome-attach-agent $host0_core $sctp0 $sctp0 set fid_ 0 $sctp0 set debugMask_ -1 $sctp0 set debugFileIndex_ 0 $sctp0 set mtu_ 1500 $sctp0 set dataChunkSize_ 1468 $sctp0 set numOutStreams_ 1 $sctp0 set oneHeartbeatTimer_ 0 # each dest has its own heartbeat timer set trace_ch [open trace.sctp w] $sctp0 set trace_all_ 1 # trace them all on oneline $sctp0 trace cwnd_ $sctp0 trace rto_ $sctp0 trace errorCount_ $sctp0 attach $trace_ch set sctp1 [new Agent/SCTP] $ns multihome-attach-agent $host1_core $sctp1 $sctp1 set debugMask_ -1 $sctp1 set debugFileIndex_ 1 $sctp1 set mtu_ 1500 $sctp1 set initialRwnd_ 131072 $sctp1 set useDelayedSacks_ 1 $ns color 0 Red $ns color 1 Blue $ns connect $sctp0 $sctp1 set ftp0 [new Application/FTP] $ftp0 attach-agent $sctp0 $sctp0 set-primary-destination $host1_if0 # change primary $ns at 7.5 "$sctp0 set-primary-destination $host1_if1" $ns at 7.5 "$sctp0 print cwnd_" $ns at 0.5 "$ftp0 start" $ns at 12.0 "finish" $ns run This code is not working because of 800 seconds of delay. please help me it is little bit urgent and one more problem is Throughput generation plot i,e throughput vs RTT using NS-2 regd. Venkatesh N B IRSO Satellite Center, Bangalore 17 venkatesh N B #331 judicial layout, 22 nd A main, 28th B Creoss, GKVK Post, Bangalore -560065 ph: 080-28564157 From sasan175571 at gmail.com Fri Jul 4 09:14:42 2008 From: sasan175571 at gmail.com (sasan zhalehpour) Date: Fri, 4 Jul 2008 20:44:42 +0430 Subject: [ns] backoff timer implementation in 802.11 In-Reply-To: <48890e790807040733u4f9b2d08vafd0469245c929e9@mail.gmail.com> References: <74184d630807031628m3f1ce1d9t3afdb3a8817c975a@mail.gmail.com> <48890e790807040733u4f9b2d08vafd0469245c929e9@mail.gmail.com> Message-ID: <74184d630807040914h47fa2096n5813c83306419b54@mail.gmail.com> hi, thank u for ur reply If the medium is busy the station defer the access to the medium , and when the medium is idle for the DIFS , begins a backoff contention window to try avoid the collisions so if the medium wasn't idle the backofftimer wouldn't start. i want to ask when backofftimer works (during idle time of medium, busy time of medium or both of them) as i know backoff timer just works in idle time of medium and after expiration of defer timer On Fri, Jul 4, 2008 at 7:03 PM, Anastasios Daniilidis < anastasios.daniilidis at gmail.com> wrote: > If the backoff timer didn't start in case the medium was not idle, a > collision would certainly occur. But what you say is also correct. > > 2008/7/4 sasan zhalehpour : > > >> ---------- Forwarded message ---------- >> From: sasan zhalehpour >> Date: Sun, Jun 29, 2008 at 3:46 AM >> Subject: backoff timer 802.11 >> To: ns-users at isi.edu >> >> >> hi, >> i read in ns2.33 in MAC802_11.cc in > > " Incoming Packet Routines void > MAC802_11:: send(...) class >> ... >> /* >> if the medium is not IDLE, then we start the backoff timer */ >> .... >> " >> but as i know backoff timer starts when the channel is idle after >> expiration of defer timer. >> please tell if i made a mistake!!! >> best regards >> sasan. >> > > From amarprakashazad at gmail.com Fri Jul 4 12:08:45 2008 From: amarprakashazad at gmail.com (amar prakash azad) Date: Fri, 4 Jul 2008 21:08:45 +0200 Subject: [ns] Power save mode for WiMAX Message-ID: <9932379a0807041208i1cc5b334m4faedb24e2c4246f@mail.gmail.com> Hi, I am interested in power save mode simulation for WiMAX. This module is not available as such. But in case if some one has any module, please let me know. Also if some one has tried some other method to do so, please let me know. Regards, Amar From amarprakashazad at gmail.com Fri Jul 4 17:34:29 2008 From: amarprakashazad at gmail.com (Amar Azad) Date: Fri, 4 Jul 2008 17:34:29 -0700 (PDT) Subject: [ns] Fwd: patch for ns-2.29 to fix OSF problem only In-Reply-To: <351779.53641.qm@web34205.mail.mud.yahoo.com> References: <351779.53641.qm@web34205.mail.mud.yahoo.com> Message-ID: <18287922.post@talk.nabble.com> Hi, Can you please get me the ns-2.29-OSF.patch file. I desperately need it. Regards, Amar Md. Atiur Rahman Siddique wrote: > > > > Hi Gaiz n Galz, > > For those who want to use ns-2.29 with older gcc/g++ and needs fixing for > only the OSF problem ie, > the installation exits with the below mentioned messages, can use this > shorter patch attached as > "ns-2.29-OSF.patch". This problem happens due to the new syntax of bash > scripting. > > OSF error message: > checking system version (for dynamic loading)... ./configure: line 7624: > syntax error near > unexpected token ')' > ./configure: line 7624: ' OSF*)' > tcl8.3.2 configuration failed! Exiting ... > Tcl is not part of the ns project. Please see www.Scriptics.com to see > if they have a fix for your problem." > > To use the patch you need to execute the following commands (assuming the > patch file > "ns-2.29-OSF.patch" is copied to your home folder already) in order. > ------------------------------------------ > cd > wget http://www.isi.edu/nsnam/dist/ns-allinone-2.29.tar.gz > tar -zxvf ns-allinone-2.29.tar.gz > patch -p0 < ns-2.29-OSF.patch > cd ns-allinone-2.29 > ./install > -------------- > You can validate and run simulations in the same way as explained earlier. > I have tested the patch in the same systems as mentioned in the earlier > mail. > > Disclaimer notice: I have used informations available at > "http://ravemz.blogspot.com/2006/04/problem-in-installing-ns-2292-allinone.html" > for this patch. > > Regards, > Atiur > > > Forwarded: > > Hi Gaiz n Galz, > > To my knowledge there are some bugs in ns-allinone-2.29 (available as > http://www.isi.edu/nsnam/dist/ns-allinone-2.29.tar.gz). These bugs give > rise to a number of > errors > in multiple phases of installation over gcc-4+ systems. These are due to > mismatch in syntax for > newer gcc and newer bash ports. > > I have developed a patch to fix these installation problems which is > attached here. You are > welcome to use and comment on it. > > To use the patch you need to execute the following commands (assuming the > patch file > "ns-2.29-allinone.patch" is copied to your home folder already) in order. > ------------------------------------------ > cd > wget http://www.isi.edu/nsnam/dist/ns-allinone-2.29.tar.gz > tar -zxvf ns-allinone-2.29.tar.gz > patch -p0 < ns-2.29-allinone.patch > cd ns-allinone-2.29 > ./install > ----------------------------------------- > You are done installing. To validate, do the following in order > export > PATH=~/ns-allinone-2.29/bin:~/ns-allinone-2.29/tcl8.4.11/unix:~/ns-allinone-2.29/tk8.4.11/unix:$PATH > export LD_LIBRARY_PATH=~/ns-allinone-2.29/otcl-1.11:~/ns-allinone-2.29/lib > export TCL_LIBRARY=~/ns-allinone-2.29/tcl8.4.11/library > cd ns-2.29 > ./validate > To run your simulation script "sim01.tcl", set up the environment > variables as shown above and > simply run > ns sim01.tcl > --------------------------------------------------------- > > Let me know how it goes or if you face any problem. Happy simulating! > > > I have tested it on following systems > > Architecture: > AMD Opteron > Intel 686+ > > OS: > CentOS 5 64 bit > Debian GNU/Linux > > Kernel: > 2.6.18-6-686 > > GCC and G++ version: > 4.1.2 20070626 > 4.1.2 20061115 > > > It fixes the following problems. There were some other problems, too which > is fixed but I can > not > remember those anymore. > > OSF: > checking system version (for dynamic loading)... ./configure: line 7624: > syntax error near > unexpected token ')' > ./configure: line 7624: ' OSF*)' > tcl8.3.2 configuration failed! Exiting ... > Tcl is not part of the ns project. Please see www.Scriptics.com to see > if they have a fix for your problem." > > SCTP: > ./sctp/sctp.h:705: error: extra qualification 'SctpAgent::' on member > 'DumpSendBuffer' > make: *** [trace/trace.o] Error 1 > Ns make failed! > > DSR: > dsr/dsragent.cc > dsr/dsragent.cc: In member function ?void > DSRAgent::handleFlowForwarding(SRPacket&, int)?: > dsr/dsragent.cc:828: error: ?XmitFlowFailureCallback? was not declared in > this scope > dsr/dsragent.cc: In member function ?void > DSRAgent::sendOutPacketWithRoute(SRPacket&, bool, > Time)?: > dsr/dsragent.cc:1385: error: ?XmitFailureCallback? was not declared in > this scope > dsr/dsragent.cc:1386: error: ?XmitFlowFailureCallback? was not declared in > this scope > dsr/dsragent.cc:1403: error: ?XmitFailureCallback? was not declared in > this scope > make: *** [dsr/dsragent.o] Error 1 > > etc... > > > Regards, > Atiur > > Disclaimer notice: I have used informations available at > "http://ravemz.blogspot.com/2006/04/problem-in-installing-ns-2292-allinone.html" > for the OSF > problem. > > > > > Get the name you always wanted with the new y7mail email address. > www.yahoo7.com.au/y7mail > > > -- View this message in context: http://www.nabble.com/Fwd%3A-patch-for-ns-2.29-to-fix-OSF-problem-only-tp16889782p18287922.html Sent from the ns-users mailing list archive at Nabble.com. From vnbaitipuli at rediffmail.com Fri Jul 4 22:55:36 2008 From: vnbaitipuli at rediffmail.com (venkatesh NB) Date: 5 Jul 2008 05:55:36 -0000 Subject: [ns] Urgent requirement redarding SCTP Protocol propagation delay Message-ID: <20080705055536.17041.qmail@f5mail-237-214.rediffmail.com> ? Note: Forwarded message attached -- Original Message -- From: "venkatesh NB" To: "Daniel Rosenthal" Subject: Re: Re: [ns] Urgent requirement redarding SCTP Protocol propagation delay increasing to 800 seconds venkatesh N B #331 judicial layout, 22 nd A main, 28th B Creoss, GKVK Post, Bangalore -560065 ph: 080-28564157 From agrawal.tech at gmail.com Fri Jul 4 23:32:24 2008 From: agrawal.tech at gmail.com (abhishek agrawal) Date: Fri, 4 Jul 2008 23:32:24 -0700 Subject: [ns] help me for 802.15.3c mac layer, how to implement directional antenna based protocols Message-ID: hey hi all...<br>i m trying to implement a 60 ghz network with directional antyenna and completely changed mac layer structure.can someone provide me some help<br clear="all"><br>-- <br>Abhishek Kr. Agrawal<br>MTech student<br>
Information System Engg.<br>Deptt. of Electrical Engg.<br>IIT Kanpur<br>Kanpur


-- Abhishek Kr. Agrawal MTech student Information System Engg. Deptt. of Electrical Engg. IIT Kanpur Kanpur From samira.niafar at gmail.com Sat Jul 5 00:25:19 2008 From: samira.niafar at gmail.com (samira niafar) Date: Sat, 5 Jul 2008 08:25:19 +0100 Subject: [ns] inspect installation problem Message-ID: <9168f5370807050025x1789c9adl28154aeda118b159@mail.gmail.com> Hello ns-users I follow these steps to install inspec: 1-uncompress and untar the compressed tar file "inspect-allinone-igd-1.1.1" and copy that to home as "inspect" directory 2- run "simple-wireless.tcl" in ns-2.31 and get "simple.out" such as written in manual 3- install inspect via : cd /home/inspect ./install.sh 4- set the environment variables to: Export LD_LIBRARY_PATH=/home/inspect/lib/gtkglext/lib/:/home/lib/shplib : $LD_LIBRARY_PATH 5-put the "simple.out" and "simple.conf" at < /home/inspect> path 6- run inspect via below command: Inspect ?t simple.conf simple.out but at the end i have this error: bash: command not found please tell me if i have a mistake in one of the previous procedure. Thanks samira niafar From samira.niafar at gmail.com Sat Jul 5 00:46:02 2008 From: samira.niafar at gmail.com (samira niafar) Date: Sat, 5 Jul 2008 08:46:02 +0100 Subject: [ns] inspect installation problem Message-ID: <9168f5370807050046y131f2356w9f7fdd7ff0e5deae@mail.gmail.com> Hello ns-users I follow these steps to install inspec: 1-uncompress and untar the compressed tar file "inspect-allinone-igd-1.1.1" and copy that to home as "inspect" directory 2- run "simple-wireless.tcl" in ns-2.31 and get "simple.out" such as written in manual 3- install inspect via : cd /home/inspect ./install.sh 4- set the environment variables to: Export LD_LIBRARY_PATH=/home/inspect/lib/gtkglext/lib/:/home/lib/shplib : $LD_LIBRARY_PATH 5-put the "simple.out" and "simple.conf" at < /home/inspect> path 6- run inspect via below command: Inspect ?t simple.conf simple.out but at the end i have this error: bash: command not found please tell me if i have a mistake in one of the previous procedure. Thanks samira niafar From awesome_distance at yahoo.com Sat Jul 5 09:30:04 2008 From: awesome_distance at yahoo.com (IFFAT AHMED) Date: Sat, 5 Jul 2008 09:30:04 -0700 (PDT) Subject: [ns] Add new Queue Error Message-ID: <991774.89738.qm@web50001.mail.re2.yahoo.com> Dear ALL, I am new to NS2 Want to run DTRR example from NS BY EXAMPLE but, i get error about: Queue/DTRR intserv qtype plz help me. Am I missing any step to add new queue. I have followed each n every step presented in NS by EXAMPLE tutorial Regards, Iffat From nshahriar at gmail.com Sat Jul 5 12:39:48 2008 From: nshahriar at gmail.com (Nashid Shahriar) Date: Sun, 6 Jul 2008 01:39:48 +0600 Subject: [ns] need help about CBK errors In-Reply-To: References: Message-ID: Hi, I am using ns-2.31 mobile nodes and generating a trace file with new-trace. In the trace file i found that some packets are getting dropped and the reason is CBK. My queries are > What is correct meaning of CBK? > How to avoid CBK errors in a network? > Why such type of errors occur? > Do you know what is the meaning of seed in the cbrgen.tcl( traffic generation tool) I will be highly graceful if i get solution of the query from you or can u refer the source where can i get solution. Thaking you, dhrubo From msaqib at gmail.com Sun Jul 6 04:57:15 2008 From: msaqib at gmail.com (Saqib Ilyas) Date: Sun, 6 Jul 2008 16:57:15 +0500 Subject: [ns] Fwd: Error running a scenario script In-Reply-To: <262b67200807060453r3e007686ra8d6e6478d930bac@mail.gmail.com> References: <262b67200807060453r3e007686ra8d6e6478d930bac@mail.gmail.com> Message-ID: <262b67200807060457n1caae531m6231f33a64b1f4f8@mail.gmail.com> Greeting list members We have recently implemented the "multiple interface support in NS-2" as proposed in http://telecom.inescporto.pt/~rcampos/ucMultiIfacesSupport.pdf. We also modified the simple-wireless.tcl script according the specifications given in the above mentioned document. However, when we invoke the script, we get the following error: $ ns simple-wireless.tcl When configured, ns found the right version of perl in but it doesn't seem to be there anymore, so ns will fall back on running the first perl in your path. The wrong version of perl may break the test suites. Reconfigure and rebuild ns if this is a problem. num_nodes is set 6 extra characters after close-brace while compiling "for {set i 0} {$i < $numifs_} {incr i}{ $node add-interface $chan($i) $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoI..." ("if" then script line 2) while compiling "if {[info exist numifs_] } { for {set i 0} {$i < $numifs_} {incr i}{ $node add-interface $chan($i) $propInstance_ $llType_ $macType_ $ifqType_ $ifqle..." (compiling body of proc "_o3", line 50) (Simulator create-wireless-node line 50) 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 }" (file "simple-wireless.tcl" line 108) I checked for back to back opening and closing braces as suggested in the error message. I found one in ns-2.31/gen/ns_tcl.cc, and I put a space between the closing and opening braces, but to no avail. Can anyone shed some light on this issue? Thanks and best regards -- Muhammad Saqib Ilyas PhD Student, Computer Science and Engineering Lahore University of Management Sciences From amita26 at rediffmail.com Sun Jul 6 22:44:57 2008 From: amita26 at rediffmail.com (Amita Singh) Date: 7 Jul 2008 05:44:57 -0000 Subject: [ns] How to introduce delay Message-ID: <20080707054457.16759.qmail@f4mail-235-149.rediffmail.com> Hi all, I want to introduce delay in c++ at receivers end so that instead of replying the very first RREQ packet, receiver node waits for some time and then checks for the best route received through RREQ packets and replies for the best route. Can anyone tell me as how it is to be done using AODV regards From namrata10aug at yahoo.co.in Mon Jul 7 01:39:15 2008 From: namrata10aug at yahoo.co.in (namrata patil) Date: Mon, 7 Jul 2008 14:09:15 +0530 (IST) Subject: [ns] ns-users@ISI.EDUroblem in running tora Message-ID: <599800.63941.qm@web94507.mail.in2.yahoo.com> ?Dear all, I tried to run tora? in wireless senirio using ns2.31, I got the following error ? num_nodes is set 50 INITIALIZE THE LIST xListHead ??? (_o17 cmd line 1) ??? invoked from within "_o17 cmd port-dmux _o32" ??? 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 port-dmux $dmux_" ??? (procedure "_o14" line 11) ??? (Node/MobileNode add-target-rtagent line 11) ??? invoked from within "$self add-target-rtagent $agent $port" ??? (procedure "_o14" line 23) ??? (Node/MobileNode add-target line 23) ??? 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 72) ??? (Simulator create-wireless-node line 72) ??? 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" ??? ("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 "tora50.tcl" line 112) ? ? ? This is? the?tcl program which I had run ? # A simple example for wireless simulation # ====================================================================== # Define options # ====================================================================== set val(chan)?????? Channel/WirelessChannel set val(prop)?????? Propagation/TwoRayGround set val(netif)????? Phy/WirelessPhy set val(mac)??????? Mac/802_11 set val(ifq)??????? Queue/DropTail/PriQueue 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(seed)?????????? 1..0 set val(adhocRouting)?? TORA??????? set val(nn)???????????? 50??????????? ;# how many nodes are simulated set val(cp)???????????? "/root/ns-allinone-2.31/ns-2.31/tcl/mobility/scene/cbr-50-test" set val(sc)???????????? "/root/ns-allinone-2.31/ns-2.31/tcl/mobility/scene/scen-50-test" set val(stop)?????????? 200.0?????????? ;# simulation time # ===================================================================== # Main Program # ====================================================================== # # Initialize Global Variables # # create simulator instance set ns_??[new Simulator] # setup topography object set topo?[new Topography] # create trace object for ns and nam set tracefd?[open wireless50-tora.tr w] set namtrace??? [open wireless50-tora.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)] # # define how node should be created # #global node setting set chan [new $val(chan)] $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 \ ?? -topoInstance $topo \ ?? -agentTrace ON \ ???????????????? -routerTrace ON \ ???????????????? -macTrace ON # #? 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 node movement model # puts "Loading connection pattern..." source $val(sc) # # Define traffic model # puts "Loading scenario file..." source $val(cp) # Define node initial position in nam for {set i 0} {$i < $val(nn)} {incr i} { ??? # 20 defines the node size in nam, must adjust it according to your scenario ??? # The function must be called after mobility model is defined ??? ??? $ns_ initial_node_pos $node_($i) 20 } # # 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).0002 "puts \"NS EXITING...\" ; $ns_ halt" puts $tracefd "M 0.0 nn $val(nn) x $val(x) y $val(y) rp $val(adhocRouting)" puts $tracefd "M 0.0 sc $val(sc) cp $val(cp) seed $val(seed)" puts $tracefd "M 0.0 prop $val(prop) ant $val(ant)" puts "Starting Simulation.. $ns_ run ? ?Please help me in identifying error as I am in urgent need. ? NAMRATA ? ? Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ From msaqib at gmail.com Mon Jul 7 02:03:58 2008 From: msaqib at gmail.com (Saqib Ilyas) Date: Mon, 7 Jul 2008 14:03:58 +0500 Subject: [ns] How to introduce delay In-Reply-To: <20080707054457.16759.qmail@f4mail-235-149.rediffmail.com> References: <20080707054457.16759.qmail@f4mail-235-149.rediffmail.com> Message-ID: <262b67200807070203p5168a857uec27e8a6fecf38ef@mail.gmail.com> In ns-2.31/aov/aodv.cc, I believe you will need to make changes to recvRequest(Packet* p) method. Good luck. Maybe you'll need to make a queue and add the packet to the queue and wait until that queue is empty before responding or use some sort of callback mechanism. On Mon, Jul 7, 2008 at 10:44 AM, Amita Singh wrote: > > Hi all, > I want to introduce delay in c++ at receivers end so that instead of > replying the very first RREQ packet, receiver node waits for some time and > then checks for the best route received through RREQ packets and replies for > the best route. Can anyone tell me as how it is to be done using AODV > regards > -- Muhammad Saqib Ilyas PhD Student, Computer Science and Engineering Lahore University of Management Sciences From mangku.sarjana at gmail.com Mon Jul 7 05:44:38 2008 From: mangku.sarjana at gmail.com (gede mangku sarjana) Date: Mon, 7 Jul 2008 19:44:38 +0700 Subject: [ns] Ns-users Digest, Vol 55, Issue 6 In-Reply-To: References: Message-ID: <7a274dc80807070544i110cd568u46792baab084ac2@mail.gmail.com> please help me to implementation new algorithm of AQM in NS and how is compile it?? the algorithm name is Hybrid Random Early Detection....thanks before 2008/7/7, ns-users-request at isi.edu : > Send Ns-users mailing list submissions to > ns-users at isi.edu > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.isi.edu/mailman/listinfo/ns-users > or, via email, send a message with subject or body 'help' to > ns-users-request at isi.edu > > You can reach the person managing the list at > ns-users-owner at isi.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ns-users digest..." > > > Today's Topics: > > 1. Fwd: Error running a scenario script (Saqib Ilyas) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 6 Jul 2008 16:57:15 +0500 > From: "Saqib Ilyas" > Subject: [ns] Fwd: Error running a scenario script > To: ns-users > Message-ID: > <262b67200807060457n1caae531m6231f33a64b1f4f8 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Greeting list members > We have recently implemented the "multiple interface support in NS-2" as > proposed in http://telecom.inescporto.pt/~rcampos/ucMultiIfacesSupport.pdf. > We also modified the simple-wireless.tcl script according the specifications > given in the above mentioned document. However, when we invoke the script, > we get the following error: > $ ns simple-wireless.tcl > When configured, ns found the right version of perl in > but it doesn't seem to be there anymore, so ns will fall back on running the > first perl in your path. The wrong version of perl may break the test > suites. Reconfigure and rebuild ns if this is a problem. > num_nodes is set 6 > extra characters after close-brace > while compiling > "for {set i 0} {$i < $numifs_} {incr i}{ > $node add-interface $chan($i) $propInstance_ $llType_ > $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ > $topoI..." > ("if" then script line 2) > while compiling > "if {[info exist numifs_] } { > for {set i 0} {$i < $numifs_} {incr i}{ > $node add-interface $chan($i) $propInstance_ $llType_ > $macType_ $ifqType_ $ifqle..." > (compiling body of proc "_o3", line 50) > (Simulator create-wireless-node line 50) > 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 > }" > (file "simple-wireless.tcl" line 108) > I checked for back to back opening and closing braces as suggested in the > error message. I found one in ns-2.31/gen/ns_tcl.cc, and I put a space > between the closing and opening braces, but to no avail. Can anyone shed > some light on this issue? > Thanks and best regards > -- > Muhammad Saqib Ilyas > PhD Student, Computer Science and Engineering > Lahore University of Management Sciences > > > ------------------------------ > > _______________________________________________ > Ns-users mailing list > Ns-users at isi.edu > http://mailman.isi.edu/mailman/listinfo/ns-users > > > End of Ns-users Digest, Vol 55, Issue 6 > *************************************** > From zyad at hotmail.com Mon Jul 7 06:32:19 2008 From: zyad at hotmail.com (zyad dwekat) Date: Mon, 7 Jul 2008 13:32:19 +0000 Subject: [ns] scheduling schemes queues Message-ID: Hi,I am trying to compare a new queuing scheme with W2FQ to check fairness and worse case properties. Does any one have a good tcl scenario to study these behaviour? Thanks in advance Zyad Connect to the next generation of MSN Messenger Get it now! _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE From x-manotas at hotmail.com Mon Jul 7 16:03:38 2008 From: x-manotas at hotmail.com (Diego Fernando Bermudez) Date: Mon, 7 Jul 2008 23:03:38 +0000 Subject: [ns] get lqi and ED since upper layers Message-ID: Hi ns-users I'm working in a personal project, and i have to modify some part of protocol's code to can get LQI and ED (energy detection) values. i would like to know how to obtain this information since the uppers layers (the routing protocol, for example), i have read the 802.15.4 standard but it doesn't explain how to do it. the 802.15.4 standard only says LQI value can be obtained in the function PD_DATA_indication but no more void Phy802_15_4::PD_DATA_indication(UINT_8 psduLength,Packet *psdu,UINT_8 ppduLinkQuality) { //refer to sec 6.7.8 for LQI details hdr_lrwpan* wph = HDR_LRWPAN(psdu); wph->ppduLinkQuality = ppduLinkQuality; uptarget_->recv(psdu, (Handler*) 0); } for example, i have in my protocol code void PROTO::recv(Packet *p) { //in this place i want to get the LQI and ED, //something like mynode.lqi = ppdulinkQuality } PLEASE... if some person has made it some time, and can explain me this step, i'll be so sooo thankful. TK. Bye _________________________________________________________________ Do more with your photos with Windows Live Photo Gallery. http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_photos_022008 From dsshin at monet.knu.ac.kr Tue Jul 8 01:10:57 2008 From: dsshin at monet.knu.ac.kr (DongSeung Shin) Date: Tue, 8 Jul 2008 17:10:57 +0900 Subject: [ns] The number of max paths of AOMDV Message-ID: <200807080811.m688BBcF004462@monet.knu.ac.kr> Hello, ns users. I have an interest about the number of maximum alternative paths of AOMDV. As I know, AOMDV can find all possible node (or link) disjoint paths. But, usually, the maximum number of paths is set to 3 in ns-2 simulations. I don't know why the number of paths is limited. Is there any reason limiting of the number of paths? Thanks in advance. ------------------------------------------------------------- Mobile Network Protocol Lab. Graduate School of Electrical Engineering and Computer Science, Kyungpook National University, Daegu 702-701, South Korea TEL: 53-940-8590 FAX: 53-957-4846 Homepage: htttp://monet.knu.ac.kr From valentina_timcenko at yahoo.com Wed Jul 9 03:18:46 2008 From: valentina_timcenko at yahoo.com (Valentina Timcenko) Date: Wed, 9 Jul 2008 03:18:46 -0700 (PDT) Subject: [ns] NAM problem Message-ID: <159020.81960.qm@web36203.mail.mud.yahoo.com> Please, Could you be so kind to help me resolve the problem with NAM. After starting the simulation of varios scripts I get the message of this form: invalid command name "n" ??? while executing "n -t * -s 0? -x 0 -y 0 -Z 0 -z 100? -v circle -c black" ??? (file "ceda_mob_2.nam" line 1) I am using ns-allinone-ns2.32 (nam version 1.13) on Linux Fedora 8, kernel 2.6. Thank you very much in advance... Val From alessandro.vivas at gmail.com Wed Jul 9 07:00:34 2008 From: alessandro.vivas at gmail.com (Alessandro Vivas) Date: Wed, 9 Jul 2008 11:00:34 -0300 Subject: [ns] Agregation of Multiple Poisson Sources Message-ID: Hi, I'm working with aggregation of multiple Poisson Sources (heterogeneous sources) in Network Simulator in a queue FiFO with 2 nodes. I would like to know what is the expression (formula) to calculate the time delay of packet transit in one link (transit time + enqueue time). Thanks, Alessandro Vivas Andrade -- aita pea pea From vijju.madasu at gmail.com Thu Jul 10 09:42:40 2008 From: vijju.madasu at gmail.com (VijayaLaxmi Madasu) Date: Thu, 10 Jul 2008 17:42:40 +0100 Subject: [ns] packet drop and delay through tcl script Message-ID: <7f32ce300807100942m25fdd2bcl8d62b133301bec73@mail.gmail.com> Hi, how to calculate the delay and the packet loss rate through tcl script in wireless networks? Thanks in advance vijaya From d.rother at tu-bs.de Thu Jul 10 13:19:15 2008 From: d.rother at tu-bs.de (Daniel Rother) Date: Thu, 10 Jul 2008 22:19:15 +0200 Subject: [ns] How to get signal strength Message-ID: <20080710221915.wnpsjg874040ocgo@webmail.tu-bs.de> Hi, I want to get the signal strength of a mobile node and put it into a trace file but I don't know how... Can anybody help me? Thanks! greets Daniel From mandarchoure at gmail.com Wed Jul 9 23:47:38 2008 From: mandarchoure at gmail.com (=?UTF-8?B?4KSu4KSC4KSm4KS+4KSw?=) Date: Thu, 10 Jul 2008 12:17:38 +0530 Subject: [ns] Error model in wireless network Message-ID: Dear ns2 users, I am trying to simulation a lossy link in a wireless environment using the ErrorModel. However the code I inserted to simulate a uniform packet loss has no effect on my results (see below). Can anybody tell me, what's wrong with me. I am using version 2.29. # simple-wireless.tcl # A simple example for wireless simulation # ====================================================================== # 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 opt(err) UniformErrorProc 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) 2 ;# number of mobilenodes set val(rp) DSDV ;# routing protocol LL set delay_ 20ms # ====================================================================== # Main Program # ====================================================================== # # Initialize Global Variables # set ns_ [new Simulator] set tracefd [open simplewireless1.tr w] $ns_ trace-all $tracefd # set up topography object set topo [new Topography] $topo load_flatgrid 500 500 # Create God # create-god $val(nn) # # Create the specified number of mobilenodes [$val(nn)] and "attach" them # to the channel. # Here two nodes are created : node(0) and node(1) # configure node $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF \ -IncomingErrProc UniformErr -OutgoingErrProc UniformErr for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } # # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes # $node_(0) set X_ 5.0 $node_(0) set Y_ 2.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 390.0 $node_(1) set Y_ 385.0 $node_(1) set Z_ 0.0 # Now produce some simple node movements # Node_(1) starts to move towards node_(0) # $ns_ at 50.0 "$node_(1) setdest 25.0 20.0 15.0" $ns_ at 10.0 "$node_(0) setdest 20.0 18.0 1.0" # Node_(1) then starts to move away from node_(0) $ns_ at 100.0 "$node_(1) setdest 490.0 480.0 15.0" # Setup traffic flow between nodes # TCP connections between node_(0) and node_(1) set tcp [new Agent/TCP] $tcp set class_ 2 set sink [new Agent/TCPSink] $ns_ attach-agent $node_(0) $tcp $ns_ attach-agent $node_(1) $sink $ns_ connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp $ns_ at 10.0 "$ftp start" #$ns_ node-config -IncomingErrProc UniformErr -OutgoingErrProc UniformErr ErrorModel set rate_ 10 proc UniformError {} { global opt set errObj [new ErrorModel] $errObj unit packet $errobj drop-target [new Agent/null] return $errObj } #$ns_ lossmodel errObj $node_(0) $node_(1) #$ns_ lossmodel $loss_module $node_(0) $node_(1) # # Tell nodes when the simulation ends # for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at 150.0 "$node_($i) reset"; } $ns_ at 150.0 "stop" $ns_ at 150.01 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { global ns_ tracefd $ns_ flush-trace close $tracefd } puts "Starting Simulation..." $ns_ run Waiting for your reply, Thanking you Mandar From vijju.madasu at gmail.com Thu Jul 10 09:20:31 2008 From: vijju.madasu at gmail.com (VijayaLaxmi Madasu) Date: Thu, 10 Jul 2008 17:20:31 +0100 Subject: [ns] how to calculate the delay and the packet loss rate through tcl script in wirless networks Message-ID: <7f32ce300807100920l3d257597s886bb2bd54ea0644@mail.gmail.com> Hi, Does anybody know how to calculate the delay and the packet loss rate throgh tcl script in wireless networks? Thanks in Advance vijaya. From jamal.toutouh at yahoo.es Fri Jul 11 11:20:10 2008 From: jamal.toutouh at yahoo.es (Jamal Toutouh) Date: Fri, 11 Jul 2008 18:20:10 +0000 (GMT) Subject: [ns] Execution warnings and errors. Message-ID: <969003.18047.qm@web27608.mail.ukl.yahoo.com> ------------------------------------------------ Jamal Toutouh El Alamin NEO Group - Networking and Emerging Optimization University of Malaga ------------------------------------------------ Phone: (+34) 952 13 33 03 ------------------------------------------------ Addres: E.T.S Ingenieria Informatica Complejo Tecnologico, Lab. 3.3.4b Campus de Teatinos 29071 Malaga, Spain ------------------------------------------------- ----- Mensaje reenviado ---- De: Jamal Toutouh Para: NS-users list Enviado: viernes, 11 de julio, 2008 9:59:02 Asunto: [ns] Execution warnings and errors. Dear all, How are you? I am writing because sometimes (not always) when I am executing a simulation with ns-2 I achieve some errors and warnings. Some examples of them are: *** glibc detected *** free(): invalid next size (normal): 0x0b7a6588 *** *** glibc detected *** corrupted double-linked list: 0x0c3c3900 *** *** glibc detected *** malloc(): memory corruption: 0x0bd23150 *** *** glibc detected *** double free or corruption (!prev): 0x0be3c0b8 *** Someone can tell me how can I avoid them? Thank you... ------------------------------------------------ Jamal Toutouh El Alamin http://neo.lcc.uma.es/staff/jamal/ NEO Group - Networking and Emerging Optimization University of Malaga ------------------------------------------------ Phone: (+34) 952 13 33 03 ------------------------------------------------ Addres: E.T.S Ingenieria Informatica Complejo Tecnologico, Lab. 3.3.4b Campus de Teatinos 29071 Malaga, Spain ------------------------------------------------- ________________________________ Enviado desde Correo Yahoo! La bandeja de entrada m?s inteligente. ______________________________________________ Enviado desde Correo Yahoo! La bandeja de entrada m?s inteligente. From mandarchoure at gmail.com Fri Jul 11 11:00:47 2008 From: mandarchoure at gmail.com (=?UTF-8?B?4KSu4KSC4KSm4KS+4KSw?=) Date: Fri, 11 Jul 2008 23:30:47 +0530 Subject: [ns] how to do packet reordering in wireless network Message-ID: Dear NS2 users, I am doing wired cum wireless scenario, I am not getting how to reorder the packets from sender to receiver. ie (delaying some packets) Please give the sample sript for reordering packets for this scenario, I am very much thankful to him. Please guide me, I am waiting for your reply Regards Mandar From sasan175571 at gmail.com Sat Jul 12 13:30:57 2008 From: sasan175571 at gmail.com (sasan zhalehpour) Date: Sun, 13 Jul 2008 01:00:57 +0430 Subject: [ns] adding a function to change the value of CWmax_ for the backoff procedure Message-ID: <74184d630807121330i3e14e4fdnea789fef5a964927@mail.gmail.com> hi, i want to add a function in mac802_11.{cc,h} to change the value of CWMax_ in TCL code i mean when ever i invoke it during the execution of TCL code, this function could change the value of CWmax_ Any help will be highly appreciated. regards, sasan From d9115006 at mail.ntust.edu.tw Sat Jul 12 23:09:20 2008 From: d9115006 at mail.ntust.edu.tw (ntust) Date: Sun, 13 Jul 2008 14:09:20 +0800 Subject: [ns] About " tclcl-mappings.h:51" Error Message-ID: <000401c8e4af$2cd22b40$867681c0$@ntust.edu.tw> Dear All, After I install ns-allinone-2.27.tar.gz on Red Hat Enterprise Linux 5(RHEL 5), then I see the following error message. ======================= message truncated ============================ tclcl-mappings.h:51: errorincomplete type `Tcl' used in nested name specifier tclcl-mappings.h:52: errorinvalid use of undefined type struct Tcl tclcl-mappings.h:41: errorforward declaration of struct Tcl tclcl-mappings.h:57: errorinvalid use of undefined type struct Tcl tclcl-mappings.h:41: errorforward declaration of struct Tcl make: *** [Tcl.o] Error 1 tclcl-1.15 make failed! Exiting ... =========================== message end ============================ Please any comment will be greatly appreciated!! Best Regards, Sanmic Huang (D9115006) From amita26 at rediffmail.com Sun Jul 13 00:48:29 2008 From: amita26 at rediffmail.com (Amita Singh) Date: 13 Jul 2008 07:48:29 -0000 Subject: [ns] Error: segment violation Message-ID: <20080713074829.19869.qmail@f4mail201.rediffmail.com> Hi, If I copy AODV and save it using new name. Even after changing the supporting files like ns-default.tcl and many others, simulation results in an error: ERROR child killed: segmentation violation I also change the aodv files by replacing aodv with new. What can be the reason behind? regards From softwarequalitycenter at yahoo.com Sun Jul 13 00:54:56 2008 From: softwarequalitycenter at yahoo.com (Software Quality Center) Date: Sun, 13 Jul 2008 00:54:56 -0700 (PDT) Subject: [ns] how to write distributed routing Message-ID: <301186.58783.qm@web51412.mail.re2.yahoo.com> Hi,? Can someone please guide me how to have distributed routing in ns. To the best of my knowledge ns only supports a centralized routing? ? Hans From amita26 at rediffmail.com Sun Jul 13 02:29:14 2008 From: amita26 at rediffmail.com (Amita Singh) Date: 13 Jul 2008 09:29:14 -0000 Subject: [ns] ERROR child killed: segmentation violation Message-ID: <20080713092914.11961.qmail@f4mail208.rediffmail.com> Hi all, I'm facing a strange problem. If I copy AODV and save it using new name say PROT. Even after changing the supporting files like ns-2.29/tcl/lib/ns-agent.tcl, ns-default.tcl and many others reported in the paper "Implementing a new MANET unicast routing protocol", simulation results in an error: ERROR child killed: segmentation violation I also change the aodv files by replacing aodv with PROT. What can be the reason behind it? regards From amani_yassin at hotmail.com Sun Jul 13 12:43:41 2008 From: amani_yassin at hotmail.com (Amani Yassin) Date: Sun, 13 Jul 2008 19:43:41 +0000 Subject: [ns] simulation of transport of streaming media traffic using ns2 Message-ID: Hi,I am working in the area of simulation of transmission of streaming media through TCP, UDP, and SCTP protocols, I want to know what is the traffic used in NS2 simulator to represent streaming media (audio and video) and how it is used with TCP, UDP, and SCTP agents to implement the simulation.Please give me supportive solutions,Thank you,___________________________________ _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline From liushuai06 at gmail.com Sun Jul 13 19:09:48 2008 From: liushuai06 at gmail.com (=?GB2312?B?wfXLpw==?=) Date: Mon, 14 Jul 2008 10:09:48 +0800 Subject: [ns] ns2 2.33 recompile and the ns command can not execute Message-ID: HI everyone. I recompile ns2 2.33 at cygwin. I use make at directory ns-2,33. However after compile, I can not use ns at any directory except ns-2.33. In any directory when I input ns, it will give the error: $ ns Error: Cannot open shared library: No such file or directory Any one can give some advice? Thank you! From liushuai06 at gmail.com Sun Jul 13 23:52:32 2008 From: liushuai06 at gmail.com (=?GB2312?B?wfXLpw==?=) Date: Mon, 14 Jul 2008 14:52:32 +0800 Subject: [ns] ns2 2.33 recompile and the ns command can not execute In-Reply-To: <443246.39411.qm@web34206.mail.mud.yahoo.com> References: <443246.39411.qm@web34206.mail.mud.yahoo.com> Message-ID: Thanks. I have solved this problem It is bacause system call ns.exe in /usr/local/bin instead of /ns-2.33/ns.exe. Just modify the link file to fix this problem. On Mon, Jul 14, 2008 at 2:00 PM, Haider Abbas wrote: > i think during installing cygwin u have to select all to install and > then search ns.exe in cygwin folder > Haider > bye > > > --- On *Mon, 7/14/08, 刘帅 * wrote: > > From: 刘帅 > Subject: [ns] ns2 2.33 recompile and the ns command can not execute > To: ns-users at ISI.EDU > Date: Monday, July 14, 2008, 7:09 AM > > > HI everyone. > > I recompile ns2 2.33 at cygwin. > > I use make at directory ns-2,33. However after compile, I can not use ns at > any directory except ns-2.33. > > In any directory when I input ns, it will give the error: > $ ns > Error: Cannot open shared library: No such file or directory > > Any one can give some advice? Thank you! > > > -- 爱在左,情在右,在生命的两旁,随时撒种,随时开花,将这一径长途点缀得花香弥漫,使得穿花拂叶的行人,踏着荆棘,不觉痛苦,有泪可挥,不觉悲凉! 原作 冰心 From amita26 at rediffmail.com Mon Jul 14 03:26:19 2008 From: amita26 at rediffmail.com (Amita Singh) Date: 14 Jul 2008 10:26:19 -0000 Subject: [ns] For TCP traffic, simulation results in segmentation violation Message-ID: <20080714102619.18388.qmail@f4mail-234-245.rediffmail.com> Hi, Thanks for the reply. My problem is solved. I had renamed the timers but still it didn't work. Actually I forgot to run 'make clean'. Now its running properly. However mow I have a new problem. I'm running scenario consisting of 100 nodes, 1000m*1000m grid, 600 simulation time and bonnmotion for generating traffic and scenario. When I run this script for cbr traffic, everything works well. However, when I run it for TCP traffic, simulation results in segmentation violation. why? regards From amita26 at rediffmail.com Mon Jul 14 04:43:41 2008 From: amita26 at rediffmail.com (Amita Singh) Date: 14 Jul 2008 11:43:41 -0000 Subject: [ns] simulation halts Message-ID: <20080714114341.3960.qmail@f4mail-234-231.rediffmail.com> Hi, I have one more query I have made some modifications to AODV, it compiles well but when I simulate it using the same script as that for AODV, the simulation halts at one point. What can be the reason behind it? regards From ulrich.herberg at polytechnique.edu Mon Jul 14 09:29:12 2008 From: ulrich.herberg at polytechnique.edu (Ulrich Herberg) Date: Mon, 14 Jul 2008 18:29:12 +0200 Subject: [ns] Handoff Attempted Message-ID: <487B7ED8.8040805@polytechnique.edu> Hi, I am running a MANET simulation (AODV, 802.11) in ns2.33. During my simulation, I get the following output from ns2: Client 50: Handoff Attempted Client 36: Handoff Attempted Client 89: Handoff Attempted [...] It seems that this error message comes from mac/mac-802_11.cc. Could someone explain that to me? I would guess that the handoff is only applicable when using access points, but not in ad-hoc mode. Do I use the correct MAC protocol for MANET simulations? What is that Mac/Multihop protocol? Thanks! Here some of my parameters: set opt(chan) Channel/WirelessChannel set opt(prop) Propagation/TwoRayGround set opt(netif) Phy/WirelessPhy set opt(mac) Mac/802_11 set opt(ifq) Queue/DropTail/PriQueue set opt(ll) LL set opt(ant) Antenna/OmniAntenna set opt(ifqlen) 50 ;# max packet in ifq set opt(rp) AODV Ulrich From kazimi at acad.umass.edu Mon Jul 14 10:24:42 2008 From: kazimi at acad.umass.edu (kanishka) Date: Mon, 14 Jul 2008 10:24:42 -0700 (PDT) Subject: [ns] random suggestion - .h interfaces Message-ID: <971902.34561.qm@web65513.mail.ac4.yahoo.com> Developers within and outside of ns2 might consider implementing the command function within the .h file of the c++ implementation, to keep consistent with the intent of having a .h file document the external interface to a class. Understand if people are against this though, since it would break with current convention. -kanishka From ratoji at linux.ime.usp.br Mon Jul 14 22:48:35 2008 From: ratoji at linux.ime.usp.br (Rodolpho Iemini Atoji) Date: Tue, 15 Jul 2008 02:48:35 -0300 Subject: [ns] Fwd: Handoff in Satellite Networks In-Reply-To: <40b986310807142240i5aa7fd59u748faafd24aac5a9@mail.gmail.com> References: <40b986310807142240i5aa7fd59u748faafd24aac5a9@mail.gmail.com> Message-ID: <40b986310807142248q55cea979v45ef0acf294a8c97@mail.gmail.com> Hello, I'm trying to build a list of link durations of all interplane ISLs, by modifying sathandoff.cc. The idea is to know when a link between two satellites has been established and when it has been dropped, among all the process of handoffs. I've been trying a code like this: LinkHandoffMgr* changedLink = (...); SatLinkHead* slhp; SatNode *peer; SatNode* node = (SatNode*)changedLink->node(); for (slhp = (SatLinkHead*) node->linklisthead().lh_first; slhp; slhp = (SatLinkHead*) slhp->nextlinkhead()) { peer = changedLink->get_peer(slhp); if (peer) { if (slhp->linkup_) { printf("Link UP between %d and %d at %d\n", node->address(), peer->address(), NOW); } else { printf("Link DOWN between %d and %d at %d\n", node->address(), peer->address(), NOW); } } } But I'm a little confused about 'if (slhp->linkup_)'. This checking is done only when exists another node in the link. Documentation says that linkup_ is TRUE when the link to another node on the channel is up. But what means linkup_ == FALSE if peer != NULL? Maybe this is not the correct way to achieve the results I want... Corrections are welcome. (I hope this is the correct list for posts like this) Thanks in advance, Rodolpho From niu_jj2005 at yahoo.com.cn Tue Jul 15 02:16:56 2008 From: niu_jj2005 at yahoo.com.cn (jj niu) Date: Tue, 15 Jul 2008 17:16:56 +0800 (CST) Subject: [ns] From mac-802_11, how to access member function in wireless-phy Message-ID: <685643.62919.qm@web15102.mail.cnb.yahoo.com> Hi, all. From mac-802_11, I want to call node_sleep()- a function in wireless-phy. The variable netif_ or downtartget_ is used as pointer to the object of wireless-phy. But the compiler always tell me that the node_sleep() function does not exit. Why? I need your help. Any suggestion will be welcom. Vandlu --------------------------------- 雅虎邮箱,您的终生邮箱! From kk at fn.twbbs.org Tue Jul 15 04:50:12 2008 From: kk at fn.twbbs.org (FNKK) Date: Tue, 15 Jul 2008 19:50:12 +0800 Subject: [ns] Error "bailing in Tcl::eval" Message-ID: Dear ns users, I got a problem when using ns2 simulator When I excute "ns MyCode.tcl" for a while It stopped and leave an error message "bailing in Tcl::eval" The error message seems to be written in tclcl-1.19/Tcl.cc as follows void Tcl::eval() { char* p = bp_; bp_ = p + strlen(p) + 1; /*XXX*/ if (bp_ >= &buffer_[1024]) { fprintf(stderr, "bailing in Tcl::eval\n"); assert(0); exit(1); } eval(p); bp_ = p; } It's weird that I never use "eval" command in my code. My code is a wireless application written in Tcl and there are about 200 nodes in it. When I decrease the number of node to about 10~50, this error sometimes disappeared . The version of ns2 is 2.33 How should I solve this problem? Thanks! From klyau23 at yahoo.com Tue Jul 15 04:59:52 2008 From: klyau23 at yahoo.com (Kok Lim, Yau) Date: Tue, 15 Jul 2008 04:59:52 -0700 (PDT) Subject: [ns] Introduce delay in passing packet to Link Layer Message-ID: <121312.26417.qm@web33405.mail.mud.yahoo.com> Hi All, ? The recv function in link layer (mac/ll.cc) receives packet from?routing agent?using the following command: ? ll->recv(p,(Handler *)0); ? where ll is defined as the link layer. ? The above command does not has delay. How to introduce delay in passing a packet to the ll layer? ? Thanks in advance! ? Regards, KL From panky.wins at gmail.com Tue Jul 15 05:52:28 2008 From: panky.wins at gmail.com (Pankaj Gupta) Date: Tue, 15 Jul 2008 18:22:28 +0530 Subject: [ns] TTDD simulation code Message-ID: Hello all, I am looking for simulation code of Two Tier Data Dissemination in NS2. Can some one mail code to me or suggest some pointers. Any help would be appreciated. Thanks, Pankaj From msaqib at gmail.com Tue Jul 15 06:23:37 2008 From: msaqib at gmail.com (Saqib Ilyas) Date: Tue, 15 Jul 2008 18:23:37 +0500 Subject: [ns] packet drop and delay through tcl script In-Reply-To: <7f32ce300807100942m25fdd2bcl8d62b133301bec73@mail.gmail.com> References: <7f32ce300807100942m25fdd2bcl8d62b133301bec73@mail.gmail.com> Message-ID: <262b67200807150623n75d20d6cvf7d4d73b8ba1832d@mail.gmail.com> You may find some useful scripts on www.geocities.com/shezy22. He did a Masters Thesis and wrote some scripts to do exactly that. On Thu, Jul 10, 2008 at 9:42 PM, VijayaLaxmi Madasu wrote: > > Hi, > how to calculate the delay and the packet loss rate through tcl script in > wireless networks? > > Thanks in advance > vijaya > -- Muhammad Saqib Ilyas PhD Student, Computer Science and Engineering Lahore University of Management Sciences From amitsoni at iitk.ac.in Tue Jul 15 07:19:39 2008 From: amitsoni at iitk.ac.in (Amit Soni) Date: Tue, 15 Jul 2008 19:49:39 +0530 (IST) Subject: [ns] Simulation halting after ARP request in Wifi, ns3 Message-ID: <52048.128.214.114.76.1216131579.squirrel@newwebmail.iitk.ac.in> Hello ns users, I am simulating a small Adhoc-wifi network of 4 nodes in ns3. Two nodes are OnOff sources and other two of them are OnOff sinks. I am starting two source nodes at the same time. The problem I am facing is that, after ARP request the simulation just halts, not even a single data packet is sent. Following is my script: #include #include #include "ns3/core-module.h" #include "ns3/common-module.h" #include "ns3/node-module.h" #include "ns3/helper-module.h" #include "ns3/mobility-module.h" #include "ns3/contrib-module.h" #include "ns3/wifi-module.h" using namespace ns3; int main (int argc, char *argv[]) { Packet::EnableMetadata (); Config::SetDefault ("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue ("0")); // enable rts cts all the time. WifiHelper wifi; MobilityHelper mobility; NodeContainer stas; NetDeviceContainer staDevs; InternetStackHelper stack; stas.Create (4); Ptr channel = CreateObject (); channel->SetPropagationDelayModel (CreateObject ()); Ptr log = CreateObject (); log->SetReferenceModel (CreateObject ()); channel->SetPropagationLossModel (log); wifi.SetPhy ("ns3::WifiPhy"); wifi.SetRemoteStationManager ("ns3::ArfWifiManager"); wifi.SetMac ("ns3::AdhocWifiMac"); mobility.SetPositionAllocator ("ns3::GridPositionAllocator", "MinX", DoubleValue (0.0), "MinY", DoubleValue (0.0), "DeltaX", DoubleValue (5.0), "DeltaY", DoubleValue (10.0), "GridWidth", UintegerValue (3), "LayoutType", StringValue ("RowFirst")); mobility.SetMobilityModel ("ns3::StaticMobilityModel"); mobility.Install (stas); staDevs = wifi.Install (stas, channel); stack.Install (stas); Ipv4AddressHelper ipv; ipv.SetBase ("10.1.1.0", "255.255.255.0"); Ipv4InterfaceContainer ipvcontain = ipv.Assign (staDevs); OnOffHelper onoff1 ("ns3::UdpSocketFactory", InetSocketAddress (ipvcontain.GetAddress (1), 9)); onoff1.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (10))); onoff1.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0))); ApplicationContainer apps1 = onoff1.Install (stas.Get (0)); apps1.Start (Seconds (0.5)); apps1.Stop (Seconds (10.0)); PacketSinkHelper sink ("ns3::UdpSocketFactory", Address (InetSocketAddress (Ipv4Address::GetAny (), 9))); sink.Install (stas.Get (1)); onoff1.SetAttribute ("Remote", AddressValue (InetSocketAddress (ipvcontain.GetAddress (3), 9))); ApplicationContainer apps2 = onoff1.Install (stas.Get (2)); sink.Install (stas.Get (3)); apps2.Start(Seconds (0.5)); apps2.Stop (Seconds (10.0)); std::ofstream ascii("out.tr"); WifiHelper::EnableAsciiAll(ascii); Simulator::Stop (Seconds (10.0)); Simulator::Run (); Simulator::Destroy (); return 0; } Following is content of out.tr after simulation: + 508192000ns /NodeList/0/DeviceList/0/$ns3::WifiNetDevice/Phy/Tx ns3::WifiMacHeader (DATA ToDS=0, FromDS=0, MoreFrag=0, Retry=0, MoreData=0 Duration/ID=0usDA=ff:ff:ff:ff:ff:ff, SA=00:00:00:00:00:01, BSSID=ff:ff:ff:ff:ff:ff, FragNumber=0, SeqNumber=0) ns3::LlcSnapHeader (type 0x806) ns3::ArpHeader (request source mac: 00-06-00:00:00:00:00:01 source ipv4: 10.1.1.1 dest ipv4: 10.1.1.2) ns3::WifiMacTrailer () + 508192000ns /NodeList/2/DeviceList/0/$ns3::WifiNetDevice/Phy/Tx ns3::WifiMacHeader (DATA ToDS=0, FromDS=0, MoreFrag=0, Retry=0, MoreData=0 Duration/ID=0usDA=ff:ff:ff:ff:ff:ff, SA=00:00:00:00:00:03, BSSID=ff:ff:ff:ff:ff:ff, FragNumber=0, SeqNumber=0) ns3::LlcSnapHeader (type 0x806) ns3::ArpHeader (request source mac: 00-06-00:00:00:00:00:03 source ipv4: 10.1.1.3 dest ipv4: 10.1.1.4) ns3::WifiMacTrailer () r 508304033ns /NodeList/3/DeviceList/0/$ns3::WifiNetDevice/Phy/RxOk ns3::WifiMacHeader (DATA ToDS=0, FromDS=0, MoreFrag=0, Retry=0, MoreData=0 Duration/ID=0usDA=ff:ff:ff:ff:ff:ff, SA=00:00:00:00:00:01, BSSID=ff:ff:ff:ff:ff:ff, FragNumber=0, SeqNumber=0) ns3::LlcSnapHeader (type 0x806) ns3::ArpHeader (request source mac: 00-06-00:00:00:00:00:01 source ipv4: 10.1.1.1 dest ipv4: 10.1.1.2) ns3::WifiMacTrailer () It appears that the ARP request does collide (I dont' know why?) since the node 3 is receiveing the ARP request sent by node 0 for node 2. But simulation doesn't carry on. This is the whole trace file that I have shown. Please help me in simulating more than 1 application in wifi ns3 because any example does not show us how to do so. Any help would be greatly appreciated. Thank you, BR, Amit Soni From mangku.sarjana at gmail.com Tue Jul 15 07:30:52 2008 From: mangku.sarjana at gmail.com (gede mangku sarjana) Date: Tue, 15 Jul 2008 21:30:52 +0700 Subject: [ns] Ns-users Digest, Vol 55, Issue 9 NAM problem(valentina Timcenko) Message-ID: <7a274dc80807150730o5c6c7650r73d497bced0ec752@mail.gmail.com> ok...i try help you...may be you dont right configure the PATH...so please check them or you can add in bashcr file in /etc directory like in profile file in /etc...so just that...i hope can help you 2008/7/10 : > Send Ns-users mailing list submissions to > ns-users at isi.edu > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.isi.edu/mailman/listinfo/ns-users > or, via email, send a message with subject or body 'help' to > ns-users-request at isi.edu > > You can reach the person managing the list at > ns-users-owner at isi.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ns-users digest..." > > > Today's Topics: > > 1. NAM problem (Valentina Timcenko) > 2. Agregation of Multiple Poisson Sources (Alessandro Vivas) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 9 Jul 2008 03:18:46 -0700 (PDT) > From: Valentina Timcenko > Subject: [ns] NAM problem > To: ns-users at ISI.EDU > Message-ID: <159020.81960.qm at web36203.mail.mud.yahoo.com> > Content-Type: text/plain; charset=iso-8859-1 > > Please, > > Could you be so kind to help me resolve the problem with NAM. > > After starting the simulation of varios scripts I get the message of this > form: > > invalid command name "n" > ??? while executing > "n -t * -s 0? -x 0 -y 0 -Z 0 -z 100? -v circle -c black" > ??? (file "ceda_mob_2.nam" line 1) > > I am using ns-allinone-ns2.32 (nam version 1.13) on Linux Fedora 8, kernel > 2.6. > > Thank you very much in advance... > > Val > > > > > > > > ------------------------------ > > Message: 2 > Date: Wed, 9 Jul 2008 11:00:34 -0300 > From: "Alessandro Vivas" > Subject: [ns] Agregation of Multiple Poisson Sources > To: ns-users at ISI.EDU > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, I'm working with aggregation of multiple Poisson Sources > (heterogeneous sources) in Network Simulator in a queue FiFO with 2 > nodes. I would like to know what is the expression (formula) to > calculate the time delay of packet transit in one link (transit time + > enqueue time). > > Thanks, > > Alessandro Vivas Andrade > -- > aita pea pea > > > > ------------------------------ > > _______________________________________________ > Ns-users mailing list > Ns-users at isi.edu > http://mailman.isi.edu/mailman/listinfo/ns-users > > > End of Ns-users Digest, Vol 55, Issue 9 > *************************************** > From jamal.toutouh at yahoo.es Tue Jul 15 07:48:23 2008 From: jamal.toutouh at yahoo.es (Jamal Toutouh) Date: Tue, 15 Jul 2008 14:48:23 +0000 (GMT) Subject: [ns] Simulation glibc errors and warnings Message-ID: <274236.63388.qm@web27607.mail.ukl.yahoo.com> Dear all, How are you? I am writing because sometimes (not always) when I am executing a simulation with ns-2 I achieve some errors and warnings. Some examples of them are: *** glibc detected *** free(): invalid next size (normal): 0x0b7a6588 *** *** glibc detected *** corrupted double-linked list: 0x0c3c3900 *** *** glibc detected *** malloc(): memory corruption: 0x0bd23150 *** *** glibc detected *** double free or corruption (!prev): 0x0be3c0b8 *** can someone tell me how I can avoid them? Thank you... ------------------------------------------------ Jamal Toutouh El Alamin NEO Group - Networking and Emerging Optimization University of Malaga ------------------------------------------------ Phone: (+34) 952 13 33 03 ------------------------------------------------ Addres: E.T.S Ingenieria Informatica Complejo Tecnologico, Lab. 3.3.4b Campus de Teatinos 29071 Malaga, Spain ------------------------------------------------- ______________________________________________ Enviado desde Correo Yahoo! La bandeja de entrada m?s inteligente. From wenning_cn at yahoo.com Tue Jul 15 09:07:43 2008 From: wenning_cn at yahoo.com (Ning Wen) Date: Tue, 15 Jul 2008 09:07:43 -0700 (PDT) Subject: [ns] ZigBee routing simulation Message-ID: <806651.6237.qm@web65503.mail.ac4.yahoo.com> Hi All, I am new to ns2 and I am working on a project related to ZigBee routing. After searching the web, I found Jianliang Zheng had developed an IEEE 802.15.4 module for ns2 (http://ees2cy.engr.ccny.cuny.edu/zheng/pub/). He also mentioned that "ZigBee routing is now maintained by ZigBee NWK WG and no longer included in this release." But I cannot find the implementation by ZigBee WG. Can anyone give me some advise on if there is any public available implementation of ZigBee routing? Thanks in advance! Best, Ning From cartman5771 at yahoo.gr Tue Jul 15 16:34:37 2008 From: cartman5771 at yahoo.gr (spiros kar) Date: Tue, 15 Jul 2008 23:34:37 +0000 (GMT) Subject: [ns] ns-2 and multicell Message-ID: <212847.53903.qm@web23205.mail.ird.yahoo.com> Does NS-2 suport the frequency reuse of Wimax model? I don't care about the version only if it is possible. If that so how can I do that? Because I thing that we only initialize one frequency for all the BS in the bigining. Thanks ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From shwt_sk at yahoo.com Tue Jul 15 22:07:01 2008 From: shwt_sk at yahoo.com (shweta s k) Date: Tue, 15 Jul 2008 22:07:01 -0700 (PDT) Subject: [ns] how to simulate wireless mesh network in ns-2.31 Message-ID: <98492.87670.qm@web62511.mail.re1.yahoo.com> hi , ?? to all please tell me how to simulate wireless mesh networks. ? thank u... ? ? From tomh at tomh.org Tue Jul 15 22:53:07 2008 From: tomh at tomh.org (Tom Henderson) Date: Tue, 15 Jul 2008 22:53:07 -0700 Subject: [ns] Simulation halting after ARP request in Wifi, ns3 Message-ID: <487D8CC3.6040904@tomh.org> Amit Soni wrote: > Hello ns users, > > I am simulating a small Adhoc-wifi network of 4 nodes in ns3. Two nodes > are OnOff sources and other two of them are OnOff sinks. I am starting two > source nodes at the same time. The problem I am facing is that, after ARP > request the simulation just halts, not even a single data packet is sent. > Following is my script: > > #include > #include > #include "ns3/core-module.h" > #include "ns3/common-module.h" > #include "ns3/node-module.h" > #include "ns3/helper-module.h" > #include "ns3/mobility-module.h" > #include "ns3/contrib-module.h" > #include "ns3/wifi-module.h" > > using namespace ns3; > int main (int argc, char *argv[]) > { > Packet::EnableMetadata (); > Config::SetDefault ("ns3::WifiRemoteStationManager::RtsCtsThreshold", > StringValue ("0")); // enable rts cts all the time. > > WifiHelper wifi; > MobilityHelper mobility; > NodeContainer stas; > NetDeviceContainer staDevs; > InternetStackHelper stack; > > stas.Create (4); > > Ptr channel = CreateObject (); > channel->SetPropagationDelayModel > (CreateObject ()); > Ptr log = > CreateObject (); > log->SetReferenceModel (CreateObject ()); > channel->SetPropagationLossModel (log); > > wifi.SetPhy ("ns3::WifiPhy"); > wifi.SetRemoteStationManager ("ns3::ArfWifiManager"); > wifi.SetMac ("ns3::AdhocWifiMac"); > > mobility.SetPositionAllocator ("ns3::GridPositionAllocator", > > "MinX", DoubleValue (0.0), > > "MinY", DoubleValue (0.0), > > "DeltaX", DoubleValue (5.0), > > "DeltaY", DoubleValue (10.0), > > "GridWidth", UintegerValue (3), > > "LayoutType", StringValue ("RowFirst")); > > mobility.SetMobilityModel ("ns3::StaticMobilityModel"); > mobility.Install (stas); > > staDevs = wifi.Install (stas, channel); > stack.Install (stas); > Ipv4AddressHelper ipv; > ipv.SetBase ("10.1.1.0", "255.255.255.0"); > Ipv4InterfaceContainer ipvcontain = ipv.Assign (staDevs); > > OnOffHelper onoff1 ("ns3::UdpSocketFactory", InetSocketAddress > (ipvcontain.GetAddress (1), 9)); > onoff1.SetAttribute ("OnTime", RandomVariableValue > (ConstantVariable > (10))); > onoff1.SetAttribute ("OffTime", RandomVariableValue > (ConstantVariable > (0))); > ApplicationContainer apps1 = onoff1.Install (stas.Get (0)); > apps1.Start (Seconds (0.5)); > apps1.Stop (Seconds (10.0)); > PacketSinkHelper sink ("ns3::UdpSocketFactory", Address > (InetSocketAddress (Ipv4Address::GetAny (), 9))); > sink.Install (stas.Get (1)); > onoff1.SetAttribute ("Remote", AddressValue (InetSocketAddress > (ipvcontain.GetAddress (3), 9))); > ApplicationContainer apps2 = onoff1.Install (stas.Get (2)); > sink.Install (stas.Get (3)); > apps2.Start(Seconds (0.5)); > apps2.Stop (Seconds (10.0)); > > std::ofstream ascii("out.tr"); > WifiHelper::EnableAsciiAll(ascii); > > Simulator::Stop (Seconds (10.0)); > Simulator::Run (); > Simulator::Destroy (); > return 0; > } > > > Following is content of out.tr after simulation: > > + 508192000ns /NodeList/0/DeviceList/0/$ns3::WifiNetDevice/Phy/Tx > ns3::WifiMacHeader (DATA ToDS=0, FromDS=0, MoreFrag=0, Retry=0, MoreData=0 > Duration/ID=0usDA=ff:ff:ff:ff:ff:ff, SA=00:00:00:00:00:01, > BSSID=ff:ff:ff:ff:ff:ff, FragNumber=0, SeqNumber=0) ns3::LlcSnapHeader > (type 0x806) ns3::ArpHeader (request source mac: 00-06-00:00:00:00:00:01 > source ipv4: 10.1.1.1 dest ipv4: 10.1.1.2) ns3::WifiMacTrailer () > + 508192000ns /NodeList/2/DeviceList/0/$ns3::WifiNetDevice/Phy/Tx > ns3::WifiMacHeader (DATA ToDS=0, FromDS=0, MoreFrag=0, Retry=0, MoreData=0 > Duration/ID=0usDA=ff:ff:ff:ff:ff:ff, SA=00:00:00:00:00:03, > BSSID=ff:ff:ff:ff:ff:ff, FragNumber=0, SeqNumber=0) ns3::LlcSnapHeader > (type 0x806) ns3::ArpHeader (request source mac: 00-06-00:00:00:00:00:03 > source ipv4: 10.1.1.3 dest ipv4: 10.1.1.4) ns3::WifiMacTrailer () > r 508304033ns /NodeList/3/DeviceList/0/$ns3::WifiNetDevice/Phy/RxOk > ns3::WifiMacHeader (DATA ToDS=0, FromDS=0, MoreFrag=0, Retry=0, MoreData=0 > Duration/ID=0usDA=ff:ff:ff:ff:ff:ff, SA=00:00:00:00:00:01, > BSSID=ff:ff:ff:ff:ff:ff, FragNumber=0, SeqNumber=0) ns3::LlcSnapHeader > (type 0x806) ns3::ArpHeader (request source mac: 00-06-00:00:00:00:00:01 > source ipv4: 10.1.1.1 dest ipv4: 10.1.1.2) ns3::WifiMacTrailer () > > > It appears that the ARP request does collide (I dont' know why?) since the > node 3 is receiveing the ARP request sent by node 0 for node 2. But > simulation doesn't carry on. This is the whole trace file that I have > shown. > Please help me in simulating more than 1 application in wifi ns3 because > any example does not show us how to do so. > Any help would be greatly appreciated. > > Thank you, > BR, Amit Soni > > Amit, I'll cross-post this to ns-3-users list as well; please do any follow-ups on the ns-3-users list only. I had a quick look at your script tonight. First thing that I did was to try to localize the problem. I swapped out the Wifi configuration for a Csma configuration, to see whether the traffic generators were behaving OK: CsmaHelper csma; csma.SetChannelAttribute ("DataRate", DataRateValue (5000000)); csma.SetChannelAttribute ("Delay", TimeValue (MilliSeconds (2))); staDevs = csma.Install (stas); and then further below, I changed it to use Csma tracing helpers: //WifiHelper::EnableAsciiAll(ascii); CsmaHelper::EnableAsciiAll(ascii); This produced a lot of UDP data, so it seems like the problem is in the Wifi configuration or is a result of using WiFi (perhaps packet losses). Next, I turned on full logging for the original file you posted, which I called halting.cc and which I placed in the scratch/ directory: export NS_LOG="*" ./waf --run scratch/halting This produced voluminous output that I didn't feel like wading through, so I turned off verbose logging: export NS_LOG="" I instead turned on a few selected log components as follows: export NS_LOG="AdhocWifiMac:MacLow:NetDevice:ArpL3Protocol" and reran the script, and this snippet was in the log trace: 508192000ns MacLow:StartTransmission(): 00:00:00:00:00:03 startTx size=64, to=ff:ff:ff:ff:ff:ff, listener=0x638690^M508192000ns MacLow:SendDataPacket(0x6381c0)^M 508192000ns MacLow:ForwardDown(0x6381c0, 0x6426a0, 0x638308, wifia-6mbs)^M508192000ns MacLow:ForwardDown(): 00:00:00:00:00:03 send DATA, to=ff:ff:ff:ff:ff:ff, size=64, mode=wifia-6mbs, duration=0ns, seq=0x0^M 508304016ns MacLow:ReceiveError(0x6370d0, 0x642220, 0.999963)^M 508304016ns MacLow:ReceiveError(): 00:00:00:00:00:02 rx failed ^M 508304033ns MacLow:ReceiveOk(0x6392b0, 0x642400, 3395.41, wifia-6mbs, 0)^M 508304033ns MacLow:ReceiveOk(): 00:00:00:00:00:04 duration/id=0ns^M 508304033ns MacLow:ReceiveOk(): 00:00:00:00:00:04 rx broadcast from=00:00:00:00:00:01^M 508304033ns AdhocWifiMac:ForwardUp(): received size=36, from=00:00:00:00:00:01^M 508304033ns ArpL3Protocol:Receive()^M 508304033ns ArpL3Protocol:FindCache()^M 508304033ns ArpL3Protocol:Receive(): ARP: received request node=3, got request from 10.1.1.1 for address 10.1.1.2; we have address 10.1.1.4^M508304033ns ArpL3Protocol:Receive(): node=3, got request from 10.1.1.1 for unknown address 10.1.1.2 -- drop^M so, it seems that there are two ARP requests being sent, one from 10.1.1.1 to 10.1.1.2 that is received on node 3 (which discards it), and one from 10.1.1.3 to 10.1.1.4 that is not received by anyone. Looking at the subsequent arp behavior, both transmitting nodes are in "wate reply" state 516384000ns ArpL3Protocol:Lookup()^M516384000ns ArpL3Protocol:Lookup(): node=0, wait reply for 10.1.1.2 valid -- drop previous 516384000ns ArpL3Protocol:Lookup()^M516384000ns ArpL3Protocol:Lookup(): node=2, wait reply for 10.1.1.4 valid -- drop previous ... then move to "dead entry" state a while later, and stay there for the rest of the simulation: 1524000000ns ArpL3Protocol:Lookup(): node=0, dead entry for 10.1.1.2 valid -- drop 1524000000ns ArpL3Protocol:Lookup() 1524000000ns ArpL3Protocol:Lookup(): node=2, dead entry for 10.1.1.4 valid -- drop A quick scan of the arp-l3-protocol.cc implementation seems to suggest that there is no capability to retransmit ARP requests, so maybe this is a bug that needs confirmed or filing. So, my initial take on this is: 1) the initial wireless transmissions are failing to reach intended nodes 2) arp is not retrying I will try to look again tomorrow, Tom From lella79 at hotmail.com Wed Jul 16 00:48:46 2008 From: lella79 at hotmail.com (ValeriaRC) Date: Wed, 16 Jul 2008 00:48:46 -0700 (PDT) Subject: [ns] gossip protocol Message-ID: <18406709.post@talk.nabble.com> I'm a students :confused:!!!! I have to implement the GP on NS2, or NS3. someone knows if it is already available, since this is an old protocol?:working: thank very much=) Valeria -- View this message in context: http://www.nabble.com/gossip-protocol-tp18406709p18406709.html Sent from the ns-users mailing list archive at Nabble.com. From mostafafoda at hotmail.com Wed Jul 16 00:49:43 2008 From: mostafafoda at hotmail.com (Mostafa Fouda) Date: Wed, 16 Jul 2008 16:49:43 +0900 Subject: [ns] how to simulate wireless mesh network in ns-2.31 In-Reply-To: <98492.87670.qm@web62511.mail.re1.yahoo.com> References: <98492.87670.qm@web62511.mail.re1.yahoo.com> Message-ID: IEEE 802.16 Wireless Mesh Networks in ns-2 This is a patch to the Network Simulator 2 (ns-2) that allows IEEE 802.16d Wireless Mesh Networks to be simulated. No support to the Point-to-Multipoint mode is included in this patch. Only the Mesh mode. This is the first public release of the this software. Therefore, it is expected that some problems that have not surfaced while we were using the simulator will happen to you. The functions for enabling data transmission at the MAC layer are fully implemented. Access to the data sub-frame is negotiated by means of the three-way handshake specified by the standard, while scheduling is implemented according to the Fair End-to-end Bandwidth Access (FEBA) algorithm described in a technical paper presented at IEEE INFOCOM 2006. Access to the control sub-frame is implemented according to the standard distributed election procedure described in a tutorial manner in this paper. Installation To install the patch, follow the instructions below: 1. download the ns-allinone-2.31 package from SourceForge 2. unpack the file that you just downloaded in your preferred location (let us assume the location is /usr/local). This will create a directory named /usr/local/ns-allinone-2.31 3. download the latest ns2mesh80216 patch (let us assume that you downloaded the file in /tmp) 4. apply the patch, by executing the following command: 'cd /usr/local/ns-allinone-2.31/ns-2.31 ; \ gzip -dc /tmp/ns2mesh80216-2.31-071030.patch.gz | patch -Np1' 5. compile the all-in-one patched ns-2.31, by executing the following command: '/usr/local/ns-allinone-2.31/install' You are now ready to run the Tcl scenario example wimax/tcl/mesh.tcl. You will find many useful pointers on what-to-do-next in the same directory. The ns2mesh80216 patch includes the following modules: * ns2measure (more information available here) * ns2voip (more information available here) --------------- Mostafa FOUDA Ph.D. Candidate Tohoku University, Sendai, Japan URL: http://www.it.ecei.tohoku.ac.jp/~mfouda/ > Date: Tue, 15 Jul 2008 22:07:01 -0700 > From: shwt_sk at yahoo.com > To: ns-users at ISI.EDU > Subject: [ns] how to simulate wireless mesh network in ns-2.31 > > > > > hi , > ?? to all please tell me how to simulate wireless mesh networks. > ? thank u... > ? > ? > > > _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx From samira.niafar at gmail.com Wed Jul 16 02:33:10 2008 From: samira.niafar at gmail.com (samira.niafar@gmail.com) Date: Wed, 16 Jul 2008 10:33:10 +0100 Subject: [ns] Introduce delay in passing packet to Link Layer In-Reply-To: <9168f5370807150542o77e0b66dj7b9ea1ae19ebdf7@mail.gmail.com> References: <121312.26417.qm@web33405.mail.mud.yahoo.com> <9168f5370807150542o77e0b66dj7b9ea1ae19ebdf7@mail.gmail.com> Message-ID: <9168f5370807160233n49785938k928388511f41689d@mail.gmail.com> hi Although there is a field delay_ in the parent class MAC which simulates the MAC computational overhead, it is not used for any simulation in ll or mac-802.11. So if a MAC layer overhead needs to be simulated, the delay_ field needs to be inserted at 2 places: { simulating the send down overhead in transmit(): replacing downtarget_->recv(p->copy(),this) to s.schedule( sometimer ,p->copy(),delay_): the sometimer is a Handler or TimerHandler whose expiring would call the downtarget_->recv(); { simulating the send up overhead in recvDATA(): replacing uptarget_->recv(p,(Handler*)0) to s.schedule( sometimer, p, delay_); above changes will inserted at mac_802.11. -------------- Samira Niafar Iran University of Science and Technology -- Sincerely Samira Niafar Iran University of Science and Technology From muhammad_usman_ashraf at yahoo.com Wed Jul 16 03:17:40 2008 From: muhammad_usman_ashraf at yahoo.com (Usman Ashraf) Date: Wed, 16 Jul 2008 03:17:40 -0700 (PDT) Subject: [ns] how to get ifqueue length Message-ID: <518533.31383.qm@web52808.mail.re2.yahoo.com> Dear all, I am simulating a wired-cum-wireless scenario. To get the queue lengths at?any mobile?node, I can simply call the ifqueue->PriQ->DropTail->length from any place in the routing layer and it works. However when I do the same for the gateway node, I get a Zero Queue length. Can anyone kindly explain how to get the queue length for gaetway nodes a the routing layer. ? regards. From lella79 at hotmail.com Wed Jul 16 09:20:39 2008 From: lella79 at hotmail.com (ValeriaRC) Date: Wed, 16 Jul 2008 09:20:39 -0700 (PDT) Subject: [ns] gossip protocol info Message-ID: <18491223.post@talk.nabble.com> sorry for the wrong message. I am tentanto to implement the protocol. I seek help for NS. thank you:blush: -- View this message in context: http://www.nabble.com/gossip-protocol-info-tp18491223p18491223.html Sent from the ns-users mailing list archive at Nabble.com. From leventkurt at gmail.com Wed Jul 16 11:35:34 2008 From: leventkurt at gmail.com (Levent Kurt) Date: Wed, 16 Jul 2008 21:35:34 +0300 Subject: [ns] How to produce HTTP Packet/Traffic Message-ID: Hi there, I have a project to do in NS I found so many working examples on how to produce FTP or CBR, but I couldn't found any "simple" way to produce 5 HTTP packets from one location to another. I'm completely overloaded with other project at school and unfortunately don't have time to go too deep in information to produce 5 simple HTTP packets and show them in NAM :( All help will be appreciated, thanks from now. From aservin at cs.york.ac.uk Wed Jul 16 13:10:53 2008 From: aservin at cs.york.ac.uk (Arturo Servin) Date: Wed, 16 Jul 2008 21:10:53 +0100 Subject: [ns] How to produce HTTP Packet/Traffic In-Reply-To: References: Message-ID: <30272216-842E-48DE-A388-4819025DCB3B@cs.york.ac.uk> I have never used it but I think that Packmime-http could be useful for you: http://ns-2.blogspot.com/2007/05/web-traffic-generation-in-ns-2-with.html The original link is not working but you can use the google cache: http://216.239.59.104/search?q=cache:2DxyFk3Ho-YJ:dirt.cs.unc.edu/packmime/+ns2+packmime&hl=en&ct=clnk&cd=1 Hope it helps, -as P.D. For examples check /opt/ns-allinone-2.31/ns-2.31/tcl/ex/packmime/ (or whatever path you have for your install) On 16 Jul 2008, at 19:35, Levent Kurt wrote: > > Hi there, > > I have a project to do in NS I found so many working examples on how > to produce FTP or CBR, but I couldn't found any "simple" way to > produce 5 HTTP packets from one location to another. I'm completely > overloaded with other project at school and unfortunately don't have > time to go too deep in information to produce 5 simple HTTP packets > and show them in NAM :( > > All help will be appreciated, thanks from now. > From luo_yunqi at 126.com Wed Jul 16 19:48:50 2008 From: luo_yunqi at 126.com (luo_yunqi) Date: Thu, 17 Jul 2008 10:48:50 +0800 (CST) Subject: [ns] installation problem about ns-2.1b7a Message-ID: <13324635.139241216262930273.JavaMail.coremail@bj126app11.126.com> Dear NS User; I am trying to install ns-2.1b7a on Red Hat Linux2.4. I download ns-allinone-2.1b7a.tar from ftp://ftp.isi.edu/nsnam/. And then I "tar xzvf ns-allinone-2.1b7a.tar.gz" Secondly, I "cd ns-allinone-2.17a" At last, I use the command "./install" But I failed with these messages: In file included from trace.cc:44: tfrc.h:116: friend declaration requires class-key, i.e. `friend class TfrcSendTimer' tfrc.h:117: friend declaration requires class-key, i.e. `friend class TfrcNoFeedbackTimer' make: *** [trace.o] Error 1 Ns make failed! See http://www-mash.CS.Berkeley.EDU/ns/ns-problems.html for problems [root at localhost ns-allinone-2.1b7a]# And I didn't find the answer on http://www-mash.CS.Berkeley.EDU/ns/ns-problems.html . Do you know the answer? Could you help me please? yours, Linda From leventkurt at gmail.com Thu Jul 17 04:04:40 2008 From: leventkurt at gmail.com (Levent Kurt) Date: Thu, 17 Jul 2008 14:04:40 +0300 Subject: [ns] How to produce HTTP Packet/Traffic In-Reply-To: <30272216-842E-48DE-A388-4819025DCB3B@cs.york.ac.uk> References: <30272216-842E-48DE-A388-4819025DCB3B@cs.york.ac.uk> Message-ID: Thanks for the information Arturo; took so much on the road with packmime; but although it says: $packmime set-client Associates the node with the PackMimeHTTP client cloud If I write a tcl like: $pm set-client $nB; # name $nB as client $pm set-client $nC; # name $nB as client $pm set-server $nY; # name $nY as server It gives me the following error: Error: 2 clients and 1 servers How can I add more than one node to the clients cloud? I want 5 similtaneous client-nodes connecting to one server-node; does anyone have a tcl something similar to what I need? Levent From haideruet at yahoo.com Thu Jul 17 07:37:03 2008 From: haideruet at yahoo.com (Haider Abbas) Date: Thu, 17 Jul 2008 07:37:03 -0700 (PDT) Subject: [ns] basic Wired Ethernet Message-ID: <943886.51043.qm@web34206.mail.mud.yahoo.com> hi! i want to simulate Ethernet Lan (wired 802.3), and i want to connect? 5 nodes in a circular but using above protocol so where to insert Mac802.3 ? $ns duplex-link $node(0) $node(2) 2Mb 2ms DropTail ? thanks Hade From damian.lezama at hotmail.com Thu Jul 17 13:17:55 2008 From: damian.lezama at hotmail.com (=?iso-8859-1?Q?Dami=E1n_Lezama?=) Date: Thu, 17 Jul 2008 17:17:55 -0300 Subject: [ns] ns-2 vs ns-3 for new project Message-ID: Hi, I've found this on the ns-3 wiki: "ns-3 is a new software development effort focused on improving upon the core architecture, software integration, models, and educational components of ns-2. The project commenced in July 2006 and there have not yet been any releases (pre-alpha stage). If you are looking for a simulator to currently use for research, please use ns-2. " But there is a stable release, the June 2008 release, so my questions are: Is the wiki outdated or the recommendation about using ns-2 still holds? For a one year research work starting now, could it be reasonable to use ns-3? Someone is already using it for research? Thank you Regards, Damian Lezama _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From d9115006 at mail.ntust.edu.tw Thu Jul 17 20:39:44 2008 From: d9115006 at mail.ntust.edu.tw (ntust) Date: Fri, 18 Jul 2008 11:39:44 +0800 Subject: [ns] tclcl build error for ns-2.27 Message-ID: <000001c8e887$eb7d5e30$c2781a90$@ntust.edu.tw> Hi, After I installed ns-allinone-2.27, then I see the following error message. tclcl-mappings.h:51: errorincomplete type `Tcl' used in nested name specifier tclcl-mappings.h:52: errorinvalid use of undefined type struct Tcl tclcl-mappings.h:41: errorforward declaration of struct Tcl tclcl-mappings.h:57: errorinvalid use of undefined type struct Tcl tclcl-mappings.h:41: errorforward declaration of struct Tcl I don't know how to resolve the problem, I ask for help. Best Regards, Sanmic Huang (D9115006) From sekar.bonton at gmail.com Thu Jul 17 21:27:50 2008 From: sekar.bonton at gmail.com (rajasekars3) Date: Thu, 17 Jul 2008 21:27:50 -0700 (PDT) Subject: [ns] Ns2 Intrusion detection Message-ID: <18501859.post@talk.nabble.com> Hi all, I decide to implement the Intrusion detection system by using mobile agents by In ns2 environment . I gone through the AODVSTAT IDS and some others , I need ns2 simulation code of AODVSTAT or any other popular intrusion detection system .Please send me if you have any.please help to continue my research. Thanks in advance.. Regards Rajasekar -- View this message in context: http://www.nabble.com/Ns2-Intrusion-detection-tp18501859p18501859.html Sent from the ns-users mailing list archive at Nabble.com. From tomh at tomh.org Thu Jul 17 22:35:04 2008 From: tomh at tomh.org (Tom Henderson) Date: Thu, 17 Jul 2008 22:35:04 -0700 Subject: [ns] ns-2 vs ns-3 for new project In-Reply-To: References: Message-ID: <48802B88.7060607@tomh.org> Dami?n Lezama wrote: > > Hi, > > I've found this on the ns-3 wiki: > > "ns-3 is a new software development effort focused on improving upon the core architecture, software integration, models, and educational components of ns-2. The project commenced in July 2006 and there have not yet been any releases (pre-alpha stage). > > If you are looking for a simulator to currently use for research, please use ns-2. " > > But there is a stable release, the June 2008 release, so my questions are: > Is the wiki outdated or the recommendation about using ns-2 still holds? Hi Damian, the wiki was still outdated but is now revised. > For a one year research work starting now, could it be reasonable to use ns-3? > Someone is already using it for research? Several people are already using it for research. If you are interested, please review the list of current models, and the tutorial and overview presentations, to see whether it might meet your needs. - Tom From rajivnakarmi at gmail.com Fri Jul 18 01:12:16 2008 From: rajivnakarmi at gmail.com (Rajiv Nakarmi) Date: Fri, 18 Jul 2008 13:57:16 +0545 Subject: [ns] problem in configuration Message-ID: <19a6c8ce0807180112p3efc8ab3u37e79c66efac518b@mail.gmail.com> i am trying to setup 802.11e in ns2.28 using cygwin. and i got following error when running multi_udpflow.tcl file. $ ./ns mac/802_11e/multi_udpflows.tcl num_nodes is set 51 (_o20 cmd line 1) invoked from within "_o20 cmd add-interface _o13 _o16 LL Mac/802_11e Queue/DTail/PriQ 50 Phy/Wireles sPhy Antenna/OmniAntenna _o14 {} {} {} _o28" 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 "_o20" line 2) (SplitObject unknown line 2) invoked from within "$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_..." (procedure "_o3" line 69) (Simulator create-wireless-node line 69) invoked from within "_o3 create-wireless-node 1.0.0" ("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 1.0.0" invoked from within "set BS(0) [$ns node 1.0.0]" (file "mac/802_11e/multi_udpflows.tcl" line 92) Thanks your time From trypes247 at hotmail.com Fri Jul 18 13:09:15 2008 From: trypes247 at hotmail.com (angelina socratous) Date: Fri, 18 Jul 2008 20:09:15 +0000 Subject: [ns] Calculate Signal strength in ns2 Message-ID: I have a topology with some access points and some wireless nodes attached to them. If a new node wants to join the network how can i get the signal strength which the new node receives from each access point? Should i use c++? If someone has a tutorial for this task it would be very helpful. Thanks, Angelina _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE From sankarasubramanian.s at gmail.com Fri Jul 18 21:10:14 2008 From: sankarasubramanian.s at gmail.com (Sankar Subramanian Salvady) Date: Sat, 19 Jul 2008 00:10:14 -0400 Subject: [ns] Scheduling problem using 'at' command In-Reply-To: <3feb959c0807182106s6ad14c7fl2899f95c8efaccf3@mail.gmail.com> References: <3feb959c0807182106s6ad14c7fl2899f95c8efaccf3@mail.gmail.com> Message-ID: <3feb959c0807182110r7939fa7fj6481d3e11a40e903@mail.gmail.com> Dear All, I have a wireless node simulation in NS2 using 'at' command. It looks like this. . $ns_ at 323 "$nod_ setdest 8358.628906 13691.158203 15.023533" $ns_ at 326.5 "$nod_ setdest 8328.832031 13647.843750 15.021062" $ns_ at 330 "$nod_ setdest 8298.761719 13604.128906 15.159590" $ns_ at 333.5 "$nod_ setdest 8268.960938 13560.804688 15.023993" $ns_ at 337 "$nod_ setdest 8240.449219 13515.890625 15.199869" However as I run the simulation, I see that the simulation starts immediately ( the first 'at' command is supposed to start at 323 seconds though) and all the events proceed immediately instead of having a space of 3.5 seconds.. I have not done any change to the Scheduler code , so I dont see my changes interfering with the scheduler. Could some one please tell me why this might be happening ? Thanks Sankar From softwarequalitycenter at yahoo.com Fri Jul 18 21:12:32 2008 From: softwarequalitycenter at yahoo.com (Software Quality Center) Date: Fri, 18 Jul 2008 21:12:32 -0700 (PDT) Subject: [ns] why we are still using this kind of mailing list Message-ID: <336950.41376.qm@web51405.mail.re2.yahoo.com> Hi Guys, ? Don't get offended but I think this ns 2 mailing list sucks. Its a pain to search for proper message. When you post the replies are rare and really messed up with other irrelevant questions. Why don't we use some kind of groups , such as yahoo groups or google groups instead? Much easier to search relevant messages, much easier to see the replies being sent to you. I am a member of 28 big? yahoo groups (5000 plus users) and I can scan daily updates within 10 mins (there is an option for email , so I use both the web and emails). Let me know if the ns 2 users don't mind this. From softwarequalitycenter at yahoo.com Sat Jul 19 00:20:14 2008 From: softwarequalitycenter at yahoo.com (Software Quality Center) Date: Sat, 19 Jul 2008 00:20:14 -0700 (PDT) Subject: [ns] why we are still using this kind of mailing list In-Reply-To: Message-ID: <302521.53029.qm@web51411.mail.re2.yahoo.com> OK, let's see how this goes. I have created a new unofficial group for discussing ns-2, I named it "nssimulator" in case Kannan and others rename this tool to ns-3 or 4 later:) Use your yahoo id and start posting. http://tech.groups.yahoo.com/group/nssimulator/settings?mode=1 Thanks --- On Sat, 7/19/08, sunil agrawal wrote: From: sunil agrawal Subject: RE: [ns] why we are still using this kind of mailing list To: softwarequalitycenter at yahoo.com Date: Saturday, July 19, 2008, 1:20 AM #yiv347380837 .hmmessage P { margin:0px;padding:0px;} #yiv347380837 { FONT-SIZE:10pt;FONT-FAMILY:Tahoma;} it is really a pain to search for relevent message. i appreciate if you make such a group to make search of relevant message easier. > Date: Fri, 18 Jul 2008 21:12:32 -0700 > From: softwarequalitycenter at yahoo.com > To: ns-users at ISI.EDU > Subject: [ns] why we are still using this kind of mailing list > > > Hi Guys, > > > > ? Don't get offended but I think this ns 2 mailing list sucks. Its > a pain to search for proper message. When you post the replies are rare > and really messed up with other irrelevant questions. Why don't we use > some kind of groups , such as yahoo groups or google groups instead? > Much easier to search relevant messages, much easier to see the replies > being sent to you. I am a member of 28 big? yahoo groups (5000 > plus users) and I can scan daily updates within 10 mins (there is an > option for email , so I use both the web and emails). Let me know if > the ns 2 users don't mind this. > > > > > > > > > Check news, cricket, entertainment and astrology right from your mobile. Browse http://m.msnindia.com from your GPRS mobile phone. Try it now! From awesome_distance at yahoo.com Sat Jul 19 01:59:30 2008 From: awesome_distance at yahoo.com (IFFAT AHMED) Date: Sat, 19 Jul 2008 01:59:30 -0700 (PDT) Subject: [ns] Help regarding Packet Scheduling Message-ID: <867480.51302.qm@web50004.mail.re2.yahoo.com> Dear All, I want to classify incoming multimedia packets in audio,video, text, graphics etc. Then I want to schedule these packets. All the scenario is in the wireless network. Can anyone help me that how can we classify packets first? For scheduling I will use Queue. Regards, From cartman5771 at yahoo.gr Sun Jul 20 12:06:04 2008 From: cartman5771 at yahoo.gr (spiros kar) Date: Sun, 20 Jul 2008 19:06:04 +0000 (GMT) Subject: [ns] radius of a BS Message-ID: <122522.81168.qm@web23207.mail.ird.yahoo.com> Hello to everyone How can I set the coverage radius of a base station? In the examples there are only a few but I don't underastand them. I want to cover a region of 10km for a Wimax BS. Thanks Spiros ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From krishnarahul562000 at yahoo.co.in Sun Jul 20 14:51:15 2008 From: krishnarahul562000 at yahoo.co.in (Rahul) Date: Mon, 21 Jul 2008 03:21:15 +0530 (IST) Subject: [ns] pkg :: create.n error (Marco Fiore patch) Message-ID: <975273.46760.qm@web94612.mail.in2.yahoo.com> hi guys, ? I am trying to apply the wireless update patch by Marco Fiore and during make install i get an error saying??????? /man/mann/pkg :: create.n??? so such file or directory. ? I tried to compile the tcl example that is provided with the patch to check whether its working or not and iam getting this ? // invalid command name ErrorModel80211 at line ... ErrorModel80211 noise1 -91 // ? i have tried the patch with NS 2.29, 2.31 and 2.33 but same result. ? help is greatly appreciated ? thanks Rahul Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ From klyau23 at yahoo.com Sun Jul 20 19:21:23 2008 From: klyau23 at yahoo.com (Kok Lim, Yau) Date: Sun, 20 Jul 2008 19:21:23 -0700 (PDT) Subject: [ns] How to refer to different mac in a multi-interface node Message-ID: <764642.62954.qm@web33402.mail.mud.yahoo.com> Hi All, I have 2 interfaces within a node. The interfaces have different MAC address. I'm using 802.11. In 802.11, index_ refers to an interface mac address. My design requires communication between two interfaces at MAC layer. For instance, within a node, interface 0 can trigger interface 1 to do something. My question is, how to refer to different interfaces? The index_ is just a MAC address, can't trigger? the interfaces to do something. Thank you for your answer. Regards, KL From dlil_346 at students.itb.ac.id Sun Jul 20 23:42:59 2008 From: dlil_346 at students.itb.ac.id (dlil_346@students.itb.ac.id) Date: Mon, 21 Jul 2008 13:42:59 +0700 (WIT) Subject: [ns] add new function In-Reply-To: References: Message-ID: <1267.167.205.79.89.1216622579.squirrel@students.itb.ac.id> hello, i need help, how to add a new function or command in ns2? thank you for your help... From mangku.sarjana at gmail.com Mon Jul 21 00:17:53 2008 From: mangku.sarjana at gmail.com (gede mangku sarjana) Date: Mon, 21 Jul 2008 14:17:53 +0700 Subject: [ns] help: HRED Message-ID: <7a274dc80807210017q26f0b76w8475e5319610ca54@mail.gmail.com> i have some complication to implementation hybrid RED(AQM algorithm)?? please help me, i am use ns 2.32 From rafiullah136 at yahoo.com Mon Jul 21 00:44:16 2008 From: rafiullah136 at yahoo.com (rafi ullah) Date: Mon, 21 Jul 2008 00:44:16 -0700 (PDT) Subject: [ns] Help regarding :802.21 MIH Protocol" Message-ID: <43897.51711.qm@web57112.mail.re3.yahoo.com> All Wireless technologies UMTS, WLAN and WIMAX etc in case of Vertical Handover support a very high data rate which is not possible in real. Is it a problem or it is not considered in a Patch ? How to solve the problem please help me regarding the problem. From rakesh.cse.10182 at gmail.com Mon Jul 21 03:47:30 2008 From: rakesh.cse.10182 at gmail.com (rakesh chouhan) Date: Mon, 21 Jul 2008 16:17:30 +0530 Subject: [ns] help regarding ethernet LAN Message-ID: <90a573540807210347s48a825ffw56bb3733517c98bd@mail.gmail.com> hi all ns users, i m doing a project on ethernet lan with the performance comparision of, 1 persistance p persistance non persistance if anybody have some idea, then plz help me asap, i m waiting ur reply. From d.rother at tu-bs.de Mon Jul 21 08:41:05 2008 From: d.rother at tu-bs.de (Daniel Rother) Date: Mon, 21 Jul 2008 17:41:05 +0200 Subject: [ns] Calculate Signal strength in ns2 In-Reply-To: References: Message-ID: <20080721174105.bdnf2nao1wg00ccw@webmail.tu-bs.de> Hi, I've got the same problem. In tcl I haven't found a solution. I thougth there is something easy like "set strength [$node set signalstrength]" but it seems there isn't such a think... :( Because of that I go to the C++-Source-Code. After a little bit of searching I found the file "wireless-phy.cc" and there the function "sendUp". I think there the variable "Pr" is the signal strength (because later in the function "Pr" is compared with "CSTresh_" and "RXTresh_" wich a used to simulated if a paket is recieved correct or not). But now I had the problem that "Pr" alway had got the same value and I don't know why. I went back to my tcl file and play a little bit with my settings. As I changed "set opt(prop) Propagation/TwoRayGround" to "set opt(prop) Propagation/FreeSpace" and start a simulation, I've got an output on my console like "time: 0.008566: d: 31.622777, Pr: 2.949347e-09" (and there the Pr is chaniging!). First I was wondered about that, but then I looked into the file "propagation.cc" and there I found in the function Pr() "printf("%lf: d: %lf, Pr: %e\n", Scheduler::instance().clock(), d, Pr);". So I copy that and put it into the file "tworayground.cc" at the same position (the function Pr) and now it seems to work. But I always have a question: Why is Pr in "tworayground" changing and in "wireless-phy" not? And is it the correct position to read out the signal strength? I've alway looked into the file "mac-802_11.cc" and the function "send" but there "Pr" also seems not to work correct (there it is alwas "1.600278e-02" or "-1"...) What do I have to change? And a last thing: I want to have the signal strength in dBm. Because of that I made "10*log10(Pr)" but I'm not sure if I have to use "10*log10(Pr/0.001)" instead (because 1mW is the referece value for dBm and I don't know if it is include in Pr or not...) I hope anybody can help me with my problem(s). Thanks! Greets Daniel Rother Zitat von angelina socratous : > > > I have a topology with some access points and some wireless nodes > attached to them. If a new node wants to join the network how can i > get the signal strength which the new node receives from each access > point? > Should i use c++? If someone has a tutorial for this task it would > be very helpful. > > Thanks, Angelina > _________________________________________________________________ > Explore the seven wonders of the world > http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE > From pratap_ksahu at yahoo.co.in Mon Jul 21 09:03:24 2008 From: pratap_ksahu at yahoo.co.in (pratap sahu) Date: Mon, 21 Jul 2008 21:33:24 +0530 (IST) Subject: [ns] Jamming singal Implementation.. Help required Message-ID: <75756.83096.qm@web94112.mail.in2.yahoo.com> ? dear ns-users, ? ?Can anybody help me to implement jamming signal in 802.11 MAC. Actually I have noticed the old version of NS2 used Jamming signal in wired network. Thanks in advance. ? With Regards ? Pratap From rhasan at uiuc.edu Mon Jul 21 13:04:47 2008 From: rhasan at uiuc.edu (Ragib Hasan) Date: Mon, 21 Jul 2008 15:04:47 -0500 Subject: [ns] How do I merge two flows? Message-ID: <72a91a270807211304m3da0ce65w4452ed0ce4815530@mail.gmail.com> Hi everyone, I am quite new to NS-2, and am stuck with this problem: how do I merge two incoming flows into a single outgoing flow? Here is the scenario: I have two CBR generators running at two nodes N1, N2, which send data over UDP links to N3. In turn, N3 is connected to another node N4, where we have an application that will use the packets. What I want to do is this: I want to generate timestamped/sequence numbered packets at N1 and N2. N3 is to have two incoming flows of these packets, and I want to merge these incoming flows at N3, do some processing (i.e. add a processing overhead latency), and send the combined flow to N4, which will examine the packet sequence numbers and delays. In other words, N3 is to merge the two incoming flows into a single outgoing flow to N4. This might be trivial to solve, but as I said, I am very new to NS-2, and can't find a solution. So, it will be great if anyone can tell me what to do and/or direct me to the appropriate documentation. Thanks in advance. Ragib -- Ragib Hasan PhD Candidate Dept of Computer Science University of Illinois at Urbana-Champaign 201 N Goodwin Avenue Urbana IL 61801 Website: http://www.ragibhasan.com http://netfiles.uiuc.edu/rhasan/www From bomk777 at yahoo.com Mon Jul 21 13:35:29 2008 From: bomk777 at yahoo.com (fd ss) Date: Mon, 21 Jul 2008 13:35:29 -0700 (PDT) Subject: [ns] installation problem Message-ID: <622833.12256.qm@web53010.mail.re2.yahoo.com> Hi there, i am new to ns and i tried to install ns for the first time under cygwin but i could not. i received the following messages : ./install:line 20:$' \r ' :command not found ./install:line 21:syntax error near unexpected token ' $' {\r ' ' ;/install:line 21: ' die<> { i believe that i followed every step correctly and i re-install cygwin and ns many times with the same result. i used ns-allinone-2.33 please help me thank you From rhasan at uiuc.edu Mon Jul 21 13:40:55 2008 From: rhasan at uiuc.edu (Ragib Hasan) Date: Mon, 21 Jul 2008 15:40:55 -0500 Subject: [ns] How do I merge two flows? In-Reply-To: <6d5dcd1d0807211331t3396de6ax7c821b91d97dce52@mail.gmail.com> References: <72a91a270807211304m3da0ce65w4452ed0ce4815530@mail.gmail.com> <6d5dcd1d0807211331t3396de6ax7c821b91d97dce52@mail.gmail.com> Message-ID: <72a91a270807211340l6ef0c90rac69a2336d6822dd@mail.gmail.com> This is a wired connection all over the topology. By combining, I mean N3 will take incoming packets from N1 and N2, add some headers/payload to the packets (causing a delay at N3), and then send the new packets to N4. So, if N3 gets Packet1 and Packet 2 from N1, N2 respectively, the outgoing packets to N4 will be Packet1' and Packet2' (i.e. same header, but slightly modified by N3). Now, I have already been using the 2nd suggestion you made here, i.e. to have a UDP flow from N1->N4 and N2->N4. But that's precisely what I don't want to do ... I want to have a flow N1->N3, and another flow, N2->N3, and send packets from these incoming flows over the flow N3->N4. In other words, I want a single flow on the link between N3 and N4. (One way of doing this might have been to have a packet sink at N3, and then adding a CBR source at N3 with data rate equal to the sum of the CBR rates of N1 and N2. But I need end to end latency measurements and other calculations for packets from N1/N2 to N4, so the flow must be continuous.) Any solutions/suggestions for that would be much appreciated. Thanks. -- Ragib On Mon, Jul 21, 2008 at 3:31 PM, Farhana Ashraf wrote: > Combining two flows into one, does this means after getting one packet from > N1, and one packet from N2, N3 will: > 1. change the two packets, and send the two packets to N4? is it using > wireless channel or wired? > or, 2. N3 will combine the two packets, have its own one packet to send to > N4? > > For case 1 (wireless), you can: > have two CBR flows, one from N1 and N4, and the other from N1 to N4. > set the distances between the the nodes such that, the flow from N1 to N4 > has to go through N3. similar thing for flow2. > then hack MAC layer to change the packet information at N3. > > for wired, you just have to connect the nodes in the network, as you > described. > but have the two CBR flows, one N1->N4, other N2->N4. > hack MAC layer to change packet at N3. > > There may be other simple ways for doing it. But, this is how I probably > would have done it. > > Thanks > Farhana > > On Mon, Jul 21, 2008 at 3:04 PM, Ragib Hasan wrote: >> >> Hi everyone, >> >> I am quite new to NS-2, and am stuck with this problem: how do I merge >> two incoming flows into a single outgoing flow? >> >> Here is the scenario: I have two CBR generators running at two nodes >> N1, N2, which send data over UDP links to N3. In turn, N3 is connected >> to another node N4, where we have an application that will use the >> packets. >> >> What I want to do is this: I want to generate timestamped/sequence >> numbered packets at N1 and N2. N3 is to have two incoming flows of >> these packets, and I want to merge these incoming flows at N3, do some >> processing (i.e. add a processing overhead latency), and send the >> combined flow to N4, which will examine the packet sequence numbers >> and delays. >> >> In other words, N3 is to merge the two incoming flows into a single >> outgoing flow to N4. >> >> This might be trivial to solve, but as I said, I am very new to NS-2, >> and can't find a solution. So, it will be great if anyone can tell me >> what to do and/or direct me to the appropriate documentation. >> >> Thanks in advance. >> >> Ragib >> >> -- >> Ragib Hasan >> PhD Candidate >> Dept of Computer Science >> University of Illinois at Urbana-Champaign >> 201 N Goodwin Avenue >> Urbana IL 61801 >> >> Website: >> http://www.ragibhasan.com >> http://netfiles.uiuc.edu/rhasan/www >> > > From farhana.ashraf at gmail.com Mon Jul 21 13:49:36 2008 From: farhana.ashraf at gmail.com (Farhana Ashraf) Date: Mon, 21 Jul 2008 15:49:36 -0500 Subject: [ns] How do I merge two flows? In-Reply-To: <72a91a270807211340l6ef0c90rac69a2336d6822dd@mail.gmail.com> References: <72a91a270807211304m3da0ce65w4452ed0ce4815530@mail.gmail.com> <6d5dcd1d0807211331t3396de6ax7c821b91d97dce52@mail.gmail.com> <72a91a270807211340l6ef0c90rac69a2336d6822dd@mail.gmail.com> Message-ID: <6d5dcd1d0807211349u15fe7465n655352af131e7250@mail.gmail.com> Have you hacked the recv function of MAC layer to add the processing delay? On Mon, Jul 21, 2008 at 3:40 PM, Ragib Hasan wrote: > This is a wired connection all over the topology. By combining, I mean > N3 will take incoming packets from N1 and N2, add some headers/payload > to the packets (causing a delay at N3), and then send the new packets > to N4. So, if N3 gets Packet1 and Packet 2 from N1, N2 respectively, > the outgoing packets to N4 will be Packet1' and Packet2' (i.e. same > header, but slightly modified by N3). > > Now, I have already been using the 2nd suggestion you made here, i.e. > to have a UDP flow from N1->N4 and N2->N4. But that's precisely what I > don't want to do ... I want to have a flow N1->N3, and another flow, > N2->N3, and send packets from these incoming flows over the flow > N3->N4. In other words, I want a single flow on the link between N3 > and N4. (One way of doing this might have been to have a packet sink > at N3, and then adding a CBR source at N3 with data rate equal to the > sum of the CBR rates of N1 and N2. But I need end to end latency > measurements and other calculations for packets from N1/N2 to N4, so > the flow must be continuous.) > > Any solutions/suggestions for that would be much appreciated. Thanks. > > -- > > Ragib > > > On Mon, Jul 21, 2008 at 3:31 PM, Farhana Ashraf > wrote: > > Combining two flows into one, does this means after getting one packet > from > > N1, and one packet from N2, N3 will: > > 1. change the two packets, and send the two packets to N4? is it using > > wireless channel or wired? > > or, 2. N3 will combine the two packets, have its own one packet to send > to > > N4? > > > > For case 1 (wireless), you can: > > have two CBR flows, one from N1 and N4, and the other from N1 to N4. > > set the distances between the the nodes such that, the flow from N1 to N4 > > has to go through N3. similar thing for flow2. > > then hack MAC layer to change the packet information at N3. > > > > for wired, you just have to connect the nodes in the network, as you > > described. > > but have the two CBR flows, one N1->N4, other N2->N4. > > hack MAC layer to change packet at N3. > > > > There may be other simple ways for doing it. But, this is how I probably > > would have done it. > > > > Thanks > > Farhana > > > > On Mon, Jul 21, 2008 at 3:04 PM, Ragib Hasan wrote: > >> > >> Hi everyone, > >> > >> I am quite new to NS-2, and am stuck with this problem: how do I merge > >> two incoming flows into a single outgoing flow? > >> > >> Here is the scenario: I have two CBR generators running at two nodes > >> N1, N2, which send data over UDP links to N3. In turn, N3 is connected > >> to another node N4, where we have an application that will use the > >> packets. > >> > >> What I want to do is this: I want to generate timestamped/sequence > >> numbered packets at N1 and N2. N3 is to have two incoming flows of > >> these packets, and I want to merge these incoming flows at N3, do some > >> processing (i.e. add a processing overhead latency), and send the > >> combined flow to N4, which will examine the packet sequence numbers > >> and delays. > >> > >> In other words, N3 is to merge the two incoming flows into a single > >> outgoing flow to N4. > >> > >> This might be trivial to solve, but as I said, I am very new to NS-2, > >> and can't find a solution. So, it will be great if anyone can tell me > >> what to do and/or direct me to the appropriate documentation. > >> > >> Thanks in advance. > >> > >> Ragib > >> > >> -- > >> Ragib Hasan > >> PhD Candidate > >> Dept of Computer Science > >> University of Illinois at Urbana-Champaign > >> 201 N Goodwin Avenue > >> Urbana IL 61801 > >> > >> Website: > >> http://www.ragibhasan.com > >> http://netfiles.uiuc.edu/rhasan/www > >> > > > > > From reza_mo1384 at yahoo.com Mon Jul 21 19:09:23 2008 From: reza_mo1384 at yahoo.com (reza mohammadi) Date: Mon, 21 Jul 2008 19:09:23 -0700 (PDT) Subject: [ns] Fw: how i can run new mac protocol in ns Message-ID: <753986.25247.qm@web33402.mail.mud.yahoo.com> ?hello i design a new mac protocol and i want to implement it in ns but i can't. i can't use makefile command for this protocol. my problem is that i write the .h and .cc file for new protocol but i can't implement this protocol in ns please help me thanks reza mohammadi ? From lmcbarreto at gmail.com Tue Jul 22 06:14:49 2008 From: lmcbarreto at gmail.com (=?UTF-8?Q?Lu=C3=ADs_Barreto?=) Date: Tue, 22 Jul 2008 14:14:49 +0100 Subject: [ns] can't read "ragent_": no such variable Message-ID: <1e9258700807220614p6e1a9881mf05c9856d9a2ebc5@mail.gmail.com> Hi, I'm using DSR routing protocol in a wired-cum-wireless simulation and am having the following problem: can't read "ragent_": no such variable while executing "subst $[subst $var" Could you please tell how to set up this variable and solve this problem? I got this problem for a long time and couldn't solve it. I?ve searched and no one says the solution Thanks for your help. Lu?s From reza_mo1384 at yahoo.com Tue Jul 22 07:20:51 2008 From: reza_mo1384 at yahoo.com (reza mohammadi) Date: Tue, 22 Jul 2008 07:20:51 -0700 (PDT) Subject: [ns] how i solve this error"no class variable Mac/NewMac::bandwidth_" Message-ID: <815397.64389.qm@web33404.mail.mud.yahoo.com> hello i design new mac protocol my new protocol base class inherite from Mac class ?when i use it follow error ocured and i can't test it "no class variable Mac/NewMac::bandwidth_" "no class variable Mac/NewMac::delay_" "no class variable Mac/NewMac::abstract_" "no class variable Mac/NewMac::full_duplex_mode_" can any body? help me? thanks From mshrehmani at gmail.com Tue Jul 22 07:34:33 2008 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Tue, 22 Jul 2008 16:34:33 +0200 Subject: [ns] Reply to ragent_ question Message-ID: Hello You can declare ragent_ for instance in your tcl script like this: set ragent_($i) [$node_($i) set ragent_] $ns at $var "$ragent_($i) Myfunction" Then in your tcl script you can also have the ragent_ reference like this: puts "mubashir $ragent_(0)" puts "mubashir $ragent_(1)" And you can have access to this ragent_ in either you AODV.cc or DSR.cc protocol by utilizing it by defining Myfunction in command AODV::command(int argc, const char*const* argv) { if(strncasecmp(argv[1], "Myfunction", 2) == 0) { //do what ever you want } return TCL_OK; } Hope it helps Regards -- Mubashir Husain Rehmani Mobile : 00 33 (0)6 32 00 89 35 From SYilmaz at aselsan.com.tr Tue Jul 22 11:14:21 2008 From: SYilmaz at aselsan.com.tr (Semra YILMAZ) Date: Tue, 22 Jul 2008 21:14:21 +0300 Subject: [ns] different node speeds does not give smooth results References: <22DF48915EF5BF4998B4B34DE67C0A99814AC0@POSTA.aselsan.com.tr> Message-ID: <22DF48915EF5BF4998B4B34DE67C0A99814AC2@POSTA.aselsan.com.tr> Dear all, I have trouble with the node speed in my simulations. I am trying analyze the performance of mobile network in two different case for different node speed (5, 10, 15 and 20 m/sec). I couldn't get consistent results for these speeds. Especially, there are some positive or negative peaks at 10 m/sec node speed. So I couldn't get a smooth result in my comparison. You may introduce such a situation in your studies. If anyone has any idea, i will appreciate this. Regards, Semra ###################################################################### Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz. Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi gorusu olmak zorunda degildir. ###################################################################### Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. E-mails to and from the company are monitored for operational reasons and in accordance with lawful business practices. Any views or opinions presented are solely those of the author and do not necessarily represent the views of the company. ###################################################################### From mohamedhajjjj at yahoo.fr Tue Jul 22 12:15:43 2008 From: mohamedhajjjj at yahoo.fr (Mohamed Hajjjjjj) Date: Tue, 22 Jul 2008 19:15:43 +0000 (GMT) Subject: [ns] MIMO With NS2 Message-ID: <944069.27425.qm@web28405.mail.ukl.yahoo.com> Hi ns-users, Can any one help me how I found a patch or documentation for simulate MIMO networks with ns-2. Thank you very much ________________________________ Envoy? avec Yahoo! Mail. Une boite mail plus intelligente. _____________________________________________________________________________ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr From mohammed2742007 at yahoo.com Tue Jul 22 14:27:16 2008 From: mohammed2742007 at yahoo.com (mohamed saad) Date: Tue, 22 Jul 2008 14:27:16 -0700 (PDT) Subject: [ns] Fw: info. Message-ID: <935741.98746.qm@web45415.mail.sp1.yahoo.com> --- On Wed, 7/23/08, mohamed saad wrote: From: mohamed saad Subject: info. To: "nsusers" Date: Wednesday, July 23, 2008, 12:22 AM ? salam alikom can you help me when i simulated aodv or dsdv or dsr it gives this error: ? iNITIALIZE THE LIST xListHead channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5,? distCST_ = 550.0 SORTING LISTS ...DONE! end simulation could you tell me how solve this error allregards gazak allah khairn From vinioktm at hotmail.com Tue Jul 22 16:02:53 2008 From: vinioktm at hotmail.com (Vinicio Guanochanga) Date: Tue, 22 Jul 2008 18:02:53 -0500 Subject: [ns] HMIPv6 in ns2.28 Message-ID: Hi users.... Do you know if exists any patch for HMIPv6 in ns2.28???? thaks,, _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE From cldmedeiros at yahoo.com.br Tue Jul 22 19:00:51 2008 From: cldmedeiros at yahoo.com.br (Claudia Medeiros) Date: Tue, 22 Jul 2008 19:00:51 -0700 (PDT) Subject: [ns] How to implement TCP-F or TCP-ECN-ELFN Message-ID: <579074.42259.qm@web65602.mail.ac4.yahoo.com> Hello ns-users, ? I want to improve TCP performance in ad hoc networks, using some solutions like TCP-F or TCP-ECN-ELFN. Could someone explain me how to implement this solutions in NS? Thanks! ? Claudia Novos endere?os, o Yahoo! que voc? conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. http://br.new.mail.yahoo.com/addresses From haideruet at yahoo.com Tue Jul 22 20:49:11 2008 From: haideruet at yahoo.com (Haider Abbas) Date: Tue, 22 Jul 2008 20:49:11 -0700 (PDT) Subject: [ns] duplex-link function Message-ID: <431777.31243.qm@web34206.mail.mud.yahoo.com> hi ns users i want to implement the IEEE 802.3 protocol in between nodes connected in r= ing topology. and want to use my mac802-3.cc between nieghbouring nodes.how= to=A0modify duplex-link function so that it accomodate mac802 protocol. thanks Haidersa Korea ? ? From jalal_12 at hotmail.co.uk Tue Jul 22 21:07:10 2008 From: jalal_12 at hotmail.co.uk (Jalaluddin Qureshi) Date: Wed, 23 Jul 2008 12:07:10 +0800 Subject: [ns] Fw: how i can run new mac protocol in ns In-Reply-To: References: Message-ID: Dear Reza,Create a new folder in the ns2.xx folder and place your .cc and .h file in that folder.Go to the makefile, and add this "(folder name)/(your .cc file name, with .o postfix)\ " after OBJ_CC = \ but before $(OBJ_STL).Once thats done, save your makefile. And run the command "make clean", then "make depend", and finally "make".If no error are reported after the "make" command, then this means, your .cc and .h files have no error. And therefore a .o file will be created in your folder after you have run "make" command. Your new mac protocol is now ready to be used. Jalaluddin Qureshi Nanyang Technological University http://www.cemnet.ntu.edu.sg--Forwarded Message Attachment--From: reza_mo1384 at yahoo.comTo: ns-users at ISI.EDUDate: Mon, 21 Jul 2008 19:09:23 -0700Subject: [ns] Fw: how i can run new mac protocol in ns helloi design a new mac protocol and i want to implement it in nsbut i can't.i can't use makefile command for this protocol.my problem is that i write the .h and .cc file for new protocol but i can't implement this protocol in nsplease help methanksreza mohammadi _________________________________________________________________ Easily publish your photos to your Spaces with Photo Gallery. http://get.live.com/photogallery/overview From feixianyexin at 163.com Wed Jul 23 00:00:36 2008 From: feixianyexin at 163.com (Liceven) Date: Wed, 23 Jul 2008 00:00:36 -0700 (PDT) Subject: [ns] How to get a mobile node's current position Message-ID: <18604950.post@talk.nabble.com> Hello,everyone: I want to simulate a wireless scenario with two access points and a mobile node. This mobile node moves randomly, the question is how to calculate it's position like(x=?,y=?,z=0) at any given time. It could be better if you could give me an example. Of course, any suggestion is welcome. Regards. Liceven -- View this message in context: http://www.nabble.com/How-to-get-a-mobile-node%27s-current-position-tp18604950p18604950.html Sent from the ns-users mailing list archive at Nabble.com. From reza_mo1384 at yahoo.com Wed Jul 23 01:17:22 2008 From: reza_mo1384 at yahoo.com (reza mohammadi) Date: Wed, 23 Jul 2008 01:17:22 -0700 (PDT) Subject: [ns] MACAW simulation in ns Message-ID: <58868.38458.qm@web33406.mail.mud.yahoo.com> hello i am beginner user in NS2. i want to simulate MACAW protocol in ns but i tangled in complexity of ns2 can you help me to start simulation of MACAW in ns? do you have any source code about MACAW? Thanks best regards From sree.ramya at yahoo.co.in Wed Jul 23 07:35:38 2008 From: sree.ramya at yahoo.co.in (sree ramya kanury) Date: Wed, 23 Jul 2008 20:05:38 +0530 (IST) Subject: [ns] error in tcl when passing user data between applications Message-ID: <395904.90177.qm@web8602.mail.in.yahoo.com> Hi ?? I am trying to pass user data between applications.I have a wired-cum-wireless scenario and am implementing server-client form of transfer of data where server(wired node) requests the data and the client(node) transfers its data.I am setting "multicast on" in the tcl script as I am dealing with 10-100 nodes in ns-2.29.But I get segmentation error when doing this.I looked into the documentation of ns-2.29 multicasting chapter and am trying to do similarly.I have no idea how to fix my error. ?????????? Can any of you please help me solve this?Its very urgent.Your help is really appreciated.Thanks a lot. Thanks Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups/ From sree.ramya at yahoo.co.in Wed Jul 23 07:41:08 2008 From: sree.ramya at yahoo.co.in (sree ramya kanury) Date: Wed, 23 Jul 2008 20:11:08 +0530 (IST) Subject: [ns] MACA-BI implementation in ns-2.29 Message-ID: <228018.39560.qm@web8608.mail.in.yahoo.com> Hi all ??? I am implementing MACA-BI in ns-2.29.I am trying to make changes to mac-802_11.cc/.h file to change the 4 way handshake into a 3 way handshake.But I have so many run time problems coming up everytime.I have no idea how to fix this.Can you please help me in implementing this.Is there anyone who has done similar kind of work??Do you have any kind of source code for this?? ?All your help is really appreciated.Kindly please help me.Thanks a lot in advance. Thanks Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ From mdkatowa at gmail.com Wed Jul 23 10:17:47 2008 From: mdkatowa at gmail.com (Kubi Kay) Date: Wed, 23 Jul 2008 13:17:47 -0400 Subject: [ns] Encryption of AODV packets Message-ID: <35474a30807231017y5bb5db46l5aee07085a4b27be@mail.gmail.com> Helo NS users, Am faily new at using NS2 and was wondering if i could get some help on encryption. Am trying to add encryption to the AODV routing protocol and would like to find out how i go about doing so. i have looked us the various encryption algorithms and there benefits to my simulation but am at loss on how to add these algorithms/code to AODV so i can measure the various security parameters. I would like to add encryption as a first line of defence in securing the packets before i can go into the protocol itself and try to make it more secure. any help would be greatly appreciated. Deepazed From reza_mo1384 at yahoo.com Wed Jul 23 12:08:23 2008 From: reza_mo1384 at yahoo.com (reza mohammadi) Date: Wed, 23 Jul 2008 12:08:23 -0700 (PDT) Subject: [ns] there are many different between Mac/802_11 and article of IEEE802_11 Message-ID: <596666.58192.qm@web33401.mail.mud.yahoo.com> hello i study the? article "IEEE 802.11 Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications" and compare the frames and structure of MAC protocol with MAC/802_11 in NS2 but there are many different between article and simulated Mac protocol in NS2 can any body help me about this problem? Thanks best regards From ainatee at gmail.com Wed Jul 23 18:21:54 2008 From: ainatee at gmail.com (Petra) Date: Wed, 23 Jul 2008 20:21:54 -0500 Subject: [ns] ns-2.28: cannot find -lX11 Message-ID: Hello, I am trying to install ns-2.28 on Red Hat Enterprise Linux ES release 4. First, when I run ./configure in otcl-1.9, it gives me this error: checking for X11 header files checking for X11 library archive *checking for XOpenDisplay in -lX11... no can't find X library* so I add the X11 library directory and run ./configure --x-libraries=/usr/X11R6/lib/ --x-includes=/usr/X11R6/include/ it passes the checking with a warning: checking for X11 header files checking for X11 library archive checking for libXext.a *warning: compiling without -lXext* Then I make, it says gcc -o otclsh -g -O2 -I. -I/srl/ns-allinone-2.28/include -I/srl/ns-allinone-2.28/include -I/usr/X11R6/include/ -I/include otclAppInit.c \ -L. -lotcl -L/srl/ns-allinone-2.28/lib -ltk8.4 -L/srl/ns-allinone-2.28/lib -ltcl8.4 -L/usr/X11R6/lib/ -lX11 -lnsl -ldl -lm */usr/bin/ld: cannot find -lX11* collect2: ld returned 1 exit status make: *** [otclsh] Error 1 Is this because I do not have libXext? Or anything else? Thank you in advance for your help. Best, Petra From rafiullah136 at yahoo.com Wed Jul 23 22:15:33 2008 From: rafiullah136 at yahoo.com (rafi ullah) Date: Wed, 23 Jul 2008 22:15:33 -0700 (PDT) Subject: [ns] Help regarding "Datarate specification in Vertical Handover" Message-ID: <681830.33077.qm@web57107.mail.re3.yahoo.com> While using a scenario of Vertical Handover between two different technologies i.e UMTS-to-WLAN Handover The datarate specification of the technologies does not work. but it gives the same rate what i am going to transmitt. i.e at UMTS i can receive a datarate of 80 Mbps which is impossible at UMTS. Please help me regarding the problem. From feixianyexin at 163.com Wed Jul 23 23:09:27 2008 From: feixianyexin at 163.com (Liceven) Date: Wed, 23 Jul 2008 23:09:27 -0700 (PDT) Subject: [ns] How to get a mobile node's current position In-Reply-To: <18604950.post@talk.nabble.com> References: <18604950.post@talk.nabble.com> Message-ID: <18625919.post@talk.nabble.com> Hi, today I find we could use tcl script to get a node's position. codes like this: set n1 [$ns node] $ns set X_ 15.0 $ns set Y_ 15.0 $ns set Z_ 0.0 ... set x_pos [$n1 set X_] ... 'set x_pos [$n1 set X_]' this script could be used to get the x value of n1's starting position. but it could not record the coordinate dynamically. So, If I want to implement this dynamic function, what should i do? thanks very much. Liceven Liceven wrote: > > Hello,everyone: > I want to simulate a wireless scenario with two access points and a > mobile node. This mobile node moves randomly, the question is how to > calculate it's position like(x=?,y=?,z=0) at any given time. It could be > better if you could give me an example. Of course, any suggestion is > welcome. > Regards. > Liceven > -- View this message in context: http://www.nabble.com/How-to-get-a-mobile-node%27s-current-position-tp18604950p18625919.html Sent from the ns-users mailing list archive at Nabble.com. From maxwar at wp.pl Thu Jul 24 02:37:17 2008 From: maxwar at wp.pl (Maksymilian =?ISO-8859-2?Q?Wardzi=F1ski?=) Date: Thu, 24 Jul 2008 11:37:17 +0200 Subject: [ns] ns-2.28: cannot find -lX11 In-Reply-To: References: Message-ID: <20080724113717.a0c979da.maxwar@wp.pl> Hello, Try to do this: yum install libX11-devel yum install xorg-x11-proto-devel yum install libXt-devel and for nam You need this: yum install libXmu-devel Cheers, Maksymilian Wardzinski From reza_mo1384 at yahoo.com Thu Jul 24 03:21:52 2008 From: reza_mo1384 at yahoo.com (reza mohammadi) Date: Thu, 24 Jul 2008 03:21:52 -0700 (PDT) Subject: [ns] Fw: MACAW simulation in ns Message-ID: <558240.36003.qm@web33402.mail.mud.yahoo.com> hello i am beginner user in NS2. i want to simulate MACAW protocol in ns but i tangled in complexity of ns2 can you help me to start simulation of MACAW in ns? do you have any source code about MACAW? Thanks best regards From reza_mo1384 at yahoo.com Thu Jul 24 03:22:50 2008 From: reza_mo1384 at yahoo.com (reza mohammadi) Date: Thu, 24 Jul 2008 03:22:50 -0700 (PDT) Subject: [ns] there are many different between Mac/802_11 and article of IEEE802_11 Message-ID: <495606.25508.qm@web33401.mail.mud.yahoo.com> hello i study the? article "IEEE 802.11 Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications" and compare the frames and structure of MAC protocol with MAC/802_11 in NS2 but there are many different between article and simulated Mac protocol in NS2 can any body help me about this problem? Thanks best regards From ghandour.aub at gmail.com Thu Jul 24 05:45:19 2008 From: ghandour.aub at gmail.com (ghandour) Date: Thu, 24 Jul 2008 05:45:19 -0700 (PDT) Subject: [ns] set val(sc) Message-ID: <18631177.post@talk.nabble.com> I was able to find the meaning of the following instruction set val(sc) " "; -- View this message in context: http://www.nabble.com/set-val%28sc%29-tp18631177p18631177.html Sent from the ns-users mailing list archive at Nabble.com. From ghandour.aub at gmail.com Thu Jul 24 05:46:23 2008 From: ghandour.aub at gmail.com (ghandour) Date: Thu, 24 Jul 2008 05:46:23 -0700 (PDT) Subject: [ns] set val(sc) Message-ID: <18631199.post@talk.nabble.com> Sorry for the typos... I was not able to find the meaning of the following instruction set val(sc) " "; Can you help plz -- View this message in context: http://www.nabble.com/set-val%28sc%29-tp18631199p18631199.html Sent from the ns-users mailing list archive at Nabble.com. From mohamedhajjjj at yahoo.fr Thu Jul 24 05:58:35 2008 From: mohamedhajjjj at yahoo.fr (Mohamed Hajjjjjj) Date: Thu, 24 Jul 2008 12:58:35 +0000 (GMT) Subject: [ns] Help please Message-ID: <464200.91460.qm@web28412.mail.ukl.yahoo.com> Hi ns-users, Can any one how I use tow antennas in one node and where I found patch for 802.11n. Thank you very much _____________________________________________________________________________ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr From haideruet at yahoo.com Thu Jul 24 06:43:06 2008 From: haideruet at yahoo.com (HaiderSa) Date: Thu, 24 Jul 2008 06:43:06 -0700 (PDT) Subject: [ns] duplex-link function In-Reply-To: <431777.31243.qm@web34206.mail.mud.yahoo.com> References: <431777.31243.qm@web34206.mail.mud.yahoo.com> Message-ID: <18632206.post@talk.nabble.com> yes u can search for duplex-link function and try to modify that .it ll help u HaiderSa wrote: > > > hi ns users > i want to implement the IEEE 802.3 protocol in between nodes connected in > r= > ing topology. and want to use my mac802-3.cc between nieghbouring > nodes.how= > to=A0modify duplex-link function so that it accomodate mac802 protocol. > thanks > > Haidersa > > Korea > ? > ? > > > > > -- View this message in context: http://www.nabble.com/duplex-link-function-tp18603353p18632206.html Sent from the ns-users mailing list archive at Nabble.com. From jalal_12 at hotmail.co.uk Thu Jul 24 07:48:10 2008 From: jalal_12 at hotmail.co.uk (Jalaluddin Qureshi) Date: Thu, 24 Jul 2008 22:48:10 +0800 Subject: [ns] Encryption of AODV packets In-Reply-To: References: Message-ID: Dear Deepazed, Try this link: sce.uhcl.edu/transa/Sourcecode/NS-2_Security_Node_Document.doc The title of this project is: Encryption/Decryption functions for NS-2 Which i feel is relevant to your problem. Kind Regards Jalaluddin Qureshi Research Student @ CeMNet, SCE. Nanyang Technological University www.cemnet.ntu.edu.sg . --Forwarded Message Attachment-- From: mdkatowa at gmail.com To: ns-users at ISI.EDU Date: Wed, 23 Jul 2008 13:17:47 -0400 Subject: [ns] Encryption of AODV packets Helo NS users, Am faily new at using NS2 and was wondering if i could get some help on encryption. Am trying to add encryption to the AODV routing protocol and would like to find out how i go about doing so. i have looked us the various encryption algorithms and there benefits to my simulation but am at loss on how to add these algorithms/code to AODV so i can measure the various security parameters. I would like to add encryption as a first line of defence in securing the packets before i can go into the protocol itself and try to make it more secure. any help would be greatly appreciated. Deepazed _________________________________________________________________ Manage multiple email accounts with Windows Live Mail effortlessly. http://www.get.live.com/wl/all From jalal_12 at hotmail.co.uk Thu Jul 24 08:30:45 2008 From: jalal_12 at hotmail.co.uk (Jalaluddin Qureshi) Date: Thu, 24 Jul 2008 23:30:45 +0800 Subject: [ns] How to get a mobile node's current position Message-ID: Dear Liceven, While I cant give you step-by-step instruction on how to solve your problem. But here is the idea. If you were to go to ns-allinone2.xx/ns2.xx/mobile/antenna.cc file you will see the function: Antenna::Antenna() { X_ = 0; Y_= 0; Z_= 0; bind("X_", &X_); bind("Y_", &Y_); bind("Z_", &Z_); } Basically this constructors binds the X_ variable in the TCL file with the X_ in the C++ file. If you were to add say: cout << "X position" << X_ << endl; cout << "Y position" << Y_ << endl; cout << "Z position" << Z_ << endl; after bind("Z_", &Z_); but before }. And then run the "make clean" and "make" command at the Linux command terminal in the ns-allinone2.xx/ns2.xx/ prompt area. Once thats done, if you were to run your .tcl file, you will see an output, which specifies the position of your node in X, Y, Z coordinate. The glitch with this approach is that it shows you the coordinates for time 0.0, mean just at the start of the simulation. For your problem, YOU need to find the .cc file which is responsible for changing the X, Y, Z coordinates. Once you locate that .cc file, then locate the function which is changing the value of X, Y, Z, and then you can add the above cout lines at the end of that function. This way, when you run the simulation, you will get live time output of the X, Y, Z coordinates. If you know C++ half-decent, then I think it will not take you more than 2-5 hours to locate the function and find the solution of your problem. PLEASE ONCE YOU SOLVE YOUR PROBLEM, DO SHARE YOUR SOLUTION WITH OTHERS ON THE NS MAILING LIST. Kind Regards Jalaluddin Qureshi Research Student @ CeMNet, SCE Nanayang Technological University N4-B2c-06, Nanyang Avenue Singapore 639798 http://www.cemnet.ntu.edu.sg --Forwarded Message Attachment-- From: feixianyexin at 163.com To: ns-users at ISI.EDU Date: Wed, 23 Jul 2008 00:00:36 -0700 Subject: [ns] How to get a mobile node's current position Hello,everyone: I want to simulate a wireless scenario with two access points and a mobile node. This mobile node moves randomly, the question is how to calculate it's position like(x=?,y=?,z=0) at any given time. It could be better if you could give me an example. Of course, any suggestion is welcome. Regards. Liceven -- View this message in context: http://www.nabble.com/How-to-get-a-mobile-node%27s-current-position-tp18604950p18604950.html Sent from the ns-users mailing list archive at Nabble.com. _________________________________________________________________ Check out Barclays Premier League exclusive video clips here! http://fc.sg.msn.com/index.aspx From d9115006 at mail.ntust.edu.tw Thu Jul 24 09:47:48 2008 From: d9115006 at mail.ntust.edu.tw (ntust) Date: Fri, 25 Jul 2008 00:47:48 +0800 Subject: [ns] tclcl build error for ns-2.27 Message-ID: <001401c8edad$019164d0$04b42e70$@ntust.edu.tw> Hi, After I installed ns-allinone-2.27, then I see the following error message. tclcl-mappings.h:51: errorincomplete type `Tcl' used in nested name specifier tclcl-mappings.h:52: errorinvalid use of undefined type struct Tcl tclcl-mappings.h:41: errorforward declaration of struct Tcl tclcl-mappings.h:57: errorinvalid use of undefined type struct Tcl tclcl-mappings.h:41: errorforward declaration of struct Tcl I don't know how to resolve the problem, I ask for help. Please help me! Thanks a lot! Best Regards, Sanmic Huang (D9115006mail.ntust.edu.tw) From agustin.cozzetti at gmail.com Thu Jul 24 12:36:36 2008 From: agustin.cozzetti at gmail.com (Hector Agustin Cozzetti) Date: Thu, 24 Jul 2008 21:36:36 +0200 Subject: [ns] Simple question about wireless channel Message-ID: Hello, I'm a new user of NS2 simulator. I have a simple question: i would like to know if possible to set the various frequency of wireless (physical layer) in NS2, to be more precise if it's possibile to use the different channels (5.2GHZ, 5.9GHZ) and tecnology (802.11a,802.11g...) in the simulation. If it's possible, Can you give me an example in tcl script? Thanks very much :) From reza_mo1384 at yahoo.com Thu Jul 24 19:02:18 2008 From: reza_mo1384 at yahoo.com (reza mohammadi) Date: Thu, 24 Jul 2008 19:02:18 -0700 (PDT) Subject: [ns] MACAW simulation in ns Message-ID: <617811.78561.qm@web33404.mail.mud.yahoo.com> hello i am beginner user in NS2. i want to simulate MACAW protocol in ns but i tangled in complexity of ns2 can you help me to start simulation of MACAW in ns? do you have any source code about MACAW? Thanks best regards From feixianyexin at 163.com Thu Jul 24 23:33:04 2008 From: feixianyexin at 163.com (Liceven) Date: Thu, 24 Jul 2008 23:33:04 -0700 (PDT) Subject: [ns] How to get a mobile node's current position In-Reply-To: References: <18604950.post@talk.nabble.com> Message-ID: <18645996.post@talk.nabble.com> Dear Jalaluddin, Thanks very much for your great suggestion. But it is difficult for me to modify some cc file to reach the target. And I think I should spend more time to get understood how TCL communicates with C++ class. Just as the same as what I said before, there is a way to get a mobile node?s position. The TCL script codes are shown as bellow: set node(1) [$ns node] $ node(1) set X_ 15.0 $ node(1)set Y_ 15.0 $ node(1)set Z_ 0.0 ... for {set i 0} {$i < $val(nn)} {incr i} { $ns initial_node_pos $node($i) 60 } ?. the script ?set x_pos [$node(1) set X_]? could be used to get the x value of the mobile node at the time 0.0. So, I am wondering may I write a proc used to record this x value every 0.5 second. The tcl codes are: proc record {} { global filepr d pt l lambda gt gr pi node(1) #here I just want to record node 1 set ns [Simulator instance] set time 0.5;# record 0.5 second set pr 0.0 set m [expr (1 /(4 * $pi * $d))] set pr [expr ($pt * $gr * $gt * $m * $m / 1)] set d [expr ($d+10)] # set xp [$n1 set X_] set now [$ns now] set node_x [$node(1) set X_] set node_y [$node(1) set Y_] puts $filepr "$now\t$pr\t$node_x\t$node_y" $ns at [expr $now + $time] "record" } $ns at 1.0 "record" But when I run this script, there is an error? node(1), no such variable?. Today I happen to find the solution about this problem in the internet: Change ?global node(1)? to ?global node?. Pay attention that node($i) is an array[I still havn't found the reason yet]. And this function record will help me to finish the job[record a mobile node?s position (x,y) every 0.5 second] And, I think I will think over your idea when i get enough knowledge about NS. Thanks very much again. Best wishes.:jumping: Liceven Jalaluddin Qureshi wrote: > > > > > Dear Liceven, > > While I cant give you step-by-step instruction on how to solve your > problem. But here is the idea. If you were to go to > ns-allinone2.xx/ns2.xx/mobile/antenna.cc file you will see the function: > > Antenna::Antenna() > { > X_ = 0; Y_= 0; Z_= 0; > bind("X_", &X_); > bind("Y_", &Y_); > bind("Z_", &Z_); > } > > Basically this constructors binds the X_ variable in the TCL file with the > X_ in the C++ file. If you were to add say: > > cout << "X position" << X_ << endl; > cout << "Y position" << Y_ << endl; > cout << "Z position" << Z_ << endl; > > after bind("Z_", &Z_); but before }. And then run the "make clean" and > "make" command at the Linux command terminal in the > ns-allinone2.xx/ns2.xx/ prompt area. Once thats done, if you were to run > your .tcl file, you will see an output, which specifies the position of > your node in X, Y, Z coordinate. > > The glitch with this approach is that it shows you the coordinates for > time 0.0, mean just at the start of the simulation. > > For your problem, YOU need to find the .cc file which is responsible for > changing the X, Y, Z coordinates. Once you locate that .cc file, then > locate the function which is changing the value of X, Y, Z, and then you > can add the above cout lines at the end of that function. > > This way, when you run the simulation, you will get live time output of > the X, Y, Z coordinates. If you know C++ half-decent, then I think it will > not take you more than 2-5 hours to locate the function and find the > solution of your problem. > > PLEASE ONCE YOU SOLVE YOUR PROBLEM, DO SHARE YOUR SOLUTION WITH OTHERS ON > THE NS MAILING LIST. > > Kind Regards > Jalaluddin Qureshi > > Research Student @ CeMNet, SCE > Nanayang Technological University > N4-B2c-06, Nanyang Avenue > Singapore 639798 > http://www.cemnet.ntu.edu.sg > > --Forwarded Message Attachment-- > From: feixianyexin at 163.com > To: ns-users at ISI.EDU > Date: Wed, 23 Jul 2008 00:00:36 -0700 > Subject: [ns] How to get a mobile node's current position > > > Hello,everyone: > I want to simulate a wireless scenario with two access points and a > mobile node. This mobile node moves randomly, the question is how to > calculate it's position like(x=?,y=?,z=0) at any given time. It could be > better if you could give me an example. Of course, any suggestion is > welcome. > Regards. > Liceven > -- > View this message in context: > http://www.nabble.com/How-to-get-a-mobile-node%27s-current-position-tp18604950p18604950.html > Sent from the ns-users mailing list archive at Nabble.com. > > > > _________________________________________________________________ > Check out Barclays Premier League exclusive video clips here! > http://fc.sg.msn.com/index.aspx > > > -- View this message in context: http://www.nabble.com/How-to-get-a-mobile-node%27s-current-position-tp18604950p18645996.html Sent from the ns-users mailing list archive at Nabble.com. From feixianyexin at 163.com Thu Jul 24 23:33:35 2008 From: feixianyexin at 163.com (Liceven) Date: Thu, 24 Jul 2008 23:33:35 -0700 (PDT) Subject: [ns] How to get a mobile node's current position In-Reply-To: References: <18604950.post@talk.nabble.com> Message-ID: <18645998.post@talk.nabble.com> Dear Jalaluddin, Thanks very much for your great suggestion. But it is difficult for me to modify some cc file to reach the target. And I think I should spend more time to get understood how TCL communicates with C++ class. Just as the same as what I said before, there is a way to get a mobile node?s position. The TCL script codes are shown as bellow: set node(1) [$ns node] $ node(1) set X_ 15.0 $ node(1)set Y_ 15.0 $ node(1)set Z_ 0.0 ... for {set i 0} {$i < $val(nn)} {incr i} { $ns initial_node_pos $node($i) 60 } ?. the script ?set x_pos [$node(1) set X_]? could be used to get the x value of the mobile node at the time 0.0. So, I am wondering may I write a proc used to record this x value every 0.5 second. The tcl codes are: proc record {} { global filepr d pt l lambda gt gr pi node(1) #here I just want to record node 1 set ns [Simulator instance] set time 0.5;# record 0.5 second set pr 0.0 set m [expr (1 /(4 * $pi * $d))] set pr [expr ($pt * $gr * $gt * $m * $m / 1)] set d [expr ($d+10)] # set xp [$n1 set X_] set now [$ns now] set node_x [$node(1) set X_] set node_y [$node(1) set Y_] puts $filepr "$now\t$pr\t$node_x\t$node_y" $ns at [expr $now + $time] "record" } $ns at 1.0 "record" But when I run this script, there is an error? node(1), no such variable?. Today I happen to find the solution about this problem in the internet: Change ?global node(1)? to ?global node?. Pay attention that node($i) is an array[I still havn't found the reason yet]. And this function record will help me to finish the job[record a mobile node?s position (x,y) every 0.5 second] And, I think I will think over your idea when i get enough knowledge about NS. Thanks very much again. Best wishes.:jumping: Liceven Jalaluddin Qureshi wrote: > > > > > Dear Liceven, > > While I cant give you step-by-step instruction on how to solve your > problem. But here is the idea. If you were to go to > ns-allinone2.xx/ns2.xx/mobile/antenna.cc file you will see the function: > > Antenna::Antenna() > { > X_ = 0; Y_= 0; Z_= 0; > bind("X_", &X_); > bind("Y_", &Y_); > bind("Z_", &Z_); > } > > Basically this constructors binds the X_ variable in the TCL file with the > X_ in the C++ file. If you were to add say: > > cout << "X position" << X_ << endl; > cout << "Y position" << Y_ << endl; > cout << "Z position" << Z_ << endl; > > after bind("Z_", &Z_); but before }. And then run the "make clean" and > "make" command at the Linux command terminal in the > ns-allinone2.xx/ns2.xx/ prompt area. Once thats done, if you were to run > your .tcl file, you will see an output, which specifies the position of > your node in X, Y, Z coordinate. > > The glitch with this approach is that it shows you the coordinates for > time 0.0, mean just at the start of the simulation. > > For your problem, YOU need to find the .cc file which is responsible for > changing the X, Y, Z coordinates. Once you locate that .cc file, then > locate the function which is changing the value of X, Y, Z, and then you > can add the above cout lines at the end of that function. > > This way, when you run the simulation, you will get live time output of > the X, Y, Z coordinates. If you know C++ half-decent, then I think it will > not take you more than 2-5 hours to locate the function and find the > solution of your problem. > > PLEASE ONCE YOU SOLVE YOUR PROBLEM, DO SHARE YOUR SOLUTION WITH OTHERS ON > THE NS MAILING LIST. > > Kind Regards > Jalaluddin Qureshi > > Research Student @ CeMNet, SCE > Nanayang Technological University > N4-B2c-06, Nanyang Avenue > Singapore 639798 > http://www.cemnet.ntu.edu.sg > > --Forwarded Message Attachment-- > From: feixianyexin at 163.com > To: ns-users at ISI.EDU > Date: Wed, 23 Jul 2008 00:00:36 -0700 > Subject: [ns] How to get a mobile node's current position > > > Hello,everyone: > I want to simulate a wireless scenario with two access points and a > mobile node. This mobile node moves randomly, the question is how to > calculate it's position like(x=?,y=?,z=0) at any given time. It could be > better if you could give me an example. Of course, any suggestion is > welcome. > Regards. > Liceven > -- > View this message in context: > http://www.nabble.com/How-to-get-a-mobile-node%27s-current-position-tp18604950p18604950.html > Sent from the ns-users mailing list archive at Nabble.com. > > > > _________________________________________________________________ > Check out Barclays Premier League exclusive video clips here! > http://fc.sg.msn.com/index.aspx > > > -- View this message in context: http://www.nabble.com/How-to-get-a-mobile-node%27s-current-position-tp18604950p18645998.html Sent from the ns-users mailing list archive at Nabble.com. From feixianyexin at 163.com Thu Jul 24 23:35:17 2008 From: feixianyexin at 163.com (Liceven) Date: Thu, 24 Jul 2008 23:35:17 -0700 (PDT) Subject: [ns] How to get a mobile node's current position Message-ID: <18645998.post@talk.nabble.com> Dear Jalaluddin, Thanks very much for your great suggestion. But it is difficult for me to modify some cc file to reach the target. And I think I should spend more time to get understood how TCL communicates with C++ class. Just as the same as what I said before, there is a way to get a mobile node?s position. The TCL script codes are shown as bellow: set node(1) [$ns node] $ node(1) set X_ 15.0 $ node(1)set Y_ 15.0 $ node(1)set Z_ 0.0 ... for {set i 0} {$i < $val(nn)} {incr i} { $ns initial_node_pos $node($i) 60 } ?. the script ?set x_pos [$node(1) set X_]? could be used to get the x value of the mobile node at the time 0.0. So, I am wondering may I write a proc used to record this x value every 0.5 second. The tcl codes are: proc record {} { global filepr d pt l lambda gt gr pi node(1) #here I just want to record node 1 set ns [Simulator instance] set time 0.5;# record 0.5 second set pr 0.0 set m [expr (1 /(4 * $pi * $d))] set pr [expr ($pt * $gr * $gt * $m * $m / 1)] set d [expr ($d+10)] # set xp [$n1 set X_] set now [$ns now] set node_x [$node(1) set X_] set node_y [$node(1) set Y_] puts $filepr "$now\t$pr\t$node_x\t$node_y" $ns at [expr $now + $time] "record" } $ns at 1.0 "record" But when I run this script, there is an error? node(1), no such variable?. Today I happen to find the solution about this problem in the internet: Change ?global node(1)? to ?global node?. Pay attention that node($i) is an array[I still havn't found the reason yet]. And this function 'record' will help me to finish the job[record a mobile node?s position (x,y) every 0.5 second]. The result is like this: .... 4 1.4748094279189353e-07 550 500 4.5 1.2392495887374392e-07 475.2091266690191 433.51922370579473 5 1.0559286436579362e-07 475.2091266690191 433.51922370579473 .... And, I think I will think over your idea when i get enough knowledge about NS. Thanks very much again. Best wishes.:jumping: Liceven Jalaluddin Qureshi wrote: > > > > > Dear Liceven, > > While I cant give you step-by-step instruction on how to solve your > problem. But here is the idea. If you were to go to > ns-allinone2.xx/ns2.xx/mobile/antenna.cc file you will see the function: > > Antenna::Antenna() > { > X_ = 0; Y_= 0; Z_= 0; > bind("X_", &X_); > bind("Y_", &Y_); > bind("Z_", &Z_); > } > > Basically this constructors binds the X_ variable in the TCL file with the > X_ in the C++ file. If you were to add say: > > cout << "X position" << X_ << endl; > cout << "Y position" << Y_ << endl; > cout << "Z position" << Z_ << endl; > > after bind("Z_", &Z_); but before }. And then run the "make clean" and > "make" command at the Linux command terminal in the > ns-allinone2.xx/ns2.xx/ prompt area. Once thats done, if you were to run > your .tcl file, you will see an output, which specifies the position of > your node in X, Y, Z coordinate. > > The glitch with this approach is that it shows you the coordinates for > time 0.0, mean just at the start of the simulation. > > For your problem, YOU need to find the .cc file which is responsible for > changing the X, Y, Z coordinates. Once you locate that .cc file, then > locate the function which is changing the value of X, Y, Z, and then you > can add the above cout lines at the end of that function. > > This way, when you run the simulation, you will get live time output of > the X, Y, Z coordinates. If you know C++ half-decent, then I think it will > not take you more than 2-5 hours to locate the function and find the > solution of your problem. > > PLEASE ONCE YOU SOLVE YOUR PROBLEM, DO SHARE YOUR SOLUTION WITH OTHERS ON > THE NS MAILING LIST. > > Kind Regards > Jalaluddin Qureshi > > Research Student @ CeMNet, SCE > Nanayang Technological University > N4-B2c-06, Nanyang Avenue > Singapore 639798 > http://www.cemnet.ntu.edu.sg > > --Forwarded Message Attachment-- > From: feixianyexin at 163.com > To: ns-users at ISI.EDU > Date: Wed, 23 Jul 2008 00:00:36 -0700 > Subject: [ns] How to get a mobile node's current position > > > Hello,everyone: > I want to simulate a wireless scenario with two access points and a > mobile node. This mobile node moves randomly, the question is how to > calculate it's position like(x=?,y=?,z=0) at any given time. It could be > better if you could give me an example. Of course, any suggestion is > welcome. > Regards. > Liceven > -- > View this message in context: > http://www.nabble.com/How-to-get-a-mobile-node%27s-current-position-tp18604950p18604950.html > Sent from the ns-users mailing list archive at Nabble.com. > > > > _________________________________________________________________ > Check out Barclays Premier League exclusive video clips here! > http://fc.sg.msn.com/index.aspx > > > -- View this message in context: http://www.nabble.com/How-to-get-a-mobile-node%27s-current-position-tp18604950p18645998.html Sent from the ns-users mailing list archive at Nabble.com. From trypes247 at hotmail.com Fri Jul 25 07:32:52 2008 From: trypes247 at hotmail.com (angelina socratous) Date: Fri, 25 Jul 2008 14:32:52 +0000 Subject: [ns] Base station header file Message-ID: Does anybody knows in which header file is the struct of the base station implemented? Thanks, Angelina _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE From pierresolen.guichard at ens-lyon.fr Fri Jul 25 08:49:27 2008 From: pierresolen.guichard at ens-lyon.fr (Pierre-Solen GUICHARD) Date: Fri, 25 Jul 2008 17:49:27 +0200 Subject: [ns] Exchanging data between two NSObjects (connectors) - not through a script References: <80D1B0FE-CB25-4D63-A279-494BBE236CB4@ens-lyon.fr> Message-ID: Hello everyone, I'm stuck in programming a connector, namely a Measurement Based Admission Control (MBAC) that takes its decision according to data obtained from another connector, namely an outgoing queueing system. I was doing the AC in the script, which was ok on a single link to simulate the behaviour of that mechanism. But I need to simulate more complex topologies and even do simulations on adaptive routing and QoS routing, with the same router mechanism - thus doing it in a script is no longer satisfactory and I need to be able to instantiate that admission control easily. I think there must be a very simple way by using an interface of the TclObject class, or using a reference like fromNode_ or ifaceIn_ but I'missing it. I tried a few things but none worked. Any ideas? Thanks in advance! Pierre S. Guichard From tomh at tomh.org Fri Jul 25 10:04:50 2008 From: tomh at tomh.org (Tom Henderson) Date: Fri, 25 Jul 2008 10:04:50 -0700 Subject: [ns] FYI: ns-3 Sigcomm demo Message-ID: <488A07B2.8020501@tomh.org> For those of you who will be attending Sigcomm this year, we invite you to visit our ns-3 demo on Wednesday afternoon, August 20, in the Sigcomm demo session: http://conferences.sigcomm.org/sigcomm/2008/demos.php A link to the demo abstract can be found here: http://conferences.sigcomm.org/sigcomm/2008/papers/p527-hendersonA.pdf - Tom From amiri1982 at yahoo.com Fri Jul 25 10:43:01 2008 From: amiri1982 at yahoo.com (Mohsen Amiri) Date: Fri, 25 Jul 2008 10:43:01 -0700 (PDT) Subject: [ns] Application layer multicast in NS-2 Message-ID: <689442.36197.qm@web43141.mail.sp1.yahoo.com> Hi there, I want to simulate an application layer packet transmission. I've decided to implement it as a child of Application class or child of TrafficGenerator class. Since each application needs to send packet for several receivers, my application layer object needs to decide for which receiver should send a packet now and connect to that receiver. But as I know the transport layer(UDP in my case) can act to attach or to de-attach to the receiver. and now, I don't know exactly what should I do. Would you please help me what can I do to implement my idea? Or do you have any better strategy for implementing "Application layer multi-cast"? Best, Mohsen. From rafiullah136 at yahoo.com Fri Jul 25 21:49:20 2008 From: rafiullah136 at yahoo.com (rafi ullah) Date: Fri, 25 Jul 2008 21:49:20 -0700 (PDT) Subject: [ns] Help Seamless Vertical Handover "802.21 MIH Protocol" Patch developed by NIST Message-ID: <9488.81565.qm@web57109.mail.re3.yahoo.com> I am working on Seamless Vertical Handover. and for that i am using a patch developed by NIST "ns-nist-mob". in the patch already developed secario i.e UMTS-to-WLAN handover and WiMAX-to-WLAN ahndover are checked by me but it has a problem. It gives a throughput more than the technology specifications. i.e at UMTS i can receive 80 Mbps which should not be in real. So please help me regarding the problem. Is a dataratre specification not considered in a patch or any other problem. From yunqiluo_1 at 126.com Fri Jul 25 22:28:55 2008 From: yunqiluo_1 at 126.com (yunqiluo_1@126.com) Date: Sat, 26 Jul 2008 13:28:55 +0800 (CST) Subject: [ns] [help]invalid command name ... Message-ID: <488AB617.000035.17410@bj126app3.126.com> Dear all; I try to add CSFQ to ns-2.29. and I followed the step by step with the instruction of http://www.cs.cmu.edu/~istoica/csfq/ very careful. At first, I am sure my ns-2.29 is work well. The problem only comes after I add the CSFQ algrithm. It failed with these messages: [root at localhost ns-2.29]# ns ns: [code omitted because of length] : invalid command name "Queue/CSFQ" while executing "Queue/CSFQ set id_ 0" [root at localhost ns-2.29]# Is there anybody who could help me? or give me some hints? Thank you very much!! Best regards! Linda From rafiullah136 at yahoo.com Fri Jul 25 22:32:26 2008 From: rafiullah136 at yahoo.com (Rafi) Date: Fri, 25 Jul 2008 22:32:26 -0700 (PDT) Subject: [ns] [bug] Throughput Specification at Wireless Technologies using "MIH Patch" Message-ID: <200807260532.WAA03193@www.isi.edu> [Bug Report] ----------------------------- Category: Validation Failure Package: ns ns-2.29 OS: Red Hat 9 Environment Variables: LD_LIBRARY_PATH= TCL_LIBRARY= TK_LIBRARY= ----------------------------- Description: Description of Problem: While using a vertical handover scenario i receive a throughput more than the technology capacity. i.e at UMTS i receive 80 Mbps which is impossible. How Easily Reproducible: Every time i can receive the same datarate what i am going to transmitt. Steps to Reproduce: 1. Using MIH Patch "ns-nist-mob" developed ny NIST in ns-allinone-2.29. 2. Running Vertical Handover Scenario i.e UMTS-to-WLAN handover. 3. Send a traffic having datarate of 80 Mbps and also receive the same datarate of 80 Mbps at both the technologies UMTS and WLAN respectively. Actual Results: It gives Sendrate = Receive rate and accept every datarate i am going to transmitt. i.e it can transmitt 2 Gbps which is impossible. Expected Results: At UMTS it should transmitt a maximum rate of 800 Kbps to 1 Mbps. At WLAN it should transmitt a maximum rate of 11 Mbps to 54 Mbps. at WiMAX it should transmitt a maximum rate of 11 Mbps to 72 Mbps. Additional Information: 1. Install ns-allinone-2.29 simulator on Red Hat 9. 2. Configure a Patch "ns-2.29" developed by NIST for Seamless handover. 3. Find throughput of running scenario UMTS-to-WLAN handover. From biswa.acharya at gmail.com Fri Jul 25 22:33:42 2008 From: biswa.acharya at gmail.com (Biswa Mohan Acharya) Date: Sat, 26 Jul 2008 11:03:42 +0530 Subject: [ns] Help on gaf code Message-ID: <7adc4980807252233g75d76df6ic2e8ae0a04c86227@mail.gmail.com> Dear users I am a beginner in ns. For simulation of gaf protocol I m need of the tcl scripts. Already the gaf.cc and gaf.h two files are available with ns2 package. Any one having idea on this kindly help me to proceed any way. Thanks & regards Biswa From SYilmaz at aselsan.com.tr Sat Jul 26 00:24:08 2008 From: SYilmaz at aselsan.com.tr (Semra YILMAZ) Date: Sat, 26 Jul 2008 10:24:08 +0300 Subject: [ns] FW: different node speeds does not give smooth results References: <22DF48915EF5BF4998B4B34DE67C0A99814AC0@POSTA.aselsan.com.tr> <22DF48915EF5BF4998B4B34DE67C0A99814AC2@POSTA.aselsan.com.tr> Message-ID: <22DF48915EF5BF4998B4B34DE67C0A99814AD2@POSTA.aselsan.com.tr> Dear all, I need your evaluation for my below message. Any response will be appreciated. Regards, Semra ________________________________ From: Semra YILMAZ Sent: Tue 22.07.2008 21:14 To: ns-users at isi.edu Subject: different node speeds does not give smooth results Dear all, I have trouble with the node speed in my simulations. I am trying analyze the performance of mobile network in two different case for different node speed (5, 10, 15 and 20 m/sec). I couldn't get consistent results for these speeds. Especially, there are some positive or negative peaks at 10 m/sec node speed. So I couldn't get a smooth result in my comparison. You may introduce such a situation in your studies. If anyone has any idea, i will appreciate this. Regards, Semra ###################################################################### Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz. Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi gorusu olmak zorunda degildir. ###################################################################### Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. E-mails to and from the company are monitored for operational reasons and in accordance with lawful business practices. Any views or opinions presented are solely those of the author and do not necessarily represent the views of the company. ###################################################################### From lmcbarreto at gmail.com Sat Jul 26 03:56:14 2008 From: lmcbarreto at gmail.com (=?UTF-8?Q?Lu=C3=ADs_Barreto?=) Date: Sat, 26 Jul 2008 11:56:14 +0100 Subject: [ns] Ns-users Digest, Vol 54, Issue 26 In-Reply-To: References: Message-ID: <1e9258700807260356l4e845b3dk71f180097a1133d4@mail.gmail.com> Hi, This must ne an hierarchical address definition problem! Regards, Lu?s On Sat, Jun 28, 2008 at 6:05 PM, Raol Boni wrote: > > > On Sat, Jun 28, 2008 at 8:32 AM, Raol Boni wrote: > > > > > > > Hi All, > > > > I'm using ns2 version 2.31 and try to simulate for DSR with 60 total > number > > of nodes out of which 48 are fixed wireless routers, 10 are mobile nodes, > 1 > > gateway and 1 wired node. Then when I run my code, it gives me an error > ! > > Therefore, please can you help me in this regard? The output result is as > > follows; > > > #================================================================= > > > $ num_nodes is set 60 > > Error!! > > str2addr:Address 1628668875 outside range of address field length 2048 > > #============================================================== > > Your idea or contribution will be great !!!!!!!!! > > > > PLEASE, for further information, I attached my sample work ! > > From xiaofei.zhang at etu.upmc.fr Sat Jul 26 07:52:44 2008 From: xiaofei.zhang at etu.upmc.fr (ZHANG Xiaofei) Date: Sat, 26 Jul 2008 16:52:44 +0200 Subject: [ns] Error model in wireless network Message-ID: Hi ns users, I try to add some drops in wireless links following the methode of ns manual : IncomingErrProc and OutgoingErrProc. proc UniformErr {} { set err [new ErrorModel] $err unit packet $err rate_ 0.01 return $err } $ns node-config -IncomingErrProc UniformErr -OutgoingErrProc UniformErr but I didn't see any packets dropped in the trace file. What am I doing wrong? How to configure the error model in wireless network? thank you very much, From C.C.W.Emehel at Bradford.ac.uk Sat Jul 26 09:59:25 2008 From: C.C.W.Emehel at Bradford.ac.uk (Charles Emehel) Date: Sat, 26 Jul 2008 17:59:25 +0100 Subject: [ns] Layer 2 Handover script from NIST Message-ID: <1217091565.488b57ed0c6b6@webmail7.brad.ac.uk> Dear ns users, I am carrying out a layer 2 performance analyses of CBR and FTP traffics in mobile WiMAX for my master?s Thesis using the NIST WiMAX module with NS-2.31 on Linux Fedora Core 5. I want to measure the throughput, delay, jitter and packet loss when a mobile node moves within a base station and from one base station to another (handover) by configuring different speeds, modulations, Frequency bandwidths and cyclic prefixes. I have some results which I have analysed with trace graph but I am having problem with the handover aspect. I noticed in NAM, the trace file and from Trace Graph that the mobile node communicated with only base station 1 throughout the simulation. I did not see packets being received by base station 2. The manual says the lgd factor should be above 1 to trigger scanning but it is already set at 1.8. I increased the scanning trigger time by setting it to 2 but still could not achieve handover. I tried to manually create another channel and attach the mobile node to base station 2 with the "$ns at