[ns] Problem with iNSpect

2006-03-13 Thread A Anupama

Hi
 I have installed iNSpect on Suse linux 1.10.0.  When I run the demo, it
is giving the following error and shows the empty screen.

No background image found

I tried to give the image path like
/opt/kde3/apps/kdm/pics/users/purple.png  but of no use... How to solve it.

One more thing is, while installing iNSpect it is asking for glut.h file and
it is not present in my GL folder. So, I downloaded the attached file and
kept it in the corresponding GL folder. Is this file is not what we expected
and the error is due to that ? If, it is the case please attach the correct
glut.h file and my GL folder contains gl.h and glu.h.

Please help.

Thanks & Regards
Anupama


Re: [ns] Problem runing wireless examples

2006-03-13 Thread Saurabh Sinha

This is just a warning ! And you can ignore it, and look for your tarce
files (simulation results) in the .tr files.

Just ignore this line :
"warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl"

On 3/14/06, Mohammed Abu-Khadra <[EMAIL PROTECTED]> wrote:
>
>
> hi all,
> first of all am using Cygwin & ns-2.29 all-in-one .. am trying to run the
> wireless examples associated in this link "simple-wireless.tcl"
>
> http://www.isi.edu/nsnam/ns/tutorial/nsscript5.html
>
> but there is an error msg appears >>
>
> $ns simple-wireless.tcl
>
> num_nodes is set 2
> warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
> INITIALIZE THE LIST xListHead
> Starting Simulation...
> channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
> highestAntennaZ_ = 1.5,  distCST_ = 550.0
> SORTING LISTS ...DONE!
> NS EXITING...
>
> so .. plz i need help .. i read a previous reply it said that i have to
> check the path of traffic .. but what path i cant seem to nderstand it !!!
> any1 plz i need help :)
>
> thanx in advance
>



--
Saurabh Sinha
Department of Computer Science,
University of Delhi.


[ns] Capture Bug in ns-2

2006-03-13 Thread Matt Miller

Let's say we have S1 sending to R1 and S2 sending to R2.  S1 and S2
are outside of each other's carrier sense (CS) range.  R1 and R2 are
obviously both within the receive (RX) range of S1 and S2,
respectively.  R1 is within the CS range for S2 (but outside S2's RX
range).  R2 is outside S1's CS range.  Note the asymmetry of the
topology means that R1 will carrier sense S2's transmissions, but R2
will not carrier sense S1's transmissions.

1. S1 starts sending an RTS to R1.

2. Before S1's RTS finishes, S2 starts sending an RTS to R2.  In ns-2,
this causes the capture function in mac-802_11.cc to be called at node
R1.  The effect is that R1 will set its NAV for EIFS plus the txtime
of S2's RTS.

3. When S1's RTS finishes, R1 cannot send a CTS since its NAV was just
set in the capture function.

4. Every time that S1 trys to retransmit an RTS during S2's data
transmission, R1 is unable to reply with a CTS.  This can cause S1's
backoff window to get relativley large.

5. When S2 finishes sending and tries to transmit another packet,
there's a relatively decent chance that it will send its RTS and start
sending the data packet before S1 can send an RTS (S2's backoff is
relatively small and S1's is relatively large).  This causes Step 4 to
repeat and S1 may reach its RTS retry threshold and consider the link
dead.

In a correct implementation, I think that R1 should be able to send a
CTS in response to S1's first RTS and S1's transmission can proceed in
parallel with S2's transmission.

It seems this was mentioned over two years ago on the list, but the
bug still exists in the most recent CVS code:

http://mailman.isi.edu/pipermail/ns-users/2003-December/038043.html


-Matt



[ns] Problem runing wireless examples

2006-03-13 Thread Mohammed Abu-Khadra

hi all,
first of all am using Cygwin & ns-2.29 all-in-one .. am trying to run the
wireless examples associated in this link "simple-wireless.tcl"

http://www.isi.edu/nsnam/ns/tutorial/nsscript5.html

but there is an error msg appears >>

$ns simple-wireless.tcl

num_nodes is set 2
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...

so .. plz i need help .. i read a previous reply it said that i have to
check the path of traffic .. but what path i cant seem to nderstand it !!!
any1 plz i need help :)

