[ns] please help

2006-05-15 Thread ra sa

please i am a beginner in ns2 allenoline2.29 i have installed it in
linux and i did validation successfully i have runned some tcl and
nam scripts but i would like to know if i want to modify a routing
protocol such as DSR after modification in a class .cc i did make depend but 
i noticed that no error appear in compilation
what patches also are needed to be added for these protocols
thanks a lot
sadek

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



[ns] please help

2007-03-12 Thread kishore talwariya

hii,
 when i run "make" command in ns directory then i
get following errors, so please kindly give me
solution to remove following errors:

for i in indep-utils/cmu-scen-gen/setdest
indep-utils/webtrace-conv/dec
indep-utils/webtrace-conv/epa
indep-utils/webtrace-conv/nlanr
indep-utils/webtrace-conv/ucb; do ( cd $i; make all; )
done
make[1]: Entering directory
`/usr/local/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/usr/local/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory
`/usr/local/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/usr/local/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec'
make[1]: Entering directory
`/usr/local/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/usr/local/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa'
make[1]: Entering directory
`/usr/local/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/usr/local/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory
`/usr/local/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/usr/local/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb'



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/



[ns] Please help

2007-07-04 Thread G Shafiullah

 Hi all,
I am a new user of NS-2. Can one please help me to install LEACH
Protocol in NS-2. I tried it with the following commands:
 
Add DMIT_uAMPS to the DEFINE list   
Add -I./mit/rca -I./mit/uAMPS to the INCLUDE list Add the following just
prior to the line gaf/gaf.o \ mit/rca/energy.o mit/rca/rcagent.o \
mit/rca/rca-ll.o mit/rca/resource.o \ mac/mac-sensor-timers.o
mac/mac-sensor.o mit/uAMPS/bsagent.o \

 Step 5.2 : Add the environmental variables to /etc/profile export
RCA_LIBRARY=$NS_HOME/ns-2.27/mit/rca
export uAMPS_LIBRARY=$NS_HOME/ns-2.27/mit/uAMPS
Step 5.3: source /etc/profile and clean up previous build source
/etc/profile make clean

But when I gave command make clean  it prompts:
make: *** No rule to make target 'clean'. Stop   


Please let me know the solutions. I am eagerly looking solution.
Thanks
GM



G M Shafiullah
Master of Engineering (Research) Student
Centre for Railway Engineering (CRE)
Faculty of Sciences, Engineering and Health
Central Queensland University
Rockhampton, Qld 4702
AUSTRALIA

Phone: 61 7 4930 9313
Mobile:61 4 3208 5800
Email: [EMAIL PROTECTED],  [EMAIL PROTECTED], [EMAIL PROTECTED] 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 05, 2007 10:00 AM
To: ns-users@ISI.EDU
Subject: Ns-users Digest, Vol 43, Issue 4

Send Ns-users mailing list submissions to
ns-users@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
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Ns-users digest..."


Today's Topics:

   1. I accurate My last Question ( 802.11 Ad Hoc IFSes) (hamid reza)
   2. How to calculate packet loss ratio in ns-2 (Mohammed Abu Hajar)
   3. plot offered load vs. throughput (Mohammed Abu Hajar)
   4. Release of Multi InteRfAce Cross Layer Extension for ns
  (MIRACLE) library, version 1.0 (Marco Miozzo)
   5. Can I use other MAC for mobile nodes? (F.W.)
   6. simulation time (Giuseppe)
   7. NS-2 extends to cooperating with GridSim (Yanbo Zhou)
   8. Traffic trace files (samer ch)
   9. EURANE HSDPA input trace files test cases (Imad Abdeljaouad)
  10. Queue Monitor - Packet Drops (Banu Sundar)
  11. Re: Flow-aware networking (Arturo Servin)
  12. Re: Queue Monitor - Packet Drops (Arturo Servin)
  13. NIST Wimax Model (Anand PG)


--

Message: 1
Date: Tue, 3 Jul 2007 22:40:09 -0700 (PDT)
From: hamid reza <[EMAIL PROTECTED]>
Subject: [ns] I accurate My last Question ( 802.11 Ad Hoc IFSes)
To: ns-users@ISI.EDU
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1

Dear All,
You  Suppose  A node Want to Send A Frame,
A-
It Should Defer its sending After DIFS Period  If in this Period it
gives a frame It should  Set Its NAV Counter From Header Fields of Frame
Currently received.
After Expiring NAV Timer it should Set its Backoff Timer and After
Reaching that Counter To Zero It should Reattempt its sending after DIFS
Again.

Is this Scenario(A) comptabile  with SIFS and EIFS Period  too ?

Best Regards
Hamid Reza



   


Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222



--

Message: 2
Date: Wed, 4 Jul 2007 00:45:19 -0700 (PDT)
From: Mohammed Abu Hajar <[EMAIL PROTECTED]>
Subject: [ns] How to calculate packet loss ratio in ns-2
To: NS_2 Mailing List 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1

Hi ns-users,
   
  How to calculate packet loss ratio in ns-2 trace file ? what its
equation?
   
  Regards

 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

--

Message: 3
Date: Wed, 4 Jul 2007 00:47:04 -0700 (PDT)
From: Mohammed Abu Hajar <[EMAIL PROTECTED]>
Subject: [ns] plot offered load vs. throughput
To: NS_2 Mailing List 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1

Hi ns-users, 
   
  I want to plot the relation between offered load and throughput ? ,
but before that how can I generate offered load in kb/s?
   
  Regards

   
-
Choose the right car based on your needs.  Check out Yahoo! Autos new
Car Finder tool.

--

Message: 4
Date: Wed, 4 Jul 2007 09:57:36 +0200
From: "Marco Miozzo" <[EMAIL PROTECTED]>
Subject: [ns] Release of Multi InteRfAce Cross Layer Extension for ns
(MIRACLE) library, version 1.0
To: ns-users@ISI.EDU
Message-ID:
<[EMAIL PROTECTED]

[ns] PLEASE HELP

2008-08-10 Thread syed irfan

AFTER INSTALLING NS-ALLINONE-2.33 USING CYGWIN ON WINDOWS VISTA I GET THE
FOLLOWING MESSAGES.CAN ANYONE PLEASE HELP ME HOE TO PROCEED FROM HERE..MANY
THANKS.


please put
cygdrive/c/users/irfan/desktop/ns-allinone-2.33/bin:cygdrive/c/users/irfan/desktop/ns-allinone-2.33/tcl8.4.18/unix/:cygdrive/c/users/irfan/desktop/
ns-allinone-2.33/tk9.4.18/unix   into your path environment so that you
willbe able to run itm/tclsh/wish/xgraph  CAN ANYONE PLEASE EXPLAIN THIS.

ALSO I GET

YOU MUST PUT   cygdrive/c/users/irfan/desktop/ns-allinone-2.33/OTCL 1.13
cygdrive/c/users/irfan/desktop/ns-allinone-2.33/LIB,INTO YOUR
LD_LIBRARYPATH  ENVIRONMENT VARIABLEWHAT SHLD I DO HERE

ALSO

YOU UST PUT  cygdrive/c/users/irfan/desktop/ns-allinone-2.33/TCL
8.4.18/LIBRARY INTO YOUR TCL_ENVIRONMNET VARIABLE   WHAT TO DO HERE??

ANY HELP FROM ANYONE WILL BE GREATLY APPRECIATED.
THANKS AND REGARDS

PS:THIS MUST BE REALLY SILLY BUT I AM NOT INTO UNIX/LINUX STUFF.SO I DONT
KNOW MUCH ABT THIS


[ns] please help....

2009-03-05 Thread veronica diaza

Hello ns2 usersIam Veronica,pursuing my final year Bachelor of
TechnologyIam working on AODV implementation with power
consumption as cost metric. Please suggest me which CC.FILES i have to
modify for replacing shortest path with power consumption as cost
metric..and in which way.please suggest me which files are to be edited
for implementation of our own protocols..thanks in advance 


[ns] Please Help

2009-09-22 Thread Sula K

Daer my brothers,

in ns 2  I did rm ns.exe instead rm nam.exe ,

after that when  iexcuted the following problem come out on the screen?

u...@user-cfab0b1f55 ~
$ ns.exe
bash: ns.exe: command not found


  


[ns] please help

2009-12-14 Thread golrokh m






i'm a beginner to ns2. 
I installed the NS2.34  on obuntu. and it's validated. now I'm going to start 
with a simple example that I found from the net.i save it in my home folder.
 when I write $ns simple.tcl
 it says:
simple.tcl does not exist, try again
I know that this error is for directory, but how i can fix it? i mean  1) at 
first where I should save the simple.tcl file ? 2) which directory i should 
use?would you please write the exact directory? 
thanks so much if you help me .






  


  


[ns] Please Help

2011-08-16 Thread akwhale


am trying to do installation of ns2 and got this error.. does anybody know
the solution..Please reply if you do.. Thanks

Tcl.cc: In member function ‘int TclObject::traceVar(const char*,
TclObject*)’:
Tcl.cc:421: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int TclClass::create_shadow(void*,
Tcl_Interp*, int, char**)’:
Tcl.cc:509: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:511: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int
TclClass::dispatch_instvar(void*, Tcl_Interp*, int, char**)’:
Tcl.cc:571: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘virtual void TclClass::bind()’:
Tcl.cc:603: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:605: warning: deprecated conversion from string constant to ‘char*’
make: *** [Tcl.o] Error 1
tclcl-1.0b11 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems


Thanks

-- 
View this message in context: 
http://old.nabble.com/Please-Help-tp32273528p32273528.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] Please Help

2011-08-16 Thread akwhale


i got this error message when installing ns2. please who knows the solutions. 



* Build Tclcl-1.0b11

loading cache ./config.cache
No .configure file found in current directory
Continuing with default options...
checking host system type... configure: error: can not guess host type; you
must specify one
tclcl-1.0b11 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.



Please reply if u know the solution. i would be very grateful.

Thanks

-- 
View this message in context: 
http://old.nabble.com/Please-Help-tp32275975p32275975.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Please Help

2011-08-18 Thread akwhale


Am trying to install Ns2 and i got the following error message. please kindly
reply if u know the solution. 

checking for otcl.h... -I../otcl-1.0a7
checking for libotcl1.0a7... -L../otcl-1.0a7 -lotcl
checking for tclcl.h... -I../tclcl-1.0b11
checking for libtclcl... -L../tclcl-1.0b11 -ltclcl
checking for tcl2c++... ../tclcl-1.0b11
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... (cached) no
can't find X library
Ns configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.


Thanks alot,




-- 
View this message in context: 
http://old.nabble.com/Please-Help-tp32292732p32292732.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] please HELP

2011-08-27 Thread Sandy Haff

hi 


can any one plz tell me why is the wimax model inside the nist mobility model 
in ns-2.29 cant work 

when i want to run wimax script its not working like for example the the wimax 
example inside tcl directory 

plz help me guys ..

best regards 

sandy 


[ns] Please Help!!!!

2012-04-16 Thread Najma Ismat


Hi,i m simulating and i have a created a procedure for sink but when i execute 
i get the sensor node configuration error. the same configuration works well 
for common sensing node in the main program but when i try to  call a procedure 
it gives this error for both sensing node and the sink.please guide how to 
remove this error.
thanks and regards,Najma Ismat
najmaismat@ubuntu:~/ns-allinone-2.29/ns-2.29$ ns hi11AODVStatic.tclnum_nodes is 
set 5Creating data sink...Using mica 2 mote settingscan't read "chan": no such 
variablewhile executing"$ns_ node-config -sensorNode ON  -adhocRouting 
$val(rp)  -llType $val(ll)  -macType $val(mac)  -ifqType $val(ifq)  -ifqLen 
$val(ifqlen)  -antType $val..."(procedure "sink" line 9)invoked from 
within"sink $local(energy) $local(x) $local(y) $local(z) $local(start) 
$local(time)"(file "hi11AODVStatic.tcl" line 254)



  


[ns] please help!!!

2012-10-02 Thread Najma Ismat


hi,i have simulated LEACH protocol for 10 nodes in ns-2. 29 with mannasim and 
observe that the trace file show nodes greater than 10 with tag -Hd when 
packets are received. i have  marked the portion of trace with error in red. 
please guide why i getting this and how to resolve this issue? 
regards,najma

s -t 0.086012595 -Hs 4 -Hd -2 -Ni 4 -Nx 99.83 -Ny 22.79 -Nz 0.00 -Ne 10.00 
-Nl AGT -Nw --- -Ma 0 -Md 400 -Ms 0 -Mt 0$r -t 0.086012595 -Hs 4 -Hd -2 -Ni 
4 -Nx 99.83 -Ny 22.79 -Nz 0.00 -Ne 10.00 -Nl RTR -Nw --- -M a 0 -Md 400 
-Ms 0 -Mt 0$s -t 0.086012595 -Hs 4 -Hd -2 -Ni 4 -Nx 99.83 -Ny 22.79 -Nz 0.00 
-Ne 10.00 -Nl RTR -Nw --- -Ma 0 -Md 400 -Ms 0 -Mt 0$s -t 0.086037595 
-Hs 4 -Hd -2 -Ni 4 -Nx 99.83 -Ny 22.79 -Nz 0.00 -Ne 10.00 -Nl MAC -Nw --- 
-Ma 0 -Md 400 -Ms 000$N -t 0.086038 -n 8 -e 9.98N -t 0.086038 -n 9 
-e 9.98N -t 0.086038 -n 10 -e 9.98N -t 0.086038 -n 2 -e 9.98N -t 
0.086038 -n 3 -e 9.98N -t 0.086038 -n 0 -e 99.52N -t 0.086038 -n 5 -e 
9.98N -t 0.086038 -n 1 -e 9.98N -t 0.086038 -n 7 -e 9.98N -t 
0.086038 -n 6 -e 9.98r -t 0.086133679 -Hs 8 -Hd 26 -Ni 8 -Nx 89.50 -Ny 
45.73 -Nz 0.00 -Ne 9.98 -Nl MAC -Nw --- -Ma 0 -Md 400 -Ms 0008$r -t 
0.086133779 -Hs 9 -Hd 56 -Ni 9 -Nx 70.26 -Ny 69.47 -Nz 0!
 .00 -Ne 9.98 -Nl MAC -Nw --- -Ma 0 -Md 400 -Ms 0008$r -t 
0.086133807 -Hs 10 -Hd 64 -Ni 10 -Nx 69.96 -Ny 78.95 -Nz 0.00 -Ne 9.98 -Nl 
MAC -Nw --- -Ma 0 -Md 400 -Ms 00$r -t 0.086133810 -Hs 2 -Hd 65 -Ni 2 
-Nx 36.50 -Ny 11.07 -Nz 0.00 -Ne 9.98 -Nl MAC -Nw --- -Ma 0 -Md 400 -Ms 
0008$r -t 0.086133814 -Hs 3 -Hd 66 -Ni 3 -Nx 39.10 -Ny 47.74 -Nz 0.00 -Ne 
9.98 -Nl MAC -Nw --- -Ma 0 -Md 400 -Ms 0008$r -t 0.086133817 -Hs 0 
-Hd 67 -Ni 0 -Nx 38.67 -Ny 49.48 -Nz 0.00 -Ne 99.52 -Nl MAC -Nw --- -Ma 0 
-Md 400 -Ms 000$r -t 0.086133843 -Hs 5 -Hd 75 -Ni 5 -Nx 96.38 -Ny 97.11 
-Nz 0.00 -Ne 9.98 -Nl MAC -Nw --- -Ma 0 -Md 400 -Ms 0008$r -t 
0.086133882 -Hs 1 -Hd 87 -Ni 1 -Nx 43.65 -Ny 87.99 -Nz 0.00 -Ne 9.98 -Nl 
MAC -Nw --- -Ma 0 -Md 400 -Ms 0008$ 
  


[ns] Please help

2013-03-16 Thread Magdy Fares

How are you Friends?

My simulation software is NS2, and i am a novice in using it and i feel that it 
is like a big sea, i do not know its bounderies.
So please help me if you can.

In my simulation, when generating a new node in the simulation it 
should has unique IP address (that consists of 16 bits) that i could use
again in the remaining simulation.


Plaese, is there any one that can guides my to do this? I will be so grateful.


Many thanks,
M.F.


Re: [ns] please help

2006-05-16 Thread Yahia saleh

On 5/16/06, Yahia saleh <[EMAIL PROTECTED]> wrote:
>
> hi, guys
> I need to know the way for computing pause time, since i read many
> publication using it, i guess  some one  of you  know about it
> your help very appreciated
>
>


[ns] please help me

2006-05-16 Thread Yahia saleh

hi, guys
I need to know the way for computing pause time, since i read many
publication using it, i guess  some one  of you  know about it
your help very appreciated
saleh


[ns] Please help me

2007-03-20 Thread Amin Irandoost

hi all
in general

how to capture return value of c++ function in tcl?
-- 
Amin Irandoost


[ns] please help out

2007-11-30 Thread Basim Javed

hi all

I have a very urgent and desperate call for help. I am using NS2-31 and EDCA
patch of TU Berlin, for 802.11e. Please guide me how to:

1. get the MAC level throughput trace file (the TCL code etc.)
2. how I can evaluate the behaviour of H.264 over NS2 for some video frames.
Probably I am looking for a trace file containing the type of frames
(I,P,B), thier time stamps and sizes? Any tool to do it?

Thank you very much.

very kind regards
B


[ns] please help out

2007-12-01 Thread Will Spearman

I am working on 802.11e as well.

1. For me the easiest answer was to not worry about the ns trace file, 
and create my own. I count throughput at the MAC level by printing bytes 
sent during the simulation, and use a perl script to get the statistics 
afterward.

2. There are some tools to help you do this. 
http://www.tkn.tu-berlin.de/research/evalvid/EvalVid/docevalvid.html
I am using an H.264 profile, but accuracy isn't important so I just used 
a mostly equivalent pareto VBR source.

I hope this helps!

Will Spearman
Clemson University

> hi all
> 
> I have a very urgent and desperate call for help. I am using NS2-31 and EDCA
> patch of TU Berlin, for 802.11e. Please guide me how to:
> 
> 1. get the MAC level throughput trace file (the TCL code etc.)
> 2. how I can evaluate the behaviour of H.264 over NS2 for some video frames.
> Probably I am looking for a trace file containing the type of frames
> (I,P,B), thier time stamps and sizes? Any tool to do it?
> 
> Thank you very much.
> 
> very kind regards
> B




[ns] Please help !! Error..

2009-01-28 Thread Arun Kumar

while creating a new protocol(Agent "New") i got this error please help...
invalid command name "Agent/New"
while executing
"Agent/New create _o36 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/New"
invoked from within
"set p0 [new Agent/New]"
(file "newagent.tcl" line 7)
  with regards
  N.ArunKumar




  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/




[ns] please help me

2009-08-24 Thread Andhika Perdana Faisal

I have some problem with my NS
Can you tell me about zrp.path in NS,,,
I very need your help

Thanks 



  


Re: [ns] Please Help

2009-09-23 Thread Teerawat Issariyakul


Hi,

You may run "make" again from NS2 directory. It will create ns.exe.

Best Regards,
Teerawat

On 9/22/2009, "Sula K"  wrote:

>
>Daer my brothers,
>
>in ns 2  I did rm ns.exe instead rm nam.exe ,
>
>after that when  iexcuted the following problem come out on the screen?
>
>u...@user-cfab0b1f55 ~
>$ ns.exe
>bash: ns.exe: command not found
>
>
>  
>



Re: [ns] Please Help

2011-08-17 Thread Imran khan

Hi,

which OS and NS2 version you are using?
--

Best Regards,

Imran Khan

Research Engineer

Network and Service Architecture Lab

Institute Telecom, Telecom SudParis, CNRS Lab UMR5157

9 rue Charles Fourier, 91011 Evry, France


+33 (0) 6 10 91 00 63
http://www.about.me/imrankhan1984



On Wed, Aug 17, 2011 at 1:22 AM, akwhale  wrote:

>
>
> i got this error message when installing ns2. please who knows the
> solutions.
>
>
> 
> * Build Tclcl-1.0b11
> 
> loading cache ./config.cache
> No .configure file found in current directory
> Continuing with default options...
> checking host system type... configure: error: can not guess host type; you
> must specify one
> tclcl-1.0b11 configuration failed! Exiting ...
> Please check http://www.isi.edu/nsnam/ns/ns-problems.html
> for common problems and bug fixes.
>
>
>
> Please reply if u know the solution. i would be very grateful.
>
> Thanks
>
> --
> View this message in context:
> http://old.nabble.com/Please-Help-tp32275975p32275975.html
> Sent from the ns-users mailing list archive at Nabble.com.
>
>


Re: [ns] Please Help

2011-08-17 Thread akwhale


Thanks alot for your reply. i am using ubuntu 10.04 and the NS2 version is
the NS 2.1b8.

Thanks.




Imran khan-9 wrote:
> 
> 
> Hi,
> 
> which OS and NS2 version you are using?
> --
> 
> Best Regards,
> 
> Imran Khan
> 
> Research Engineer
> 
> Network and Service Architecture Lab
> 
> Institute Telecom, Telecom SudParis, CNRS Lab UMR5157
> 
> 9 rue Charles Fourier, 91011 Evry, France
> 
> 
> +33 (0) 6 10 91 00 63
> http://www.about.me/imrankhan1984
> 
> 
> 
> On Wed, Aug 17, 2011 at 1:22 AM, akwhale  wrote:
> 
>>
>>
>> i got this error message when installing ns2. please who knows the
>> solutions.
>>
>>
>> 
>> * Build Tclcl-1.0b11
>> 
>> loading cache ./config.cache
>> No .configure file found in current directory
>> Continuing with default options...
>> checking host system type... configure: error: can not guess host type;
>> you
>> must specify one
>> tclcl-1.0b11 configuration failed! Exiting ...
>> Please check http://www.isi.edu/nsnam/ns/ns-problems.html
>> for common problems and bug fixes.
>>
>>
>>
>> Please reply if u know the solution. i would be very grateful.
>>
>> Thanks
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Please-Help-tp32275975p32275975.html
>> Sent from the ns-users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Please-Help-tp32275975p32282178.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] Please Help

2011-08-17 Thread Imran khan

Hi,

Get ns2 version 2.34, 2.1b is ancient, it wont work easily.

--

Best Regards,

Imran Khan

Research Engineer

Network and Service Architecture Lab

Institute Telecom, Telecom SudParis, CNRS Lab UMR5157

9 rue Charles Fourier, 91011 Evry, France


+33 (0) 6 10 91 00 63
http://www.about.me/imrankhan1984



On Wed, Aug 17, 2011 at 8:56 PM, akwhale  wrote:

>
>
> Thanks alot for your reply. i am using ubuntu 10.04 and the NS2 version is
> the NS 2.1b8.
>
> Thanks.
>
>
>
>
> Imran khan-9 wrote:
> >
> >
> > Hi,
> >
> > which OS and NS2 version you are using?
> > --
> >
> > Best Regards,
> >
> > Imran Khan
> >
> > Research Engineer
> >
> > Network and Service Architecture Lab
> >
> > Institute Telecom, Telecom SudParis, CNRS Lab UMR5157
> >
> > 9 rue Charles Fourier, 91011 Evry, France
> >
> >
> > +33 (0) 6 10 91 00 63
> > http://www.about.me/imrankhan1984
> >
> >
> >
> > On Wed, Aug 17, 2011 at 1:22 AM, akwhale  wrote:
> >
> >>
> >>
> >> i got this error message when installing ns2. please who knows the
> >> solutions.
> >>
> >>
> >> 
> >> * Build Tclcl-1.0b11
> >> 
> >> loading cache ./config.cache
> >> No .configure file found in current directory
> >> Continuing with default options...
> >> checking host system type... configure: error: can not guess host type;
> >> you
> >> must specify one
> >> tclcl-1.0b11 configuration failed! Exiting ...
> >> Please check http://www.isi.edu/nsnam/ns/ns-problems.html
> >> for common problems and bug fixes.
> >>
> >>
> >>
> >> Please reply if u know the solution. i would be very grateful.
> >>
> >> Thanks
> >>
> >> --
> >> View this message in context:
> >> http://old.nabble.com/Please-Help-tp32275975p32275975.html
> >> Sent from the ns-users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Please-Help-tp32275975p32282178.html
> Sent from the ns-users mailing list archive at Nabble.com.
>
>


Re: [ns] Please Help

2011-08-17 Thread akwhale


I am trying to implement the multicasting protocols in the Ns 2.18b-mcast
thats why i am trying to use the Ns 2.18b. Please do u know anything on how
to implement the multicasting protocols. i am trying to implement the ODMRP
and the ADMR protocols. What do u think i can do or what can i do to use the
Ns2.1b8 in the recent NS2.34.. 

Thanks alot 


Imran khan-9 wrote:
> 
> 
> Hi,
> 
> Get ns2 version 2.34, 2.1b is ancient, it wont work easily.
> 
> --
> 
> Best Regards,
> 
> Imran Khan
> 
> Research Engineer
> 
> Network and Service Architecture Lab
> 
> Institute Telecom, Telecom SudParis, CNRS Lab UMR5157
> 
> 9 rue Charles Fourier, 91011 Evry, France
> 
> 
> +33 (0) 6 10 91 00 63
> http://www.about.me/imrankhan1984
> 
> 
> 
> On Wed, Aug 17, 2011 at 8:56 PM, akwhale  wrote:
> 
>>
>>
>> Thanks alot for your reply. i am using ubuntu 10.04 and the NS2 version
>> is
>> the NS 2.1b8.
>>
>> Thanks.
>>
>>
>>
>>
>> Imran khan-9 wrote:
>> >
>> >
>> > Hi,
>> >
>> > which OS and NS2 version you are using?
>> > --
>> >
>> > Best Regards,
>> >
>> > Imran Khan
>> >
>> > Research Engineer
>> >
>> > Network and Service Architecture Lab
>> >
>> > Institute Telecom, Telecom SudParis, CNRS Lab UMR5157
>> >
>> > 9 rue Charles Fourier, 91011 Evry, France
>> >
>> >
>> > +33 (0) 6 10 91 00 63
>> > http://www.about.me/imrankhan1984
>> >
>> >
>> >
>> > On Wed, Aug 17, 2011 at 1:22 AM, akwhale  wrote:
>> >
>> >>
>> >>
>> >> i got this error message when installing ns2. please who knows the
>> >> solutions.
>> >>
>> >>
>> >> 
>> >> * Build Tclcl-1.0b11
>> >> 
>> >> loading cache ./config.cache
>> >> No .configure file found in current directory
>> >> Continuing with default options...
>> >> checking host system type... configure: error: can not guess host
>> type;
>> >> you
>> >> must specify one
>> >> tclcl-1.0b11 configuration failed! Exiting ...
>> >> Please check http://www.isi.edu/nsnam/ns/ns-problems.html
>> >> for common problems and bug fixes.
>> >>
>> >>
>> >>
>> >> Please reply if u know the solution. i would be very grateful.
>> >>
>> >> Thanks
>> >>
>> >> --
>> >> View this message in context:
>> >> http://old.nabble.com/Please-Help-tp32275975p32275975.html
>> >> Sent from the ns-users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Please-Help-tp32275975p32282178.html
>> Sent from the ns-users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Please-Help-tp32275975p32282473.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Please help me

2011-10-16 Thread m ali

Dear All,

I am using ns-2.34 and have written some c++ codes and
added them  under the ns-2.34 sub-directory. I did
"make clear", but when I did "make" to re-compile, the following error
(see below)
occur. Can anyone help me.
Thanks alot.

M.A.



./common/ptypes2tcl > gen/ptypes.cc
/bin/sh cannot create gen/ptypes.cc permission denied
make: *** [gen/ptypes.cc] Error 2



[ns] please help in ODMRP

2006-05-05 Thread Pooja Vyavahare

 hi,

I m working on ODMRP of ns-2.1b8. The simulation is working properly but
when i m running mcast_total.pl script to get the packet information the
error is like

CBR Logging error.

I think the problem is because of the change in the trace format ns-2.1b8and
ns-2.28. But actually i m not understanding the trace format.
the trace file looks like:

r 18.873611979 _0_ ODM --- 12 cbr 64 [0  4 800] --- [10:32770
32770:32770 254 0] [6] 2 0

M 18.99344 45 (907.63, 361.14, 0.00), (93.13, 144.01), 1.15

s 19.152399956 _10_ AGT --- 13 cbr 64 [0 0 0 0] --- [-1:-1 32770:32770
32 0] [7] 0 0

r 19.152399956 _10_ ODM --- 13 cbr 64 [0 0 0 0] --- [-1:-1 32770:32770
32 0] [7] 0 0

s 19.155637540 _10_ ODM --- 13 cbr 64 [0 0 0 0] --- [10:32770
32770:32770 255 0] [7] 0 0

r 19.156825588 _12_ ODM --- 13 cbr 64 [0  a 800] --- [10:32770
32770:32770 255 0] [7] 1 0

r 19.156825588 _12_ AGT --- 13 cbr 44 [0  a 800] --- [10:32770
32770:32770 254 0] [7] 0 1

 f 20.454737907 _12_ ODM --- 19 ODMRP 36 [0  a 800] --- [10:255
32770:255 254 0] -32770- 12 [1 1 1 0] [0 0 0 0] (0, 0)

f 20.454898315 _7_ ODM --- 19 ODMRP 36 [0  a 800] --- [10:255
32770:255 254 0] -32770- 7 [1 1 1 0] [0 0 0 0] (0, 0)

r 20.455961929 _10_ ODM --- 19 ODMRP 36 [0  c 800] --- [10:255
32770:255 254 0] -32770- 12 [1 1 1 0] [0 0 0 0] (0, 0)

please help me if sombody knows the solution. I have tried so much on this .
And next week i have to submit my report.

thank you in advance,

Pooja

Mtech (First year)

IIT Delhi


[ns] please help for ODMRP

2006-05-05 Thread Pooja Vyavahare

 hi,

I m working on ODMRP of ns-2.1b8. The simulation is working properly but
when i m running mcast_total.pl script to get the packet information the
error is like

CBR Logging error.

I think the problem is because of the change in the trace format ns-2.1b8and
ns-2.28. But actually i m not understanding the trace format.
the trace file looks like:

r 18.873611979 _0_ ODM --- 12 cbr 64 [0  4 800] --- [10:32770
32770:32770 254 0] [6] 2 0

M 18.99344 45 (907.63, 361.14, 0.00), (93.13, 144.01), 1.15

s 19.152399956 _10_ AGT --- 13 cbr 64 [0 0 0 0] --- [-1:-1 32770:32770
32 0] [7] 0 0

 f 20.454737907 _12_ ODM --- 19 ODMRP 36 [0  a 800] --- [10:255
32770:255 254 0] -32770- 12 [1 1 1 0] [0 0 0 0] (0, 0)

f 20.454898315 _7_ ODM --- 19 ODMRP 36 [0  a 800] --- [10:255
32770:255 254 0] -32770- 7 [1 1 1 0] [0 0 0 0] (0, 0)

r 20.455961929 _10_ ODM --- 19 ODMRP 36 [0  c 800] --- [10:255
32770:255 254 0] -32770- 12 [1 1 1 0] [0 0 0 0] (0, 0)

please help me if sombody knows the solution. I have tried so much on this .
And next week i have to submit my report.

thank you in advance,

Pooja

Mtech (First year)

IIT Delhi


Re: [ns] Please help me

2007-03-20 Thread Pedro Vale Estrela

Normally you want to do the opposite: cal otcl in c++ and get the returned
string.

For that you should use the macros in my file ns_utils.cc
http://tagus.inesc-id.pt/~pestrela/ns2/contributed_code.html#_Toc147652229

eg:
TCL_EVALF("%s some_instproc %d", name(), MH_iaddr);
assert( *TCL_RESULT );
etimip_RO_id = atoi(TCL_RESULT);

--

for your particular problem, you should use the Command() interface that all
c++  objects have


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Amin Irandoost
> Sent: terça-feira, 20 de Março de 2007 22:14
> To: ns-users@ISI.EDU
> Subject: [ns] Please help me
> 
> 
> hi all
> in general
> 
> how to capture return value of c++ function in tcl?
> --
> Amin Irandoost




[ns] Please help me emergency!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2007-11-17 Thread Amin Irandoost

Hi all

In wireless scenario that picture of this show at below

Node 0 is sender and node 24 is receiver

I want to use UDP agent for this nodes

I use follow code for this purpose

Please tell me is the attached file correct and suitable?

Why the CBR interval has not effect on time when the nodes' energy is
finished?
I'm waiting for your reply
very thanks

-- 
Amin Irandoost


[ns] Please help me emergency!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2007-11-17 Thread Amin Irandoost

Hi all

In wireless scenario that picture of this show at below

Node 0 is sender and node 24 is receiver

I want to use UDP agent for this nodes

I use follow code for this purpose

Please tell me is the following file correct and suitable?

Why the CBR interval has not effect on time when the nodes' energy is
finished?
picture of nam file that show my topology is :
http://rapidshare.com/files/70500344/Screenshot.png

I'm waiting for your reply
very thanks

-- 
Amin Irandoost

# ==
# Define options
# ==
#set val(lifetime)   4000;
set opt(chan)   Channel/WirelessChannel
set opt(prop)   Propagation/TwoRayGround
set opt(netif)  Phy/WirelessPhy
set opt(mac)Mac/SMAC
set opt(ifq)Queue/DropTail/PriQueue
set opt(ll) LL
set opt(ant)Antenna/OmniAntenna
set opt(x)  200.0  ;# X dimension of the topography
set opt(y)  200.0  ;# Y dimension of the topography
set opt(ifqlen) 50   ;# max packet in ifq
set opt(seed)   0.0
set opt(tr) 2.tr  ;# trace file
set opt(nam)2.nam
set opt(adhocRouting)   AODV
set opt(nn) 25  ;# how many nodes are simulated
set opt(energymodel)EnergyModel
set opt(stop)   4000.0;# simulation time
set val(initialenergy)  300.0
set val(receivepower)   0.395 ;# Receiving Power
set val(transmitpower)  0.660 ;# Transmitting Power
set val(idlepower)  0.350 ;# Idle Power
set val(sleeppower) 0.001 ;# sleep Power
LL set bandwidth_
20kb



# =


# unity gain, omni-directional antennas
# set up the antennas to be centered in the node and 1.5 meters above it
Antenna/OmniAntenna set X_ 0
Antenna/OmniAntenna set Y_ 0
Antenna/OmniAntenna set Z_ 1.5
Antenna/OmniAntenna set Gt_ 1.0
Antenna/OmniAntenna set Gr_ 1.0


# Initialize the SharedMedia interface with parameters to make
# it work like the 914MHz Lucent WaveLAN DSSS radio interface
Phy/WirelessPhy set CPThresh_ 10.0
Phy/WirelessPhy set CSThresh_ 1.559e-11
Phy/WirelessPhy set RXThresh_ 2.13643e-07
Phy/WirelessPhy set Rb_ 2*1e6
Phy/WirelessPhy set Pt_ 0.281838
Phy/WirelessPhy set freq_ 9.14e+8
Phy/WirelessPhy set L_ 1.0

proc finish {} {
global ns_ tracefd namtrace
$ns_ flush-trace
close $namtrace
close $tracefd
puts "\n running nam...\n"
 #   exec nam 1.nam &
exit 0
}



# AMAC settings
Mac/SMAC set syncFlag_ 1; # sleep wakeup cycles
Mac/SMAC set dutyCycle_ 60


set ns_[new Simulator]
$ns_ use-scheduler Heap
$ns_ set WirelessNewTrace_ ON
set topo[new Topography]
set tracefd[open $opt(tr) w]
set namtrace[open $opt(nam) w]
$ns_ trace-all $tracefd
$topo load_flatgrid $opt(x) $opt(y)
$ns_ namtrace-all-wireless $namtrace 200.0 200.0
set cha [new $opt(chan)]
#
# Create god
#
create-god $opt(nn)
$ns_ node-config -adhocRouting $opt(adhocRouting) \
 -llType $opt(ll) \
 -macType $opt(mac) \
 -ifqType $opt(ifq) \
 -ifqLen $opt(ifqlen) \
 -antType $opt(ant) \
 -propType $opt(prop) \
 -phyType $opt(netif) \
 -channel $cha \
 -topoInstance $topo \
 -WiredRouting OFF \
 -energyModel $opt(energymodel) \
 -idlePower $val(idlepower) \
 -rxPower $val(receivepower) \
 -txPower $val(transmitpower) \
 -sleepPower $val(sleeppower) \
 -initialEnergy $val(initialenergy) \
 -agentTrace ON \
 -routerTrace OFF \
 -macTrace OFF

set j 0
set k 0
for {set i 0} {$i < $opt(nn) } {incr i} {
set node_($i) [$ns_ node]
   $node_($i) random-motion 0;# disable random motion
   if {$i%5==0} {
   set j [expr $j+20]
   if {$i!=0} {
set k 0} }
   $node_($i) set X_ [set k [expr $k+20]]
$node_($i) set Y_ $j
$node_($i) set Z_ 0.0
}


for { set j 0} { $j < $opt(nn)} {incr j} {
  $ns_ initial_node_pos $node_($j) 2
  $node_($j) color blue
  $node_($j) log-energy
   }

*for { set j 0} { $j < $opt(nn)} {incr j} {
set udp_($j) [new Agent/UDP]
$ns_ attach-agent $node_($j) $udp_($j)
}

set null_(0) [new Agent/Null]
$ns_ attach-agent $node_([expr $opt(nn)-1]) $null_(0)*


*set cbr [new Application/Traffic/CBR]
$cbr set packetSize_ 50
$cbr set interval_ 3.0
$cbr attach-agent $udp_(0)
$ns_ connect $udp_(0) $null_(0)

$ns_ at 50.0 "$cbr star*t"

#
# Tell all the nodes when the simulation ends
#
for {set i 0} {$i < $opt(nn) } {incr i} {
$ns_ at $opt(stop) "$

Re: [ns] please help me

2009-12-01 Thread Mohammed AbuHajar

Its very easy. just learn how to draw graph in MatLab. It's will take 15 
minutes only, try to learn how to plot more than graph in the same graph.
http://web.cecs.pdx.edu/~gerry/MATLAB/plotting/linePlots.html
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/plot.html
http://www.caspur.it/risorse/softappl/doc/matlab_help/techdoc/ref/plot.html

All The best!.
Mohammed AbuHajar

--- On Tue, 12/1/09, Wei Zhang  wrote:

From: Wei Zhang 
Subject: please help me
To: "Mohammed AbuHajar" 
Date: Tuesday, December 1, 2009, 1:29 AM


Dear Mohammed AbuHajar,
 
I would like to ask you if use MatLab I must code much or not and use easily? 
 
Thank so much.
Wei
 

--- En date de : Dim 29.11.09, Mohammed AbuHajar  a écrit :


De: Mohammed AbuHajar 
Objet: OK
À: "Wei Zhang" 
Date: Dimanche 29 Novembre 2009, 13h57






Dear Wei,
To plot your results after you get them, I advise you to use MatLab software 
just for plotting. It gives nice and accurate draws. I attached the function 
that I used it in plotting.

Regards,

Mohammed AbuHajar

--- On Sun, 11/29/09, Wei Zhang  wrote:


From: Wei Zhang 
Subject: please help me
To: mcs...@yahoo.com
Date: Sunday, November 29, 2009, 12:09 AM







 
Dear Mohammed Abu Hajar,
 
I know you are author of the awk files of Packet delivery ratio, routing 
overhead, normalize routing load, average end to end delay(I attached this 
file).
I am new in Ns2. I would like to ask you:
- How to plot these awk files?
- to make these awk files i what i must perform trace file?
I need your help much.
 
Thanks you very much.
Wei







  


  


Re: [ns] please help in ODMRP

2006-05-07 Thread Dhammika Pathirana

Hi Pooja,

This is because mcast_totals... script try to parse trace outputs differently,
Change the parse format from
if($LINE =~ / --- \[(\W*)(\d*):(\W*)(\d*) (\d+):(\d+) (\d+)
(\d+)\] \[(\d+)\] (\d+) (\d+) (\S+)/o) {
to following
if($LINE =~ / --- \[(\d*):(\d*) (\d+):(\d+) (\d+) (\d+)\]
\[(\d+)\] (\d+) (\d+)/o) {


Dhammika


On 5/5/06, Pooja Vyavahare <[EMAIL PROTECTED]> wrote:
>
>  hi,
>
> I m working on ODMRP of ns-2.1b8. The simulation is working properly but
> when i m running mcast_total.pl script to get the packet information the
> error is like
>
> CBR Logging error.
>
> I think the problem is because of the change in the trace format ns-2.1b8and
> ns-2.28. But actually i m not understanding the trace format.
> the trace file looks like:
>
> r 18.873611979 _0_ ODM --- 12 cbr 64 [0  4 800] --- [10:32770
> 32770:32770 254 0] [6] 2 0
>
> M 18.99344 45 (907.63, 361.14, 0.00), (93.13, 144.01), 1.15
>
> s 19.152399956 _10_ AGT --- 13 cbr 64 [0 0 0 0] --- [-1:-1 32770:32770
> 32 0] [7] 0 0
>
> r 19.152399956 _10_ ODM --- 13 cbr 64 [0 0 0 0] --- [-1:-1 32770:32770
> 32 0] [7] 0 0
>
> s 19.155637540 _10_ ODM --- 13 cbr 64 [0 0 0 0] --- [10:32770
> 32770:32770 255 0] [7] 0 0
>
> r 19.156825588 _12_ ODM --- 13 cbr 64 [0  a 800] --- [10:32770
> 32770:32770 255 0] [7] 1 0
>
> r 19.156825588 _12_ AGT --- 13 cbr 44 [0  a 800] --- [10:32770
> 32770:32770 254 0] [7] 0 1
>
>  f 20.454737907 _12_ ODM --- 19 ODMRP 36 [0  a 800] --- [10:255
> 32770:255 254 0] -32770- 12 [1 1 1 0] [0 0 0 0] (0, 0)
>
> f 20.454898315 _7_ ODM --- 19 ODMRP 36 [0  a 800] --- [10:255
> 32770:255 254 0] -32770- 7 [1 1 1 0] [0 0 0 0] (0, 0)
>
> r 20.455961929 _10_ ODM --- 19 ODMRP 36 [0  c 800] --- [10:255
> 32770:255 254 0] -32770- 12 [1 1 1 0] [0 0 0 0] (0, 0)
>
> please help me if sombody knows the solution. I have tried so much on this .
> And next week i have to submit my report.
>
> thank you in advance,
>
> Pooja
>
> Mtech (First year)
>
> IIT Delhi
>



[ns] Please help me with IDE

2006-07-05 Thread Antonella Santovito

Hello,
I'm new to use ns2, so I'm using Eclipse IDE with CDT plugin in order to
have a graphical support for writing the code(I have find another faq about
this topic), but I'm not able to create a project because I don't know which
files I have to include about ns2.
I give you some details:
I have to develop another Zigbee layer, so I have to include files in
wpan_zbr folder which are MAC 802.15.4,and thus my question: which other
files I have to include in my project in order to develop another layer in
ns?
Please if someone can help me I'll appreciate very much.
Thanks and sorry for my bad english!!


[ns] Please help--- Problem in agent

2007-01-06 Thread Aleem M.S

Hello everyone

  First of all i wish all of you Happy & prosperous new year...may all your 
problems get solved and you all keep enjoying

I hav added a new tcp agent named TCPPR. i hav done make successfully. But i m 
getting following errors in my tcl script named testpr.tcl when i execute the 
script

[EMAIL PROTECTED] ex]# ns testpr.tcl

invalid command name "Agent/TCP/PR"
while executing
"Agent/TCP/PR create _o36 "
invoked from within
"catch "$className create $o $args" msg"
(procedure "new" line 3)
invoked from within
"new Agent/TCP/PR"
invoked from within
"set tcp [new Agent/TCP/PR]"
(file "testpr.tcl" line 18)

[EMAIL PROTECTED] ex]#

---
My tcl script named testpt.tcl is as follows

set ns [new Simulator]

$ns color 0 blue
$ns color 1 red

set n0 [$ns node]
set n1 [$ns node]

set f [open out.tr w]
$ns trace-all $f
set nf [open out.nam w]
$ns namtrace-all $nf

$ns duplex-link $n0 $n1 5Mb 2ms DropTail

#$ns duplex-link-op $n0 $n1 queuePos 0.5

set tcp [new Agent/TCP/PR]
$ns attach-agent $n0 $tcp

set sink [new Agent/TCPSink]
$ns attach-agent $n1 $sink

$ns connect $tcp $sink

set ftp [new Application/FTP]
$ftp attach-agent $tcp
$ns at 1.2 "$ftp start"

$ns at 10.35 "$ns detach-agent $n0 $tcp ; $ns detach-agent $n1 $sink"


$ns at 11.0 "finish"

proc finish {} {
global ns f nf
$ns flush-trace
close $f
close $nf

puts "running nam..."
exec nam out.nam &
exit 0
}

$ns run

-
I am attaching the zip file for TCPPR agent along with tcl scipts etc..please 
reply me whether there is problem in tcl script or agent or the ns2 version..
Thanks you all... Happy new year to all






Regards & Thanks 
Aleem M.S  
ME-CSE 
Walchand College Of Engineering, Sangli 
Call - 09326053389



[ns] please help to generate xgraph

2007-02-28 Thread sandeep v

how do i generate xgraph from the trace file generated by this dsr code?



# Define options
set val(chan)   Channel/WirelessChannel;# channel type
set val(prop)   Propagation/TwoRayGround   ;# radio-propagation
model
set val(netif)  Phy/WirelessPhy;# network interface type
set val(mac)Mac/802_11 ;# MAC type
set val(ifq)CMUPriQueue;# interface queue type
set val(ll) LL ;# link layer type
set val(ant)Antenna/OmniAntenna;# antenna model
set val(ifqlen) 50 ;# max packet in ifq
set val(nn) 3  ;# number of mobilenodes
set val(rp) DSR  ;# routing protocol
set val(x)  500;# X dimension of
topography
set val(y)  400;# Y dimension of
topography
set val(stop)   150;# time of simulation end

set ns[new Simulator]
set tracefd   [open sandeep.tr w]
set windowVsTime2 [open praveen.tr w]
set namtrace  [open jagdish.nam w]

$ns trace-all $tracefd
$ns use-newtrace
$ns namtrace-all-wireless $namtrace $val(x) $val(y)

# set up topography object
set topo   [new Topography]

$topo load_flatgrid $val(x) $val(y)

create-god $val(nn)
set chan_1_ [new $val(chan)]
#
#  Create nn mobilenodes [$val(nn)] and attach them to the channel.
#

# configure the nodes
$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 ON \
 -movementTrace ON\
 -channel $chan_1_

for {set i 0} {$i < $val(nn) } { incr i } {
set node_($i) [$ns node]
}

# Provide initial location of mobilenodes
$node_(0) set X_ 5.0
$node_(0) set Y_ 5.0
$node_(0) set Z_ 0.0

$node_(1) set X_ 490.0
$node_(1) set Y_ 285.0
$node_(1) set Z_ 0.0

$node_(2) set X_ 150.0
$node_(2) set Y_ 240.0
$node_(2) set Z_ 0.0

# Generation of movements
$ns at 10.0 "$node_(0) setdest 250.0 250.0 3.0"
$ns at 15.0 "$node_(1) setdest 45.0 285.0 5.0"
$ns at 110.0 "$node_(0) setdest 480.0 300.0 5.0"

# Set a TCP connection between node_(0) and node_(1)
set tcp [new Agent/TCP/Newreno]
$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"

# Printing the window size
proc plotWindow {tcpSource file} {
global ns
set time 0.01
set now [$ns now]
set cwnd [$tcpSource set cwnd_]
puts $file "$now $cwnd"
$ns at [expr $now+$time] "plotWindow $tcpSource $file" }
$ns at 10.1 "plotWindow $tcp $windowVsTime2"

# Define node initial position in nam
for {set i 0} {$i < $val(nn)} { incr i } {
# 30 defines the node size for nam
$ns initial_node_pos $node_($i) 30
}

# Telling nodes when the simulation ends
for {set i 0} {$i < $val(nn) } { incr i } {
$ns at $val(stop) "$node_($i) reset";
}

# ending nam and the simulation
$ns at $val(stop) "$ns nam-end-wireless $val(stop)"
$ns at $val(stop) "stop"
$ns at 150.01 "puts \"end simulation\" ; $ns halt"
proc stop {} {
global ns tracefd namtrace
$ns flush-trace
close $tracefd
close $namtrace
exec nam jagdish.nam &
}

$ns run


[ns] Please help me (emergency) (emergency)

2007-03-21 Thread Amin Irandoost

hi dear friends
when i run my tcl code i get Following error.
what is your idea about this error?
I'm waiting for your reply
Thanks in advance


ns: MobileDeployment 5 5 10 20: can't schedule command in past
(_o5 cmd line 1)
invoked from within
"_o5 cmd at 0.0 {_o135 start-dsdv}"
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 "_o5" line 2)
(SplitObject unknown line 2)
invoked from within
"_o5 at 0.0 {_o135 start-dsdv}"
("eval" body line 1)
invoked from within
"eval $scheduler_ at $args"
(procedure "_o3" line 3)
(Simulator at line 3)
invoked from within
"$self at 0.0 "$ragent start-dsdv""
(procedure "_o3" line 11)
(Simulator create-dsdv-agent line 11)
invoked from within
"$self create-dsdv-agent $node"
("DSDV" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 11)
(Simulator create-wireless-node line 11)
invoked from within
"_o3 create-wireless-node 5"
("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 $i"
(procedure "MobileDeployment" line 7)
invoked from within
"MobileDeployment 5 5 10 20"

-- 
Amin Irandoost


[ns] Please help on GPSR compilation

2008-09-04 Thread nikhil


Hi everybody,
  I have installed GPSR on ns-2.31. Everything installed well as it seems 
but when i run "./ns" command to compile it it shows this error message. Please 
help if anyone aware of this.
 
$ ./nsns: [code omitted beacuse of length]: invalid command name "Agent/GPSR"   
while executing"Agent/GPSR instproc init args {$self next $args}"
 
I will be highly gratefull to you.
 
Thanking u,
Regards,
Nikhil
_
See how Windows Mobile brings your life together—at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/


[ns] Please help me regarding documentation

2009-03-23 Thread jeyapala nagasatish

Hi users and friends,
I want to know more information about NS2. Is there any material which can give 
more documentation about the statements used in NS2 program code ( both c++, 
TCL and their linkage) especially for addressing and AODV. I went through 
NS-Manual, Marc Greis Tutorial and NS by example, and also documentation 
generated by doxygen. In any of these, I am unable to find much elaboration 
about particular topic.
 
So, please help me.


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


Re: [ns] please help me | OK

2009-12-02 Thread Mohammed AbuHajar

Dear Mr.  Wei,

I think yes. This awk script for DSR routing protocol mainly. For other 
protocols like AODV, Tora you need to do some modification like changing (

$35 =="DSR") to the destination protocol like AODV if you simulate AODV ).

To do the correct changes and modifications,  I advise you to study the new 
trace file format, after that try to apply simple sinarios to insure everything 
is ok. If you face problem try do some searching in the internet, may you got a 
solution.

My Regards,

Mohammed AbuHajar.


--- On Tue, 12/1/09, Wei Zhang  wrote:

From: Wei Zhang 
Subject: please help me
To: mcs...@yahoo.com
Date: Tuesday, December 1, 2009, 11:19 PM


 
Dear Mohammed Abu Hajar,
 
Awk files of Packet delivery ratio, routing overhead, normalize routing load, 
average end to end delay(I attached this file) you did that can use to all 
routing protocols AODV,DRS,TORA...?

 
Thanks you very much.
Wei


 





  


  


  


[ns] Please Help - UDP AdHoc Broadcast

2010-07-14 Thread Hesam Yousefipour

Hi everyone

I am very new to NS2 and ns2 manual is not user friendly at all.

I need to be able to broadcast a single UDP packet at unpredictable
moments(determined through the program logic). This broadcast is initiated
by one of the 400 nodes present in the MANET Network and every other
within-range node should be able to receive it (which I assume 802.11
protocol will itself care about which nodes should receive the packet and
which don't according to their distance from the source(??))

If not forced otherwise I need to find a solution using pure OTCL script
with no C++ code dealings.

should I use a UDP agent and define a traffic source(?) and connect it to
all other nodes? if not what?

Thanks already






[ns] Please help me (Most urgent)

2011-08-20 Thread m ali

Hi all WSN user

Please tell me how different queues are implemented for heterogeneous
traffic in sensor nodes, so that each data send to his proper queue.

Bundle of thanks

Best reguards
Moazzam



Re: [ns] Please help me with IDE

2006-07-05 Thread Hai Nam

On 7/5/06, Antonella Santovito <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I'm new to use ns2, so I'm using Eclipse IDE with CDT plugin in order to
> have a graphical support for writing the code(I have find another faq about
> this topic), but I'm not able to create a project because I don't know which
> files I have to include about ns2.
> I give you some details:
> I have to develop another Zigbee layer, so I have to include files in
> wpan_zbr folder which are MAC 802.15.4,and thus my question: which other
> files I have to include in my project in order to develop another layer in
> ns?
> Please if someone can help me I'll appreciate very much.
> Thanks and sorry for my bad english!!
>

Antonella,

I suppose that you put your wpan_zbr folder in
ns-allinone-2.29/ns-2.29 folder (so your folder is at the same level
with other folders such as mac, routing, tcp, dsdv...). Then you can
follow those steps
http://mailman.isi.edu/pipermail/ns-users/2006-June/055973.html

Good luck,

-- 
Hai-Nam NGUYEN
Elève 3A SLR, ENST Bretagne
2 rue de la Châtaigneraie
35576 Cesson Sévigné

Site web: http://www.jcisio.com



[ns] please help in simulating sensor networks

2006-07-13 Thread Srirupa Dasgupta

  
Someone please help me to run some example scripts on ns2.28
No one is actually giving me any examples?
Srirupa

On Sun, 02 Jul 2006 [EMAIL PROTECTED] wrote :
>Send Ns-users mailing list submissions to
>   ns-users@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
>   [EMAIL PROTECTED]
>
>You can reach the person managing the list at
>   [EMAIL PROTECTED]
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Ns-users digest..."
>
>
>Today's Topics:
>
>1. JET signaling protocol in ns-OBS (TINDO SANGHAPI Judith Noelle)
>2. ns-2 FAQ (Tom Henderson)
>3. Re: Applying Saved Layout in Nam (Nicholas Loulloudes)
>4. Re: changes in c++ code of AODV protocol (Sanjay Raghani)
>5. FOSS, Science, and Public activism ([EMAIL PROTECTED])
>6. Count node neighbors (Nicholas Loulloudes)
>7. Re: Count node neighbors (Brad Montgomery)
>8. Re: Count node neighbors (Nicholas Loulloudes)
>
>
>--
>
>Message: 1
>Date: Sat, 1 Jul 2006 16:20:57 +0200 (CEST)
> From: TINDO SANGHAPI Judith Noelle <[EMAIL PROTECTED]>
>Subject: [ns] JET signaling protocol in ns-OBS
>To: ns-users@ISI.EDU
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset=iso-8859-1
>
>Hi,
>   Can anabody tell me if the JET signaling protocol FO OBS network is
>implement un NS-OBS?
>   Thanks
>
>-
>  Yahoo! Mail r?invente le mail ! D?couvrez le nouveau Yahoo! Mail et son 
> interface r?volutionnaire.
>
>--
>
>Message: 2
>Date: Sat, 01 Jul 2006 11:32:48 -0700
> From: Tom Henderson <[EMAIL PROTECTED]>
>Subject: [ns] ns-2 FAQ
>To: ns-users@ISI.EDU
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>
>  The Network Simulator ns-2: Frequently Asked Questions
>
>
>Note:  This FAQ is now available at the project wiki:
>http://nsnam.isi.edu/nsnam/index.php/Ns_Users_FAQ
>
>
>
> _The mailing is is now subscriber only---please see the FAQ entry on
> "How do I post to the mailing list? Why was my post rejected?" for
> details._
>
>   * _Where do I get ns?_
>
> From the ns web site at http://www.isi.edu/nsnam/ns/ns.html and
> the download page http://www.isi.edu/nsnam/ns/ns-tests.html.
>
>   * _What platforms does ns run on and what kind of hardware do I
> need?_
>
> Please see "where to start" on the building ns web page:
> http://www.isi.edu/nsnam/ns/ns-build.html#start.
>
>   * _What should I do if I have trouble downloading/extracting ns?_
>
> This question is answered in detail at
> http://www.isi.edu/nsnam/ns/ns-problems.html#downloading.
>
>   * _What should I do if I encounter problems building ns?_
>
> Check:
>   1. the README that comes in the distribution (very brief),
>   2. the "installation problems, bug fixes and help" web page
>  http://www.isi.edu/nsnam/ns/ns-problems.html,
>   3. the archives of the ns-users mailing list
>  http://www.isi.edu/nsnam/ns/ns-lists.html,
>   4. post a bug report (see below)
>  http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi.
>
>   * _What do I do after I successfully build ns?_
>
>+ Put the path to your ns executable into your PATH environment
>+ Put the path to your otcl into your LD_LIBRARY_PATH
>  environment
>+ Put the path to your tcl library into your TCL_LIBRARY
>  environment
>
>   * _Where can I find documentation for ns?_
>
> All documentation is linked from the main ns web page
> http://www.isi.edu/nsnam/ns/. Documentation includes a tutorial
> (originally from Marc Greis) and a reference manual (ns notes and
> documentation).
>
>   * _Words, words, words... that documentation is nice, but where are
> some sample scripts I can start from?_
>
> Many sample scripts can be found in the ns distribution in
> ~ns-2/tcl/ex and ~ns-2/tcl/test.
>
>   * _What protocols does ns support?_
>
> A lot! Almost all variants of TCP, several forms of multicast,
> wired networking, several ad hoc routing protocols and propagation
> models (but not cellular phones), data diffusion, satellite, and
> other stuff. See the documentation (described above) for details,
> or download ns and look.
>
>   * _How do I know that ns correctly implements these protocols?_
>
> Ns has validation tests that cover many protocols, see
> http://www.isi.edu/nsnam/ns/ns-tests.html. However, ultimately
> users are responsible for verifying that ns is accurate for their
> purposes---since we ca

[ns] Please help for "invalid command Agent"

2006-11-06 Thread pooja Vyavahare

Hi all,

I am working on video multicast. I downloaded the
EvalVid version used for NS. In that they have created
new agent called "myUDP" agent. I follwed all the
steps given in 

http://hpds.ee.ncku.edu.tw/~smallko/ns2/Evalvid_in_NS2.htm

I made the relevant changes in the packet.h and
Makefile etc. when I compiled the ns again everything
was fine.But when I run the file "be.tcl" which is
given in the link only the error was: 
invalid command name "Agent/myUDP"
while executing
"Agent/myUDP create _o82 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/myUDP"
invoked from within
"set udp1 [new Agent/myUDP]"
(file "be.tcl" line 24)
Please help me regarding this. 
thanks in advance,
 regards,
POOJA VYAVAHARE



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/



[ns] Please Help for "invalid command Agent"

2007-02-28 Thread Paks


Hi all,

I am working on video multicast stream. I downloaded the
EvalVid version used for NS. In that they have created
new agent called "myUDP" agent. I follwed all the
steps given in 

http://hpds.ee.ncku.edu.tw/~smallko/ns2/Evalvid_in_NS2.htm

I made the relevant changes in the packet.h and
Makefile etc. when I compiled the ns again the error was:

--

trace/trace.cc: In static member function `static int
Trace::get_seqno(Packet*)'
:
trace/trace.cc:206: error: `PT_XCP' undeclared (first use this function)
trace/trace.cc:206: error: (Each undeclared identifier is reported only once
for
 each function it appears in.)
trace/trace.cc: In member function `virtual void DequeTrace::recv(Packet*,
Handl
er*)':
trace/trace.cc:567: warning: int format, nsaddr_t arg (arg 5)
trace/trace.cc:567: warning: int format, nsaddr_t arg (arg 6)
trace/trace.cc:586: warning: int format, nsaddr_t arg (arg 5)
trace/trace.cc:586: warning: int format, nsaddr_t arg (arg 6)
make: *** [trace/trace.o] Error 1

