Re: [ns] install ns228 on suse10.1 fatal problem

2006-05-26 Thread Qasim Raza Iqbal

Try this

Dear Qasim,

you are right. The problem seems to be related to the gcc version.
Fortunately there is a patch. The instructions can be found at
http://mailman.isi.edu/pipermail/ns-users/2006-May/055811.html in case
you want to fix your friend's NS2 installation some time.

Thank you very much.

Cheers,
Markus

Qasim Raza Iqbal wrote:
 No Unfortunately I could not find the solution to that problem.
 As this was one of my friend's computer who just started research. I think
 it will be some time before we try to load ns2 again as he is working on
 somethng else.


 However one reason could be that we were trying to install NS2.29 on the
 Latest version of linux with gnu compiler version 4.10, and it did not
 compile. Maybe if you try a the compiler version less than 4.0, then it
 will probably work
 before you try to install ns2
 please check what version compiler you are using
  e.g type  gcc -v
 If its 4.0 or higher, than that could be a problem.

 I hope this might help

 kind regards

 Qasim Iqbal
 Aston University



 Hi Qasim,

 you posted a problem on the NS2 mailing list on April 28 regarding
 tcl8.3.2 configuration on Cygwin.

 I ran into the same problem. Did you find a solution?

 Maybe it is worth posting it on the NS2 mailing list, since the problem
 has been reported recently to occur with Debian Linux, too. Yet, in the
 mailing lists I could not find a solution.

 Thank you very much.

 Kind regards,
Markus







 Dear all,

 i am trying to install ns228 on suse10.1 32bits version.(i have tred other
 version conbinations but all failed, could anyone suggests successful
 ones?)

 failed and get last line of hints as following


 checking system version (for dynamic loading)... ./configure: line 7068:
 syntax error near unexpected token `)'
 ./configure: line 7068: `   OSF*)'
 tcl8.3.2 configuration failed! Exiting ...
 Tcl is not part of the ns project.  Please see www.Scriptics.com
 to see if they have a fix for your platform.

 full message is included as attachments

 what's going on and how to sovle it?

 thanks and best regards









Re: [ns] what's the relationship of Pt_ and -txPower ?

2006-04-28 Thread Qasim Raza Iqbal

Hi David

What you need to do is look at NS Archives, This topic has been discussed
several times and in great depth.

go to this website
http://www.isi.edu/nsnam/htdig/search.html

and type in your question e.g  RXThresh, Transmit power , etc, and you
will get loads of hits



regards

Qasim
UK


 Dear friends:
We know that we can set different Pt_ and RXThresh_ to get different
 transmit range. We also use energy model to calculate the energy used on
 transimitting by setting -txPower. Then what's the relationship of Pt_ and
 -txPower? Should Pt_ be greater than -txPower?
During my simulation,I found I can set -txPower to a small value,for
 instance, 0.025. However, I can still set Pt_ to the default value which
 is
 0.281838 and it works fine. Than I am confused, if the power consumption
 of
 Transmit is 0.025, how can Pt_ be so large?
Anyone help me? Thank you for your suggestions!
 Regards!
 David





[ns] 7624: syntax error near unexpected token `)' tcl8.3.2 configuration failed!

2006-04-28 Thread Qasim Raza Iqbal

Hi Everyone

I have a problem installing NS 2.29 all in one version in the CYGWIN
environment. I am using  cygwin on windows XP professional edition. The
cygwin runs without a problem
However when running ./install i get this problem after about a minute


checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ./configure: line
7624: syntax error near unexpected token `)'
./configure: line 7624: `   OSF*)'
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project.  Please see
www.Scriptics.comhttp://www.scriptics.com/
to see if they have a fix for your platform.



I would be grateful if anyone could help me resolving this problem

Thanks

Qasim



Re: [ns] Values to be set in the TCL file to make the transmission range 100m

2006-04-12 Thread Qasim Raza Iqbal

Hi Jeevash

There are two method to do it.

Method a)
You calculate the RxThreshold using a small program written in C called
threshold.cc locayed in the folder ns-2.29/indep-utils/propogation/

compile the file as  g++ threshold.cc

then run the program /a.out with the required distance you want to transmit.

In this case the transmit power remains the same as 0.2818 (default 250m)
and also the Carrier Sense Threshold (CSThresh) will remain 550+ but the
nodes that are 100+ meter away will drop the packages that they receive
considering it an error.

Method b) You only change the Pt_ value to 7.214e-3 , This will set the
maximum transmission range of the node to 100m.

so you can choose which option you want to go for

I hope this helps

regards




 Hi friends,
  What are the values to be set in the TCL file to make
 the transmission range 100m. In some mail i got some pointer for this
 but i am not getting them clearly. There i have to set Pt_ variable to
 a
 fixed value. Is it the only value I have to change? or it need some
 more changes. Then what is the use of values written below other than
 Pt_.

   CPThresh_ 10.0
 CSThresh_ 1.559e-11
 RXThresh_ 3.652e-10
 Rb_ 2.0e6
 Pt_ 0.2818
 freq_ 914e+6
 L_ 1.0
 Please help me. Thanks a lot.

   jeevesh kumar




 -
  Jiyo cricket on Yahoo! India cricket
 Yahoo! Messenger Mobile Stay in touch with your buddies all the time.



Kind regards

Qasim Raza Iqbal
PhD Candidate,
ACNRG Lab N504,  Office N505
Adaptive Communications Networks Research Group,
School of Engineering And Applied Science
Aston University
Birmingham  B4 7ET
United Kingdom
http://www.ee.aston.ac.uk/research/acrg/index.html




[ns] make: *** No rule to make target `tcl/lib/noah.tcl', needed by `gen/ns_tcl.cc'. Stop.

