Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Mar 2006 10:27:18 +0100
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        David Miao <davmiao@gmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Packets v.s. Bytes
Message-ID:  <20060313092718.GB23524@owl.midgard.homeip.net>
In-Reply-To: <979f20140603130120o614c4e91y9aa26be590e1fa6c@mail.gmail.com>
References:  <979f20140603130115h2f347cb2i38fb2340ffb26ad9@mail.gmail.com> <979f20140603130120o614c4e91y9aa26be590e1fa6c@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 13, 2006 at 05:20:17PM +0800, David Miao wrote:
> By the way, anyone could tell me 1 packet = ? bytes?

That varies quite a bit.  Normally a packet is somewhere between 50 and 1500
bytes long, but it can sometimes be larger or smaller.

> 
> Thanks.
> 
> On 3/13/06, David Miao <davmiao@gmail.com> wrote:
> > Dear list,
> >
> > `netstat -i' returns _packets_, how can I get statistics using _bytes_?
> >
> > Any suggestions or hints? Thanks!
> >
> > Regards,
> > David
> >
> >
> > dm% netstat -i
> > Name    Mtu Network       Address              Ipkts Ierrs    Opkts Oerrs  Coll
> > fxp0   1500 <Link#1>      00:06:5b:3c:cb:01  3881033     0  2848419     0     0
> > fxp0   1500 fe80:1::206:5 fe80:1::206:5bff:        0     -        3     -     -
> > fxp0   1500 10.128/22     10.128.3.126       3119189     -  2842189     -     -
> > fxp1*  1500 <Link#2>      00:06:5b:3c:cb:02        0     0        0     0     0
> > lo0   16384 <Link#3>                             627     0      627     0     0
> > lo0   16384 localhost     ::1                      0     -        0     -     -
> > lo0   16384 fe80:3::1     fe80:3::1                0     -        0     -     -
> > lo0   16384 your-net      localhost              627     -      627     -     -
> >

-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060313092718.GB23524>