Friday, January 22, 2010

Network Load Balance and Layer 3 Switch



TO load balance servers in your network you have few options as follows

1- Buy a hardware load balancer like the one sold by http://www.coyotepoint.com/
2- Use software load balancer and here you have two options
a) Use Windows 2003 NLB (Network Load Balance) which is free but very old technology.
b) Use a third party software like Linux Virtual Server (LVS) http://www.linuxvirtualserver.org/ or any third party software
3- Write your own load balance component
4- Use DNS Round robin. Please do not use DNS round robin because of the drawback mentioned in this link http://en.wikipedia.org/wiki/Round_robin_DNS

In this post I am going to hilight few issues related to NLB. First of all it is an old technology and if you are doing load balancing in a professional environment you should really use a hardware appliance like the one mentioned in point 1 above. Hardware appliances offer load balancing algorithms and they check for server and application availability as well. However, if you are experimenting with load balancing or doing it at home and don't want to spend a penny then you can use NLB.

NLB basically tries to broadcast the request to all the servers in the cluster and one of the servers says I got it. and that's it. Before you even try NLB make sure the switch you have is a layer 2 switch. if your switch is a layer 3 switch your cluster will never work. to work around this issue you need to create a Layer 2 VLAN in your Layer 3 switch.

The other issue you need to examine is your network interface on your machine. open your registry on both machines and check the interface illustrated below. every machine should have a different GUID for the interface. sometimes different machines will have the same GUID because often times the operating system is installed from the same copy and every thing ends up being the same even the network interface GUID. in this case you need to uninstall your network adapter and install it again.



To create an NLB cluster
  1. To open Network Load Balancing Manager, click Start, click Administrative Tools, and then click Network Load Balancing Manager. You can also open Network Load Balancing Manager by typing Nlbmgr from a command prompt.

  2. Right-click Network Load Balancing Clusters, and then click New Cluster.

  3. Connect to the host that is to be a part of the new cluster. In Host, enter the name of the host, and then click Connect.

  4. Select the interface that you want to use with the cluster, and then click Next. (The interface hosts the virtual IP address and receives the client traffic to load balance.)

  5. In Host Parameters, select a value in Priority (Unique host identifier). This parameter specifies a unique ID for each host. The host with the lowest numerical priority among the current members of the cluster handles all of the cluster's network traffic that is not covered by a port rule. You can override these priorities or provide load balancing for specific ranges of ports by specifying rules on the Port rules tab of the Network Load Balancing Properties dialog box. ClickNext to continue.

  6. In Cluster IP Addresses, click Add to enter the cluster IP address that is shared by every host in the cluster. NLB adds this IP address to the TCP/IP stack on the selected interface of all hosts chosen to be part of the cluster. NLB doesn't support Dynamic Host Configuration Protocol (DHCP). NLB disables DHCP on each interface it configures, so the IP addresses must be static. Click Next to continue.

  7. In Cluster Parameters, type values in IP Address and Subnet mask (for IPv6 addresses, subnet mask is not needed). A full Internet name is not needed when using NLB with Terminal Services.

  8. In Cluster operation mode, click Unicast to specify that a unicast media access control (MAC) address should be used for cluster operations. In unicast mode, the MAC address of the cluster is assigned to the network adapter of the computer, and the built-in MAC address of the network adapter is not used. It is recommended that you accept the unicast default settings. Click Next to continue.

  9. In Port Rules, click Edit to modify the default port rules. Configure the rules as follows:

    In Port Range, specify a range of 3389 to 3389 so that the new rule applies only to RDP traffic.

    In Protocols, select TCP as the specific TCP/IP protocol that a port rule should cover. Only the network traffic for the specified protocol is affected by the rule. Traffic not affected by the port rule is handled by the default host.

    In Filtering mode, select Multiple host, which specifies that multiple hosts in the cluster handle network traffic for this port rule.

    In Affinity (which applies only for the Multiple host filtering mode), select None if you are planning to use TS Session Broker. Select Single if you are not planning to use TS Session Broker.

  10. Click Finish to create the cluster.

    To add more hosts to the cluster, right-click the new cluster, and then click Add Host to Cluster. Configure the host parameters (including host priority and dedicated IP addresses) for the additional hosts by following the same instructions that you used to configure the initial host. Since you are adding hosts to an already configured cluster, all the cluster-wide parameters remain the same.

    Those steps were copied from http://technet.microsoft.com/en-us/library/cc771300(WS.10).aspx



    http://www.west-wind.com/presentations/loadbalancing/networkloadbalancingwindows2003.asp


