The Directory Server's replication mechanism relies on the server's location information to reduce protocol traffic on WAN links.
During protocol negotiation, the replication server with the highest WAN Gateway priority (priority 1 indicates the highest priority) automatically assumes the role as the WAN Gateway Server for that particular location. The Gateway Server’s main function is to route update messages from other non-gateway servers at the same location to remote WAN Gateway servers at other locations. At the destination point, the replication server with the WAN Gateway role receives update messages from other WAN gateway servers at other locations and pushes them out to all replication servers at the current location.
This setup ensures that all WAN communication flows through the WAN Gateway Servers.