--

( but i think this isn't main problem )

And when I run the file "be.tcl" which is
given in the link only the error was: 

--

invalid command name "Agent/myUDP"
while executing
"Agent/myUDP create _o82 "
invoked from within
"catch "$className create $o $args" msg"
(procedure "new" line 3)
invoked from within
"new Agent/myUDP"
invoked from within
"set udp1 [new Agent/myUDP]"
(file "be.tcl" line 24)

--

Please help me regarding this. 
thanks in advance,
regards,

Paks

-- 
View this message in context: 
http://www.nabble.com/Please-Help-for-%22invalid-command-Agent%22-tf3307726.html#a9200745
Sent from the ns-users mailing list archive at Nabble.com.



[ns] please help me about hierarchical routing

2007-07-13 Thread edns


Hello everyone,

I am a student doing my project about routing with different address scheme.
Now I have encountered some problems when I try to implement DV routing
protocol in a network with hierarchical addresses:

 

1.   The protocol can only be implemented on some nodes, rather than the
whole network. If implemented to all nodes, it will report the following
error info:

 

--- Classfier::no-slot{} default handler (tcl/lib/ns-lib

.tcl) ---

_o19: no target for slot 0

_o19 type: Classifier/Addr

content dump:

classifier _o19

0 offset

11 shift

2047 mask

1 slots

slot 0: _o20 (Classifier/Addr)

-- Finished standard no-slot{} default handler –

 

2.   When implement the protocol on some nodes, the routing table size
of these nodes did change. However, there’s no trace of the type “rtprotoDV”
in the trace file. So I am really confused. If there’s no rtprotoDV packet,
how could the table size changes?

 

3.The chapter of hierarchical routing in the ns2 manual says the table
size would be smaller when hierarchical addresses are used, but the results
seem to be the same.

Since I am running out of time, it is very urgent. So I hope someone could
help me a little. Thank you all in advance.

Below is my ns2 script. Thank you very much for spending your time on my
problems.


set ns [new Simulator]

$ns set-address-format hierarchical

$ns namtrace-all [open ./ownegs/dkh/nHIER.nam w]
$ns trace-all [open ./ownegs/dkh/tHIER.tr w]

#topology
#
AddrParams set domain_num_ 2
lappend cluster_num 3 3
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 1 3 3 1 3 3
AddrParams set nodes_num_ $eilastlevel

set naddr { 0.0.0  

0.1.0 
0.1.1 
0.1.2

0.2.0 
0.2.1 
0.2.2

1.0.0

1.1.0 
1.1.1 
1.1.2 

1.2.0 
1.2.1 
1.2.2 }

for {set i 0} {$i < 14} {incr i} {
 set n($i) [$ns node [lindex $naddr $i]]
 #lappend nodelist $n($i)
}

lappend nodelist $n(0) $n(8)
###
$ns rtproto DV $nodelist
###

$ns duplex-link $n(0) $n(1) 5Mb 2ms DropTail
$ns duplex-link $n(0) $n(4) 5Mb 2ms DropTail

$ns duplex-link $n(1) $n(2) 5Mb 2ms DropTail
$ns duplex-link $n(1) $n(3) 5Mb 2ms DropTail

#$ns duplex-link $n(3) $n(4) 5Mb 2ms DropTail

$ns duplex-link $n(4) $n(5) 5Mb 2ms DropTail
$ns duplex-link $n(4) $n(6) 5Mb 2ms DropTail

$ns duplex-link $n(0) $n(7) 5Mb 2ms DropTail
#

$ns duplex-link $n(7) $n(8) 5Mb 2ms DropTail
$ns duplex-link $n(7) $n(11) 5Mb 2ms DropTail

$ns duplex-link $n(8) $n(9) 5Mb 2ms DropTail
$ns duplex-link $n(8) $n(10) 5Mb 2ms DropTail

$ns duplex-link $n(11) $n(12) 5Mb 2ms DropTail
$ns duplex-link $n(11) $n(13) 5Mb 2ms DropTail

###


#label routing table size in the nam
##
$ns at 1.0 {$n(0) label [$n(0) set rtsize_]}
$ns at 1.0 {$n(1) label [$n(1) set rtsize_]}
$ns at 1.0 {$n(2) label [$n(2) set rtsize_]}
$ns at 1.0 {$n(3) label [$n(3) set rtsize_]}
$ns at 1.0 {$n(4) label [$n(4) set rtsize_]}
$ns at 1.0 {$n(5) label [$n(5) set rtsize_]}
$ns at 1.0 {$n(6) label [$n(6) set rtsize_]}
$ns at 1.0 {$n(7) label [$n(7) set rtsize_]}
$ns at 1.0 {$n(8) label [$n(8) set rtsize_]}
$ns at 1.0 {$n(9) label [$n(9) set rtsize_]}
$ns at 1.0 {$n(10) label [$n(10) set rtsize_]}
$ns at 1.0 {$n(11) label [$n(11) set rtsize_]}
$ns at 1.0 {$n(12) label [$n(12) set rtsize_]}
$ns at 1.0 {$n(13) label [$n(13) set rtsize_]}
##


$ns at 3.5 "finish"

proc finish {} {
global ns n
$ns flush-trace
##puts "running nam..."
#exec nam ./ownegs/dkh/nHIER.nam &
exit 0
}

$ns run



-- 
View this message in context: 
http://www.nabble.com/please-help-me-about-hierarchical-routing-tf4075384.html#a11582603
Sent from the ns-users mailing list archive at Nabble.com.




[ns] please help me about this error

2009-04-01 Thread ma-haiyuan

I'm a newer of NS.
I'm making simulations on Multicast. The error message is as follows:


(_o3 cmd line 1)

invoked from within

"_o3 cmd queue-parameter _o17 _o24 2 6"

invoked from within

"catch "$self cmd $args" ret"

invoked from within

"if [catch "$self cmd $args" ret] {

set cls [$self info class]

global errorInfo

set savedInfo $errorInfo

error "error when calling class $cls: $args" $..."

(procedure "_o3" line 2)

(SplitObject unknown line 2)

invoked from within

"$ns queue-parameter $n3 $n4 2 6"

(file "1.tcl" line 88)





Please help me. What's the reason of this error , and how can I correct it? 
Please help me.

Thank you very!



[ns] please help me with this problem

2009-04-28 Thread pavan potru

 i'm new user to NS2, i have installed the NS2 "ns-allinone-2.31" package
 under the shell of Cygwin over windows xp and there is no problem appeared
 in the installation

 but when i try to run a ns program this error appear

 $ nam:
 [code omitted because of length]
 no event type or button # or keysym
   while executing
"bind Listbox  {
 %W yview scroll [expr {- (%D / 120) * 4}] units
 }"
   invoked from within
 "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
 bind Listbox  {
 %W yview scroll [expr {- (%D)}] units
 }
 bind Li..."

 where is the problem? is the problem from the source of "ns-allinone-2.31"
 or the problem in the installation of the NS "ns-allinone-2.31" package or
 the package is not complete
 and how can i solve this problem


 I have installed the Cygwin and NS2 3 times and it took along time :'( so
 please help me

 thanx for your help

 pavan



