IT Hardwares

eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
Business & Money
Technology
Women
Health
Education
Family
Travel
Cars
Entertainment
SD Editorials
Online Guide and article directory site.
Foodeditorials.com
Over 15,000 recipes & editorials on food.
Lyricadvisor.com
Get 100,000 Lyric & Albums.
  • Business & Money
    • A Guide to Business
    • Guide to Finance
    • Ideas for Marketing
    • Legal Guide
    • Guide to Insurance
    • Lettre De Motivation
    • Guide to the Stock Market
    • Human Resource Career
    • Sales Marketing
    • Forex & Trading
    • Advertising & Marketing
    • Startup Guide
  • Technology
    • Guide to Technology
    • Cell Phones
    • Computer Software
    • IT Hardwares
    • Internet
    • Online Security
    • Cameras
    • Search Engine Optimization
    • Science & Technology
  • Women
    • Guide to Women
    • Relationship Advice
    • Marriage
    • Jewelry
    • Pregnancy
    • Fashion Style
    • Divorce Guide
    • Wedding Guide
    • Dating Guide
    • Natural Beauty
  • Health
    • Guide to Health
    • Guide to Medical
    • Plastic Surgery
    • Weight Loss
    • Sports
    • Body Wellness
    • Cancer Treatment
    • Common Illness
    • Health & Lifestyle
  • Education
    • Military Service
    • Politics and Policy
    • Arts & Humanities
    • Education and Teaching
    • Learn Languages
    • Colleges & Universities
  • Family
    • Quality Home Improvement
    • Hobbies and Interests
    • Family Guide to
    • Pet Guide
    • Loans Guide
    • Credit Cards
    • Gardening Guide
    • Home Security
    • Real Estate
    • Home Decor
    • Gift & Present
  • Travel
    • The Travel Guide
    • Adventure Travel
    • Cruise Ships
    • Beach Holiday
    • Travel Accommodation
    • Holiday Destinations
  • Cars
    • Information on Cars
    • Traffic Violations
    • Auto Insurance
    • Trailers
    • Sport Cars
    • The Bikes
  • Entertainment
    • Entertainment Guide
    • World Music
    • Photo & Video
    • Television & Games

Load Balancing And Failover

    View: 
A high-volume site like Yahoo! knows that the actual quality of service any web server provides to end users basically depends on network-transfer speed and server response time. Network-transfer speed refers to the Internet-link bandwidth while server-response time depends upon resources including fast CPU, lots of RAM and good I/O performance. Once these resources are exhausted and the web-server is encountering heavy traffic, a problem would surely arise.



Load Balancing

A problematic situation pertaining to difficulty in handling high volumes of incoming traffic can be solved either through installing more RAM on existing machines or replacing the CPU with a faster one. The use of faster or dedicated SCSI controllers and disks with shorter access time can also be done. Software can be tuned so that the operating system parameters and web server software can be adjusted to achieve better performance.

An alternative approach is to improve performance by increasing the number of web servers. This approach would attempt to distribute traffic unto a cluster of back-end web servers that need not be large-scale machines. Web server scalability is achieved when more servers are added to distribute the load among the group of servers or server cluster.

This is what load balancing is all about. It involves the fine tuning of a computer system, network or disk subsystem in order to more evenly distribute the data and/or processing across available resources. Load balancing is distributing, processing and communications activity evenly across a computer network so that no single device is overwhelmed. Busy websites usually use two or more web servers in a load balancing scheme so that when one server gets overwhelmed with requests, traffic is forwarded to another server with more capacity.

There are two probable reasons why a company could want to load balance traffic across firewalls. One is for purely technical reasons and the other is centered on winning business. The technical aspect should be quickly addressed as soon as funds and environment allow.

When there is only one web server responding to all incoming HTTP requests for a website, it may not be able to perform accordingly especially if the website has gained popularity. Loading of web pages will be very slow and some users would have to wait for their requests to be processed. It can come to a point where upgrading the server hardware is no longer cost effective due to the increased traffic and connections to a website.

Yahoo! was granted a patent from a filing done in 1999 regarding coordinating information between multiple servers that share information as well as servers that may cache some of the information. Load balancing devices are becoming very common in supporting high-traffic websites. These devices evolve as websites grow in terms of size, complexity and traffic flow.

The presence of multiple web servers in a server group requires that HTTP traffic be evenly distributed among the servers. These servers should appear as a single web server to the web client. The load balancer simply intercepts each request and redirects it to an available server in the server cluster.

