[ns] How to make routing agent which use SRNode

2008-03-23 Thread Janský Václav

Hi,


I have implemented new routing agent. But it works only with
MobileNode. I need to get some information from data packets received
at the destination node. But these packets are delivered directly to
its data sinks, so my routing agent can't get the information. I was
serching for a solution, and I have found I should use an SRNode, so
my routing agent will be the first agent to handle every single packet.


And here is my question. What changes in which files should I do to be
able to use a SRNode with my routing agent?


Changes to use it with MobileNode I have found in a tutorial
Implementing a New Manet Unicast Routing Protocol in NS2 by Francisco
J. Ros and Pedro M. Ruiz. But I don't know how to use it with SRNode.
It looks pretty complicated to me. :(


Thanks very much if someone of you can help me!

Vasek




[ns] recv in aodvIn-Reply-To=

2008-03-23 Thread Janský Václav

Hi,

it seems this is pretty similar to my problem. Check this:

http://mailman.isi.edu/pipermail/ns-users/2008-March/062562.html


If you figure out how to use SRNode or find some other solution of  
your problem, please let me know.


Vasek



[ns] installation problem

2008-03-23 Thread mohamed saad

salam alikom

gazak allah khiran


can you help me how to solve this problem

  [EMAIL PROTECTED] otcl-1.13]# ls
 CHANGES.html   config.sub*   install-sh   otclAppInit.c  README.html
 conf/  configure*lib/ otcl.c VERSION
 config.guess*  configure.in  Makefile.in  otcl.h
 config.log doc/  makefile.vc  otkAppInit.c
 [EMAIL PROTECTED] otcl-1.13]# ./configure
 No .configure file found in current directory
 Continuing with default options...
 checking build system type... i686-pc-linux-gnu
 checking host system type... i686-pc-linux-gnu
 checking target system type... i686-pc-linux-gnu
 checking for gcc... gcc
 checking for C compiler default output file name... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... no
 checking for suffix of executables...
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ANSI C... none needed
 checking for g++... g++
 checking whether we are using the GNU C++ compiler... yes
 checking whether g++ accepts -g... yes
 checking how to run the C preprocessor... gcc -E
 checking for egrep... grep -E
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking for string.h... (cached) yes
 checking for main in -lXbsd... no
 checking for socket in -lsocket... no
 checking for gethostbyname in -lnsl... yes
 checking for dcgettext in -lintl... no
 checking for getnodebyname in -ldnet_stub... no
 checking that g++ can handle -O2... no
 checking standard STL is available... no
 checking for tcl.h... -I/usr/local/include
 checking for tclInt.h... no
 checking for libtcl8.4... -L/usr/local/lib -ltcl8.4
 checking for init.tcl... /usr/lib/tcl8.4
 checking for http.tcl... /usr/lib/tcl8.4/http2.4
 checking Tcl http.tcl library... yes
 checking for tclsh8.4.14... no
 checking for tclsh8.4... /usr/bin/tclsh8.4
 configure: error: Installation of tcl seems incomplete or can't be found 
automatically.
 Please correct the problem by telling configure where tcl is
 using the argument --with-tcl=/path/to/package
 (perhaps after installing it),
 or the package is not required, disable it with --with-tcl=no.
 [EMAIL PROTECTED] otcl-1.13]# ./configure 
/home/mahmoud/ns2/tcl8.4.17/unix/dltest
 configure: WARNING: you should use --build, --host, --target
 configure: WARNING: invalid host type: /home/mahmoud/ns2/tcl8.4.17/unix/dltest
 No .configure file found in current directory
 Continuing with default options...
 checking build system type... Invalid configuration 
`/home/mahmoud/ns2/tcl8.4.17/unix/dltest': machine 
`/home/mahmoud/ns2/tcl8.4.17/unix/dltest' not recognized
 configure: error: /bin/sh ./config.sub /home/mahmoud/ns2/tcl8.4.17/unix/dltest 
failed
 [EMAIL PROTECTED] otcl-1.13]# ./config.sub
 config.sub: missing argument
 Try `config.sub --help' for more information.
 [EMAIL PROTECTED] otcl-1.13]# ./config.sub /home/mahmoud/ns2/tcl8.4.17/unix
 Invalid configuration `/home/mahmoud/ns2/tcl8.4.17/unix': machine 
