Re: [ns] MIP headaches

2007-12-13 Thread Pedro Vale Estrela


 
 Create a much smaller test example and proceed up step by step
 
 
 
> 
> Eng. Pedro Vale Estrela, PhD
> Researcher at INESC-ID, Lisbon
> PhD Computer Science / IP Mobile Networks at IST/TU Lisbon
> 
> CV: http://tagus.inesc-id.pt/~pestrela
> Email: [EMAIL PROTECTED]
> Mobile: (+351) 91 8134653
> Work:   (+351) 21 4233285
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf
> > Of Keita Rose
> > Sent: quinta-feira, 13 de Dezembro de 2007 13:09
> > To: ns-users@ISI.EDU
> > Subject: [ns] MIP headaches
> >
> >
> > I  have been trying to simulate simple examples of MIPv4 in NS-2 based
> > on the Marc Greiss example for a simulation period of 2400 seconds but
> > for more times than not my simulations just seem to hang up.
> > I have a 36 nodes grid wired networks in a 2400m x 2400m area with 180
> > mobile nodes. I am examine registration details for 20, 40 60 up to 100%
> > of nodes mobile but after sometimes as little as 540 seconds the
> > simulation seemingly stops. I am using a Sun Blade 2700 running Solaris
> > 9...
> > Any ideas why this may be the case??
> >
> > Keita





Re: [ns] HOW [EMAIL PROTECTED] - a new/custom (routing) agent - Who knowssomething?

2007-11-21 Thread Pedro Vale Estrela


Claus,

Great effort! 

Please, we need more volunteers for this effort, especially the users which
are just starting NS2 (as documenting NS2 is an excellent way to learn it!)

Regarding the agent creating, please check this info:

http://tagus.inesc-id.pt/~pestrela/ns2/ns2_beginners.html#_Toc128325750
"5: The above, but modifying the NS2 simulator yourself.
When you are doing cutting edge research, that nobody did before, the only
solution is to model your own additions to NS2.
The first thing you should do is to locate a similar module that does
something that you want to do also. perhaps another ad-hoc routing protocol,
another QoS queue discipline, etc etc. Then you should clone the code, and
change ALL names of variables, TCL bindings (*), C++ classes, packet
headers, etc etc, to YOUR component name. When you do this you'll get a
working component that you can start to SLOWLY modify to make YOUR
algorithms and operations.
If you do this way, instead of simply start coding from scratch, you'll be
able to work with a working component, step by step, that you are able to
validate every day. The alternative way, you spend months, or even more,
before the component worked for the first time.


Regarding packet sending, I've updated this page with agent->send()
http://nsnam.isi.edu/nsnam/index.php/Sending_Packets



-

Also 1: I'm planning to revamp the mark greis NS2 tutorial, by retesting,
and updating it. At first I'll do it in html; later I'll port it to the
wiki. If anyone wants to help, please step in.

Also 2: I've got a lot of useful info that should be ported to the wiki. 
Namely my debugging tutorials, 
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging3.html

and for instance this web page:
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_tips.html

Index:
How to modify existing procedures from the standard TCL library (/tcl/lib/)
without having to recompile NS2 at each step. 1
How to know values at run-time which are "easy" to store at configuration
time. 2
How to trigger procedures in other modules at run-time. 3
How to call oTCL code from C++ counterpart an illustrated example. 3
How to known which Agents are implemented in NS2 / which protocols are
implemented in NS2  5
What info options are available in otcl classes and objects?. 5
How to check the syntax of .tcl files. 7
How to get a trace of the oTcl procedures: 8
Which linux distro NOT to use: 8

And my beginners tips:
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_beginners.html



I'm severely time-limited at this very moment because my phd defense, but I
can help others porting it.

Pedro Estrela
http://tagus.inesc-id.pt/~pestrela/ns2





> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Claus Christmann
> Sent: quarta-feira, 21 de Novembro de 2007 21:26
> To: ns users
> Subject: [ns] HOW [EMAIL PROTECTED] - a new/custom (routing) agent - Who
> knowssomething?
> 
> 
> Hi List,
> 
> I have been trying to get my own routing algorithm working in ns2 for
> quite some time now and still haven't gotten as far as I hoped...
> 
> I received a lot of support from the ns-users list so far, but still
> need some more insight into ns2. In order to collect all that knowledge
> out there and to make it easier to find/read/change/update, I started a
> small effort on the ns2 wiki on
> 
> *How to Write Your Own Agent*
> http://nsnam.isi.edu/nsnam/index.php/Writing_an_Agent
> 
> *How to Send Packets*
> http://nsnam.isi.edu/nsnam/index.php/Sending_Packets
> 
> *The OSI layers and ns2*
> http://nsnam.isi.edu/nsnam/index.php/OSI_Reference_Model
> 
> PLEASE, if YOU have ever struggled on one of these issues or maybe even
> on the issue of writing your own _routing_agent_ , PLEASE go to the wiki
> and write your knowledge down. (Or email me, then I will write it down)
> 
> I am looking forward to tackle this big issue with the help off you all.
> 
> *THANK YOU*
> 
> Claus
> 
> --
> Claus Christmann
> Graduate Research Assistant
> 
> Georgia Institute of Technology
> 270 Ferst Drive
> Atlanta, GA 30332-0150
> 
> http://uav.ae.gatech.edu




[ns] WSN research: open positions for PhD students at INESC-ID, Lisboa, Portugal

2007-11-21 Thread Pedro Vale Estrela


I'm forwarding this announcement open in my research institute

Pedro Estrela

-

Dear all

INESC-ID (http://www.inesc-id.pt) is offering 2 (TWO) temporary 
scholarships (12 months  max) for PhD students who wish to join the 
institute's Wireless Sensor Networks research team. This scholarship is 
intended to support the student while he/she  is not eligible to apply 
to the CMU/IST ECE PhD program (http://www.ist.utl.pt/en/html/cmu-pt/) 
and to respective full program scholarship offered by the portuguese 
government agency FCT (http://www.fct.mctes.pt/bolsas/cmu/).
In case the candidate is not accepted into the CMU/IST program, he/she 
will have the possibility to apply to the regular ECE PhD program at 
IST (http://www.ist.utl.pt) and respective FCT scholarship.
The temporary scholarship of 12 months, which might be extended and/or 
complemented depending on the student's activities in funded INESC-ID 
research projects.

Candidates must be M.Sc. or graduated in a 5-year program (e.g., 
pre-Bologna European graduates). In order to apply to the temporary 
scholarship, candidates are required to send the following documents to 
Antonio Grilo ([EMAIL PROTECTED]):
- CV (please indicate your experience with network modeling tools such 
as ns-2)
- M.Sc. thesis (or equivalent)
- Letter or motivation (please indicate the Wireless Sensor Network 
topics of interest)
- Letters of Recommendation (if any) with respective contacts

NOTE: As part of the selection process, candidates shall be asked to 
write a short review of one research paper (chosen by the juri) related 
with their preferred topics listed in the motivation letter.

For more information, please send email to Antonio Grilo 
([EMAIL PROTECTED]).

Kind regards,
Antonio Grilo
(Assistant Professor at IST)
(http://comp.ist.utl.pt/amg)





Re: [ns] About callback from C++ code to OTcl (Brian LIU)

2007-11-21 Thread Pedro Vale Estrela


Solved. You must use global variables to acces them inside the "doLETJOIN"
instproc.

Also, I recommend you to follow my tutorial, and learn how to simplify the
code for debugging... for instance, the C++ part is only causing confusion
on the debugging process. See below how I've done without depending on c++.
When the Tcl code is ok, you should then start from tcl!

Also, on C++ you should use as follows:

 Tcl::instance().evalf( "$app(%d) %d %d %d %d", src, src, des, master,
object);




--


set ns[new Simulator]

global ns  tcp app

for {set j 0} {$j < 13} {incr j} {
set tcp($j) [new Agent/TCP/SimpleTcp]
#$ns attach-agent $node($j) $tcp($j);# DISABLED, as this
test script do not creates the nodes
} 

set app(0) [new Application/TcpApp $tcp(0) source 0]

for {set k 1} {$k < 13} {incr k} {
  set app($k) [new Application/TcpApp $tcp($k) common $k]
}

proc doLETJOIN {src des master object} {
global ns tcp app   ;# this is essential
!!!

  $ns at [$ns now] "$ns connect $tcp($src) $tcp($des)"
  $ns at [$ns now] "$tcp($src) listen"
  $ns at [$ns now] "$tcp($des) listen"
  $ns at [$ns now] "$app($src) connect $app($des)"
  $ns at [$ns now] "$$src letjoin $src $des $master"
}


proc my_test {} {
global ns

puts "inside test"

doLETJOIN 0 1 0 4

}

$ns at "1" "my_test"

$ns run







> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Brian Liu
> Sent: quarta-feira, 21 de Novembro de 2007 1:35
> To: ns-users@ISI.EDU
> Subject: [ns] About callback from C++ code to OTcl (Brian LIU)
> 
> 
> 
> Emergency Help!
> Hi, buddies
> 
> This problem troubles me long times, please help me to tackle this. Thanks
> a
> lot.
> 
> i use:
> static char* catLETJOIN(const char* src, const char* des, const char*
> master, const char* object)
> {   // $app(src) doLETJOIN src des master object
>     int len = strlen(src)*2 + strlen(des) + strlen(master) +
> strlen(object)
> + 21;
>     char* callback = new char[len];
>     strcpy(callback, "$app(");
>     strcat(callback, src);
>     strcat(callback, ") doLETJOIN ");
>     strcat(callback, src);
>     strcat(callback, " ");
>     strcat(callback, des);
>     strcat(callback, " ");
>     strcat(callback, master);
>     strcat(callback, " ");
>     strcat(callback, object);
>     return callback;
> }
> 
> in one function, i callback to Otcl:
> Tcl::instance().eval(catLETJOIN("0", "1", "0", "4"));
> 
> In Otcl, i have this:
> ..
> ..
> for {set j 0} {$j < 13} {incr j} {
>   set tcp($j) [new Agent/TCP/SimpleTcp]
>   $ns attach-agent $node($j) $tcp($j)
> }
> 
> set app(0) [new Application/TcpApp $tcp(0) source 0]
> 
> for {set k 1} {$k < 13} {incr k} {
>   set app($k) [new Application/TcpApp $tcp($k) common $k]
> }
> 
> Application/TcpApp instproc doLETJOIN {src des master object} {
>   global ns
>   $ns at [$ns now] "$ns connect $tcp($src) $tcp($des)"
>   $ns at [$ns now] "$tcp($src) listen"
>   $ns at [$ns now] "$tcp($des) listen"
>   $ns at [$ns now] "$app($src) connect $app($des)"
>   $ns at [$ns now] "$$src letjoin $src $des $master"
> }
> 
> why the following error happen?
> 
> ns: $app(0) doLETJOIN 0 1 0 4: can't read "tcp(0)": no such variable
>     while executing
> "$ns at [$ns now] "$ns connect $tcp($src) $tcp($des)""
>     (procedure "_o315" line 3)
>     (Application/TcpApp doLETJOIN line 3)
>     invoked from within
> "$app(0) doLETJOIN 0 1 0 4"
> 
> 
> help me, please.
> 
> 
> Sincerely,
> 
> Brian Liu
> 
> Graduate School of Information,Production,Systems
> WASEDA UNIVERSITY
> 
> Hibikino 2-6-416, Wakamatsu-ku,
> Kitakyushu-shi, Fukuoka,
> JAPAN 808-0135
> 





Re: [ns] Are there any documents for multi-channel assignment with single radio

2007-11-20 Thread Pedro Vale Estrela


> 
> Please add any insight you gained into the ns2 wiki
> (http://nsnam.isi.edu/nsnam/index.php/Main_Page) so that others can
> learn about and from your work.
> 
> CLaus
> 


Hi claus,

Great thing that you are doing for NS2 - definitely, what the NS2 wiki needs
is the persons that are aided in any way, should post their findings in the
wiki. That's exactly what I'm requesting since some time:

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


"Call for volunteers:  If you find these help pages useful, please volunteer
some of your time to help other NS users, by moving these pages into the new
NS2 wiki. More information here and here. Thanks!"

http://mailman.isi.edu/pipermail/ns-users/2006-January/053560.html
http://mailman.isi.edu/pipermail/ns-users/2006-June/056015.html



Pedro Estrela








Re: [ns] regarding xgraph and gnuplot

2007-11-19 Thread Pedro Vale Estrela


Gnuplot is very powerfull, but has a complex interface. 
That's why I've made a gnuplot frontend:
http://tagus.inesc-id.pt/~pestrela/ns2/contributed_code.html#_Toc147652227

that's my recommendation!

--

Xgraph is more basic, but with a simpler interface.

Pedro Vale Estrela
http://tagus.inesc-id.pt/~pestrela/ns2/


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Basim Javed
> Sent: domingo, 18 de Novembro de 2007 1:31
> To: ns-users@ISI.EDU
> Subject: [ns] regarding xgraph and gnuplot
> 
> 
>  hi all
> 
> I am new to NS2 world, and just recently installed NS 2.31. I would really
> appreciate help regarding comparison of xgraph and gnuplot, regarding
> their
> strengths and weaknesses.
> 
> Thank you in advance.
> 
> regard
> 
> B




Re: [ns] Seg Faults

2007-11-19 Thread Pedro Vale Estrela



I've encountered this problem previously. Somewhere in NS2 an exit or abort
function is being called, and no error is displayed.

Solution:
a) in config.h undefined exit() and abort(); 
b) redirect both to a macro called my_abort() which records the file and
line number where it is called; 
c) code the my_abort() function to display the line and filename parameters,
(printf)
d) and then cause a segmentation fault "by hand" (to stop execution in the
c++ debugger DDD)

you can check a live example of this in my IST-CIMS package
http://tagus.inesc-id.pt/~pestrela/ns2/?g=ist-cims.html
(note that said config.h code is currently disabled)

I've also put the interesting code lines below.



Please add any insight you gained into the ns2 wiki
(http://nsnam.isi.edu/nsnam/index.php/Main_Page) so that others can learn
about and from your work.

Pedro Estrela
http://tagus.inesc-id.pt/~pestrela/ns2/










Config.h:
-
This code would be used to redefine abort as a macro, that would call
my_abort (located in utils_ns.cc)
This would cause any abort() or exit() invocation to call my_abort, which
would generate an exception to
be caught inside the debugger.


extern "C" {
void my_abort(int line, char *file);

}


void my_abort(int line, char *file);// em utils_ns.h


#undef abort
#define abort()my_abort(__LINE__, __FILE__ )

#undef exit
#define exit(A)   my_abort(__LINE__, __FILE__ )


somewhere.cc:
-
void my_abort(int line, char *file)
{
printf("___ ABORT ___ on file %s, line %d \n", file, line);
assert(1==2);
}







> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Leonard Tracy
> Sent: sábado, 17 de Novembro de 2007 3:53
> To: NS Users
> Subject: [ns] Seg Faults
> 
> 
> Hi all,
> 
> Two questions:
> 
> 1.
> I've been trying to debug some seg faults I've been having.  They
> appear to be related to tracing dropped packets.  GDB's trace pack
> ends in DoWrite called by TclWrite.  Has anybody else had experience
> with this?  I am running NS 2.31 on Linux (Gutsy Ubuntu).  I am using
> the old format of wireless traces.
> 
> This problem seems to be related to the load placed on the network.  I
> believe
> this has to do with a lot of Packets being dropped from the IFQ.
> The problem seems to be gone, or at least much less likely to occur,
> now that I've altered Queue::reset to use Packet::free as opposed to drop.
> 
> 2.
> As a possibly related issue.  It seems that NS often quits early.  I
> am not sure if this
> is a problem with my code or something other people have noticed.
> I've been running long
> simulations (1 seconds), and 90% (or more) of the time (after
> making the above change) NS will
> complete normally.  The other simulations will end at a random much
> earlier time, but NS still
> completes without an error code.  Does anybody have an idea of what
> would cause this?
> 
> Leonard




Re: [ns] Visualization of data pkt movements in nam forwirelessscenarios

2007-11-15 Thread Pedro Vale Estrela



> Pedro
> 
> Your comments are much appreciated but unfortunately have left me, as
> a newcomer to NS2 (as well as C++ and Tcl), as unclear as I was.  If

I see. But please be aware that NS2 requires a lot of effort to be able to
do anything. In my case, I've even spend a lot of weeks for even putting the
contributed software to compile.

> you have added a patch (which I have located) recently to enable pkt
> colouring in wireless scenarios it would suggest that visualisation of
> pkt movement within wireless networks is now supported in NS2 and that
> this is not just an aspect of the DCCP patch. Is this correct?
Exactly. 

> Can you direct me to an example of a reasonably simple sample code
> that implements nam visualisation of pkt movements & drops or, if you
> are familiar with Marc Gries' tutorials tell me what is missing from
> them or needs to be added to them to be able to see pkt movements in
> nam.
I've volunteered to upgrade the NS2 tutorial, but cannot do this in the very
short term. You can trust that such will be the first thing I'll look, when
I can.

You can send me the .tcl file for TCP and DCCP, and I'll look into it
faster.


> Regretably I have knowledge of what L2 and L3 logging you are
> referring to, I'm still operating at a higher level at the moment!
I'm talking of dumping more trace information to the file, of application
layer and other layers also. Such is selectable in the NS2 tracing
facilities.






Re: [ns] Visualization of data pkt movements in nam for wirelessscenarios

2007-11-15 Thread Pedro Vale Estrela


a) I've put a patch very recently on this list to enable packet coloring in
wireless scnenarios.

b) for nam to show drops, they must be logged in the .nam file. Try to
change the amount of L2 and L3 logging that is being performed.

Pedro Estrela
http://tagus.inesc-id.pt/~pestrela/ns2/



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Karena Stannett
> Sent: quinta-feira, 15 de Novembro de 2007 14:06
> To: ns-users@ISI.EDU
> Subject: [ns] Visualization of data pkt movements in nam for
> wirelessscenarios
> 
> 
> -- Forwarded message --
> From: Karena Stannett <[EMAIL PROTECTED]>
> Date: 15 Nov 2007 13:10
> Subject: Visualization of data pkt movements in nam for wireless scenarios
> To: Ns-users@isi.edu
> 
> 
> Hi all,
> 
> I am a newbie to NS2 and need to clarify something in respect of the
> visualisation of data pkt movements in nam in wireless networks.  I've
> worked my way through Marc Gries' Tutorials which state visualisation
> of pkt movement is not possible.
> 
> However my research concerns DCCP and as such I am using the
> dccp-ns2.29.patch.  I have also tried the dccp-wireless.tcl example
> that is available from the same location as the patch.  When I run the
> namtrace file it clearly shows pkts being sent and dropped between 2
> nodes over a wireless network.  Is this visualisation unique to the
> DCCP or is it now supported generally in NS2.  And if it is now
> generally supported how is this done?
> 
> I've looked at the differences between the code of a tcp agent
> wireless example very similar to the dccp-wireless.tcl and tried
> commenting out / adding bits to see if I can create visualisation in
> other wireless networks, read the wireless trace chapters of the
> manual and tried to see if there is anything relevant in the archives
> posts but  I'm still no closer to knowing how this is being acheived.
> 
> Any help appreciated
> 
> Karena
> 
> 
> 
> --
> Respect -the ability to see a person as he is, to be aware of his
> unique individuality.
> ROOT(Respicere - to look at)
> 
> 
> --
> Respect -the ability to see a person as he is, to be aware of his
> unique individuality.
> ROOT(Respicere - to look at)




Re: [ns] oTcl debugging: MASH inspector causes segmentation fault

2007-11-15 Thread Pedro Vale Estrela

Good question.

I've not used this patch, so I can't offer much help 

(also, while I've put mashinspector to work, I've not entered its details
too much also).


Pedro Estrela


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Claus Christmann
> Sent: quinta-feira, 15 de Novembro de 2007 14:15
> To: ns users
> Subject: [ns] oTcl debugging: MASH inspector causes segmentation fault
> 
> 
> Hi list,
> 
> I am trying to debug the mw-node patch for ns2
> (http://www.q2s.ntnu.no/~paquerea/ns.html) using Pedro's guide to get
> oTcl debugging capabilities
> (http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html).
> 
> One of the apparently very useful tools is the MashInspector, which
> unfortunately crashes when inspecting objects introduced be the mw-node
> patch.
> 
> *Has anybody experience/hints/links on oTcl debugging with the mw-node
> patch?*
> 
> Thanks for any feedback.
> 
> Claus
> --
> Claus Christmann
> Graduate Research Assistant
> 
> Georgia Institute of Technology
> 270 Ferst Drive
> Atlanta, GA 30332-0150
> 
> http://uav.ae.gatech.edu




[ns] [ANNOUNCE] [NS2] Announcing IST-CIMS IP micro-mobility suite for NS2-2.31

2007-11-12 Thread Pedro Vale Estrela


Dear NS2 Researchers, 

This is to announce the posting of the IST-CIMS IP micro-mobility suite
package, upgraded and tested for NS2.31.

This package includes the eTIMIP and TIMIP protocols, and upgraded v2.31
versions of the CIP, HMIP and HAWAII protocols from the original CIMS code
(from ns2-1b5). 

This package also features NOAH for v2.31, and a common test framework for
all protocols in multiple scenarios.

Any comments and fixes regarding this software, or the associated eTIMIP
research work, are very welcome!!


Best Regards
Pedro Vale Estrela

---

Download link:
http://tagus.inesc-id.pt/~pestrela/ns2/?g=ist-cims.html

NS2 IP mobility info page:
http://tagus.inesc-id.pt/~pestrela/ns2/?g=mobility.html

Associated eTIMIP Scientific Papers:
http://tagus.inesc-id.pt/~pestrela/timip

“Design and Evaluation of eTIMIP - Overlay Micro-Mobility Architecture based
on TIMIP”, P. Estrela, T. Vazão, M. Nunes, International Conference on
Wireless and Mobile Communications (ICWMC 2006), July 2006 







Re: [ns] Different version of NS in same Linux OS

2007-11-09 Thread Pedro Vale Estrela

No

Just install the allinone is a different directory.

_With experience_, is actually pretty trivial to use several ns2 versions
using a single allinone


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Livian Zah
> Sent: sexta-feira, 9 de Novembro de 2007 15:11
> To: NS-User
> Subject: [ns] Different version of NS in same Linux OS
> 
> 
> Hello
> 
>   Is it possible to install two NS-version in same Linux OS. Do i need to
> make any change in .bashrc file ?
> 
>   Plz try to help. Thanks in advance.
> 
>  __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com




Re: [ns] a loop or a start and stop methods

2007-11-08 Thread Pedro Vale Estrela


You need to schedule a tcl proc which: 
a) does ping "send"  
b) reschedule itself for 1 second later

