[ns] Packet scheduling algorithms directory location in ns2

2007-03-30 Thread Zubair Mehmood

hi ... hope you all will be at quiet ease.
there are some built in programs of Packet scheduling algorithms in ns2 like 
wfq, fifo, pq , etc.
can any one tell me about the directory in which these programs are kept.
thanks in advance
 Send instant messages to your online friends http://uk.messenger.yahoo.com 


Re: [ns] Hello messages

2007-03-30 Thread guzinu

hello mechanism isn't active by default. because of the following
sentences in aodv.cc file.

#ifndef AODV_LINK_LAYER_DETECTION
   htimer.handle((Event*) 0);
   ntimer.handle((Event*) 0);
#endif

Guzin ULUTAS (CEng)
>>
>
> Hi,
> Sombody can tell me if hello messages mechanism is active in
> default AODV(I'm using ns-2.29) and how can I monitor it in trace files?
>
> Thanks in advance,
>
> 
>
>
>
> --
> Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
> http://click.libero.it/infostrada
>
>
>
>




[ns] manet simulation in ns-2 with scen-gen

2007-03-30 Thread super.ismiti

Hi,

I want to simulate a mobile ad-hoc network using the ns-2.
Well I have some questions, that I didn't find in the internet...

First, how can I use the scen-gen. Only the help of this tool don't say too
much things... I don't know how must I use the files that I made with this
tool. Where could I find some examples of the using of this tool, specialy
in mobile wireless networks?


Second, how can I use a mobility model in a simulation? I didn't find any
example of this... Where must I put the source (*.c) of the mobility model
and where must I call it?

Third, how can I install a new protocol in the ns-2. I want to install OLSR
for example. I have the source of this protocol. What must I do to take it
working in the ns-2?

Thanks in advance for any help,
Ricardo.


[ns] have anyone get a perl file caculate out.tr tcp throughput?

2007-03-30 Thread john unkle

have anyone get a perl file caculate out.tr tcp throughput?
many thx.
_
Messenger 的 PC - to - PC 直接對話功能,跟海外親友免費講長途電話,慳錢方便 — Messenger PC - to - PC 直接對話 
http://get.live.com/messenger/features 

[ns] Problems with Nam

2007-03-30 Thread Raka Bal

Hi,

I am student doing research on wireless sensor network. I have installed
ns-allinone-2.29. but still can't get the nam working . when i go into
directory where nam is installed.
C:\ns-allinone-2.29\nam-1.11
and try to run by using command
ns nam.exe in cygwin, gives me following errors
invalid command name "MZ? ♥   ♦   ÿÿ  ¸
@?
   ♫▼º♫ ´"
while executing
"MZ? ♥   ♦   ÿÿ  ¸   @   ?   ♫▼º♫ ´
Í!¸☺LÍ!T
his pr..."
(file "nam.exe" line 1)

I have the path of the directory in environment varaible.
I am not sure if that's the way to launch the NAM.
Please let me know if I am doing something wrong and how to launch network
animator.

Thanks,

Raka

Re: [ns] cannot single-step ns-2 with gdb although debugging symbols are included

2007-03-30 Thread Timo Reimann

Matthias Kuhnert wrote:
> Did you compile the ns2 with the flag -g ?

I set "--enable-debug" during configure and also tried explicitly adding
"-g" to CCOPT. Neither made a difference concerning gdb step'ing.


> Another thing is the initialisation phase - Perhaps you should search for
> another place to put your breakpoint...
> The init phase is, to my knowledge, mostly happening within the tcl part
> and involves lots of bindings and linkage between tcl and c++, so I don't
> believe that you will see there too much with the gdb...

Yeah, that's basically what I did after stepping through half (or a
quarter?) of the initialisation phase started to look senseless. I need to
do some DNS work which seems similar to the web-cache application
sub-architecture so this is where I'm starting to set breakpoints now.


Cheers,

--Timo



