KCC Event ID 1311: Not Enough Physical Connectivity to Create a Spanning Tree

Fix NTDS KCC event ID 1311 (not enough physical connectivity to create a spanning tree): check site link bridging, orphaned sites with repadmin /showism, preferred bridgeheads, replication failures and disjoint site links.

Home › Guides › KCC event 1311

Last updated 19 November 2026

Quick answer

Event ID 1311 (source NTDS KCC, Directory Service log) means the Knowledge Consistency Checker couldn't build a replication path for a directory partition (domain, schema, configuration, application partition or global catalog) between domain controllers or sites. Microsoft groups the causes into two buckets: improper logical configuration (what is in Active Directory Sites and Services doesn't match the real network) and infrastructure failure (a WAN link, an offline DC or a replication error). Work through Microsoft's methods in this order:

  1. Find out whether 1311 is logged on every ISTG in the forest or only in some sites.
  2. If Bridge all site links is on, make sure the network is fully routed.
  3. Make sure every site is in a site link (repadmin /showism on the ISTG).
  4. Find and remove preferred bridgeheads.
  5. Fix replication failures (repadmin /failcache, dcdiag /test:intersite /e /q).
  6. Check for overloaded source (hub) DCs.
  7. Check for disjoint site links.
  8. If the KCC is in connection keeping mode, delete the broken connections and let it rebuild them.

After each change, wait two times the longest replication interval in the forest before deciding whether it worked.

What the event looks like

The KB 307593 form of the event:

Event Type: Error
Event Source: NTDS KCC
Event Category: Knowledge Consistency Checker
Event ID: 1311
Description:
The Directory Service consistency checker has determined that either (a) there is not enough physical connectivity published via the Active Directory Sites and Services Manager to create a spanning tree connecting all the sites containing the Partition CN=<partition name>,DC=<root domain of forest>,DC=com, or (b) replication cannot be performed with one or more critical servers in order for changes to propagate across all sites (most often because of the servers being unreachable).

Microsoft's event 1865 article shows a shorter 1311 text, logged on ISTG domain controllers next to warning 1865:

The Knowledge Consistency Checker (KCC) has detected problems with the following directory partition.
Directory partition:
CN=Configuration,DC=<domain>,DC=com

If you also see 1865 ("The Knowledge Consistency Checker (KCC) was unable to form a complete spanning tree network topology."), the list of unreachable sites in that event tells you where to look; see KCC event 1865.

Causes Microsoft lists

Infrastructure failures in Microsoft's list: a WAN link fails, a DC that hosts a needed naming context is offline, replication fails for one or more naming contexts, or the inbound partner has disabled outbound replication.

Step 1: Site-specific or forest-wide?

Check whether 1311 is logged on all inter-site topology generator (ISTG) DCs or only some. To find the ISTGs, run an LDAP search in Ldp.exe:

Base DN:    CN=Sites,CN=Configuration,DC=RootDomainName,DC=Com
Filter:     (cn=NTDS Site Settings)
Scope:      Subtree
Attributes: interSiteTopologyGenerator

The interSiteTopologyGenerator value of each result names that site's ISTG. Then read the Directory Service log on enough of them. From PowerShell, for example:

Get-WinEvent -ComputerName <ISTG DC> -FilterHashtable @{LogName='Directory Service'; Id=1311,1865}

Step 2: Site link bridging on a network that isn't fully routed

Site link bridging is on by default, and Microsoft's best practice is to leave it on. When it's on, every site must have a fully routed network connection to every other site. If the KCC builds a connection between two sites that can't actually reach each other, 1311 can be logged.

Bridging is enabled when Bridge all site links is selected on the IP (and SMTP) transport in Active Directory Sites and Services, which shows up as the Options attribute being NULL or 0 on:

CN=IP,CN=Inter-Site Transports,CN=Sites,CN=Configuration,DC=<root domain of forest>
CN=SMTP,CN=Inter-Site Transports,CN=Sites,CN=Configuration,DC=<root domain of forest>

If the network isn't fully routed, either make it fully routed, or turn off bridging and create the site links and site link bridges you need. Microsoft's replication concepts page puts it the same way: for a fully routed network you don't need site link bridges unless you want to control replication flow; if the network isn't fully routed, create bridges "to avoid impossible replication attempts". A site link bridge doesn't provide connectivity itself; it only tells the KCC that a transitive path exists. The same page notes that SMTP replication won't be supported in future versions of AD DS, so don't create site links in the SMTP container.

Step 3: Find sites that aren't in a site link (repadmin /showism)

Every site must be in a site link. A site left out (for example after its site link was deleted) is orphaned, and the KCC ignores it when building the topology. repadmin /showism shows the site connectivity matrix per transport. Unlike most repadmin commands, it can't run remotely: run it at the console of the DC you want to examine (usually the ISTG).

