使用RYU控制器在WireShark监控Mininet OpenFLow流量

使用RYU控制器在WireShark监控Mininet OpenFLow流量

问题描述:

我正在使用RYU控制器进行SDN设置。我想监视基本的openflow握手消息,但我没有这样做..使用RYU控制器在WireShark监控Mininet OpenFLow流量

这里是我安装mininet,wireshark和ryu后执行的步骤。

./bin/ryu-manager --verbose ryu/app/simple_switch_13.py 

第2步:启动虚拟网络

sudo mn --top single,3 --man --controller remote --switch ovsk,Protocols=OpenFLow13 

现在没有交通显示,在我的Wireshark的..我用它都安装有一个OpenFlow的解剖Wireshark的版本1.12。

当我使用捕获环它显示了请求和应答报文,但我希望看到在Wireshark的

这里是我做的:

务必 “openvswitch-的TestController” 下跌:

[email protected]:/tmp$ service --status-all | grep openv 
[ + ] openvswitch-switch 
[ - ] openvswitch-testcontroller 

运行刘某应用:

[email protected]:~/ryu$ pwd 
/home/yavuz/ryu 
[email protected]:~/ryu$ sudo ryu-manager --verbose ryu/app/example_switch_13.py 
lzma module is not available 
Registered VCS backend: git 
Registered VCS backend: hg 
Registered VCS backend: svn 
Registered VCS backend: bzr 
loading app ryu/app/example_switch_13.py 

mininet之前运行的tcpdump的LO(不eth0等)

sudo tcpdump -i lo -w ryu-local.cap 

运行mininet:

[email protected]:/tmp$ sudo mn --topo single,3 --controller=remote --mac 
*** Creating network 
*** Adding controller 
Connecting to remote controller at 127.0.0.1:6653 
*** Adding hosts: 
h1 h2 h3 
*** Adding switches: 
s1 
*** Adding links: 
(h1, s1) (h2, s1) (h3, s1) 
*** Configuring hosts 
h1 h2 h3 
*** Starting controller 
c0 
*** Starting 1 switches 
s1 ... 
*** Starting CLI: 
mininet> h1 ping h2 
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data. 
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=8.38 ms 
64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.228 ms 

停止跟踪并打开它。

enter image description here

希望这有助于。

“功能要求”从刘某控制器总之=>你不能。

Feature request/replyopenflow的一部分,不是IP堆栈的一部分。因此,它嵌入在TCP/IP模型的数据包中。