chris77 — 2012-02-15T21:27:10-05:00 — #1
Do png files take longer to download? I have a very small 350 byte png file on my site and it takes the same amount of time to load into a browser than a 2 kb jpg file I have on my site. How can that be?
dresden_phoenix — 2012-02-15T21:54:08-05:00 — #2
The file type should NOT affect the transfer speeds. However, servers do sever data in PACKETS. This essentially makes the transfer process QUANTUM. Given the same condition, any file <= to the packet size travels at the same rate as any other file <= to the size even if one is bigger than the other.
chris77 — 2012-02-16T19:18:56-05:00 — #3
I forgot about that, but isn't one packet 1160 bytes? 350 bytes is smaller than that and 2kb is larger.
dresden_phoenix — 2012-02-17T02:47:54-05:00 — #4
From some notes I found somewhere.. they may be outdated.
While an IP packet can be as large as 65,535 bytes, packets are fragmented so as to fit into the path MTU. MTU = "maximum transmission unit". The path MTU is simply the lowest of all of the MTUs on all of the links between the end points. Each node along the way informs the next of it's MTU in the header.
Most/all IP packets will encounter an Ethernet link somewhere along the way, if nowhere else at the user's premises. Therefore, for all practical purposes, the maximum size of an IP packet (or, technically, fragment) on the Internet is 1500 bytes.
Subtracting the header, that leaves 1480 bytes for data payload.
What I gathered from that is that an Ethernet link becomes the bottle neck for all practical purposes. BUT if you are testing within a network then you mayhave different situations in which you have no bottleneck, or a larger bottleneck. Just a possibility.
chris77 — 2012-02-29T09:56:09-05:00 — #5
I found something that helps graphics load faster - don't have that favicon line in the <head> twice. I have validator software (T.V.) but it didn't catch it.
system — 2014-10-07T22:01:52-04:00 — #6
This topic is now closed. New replies are no longer allowed.