Home > Networking Tips > Network Engineering > Microsoft's Network Load Balancing
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

NETWORK ENGINEERING

Microsoft's Network Load Balancing


Tom Lancaster
07.05.2005
Rating: -4.22- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Microsoft's Network Load Balancing has been the low-cost option of choice for network administrators looking to gain either more performance or high availability. Although it doesn't have a lot of the bells and whistles that the dedicated appliance-based load-balancers have, the price is sure right (assuming you have a license for Windows Server). However, there are some things every server administrator should know about how network switches work before you go and configure NLB.

When a switch receives a frame, it makes the decision about which port to forward it out on based on the destination MAC address in that frame. Most regular SearchNetworking readers are already well aware of this. In order to make intelligent decisions, the switch maintains what most of the world calls a "forwarding database" (FDB), which is a list of all its ports, and what MAC addresses reside beyond each port. Again, I know this isn't breaking news, but bear with me. Now, realize that the FDB entries aren't configured by network engineers, like, say, IP subnets are configured on router interfaces. The switch populates the FDB dynamically by snooping on frames as they come from each port and keeping track of the Source MAC addresses. So, when a switch has seen a particular MAC address come from a particular port, it will "forward" all frames destined to that MAC address to that port. But, and this is crucial to understand, if the switch has never seen a specific MAC address before, then it will "flood" that frame to ALL ports on the switch, except of course, the port the frame came in on. (This is normal operation for instance, when the switch first boots up.)

What does this have to do with NLB? Glad you asked...

The way Microsoft's NLB operates (always for Windows 2000, and by default for Windows 2003) is to send outbound traffic using a MAC address that is not the same as the MAC address it sends in its ARP Response. The result is, that the inbound traffic is coming to a MAC address that does not exist in the switch's FDB, so the switch floods this traffic to ALL ports, which allows all the servers in the cluster to receive and then decide who gets to process the packets. Now, you may be thinking "My, that's pretty clever!" but before you get too excited, you should consider the implications for your network design.

First, what about all the other servers on your switch? How much traffic will they see and will this be a problem?

Second, what about security? Do you want systems connected to other ports receiving all the packets being sent to the cluster? Or... what if some evil hacker periodically forges a packet with the source address of your cluster and fools the switch into redirecting all the traffic away from the cluster? That would not be fun to troubleshoot.

Third, what about the rest of the network? Heaven forbid you're one of those admins who stick servers on the core of the network... will all this spam be sent to every switch and every user in the network too?

If you're currently using this technology, I highly recommend upgrading to Windows 2003, which supports NLB based on multicast. If 2003 isn't in your immediate future, you can address some of these concerns by reading the "best practices" documents on Microsoft.com.


Tom Lancaster, CCIE# 8829 CNX# 1105, is a consultant with 15 years experience in the networking industry, and co-author of several books on networking, most recently, CCSPTM: Secure PIX and Secure VPN Study Guide published by Sybex.


Rate this Tip
To rate tips, you must be a member of SearchNetworking.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Network Engineering
How to achieve server virtualization in your network
Limit network energy consumption with computer cooling technologies
Understanding remote scripting -- Managing Windows networks using scripts, part 9
Network mapping in Vista for Windows XP
Recovering domain controllers after a server disk failure
Recovering from a server disk failure: The shortcomings of NTBCKUP
Enabling Windows Vista's Network Mapping feature on domain networks
Prevent unauthorized USB devices with software restriction policies, third-party apps
How to subnet: Subnetting calculations and shortcuts
Using Windows Vista group policy to prevent unauthorized USB device use

Network Performance
Next-generation enterprise networks: Links to telecom carriers grow stronger
Application acceleration cements concrete co.'s consolidation project
Streaming Olympics video will drain corporate bandwidth
College IT department transforms itself with network management tools
How to prioritize wireless traffic
WAAS accelerates collaboration, increases revenue at engineering firm
Network management frameworks: FCAPS and ITIL
Governance, compliance, security: How are these network problems?
Network pros spend months on troubleshooting
Open source network monitoring reaches for the enterprise

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
baseboard management controller  (SearchNetworking.com)
fault management  (SearchNetworking.com)
loose coupling  (SearchNetworking.com)
M2M  (SearchNetworking.com)
maximum segment size  (SearchNetworking.com)
maximum transmission unit  (SearchNetworking.com)
network coding  (SearchNetworking.com)
packet loss  (SearchNetworking.com)
round-trip time  (SearchNetworking.com)
throttled data transfer  (SearchNetworking.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Networking Solutions for Business
IT Management Solutions and Services Directory.
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersNetworking Product Trials
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts