Implementing 3way handshaking in UDP

120 views
Skip to first unread message

masoomeh....@gmail.com

unread,
Feb 15, 2017, 7:51:10 AM2/15/17
to ns-3-users
Hi Dear members
Im trying to implement an idea in NS3, and I`m new to it.
as you see in attatchment, I need to handshake before trasmittind data, and my protocol is UDP
how I can do it? does this feature implemented before?
and do we have handshaking for TCP(if so,post the code for me please)? is it possible for me to change it to UDP?
1.PNG

Tommaso Pecorella

unread,
Feb 16, 2017, 7:21:37 PM2/16/17
to ns-3-users
Hi,

the TCP handshake is there, but it's not that easy to isolate it and add it to UDP.
Your idea can be implemented, but it's not the easiest thing in the world.
I'd suggest to start with the tutorial and focus on the UDP applications (your idea could be implemented at application layer). You could have some issues in reading / setting the ECN bits (I never used them). If you find such a limitation ask for help, probably we'll need to extend ns-3 and add some functions.

Cheers,

T.
Reply all
Reply to author
Forward
0 new messages