[ovs-discuss] Port counter update frequency

Ben Pfaff blp at nicira.com
Sat Mar 16 14:00:50 UTC 2013


That's the behavior I would expect.
On Mar 16, 2013 6:58 AM, "Tmusic" <Tmusic987 at gmail.com> wrote:

> Thanks for verifying the behavior.
> I did some further testing and found a bug in my openflow controller.
> Sorry for bothering you with this...
>
> The flow counters are now updated every second. The port counters seem to
> update almost instantaneous (now ping -i 0.01) and measuring every 10ms and
> it's updated with every measurement.
>
> Is this the correct behavior?
>
>
>
>
> 2013/3/16 Ben Pfaff <blp at nicira.com>
>
>> I ran a test.  I set up an Open vSwitch switch (from current Git
>> "master") between two nodes, connected to "ovs-controller" as an
>> OpenFlow controller.  I ran "ping -i.1" between them, to transmit 10
>> ICMP echo requests and replies per second.  On the switch, I ran
>> "watch -n1 ovs-ofctl dump-flows br0", to see how the flow counters are
>> updated once per second.  The results were that I saw the packet
>> counters for the two flows (requests and replies) incrementing by
>> about 10 packets for each refresh, as I expected.
>>
>> I don't see a problem.
>>
>> On Fri, Mar 15, 2013 at 10:11:19PM +0100, Tmusic wrote:
>> > 2 hosts directly connected to a machine running ovs. The openflow
>> > controller (POX) runs on yet another machine. All bare metal, no VMs.
>> >
>> > The goal is to measure the traffic passing through the switch using the
>> > openflow protocol.
>> >
>> > Versions:
>> > Open vSwitch 1.7.3
>> > Ubuntu 11.04
>> > Kernel 2.6.38-11-generic-pae
>> >
>> >
>> >
>> >
>> > 2013/3/15 Ben Pfaff <blp at nicira.com>
>> >
>> > > Open vSwitch determines the interval.
>> > >
>> > > What is your test case?
>> > >
>> > > On Fri, Mar 15, 2013 at 09:57:22PM +0100, Tmusic wrote:
>> > > > I checked it multiple times and it seems to be 2.5-2.6s on average
>> > > > openvswitch is polled for its counters using the openflow protocol
>> > > >
>> > > > Is this interval determined by openvswitch or by the linux kernel?
>> > > >
>> > > > Thanks!
>> > > >
>> > > >
>> > > > 2013/3/15 Ben Pfaff <blp at nicira.com>
>> > > >
>> > > > > On Fri, Mar 15, 2013 at 09:24:05PM +0100, Tmusic wrote:
>> > > > > > I'm polling the port the stat counters of openvswitch (with
>> kernel
>> > > > > module)
>> > > > > > and noticed that they are only updated about every 2.5s.
>> > > > >
>> > > > > They should be updated about once a second.  I'm surprised that
>> you
>> > > > > see anything different.
>> > > > >
>> > >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130316/c483198e/attachment.html>


More information about the discuss mailing list