Windows 2000 now uses DNS as its primary namespace. Pre-Windows 2000 operating systems use NetBIOS names to identify and access computers and resources on a network. To locate computers and resources, NetBIOS names must be registered so they can be mapped to a corresponding IP address. This is where WINS comes into play. Keep in mind that in a pure Windows 2000 network, WINS is not required. However, if there are legacy clients and servers on the network that still use NetBIOS, or applications that require NetBIOS name resolution, WINS may be required. WINS provides a dynamic database to register NetBIOS names and resolve them to IP addresses. Clients dynamically register their NetBIOS names with a WINS server and query a WINS server when they need to resolve a NetBIOS name to an IP address. In a non-routed environment, NetBIOS names can be registered and resolved using local broadcasts. However, this poses a problem in a routed environment because routers are not normally configured to forward broadcasts between subnets. WINS solves the problem of registering and resolving NetBIOS names in a routed environment. By using WINS, name registration and renewal requests can be directed to a WINS server, which allows the requests to pass routers, thereby allowing name registration and renewal across subnets. There are a number of other benefits of implementing a WINS server on a network, including
WINS ResolutionWINS clients communicate with a WINS server in any of the following situations:
NetBIOS Name RegistrationWhen a client is configured to use a WINS server, it registers its NetBIOS name with the WINS server that it has been configured to use. A name registration request is sent directly to the WINS server when the client starts and when any network services, such as the workstation service, is started. The WINS server responds with a successful registration message if another host on the network doesn't already register the same name. The WINS server also returns the Time to Live (TTL), which defines how long the name can remain in the WINS database before it must be renewed (the default TTL is six days). If the WINS server determines that the name a client is attempting to register is already in the database, the WINS server sends a challenge message to the host that currently has the name registered. If the host responds to the challenge, the host requesting to register the NetBIOS name receives a negative response from the WINS server. If the host that currently uses the name does not respond to the challenge, the WINS server sends a successful registration message, thus permitting the new WINS client to register the name. There may also be instances when a client attempts to register its NetBIOS name when the primary WINS server is unavailable. In this case, the client will attempt to register its name with a secondary WINS server if it has been configured for one. If no response is received, the client can register the name using a local broadcast. Remember that local broadcasts cannot cross routers, so a name that the machine registers in this way might not be unique. NetBIOS Name RenewalAs IP addresses leased from a Dynamic Host Configuration Protocol (DHCP) server must periodically be renewed. WINS clients must also renew their registered NetBIOS names with the WINS server by sending a refresh request. The refresh request contains the IP address and NetBIOS name of the requesting client. The renewal process occurs as follows :
NetBIOS Name ReleasingWhen a WINS client is properly shut down, it sends a name release request containing its IP address and NetBIOS name to the WINS server. This makes the NetBIOS name available for another client on the network. NetBIOS Name ResolutionWhen a client is configured for WINS, it automatically sends any NetBIOS name resolution requests to the WINS server. The WINS server uses its database to map the client to its corresponding IP address. When a client needs to resolve a NetBIOS name, the following process occurs:
|