实验4:开源控制器实践——OpenDaylight

1.利用Mininet平台搭建下图所示网络拓扑,并连接OpenDaylight控制器;


2.通过Postman工具调用OpenDaylight提供的API下发流表,实现拓扑内主机h1和h3网络中断10s。


进阶要求

1.ODL提供的文档链接。
URL:http://127.0.0.1:8181/apidoc/explorer/index.html

2.获取拓扑的交换机。
URL:http://127.0.0.1:8181/apidoc/explorer/index.html#!/network-topology(2013-07-12)/GET_network_topology_get_171

3.获取流表状态数量。
URL:
http://127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-flow-table-statistics(2013-12-15)/get_flow_tables_statistics_post_0

4.获取特定交换机端口的状态。
URL:
http://127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-port-statistics(2013-12-14)/get_node_connector_statistics_post_0

5、增删改流表:

个人总结

本次实验相对较为简单,主要问题:
《json混乱》
解决途径:在json上可以通过json格式化来判断错误。

《硬超时流表始终存在》
通过postman清除流表,而不是mininet。

posted @ 2022-10-05 13:36  小白白中白  阅读(14)  评论(0编辑  收藏  举报