Re: [ns] help ! for increase communication rage to 1600 m

2007-08-08 Thread Faisal Aslam

Read the section of transmission models in NS-2 manual. You should 
check which transmission model (e.g. FreeSpace, TwoRayGround, Shadowing) 
is in use. You should try to adjust the RXThreah_ using threshold.c as 
described in the NS manual.

regards,
Faisal

Phitsanu Eamsomboon wrote:
 My name is Phitsanu from Thailand , I use ns-2 for to do my research .
 May I trouble you for ask you some question , I try to increase Transmission
 rage is 1600 m by increase Pt but  It still can communicate in 500 m range ,


 How can I  increase transmission rage is 1600 m if I use TwoRayGrounf model.
 How can I calculate , Please recommend me 

   



[ns] Changing NS Unit disk model of radio range

2007-08-03 Thread Faisal Aslam

Hi,

I am using cmu extension to simulate a wireless-sensor protocol. I 
believe NS-2 only support unit disk transmission range model. However, 
unit disk model is not realistic. I wish to have model that has following
(1) Each node selects its transmission range (say c) using uniform 
distribution from say [a, b].
(2) Each node randomly selects few nodes near the border of circular 
transmission range to be out of range. It is because in practice 
transmission range is not exactly circular.

I need some pointers to start for example, which files I should target 
to change. I am not able to track so far the right peace of code dealing 
with transmission range of nodes in NS-2. Hence I will appreciate some 
guidance here.

I hope to have some quick replies.

best regards,
Faisal Aslam



Re: [ns] Problem installing NS-2

2007-04-14 Thread Faisal Aslam

Dear Manpreet,
Your cygwin installation is not complete. While installing cygwin you need
to install different thing for NS for example perl, X11 etc. They are not
installed when you just press defaults. I think in your case X11 or
someother similar component is missing. Read this
http://www.isi.edu/nsnam/ns/ns-cygwin.html and install everything required
in cygwin before installing Ns2. Otherwise it is easier to use unix
machine.

Faisal Aslam


 Dear all,
 I am trying to install ns-allinone-2.1b9a under cygwin
 I have  downloaded ns-allinone-2.1b9a from
 http://www.isi.edu/nsnam/dist/ns-allinone-2.1b9a-gcc32.tar.gz
 i have fully installed cygwin on my system
 But while installing ns-allinone-2.1b9a using ./install command
 ,it gives the following error when it comes to Bilding
 Otcl-1.0a8

 checking for libtcl8.3... -L../lib -ltcl8.3
 checking for init.tcl... ../lib/tcl8.3
 checking for tclsh8.3.2... no
 checking for tclsh8.3... ../bin/tclsh8.3
 checking for tk.h... -I../include
 checking for libtk8.3... -L../lib -ltk8.3
 checking for tk.tcl... ../lib/tk8.3
 checking for X11 header files
 checking for X11 library archive
 checking for XOpenDisplay in -lX11... no
 can't find X library
 otcl-1.0a8 configuration failed! Exiting ...

 please tell me where the problem is.
 please help me
 Regards,
 Manpreet...










[ns] invalid ommand name AddrParams

2007-03-26 Thread Faisal Aslam

Hi,

