Algorithm 1: Adaptive Sampling Scheduling algorithm |
1: for flow in active flow: 2: send a FlowStatsRequest to flow.switch; 3: end for 4: for dpid in FlowStatsReply event: 5: 6: if < 7: interval = min(,) 8: increace1.time =ture 9: else if > 10: interval = max(,) 11: decreace.time =ture 12: else 13: interval = min(,) 14: increace2.time =ture 15: end if 16: end for |