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

Re: [ns] Creating an AODV agent

2006-10-04 Thread guzinu
No, line is already included in your script, no need to do anything else. > > Hi > Is it necessary to create an AODV agent and attach it to every node if the > following line is already included in the script? > set val(rp)AODV;# routing protocol >

Re: [ns] AODV - writing into trace file

2006-09-23 Thread guzinu
Hi Robin Aodv writes trace file via following function that is located in the cmu-trace.cc file. void CMUTrace::format_aodv(Packet *p, int offset) have a good day Guzin Ulutas (CEng) > > Hi altogether, > > i have a "minor" problem which evolves to a bigger problem for me. > I need to write a l

Re: [ns] How to use cmu-trace

2006-07-13 Thread guzinu
you can learn it from the trace file after completion of your simulation. you can search the field whose value is RTR and node ID is what you want with some shell programming experiment. > >   > Hi all, >I my project i want to trace/count the no of pkts etc. I am working > with wireless ad

Re: [ns] How can I add extension to packets in AODV?

2006-06-28 Thread guzinu
you can change AODV packet header (RREQUEST,RREPLY,RERROR) with yours. Or you can add some extra fields in this packet headers. All the headers using by the AODV are defined in the aodv_packet.h file. For example in the following code, "temp" field is added by me. Guzin ULUTAS (CEng) struct hdr_

Re: [ns] What does AGT in trace file indicate?

2006-06-27 Thread guzinu
it indicates agent level. For example the trace file that is the output of a wireless scenario using AODV routing protocol. The agent level represents the layer that implements AODV routing protocol. > > > Hello all... > > Just I woulk like to ask what does the AGT in the output trace file > indic

Re: [ns] Interval for HELLO message

2006-05-10 Thread guzinu
Hi Choong, You did what I am thinking. But I don't understand why the results are the same with your former experiments. I think about this topic, and I can find anything else, I inform you. What do you mean with "round" ? you can explain more clear, maybe I can help. Best Rega

Re: [ns] Interval for HELLO message

2006-05-09 Thread guzinu
Hi Choong, handle function for sending hello messages in aodv.cc define a variable "interval". "Interval" variable determine the duration between the hello messages. And is calculated as follows: double interval = MinHelloInterval + ((MaxHelloInterval - MinHelloInterval) * Random::uniform()

Re: [ns] AODV - Route Repair Issue

2006-05-08 Thread guzinu
Hi Gabriel, I send you some explanations about "local repair" from rfc 3561. localrepairtimer function that is called from rt_ll_failed function is for local repair as explained below. /*_*/ 6.12. Local Repair When a link break in an active route o

Re: [ns] AODV - Route Repair Issue

2006-05-07 Thread guzinu
Hi, Function call chain for the localrepairtimer function is as follows: rt_resolve --> aodv_rt_failed_callback --> rt_ll_failed --> local_rt_repair --> and so localrepairtimer the head of the chain is rt_resolve. In this function, ch->xmit_failure_ = aodv_rt_failed_callback;

Re: [ns] Dsdv question about routing tables

2006-05-02 Thread guzinu
Hi, Answer 1: The delay function between broadcast packet is coded in a couple of places as follows // put the periodic update sending callback back onto the // the scheduler queue for next time s.schedule (helper_, periodic_callback_, perup_ * (0.75 +

Re: [ns] How to access c++ variable from tcl

2006-04-26 Thread guzinu
Hi, You can access this function (recv as you say) via command function. Command function in your c++ code serves as an interface between tcl code and c++ code. All you need is adding some peace of code that controls wihch arguments passed by the tcl interpreter. Like that: int MyAgent::

Re: [ns] What is the time interval to send complete Routing Table in DSDV?

2006-04-25 Thread guzinu
Hi Jeevesh, Do you try changing this value from tcl script? if you try, timing for the message packets are changing?

[ns] Command Function

2006-04-24 Thread guzinu
Hi, the command function of classes is used if you want to use member functions of your C++ class from your tcl code. For example your member function name is deneme and your class name is DenemeAgent, you can call this function from your tcl code via command function. "deneme" function hasn't

Re: [ns] *.h and *.cc

2006-04-17 Thread guzinu
Hi, ns uses two programming languages. One for high level programming (otcl), another for low level programming (c++). Code that implements a routing protocol, an application protcol, a queue algorithm etc. is written in C++ because of such things require a system programming language whic

Re: [ns] How to use both otcl and C++?????

2006-04-16 Thread guzinu
Hi Asma, You must write your own command function in your c++ code.For Example, your class name is MyAgent and then it must contain a member function called by "command" . Via this function, you can call functions that are defined in your class (MyAgent). This function provides you contr

Re: [ns] Does DSDV stores the Routing table of its neighbours?????

2006-04-14 Thread guzinu
Hi Jeevesh, Actually DSDV doesn't have the all the neighbours's routing table with it, at the time of calculation of shortest path. it has got only necessary information gathered by the neighbor nodes during triggered and periodic update. It gets the routing update packet from its neighb

[ns] Does DSDV stores the Routing table of its neighbours?????

2006-04-14 Thread guzinu
Hi Jeevesh, DSDV stores the Routing table for each node that is modified by the information received by the node's neighbor nodes. "rtable.h" file contains "class RoutingTable" and rtable.cc stores each entry, contains information about the current node's neighbors, into rtable_ent *rtab