[ns] Not receiving data packets at agent.
Hi all, I have written a new MANET routing protocol by reading the document of Franscisco and Pedro. I am facing a problem that data packets are not at all received by the routing Agent. That is at recv() function it is only receiving the HELLO (defined by me) packets. But the recv function is same as OLSR or AODV or DSDV which receives data packets as well. Also, I noted that if-queue parameter which i have used is never set. What could be the problem that I am unable to get the data packets at all. Any help is greatly appreciated. Regards, Maddy .
[ns] Segmentation Fault when implementing a new protocol
Hi All, I have implemented a Layer 3 routing protocol by reading the document by Francisco Pedro. I installed NS2, added my protocol did make. Make worked without errors, but when I run a simulation script (the same script used for AODV) specifying my protocol as option I am getting segmentation fault. Does anyone know what could be the reason behind this. My protocol is a MANET protocol based on AODV OLSR and I am using NS 2.31 for my simulation. Please let me know some of the possible causes for segmentation faults in NS2. *Thanks Regards, Madhava.N*
Re: [ns] packets generated number
Not sure of built in commands but you can call in TCL like disp_count and in command function call a function and display. For this maintain array of countpkt[n] where n is no of nodes. Keep incrementing for every timer expiry of Hello + forward() function + send functions. Better have it as static variable. Regards, Maddy. On Wed, Mar 12, 2008 at 7:36 PM, amel ksentini [EMAIL PROTECTED] wrote: hi ns users! is there anyone can tell i there is a command to return number of packets generated by a source? thanks.
[ns] Link Bandwidth Estimation in NS2
The *chapter 9 (Delays Links)* of the NS Document gives the details of finding out the Link bandwidth, latency and transmission time of a given link. I am implementing a new protocol in NS2 for Mesh Networking and want to make use of this in my protocol. If at least I were to be told on how to modify *AODV for the same *would also be helpful. My question is that how to make use of this to *measure these details* in our protocol. Like use these functions and *obtain the link characteristics* . Please do let me know on this. Regards, Madhava.