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 


December 2001

AD Replication and Up-to-Date Vectors


RSS
Subscribe to Windows IT Pro | See More Active Directory (AD) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Learn how AD prevents endless replication loops

In "Tracking AD Replication," November 2001, I explained how Active Directory (AD) uses update sequence numbers (USNs) to track changes to each domain controller's (DC's) copy of AD's contents. Each server remembers the most recent USN that the server obtained from its replication partners (i.e., the high watermark) and uses that USN to control replication. For example, DC1 might say to DC2, "Tell me what updates you've made since your USN 10,000."

When an administrator creates a new user account on DC1, that update increments DC1's USN, causing DC2 to request the AD changes associated with that update. But when DC2 incorporates that update and increments its own USN, DC2's new USN leads DC1 to request an update from DC2—including the new user account, which DC1 already knows about. Recording that update would lead to an endless cycle of rerecording the same piece of information.

To prevent changes from cycling indefinitely, AD remembers not only the local USN that generates an update but also the globally unique identifier (GUID) of the DC that originated the update. Thus, AD can differentiate between an update that an originating DC generates and one that a DC merely passes to another DC. Every DC remembers not only the latest USN received from each replication partner but also the USN associated with the most recent update originating from every other DC in the domain. The table that contains the latest originating USNs is called the up-to-date vector.

DCs use the up-to-date vector to prevent infinite update loops. Suppose that the last originating update that DC2 received from DC1 was USN 9871 and the last update that DC2 originated was USN 1500. DC2 says to DC1, "Tell me about the updates you've received since you last updated me, but skip any that originated with DC1 and had a USN of 9871 or less and any that originated with DC2 and had a USN of 1500 or less." Suppose that DC1 had one new update, with a USN of 10,001. When DC1 sends that update to DC2, DC2 saves the information as USN 1553 but also remembers that the originating USN was 10,001 and that the update originated on DC1. DC2 increases its up-to-date vector entry for DC1 to 10,001. (DC1 also modifies its up-to-date vector to show that DC1's up-to-date vector is 10,001.)

When DC1 next asks DC2 for updates, DC1 says "I know about your updates through your USN 1552, and I've seen every update that originated with DC1 through USN 10,001 and every update that originated with DC2 through USN 1500. Do you have any newer updates?" DC2 sees that it has a USN greater than 1552, but that the originating DC was DC1 and the originating DC's USN was 10,001. Because DC1's up-to-date vector includes all DC1's originating entries through USN 10,001, DC1 knows about DC2's USN 1553 and doesn't record a new update.

You can use the Repadmin /showvector command to view a DC's up-to-date vector. To dump the vector for dc1.acme.com in a domain called acme.com, you'd type

repadmin /showvector
  dc=acme,dc=com
  dc1.acme.com

Figure 1 shows some sample output. Note that the last line shows a GUID rather than a DC name: After you decommission a DC, its entries still appear in other DCs' up-to-date vectors, but the entries appear under the former DC's GUID rather than a DC name.

End of Article



Reader Comments
Great!

WintelRob April 02, 2007 (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
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

New Microsoft/Yahoo! Deal? No

On Sunday, the Times of London reported that Microsoft had renewed talks with failing Internet giant Yahoo! and would manage its search engine for 10 years, while Yahoo! would retain control of its email, messaging, and content services. This report ...

How can I stop and start services from the command line?

...


Active Directory (AD) Whitepapers Sustainable Compliance: How to reconnect compliance, security and business goals

Managing Unix/Linux with Microsoft System Center Operations Manager 2007 Cross Platform Extensions Beta

Addressing the Insider Threat with NetIQ Security and Administration Solutions

Related Events Concrete Ways to Make Sure Your SharePoint Deployment Doesn't Blow Up

Virtualization 101

PCI Requirements for Windows and Active Directory: Straight from a Certified Auditor

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Windows 2003: Active Directory Administration Essentials

Related Active Directory (AD) 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 © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing