floodlightV1.2 和dell S3048 鏈接老是握手斷開握手斷開的解方法

咱們研究SDN,使用Floodlight V1.2 和DELL S3048進行鏈接,一直是握手斷開握手斷開,後來抓了一下包,發現table_feature_reply消息是空,並且使用別的控制器發現握手成功之後也不會發送該消息,因此咱們將floodlight的握手流程改了:ide

在net.floodlightcontroller.core.internal.OFSwitchHandshakeHandler 文件中找到sendHandshakeTableFeaturesRequest函數,將原來的代碼註釋,並添加setState(new WaitInitialRoleState());這一行即可函數


改後的代碼是:
ui

    private void sendHandshakeTableFeaturesRequest() {
//        OFTableFeaturesStatsRequest tfsr = factory.buildTableFeaturesStatsRequest()
//                /* leave entries blank --> just ask, don't set */
//                .setXid(handshakeTransactionIds--)
//                .build();
//        mainConnection.write(tfsr);
        setState(new WaitInitialRoleState());
    }it



若是你也出現這個問題,能夠試一試io

電子科技大學table

胡力衛
class

相關文章
相關標籤/搜索