我有个问题。
我现在使用mininet配置了拓扑。这里我想限制交换机的流表大小。
有没有办法限制开关的流量表大小???或者可以……
是的,您可以通过拒绝新流或驱逐旧流来指示Open vSwitch限制流表的大小。从 该 ovs-vsctl 文件 :
ovs-vsctl
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