I am a newbie to SDN and have to implement latency monitor with Ryu controller.
I am thinking of sending a packet from switch to switch, where i remember the packet send, and then i recieve it at end switch i will calculate the delay.
The problem is i dont know how to tell apart the packets, which i send. I was thinking of putting into them a string which would tell me:"hey i am packet number 23." But i dont know if it is possible. I read the ryu wiki several times and looked over the examples.
I just dont know how to move forward.
I have answered a similar question over here about how to measure latency. You can have a look. But if you wanna go ahead with your current approach. You can try something like this:
When recieved that packet on another switch parse the recorded information.
Subtract the timing delay.
For example you can have a look at RYU implementation at here which uses a kind of similar mechanism to discover topology. LLDP packets are generated by controller, sent to one switch which is to be forwarded via a specific port, when another switch receives this packet, it parses the packet to obtain sender switch's id and port and again sends this information to controller, which in-turn detects that there is a path between these switches.
But I would suggest you to have a look at the papers I mentioned before implementing your approach (if at all you have not already done the hard work).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.