2017-06-13 257 views
1

我正在使用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的

回答

2

這裏是我做的:

務必 「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

希望這有助於。

0

「功能要求」從劉某控制器總之=>你不能。

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