this is a simple 4 line TCL proc!

you can also do this in c++ only by using a timer object, for the same
purpose. This will require recompilation and c++ debugging.

Pedro Estrela
http://tagus.inesc-id.pt/~pestrela





> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Nabila khedimi
> Sent: quinta-feira, 8 de Novembro de 2007 18:16
> To: ns-users@ISI.EDU
> Subject: [ns] a loop or a start and stop methods
> 
> 
> 
> Hi,
> I want to execute a ping agent continuously during the simulation,
> regarding the schedular object in NS, is there any the difference between
> making a infinite loop inside the tcl code or define a start and a stop
> method inside the ping agent code(which is a c++ program)
> Thanks for help
> Nabila
> 




Re: [ns] How to colour nam simulations??

2007-11-07 Thread Pedro Vale Estrela


I've just posted the solution to the dev list also.

Apply these 2 patches, and set the packet color for wireless exactly as you
do in wired links.

http://tagus.inesc-id.pt/~pestrela/ns2/files/namtrace_precision_time.patch
http://tagus.inesc-id.pt/~pestrela/ns2/files/namtrace_wireless_colors.patch


Regards,
Pedro Estrela
http://tagus.inesc-id.pt/~pestrela/ns2




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Jamal Toutouh
> Sent: quarta-feira, 7 de Novembro de 2007 15:51
> To: NS-users list
> Subject: [ns] How to colour nam simulations??
> 
> 
> Dear all,
> 
> How are you?
> 
> I want to show some simulations using NAM, but the problem is that I want
> to show
> the different packets that are created by diferent nodes with different
> colours.
> 
> I am simulating mobil nodes that uses wifi connections.
> 
> Thank you...
> 
> 
> Jamal Toutouh El Alamin
> NEO Group - Networking and Emerging Optimization
> University of Malaga
> 
> Phone: (+34) 952 13 33 03
> 
> Addres:
> E.T.S Ingenieria Informatica
> Complejo Tecnologico, Lab. 3.3.4b
> Campus de Teatinos
> 29071 Malaga, Spain
> -
> 
> 
> 
> 
> 
> __
> Pregunta, Responde, Descubre.
> Comparte tus consejos y opiniones con los usuarios de Yahoo! Respuestas
> http://es.answers.yahoo.com/info/welcome




[ns] open wiki access

2007-11-02 Thread Pedro Vale Estrela



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Tom Henderson
> Sent: quinta-feira, 1 de Novembro de 2007 5:59
> To: ns list
> Subject: [ns] open wiki access
> 
> 
> All,
> I think I've reached the point where I've tired of cleaning out the
> spam/vandalism from the ns-2 wiki.  Presently, we have a policy of
> requiring users to create an account without moderation before writing
> to the wiki, but that seems to not be enough to stop unwelcome users
> from creating accounts.
> 
> Would people object if we moved to a policy of moderated user account
> creation?  
Agreed, on my opinion. This is only a minor, one-time only nuisance to the
welcome users, and is perfectly justified


> It would require first time wiki posters to have their
> request for an account approved.  This would also apply to ns-3's wiki,
> which has had much less of a problem but which also runs the same wiki
> software.
> 
> (cc-ing ns-developers, but please reply on the ns-users list only)
> 
> - Tom
> 
> p.s. I'd like to also thank the various volunteers who have stepped in
> to clean up things time and time again.




Re: [ns] need tcl script showing voice codec implementation

2007-09-18 Thread Pedro Vale Estrela


Hi

Can you please explain in a single email which topics are you asking for
help, instead of sending countless seperated messages??

Pedro Estrela


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Brenda Lindsay Williams
> Sent: terça-feira, 18 de Setembro de 2007 16:57
> To: ns-users@ISI.EDU
> Subject: [ns] need tcl script showing voice codec implementation
> 
> 
> Can someone pls give me a script showing voice codec implementation in
> NS2?
> I'm working with G.711, but any available one based on the H.323 standard
> will be greatly appreciated.
> Thanks.
> 
> regards,
> 
> Brenda




[ns] FW: gdb debugger

2007-09-17 Thread Pedro Vale Estrela



Its almost impossible to do it at the same time. Read all my debugging tips
then feel free to ask questions.

Also, use DDD!
http://tagus.inesc-id.pt/~pestrela/ns2/

Pedro Estrela




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Elahe Alipour
> Sent: segunda-feira, 17 de Setembro de 2007 11:23
> To: ns-users@ISI.EDU
> Subject: [ns] gdb debugger
> 
> 
> **
> **
>   Hi all
>   I installed gdb debugger and it ran commands like list, break. but i
> can't use it properly. i want to cross debug TCL and c++ and step through
> each line of C++ and TCL code.
> but i don't know how do this. i searched in ns mailing list but i didn't
> find a suitable solution.
>   can anybody help me? thanks
> 
>   best regards
> elahe
> 
> **
> 
> 
> 
> -
> Don't let your dream ride pass you by.Make it a reality with Yahoo!
> Autos.





Re: [ns] About patches added to ns-2

2007-09-14 Thread Pedro Vale Estrela


You can ignore these, which are the compressed test suites results. Just
make NS2 compile and run without errors


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Ghada Al-Mashaqbeh
> Sent: sexta-feira, 14 de Setembro de 2007 15:08
> To: ns-users@ISI.EDU
> Subject: [ns] About patches added to ns-2
> 
> 
> Dear all,
> 
>   I have installed a patch for ns-2 2.31, many failed hunks were appeared,
> I have edited them manually, but some of these hunks modify the .Z files
> that exist in the ~\tcl\test directory (example ~\ns-2.31\tcl\test\test-
> output-mcache\media1.Z). I am viewing the patch using a text editor,
> however the modification for such files is unreadable, so I cannot know
> where to add them.
> 
>   can anybody help me in how modifying such files?
> 
>   Or, do we need to modify these files to make ns-2 works correctly under
> the added patch? (I think that these files is a test suites for ns-2, i.e.
> not part of its source code) is this correct so I do not need to modify
> such files?
> 
>   Thanx,
> 
>   Ghada
> 
> 
> -
> Tonight's top picks. What will you watch tonight? Preview the hottest
> shows on Yahoo! TV.




Re: [ns] installation problem

2007-09-10 Thread Pedro Vale Estrela



http://www.google.pt/search?source=ig&hl=pt-PT&q=bash%3A+ns+command+not+foun
d&meta=


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of sparsh attre
> Sent: segunda-feira, 10 de Setembro de 2007 13:25
> To: ns-users@ISI.EDU
> Subject: [ns] installation problem
> 
> 
> hi
> i m facing a little problen in the installation of ns2.31 on fedora 5
> it is installing properly but when i validate it thn it takes approx 45 -
> 50
> mins  and says that all tests have been passed
> but whn i type ns on the command prompt it reflects an error saying
> bash: ns command not found
> can u get me out of this particulr problem?




Re: [ns] Movement of nodes should be modifiable during runtime of an ns-2 simulation

2007-08-22 Thread Pedro Vale Estrela

Yes, looked at this issue, and the only way to do it in run-time is to use
emulation!

If the movement customization did not require run-time, it would be a simple
problem - the first program would just generate a movement file according to
some parameters.

Pedro Estrela
http://tagus.inesc-id.pt/~pestrela/ns2



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Daniel Mahrenholz
> Sent: quarta-feira, 22 de Agosto de 2007 15:46
> To: Schuenemann, Bjoern
> Cc: ns-users@ISI.EDU
> Subject: Re: [ns] Movement of nodes should be modifiable during runtime of
> an ns-2 simulation
> 
> 
> Hi Bjoern,
> 
> Schuenemann, Bjoern schrieb:
> > I'd like to make a simulation with ns-2 where the movement of the nodes
> is modifiable by another program during the runtime of the ns-2
> simulation. How could I realize this? It seems that modifications of trace
> and movement files are ignored by ns-2 after the files are read in by the
> TCL script
> I think the problem is that after reading the movement files all events
> that actually control the movement are already in the event queue.
> 
> One of my students implemented an external movement control some years
> ago for the emulation mode. Basically he adds a listening socket that
> takes simulator control commands from an external program, converts them
> to TCL code and evaluates them. Then he ran the simulation for an
> infinite time (and send a stop command from the external controller to
> exit) and could move the nodes around as he liked.
> 
> But, this only works in emulation mode. The reason is, if you are in the
> normal simulation mode, time will jump from event to event. And if there
> is the last movement event in the queue, the simulator possibly will
> jump to the final stop event and quit. So, only emulation ensures that
> your simulation time does not runs too fast.
> 
> I took a quick look but could not find the diploma thesis / code of the
> student. I will spend more time searching if you like. Title of the
> thesis was " Eine dynamische WLAN-Emulationsumgebung auf Basis des
> NS-2", Thomas Kiebel, Diplomarbeit, 2005.
> 
> Daniel.
> 
> --
> Dr.-Ing. Daniel Mahrenholz
> rt-solutions.de GmbH
> Oberländer Ufer 190a
> D-50968 Köln
> 
> Web: www.rt-solutions.de
> 
> rt-solutions.de
> networks you can trust.




Re: [ns] Replying Etiquette

2007-08-20 Thread Pedro Vale Estrela


ALWAYS Use reply all!
Always search before asking a new question.


Suggested reading for all users:
http://www.catb.org/~esr/faqs/smart-questions.html




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Teerawat Issariyakul
> Sent: sábado, 18 de Agosto de 2007 15:57
> To: ns-users@ISI.EDU
> Subject: [ns] Replying Etiquette
> 
> 
> 
> Hi All,
> 
> I am just wondering about this mailing list. There are a lot of questions
> in this list. Suppose that some of us know the solution and would like
> to help out. Do we suppose to "REPLY" to the sender only or "REPLY
> ALL" so that others who have similar problems will know the answer too ?
> 
> 
> Cheers,
> Teerawat




Re: [ns] hierarchical addressing and number of nodes

2007-06-11 Thread Pedro Vale Estrela


I have a proc in my page that does this in a very easy way!
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html

Pedro vale estrela


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Sérgio Alexandre
> Sent: quinta-feira, 7 de Junho de 2007 11:16
> To: pankaj kumar
> Cc: ns-users@ISI.EDU
> Subject: Re: [ns] hierarchical addressing and number of nodes
> 
> 
> if you :
> 
>  # Set NS Addressing
>   AddrParams set domain_num_ 9
>   AddrParams set cluster_num_ {9 9 9 9 9 9 9 9 9}
>   AddrParams set nodes_num_ {9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 etc..}
> 
> p. example you will have no problema running your simulation.
> Just raise the numbers.
> 
> 
> 
> 
> pankaj kumar wrote:
> > Hi All
> > i have following hierarchical addressing
> >
> >  # Set NS Addressing
> >   AddrParams set domain_num_ 2
> >   AddrParams set cluster_num_ {1 5}
> >   AddrParams set nodes_num_ {1 1 3 1 1 1}
> >
> > when i am trying to add new a node to the topology its giving
> segmentation
> > fault without changing above NS addressing.
> >
> > How i can overcome by this this problem ( or i have to change into #Set
> NS
> > Addressing??? )
> >
> > thanks and regards,
> > pankaj
> >
> >




Re: [ns] tcl-debugger cannot use command 'w' to watch call stack

2007-05-20 Thread Pedro Vale Estrela


The tcl-debugger has some bugs.

In pratice, I only use the debugger to stop the code somewhere and inspect
some variables, and NEVER to step trough the code (because the debugger
lacks object TCL capabilities.)

For that, check  http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html

Pedro Vale Estrela





> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of landrew
> Sent: segunda-feira, 21 de Maio de 2007 2:45
> To: ns-users
> Subject: [ns] tcl-debugger cannot use command 'w' to watch call stack
> 


hi,everybody

i'am using ns2.31,and i use tcl-debugger2 for debugging.
all things in debugging are ok except that after i use 'w' command to watch
call stack, then when i use the next command , most of the time i'll get a
core dump.
messages are following :

