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

实验要求:

(一)基本要求:

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

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

(二) 进阶要求:

查找资料,整理和记录ODL控制器主要的REST API文档,包括但不限于ODL提供的文档链接,获取拓扑的交换机、获取流表状态数量、获取特定交换机端口的状态、新增修改和删除流表等。

1.ODL提供的文档链接(Rest API文档)127.0.0.1:8181/apidoc/explorer/index.html

获取拓扑的交换机

链接:127.0.0.1:8181/apidoc/explorer/index.html#!/network-topology(2013-07-12)/GET_network_topology_get_1

2.流表的信息统计

链接:127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/GET_flow_statistics_get_282

3.流表的增删改查

链接:127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/GET_flow_get_215

4.组表的查看

链接:127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/GET_group_get_141

5.获取交换机中某个流表的信息

链接:127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/GET_table_get_211

6.获取特定交换机端口的状态

链接:127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-port-statistics(2013-12-14)/get_node_connector_statistics_post_0

7.获取指定交换机的信息

链接:127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/GET_node_get_5

(三)个人总结:

本次实验难度不大,相较其他实验耗时较少,主要就是如何将拓扑通过命令行连接控制器以及如何使用Postman工具调用OpenDaylight API接口下发流表从而实现拓扑内主机h1和h3网络中断10s,我卡住的点是如何使用Postman工具调用OpenDaylight API接口下发流表实现网络中断10秒,后面参考了一些资料,从而对Postman工具有了一定的了解。在进阶部分通过查找资料,让我了解了ODL控制器主要的REST API文档,包括获取流表状态数量、获取拓扑的交换机、获取特定交换机端口的状态、新增修改和删除流表等等。

posted @ 2022-10-13 10:46  Homooro  阅读(77)  评论(0)    收藏  举报