Graphics and Packets

Sitepoint Members,
In the analysis you get from the site

they talk about packet size and filling a packet with only whole files abd not breaking up a file spread over two packets.

How big are packets?

Could it be that a graphic file 50kb will download and appear in a browser just as fast as a 10kb graphic file if the 50 kb file fits in a packet?

Thanks,

Chris

The standard packet size is 576 bytes of which 512 is available to hold data - so a 10kb file will require 20 packets and a 50kb file will require 100 packets.

Fellgal,

Have any thoughts on this from the site I mentioned,
" Ideally each image should be less than 1160 bytes, to easily fit into one TCP-IP packet. "

Is there yet another consideration for fitting whole files into a unit - now maybe a tcp-ip unit.

Thanks,

Chris

Having checked further the size of 576 id the packet size for dialup. For broadband it is 1500 which is what would give you the 1160 bytes available for data once you include both the packet overhead and the tcp/ip info that needs to also be passed.

1500 is also the physical packet size on ehternet so while the operating system includes options for changing the packet size that it caters for there is little point in increasing it above that figure as packets that exceed the physical packet size will be split anyway.

Falgall,
So it looks like I can assume 1.16 kb per packet. That aint much, not really large enough to bother considering reducing fie size just a little more to avoid a mostly empty last packet.

Chris