[ns] please help me fo installing 802.11etkn

2009-08-12 Thread ali bala


 mr.ali.balador
homepage:www.balador.org 



- Forwarded Message 
From: ali bala 
To: Maggi. 
Sent: Wednesday, August 12, 2009 12:47:22 PM
Subject: Re: please help me fo installing 802.11etkn


hi 
i have a same problem 
i installed ns-2.33 and when i modify my makefile and follow the instruction 
in  the readme file of 802.11e tkn i see the error when i run make
and after that i cleen the new modification but i still the error
i confused.
please help me 
 mr.ali.balador
homepage:www.balador.org 





From: Maggi. 
To: ali bala 
Sent: Monday, August 10, 2009 4:44:22 PM
Subject: Re: please help me fo installing 802.11etkn


ya..i also encountered same problem.
dont change the existing Makefile.in(if u have already installed nsallinone) if 
you do so then u'l encounter problem when running "make" command.
so what i did is, i replaced the current Makefile.in with a new Makefile.in and 
modified the new Makefile.
then run the  "make" comand.
i think it'l work fine.else let me knw.

mahinthan

2009/8/10 ali bala 

hi 
>i download 802.11e from tkn and flow the instruction but after ./configure 
>when i run make i see this error
>whats the reason and way?for solving?
>pleaes help for installing 802.11e tkn
> mr.ali.balador
>homepage:www.balador.org 
>