>> Timo Reimann wrote:
>> >
>> > Hi all,
>> >
>> > in order to get to know better how things in ns-2 work and where to
>> start
>> > placing my own implementation, I'd like to use gdb and the tcl
>> debugger
>> > and step through the initialisation process of ns-2 one by one.
>> >
>> > Despite many attempts of doing this, gdb keeps refusing to decent into
>> > function calls using the "step" command but just rushes to the end of
>> the
>> > program. I've searched for answers to this problem in the mailing-list
>> > archives which basically claim that one just needs to enable debugging
>> > info to do this.
>> >
>> > So what I did was this: I modified the install script and added
>> > "--enable-debug" to the OTcl, Tclcl, ns, and nam build processes and
>> > "--enable-symbols" to tcl and tk. I re-compiled over and over without
>> > success as gdb would continue doing what I do not want it to do.
>> >
>> > Here's a gdb output excerpt:
>> >
>> > ~/sa/ns2/ns-allinone/ns-2.30$ gdb ns
>> > [legal stuff]
>> > This GDB was configured as "i486-linux-gnu"...Using host libthread_db
>> > library "/lib/tls/i686/cmov/libthread_db.so.1".
>> >
>> > (gdb) list main
>> > 60   *
>> > 61
>> > *--
>> > 62   */
>> > 63
>> > 64  int
>> > 65  main(int argc, char **argv)
>> > 66  {
>> > 67  Tcl_Main(argc, argv, Tcl_AppInit);
>> > 68  return 0;   /* Needed only to prevent
>> compiler
>> > warning. */
>> > 69  }
>> > (gdb) b main
>> > Breakpoint 1 at 0x804d161: file common/tclAppInit.cc, line 67.
>> > (gdb) run "~/sa/ns2/ns-allinone-2.30/scenarios/testing/example3.tcl"
>> > Starting program: /home/> name>/sa/ns2/ns-allinone-2.30/ns-2.30/ns
>> > "/home/> name>/ns2/ns-allinone-2.30/scenarios/testing/example3.tcl"
>> >
>> > Breakpoint 1, main (argc=2, argv=0xbfdd1254) at
>> common/tclAppInit.cc:67
>> > 67  Tcl_Main(argc, argv, Tcl_AppInit);
>> > (gdb) s
>> >
>> > Program exited normally.
>> > (gdb)
>> >
>> > As far as I can see, I've succeeded in adding debugging symbols since
>> I
>> > can use the "list" command to see where I'm at in the code.  Prior to
>> > inserting all the debugging switches, it would give an error.
>> >
>> > To make sure, I've also compiled and incorporated tcl-debug-2.0 into
>> ns-2
>> > which verifiably works but did not affect gdb's behaviour.
>> >
>> > In addition, I've cleared my PATH environment variable to only include
>> the
>> > ns-2-specific paths and used full pathnames for everything else (like
>> gdb)
>> > because I suspected my globally installed copy of tk to interfer in
>> this
>> > matter. This wasn't true, however.
>> >
>> > When I step through the code using stepi (instruction-level stepping)
>> I
>> > can perfectly see all function calls including instruction pointer
>> > arithmetics. This seems to derive from machine-level code, however,
>> and
>> > therefore isn't very useful to me.
>> >
>> > At this point, I'm really lost. I believe the list archive postings on
>> > this issue are not more recent than 2003 so I suppose it's just me
>> having
>> > this problem but I absolutely cannot see what else to do.
>> >
>> > I'm using ns-2 allinone-2.30, gdb 6.4.90-debian, and gcc 4.1.2 under
>> > Ubuntu 6.10 (Edgy Eft).
>> >
>> > Glad for any help!
>> >
>> >
>> > Cheers,
>> >
>> > --Timo
>> >
>> >
>>
>
> --
> "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
> Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
>




[ns] Problem with a flooding operation

2007-03-30 Thread Augusto Neto

Dear All,

 

 

 

I have a problem while trying to send some response packets in my agent
implementation. First of all, my protocol floods the network topology for
acquiring all the paths (set of nodes involved in transmissions) within a
network topology. The first agent sends a packet in all local network
interfaces, and the remaining agents implement the same (propagating the
incoming packet in all local outgoing interfaces) upon receiving the
incoming packet. When the egress node is signaled, it generates a response
message for each incoming request packet. In my simulation, an egress
receives 4 request packets, and the problem is that the response packets,
initialized every one with allocpkt(), don't even go to the queue of
transmission, being lost in the simulation (not dropped). In the current
simulation I'm working on, only one of the four packets is being sent and
it's not even the first one. I've printed de packet's UIDs for comprehending
the reason the packets got dropped and the only thing I've come to is:

 

code:

printf("Packet uid: %d\n", p->uid_);

send(p, 0);

printf("Packet uid: %d\n", p->uid_);

 

output:

Packet uid: 15

Packet uid: 0

 

Resuming, only the packet which is sent has an assigned UID (15 in this

case) and the un-sent packets are assigned as 0. I tried to assign manually
the UID in the remaining packet, in spite of no errors printed, the UID
still keep 0. This put me thinking that the problem is in send() because it
looks like it's zeroing the packet (even the UID) before it send it and
those packets who this happens are the ones that do not get sent. The
packets are only freed later on after treating the response!

 

Do you have a clue for what's going on?

 

 

 

King regards,

 

 

 

Augusto

 



Re: [ns] cannot single-step ns-2 with gdb although debugging symbols are included