dbg11.5> s
10: if [catch "$self cmd $args" ret] {
set cls [$self info class]
global err...
dbg10.6> w
 0: application
 1: _o17 {_o17} {MobileNode/ResourceAwareNode} {start-app}
 2: _o26 {_o26} {Application/LEACH} {start}
 3: _o26 {_o26} {Application/LEACH} {mac}
 4: _o26 {_o26} {Application/LEACH} {node}
*5: _o26 {_o26} {SplitObject} {unknown} {agent}
 10: if {0} {
set cls [$self info class]
global errorInfo
set savedInfo $erro...
dbg10.7> s
./leach_test: line 51:  1048 Aborted (core dumped) ns
tcl/ex/wir
eless_leach.tcl -sc mit/uAMPS/sims/nodescen -rp $alg -x $x -y $y -nn $nn
-stop $
stop -eq_energy $eq_energy -init_energy $init_energy -filename $filename
-dirnam
e $dirname -topo $topology_file -num_clusters $num_clusters -bs_x $bs_x
-bs_y $b
s_y 2>$dirname/$filename.err



i've installed ns2 and tcl-debugger in cygwin and fc6, I found the same
error.
thanks!







Re: [ns] Where to get Debugger for NS2 (ns-29-3, tcl8.4.11)?

2007-05-20 Thread Pedro Vale Estrela



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


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Timo Reimann
> Sent: sexta-feira, 18 de Maio de 2007 13:01
> To: ns-users@ISI.EDU
> Subject: Re: [ns] Where to get Debugger for NS2 (ns-29-3, tcl8.4.11)?
> 
> 
> Das Santos Kumar wrote:
> > Could you please mention me where to get NS debugger for ns-29-3
> > (tcl8.4.11)?
> 
> 
> For the compiled stuff, you just use any C/C++ debugger, like gdb or ddd.
> 
> For OTcl, there's a tcl debugger linked via the ns-2 webpage.
> 
> There's more information on this in the wiki ("Troubleshooting").
> 
> 
> --Timo





Re: [ns] improvement request to website/mailing list: add "posting rules" to mailing list page

2007-05-07 Thread Pedro Vale Estrela

Hi!

This message is 100% right. 
Please forward it to the ns-developers mailing list!

Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Timo Reimann
> Sent: domingo, 6 de Maio de 2007 17:45
> To: ns-users@ISI.EDU
> Subject: [ns] improvement request to website/mailing list: add "posting
> rules" to mailing list page
> 
> 
> Hiya,
> 
> this request goes out to the people maintaining the ns-2 webpage. The only
> maintenance info I've found on the website was this mailing-list address.
> If there is someone else to contact on this issue, please forward and/or
> let me know.
> 
> I've noticed that many people (likely most) make the same mistakes over
> and over again when posting to this list, such as not giving error
> messages, flagging their postings as urgent or generally asking questions
> that have been answered numerous times before and may be found in the
> archives.
> 
> While I know that this is a common problem among any user-directed
> mailing-list, I think a lot of redundant traffic may be avoided by
> pointing people on "when and how to write to the user's_mailing-list"
> instructions such as the one I've created in the wiki and reported on this
> list some weeks ago. The entry is this one:
> 
> http://nsnam.isi.edu/nsnam/index.php/Troubleshooting#when_and_how_to_write
> _to_the_user.27s_mailing-list
> 
> It seems to me that most people just skip the wiki information and go
> straight to the mailing list info here
> 
> http://www.isi.edu/nsnam/ns/ns-lists.html
> 
> which unfortunately lacks any advice on how to "behave" on the list.
> 
> Therefore, I'd like to recommend linking to the instruction from that
> mailing list page until the transition to the wiki is complete. A short
> line similar to what I've done in the wiki here
> 
> http://nsnam.isi.edu/nsnam/index.php/User_Information#Documentation
> (see "NS-related Mailing Lists" under "development help")
> 
> should suffice.
> 
> 
> Thanks,
> 
> --Timo




Re: [ns] compilation of .cc file

2007-04-09 Thread Pedro Vale Estrela



> Since people constantly fail to report in a useful manner, I've written a
> little "howto post the user's mailing-list" entry in the ns-wiki.
> 

good work. Added links to my otcl and c++ debugging, and "How To Ask
Questions The Smart Way"








[ns] NOAH: wrong node routing agent!

2007-04-09 Thread Pedro Vale Estrela


My upgraded version of FMIP for ns2.31 includes the NOAH agent as well.
http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html#_Toc147660119



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Akhilesh Kumar
> Sent: segunda-feira, 9 de Abril de 2007 4:42
> To: ns-users@ISI.EDU
> Subject: [ns] NOAH: wrong node routing agent!
> 
> 
> I configured the NOAH protocol in my NS2.31 according to given code.
> but is still giving error "wrong node routing agent!"
> 
> 
> 
> Makefile.inadd 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.tclline 191 (for v2.29 line 197): add source
> ../mobility/noah.tcl
> line 603ff (for v2.29 line 649ff): add
> 
>   NOAH {
>   set ragent [$self create-noah-agent $node]
>   }
> 
> line 768ff (for v2.29 line 839ff): 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
> }
> 
> _
> Voice your questions and our experts will answer them
> http://content.msn.co.in/Lifestyle/AskExpert/Default01.htm





[ns] PRELIMINARY FHMIP upgraded for ns2.31

2007-03-22 Thread Pedro Vale Estrela


PRELIMINARY FHMIP upgraded for ns2.31

I've upgraded the Robert Hsieh's FHMIP code in order to compile in latest
ns2.31. I've also added to it the modifications detailed in appendix B of
this report (Handover Blackout Duration of Layer 3 Mobility Management
Schemes",
http://www.tkn.tu-berlin.de/publications/papers/Handover_Blackout_Duration_o
f_L3_Mobility_Management_Schemes1.pdf)

However, when I've tried the HMIP part of the extension (the MAP), the
simulation continues to crash in a failed assert; however, I've tried the
FMIP part alone, and it seems to run OK.

__Please note that I did not test this extension any further__ 

To install: 
first, install NS-allinone-2.31; 
then, uncompress and apply the patch
(http://tagus.inesc-id.pt/~pestrela/ns2/files/ns2.31_fhmip.patch.gz)
, then reconfigure and recompile ns2 again. 
The original FHMIP example is located in /tcl/ex/fhmip 

ns2.31>  cat ns2.31_fhmip.patch | patch -p1

ns2.31>  ./configure --enable-debug

ns2.31>  make

ns2.31/tcl/ex/fhmip>  ../../../ns fhmip_simula.tcl


__again, Please note that I did not test this extension any further__

Pedro Vale Estrela
http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html#_Toc147660119




> Pedro Vale Estrela schrieb:
> > Hi all,
> > Previously, I've asked in the NS2 list if anyone had a copy of Robert
> > Hsieh's FHMIP NS2 extension for NS2.1b7; with the reply, I've updated my
> NS2
> > mobility page with the available source code:
> > http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html#_Toc147660119
> >
> > Currently, I'm trying to upgrade and put this extension to work.
> > I've already got it compiling in NS2.31, but when I run the
> __unmodified__
> > example (simula.tcl), I got this failed assertion:
> >
> > 
> > BS Setting up encapsulate mechanism [1.0.1]->[2.0.0]
> > 7.093759 HA 1.0.0 updated (FA 2.0.0), packet 32
> > 7.150404 BS 3.1.0 received reply from BS 1.0.0, packet 32
> > mipmh->coa_ 2.0.0   nodeaddr  3.1.0
> > ns: mobile/mip-reg.cc:261: virtual void MIPBSAgent::recv(Packet*,
> Handler*):
> > Assertion `miph->coa_ == nodeaddr' failed.
> > Aborted (core dumped)
> > 
> >
> > This happens in this part of the code:
> >
> > 
> > case MIPT_REG_REPLY:
> > {
> > #ifndef MIP_QUIET
> > printf("%f BS %s received reply from BS %s, packet %i\n",
> > Scheduler::instance().clock(),
> >Address::instance().print_nodeaddr(addr()),
> >Address::instance().print_nodeaddr(iph->saddr()), ch->uid());
> > // JCW
> > #endif
> >
> > assert(miph->coa_ == nodeaddr); // <<<< crashes here
> > tcl.evalf("%s get-link %d %d", name_, nodeaddr, miph->haddr_);
> > //
> > // XXX hacking mobileip. all this should go away
> > // when mobileIP for sun-wired model is no longer reqd.
> > //
> >     ...
> > 
> >
> > Thus, my questions are:
> > a) has somebody got an working FHMIP extension?
> > b) Is it necessary to modify simula.tcl or mip-reg.cc use another
> simulation
> > scenario, as to avoid this bug?
> >
> > If yes, please send me the modified code and I'll upgrade it to ns2.31,
> and
> > give credit to the person in my NS2 mobility page.
> >
> > Pedro Vale Estrela
> >
> >
> >




Re: [ns] Protocol

2007-03-22 Thread Pedro Vale Estrela

Have you asked of for the BCMP NS2 code to the authors of this paper?
http://comet.columbia.edu/~zoltan/ist_brain.pdf

one of them is from the same university as you...

Pedro Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Kok-Seng A. Hew
> Sent: quarta-feira, 21 de Março de 2007 19:28
> To: ns-users@ISI.EDU
> Subject: Re: [ns] Protocol
> 
> 
> Hi All,
> 
> 
> 
> I was wondering if anyone had the simulation code for the BCMP protocol or
> similar protocol of sorts.
> 
> 
> 
> Network
> 
> 
> 
> Domain 1
> Domain 2
> 
> 
> 
> 
> 
> Access Network 1  AN2  AN3
> AN4
> 
> 
> 
> 
> 
> Each access network has two access points (AP)
> 
> 
> 
> The mobile host moves fro AP1 to AP2 to AP3 and so forth.
> 
> 
> 
> 
> 
> Kok-Seng A. Hew
> 
> Undergraduate
> 
> B.Eng Electrical Engineering
> 
> 
> 
> King's College London
> 
> Strand,
> 
> London
> 
> WC2R 2LS
> 
> England
> 
> United Kingdom
> 
> 
> 
> Mobile: +44(0) 7775 755232
> 
> E-mail:   [EMAIL PROTECTED]
> 
> 




Re: [ns] FHMIP - anyone got the FHMIP extension to work? (coded by Robert Hsieh)

2007-03-22 Thread Pedro Vale Estrela

 

I’m not sure, but I think this error can be corrected by applying this patch
that I’ve described here:

http://mailman.isi.edu/pipermail/ns-users/2004-September/044531.html

 

(also see my nest post about FHMIP for ns2.31)

 

Pedro Vale Estrela

 

 

-Original Message-
From: shayma sinan [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 22 de Março de 2007 2:05
To: [EMAIL PROTECTED]
Subject: Re: FHMIP - anyone got the FHMIP extension to work? (coded by
Robert Hsieh)

 

Hi,

I am also facing a problem in running FHMIP package under ns2.28

i got the same error mentioned here

http://mailman.isi.edu/pipermail/ns-users/2005-August/051595.html

without modifying (simula.tcl)

 

hope you can find somebody to help... good luck!

 

regards,

Shayma

Pedro Vale Estrela <[EMAIL PROTECTED]> wrote:


Hi all,
Previously, I've asked in the NS2 list if anyone had a copy of Robert
Hsieh's FHMIP NS2 extension for NS2.1b7; with the reply, I've updated my NS2
mobility page with the available source code:
http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html#_Toc147660119

Currently, I'm trying to upgrade and put this extension to work. 
I've already got it compiling in NS2.31, but when I run the __unmodified__
example (simula.tcl), I got this failed assertion:


BS Setting up encapsulate mechanism [1.0.1]->[2.0.0]
7.093759 HA 1.0.0 updated (FA 2.0.0), packet 32
7.150404 BS 3.1.0 received reply from BS 1.0.0, packet 32
mipmh->coa_ 2.0.0 nodeaddr 3.1.0 
ns: mobile/mip-reg.cc:261: virtual void MIPBSAgent::recv(Packet*, Handler*):
Assertion `miph->coa_ == nodeaddr' failed.
Aborted (core dumped)


This happens in this part of the code:


case MIPT_REG_REPLY:
{
#ifndef MIP_QUIET
printf("%f BS %s received reply from BS %s, packet %i\n",
Scheduler::instance().clock(),
Address::instance().print_nodeaddr(addr()),
Address::instance().print_nodeaddr(iph->saddr()), ch->uid());
// JCW
#endif 

assert(miph->coa_ == nodeaddr); // <<<< crashes here
tcl.evalf("%s get-link %d %d", name_, nodeaddr, miph->haddr_);
//
// XXX hacking mobileip. all this should go away
// when mobileIP for sun-wired model is no longer reqd.
//
...


Thus, my questions are: 
a) has somebody got an working FHMIP extension? 
b) Is it necessary to modify simula.tcl or mip-reg.cc use another simulation
scenario, as to avoid this bug?

If yes, please send me the modified code and I'll upgrade it to ns2.31, and
give credit to the person in my NS2 mobility page.

Pedro Vale Estrela



 

  

  _  

Web email has come of age. Don't settle for less than the All
<http://us.rd.yahoo.com/mail/uk/taglines/gmail_com/nowyoucan/web_mail/*http:
/us.rd.yahoo.com/evt=40566/*http:/uk.docs.yahoo.com/nowyoucan.html>  New
Yahoo! Mail.



Re: [ns] problem with Scheduler(please see this code and tell memistake)

2007-03-22 Thread Pedro Vale Estrela



$ns at 0.2 "global k; set k 4"
$ns at 0.3 "glonal k; puts \"k=$k\""  


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Amin Irandoost
> Sent: quinta-feira, 22 de Março de 2007 15:18
> To: ns-users@ISI.EDU
> Subject: [ns] problem with Scheduler(please see this code and tell
> memistake)
> 
> 
> hi all
> what is problem this code?
> 
> set k 0
> 
> $ns at 0.2 "set k 4"
> 
> $ns at 0.3 "puts \"k=$k\""print 0 lieu 4 on screen !!!
> 
> 
> Thanks in advance
> 
> --
> Amin Irandoost




[ns] FHMIP - anyone got the FHMIP extension to work? (coded by Robert Hsieh)

2007-03-21 Thread Pedro Vale Estrela


Hi all,
Previously, I've asked in the NS2 list if anyone had a copy of Robert
Hsieh's FHMIP NS2 extension for NS2.1b7; with the reply, I've updated my NS2
mobility page with the available source code:
http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html#_Toc147660119

Currently, I'm trying to upgrade and put this extension to work. 
I've already got it compiling in NS2.31, but when I run the __unmodified__
example (simula.tcl), I got this failed assertion:


BS Setting up encapsulate mechanism [1.0.1]->[2.0.0]
7.093759 HA 1.0.0 updated (FA 2.0.0), packet 32
7.150404 BS 3.1.0 received reply from BS 1.0.0, packet 32
mipmh->coa_ 2.0.0   nodeaddr  3.1.0 
ns: mobile/mip-reg.cc:261: virtual void MIPBSAgent::recv(Packet*, Handler*):
Assertion `miph->coa_ == nodeaddr' failed.
Aborted (core dumped)


This happens in this part of the code:


case MIPT_REG_REPLY:
{
#ifndef MIP_QUIET
printf("%f BS %s received reply from BS %s, packet %i\n",
Scheduler::instance().clock(),
   Address::instance().print_nodeaddr(addr()),
   Address::instance().print_nodeaddr(iph->saddr()), ch->uid());
// JCW
#endif

assert(miph->coa_ == nodeaddr); // <<<< crashes here
tcl.evalf("%s get-link %d %d", name_, nodeaddr, miph->haddr_);
//
// XXX hacking mobileip. all this should go away
// when mobileIP for sun-wired model is no longer reqd.
//
...


Thus, my questions are: 
a) has somebody got an working FHMIP extension? 
b) Is it necessary to modify simula.tcl or mip-reg.cc use another simulation
scenario, as to avoid this bug?

If yes, please send me the modified code and I'll upgrade it to ns2.31, and
give credit to the person in my NS2 mobility page.

Pedro Vale Estrela





Re: [ns] ns/nam: respresentation problem when definingposition-fixed nodes (NEW question)

2007-03-21 Thread Pedro Vale Estrela


I' tried to add XY coordinates for wired nodes, but nam doesn't support this
facility.

Instead, I achieve the same result by setting the length of the wired links
via their delay

Pedro Vale Estrela
http://tagus.inesc-id.pt/~pestrela/ns2





> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Javier Chicote
> Sent: quarta-feira, 21 de Março de 2007 17:00
> To: ns-users@ISI.EDU
> Subject: Re: [ns] ns/nam: respresentation problem when definingposition-
> fixed nodes (NEW question)
> 
> 
> Hi ns-users,
> 
> I learnt that the previous problem can be "solved" by using 'orient'
> method at the link definition. However, this solution is not enough when
> defining more complex structures. The next figure shows 4 nodes standing
> in the imaginary vertexes of a square, which are all of them connected to
> a master node like it is shown in the next picture:
> 
>  node(1,0)node(1,1)
>   (0,100) (100,100)__
>  \___\__
>  \___   \_
>  \___ master
>_/(200,50)
>  _/ _/
> /  /
> (0,0)   (0,100)
>  node(0,0)   node(100,0)
> 
> ---> What I would like to know is if it is possible (or not) to define the
> geographic position of the nodes when the coordinates of them are known in
> a wired scenario, or other ideas to solve the problem.
> 
> This is the code of the file:
> 
> # Network configuration (x,y):## node(1,0)node(1,1)#  (0,100)
> (100,100)__# \___\__ # \___
> \_# \___ master#
> _/(200,50)# _/ _/#/
> /   #(0,0)   (0,100)# node(0,0)   node(100,0)#
> # Create a simulator instanceset ns [new Simulator]
> # Open the NAM trace fileset namfile [open position-out.nam w]$ns
> namtrace-all $namfile
> set rows2   ;# number of rowsset cols2
> ;# number of nodes per row
> # Define nodesfor {set i 0} {$i < $rows} {incr i} {for {set j 0}
> {$j < $cols} { incr j } {set node($i,$j) [$ns node]
> }}set master [$ns node]
> # Provide initial (X,Y,Z) co-ordinates for nodesfor {set i 0} {$i < $rows}
> {incr i} {set xj 0.0for {set j 0} {$j < $cols} { incr j }
> {$node($i,$j) set X_ $xjif {$i == 0} then
> { $node($i,$j) set Y_ 0.0} elseif {$i == 1} then {
> $node($i,$j) set Y_ 100.0 } $node($i,$j) set Z_ 0.0
> set xj [expr $xj + 200]}}$master set X_ 200.0$master set Y_
> 50.0$master set Z_ 0.0
> # Define links between nodes$ns duplex-link $node(0,0) $master 1Mb 100ms
> DropTail$ns duplex-link $node(0,1) $master 1Mb 100ms DropTail$ns duplex-
> link $node(1,0) $master 1Mb 100ms DropTail$ns duplex-link $node(1,1)
> $master 1Mb 100ms DropTail
> # Define link orientation$ns duplex-link-op $node(0,0) $master orient
> rigth-up$ns duplex-link-op $node(0,1) $master orient rigth$ns duplex-link-
> op $node(1,0) $master orient rigth$ns duplex-link-op $node(1,1) $master
> orient rigth-down
> # Define a 'finish' procedureproc finish {} {global ns tracefile
> namfile$ns flush-traceclose $namfile exec nam
> position-out.nam &exit 0}
> # Stop the simulation$ns at [expr 5.0 - 0.01] "puts \"Stopping
> Simulation...\" "$ns at 5.0 "finish ; $ns halt"
> # Start the simulationputs "Starting Simulation..."$ns run
> 
> 
> 
> - Mensaje original 
> De: Javier Chicote <[EMAIL PROTECTED]>
> Para: ns-users@isi.edu
> Enviado: miércoles, 21 de marzo, 2007 11:36:06
> Asunto: ns/nam: respresentation problem when defining position-fixed nodes
> 
> Hi ns-users,
> 
> I would like to simulate a position-fixed wired network with 2 lines and 3
> nodes per line, like it is shown above. The distance between the nodes
> should be 100 units (for example), so the first node of the matrix will be
> in (x=0,y=0) and the last node in (x=100, y=200).
> 
>  node(1,1) node(1,2)node(1,3)
>   (100,0)__(100,100)(100,200)
>   |||
>   |||
>   |||
>   |||
> (0,0)(0,100)__(0,200)
>  node(0,1) node(0,2)node(0,3)
> 
> When I do not define the links, the nodes are shown correctly in NAM
> (without lines between them), but when I make some of the link definitions
>

Re: [ns] No data transmission at all! Can you help me?

2007-03-21 Thread Pedro Vale Estrela


Hi
I've done this kind of stuff many times in the past 
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_beginners.html#_Toc128325750

I guess that you did not cloned ALL references from RED to MY_RED.

Do this to find all references to red:
ns> grep -d recurse -I "red" 

failing that, add breakpoints in DDD to check what parts of the code are
actually being executed in the simulation; you'll be surprised if packets
are dropped before your code, before your red classifier is invoked.

Pedro Vale Estrela




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of karen.yunqiu lee
> Sent: quarta-feira, 21 de Março de 2007 12:09
> To: ns-users@ISI.EDU
> Subject: [ns] No data transmission at all! Can you help me?
> 
> 
> Dear all,
> I've copied and modified red.h/.cc and added myred.h/.cc to NS. Other
> necessary changes have been done to the ns-default.tcl, etc.
> When making the files, there was no error at all. But during tcl
> simulation,
> the network was completely silent. There was no even one packet transferd.
> After I changed the queue management method in the router node in tcl from
> myred to RED, the network was alive and kicking again.
> I would like to be sure that this is only because of myred.cc/.h not any
> other modifications I've done, right? And why couldn't I get any notice
> when
> making files?
> And, usually, what error will cause this 0 packet transmission during
> simulation?
> :(
> 
> Kind regards,
> KL
> 
> _
> Get Hotmail, News, Sport and Entertainment from MSN on your mobile.
> http://www.msn.txt4content.com/




Re: [ns] Error in Object!!

2007-03-21 Thread Pedro Vale Estrela



You must either 

a) define the int hdr_akisprotocol_pkt::offset_ global variable in your
code. Check /common/packet.h for more details

or 

b) use the #define OFFSET(type, field) macro to do the same trick

this must be explained in the ns2 manual in the part of creating new headers

also check:
http://www.isi.edu/nsnam/ns/tutorial/nsnew.html#first

in this part: "The int 'off_ping_' will be used to access a packet's ping
header."

Pedro Vale Estrela


> -Original Message-
> From: Ioakeim Samaras [mailto:[EMAIL PROTECTED]
> Sent: quarta-feira, 21 de Março de 2007 11:02
> To: Pedro Estrela
> Subject: Error in Object!!
> 
> Hello. I would like to thank you for your help. I read carefully the pdf
> file from the location :
> http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf
> I followed all the steps described there for making my own protocol. I
> named the protocol instead of protoname, akisprotocol. I tried to
> compile it, and the compiler could not continue because of some small
> errors in the C++ code. I correct all that errors and I compile it again
> in both ns-2.27 and ns-2.30. But now the compiler says that there exist
> errors in object files. More specific, in both ns-2.27 and ns-2.30,
> after executing : touch common/packet.cc , make ,  I receive the
> following message :
> 
> trace/cmu-
> trace.o(.gnu.linkonce.t._ZN20hdr_akisprotocol_pkt6accessEPK6Packet+0xb):
> In function `hdr_akisprotocol_pkt::access(Packet const*)':: undefined
> reference to `hdr_akisprotocol_pkt::offset_'
> akisprotocol/akisprotocol.o(.gnu.linkonce.t._ZN23akisprotocolHeaderClassC1
> Ev+0x28):
> In function
> `akisprotocolHeaderClass::akisprotocolHeaderClass[in-charge]()'::
> undefined reference to `hdr_akisprotocol_pkt::offset_'
> collect2: ld returned 1 exit status make: *** [ns] Error 1
> 
> I also executed : configure, make clean, make ,   but still it finds the
> same errors.
> 
> I don't know how to solve this problem. Previously the compiler found
> errors in  .cc and .h  files which I corrected them all. But now it
> finds errors in object files(.o).
> I am quite disappointed.  Can you  help me please?  Any help would be
> appreciated. Thank you.
> 
> --
> Need cash? Apply now for a credit loan with fast approval
> http://tags.bluebottle.com/fc/CAaCMPJkvYIjBVjuielxhxyKD5MUIXe4/




Re: [ns] Disable ARP

2007-03-21 Thread Pedro Vale Estrela



This is interesting. In my particular simulation, neither version works:

mac_->hdr_dst((char*) HDR_MAC(p), ch->next_hop());

or 

mac_->hdr_dst((char*) HDR_MAC(p), dst);

However, the code that I've sent you always works, and does this:

When arp wants to resolve an IP address, it:
a) finds the host that has that IP address, 
b) goes to the first MAC interface, 
c) and returns its mac address.

To ease the coding of this stuff, I'm doing this via otcl, where is MUCH
easier (1) to do this kind of stuff, that depends on global variables, etc;
If speed is a problem (this happens for every forwarded packet), it could be
done in C++ only, of course.


Pedro Vale Estrela


Note 1: this only happens after one has major experience hacking otcl code!


> -Original Message-
> From: Ahmad Khayyat [mailto:[EMAIL PROTECTED]
> Sent: quarta-feira, 21 de Março de 2007 0:51
> To: [EMAIL PROTECTED]
> Subject: Re: [ns] Disable ARP
> 
> Hi Pedro,
> 
> Thank you for the valuable help.
> Actually, I am using the following three lines at the top of
> ARPTable::arpresolve
> with no problems so far. They just happened to trigger another nasty
> bug in my code that I like to believe I have taken care of ;)
> 
> hdr_cmn *ch = HDR_CMN(p);
> mac_->hdr_dst((char*) HDR_MAC(p), ch->next_hop());
> return 0;
> 
> I am using this with both NOAH and AODV over significantly modified
> WPAN MAC.
> 
> I appreciate you sharing your fix with me, and will keep it in mind in
> case problems arise later.
> 
> Regards,
> Ahmad
> 
> On Tue, 20 Mar 2007 23:29:38 -
> "Pedro Vale Estrela" <[EMAIL PROTECTED]> wrote:
> 
> >
> > I've got the same problem, and using this code does not solve the
> > problem for all cases (in my particular simulation)
> >
> > Instead, I'm using this with great success:
> >
> > In C++, at the top of  ARPTable::arpresolve , insert this code that
> > requires #include "utils_ns.h" (see
> > http://tagus.inesc-
> id.pt/~pestrela/ns2/contributed_code.html#_Toc147652229)
> >
> > --- cut here ---
> >
> > TCL_EVALFr("ARP_find_mobile_iaddr2mac %d", dst);
> > LL *ll = (LL *)TclObject::lookup(Tcl::instance().result());
> >
> > if(!ll){
> > dprintf("Error: LL empty\n");
> > exit(-1);
> > }
> >
> > int mac = ll->mac_->addr();
> > mac_->hdr_dst((char*) HDR_MAC(p), mac);
> > return 0;
> >
> > --- cut here ---
> >
> >
> > then, add this tcl code to your script or /tcl/lib/ns-lib.tcl. I'm
> > not sure, but this code MIGHT require the NOAH extension because that
> > for {set i 0} { $i < [Node set nn_] loop.
> >
> >
> > --- cut here ---
> >
> >
> > # Given the node handle, return the haddr, iaddr or ID
> > proc NOAH_handle2iaddr { handle } {
> >
> > if { $handle == "-1" } {
> > return "-1"
> > }
> >
> > set iaddr [$handle address?]
> > return $iaddr
> > }
> >
> >
> >
> > #
> > # Given the node's address in haddr, iaddr or ID, search and return
> > the handle
> > # (TODO:) create an array at creation to store these pairs for faster
> > lookup #
> > proc NOAH_iaddr2handle { node_iaddr } {
> > if { $node_iaddr == "-1" } {
> > return "-1"
> > }
> >
> > set ns_ [Simulator instance]
> >
> > for {set i 0} { $i < [Node set nn_]} {incr i} {
> > set node_handle [$ns_ set Node_($i)]
> >
> > if {[string compare [NOAH_handle2iaddr $node_handle]
> > $node_iaddr] == 0} {
> > return $node_handle
> > }
> > }
> >
> > return "-1"
> > }
> >
> >
> > ##
> > ## PROC: returns the handle of a given NODE, by its iaddress
> > ##
> >
> > ## FIXME: assume itf(0), codigo C++ devolve mac dessa interface
> > ##
> > ## this code is used by the disabled ARP (option 2)
> > proc ARP_find_mobile_iaddr2mac { iaddr } {
> > set ns_ [Simulator instance]
> > set MH_node_handle [NOAH_iaddr2handle $iaddr]
> >
> > set ll [$MH_node_handle set ll_(0)]
> >
> > #puts "found: $MH_node_handle $ll"
> > return $ll
> > }
> >
> > --- cut here ---
> >
> >
> >
> >
> >
> >
> > -
> >
> > Re: [ns] Disable ARP
> > Ahmad Khayyat
> > Wed, 28 Feb 2007 02:27:15 -0800
> >

Re: [ns] Disable ARP

2007-03-20 Thread Pedro Vale Estrela


I've got the same problem, and using this code does not solve the problem
for all cases (in my particular simulation)

Instead, I'm using this with great success:

In C++, at the top of  ARPTable::arpresolve , insert this code that requires
#include "utils_ns.h" (see
http://tagus.inesc-id.pt/~pestrela/ns2/contributed_code.html#_Toc147652229)

--- cut here ---

TCL_EVALFr("ARP_find_mobile_iaddr2mac %d", dst);
LL *ll = (LL *)TclObject::lookup(Tcl::instance().result());

if(!ll){
dprintf("Error: LL empty\n");   
exit(-1);
}

int mac = ll->mac_->addr();
mac_->hdr_dst((char*) HDR_MAC(p), mac);
return 0;

--- cut here ---


then, add this tcl code to your script or /tcl/lib/ns-lib.tcl. I'm not sure,
but this code MIGHT require the NOAH extension because that 
for {set i 0} { $i < [Node set nn_] loop.


--- cut here ---


# Given the node handle, return the haddr, iaddr or ID
proc NOAH_handle2iaddr { handle } {

if { $handle == "-1" } {
return "-1"
}

set iaddr [$handle address?]
return $iaddr
}



#
# Given the node's address in haddr, iaddr or ID, search and return the
handle
# (TODO:) create an array at creation to store these pairs for faster lookup
#
proc NOAH_iaddr2handle { node_iaddr } {
if { $node_iaddr == "-1" } {
return "-1"
}

set ns_ [Simulator instance]

for {set i 0} { $i < [Node set nn_]} {incr i} {
set node_handle [$ns_ set Node_($i)]

if {[string compare [NOAH_handle2iaddr $node_handle]
$node_iaddr] == 0} {
return $node_handle
}
}

return "-1"
}


##
## PROC: returns the handle of a given NODE, by its iaddress
##

## FIXME: assume itf(0), codigo C++ devolve mac dessa interface
##
## this code is used by the disabled ARP (option 2)
proc ARP_find_mobile_iaddr2mac { iaddr } {
set ns_ [Simulator instance]
set MH_node_handle [NOAH_iaddr2handle $iaddr]

set ll [$MH_node_handle set ll_(0)]

#puts "found: $MH_node_handle $ll"
return $ll
}

--- cut here ---






-

Re: [ns] Disable ARP
Ahmad Khayyat
Wed, 28 Feb 2007 02:27:15 -0800

Never mind.
The two lines work perfectly. They just happened to trigger another
problem, which is taken care of now :)

On Tue, 27 Feb 2007 18:27:37 -0500
Ahmad Khayyat <[EMAIL PROTECTED]> wrote:

> What is the easiest way to disable the use of the ARP protocol?
> I guess the IP address corresponds to the MAC address in ns-2, doesn't
> it? So how do I make the LL/ARP modules use it immediately without
> using ARP?
> 
> I tried adding the following two lines at the top of
> ARPTable::arpresolve(nsaddr_t dst, Packet *p, LL *ll)
> 
> mac_->hdr_dst((char*) HDR_MAC(p), dst);
> return 0;
> 
> but that caused strange behaviour on rare occasions, where a packet
> suddenly would appear in another far node. Playing with ARP doesn't
> explain the problem for me, but somehow removing those two lines
> gets rid of the strange behaviour. So, what is a proper way of
> disabling ARP?
> 
> Thanks..
> Ahmad




Re: [ns] Please help me

2007-03-20 Thread Pedro Vale Estrela

Normally you want to do the opposite: cal otcl in c++ and get the returned
string.

For that you should use the macros in my file ns_utils.cc
http://tagus.inesc-id.pt/~pestrela/ns2/contributed_code.html#_Toc147652229

eg:
TCL_EVALF("%s some_instproc %d", name(), MH_iaddr);
assert( *TCL_RESULT );
etimip_RO_id = atoi(TCL_RESULT);

--

for your particular problem, you should use the Command() interface that all
c++  objects have


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Amin Irandoost
> Sent: terça-feira, 20 de Março de 2007 22:14
> To: ns-users@ISI.EDU
> Subject: [ns] Please help me
> 
> 
> hi all
> in general
> 
> how to capture return value of c++ function in tcl?
> --
> Amin Irandoost




Re: [ns] [NS-2] The most recent tcl-debug manual

2007-03-19 Thread Pedro Vale Estrela

 

Hi,

 

I've checked your installation manual. It looks great! 

 

Many thanks for the effort of contributing to the ns2 community
documentation; of course that I'll mention your work in my debugging pages!

 

Pedro Vale Estrela

 <http://tagus.inesc-id.pt/~pestrela/ns2>
http://tagus.inesc-id.pt/~pestrela/ns2

 

 

This semester I updated the tcl-debug installation manual.

..

This manual is written BOTH Linux and cygwin in mind.

This should work both for 2.30, 2.29, and 2.28.

The link is given below.

2.30

 
<http://web.umr.edu/~tk424/CpE_EE401_1A_Spring_2007/Handouts/Programs/tclDeb
ugger/tcl-debug_installation_manual.pdf>
http://web.umr.edu/~tk424/CpE_EE401_1A_Spring_2007/Handouts/Programs/tclDebu
gger/tcl-debug_installation_manual.pdf

For your convenience, I have included the same manual with previous
versions.

These links are included in the above manual.

2.29

 <http://mailman.isi.edu/pipermail/ns-users/2006-January/053760.html>
http://mailman.isi.edu/pipermail/ns-users/2006-January/053760.html

2.28

 <http://mailman.isi.edu/pipermail/ns-users/2005-June/050495.html>
http://mailman.isi.edu/pipermail/ns-users/2005-June/050495.html

 

Tae-Hyung Kim

Ph.D. candidate
Dept. of Electrical & Computer Engineering
University of Missouri, Rolla

Applied Computational Intelligence Laboratory
G11 Emerson Electric Co. Hall
1870 Miner Circle Rolla, MO 65409-0040

 



Re: [ns] flooding.tcl (hierarchical network)

2007-03-08 Thread Pedro Vale Estrela



Check my page http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html
about my address conversion functions

Pedro Vale Estrela


Type of Addresses that a node can have in NS2 (hAddr, ID, iAddr, Handle) 
In NS2, a node can be uniquely identified by several forms

the "handle" is the otcl name; it refers to an object of the form "_oXXX",
and because of this, it is the only form can be used to directly call
internal instprocs and variables.
the "haddr" is the Hierarchical address, on the form "X.Y.Z" 
the "iaddr" is the INTEGER hierarchical address, where the haddr string is
simply ENCODED in a 32 bit integer.
the "id" is the sequential Node ID of the simulator.

The proposed variable names and contents are outlined in the following
table. 
For unknown nodes or in error conditions, the value "-1" is generally used. 

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

In my ns2_shared_procs.tcl "utils" tcl file, I introduce procs for all
possible conversions of each form, using the procs "handle2iaddr",
"handle2haddr", "handle2id", etc. 




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of feel2chat
> Sent: quinta-feira, 8 de Março de 2007 20:52
> To: ns-users@ISI.EDU
> Subject: Re: [ns] flooding.tcl (hierarchical network)
> 
> 
> Will the problem was in a hierarchical network the addresses are
> represented
> as doted string (i.e. 0.8.1) so you need to convert the address to int in
> the script.
> 
> to convert the address use something like this:
> 
> set addressObj [[$ns get-AllocAddrBits ""] get-Address]
> set ip [$addressObj str2addr $addr]
> 
> cheers,
> Z
> 
> On 2/25/07, feel2chat < [EMAIL PROTECTED]> wrote:
> >
> > I have been trying to run the flooding.tcl example but using a
> > hierarchical network (created using sgb2hierns), yet it didn't work.
> >
> > It seems the code does not find the right neighbour nodes, I wonder what
> > I'm missing?
> >
> > The example work perfect on a flat network.
> >
> > Cheers,
> > Z
> >




Re: [ns] help for implementation of the DCCP in NS

2007-03-08 Thread Pedro Vale Estrela


Have you tried this code?
http://lifc.univ-fcomte.fr/~dedu/ns2/


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of zhang victor
> Sent: quarta-feira, 7 de Março de 2007 3:39
> To: ns-users@ISI.EDU
> Subject: [ns] help for implementation of the DCCP in NS
> 
> 
> Hi,guys:
> 
>  I am trying to implement the DCCP in NS, does anyone have implemented
> it? and willing to share the source code and the detail implementation
> method.
> 
> all the bests
> 
> victor zhang




[ns] combined wireless and wired nodes in the same simulated topolgy

2007-02-28 Thread Pedro Vale Estrela



I've a lot of experience using this scnenario with single-hop, using the
NOAH adhoc agent. I have no experience in multihop.

Suggestions
a) creating only N1 to N4 nodes works?
b) same, adding BS?
c) same, adding M1 and a wired link?
d) use my simplified hierachical address tcl procs creation 
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html

d) install my otcl debugging utilities, then find the tcl proc that gives
the error (in the initialization), then find a way to ignore the offending
node in the LS routing initialization (should be node M1, I think)


Pedro Vale Estrela
http://tagus.inesc-id.pt/~pestrela/ns2/



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
> Behalf Of Ramzi Tka
> Sent: quarta-feira, 28 de Fevereiro de 2007 21:23
> To: ns-users@ISI.EDU
> Subject: [ns] combined wireless and wired nodes in the same simulated 
> topolgy
> 
> 
> Hi all,
> Is it possible to simulate a wired-cum-wireless network composed by 
> several wireless nodes that run a given routing protocol and several 
> wired nodes partially meshed ( not all them are connected to the BS) . 
> Could these wired
> nodes use any routing protocol, or there is some contraints or problems
> for.
> I have tried with the ns-2  basic LS protocol . It doesn't function.
> The topology is the followin
> 
>M1N2
>*   *
>  *  *
>M2   BS * * * * * N1 * N4
>  *   *
> *  *
> M3N3
> 
> 
> I activated LS for bstation, sinkNode, sinkNode1, sinkNode2 and 
> sinkNode3 and assigned the relative cost for their links.
> --
> 
> ---
> $ns rtproto LS  $bstation $sinkNode $sinkNode1 $sinkNode2 $sinkNode3
> 
>   $ns cost $bstation $sinkNode 1
>   $ns cost $sinkNode $bstation 1
> 
>   $ns cost $sinkNode $sinkNode1 1
>   $ns cost $sinkNode1 $sinkNode  1
> 
>   $ns cost $sinkNode $sinkNode2 2
>   $ns cost $sinkNode2 $sinkNode 2
> 
>   $ns cost $sinkNode1 $sinkNode3 1
>   $ns cost $sinkNode3 $sinkNode1 1
> 
>   $ns cost $sinkNode2 $sinkNode3 2
>   $ns cost $sinkNode3 $sinkNode2 2
> --
> 
> ---
> 
> and I used hierarchical routing adressing :
> ---
> $ns node-config -addressType hierarchical
> AddrParams set domain_num_ 2;# domain number
> lappend cluster_num 1 1 ;# cluster number
> for each domain
> AddrParams set cluster_num_ $cluster_num
> #lappend eilastlevel 1 [expr ($nb_mn+1)];# number of nodes
> for each cluster (1 for sink and one for mobile nodes + base station
> lappend eilastlevel 4 [expr ($nb_mn+1)] ;# number of nodes
> for each cluster (4 for sink and one for mobile nodes + base station 
> AddrParams set nodes_num_ $eilastlevel
> 
> #creates the sink node in first addressing space.
> set sinkNode [$ns node 0.0.0]
> set sinkNode1 [$ns node 0.0.1]
> set sinkNode2 [$ns node 0.0.2]
> set sinkNode3 [$ns node 0.0.3]
> set sinkNode4 [$ns node 0.0.4]
> 
> for {set i 0} {$i < $nb_mn} {incr i} {
> set wl_node_($i) [$ns node 1.0.[expr $i + 1]]   ;# create the node
> with given @.
> $wl_node_($i) random-motion 0   ;# disable random
> motion
> $wl_node_($i) base-station [AddrParams addr2id [$bstation 
> node-addr]] }
> ---
> 
> The error message was :
> --
> 
> 
> wrong # args: should be "set varName ?newValue?"
> while executing
> "set nodeslist _o60 _o15 _o23 _o31 _o39"
> ("eval" body line 1)
> invoked from within
> "eval "set nodeslist $args""
> (procedure "Agent/rtProto/LS" line 5)
> (Agent/rtProto/LS init-all line 5)
> invoked from within
> "Agent/rtProto/LS init-all _o60 _o15 _o23 _o31 _o39"
> ("eval" body line 1)
> invoked from within
> "eval Agent/rtProto/$proto init-all $rtprotos_($proto)"
> ("foreach" body line 2)
> invoked from within
> "foreach proto [array names rtprot

Re: [ns] MASH Inspector (nstk?) problems

2007-02-07 Thread Pedro Vale Estrela


This is very strange :)

Actually, the screenshot of step 4 is what happens after clicking in one of
the classes; 
This is the first thing that happens, and is exactly like yours 
http://tagus.inesc-id.pt/~pestrela/ns2/step4_very_start.PNG

I can only think of you to upgrade your TK version 
(I'm using 8.4.11, and the guide was made in linux using 8.4.5). You are
currently using 8.4.7.

test b) showed that nstk is processing the TK commands well. 
So, this should be a problem of some command contained in Mash inspector
itself. 
The problem is that MashInspector doesn’t run in wish because it lacks otcl.
(you could try to compile Mash itself, but it will not be easy).

Its probably faster to get a linux machine, patch it according to my guide,
and try the inspector; 
after that, you can evaluate the inspector's capabilities for yourself, and
decide if it is worth the effort to try to find the bug.

Pedro Estrela





-Original Message-
From: Andrés Emilio Arcia Moret [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 7 de Fevereiro de 2007 21:36
To: [EMAIL PROTECTED]
Cc: ns-users@isi.edu
Subject: Re: [ns] MASH Inspector (nstk?) problems

Hello,

So far I have done both tests that you requested and both have executed
neatly.

Answer for question a): yes it works.

http://webdelprofesor.ula.ve/ingenieria/amoret/question_a.png   

Answer for question b): yes it works for both. 

http://webdelprofesor.ula.ve/ingenieria/amoret/question_b.png  

However, I get this weird behavior for the MASH inspector. The inspector
shows up when called but once I try to roll down the scrollbar, the whole
thing hangs. Also, from the very beginning the inspector is not showing 
what it should (at least what you show at:
http://tagus.inesc-id.pt/~pestrela/ns2/step4.PNG). By the way, I tried one
script for testing scrollbars in nstk and worked well.

The result is at:

http://webdelprofesor.ula.ve/ingenieria/amoret/smashed_mash.png 

Thanks for your help.
On 2/7/07, Pedro Vale Estrela <[EMAIL PROTECTED]> wrote:

Hi

Regarding the nstk, what I've done is to clone the wish.c file from a very
recent TCL distribution (I guess the one that came with NS2.29 all in one),
and merged it with the NS2 code (tclappinit.cc ).

a) Can you run the TKcon console?
http://tagus.inesc-id.pt/~pestrela/ns2/step3.PNG

b) find any simple TK command that works in your "wish" version, and try it 
in nstk. Does it work?

(I've made nstk in a linux PC, running debian distribution and NS_all_in_one
2.29)

Other users that have successfully installed "nstk", please comment on this
topic! 

Pedro Vale Estrela


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On
Behalf
> Of Andrés Emilio Arcia Moret
> Sent: quarta-feira, 7 de Fevereiro de 2007 17:22
> To: ns-users@ISI.EDU
> Subject: [ns] MASH Inspector (nstk?) problems 
>
>
> Hi everyone,
>
> I just did all the steps nicely explained in the Pedro Estrela's
> homepage to work with the debugger. All installation steps work well
> (show no error messages). However, when testing the MASH Inspector as 
> indicated, the MASH window starts "trembling" at the right border and
> couple of seconds later nstk hangs.
>
> I am using a MacBook Pro/OS X and ns-2.30.
>
> I guess is the wish version that the nstk takes by default, which is 
> not using plain X11 windows. So, I don't know how to generate an
> "nstk" with the X11 wish version. This is, at least, to see if the tk
> version is the one with the problem.
>
> Any help would be appreciated.
>
> --
> Andrés Arcia



-- 
--
Andrés Arcia 




Re: [ns] MASH Inspector (nstk?) problems

2007-02-07 Thread Pedro Vale Estrela


Hi

Regarding the nstk, what I've done is to clone the wish.c file from a very
recent TCL distribution (I guess the one that came with NS2.29 all in one),
and merged it with the NS2 code (tclappinit.cc).

a) Can you run the TKcon console? 
http://tagus.inesc-id.pt/~pestrela/ns2/step3.PNG

b) find any simple TK command that works in your "wish" version, and try it
in nstk. Does it work?

(I've made nstk in a linux PC, running debian distribution and NS_all_in_one
2.29)

Other users that have successfully installed "nstk", please comment on this
topic!

Pedro Vale Estrela


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Andrés Emilio Arcia Moret
> Sent: quarta-feira, 7 de Fevereiro de 2007 17:22
> To: ns-users@ISI.EDU
> Subject: [ns] MASH Inspector (nstk?) problems
> 
> 
> Hi everyone,
> 
> I just did all the steps nicely explained in the Pedro Estrela's
> homepage to work with the debugger. All installation steps work well
> (show no error messages). However, when testing the MASH Inspector as
> indicated, the MASH window starts "trembling" at the right border and
> couple of seconds later nstk hangs.
> 
> I am using a MacBook Pro/OS X and ns-2.30.
> 
> I guess is the wish version that the nstk takes by default, which is
> not using plain X11 windows. So, I don't know how to generate an
> "nstk" with the X11 wish version. This is, at least, to see if the tk
> version is the one with the problem.
> 
> Any help would be appreciated.
> 
> --
> Andrés Arcia




Re: [ns] (hier-rtg-100.tcl) doesnt run!?

2007-02-01 Thread Pedro Vale Estrela


If that script is not in /tcl/test, it  is not part of the standard test
suites, and thus it can be outdated. 

Try to find the equivalent script (for hierarchial tests) in this directory
that is guaranteed to run

Also, check
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html

Pedro Vale Estrela



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of feel2chat
> Sent: quarta-feira, 31 de Janeiro de 2007 16:36
> To: ns-users@ISI.EDU
> Subject: [ns] (hier-rtg-100.tcl) doesnt run!?
> 
> 
> Hi,
> 
> Each time I run the script hier-rtg-100.tcl (which comes with ns-allinone)
> it gives me the following error, I wonder whats the problem??
> 
> =
> Sim.: utime/stime: 147 9stack/heap: -6976 1892352
> Creating hierarchical nodes..
> 0...Creating links 0...
> 
> (_o3 cmd line 1)
> invoked from within
> "_o3 cmd duplex-link-of-interfaces _o14 _o614 5Mb 410ms DropTail"
> 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 "_o3" line 2)
> (SplitObject unknown line 2)
> invoked from within
> "$ns duplex-link-of-interfaces $n(0) $n(75) $linkBW 410ms DropTail"
> (procedure "create-hier-topology" line 126)
> invoked from within
> "create-hier-topology $linkBW"
> (file "hier-rtg-100.tcl" line 15)
> =
> 
> Any hints or ideas in solving this annoying problem will be appreciated..
> 
> Thank you,
> Zee




Re: [ns] What is error CBK?

2007-02-01 Thread Pedro Vale Estrela


Do:
"grep "CBK" */*"

result:
doc/mobility.tex:\item["CBK"]  DROP\_RTR\_MAC\_CALLBACK
...
trace/cmu-trace.h:#define DROP_RTR_MAC_CALLBACK   "CBK"   // MAC
callback



then:
[EMAIL PROTECTED]:C:[cims]$ grep "DROP_RTR_MAC_CALLBACK" */*
aodv/aodv.cc: drop(p, DROP_RTR_MAC_CALLBACK);
aodv/aodv.cc:drop(p, DROP_RTR_MAC_CALLBACK);
aodv/aodv.cc:drop(p, DROP_RTR_MAC_CALLBACK);
aodv/aodv.cc:drop(p, DROP_RTR_MAC_CALLBACK);
aodv/aodv.cc: drop(p, DROP_RTR_MAC_CALLBACK);
aodv/aodv.cc:   dr


Pedro Vale Estrela


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Vijay Ghorpade
> Sent: quarta-feira, 31 de Janeiro de 2007 5:39
> To: ns_users
> Subject: [ns] What is error CBK?
> 
> 
>   Hi,
>  I am using ns-2.28 mobile nodes and generating a trace file with new-
> trace. In the trace file i found that some packets are getting dropped and
> the reason is CBK.
>  What is correct meaning of CBK?
>  How to avoid CBK errors in a network?
>  Why such type of errors occur?
> 
> Regards
> 
> Vijay




Re: [ns] HMIPv6 extension

2007-01-30 Thread Pedro Vale Estrela

I see

 

For ipv6, you need to extend the mobiwan v6 code for suppoting hmipv6

 

Pedro estrela

 

 

-Original Message-
From: - bagioris - [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 30 de Janeiro de 2007 8:59
To: ns-users@isi.edu
Cc: [EMAIL PROTECTED]
Subject: RE: [ns] HMIPv6 extension

 

hi,
thanks for your reply. i am aware of both your web page and the CIMS
extension, but i think both of them refer to IPv4.
i need the IPv6 version...


bagioris

  _  

> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]; ns-users@ISI.EDU
> Subject: RE: [ns] HMIPv6 extension
> Date: Mon, 29 Jan 2007 20:41:40 +
> 
> 
> The page containing the FHMIP extension is long gone. 
> However, recently, a NS2 user has sent me one snapshot of it (check below)
> 
> Besides fHMIP, another HMIP extension is also present in the original CIMS
> package from Columbia university.
> 
> http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html
> 
> I'm building and maintaining a full mirror of all NS2 mobility code that
I'm
> aware of. If anyone has comments on this, or more recent versions, please
> contact me!
> 
> Pedro Vale Estrela
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf
> > Of - bagioris -
> > Sent: segunda-feira, 29 de Janeiro de 2007 18:25
> > To: ns-users@ISI.EDU
> > Subject: [ns] HMIPv6 extension
> > 
> > 
> > hi all,i'm looking for the HMIPv6, FMIPv6 ns-2 extensions.I've seen a
lot
> > of posts also asking, but no real result...Everyone is mentioning
Hsieh's
> > implementation, but there's no active linkIf anyone has something,
please
> > share it...bagioris
> > _
> > Turn searches into helpful donations. Make your search count.
> >
http://click4thecause.live.com/search/charity/default.aspx?source=wlmemtag
> > line_donation
> 

  _  

Get connected - Use your Hotmail address to sign into Windows Live Messenger
now. Connect now! <http://get.live.com/messenger/overview> 



Re: [ns] node entry?

2007-01-29 Thread Pedro Vale Estrela

You can use my otcl debugger facilities to check the state of the internal
otcl variables after this code

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

Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of daft
> Sent: segunda-feira, 29 de Janeiro de 2007 20:16
> To: ns-users@ISI.EDU
> Subject: [ns] node entry?
> 
> 
> 
> Hi
> 
> I'm trying to swap out the default classifier in a node for my own agent.
> The following code inserts my agent into the entry point of the node...
> 
> # Create CSG
> set agt [new Agent/MyAgent]
> puts "Node entry: [$n1 entry] agt entry: [$agt target]"
> $ns attach-agent $n1 $agt
> $n1 insert-entry [new RtModule] $agt "target"
> puts "Node entry: [$n1 entry] agt entry: [$agt target]"
> 
> The final puts statement shows that the entry point of $n1 is correctly
> assigned to $agt, and the agents target is set to the original classifier
> (which is the behaviour I'm after).
> 
> However when I send a packet to $n1 the original classifier is invoked
> first, and if I send a packet through $n1 the original classifer is used
> and
> my agent is never invoked.
> 
> Any ideas what's going wrong/on?
> 
> Thanks
> 
> Tim
> 
> 
> --
> View this message in context: http://www.nabble.com/node-entry--
> tf3138100.html#a8696964
> Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] HMIPv6 extension

2007-01-29 Thread Pedro Vale Estrela


The page containing the FHMIP extension is long gone. 
However, recently, a NS2 user has sent me one snapshot of it (check below)

Besides fHMIP, another HMIP extension is also present in the original CIMS
package from Columbia university.

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

I'm building and maintaining a full mirror of all NS2 mobility code that I'm
aware of. If anyone has comments on this, or more recent versions, please
contact me!

Pedro Vale Estrela

 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of - bagioris -
> Sent: segunda-feira, 29 de Janeiro de 2007 18:25
> To: ns-users@ISI.EDU
> Subject: [ns] HMIPv6 extension
> 
> 
> hi all,i'm looking for the HMIPv6, FMIPv6 ns-2 extensions.I've seen a lot
> of posts also asking, but no real result...Everyone is mentioning Hsieh's
> implementation, but there's no active linkIf anyone has something, please
> share it...bagioris
> _
> Turn searches into helpful donations. Make your search count.
> http://click4thecause.live.com/search/charity/default.aspx?source=wlmemtag
> line_donation




Re: [ns] How to disable all the trace outputs

2007-01-18 Thread Pedro Vale Estrela


a) Don't call "ns trace-all" or a similar lines
b) write the trace to /dev/null


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of babak
> Sent: quinta-feira, 18 de Janeiro de 2007 10:47
> To: ns-users@ISI.EDU
> Subject: [ns] How to disable all the trace outputs
> 
> 
> Dear All,
> 
> I'm simulating a wireless network with 500 nodes. I have turned off all
> the trace options in my tcl file. However, still lines are appending to
> the output file and after a while the file gets huge. It really make the
> simulation slow.
> 
> Does anybody know how can I turn off tracing completely?
> 
> Thanks for your attention
> Babak.





Re: [ns] NS tutorial update proposal

2007-01-16 Thread Pedro Vale Estrela


To Joachim: Many thanks for your documentation efforts

To all other NS2 users, especially for the recent ex-beginners:
__Please contribute to the NS2 Wiki__ with your experiences and conclusions.
More info: http://mailman.isi.edu/pipermail/ns-users/2006-June/056015.html

(Comments are inline)

> -Original Message-
> From: Joachim Fabini [mailto:[EMAIL PROTECTED]
> Sent: sexta-feira, 12 de Janeiro de 2007 11:00
> To: 'Pedro Estrela'
> Cc: ns-users@isi.edu; 'Joachim Fabini'
> Subject: RE: [ns] NS tutorial update proposal
> 
> Hi Pedro,
> 
> > You are, of course, 100% correct - the tutorial is outdated
> > and its very confusing to first time users.
> >
> > One problem is that, in general, NS2 users ask much, but
> > contribute little when they have their questions solved -
> > either by the help of somebody, or by their own.
> 
> Your statements match very close my first impression as NS2
> newbie. Reading through the mailing list archive helps, but
> I also noticed that - compared to other groups - there are very,
> very few people (won't mention names ;) who regularily answer
:-)

> questions - thanks to you and to the other members for their
> help and time.
:-)
 
> As about the reason for the rather low feedback on the mailing
> list I can only speculate: on one hand, the plain NS is pretty
> complex, and people new to NS seem to try the "minimum effort
> approach" - instead of searching through the archive they
> immediately send their question to the list. This yields a high
> ratio of "noise" traffic. As soon as users become familiar with
> NS they focus on their specific task and many of them no longer
> actively participate in the list. On the other hand
exactly!


> the high number of patches, releases, and variants (moreover the
> incompatibility of some of these patches with each other) make
> answering questions on NS more difficult.
Also true

> In addition it seems to me that NS is used mainly in the academic
> field, where people usually leave after having completed their
> project (paper, thesis, etc.) - sadly enough sometimes without
> leaving behind any usable documentation of their patches/modules.
> 
> So it's up to us (academics, be it students or supervisors) to
> make sure that we contribute something back to the community -
> and prepare students for real life by forcing them to document
> what they have done and giving this back to the community.
100% agreed

> Only as an example, regarding chapter VII of Marc's tutorial -
> in half an hour the person who changed the ping sources and
> included the sources into the NS distribution could also have
> updated the related web pages. If someone else is expected to
> do this, it takes him definitely longer to find out what
> exactly was changed and why... I tried to include all details
> that I have noticed into my posting but I'm almost sure that I
> skipped some.

Regarding this particular case, I think that first this useful info should
be stored on the NS2 wiki ASAP. At that time, I'll have no problems asking
on the NS-Developers Mailing list for someone with write access to put a
link informing where the updates and changes are located in the NS2 wiki.

Besides that, I think that the best way to maintain this and other parts of
the documentation, would be to port the whole tutorial to the NS2 wiki and
automatically redirect the existing page at
http://www.isi.edu/nsnam/ns/tutorial/

Again, I can ask on the developers mailing list for it, when the information
is ready at the wiki.

> > Some examples from my personal experience:
> > http://mailman.isi.edu/pipermail/ns-users/2006-June/056015.html
> > http://mailman.isi.edu/pipermail/ns-users/2006-January/053560.html
> 
> Yes, it's sad - but I repeat myself: the problem is that those
> who have gained a medium level of experience in NS and who have
> used the work of all previous NS developers are the target group
> for these contributions - having spent two days on NS does not
> give me the experience to find out all changes (and the reason
> for these changes).
Naturally.

> > Regarding this particular topic, what I suggest is to:
> >  -  create a page about NS2 tutorials in the NS2 wiki, which
> > could be used to detail the important changes for recent
> > versions of NS2 of this, and possibly other tutorials.
> 
> Good idea, but I see the tutorial maintenance as an orthogonal
> task to what you have proposed. The tutorial pages have such a
> high rating in search engines (like Google) that users will find
> the initial tutorial first. So imho the only way how to solve
true

> the problem is to keep synchronized the text and sources of
> these tutorials first - or take them offline, which is also not
> the solution that I'd like to go.
(please see response above)


> > However, in my opinion, major improvements in problems like
> > this will only be possible if more users take the action to
> > contribute.
> 
> I completly agree with your point of view.
> 
> Thanks anyhow,

Re: [ns] Multi-interface support howto

2007-01-16 Thread Pedro Vale Estrela


Hi ramon

Thanks for this great contribution. This is exactly the kind of useful
documentation contributions that the NS2 simulator community needs.

Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Ramon Aguero
> Sent: segunda-feira, 15 de Janeiro de 2007 10:12
> To: ns-users@ISI.EDU
> Cc: [EMAIL PROTECTED]
> Subject: [ns] Multi-interface support howto
> 
> 
> Dear all,
> 
> We have seen a lot of requests about the possibility to extend the NS-2
> framework to support multiple interfaces. Although there is some
> information available, according to the messages that have been sent to
> this list, it seems that a more thorough description may be required.
> 
> In this sense, after performing an analysis about existing activities in
> this topic, we have created a document that tries to summarize which are
> the required changes to be performed within the different pieces of the
> simulator (tcl, c++) as well as how routing protocols can be adapted to
> make use of the new feature. The howto is entitled "Adding Multiple
> Interface Support in NS-2" and it has been written by my colleague Jesús
> Pérez and myself.
> 
> I’ve uploaded the document, which can be retrieved from the following url:
> <http://personales.unican.es/aguerocr>http://personales.unican.es/aguerocr
> 
> We will be happy to receive any feedback, comments, so as to improve the
> howto, since we would like to have it like a living document, adding new
> features as they are available.
> 
> Best regards,
> Ramón
> 
> 
> Ramón Agüero Calvo
> Dept. of Communications Engineering
> Network Planning & Mobile Communications
> Laboratory
> University of Cantabria
> Avda Castros s/n
> 39005 - Santander
> SPAIN
> [EMAIL PROTECTED]
> Tel: +34 942 201 392 (Ext 14)
> Fax: +34 942 201 488
> 




Re: [ns] Fwd: segmentation fault in wired cum wireless scenario usingaodv+ help

2007-01-10 Thread Pedro Vale Estrela

I’ve colored and clustered the nodes myself, by hand, just for that picture
in my site.

For setting the wired nodes in NAM, the best way is to specify the wired
link latency and orientation. There are lots of examples on the /tcl/ex
directory on how to do it.

 

Pedro Vale Estrela

 

 

-Original Message-
From: subramani [mailto:[EMAIL PROTECTED] 
Sent: sábado, 6 de Janeiro de 2007 10:02
To: [EMAIL PROTECTED]
Subject: RE: [ns] Fwd: segmentation fault in wired cum wireless scenario
usingaodv+ help

 

hi 
thanks for the info ..
i rectified the fault by commenting some section and re running
and as you had pointed out i had done a mistake in assigning hier-address to
the wired nodes . 
one more doubt
in wired cum wireless scenarios as shown by nam
the wired nodes are seen clustered together.
specifying node positions for wired nodes has no effect.
is there any method to specify where each node should be located exactly in
the nam window?



 

 

Pedro Vale Estrela <[EMAIL PROTECTED]> wrote:


http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html#_Toc121548870



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of subramani
> Sent: quinta-feira, 4 de Janeiro de 2007 18:09
> To: ns list
> Subject: [ns] Fwd: segmentation fault in wired cum wireless scenario
> usingaodv+ help
> 
> 
> hi all,
> i have installed aodv+ for gateway discovery on ns-2.28 (redhat 9)
> aodv+ was in ns2 contributed code section
> 
> it worked everything fine for all the example scripts provided..
> but when i changed the number of nodes in the given example
> wired_wireless_ex.tcl
> i received a segmentation fault
> 
> i don't know wheres the fault .please atleast help me how to debug ns2
> scripts containing
> segmentation faults
> 
> *
> here is the complete code
> **
> #try.tcl
> 
> set opt(namfile) out.nam
> set opt(tracefile) out.tr
> set opt(x) 500; #x dimension of the
> topography
> set opt(y) 500; #y dimension of the
> topography
> set opt(wirelessNodes) 6; #mobile nodes
> set opt(wiredNodes) 8; #hosts and routers
> set opt(gatewayNodes) 2; #gateways
> 
> set val(stop) 60.0; #simulation time
> set val(start-src) 1
> set val(stop-src) 50
> 
> set opt(gw_discovery) reactive; #gateway discovery method
> # ==
> 
> #---
> #Initialize Global Variables
> #---
> #create a simulator object
> set ns [new Simulator]
> $ns color 0 Brown
> 
> #
> #Define The Hierachial Topology Structure
> #
> $ns node-config -addressType hierarchical
> #Nbr of domains
> AddrParams set domain_num_ 3
> #Nbr of clusters (=subdomains) in each domain
> lappend clusterNbr 2 2 1
> AddrParams set cluster_num_ $clusterNbr
> #Nbr of nodes in each cluster
> lappend eilastlevel 3 2 4 4 3
> AddrParams set nodes_num_ $eilastlevel
> 
> ##
> 
> #create trace objects for ns and nam
> $ns use-newtrace
> set nstrace [open $opt(tracefile) w]
> $ns trace-all $nstrace
> 
> set namtrace [open $opt(namfile) w]
> $ns namtrace-all-wireless $namtrace $opt(x) $opt(y)
> 
> 
> #create a topology object and define topology (500mx500m)
> set topo [new Topography]
> $topo load_flatgrid $opt(x) $opt(y)
> 
> #Choose method for gateway discovery
> if {$opt(gw_discovery) == "proactive"} {
> Agent/AODV set gw_discovery 0
> }
> if {$opt(gw_discovery) == "hybrid"} {
> Agent/AODV set gw_discovery 1
> }
> if {$opt(gw_discovery) == "reactive"} {
> Agent/AODV set gw_discovery 2
> }
> #create wired nodes
> set temp {2.0.0 2.0.1 2.0.2 2.0.3 2.1.4 2.1.5 2.1.6 2.1.7}
> for {set i 0} {$i < $opt(wiredNodes)} {incr i} {
> set host($i) [$ns node [lindex $temp $i]]
> }
> 
> #create God (General Operations Director)
> create-god [expr $opt(wirelessNodes)+$opt(gatewayNodes)]]
> 
> 
> #--
> #Configure for Gateway and Mobile Nodes
> #--
> #Use hierarchical addresses for GWs and MNs
> 
> #configure for mobile nodes and gateways
> $ns node-config -adhocRouting AODV
> $ns node-config -llType LL
> $ns node-config -macType Mac/802_11
> $ns node-config -ifqType Queue/DropTail/PriQueue
> $ns node-config -ifqLen 50
> $ns node-config -antType Antenna/OmniAntenna
> $ns node-config -propType Propagation/TwoRayGround
> $ns node-config -phyType Phy/WirelessPhy
> $ns node-config -topoInstance $topo
> $ns node-config -channel [new C

Re: [ns] Doubt regarding running cc program and NAM

2007-01-10 Thread Pedro Vale Estrela



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Swalaxmi Pandit
> Sent: sexta-feira, 5 de Janeiro de 2007 22:05
> To: ns-users@ISI.EDU
> Subject: [ns] Doubt regarding running cc program and NAM
> 
> 
> Hi,
> 
> I am trying to run a sample TCL program(example.tcl) in ns2.
> The program is running smoothly but I am unable to see the output in nam
> and
> xgraph.
> For NAM,it is showing couldn't execute "nam": no such file or directory.
> For xgraph,it is showing couldn't execute "xgraph": no such file or
> directory.
> I have included the paths for both NAM and xgraph in bashrc file.

This is a path problem. In the meantime, put the absolute path to those
executables in the tcl script


> 
> 
> I have one more doubt.
> Can you just give me the procedure to link C++ program and TCL scripts and
> run them succesfully?
> 
add whichever C++ code to the makefile, and source whichever tcl code in the
/tcl/lib/ns-lib.tcl file  (or source it in your script at run-time)



> I want to run mac-802_11.cc program from mac folder in ns-2.30. and want
> to
> see the output. I am using fedora 5 and ns2.30.
> Will you just tell me the step by step procedure to simulate the output?
> 
> This is my university project. Please try to clarify the doubts.
> Thanks & Regards,
> Swalaxmi




Re: [ns] CIMS/NS-2

2007-01-10 Thread Pedro Vale Estrela

http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html#_Toc147660119

http://www.infotech.tu-chemnitz.de/~knoll/NS2/Installing_old_NS2_version_ns-
allinone-2_1b6a_on_RedHat_8_0.php

 

The problem is the GCC compiler, which should be at least 2.95 or older.
When you can install the original ns2.1b6 without errors, then you'll know
that you are on the right track.

 

Pedro Vale Estrela

 

 

 

 

 

-Original Message-
From: Ameera AL-Durazi [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 10 de Janeiro de 2007 10:19
To: [EMAIL PROTECTED]
Subject: CIMS/NS-2

 

Dear Sir,

I am doing a project on CIMS ns-2 , but I have seen that the one of the
requirment of the CIMS software is linux RedHat 8.0 , but I dont that
version so is it ok if I use RedHat 9 to add this patch to my ns-2 ???

Thanks,

Ame






  _  

Express yourself instantly with MSN Messenger! MSN Messenger
<http://g.msn.com/8HMAEN/2737??PS=47575>  Download today it's FREE!



Re: [ns] error interpretation

2007-01-10 Thread Pedro Vale Estrela

Ahh, that's the ugliness of TCL...

That error is derived from the object-oriented capabilities of NS2 (oTCL)
being built on top of regular TCL code.

Thus, _o19 is an object name with is also a procedure.

Before the error do

Puts "[_o19 info class]"
And start searching from the returning class.

Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Ramzi Tka
> Sent: segunda-feira, 8 de Janeiro de 2007 9:50
> To: ns-users@ISI.EDU
> Subject: [ns] error interpretation
> 
> 
> Hi,
> let consider the followinf error :
> 
> (procedure "_o19" line 2)
> (SplitObject unknown line 2)
> 
> What is the significance of. What is the tcl file
> that
> corresponds to _o19  so we can find line 2?
> 
> Best regards
> Ramzi




Re: [ns] Fwd: segmentation fault in wired cum wireless scenario usingaodv+ help

2007-01-05 Thread Pedro Vale Estrela


http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html#_Toc121548870



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of subramani
> Sent: quinta-feira, 4 de Janeiro de 2007 18:09
> To: ns list
> Subject: [ns] Fwd: segmentation fault in wired cum wireless scenario
> usingaodv+ help
> 
> 
>  hi all,
> i have installed aodv+ for gateway discovery on ns-2.28 (redhat 9)
> aodv+ was in ns2 contributed code section
> 
> it worked everything fine for all the example scripts provided..
> but when i changed the number of nodes in the given example
> wired_wireless_ex.tcl
> i received a segmentation fault
> 
> i don't know wheres the fault .please atleast help me how to debug ns2
> scripts containing
> segmentation faults
> 
> *
> here is the complete code
> **
> #try.tcl
> 
> set opt(namfile) out.nam
> set opt(tracefile)   out.tr
> set opt(x)500;#x dimension of the
> topography
> set opt(y)   500;#y dimension of the
> topography
> set opt(wirelessNodes)   6;  #mobile nodes
> set opt(wiredNodes)  8;  #hosts and routers
> set opt(gatewayNodes)2;  #gateways
> 
> set val(stop) 60.0;   #simulation time
> set val(start-src)   1
> set val(stop-src)50
> 
> set opt(gw_discovery)reactive; #gateway discovery method
> # ==
> 
> #---
> #Initialize Global Variables
> #---
> #create a simulator object
> set ns [new Simulator]
> $ns color 0 Brown
> 
> #
> #Define The Hierachial Topology Structure
> #
> $ns node-config -addressType hierarchical
> #Nbr of domains
> AddrParams set domain_num_ 3
> #Nbr of clusters (=subdomains) in each domain
> lappend clusterNbr 2 2 1
> AddrParams set cluster_num_  $clusterNbr
> #Nbr of nodes in each cluster
> lappend eilastlevel 3 2 4 4 3
> AddrParams set nodes_num_ $eilastlevel
> 
> ##
> 
> #create trace objects for ns and nam
> $ns use-newtrace
> set nstrace [open $opt(tracefile) w]
> $ns trace-all $nstrace
> 
> set namtrace [open $opt(namfile) w]
> $ns namtrace-all-wireless $namtrace $opt(x) $opt(y)
> 
> 
> #create a topology object and define topology (500mx500m)
> set topo [new Topography]
> $topo load_flatgrid $opt(x) $opt(y)
> 
> #Choose method for gateway discovery
> if {$opt(gw_discovery) == "proactive"} {
> Agent/AODV set gw_discovery 0
> }
> if {$opt(gw_discovery) == "hybrid"} {
> Agent/AODV set gw_discovery 1
> }
> if {$opt(gw_discovery) == "reactive"} {
> Agent/AODV set gw_discovery 2
> }
> #create wired nodes
> set temp {2.0.0 2.0.1 2.0.2 2.0.3 2.1.4 2.1.5 2.1.6 2.1.7}
> for {set i 0} {$i < $opt(wiredNodes)} {incr i}  {
> set host($i) [$ns node [lindex $temp $i]]
> }
> 
> #create God (General Operations Director)
> create-god [expr $opt(wirelessNodes)+$opt(gatewayNodes)]]
> 
> 
> #--
> #Configure for Gateway and Mobile Nodes
> #--
> #Use hierarchical addresses for GWs and MNs
> 
> #configure for mobile nodes and gateways
> $ns node-config -adhocRouting AODV
> $ns node-config -llType LL
> $ns node-config -macType Mac/802_11
> $ns node-config -ifqType Queue/DropTail/PriQueue
> $ns node-config -ifqLen  50
> $ns node-config -antType Antenna/OmniAntenna
> $ns node-config -propType Propagation/TwoRayGround
> $ns node-config -phyType  Phy/WirelessPhy
> $ns node-config -topoInstance $topo
> $ns node-config -channel [new Channel/WirelessChannel]
> $ns node-config -agentTrace ON
> $ns node-config -routerTrace ON
> $ns node-config -macTrace ON
> $ns node-config  -movementTrace OFF
> 
> #3
> 
> #configure for gateways
> $ns node-config -wiredRouting ON
> #create gateway
> set gw(0) [$ns node 0.0.0]
> #set initial coordinates
> $gw(0) set X_ 100.0
> $gw(0) set Y_ 250.0
> $gw(0) set Z_ 0.0
> $ns at 0.00 "$gw(0) setdest 100 250 20"
> try
> set gw(1) [$ns node 1.0.0]
> #set initial coordinates
> $gw(1) set X_ 500.0
> $gw(1) set Y_ 250.0
> $gw(1) set Z_ 0.0
> $ns at 0.00 "$gw(1) setdest 500 250 20"
> 
> 
> #Define node initial position in nam
> 
> 
> 
> #configure for mobile nodes
> $ns node-config -wiredRouting OFF
> #create mobile nodes in the same domain as gw(0)
> set temp {0.0.1 0.0.2 0.1.0 0.1.1 1.0.1 1.0.2}
> for {set i 0} {$i < $opt(wirelessNodes)} {incr i} {
> set mobile($i) [$ns node [lindex $temp [expr $i]]]
> if {$i<4} {
> $mobile($i) base-station [AddrParams addr2id [$gw(0) node-addr]]
> }  else {
> $mobile($i) base-station [AddrParams addr2id [$gw(1) node-addr]]
> }
> 
> }
> 
> $mobile(0) set X_ 10
> $mobile(0) set Y_ 200
> $mobile(0) set Z_ 0.0
> 

Re: [ns] Start a simulation with a full arp table

2007-01-05 Thread Pedro Vale Estrela

That is pretty much impossible because the arp cache has space only for 1
cached entry.

However, it can be possible to disable the arp code altoghether, by making
it return immediately with the desired MAC address.

Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Matthew Faulkner
> Sent: sexta-feira, 5 de Janeiro de 2007 10:18
> To: ns-users@ISI.EDU
> Subject: [ns] Start a simulation with a full arp table
> 
> 
> Hey all,
> 
> 
> Maybe a simple question, but does anyone know how to start a
> simulation with a full ARP table such that no ARP requests or replies
> are needed.
> 
> Thanks
> 
> Matt




Re: [ns] debugger install

2006-12-21 Thread Pedro Vale Estrela

This guide has been used successfully many times.

 

Try

Make nstk

  Nstk

 

 

 

 

-Original Message-
From: sandesh shenoy [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 21 de Dezembro de 2006 10:41
To: nsusers
Cc: [EMAIL PROTECTED]
Subject: [ns] debugger install

 

Hello,

  I went through ns2 otcl+Mash+Tkcon+Tcl-debug debugging page
and tried to follow the procedures.After adding Tk support,I tried to run
nstk,but it is giving nstk command not found.Any problem with the
patching?One patcing in common and other under ns-2.28 directory right?I am
not able to get what went wrong.Any other initializations to be done?Please
do help me in this regard.

 

Thanks in advance.

 Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
Download Now! http://messenger.yahoo.com/download.php



Re: [ns] Why is not ns-2 old version ns-allinone.2.1b3 installedcorrectly ?

2006-12-20 Thread Pedro Vale Estrela


> 
> Hi all,
> 
> We want to use ns-2 for RAP. We see that a newer ns-2 version already has
> rap folder inside. Do new versions provide RAP already ?
> 
> Or we will use source codes provided by Reza, then we must use old version
> of ns-2. (ns-allinone.2.1b3) That is not installed correctly which gives
> tcl
> file' s compiling errors like tclcl-mappings.h... ( ns-2.30 installs
> correctly, and we installed many times up to now ). Is there any short
> answer ?

yes - use an old linux distribution, that has the old gcc compiler

"PS: on a related note, this idea also works backwards; If you are trying to
compile old code for old versions of NS (NS-1b6 and friends), You'll get a
much better chance if you use earlier versions of GCC, like gcc-2.95."
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_tips.html#_Toc124667338


Pedro Vale Estrela






Re: [ns] debugging

2006-12-20 Thread Pedro Vale Estrela


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


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of sandesh shenoy
> Sent: terça-feira, 19 de Dezembro de 2006 8:57
> To: nsusers
> Subject: [ns] debugging
> 
> 
> Hello,
>   Is tre a way i can debug c++ part of my tcl script.Tcl
> debugger does not go to c++ part.suppose i want to debug scheduler::run()
> in the .cc code,then wat i have to do?Referring to a previous ns FAQs,i
> initialized some makefiles and CFLAGS.But that is not working out.Whenever
> i give run in gdb,it gives starting program:"path" but then it gives file
> or directory not found,does not exist.Why is that? Any suggestion will be
> valuable to me.I have been able to progress a lot because of ns users'
> help.Thanks a lot for that.
> 
>   Thanks in advance.
> 
>  Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
> Download Now! http://messenger.yahoo.com/download.php




Re: [ns] CBR packet size on 802.11b link

2006-12-18 Thread Pedro Vale Estrela



Good question. You'll get confusing and sometimes conflicting packets sizes
when setting it at the agent, transport or application level, but this is at
the same layer.

Maybe the send is L2 packet size, with l2 headers, and recv is L4 pakcet
size without headers
Try enabling the RTR and AGT traces

Pedro Vale Estrela


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Lars Lars
> Sent: segunda-feira, 18 de Dezembro de 2006 21:46
> To: ns-users@ISI.EDU
> Subject: [ns] CBR packet size on 802.11b link
> 
> 
> Hi,
> I'm sending 1004 Byte CBR packets using a UDP agent with a packet size of
> 1024. After the RTS/CTS handshaking is complete I can see the packet
> sending
> and receiving. Tracefile extract is below. Why is the cbr packet size 1076
> when sending and 1024 when arriving??
> 
> L
> 
> 
> s 1.213410777 _0_ MAC --- 0   RTS 44
> r 1.213763444 _1_ MAC --- 0   RTS 44
> s 1.213773444 _1_ MAC --- 0   CTS 38
> r 1.21407811  _0_ MAC --- 0   CTS 38
> s 1.21408811  _0_ MAC --- 267 cbr 1076
> r 1.215045868 _1_ MAC --- 267 cbr 1024
> 
> _
> Discover the magic of RSS feeds at MSN Ireland! http://ie.msn.com/




Re: [ns] a simple question

2006-12-18 Thread Pedro Vale Estrela

The first free the memory and doesn't log the drop in the trace file, the
second does both (please confirm if it frees the memory)


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of juan manuel gomez garcia
> Sent: segunda-feira, 18 de Dezembro de 2006 17:11
> To: Ns-users@ISI.EDU
> Subject: [ns] a simple question
> 
> 
> Hi ns-users:
> I don't know what is the difference between
> 
> Packet::free(p)  anddrop(p).
> 
> Thank you for your help.
> 
> _
> Descarga gratis la Barra de Herramientas de MSN
> http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//ww
> w.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH




Re: [ns] ns-allinone-2.26 installation

2006-12-18 Thread Pedro Vale Estrela

http://tagus.inesc-id.pt/~pestrela/ns2/ns2_tips.html#_Toc124667338

 

 

 

-Original Message-
From: Anjali Arora [mailto:[EMAIL PROTECTED] 
Sent: sábado, 16 de Dezembro de 2006 6:25
To: [EMAIL PROTECTED]
Subject: RE: [ns] ns-allinone-2.26 installation

 

thanx & please make it more clear

Pedro Vale Estrela <[EMAIL PROTECTED]> wrote: 

Use older version of your distribution


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Anjali Arora
> Sent: quinta-feira, 14 de Dezembro de 2006 13:35
> To: ns-users@ISI.EDU
> Subject: [ns] ns-allinone-2.26 installation
> 
> 
> hello everyone
> i have ns-allinone-2.26 and mns-for-2.26.i want to install it on linux
> red-hat enterprise edition.but its not working,giving error tk 8.3.2 make
> failed.what is the solution or whats another option?
> please help me out
> anjali
> 
> 
> -
> Find out what India is talking about on - Yahoo! Answers India
> Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8.
> Get it NOW

 

 Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
Download Now! http://messenger.yahoo.com/download.php



Re: [ns] compile problem

2006-12-14 Thread Pedro Vale Estrela

Sems like a bug in the makefile.

Try:

rm ns2/gen/ns_tcl.o  ; make


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of sandesh shenoy
> Sent: quinta-feira, 14 de Dezembro de 2006 14:09
> To: ns-users@ISI.EDU
> Subject: [ns] compile problem
> 
> 
> Hello,
>  Could anyone tell me how to reflect the log statements
> written in file-ns-lib.tcl,Simulator instproc init args body.If i make
> under ns-2.28,no changes are brought about.Is there any additional
> procedure to be followed?Any suggestions will be helpful for me.
> 
>   Thanks in advance.
> 
> 
> -
>  Find out what India is talking about on  - Yahoo! Answers India
>  Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8.
> Get it NOW




Re: [ns] ns-allinone-2.26 installation

2006-12-14 Thread Pedro Vale Estrela

Use older version of your distribution


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Anjali Arora
> Sent: quinta-feira, 14 de Dezembro de 2006 13:35
> To: ns-users@ISI.EDU
> Subject: [ns] ns-allinone-2.26 installation
> 
> 
> hello everyone
>   i have ns-allinone-2.26 and mns-for-2.26.i want to install it on linux
> red-hat enterprise edition.but its not working,giving error tk 8.3.2 make
> failed.what is the solution or whats another option?
>   please help me out
>   anjali
> 
> 
> -
>  Find out what India is talking about on  - Yahoo! Answers India
>  Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8.
> Get it NOW




Re: [ns] accessing queue length in 802.11 MAC

2006-12-06 Thread Pedro Vale Estrela


> Do you know why ((LL *)uptarget_)->ifq() returns a null pointer?
It means some part of the code could / should initialize that pointer, and
it is not being done.
Study the ns2 manual on the chapter of mobile nodes to try to find out whats
going on with these pointers - I don't know the C++ code of that part.



> Does it mean that ifq can not accessed by (LL *)uptarget_? How to
> access queue length in mac-802_11.cc? what's the relationship between
> ifq and mac. How to transfer data between them. I'm really confused
> about it as an ns-beginner. :(
> 
> Thank you very much for your reply.
> 
> 
> On Wed, 6 Dec 2006 17:07:48 -
>  "Pedro Vale Estrela" <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > I tried to access queue length in MAC. So I wrote
> > > int pkt_num = ((LL *)uptarget_)->ifq()->length();
> > >
> > > When I run the simulation us gdb, segmentation fault occurs. I
> > shows
> > > that
> > >
> > > Program received signal SIGSEGV, Segmentation fault.
> > > 0x080c3ad4 in Queue::length() (this=0x0) at queue/queue.h:136
> >
> > this=0x0 means that the ((LL *)uptarget_)->ifq() returns a null
> > pointer -
> > eg, no interface
> >
> > Tip: use DDD
> >
> >
> >




Re: [ns] How to measure overhead with ns2?

2006-12-06 Thread Pedro Vale Estrela


Count the number of sent packets at the agent or router layer

Cat trace.tr | grep ^s | grep AGT | grep 

Use  " awk ' { if ($6 == ) print } ' " to filter based on certain fields

Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Schuenemann Bjoern
> Sent: quarta-feira, 6 de Dezembro de 2006 15:58
> To: ns-users@ISI.EDU
> Cc: Blueher Andreas
> Subject: [ns] How to measure overhead with ns2?
> 
> 
> Hello,
> 
> I'm trying to figure out how i can measure the created overhead which
> occured in a network simulation. Actually we are trying to compare a new
> idea of detecting malicious nodes with other old-fashion ways. One of our
> metrics is the created overhead.
> 
> Assume we have a network with 100 nodes and 20 of them behave unnormally
> like dropping all data packets. How many packets have to be resended,
> until every packet reaches the destination at least once. How can we
> measure how many packets had to be transmitted overall to find out how
> much overhead occured?
> 
> Thank you very much for your help!
> 
> Best Regards,
> Björn
> 
> -
> 
> Dipl.-Inform. Björn Schünemann
> 
> Hasso-Plattner-Institut für Softwaresystemtechnik GmbH
> Institut an der Universität Potsdam
> Postfach 900460, D-14440 Potsdam, Germany
> http://www.hpi.uni-potsdam.de <http://www.hpi.uni-potsdam.de/>
> 
> Phone: +49(0)331 5509 520
> WWW: http://www.schuenemann.name/ <http://www.schuenemann.name/>
> 
> -
> 
> 
> 




Re: [ns] accessing queue length in 802.11 MAC

2006-12-06 Thread Pedro Vale Estrela



Use:

If( ((LL *)uptarget_)->ifq()){
//code if non-null
} else {
// code if null
}

note that a null queue é a node without a queue, NOT an empty queue!


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of M. Shen
> Sent: quarta-feira, 6 de Dezembro de 2006 14:56
> To: ghada; ns-users@ISI.EDU
> Subject: Re: [ns] accessing queue length in 802.11 MAC
> 
> 
> Dear ghada,
> 
> Thank you very much for your reply. But how to check if the queue is
> null or not? Should I do it in the queue.cc peoriodically and transfer
> the state to mac? Or check it in the MAC? If it's the latter, we still
> need to access ifq() in the mac.cc, right?
> 
> thanks,
> Min
> 
> 
> On Wed, 6 Dec 2006 14:03:15 +0900
>  "ghada" <[EMAIL PROTECTED]> wrote:
> >
> >  I think you can solve this problem if you check first  if the queue
> > is null
> > or not before using length() function.
> >
> >
> > - Original Message - From: "M. Shen" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Wednesday, December 06, 2006 12:10 PM
> > Subject: Re: [ns] accessing queue length in 802.11 MAC
> >
> >
> > >
> > > Dear guys,
> > >
> > > I tried to access queue length in MAC. So I wrote
> > > int pkt_num = ((LL *)uptarget_)->ifq()->length();
> > >
> > > When I run the simulation us gdb, segmentation fault occurs. I
> > shows
> > > that
> > >
> > > Program received signal SIGSEGV, Segmentation fault.
> > > 0x080c3ad4 in Queue::length() (this=0x0) at queue/queue.h:136
> > > 136 int length() { return pq_->length(); }  /* number of pkts
> > currently
> > > in
> > >
> > > Does any one know how to deal with this problem?
> > >
> > > Thank you very much,
> > > Min
> > >
> > >
> >




Re: [ns] accessing queue length in 802.11 MAC

2006-12-06 Thread Pedro Vale Estrela



 
> I tried to access queue length in MAC. So I wrote
> int pkt_num = ((LL *)uptarget_)->ifq()->length();
> 
> When I run the simulation us gdb, segmentation fault occurs. I shows
> that
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x080c3ad4 in Queue::length() (this=0x0) at queue/queue.h:136

this=0x0 means that the ((LL *)uptarget_)->ifq() returns a null pointer -
eg, no interface

Tip: use DDD 





Re: [ns] Mac-802_11 support for cross-layer notification

2006-12-05 Thread Pedro Vale Estrela

The easiest way of doing this is to do via tcl

http://tagus.inesc-id.pt/~pestrela/ns2/ns2_tips.html#_Toc124667332


Pedro Vale Estrela


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Vinh Pham
> Sent: terça-feira, 5 de Dezembro de 2006 22:20
> To: Ns-users@ISI.EDU
> Subject: [ns] Mac-802_11 support for cross-layer notification
> 
> 
> 
> Hi all.
> 
> I want to modify the class Mac802_11 such that it sends a notification
> to the routing module (e.g OLSR) each time a packet is discarded due to
> max number of retransmissions have been reached. In the original
> implementation,
> Mac802_11 only have uptarget_ and downtarget_ as references to other
> object instances. Suppose I want to introduce a new variable olsr_ in
> the Mac802_11 class, holding a reference/pointer to the OLSR routing
> module, how can I accomplish this? And where? Any suggestion is
> appreciated.
> 
> 
> Thanks for your help.
> 
> Regards
> 
> Vinh Pham





[ns] FW: How does the control comes back from C++ to OTcl ?

2006-12-05 Thread Pedro Vale Estrela


--=_Part_9264_2857892.1165332047369
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

things dont work as simply as that.

befeore the simualtion starts, you schedule a packet generation to occur at
0.01
then, still before the simulation starts, you schedule a link failure at
0.02
then you start the simulation, where control is given to the scheduler.

the scheduler only processes messages that are exanged between the NS2
components (agents / links / queues / packets).
After some hundreds of events, teh scheduler will eventually call your code
at time 0.01
then it calls some more hundreds of events, before it call your second piece
o code at time 0.02

what exactly are you trying to do?
Pedro Vale Estrela

PS: this is a fine material for the NS2 wiki  - please contribute !!!





On 12/5/06, G.Chandramowli <[EMAIL PROTECTED]> wrote:
>
>
> Hi everybody ...
>
> Can anyone tell me when the control from C++ comes back to OTcl ?
>
>   To be more specific , let me explain a specific example here .
>
>Assume that I have written a script line to generate packets at
0.01second.
>Second script line to make the link failure at 0.02 second .
>
>   Please tell me when the control , that goes to c++ from the script line
> 1, comes back to execute the script line 2 ?
>
> I am ready to explain further if my above example is difficult to
> understand .
>
>   Thanks in advance .
>   G.Chandramowli.
>
>

--=_Part_9264_2857892.1165332047369
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

things dont work as simply as that.
 
befeore the simualtion starts, you schedule a packet generation to
occur at 0.01
then, still before the simulation starts, you schedule a link failure
at 0.02
then you start the simulation, where control is given to the
scheduler.
 
the scheduler only processes messages that are exanged between the NS2
components (agents / links / queues / packets).
After some hundreds of events, teh scheduler will eventually call your
code at time 0.01
then it calls some more hundreds of events, before it call your second
piece o code at time 0.02
 
what exactly are you trying to do?
Pedro Vale Estrela
 
PS: this is a fine material for the NS2 wiki  - please contribute
!!!
 
 
 
 
 
On 12/5/06, G.Chandramowli <mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]> wrote:
Hi everybody ...Can
anyone tell me when the control from C++ comes back to OTcl
?  To be more specific , let me explain a specific example
here .
   Assume that I have written a script line to generate
packets at 0.01 second.   Second script line to make the link
failure at 0.02 second .  Please tell me when the control
, that goes to c++ from the script line 1, comes back to execute the script
line 2 ?
I am ready to explain further if my above example is difficult to
understand .  Thanks in advance
.  G.Chandramowli.

--=_Part_9264_2857892.1165332047369--





Re: [ns] HMIPv6 extentions

2006-12-05 Thread Pedro Vale Estrela


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


I've also asked for the code, but without success. Please email the authors
requesting the code, and if you get a response, please post it on the list.

Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of [EMAIL PROTECTED]
> Sent: quarta-feira, 29 de Novembro de 2006 19:46
> To: ns-users@ISI.EDU
> Subject: [ns] HMIPv6 extentions
> 
> 
> Hi,
> i am a university student and i'm working on MIPv6, HMIPv6 and fast
> handovers.
> I've heard about R. Hsieh's impementation of HMIPv6, i've found a couple
> of links but there are all down.
> Is there anyone who already has this extention, or something similar
> (FHMIPv6)?
> thanks





Re: [ns] recall a procedure every time that a packet arrives

2006-12-05 Thread Pedro Vale Estrela

Create your own queue object (derive from exiting queue/droptail) and
redefine the recv() function

Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Daniel Dekst
> Sent: quinta-feira, 30 de Novembro de 2006 3:02
> To: ns-users@ISI.EDU
> Subject: Re: [ns] recall a procedure every time that a packet arrives
> 





Re: [ns] Simulating channel Hopping in ns2

2006-11-15 Thread Pedro Vale Estrela



> I cannot help with the channel hopping. But to find problems with linked
> lists etc. in the C++ part of the code it is always a very good idea to

good tip

> run ns-2 using valgrind. Simulations will use a lot more time to run,
> but every strange or wrong memory access will be recognized.

As I explain here,
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging3.html
"Step 1 - Choosing a simpler scenario that is known to be correct", etc

the first step should be to simplify the scenario to make the debug
simulations run faster. A common tip that I use extensively is to generate a
lot less traffic (lower the rate for UDP; use lower link speeds for TCP).

For handling the parameters in the command line, I suggest this
http://tagus.inesc-id.pt/~pestrela/ns2/contributed_code.html#_Toc147652228

Pedro Vale Estrela





Re: [ns] TCP or transport layer Tunneling

2006-11-15 Thread Pedro Vale Estrela

The MIP (mobile IP) code in Ns2 has this already implemented using IP-in-IP
tunneling

Pedro Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Peyman Behbahani
> Sent: quarta-feira, 15 de Novembro de 2006 11:09
> To: ns-users@ISI.EDU
> Subject: [ns] TCP or transport layer Tunneling
> 
> 
> Dear Ns-Users,
> 
> 
> 
> I am wandering is there any implementation for TCP-over-TCP tunnelling or
> alternatively any idea about implementing such a scenario?
> 
> 
> 
> The topology can be as follow:
> 
> 
> 
> 
> 0-0=0-0
> 
>Sender  router1   TCP  router2
> receiver
> 
> (TCP)   tunnel
> 
> 
> 
> Router 1 is working as a TCP-encapsulator and router 2 is a decapsulator.
> 
> 
> 
> Thanks in advance, bests
> 
> Peyman
> 
> 
> 
> 





Re: [ns] make file error

2006-11-07 Thread Pedro Vale Estrela


"Make ns"



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of kalai arasan
> Sent: sábado, 4 de Novembro de 2006 4:36
> To: ns-users@ISI.EDU
> Subject: [ns] make file error
> 
> 
> hi ns-users,
> 
> I got the following error while compiling "make"
> command. If any body having idea about how to rectify
> this is most helpful to me.
> 
> kalai.
> 
> 
> 
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/home/kalai/ns-allinone-2.28/ns-2.28/indep-utils/cmu-scen-gen/setdest'
> make[1]: Entering directory
> `/home/kalai/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/dec'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/home/kalai/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/dec'
> make[1]: Entering directory
> `/home/kalai/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/epa'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/home/kalai/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/epa'
> make[1]: Entering directory
> `/home/kalai/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/nlanr'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/home/kalai/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-
> conv/nlanr'make[1]:
> Entering directory
> `/home/kalai/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/ucb'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/home/kalai/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/ucb'
> 
> 
> 
> 
> 
> 
> 
> __
> __
> Access over 1 million songs - Yahoo! Music Unlimited
> (http://music.yahoo.com/unlimited)





Re: [ns] reserved node addresses

2006-11-02 Thread Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Matthias Budde
> 
> I am wondering which addresses are reserved in ns-2. I know
> that -1 is "IP_BROADCAST" but what else? I use an Agent that
> sends packets to daddr -2. Does anyone know what that stands
> for? Are other adresses also reserved and is there a complete
> list somewhere?

A very good question indeed.

I've put some info about addresses here: 
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html#_Toc121548871

-1 is commonly used for IP_BROADCAST, but also for "unk", and also for
"error" (in different parts of the code)

-2: normally stands for "unk" when "-1" is already "error", eg:
[EMAIL PROTECTED]:[ns2]$ grep -d recurse "IP_BROCAST" *
common/ip.h:#define IP_BROADCAST((u_int32_t) 0x)
common/packet.h:(HDR_CMN(p))->next_hop_ = -2; // -1 reserved for
IP_BROADCAST
common/packet.h:(HDR_CMN(p))->last_hop_ = -2; // -1 reserved for
IP_BROADCAST

[EMAIL PROTECTED]:[ns2]$ grep -d recurse "\-1" * | grep define 
cims/timip.h:#define ID_UNK -1
diffserv/dsPolicy.h:#define ANY_HOST -1 // Add to enable point to
diffserv/ew.h:#define EW_UNCHANGE -1
diffusion3/apps/gear/geo-tools.hh:#define FAIL  -1
diffusion3/apps/gear/geo-tools.hh:#define INITIAL_HEURISTIC_VALUE   -1
diffusion3/apps/sysfilters/gradient.hh:#define OLD_MESSAGE -1
diffusion3/lib/dr.hh:#define WAIT_FOREVER   -1
diffusion3/lib/main/header.hh:#define BROADCAST_ADDR   -1
diffusion3/lib/nr/nr.hh:#define FAIL -1
mac/mac-802_3.h:#define INVALID_UID -1  // Used for
mac level traces
mac/mac-802_3.h:#define INVALID_TIME-1
mac/mac-tdma.h:#define FIRST_ROUND -1
mac/mac.h:#define BCAST_ADDR -1
mcast/lms.h:#define LMS_NOADDR  -1
mcast/lms.h:#define LMS_NOPORT  -1
mcast/srm-topo.h:#define SRM_NOIF -1

[EMAIL PROTECTED]:[ns2]$ grep -d recurse "\-2" * | grep define 
mac/mac-tdma.h:#define NOTHING_TO_SEND -2

(this is a partial list of all places that use -1 or -2 as addresses)






Re: [ns] Script for parsing output trace file

2006-11-02 Thread Pedro Vale Estrela


http://www.isi.edu/nsnam/archive/ns-users/webarch/1999/msg02093.html
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_beginners.html
http://www.geocities.com/tracegraph/





> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of vitz399
> Sent: quarta-feira, 1 de Novembro de 2006 11:19
> To: ns-users@ISI.EDU
> Subject: [ns] Script for parsing output trace file
> 
> 
> 
> Hello everyone,
> 
> I have a task which is about to evaluate the performance of AODV mobile ad
> hoc routing protocol. I have created a simulation environment and I have
> gathered data into a trace file. However, I would like to performing data
> mining on the trace file. Such as mining data for metrics of packet
> delivery
> fraction and end to end delay.  Could anyone please provide me some
> scripts
> example or possibly the source code for the script on parsing the output
> trace file.
> 
> Thank you in advance
> 
> regards,
> vitz
> --
> View this message in context: http://www.nabble.com/Script-for-parsing-
> output-trace-file-tf2551509.html#a7111531
> Sent from the ns-users mailing list archive at Nabble.com.





Re: [ns] How do you Debug your Codes?

2006-10-18 Thread Pedro Vale Estrela


 
 Check http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging.html
 
 
 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf
> > Of Filippos Kolovos
> > Sent: sábado, 14 de Outubro de 2006 8:18
> > To: ns-users@ISI.EDU
> > Subject: Re: [ns] How do you Debug your Codes?
> >
> >
> > -
> > For TCL-level debugging you can use tcl-debug. You have to
> > download it and install it in addition with ns and also when you
> > "./configure"
> > your ns code you have to put it as a parameter, i.e. (--with-tcl-debug).
> >
> > For C-level debugging you can install a graphical debugger such as DDD
> > (frontend for GNUDB), but at first you have to "configure" the
> compilation
> > of ns to be prepared for debugging. You can do this by giving the
> > parameter
> > --enable-debug while you are configuring ns.
> >
> > In total, if you want both TCL-level and C-level debugging you must put
> > both
> > parameters
> > when you execute "./configure" and also install separately both
> debuggers
> > (tcl-debug and
> > ddd).
> >
> > Regards,
> >
> > -Fk
> >
> > -- Forwarded message --
> > > From: hamid reza <[EMAIL PROTECTED]>
> > > To: ns-users@ISI.EDU
> > > Date: Fri, 13 Oct 2006 06:31:06 -0700 (PDT)
> > > Subject: [ns] How do you Debug your Codes?
> > > Dear All,
> > > How do you Debug your codes?
> > > What is the best tool for this issue?
> > >
> > >
> > > Best Regards
> > > Hamid reza
> > >
> > >
> > >
> >
> > --
> > Filippos N Kolovos
> >
> > Software Systems Analyst & Engineer
> > M.Sc. (Eng.) in Data Communications
> >
> > Automation & Networking Department
> > University of Macedonia Library
> > Egnatia 156, P.O.Box 1591
> > 540 06 Thessaloniki, Greece
> >
> > E-Mail: [EMAIL PROTECTED],
> >[EMAIL PROTECTED]
> > -
> 





Re: [ns] Xgraph basic question

2006-10-18 Thread Pedro Vale Estrela


Check this
http://tagus.inesc-id.pt/~pestrela/ns2/contributed_code.html#_Toc147652227


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Loreno Oliveira
> Sent: terça-feira, 17 de Outubro de 2006 14:40
> To: Aco
> Cc: NS-Users
> Subject: Re: [ns] Xgraph basic question
> 
> 
> If using xgraph is not a need, you may try gnuplot for ploting your
> graphs...
> 
> Regards,
> 
> Loreno
> 
> On 10/17/06, Aco <[EMAIL PROTECTED]> wrote:
> >
> >
> > I am trying to visualize test results using Xgraph.
> > Everything is OK, but I have problem with something that should not be a
> > problem.
> >
> > I cannot find a way how to output "graph I got" to JPG file. I can make
> > PS,
> > and OBJ file but I need clear JPG picture witout gray background.
> >
> > Anybody can help ?
> >




Re: [ns] reproducing the graphical results of EDCA model

2006-10-12 Thread Pedro Vale Estrela


Have you asked the original authors for their code?

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of wajid mehmood
> Sent: quinta-feira, 12 de Outubro de 2006 14:09
> To: ns-users@ISI.EDU
> Subject: [ns] reproducing the graphical results of EDCA model
> 
> 
> hi all,
>   I want to test the EDCF simulation of the guy
> from tu berlin,I want to reproduce the graph of his simulation
> mentioned in the paper
>   "Design and Verification of an IEEE 802.11e EDCF Simulation Model in ns-
> 2.26", Telecommunication Networks Group, Technische Universität Berlin,
> November 2003.I wrote the scenerio with one end station and one access
> point with no. of
> wireless nodes as a command line parameter.I got the throughput results
> w.r.t. time ,but i need to see the throughput with increasing no. of
> stations as shown on the page 28 of the paper.If somebody has already done
> this or any idea about it ,please do write.
>   many thanks
>   wajid
> 
>  Send instant messages to your online friends
> http://uk.messenger.yahoo.com




Re: [ns] how to add a procedure in a .tcl file and make the requiredchanges in related .cc files?

2006-10-12 Thread Pedro Vale Estrela



Yes, This code seems ok,
What are the errors that occur?

Try this:

   $self instvar mac_
   $mac_(0) cmd node-change ;# force calling directly the c++ command() 


and put a breakpoint the command() function in DDD to check what is
happening.
Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of amir zare
> Sent: quinta-feira, 12 de Outubro de 2006 15:22
> To: ns-users@ISI.EDU
> Subject: [ns] how to add a procedure in a .tcl file and make the
> requiredchanges in related .cc files?
> 
> 
> -- Forwarded message --
> From: amir zare <[EMAIL PROTECTED]>
> Date: Oct 12, 2006 5:47 PM
> Subject: how to add a procedure in a .tcl file and make the required
> changes
> in related .cc files?
> To: ns-users@isi.edu
> 
> Hello All,
> 
> I want to add a procedure in ns-mobilenode.tcl to implement a new
> feature. For this reason, I changed mac-802_11.cc ( where I want to add my
> change) by adding a method. So, in ns-mobilenode.tcl , in my added
> procedure, you see:
> 
> Node/MobileNode instproc node-change {} {
> 
>$self instvar mac_
> 
>$mac_(0) node-change
> 
> }
> 
>  and in mac-802_11.cc you see :
> 
> Mac802_11::command(int argc, const char*const* argv) {
> 
>  if (strcmp(argv[1], "node-change") == 0) {
> 
>   node_change();  // this
> is
> the method I added in mac802_11
> 
>   return TCL_OK;
> 
>  }
> 
> }
> 
> but when I run my program that uses new feature. I mean:
> 
> $node_(0)   node-change
> 
> I face to errors generated by ns.  I am really confused and dont know how
> to
> solve this problem. I think I dont know the correct way to add the
> procedure. I hope someone can tell me where my fault is or correct the way
> I have to add this procedure to work.
> 
> I learnd this way of adding a procedure by observing the procedure node-
> down
> in ~ns/tcl/lib/ns-mobilenode.cc and the related .cc file in:
> ~ns/wpan/p802_15_4mac.cc -> Mac802_15_4::command(int argc, const
> char*const*
> argv)
> 
> I would appriciate any help.
> 
> Regards,
> 
> Amir




Re: [ns] how can we echange variable between layer???

2006-10-12 Thread Pedro Vale Estrela

If you pass these between c++ modules by calling TCL procedures, this is
very easy (but slow)

Start by checking this page
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_tips.html#_Toc124667331

Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Bilel Romdhani
> Sent: terça-feira, 10 de Outubro de 2006 11:47
> To: Ns-users@ISI.EDU
> Subject: [ns] how can we echange variable between layer???
> 
> 
> hi everybody,
> i m using ns2.27 to simulate wireless scenario and i want to know how can
> we
> echange variable between layer, ie, i want to use the cw_ variable on the
> droptail.cc file how can i do that if it's possible of course!
> 
> thanks a lot




Re: [ns] no reply yet: CBQ for wireless nodes

2006-10-11 Thread Pedro Vale Estrela


> Hi
> this is sixth time i am emailing about how to use CBQ in wireless nodes as
> interface queue, but still waiting for reply.

Then maybe 
a) no one has tried it before
b) or the persons how may have tried it before probably aren't registrated
on this mailing list, IMO probably because of messages like this one! (Which
the current one is certainly not of the worst kind!)

You've mentioned that you are waiting; FYI, I'm waiting since January for a
single reply to this email:
http://mailman.isi.edu/pipermail/ns-users/2006-January/053560.html

with the follow up in June:
http://mailman.isi.edu/pipermail/ns-users/2006-June/056015.html


> how can i use cbq as interface queue of wireless node.
Back to your question, the best bet is to find a paper in which the authors
have tried this combination in NS2, and ask them how to do it; failing that,
then its time to hack to the NS2 code, find why that particular combination
is not working, and contribute your patches to the ns-developers mailing
list!

Pedro Vale Estrela
http://tagus.inesc-id.pt/~pestrela/ns2/index_.html






Re: [ns] Multiple source files

2006-10-11 Thread Pedro Vale Estrela


Exactly, that's the way to do it.

I might add that this function makes your life easier
http://tagus.inesc-id.pt/~pestrela/ns2/contributed_code.html#_Toc147652228


Pedro Vale Estrela



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Daniel Mahrenholz
> Sent: quarta-feira, 11 de Outubro de 2006 10:32
> To: Keita Rose
> Cc: ns-users@ISI.EDU
> Subject: Re: [ns] Multiple source files
> 
> 
> Keita Rose schrieb:
> > I am trying to run a mobile scenario using multiple source files, how do
> I go about implementing that is NS-2 if it is at all possible.
> >
> I'm not sure, I got you right. But I did the following in order to
> simulate different topologies with the same set of applications. I first
> build a "core" simulation script, e.g. one that creates the simulator
> objects, configures everything, etc. Then I include the script that
> creates the topology (given by a command line parameter) into this core
> script. The remaining part of the core script configures the
> applications and runs the simulation.
> 
> Now, in order to investigate different topologies, I wrote a control
> script, that iterates over the list of available toplogies and calls the
> simulation script with the name of the topology script as a parameter.
> You should be able to do something similar.
> 
> Daniel.





Re: [ns] Mobile IP

2006-10-11 Thread Pedro Vale Estrela


> Hi, I don't know if in the implementation of mobile ip of ns-2 the router
> advertisements arrive to nodes of one hop or two hops or more, but  i want
> to send the routers advertisements to all the network, the variable that i

the ads are propagated by the basetstions and are received exactly 1 hop way
by mobile nmodes. 

> need to change is ads_lifetime and other question this variable is
> measurement in seconds or hops?

Ads_lifetime represents the amount of time, in seconds I believe, that the
beacon is valid. It has nothing to do with multi hops.

Pedro Vale Estrela
http://tagus.inesc-id.pt/~pestrela/ns2/






Re: [ns] sending packets

2006-10-09 Thread Pedro Vale Estrela


Inside my recv() function I do like this without problems:


// clone the current packet and change some fields
Packet* new_p = clone_pkt(p);

hdr_ip*new_iph  = hdr_ip::access(new_p);

new_iph->daddr() = ...;
new_iph->saddr() = addr();

// change fields on the current packet
iph->daddr() = id2iaddr(th->b_id);
iph->saddr() = addr();


// send original packet somewhere
send(p, 0);

// send cloned packet elsewhere
send(new_p, 0);

...





> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Larry Brigman
> Sent: segunda-feira, 9 de Outubro de 2006 19:14
> To: ns-users@ISI.EDU
> Subject: [ns] sending packets
> 
> 
> I am working on a queuing model.  There are times that I need to
> send more than one packet in the recv function.
> 
> Because of the way NS models things it looks like after a single send or
> target->recv(p,h) I cannot send again without an error.
> 
> Is there a way to write a recv function that is allowed to send more than
> once?
> 
> Also when I am rescheduling my class to deque packets, about the time I
> need to
> deque two or more packets NS detects that time has gone backwards!
> 
> 
> I am running this on FC4 using 2.29 version of NS.
> 
> Thanks for any help provided.
> Larry





Re: [ns] How to change the parameters during the simulation to save thetime

2006-10-09 Thread Pedro Vale Estrela


Use this proc:
http://tagus.inesc-id.pt/~pestrela/ns2/contributed_code.html#_Toc147652228

sample code:


global opt
set opt(opt_conv) {
  { d my_delay_ms }
...
}

set opt(my_delay_ms) 100;# default: 100 ms delay
my_getopt $argv
  

set opt(my_delay_s) [expr $opt(my_delay_ms) * 0.001 ]   ;# convert to
seconds


...

$ns make-lan "$TCP_BS $TCPr" 2mb $opt(my_delay_s) LL Queue/DropTail Mac
...




Calling format in bash:
---

for i in "1 10 100 1000"; do 
ns my_script.tcl -- -d $i
done



Pedro Vale Estrela
http://tagus.inesc-id.pt/~pestrela/ns2/




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Bilal AbuQadous
> Sent: sábado, 7 de Outubro de 2006 23:05
> To: ns-users@ISI.EDU
> Subject: [ns] How to change the parameters during the simulation to save
> thetime
> 
> 
> Dear ns users,
> 
> 
> 
> would you please tell me how I can change the parameters without stopping
> the simulation.
> 
> as eg.
> 
> 
> 
> how I can change the delay in the following command without stopping the
> simulation and make that automatic until the end.
> 
> 
> 
> $ns make-lan "$TCP_BS $TCPr" 2mb 0.001ms LL Queue/DropTail Mac
> 
> 
> 
> if I will make a test with different delay starting from 0.001, 0.01,
> 0.01,1,
> 10, 100, 150 ms, how I could make these changes automatically without
> entering new delay parameter by stop the simulation.
> 
> 
> 
> I need this thing To save the time and the effort.
> 
> 
> thank you in advance
> 
> 
> 
> 
> 
> 
> --
> AbuQadous, Bilal
> Alamiah Electronics (Systems Engineer)
> Mobile:+966507174541
> Office:+96638610044 ext:772
> P.O. Box 9912
> Dammam 31423
> KSA




Re: [ns] what is the meaning of "$self next"

2006-10-09 Thread Pedro Vale Estrela

http://www.openmash.org/developers/docs/otcl-doc/doc/class.html



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Guillermo Biot
> Sent: segunda-feira, 9 de Outubro de 2006 11:43
> To: Ns Users
> Subject: [ns] what is the meaning of "$self next"
> 
> 
> Hi,
> 
> I'm using some test scripts and I found the following code in one of them:
> 
> $self next
> 
> What does it mean?
> It is part of an instproc.
> There is no function called "next" in the script.
> Thank you.
> 
> Regards,
> Guillermo




Re: [ns] IPv6 support in NS-2

2006-10-09 Thread Pedro Vale Estrela


Check how this is done in mobiwan - these nice guys have implemented IPv6
and Mobile IPv6
http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html



Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Tubtim Sanguanwongthong
> Sent: sábado, 7 de Outubro de 2006 14:17
> To: ns-users@ISI.EDU
> Subject: [ns] IPv6 support in NS-2
> 
> 
> I've tried to modify NS-2 to support IPv6 beginning with ip.h.
>   In "ip.h",
> 
> struct hdr_ip {
> _/* common to IPv{4,6} */
> ns_addr_t   src_;
> ns_addr_t   dst_;
> int ttl_;
> 
>   }
> 
>   I'd like to know whether I have to change type of src_ and dst_ to
> support 128 bits.  ns_addr_t  src_; and ns_addr_t dst_;   can be used in
> both IPv4 and IPv6.
>   I'm really appreciated in this help (very important).
>   Thank you in advance.
>   Tubtim
> 
> 
> -
> Want to be your own boss? Learn how on  Yahoo! Small Business.




