weblog d’un abbe

20080917

HOTD: Tweaking colo

Filed under: Fun — Tags: , , , , — abbe @ 0149

Yesterday in the afternoon, I was pointed to the ServerTweak.com page by a good friend Tarun Dua showing me how quickly a 32 MiB file gets downloaded on his n Mbps connection (n <= 4, I don’t remember the actual value). I also tried taking their Speed Test: 32 MB File Test where you’ve to download a 32 MiB file from their servers. On my near 256 Kbps internet connection the file got downloaded in 1-2s. I’m surprised, then I suspected file being transferred is in a highly compressed fashion, so to confirm this I executed following:

┌─(abbe@chateau:pts/1)─────────────────────────────────────────────────────(~)─┐
└─(01:32:%)── hexdump -C Desktop/32mb.test.file.zip              ──(Wed,Sep17)─┘
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
02000000

The file is all zeroes, so this means the file is transferred with Content-Encoding HTTP header set to gzip.

┌─(abbe@chateau:pts/1)─────────────────────────────────────────────────────(~)─┐
└─(01:32:%)── telnet www.servertweak.com 80                      ──(Wed,Sep17)─┘
Trying 216.152.250.131...
Connected to www.servertweak.com.
Escape character is '^]'.
GET /vip/dl.php?type=d&id=2 HTTP/1.1
Host: www.servertweak.com
Accept-Encoding: gzip
Connection: Close

HTTP/1.1 200 OK
Date: Tue, 16 Sep 2008 19:52:07 GMT
Server: Apache/2
Set-Cookie: PHPSESSID=03bf09c9c457814a9268896659c99257; path=/
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Last-Modified: Tue, 16 Sep 2008 19:52:20 GMT
Cache-Control: private
Content-Disposition: attachment; filename="32mb.test.file.zip"
Content-Transfer-Encoding: binary
Content-Length: 33554432
Content-Encoding: gzip
Vary: Accept-Encoding,User-Agent
Connection: close
Content-Type: application/octet-stream

 �m7��w��       ���(
��      ���(
��      ���(
��      ���(
��      ���(
��      ���(
��      ���(
��      ���(
��      ���(
��      ���(
��      ���(
��      ���(
��      ���(
��      ���(
��      ���(
...
��      ���(
�EEYConnection closed by foreign host.

The time it took is 2-3 seconds. And I don’t think this is unintentional, as this download is listed in the section titled Fastest Fiber Network. Anyways, that was marked as the humor of the day, since if you try to download the file using wget, curl or fetch, then you’ll figure out their real speeds :P. Happy loling…:-D

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: