From owner-freebsd-net@FreeBSD.ORG Thu Jul 10 14:39:11 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AC7C4D9A; Thu, 10 Jul 2014 14:39:11 +0000 (UTC) Received: from mail-vc0-x22f.google.com (mail-vc0-x22f.google.com [IPv6:2607:f8b0:400c:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49F782179; Thu, 10 Jul 2014 14:39:11 +0000 (UTC) Received: by mail-vc0-f175.google.com with SMTP id hy4so10740292vcb.34 for ; Thu, 10 Jul 2014 07:39:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BcCFPIntKfm3CGp9Xj9xb4ix+nPAfc1AdspuVV/IA2o=; b=disdpQi9CFIhxBE7+aKd1I7Q+kL7vJvqoXIxoHlySrFSYT/xvSdKWa+9cign6XaS3f sff6CmZi6exvHjMeqhMezQ2mfPTQUR4z4BNUqTCYrNJ93P1296OX5HJKcdd0xxzSyybZ W4UmP+TMqEq+TRiPcNhzdcSN8RT9woKywPx8FtW6Czzxeuu4RVd0yomW39TAvv74xxOK np+C8qexSKUPauDT+j+Aprr4kHqJjt0CVhMqPwoVqfz2NgdPzv14VXaT8NOA2N7NlvG1 fxKrGCx+r96h0JL/QKDS6DF9TUXxH+CXaFPuxoKUucBJblBToVZ/6hts+DWn/t4zlzpc 0oMw== MIME-Version: 1.0 X-Received: by 10.58.72.165 with SMTP id e5mr609560vev.59.1405003150217; Thu, 10 Jul 2014 07:39:10 -0700 (PDT) Received: by 10.221.0.147 with HTTP; Thu, 10 Jul 2014 07:39:10 -0700 (PDT) In-Reply-To: <53BEA125.6010400@freebsd.org> References: <53BEA125.6010400@freebsd.org> Date: Thu, 10 Jul 2014 16:39:10 +0200 Message-ID: Subject: Re: ng_netflow From: Cristiano Deana To: Julian Elischer Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD net , FreeBSD Stable Mailing List X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2014 14:39:11 -0000 On Thu, Jul 10, 2014 at 4:20 PM, Julian Elischer wrote: Hi, Julian > Is it possible that you are working with an interface that has TSO on? it's a vlan interface, the device is a em0. net.inet.tcp.tso: 1 > if so then netgraph will be seeing huge "aggregate" packets rather than the > normal packets. > so teh number of packets may be out by more than a factor of 30. My bigger problem is with traffic counter, but maybe it's just my error. > netgraph nodes are relatively simple.. Not really :) I have problems to find "easy" documentation about it. It's hard to understand what lower, upper, right, etc meaning. I think I could hav setup something wrong, maybe counting only incoming packet (or outgoing). I followed, not fully undestand, the example in ng_netflow man page: /usr/sbin/ngctl -f- <<-SEQ mkpeer fxp0: netflow lower iface0 name fxp0:lower netflow connect fxp0: netflow: upper out0 mkpeer netflow: ksocket export inet/dgram/udp msg netflow:export connect inet/10.0.0.1:4444 SEQ Thank you -- Cris, member of G.U.F.I Italian FreeBSD User Group http://www.gufi.org/