From a8923162c92654f5ec03ff8cdce91da65af3e233 Mon Sep 17 00:00:00 2001
From: Michal Privoznik
+ ... + <devices> + <interface type='network'> + <source network='default'/> + <target dev='vnet0'/> + <bandwidth> + <inbound average='1000' peak='5000' burst='1024'/> + <outbound average='128' peak='256' burst='256'/> + </bandwidth> + </interface> + <devices> + ...+ +
+ This part of interface XML provides setting quality of service. Incoming
+ and outgoing traffic can be shaped independently. The
+ bandwidth
element can have at most one inbound
+ and at most one outbound
child elements. Leaving any of these
+ children element out result in no QoS applied on that traffic direction.
+ So, when you want to shape only domain's incoming traffic, use
+ inbound
only, and vice versa. Each of these elements have one
+ mandatory attribute average
. It specifies average bit rate on
+ interface being shaped. Then there are two optional attributes:
+ peak
, which specifies maximum rate at which interface can send
+ data, and burst
, amount of bytes that can be burst at
+ peak
speed. Accepted values for attributes are integer
+ numbers. The units for average
and peak
attributes
+ are kilobytes per second, and for the burst
just kilobytes.
+ Since 0.9.4
+
diff --git a/docs/formatnetwork.html.in b/docs/formatnetwork.html.in index f9421c3f84..f0ff703269 100644 --- a/docs/formatnetwork.html.in +++ b/docs/formatnetwork.html.in @@ -101,6 +101,36 @@ to this host. Since 0.3.0; 'mode' attribute since 0.4.2 +
+... + <forward mode='nat' dev='eth0'/> + <bandwidth> + <inbound average='1000' peak='5000' burst='5120'/> + <outbound average='128' peak='256' burst='256'/> + </bandwidth> + <mac address='00:16:3E:5D:C7:9E'/> +...+ +
+ This part of network XML provides setting quality of service. Incoming
+ and outgoing traffic can be shaped independently. The
+ bandwidth
element can have at most one inbound
+ and at most one outbound
child elements. Leaving any of these
+ children element out result in no QoS applied on that traffic direction.
+ So, when you want to shape only network's incoming traffic, use
+ inbound
only, and vice versa. Each of these elements have one
+ mandatory attribute average
. It specifies average bit rate on
+ interface being shaped. Then there are two optional attributes:
+ peak
, which specifies maximum rate at which bridge can send
+ data, and burst
, amount of bytes that can be burst at
+ peak
speed. Accepted values for attributes are integer
+ numbers, The units for average
and peak
attributes
+ are kilobytes per second, and for the burst
just kilobytes.
+ The rate is shared equally within domains connected to the network.
+ Since 0.9.4
+