实验4:开源控制器实践——OpenDaylight
1.基础要求
a)Mininet拓扑生成并连接控制器的结果

b)启动ODL

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




2.进阶要求
获取拓扑的交换机
http://127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/GET_nodes_get_1

流表的信息统计
127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/GET_flow_statistics_get_282

流表的增删改查
127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/GET_flow_get_215

组表的查看

获取交换机中某个流表的信息
127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/GET_table_get_211

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


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

3.个人感想
这次的实验总体来说比较简单,根据老师的ppt,在虚拟机上终端运用命令mininet建立网络拓扑,在网址上odl要pingall后才能显示完整的拓扑。之后用Postman工具实现,实现拓扑内主机h1和h3网络中断10s时,要先在Mininet中进行h1 ping h3动作。再通过Postman处选择动作PUT实现中断10s。在进阶部分,通过查找资料,ODL控制器主要的REST API文档,获取流表状态数量、获取拓扑的交换机、获取特定交换机端口的状态、新增修改和删除流表。

浙公网安备 33010602011771号