Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 1997

Advanced WINS Features


RSS
Subscribe to Windows IT Pro | See More TCP/IP Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Setting up push and pull WINS servers

I've written several columns that covered name resolution under Windows NT 3.x and 4.x. This month and next, I'll cover advanced aspects of Windows Internet Name Service (WINS)--push and pull partners, security, and WINS proxy servers.

The Trouble with Names
For those who missed my past columns ("Name Resolvers: WINS vs. DNS," November 1996; "NetBIOS Names and WINS," January 1997; and "Inside a NetBIOS Name Resolution," March 1997), you can find them on the Windows NT Magazine Web site at http://www.winntmag.com. The articles show that NT and TCP/IP have a problem: names. We want servers to have nice, human-friendly names such as, in my network, Aldebaran, Rigel, Betelgeuse, and Elnath. (They are the brightest and second-brightest stars in the Orion and Taurus constellations. The brightest are the primary domain controllers--PDCs, and the second-brightest are the backup domain controllers--BDCs.) Those names are easier to remember than IP addresses such as 198.34.57.44, 198.34.57.11, 198.34.57.90, and 198.34.57.26. To satisfy both us and the computers, networking software converts the human-friendly names into IP addresses. The term for that conversion is name resolution, and it typically involves looking up the name in a database.

Name resolution makes NT networking with TCP/IP particularly troublesome because NT uses different kinds of names from other TCP/IP-based networks. Most use names such as http://www.mmco.com, a Domain Name Service (DNS) name. NT's Microsoft networking lineage was not very TCP/IP- and Internet-aware until recently. Over the years, Microsoft networking has used a different set of names--NetBIOS names. So running NT on TCP/IP presents a special challenge: The network must resolve DNS names and NetBIOS names. The NetBIOS names are more central to NT's operation. As a result, NT depends on NetBIOS over TCP (NBT or NetBT) for NetBIOS name resolution.

NBT name resolution occurs in NT with WINS. Basically, a designated NT server keeps a JET database of NetBIOS names and IP addresses. Workstations and servers refer to that WINS server to resolve names into IP addresses. But how does WINS gather information about computers on the network? Every computer that intends to use a given WINS server for name resolution registers its NetBIOS names with that WINS server. In a small network with one WINS server, you tell all your computers to refer to that WINS server. That server is the central repository for NetBIOS names. But what about redundancy or the situation in which you need a second WINS server to handle your enterprise network? How does a second WINS server share the information the first WINS server owns? In that case, you need to know about push and pull partners.

When you set up a Microsoft TCP/IP client, NT asks for a primary and a secondary WINS server address. When your PC boots, it goes to the primary WINS server and tries to register its NetBIOS name. If the registration is successful, your PC never contacts the secondary WINS server, unless a subsequent name resolution attempt fails.

Nobody Home
Suppose you create a backup WINS server and point all your workstations' Secondary WINS Server fields to that backup. The primary WINS server goes down. Where are you? Nowhere very interesting. The secondary server doesn't know much, because no one has registered with it. So if the primary server goes down and everyone starts asking the secondary server to resolve names, the secondary server just says, "Sorry, I can't answer that question." You must convince the primary server to replicate to the secondary server. Fortunately, an easy method exists: push and pull partners.

You can conFigure two WINS servers to be push and pull partners, or you can let them discover each other with a Registry entry. In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WINS\Parameters, add a new entry, UseSelfFndPnrs, of type REG_DWORD. Set its value to 1 to cause the WINS server to periodically multicast to find other WINS servers and automatically replicate. This entry usually works for only WINS servers on the same subnet, because most routers don't pass IP multicasts.

Alternatively, you can introduce the two WINS servers. WINS database replications transfer data from a push partner to a pull partner. For example, suppose you have two machines, Primary and Secondary. Primary gets the latest information because it is the primary WINS server. Secondary backs up Primary's information. Thus, Secondary never has information to offer to Primary. In that case, Primary pushes its database changes to Secondary.

