Understanding WINS and NetBIOS Over TCP/IPWINS works best in client-server environments where WINS clients send queries to WINS servers for name resolution and WINS servers resolve the query and respond. To transmit WINS queries and other information, computers use NetBIOS. NetBIOS provides an API that allows computers on a network to communicate. When you install TCP/IP networking on a Microsoft client or server, NBT is also installed. NBT is a session-layer service that enables NetBIOS applications to run over the TCP/IP protocol stack. NetBIOS applications rely on WINS or the local LMHOSTS file to resolve computer names to IP addresses. On pre “Windows 2000 networks, WINS is the primary name resolution service available. On Windows Server 2003 networks, Domain Name System (DNS) is the primary name resolution service and WINS has a different role. This new role is to allow pre “Windows 2000 systems to browse lists of resources on the network and to allow Windows 2000, Windows XP, and Windows Server 2003 systems to locate NetBIOS resources. Configuring WINS Clients and ServersTo enable WINS name resolution on a network, you need to configure WINS clients and servers. When you configure WINS clients, you tell the clients the IP addresses of WINS servers on the network. Using the IP address, clients can communicate with WINS servers anywhere on the network, even if the servers are on different subnets. WINS clients can also communicate using a broadcast method in which clients broadcast messages to other computers on the local network segment requesting their IP addresses. Because messages are broadcast, the WINS server isn't used. Any non-WINS clients that support this type of message broadcasting can also use this method to resolve computer names to IP addresses. When clients communicate with WINS servers, they establish sessions that have three key parts :
Note Configuring a WINS client is described in the section entitled "Configuring WINS Resolution" in Chapter 16 , "Managing TCP/IP Networking." Configuring a WINS server is described in the section of this chapter entitled "Configuring WINS Servers." Name Resolution MethodsOnce a client establishes a session with a WINS server, the client can request name resolution services. Which method is used to resolve computer names to IP addresses depends on how the network is configured. Four name resolution methods are available:
If WINS servers are available on the network, Windows clients use the p-node method for name resolution. If no WINS servers are available on the network, Windows clients use the b-node method for name resolution. Windows computers can also use DNS and the local files LMHOSTS and HOSTS to resolve network names. Working with DNS is covered in the next chapter, "Optimizing DNS." Tip When you use Dynamic Host Configuration Protocol (DHCP) to dynamically assign IP addresses, you should set the name resolution method for DHCP clients. To do this, you need to set DHCP scope options for the 046 WINS/NBT Node Type as specified in the section entitled "Setting Scope Options" in Chapter 18 , "Running DHCP Clients and Servers." The best method to use is h-node. You'll get the best performance and have reduced traffic on the network. |