The purpose of WINS is to allow
a NetBIOS name to be converted to an IP address. Therefore computers using WINS
must be using NBT (NetBIOS over TCP/IP). WINS was originally put in place to
compensate for a shortcoming of NetBEUI which is the fact that it is not
routable. Therefore on large Networks IP is used to transport NetBIOS and
rather than using broadcasts, information is sent to the WINS server.
WINS converts Windows computer
names to IP addresses but does not do name lookups based on IP addresses. The
use of Windows Explorer or NET commands invokes the NetBIOS interface. NetBIOS
names, if repeated on another domain that is on the network, may cause a
problem since there is no way to distinguish NetBIOS names between two domains.
Each computer, when booted, sends a name registration broadcast. If there is no
response, the computer will use the name it registered. A NetBIOS broadcast
releases the computer name when the computer is shutdown gracefully.
WINS reduces this broadcast
traffic when using NBT. The registration and release is sent to the WINS server
rather than being broadcast. The clients have the IP address of the WINS server
and they are configured to use WINS before using NetBIOS broadcasts. A backup
WINS server may be available on the network for fault tolerance.
On the WINS server, there is a
NetBIOS name for each service a NetBIOS computer offers. This uses the 16th
hidden character of the NetBIOS names. Up to 25 records of groups, domain
browsers, and multihomed computers may be registered.
The characters and their meanings are:
When a NetBIOS broadcast is to
go out, a computer sends over TCP/IP to a WINS server to resolve NetBIOS names.
WINS dynamically builds its database. When a client uses WINS it announces to
the WINS server over TCP/IP rather than broadcasting to all computers. WINS
Message Modes:
When a client is turned off, it
releases its name, but there is a WINS extinction interval that allows the
record to remain for some period of time in case the client is turned on again
(as in the case of a reboot). The extinction interval reservs
the record for some period so other clients cannot use it until the interval
expires. WINS files are in SystemRoot\System32\Wins. A file names WINS.MDB
is used to store a WINS database which can be backed up and repaired. The WINS
service will back up the database every three hours (by default) to the
configured backup path. Version numbers can be used to backup minor changes.
The only way to replace a new copy with an older copy is to delete the old
database copy first. The easy way to restore a database is to force replication
from a WINS partner with a good copy of the database.
The database contains the
following records:
A WINS proxy agent can be
configured to act as a relay for non-WINS clients. The WINS proxy agent can
intercept client broadcast requests, forward them to a WINS server and return
the response. It may also reply with the response without contacting the WINS
server if the required information is in its cache. One WINS proxy is used on
each subnet that has non-WINS clients. This means that machines that are not
using WINS (Even Windows machines such as those without TCP/IP) can use a proxy
agent to let them find resources on other subnets. There should be a maximum of
two proxy agents per subnet. The agent must be a Windows based client, not a
server. When NetBIOSs names are
registered, both the proxy agent and the WINS server checks the name.
The proxy agent is configured at the following registry location:
Hkey_Local_Machine\System\CurrentControlSet\Services\NetBT\Parameters
Set the EnableProxy
parameter to REG_DWORD value of 1 and restart the computer.
When two WINS servers are
configured to communicate with each other replication occurs any time the data
base on one of them changes. Servers are configured as a push or pull partner.
A server can be both a push and pull partner. Push partners send update notices
when a database change is made. A pull partner asks push partners for database
entries more recent than their current listings. Only changes are replicated.
Pull servers are used across slow links since pull requests can be set for
specific times.
The WINS properties box can be
opened by right clicking on a server in the WINS snap-in and selecting
"Properties". Tabs:
Tabs: