codeblock

2016年5月6日 星期五

Ryu Controller - Traffic Monitor (Cont.)

- Try to block a flow if the traffic of that flow is abnormally large!
- A traffic monitor request switches info for every 5 seconds

- Topology: Tree topology with depth=2 and fanout=3
- Try: h1 ping h9 and see the flow entries of switches










- Now try a huge traffic: h1 ping h9 -i 0.0005















- Calculate the traffic (# of pkt/secs) and block the flow for seconds (set as 1000 secs here)
- h1 cannot ping h9 now

P.S.
- If there are more than one match in flow table, the flow with higher priority will be matched.
- A flow with empty action could drop the packets.
- Adding "hard_timeout" attribute in add_flow function could specify the expire time of the rule.


1 則留言:

  1. Hi, is it possible to see the source code of this second part?
    thanks!

    回覆刪除