-- 
B.C.Mahinthan
School of Computer Engineering
Nanyang Technological University
Singapore


  


[ns] Please help in plotting performance plot

2010-08-01 Thread Rahul Sharma

Hi,

I am a new to NS2 and trying to simulate various routing protocols. I
followed many tutorial provided on internet.

I am using the below codes for simulating shortest path, distance vector
and link state routing and i need some help in this.

Queries:

1) Are the below code correct to perform routing.
2) If the codes are correct than how will i modify the code to change
the network load as in the code there is nothing mentioned about the network
load.
3) how shall i calculate the average delivery time of the packets for the
network using the trace files generated.

I know these are very simple queries but since i am new user and trying NS2
1st time so i am getting bit difficulties in finding the answers of these
queries. I am using ns2.34 version on red hat.

Please help me!



-- code --

-sortest path---

set ns [new Simulator]

#Define different colors for data flows (for NAM)
$ns color 1 Blue
$ns color 2 Red

#Open the Trace file
set file1 [open out.tr w]
$ns trace-all $file1

#Open the NAM trace file
set file2 [open out.nam w]
$ns namtrace-all $file2

#Define a 'finish' procedure
proc finish {} {
global ns file1 file2
$ns flush-trace
close $file1
close $file2
exec nam out.nam &
exit 0
}

