ljerezchaves / ofswitch13

OFSwitch13: OpenFlow 1.3 module for ns-3.
http://www.lrc.ic.unicamp.br/ofswitch13/
GNU General Public License v2.0
24 stars 16 forks source link

Wrong processed packages in SDN switches using an external SDN controller #42

Open rperezvaz opened 4 years ago

rperezvaz commented 4 years ago

Dear @ljerezchaves,

I would like to use your implementation in NS3 for some research in 5G network slicing. In order to achieve this i would like to use an external SDN controller (ONOS is my prefered choice) but i found a critical bug.

I observed using wireshark that OpenFlow LLDP package that was received in the SDN controller (OFPT_PACKET_IN) was truncated previously by the ofswitch13 switches, affecting to the last part of the Data field of the OpenFlow 1.3 package.

It's true that with floodlight controller works, because i imagine that the fields that need to build the topology are correct (since the truncation happens at the end of the package) but ONOS needs this last part of the package and using a simple topology like this:

ONOS goes crazy (because the received message indicates for example that Port Description is Port\330g in stead of Port 2).

Below I attached a wireshark capture form ONOS and Floodlight controllers to see clearly what i'm talking about.

Any idea?

Thanks, Rubén.

wireshark_captures_onos_floodlight.zip