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

一、基础要求

(1)拓扑生成并连接控制器结果


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


二、进阶要求

(1)ODL提供的文档汇总链接

http://127.0.0.1:8181/apidoc/explorer/index.html

(2)获取拓扑的交换机

http://127.0.0.1:8181/apidoc/explorer/index.html#!/network-topology(2013-07-12)/GET_network_topology_get_171

(3)获取流表状态数量

http://127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-flow-table-statistics(2013-12-15)/get_flow_tables_statistics_post_0

(4)获取特定交换机端口的状态

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

(5)新增修改和删除流表

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

三、个人总结

本次实验比较简单,根据基本步骤进行操作就能得到结果,虽然中途因为部分操作的误差,比如没注意delete操作和put操作所对应的api地址不同,从而浪费了些许的时间,但最后还是以比较快地完成了任务。

posted @ 2022-10-05 11:46  A1tair  阅读(14)  评论(0编辑  收藏  举报