31 comments:

Anonymous said...

Hey, I am checking this blog using the phone and this appears to be kind of odd. Thought you'd wish to know. This is a great write-up nevertheless, did not mess that up.

- David

Anonymous said...

I really like your blog.. very nice colors & theme.
Did you design this website yourself or did you hire someone
to do it for you? Plz reply as I'm looking to create my own blog and would like to know where u got this from. many thanks

Feel free to visit my blog - paleo diät

Anonymous said...

It's actually a nice and useful piece of information. I'm happy that
you shared this helpful info with us. Please stay us informed
like this. Thanks for sharing.

Also visit my site - Glutenunverträglichkeit
Also see my web site - zöliakie

Anonymous said...

I'm amazed, I have to admit. Seldom do I come across a blog that's both equally educative and entertaining,
and without a doubt, you've hit the nail on the head. The issue is something which too few men and women are speaking intelligently about. Now i'm very happy I stumbled
across this in my hunt for something regarding this.



Feel free to visit my blog post - wordpress theme creator

Anonymous said...

Everything is very open with a really clear description of the challenges.

It was really informative. Your site is very helpful.

Thanks for sharing!

Feel free to surf to my web blog ... wordpress kurs video

Anonymous said...

I'm very pleased to uncover this website. I need to to thank you for your time just for this fantastic read!! I definitely liked every bit of it and I have you book marked to check out new stuff in your site.

Review my web site ... Steinzeit-Diät Erfahrungen

Anonymous said...

Thank you, I've recently been searching for information about this subject for a while and yours is the best I have found out till now. But, what in regards to the conclusion? Are you sure concerning the source?

Check out my homepage :: blog

Anonymous said...

I was suggested this web site by means of my cousin.
I am now not positive whether or not this publish is written by means of him as no one else
know such specified approximately my problem. You're amazing! Thanks!

Here is my blog: wordpress hilfe

Anonymous said...

Very shortly this web page will be famous amid all blog users, due to
it's fastidious posts

Visit my homepage ... glutenfreie Ernährungsform

Anonymous said...

This piece of writing is actually a nice one it helps new the web people, who are wishing
in favor of blogging.

Feel free to surf to my web page - kanzleimarketing steuerberater

Anonymous said...

great issues altogether, you simply won a brand new reader.
What could you recommend about your submit that you made a
few days ago? Any positive?

Visit my blog post katzenzuchter

Anonymous said...

Good day! I know this is kind of off topic but I was wondering if you knew
where I could find a captcha plugin for my comment form?

I'm using the same blog platform as yours and I'm having trouble finding one?
Thanks a lot!

Also visit my weblog: low carb peanut butter
my page > paläoernährung

Anonymous said...

Excellent beat ! I would like to apprentice
while you amend your site, how can i subscribe for a blog website?
The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea

My web site ... arthrose ernahrung

Anonymous said...

I loved as much as you will receive carried out right
here. The sketch is attractive, your authored material stylish.

nonetheless, you command get bought an shakiness over
that you wish be delivering the following. unwell unquestionably come more formerly again
as exactly the same nearly a lot often inside case
you shield this hike.

Also visit my website - abnehmen mit garantie

Anonymous said...

I was wondering if you ever thought of changing the
structure of your site? Its very well written; I love what
youve got to say. But maybe you could a little more in the way of content so people could connect with it better.

Youve got an awful lot of text for only having one or 2 images.
Maybe you could space it out better?

Review my homepage - kochen ohne ei

