Hello Mei,
6 months ago I used Omnet++ 5.0 and inet-3.4.0 to implement a simple OpenFlow based SDN protocol for RealTime Ethernet.
I implemented SDN Controller and SDN Router at the same time. I just added my code into the implemented Router in INET, so they can work together: the SDN Controller collects the information of the network topology and then makes desions, by changing the OpenFlow tables in the SDN Routers; the SDN Routers just transfer the data packets according to the OpenFlow Table (seem to be very stupid...).
Also, you can implement completely new SDN Controller and Router by yourself.
Now the lastest version of Omnet++ is 5.1 and INET is 3.6. If you are lucky enough, SDN Controller and Router have been already realized. You can check more details of the changes. (
https://omnetpp.org/)
Kind regards,
Yinbing