2007-03-30 Thread Timo Reimann

Sorry for messing things up.


Timo Reimann wrote:
> Despite many attempts of doing this, gdb keeps refusing to decent into
> function calls using the "step" command but just rushes to the end of the
> program. I've searched for answers to this problem in the mailing-list
> archives which basically claim that one just needs to enable debugging
> info to do this.

I solved the issue. I'm too lazy to write it down all again as this
webmail client is killing me, so in a sentence or two:

`step' ignores code with no related source code available. The ns binary
does nothing but call Tcl_Main() which for some non-understandable reason
comes with no debugging symbols although I've enabled them in the building
process.

Solution: in gdb, set `step-mode' to `on'.


--Timo



Re: [ns] cannot single-step ns-2 with gdb although debugging symbols are included

2007-03-30 Thread Timo Reimann

Timo Reimann wrote:
>
> Hi all,
>
> in order to get to know better how things in ns-2 work and where to start
> placing my own implementation, I'd like to use gdb and the tcl debugger
> and step through the initialisation process of ns-2 one by one.
>
> Despite many attempts of doing this, gdb keeps refusing to decent into
> function calls using the "step" command but just rushes to the end of the
> program. I've searched for answers to this problem in the mailing-list
> archives which basically claim that one just needs to enable debugging
> info to do this.
>
> So what I did was this: I modified the install script and added
> "--enable-debug" to the OTcl, Tclcl, ns, and nam build processes and
> "--enable-symbols" to tcl and tk. I re-compiled over and over without
> success as gdb would continue doing what I do not want it to do.
>
> Here's a gdb output excerpt:
>
> ~/sa/ns2/ns-allinone/ns-2.30$ gdb ns
> [legal stuff]
> This GDB was configured as "i486-linux-gnu"...Using host libthread_db
> library "/lib/tls/i686/cmov/libthread_db.so.1".
>
> (gdb) list main
> 60   *
> 61
> *--
> 62   */
> 63
> 64  int
> 65  main(int argc, char **argv)
> 66  {
> 67  Tcl_Main(argc, argv, Tcl_AppInit);
> 68  return 0;   /* Needed only to prevent compiler
> warning. */
> 69  }
> (gdb) b main
> Breakpoint 1 at 0x804d161: file common/tclAppInit.cc, line 67.
> (gdb) run "~/sa/ns2/ns-allinone-2.30/scenarios/testing/example3.tcl"
> Starting program: /home//sa/ns2/ns-allinone-2.30/ns-2.30/ns
> "/home//ns2/ns-allinone-2.30/scenarios/testing/example3.tcl"
>
> Breakpoint 1, main (argc=2, argv=0xbfdd1254) at common/tclAppInit.cc:67
> 67  Tcl_Main(argc, argv, Tcl_AppInit);
> (gdb) s
>
> Program exited normally.
> (gdb)
>
> As far as I can see, I've succeeded in adding debugging symbols since I
> can use the "list" command to see where I'm at in the code.  Prior to
> inserting all the debugging switches, it would give an error.
>
> To make sure, I've also compiled and incorporated tcl-debug-2.0 into ns-2
> which verifiably works but did not affect gdb's behaviour.
>
> In addition, I've cleared my PATH environment variable to only include the
> ns-2-specific paths and used full pathnames for everything else (like gdb)
> because I suspected my globally installed copy of tk to interfer in this
> matter. This wasn't true, however.
>
> When I step through the code using stepi (instruction-level stepping) I
> can perfectly see all function calls including instruction pointer
> arithmetics. This seems to derive from machine-level code, however, and
> therefore isn't very useful to me.
>
> At this point, I'm really lost. I believe the list archive postings on
> this issue are not more recent than 2003 so I suppose it's just me having
> this problem but I absolutely cannot see what else to do.
>
> I'm using ns-2 allinone-2.30, gdb 6.4.90-debian, and gcc 4.1.2 under
> Ubuntu 6.10 (Edgy Eft).
>
> Glad for any help!
>
>
> Cheers,
>
> --Timo
>
>




[ns] What do "undefined reference" mean?

2007-03-30 Thread paolalonetti

HI,
do anyone know what undefined referce means?
I've look for all includes and method declarations and it's all ok, so why this 
error?
Thanks in advance
Paola


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





[ns] urgent node Id

2007-03-30 Thread Girma Kassa

Hi all,
I am working on ns2 and faced a problem in identifying
the node. i.e I want to know the id of the node in
C++.
to make more clear. When I am sending a packet, I want
keep the node id of the source and the destination
need to evaluate the node id before processing the
message.

So any one with the knowledge of how to, please help 
me.
Thanks,Girma


 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news