Anonymous said...

Heya i'm for the first time here. I came across this board and I find It truly useful & it helped me out much. I hope to give something back and aid others like you helped me.

Look into my web-site wordpress installieren

Anonymous said...

It's awesome for me to have a site, which is good designed for my know-how. thanks admin

my web blog :: paleo vorher nachher

Anonymous said...

It's awesome to visit this web page and reading the views of all colleagues on the topic of this post, while I am also keen of getting knowledge.

Feel free to visit my blog post :: macht getreide krank

Anonymous said...

Pretty part of content. I just stumbled upon your website
and in accession capital to say that I get actually enjoyed account your weblog posts.
Anyway I'll be subscribing to your augment and even I achievement you get right of entry to persistently quickly.

my website: Vermögensberater in Mainz
Also see my webpage > fonds

Anonymous said...

Have you ever considered about including a little bit more than just your articles?

I mean, what you say is important and all. Nevertheless
think about if you added some great photos or videos to give your posts more, "pop"!
Your content is excellent but with images and clips, this website could undeniably be one
of the best in its field. Superb blog!

Feel free to visit my web blog ... low carb laden

Anonymous said...

Heya i am for the first time here. I found this board and I find It really helpful & it helped
me out much. I am hoping to give something back and help others such as you
helped me.

Feel free to surf to my web site; altersrente
my web site - alternative investment services

Anonymous said...

Hello Dear, are you in fact visiting this website regularly, if
so after that you will without doubt get fastidious knowledge.


Have a look at my web site: koch dich schlank
My web site > steinzeit diät

Anonymous said...

I'm extremely inspired together with your writing talents and also with the layout to your weblog. Is this a paid subject matter or did you modify it yourself? Anyway keep up the nice high quality writing, it's rare
to peer a nice blog like this one nowadays.
.

Here is my web blog :: länge meta keywords
my site - polldaddy deutsch

Anonymous said...

Hello There. I discovered your blog the use of msn. That
is a really smartly written article. I will be sure to bookmark it and return to read extra of your useful info.
Thank you for the post. I will certainly comeback.


Feel free to visit my weblog - produkte ohne laktose
My webpage > nahrungsmittel ohne kohlenhydrate tabelle

Anonymous said...

Greetings from Florida! I'm bored to death at work so I decided to browse your blog on my iphone during lunch break. I really like the info you provide here and can't
wait to take a look when I get home. I'm shocked at how fast your blog loaded on my mobile .. I'm not even using WIFI, just 3G .
. Anyhow, wonderful blog!

Also visit my homepage: raspberry ketone diet

Anonymous said...

Definitely enjoy ωhat you've got here, pleased you're getting it out there and what you haѵе tо say.
Yοu are makіng it enjoyаble anԁ yet you still take сare to make it
clever. I am thrіlleԁ to ѕwaρ ideas and critical information
with уou. Τhiѕ is abѕolutely a гemaгkable blog.


My website ... techno-

Anonymous said...

Hi, I'm a writer based out of Budgee, Australia and I discovered your site via http://aliayman.blogspot.com/. Would you have any ideas for those exploring blogging? I'm
worκing on starting my own wеbsitе soon but I don't really know where to get started. Do you believe I should get started with a free site like WordPress or invest some cash into a pay site? I'm faced
with so many options anԁ it's all so overwhelming... Any tips?

My weblog ... http://www.bemysoulmate.com/activity/p/190939/

Anonymous said...

WOW just what I was searching for. Came here by searching for Reputation Management service

Anonymous said...

e cig reviews, electronic cigarette, smokeless cigarettes, ecigarette, best electronic cigarettes, electronic cigarette

Anonymous said...

golden goose outlet
off white jordan 1
jordan
air jordan
kyrie irving shoes
bape clothing
kyrie shoes
supreme shirt
off white jordan
Travis Scott Air Jordan

Anonymous said...

jordan shoes
goyard bag
off white outlet
kd 12
golden goose
golden goose clearance
supreme
hermes outlet
kobe shoes
supreme new york