send data every one second on MANET

58 views
Skip to first unread message

kimiko yukii

unread,
Apr 24, 2018, 10:39:04 AM4/24/18
to ns-3-users
hello, i'm a newbie on ns-3
i'm working on manet implementation that comparing random based mobility, and then confused on how can i send one packet data at one second in order to get exact convergence time? i'm using AODV and the code from the manet-routing-compare.cc which exist on ns3 documentation.
thank you so much for your help

Regards,
Ryl

jared...@gmail.com

unread,
Apr 27, 2018, 4:24:40 PM4/27/18
to ns-3-users
You need to install some application to the node that generates packets.  The UdpEchoClient has an "interval" attribute you can set to 1s to send a packet every second.  To get a response you install a UdpEchoServer on some node and then set the UdpEchoClient RemoteAddress attribute to the server node's IP address.  In this case, you will get 1 message per second from client to server, and one response from server to client.

The OnOffApplication can also create packets with some interval.  It is paired with a PacketSInk application on the node whose address is set as the client's Remote attribute.  I find the UdpEchoClient/Server easier to setup though.  Look through the examples for those applications for code showing how to set them up.

Jared.
Reply all
Reply to author
Forward
0 new messages