我正在使用RYU控制器进行SDN设置。我想监视基本的openflow握手消息,但我没有这样做..
以下是我安装mininet,wireshark和ryu后的步骤。
./bin / …
简而言之=>你不能。
Feature request/reply 是其一部分 openflow 不属于 IP 堆。因此,它嵌入在TCP / IP模型的数据包中。
Feature request/reply
openflow
IP
这是我做的:
确保“openvswitch-testcontroller”已关闭:
yavuz@ubuntu:/tmp$ service --status-all | grep openv [ + ] openvswitch-switch [ - ] openvswitch-testcontroller
运行ryu应用程序:
yavuz@ubuntu:~/ryu$ pwd /home/yavuz/ryu yavuz@ubuntu:~/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 for lo(不是eth0或类似的)
sudo tcpdump -i lo -w ryu-local.cap
运行mininet:
yavuz@ubuntu:/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
停止跟踪并打开它。
希望这可以帮助。