1) FCS (CRC) has 4 bytes, it is included in the Ethernet protocol, which
means it is actually going over the wire, but the applications won't see it.
Winpcap included. This explains the 4 bytes diff.
2) The 47<64 is padding, again, over the wire, the minimum frame size for
Ethernet is 60+4 Bytes, however, many frames are sent from the application
layer smaller than that, and therefore must be padded at the Ethernet layer.
I'd guess the frames you are seing with Winpcap_Size<EtherPeek_Size are
those being sniffed by Winpcap on their way "out", ie,before being padded.
In general, keep in mind, independent of the frame sizes you see, no frame
has less than 64 bytes on the wire.

----- Original Message ----- 
From: "Cary Moore" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 13, 2004 1:31 AM
Subject: [WinPcap-users] Comparing packet lengths and data transfer


> Excuse my relative total ignorance here but I'm new to programming in this
> area (although been programming for 20 years).
>
> I've written a small test program that captures packets and displays the
> packet sizes as well as showing a total size of the packets capture, I've
> noticed two things....
>
> A) The individual packet sizes do not match those shown with EtherPeek.
> WinPCap packets are always smaller, generally 4 bytes but sometimes
WinPCap
> returns 47 bytes compared to EtherPeeks 64 bytes.
> B) When comparing the total bytes against Windows Task managers Total Byte
> count on the networking tab, the winpcap total is always less than task
> managers.
>
> I think my question is, which is right? Is winpcap returning the size of
the
> data transmitted over the network or are there some overheads that winpcap
> doesn't include? Or something else eg. I'm not comparing like for like?
>
> Thanks
> Cary.
>
>
>
> ==================================================================
>  This is the WinPcap users list. It is archived at
>  http://www.mail-archive.com/winpcap-users@winpcap.polito.it/
>
>  To unsubscribe use
>  mailto: [EMAIL PROTECTED]
> ==================================================================



==================================================================
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/winpcap-users@winpcap.polito.it/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==================================================================

Reply via email to