[ns] How to trigger SCTP Heartbeat chunk work during data transmission ?
I am doing some SCTP experiments. The Heartbeat chunk will work on sender when one path is idle or timeout. If I want to send Heartbeat chunk during data transmission. How to modify the SCTP source code on ns2? Thank for your suggestions. Kerwin 改變每一天 從Xuite開始 http://www.xuite.net
[ns] problems with the NIST WiMAX patch
hey ns-users, ive installed the NIST wimax patch, but when i try to simulate simple.tcl(comes with the rar file) i get an error msg saying, invalid command name Mac/802_16 while executing Mac/802_16 set debug_0 file simple.tcl line 45 thanks for your help. rgrds WA Iqbal
[ns] scenario(movement pattern and connection pattern) problem
ns2 newbie here... I have download a scenarios which contain movement pattern and communication pattern using CBR sources from http://www.monarch.cs.rice.edu/cmu-ns.html I would like to use one of the scenario. My question is: Do i have to copy the scenario(movement pattern and communication pattern using CBR) in to ... /ns-2.30/tcl/mobility/scen like the example in Marc Greis' tutorial? If so, i have tried to do that but some sort of error occur. I am doing a report on the performance comparision between AODV,DSR,DSDV. Can send me a tcl scrip to run these 3 routing protocol? Anyone who willing to guide me with these report are welcome. Just give me a msn contact if u want to. Any advise are also welcome. Thank you. - TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV.
Re: [ns] problems with the NIST WiMAX patch
W.A. Iqbal wrote: hey ns-users, ive installed the NIST wimax patch, but when i try to simulate simple.tcl(comes with the rar file) i get an error msg saying, invalid command name Mac/802_16 while executing Mac/802_16 set debug_0 file simple.tcl line 45 thanks for your help. rgrds WA Iqbal I did solve this problem, but now i have another issue and that is that NS is not recognising the OFDM interface. please help me. -- View this message in context: http://www.nabble.com/problems-with-the-NIST-WiMAX-patch-tf3458089.html#a9649742 Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] problem with scheduler
- Hi there. The solution to this problem is fairly simple, so do not worry. At first, let me explain what causes this situation. The problem does not lie at the Scheduler. The Scheduler works fine, scheduling the event to occur at the appropriate time. The problem is with the OTcl interpretor and the way it handles substitutions and specifically variable substitutions (i.e. to substitute $k with its value). You see, the way you have written your code and because you are using double quotes to include the command (be careful not the k=$k part but the whole command) the interpretor substitutes the value of k at the point of the scheduling, which at this point is k=1. Then, at time 0.3 the command is executed as: puts k=1 and not as puts k=$k and then at that point to read the value of the variable k. What we need to do, in order to produce the correct result is to somehow delay the variable substitution of the command by telling the interpretor not to do it right now but later on. The way to do that is to use curly braces around the command and not double quotes. Curly braces { } in OTcl and Tcl have the special use of telling the interpretor to delay any substitutions for later, or in other words to leave them to the command involved and not to do it by itself before it hands the variables to the command, which in this case is the puts command. What happens now is that the interpretor substitutes the value of the variable at the time of the scheduling. When the command puts executes, it already finds the substituted value and not $k. If we put curly braces around the command then the interpretor will not substitute $k for 1 and it will leave it for the command to do it at the scheduled time, which in turn will find puts \k=$k\. Therefore, what you need to do is to rewrite your code by at first removing the global command, which is not needed and then write the code as: set ns [new Simulator] set k 1 $ns at 0.2 set k 4 $ns at 0.3 {puts \k=$k\} $ns run With this command-set the substitution of the variable will be left to the command when it is executed, which is scheduled at 0.3, which in turn will read the value of k, which has been changed to 4 at 0.2. I hope that I've helped. Kind Regards, -Fk On 3/24/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Send Ns-users mailing list submissions to ns-users@isi.edu -- Forwarded message -- From: Amin Irandoost [EMAIL PROTECTED] To: ns-users@ISI.EDU Date: Fri, 23 Mar 2007 11:11:55 +0430 Subject: [ns] problem with scheduler hi dear friends my problem with scheduler still not solved what is may mistake? set k 1 $ns at 0.2 global k;set k 4 $ns at 0.3 global k; puts \k=$k\ global in the above code doesn't impress please help me emergency I'm waiting for your reply Thanks in advance -- Amin Irandoost -- Filippos N Kolovos Software Systems Analyst Engineer M.Sc. (Eng.) in Data Communications Automation Networking Department University of Macedonia Library Egnatia 156, P.O.Box 1591 540 06 Thessaloniki, Greece E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED] --
Re: [ns] stop sending paquets
- I do not find any problem with your code. I have executed it and as it seems to be working fine. The problem might be that node 1 looks like it is sending packets, but in reality it simply sends-out the previously enqueued packets, at the time when the CBR app was functioning. To verify my reasoning, simply restart the cbr app at 9.0 and then at 15.0 terminate the simulation. At the same time you can also have executed $ns_ trace-all at a file, so you can check the trace file instead of NAM in order to verify the situation. You will see that it works fine. One way to reduce the time that the CBR will stop sending packets, i.e. get it closer to 4.2, will be to increase the link speed between the 2 nodes, so that they won't get buffered at the exit point of node 1 because of the slow link. But again, even with slow links, the behavior of the transmission system would not be much different in reality, so again if you cannot reduce the link speed (because of simulation restrictions) you will not have a problem. Hope that I've helped -Fk On 3/24/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Send Ns-users mailing list submissions to ns-users@isi.edu -- Forwarded message -- From: Jezabel Miriam Molina Gil [EMAIL PROTECTED] To: ns2 ns-users@ISI.EDU Date: Fri, 23 Mar 2007 11:25:03 + Subject: [ns] stop sending paquets I am working with ns2 and I have got this code: set udp_(0) [new Agent/UDP] $ns_ attach-agent $node_(1) $udp_(0) set null_(0) [new Agent/Null] $ns_ attach-agent $node_(0) $null_(0) set cbr_(0) [new Application/Traffic/CBR] $cbr_(0) set packetSize_ 512 $cbr_(0) set interval_ 0.01 $cbr_(0) attach-agent $udp_(0) $ns_ connect $udp_(0) $null_(0) $ns_ at 4.00 $cbr_(0) start $ns_ at 4.20 $cbr_(0) stop but whe simulaticon reach the 4.2 node 1 go on sendig packet. How Can I stop it at 2.? -- Saludos Jezabel M. Molina Gil -- Filippos N Kolovos Software Systems Analyst Engineer M.Sc. (Eng.) in Data Communications Automation Networking Department University of Macedonia Library Egnatia 156, P.O.Box 1591 540 06 Thessaloniki, Greece E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED] --
[ns] Fwd: received power
am trying to simulate a wireless mobile scenario.. please do tell me as to how i can measure the received power in the base station
[ns] Implementation of TCP Illinois in ns-2
Hi Everyone, I was wondering if anyone has integrated TCP Illinois in the NS-2 module for simulation purpose? I would appreciate if any one can help me with the code/coding. Thanks, Manish
[ns] How to build a simple agent on transport layer ?
Hi all ! I am beginner. I want to add a simple agent on transport layer. It only needs sending a packet periodically. Thank for any suggestions. 改變每一天 從Xuite開始 http://www.xuite.net
Re: [ns] help needed to downgrade GCC version
This is a problem with the gcc version. I had a lot of problems recently when I tried to install the NRL extensions with the ns 2.27 version. Downgrading gcc is not actually an easy task (as I discovered). Google up some gcc forums and follow steps provided there. I will look again for the link I used and let you know if I find it. Simple solution to the problem though - Use fedora 2. The whole sensor net extension and ns installation gets done without problems in 15 mins. Just a quick hack to your problem .. :) Zubair On 3/23/07, Martin Dario Pereyra [EMAIL PROTECTED] wrote: Hi all, I have a problem when installing old gcc version. I use ns-allinone-2.27 with NRLSensorSim extension (2.27 is the most recent version for this extension) in Fedora Core 6 with gcc 4.1. I have a patch for this version of ns to work with gcc 4.1 but for the extensions added doesn't work. So I want to install an alternate gcc compiler on my fedora (gcc 2.95) like a solution. This two packages: gcc-core-2.95.tar.gz gcc-g++-2.95.tar.gz i do gcc configure: /home/mpereyra/gcc/gcc-2.95/configure \ --prefix=/opt/gcc295 \ --program-suffix=295 \ --enable-languages=c,c++ \ --enable-shared --enable-threads=posix --disable-cheking \ --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions and when i do 'make' this is the error: /home/mpereyra/gcc/gcc-2.95/gcc/frame.c:55: extra brace group at end of initializer /home/mpereyra/gcc/gcc-2.95/gcc/frame.c:55: (near initialization for `object_mutex.__data') /home/mpereyra/gcc/gcc-2.95/gcc/frame.c:55: warning: excess elements in struct initializer /home/mpereyra/gcc/gcc-2.95/gcc/frame.c:55: warning: (near initialization for `object_mutex.__data') make[1]: *** [libgcc2.a ] Error 1 make[1]: se sale del directorio `/home/mpereyra/gcc/build/gcc' make: *** [all-gcc] Error 2 (se sale del directorio means 'leaving directory') Another relevant information: [EMAIL PROTECTED] build]# uname -a Linux localhost.localdomain 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 EDT 2006 i686 i686 i386 GNU/Linux [EMAIL PROTECTED] build]# rpm -q gcc gcc-4.1.1-30 I Think that some paremeters of gcc configure are not ok. What do you think? -- Mohammad Zubair Ahmad PhD Student, Computer Engineering University of Central Florida, Orlando, FL 32826 Cell:(407)-435-9070
Re: [ns] How to build a simple agent on transport layer ?
kerwin wrote: Hi all ! I am beginner. I want to add a simple agent on transport layer. It only needs sending a packet periodically. Thank for any suggestions. There's a chapter in the ns-2 manual exclusively dedicated to your question. --Timo
[ns] something about WFQ
--- 大小单双 机会多多,10分钟就开奖,立即返奖( http://ad4.sina.com.cn/sina/limeng3/mail_zhuiyu/2007/mail_zhuiyu_20070319.html ) === 注册新浪2G免费邮箱( http://mail.sina.com.cn/chooseMode.html )
[ns] something about WFQ
static class WFQAggregClassifierClass : public TclClass { public: WFQAggregClassifierClass():TclClass(WFQAggregClassifier) {}; TclObject* create(int,const char*const*) { return(new WFQAggregClassifier); };} class_wfqsampleclassifier; how to understand the WFQAggregClassifier and the wfqsampleclassifier. chenmaoxiang --- 大小单双 机会多多,10分钟就开奖,立即返奖( http://ad4.sina.com.cn/sina/limeng3/mail_zhuiyu/2007/mail_zhuiyu_20070319.html ) === 注册新浪2G免费邮箱( http://mail.sina.com.cn/chooseMode.html )
[ns] Problem when running LEACH with NS-2.27
Hi all, Please help me,urgent ! When i've installed LEACH (mit.tar.gz) with ns-2.27,and i type ./test to test LEACH protocol but it show error: invalid command name Resource/Energy while executing Resource/Energy instproc setParams {args} { $self instvar energyLevel_ alarmLevel_ set energyLevel_ [lindex $args 0] set alarmLevel_ [lind... (file mit/rca/resources/ns-energy-resource.tcl line 11) invoked from within source.orig mit/rca/resources/ns-energy-resource.tcl (uplevel body line 1) invoked from within uplevel source.orig [list $fileName] invoked from within if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ... (procedure source line 8) invoked from within source $env(RCA_LIBRARY)/resources/ns-energy-resource.tcl (file mit/uAMPS/sims/uamps.tcl line 18) invoked from within source.orig mit/uAMPS/sims/uamps.tcl (uplevel body line 1) invoked from within uplevel source.orig [list $fileName] invoked from within if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ... (procedure source line 8) invoked from within source mit/uAMPS/sims/uamps.tcl (file tcl/mobility/leach.tcl line 18) invoked from within source.orig tcl/mobility/leach.tcl (uplevel body line 1) invoked from within uplevel source.orig [list $fileName] invoked from within if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ... (procedure source line 8) invoked from within source tcl/mobility/$opt(rp).tcl (file tcl/ex/wireless.tcl line 187) Can you help me correct that...it's urgent... Please help me... Thanks alot. - Get your own web address. Have a HUGE year through Yahoo! Small Business.
[ns] urgent: how to analysis the out.tr?
Dear all how to analysis the out.tr? Because it have many many column and rows. thanks all _ 至醒搜尋和瀏覽網絡的免費工具列 — MSN 搜尋工具列 http://toolbar.live.com/
[ns] random motion
hi guye, please tell how to add random motion features to mobile node.. i gave $node random-motion 1 but the mobile doesn't seem to move at all..