首页 > 其他 > 详细

17秋 SDN课程 第五次上机作业

时间:2018-01-18 23:34:23      阅读:238      评论:0      收藏:0      [点我收藏+]

17秋 SDN课程 第五次上机作业

项目地址:https://github.com/Wasdns/new_balance

Task of SDN Course, Realizing Load Balancer: New Balance

Introduction:

This demo introduces a simple load balancer application which schedules traffics based on packet rate. At runtime, the P4 switches counts the processed packets and the controller dynamically queries the packet number per second in order to calculate the packet rate. If the calculated packet rate of one assigned switch is over the threshold(packet/second), the controller would schedules the traffic to other pathes to offload the tasks of this switch.

Hint - All the pathes are selected from docs/lb_scenarios.docx scenario3.

Quick Start:

For running this demo, you are required to open three terminals at least.

Terminal 1:

  • ./run_14_demo.sh

Terminal 2:

  • ./set_path.py -p 1 // set the default paths
  • ./controller.py -p 10 -i 3 // ‘-p‘ means the threshold(pkt/s), ‘-i‘ means the inspection interval(s)

Terminal 3:

  • ./utils/sender.py // you could see path scheduling in the console of controller
  • ./utils/low_rate_sender.py // nothing happened

[option]Terminal 4:

  • ./utils/listener.py // this script listens to all the potential ports, you could also assign port using ‘-p‘

Author: Wasdns

17秋 SDN课程 第五次上机作业

原文:https://www.cnblogs.com/qq952693358/p/8313507.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!