2006-04-04 Thread Qasim Raza Iqbal

Dear All

I am trying to implement the Noah protocol. After following the
instructions below
##
Makefile.in  add noah/noah.o \ to OBJ_CC and tcl/mobility/noah.tcl \ to
NS_TCL_LIB
noah/noah.{h,cc}add noah.h and noah.cc to a new subdirectory noah/
tcl/mobility/noah.tcl   add noah.tcl to tcl/mobility/
tcl/lib/ns-lib.tcl.hline 191: add source ../mobility/noah.tcl
line 603ff: add

NOAH {
set ragent [$self create-noah-agent $node]
}

line 768ff: add

Simulator instproc create-noah-agent { node } {
# Create a noah routing agent for this node
set ragent [new Agent/NOAH]

## setup address (supports hier-addr) for noah agent
## and mobilenode
set addr [$node node-addr]

$ragent addr $addr
$ragent node $node

if [Simulator set mobile_ip_] {
$ragent port-dmux [$node demux]
}
$node addr $addr
$node set ragent_ $ragent
return $ragent
}
##

I get the following problem
first I was told to run config
I ran ./config
than I ran make clean
and then I ran make

but after a while it has given me this error

make: *** No rule to make target `tcl/lib/noah.tcl', needed by
`gen/ns_tcl.cc'.  Stop.

please help

your help is very much appreciated

regards

Qasim UK




Re: [ns] How to measure energy consumption of wireless nodes

2006-03-28 Thread Qasim Raza Iqbal

Hi there

Could you also send me a copy  of the solutions to your wishlist

thanks

Qasim Iqbal



   Hi Gurus,

 I am a newbie in ns2 and I need to evaluate the energy consumption of
 AODV. My plan is to have the nodes send/receive data for a period of
 time and measure the energy difference from the beginning to the end.

 Could anyone instruct me how to do this. In detail:

   1) How to set the energy model + initial energy correctly: some of my
 nodes are mobile, but I only need to measure the energy for
 routing/sending/receiving data. The energy for node movement is simply
 ignored.

   2) Do I need to enable any options in ns to be able to track the energy.

   3) How to read the energy from the beginning and at the end ?

 Please give me some detailed instructions as I am just a newbie in
 this field.

 Thanks a lot for your help.

 Heo






 -
 Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great
 rates starting at 1cent;/min.





Re: [ns] How to get the position of node in Tcl (NS2 Command)?

2006-03-02 Thread Qasim Raza Iqbal

OK, its there but you just could not find it. Another place to look at is
the example in NS2 manual

Look at section 16.1.2 Creating node movements,
at the end of that page there is a working  example  procrdure that shows 
how to log movement very 0.1 sec,,
I am sure that will help you. I have tried that and it works fine

regards

Qasim


 Thank you for your help. And I have searched and looked into all the
 result
 and I could not find the answer of reading the location(position) of node
 in
 tcl code.

 Best Regards

 mhmd

 -Original Message-
 From: Qasim Raza Iqbal [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 01, 2006 2:12 PM
 To: Mohammed Alchaita
 Cc: ns-users@isi.edu
 Subject: Re: [ns] How to get the position of node in Tcl (NS2 Command)?

 Please search your answer in the below site or in the mailing archives
 http://www.isi.edu/nsnam/htdig/search.html
 There are several answers to your question

 regards
 Qasim




 I need to get the location of node (X and Y) in NS2. Any help please?

 Best Regards
 Mhmd











Re: [ns] How to get the position of node in Tcl (NS2 Command)?

2006-03-01 Thread Qasim Raza Iqbal

Please search your answer in the below site or in the mailing archives
http://www.isi.edu/nsnam/htdig/search.html
There are several answers to your question

regards
Qasim




 I need to get the location of node (X and Y) in NS2. Any help please?

 Best Regards
 Mhmd







Re: [ns] problem running wireless-simple script

2006-02-12 Thread Qasim Raza Iqbal

Hi

You have not configured the notes yet

have a look at wireless examples in the below link


http://www.grc.upv.es/manets/local/docs/ns-tutorial/nsscript5.html

regards

Qasim Iqbal



 hi,

 i'm tried to run the follow script:


 set ns [new Simulator]

 set tracefd [open simple.tr w]
 $ns trace-all $tracefd

 set n 2

 set nf [open out.nam w]
 $ns namtrace-all-wireless $nf 50 50

 proc finish {} {
 global ns nf tracefd
 $ns flush-trace

 close $nf
   close $tracefd

 exec nam out.nam 
 exit 0
 }

 set topo [new Topography]

 $topo load_flatgrid 50 50

 create-god $n

 set nodo(0) [$ns node]
 set nodo(1) [$ns node]

 $nodo(0) set X_ 37.0
 $nodo(0) set Y_ 36.0
 $nodo(0) set Z_ 0.0

 $nodo(1) set X_ 39.0
 $nodo(1) set Y_ 38.0
 $nodo(1) set Z_ 0.0


 set tcp [new Agent/TCP]
 $tcp set class_ 2
 set sink [new Agent/TCPSink]
 $ns attach-agent $nodo(0) $sink
 $ns attach-agent $nodo(1) $tcp
 $ns connect $tcp $sink
 set ftp [new Application/FTP]
 $ftp attach-agent $tcp
 $ns at 10.0 $ftp start



 $ns at 150.0 $nodo(0) reset
 $ns at 150.0 $nodo(1) reset


 $ns at 150.1 finish

 $ns run


 But the follow error shows up:

 num_nodes is set 2
 routes not yet computed
 routes not yet computed
 --- Classfier:: no-slot() default handler (tcl/lib/ns-lib.tcl) ---
   _o17: no target for slot -1
   _o17 type: Classifier/Hash/Dest
 content dump:
 classifier _o17
   0 offset
   0 shift
   2147483647 mask
   1 slots
 slot s: _o21 (Classifier/Port)
   -1 default
  Finished standard no-slot() default handler 
 child process exited abnormally

 i don't understand what the error is...

 i wait for your help






Re: [ns] simulating CAN in ns2

2006-02-10 Thread Qasim Raza Iqbal

I know Controller Area network is a totally different protocol from
802.11, which composes of one or two wires for sending data with the
maximum data rate of 1 MHz
I have not seen CAN using a wireless protocol, even though  I have worked
on CAN using optical fibres
Nor have I seen CAN protocol implementation in NS2. However to simulate
CAN you will have to right your own simple protocol module

The research paper linked below recently did some work based on CAN
network using NS2

http://vorlon.cwru.edu/~vxl11/NetBots/Infocom05.pdf




 Are you aware of any CAN (Controller Area Network) implementations for
 ns-2?

 Thanks,
 Cem Saraydar






Re: [ns] why node 3 is not define?

2005-12-23 Thread Qasim Raza Iqbal

Hi,

I also have that problem, infact in my case when running nam for a similar
scenario, it shows me node 0,1,2 and 3 a not defined until they actually
start the movement.

Another think which I need to ask you is that why have you attached the
same tcp to node 0 2 and 4 and sink to node 1 and 3. Can you use the same
agent on different nodes? Is that a requirement for the channel to work
properly or your just testing to see it works

Please let me know

regards

Qasim Iqbal


 hi ,
  i don't know exactly, why it worked by making single change. But i made
 the change  by guessing it as hidden terminal problem.

  Exact reason is most welcome.

  The modified line is highlighted  with yellow and i have changed 20.0 to
 10.0 in that line which is highlighted with blue.

  # ==
  # 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) 5  ;# number of mobile
 nodes
  set val(rp) DSR   ;# routing protocol

  # ==
  # Main Program
  # ==

  #---
  # Initialize Global Variables
  #---
  set ns_ [new Simulator]
  $ns_ use-newtrace
  set tracefd [open simTest.tr w]
  set namtrace[open simple-wireless.nam w]
  $ns_ trace-all $tracefd

  # set up topography object
  set topo   [new Topography]

  $topo load_flatgrid 500 500
  $ns_ namtrace-all-wireless $namtrace 500 500

  #--
  # Create God
  #--
  create-god $val(nn)

  #--
  #  Create the specified number of mobilenodes [$val(nn)] and attach
 them
  #  to the channel.
  #  Here two nodes are created : node(0), node(1), node(2), node(3),
 node(4)

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

  for {set i 0} {$i  $val(nn) } {incr i} {
  set node_($i) [$ns_ node]
  $node_($i) random-motion 0  ;# disable random
 motion
  }

  #---
  # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
  #---
  $node_(0) set X_ 5.0
  $node_(0) set Y_ 2.0
  $node_(0) set Z_ 0.0

  $node_(1) set X_ 390.0
  $node_(1) set Y_ 385.0
  $node_(1) set Z_ 0.0

  $node_(2) set X_ 132.0
  $node_(2) set Y_ 423.0
  $node_(2) set Z_ 0.0

  $node_(3) set X_ 245.0
  $node_(3) set Y_ 150.0
  $node_(3) set Z_ 0.0

  $node_(4) set X_ 350.0
  $node_(4) set Y_ 85.0
  $node_(4) set Z_ 0.0

  #-
  # Now produce some simple node movements
  #-
  $ns_ at 50.0 $node_(1) setdest 25.0 20.0 15.0
  $ns_ at 10.0 $node_(0) setdest 20.0 18.0 1.0

  $ns_ at 60.0 $node_(2) setdest 10.0 18.0 1.0

  $ns_ at 10.0 $node_(3) setdest 30.0 28.0 10.0

  $ns_ at 10.0 $node_(4) setdest 25.0 38.0 1.0

  # Node_(1) then starts to move away from node_(0)
  $ns_ at 100.0 $node_(1) setdest 490.0 480.0 15.0

  # Setup traffic flow between nodes
  # TCP connections between node_(0) and node_(1)

  set tcp [new Agent/TCP]
  $tcp set class_ 2

  set sink [new Agent/TCPSink]
  $ns_ attach-agent $node_(0) $tcp
  $ns_ attach-agent $node_(1) $sink
  $ns_ attach-agent $node_(2) $tcp
  $ns_ attach-agent $node_(3) $sink
  $ns_ attach-agent $node_(4) $tcp
  $ns_ connect $tcp $sink

  set ftp [new Application/FTP]
  $ftp attach-agent $tcp
  $ns_ at 10.0 $ftp start

  #--
  # Tell nodes when the simulation ends
  #--
  for {set i 0} {$i  $val(nn) } {incr i} {
  $ns_ at 150.0 $node_($i) reset;
  }

  $ns_ at 150.0001 stop
  $ns_ at 150.0002 puts \NS EXITING...\ ; $ns_ halt
  proc stop {} {
  global ns_ tracefd
  $ns_ 

[ns] Problems installing NS2.29.2 all in one on Kubunto linux

2005-12-21 Thread Qasim Raza Iqbal

Dear All

I am having a problem installing Ns2 all-in-one-2.29.2 on kubunto linux
with KDE destop.
I get the following error message

home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:674: error: syntax
error before Display
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:674: warning: no
semicolon at end of struct or union
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:675: warning: data
definition has no type or storage class
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:679: error: syntax
error before '*' token
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:679: warning: data
definition has no type or storage class
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:692: error:
conflicting types for `parentPtr'
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tk.h:779: error: previous
declaration of `parentPtr'
;
;
;
;
...and so on until it finally stops displaying


eclared `static' but never defined
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tk3d.c:38: warning:
`ShiftLine' declared `static' but never defined
{standard input}: Assembler messages:
{standard input}:699: Error: symbol `dy' is already defined
{standard input}:705: Error: symbol `dx' is already defined
{standard input}:752: Error: symbol `q' is already defined
{standard input}:758: Error: symbol `p' is already defined
{standard input}:764: Error: symbol `q' is already defined
{standard input}:770: Error: symbol `q' is already defined
make: *** [tk3d.o] Error 1
tk8.4.11 make failed! Exiting ...

Please help, your help is very much appreciated

thanks

Iqbal
Aston UK