[ns] Not receiving data packets at agent.

2008-04-22 Thread Madhava N
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

[ns] Segmentation Fault when implementing a new protocol

2008-04-02 Thread Madhava N
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

Re: [ns] packets generated number

2008-03-12 Thread Madhava N
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

[ns] Link Bandwidth Estimation in NS2

2008-03-10 Thread Madhava N
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