# Next line should be commented out to have the static routing
#$ns rtproto DV

#Create six nodes
set n0 [$ns node]
set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]
set n4 [$ns node]
set n5 [$ns node]

#Create links between the nodes
$ns duplex-link $n0 $n1 0.3Mb 10ms DropTail
$ns duplex-link $n1 $n2 0.3Mb 10ms DropTail
$ns duplex-link $n2 $n3 0.3Mb 10ms DropTail
$ns duplex-link $n1 $n4 0.3Mb 10ms DropTail
$ns duplex-link $n3 $n5 0.5Mb 10ms DropTail
$ns duplex-link $n4 $n5 0.5Mb 10ms DropTail

#Give node position (for NAM)
$ns duplex-link-op  $n0 $n1 orient right
$ns duplex-link-op  $n1 $n2 orient right
$ns duplex-link-op $n2 $n3 orient up
$ns duplex-link-op $n1 $n4 orient up-left
$ns duplex-link-op  $n3 $n5 orient left-up
$ns duplex-link-op  $n4 $n5 orient right-up


#Setup a TCP connection
set tcp [new Agent/TCP/Newreno]
$ns attach-agent $n0 $tcp
set sink [new Agent/TCPSink/DelAck]
$ns attach-agent $n5 $sink
$ns connect $tcp $sink
$tcp set fid_ 1

#Setup a FTP over TCP connection
set ftp [new Application/FTP]
$ftp attach-agent $tcp
$ftp set type_ FTP

$ns rtmodel-at 1.0 down $n1 $n4
$ns rtmodel-at 4.5 up $n1 $n4

$ns at 0.1 "$ftp start"

$ns at 6.0 "finish"

$ns run


 distance vector ---
set ns [new Simulator]

#Define different colors for data flows (for NAM)
$ns color 1 Blue
$ns color 2 Red

#Open the Trace file
set file1 [open out.tr w]
$ns trace-all $file1

#Open the NAM trace file
set file2 [open out.nam w]
$ns namtrace-all $file2

#Define a 'finish' procedure
proc finish {} {
global ns file1 file2
$ns flush-trace
close $file1
close $file2
exec nam out.nam &
exit 0
}

# Next line should be commented out to have the static routing
$ns rtproto DV

#Create six nodes
set n0 [$ns node]
set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]
set n4 [$ns node]
set n5 [$ns node]

#Create links between the nodes
$ns duplex-link $n0 $n1 0.3Mb 10ms DropTail
$ns duplex-link $n1 $n2 0.3Mb 10ms DropTail
$ns duplex-link $n2 $n3 0.3Mb 10ms DropTail
$ns duplex-link $n1 $n4 0.3Mb 10ms DropTail
$ns duplex-link $n3 $n5 0.5Mb 10ms DropTail
$ns duplex-link $n4 $n5 0.5Mb 10ms DropTail

#Give node position (for NAM)
$ns duplex-link-op  $n0 $n1 orient right
$ns duplex-link-op  $n1 $n2 orient right
$ns duplex-link-op $n2 $n3 orient up
$ns duplex-link-op $n1 $n4 orient up-left
$ns duplex-link-op  $n3 $n5 orient left-up
$ns duplex-link-op  $n4 $n5 orient right-up


#Setup a TCP connection
set tcp [new Agent/TCP/Newreno]
$ns attach-agent $n0 $tcp
set sink [new Agent/TCPSink/DelAck]
$ns attach-agent $n5 $sink
$ns connect $tcp $sink
$tcp set fid_ 1

#Setup a FTP over TCP connection
set ftp [new Application/FTP]
$ftp attach-agent $tcp
$ftp set type_ FTP

$ns rtmodel-at 1.0 down $n1 $n4
$ns rtmodel-at 4.5 up $n1 $n4

$ns at 0.1 "$ftp start"

$ns at 6.0 "finish"

$ns run

-- link state --

set ns [new Simulator]

#Define different colors for data flows (for NAM)
$ns color 1 Blue
$ns color 2 Red

#Open the Trace file
set file1 [open out.tr w]
$ns trace-all $file1

#Open the NAM trace file
set file2 [open out.nam w]
$ns namtrace-all $file2

#Define a 'finish' procedure
proc finish {} {
global ns file1 file2
$ns flush-trace
close $file1
close $file2
exec nam out.nam &
exit 0
}

# Next line should be commented out to have the static routing
$ns rtproto LS

#Create six nodes
set n0 [$ns node]
set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]
set n4 [$ns node]
set n5 [$ns node]

#Create links between the nodes
$ns duplex-l

[ns] Please help me with this error

2011-06-03 Thread N_F

Hi all,

I have  an agent implemented in ns which used to work properly before, but
now when I am trying to run different tcl files I m getting the same error
as below:
ns:
[code omitted because of length]
: invalid command name "Agent/hoperaa"
while executing
"Agent/hoperaa set packetSize_ 40"

Does anyone have an idea about this error?

Thanks in advance,
/Negin


[ns] Please help me about mannasim patch

2011-08-12 Thread m ali

Hi
I am using mannasim framework.
I wants that some node generate carbon data generator and some node
generate temperature data. How to implement this in create common node
procedure.

Thanks in advance

Best regards
Moazzam



[ns] Please help : Probelm in AODV protocol

2006-02-03 Thread A Anupama

Hi everybody
   I am doing modifications to AODV protocol.  I have added new packet
types along with AODV_HELLO, AODV_RREQ etc...  when I am sending a packet, I
am receiving an error as below:

format_eaodv: invalid AODV packet type

I haven't used this phrase in any of the files i have created... and not
understanding from where I am getting this error message  please help...
When we schedule a packet, what happens internally ?  which and all the
functions are called ? from where i am receiving this error message and how
can i solve this problem

please help

Thanks in advance

Regards
Anupama


[ns] please help: problem with routing table ????

2006-03-07 Thread hamdi benmessaoud

 Hi all ,
   To print the routing table I have followed this steps   : 
   1)I went to the file  aodv_rtrace.h and add this line 
void   print(Trace*);   
   2) I wet to the file aodv_rtrace.cc and add this fuction 
 void 
 aodv_rtable::print(Trace* out) {
 sprintf(out->pt_->buffer(), "P\tdest\tnext");
 out->pt_->dump();
   for (rtable_t::iterator it =rt_ begin() ; it != rt_ e();it++)  {
  sprintf(out->pt_->buffer(),"P\t%d\t%d",
   (*it).first,
   (*it).second);
out->pt_->dump();
   }
} 
  (print is the function which print the routing table in the trace file ) 
  3)recompile ns2 by typing ./configure then make install in the
~ns-2.29 directory because i'm using ns2.29
   
  so then i must see in my trace file the routing table printed 
  but I don't see this routing table and i don't know why ?
  So please help me it's vey important 
  i have attached you my 2 files 
aodv_rtable.cc and aodv_rtable.h 
   
  Thank u a lot in advance 
  Amel
  
  
 
  


-
 Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.Téléchargez la version 
beta.

[ns] Please help me to add the patch

2007-03-02 Thread taraka praveen


Hi friends,

I want to run PCF operation In NS2.i downloaded the
patch from this site

http://www.sm.luth.se/~dugdale/index/software.shtml

I was unable to patch it to ns-allinone-2.1b8.

Please tell me how to patch it and how to run that PCF
code.

Thank you very much sir,

Thanking you,
Tarakapraveen Uppalapati



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/



[ns] Please help ....Error-"Scheduler:Event UID not valid!!"

2008-05-07 Thread sree ramya kanury

Hi all
 
I am currently working on ns-2.29.I am trying to implement my protocol and 
hence made some changes to ns-2.29/mac/mac_802.11.cc .I try to test this with 
my own tcl script.But I get the error "Scheduler:Event UID not valid!!"
 
 I looked into the forum and tried to inlcude 
 
"if(mhDefer_.busy()) mhDefer_.stop();"
before every "tx_resume();"
 But it still fails.I have no idea which UID is causing this error and how to 
resolve this.
 
 I would be very glad if someone can please help me with this.I appreciate your 
help.
 
 Thanks
 Sree
 
   
-
 Bring your gang together. Do your thing. Find your favourite Yahoo! Group.


Re: [ns] Please Help for "invalid command Agent"

2008-07-30 Thread nvd


Follow the link as below. It might help you.

http://www.geocities.com/naveedguy/NS2_problem_1.html
http://www.geocities.com/naveedguy/NS2_problem_1.html 
-- 
View this message in context: 
http://www.nabble.com/Please-Help-for-%22invalid-command-Agent%22-tp9200745p18684440.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Please help mo for SMCC on NS

2009-05-05 Thread ma-haiyuan




hi to all!
 
I am a newer about NS. my interesting is multicast congestion control. I have 
some problems when I run SMCC[Gu-In Kwon and John W. Byers. Smooth Multirate 
Multicast Congestion Control.IEEE INFOCOM 2003]
 I have downloaded SMCC source codes from the writer's websit: 
http://cs-people.bu.edu/guin/smcc.html. When I run the simulations, there are 
several problems, maybe the reason is the version I used is 3.2 which is 
differented from the writer's. Could somebody give me some advice that how to 
modify the codes in order to run simulations successfully in NS 3.2? 
 
 The Problems is as follows:
1、If I replace "TCP-sink.h" and "TCP-sink.cc" with the website provioded, the 
error log in "make" procedure is : 
"tcp/tcp-asym-sink.o:tcp-asym-sink.cc:(.text+0x30d): undefined reference to 
`Acker::update_ts(int, double, int)'
tcp/tcp-asym-sink.o:tcp-asym-sink.cc:(.rdata$_ZTV11TcpAsymSink[vtable for 
TcpAsymSink]+0x34): undefined reference to `DelAckSink::reset()'
collect2: ld returned 1 exit status
make: *** [ns] Error 1"
So I retain the inherent codes in NS 3.2 instead of raplacing them.
2、I put "smcc.h" and "smcc.cc" in the directory 
"\ns-allinone-2.31\ns-2.31\mcast"
When make it , there are some error information as follows:
mcast/smcc.cc: In member function `void SmccAgent::warmup()':
mcast/smcc.cc:123: error: ISO C++ forbids initialization in array new
mcast/smcc.cc:124: error: ISO C++ forbids initialization in array new
mcast/smcc.cc:125: error: ISO C++ forbids initialization in array new
So I modified the codes :
123   send_timer_ = new SmccSendTimer[Max_smcc_Layer](this);
124NoFeedbacktimer_ = new SmccNoFeedbackTimer[Max_smcc_Layer](this); 
125bcl_timer_ = new BclTimer[Max_Bcl_Layer](this);
 
to:
 SmccSendTimer *send_timer_[Max_smcc_Layer];
  SmccNoFeedbackTimer *NoFeedbacktimer_[Max_smcc_Layer];
  for(int kk=0; kk

[ns] please help me in FSK Modulation (NRZ)

2010-08-07 Thread ali bala


 
 
Dear all
I can't find the related files to FSK Modulation (NRZ) in NS2.34.
How can I find (or probably implement) this propagation model.
i found bpsk in Modulation.h but i can't find fsk.
I am looking forward to receiving your comments & related codes for NS2.
Thanks in advance,
  
 Kind regards,
Ali Balador
 Homepage: WWW.BALADOR.ORG 
***


  


Re: [ns] Please help me with this error

2011-06-03 Thread Ghofrane



Hi,
After adding a new protocol, you should type make than you should type make 
install as a root. If you do so, you won't have this error.



From: N_F 
To: ns-users@ISI.EDU
Sent: Friday, June 3, 2011 10:24 AM
Subject: [ns] Please help me with this error


Hi all,

I have  an agent implemented in ns which used to work properly before, but
now when I am trying to run different tcl files I m getting the same error
as below:
ns:
[code omitted because of length]
: invalid command name "Agent/hoperaa"
    while executing
"Agent/hoperaa set packetSize_ 40"

Does anyone have an idea about this error?

Thanks in advance,
/Negin


[ns] please help .. "*** NOTE: no connection pattern specified."

2011-08-14 Thread zmezm 14

hi 
am trying to run a tcl file , i have , and there is some movement pattern , so 
i generat the movement file using , " cmu-scen-gen/setdest. " ./setdest 
but when i try to run it i get this error . can anyone please tell me whats its 
mean ..

INITIALIZE THE LIST xListHead
*** NOTE: no connection pattern specified.
Loading scenario file...
couldn't read file "../../tcl/mobility/scene/scen-100": no such file or 
directory
    while executing
"source.orig ../../tcl/mobility/scene/scen-100"
    ("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 $opt(sc)"
    invoked from within
"if { $opt(sc) == "" } {
    puts "*** NOTE: no scenario file specified."
    set opt(sc) "none"
} else {
    puts "Loading scenario file..."
    source $op..."
    (file "100nswimax.tcl" line 193)
ali@ali-laptop:~/ns2/1$ 



[ns] please help if you can " wimax HO "

2012-03-17 Thread zmezm 14

am working in wimax model 
when am increasing the mobile node to more then 5 node i get this error 
anyone know how to fix this please help me out 

Configuration of hierarchical addressing done
num_nodes is set 9
sink node created
INITIALIZE THE LIST xListHead
warning: no class variable WimaxScheduler/BS::use_pmip6_ext_

    see tcl-object.tcl in tclcl for info about this warning.


Base Station 1 created
warning: no class variable WimaxScheduler/BS::use_pmip6_ext_

    see tcl-object.tcl in tclcl for info about this warning.

Base Station 2 created
wireless nodes created ...

Running simulation
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 83.4
SORTING LISTS ...DONE!
Scheduler: Event UID not valid!


Re: [ns] Please help : Probelm in AODV protocol

2006-02-03 Thread Hailun Tan


Check ns/tcl/lib/ns-lib.tcl... you will find out where this error message
comes from and how to fix it!!
>
> Hi everybody
>I am doing modifications to AODV protocol.  I have added new packet
> types along with AODV_HELLO, AODV_RREQ etc...  when I am sending a packet,
> I
> am receiving an error as below:
>
> format_eaodv: invalid AODV packet type
>
> I haven't used this phrase in any of the files i have created... and not
> understanding from where I am getting this error message  please
> help...
> When we schedule a packet, what happens internally ?  which and all the
> functions are called ? from where i am receiving this error message and
> how
> can i solve this problem
>
> please help
>
> Thanks in advance
>
> Regards
> Anupama
>




--
This email and any attachments may be confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.



Re: [ns] please help: problem with routing table ????

2006-03-08 Thread Kanthi

One way to print routing table in aodv in ns-2.28 would be the following..
(Assuming you have basic familiarity with C++ and any general routing
table structure)

1. Declare a function - rt_display(int node_id) as a member of class
aodv_rtable (in file aodv_rtable.h)
node_id is an argument which you can pass while calling the function and
later print it along with the routing table so that you know which node is
printing it's routing table.

2. Define the same function in aodv_rtable.cc. Inside the function
rt_display(int node_id), print the fields of rt->rt_dst, rt->rt_nexthop
and so on.. (all the fields that are of interest to you). To see how to
access individual entries of the routing table, take a look at rt_lookup
function.

3. From an "appropriate place", call this function.  ( one place I would
suggest is from rt_update in aodv.cc , call rtable.rt_display(index). This
would dump the routing table whenever there is an update to the routing
table )

Then, recompile ns with make and try running your simulation.

Thanks,
Kanthi


>
>  Hi all ,
>To print the routing table I have followed this steps   :
>1)I went to the file  aodv_rtrace.h and add this line
> void   print(Trace*);
>2) I wet to the file aodv_rtrace.cc and add this fuction
>  void
>  aodv_rtable::print(Trace* out) {
>  sprintf(out->pt_->buffer(), "P\tdest\tnext");
>  out->pt_->dump();
>for (rtable_t::iterator it =rt_ begin() ; it != rt_ e();it++)  {
>   sprintf(out->pt_->buffer(),"P\t%d\t%d",
>(*it).first,
>(*it).second);
> out->pt_->dump();
>}
> }
>   (print is the function which print the routing table in the trace file )
>   3)recompile ns2 by typing ./configure then make install in the
> ~ns-2.29 directory because i'm using ns2.29
>
>   so then i must see in my trace file the routing table printed
>   but I don't see this routing table and i don't know why ?
>   So please help me it's vey important
>   i have attached you my 2 files
> aodv_rtable.cc and aodv_rtable.h
>
>   Thank u a lot in advance
>   Amel
>
>
>
>
>
>
> -
>  Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les
> tarifs exceptionnels pour appeler la France et
> l'international.Téléchargez la version beta.


-- 
" I gave my life to become the person I am right now. Was it worth it? "
 - Richard Bach



[ns] please help me to manual route wireless traffic

2007-01-22 Thread antonis antoniou





Hi all,
This is my topology of wireless network.
 a
b  c   d  e
f   g   h
j  k
l  


letters correspond to wireless nodes.sources are: a,f,l and sink is : e

i want to sent traffic a-b-c-d-e and f-g-h-d-e and l-j-k-h-d-e

how can manually route this traffic in ns-2???

thanks in advance
 
 




[ns] Please Help for "invalid command Agent" by Paks

2007-02-28 Thread Paks


Hi all,

I am working on video multicast stream. I downloaded the
EvalVid version used for NS. In that they have created
new agent called "myUDP" agent. I follwed all the
steps given in 

http://hpds.ee.ncku.edu.tw/~smallko/ns2/Evalvid_in_NS2.htm

I made the relevant changes in the packet.h and
Makefile etc. when I compiled the ns again the error was:

--

trace/trace.cc: In static member function `static int
Trace::get_seqno(Packet*)'
:
trace/trace.cc:206: error: `PT_XCP' undeclared (first use this function)
trace/trace.cc:206: error: (Each undeclared identifier is reported only once
for
 each function it appears in.)
trace/trace.cc: In member function `virtual void DequeTrace::recv(Packet*,
Handl
er*)':
trace/trace.cc:567: warning: int format, nsaddr_t arg (arg 5)
trace/trace.cc:567: warning: int format, nsaddr_t arg (arg 6)
trace/trace.cc:586: warning: int format, nsaddr_t arg (arg 5)
trace/trace.cc:586: warning: int format, nsaddr_t arg (arg 6)
make: *** [trace/trace.o] Error 1

