Every directory has two geographies: the logical one of domains and organizational units, drawn for administration, and the physical one of offices, links, and latencies, drawn by the network. Active Directory keeps the two apart on purpose, and the object that joins them is the site. Get the site layer right and logons land on nearby controllers, replication flows on schedule and on the cheap links, and the directory behaves like infrastructure; get it wrong and every branch office discovers the directory over a thin line at nine in the morning. This article walks the site layer from concept to configuration, with the mistakes that show up a year later.
The Site Concept and the Network It Describes
A site is a declaration of physical proximity: a group of machines connected by links fast and reliable enough that traffic between them is treated as free. The definition is deliberately not about geography, though it usually rhymes with it; a campus split by a microwave hop is two sites if the hop is slow, and two buildings on a fiber ring are one site if the ring never complains. The administrator draws the boundary by answering one question: would an administrator run replication between these machines continuously and without a second thought? Yes, one site; no, draw the line and name each side.
Sites hold domain controllers, and their membership is physical rather than logical: a controller belongs to exactly one site regardless of which domains it serves. This one fact drives the whole behavior of the layer, because every decision the system makes about proximity, from logon to replication to service discovery, is a question about site membership. The creation of sites does not change the logical design at all; domains, organizational units, and permissions are untouched, which makes the site layer the rare infrastructure change that is almost purely beneficial and almost purely physical in its consequences.
Subnets Are the Map That Tells Clients Where They Are
A site, by itself, is a name on a map; the map's coordinates are the subnets. Every IP subnet declared in the directory is assigned to a site, and when a machine boots, the directory answers its implicit question, where the machine is, by matching the machine's address against the table and handing back the site. The domain controllers use the same answer to decide who replicates with whom, and the clients use it to decide whom to ask. The whole proximity system rests on that one lookup, performed with the humility of a paper map: the directory believes the table, not the traceroute.
The practical consequences of the table are total, which is why its maintenance is a discipline rather than a formality. A new office whose subnets were never declared leaves its clients orphans, and orphans are matched to arbitrary sites, usually the first the directory offers, which is frequently the head office across the slow link the new office was built to avoid. The symptom pattern is unmistakable in hindsight: a branch that logs in slowly every morning, whose traffic seems to ignore the shiny new domain controller sitting in the local rack, and whose directory experience improves noticeably when the subnet record is finally added. The fix costs a minute; the diagnosis, without this article, costs a consultant.
The Way Replication Flows Within and Between Sites
Replication obeys the site boundary with two distinct personalities. Inside a site, domain controllers notify each other of changes almost immediately, the change notification arriving within seconds and the full replication following, because the link was declared free and the directory believes free links should be kept in step urgently. Between sites, the behavior flips: replication runs on a schedule, over the site links, compressed to spare the bandwidth, with a configurable interval measured in the repetitions of the schedule rather than in seconds. The directory does not sync between sites; it correspond, politely, at the agreed hours.
The machinery that designs the flows is the knowledge consistency checker, the component that runs on every controller and builds the replication topology from the site map. Within a site it weaves a ring so every controller receives changes twice over, from two directions, providing redundancy against a single failure. Between sites it designates bridgehead controllers, the machines that concentrate inter-site traffic so a site's ten controllers do not each open a slow conversation with a remote peer; the bridgeheads replicate the whole story, and the local ring distributes it. The administrator rarely touches the topology itself, which is the quiet triumph of the design: draw the sites, declare the links, and the plumbing designs itself, with the option to intervene when special cases demand it.
Site Links Carry Cost Schedule and Interval
The site link is the object that connects two sites in the directory's eyes, and it carries the three numbers that describe a relationship: cost, schedule, and interval. Cost is the preference metric when several routes exist, the number the topology arithmetic compares when deciding how changes travel between sites that are not directly linked; lower wins, and a link through the data center typically costs less than a link through the branch-office line, whatever the geography suggests. Schedule says when replication may run, and the interval says how often within the schedule the link checks for changes, with the default being every hundred and eighty minutes and the range descending to fifteen for the impatient.
The link's third behavior, transitivity, is the one that surprises. Links bridge by default, meaning two sites connected only through a third still replicate, along the cheapest path the bridged links compose, which is usually the desired behavior and occasionally an expensive accident. Disabling bridging for special topologies, declaring preferred bridgeheads, and staggering schedules so the nightly replication wave moves across the enterprise in an orderly procession are all supported refinements, and all of them are refinements: the defaults produce a working topology for most organizations, and the refinements exist for the topologies that outgrow defaults.
The Client Behavior That Follows Site Membership
Clients inherit the geography in ways that decide the daily experience of the directory. The logon process asks for a domain controller in the client's own site first, and only falls outward when the local answer fails, which means the site table decides whether a branch office authenticates across the street or across the country. Group policy arrives from a local controller, file services that are site-aware steer toward local copies, distributed file system referrals are ordered by site, and even some application services built on the directory perform the same site query the logon uses. The site layer is less a feature than a gravity field, and everything in the directory rolls downhill toward the nearest site.
The client-side lookup deserves a moment of appreciation because it is pure infrastructure discipline. The machine discovers its site from its address, asks the directory for controllers in that site, and caches the answer, revisiting the question when the network changes. A laptop that travels between offices re-evaluates on connect and lands in the local site of wherever it woke up, which is why roaming users experience site-aware behavior without any configuration on the device. The same machinery is what breaks audibly when the subnet table is wrong, and the same machinery that makes the multi-office design feel effortless when the table is right. The design principle underneath is worth naming: the directory treats the network as truth and the site table as its atlas, and every service that inherits the geography inherits both its accuracy and its errors, which is why the table belongs to the same change discipline as DNS records, reviewed with the network, not after it.
A Worked Setup for a Two Office Company
A concrete small design makes the layer tangible. The company has a head office and a branch, connected by a business line that is reliable but not free. In the directory, two sites are created, one per office; the subnets of each office are declared and assigned to their site; and the controllers, after installation, are moved into their respective sites, a step that is easy to forget because installation does not ask. The default site link connecting the two sites is renamed for hygiene, its cost left alone since there is only one path, its schedule left to run always, and its interval tightened to sixty minutes so the branch's changes reach the head office within the hour rather than within three.
From that moment the directory behaves geographically. The branch logs on locally, changes replicate hourly in both directions, a second controller in either office joins the local ring automatically, and the failure of the line leaves both offices authenticating and working against their local copy until the line returns. The entire configuration is a dozen objects in one console, and the design conversation that precedes it, which office gets a controller, what the line can carry, who is authoritative during a partition, is longer than the configuration. That proportion, a long conversation and a short implementation, is the signature of the site layer done right.
The site topology is readable from any domain member with the right module: