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

(一)基本要求

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


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

二)进阶要求
查找资料,整理和记录ODL控制器主要的REST API文档,包括但不限于ODL提供的文档链接,获取拓扑的交换机、获取流表状态数量、获取特定交换机端口的状态、新增修改和删除流表等。
1.获取拓扑的交换机
http://127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)


2.获取拓扑结构
http://127.0.0.1:8181/apidoc/explorer/index.html#!/network-topology(2013-07-12)

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-port-statistics(2013-12-14)/get_node_connector_statistics_post_0

6.获取指定交换机的信息
127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/GET_node_get_5

实验小结:
第一步因为没有清除旧的清除旧的流规则导致控制器无法产生拓扑且无法ping通,清除清除旧的流规则后恢复正常可以实现ping通。

posted @ 2022-10-13 11:20  ccccff  阅读(20)  评论(0编辑  收藏  举报