Re: [ns] problen with traffic generator

2006-10-06 Thread Pedro Vale Estrela


You can also use:

set opt(interval) [expr 1 / ($opt(rate) + 0.0)]

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Matthias Budde
> Sent: quinta-feira, 5 de Outubro de 2006 8:28
> To: ns-users@ISI.EDU
> Subject: Re: [ns] problen with traffic generator
> 
> 
> Hi,
> 
> The README is faulty in this case. Try "-rate 4.0" instead of "-rate 4".
> That'll work.
> 
> Best,
> 
> -Matt
> 
> Am Donnerstag, 5. Oktober 2006 02:00 schrieb [EMAIL PROTECTED]:
> > Message: 15
> > Date: Wed, 4 Oct 2006 19:19:20 +0200
> > From: "Pragasen Mudali" <[EMAIL PROTECTED]>
> > Subject: [ns] problen with traffic generator
> > To: ns-users@ISI.EDU
> > Message-ID:
> > <[EMAIL PROTECTED]>
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >
> > I want to generate a constant bit rate of 4 packets per second. When
> using
> > the cbrgen.tcl script with -rate set to 4 I receive this message
> "invalid
> > sending rate 4".
> > The error is generated when executing these lines of code.
> >
> > set opt(interval) [expr 1 / $opt(rate)]
> > if { $opt(interval) <= 0.0 } {
> >     puts "\ninvalid sending rate $opt(rate)\n"
> >     exit
> > }
> >
> > I find it strange that a rate of 4 packets per second doesn't work
> because
> > it is used as an example in the traffic generator's README file.
> > What should do to receive a constant bit rate of 4 packets per second?
> >
> > All help appreciated
> >
> > Pragasen
> >