thanx in advance


[ns] Problem in installing NS-allinone-2.27 in linux

2006-03-13 Thread Nagender Annem

 HI
when I try to install ns-allinone-2.27 in *linux*, I am getting the
following error,
I did had the patch file ns227-gcc34.patch

* Build OTcl-1.8

No .configure file found in current directory
Continuing with default options...
checking build system type... Invalid configuration
`x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
configure: error: /bin/sh ./config.sub x86_64-unknown-linux-gnu failed.
otcl-1.8 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.


Please , Can any one help me out,I got stuck here for the past 5 days.

Thanks and Regards,
Nagender Reddy Annem


[ns] Help me in trace files

2006-03-13 Thread Mohammed Fawaz Kamarudin




Re: [ns] How to remove -02 optimization

2006-03-13 Thread Pedro Vale Estrela

Check 
./configure --help

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of MuiS
> Sent: segunda-feira, 13 de Março de 2006 14:40
> To: ns-users@ISI.EDU
> Subject: [ns] How to remove -02 optimization
> 
> 
> hi..
> 
> Is someone know how to remove the -02 optimization
> from the makefile? Any helps are appreciated..
> 
> thanks
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com




[ns] urgent help in receiver window advertisement in TCP

2006-03-13 Thread amrutha ravichandran

Hi,
I find that the advertised receiver window size is found to be a constant..
However i want to change the receiver window size dynamically..
is this possible??
Pls help..its very urgent..

Thanks,
Amrutha.


[ns] Back-off algo

2006-03-13 Thread saurabh mehta

hi thr,
 
have any one specially implemented backoff algo? i
would like to have the code or sample file ? Thanks in
advance.

Thanks
Saurabh







__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



[ns] WFQ floating point exception

2006-03-13 Thread Adnan Huremovic

Hello,

Running my WFQ simulation returns just "Floating point exception". I tried 
running wfq-1.2.3/example.tcl, but it returns the same. I cannot figure out 
what is wrong, please help

Thanks, Adnan Huremovic


[ns] How to remove -02 optimization

2006-03-13 Thread MuiS

hi..

Is someone know how to remove the -02 optimization
from the makefile? Any helps are appreciated..

thanks

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Re: [ns] new network protocol

2006-03-13 Thread heyuyou

i think you possiably make the dir wrong,so the compiled object cann't been 
found,and i am interested in your question,if you have succeeded in completing 
it ,thanks for your give me 
an answer.


>Hello ns- users:
>I'm making a new protocol. In order to know how I can do it, I make the same 
>ping protocol but  with other name. I create a new folder in ns folder. 
>Inside I create two files (zigbee.h and zigbee.cc) with the content of the 
>ping files. Then I modify the follow files: packet.h , ns-packet.tcl , 
>ns-default.tcl , ns-lib.tcl and Makefile. Later I do 'make'. The problem is 
>that when I run anyone tcl example that not use this new protocol, I obtain 
>the error  :
>
>/ns-allinone-2.29/ns-2.29/tcl/ex/wpan $ ns demo1.tcl
>ns:
>[code omitted because of length]
>: invalid command name "Agent/zigbee"
>while executing
>"Agent/zigbee set packetSize_ 64"
>
>I don't understand it.
>Please, help me. Thank very much.
>
>_
>�Est�s pensando en cambiar de coche? Todas los modelos de serie y extras en 
>MSN Motor. http://motor.msn.es/researchcentre/

= = = = = = = = = = = = = = = = = = =



[ns] [bug] problems with running script

2006-03-13 Thread Nurzat

[Bug Report]

-
Category:  Installation Failure
Package:   ns ns-allinone-2.29
OS:Red Hat 9.0
Environment Variables:
LD_LIBRARY_PATH=
TCL_LIBRARY=
TK_LIBRARY=


-
Description:

Description of Problem:

I was successful in installation, but I can't run the example script in 
tutorial example1.tcl. When i tried to run, it gives following error like: 
warning: using backward compatiblity mode error when calling class 
oldSim:example.tcl. please if anybody can help?


How Easily Reproducible:
(e.g. every time, intermittent, once only, etc.)
every time

Steps to Reproduce:
(describe the minimal set of steps necessary to trigger the bug)
1. 
2. 
3. 


Actual Results:
(describe what the application did after performing the above steps)
running the tcl script

Expected Results:
(describe what the application should have done, were the bug not present)


Additional Information:
(the following infomation is helpful to debug:
 1. simulation script, detailed output files, packet trace
 2. patch file if you modify some source code
 3. a backtrace from gdb if you get a segment fault
 If they are big files, PLEASE put them in your web space and
 include the URL here.)




Re: [ns] ns2 debugging

2006-03-13 Thread Pedro Vale Estrela


http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_debugging.html


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of nalinaksh gaur
> Sent: segunda-feira, 13 de Março de 2006 11:18
> To: ns-users@ISI.EDU
> Subject: [ns] ns2 debugging
> 
> 
> Hi all,
> 
> I am trying to do a OBS simulation in ns but I found that the
> implemented protocol has got some bug.
> 
> I have used 'gdb' in the past to debug c/c++ programs.I tried to use
> it for ns2 debugging also.It works but I am confused as I don't know
> whether gdb alone can do all the debugging in ns2, as ns2 is built
> using both c++ and tcl.If tcl in ns2 is used only for configuration
> purposes, than gdb alone should be sufficient.Otherwise have to use
> tcl debugger also.
> 
> Please clarify!
> 
> And how do I debug simultaneously in c++ and tcl?
> 
> Thanks!




Re: [ns] problem executing wireless examples[uegent]

2006-03-13 Thread Sasan Sahraei

Its not a bug, your path to the script files needs to be modified, make
sure your script is pointing to the correct location of the traffic
pattern or movement scenario files. you can also modify the path and use
the path exclusively.

Sasan

>
>   
> hi all
> i m facing following type of errors and warnigs when executing
> wireless.tcl files..
>
> [EMAIL PROTECTED] examples]# ns simple-wireless.tcl
> num_nodes is set 2
> warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
> INITIALIZE THE LIST xListHead
> Starting Simulation...
> channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
> highestAntennaZ_ = 1.5,  distCST_ = 550.0
> SORTING LISTS ...DONE!
> NS EXITING...
>
> [EMAIL PROTECTED] examples]# 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)
>
>
> [EMAIL PROTECTED] examples]# 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)
>
>
>
> [EMAIL PROTECTED] examples]# ns wireless3.tcl
> num_nodes is set 3
> warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
> INITIALIZE THE LIST xListHead
> *** NOTE: no connection pattern specified.
> *** NOTE: no scenario file specified.
> Starting Simulation...
> channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
> highestAntennaZ_ = 1.5,  distCST_ = 550.0
> SORTING LISTS ...DONE!
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> warning: Route to base_stn not known: dropping pkt
> NS EXITING...
>
> -
>
> is it a bug? how can i reslove this problem
>
> plz help me.
>
> thanking you for attention.
>
> regards
> deepak
>




[ns] new network protocol

2006-03-13 Thread juan manuel gomez garcia

Hello ns- users:
I'm making a new protocol. In order to know how I can do it, I make the same 
ping protocol but  with other name. I create a new folder in ns folder. 
Inside I create two files (zigbee.h and zigbee.cc) with the content of the 
ping files. Then I modify the follow files: packet.h , ns-packet.tcl , 
ns-default.tcl , ns-lib.tcl and Makefile. Later I do 'make'. The problem is 
that when I run anyone tcl example that not use this new protocol, I obtain 
the error  :

/ns-allinone-2.29/ns-2.29/tcl/ex/wpan $ ns demo1.tcl
ns:
[code omitted because of length]
: invalid command name "Agent/zigbee"
while executing
"Agent/zigbee set packetSize_ 64"

I don't understand it.
Please, help me. Thank very much.

_
¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en 
MSN Motor. http://motor.msn.es/researchcentre/



[ns] new network protocol

2006-03-13 Thread juan manuel gomez garcia

Hello ns- users:
I'm making a new protocol. In order to know how I can do it, I make the same 
ping protocol but  with other name. I create a new folder in ns folder. 
Inside I create two files (zigbee.h and zigbee.cc) with the content of the 
ping files. Then I modify the follow files: packet.h , ns-packet.tcl , 
ns-default.tcl , ns-lib.tcl and Makefile. Later I do 'make'. The problem is 
that when I run anyone tcl example that not use this new protocol, I obtain 
the error  :

/ns-allinone-2.29/ns-2.29/tcl/ex/wpan $ ns demo1.tcl
ns:
[code omitted because of length]
: invalid command name "Agent/zigbee"
while executing
"Agent/zigbee set packetSize_ 64"

I don't understand it.
Please, help me. Thank very much.

_
Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor 
& Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349



[ns] new network protocol

2006-03-13 Thread juan manuel gomez garcia

Hello ns- users:
I'm making a new protocol. In order to know how I can do it, I make the same 
ping protocol but  with other name. I create a new folder in ns folder. 
Inside I create two files (zigbee.h and zigbee.cc) with the content of the 
ping files. Then I modify the follow files: packet.h , ns-packet.tcl , 
ns-default.tcl , ns-lib.tcl and Makefile. Later I do 'make'. The problem is 
that when I run anyone tcl example that not use this new protocol, I obtain 
the error  :

/ns-allinone-2.29/ns-2.29/tcl/ex/wpan $ ns demo1.tcl
ns:
[code omitted because of length]
: invalid command name "Agent/zigbee"
while executing
"Agent/zigbee set packetSize_ 64"

I don't understand it.
Please, help me. Thank very much.

_
Descarga gratis la Barra de Herramientas de MSN 
http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH



[ns] new network protocol

2006-03-13 Thread juan manuel gomez garcia

Hello ns- users:
I'm making a new protocol. In order to know how I can do it, I make the same 
ping protocol but  with other name. I create a new folder in ns folder. 
Inside I create two files (zigbee.h and zigbee.cc) with the content of the 
ping files. Then I modify the follow files: packet.h , ns-packet.tcl , 
ns-default.tcl , ns-lib.tcl and Makefile. Later I do 'make'. The problem is 
that when I run anyone tcl example that not use this new protocol, I obtain 
the error  :

/ns-allinone-2.29/ns-2.29/tcl/ex/wpan $ ns demo1.tcl
ns:
[code omitted because of length]
: invalid command name "Agent/zigbee"
while executing
"Agent/zigbee set packetSize_ 64"

I don't understand it.
Please, help me. Thank very much.

_
Moda para esta temporada. Ponte al día de todas las tendencias. 
http://www.msn.es/Mujer/moda/default.asp



[ns] ns2 debugging

2006-03-13 Thread nalinaksh gaur

Hi all,

I am trying to do a OBS simulation in ns but I found that the
implemented protocol has got some bug.

I have used 'gdb' in the past to debug c/c++ programs.I tried to use
it for ns2 debugging also.It works but I am confused as I don't know
whether gdb alone can do all the debugging in ns2, as ns2 is built
using both c++ and tcl.If tcl in ns2 is used only for configuration
purposes, than gdb alone should be sufficient.Otherwise have to use
tcl debugger also.

Please clarify!

And how do I debug simultaneously in c++ and tcl?

Thanks!



[ns] regarding ns2 debugging

2006-03-13 Thread nalinaksh gaur

Hi all,

I need some clarification regarding debugging in ns2...

I have used 'gdb' in the past to debug c/c++ programs.I tried to use
it for ns2 debugging also.It works but I am confused as I don't know
whether gdb alone can do all the debugging in ns2, as ns2 is built
using both c++ and tcl.If tcl in ns2 is used only for configuration
purposes, than gdb alone should be sufficient.Otherwise have to use
tcl debugger also.

Please clarify!

And how do I debug simultaneously in c++ and tcl?

Thanks!



Re: [ns] Help: Setdest Command

2006-03-13 Thread Sasan Sahraei

one thing you can do is to delete any (object files) .o files from setdest
directory and run make again. this will definitly generate the binary for
you.


>
> Hi,
>
>  I would like to ask regarding "setdest" command.  In the tutorial it says
> that:
>
>  In order to compile the revised setdest.cc do the following:
>   1. Go to ns directory and run "configure" (you probably have done that
> already while building ns). This creates a makefile for setdest.
> 2.Go to indep-utils/cmu-scen-gen/setdest. Run "make" , which first creates
> a stand-alone object file for ~ns/rng.cc (the stand-alone version doesnot
> use Tclcl libs) and then creates the executable setdest.
> 3. Run setdest with arguments as shown below:
>
>   So, I have do the first command as below:
>   [EMAIL PROTECTED] ns]# configure
>   then the error would be:
>   bash: configure: command not found
>
>   When I run the second command:
>   [EMAIL PROTECTED] setdest]# make
>   then the error would be:
>   make: Nothing to be done for 'all"
>
>   When I run the third command:
>   ./setdest -n 50 -p 0 -s 20.0 -t 100 -x 500 -y 500 > scen-50-test
>   then the error would be:
>   bash: ./setdest: No such file or directory
>
>
>  File setdest.cc is in setdest folder.  Inside the folder there is also
> Makefile, Makefile.in & rng.o file & others.
>
>  I did not sure whether for command 1 & 2, that is the correct way to do
> so.
>
>  I am using ns 2.26.  I use command ./ns  to run tcl script.
>
>  Hope anybody can help me.
>
>  Thank you & regards,
>
>  norlida
>
>
>
>
>
> -
> Brings words and photos together (easily) with
>  PhotoMail  - it's free and works with Yahoo! Mail.
>




Re: [ns] SIP patch

2006-03-13 Thread Alexander Sayenko

Hi

This  error means that NS-2 does not know anything at all about the 
Application/Traffic/SipUdp class. Indeed, I have looked through the code, there 
is no line that registers such a class. Buggy patch :-(

However, as I have understood from the implementation, the Agent/UDP/UDPSIP is 
responsible for carrying SIP messages, while Application/Traffic/SipUdp is just 
some class that generates traffic. Basically, you can attach any traffic type 
you need since the main functionaly is implemented in Agent/UDP/UDPSIP.

So, you can take a test script and use, for instance, CBR traffic type instead 
of Application/Traffic/SipUdp. Ideally, it would be nice if some of the 
developers clarify this problem.

Sincerely,
Alexander Sayenko (PhD)
Assistant
Telecommunication laboratory, MIT department
University of Jyvaskyla, Finland

  - Original Message - 
  From: Krzysztof Mendyk 
  To: Alexander Sayenko 
  Sent: Sunday, March 12, 2006 5:14 PM
  Subject: Re: [ns] SIP patch


  Hi

  Thank you very much for your help. I did everything you wrote me. I also had 
to add line

virtual void recv_msg_from_udp_(int nbytes, const char* msg=0){};to app.h.
  But when I try to run ns I have an error and I don't know what to do.

ns:[code omitted because of length]: invalid command name 
"Application/Traffic/SipUdp"while executing"Application/Traffic/SipUdp set 
burst_time_ 0   "I f you have t! ime and you know what I did wrong can 
you help me please?
  Thanks in advance.
  Chris

  Alexander Sayenko <[EMAIL PROTECTED]> wrote:
Hi

I have tried to apply this patch, there are indeed several problems that you
can solve easily and contribute a new patch for ns-2.29.

Failed hunks in common/packet.h:

Basically, everything you need in common/packet.h is PT_SIP (hunk #1m it
succeeded) and name_[PT_SIP] = "sip"; in class p_info (hunk #2, it has
failed). Remaining hunks are not necessary, they are just some garbage.

Failed hunks in Makefile.in:

Many hunks in Makefile.in has failed, but some of them are also garbage.
Just add a new line to the list of objects to compile
sip/sip_udp.o apps/udp_sip \

Failed hunks in trace/trace.cc:

It seems that the purpose of those modifications! is just to put more
information about each packet into the trace file. Nice, but test scripts
should run without those changes, unless they analyse the trace at the end
of simulation. Just remove hunks that relate to the trace.cc file

So, you can take the original patch, remove all the hunks that relate to
the common/packet.h, Makefile.in, and trace/trace.cc files, then make
manually changes in the common/packet.h and Makefile.in files as I have
explained above, try to compile and run. If something goes wrong, you can
contact me. Unfortunately, I have no time at the moment to do it :-(

Also, you may be interested in the SIP implementation that is in the
attachement. I have no idea whether it is a completely different
implementation or just an older version of SIP you are trying to install in
NS-2.29.

Good luck !

Sincerely,
Alexander Sayenko (PhD)
Assistant
Telecommunication laboratory, MIT department
University ! of Jyvaskyla, Finland


>
> Hi
> I download SIP patch from
http://www.tti.unipa.it/~fasciana/patch/patch-ns2_2.26sip-udp_v1.0 This
patch is for ns-2.26 and I use ns-2.29. I don't know why but I can't install
ns-2.26 on my computer. I use Mandriva Linux 2006.
>
> Does anyone know how to change this patch to be good for my ns-2.29. I
tried almost everything but I don't know how to add this patch.
>
> It is really important for me. Please help.
>
> Thanks in advance.
> Chris
>
>
>
> -
> Relax. Yahoo! Mail virus scanning helps detect nasty viruses!





--
  Relax. Yahoo! Mail virus scanning helps detect nasty viruses!


[ns] R: regarding promiscuous mode

2006-03-13 Thread Marco Fiore

Krithiga,

answers are inline.

Regards,

Marco Fiore

>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 12-mar-2006 1.24 PM
>A: 
, <[EMAIL PROTECTED]>, 
>Ogg: [ns] regarding promiscuous mode
>
>
>hi all,
> i am doing proj in mobile adhoc networks. i 
need to know some
>clarifications regarding mobile adhoc networks.
>
>1. we need to make use of promiscuous mode for our proj. (i.e) a node 
need
>to overhear the other  transmissions that are happening in its 
transmission
>range.. is it already implemented in NS2?
>If so, kindly 
let me know the inbuilt function that can be used for
>overhearing. 
Otherwise, how this overhearing concept can be implemented in
>NS2?

There's no promiscuous mode implementation in ns-2.
However, you can 
easily add such feature in 802.11.
In the file mac/mac-802_11.cc, look 
for the recv_timer()
function, look for the "Address Filtering" 
section: there
you can decide to pass the frame to the upper LL agent,
instead of discarding it.

>2. how can we determine the 2-hop 
neighbours of the node and maintain the
>list of the same??

Two ways: 
the easy, "bad" one is to make it via tcl (e.g. at each time step,
compute all inter-node distances and comunicate to each node the list
of neighbors), the more complex, "good" one is to do that implementing 
in
C++ some layer-3 mechanism which propagates the information on
neighbor nodes using actual packets (many examples of that in 
literature).
This second solution is preferable since it is more 
realistic (in the first case
you have a no-error, no-cost information 
exchange!). I think you could
loo for some existing C++ implementation 
and start your changes from there...



[ns] R: Help: Setdest Command

2006-03-13 Thread Marco Fiore

Norlida,

try "./configure" instead of "configure" and after 
configure&make, check
that a binary (executable) file "setdest" is 
created in the folder.

Regards,

Marco Fiore

>Messaggio 
originale
>Da: [EMAIL PROTECTED]
>Data: 13-mar-2006 7.07 AM
>A: 
>Ogg: [ns] Help:  Setdest Command
>
>
>Hi,
>   
> I would like to ask regarding "setdest" command.  In the tutorial it 
says that:
>   
> In order to compile the revised setdest.cc do the 
following: 
>  1. Go to ns directory and run "configure" (you probably 
have done that already while building ns). This creates a makefile for 
setdest. 
>2.Go to indep-utils/cmu-scen-gen/setdest. Run "make" , which 
first creates a stand-alone object file for ~ns/rng.cc (the stand-alone 
version doesnot use Tclcl libs) and then creates the executable 
setdest. 
>3. Run setdest with arguments as shown below: 
>   
>  So, I 
have do the first command as below:
>  [EMAIL PROTECTED] ns]# configure
>  then the error would be:
>  bash: configure: command not found
>   
>  When I run the second command:
>  [EMAIL PROTECTED] setdest]# make
>  
then the error would be:
>  make: Nothing to be done for 'all"
>   
>  
When I run the third command:
>  ./setdest -n 50 -p 0 -s 20.0 -t 100 -x 
500 -y 500 > scen-50-test
>  then the error would be:
>  bash: .
/setdest: No such file or directory
>   
>   
> File setdest.cc is in 
setdest folder.  Inside the folder there is also Makefile, Makefile.in 
& rng.o file & others.
>   
> I did not sure whether for command 1 & 2, 
that is the correct way to do so.  
>   
> I am using ns 2.26.  I use 
command ./ns  to run tcl script.
>   
> Hope anybody can 
help me.
>   
> Thank you & regards,
>   
> norlida
>
>  
>
>
>   
>-
>Brings words and photos together 
(easily) with
> PhotoMail  - it's free and works with Yahoo! Mail.
>




Re: [ns] Location aware protocols in NS

2006-03-13 Thread Hajer FERJANI

Hi,
To have current position of a node at agent level, you can do :


MobileNode* mnode_;

double x = 0.0,y = 0.0,z = 0.0;
mnode_->getLoc(&x, &y, &z);



You should have mnode_ referencing to a node. For example, in my case I pass
the node address to my agent in the tcl script and for this reason i defined
a new "node" command in the Command( ) method of the agent like this :

if(strcmp(argv[1], "node") == 0) {
mnode_ = (MobileNode*) TclObject::lookup(argv[2]);
if(mnode_ == 0)
return TCL_ERROR;
return TCL_OK;
}





then in my tcl script I create a node node_1 and my agent , then I do
$my_agent node $node_1



Hope this helps.

Bye.


On 3/10/06, Shibdas Bandyopadhyay <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>I am using ns-2.29 and currently implementating a new protocol which
> depends on the location information of the nodes. How can I get the
> location
> of the attached node from the agent code.  Even if I keep  the location
> information in the agent information ( say by keeping it in routing
> table),
> how to set the corresponding entries. I have made the variables accessible
> to the tcl script using bind function but how can I access the routing
> agent
> corresponding to a particular node? It would be better for me if I get the
> x-cordinates and y-coordinates of the grid topology assigned to the node
> from the routing agent.
>
>
> Thanks
> shibdas
>
> --
> ===
> Shibdas Bandyopadhyay
> Second Year Post graduate student,
> Department of Computer Science
> Indian Statistical Institute, Kolkata
>
> http://snipurl.com/shibdas
>


[ns] Getting help about simulating FDMA like Mac protocols in ns-2

2006-03-13 Thread ali chodari khosroshahi

Dear All.

I want to simulate multi-channel Mac protocol in the NS-2 (simulating FDMA
like Mac protocol). But I haven't any information about simulating this
protocol. How I can create multiple channel for a node. How I can divide
wireless bandwidth (frequency) into the multiple channel (frequency
division). How I can switching within channels. How I can read the sate of
these channels. And etc.

Best regards.
Ali Chodari Khosrowshahi.


Re: [ns] Can't set DISPLAY env. variable for NAM

2006-03-13 Thread Emre CAN

that did it, thank you, I'll be asking more questions :)

- Original Message - 
From: "Adrian Sai-wah Tam" <[EMAIL PROTECTED]>
To: "Emre CAN" <[EMAIL PROTECTED]>
Cc: 
Sent: Monday, March 13, 2006 4:51 AM
Subject: Re: [ns] Can't set DISPLAY env. variable for NAM


> Did you start your X?
> normally, you don't need to export DISPLAY manually if you have X, it
> should be exported automatically.
>
> Emre CAN wrote:
>
>>hi,
>>
>>I'm trying to start nam,
>>
>>I did "export DISPLAY=localhost:0" and then checked it with "echo 
>>$DISPLAY" it was ok, but I get the "couldn't connect to display 
>>"localhost:0" " message...
>>
>>please help.
>>
>>
>