--

( but i think this isn't main problem )

And when I run the file "be.tcl" which is
given in the link only the error was: 

--

invalid command name "Agent/myUDP"
while executing
"Agent/myUDP create _o82 "
invoked from within
"catch "$className create $o $args" msg"
(procedure "new" line 3)
invoked from within
"new Agent/myUDP"
invoked from within
"set udp1 [new Agent/myUDP]"
(file "be.tcl" line 24)

--

Please help me regarding this. 
thanks in advance,
regards,

Paks
-- 
View this message in context: 
http://www.nabble.com/Please-Help-for-%22invalid-command-Agent%22-by-Paks-tf3309051.html#a9204496
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Please help me (emergency) about "reading variable value"

2007-03-20 Thread Amin Irandoost

hi dear friends
how to read  variable value of C++ in OTCL??
for example a partial of code are
class test:public TclObject{
public:
int i;
test();
.
.
.};

test::test(){
bind("i_",&i);
}

in Tcl write this:
set te [new test]
set x [$te $i???] ??

-- 
Amin Irandoost


[ns] please help me to install IEEE 802.11e HCCA.

2007-08-10 Thread ByungJoon Oh

Dear All NS-users,

I try to install ns2hcca source code decribed with website: 
http://info.iet.unipi.it/~cng/ns2hcca/
However, I can't install about that.
As described this website, I have followed the precedure of installation.
But, I can't make sense of Number 4 of process. (attached by pic file).
please advice me to get a clue.

Thank you in advance.

Best regards,
BJ,

[ns] Please Help ........Error while creating new packet types

2009-01-26 Thread Arun Kumar

sir i have to create a new header type so i searched in the net and
got the code in the website
http://www.isi.edu/nsnam/ns/tutorial/index.html.

 But in packet.h PT_PING and name_[PT_PING]="ping" is already defined
and in ns-default.tcl Agent/Ping set packetSize_ 64 is also defined.
which version you have used and while executing make command i got some
errors the errors are as follows 

In file included from ping.h:12,
 from ping.cc:9:
agent.h:41:23: animation.h: No such file or directory
agent.h:42:27: trafficsource.h: No such file or directory
In file included from ping.h:12,
 from ping.cc:9:
agent.h:56: error: expected class-name before ',' token
agent.h:101: error: ISO C++ forbids declaration of `TrafficSource' with
no type
agent.h:101: error: expected `;' before '*' token
agent.h:102: error: ISO C++ forbids declaration of `TrafficSource' with
no type
agent.h:102: error: expected `;' before '*' token
agent.h:126: error: ISO C++ forbids declaration of `TrafficSource' with
no type
agent.h:126: error: expected `;' before '*' token
agent.h:135: error: `View' has not been declared
agent.h:135: error: ISO C++ forbids declaration of `parameter' with no
type
agent.h: In member function `virtual int Agent::classid() const':
agent.h:58: error: `ClassAgentID' undeclared (first use this function)
agent.h:58: error: (Each undeclared identifier is reported only once for
each function it appears in.)
agent.h: At global scope:
agent.h:171: error: `View' has not been declared
agent.h:171: error: ISO C++ forbids declaration of `nv' with no type
ping.cc: In member function `virtual TclObject* PingClass::create(int,
const char* const*)':
ping.cc:23: error: cannot allocate an object of type `PingAgent'
ping.cc:23: error:   because the following virtual functions are
abstract:
agent.h:73: error:  virtual void Agent::findClosestCornertoPoint(double,
double, double&, double&) const
ping.cc: In constructor `PingAgent::PingAgent()':
ping.cc:29: error: no matching function for call to `Agent::Agent
(packet_t)'
agent.h:56: note: candidates are: Agent::Agent(const Agent&)
agent.h:133: note: Agent::Agent(const char*, double)
agent.h:132: note: Agent::Agent(const char*, int,
double)
ping.cc: In member function `virtual int PingAgent::command(int, const
char* const*)':
ping.cc:40: error: `allocpkt' undeclared (first use this function)
ping.cc:49: error: invalid conversion from `Packet*' to `int'
/usr/include/sys/socket.h:136: error: too few arguments to function
`ssize_t send(int, const void*, size_t, int)'
ping.cc:49: error: at this point in file
ping.cc: In member function `void PingAgent::recv(Packet*, Handler*)':
ping.cc:64: error: `off_ip_' undeclared (first use this function)
ping.cc:74: error: `allocpkt' undeclared (first use this function)
ping.cc:82: error: invalid conversion from `Packet*' to `int'
/usr/include/sys/socket.h:136: error: too few arguments to function
`ssize_t send(int, const void*, size_t, int)'
ping.cc:82: error: at this point in file
ping.cc:93: error: no match for 'operator>>' in 'hdrip->hdr_ip::src_ >>
*(Address::instance()->Address::NodeShift_ + 4u)'
make: *** [ping.o] Error 1




so sir please help me.looking for your respose kindly.
 Thank You
  With Regards,
  N.ArunKumar
  (Final Year B.Tech Information Technology)


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/




[ns] Please help me: initial energy of a node

2009-05-06 Thread Caio Marziale

 Hello all,
 I have tried to collect the information of initial energy of a node using
the trace information

s 0.000665000 _19_ MAC  --- 0 AODV 55 [0  13 800] [energy
*0.04*ei 0.000 es 0.000 et 0.000 er 0.000] --- [19:255 -1:255
30 0] [0x2 1 1
[6 0] [19 4]] (REQUEST)
or

N -t 0.000665 -n 23 -e 0.999414

I set in the tcl file initial energy as 1. Anybody knows why the initial
energy is  *0.04*  or 0.999414 
It is better to use initial energy as hard code (= 1) in the awk file to get
this information???
Anybody has an reliable example?

Please help me!

Thanks!


Re: [ns] please help .. "*** NOTE: no connection pattern specified."

2011-08-14 Thread Yasir Saleem

Dear,

This error occurs when you specify an external file to read from tcl script.
I think that either you have given the wrong path of your file or you have
done any spelling mistake.
Recheck this.
Furthurmore if "setdest" is you movement pattern file and you are using "
./setdest " then you must first ensure that both movement pattern file and
your tcl script should be in same directory

regards,

Yasir

On Sun, Aug 14, 2011 at 9:57 PM, zmezm 14  wrote:

>
>
> hi
> am trying to run a tcl file , i have , and there is some movement pattern ,
> so i generat the movement file using , " cmu-scen-gen/setdest. " ./setdest
> but when i try to run it i get this error . can anyone please tell me whats
> its mean ..
>
> INITIALIZE THE LIST xListHead
> *** NOTE: no connection pattern specified.
> Loading scenario file...
> couldn't read file "../../tcl/mobility/scene/scen-100": no such file or
> directory
> while executing
> "source.orig ../../tcl/mobility/scene/scen-100"
> ("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 $opt(sc)"
> invoked from within
> "if { $opt(sc) == "" } {
> puts "*** NOTE: no scenario file specified."
> set opt(sc) "none"
> } else {
> puts "Loading scenario file..."
> source $op..."
> (file "100nswimax.tcl" line 193)
> ali@ali-laptop:~/ns2/1$
>
>
>


[ns] Please Help : Multicast "cache-miss: can't read "protocols"

2006-01-25 Thread mmulibra

This is a repost message :

Hi All,

I would like to simulate a simple multicast of 5 nodes, where there are 2
groups and 2 sources and 2 nodes leaving and joining different groups.
However I got this error :

ns: _o15 new-group 0 -2147483648 -1 cache-miss: can't read "protocols_(-1)":
no such variable
while executing
"$protocols_($iface) upcall $code $source $group $iface"
(procedure "_o16" line 9)
(mrtObject upcall line 9)
invoked from within
"$mrtObject_ upcall $code $src $group $iface"
(procedure "_o10" line 3)
(Node new-group line 3)
invoked from within
"$node_ new-group $src $group $iface $code"
(procedure "_o15" line 3)
(Classifier/Multicast new-group line 3)
invoked from within
"_o15 new-group 0 -2147483648 -1 cache-miss"

Hopefully someone can give me a hint
Thanks for your kind attention



Here is my tcl script:
-

set ns [new Simulator -multicast on]

# Dense Mode Multicast Protocol
set mproto DM
set mrthandle [$ns mrtproto $mproto {}]

# allocate a multicast address;
set group0 [Node allocaddr]
set group1 [Node allocaddr]

# Open nam tracefile
set nf [open prob1.nam w]

# Open tracefile
set nt [open trace.tr w]

$ns namtrace-all $nf
$ns trace-all $nt

$ns color 1 red
# the nam colors for the prune packets
$ns color 30 purple
# the nam colors for the graft packets
$ns color 31 green

#Define a 'finish' procedure
proc finish {} {
global ns nf nt
$ns flush-trace
close $nf
close $nt
puts "running nam..."
exec nam -a prob1.nam &
exit 0
}

# create 5 nodes
puts "create 5 nodes now."

set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]
set n4 [$ns node]
set n5 [$ns node]

puts "create connections now."

# Create connection
$ns duplex-link $n1 $n2 1Mb 5ms DropTail
$ns duplex-link $n2 $n3 1Mb 5ms DropTail
$ns duplex-link $n3 $n4 1Mb 5ms DropTail
$ns duplex-link $n2 $n4 1Mb 5ms DropTail
$ns duplex-link $n2 $n5 1Mb 5ms DropTail

# Node orientation
$ns duplex-link-op $n1 $n2 orient right
$ns duplex-link-op $n2 $n3 orient right
$ns duplex-link-op $n3 $n4 orient right
$ns duplex-link-op $n2 $n4 orient down
$ns duplex-link-op $n2 $n5 orient up

puts "Create agents and attach to appropriate nodes..."

# Create agents and attach to appropriate nodes
set udp0 [new Agent/UDP]
$ns attach-agent $n1 $udp0
$udp0 set dst_addr_ $group0
$udp0 set dst_port_ 0
set cbr0 [new Application/Traffic/CBR]
$cbr0 attach-agent $udp0

set udp1 [new Agent/UDP]
$ns attach-agent $n3 $udp1
$udp1 set dst_addr_ $group1
$udp1 set dst_port_ 1
set cbr1 [new Application/Traffic/CBR]
$cbr1 attach-agent $udp1

puts "schedule transmitting packets..."
# create receiver agents
set rcvr0 [new Agent/LossMonitor]
set rcvr1 [new Agent/LossMonitor]

$ns attach-agent $n4 $rcvr0
$ns attach-agent $n5 $rcvr1

# joining and leaving the group;
$ns at 0.10 "$n4 join-group $rcvr0 $group0"
$ns at 0.12 "$n5 join-group $rcvr1 $group0"
$ns at 0.50 "$n4 leave-group $rcvr0 $group0"
$ns at 0.60 "$n4 join-group $rcvr0 $group1"

$ns at 0.05 "$cbr0 start"
$ns at 0.05 "$cbr1 start"
$ns at 0.80 "finish"
$ns run


[ns] Please help me!About sctp multihoming on wireless

2006-04-17 Thread robbin

Hi

I tried to simulate sctp on ns-2.28.

I have readed the paper on 
http://www.lib.ncsu.edu/theses/available/etd-05162005-094333/.

According to The FAQS of the paper , I modified two parts.

1.$ns_ node-config -wiredRouting OFF 
2.commented out the line 
//Tcl::instance().evalf("\%s no-slot \%ld", name(), cl)
in classifier.cc

I created multihoming nodes(mobile node) in WLAN .

while i execute ... it can not work.

Then I configure the mobilenode using $ns_ node-config -multihome-core \

and

$MH addif $MH_if0

$MH addif $MH_if1

instead of

#$ns_ multihome-add-interface $MH $MH_if0

#$ns_ multihome-add-interface $MH $MH_if1

But Segmentation fault(core dump)  occur.

Before I have successed ... when use mobilenode without multihoming .

But when add multihoming,the data can't be transfer.

Please help me.

Thank you very much.

My script is as following.

#

Mac/802_11 set dataRate_ 11Mb ;# 802.11b data rate

==

# Define options
#
==

set opt(chan) Channel/WirelessChannel ;# channel type

 set opt(prop) Propagation/TwoRayGround ;# radio-propagation model

 set opt(netif) Phy/WirelessPhy ;# network interface type

 set opt(mac) Mac/802_11 ;# MAC type

 set opt(ifq) Queue/DropTail/PriQueue ;# interface queue type

 set opt(ll) LL ;# link layer type

 set opt(ant) Antenna/OmniAntenna ;# antenna model

 set opt(ifqlen) 50 ;# max packet in ifq

 set opt(nn) 1 ;# number of mobilenodes

 set opt(adhocRouting) DSDV ;# routing protocol

 set opt(x) 670 ;# x coordinate of topology

 set opt(y) 670 ;# y coordinate of topology

 set opt(seed) 0.0 ;# random seed

 set opt(ftp-start) 100.0

 set opt(cbr-start) 150.0

 set opt(stop) 250 ;# time to stop simulation

 # create simulator instance

 set ns_ [new Simulator]

 # set up for hierarchical routing

 $ns_ node-config -addressType hierarchical

 AddrParams set domain_num_ 3

 lappend cluster_num 2 1 1

 AddrParams set cluster_num_ $cluster_num

 lappend eilastlevel 1 1 2 1

 AddrParams set nodes_num_ $eilastlevel

 set tracefd [open msctp-out.tr w]

 set namtrace [open msctp-out.nam w]

 $ns_ use-newtrace

 $ns_ trace-all $tracefd

 $ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y)

 # Here the topography object define

 set topo [new Topography]

 $topo load_flatgrid $opt(x) $opt(y)

 create-god [expr $opt(nn) + 2]

 #Here wired nodes

 set temp {0.0.0 0.1.0}

 for {set i 0} {$i < $num_wired_nodes} {incr i} {

 set W($i) [$ns_ node [lindex $temp $i]]

 }

 # Configure for ForeignAgent and HomeAgent nodes

 $ns_ node-config -mobileIP ON \

 -adhocRouting $opt(adhocRouting) \

 -llType $opt(ll) \
 -macType $opt(mac) \
 -ifqType $opt(ifq) \ 
 -ifqLen $opt(ifqlen) \ 
 -antType $opt(ant) \

 -propType $opt(prop) \

 -phyType $opt(netif) \

 -channelType $opt(chan) \

 -topoInstance $topo \

 -wiredRouting ON \ 
 -agentTrace ON \

 -routerTrace OFF \

 -macTrace ON

  set HA [$ns_ node 1.0.0]

 $HA random-motion 0

 # Position (fixed) for base-station nodes (HA & FA).

 $HA set X_ 1.

 $HA set Y_ 2.

 $HA set Z_ 0.

  # Configure a mobilenode

 $ns_ node-config -multihome-core \

 -wiredRouting OFF \

 -mobileIP OFF \

 -macTrace ON

 set MH [$ns_ node 0.0.0]

 set MH_if0 [$ns_ node 1.0.1]

 $MH addif $MH_if0

 #$ns_ multihome-add-interface $MH $MH_if0

 set fid_ 2

 set HAaddress [AddrParams addr2id [$HA node-addr]]

 [$MH_if0 set regagent_] set home_agent_ $HAaddress

 # movement of the Mobile Node

 $MH set Z_ 0.

 $MH set Y_ 2.

 $MH set X_ 2.

 # links between wired and BaseStation nodes

 $ns_ duplex-link $W(0) $W(1) 10Mb 5ms DropTail

 $ns_ duplex-link $W(1) $HA 5Mb 2ms DropTail

 $ns_ duplex-link-op $W(0) $W(1) orient down

 $ns_ duplex-link-op $W(1) $HA orient left-down

 # setup SCTP connections between a wired node and the MobileHost

 $ns_ node-config -mobileIP OFF

 set sctp1 [new Agent/SCTP]

 $sctp1 set class_ 2

 $ns_ multihome-attach-agent $MH_if0 $sctp1

 set sink1 [new Agent/SCTP]

 $ns_ attach-agent $W(0) $sink1

 $ns_ connect $sctp1 $sink1

 $sctp1 force-source $MH_if0

 $ns_ at 200.0 "$sctp1 force-source $MH_if0"

 $sctp1 set fid_ 1

 set ftp [new Application/FTP]

 $ftp attach-agent $sctp1

 $ftp set packet_size_ 1000

 $ftp set rate_ 1mb

 $ns_ at $opt(ftp-start) "$ftp start"

 $ns_ at $opt(stop).0 "$HA reset";

 $ns_ at $opt(stop).0002 "puts \"NS EXITING...\" ; $ns_ halt"

 $ns_ at $opt(stop).0001 "stop"

 $ns_ run

--
電腦與通訊網路實驗室 網路郵局
Open WebMail
--- End of Forwarded Message ---




[ns] Please help: Energy AWARE AODV. Power-aware Routing Protocol

2007-04-18 Thread xyza

Hello guys,

I badly needed your help. This is urgent.
I have posted already some questions regarding my problem but there was no
reply.
http://mailman.isi.edu/pipermail/ns-users/2007-April/059757.html
http://mailman.isi.edu/pipermail/ns-users/2007-April/059765.html

Is there someone who did a study before about ENERGY/POWER-AWARE Routing
Algorithm?
Can you give me some sample codes or links where can I get an energy-aware
routing algo (for my reference)?
Or a detailed discussion HOW did you make the code and implement it in ns-2.

PLEASE...
Hoping for replies.
Thank you very much.

xyza


Re: [ns] please help me to install IEEE 802.11e HCCA.

2007-08-15 Thread jorbustos1


Hi BJ

To make the number 4 of process you should make the following:

you should save the patch in a file archive for example into the  /home and
then you go to the terminal and executing the following command:

cd /home/ns-allinone-2.29/ns-2.29

when you make this, you enter to working directory of ns-2.29, then, from
this working directory you should search the patch that you saved in /home
and apply it by executing the following command:

gzip -dc /home/ns2hcca-2.29-060823.patch.gz | patch -Np1

then, from the working directory of ns-2.29  you should execute the
following commands:
./configue
make clean
make


best regards

Jorge Bustos



   




ByungJoon Oh wrote:
> 
> 
> 
> Dear All NS-users,
> 
> I try to install ns2hcca source code decribed with website:
> http://info.iet.unipi.it/~cng/ns2hcca/
> However, I can't install about that.
> As described this website, I have followed the precedure of installation.
> But, I can't make sense of Number 4 of process. (attached by pic file).
> please advice me to get a clue.
> 
> Thank you in advance.
> 
> Best regards,
> BJ,
> 

-- 
View this message in context: 
http://www.nabble.com/please-help-me-to-install-IEEE-802.11e-HCCA.-tf4250733.html#a12171329
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Please help: is working with snapshot different than allinone?

2007-10-03 Thread Muby J

Dear all,

I have managed to make install ns-2-snapshot, but it didnt give me notice for 
environmental variables?  how should i set that?

& what is different working with snapshot  than allinone?  hould i copy my tcl 
& scn  to bin to run them? 

how about nam? my snapshot doesnt come nam ? can i link it with installed 
ns-allinone?

thank you

Jena

   
-
Catch up on fall's hot new shows on Yahoo! TV.  Watch previews, get listings, 
and more!


[ns] please help me multi-channel multi-interface [ns-2.29]

2008-04-24 Thread ByungJoon Oh

Hello respect NS-users,

when I simulated followed this website: http://www.cse.msu.edu/~wangbo1/ns2/ 
(Bo Wang's website),
But, I got the error messages since implemented $ns twoflows-1channel.tcl:
invalid command name "if{0}{"
while executing
"if{[info exists channel2_]}{"
 (procedure "_o3" line 45)
 (Simulator node-config line 45)
 invoked from within
"$ns_ node-config -channel $chan_6_ \
 -channel2 $chan_1_ \
 - 
 -

please advice for me!!!
Thank you so much in advance.

Best regards,
ByungJoon Oh,


[ns] Please help: ns2 p2p WLAN application code compile error

2010-10-31 Thread xiue ns2

-- Forwarded message --
From: xiue ns2 
Date: 2010/10/31
Subject: Please help: ns2 p2p WLAN application code compile error
To: ns-users@isi.edu


Dear all,

I want to do a TCP simulation to evaluate TCP performance, below is the
source code which I download from network, but I just can't compile it
correct,
when I run the command with "ns wireless2.tcl 11 20"

program shown the error:
 " warning: Route to base_stn not known: dropping pkt
ns: finish: wrong # args: should be "set varName ?newValue?"
while compiling
"set goodput [expr [$tcp0 set ack_]*[$tcp0 set
packetSize_]*8/$now/100.0] #"
(compiling body of proc "finish", line 4)
invoked from within

--source code--
# 
# Define options
# 
set opt(chan) [new Channel/WirelessChannel]  ;# Channel type
set opt(prop)  Propagation/TwoRayGround  ;#
Radio-propagation model
set opt(netif) Phy/WirelessPhy   ;# Network
interface type
set opt(mac)   Mac/802_11;# MAC type
set opt(ifq)   Queue/DropTail/PriQueue   ;# Interface queue
type
set opt(ll)LL;# Link layer type
set opt(ant)   Antenna/OmniAntenna   ;# Antenna model
set opt(ifqlen)50;# Max packet in
ifq
set opt(nn)1 ;# Number of
mobilenodes
set opt(adhocRouting) DSDV   ;# Routing protocol
set opt(x) 500   ;# x coordinate of
topology
set opt(y) 500   ;# y coordinate of
topology
set opt(seed)  0 ;# Seed for random
number gen.
set opt(stop)  60;# 設定結束時間
set opt(ftp0-start)0.0   ;# 設定 FTP 的開始時間
set num_wired_nodes  2   ;# 設定 Wireless node
的個數
set num_ap_nodes 1   ;# 設定 AP (Access
Point)的個數
#Suggestion by http://web.syr.edu/~dchen02/FAQ.txt
Phy/WirelessPhy set freq_ 2.4e+9 ;# frequency is 2.4
GHz
Phy/WirelessPhy set Pt_ 3.3962527e-2 ;# transmit power
Phy/WirelessPhy set RXThresh_ 2.1003e-09 ;# Receive
sensitivity, 40 meters.
Phy/WirelessPhy set CSThresh_ 4.14873e-10;# 90 meters
Mac/802_11 set RTSThreshold_ 3000;# < 256 bytes, no
RTS/CTS
set datarate 11
if {$datarate == "2"} { puts "FHSS (IEEE802.11)"
  Mac/802_11 set SlotTime_0.50   ;# 50 us
  Mac/802_11 set SIFS_0.28   ;# 28 us
  Mac/802_11 set PreambleLength_  0  ;# no preamble
  Mac/802_11 set PLCPHeaderLength_ 128   ;# 128 bits
  Mac/802_11 set PLCPDataRate_   1.0e6   ;# 1 Mbps
  Mac/802_11 set dataRate_2.0e6  ;# 2 Mbps
  Mac/802_11 set basicRate_   1.0e6  ;# 1 Mbps
} elseif {$datarate == "11"} { puts "DSSS (IEEE802.11b)"
  Mac/802_11 set SlotTime_0.20   ;# 20 us
  Mac/802_11 set SIFS_0.10   ;# 10 us
  Mac/802_11 set PreambleLength_ 144 ;# 144 bit
  Mac/802_11 set PLCPHeaderLength_ 48;# 48 bits
  Mac/802_11 set PLCPDataRate_  1.0e6  ;# 1 Mbps
  Mac/802_11 set dataRate_   11.0e6;# 11 Mbps
  Mac/802_11 set basicRate_  1.0e6 ;# 1 Mbps
} elseif {$datarate == "54"} { puts "DSSS (IEEE802.11g)"
  Mac/802_11 set SlotTime_   0.09  ;# 9 us
  Mac/802_11 set SIFS_   0.16  ;# 16 us
  Mac/802_11 set PreambleLength_ 96;# 96 bit
  Mac/802_11 set PLCPHeaderLength_ 40  ;# 40 bits
  Mac/802_11 set PLCPDataRate_   6.0e6 ;# 6 Mbps
  Mac/802_11 set dataRate_   54.0e6;# 54 Mbps
  Mac/802_11 set basicRate_  1.0e6 ;# 1 Mbps
} else {
  puts "Error datarate configuration."
}
#

# 副程式
proc finish {} {
  global ns_ tracefd namtrace tcp0 datarate
  set now [$ns_ now]
  set goodput [expr [$tcp0 set ack_]*[$tcp0 set
packetSize_]*8/$now/100.0] #; 計算 TCP 的 Goodput
  puts [format "goodput = %.2f Mbps (%.2f %s)" $goodput [expr
$goodput/$datarate*100] %]
  puts ""
  close $tracefd
  close $namtrace
}
# 讀入外部參數
proc getopt {argc argv} {
  global opt
  lappend optlist nn
for {set i 0} {$i < $argc} {incr i} {
set opt($i) [lindex $argv $i]
  }
}
getopt $argc $argv
#Example: ns tcp80211-wlan.tcl 54
set datarate  $opt(0)
#

Re: [ns] Please help me to solve my issue in ns2

2008-10-18 Thread Daniel Dekst

Hi,
   
  I don't think you want to classify packets in mac layer. Instead, you want 
your packets to be submitted to aodv. Thus, in aodv.cc, you need to identify 
your packets in AODV::recv(Packet *p). In fact, as you know, all packets first 
arrive at such a recv function in any layer. So if you want to do anything 
about your packets, it should be in this function.
   
  Then how to identify your packets
  you need to register your packet header in common/packet.h
  then you can set hdr_cmn and use it to identify your packets and do something.
  hdr_cmn *ch = HDR_CMN(p)
  when you send a packet, set the packet type as yours,
  when you recv it in aodv
 if(ch->ptype() == PT_YOUR_TYPE) {
   recvMYPACKT(p); //change to execute your code instead of recvAODV(p)
   return;
 }

  Detailed how to register your header can be referred to
  Implementing a New Manet Unicast Routing Protocol in NS2
  see the "needed changes" part.
   
  BTW, how to suppress duplicate packets I have sent. I do not want to read 
aodv code if you already know.
   
  Best,
  Pei

Mubashir Rehmani <[EMAIL PROTECTED]> wrote:
Hello Daniel

I hope that you are fine. I need your help to resolve my problem in ns2.
 
Basically i am using AODV.cc and as you know that AODV has many types of 
packets like HELLO, RREQ etc. I have declared my own packet header in AODV.cc 
and i used it for unicasting. Now the problem is that when i send my own packet 
from source to destination in AODV.cc then first this packet is received in MAC 
802.11.cc file in the recv_timer() function and then in this recv_timer() 
function all the packets are classified. For instance if the packet is Control 
like RTS/CTS/ACK then recv_timer() call functions like recvRTS() etc etc. and 
if the packet is data packet, as Hello or my own packet then it just check 
whether it is data packet or not and just call the recvDATA() packet in 
mac-802.11.cc and then this function send packet to upword layer to recv() 
function that is present in AODV.cc file. Then further action is taken place 
and packets are being dropped there. 

Now my problem is that when i send my own packet from particular source to 
destination then at the mac layer all the nodes that are in the communication 
range will listen this packet and discard them at the mac layer (control 
packets) but if the packet is data packet, in the mac layer it will not 
classify the data packet, instead it will just check whether it is a data 
packet or not and then forward it to upper layer.

What i want to do is that at the mac layer, in the recv_timer() function, the 
mac layer should classify the data packet and if it found that at the mac layer 
that this is a data packet and of type HELLO or RREQ then discard them or if it 
is my own data packet type then forward it to upper layer.

I hope you understand my question.

Thanks in advance.

Regards


-- 
Mubashir Husain Rehmani

Mobile :   00 33 (0)6 32 00 89 35




 __
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com

[ns] Please help me print the path that packet go through.

2009-06-10 Thread tan cam


Hello everyone,
I have a topology:
   Node2___Node3
  / \
 /   \
node0Node1   Node5__Node6
\   /
 \_Node4___/

(Node0 link to node1, 
node1 link to node2, 
node1 link to node4, 
node2 link to node3, 
node3 link to node5, 
node4 link to node5, 
node5 link to node6 )


I sent some packet from Node0 to Node6,
When I received any packet on node6, I want to print the path that this packet 
go through.
(example: Packet1:Node0-Node1-Node4-Node5-Node6)
Thank you so much.
===
Nguyen Tan Cam

HCMUS
===



  



[ns] Please help me, how to access C++ variable using tcl.

2009-07-15 Thread tan cam


Hi,
I have a variable in Trace class (trace.h). That named ntcCount_
I want to access this variable using tcl:
I use bind("ntcCount_", &ntcCount_);
and in tcl file:
set mytrace [new Trace]
and get value of this variable:
puts "value = [$mytrace set ntcCount_]"
But I Can't. Some error occur.
Please help me.
thanks 

===
Nguyen Tan Cam
0909.33.25.47
HCMUS
===



--- On Thu, 7/16/09, ns-users-requ...@isi.edu  wrote:

> From: ns-users-requ...@isi.edu 
> Subject: Ns-users Digest, Vol 67, Issue 15
> To: ns-users@ISI.EDU
> Date: Thursday, July 16, 2009, 7:00 AM
> Send Ns-users mailing list
> submissions to
>     ns-users@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-requ...@isi.edu
> 
> You can reach the person managing the list at
>     ns-users-ow...@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. Droptail queue per-flow rate limiting
> using TokenBucket (or
>       other mechanism?) (Prajjwal Devkota)
>    2. Fw: security enhancement in AODV
> (S.M.Mehdi Feiz)
>    3.  Calculate Delay (Thavouth
> Khoun)
>    4. problems with monitor-queue (Tom G)
>    5. define PAN Co-ordinator in star
> topology for WSN (Ravit Sachasiri)
>    6. fyi - rough multiagents + ns2 code
> (kanishka azimi)
> 
> 
> --
> 
> Message: 1
> Date: Tue, 14 Jul 2009 20:05:28 -0500
> From: Prajjwal Devkota 
> Subject: [ns] Droptail queue per-flow rate limiting using
> TokenBucket
>     (or    other mechanism?)
> To: ns-users@ISI.EDU
> Message-ID:
>     <71561c940907141805u4cb4b649i6df90def67f8...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hi list,
> 
> I am currently doing some ethernet level rate limiting
> simulations using
> ns-2.  I had been doing my simulations with a simple
> DropTail queue (by
> physically changing the link rate), but now, I am trying to
> see if I can
> apply a Token Bucket implementation to support multiple
> flows in a simple
> manner.  I have been searching the mailing list to I
> can find pointers on
> getting started, as well as some of the ns-2 code (using a
> source browser),
> but I have generally only found references to
> Diffserv.  I did notice that
> ns-2 does have a TokenBucket class implemented
> though.  However, as far as I
> can see, diffserv seems to be the only one referencing this
> class.
> 
> I came across this discussion on the ns users mailing list
> at
> http://mailman.isi.edu/pipermail/ns-users/2005-June/050699.html
>   and the conclusion seems to be that using Diffserv
> with the queue mode
> being specified as DropTail was what a solution.
> 
> My rate limiting simply requires token bucket mechanism:
> once I know the
> flow-id, I will have to do token bucket rate limiting
> myself.  As per my
> understanding, diffserv is a class based qos mechanism, not
> a flow based
> one.  Is looking into diffserv a good choice, or is
> there a better solution,
> or one that might be more appropriate for my requirements?
> 
> I would appreciate any pointers that you could offer on
> this.
> 
> Thank you very much for your help!
> 
> 
> --
> 
> Message: 2
> Date: Wed, 15 Jul 2009 00:00:23 -0700 (PDT)
> From: "S.M.Mehdi Feiz" 
> Subject: [ns] Fw: security enhancement in AODV
> To: ns2-mailing list 
> Message-ID: <766676.6917...@web62102.mail.re1.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
> 
> 
> 
> --- On Wed, 7/15/09, S.M.Mehdi Feiz 
> wrote:
> 
> From: S.M.Mehdi Feiz 
> Subject: 
> To: "ns2-mailing list" 
> Date: Wednesday, July 15, 2009, 11:25 AM
> 
> hi all
> I want to add security enhancement for aodv routing in ns2.
> how can i add security in AODV?
> please, help me.
> Thanks
> Mehdi Feiz
> 
> 
> 
>       
> 
> 
>       
> 
> --
> 
> Message: 3
> Date: Wed, 15 Jul 2009 01:36:40 -0700 (PDT)
> From: Thavouth Khoun 
> Subject: [ns]  Calculate Delay
> To: nsusers 
> Message-ID: <490892.49419...@web111602.mail.gq1.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
> 
> Hi all,
> 
> 
> I want to calculate the delay from the following trace file
> and print it.
> Please help me! The first line is the start time and last
> line is end time.
> 
> 
> s 40.045779727 _3_ MAC  --- 0 PRRQ 54 [0  3 0]
> 
> r 40.046211758 _1_ MAC  --- 0 PRRQ 54 [0  3 0]
> 
> s 40.046421758 _1_ MAC  --- 0 PRRP 76 [0 3 1 f105] 
> r 40.047029789 _3_ MAC  --- 0 PRRP 76 [0 3 1 f105] 
> s 40.047039789 _3_ MAC  --- 0 ACK 40 [0 1 0 0] 
> r 40.047359819 _1_ MAC  --- 0 ACK 40 [0 1 0 0] 
> s 40.048309789 _3_ MAC  --- 752 cbr 270 [14a 0 3 800]
> --- [3:0 5:0 32 0] [752] 0 0
> s 40.049444698 _3_ MAC  --- 752 cbr 270 [14a 0 3 800]
> --- [3:

[ns] Please help: Run multiple replications for wireless sensor network simulation

2009-11-22 Thread Quoc Huy My Y



 
Hi all,
 
Please help to show me how to run multiple replications for a wireless sensor 
network simulation.
I am able to run my simulation for one time. Now I want to run about 40 
replications. 
Please help me.
 
Thank you very much,
 
Huy



Windows Live: Keep your friends up to date with what you do online. 
  
_
Ready. Set. Get a great deal on Windows 7. See fantastic deals on Windows 7 now
http://go.microsoft.com/?linkid=9691818


[ns] Please Help me (emergency) (create DSDV Mobile node in specified Time)

2007-03-28 Thread Amin Irandoost


hi dear friends
I have added a code(createTime) to node configuration in ns-lib.tcl such
that at specific time
add new (DSDV) mobile nodes to current nodes but in setdest command usually
I
receive "segmentation fault" error!!
i attach ns-lib.tcl and 1.tcl in email
Please check those and solve my problem
thanks a lot for your guidance

I'm waiting for your reply



--
Amin Irandoost
MSc student in software engineering


[ns] Please help me about H.264 video transmission over IEEE 802.11e.

2007-08-09 Thread ByungJoon Oh

Dear All users,

I like to test H.264 video transmission over IEEE 802.11e EDCA.
However, I have got some error that is segmentation dump error.
I don't know what is happening.
If someone know where the performing test tcl file is, please teach me about 
that.
otherwise, one who figure out this problem help me to solve out this 
transmission fault.
let me learn about that.

Thank you eveyone in advance.

Best regards,
BJ,


[ns] please help me to simulate attacks on the Ad-hoc networks

2006-01-09 Thread Ashutosh Srivastava


   Dear all ,  
 For a project I  need immediate help . 
Actually I have to simulate some attacks(on ns-2
)possible in the Ad-hoc networks:  
1) sink-hole 
2) worm-hole 
3) Sybil attack 
4) Rushing attack 
5) Denial-of-Service and Flooding 
6) Black Hole
  What these terms mean , for this purpose
I am attaching a document containing basic  terms and 
definitions .Please , it would be very kind of you if
you can send me the simulation scripts for any of
these (on ns-2) and also the method to run them .Also
, let me know if there is any software to run ns-2 on
Windows XP
   I am unable to simulate these attacks
because I don't know how to use ns-2(rightnow I am
running out of time).
 I shall be very obliged if you will help me out
.Also , I am attaching a document
regarding the way I want the output statistics , this
paper contains information about the Denial of Service
attacks but nowhere the scripts have been provided for
simulation.
Desperately awaiting your kind
reply.
 With best
regards.
  
Ashutosh Srivstava


Send instant messages to your online friends http://in.messenger.yahoo.com 

[ns] please help me to simulate attacks on the Ad-hoc networks

2006-01-11 Thread Ashutosh Srivastava



Note: forwarded message attached.



Send instant messages to your online friends http://in.messenger.yahoo.com 

[ns] please help me to simulate attacks on the Ad-hoc networks

2006-01-11 Thread Ashutosh Srivastava

  

Note: forwarded message attached.


Send instant messages to your online friends http://in.messenger.yahoo.com 

[ns] please help me to simulate attacks on the Ad-hoc networks

2006-01-11 Thread Ashutosh Srivastava



Note: forwarded message attached.



Send instant messages to your online friends http://in.messenger.yahoo.com 

Re: [ns] Please help me I want tio monitor queue size on lan

2009-06-11 Thread Prince Kaweta

Hi all,

I am trying to measure the average queue delays over all the nodes in
an ethernet setup under ns. Since the ethernet setup is not a typical
link
to link setup but a shared medium one, how should I be measuring the
queue delays ?

thanks for any help,

Prince


[ns] Please help me to implement Multipath Source Routing (MSR)Protocol in NS2

2012-04-08 Thread Khushboo Jain

 hello,

I want to implement a new protocol Multipath Source Routing (MSR) is an
extension of DSR (Dynamic Source Routing) that incorporates the multipath
mechanism into DSR. MSR is an adaptive routing for ad hoc networks. It
considers the two fundamental issues in its design. MSR may adapt to
topology changes by retaining the route discovery and route maintenance
mechanism of DSR. In addition, MSR employs a probing-based load-balancing
mechanism.



Kindly send me the C++ source code of MSR protocol and the procedure to add
this protocol in NS2 for implementation.


Thank You


[ns] please help me to simulate these attacks on the Ad-hoc networks

2006-01-10 Thread Ashutosh Srivastava



   Dear all ,  
  For a project I  need immediate help . 
 Actually I have to simulate some attacks(on ns-2
)possible in the Ad-hoc networks:  
 1) sink-hole 
 2) worm-hole 
 3) Sybil attack 
 4) Rushing attack 
 5) Denial-of-Service and Flooding 
 6) Black Hole
   What these terms mean , for this
purpose
 I am attaching a document containing basic  terms and

 definitions .Please , it would be very kind of you if
 you can send me the simulation scripts for any of
above (on ns-2) Also , let me know if there is any
software to run ns-2 on Windows XP
I am unable to simulate these attacks.
I shall be very obliged if you will help me out
 .Also , I am attaching a document
 regarding the way I want the output statistics ,
 this paper contains information about the Denial of
 Service attacks.
 Desperately awaiting your kind
reply.
  With best
regards.
   
 Ashutosh Srivastava
 


Send instant messages to your online friends http://in.messenger.yahoo.com 

[ns] Please help me to use the PCF NS2 code given by Anders Lindgren

2007-03-05 Thread taraka praveen

Hi sir/madam,
   
  I have to simulate NS2 code for 802.11 MAC PCF .
  I downloaded code from this site 
  http://www.sm.luth.se/%7Edugdale/index/software.shtml
  and tried to patch it to ns-2.1b8 .But its not at all patching to NS .I have 
followed the same procedure given in the READ file.
   
  Could you please explain how to simulate that code given by Anders 
Lindgren.Please help me.
   
  Thanking you sir/madam,
  Thanks in advance,
   
  Regards,
  Tarakapraveen Uppalapati Goud


-
 Here’s a new way to find what you're looking for - Yahoo! Answers 


[ns] Please help me: A problem when I get Instance of Routing Agent AODV????

2007-07-11 Thread etudiante usthb

HELLO,

I want to reach a memeber variable in aodv to modify in Mac.
For this reason I get instance of Routing Agent AODV as explain in website

Veiled how I recovered this variable:
In  file mac_802-11.h I added:
#include "aodv/aodv.h"


In file mac_802-11.cc I added:
void Mac802_11::recvDATA(Packet *p)
{
.
AODV* aodvagent;
int i= index_;
char command[256];
sprintf(command, "foreach aodvagent [Agent/AODV info instances]\
{\nif { [$aodvagent id] == %d} {\nset i $aodvagent}}\nset t $i\n", i);

Tcl& tcl = Tcl::instance();
tcl.eval(command);
const char* ref = tcl.result();
aodvagent = (AODV*)tcl.lookup(ref);
.
}

but when I execute the script tcl, I found

ns: foreach aodvagent [Agent/AODV info instances]{
if { [$aodvagent id] == 5} {
set i $aodvagent}}
set t $i
: wrong # args: should be "foreach varList list ?varList list ...? command"
while executing
"foreach aodvagent [Agent/AODV info instances]{"

and the execution stopped.
Please Where is the problem.

Thank you in advance

_
Découvrez le Blog heroic Fantaisy d'Eragon! 
http://eragon-heroic-fantasy.spaces.live.com/



[ns] Please help me: A problem when I get Instance of Routing Agent AODV????

2007-07-11 Thread etudiante usthb

HELLO,

I want to reach a member variable of the class AODV and to modify it in  
MAC_802-11.
For this reason I get instance of Routing Agent AODV as explain in website

Veiled how I recovered this variable:
In  file mac_802-11.h I added:
#include "aodv/aodv.h"


In file mac_802-11.cc I added:
void Mac802_11::recvDATA(Packet *p)
{
.
AODV* aodvagent;
int i= index_;
char command[256];
sprintf(command, "foreach aodvagent [Agent/AODV info instances]\
{\nif { [$aodvagent id] == %d} {\nset i $aodvagent}}\nset t $i\n", i);

Tcl& tcl = Tcl::instance();
tcl.eval(command);
const char* ref = tcl.result();
aodvagent = (AODV*)tcl.lookup(ref);
.
}

but when I execute the script tcl, I found

ns: foreach aodvagent [Agent/AODV info instances]{
if { [$aodvagent id] == 5} {
set i $aodvagent}}
set t $i
: wrong # args: should be "foreach varList list ?varList list ...? command"
while executing
"foreach aodvagent [Agent/AODV info instances]{"

and the execution stopped.
Please Where is the problem.

Thank you in advance

_
Personnalisez votre Messenger avec Live.com 
http://www.windowslive.fr/livecom/



[ns] Please help me debug the error in wireless1.tcl and wireless.tcl (Error messages Attached)

2007-03-22 Thread Vijay Kumar c


Hi ns users,

I am facing problems when i try to exceute wireless.tcl,wireless1.tcl and
wireless2.tcl can anyone tell what the problem may be and provide a
solution.

I got the error message when i tried to excecute wireless.tcl found in

ns-2.30/tcl/ex/wireless.tcl directory

can anyone help debug or suggest a solution for the below problem

[EMAIL PROTECTED] hai]$ ns wireless.tcl*

*couldn't read file "../lib/ns-bsnode.tcl": no such file or directory*

*while executing*

*"source.orig ../lib/ns-bsnode.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 ../lib/ns-bsnode.tcl"*

*(file "wireless.tcl" line 191)*

Plz refer the attachment so that u can go through the error messages and
suggest some solution as to how to debug the problem
.
Your Comments and suggestions are most welome

Thanks and Reg:
Vijay

I got the error message when i tried to excecute wireless.tcl found in 
ns-2.30/tcl/ex/wireless.tcl directory  
can anyone help debug or suggest a solution for the below problem

[EMAIL PROTECTED] hai]$ ns wireless.tcl
couldn't read file "../lib/ns-bsnode.tcl": no such file or directory
while executing
"source.orig ../lib/ns-bsnode.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 ../lib/ns-bsnode.tcl"
(file "wireless.tcl" line 191)
I got the error message when i tried to excecute wireless1.tcl found in 
wireless1.tcl from Marc Greis' tutorial   
can anyone help debug or suggest a solution for the below problem

[EMAIL PROTECTED] ns-2.30]$ ns wireless1.tcl
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
couldn't read file "../mobility/scene/cbr-3-test": no such file or directory
while executing
"source.orig ../mobility/scene/cbr-3-test"
("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 $val(cp)"
(file "wireless1.tcl" line 121)
I got the error message when i tried to excecute wireless2.tcl found in 
wireless2.tcl from Marc Greis' tutorial   
can anyone help debug or suggest a solution for the below problem

[EMAIL PROTECTED] ns-2.30]$ ns wireless2.tcl
num_nodes is set 4
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
*** NOTE: no connection pattern specified.
Loading scenario file...
couldn't read file "../mobility/scene/scen-3-test": no such file or directory
while executing
"source.orig ../mobility/scene/scen-3-test"
("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 $opt(sc)"
invoked from within
"if { $opt(sc) == "" } {
puts "*** NOTE: no scenario file specified."
set opt(sc) "none"
} else {
puts "Loading scenario file..."
source $op..."
(file "wireless2.tcl" line 183)


[ns] Please, help is needed on specifying the RXThreshold when using the Ricean fading model

2008-04-04 Thread Gabrial Monty

Dear all,
   
  Please have anybody used the Ricean fading model in wireless simulation? is 
so, how you have calculated both the recieve threshold and the carrier sense 
threshold to determine the transmit range? is it correct to use the threshold.o 
utility in ns-2 with TwoRayGround as the propagation option since it the long 
scale fading used with the Ricean? please answer me, I am waiting any hint from 
you.
   
  thanks alot,
   
  gaby

   
-
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.


[ns] Please, help is needed on specifying the RXThreshold when using the Ricean fading model

2008-04-04 Thread Gabrial Monty

Dear all,
   
  Please have anybody used the Ricean fading model in wireless simulation? is 
so, how you have calculated both the recieve threshold and the carrier sense 
threshold to determine the transmit range? is it correct to use the threshold.o 
utility in ns-2 with TwoRayGround as the propagation option since it the long 
scale fading used with the Ricean? please answer me, I am waiting any hint from 
you.
   
  thanks alot,
   
  gaby

   
-
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.


[ns] Please Help - wireless nodes - packets dropping problem when more than one agent is attached

2009-03-11 Thread chekhov_neo


Hi,

I'm new to ns2. I've been trying to simulate a wireless scenario in which a
mobile node sends data to another mobile node. I attached two udp agents
with node0 with cbr traffic for both of them. Then i attached two null
agents to node1 to receive the data. Both the agents are started at the same
time and made to run simultaneously. While I do so most of the packets get
dropped. Is there any problem if i attach two agents to a wireless node and
make them work at the same time? 

The following is my tcl code:

# ==
# Define options
# ==
set val(chan)   Channel/WirelessChannel;# channel type
set val(prop)   Propagation/TwoRayGround   ;# radio-propagation
model
set val(netif)  Phy/WirelessPhy;# network interface type
set val(mac)Mac/802_11 ;# MAC type
set val(ifq)Queue/DropTail/PriQueue;# interface queue type
set val(ll) LL ;# link layer type
set val(ant)Antenna/OmniAntenna;# antenna model
set val(ifqlen) 50 ;# max packet in ifq
set val(nn) 2  ;# number of mobilenodes
set val(rp) DSR;# routing protocol
set val(x)  300 
   ;# X dimension of the topography in meters
set val(y)  300 
   ;# Y dimension of the topography in meters   
# =
# Main Program
# ==

set ns [new Simulator]

$ns use-newtrace

set tf [open out.tr w]
$ns trace-all $tf
set nf [open out.nam w]
$ns namtrace-all-wireless $nf $val(x) $val(y)

set topo [new Topography]
$topo load_flatgrid $val(x) $val(y)

create-god $val(nn)

# 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 ON \
-movementTrace ON   

set n0 [$ns node]
set n1 [$ns node]

$n0 set X_ 100.0
$n0 set Y_ 100.0
$n0 set Z_ 0.0

$n1 set X_ 200.0
$n1 set Y_ 100.0
$n1 set Z_ 0.0

$ns at 0.1 "$n0 setdest 50.0 100.0 0.5"
$ns at 0.1 "$n1 setdest 150.0 100.0 0.5"

set udp0 [new Agent/UDP]
$ns attach-agent $n0 $udp0
set cbr0 [new Application/Traffic/CBR]
$cbr0 set packetSize_ 500
$cbr0 set interval .005
$cbr0 attach-agent $udp0

set udp1 [new Agent/UDP]
$ns attach-agent $n0 $udp1 
set cbr1 [new Application/Traffic/CBR]
$cbr1 set packetSize_ 500
$cbr1 set interval .005
$cbr1 attach-agent $udp1

set null0 [new Agent/Null]
$ns attach-agent $n1 $null0

set null1 [new Agent/Null]
$ns attach-agent $n1 $null1

$ns connect $udp0 $null0
$ns connect $udp1 $null1

$ns at 0.1 "$cbr0 start"
$ns at 0.1 "$cbr1 start"

$ns at 4.5 "$cbr0 stop"
$ns at 4.5 "$cbr1 stop"

$ns at 5.0 "finish"

proc finish {} {
global ns tf nf
$ns flush-trace
close $tf
close $nf
exec nam out.nam &
exit 0
}

$ns run
---

Please help.

Regards,
arun chekhov
-- 
View this message in context: 
http://www.nabble.com/Please-Help---wireless-nodes---packets-dropping-problem-when-more-than-one-agent-is-attached-tp22453839p22453839.html
Sent from the ns-users mailing list archive at Nabble.com.



  1   2   >