Amazon CloudFront, an Awesome CDN

Amazon CloudFront delivers your content using a global network of edge locations. Requests for your objects are automatically routed to the nearest edge location, so content is delivered with the best possible performance.

The Cloud

Photo by Zeitspuren

The CloudBe prepared to move with the clouds.

Amazon announced CloudFront just about a day back and we were extremely excited that we would be able to serve files faster to our users.

I won’t detail about Amazon CloudFront as their blog have done a good job on that — Distribute Your Content With Amazon CloudFront.

What our team did was some simple test to see the speed and response time for our new Amazon CloudFront CDN-ed content.

The Test and the Result (INDIA)

First, we created a distribution for our AWS S3 bucket and put a file in the bucket. We then download the file from the CloudFront

$ wget http://mydist.cloudfront.net/wallpaper.jpg

We got an average speed of 60 KBps! :-)

Next, we tried downloading the same file directly from our S3 bucket

$ wget http://mybucket.s3.amazonaws.com/wallpaper.jpg

Then, we saw that we got an average speed of 10 KBps :-(

So, we decided to figure out which CloudFront server were we redirected to from India. We did a simple dig on our CloudFront URL

$ dig mydist.cloudfront.net

And look for yourself –

;; QUESTION SECTION:
;mydist.cloudfront.net.	IN	A

;; ANSWER SECTION:
mydist.cloudfront.net. 60 IN	A	216.137.55.211
mydist.cloudfront.net. 60 IN	A	216.137.55.216
mydist.cloudfront.net. 60 IN	A	216.137.55.213
mydist.cloudfront.net. 60 IN	A	216.137.55.108
mydist.cloudfront.net. 60 IN	A	216.137.55.100
mydist.cloudfront.net. 60 IN	A	216.137.55.233
mydist.cloudfront.net. 60 IN	A	216.137.55.201
mydist.cloudfront.net. 60 IN	A	216.137.55.35

Hmm. Let’s find out where the servers are really located ;)

$ traceroute 216.137.55.211

Be ready to be surprised.

1  192.168.0.254 (192.168.0.254)  1.538 ms  1.911 ms  2.421 ms
2  * * *
3  dsl-mum-erx-238.127.144.59.airtelbroadband.in (59.144.127.238)  39.002 ms  40.846 ms  41.552 ms
4  125.18.13.137 (125.18.13.137)  44.072 ms  44.514 ms  44.787 ms
5  125.21.167.25 (125.21.167.25)  77.995 ms  80.059 ms  80.509 ms
6  p4-2-0-0.r01.sngpsi02.sg.bb.gin.ntt.net (129.250.12.225)  110.669 ms 94.407 ms  94.981 ms
7  ge-0-0-0.r00.sngpsi02.sg.bb.gin.ntt.net (129.250.4.33)  103.501 ms 103.697 ms  104.116 ms
8  * p1-1-1-3.r02.newthk01.hk.bb.gin.ntt.net (129.250.4.129)  136.561 ms 138.106 ms
9  ae-4.r20.newthk01.hk.bb.gin.ntt.net (129.250.2.246)  138.550 ms 139.714 ms  140.381 ms
10  po-2.a05.newthk01.hk.ra.gin.ntt.net (203.131.240.174)  144.352 ms 145.710 ms  146.653 ms
11  203.131.243.162 (203.131.243.162)  150.713 ms  151.553 ms  153.725 ms
12  216.137.55.211 (216.137.55.211)  156.607 ms  128.642 ms  129.524 ms

Neat, from India to Hong Kong in 12 hops :-)

The Test and the Result (US)

Cool. We then decided to see how better is it for people in the United States by using a server located physically in the US.

$ dig mydist.cloudfront.net
;; ANSWER SECTION:
mydist.cloudfront.net. 60 IN	A	216.137.39.110
mydist.cloudfront.net. 60 IN	A	216.137.39.157
mydist.cloudfront.net. 60 IN	A	216.137.39.171
mydist.cloudfront.net. 60 IN	A	216.137.39.46
mydist.cloudfront.net. 60 IN	A	216.137.39.224
mydist.cloudfront.net. 60 IN	A	216.137.39.65
mydist.cloudfront.net. 60 IN	A	216.137.39.77
mydist.cloudfront.net. 60 IN	A	216.137.39.225
$ traceroute 216.137.39.110
1  209-20-80-2.slicehost.net (209.20.80.2)  0.000 ms  0.000 ms  0.000 ms
2  209.20.79.225 (209.20.79.225)  0.000 ms  0.000 ms  0.000 ms
3  ge-6-13-115.car1.StLouis1.Level3.net (4.79.132.225)  0.000 ms 0.000 ms 0.000 ms
4  ae-11-11.car2.StLouis1.Level3.net (4.69.132.186)  0.000 ms  4.001 ms 0.000 ms
5  AMAZONCOM.car2.StLouis1.Level3.net (4.53.162.66)  0.000 ms  0.000 ms 0.000 ms
6  216.137.39.110 (216.137.39.110)  0.000 ms  0.000 ms  0.000 ms

