The implementation of network load balancing is not as simple as you think.

  

Network load balancing, like a splitter, can allocate a large number of requests to all set servers, allowing multiple servers to share. Therefore, setting up multiple servers is an important step to achieve this network load balancing, let us look at how to achieve this network load balance in win2003 system.

First, the advantages of network load balancing

1. Network load balancing allows you to propagate incoming requests to up to 32 servers, that is, you can use up to 32 servers to share External network request service. Network load balancing technology ensures that they respond quickly even under heavy load conditions.

2. Network load balancing only needs to provide an IP address (or domain name).

3. If one or several servers in network load balancing are not available, the service will not be interrupted. Network Load Balancing automatically detects that the server is not available and can quickly reassign client communications to the remaining servers. This protection can help you provide uninterrupted service for critical business processes. You can increase the number of network load balancing servers based on the increase in network traffic.

4. Network load balancing can be implemented on a normal computer.

In Windows Server 2003, network load balancing applications include Internet Information Services (IIS), ISA Server 2000 Firewall and Proxy Server, VPN Virtual Private Network, Terminal Server, Windows Media Services (Windows Video on Demand, Video broadcast) and other services. At the same time, network load balancing can help improve your server's performance and scalability to meet the growing needs of Internet-based clients.

Network Load Balancing allows clients to access the cluster with a logical Internet name and virtual IP address (also known as a cluster IP address) while preserving the name of each computer.

Below, we will introduce the implementation and application of network load balancing on two ordinary computers with Windows Server 2003 installed.

Second, the implementation of network load balancing

Of the two computers, one computer name is w2003-1, the IP address is 202.206.197.190, and the other is named w2003-2. The IP address is 202.206.197.191.

The IP address of the network load balancing cluster is planned to be 202.206.197.195. Plan the network load balancing cluster. The complete computer name is cluster.heinfo.edu.cn. You need to be in heinfo. Register this hostname in the edu.cn domain and set the address to 202.206.197.195. If you don't have DNS, you can edit %systemroot%"system32"drivers" on clients that need to access Network Load Balancing (including Network Load Balancing hosts) ; The hosts file in the etc directory, add a message "202.206.197.195 cluster.heinfo.edu.cn", you can solve the problem of DNS domain name resolution.

When officially applied, the client only needs to use cluster.heinfo.edu.cn or IP address 202.206.197.195 to access the server. Network service balance will automatically select 202.206.197.190 according to the load of each server. 202.206.197.191 provides external services.

The process of network load balancing is as follows:

On each computer that implements network load balancing, you can only install TCP/IP protocol, and do not install any other protocols (such as IPX protocol). Or NetBEUI protocol), in the network properties, "Network Load Balancing" can not be selected, which can be viewed from the "Network Connection Properties".

1 first enter the first computer, log in as an administrator, run from “Administrative Tools">;Network Load Balancing Manager", right-click "Network Load Balancing Cluster ”, select “New Cluster> from the menu that appears, go to the “Cluster Parameters” interface.

In & ldquo; IP address & rdquo; cluster parameters following the address entered planning 202.206.197.195, subnet mask used at the default value, in & ldquo; full Internet name & rdquo; behind the importation cluster.heinfo .edu.cn (may be another name, but the entered DNS name must match the entered IP address).

If remote control is allowed, check "Allow remote control" and enter a password that can be remotely controlled at "Remote Password" and "Confirm Password".

2 Click the “Next” button to enter the cluster IP address page and then enter the “Port Rules” interface. Click the “Next” button to enter the “Connect” interface.

③ in & ldquo; connected & rdquo; interface & ldquo; host & rdquo; column enter the name of the current w2003-1 computer, and then click & ldquo; connected & rdquo; button in the & ldquo; configuration a The new cluster available interface & rdquo; box shows the network card and IP address of the connected computer. Select the address of the same network segment as the cluster IP address (for the network card that provides external network applications), and then click the “Next” button to enter the “Host Parameters” interface. Click the “Complete” button. The configuration of the Network Load Balancing cluster will start automatically. After a few minutes, the Network Load Balancing cluster configuration is complete.

4Open the second computer and log in as an administrator.

Note: On each node in Network Load Balancing, the username and password of the administrator account are preferably the same.

5 Then, on the first computer, right-click on the newly created cluster and select “Add Host to Cluster” from the menu that appears. The “Connection” interface will appear, enter the computer name of the second computer in “Host”, click the “Connect” button, and the connection will be displayed under “The interface available to the configuration cluster”. Network configuration on your computer. Select the network card of 202.206.197.191, enter the host parameter interface, click the “Complete” button to return to the Network Load Balancing Manager.

⑥ close Network Load Balancing Manager and then enter the Network Load Balancing Manager. Right-click on “Network Load Balancing Cluster” and select “Connect to Existing” from the menu that appears, and the “Connections” interface will pop up.

Enter the name of the first computer, click the “link” button, and the cluster's IP address will be listed under "Cluster", select this IP address, and click the “Complete” button , connect to the cluster to complete.

In the future, if the two servers cannot meet the demand, you can add the third and fourth computers to the network load balancing according to the above steps to meet the requirements.

Third, use IIS service to verify network load balancing

After network load balancing is configured, in order to achieve a specific service, you need to install the corresponding service on the network load balancing computer. For example, in order to achieve load balancing of the IIS website, you need to install the IIS service on the corresponding network load balancing computer.

When installing a network load balancing application, no special method is required. Just install the corresponding service on the computer with network load balancing configured. However, in order for each user to have access to consistent data while accessing different computers through network load balancing, data consistency needs to be maintained on each computer with network load balancing. For example: to achieve network load balancing of IIS on two nodes, in order to ensure the consistency of the content of the two websites, in addition to the same configuration of the two IIS servers, the corresponding website data must be consistent.

In order to verify network load balancing, we can use IIS for authentication. Other applications such as Terminal Services and Windows Media Services are similar to IIS applications.

To install IIS services on each computer with network load balancing, do the following:

In “Add/Remove Programs, click “Add Windows Components” Windows Components Wizard, double-click "Application Server" to enter the "Application Server".

select ASP.NET, Internet Information Services and the application of network COM + access, you can begin installing IIS service.

After installation, go to the inetpub"wwwroot directory of the first computer, create a new text file, and type the following:

This win2003-1

Then save it as Default.htm file. This page will display the following in IE:

This w2003-1

In the inetpub"wwwroot directory of the second computer, create a new text file and enter the following:

This win2003-2

This page will display “This w2003-2” in IE, and then save this file with the default.htm name.

Then, type http://cluster.heinfo.edu.cn in the IE browser on other computers, it will be displayed as “This win2003-1” or“This win2003-2”, Network load balancing is automatically forwarded to the first or second computer based on the load on the network. In order to verify the effect, you can unplug the network cable of the first computer or unplug the network cable of the second machine when browsing. You will find that the content you browsed will be different. Of course, when we are only testing, in order to verify the effect of network load balancing, the content of the two websites is inconsistent, and when it is officially applied, the content of each node computer of the network load balancing cluster will be the same, so that regardless of the use That node responds and guarantees that the content of the access is consistent.

In the current network application, the service of one server will not meet the needs of the client. Only by adding more servers can the request service on the network be easily shared, so here is win2003 The implementation of network load balancing technology is a way to solve the problem, and I hope to help users.

Copyright © Windows knowledge All Rights Reserved