Get the App
SLTechnology News&Howtos  ›  Network Security  › 

The connection between floodlightV1.2 and dell S3048 is always disconnected by shaking hands.

Shulou Source: shulou.com Published: 2022-06-01 05:13:19 09月29日 Update

We studied SDN and used Floodlight V1.2 and DELL S3048 to connect. We always disconnected the handshake. Later, we grabbed the packet and found that the table_feature_reply message was empty, and the message would not be sent after using other controllers to find that the handshake was successful. So we changed the handshake process of floodlight:

Find the sendHandshakeTableFeaturesRequest function in the net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler file, comment the original code, and add setState (new WaitInitialRoleState ()); this line is fine

The changed code is:

Private void sendHandshakeTableFeaturesRequest () {

/ / OFTableFeaturesStatsRequest tfsr = factory.buildTableFeaturesStatsRequest ()

/ / * leave entries blank-- > just ask, don't set * /

/ / .setXid (handshakeTransactionIds--)

/ / .build ()

/ / mainConnection.write (tfsr)

SetState (new WaitInitialRoleState ())

}

If you have the same problem, you can try it.

University of Electronic Science and Technology

Hu Liwei

Tags: Code message success one line function university controller file comment process electronics technology problem control research method Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Redmi Shulou Information Xiaomi MariaDB