Re: [ns] REGEDING TO INSTALLATION OF NS-2.29 ON FEDORACORE-4

2006-10-04 Thread Pedro Vale Estrela

Re-download the .tar.gz


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of khushali shah
> Sent: quarta-feira, 4 de Outubro de 2006 12:11
> To: ns-users@ISI.EDU
> Subject: [ns] REGEDING TO INSTALLATION OF NS-2.29 ON FEDORACORE-4
> 
> 
> hi
> i am trying to install ns-2.29 on fedora core-4,
>  i found the error with untar file that mentioned
> below.
> 
>  gzip:stdin:unexpected end of file
>   tar: unexpected EOF in archieve
>   tar: unexpected EOF in archieve
>   tar:Error is not recoverable.
> 
>  if u have any idea to solve this problem then please
> reply me.
> any answer from ur side is appreciated .
> 
> 
> thanks
> khushali
> 
> 
> 
> __
> Yahoo! India Answers: Share what you know. Learn something new
> http://in.answers.yahoo.com/





Re: [ns] BS between HA and MN on Mobile IP simulations

2006-10-03 Thread Pedro Vale Estrela

For the HA: Yes
For the FA: no - the agents must be adjacent to the MNs to deliver them the
traffic

This is a question of good usage of the hierarchical addresses.
Check http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html and use
this tip
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html#_Toc121548870

