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

这个作业属于哪个课程https://edu.cnblogs.com/campus/fzzcxy/FZUZCSDN202201
这个作业要求在哪里https://edu.cnblogs.com/campus/fzzcxy/FZUZCSDN202201/homework/12707
这个作业的目标能够独立完成OpenDaylight控制器的安装配置
能够使用Postman工具调用OpenDaylight API接口下发流表

(一)基本要求

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

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

(二)进阶要求

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

  1. 获取拓扑的交换机
    URL:http://127.0.0.1:8181/apidoc/explorer/index.html#!/network-topology(2013-10-21)/GET_network_topology_get_183

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

  3. 获取流表状态数量
    URL:http://127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/GET_flow_statistics_get_265

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

  5. 获取所有交换机端口的状态
    URL:http://127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-port-statistics(2013-12-14)/get_all_node_connectors_statistics_post_1

  6. 新增修改和删除流表
    URL:http://127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/GET_flow_get_198

  7. 链路信息
    URL:http://127.0.0.1:8181/apidoc/explorer/index.html#!/network-topology(2013-10-21)/GET_link_get_94

  8. 获取拓扑所有交换机
    URL:http://127.0.0.1:8181/apidoc/explorer/index.html#!/opendaylight-inventory(2013-08-19)/GET_nodes_get_1

个人总结

  • 实验不难,基础要求部分照着PDF走很快就能完成。进阶部分花时间慢慢找即可
  • 一开始ODL的用户界面只有一台交换机,需要在Mininet上pingall才能看到主机
  • 先在Mininet CLI中运行h1 ping h3,再在Postman处选择动作PUT才能看到中断10s的结果
  • 学会了如何使用Postman工具调用OpenDaylight API接口下发流表
posted @ 2022-10-06 09:21  Accepted_1  阅读(86)  评论(0编辑  收藏  举报