一、拓扑py文件:
............................................................................................................................................................
ping截图:
............................................................................................................................................................
抓包:
1.hello
控制器6653接口发送到交换机50454接口,openflow版本1.0
交换机50454接口发送到控制器6653接口,openflow版本1.5
使用1.0版本建立链接
............................................................................................................................................................
2.features request/set conig
控制器6653端口发送到交换机50454端口,需要交换机信息
控制器6653端口发送配置文件到交换机50454端口
............................................................................................................................................................
3.features reply
交换机50454端口发送配置信息到控制器6653端口
............................................................................................................................................................
4.packet_in
交换机没有匹配的流表,所以通过50454端口从控制器6653端口发送下发流表请求
............................................................................................................................................................
5.flow_mod
控制器6653端口向交换机50454端口下发流表项,指导数据的转发处理
............................................................................................................................................................
6.packet_out
控制器从6653端口向交换机50454端口下发流表
............................................................................................................................................................
二、交互过程图:
............................................................................................................................................................
三、使用tcp协议
............................................................................................................................................................
进阶要求:
1.header
源码:
openflow消息必有部分
............................................................................................................................................................
2.hello
源码:
hello抓包结果:
............................................................................................................................................................
3.features request/set conig
源码:
抓包结果:
............................................................................................................................................................
4.features replay
源码:
抓包结果:
............................................................................................................................................................
5.packet_in&packet_out
抓包结果:
............................................................................................................................................................
6.flow_mod
源码:
抓包:
个人总结:本次实验难度适中,后期编写实践报告较复杂,需要黏贴许多图片,可以使用截图工具管理截图防止混淆。实验中主要是需要了解openflow源码的意义,了解其中消息的数据结构,如版本号,消息类型,消息长度,消息id等。
标签:控制器,............................................................................ From: https://www.cnblogs.com/daguanggao/p/16756690.html