Consider this case:

MN1---BS2-FA-Router---HA-- BS1-- MN2
4.0.5 2.0.1   2.0.2 3.0.04.0.04.0.1   4.0.2

here, all packets destined to MN1, coming from example from BS2, will be
sent to the domain #4, and received by the HA. This will then send the
packets in a tunnel to FA 2.0.2. The problem is that FA will not be able to
deliver the packets directly to MN1, as the BS is in the way.

PS: I've also taken the time to organize my site; check 
http://tagus.inesc-id.pt/~pestrela/ns2/
and, for your case
http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html#_Toc147660119

Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Andres Fernando Estupinan Lopez
> Sent: terça-feira, 3 de Outubro de 2006 22:48
> To: ns-users@ISI.EDU
> Subject: [ns] BS between HA and MN on Mobile IP simulations
> 
> 
> Hi,
> 
> I want to simulate a Mobile IP network, but I don't need a direct wireless
> link between the HA and the Mobile Node, I need an intermediate base
> station between this two nodes. The same case on foreing domains.
> With the mobile IP basic support on ns-2 it's possible to configure the
> next topology?
> 
> 
>  MN1---BS2-FA-Router---HA-- BS1 --
>  MN2
> 
> Thanks in advance for help and information,
> 
> 
> Best regards,
> 
> Andrés,





