반응형
ingress_policing_rate : ovs 포트에서 전송할 수 있는 Kbps
ingress_policing_burst : ingress_policing_rate을 넘어서 전송할 수 있는 최대 데이터량 Kb
Goal:
Rate-limit the traffic sent by each VM to 1 Mbps.
Configuration:
For both VMs, we modify the Interface table to configure an ingress policing rule. There are two values to set:
- “ingress_policing_rate”: the max-rate in kbps that this VM should be allowed to send.
- “ingress_policing_burst”: a parameter to the policing algorithm to indicate the maximum amount of data (in kb) that this interface can send beyond the policing rate.
To rate limit VM1 to 1 Mbps, run:
ovs-vsctl set Interface tap0 ingress_policing_rate=1000
ovs-vsctl set Interface tap0 ingress_policing_burst=100
Similarly, to limit VM2 to 10 Mbps, run:
ovs-vsctl set Interface tap1 ingress_policing_rate=10000
ovs-vsctl set Interface tap1 ingress_policing_burst=1000
반응형