broadcasting hello packets

278 views
Skip to first unread message

Ravi Teja

unread,
Feb 27, 2015, 1:54:10 AM2/27/15
to ns-3-...@googlegroups.com
hi,
can anyone help with the following situation.
i need to create some static nodes. every node has to send hello packets to other nodes which are in communication range of it. some of the nodes which receive hello messages should send acknowledgements. the main node(that sends hello messages) receive acknowledgement and send to that particular nodes which sends acknowledgement..

Konstantinos

unread,
Feb 27, 2015, 5:07:48 AM2/27/15
to ns-3-...@googlegroups.com
And what is your question? Do you want us to write the code for you?

I can see couple of challenges you should tackle in order to solve this problem

1) Create static nodes --> it is explained in the documentation and there are several examples using it
2) Send Hello Packets --> again in the tutorial you can learn how to send traffic to other nodes
3) In com. range --> I assume you will use WiFi and the topic of setting the communication range is discussed hundreds of times in the mailing list. 
4) Receiving Nodes should send ACKs --> see (2) and applications such as Ping
5) the main node ... --> you lost me here. You started saying that _EVERY_ node sends hellos, not a single _main_. And what happens after it receives the ACK? Another send?

Please study the tutorial and think of your design better.

Ravi Teja

unread,
Feb 27, 2015, 10:32:42 AM2/27/15
to ns-3-...@googlegroups.com
thank you for your response sir,
main node in the sense which sends hello packets,(every node can be main node for its respective nodes).
i am new to ns3 and i am unable to find this hello packet sending and ack receiving.
can i have code for the above situation but one node will send hello packets and receive ack as above?

Konstantinos

unread,
Feb 27, 2015, 10:55:49 AM2/27/15
to ns-3-...@googlegroups.com
As I mentioned, there are examples with Ping and Echo applications where a node sends a packet (you can call it HELLO) and the receiving node is replying to that packet with a new one (you can call this ACK). 

Devel JD

unread,
Jan 17, 2016, 2:41:54 PM1/17/16
to ns-3-users
Hi,

I have modified the AODV module to add a new header to Hello packet. Currently, I'm testing with aodv.cc example, but I can't get the ProcessHello(..) to get invoke. My question is I don't know whether I need to program every node to broadcast the message or I just need to install AODV on each node to make it broadcast Hello packet automatically?

Thanks.

Konstantinos

unread,
Jan 17, 2016, 2:56:35 PM1/17/16
to ns-3-users
Hi Devel JD,

Please read the posting guidelines before posting https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
Most probably the ProcessHello is not invoked because of the addition of the new header, but in order to help you further, you need to ask your question following the guidelines.

Regards,
K.
Reply all
Reply to author
Forward
0 new messages