Home > Microsoft Exchange Tips > Exchange Admin 101 Tips > Exchange Admin 101: Exchange Server replication and synchronization
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE ADMIN 101 TIPS

Exchange Admin 101: Exchange Server replication and synchronization


Brien M. Posey
11.23.2005
Rating: -4.00- (out of 5)


Exchange Server tips, tutorials and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Whether your organization uses a single Exchange server or dozens, one of the most important underlying processes is replication. In its simplest form, replication is the process of copying data from one server to another server. In this primer, I explain why Exchange replication is so important and how it works.

Exchange 2000 and Exchange 2003 store user configuration data in Active Directory (AD). Prior to Exchange 2000, user configuration data was stored in a dedicated Exchange directory. Each server had its own directory that matched user accounts to mailboxes stored on the server. Exchange 5.5 does use replication, but it tends to focus more on servers than user data.

In Exchange 2000/2003, replication works differently. No longer does each server have its own directory. Instead, all user configuration data is collectively stored in Active Directory.

The basics of Active Directory

The core component of Active Directory is a domain controller. A domain controller is a server that performs authentication for the domain. When a user enters their login name and password, the domain controller decides whether or not the user should be granted access.

The domain controller can perform authentication functions because it contains a copy of the Active Directory database. User accounts are treated as objects within that database. Consequently, all user configuration data is treated as an attribute of the user object. For example, a user's e-mail address is a user object attribute.

A domain will typically have at least two domain controllers, and possibly many more. Each domain controller maintains its own copy of the Active Directory database. If a domain controller fails, another domain controller can still authenticate users that are logging in. If a domain controller has a hard disk failure, multiple domain controllers will also prevent a loss of user accounts (and other types of objects that Active Directory stores), because there is a copy saved on another server.

As you can see, it makes good sense to have multiple domain controllers. When changes are made to Active Directory, replication ensures that those changes are copied to the other domain controllers in your organization.

A password reset scenario

Like an e-mail address, a password is an attribute of a user object. When you reset a password, you basically modify the password attribute on the user's AD account object. The problem is that the change is only applied to a single domain controller.

That domain controller then replicates the changed information to the other domain controllers. So, within a matter of minutes, each domain controller is aware of the password reset.

The same principle holds true for any attribute that gets added or modified. For example, if you were to create an Exchange mailbox for a user, the link to the mailbox would be a stored attribute on the domain controller, which would then be replicated to your other domain controllers.

The multi-master domain controller model

Windows 2000 and Windows 2003 use what is known as a multi-master domain controller model. This means that, when objects are created or deleted or their attributes are modified, the changes can be written to any domain controller in your domain.

In NT 4.0, changes to domain objects had to be written to a special domain controller known as the primary domain controller (PDC). From there, the PDC would replicate the changes to backup domain controllers (BDCs). Only the PDC could write to the backup domain controllers.

Today, Windows Server doesn't natively use a PDC/BDC domain controller model. The multi-master domain controller model has for the most part replaced it. Even so, both Windows 2000 and Windows 2003 offer backward compatibility with NT domains. In such environments, one of the Windows 2000 or Windows 2003 servers acts as a PDC emulator.

Replication partners

During the replication process, two domain controllers replicate with each other at a time. These domain controllers are known as replication partners. You might expect the domain controller that received a change to replicate that change directly to all other domain controllers. But things often don't work that way.

Instead, Windows performs the replication in the most efficient manner possible. Domain controller A might replicate data directly to domain controllers B and C. Or domain controller A might replicate data to domain controller B, which then replicates the data to domain controller C. It just depends on which method Windows deems to be more efficient.

Windows has a built-in mechanism called the Knowledge Consistency Checker that runs on each domain controller. Its job is to establish a replication topology for the domain based on the placement of the domain controllers. Windows then uses this information to decide which domain controllers should be replication partners.

Mixed mode Exchange replication