Push Me, Pull You
In a push/pull relationship, data gets from Primary to Secondary in one of two ways. First, Secondary (the pull partner) can request that Primary (the push partner) update Secondary, telling Secondary only what has changed in the database. Alternatively, Primary can say to Secondary, "I've made a lot of changes since the last time I updated you. You should request an update." The pull partner does most of the work initiating the replication updates. All the push partner does is suggest that the pull partner start requesting updates.

Can you tell Secondary to be a pull partner with Primary, without telling Primary to be a push partner for Secondary? You might think so, but if Secondary starts pulling from Primary, Primary will refuse to respond to Secondary's pull request unless you've conFigured Primary as a push partner with Secondary. Thus, you need to make Secondary a pull partner with Primary, and make Primary a push partner with Secondary.

What triggers the WINS database replication process? Recall that either partner can start the conversation. In the case of a push partner, you conFigure it to contact its partner and suggest a replication session based on the number of database changes. You can tell Primary to notify Secondary whenever 50 (or any number greater than 19) changes have occurred to the WINS database on Primary. (You can alternatively trigger replication from the WINS Manager.)

A pull partner, which doesn't know how many changes have occurred, requests updates based on time. You conFigure a pull partner to contact its partner every so many minutes, hours, or days.

Less Is More
I have more to tell you about WINS, but I'm out of space for this month. Before you experiment with extra WINS servers, however, I have three important pieces of advice. First, when it comes to WINS servers, less is more. Microsoft claims that it runs its entire worldwide enterprise with only 15 servers. Don't start setting up WINS servers all over the place. Second, if you set up a WINS server, don't put it on a multihomed PC (a computer with more than one NIC). This configuration has traditionally been a problem for WINS servers. Third, don't set up a test WINS server, register a few names on it, have a production WINS server pull the names from the test server, and then shut off the test WINS server for good. WINS will refuse to delete names that it got from another server, no matter how old and expired the names are, until it can do a final double-check with the WINS server that provided the names originally. If you shut off the test server and never turn it back on, those records never go away.

End of Article



Reader Comments
I just read Mark Minasi’s September 1997 column, “Advanced WINS Features.” The author writes, “Most use names, such as http://www.mmco.com, a Domain Name System (DNS) name.” This statement is incorrect. The name http://www.mmco
.com is a universal resource locator (URL) pointing to the default document on an HTTP (Web) server that has the DNS name www.mmco.com. The difference between DNS names and URLs is crucial.
I love <i>Windows NT Magazine</i>. I try to obtain every new issue, which is difficult here in the Ukraine.<br>
—Svyatoslav Pidgorny<br><br>

<i>You’re right. I typed “www.mmco.com,” and Word 97 automatically converted it to the URL. I’ve become so used to seeing it do the conversion that I don’t notice it any more. Thanks for the sharp eye.<i>
--Mark Minasi</i>

Svyatoslav Pidgorny August 10, 1999


Very good article. Kept it brief, descriptive, and fun to read. Like the last part, a practical tip about not shutting of a 'test' WINS.

Dave June 26, 2004


I've been asked to look into doing a WINS tidy up within my organisation and unfortunately i do have a great number of orphaned records from shut down WINS servers. My newplan was to trash the whole thing and let them regiter a fresh. Do you think there is a problem with doing this internationally?

Anonymous User March 11, 2005 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
No Jobs, No Excitement at Apple's Last Macworld Keynote

Apple CEO Steve Jobs made the right move in skipping out on his company's last appearance at Macworld: In a Tuesday keynote address at the conference, Apple had no interesting new products to sell, opting instead to spend mind-numbing amounts of time on ...

Where is Microsoft NetMeeting in Windows XP?

...

Home Tech? Work Tech? Increasingly, It's Just Tech

Paul discusses how the consumer market is influencing business technology in ways that are unprecedented. ...


Related Articles WINS Proxy Agents

Inside a NetBIOS Name Resolution

NetBIOS Names and WINS

Name Resolvers: WINS vs. DNS

Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing