Re: [ns] problem in running example given in installed files

2007-02-22 Thread Nur Aini Rakhmawati

couldn't read file "../mobility/scene/cbr-3-test": no such file or directory 
--> this file is not found, make sure path of file


 
---
Nur Aini Rakhmawati
Touch the sky, Down to the earth
http://ai23.wordpress.com/

- Original Message 
From: harpreet <[EMAIL PROTECTED]>
To: ns-users@ISI.EDU
Sent: Thursday, February 22, 2007 11:42:32 PM
Subject: [ns] problem in running example given in installed files



hi
i am trying to rum wireless example in ns 2.1b9a. this gives me error 

$ 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)

i am working in this to run umts-fdd model because its written in its manual 
that its patch is executable in ns2.1b9a. but it also gives me error. can u 
please tell how to patch the file. and how to correct the above problem.


harpreet singh





 

TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/



[ns] Using gprof with ns2

2007-02-22 Thread Juan D

Hi,
   
  Could anybody please tell me how to use gprof with ns2?  I got the following 
information after I added -pg to CCOPT in the Makefile.in.
   
  gmon.out: No such file or directory
   
  Thanks.

 
-
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.


[ns] set opt(ifqlen)

2007-02-22 Thread leandro_villas

Hi,

How I make in the code c++ to know how many packages I am in the line  
in one determined moment?

I defined thus in tcl.
set opt(ifqlen) 50  ;# max packet in ifq




Debtor I wait of reply to advance.


This message was sent using IMP, the Internet Messaging Program.




[ns] Problem with installing nam using Cygwin/X

2007-02-22 Thread Alex Hoffer

Hi there,

I have recently installed ns from the 2.30 allinone package.  I have
successfully compiled it in Cygwin/X, and passes most of the
validation tests except for the ones that are documented.  However, I
cannot get nam to run at all.  Instead, once it runs it gets
configured and made, and I try to run it in an X window, it crashes
exits:

nam:
[code omitted because of length]
: no files matched glob pattern "~"
while executing
"glob ~"
invoked from within
"lindex [glob ~] 0"
invoked from within
"AnimControl set PORT_FILE_ "[lindex [glob ~] 0]/.nam-port"

In the Cygwin terminal, I get the messages:

winMultiWindowsXMsgProcErrorHan
dler - ERROR: BadWindow 
winMultiWindowsXMsgProcErrorHandler - ERROR: BadWindow 

Here are my environment variables that I have set, grabbed from my
/etc/profile file:

PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/ns-
allinone-2.30/bin:/ns-allinone-2.30/tcl8.4.13/unix:/ns-allinone-2.30/tk8.4.13/unix:/:$PATH
LD_LIBRARY_PATH=/ns-allinone-2.30/otcl-1.12:/ns-allinone-2.30/lib
TCL_LIBRARY=/ns-allinone-2.30/tcl8.4.13/library

Output of uname -a is
CYGWIN_NT-5.2 TBDEVCOOP 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin

What do I do to fix this error?  It appears to be looking for
something in my home directory, but I have no idea otherwise why it
won't work.  Any help would be nice, thanks!



[ns] communication between base stations

2007-02-22 Thread Elena Putzolu

Blank to all, 
I would want to simulate of the nodes furnitures that communicate with base 
station through protocol 802.b/g (2.4GHz), while the base stations communicates 
between they with protocol 802.11a (5GHz).
 unfortunately I do not succeed to implement the communication between base 
stations.
 someone può to help me please?there are of the extensions that make this? 
thanks

 elena






___ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html



[ns] problem in running example given in installed files

2007-02-22 Thread harpreet


hi
i am trying to rum wireless example in ns 2.1b9a. this gives me error 

$ 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)

i am working in this to run umts-fdd model because its written in its manual 
that its patch is executable in ns2.1b9a. but it also gives me error. can u 
please tell how to patch the file. and how to correct the above problem.


harpreet singh


[ns] Priority Packet Simulation Debug

2007-02-22 Thread romzyi prasetyo

Dear All

I am newbie in NS2. Currently I am doing priority packet simulation. I
simulated 4 nodes n0,n1,n1,n4.
The situation like this:

n0 (tcp agent)
\
 \
  n2---n3(sink)
/ (router)
  /
n1 (tcp agent)

I assigned priority 0 to node n0 and priority 1 to node n1. Then using
simple priority queue algorithm used to dequeue packets sent by node n0 and
n1 to node n3.However, after the simulation completed,when I looked at the
trace file, the node n1 is not generating any packet. Therefore  I can not
compare the throughput from node n0 and node n1 because node n1 is not
generating any packets. I've spent three nights to debug this error but I
couldnt figure it out yet. Is there anyone that understand the problem and
have experiences in this kind of error?
I'll appreciate your help very much.

Regards
Romzyi
NTU Singapore Undergrad


[ns] Cluster Based Routin Protocol (CBRP) and CMU

2007-02-22 Thread Seyed Amin Hosseini

Dear All ,

I need to install CBRP on ns2 with cmu wireless extension.would you
please help me about :
- where I can download the last version of CMU and CBRP?
- can i install cbrp and cmu on ns-2.3.29 or i need a special version.
- I need any document about  CBRP and CMU  for installation and ...
I am eagerly waiting hear from you.

Best Regards
Amin,
Universiti Sains Malaysia






-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[ns] What kind of error is this?

2007-02-22 Thread [EMAIL PROTECTED]

Hi, 
while I debug my code for DSR-multipath I find this message:
"0x402c98db in strlen() from /lib/tls/libc.so.6"
What kind of error is this?
What can I do?
thank you


--
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada22feb07





[ns] Queue-monitor problem (BUG?), Departures more than Arrivals

2007-02-22 Thread Khurram Aziz

Hi,

The tcl code is attached below. I am trying to simulate an M/M/1 queue for a
duration of 9000 seconds, and I want to reset the queue-monitor counters
after every 3000 seconds in order to obtain confidence intervals for
calculating mean queue lengths and waiting times.

The problem is that I am getting negative values for queue lengths (i.e.
parrivals_ - pdepartures_) after I reset the queue-monitor.

Any ideas why this is so. Am I missing something in my code?

#Tcl Script START  (m/m/1)
set ns [new Simulator]
set plotfile [open mm1.tr w]

set lambda 30.0
set mu 33.0
set duration 900.0

set n1 [$ns node]
set n2 [$ns node]
set link [$ns simplex-link $n1 $n2 100kb 0ms DropTail]
$ns queue-limit $n1 $n2 10

set InterArrivalTime [new RandomVariable/Exponential]
$InterArrivalTime set avg_ [expr 1/$lambda]
set pktSize [new RandomVariable/Exponential]
$pktSize set avg_ [expr 10.0/(8*$mu)]

set src [new Agent/UDP]
$ns attach-agent $n1 $src

set qmon [$ns monitor-queue $n1 $n2 [open qm.out w] 0.1]
$link queue-sample-timeout

proc finish {} {
global ns plotfile
$ns flush-trace
close $plotfile
exit 0
}
proc sendpacket {} {
global ns src InterArrivalTime pktSize duration
set time [$ns now]
if {$time < $duration} {
$ns at [expr $time + [$InterArrivalTime value]] "sendpacket"
}
set bytes [expr round ([$pktSize value])]
$src send $bytes
}

proc plotFunc {file} {
global ns qmon
set time 0.1
set now [$ns now]
set nexttime [expr $now+$time]
$qmon instvar parrivals_ pdepartures_ pdrops_ size_ pkts_ bytesInt_
pktsInt_
puts $file "$now $parrivals_ $pdepartures_ $pdrops_ [expr
$parrivals_-$pdepartures_ $pdrops_]"
$ns at $nexttime "plotFunc $file"
}

$ns at 1.0 "plotFunc $plotfile"
$ns at 300.0 "$qmon reset"
$ns at 600.0 "$qmon reset"

set sink [new Agent/Null]
$ns attach-agent $n2 $sink
$ns connect $src $sink

$ns at 0.0001 "sendpacket"
$ns at $duration "finish"

$ns run
#Tcl script END



[ns] How i can use Obstcale model with Hybrid model(Manhattan and RWP models) for node movement in urban area

2007-02-22 Thread ibrahim koda


Hi ALL
i have simulated (DSR,AODV,DSDV)using hybrid model (Manhattan and 
Random Waypoint).I want to check the performance of these adhoc 
protocols in real environment(urban area or in campus  environment).
  i looked for added obstacle mobility model to manhattan and Random 
waypoint for more realistic work. 
   thanks for any suggestion with regards
ibrahim khider

 
-
Never Miss an Email
Stay connected with Yahoo! Mail on your mobile. Get started!


Re: [ns] ns-allinone-2.26 installation problem - Plz Help

2007-02-22 Thread roger juan huanca sevilla

Hi

it's a compiler problem if you compile vith g++ 2.95 for example you can
do it but i don't know if you have more problems for the rest of the
packages in theory it's work well for linux versions like (RED HAT 7.2
...) why don't you try to install ns -2.30 it's work without problems.

Pd.: if comeone knows how to solve the proble using the patch, tell us.

bye

>
> Hi all,
>
> I've tried to install ns-allinone-2.26 and I got an error while building
> Tclcl-1.0b13.
>
> -
> configure: creating ./config.status
> config.status: creating Makefile
> rm -f embedded-tcl.cc
> ./tcl2c++ et_tcl ../lib/tcl8.3/init.tcl ../lib/tcl8.3/history.tcl
> ../lib/tcl8.3/word.tcl ../lib/tcl8.3/http2.3/http.tcl > embedded-tcl.cc
> g++ -c  -DNO_TK  -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_0A8 -DHAVE_OTCL_H
> -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H
> -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1
> -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1 -DHAVE_SYS_TYPES_H=1
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_LONG=4 -DHAVE_INT64=1
> -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_3=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_3=1
> -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_0A8=1  -I.
> -I/home/irini/ns/ns-allinone-2.26/otcl-1.0a8
> -I/home/irini/ns/ns-allinone-2.26/include
> -I/home/irini/ns/ns-allinone-2.26/include -o embedded-tcl.o
> embedded-tcl.cc
> tclcl-mappings.h: In static member function 'static int
> TclObjectHelper::dispatch_(void*, Tcl_Interp*, int, char**)':
> tclcl-mappings.h:51: error: incomplete type 'Tcl' used in nested name
> specifier
> tclcl-mappings.h:52: error: invalid use of undefined type 'struct Tcl'
> tclcl-mappings.h:41: error: forward declaration of 'struct Tcl'
> tclcl-mappings.h:57: error: invalid use of undefined type 'struct Tcl'
> tclcl-mappings.h:41: error: forward declaration of 'struct Tcl'
> make: *** [embedded-tcl.o] Error 1
> tclcl-1.0b13 make failed! Exiting ..
> -
>
> In the ns-2: Installation Problems, Bug Fixes, and Help webpage I found
> this:
>
> -
> Tclcl-1.0b13
> * Problem: Tclcl doesn't build against gcc-3.4 (as in Fedora Core 3).
> *  Solution: Fixed in current CVS. Apply this patch:
>
> --- tclcl.h~2003-07-29 11:24:50.0 -0700
> +++ tclcl.h2004-12-10 08:55:34.692584936 -0800
> @@ -45,8 +45,8 @@
>  }
>
>  #include "tclcl-config.h"
> -#include "tclcl-mappings.h"
>  #include "tracedvar.h"
> +// tclcl-mappings.h included below, AFTER definition of class Tcl
>
>  struct Tk_Window_;
>
> @@ -158,6 +158,8 @@
>  Tcl_HashTable objs_;
>  };
>
> +#include "tclcl-mappings.h"
> +
>  class InstVar;
>
>  class TclObject {
> -
>
> How do I apply this patch?? I would appreciate if you can help me
> (or even send me the correct tclcl.h header file)
>
> Thanks in advance.
>
> Regards,
> Eirini
>



[ns] how to calculate the transmission node of sensor nodes with nrlsensorsim patch 2.26 with ns 2.26

2007-02-22 Thread Srirupa Dasgupta

  
Dear n sfriends ,
please help me to calculate the transmission range of senssor nodes on ns2.26 
with extended patch for sensor networks
Regards Srirupa
On Thu, 22 Feb 2007 [EMAIL PROTECTED] wrote :
>Send Ns-users mailing list submissions to
>   ns-users@isi.edu
>
>To subscribe or unsubscribe via the World Wide Web, visit
>   http://mailman.isi.edu/mailman/listinfo/ns-users
>or, via email, send a message with subject or body 'help' to
>   [EMAIL PROTECTED]
>
>You can reach the person managing the list at
>   [EMAIL PROTECTED]
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Ns-users digest..."
>
>
>Today's Topics:
>
>1. Re: Phy to MAC buffer (Sasan Sahraei)
>2. how to make file (sachin dahiya)
>3.  Make doesn't reflect changes in .cc, .h files 
>   (sachin dahiya)
>4. help : to find the transmission range of sensor nodes of
>   nrlsensorsim-patch-2.26 (Srirupa  Dasgupta)
>5. RTP implementation in ns2 (GEORGIOS KIOUMOURTZIS)
>6. mobiwan installation (Girma Kassa)
>7. FW Who has an example source code of WDM network based on
>   OWnssimulator (ns2 extension ) (Ekularn Dhavarudha)
>8. Delay in MobileIP (Akmal Akmalhojaev)
>9. Re: [ns-users] problem in sensing range (Matthias Budde)
>   10. BaseStation coverage area. (Akmal Akmalhojaev)
>   11. Re: Multi-interface support howto (Ramon Aguero)
>   12. Throughput measurements AGT level-NS2 (Shaili Desai)
>
>
>--
>
>Message: 1
>Date: Wed, 21 Feb 2007 00:59:00 - (GMT)
> From: "Sasan Sahraei" <[EMAIL PROTECTED]>
>Subject: Re: [ns] Phy to MAC buffer
>To: "Alexander Sayenko" <[EMAIL PROTECTED]>
>Cc: ns-users@ISI.EDU
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain;charset=iso-8859-1
>
>Hi Alexander,
>
>So this means if I need to monitor the "real" incoming traffic rate, I
>should look into MAC -> LLC queue, rather than looking for PHY -> MAC
>(which as you said does not exist)?
>
>If this is the case, I suppose for such monitoring, I need to implement
>something that calculate the "real" incoming traffic?
>
>am I correct on this ?
>
>Thanks,
>Sasan
>
> > Hi
> >
> > There should not be any, at least NS-2 does not introduce anything, as I
> > know. As PHY receives a packet, it is passed to MAC, then to the upper
> > layer, and then it is buffered at some link queue or MAC level downlink
> > queue.
> >
> > Sincerely,
> > Alexander Sayenko
> >
> > -Original Message-
> > From: "Sasan Sahraei" <[EMAIL PROTECTED]>
> > To: ns-users@ISI.EDU
> > Date: Tue, 20 Feb 2007 00:09:52 - (GMT)
> > Subject: [ns] Phy to MAC buffer
> >
> >>
> >>
> >> Hi,
> >>
> >> Where can I find / access the buffer between PHY and MAC? Is there any
> >> buffer in between MAC and PHY (upwards)?
> >>
> >> Thanks,
> >> Sasan
> >>
> >
>
>
>
>
>--
>
>Message: 2
>Date: Wed, 21 Feb 2007 10:12:20 +0530
> From: "sachin dahiya" <[EMAIL PROTECTED]>
>Subject: [ns] how to make file
>To: ns-users@ISI.EDU
>Message-ID:
>   <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>i have modified the tcp-newreno.cc,tcp-sink.cc,tcp.h .,i m trying to
>implement the changes which i made.can any help me in making these
>changes.how to make these changes effective.
>sachin
>
>
>--
>
>Message: 3
>Date: Wed, 21 Feb 2007 10:47:33 +0530
> From: "sachin dahiya" <[EMAIL PROTECTED]>
>Subject: [ns]  Make doesn't reflect changes in .cc, .h files 
>To: ns-users@ISI.EDU
>Message-ID:
>   <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>respected sir
>i m working on ns-2.29 on cygwin on window xp.
>i m trying to implement selective tcp which is the modification in existing
>newreno tcp version.i have changed the tcpnewreno.cc,tcp sink.cc.tcp.h,
>tcpsink.h.
>when i recompile ns by make clean ,make depend ,make commands the stcp stiil
>not work.
>make depend and make command show error like error1 and error2 in the last
>line when i run these command.
>will u please tell me the procedure how to make these changes effective.
>with regards
>sachin
>
>
>--
>
>Message: 4
>Date: 21 Feb 2007 06:48:54 -
> From: "Srirupa  Dasgupta" <[EMAIL PROTECTED]>
>Subject: [ns] help : to find the transmission range of sensor nodes of
>   nrlsensorsim-patch-2.26
>To: ns-users@ISI.EDU
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain;  charset=iso-8859-1
>
>  ?
>Dear Ns-users,
>Can someone help me to calculate the transmision range of sensor nodes with 
>nrlsensorsim-2.26 with ns 2.26.
>Regrds Srirupa
>
>--
>
>Message: 5
>Date: Wed, 21 Feb 2007 09:05:25 +0100
> From: "GEORGIOS KIOUMOURTZIS" <[EMAIL PROTECTED]>
>Subject: [ns] RTP implementation in ns2
>To: ns-users@ISI.EDU
>Message-ID:
>   <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset=I

[ns] ns-allinone-2.26 installation problem - Plz Help

2007-02-22 Thread Eirini Karapistoli

Hi all,

I've tried to install ns-allinone-2.26 and I got an error while building 
Tclcl-1.0b13.

-
configure: creating ./config.status
config.status: creating Makefile
rm -f embedded-tcl.cc
./tcl2c++ et_tcl ../lib/tcl8.3/init.tcl ../lib/tcl8.3/history.tcl 
../lib/tcl8.3/word.tcl ../lib/tcl8.3/http2.3/http.tcl > embedded-tcl.cc
g++ -c  -DNO_TK  -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_0A8 -DHAVE_OTCL_H 
-DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H  
-DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 
-DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_LONG=4 -DHAVE_INT64=1 
-DHAVE_TCL_H=1 -DHAVE_LIBTCL8_3=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_3=1 
-DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_0A8=1  -I. 
-I/home/irini/ns/ns-allinone-2.26/otcl-1.0a8 
-I/home/irini/ns/ns-allinone-2.26/include 
-I/home/irini/ns/ns-allinone-2.26/include -o embedded-tcl.o embedded-tcl.cc
tclcl-mappings.h: In static member function 'static int 
TclObjectHelper::dispatch_(void*, Tcl_Interp*, int, char**)':
tclcl-mappings.h:51: error: incomplete type 'Tcl' used in nested name 
specifier
tclcl-mappings.h:52: error: invalid use of undefined type 'struct Tcl'
tclcl-mappings.h:41: error: forward declaration of 'struct Tcl'
tclcl-mappings.h:57: error: invalid use of undefined type 'struct Tcl'
tclcl-mappings.h:41: error: forward declaration of 'struct Tcl'
make: *** [embedded-tcl.o] Error 1
tclcl-1.0b13 make failed! Exiting ..
-

In the ns-2: Installation Problems, Bug Fixes, and Help webpage I found 
this:

-
Tclcl-1.0b13
* Problem: Tclcl doesn't build against gcc-3.4 (as in Fedora Core 3).
*  Solution: Fixed in current CVS. Apply this patch:

--- tclcl.h~2003-07-29 11:24:50.0 -0700
+++ tclcl.h2004-12-10 08:55:34.692584936 -0800
@@ -45,8 +45,8 @@
 }
 
 #include "tclcl-config.h"
-#include "tclcl-mappings.h"
 #include "tracedvar.h"
+// tclcl-mappings.h included below, AFTER definition of class Tcl
 
 struct Tk_Window_;
 
@@ -158,6 +158,8 @@
 Tcl_HashTable objs_;
 };
 
+#include "tclcl-mappings.h"
+
 class InstVar;
 
 class TclObject {
-

How do I apply this patch?? I would appreciate if you can help me
(or even send me the correct tclcl.h header file)

Thanks in advance.

Regards,
Eirini