Each entry is Cost:Replication interval:Options (interval in minutes; ignore Options for 1311). Each site has one 0:0:0 entry for itself. Positive values such as 100:15:0 mean the connection is good. -1:0:0 means it isn't working, because the transport isn't used (all SMTP entries are -1:0:0 if SMTP replication isn't configured), the site has no DCs (an uncovered site, which always shows -1:0:0), or the site isn't in a site link. Microsoft's example after the TX<->WA site link was deleted, with bridging on:

==== TRANSPORT CN=IP,CN=Inter-Site Transports,CN=Sites,CN=Configuration,DC=corp,DC=com CONNECTIVITY INFORMATION FOR 3 SITES: ====
0,    1,    2
( 0) CN=US-NC,CN=Sites,CN=Configuration,DC=corp,DC=com 0:0:0, 100:15:0, -1:0:0
( 1) CN=US-TX,CN=Sites,CN=Configuration,DC=corp,DC=com 100:15:0, 0:0:0, -1:0:0
( 2) CN=US-WA,CN=Sites,CN=Configuration,DC=corp,DC=com -1:0:0, -1:0:0, 0:0:0

US-WA has nothing but -1:0:0 plus its own 0:0:0, and it has DCs, so it is orphaned and must be added to a site link. Record orphaned sites but not uncovered ones. With bridging off, -1:0:0 entries mean less; list the sites and site links on paper and map each site to a link by hand.

Step 4: Find and remove preferred bridgeheads

Microsoft strongly recommends not defining preferred bridgehead servers: picking correct bridgeheads is hard in multi-domain forests, and DCs fail over well when a KCC-chosen bridgehead goes offline. To find them, search with Ldp.exe (DN path cn=sites,cn=configuration,dc=<root domain of forest>, ObjectClass server, attribute bridgeheadTransportList), or export the Sites container and search the file:

ldifde -f SITEDUMP.LDF -d "CN=Sites,CN=Configuration,DC=contoso,DC=com"
FINDSTR /i "bridgeheadTransportList" SITEDUMP.LDF

(KB 307593 prints the LDIFDE line without -f and -d; the line above uses the switches from the Ldifde reference: -f names the export file and -d sets the search base.) Every server object with bridgeheadTransportList populated is a preferred bridgehead. To remove it in Active Directory Sites and Services: open the DC's site, right-click the DC, select Properties, and on the General tab remove IP/SMTP from The server is a preferred bridgehead server for the following transports, then select OK.

Step 5: Fix replication failures

Fix replication on online DCs quickly, especially DCs that hold a one-of-a-kind naming context (for example the only DC of a domain). Microsoft's tools for this:

repadmin /failcache
repadmin /showreps
dcdiag /test:intersite /e /q
dcdiag /test:connectivity /e /q

For more detail, raise the NTDS diagnostic logging levels on ISTGs and bridgeheads as Microsoft suggests: Knowledge Consistency Checker 3, Replication Events 3, Internal Processing 1, and set them back when you're done.

A DC offline for less than the tombstone lifetime can be brought back and forced to replicate. A DC offline (or not replicating inbound) for longer than the tombstone lifetime must not be brought back; remove it from the forest. KB 307593 still says the default is 60 days; Microsoft's lingering objects article says the default is 180 days for all currently supported versions and depends on the OS of the first DC in the forest, so read your actual value (see replication error 8614).

Step 6: Overloaded hub DCs

A DC with too many direct replication partners, or an overly aggressive schedule, can build a backlog where some partners never get changes. In repadmin /showreps output those partners show the at never status. Resize the hardware and rework the site links or the site link and connection schedules to reduce the load.

Step 7: Disjoint site links

Site links are disjoint when the topology is split into parts that no site link joins. Microsoft's example: Sitelink_ABC contains sites A, B and C, Sitelink_DEF contains D, E and F, and nothing links the two groups. The fix is a new site link joining at least one site from each group (for example A and D). Microsoft calls this the hardest misconfiguration to troubleshoot and says to look for it only after ruling out the other causes, by drawing the site topology to find orphaned groups of sites.

Step 8: Connection keeping mode

If the KCC built another path around a failed site-to-site connection but keeps retrying the failed one every 15 minutes, delete all the broken connections and let the KCC rebuild them. Then wait two times the longest replication schedule in the forest.

Terms used above

Related tools and guides

Look up 1311, 1865, 1308 and 1925 in the Windows Event ID Lookup, copy the repadmin /showism, repadmin /failcache and dcdiag /test:intersite lines from the PowerShell Cheat Sheet, pull site DNs and -1:0:0 entries out of /showism output with the Regex Tester, check that each site's subnets match the real network with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify an unknown device answering on a bridgehead's subnet from its MAC address with the MAC Vendor Lookup. Related guides: KCC event 1865, replication error 1722, replication error 5 (access is denied), replication error 8524 and replication error 8614. While the KCC is still settling a topology change, forced replication can fail with replication error 8452.

Every AD replication error code with its cause and fix: common Active Directory replication errors.

FAQ

What does event ID 1311 mean?

NTDS KCC event 1311 means the Knowledge Consistency Checker could not build a spanning tree of replication connections for a directory partition. Either the site and site link configuration in Active Directory Sites and Services does not match the physical network, or replication with one or more critical servers is failing.

How do I find which sites are orphaned?

Run repadmin /showism at the console of the ISTG domain controller; it does not run remotely. A site whose row shows only -1:0:0 entries plus its own 0:0:0 is orphaned unless it has no domain controllers (an uncovered site). Add orphaned sites to an appropriate site link.

Should I turn off Bridge all site links to fix 1311?

Only if the network is not fully routed. Site link bridging is on by default and Microsoft recommends keeping it on. On a network that is not fully routed, either make it fully routed or turn bridging off and create the site links and site link bridges you need.

Should I define preferred bridgehead servers?

Microsoft strongly recommends against it. Preferred bridgeheads that are offline or do not host the needed naming context cause 1311. Find them by searching the Sites container for the bridgeheadTransportList attribute and remove them in Active Directory Sites and Services.

How long should I wait after fixing the cause?

Wait two times the longest replication interval or schedule in the forest before checking whether 1311 is still logged. If it continues, move on to the next method: replication failures, overloaded hub DCs, disjoint site links and connection keeping mode.

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.