Methods of Load Balancing

Load balancing can be achieved in a number of ways. Choice would depend on the individual requirement, available features, complexity of implementation and the cost. The user company would have to determine its circumstances to determine which option would work best.

The Round Robin DNS Load Balancing is one of the early adapted load balancing techniques. The built-in round robin feature of BIND of a DNS server facilitates cycling through the IP addresses corresponding to a group of servers in a cluster. It is a fairly simple and inexpensive method which is very easy to implement. However, its downside is that the DNS server does not have any knowledge of server availability thus may continually point to an unavailable server. It has the ability to differentiate by IP address but not by server port. There is also the possibility that the IP address is cached by other name servers which would result to request not being sent to the load balancing DNS server.

In Hardware Load Balancing, hardware load balances route TCP/IP packets to various servers in a cluster. This method is said to provide a powerful topology with high availability. It uses circuit level network gateway to route traffic. Its one downside is the higher cost incurred as compared to other methods.

The most commonly used method is Software Load Balancing. Load balancers often come as an integrated component of expensive web server and application server software packages. This method is more configurable based on requirements and can incorporate intelligent routing base on multiple input parameters. An additional hardware needs to be provided to isolate the load balancers.

Algorithm of Server Load Balancing

When HTTP requests are assigned to any server picked randomly among the group of servers, this is called random allocation. It is possible that one server may be assigned more requests than the others, but generally each server gets its share of the load. It can be very easy to implement but the risk of overloading one while under-utilizing another is big.

The IP sprayer assigns the requests to a list of the servers on a rotating basis when the round-robin allocation is used. The first request goes to a randomly picked server in a group so that the entire first request need not go to the same server especially if more than one IP sprayer is involved. The circular order is followed in redirecting the traffic for subsequent requests. The server which has been assigned a request moves to the end of the list to ensure that all servers are equally assigned. The allocation is much orderly than random but it may not be enough based on processing overhead required and when there are differences in server specification in a server group.

The shortcoming of the round-robin allocation has been eliminated by the weighted round-robin version. In this case, a server that is capable of handling twice as much load as the other can get a weight of two. This means that the IP sprayer will assign two requests to the powerful server as against one request assigned to the weaker one. This takes care of the capacity of the servers in the group. However, it does not consider the advanced load balancing requirements like processing time for individual request. An efficient load balancer should be capable of intelligent monitoring that would help it direct requests to the server that is more capable of handling them.
Load Balancing And Failover
R1 (the hub), R2, and R3 are running IGRP over the 172.12.123.0 /24 network. This is a T1 line.

R1 and R3 are also connected on a different subnet, 172.12.13.0 /24. The bandwidth of this connection is 512 KBPS.

R2 and R3 are also connected by an Ethernet segment, 172.12.23.0 /24.

We'll configure IGRP on R1, R2, and R3 with the router igrp 1 command. IGRP will run on all interfaces in the 172.12.0.0 and 172.23.0.0 network.

R1#conf t

R1(config)#router igrp 1

R1(config-router)#network 172.12.0.0

The “1” in the router igrp command refers to the Autonomous System (AS). IGRP is a classful routing protocol, so wildcard masks are not used in the network statements.

R2#conf t

R2(config-if)#router igrp 1

R2(config-router)#network 172.12.0.0

R2(config-router)#network 172.23.0.0

R3#conf t

R3(config-if)#router igrp 1

R3(config-router)#network 172.12.0.0

R3(config-router)#network 172.23.0.0

Run show ip route on R1. R1 will see three equal-cost paths to the Ethernet network. IGRP supports load-sharing over up to four equal-cost paths by default, so all three paths appear in the routing table. R1 will also see a route to the loopback address on R2 and two routes to the loopback address on R3. (You can also run show ip route igrp in order to see only the IGRP routes.)

R1#show ip route igrp

I 172.23.0.0/16 [100/8576] via 172.12.123.2, 00:00:02, Serial0

[100/8576] via 172.12.13.3, 00:00:02, Serial1

[100/8576] via 172.12.123.3, 00:00:01, Serial0

Remember that the numbers in the brackets following the network number in the routes are the Administrative Distance and the IGRP metric, in that order.

Note that classful masks are in use. IGRP does not support variable-length subnet masks (VLSM).

