The logical components of Active Directory include domains, organizational units (OUs), users, groups, and computers, all designed to map to political requirements of a business. The physical components of Active Directory are based on technical issues. The Active Directory uses the concept of sites to map to an organization's physical network. A site is a collection of well connected computers.

     It is important to understand that there is no specified relationship between Active Directory sites and Active Directory domains. A single domain can span multiple sites. A single site may contain multiple domains.

There are two main reasons to use Active Directory sites. These are as follows:


Replication

The basic objects that are used for managing replication include subnets, sites, and site links. Each of these components work together in determining how information is used to replicate data between domain controllers:
When managing replication traffic within Active Directory sites, there are two main areas of synchronization:
Site Links and Site Link Bridges

     The overall topology of intersite replication is based on the use of site links and site link bridges. Site links are logical connections that define a path between two Active Directory sites. Site link bridges are used to connect site links together so that the relationship can be transitive.

     Both site links and site link bridges are used by the Active Directory services to determine how information should be synchronized between domain controllers in remote sites. The Knowledge Consistency Checker (KCC) forms a replication topology based on the site topology created. This service is responsible for determining the best way to replicate information within and between sites.

When creating site links for you network, you need to consider the following factors: Transport, Cost, and Schedule.
     To create site links and site link bridges, you will use the Active Directory Sites and Services tool from the Administrative Tools program group. Expand Sites -> Inter-Site Transports -> IP objects. You can rename the DEFAULTIPSITELINK to something like corpT1. Under the properties for this site link, you can configure the description, cost, replication scheduling, etc... You can also create another site link named something like corpdial. Assign it a higher cost and longer replication interval. The "Change Schedule" button allows you to set times in which replication should and should not occur.

     To create a site link bridge, right-click IP object and select New Site Link Bridge. Name it something like corpbridge. corpT1 and corpdial site links will already be added to the site link bridge.

Bridgehead Servers

     By default, all of the servers in one site will communicate with the servers in another site. You can, however control replication between sites by using bridgehead servers. This method is useful for minimizing replication traffic in larger networks, and allows you to dedicate machines that are better connected to receive replicated data.

     A bridgehead server is used to specify which domain controllers are preferred for transferring replication information between sites. A bridgehead server participates in intersite replication and then uses intrasite replication to replicate directory information within it's site.

     In the AD Sites and Services, right-click a domain controller and select Properties. Select the transport protocol and make the DC a bridgehead server for that transport protocol.

Connection Objects

     In most cases it is good practice to allow the Active Directory's replication mechanisms to automatically schedule and manage replication functions. In some cases you may want to have additional control over replication. You can setup different types of replication schedules through the use of connection objects. These are done with the AD Sites and Services admin tool. Expand a server object, right-click the NTDS Settings object, and select New AD Connection. You can configure many things on the connection, such as: protocol, schedule, and the DCs that will participate in the replication. Additionally, once created, you can right-click the connection and choose Replicate Now.



Active Directory Sites and Services Administration Tool

     The administration tool AD Sites and Services is used to create sites and subnets in Active Directory. The first site is named "Default-First-Site-Name" by default. You can rename this to whatever you need.

     Under the sites container in AD Sites and Services, you can expand a site and add servers to the site. This will be the Domain Controllers in the site which will relate to replication. You may also specify the preferred bridgehead server here.

The Active Directory Sites and Services Administration Tool can be used to configure the following:


2 Connection objects are needed between two domain controllers to replicate
in both directions. A single connection object only allows replication in
one direction.
	DomainA -> DomainB - NTDS Settings object of DomainB
	DomainB -> DomainA - NTDS Settings object of DomainA

Site Links manage replication between sites, Connection objects manage
replication between domain controllers.

3 sites xyz, xy connected with a cost of 3, yz connected with a cost of 4.
x and z are connected through y. The cost of xz is the sum of the links
used by the bridge, 7.

Site Links:
	Can connect more than 2 sites
	Default COST = 100
	Default Schedule = ALL TIMES
	Default Replication Interval = 3 hours

When create a Site Link Bridge, first turn off the "Bridge all site links"
feature.

To display replication partners for dc2.domain.com:
	repadmin.exe /showreps dc2.domain.com

To display highest Update Sequence Number (USN) on dc2.domain.com:
	repadmin.exe /showvector dc=domain,dc=com dc2.domain.com

To display connection object for dc2.domain.com:
	repadmin.exe /showconn dc2.domain.com

KCC Logging:
repadmin /kcc
	adjusts HKLM\ System\ CurrentControlSet\ Services\ NTDS\ Diagnostics
	9 internal processing
	Knowledge Consistency Checker > 3
	After changing, wait 15 minutes.

Printer Locations:
	Must have 1 site and at least 2 subnets to enable.
	Naming Scheme: \usa\seattle\building1\floor2\
	               max name chars: 32, max total: 260
	Enable Location Tracking: Computer Config\ Adm Templates\ Printers\
	                          "Pre-populate printer search location"
	To name Location: AD Sites & Services\ Subnet\ properties\ location
	                  tab