Re: [ns] LossMonitor - can't read, no such variable

2006-09-29 Thread Pedro Vale Estrela

Instead of that, define the sink as an array variable and use it as normal
http://wiki.tcl.tk/1032




set sink(1) [new Agent/TCPSink]

...

Proc something { }  {
global sink

...
set bw0 [$sink(1) set bytes_]

}

> -Original Message-
> From: Renata Vidal [mailto:[EMAIL PROTECTED]
> Sent: sexta-feira, 29 de Setembro de 2006 20:48
> To: [EMAIL PROTECTED]
> Cc: ns-users
> Subject: Re: [ns] LossMonitor - can't read, no such variable
> 
> My variables are called sink($i), the () is in the name of them. I
> tried scape it but it not solve the problem. If I change for something
> like sink$i I have errors on attach-agent command.
> This example below don't works for me...
> Any clue?
> 
> On 9/29/06, Pedro Vale Estrela <[EMAIL PROTECTED]> wrote:
> > Ahh, the ever challenging TCL syntax...
> >
> > a) Check Frequently Made Mistakes™ in Tcl
> > http://phaseit.net/claird/comp.lang.tcl/fmm.html
> >
> > b) try like this:
> >
> > > proc record {} {
> > >  puts stderr "recording"
> > >  global sink f0   ;#  <<<<<<< changed line
> > >  set ns [Simulator instance]
> > >  set time 0.5
> > >  set bw0 [$sink(1) set bytes_]
> > >  set now [$ns now]
> > >  puts $f0 "$now [expr $bw0]"
> > >  $ns at [expr $now+$time] "record"
> > > }
> >
> >
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf
> > > Of Renata Vidal
> > > Sent: sexta-feira, 29 de Setembro de 2006 19:54
> > > To: ns-users
> > > Subject: [ns] LossMonitor - can't read, no such variable
> > >
> > >
> > > Why I can't set a variable like this: SinkCBR($i) ?
> > > Its got me crazy! If I set each variable like SinkCBR0, SinkCBR1 and
> > > so on, its be OK, but if I try SinkCBR($i) or SinkCBR$i I see the
> > > message "no such variable".
> > > Whats is wrong?
> > >
> > > -- Forwarded message --
> > > From: Renata Vidal <[EMAIL PROTECTED]>
> > > Date: Sep 28, 2006 2:47 PM
> > > Subject: LossMonitor - can't read, no such variable
> > > To: ns-users 
> > >
> > >
> > > Hi,
> > >
> > > I was trying to use the LossMonitor, but I see the message:
> > > ns: record: can't read "sink(1)": no such variable
> > > while executing
> > > "$sink(1) set bytes_"
> > > (procedure "record" line 12)
> > > invoked from within "record"
> > >
> > > This a peace of my code, I don't know whats is wrong:
> > >
> > > (..)
> > > set sink($i) [new Agent/LossMonitor]
> > > $ns attach-agent $s($i) $tcp($i)
> > > $ns attach-agent $r($i) $sink($i)
> > > $ns connect $tcp($i) $sink($i)
> > > (..)
> > > proc record {} {
> > >  puts stderr "recording"
> > >  global sink(1) f0
> > >  set ns [Simulator instance]
> > >  set time 0.5
> > >  set bw0 [$sink(1) set bytes_]
> > >  set now [$ns now]
> > >  puts $f0 "$now [expr $bw0]"
> > >  $ns at [expr $now+$time] "record"
> > > }
> > >
> > > Any Clue?
> > >
> > > --
> > > Renata Vidal
> > > "Triste é o destino de quem tenta vencer as batalhas e ter sucesso nos
> > > ataques sem cultivar o espírito da iniciativa (A Arte da Guerra – SUN
> > > TSU – pg 102)"
> > >
> > >
> > > --
> > > Renata Vidal
> > > "Triste é o destino de quem tenta vencer as batalhas e ter sucesso nos
> > > ataques sem cultivar o espírito da iniciativa (A Arte da Guerra – SUN
> > > TSU – pg 102)"
> >
> >
> >
> 
> 
> --
> Renata Vidal
> "Triste é o destino de quem tenta vencer as batalhas e ter sucesso nos
> ataques sem cultivar o espírito da iniciativa (A Arte da Guerra – SUN
> TSU – pg 102)"




Re: [ns] trouble with error model over wired links

2006-09-29 Thread Pedro Vale Estrela


Hi there,
This is another fine post to the ns-users mailing list. 
Good subject, good question overall == totally in line with
http://www.catb.org/~esr/faqs/smart-questions.html

the problem is that you are putting the loss-model in all 3 links; 
I report exactly the same tracea and NAM problems.

Instead, Try this:

#$ns link-lossmodel $em $n(0) $n(1)
$ns link-lossmodel $em $n(1) $n(2)
#$ns link-lossmodel $em $n(2) $n(3)


pedro vale estrela
http://tagus.inesc-id.pt/~pestrela/ns2/




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Abdul Jabbar
> Sent: sexta-feira, 29 de Setembro de 2006 17:45
> To: ns-users@ISI.EDU
> Subject: [ns] trouble with error model over wired links
> 
> 
> Hello,
> 
> I am having unusual trouble getting a simple error model to work over
> wired links in ns2.29. I have checked the mailing list archives and
> could not find a similar problem/solution. Below is my tcl script which
> represents a simple network topology of 3 nodes connected in a chain
> using duplex-links. I have a CBR/UDP flow between the nodes 0 and 3. The
> flow path is 0-1-2-3.
> 
> If I don't use any error on the links, everything works fine as is
> confirmed by the trace file and the nam visualization.
> 
> However, if I include a simple error model and attach it to each of the
> three links, the whole simulation goes awry. In the trace file I see
> packets going from node 0 to node 1. There is no data flow between node
> 2 and node 3 and there is a data flow between nodes 2 and 3. Basically
> the packets disappear  on node 1 and magically reappear at node 2.  In
> nam visualization, it is even worse...there is just one flow between
> nodes 0 and 1thats it.no other data flows. Changing the error
> rate does not help.
> 
> When I have a more complex topology ( like a mesh topology of 8x8 nodes)
> the whole simulation goes so bizarre, that it is even hard to trace what
> is going wrong. That's why I am using this simple 3 node topology to
> illustrate the problem.
> 
> I am hoping that there is some fundamental mistake on my part. Please
> point in the right direction.
> 
> Thanks,
> Abdul.
> 
> Here's the TCL script
> --
> set ns [new Simulator]
> set tf [open simout.tr w]
> $ns trace-all $tf
> set nf [open simout.nam w]
> $ns namtrace-all $nf
> proc finish {} {
>   global ns nf tf
>   $ns flush-trace
>   close $nf
>   close $tf
>   exec nam simout.nam &
>   exit 0
> }
> 
> for {set i 0} {$i < 4} {incr i} {
>   set n($i) [$ns node]
> }
> 
> $ns duplex-link $n(0) $n(1) 500Mb 10ms DropTail
> $ns duplex-link $n(1) $n(2) 500Mb 10ms DropTail
> $ns duplex-link $n(2) $n(3) 500Mb 10ms DropTail
> 
> set em [new ErrorModel]
> $em unit pkt
> $em set rate_ 0.01
> $em ranvar [new RandomVariable/Uniform]
> $em drop-target [new Agent/Null]
> 
> $ns link-lossmodel $em $n(0) $n(1)
> $ns link-lossmodel $em $n(1) $n(2)
> $ns link-lossmodel $em $n(2) $n(3)
> 
> set udp0 [new Agent/UDP]
> $ns attach-agent $n(0) $udp0
> set cbr0 [new Application/Traffic/CBR]
> $cbr0 set packetSize_ 1000
> $cbr0 set interval_ 0.005
> $cbr0 attach-agent $udp0
> 
> set null0 [new Agent/Null]
> $ns attach-agent $n(3) $null0
> $ns connect $udp0 $null0
> 
> $ns at 0.5 "$cbr0 start"
> $ns at 4.5 "$cbr0 stop"
> $ns at 5.0 "finish"
> 
> $ns run





Re: [ns] LossMonitor - can't read, no such variable

2006-09-29 Thread Pedro Vale Estrela

Ahh, the ever challenging TCL syntax...

a) Check Frequently Made Mistakes™ in Tcl
http://phaseit.net/claird/comp.lang.tcl/fmm.html

b) try like this:

> proc record {} {
>  puts stderr "recording"
>  global sink f0   ;#  <<< changed line
>  set ns [Simulator instance]
>  set time 0.5
>  set bw0 [$sink(1) set bytes_]
>  set now [$ns now]
>  puts $f0 "$now [expr $bw0]"
>  $ns at [expr $now+$time] "record"
> }




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Renata Vidal
> Sent: sexta-feira, 29 de Setembro de 2006 19:54
> To: ns-users
> Subject: [ns] LossMonitor - can't read, no such variable
> 
> 
> Why I can't set a variable like this: SinkCBR($i) ?
> Its got me crazy! If I set each variable like SinkCBR0, SinkCBR1 and
> so on, its be OK, but if I try SinkCBR($i) or SinkCBR$i I see the
> message "no such variable".
> Whats is wrong?
> 
> -- Forwarded message --
> From: Renata Vidal <[EMAIL PROTECTED]>
> Date: Sep 28, 2006 2:47 PM
> Subject: LossMonitor - can't read, no such variable
> To: ns-users 
> 
> 
> Hi,
> 
> I was trying to use the LossMonitor, but I see the message:
> ns: record: can't read "sink(1)": no such variable
> while executing
> "$sink(1) set bytes_"
> (procedure "record" line 12)
> invoked from within "record"
> 
> This a peace of my code, I don't know whats is wrong:
> 
> (..)
> set sink($i) [new Agent/LossMonitor]
> $ns attach-agent $s($i) $tcp($i)
> $ns attach-agent $r($i) $sink($i)
> $ns connect $tcp($i) $sink($i)
> (..)
> proc record {} {
>  puts stderr "recording"
>  global sink(1) f0
>  set ns [Simulator instance]
>  set time 0.5
>  set bw0 [$sink(1) set bytes_]
>  set now [$ns now]
>  puts $f0 "$now [expr $bw0]"
>  $ns at [expr $now+$time] "record"
> }
> 
> Any Clue?
> 
> --
> Renata Vidal
> "Triste é o destino de quem tenta vencer as batalhas e ter sucesso nos
> ataques sem cultivar o espírito da iniciativa (A Arte da Guerra – SUN
> TSU – pg 102)"
> 
> 
> --
> Renata Vidal
> "Triste é o destino de quem tenta vencer as batalhas e ter sucesso nos
> ataques sem cultivar o espírito da iniciativa (A Arte da Guerra – SUN
> TSU – pg 102)"





Re: [ns] Filtering Columns from output trace file

2006-09-29 Thread Pedro Vale Estrela


cat trace.tr | awk ' { print "$2\t\t$8" } '


hint: check this small doc and associated tools to answer a lot of questions
"ns-2 for the impatient": http://icapeople.epfl.ch/aad/teaching/ns/

> -Original Message-
> From: Aleksandar Smolovic [mailto:[EMAIL PROTECTED]
> Sent: sexta-feira, 29 de Setembro de 2006 16:50
> To: [EMAIL PROTECTED]
> Subject: Re: [ns] Filtering Columns from output trace file
> 
> Thank you.
> 
> How to make delimiter between columns in new file. It should be done
> during
> creation of new file?
> 
> 
> - Original Message -
> From: "Pedro Vale Estrela" <[EMAIL PROTECTED]>
> To: "'Aleksandar Smolovic'" <[EMAIL PROTECTED]>; "'NS-Users'" 
> 
> Sent: Friday, September 29, 2006 5:42 PM
> Subject: RE: [ns] Filtering Columns from output trace file
> 
> 
> 
> Try
> 
> cat trace.tr | awk ' { print $2 $6 $8 } '
> 
> 
> PS: Good subjects, as in this case, will get you the answers!
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf
> > Of Aleksandar Smolovic
> > Sent: sexta-feira, 29 de Setembro de 2006 16:11
> > To: NS-Users
> > Subject: [ns] Filtering Columns from output trace file
> >
> >
> > Hi all,
> >
> > I have a basic NS2 question.
> >
> > After executing tcl script, I have result files on my HDD. I have output
> > trace file, let's say "out.tr". Now I want to draw some graphics. My
> > out.tr files have 12 columns and I need only 2. How to do it ?
> >
> > I saw that in documentation people mention "column.pl" perl script fajl,
> > for this purpose, but I cannot find how to use it.
> >
> > Can somebody help me with filtering 2 columns from trace file?
> >
> > Thanks.





Re: [ns] Filtering Columns from output trace file

2006-09-29 Thread Pedro Vale Estrela


Try

cat trace.tr | awk ' { print $2 $6 $8 } '


PS: Good subjects, as in this case, will get you the answers!

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Aleksandar Smolovic
> Sent: sexta-feira, 29 de Setembro de 2006 16:11
> To: NS-Users
> Subject: [ns] Filtering Columns from output trace file
> 
> 
> Hi all,
> 
> I have a basic NS2 question.
> 
> After executing tcl script, I have result files on my HDD. I have output
> trace file, let's say "out.tr". Now I want to draw some graphics. My
> out.tr files have 12 columns and I need only 2. How to do it ?
> 
> I saw that in documentation people mention "column.pl" perl script fajl,
> for this purpose, but I cannot find how to use it.
> 
> Can somebody help me with filtering 2 columns from trace file?
> 
> Thanks.




Re: [ns] A router (gateway) between two ad hoc networks

2006-09-29 Thread Pedro Vale Estrela



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of [EMAIL PROTECTED]
> Sent: quinta-feira, 28 de Setembro de 2006 9:44
> To: ns-users@ISI.EDU
> Subject: [ns] A router (gateway) between two ad hoc networks
> 
> 
> Hello,
> 
> I am trying to implement a router (gateway) between two ad hoc networks
> using hierarchical addressing and in two different domains. As an
> example:
> 
> MANET 1:
> 1.0.1
> 1.0.2
> 
> MANET 2:
> 2.0.1
> 2.0.2
> 2.0.3
> 
> A shortcut solution is to use two BaseStationNodes, i.e.:
> 
> BSNode1: 1.0.0
> BSNode2: 2.0.0
> 
> And linking them with a full duplex link. Since the characteristics of
> the wired link will interfere with the simulation, I do not like this
> solution.
This is a good point
To minimize it, i suggest you to make a simple wired link with
0.1 delay and "infinite" bandwidth 


> The better solution is to manipulate the ns-bsnode.tcl implementation
> for supporting two wireless interfaces in different domains.
This requires a manet protocol which is hierarchical-aware, which I don't
think the implemented Ns2 protocols support. The other solution has the
benefit of not requiring MANET protocols any changes.

> Could you provide me a solution for this, if anyone has a better one, or
> implemented one?
> 
> Regards,
> Majid
> 
> ***
> Majid Ghader
> Research Officer
> Centre for Communication Systems Research
> University of Surrey, Guildford, United Kingdom
> 
> http://www.ee.surrey.ac.uk/showstaff?M.Ghader
> 
> ***
> 
> 
> 





  1   2   >