From owner-freebsd-net@FreeBSD.ORG Tue Dec 16 19:08:02 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D178E1065677 for ; Tue, 16 Dec 2008 19:08:02 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.freebsd.org (Postfix) with ESMTP id 652DF8FC26 for ; Tue, 16 Dec 2008 19:08:02 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-067-224-053.pools.arcor-ip.net [88.67.224.53]) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis) id 0MKxQS-1LCfGz0XiO-0002B6; Tue, 16 Dec 2008 20:08:01 +0100 Received: (qmail 51110 invoked from network); 16 Dec 2008 19:08:00 -0000 Received: from unknown (HELO fbsd8.laiers.local) (192.168.4.151) by router.laiers.local with SMTP; 16 Dec 2008 19:08:00 -0000 From: Max Laier Organization: FreeBSD To: freebsd-net@freebsd.org Date: Tue, 16 Dec 2008 20:08:00 +0100 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; i386; ; ) References: <4947D7A9.2050407@FreeBSD.org> <20081216190932.I74416@beagle.kn.op.dlr.de> <20081216182749.GE3082@citylink.fud.org.nz> In-Reply-To: <20081216182749.GE3082@citylink.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812162008.00654.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1//j6bWkROHENmtMqm/1YnBSm183gU1+4kGI7f r65pbghRaUdpVvlCdeaQg32GCqUvoO4HiNMNFao5XYzqE+h9D4 wk4TWfn6AKlHmjVJGjkjQ== Cc: Harti Brandt , Andrew Thompson , Sergey Matveychuk Subject: Re: bsnmpd & 64bits counters problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 19:08:02 -0000 On Tuesday 16 December 2008 19:27:49 Andrew Thompson wrote: > On Tue, Dec 16, 2008 at 07:12:24PM +0100, Harti Brandt wrote: > > On Tue, 16 Dec 2008, Sergey Matveychuk wrote: > > SM>> > > SM>> The highspeed counters are only there if this is a high-speed > > interface. SM>> High speed means that the baudrate in the interface MIB > > (the one in the SM>> kernel) must be larger than 20Mbaud. > > SM> > > SM>Well, these is lagg interfaces: > > SM>lagg0: flags=8843 metric 0 mtu > > 9000 SM> > > options=19b SM> > > ether 00:30:48:67:d4:68 > > SM> media: Ethernet autoselect > > SM> status: active > > SM> laggproto lacp > > SM> laggport: em2 flags=1c > > SM> laggport: em0 flags=1c > > SM> > > SM>There is no baudrate on them. But they are really high-speed however. > > > > All interfaces have a baudrate. Its in net/if.h ifi_baudrate. We had the > > problem in the past with other interface types. 'virtual' interfaces must > > take care to somehow propagate the rate of the underlying physical > > interfaces up to the virtual one. > > This patch should fix it for the lacp case. What is the correct value to > use for a collection of interfaces with possibly different speeds? > highest/lowest? If aggregation is used you should add the individual speeds (as this is the highest rate at which the interface counter could be increased). If it's in failover you should propagate the speed of the active interface. When in doubt, always report the highest value - at least for the purpose discussed here. -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News