[ns] :help on interpretation of wireless trace file

2008-08-21 Thread Srirupa Dasgupta
Dear ns-users, can some one help me to interpret a wireless trace format like: s 1.0 _0_ AGT --- 0 pong 128 [0.00 0 0] --- [0:0 -1:0 32 0] r 1.0 _0_ RTR --- 0 pong 128 [0.00 0 0] --- [0:0 -1:0 32 0] s 1.0 _0_ RTR --- 0 pong 128 [0.00 0 0] --- [0:0 -1:0 32 0

[ns] Help concearning broadcasting messages - protocols

2008-08-21 Thread fhg07
Well.. I'm trying to learn how to implement protocols to NS2,30. And I did not understand how to broadcast a message in wireless networks. Here is what I've got: Packet* pkt = allocpkt(); // new packet hdr_protex* hdr = (hdr_protex*) pkt->access(off_protex_); hdr->type = 0; // sending initial

Re: [ns] :help on interpretation of wireless trace file

2008-08-21 Thread Mubashir Rehmani
Hello "s" and "r" indicates that you send and receive the packets respectively. RTR means network layer and AGT means application layer. Here is the full description of trace format: To find the interpretation of all possible trace format when you do the wireless simulation, you'd better read t

Re: [ns] Help concearning broadcasting messages - protocols

2008-08-21 Thread Mubashir Rehmani
Hello You should use in the ip header ih->daddr() = IP_BROADCAST; like this. Hope it helps Regards Mubashir Husain Rehmani 2008/8/21 <[EMAIL PROTECTED]> > > Well.. I'm trying to learn how to implement protocols to NS2,30. And I did > not understand how to broadcast a message in wireless net

[ns] Log Node movements

2008-08-21 Thread Hector Agustin Cozzetti
Hello everybody! I have a doubt about the log movements. I need the *coordinates* (x,y) of nodes appear on the trace output (file .tr or file .nam). I have read in some tutorials that I have to add the following in the tlc file: *proc log-movement {} { global logtimer ns

[ns] Log Node movements (mail corrected)

2008-08-21 Thread Hector Agustin Cozzetti
Hello everybody! I have a doubt about the log movements. I need the *coordinates* (x,y) of nodes appear on the trace output (file .tr or file .nam). I have read in some tutorials that I have to add the following procedure in the tlc file: *proc log-movement {} { global logtimer ns_ ns

[ns] Interpretation of wireless trace file

2008-08-21 Thread Mubashir Rehmani
Hello Srirupa Dasgupta, Here is the answer to your question: "s" and "r" indicates that you send and receive the packets respectively. RTR means network layer and AGT means application layer. Here is the full description of trace format: To find the interpretation of all possible trace format

[ns] Broadcasting messages in ns2

2008-08-21 Thread Mubashir Rehmani
Hello Fernando You should use IP_BROADCAST in the ip header ih->daddr() = IP_BROADCAST; Hope it helps -- Mubashir Husain Rehmani Mobile : 00 33 (0)6 32 00 89 35

Re: [ns] Broadcasting messages in ns2

2008-08-21 Thread fhg07
Can it be done like: cmh->next_hop() = IP_BROADCAST; ? Whats the difference between cmh and ih headers? I've seen this on some codes that I've found. Fernando. > Hello Fernando > > You should use IP_BROADCAST in the ip header > > ih->daddr() = IP_BROADCAST; > > > Hope it helps > > -- > Mubashir

[ns] warning:deprecated conversion from string constant to 'char*

2008-08-21 Thread J S
Hello I am new to ns. I have been following "NS by example tutorial" from http://nile.wpi.edu/NS/ In the sub-section extending NS (for user define agents), While using make, I am getting bunch of warnings ./common/packet.h:: warning: deprecated conversion from string constant to 'char*' I am u

Re: [ns] warning:deprecated conversion from string constant to 'char*

2008-08-21 Thread Narcissus
Hi, Just ignore this warnings of imperfect coding, your ns will work well. 2008/8/22 J S <[EMAIL PROTECTED]> > > Hello I am new to ns. > > I have been following "NS by example tutorial" from > http://nile.wpi.edu/NS/ > > In the sub-section extending NS (for user define agents), While using make,

Re: [ns] Problems of Marc Greis' Tutorial

2008-08-21 Thread Narcissus
Jose Campos wrote On Fri Nov 21 03:40:02 2003 > Hi, I'm a new user of NS and in order to start with > the simulator, I have > been doing the examples which appeared in Marc Greis's > Tutorial. I have > tried to do one on my own, so I have copied the files > ping.h, ping.cc and > ping.tcl; but in

Re: [ns] warning:deprecated conversion from string constant to 'char*

2008-08-21 Thread J S
Thanks, In the same tutorial, in the OCTL linkage sub section, it is mentioned that that one needs to set the default value for that variable exported in C++ in the "ns-2/tcl/lib/ns-lib.tcl" file Does any one has any example that how can I set the default value of the variable? Thanks again JS

[ns] format routine in Trace.cc

2008-08-21 Thread Nick Zando
Hi everyone! I am trying to create a new packet trace format. In trace.cc i see: void Trace::format(int tt, int s, int d, Packet* p) { bla bla } I want to how does it set the right 'int tt' (kind of packet input, output, dropped ..) I almost finished with my new trace format but i can't set