安装ofsoftswitch13

来源:互联网 发布:网络整合营销理论 原则 编辑:程序博客网 时间:2024/05/16 13:58
http://blog.disects.com/2014/01/installing-cpqd-switch-on-mininet-using.html 里讲的
安装ofsoftswitch13需要先把mininet中的openvswitch(mininet自带)卸载掉

在ubuntu14.04下ofsoftswitch13安装参考 http://tocai.dia.uniroma3.it/compunet-wiki/index.php/Installing_and_setting_up_OpenFlow_tools

sudo mn --topo single,3 --mac --switch user --controller remote -x
建立ofsoftswitch13交换机的拓扑网络 要指定switch为user

To get the dpid of CPqD switch
sudo dpctl tcp:127.0.0.1:6634 features

To get the stats and flow rule for CPqD switch:
dpctl tcp:127.0.0.1:6634 stats-flow

查看meter表
sudo dpctl unix:/tmp/s1 meter-conf

Q: Does Open vSwitch support OpenFlow meters?

A: Since version 2.0, Open vSwitch has OpenFlow protocol support for
OpenFlow meters. There is no implementation of meters in the Open
vSwitch software switch (neither the kernel-based nor userspace
switches).

还有就是我在运行ryubook qos第三个例子,ofsoftswitch13交换机总是连接不上ryu,后来发现在mininet topo脚本修改为
   net = Mininet(topo=topo, switch=UserSwitch,     controller=RemoteController)
注注:最终发现,由于mininet里的UserSwitch也就是ofsoftswitch(路径mininet/node.py)默认参数为--no-slicing
class UserSwitch( Switch ):    "User-space switch."    dpidLen = 12    def __init__( self, name, dpopts='--no-slicing', **kwargs ):
若带有这个参数交换机做队列管理时就会报错
输入:
sudo dpctl unix:/tmp/s1 queue-mod 1 1 10
报错:
RECEIVED (xid=0xF0FF00F0):error{type="QUEUE_OP_FAILED", code="EPERM", dlen="56"}
但去掉这个参数,控制器就无法发现ofdatapath,目前我还没有找到解决此问题有方法也请告知我一下




0 0
原创粉丝点击