您的位置:首页 > 其它

ns3通过TapBridge连接外部控制器floodlight

2016-11-01 21:28 344 查看
今天试了一下ns3官方提供的例子
external-controller.cc
,这个例子通过
TapBridgeHelper
将ns3的代码中运行的node与外部的controller通信。终于成功通过了。



但是好像是版本不对。

于是找到floodlight项目的网站上的Setting the OpenFlow Version上说

The problem might be that the switch does not like Floodlight advertising a higher OpenFlow version than the switch supports itself.

要修改floodlight项目中的
src/main/resources/floodlightdefault.properties




net.floodlightcontroller.core.internal.OFSwitchManager.supportedOpenFlowVersions=1.0, 1.1, 1.2, 1.3, 1.4, 1.5


修改为

net.floodlightcontroller.core.internal.OFSwitchManager.supportedOpenFlowVersions=1.0, 1.1, 1.2, 1.3


即最大版本只是1.3

修改之后,再次运行

➜  floodlight-master git:(master) ✗ java -jar target/floodlight.jar


成功!



还显示了ns-3 team的信息。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ns3