我有一个问题。
我现在已经使用mininet配置了拓扑。在这里,我想限制交换机的流表大小。
有没有办法限制交换机的流表大小??? 还是可以限制OpenVSwitch?
谢谢。
答案 0 :(得分:0)
是的,您可以指示Open vSwitch通过拒绝新流或逐出旧流来限制流表的大小。来自the ovs-vsctl
documentation:
Make flow table 0 on bridge br0 refuse to accept more than 100 flows:
ovs-vsctl -- --id=@ft create Flow_Table flow_limit=100 overflow_policy=refuse -- set Bridge br0 flow_tables=0=@ft
Make flow table 0 on bridge br0 evict flows, with fairness based on the
matched ingress port, when there are more than 100:
ovs-vsctl -- --id=@ft create Flow_Table flow_limit=100 overflow_policy=evict groups='"NXM_OF_IN_PORT[]"' -- set Bridge br0 flow_tables:0=@ft