`/home/mahmoud/ns2/tcl8.4.17/unix' not recognized
 [EMAIL PROTECTED] otcl-1.13]# ./config.sub /home/mahmoud/ns2/tcl8.4.17
 Invalid configuration `/home/mahmoud/ns2/tcl8.4.17': machine 
`/home/mahmoud/ns2/tcl8.4.17' not recognized
 [EMAIL PROTECTED] otcl-1.13]#
 [EMAIL PROTECTED] otcl-1.13]# ./config /home/mahmoud/ns2/tcl8.4.17
 bash: ./config: No such file or directory
 [EMAIL PROTECTED] otcl-1.13]# ./configure /home/mahmoud/ns2/tcl8.4.17
 configure: WARNING: you should use --build, --host, --target
 configure: WARNING: invalid host type: /home/mahmoud/ns2/tcl8.4.17
 No .configure file found in current directory
 Continuing with default options...
 checking build system type... Invalid configuration 
`/home/mahmoud/ns2/tcl8.4.17': machine `/home/mahmoud/ns2/tcl8.4.17' not 
recognized
 configure: error: /bin/sh ./config.sub /home/mahmoud/ns2/tcl8.4.17 failed
 [EMAIL PROTECTED] otcl-1.13]#
  

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.


[ns] ns-2 debug help

2008-03-23 Thread Vinh Pham

Hi friends.

I've tried to follow the guide of Pedro Vale Estrela to install the necessary 
sw for debugging in ns-2. The guide is in this page:

http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html


I encountered problems during step 2, i.e. add TK support.
The patches available are intended for ns-2.28 but currently, I have ns-2.31 
installed on my computer. Anyway, this is the error message that appears when I 
try to run the make command:


common/tkAppInit.cc:57:27: error: bitmap/play.xbm: No such file or directory
common/tkAppInit.cc:58:27: error: bitmap/stop.xbm: No such file or directory
common/tkAppInit.cc:59:29: error: bitmap/rewind.xbm: No such file or directory
common/tkAppInit.cc:60:25: error: bitmap/ff.xbm: No such file or directory
common/tkAppInit.cc: In function 'void loadbitmaps(Tcl_Interp*)':
common/tkAppInit.cc:65: error: 'play_bits' was not declared in this scope
common/tkAppInit.cc:65: error: 'play_width' was not declared in this scope
common/tkAppInit.cc:65: error: 'play_height' was not declared in this scope
common/tkAppInit.cc:67: error: 'stop_bits' was not declared in this scope
common/tkAppInit.cc:67: error: 'stop_width' was not declared in this scope
common/tkAppInit.cc:67: error: 'stop_height' was not declared in this scope
common/tkAppInit.cc:70: error: 'rewind_bits' was not declared in this scope
common/tkAppInit.cc:70: error: 'rewind_width' was not declared in this scope
common/tkAppInit.cc:70: error: 'rewind_height' was not declared in this scope
common/tkAppInit.cc:72: error: 'ff_bits' was not declared in this scope
common/tkAppInit.cc:72: error: 'ff_width' was not declared in this scope
common/tkAppInit.cc:72: error: 'ff_height' was not declared in this scope
make: *** [common/tkAppInit.o] Error 1

Can someone please help? What do I need in order to fix this?

Regards

Vinh Pham



[ns] Forced broadcast

2008-03-23 Thread Jairo Chapela Martí­nez

Hello.

I want to simulate an Ad Hoc network with AODV routing algorithm and I 
want to 'hack' some packets modifying their mac destination address. My 
question is:
How can I force a packet to be broadcasted in 802.11?

Thanks.



[ns] throughput in errors

2008-03-23 Thread Basim Javed

hi all

I am trying to get the lowered throughput of WLAN at MAC level, under
error model with rate set to 10%, and unit is bit.. I see no impact of
errors on throughput...
plz guide urgently
best
b



[ns] How to connect two LANs

2008-03-23 Thread Eduardo J. Ortega U.

Hi all:

I am attempting to create and connect 2 LANs, and connect them via two
routers. So far I have read lantest.tcl under examples, but only shows
how to create one LAN, and no indication on how to connect it to
another. Furthermore, it requires an extra node not belonging to the
LAN ($node0 is called) that must be connected to a LAN node.
Otherwise, the topology in nam looks bad. Any pointers on how to
achieve this?

Thanks,

-- 
Eduardo J. Ortega U.