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

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

 步骤:
一: ./distribution-karaf-0.6.4-Carbon/bin/karaf
二: sudo mn --topo=single,3 --controller=remote,ip=127.0.0.1,port=6633 --switch ovsk,protocols=OpenFlow133
  访问:http://127.0.0.1:8181/index.html#/topology

三: http://127.0.0.1:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/ delete

四: http://127.0.0.1:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/flow-node-inventory:table/0/flow/1 put

一)基本要求
利用Mininet平台搭建下图所示网络拓扑,并连接OpenDaylight控制器;

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

 

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

获取拓扑的交换机

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

获取流表状态数量

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

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

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

新增修改和删除流表

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

个人总结
本次实验我学会了能够完成OpenDaylight控制器的安装配置,使用Postman工具调用OpenDaylight API接口下发流表。通过查找资料,整理和记录ODL控制器主要的REST API文档,包括但不限于ODL提供的文档链接,获取拓扑的交换机、获取流表状态数量、获取特定交换机端口的状态、新增修改和删除流表等。

posted @ 2022-10-13 08:52  Baldboy  阅读(72)  评论(0)    收藏  举报