There are two serial connections between R1 and R3. IGRP is assuming that both lines are T1 lines, running at 1544 KBPS. The 172.12.13.0 network is participating in equal-cost load sharing because of IGRP's bandwidth assumption - that all serial interfaces are connected to T1 lines.

To give IGRP a more accurate picture of the network's bandwidth, configure bandwidth 512 on R1 and R3's Serial1 interface (the interfaces on the 172.12.13.0 network).

R1#conf t

R1(config)#interface serial1

R1(config-if)#bandwidth 512

R3#conf t

R3(config)#interface serial 1

R3(config-if)#bandwidth 512

IGRP's assumption that all serial lines run at 1544 KBPS is overridden by the bandwidth 512 command. IGRP now believes this line runs at 512 KBPS.

To see the effect of this command, clear your routing table on R1.

R1#clear ip route *

R1#show ip route igrp

I 172.23.0.0/16 [100/8576] via 172.12.123.3, 00:00:24, Serial0/0

[100/8576] via 172.12.123.2, 00:00:17, Serial0/0

The routing table is cleared with clear ip route *. To see only the routes received in IGRP updates instead of the entire table, run show ip route igrp.

One of the paths to 172.23.0.0 is now gone - the route that went through the 172.12.13.0 network. Now that IGRP sees that link as slower than the others, equal-cost load balancing will not occur over the 172.12.13.0 network.

It's important to understand that the bandwidth command does not actually change the bandwidth of the connection; it changes IGRP's assumption of what the bandwidth is.

In the next part of this IGRP load-balancing tutorial, we'll take a look at how to configure unequal-cost load balancing.
More Articles from
Computer Hardware Guide Pg238
Build A Water Well
Build A Website Now
Build A Website Tutorial
Build Small Business Website
Build Website For Free
Build Your Own Computer
Build Your Own Free Websites
Build Your Own Hydroponics System
Build Your Own Pc
Business Email List Free
D Link Network Security
Fiber Optic Network Design
Social Etiquette And Good Manners
Web Site Design Tools
Build Your Business Advertizing For Free
Build massive Internet Wealth - Its all in the list
Build Your Online Presence
Build It, They Will Come! 7 FREE Methods to Generate Traffic
Build Links And Popularize Your Site
Build Link Popularity Now And Gain Huge Benefits In The Future
» More on
Computer Hardware Guide
  • Related Articles
  • Author
  • Most Popular
•Application Server Load Balancing, by Highreplica Highreplica
•Balancing Family And Work, by Tymon Hytem
•Clustering And Load Balancing, by Highreplica Highreplica
•Load Balancing And Failover, by Danny Wirken
•Load Balancing In Windows, by Know More About Load Balancing
About Author
Both Danny Wirken & Chris Bryant are contributors for EditorialToday. The above articles have been edited for relevancy and timeliness. All write-ups, reviews, tips and guides published by EditorialToday.com and its partners or affiliates are for informational purposes only. They should not be used for any legal or any other type of advice. We do not endorse any author, contributor, writer or article posted by our team.

Danny Wirken has sinced written about articles on various topics from Computers and The Internet, Vacation and E Books. . Danny Wirken's top article generates over 1220000 views. to your Favourites.

Chris Bryant has sinced written about articles on various topics from CISCO CCNA, Personal Desktop and Cisco CCNP. . Chris Bryant's top article generates over 27100 views. to your Favourites.
Clubs Open On Christmas
Although some of their clientele may not be able to hang around the clubs until closing time, many patrons like to get out with their friends nearly every night of the week
 
A Guide to Business | Guide to Technology | Guide to Women | Guide to Health | Family Guide to | Travel & Vacations | Information on Cars

EditorialToday IT Hardwares has 2 sub sections. Such as Computer Guide and Hardware. With over 20,000 authors and writers, we are a well known online resource and editorial services site in United Kingdom, Canada & America . Here, we cover all the major topics from self help guide to A Guide to Business, Guide to Finance, Ideas for Marketing, Legal Guide, Lettre De Motivation, Guide to Insurance, Guide to Health, Guide to Medical, Military Service, Guide to Women, Pet Guide, Politics and Policy , Guide to Technology, The Travel Guide, Information on Cars, Entertainment Guide, Family Guide to, Hobbies and Interests, Quality Home Improvement, Arts & Humanities and many more.
About Editorial Today | Contact Us | Terms of Use | Submit an Article | Our Authors