[ns] C compiler cannot create executables(cygwin)(help me!!!!!!!!!!!!!!!!!!!!!!!)

2007-04-13 Thread Amin Irandoost

hi all
i have installed gcc compiler on cygwin environment but during install
i have received C compiler cannot create executables
my version of cygwin is 1.3.12...1.5.21
check for gcc ... ok
check for gcc-g++ ... ok

I'm waiting for your reply
please help me
-- 
Amin Irandoost


[ns] HELP: installation problems

2007-04-13 Thread Dani

Dear all,

I tried to install on my Intel based MacBook Pro the
ns2-allinone-2.29.3-Precompiled-UniversalBinary-Intel-Mac package that I
found herehttp://nsnam.isi.edu/nsnam/index.php/Downloading_and_installing_ns-2
.
I tried to run a simple tcl example script ( /ns-2.29/tcl/ex/simple.tcl ),
but I had this error running the NAM part of the simulator:

running nam...
nam: couldn't connect to display :0.0

Maybe I have to change some settings, but I don't know where they are.
Could someone help me??

Thanks in advance

Daniel


[ns] I need to determine values for parameters of the speed type and pause type in waypoint movement model.

2007-04-13 Thread h sh


Hi All,
Could someone help me? I need to determine values for parameters of the 
speed type and pause type in waypoint movement model.

 
  ./ setdest –v 2  -n [# nodes] –s [speed type]  -m [min speed] –M[max speed] 
–t [simulation time] –P[pause type] –p[pause time] –x [x ] –y[y] 

 

What is the meaning of speed type and pause type?

 

Please help me.

Thanks a lot.

   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.


[ns] multicast in Eurane

2007-04-13 Thread neila el héni

Hi
Is anyone interested in collaborating (or simply giving me some tips) to
implement multicast on Eurane simulator (defining group identities, managing
reports of UEs of the same group, etc.)?
See you!
Neila


[ns] unknown drop reason in new trace format file

2007-04-13 Thread Ramzi Tka

Hi all,
could someone explain to me the significance of the NCO (after -Nw) drop
reason mentioned in this new trace format compliant line.

   d -t 0.414050318 -Hs 12 -Hd -1 -Ni 12 -Nx 100.00 -Ny 100.00 -Nz 0.00 -Ne
-1.00 -Nl MAC -Nw NCO -Ma 0 -Md  -Ms 5 -Mt 800 -Is 4196353.0 -Id
-1.0 -It udp -Il 132 -If 0 -Ii 4 -Iv 32

thanks
kind regards
ramzi


Re: [ns] Query about errors during running make command

2007-04-13 Thread Timo Reimann

Anuradha Sehgal wrote:
 The three errors are:

 error:expected primary-expression before int.
 error:expected ; before int
 error::non-lvalue in assignment

 why these errors are occuring??

You've been reposting this identically at least twice. This is not going
to help you increase your chances in receiving a reply. One thing that
might help though is giving a complete output of the compiler errors
including line numbers and showing the relevant C++ code.


 its urgent, please reply soon

It's not: http://www.catb.org/~esr/faqs/smart-questions.html#urgent

http://nsnam.isi.edu/nsnam/index.php/Troubleshooting#when_and_how_to_write_to_the_user.27s_mailing-list


--T



[ns] HELP: installation problems - no display found for nam

2007-04-13 Thread Dani

 Dear all,

I tried to install on my Intel based MacBook Pro the
ns2-allinone-2.29.3-Precompiled-UniversalBinary-Intel-Mac package that I
found here
http://nsnam.isi.edu/nsnam/index.php/Downloading_and_installing_ns-2.
I tried to run a simple tcl example script ( /ns-2.29/tcl/ex/simple.tcl ),
but I had this error running the NAM part of the simulator:

running nam...
nam: couldn't connect to display :0.0

Maybe I have to change some settings, but I don't know where they are.
Could someone help me??

Thanks in advance

Daniel


[ns] problem in implement the ricean propagation

2007-04-13 Thread ibrahim koda

Hi all ;
  I am trying to implement the ricean propagation. After following the
instructions below :
Makefile.in   add  mobile/prop_ricean.o  to OBJ_CC 
I get the following problem first I was told to run config
I ran ./config  then I ran make but after a while it has given me this error
  make: *** No rule to make target ` mobile/prop_ricean.cc', needed by
` mobile/prop_ricean.o'.  Stop.
   
  How to deal with it?
  Please give me a solution...
  
your help is very much appreciated
  regards


Ibrahim Khider Eltahir Khider
Communication Software and Switch Technology Research Center
Dept of Electronic and Information Systems
Huazhong University of Science and Technology
,P.R.China-Wuhan-430074
Mobile: 0086-27-63452269
Home Tel: 0086-27-87540211
   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.


[ns] HELP: installation problems - no display found for nam

2007-04-13 Thread Daniel

 Dear all,

I tried to install on my Intel based MacBook Pro the
ns2-allinone-2.29.3-Precompiled-UniversalBinary-Intel-Mac package that I
found here
http://nsnam.isi.edu/nsnam/index.php/Downloading_and_installing_ns-2.
I tried to run a simple tcl example script ( /ns-2.29/tcl/ex/simple.tcl ),
but I had this error running the NAM part of the simulator:

running nam...
nam: couldn't connect to display :0.0

Maybe I have to change some settings, but I don't know where they are.
Could someone help me??

Thanks in advance

Daniel


Re: [ns] HELP: installation problems - no display found for nam

2007-04-13 Thread Timo Reimann

Daniel wrote:
 I tried to install on my Intel based MacBook Pro the
 ns2-allinone-2.29.3-Precompiled-UniversalBinary-Intel-Mac package that I
 found here
 http://nsnam.isi.edu/nsnam/index.php/Downloading_and_installing_ns-2.
 I tried to run a simple tcl example script ( /ns-2.29/tcl/ex/simple.tcl ),
 but I had this error running the NAM part of the simulator:

 running nam...
 nam: couldn't connect to display :0.0

 Maybe I have to change some settings, but I don't know where they are.
 Could someone help me??

This doesn't seem to be a problem with ns-2 but Unix which Mac OS uses.
Basically, this error shows up when you don't have an X server (which is,
IIRC, actually called client in the X terminology) running.

So are you sure you're having an X server running? I don't know if that's
default on Mac OS, don't know too much about it.

Can you open any other GUI application from the shell you're trying to
start nam from? (like xterm?) If not, that would support my theory that
something with your Unix-MAC-GUI chain is broken...



Re: [ns] question on installation NS-2.29 on Linux Ubuntu

2007-04-13 Thread Timo Reimann

Celina Wang wrote:
 2. I have Gcc/G++ 4.1.1 installed.

Try the CC and CXX switches I proposed below then.


 On 4/13/07, Timo Reimann [EMAIL PROTECTED] wrote:

 Celina Wang wrote:
  I am installing ns-2.29 in Linux Ubuntu 6.06 version.
  After modified settings of all of configure files, new
  problem occurs that linker is not working properly.

 What did you modify? Could you have possibly just replaced one problem
 by
 another doing this?


  in the directory ns-2.29/ , ./configure successfully
 
  passed, but make failed due to following errors:
  (thousands of lines complaint undefined references)
  Anyone can give suggestions? Thanks in advanced.
 
 
 
  g++  -o ns \
  common/tclAppInit.o  tools/random.o
 
  tools/rng.o tools/ranvar.o common/misc.o
  common/timer-handler.o common/scheduler.o
  common/object.o common/packet.o
  comm$common/tclAppInit.o: In function
  `Tcl_AppInit':
  tclAppInit.cc http://tclappinit.cc/:(.text+0xef): undefined
  reference to `Tcl::init(Tcl_Interp*, char const*)'
  :tclAppInit.cc http://tclappinit.cc/:(.text+0x100): undefined
 reference
  to
 
  `EmbeddedTcl::load()'
  :tclAppInit.cc http://tclappinit.cc/:(.text+0x10c): undefined
 reference
  to
  `EmbeddedTcl::load common/tclAppInit.o: In function
  `abort':
  tclAppInit.cc http://tclappinit.cc/:(.text+0x13d): undefined
  reference to `Tcl::evalc(char const*)'
  common/tclAppInit.o: In function
  `Tcl::instance()':
  tclAppInit.cc
  http://tclappinit.cc/
 :(.gnu.linkonce.t._ZN3Tcl8instanceEv[Tcl::instance()]+0x4):
  undefined reference to `Tcl::instance_'
  tools/rng.o: In function
  `RNG::RNG(long)':
  rng.cc:(.text+0xdcc): undefined
  reference to `TclObject::TclObject()'
  :rng.cc
  :(.text+0xe06): undefined reference to
 
  `TclObject::~TclObject()'
  tools/rng.o: In function
  `RNG::RNG(long)':rng.cc:(.text+0xe2c): undefined
  reference to `TclObject::TclObject()'

 I'm on Ubuntu 6.10 and ns-allinone-2.30. ns-2 refused to work properly
 until I used GCC/G++ 4.0 (instead of 4.1) for compiling.

 Dapper shouldn't come with 4.1 by default but I'd make sure you don't
 have
 it installed anyway and possibly try recompiling using switches:

 CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g++-4.0 [./install|make]



[ns] IEEE 802.11e Draft

2007-04-13 Thread Marcelo Pinheiro

Hello everybody, 

I hope you all are doing great. 
Has anyone, by any chance, have the last draft of the IEEE 802.11e just 
before its publication? 
If so, could you please send it directly to me? 

Regards, 

Marcelo Pinheiro 




[ns] utility of an associated DCH with HS-DSCH in Eurane?

2007-04-13 Thread neila el héni

Hi
I see that Eurane uses preprocessed Matlab files that contain, among others,
the CQI variations along several TTIs for each UE.

On the other hand, the DCHs  associated to the HS-DSCH are normally used in
order to report, to the Node B , the CQI and (N)ACK of the served UE.

So what is the utility of associating a DCH to the HS-DSCH in Eurane since
the CQI values are known before launching simulations (in the Matlab
files)???

Another question: do the input matlab trace files imply a continuous
transmission for all the simulated UEs, since a trace file contains
consecutive TTI and the associated SNR and CQIs?

Thank you for your answer

Neila


[ns] MAODV related,it is urgent,help me

2007-04-13 Thread sankarshan deb

Hi
 
I am working on MAODV.I have ported MAODV in ns-2.26.When I am running the 
simulation script ns.tcl,I m getting the following error

[EMAIL PROTECTED] ex]$ ns ns.tcl 10 30 1
num_nodes is set 50
INITIALIZE THE LIST xListHead
Loading connection pattern ...
Loading scenarios file...
Starting Simulation ...
ns: _o374 aodv-join-group 0xE00:
(_o374 cmd line 1)
invoked from within
_o374 cmd aodv-join-group 0xE00
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 _o374 line 2)
(SplitObject unknown line 2)
invoked from within
_o374 aodv-join-group 0xE00



I thing others who worked on MAODV, might have face this problem.If anybody 
know how to slove this problem plz let me know.It is very urgent.
 
The traffic pattern is as follows:
  2 # First Multicast group
  3 # 10 sender: nodes 0 through 9
  4 # receiver(s): nodes 20 through 49
  5 #
  6 for {set i 0} {$i  10} {incr i} {
  7 set udp_($i) [new Agent/UDP]
  8 $udp_($i) set dst_addr_ 0xE00
  9 $ns_ attach-agent $node_($i) $udp_($i)
 10 #
 11 set cbr_($i) [new Application/Traffic/CBR]
 12 $cbr_($i) set packetSize_ 256
 13 $cbr_($i) set interval_ 0.50
 14 $cbr_($i) set random_ 1
 15 # send enough packets to keep simulation nearly busy: 2 packets
 16 # a second, starting at 30, stopping at 899: 2*870 = 1740
 17 $cbr_($i) set maxpkts_ 1740
 18 $cbr_($i) attach-agent $udp_($i)
 19 $cbr_($i) set dst_ 0xE00
 20 $ns_ at 30.0 $cbr_($i) start
 21 }
 22 #
 23 # the nodes have to join the multicast group to receive the packet...
25 for {set i 20} {$i  50} {incr i} {
 26 $ns_ at 0.01 $node_($i) aodv-join-group 0xE00
 27 }

Thanks in advance



   
-
 Check out what you're missing if you're not on Yahoo! Messenger 


Re: [ns] routing over a fixed path in wireless ad-hoc network?

2007-04-13 Thread Song Luo

Basically, those protocols will find routes for packets automatically, and
you cannot determine in advance. But one method may work: you can enable
recvRequest function only at nodes you want the packets pass. In your
example, you only let node2, 3 and dest receive route requests and reply,
and let all other nodes discard requests without doing anything. I think it
should work for at least aodv and dsr, not sure for dsdv and tora.


On 4/7/07, tdinhtoan [EMAIL PROTECTED] wrote:


 hi,

 I am simulating an ad-hoc wireless network. The nodes do not move (a kind
 of wireless mesh network). Thus for a given pair of source node and
 destination node, I determine the routing path between them in advanced.

 i.e. the routing path: src - node2 - node3 - dest.

 I establish an CBR flow (UDP flow) from the src to the dest, and would
 like to route the packets from the src to the dest over this fixed path.
 This is some kind of Static Routing.

 How can I do? Which routing agent I should use: DSDV, DSR, TORA, or AODV?
 Could anyone give me some examples or guides?

 Thank you very much.

 Sincerely,
 -toan.

 PS: I hope it can be done without modifying the ns2 source code.




[ns] Lucents WaveLAN propagation model

2007-04-13 Thread Mohammed Abu Hajar

Dear all ns-users,
   
  How can I implement(write)  Lucent’s WaveLAN propagation model in ns-2 tcl 
script file?, is it like: 
  set opt(prop)   Propagaion/TwoRayGround, or
  set opt(prop)   Propagaion/FreeSpace, or
  set opt(prop)   Propagaion/Shadowing.
   
   
  My Regards to all.
   

   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.


[ns] how to computer the Transmission range

2007-04-13 Thread Mohammed Abu Hajar

Hi All,
   
Is there any utility in NS-2 that compute the transmission range of a wireless 
node like in glomosim simulator you type at the command line: radio_range 
config.in it's gives the range in m like 375m.
   
  Thanks

   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.


Re: [ns] question on installation NS-2.29 on Linux Ubuntu

2007-04-13 Thread Arturo Servin

I had the same problems in Ubuntu 6.10 and ns-2-31. I had to compile
with gcc and g++   4.0 instead of 4.1 (default in my distro).

There are a couple of urls documenting this and how to install ns in
ubuntu.

http://thesandeep.wordpress.com/2006/12/02/installing-ns2-on-ubuntu-dapper-lts/

http://nsnam.isi.edu/nsnam/index.php/Troubleshooting#ns-2.30.2Fns-2.31_do_not_build_with_gcc.2Fg.2B.2B_4.1

-as



Re: [ns] compilation error with gcc 3.2.2

2007-04-13 Thread smita vishwakarma

Hi Marcello

I have  created  newp.h,newp.ccand compiled it with MAKE .After  that I
created tcl file newping.tcl and add it in as Agent/newp it is showing
error as follows.

invalid command name Agent/newp
while executing
Agent/newp instproc recv {from rtt} {
$self instvar node_
puts node [$node_ id] received ping answer from \
  $from with round-trip-tim...
(file newping.tcl line 27)

please help me ,my deadline is coming :-)


On 4/14/07, Marcello Caleffi [EMAIL PROTECTED] wrote:

 Hi,
 have you read this tutorial 
 http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf;?
 If you follow it, you should reach to implement a new protocol.

 PS in your mail you forgot to detail the error :-)))

 Good work

 Il giorno 10/apr/07, alle ore 11:19, smita vishwakarma ha scritto:

 hi,

 I have installed ns-2.31 on linux -fedora -5 with gcc-4.1. It has been
 installed using the following steps.

 1. su
 2. cd
 3. wget http://prdownloads.sourceforge.net/tcl/tcl8.4.14-src.tar.gz
 4. cd /usr/share/
 5. tar -zxvf /root/tcl8.4.14-src.tar.gz
 6. cd /usr/share/tcl8.4.14/unix/
 7. ./configure
 8. make
 9. make install
 10. rm -f /root/tcl8.4.14-src.tar.gz
 We repeated the steps from 3 to 10 for otcl, nsnam, ns-2.31, tclcl,xgraph
 .

 I am simulating a new protocol which uses NS simulator underneath for
 simulating TCP /IP. I have creatd a very simple file to begin with which has
 the  following structure.

 #includeping.h
 static class PingHeaderClass : public PacketHeaderClass
 {
 public:
 PingHeaderClass():PacketHeaderClass(PacketHeader/Pingsizeof(hdr_ping)){}
 }class_pinghdr;

 ...

 I have made following changes in  makefile.in..

 OBJ_CC=...
 ...
 
 routing/alloc- address.o routing/address.o
 ping.o \
...

 kindly advice me where i m going wrong. I m struggling on this for past
 one month . Please reply back asap with solution..

 Best Regards,

 Smita Viswakarma



 On 4/5/07, Marcello Caleffi [EMAIL PROTECTED] wrote:
 
  Hi,
  you didn't give me enough infos.
  Maybe Oldsim class doen't exist?
 
  Il giorno 03/apr/07, alle ore 21:28, smita vishwakarma ha scritto:
 
  Hi,
 
  Thanks a lot. I have installed successfully ns-2.31 in fedora-5
  environment . But I am finding one problem with Tcl that is error when
  calling class Oldsim :example1.tcl.Why is it so?
 
  Kindly, give me suggestion.
 
  Thanks  Regards,
  Smita Vishwakarma
  C-DAC
  INDIA
 
  On 4/4/07, Marcello Caleffi  [EMAIL PROTECTED]  wrote:
  
   Try to update your packages as shown here:
http://wpage.unina.it/marcello.caleffi/
  
   Best regards.
  
   --
  
   Marcello Caleffi, Ph.D. student
   Department of Electronic and Telecommunication Engineering
   University of Naples Federico II
   Via Claudio 21
   80125 Naples ITALY
  
  
  
   
Hi,
   
I have downloaded ns-2.30 with Red hat -9 and gcc compiler 3.2.2 .
I am
getting compilation error when I am trying to compile any .cc file
   of
ns.Kindly,suggest me as soon as possible.
   
Thanks  Regards,
Smita
   
  
 
 
   Marcello Caleffi, Ph.D. student
  Department of Electronic and Telecommunication Engineering
  University of Naples Federico II
  Via Claudio 21
  80125 Naples ITALY
 
 
 

 Marcello Caleffi, Ph.D. student
 Department of Electronic and Telecommunication Engineering
 University of Naples Federico II
 Via Claudio 21
 80125 Naples ITALY





[ns] How to create a object .o file...???

2007-04-13 Thread Velan

Hi ns-users...

 I created .cc file for my own packet forma, and also i created the
header file for thar particular packet format. Then i don't know how to
create the .o (object file) ? . Where i store the .cc file and .h file.
Then how to compile it...


Thanks and regards...
Velan