Thursday, July 29, 2010

How to fix slow Internet browsing issue? - High download speed is not enough

I have a 20MBits/sec download Internet connection but recently I started seeing sluggish Internet browsing through FireFox and Crome. Page loading takes up a minute or more. When I perform a speed test(speedtest.net) on average I get 10MBits/sec download rate which is pretty good. But my site browsing was still slow. Whats going on! I started debugging the network to figure out where is the bottleneck. In the process I found couple of useful free network tools,

  • Visual trace route (http://www.yougetsignal.com/tools/visual-tracert/ ) - It tells you where in the network path packets are spending its time.

  • Routing Analysis tool (http://myspeed.visualware.com/servers/namerica/iad.php?testtype=-3&codebase=216.114.192.140&message=Route%20helps%20to%20diagnose%20connection%20problems&location=USA:%20Mankato,%20Minnesota&ver=8&map=namerica&provtext=HickoryTech%20Corp.&provlink=http://www.hickorytech.com/) - It gives a nice analysis report about every network hops and potential issues in each node.

  • tracepath, traceroute, dig - linux network hops tracing utilities.

After using these tools and analyzing the reports I realized that my network speed is okay as reported by speedtest.net, the problem was my ISP's(charter) DNS server which is very slow. So even though my download seed was fast but resolving the domain names were taking most of the time and so my sluggish browser performance.

Charter's tech support is useless, all they know is to reboot the cable modem. I kept telling them it is DNS server performance problem but they kept telling me reboot the cable modem. After few minutes of frustrating conversation I gave up on charter tech support.

My solution was to use opendns.com instead of my ISPs slow DNS. Signed up for a free account at opendns.com, pointed my wireless to the opendns.com's DNS server. Now my browsing is fast.

Not satisfied with the fast DNS, I went forward and installed a DNS cache proxy(dnsmasq) server in my local machine. Now my machines caches the domain lookup names from DNS and caches it so I never hit the DNS server more than once for a domain name.

Now my browsing is blazing fast :).

Thursday, July 22, 2010

How to install rar unrar on Oracle Enterprise Linux, RedHat

Yum repository for Oracle Enterprise Linux(OEL) does not contain rar/unrar utility, so if you want these utilities here is waht you have to do.

1) Login as root.
2) Create a yum repository file called dag.repo in folder /etc/yum.repos.d/
3) Add the following content to this(dag.repo) file.

[dag]
name=Dag RPM Repository for Fedora Core
baseurl=http://apt.sw.be/fedora/3/en/i386/dag/
gpgcheck=0
enabled=1

4) Search for the rar/unrar in the newly added repository
yum list all | grep rar

Your output should be something like the following:

bash-3.2# yum list all | grep rar
rar.i586 3.5.1-1.1.fc3.rf dag
unrar.i386 3.6.8-1.fc3.rf dag
perl-Data-Hierarchy.noarch 0.34-4.el5 epel
rar.i386 3.6.0-0.2.beta2.fc3.rf dag
rarpd.x86_64 ss981107-22.2.2 el5_latest_local


5) Start the rar install using the correct name from the list above.

yum install rar.i586
yum install unrar.i386

6) Verify that rar is working by typing the following command
rar

Congrats!