When I run SPAN (http://pdos.csail.mit.edu/~benjie/span/span_ns.html) then
it gives me following error.


:invalid command name AddrParams
while executing
AddrParams proc addr2id addrstr {
if [Simulator hier-addr?] {
set addressObj [[[Simulator instance] get-AllocAddrBits ] \
get-Address]
return [$addr


PATH and LD_LIBRARY_PATH variables look fine. I have installed tcl8.3.2,
tk8.3.2 ,tclcl-1.0b10 ,otcl-1.0a6 and ns-2.17b.

Any clues?

Faisal Aslam



Re: [ns] How to trace Segmentation fault error(help me!!!!!!!!!!!!!!!!)

2007-03-26 Thread Faisal Aslam

You need to use gdb with the core file generated from the segmentation
fault.  You'll need to do a stack trace to see what function chain you
were inside when the bad-pointer access occured.


 Hi dear friends
 How can i trace Segmentation fault error in NS?
 Please help me
 Thanks in advance


 --
 Amin Irandoost







Re: [ns] Ad-hockey and Perl/Tk 400.200: where can I find?!

2007-03-26 Thread Faisal Aslam

try this http://www.monarch.cs.cmu.edu/cmu-ns.html

Faisal Aslam


 Hi all,

 I installed ns2.29-allinone in my computer.
 I intend to do ad-hoc simulations. So I am trying to install ad-hockey
 tool.
 Somebody could tell me where can I find the ad-hockey and Perl/Tk
 400.200(or higher) to download?

 Thanks in advance,
 Ricardo.







Re: [ns] while installing ns-2.1b8a i am getting this error please give me solution

2007-03-21 Thread Faisal Aslam

This problem comes when you have later version of gcc. If you have gcc
2.95.x then these problems will not come.
Furthermore, You can also go in those files and correct them. That means
go to the line number specified in error message and replace friend ABC
with friend class ABC. However, it is possible that after correcting
many files in this way you will get some more *different* kinds of erros.
Hence using gcc older version (2.95.x ) is a better solution.
I am posting it on the list for others.

regards,

Faisal Aslam


 Hi friends ,

 While installing ns-2.1b8a I am getting this problem

 In file included from trace.cc:44:
 tfrc.h:116: friend declaration requires class-key,
 i.e. `friend class
TfrcSendTimer'
 tfrc.h:117: friend declaration requires class-key,
 i.e. `friend class
TfrcNoFeedbackTimer'
 make: *** [trace.o] Error 1
 Ns make failed!
 See http://www.isi.edu/nsnam/ns/ns-problems.html for
 problems






[ns] Problem in installing NS GNU/Linux (detailed question)

2007-03-17 Thread Faisal Aslam

Hi,

Here is a detailed question :). I hope that someone will help.
I need to install a NS version for SPAN
(http://pdos.csail.mit.edu/~benjie/span/span_ns.html) that go with
otcl-1.0a6, tclcl-1.0b10, tcl8.3.2, tk8.3.2. I have installed all the
above parts sucessfully and tried many NS versions. But no success.

For example: when installing NS version ns-2.1b9a then it gives following
error.


[EMAIL PROTECTED]:~/NS-older/ns-2.1b9a make
g++ -c  -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR 
-DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
-DHAVE_LIBOTCL1_0A8 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H
-DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DPGM -DPGM_DEBUG
-DNS_DIFFUSION -I. -I/home/aslam/NS-older/tclcl-1.0b10
-I/home/aslam/NS-older/otcl-1.0a6 -I/home/aslam/NS-older/tk8.3.2/generic
-I/home/aslam/NS-older/tcl8.3.2/generic -I/usr/include/pcap -I./tcp
-I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile
-I./trace -I./routing -I./tools -I./classifier -I./mcast
-I./diffusion3/main -I./diffusion3/lib -I./diffusion3/nr -I./diffusion3/ns
-I./asim/ -o common/scheduler.o common/scheduler.cc
In file included from common/scheduler.cc:46:
common/packet.h: In constructor `p_info::p_info()':
common/packet.h:227: error: `PT_PGM' undeclared (first use this function)
common/packet.h:227: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
make: *** [common/scheduler.o] Fehler 1



When I install NS with older versions (for example ns-2.1b7a) . Then it
gives following error


In file included from trace.cc:44:
tfrc.h:116: error: friend declaration requires class-key, i.e. `friend
class TfrcSendTimer'
tfrc.h:117: error: friend declaration requires class-key, i.e. `friend
class TfrcNoFeedbackTimer'
make: *** [trace.o] Fehler 1


Looking for your reply.

-- 
Faisal Aslam




[ns] Problem with installation. Please help!

2007-03-14 Thread Faisal Aslam

Hi,


gcc -c  -DNO_TK  -DNDEBUG -mv8 -msupersparc -D__svr4__ -DUSE_SHM
-DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H
-DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H  -DHAVE_CONFIG_H -I.
-I/home/aslam/NS/otcl-1.13 -I/home/aslam/NS/tk8.4.14/generic
-I/home/aslam/NS/tcl8.4.14/generic -I/home/aslam/NS/tcl8.4.14/generic -o
tcl2c++.o tcl2c++.c
cc1: error: unrecognized command line option -mv8
cc1: error: unrecognized command line option -msupersparc
make: *** [tcl2c++.o] Error 1
---
I am trying to install Ns2 (from pieces) on SunOS.
I have already make/install tcl, tk, otcl. It is giving me above error
when I install tclcl-1.19.
Any clues?

Looking for some reply.

Faisal



[ns] -mv8 and -msupersparc error

2007-03-14 Thread Faisal Aslam

Hi,

I am trying to install Ns2 (from pieces) on SunOS.
I have already make/install tcl, tk, otcl. It is giving me following error
when I install tclcl-1.19.


gcc -c  -DNO_TK  -DNDEBUG -mv8 -msupersparc -D__svr4__ -DUSE_SHM
-DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H
-DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H  -DHAVE_CONFIG_H -I.
-I/home/aslam/NS/otcl-1.13 -I/home/aslam/NS/tk8.4.14/generic
-I/home/aslam/NS/tcl8.4.14/generic -I/home/aslam/NS/tcl8.4.14/generic -o
tcl2c++.o tcl2c++.c
cc1: error: unrecognized command line option -mv8
cc1: error: unrecognized command line option -msupersparc
make: *** [tcl2c++.o] Error 1
---

Any clues?

regards,
Faisal



Re: [ns] -mv8 and -msupersparc error

2007-03-14 Thread Faisal Aslam

Okay I have removed -mv8 and -msupersparc from Makefile and now it works.

Thanks.


 Hi,

 I am trying to install Ns2 (from pieces) on SunOS.
 I have already make/install tcl, tk, otcl. It is giving me following error
 when I install tclcl-1.19.

 
 gcc -c  -DNO_TK  -DNDEBUG -mv8 -msupersparc -D__svr4__ -DUSE_SHM
 -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H
 -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H  -DHAVE_CONFIG_H -I.
 -I/home/aslam/NS/otcl-1.13 -I/home/aslam/NS/tk8.4.14/generic
 -I/home/aslam/NS/tcl8.4.14/generic -I/home/aslam/NS/tcl8.4.14/generic -o
 tcl2c++.o tcl2c++.c
 cc1: error: unrecognized command line option -mv8
 cc1: error: unrecognized command line option -msupersparc
 make: *** [tcl2c++.o] Error 1
 ---

 Any clues?

 regards,
 Faisal