[Click] Packet Size

Roman Chertov rchertov at purdue.edu
Tue Aug 7 11:54:17 EDT 2007


Hello,
    I have a question about frame sizes.  When I use the script below I 
produce packets that are 242 bytes in length.  I have modified 
AverageCounter to also count the number of bytes that pass through it by 
looking at p->length().  Both counter and ethereal report the packets to 
be 242 bytes in length. (200+14+20+8) However, I don't think this is 
correct as the Ethernet spec dictates that 4 byte footer must be used 
for CRC as well.  So my question is this: Does the footer get added by 
the device driver and Click does not deal with it?

src :: RatedSource(\<0800>, 10, 10, DATASIZE 200)
     -> DynamicUDPIPEncap(10.0.1.1, 1234, 10.0.2.1, 4321, 1)
     -> CheckIPHeader2(0)
     -> EtherEncap(0x0800, 01:02:03:04:05:06, 06:05:04:03:02:01)
     -> ctr :: AverageCounter
     -> ToHostSniffers(eth6);


Many Thanks,

Roman


More information about the click mailing list