Wow! Only 6 hops :-)

So, as you can see CloudFront really works as a good Content Delivery Network and is extremely affordable, no entry cost at all. Check out their blog.


Don't like it? There are lots of published articles, pick a random one.

oCricket

Brajeshwar posted this article on Wed, Nov 19th, 2008 at 2:59 pm
Categorized under Featured, Reviews, Technology and has the following tags

Prev Article: Asia set to contribute to Open Source

Next Article: Linux and iPhone application solutions

Archives: Visit the Archives for more articles.

Comments Post Yours

There are one response so far. You can follow any responses to this entry through the RSS feed. You can leave a response, or trackback from your own site.

  1. Amazing stuff! Amazon is building an amazing technology stack for large applications development. I’m sure they are going to make A LOT of money in the future.

Post yours

Sidenotes

Quick notes, scribbles, somehow related to this website and to what I do. Or perhaps I'm just plain lazy to make them into a full article.

Great Indian Developer Summit 2009

I got a Press Release of the upcoming GIDS '09 and here is an excerpt. The summit's program covers Java, REST, Unit testing, Groovy, Spring, Struts 2.0, SOA, Cloud Computing, Web Services, JRuby, RoR, Ruby, JVM, ...21st Jan, 2009

The flourishing gun market in Pakistan

VICE Travel: Darra, Pakistanby Top-Notch112 (Via: Deep Green Crystals) 20th Jan, 2009

Angry Ringtone for iPhone and others

[audio:http://audio.brajeshwar.com/angry-ring-ring.mp3] The ANGRY RINGTONE for iPhone. (Click the PLAY button above!) Download * iPhone Ringtone (.m4r) * MP3 Ringtone (.mp3) * Zipped (both .m4r and .mp3) To use it as an iPhone Ringtone; just double click the file "angry-ring-ring.m4r" and it ...15th Jan, 2009

IIM Ahmedabad's Leverage 2009

Leverage, the Venture Capital and Private Equity Club of IIM Ahmedabad and the Centre for Innovation Incubation and Entrepreneurship bring to you the 1st edition of the Venture Capital and Private Equity Conference on the ...12th Jan, 2009

Fedora 10 Released

Let's talk history! Fedora was created in late 2003 as a Linux based Operating System which gives the users an admittance from anywhere in the world to the most up-to-date free and open source software ...28th Nov, 2008

View the Sidenotes Archive

Play the Penguin Game

Recommended

  • Not Safe for Work Ever clicked a link and felt embarrassed with the content in front of your co-workers? Ever caught unaware because the funny link your friend sent was a little beyond funny? Let’s minimize that with NSWF.
  • Ode to Apple Dedicated to Apple - Mac, iPhone, iPod, iTunes, Quicktime, Apple TV and all the awesome softwares for the Apple Mac.
  • oCricket oCricket is about Cricket and people enthusiastic about it.
  • o! Just Me Of colorful cultures, entertainment, media, life hacks, music, books and movies from hollywood & bollywood.
  • ActionScript 3.0 Reference Flash/Flex ActionScript 3.0 Reference.
  • Downloads All downloads, Free and Open Source.
  • AS 2.0 Reference Reference for ActionScript 2.0 Programming Language used in Flash. Primarily stashed here for my own personal reference.

Download free Brajeshwar Wordpress Theme

Brajeshwar

Brajeshwar I firmly believe in keeping things simple, easy for users and I envison pushing the technical envelop time and again for the betterment of viable commercial and practical applications. More about me.

Brajeshwar's affinity with Adobe

My Photos

More photos on Flickr

Member of 9rules Network

Since its inception on 11th June, 2001, "Brajeshwar" has 949 Articles and 6,472 comments, contained within 22 categories and 1,497 tags.