At the beginning of this article, I mentioned that Exchange 2000 and Exchange 2003 store information in Active Directory, but that Exchange 5.5 uses a dedicated Exchange directory. Even so, it is possible for an Exchange organization to contain Exchange 5.5 and Exchange 2000/2003 servers.

Exchange allows you to create a connection agreement between Exchange 5.5 and Exchange 2000/2003 servers. This connection agreement basically insures that Exchange-related changes written to AD are also written to the Exchange directory, and vice versa.

Aside from this one aspect, replication works the same way in a mixed Exchange environment as it does in a pure Exchange 2000/2003 environment.

About the author: Brien M. Posey, MCSE, is a Microsoft Most Valuable Professional for his work with Windows 2000 Server, Exchange Server and IIS. Brien has served as the CIO for a nationwide chain of hospitals and was once in charge of IT security for Fort Knox. As a freelance technical writer he has written for Microsoft, TechTarget, CNET, ZDNet, MSD2D, Relevant Technologies and other technology companies. You can visit Brien's personal Web site at http://www.brienposey.com.

Do you have comments on this tip? Let us know.

Related information from SearchExchange.com:

  • Tool: REPLMON – Microsoft Active Directory replication monitoring tool
  • Tip: Understanding Exchange Server routing groups
  • Reference Center: Exchange replication and synchronization tips
  • Please let others know how useful this tip is via the rating scale below. Do you have a useful Exchange Server or Microsoft Outlook tip, timesaver or workaround to share? Submit it to our tip contest and you could win a prize.

    Rate this Tip
    To rate tips, you must be a member of SearchExchange.com.
    Register now to start rating these tips. Log in if you are already a member.




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


    RELATED CONTENT
    Exchange Admin 101 Tips
    Manage Exchange 2007 public folders with the Exchange Management Shell
    Exchange Admin 101: Exchange 2003 and Exchange 2007 admin privileges
    Exchange Admin 101: Server roles in Exchange Server 2007
    Exchange Admin 101: An introduction to RAID for Exchange Server
    Exchange Admin 101: An introduction to DSAccess
    Exchange Admin 101: Exchange Server communication ports
    Exchange Admin 101: Meet MOM
    Exchange Admin 101: An introduction to Exchange clustering
    Exchange Admin 101: Configuring OMA and ActiveSync
    Exchange Admin 101: Email attachment blocking

    Microsoft Exchange 2000 Server
    Error 1053: Exchange System Attendant service could not start
    Solve server problems with the Exchange Troubleshooting Assistant tool
    Move mailboxes to Exchange 2007 after Windows upgrade
    Third-party tools that modify NDRs for oversized email
    IP address changes for an Exchange 2000 recovery server
    Exchange Server 2003 tips and tricks -- 7 tips in 7 minutes
    How to enable Exchange Server public folder logging
    Deciphering an 0xc103798a Exchange Server setup error code
    Exchange Server error message: 'A non-delivery report with a status code of 5.4.0 was generated for recipient'
    New Exchange Server installation not receiving SMTP or POP3 email
    Microsoft Exchange 2000 Server Research

    Microsoft Exchange Server 2003
    Recovering an Exchange Server 2003 store on a disaster recovery box
    Creating disk space for an Exchange Server 2003 priv1.edb database
    How to lock down an SMTP relay to prevent spam in Exchange Server 2003
    Tool helps identify inbound Exchange Server email flow issues
    Configure SMTP relay restrictions in Exchange Server 2003 to stop spam
    Microsoft Exchange Server backup method pros and cons
    Why can't I send Exchange email from a BlackBerry 7100i mobile device?
    Tools to bulk modify Active Directory users in Exchange Server 2003
    Tools and methods for disabling IMAP and POP in Exchange Server 2003
    Configure SMTP connection limits in Exchange Server 2003 and SBS
    Microsoft Exchange Server 2003 Research

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    E2K  (SearchExchange.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




    All Rights Reserved, Copyright 2004 - 2008, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts