[ovs-discuss] How to control incoming traffic of VMs?

Justin Pettit jpettit at nicira.com
Mon May 21 06:28:26 UTC 2012


You can use OVS's QoS mechanisms to control traffic egressing (from the point of view of OVS), which are described in the ovs-vswitchd.conf.db man page.  If you want more than the default queue, you'll need to direct flows into the queues as described in the ovs-ofctl man page.

--Justin


On May 20, 2012, at 11:17 PM, 张锦成 wrote:

> Hi, Ben
>     "ingress_policing_rate" can only control the outgoing traffic of VMs.
> I wonder how could I control the incoming traffic of VMs.  
>     Thx.
>  
> On Mon, May 21, 2012 at 2:11 PM, 张锦成 <perfume0607 at gmail.com> wrote:
> Sorry, I misunderstood this. 
> On a virtual interface (one connected to a virtual machine), this limits the rate at which the VM is able to transmit.(outgoing traffic)
> On a physical interface, this limits the rate at which traffic is allowed into the system from the outside;(incoming traffic)
> It seems a little strange.
> 
> 
> On Mon, May 21, 2012 at 2:05 PM, 张锦成 <perfume0607 at gmail.com> wrote:
> Hi, Ben
>    In this website( http://openvswitch.org/support/config-cookbooks/qos-rate-limiting/), it says “ingress_policing_rate”: the max-rate in kbps that this VM should be allowed to send, which means the outgoing traffic.
>    But in  ovs-vswitchd.conf.db(5), it says "ingress_policing_rate: Maximum rate for data received on this interface, in kbps. Data received faster than this rate isdropped. Set to 0 (the default) to disable policing.", which means the incoming traffic.
>    Is there any error?
>      
> On Mon, May 21, 2012 at 12:52 PM, Ben Pfaff <blp at nicira.com> wrote:
> Please stop dropping the mailing list.
> 
> You can use "policing".  See ingress_policing_rate and
> ingress_policing_burst in the Interface table in
> ovs-vswitchd.conf.db(5).
> 
> On Mon, May 21, 2012 at 12:31:16PM +0800, 张锦成 wrote:
> >  http://openvswitch.org/support/config-cookbooks/qos-rate-limiting/
> > You can look at the website above, it use commands to control the outgoing
> > traffic of VMs.
> > I wonder whether  we can control the incoming traffic of VMs by using
> > commands or  in some simple ways?
> > Could you give me an example or website to learn how to do this?
> > Thanks very much, I really need your help.
> >
> > On Mon, May 21, 2012 at 12:24 PM, Ben Pfaff <blp at nicira.com> wrote:
> >
> > > The same way.  In one case you set up flows based on the input port, in
> > > the other case you set up flows based on the port to which they are
> > > directed.
> > >
> > > The "resubmit" action can be useful to reduce the number of flows needed
> > > in complicated cases.
> > >
> > > On Mon, May 21, 2012 at 12:21:07PM +0800, 张锦成 wrote:
> > > > Thx for your answer.
> > > >
> > > > Could you tell me how to do this?
> > > > I know that we can control the outgoing traffic of VMs by using open
> > > > vsitch, but how to control the incoming traffic of VMs.by using open
> > > > vswitch?
> > > >
> > > >
> > > > On Mon, May 21, 2012 at 5:39 AM, Ben Pfaff <blp at nicira.com> wrote:
> > > >
> > > > > On Sat, May 19, 2012 at 10:43:18PM +0800, 张锦成 wrote:
> > > > > > I wonder whether we can control the incoming traffic of VMs by using
> > > open
> > > > > > vswitch?
> > > > >
> > > > > Yes.
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Jincheng Zhang
> > > > Dept. of Computer Science&Technology
> > > > Tsinghua University
> > >
> >
> >
> >
> > --
> >
> > Jincheng Zhang
> > Dept. of Computer Science&Technology
> > Tsinghua University
> 
> 
> 
> -- 
> 
> Jincheng Zhang
> Dept. of Computer Science&Technology
> Tsinghua University
> 
> 
> 
> 
> -- 
> 
> Jincheng Zhang
> Dept. of Computer Science&Technology
> Tsinghua University
> 
> 
> 
> 
> -- 
> 
> Jincheng Zhang
> Dept. of Computer Science&Technology
> Tsinghua University
> 
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss




More information about the discuss mailing list