Faster Web through Client-assisted CDN Server Selection
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
node_modules
README.md
dns_proxy.js
package.json

README.md

DNS-Proxy

Modern websites use Content Delivery Networks (CDNs) to speed up the delivery of static content. However, we show that DNS-based load-balancing of CDN servers fails to fully deliver on the speedup of CDNs. We propose DNS-Proxy (dp), a client-side process that shares load-balancing functionality with CDNs by choosing from among resolved CDN servers based on last mile network performance. Our measurement study of CDN infrastructure deployed by Akamai and Google shows that dp reduces webpage load time by 29% on average. If dp has already resolved the domain, the reduction in webpage load time is 40% on average. Finally, dp reduces the download time of individual static Web objects by as much as 43%. We argue that dp enables a more effective use of existing content delivery infrastructure and represents a complementary strategy to a continual increase of geographic content availability.

Read more...

Installation

We also make DNS-Proxy available as an npm-module at https://www.npmjs.com/package/dns_proxy

  1. Make sure nodejs is installed
  2. Install the following modules using npn
$ npm install ip
$ npm install raw-socket
$ npm install line-reader
$ npm install object-sizeof
  1. Intall DNS-Proxy
$ npm install dns_proxy
  1. Start DNS-Proxy server.
$ sudo node node_modules/dns_proxy/dns_proxy.js

Or if you are running from source

$ sudo nodejs dp.js

Note that DNS-Proxy uses raw-sockets and so requires root access to run. The server will run at 127.0.0.1:53 by default.

  1. Once the dns_proxy has been started, configure your device to use localhost (127.0.0.1) as the default DNS server. You can test DNS-Proxy in another terminal with
$ dig A www.bestbuy.com @127.0.0.1