[ns] Where is the Application/FTP code?

2008-01-16 Thread Pedro Estrela

ns grep ftp -d recurse *

or

ns grep ftp */*.cc
ns grep ftp */*/*.cc


 On 16/01/2008, NS [EMAIL PROTECTED] wrote:


 Hi would anyone be able to let me know where the code for the
 Application/FTP is as I would like to modify receive method. I want to do
 this as I would like to be able to on receiving a packet, return a new
 packet of a defined size, if anyone knows of an easier way please let me
 know. The idea behind this to to simulate the traffic too and from a DNS
 lookup node.

 Thanks
 Mark




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

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


Re: [ns] Send TcL Commands to NS during simulation runtime

2008-01-16 Thread Pedro Estrela

On 16/01/2008, Tom Hewer [EMAIL PROTECTED] wrote:


 Hi,

 I have been trying various options for sending TcL messages to NS
 during runtime (i.e. to send an updated location to a mobile-node) but
 as yet have had no success.
 The ultimate goal is a way to couple a mobility generator to NS and
 run them both live.


 Has anyone yet achieved this, and if so, how.


You wil have to use nse (NS emulation)


The options I have been working on are:

 1. Pause the scheduler and then send events directly to the scheduler
 stack -- not working well, as the halt command just terminates runtime


For this you would have to recode the scheduler, which is what NSE does


2. Setup the Tcl script to read from stdin and then send commands to
 it -- NS doesn't completely parse the tcl script as is waiting for
 more input and so never gets to simulation runtime


forget it - the simualtion on really starts at $NS run

3. I believe there must be a way to use the emulate mode of NS to send
 data in through a socket that is interpreted by NS as a command, but
 haven't a clue where to start on this.


first start to put nse to work properly, only then proceed to adding suck
socket etc

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



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


Re: [ns] Ns Exits unexpectedly

2008-01-14 Thread Pedro Estrela

somewhere an exit is being called, and no message is being printed.
In my IST CIMS package I have a facility in utils_ns.cc and config.h which
redifines exit as a macro, to call my custom my_abort proc, to display the
filename and line number. This has already solved many probelms just like
you describe for me.

Pedro Estrela
tagus.inesc-id.pt/~pestrela/*ns2*
 - Show quoted text -


On 14/01/2008, Dan [EMAIL PROTECTED] wrote:




 Hello All,



 I am working on a custom MAC layer for ns-2 (TDMA) based. I am trying to
 debug it, however my program exists unexpectedly (no crash --
 segmentation
 error/floating point). I have been trying to trace through it with no
 luck.
 When the program exists, one station has already transmitted a packet and
 is
 waiting to handler its transmission timer, and all other stations are
 waiting to handler their receiving timer.



 I can tell that the scheduler just simply isn't completing as it is not
 processing my last tcl scheduled code. Any ideas?



 Thanks,


 Dan






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


Re: [ns] address routing

2008-01-11 Thread Pedro Estrela

In what I've seen in wireless 802.11, mac address = IP address, but of the
way the code it works, the arp module must get the mac address from a given
ip address (just like in real networks).

I suggest you to check how this is done, in a stable simple
802.11scnenario, and recreate what you learn in zigbee

Pedro Estrela


On 11/01/2008, juan manuel gomez garcia [EMAIL PROTECTED] wrote:

 Hi ns-users:

 During last year I was realizing my master thesis about zigbee routing
 protocol. I do my own ns-2 version of zigbee routing protocol. Like any
 routing protocol, it use the IP address to identify all nodes.
 BUT I use the ns-2 wpan code to realize the MAC and physical level. At the
 MAC level,  there is a association function that assign a logical address to
 all nodes to create a tree. This address is diferent that IP address.
 How I can convert the IP address of the nodes to this logical
 address?  When my node receives a packet, it has a IP address. How I can use
 the MAC address?

 Thank you very much.


 --
 Tecnología, moda, motor, viajes,.suscríbete a nuestros boletines para
 estar siempre a la última MSN 
 Newslettershttp://newsletters.msn.com/hm/maintenanceeses.asp?L=ESC=ESP=WCMaintenanceBrand=WLRU=http%3a%2f%2fmail.live.com




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


Re: [ns] Seg Faults

2007-11-19 Thread Pedro Estrela

use ifdefs to NOT redefine abort in those RNG files

as such, you'll see aborts everywhere except RNG fucntions



On 11/19/07, Leonard Tracy [EMAIL PROTECTED] wrote:


 Thanks for the suggestion.  I am having a problem with implementing
 this.  First off, I get quite a few errors unless I do an #ifdef to
 make sure that STDLIB_H gets included first. (It complains when stdlib
 tries to declare abort after).  Wrapping an #ifdef STDLIB_H around the
 macro definitions seems to fix this.  I define uan_abrt in a file that
 is being compiled, uan-tools.cc, but I am failing in the link stage
 with an undefined reference.

 tools/rng.o: In function `RNG::set_seed(unsigned long const*)':
 rng.cc:(.text+0x13b2): undefined reference to `uan_abrt'
 tools/rng.o: In function `RNG::set_package_seed(unsigned long const*)':
 rng.cc:(.text+0x1440): undefined reference to `uan_abrt'
 tools/rng.o: In function `RNG::set_seed(RNG::RNGSources, int)':
 rng.cc:(.text+0x14bf): undefined reference to `uan_abrt'
 rng.cc:(.text+0x14e1): undefined reference to `uan_abrt'
 tools/rng.o: In function `RNGTest::RNGTest()':
 rng.cc:(.text+0x1b71): undefined reference to `uan_abrt'
 tools/rng.o:rng.cc:(.text+0x1be4): more undefined references to
 `uan_abrt' follow
 collect2: ld returned 1 exit status

 Note that the spelling, uan_abrt is correct.

 Have I done something obvious to other people?

 Leonard

 On Nov 16, 2007 7:52 PM, Leonard Tracy [EMAIL PROTECTED] wrote:
  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] share a debug tools packet

2007-09-05 Thread Pedro Estrela

hi!

this is a very welcome and interesting patch.
I'll test it on monday and mention on my web page

If it gest sufficient test, I can try to push it to the developers into
v2.33

regards
pedro vale estrela


On 9/5/07, Ye YiBin [EMAIL PROTECTED] wrote:

 Recent release of ns-2.32 enable Tk for ns-2. Patches contributed by
 Pedro Vale Estrela: Pedro's debugging page:
 http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html

 Here's a patch that I created for enabling all the debug
 features,described on the page above, only with a few commands.

 Extract it in the ns-allinone-2.32 directory,
 cd ns-allinone-2.32/debug-allinone
 ./debuginstall
 cd ..
 ./install
 source debug-allinone/addpath

 (You can run debuginstall either before or after installing
 ns-allinone-2.32)
 After these step, you can do both c++ debugging and tcl debugging.
 Further guide after installing the debug tools:
 http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging3.html

 --
 Regards
 -Ye




[ns] code, tools, facilities and debuging helpers in pedro estrela web page (http://tagus.inesc-id.pt/~pestrela)

2007-08-17 Thread Pedro Estrela

Hi all,

As such, I've taken this opportunity to describe the most useful code, tools
and facilities that I presnet in my web page which can be used b yNS2 users
in their simualtions. If anybody has any problem using these facilities, do
not hesitate in asking for assistance!



Regards,

Pedro Estrela

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



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



---

a) A very simple, no frills, Getopt-inspired argument processing, which
supports short arguments in any order and precedence in a very simple way

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



useful for testing many parameters manually., eg:

 ns -- -s 10 more args

 ns -- -s 10 more args -s 20



being the array opt(speed) changed with the last given argument (-s).



b) Several useful short TCL procs, mentioned in
http://tagus.inesc-id.pt/~pestrela/ns2/contributed_code.html#_Toc147652229



of these I can point as the most useful:



proc static {varname {initval 0}} {

proc incr { name {value 1 } } {

Class instproc instances {} {

Class instproc subclass {} {

Class instproc vars {} {

proc trace_annotate_time { str { doprint 1 } } {

Simulator instproc set-animation-rate { rate } {



c) Hierarchical addresses procs:



I've made a set of helper functions that enabled me to easily convert from
each type of address that a node can have, where the value -1 in an error
/ unk.



## Type   |  VarNames|  C++ type |  TCL   |
Example | Error / UNK

##
---|-|---||-|--

## Node's handle  |  N_handle|  char *   | string |
_o89   | -1

## String HierAddress |  N_haddr |  char *   | string | 
1.2.3 | -1

## 32 bit Address |  N_iaddr |  int  | int in string
| 6144
| -1

## Sequential ID  |  N_id|  int  | int in string
| 4
| -1



eg: I've made tcl and C++ functions called iaddr2handle(),handle2haddr(),
etc that can be used in sequence anytime that an address conversion is
required in the code (which in my case was very common).



note that that these functions depend on a small modification in
/tcl/lib/ns-lib.tcl   Simulator Node {}, to make sure that all nodes (wired
and wireless) get inside the Simulator::Node_ array.





d) the oTCL debugging facilities.

Using the TK support, it is very easy to add the MASH inspector, which is a
powerful oTCL object inspector. (and also the TKCON console, for a nicer
console).

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






However, note that this only enables debugging at NS zero-time; for run-time
debugging, its required to install the Tcl debugger, with some modifications
of mine described in the last steps of the guide.


I've also got C++ helper and debugging functions in

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



some examples of very useful helper functions for calling TCL code inside
C++, which was very common in my case:



#define CUR_TIME  Scheduler::instance().clock()

#define MY_ADDR
Address::instance().get_nodeaddr(addr())


#define TCL_RESULT Tcl::instance().result()

#define PRINT_NODEADDR(X)Address::instance().print_nodeaddr(X)

#define TCL_EVALF   Tcl::instance().evalf



// prototypes

int dprintf (const char *format, ...);

int dTCL_EVALF (const char *format, ...);

int dTCL_EVALFr (const char *format, ...);

int TCL_EVALFr (const char *format, ...);



 On 8/15/07, Tom Henderson [EMAIL PROTECTED] wrote:

 Pedro,
 I just committed your step2 patch for enabling Tk.  So far, I've only
 tested it on Linux i386.

 I am quite impressed with your ns-2 page, by the way.  Feel free to
 suggest other things that you think would help the simulator.  I will
 try to repost your gathered information on the wiki at some point.

 Regards,

 Tom

  Original Message 
 Subject: [Nsnam-commits] ns-2 CHANGES.html
 Date: Tue, 14 Aug 2007 22:51:00 -0700
 From: Tom Henderson  [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]

 Update of /cvsroot/nsnam/ns-2
 In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23814

 Modified Files:
CHANGES.html
 Log Message:
 Update CHANGES.html

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 Nsnam-commits mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/nsnam-commits



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

2007-03-22 Thread Pedro Estrela

I have the same situation.

I solve it by using the same delay in the real simualtion, and use different
delays just for debugging.

Pedro Estrela

On 3/22/07, Javier Chicote [EMAIL PROTECTED] wrote:


 Hi,

 Thank your very much for your reply.

 It is a good idea, but in my case all the links must have the same delay,
 so that is not a possibility.

 It is a pity that NAM does not support this facility.

 Best regards,

 Javier

 - Mensaje original 
 De: Pedro Vale Estrela [EMAIL PROTECTED]
 Para: Javier Chicote [EMAIL PROTECTED]; ns-users@ISI.EDU
 Enviado: miércoles, 21 de marzo, 2007 19:02:16
 Asunto: RE: [ns] ns/nam: respresentation problem when
 definingposition-fixed nodes (NEW question)


 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

Re: [ns] installation problem with ns-2.1b8a

2007-03-22 Thread Pedro Estrela

google is your friend
http://www.chipweb.de/knoll/NS2/Installing_old_NS2_version_ns-allinone-2_1b6a_on_RedHat_8_0.php





On 3/22/07, sachin dahiya [EMAIL PROTECTED] wrote:


 Hi friends ,

 While installing ns-2.1b8a I am getting this problem

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


 please give me the solution

 Thank you,
 sachin



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

2007-03-21 Thread Pedro Estrela

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

note that in many linux systems, gcc is simply a link to gcc-3.something;
if gcc-2.95 is available, simply modify the macro at the top of the
makefile.

If it is not installed, then iether install it yourself, or use an older
linux distribution; especially for complete beginners, this later solution
can prove to be the faster to get working NS2.1b8 code an earlier running!

Pedro Vale Estrela


On 3/21/07, Faisal Aslam [EMAIL PROTECTED] wrote:


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

 regards,

 Faisal Aslam

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






Re: [ns] Helpful Info regarding GDB / DDD and NS2

2007-01-23 Thread Pedro Estrela

hi

thanks for your contribution, I'll certainly add it to my guide.

However, this would be much easier if the ns2 wiki was used for this kind of
documentation

pedro estrela


On 1/23/07, deepak [EMAIL PROTECTED] wrote:



 how to debug ns2 code using gdb or ddd

 Thanks to  SamanaSrikanth and ameya. I found this on
 orkut.
 May be Pedro Estrela Should add this to his C++
 debugging.

 
 ns - debug
 how to debug ns2 code using gdb or ddd?

 ok, so to enable debug information in ns, you need to
 do the following:

 in your ns-allinone directory, edit the install file.
 Look for the line :

 # Build Tcl8.3.2 (should be around line 173)

 In this section you need to add the option
 --enable-symbols to the line :
 ./configure --enable-gcc --disable-shared
 --prefix=$CUR_PATH || 

 so it becomes:
 ./configure --enable-gcc --enable-symbols
 --disable-shared --prefix=$CUR_PATH || 

 Now, still in the ns-allinone/install file, look for
 the tclcl section.

 # Build tclcl (should be around line 260)

 in this section, you need to add --enable-debug to
 your configure line, such
 that:

 ./configure || ...

 becomes

 ./configure --enable-debug || ...

 ok, we're done with this one. save and close.

 now, go into your ns-allinone/ns directory, and open
 your Makefile.in. Search
 for CFLAGS (should be around line 90), and change it
 from

 CFLAGS = $(CCOPT) $(DEFINE)

 to

 CFLAGS = -g $(CCOPT) $(DEFINE)

 ok, we're done with the editing. now go to your
 ns-allinone and type

 ./install.

 after everything is done, you should have debugging
 symbols enabled. so, now
 you recompile your code into ns, and open ns in gdb
 (gdb ns) and set the
 appropriate parameters to ns (e.g. your .tcl
 simulation file), and type run.
 When the app crashes, type bt to see the stack. you
 should see plenty of debug
 information now.

 let me know how it goes.
 

 the way I prefer the most is just add the -g flag
 information in the make file.
 That should add the debug symbols and then while
 running do following

  ddd ns

 once ur in graphical debugger,
 say
 set args filename ( any other args)
  run example.tcl

 that should give you a good graphical display of your
 code. debugging becomes easy and faster
 




 
 Do you Yahoo!?
 Everyone is raving about the all-new Yahoo! Mail beta.
 http://new.mail.yahoo.com




 
 Get your own web address.
 Have a HUGE year through Yahoo! Small Business.
 http://smallbusiness.yahoo.com/domains/?p=BESTDEAL




Re: [ns] Loss=Sent Packets - Received Packets or Lines with Event d marked?

2007-01-19 Thread Pedro Estrela

there are several places where a packet may be dropped, and not al of then
properly log such event.

Also, be sure stop measuring only after all in-flight pakcets have been
received
pedro vale estrela

On 1/19/07, Alessandro Vivas [EMAIL PROTECTED] wrote:


 Hi,

 in loss calculation i had some problems. When I calculate, loss in
 simulation
 Loss=Sent Packets - Received Packets is different of the number of times
 the
 event d  is maked? Its correct?

 thanks



 --
 Alessandro Vivas Andrade



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

2007-01-19 Thread Pedro Estrela

 Google is your friend
http://www.google.pt/search?hl=en-enq=%2Fdev%2Fnull+ns2+tracemeta


On 1/19/07, babak [EMAIL PROTECTED] wrote:

 Hi Pedro,

 How can I write the trace to /dev/null. What should I wirte in the tcl
 file

 Thanks for your attention
 Babak
 - Original Message -
 From: Pedro Vale Estrela [EMAIL PROTECTED]
 To: 'babak' [EMAIL PROTECTED]; ns-users@ISI.EDU
 Sent: Friday, January 19, 2007 1:08 AM
 Subject: RE: [ns] How to disable all the trace outputs



 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] gcc error in Ns-2.29 with setdest.h

2007-01-15 Thread Pedro Estrela

That's the spirit!

a very quick diff  patch how-to:
http://drupal.org/diffandpatch

Pedro Vale Estrela


On 1/15/07, Larry Brigman [EMAIL PROTECTED] wrote:


 On 1/15/07, Matthew Faulkner [EMAIL PROTECTED] wrote:
 
  Hey all,
 
  I'm unsure if anyone has answered this question yet but i just came
  across the same issue. The problem is within a bunch of files where
  you have, for example, the following method signature:
 
  inline void vector::operator=(const vector a) {
 
  To fix these errors you need to correct all the errors by removing the
  class definition before the method, i.e. the above line becomes
 
  inline void operator=(const vector a) {
 
  once you've done this bunch there are more similar errors. there is a
  bunch of other errors along the way, all are similar fixes.
 
  Help this helps
 
  Matt Faulkner

 If that fixes it for you, make a patch and send it the the author or
 maintainers of the WiMax
 module.




Re: [ns] CIMS/NS-2

2007-01-12 Thread Pedro Estrela

i don't have them. ask the web site owner; when you get them, I'll happy to
provide a mirror im my page

Pedro Estrela


On 1/12/07, Ameera AL-Durazi [EMAIL PROTECTED] wrote:

  Dear Sir,

 I have got linux RedHat 8.0 but the problem know that when I go to the
 link that you give to me which is


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

 it gives me error when I try to download the patches that included in the
 link , so could you send me these patches

 Thanks ,

 Ame



  --
 From: *Pedro Vale Estrela [EMAIL PROTECTED]*
 Reply-To: *[EMAIL PROTECTED]*
 To: *'Ameera AL-Durazi' [EMAIL PROTECTED]*
 CC: *ns-users@ISI.EDU*
 Subject: *RE: CIMS/NS-2*
 Date: *Wed, 10 Jan 2007 14:16:01 -*

  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 
 Messengerhttp://g.msn.com/8HMAEN/2737??PS=47575Download today it's FREE!


 --
 FREE pop-up blocking with the new MSN Toolbar MSN 
 Toolbarhttp://g.msn.com/8HMBEN/2752??PS=47575Get it now!


Re: [ns] Calculate goodput

2007-01-11 Thread Pedro Estrela

http://www.isi.edu/nsnam/htdig/search.html


On 1/11/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Can you help me to calculate goodput of tcp, fairness and friendliness?


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






[ns] NS tutorial update proposal

2007-01-11 Thread Pedro Estrela

 Hi

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.

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

-

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.
http://nsnam.isi.edu/nsnam/index.php/Main_Page
- the next step would be to port the Marc Greis's tutorial to the Wiki (at
first, a simple 1 page per chapter copy would be sufficient), which would be
much easier to maintain afterwards.

However, in my opinion, major improvements in problems like this will
only be possible if more users take the action to contribute.


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


On 1/11/07, Joachim Fabini [EMAIL PROTECTED] wrote:


 Hi all,

 I noticed that section VII of Marc Greis' tutorial is seriously
 out of sync with the NS 2.30 sources.

 First, the ping example is now included in the apps
 directory of the ns distribution (this is worth mentioning in
 the tutorial text),
 Second, some functionality has been added to the apps/ping example
 (e.g. broadcast) and
 Third, the location, encapsulation and access methodology for some
 (former) member variables has been changed (improved imho, but
 with the drawback of not being backward compatible).

 Specifically the third aspect requires to update the tutorial.
 Newbies are likely to be confused by the changes and compiler
 errors when they write their own protocols based on the ping
 sample as a template. The tutorial ping uses members which are
 no longer valid - e.g. off_ip_, which was apparently replaced
 by hdr_ip::access(); the src_ member which apprently was changed
 to a struct, yielding the former src_ in src_.addr_, etc.).
 NS is sufficiently complex for newbies, anyhow. ;)

 I therefore suggest to reflect these changes of the ping sources
 back to the tutorial, and, in addition, modify the comment on
 line 55 of the NS 2.30 apps/ping.h file (and cc-file) requesting
 that future changes be reflected to section VII the NS Tutorial.
 (The tutorial/examples directory seems to anyhow no longer
 exist)...

 Thanks in advance,
 best regards
 --Joachim




Re: [ns] installing iNspect in fedora core 5 linux error information

2007-01-11 Thread Pedro Estrela


./configure --help

and check how to specifify the location of your openGL instalation
(libraries, includes, etc)
have you instaled openGL???

Pedro Vale Estrela


On 1/11/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:





Dear Everyone,
when  I  install  it in Fedora core 5 linux, I met error information
as follows.  please help me find reasons ,Thanks in advances!
another question is that I can not download GpenGL library.pleae help
me !

Wang Jun-wei   Hefei University of Technology  China
// checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for strerror in -lcposix... no
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f95 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries...
yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag CXX to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag F77 to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f95 option to produce PIC... -fPIC
checking if f95 PIC flag -fPIC works... yes
checking if f95 supports -c -o file.o... yes
checking whether the f95 linker (/usr/bin/ld) supports shared libraries...
yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into 

Re: [ns] HMIP ?

2007-01-04 Thread Pedro Estrela

the CIMS software is available here:
http://www.comet.columbia.edu/micromobility/software.htm#Please

I'm building and maitaining a mirror of all NS2 mobility-related software in
my page
http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html

If anyone can contribute eitehr software, information or tips regarding NS2
mobility, please email me, and I'll add it to this page and give proper
credit.

Pedro Vale Estrela


On 1/4/07, khurram shahzad [EMAIL PROTECTED] wrote:


 can any body any link to HMIP (mircomobility.tar.gz) implementation code
 on ns2
 i have a link but it is not working now for downloading , i contact to
 them but no any response from the owner of that site...

 http://www.comet.columbia.edu/micromobility/software.htm






 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com



Re: [ns] ns2-in celluler

2007-01-04 Thread Pedro Estrela

This can be done extending the micro-mobility protocols in NS2. check this
reference:
http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html

Pedro Vale Estrela



On 1/4/07, ibrahim koda [EMAIL PROTECTED] wrote:


 Hi friends
 I would like to construct a simple network similar to cellular network. I
 need to define the cell areas , then set up some base stations, the base
 stations should be able to find whether a particular mobile node is present
 in its cell area, by sending a paging message and receiving an
 acknowledgement. Base stations should be able to communicate among them to
 search for the users in other cells. Can this be done using NS2.If you
 know please share with me how.
 Waiting for some reply
 Thank you
 [EMAIL PROTECTED]

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com



Re: [ns] looking for FHMIP extension

2007-01-04 Thread Pedro Estrela


Hi,
thanks for sharing this link. previously, I've tried to contact teh authors
directly to get this software, but without sucess. Can you please send me
the email of the person that sended you the extension? (to try to get the
author's updated emails).

I'm building and maitaining a mirror of all NS2 mobility-related software in
my page, and I'll shortly add this fMIP extension to it.
http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html

If anyone can contribute either software, information or tips regarding NS2
mobility, please email me, and I'll add it to this page and give proper
credit.

I'l also planning to create a __very__ simple mailling list for persons
interested in NS2 mobility, to rebroadcast the mobility-related messages
that I receive in the NS2 mailing list, to try to create a simple group of
persons with this shared interest.

To be added to the list, plese send me an email introducing yourself, and
your current mobility-related interest in NS2; meanwhile, I'll search for
the several dozens of mobility-related messages that I've sent to varios
reserachers, to try to form a critical mass of persons to this group (to be
removed from the list, a simple email to me will suffice).


Pedro Vale Estrela


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


On 12/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



hi,
i had also asked for the extension few weeks ago, but no answer from the
list...
Although thanks to izzeldin shibeika who kindly sent it to me, there it
is...
http://rapidshare.com/files/9124547/fhmip-ext.zip.html
FHMIPv6 extension by R.Hseih

George


郑大伟(Dawei Zheng) wrote:
 

 Hi all,

 I am looking for FHMIP extension.

 FHMIP extension site
http://mobqos.ee.unsw.edu.au/~robert/nsinstall.php;
 is empty.

 Anyone have it???  Or anyone know another site to download it???



 If you have FHMIP extension, please send me..







 Best regards

 Dawei Zheng

 2006-12-27






Re: [ns] how to invocate a proc defined in otcl in c++

2006-09-26 Thread Pedro Estrela

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




On 9/26/06, jaime venzala [EMAIL PROTECTED] wrote:


 Hello, i´m working with ns-allinone 2.29 and i try to execute and otcl
 procedure in my new network object in C++, how can I do it?