Hello everybody I am very new to NS2 and ns2 manual is not user friendly at all. For my final project I need to use NS2 to implement a service discovery protocol in MANET.
I have studied the mailing list archive to find an easy step-by-step solution to my problem but still no luck! whether I don't understand the posts or they don't apply to my problem. Anyway here is my problem: I need to be able to broadcast a single UDP packet at unpredictable moments(determined through the program logic). This broadcast is initiated by one of the 400 nodes present in the Network and every other within-range node should be able to receive it (which I assume 802.11 protocol will itself care about which nodes should receive the packet and which don't according to their distance from the source(??)) Should I use a UDP agent and then define a traffic source like CBR and create a Null agent for every other node to receive the traffic? (it seems very time consuming and instead of a single packet it continuously sends packets at predefined intervals which is not what I want) Unless I am forced otherwise, I need to find a solution using pure OTCL script because I have no knowledge about how to compile and integrate a C++ code to my TCL code. If there is no other way than to have to deal with C++ please help me with that also. I am impatiently looking forward for answers Thank you in advance