Krithiga, answers are inline.
Regards, Marco Fiore >----Messaggio originale---- >Da: [EMAIL PROTECTED] >Data: 12-mar-2006 1.24 PM >A: <ns-users@ISI.EDU>, <[EMAIL PROTECTED]>, <aodvimpl-public- [EMAIL PROTECTED]> >Ogg: [ns] regarding promiscuous mode > > >hi all, > i am doing proj in mobile adhoc networks. i need to know some >clarifications regarding mobile adhoc networks. > >1. we need to make use of promiscuous mode for our proj. (i.e) a node need >to overhear the other transmissions that are happening in its transmission >range.. is it already implemented in NS2? >If so, kindly let me know the inbuilt function that can be used for >overhearing. Otherwise, how this overhearing concept can be implemented in >NS2? There's no promiscuous mode implementation in ns-2. However, you can easily add such feature in 802.11. In the file mac/mac-802_11.cc, look for the recv_timer() function, look for the "Address Filtering" section: there you can decide to pass the frame to the upper LL agent, instead of discarding it. >2. how can we determine the 2-hop neighbours of the node and maintain the >list of the same?? Two ways: the easy, "bad" one is to make it via tcl (e.g. at each time step, compute all inter-node distances and comunicate to each node the list of neighbors), the more complex, "good" one is to do that implementing in C++ some layer-3 mechanism which propagates the information on neighbor nodes using actual packets (many examples of that in literature). This second solution is preferable since it is more realistic (in the first case you have a no-error, no-cost information exchange!). I think you could loo for some existing C++ implementation and start your changes from there...