Ok.My knowledge in C/C++ is not bad. I know a little about ns-2. I made some
simulations, I already modified some AODV modules and I  changed makefile to
force to the modify. I understand a little the way NS-2 work internally. The
version of NS-2 is 2.33. I try modify AODV in file aodv.cc at line 322 -334
*
**#ifdef AODV_LOCAL_REPAIR
  /* if the broken link is closer to the dest than source,
     attempt a local repair. Otherwise, bring down the route. */


     if (ch->num_forwards() > rt->rt_hops)  {
    local_rt_repair(rt, p); // local repair
    // retrieve all the packets in the ifq using this link,
    // queue the packets for which local repair is done,
    return;
  }
  else
#endif // LOCAL REPAIR   *

I modify this condition if (ch->num_forwards() > rt->rt_hops)  {

to


*if (true)  {
    local_rt_repair(rt, p); // local repair
    // retrieve all the packets in the ifq using this link,
    // queue the packets for which local repair is done,
    return;
  }*

after that, I did:

1. Go to the /ns-allinone-2.33/ns-2.33

2. make clean

3. make

I try to force AODV make only local repair, but I don't have security about
my modification. I created a scenario, I tested and gave me results that
wanted.
But I really don't have security about my modification. Any other
suggestions about the modify?




>
> *
> *On Tue, Apr 21, 2009 at 9:33 PM, Carlos Alberto Quiroz-Perez <
> [email protected]> wrote:
>
>> Hi,
>>
>> First of all, I need to know what is your knowledge in programming. In the
>> case you have a decent knowledge in C/C++, you should understand the way
>> NS-2 works internally, the structure and order of its classes. This is
>> important because you need to know what you affect in ns-2 when you change
>> variables or constants in the AODV module. It is also important to know
>> what version of ns-2 you are using. Through the time has been some
>> modifiations for AODV in ns-2. For instance, for the protocols I created
>> in NS-2 they work better with a old version of ns-2. It depends of your
>> needs. In other words, you should porvide more inforation of your task and
>> what is failing in detail.... this in order to help you!
>>
>> take care,
>>
>> Carlos
>>
>> ps. don't worry abut your Engish, it's fine!
>>
>>
>> >
>> > Hi,
>> >
>> > i'm new to ns2, i'm from brazil and im doing a research about the aodv
>> > peformance.
>> >
>> > i'm trying to change the aodv code.cc to make two changes:
>> > 1- disable the "local repair". So, when a route changes, it would be
>> > rebuilded from the source.
>> >
>> > 2- do the opposite. Change the aodv.cc to always make the "local repair"
>> > for
>> > building the route when the route changes.
>> >
>> > But i'm get no success on what i've been trying. So i'd like to ask ur
>> > help.
>> >
>> > Any suggestions?
>> >
>> > [thanks, and sorry about my english]
>> >
>>
>>
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> If I am not for myself, who will be for me?
>> If I am for me only, who I am?
>> And if not now, when?
>>                                Misnah Abat.
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> Ing. Carlos Alberto Quiroz-Perez
>> [email protected]
>> Electrical & Computer Engineering
>> University of Victoria, Victoria, BC, Canada
>> Office: ELW A110
>> Lab: ELW B335
>> Cell phone: (250) 217-99-71
>>
>>
>>
>

Reply via email to