You should scale MDM Gateway Server according to the expected traffic load and protect, or add, a proxy. This section describes the MDM Gateway Server scalability and network characteristics.
There is no known limit on the number of MDM Gateway Servers that you can deploy in your infrastructure. For scalability and failover purposes, we recommend that you use N+1 as the sizing guidance, where N is the number of MDM Gateway Servers required to support the incoming device IPsec sessions, and then increase that number by one for redundancy purposes. This allows any one MDM Gateway Server to be taken offline without impacting the ability to service your users. If an MDM Gateway Server is taken offline or fails, the device does not instantaneously fail to another MDM Gateway Server. However, it should fail to another MDM Gateway Server within seven minutes maximum.
MDM requires a standard load balancer, with the ability to enable affinity, also known as persistence. MDM requires no specific characteristics beyond a standard load balancer.
Note: |
|---|
|
MDM does not support load balancing the MDM Gateway Server by using the Network Load Balancing (NLB) service. NLB does not work properly with MDM, which uses a DNS scheme for load balancing the MDM Gateway Servers.
|
Each MDM Gateway Server must have two interfaces: an external interface to which the device connects, and an internal interface that connects to your company network. Typically, the external interface faces the Internet and the associated DNS name is published in the public DNS servers for your company.
When you use multiple MDM Gateway Servers for redundancy or load balancing, you must associate the external interface for each MDM Gateway Server to the same DNS name. DNS servers associate the IP address of each external interface to the DNS name that is provisioned as MDM Gateway Server in the devices.
The following illustration shows a regionalized global implementation of MDM Gateway Server arrays.
Each MDM Gateway Server can support up to 5,000 concurrent sessions. Use this number when determining the number of MDM Gateway Servers to deploy within the enterprise, and also when you deploy on a regional or geographic basis.
Applying N+1 means that a company that needs to support 8,000 users can do so with two or more MDM Gateway Servers. However, we recommend that you add a third to permit failover. This is addressed in greater detail in the Business Continuity Strategies section of this document.
In the interests of redundancy and higher availability, we recommend that a single point of failure should never knowingly be introduced into an MDM implementation. The VPN client contains load balancing and failover capability. You can install three or more MDM Gateway Servers if the environment and traffic demands merit it.
The following list shows how MDM load balancing and failover works:
-
Typically, you issue static IP addresses to several MDM Gateway Servers, which are then bound to a single fully qualified domain name (FQDN). For example, gateway.contoso.com is bound to IP addresses 74.92.226.130 and 74.92.226.131, which are the IP addresses of servers Gateway1 and Gateway2.
-
You configure each MDM Gateway Server with a pool of virtual IP addresses, which are assigned to the devices to use in the Mobile VPN sessions.
-
The device gets the two IP addresses from DNS and connects to one at random. If the connection fails, the device tries the next IP address and gets the next server.
-
If the client has a previously issued an IP address from the pool and contacts the Gateway Server with that IP address pool, then the client continues to try to use that IP address. If it connects to a different Gateway Server, then it receives a new virtual IP address.
You can use Group Policy to direct managed devices to use the MDM Gateway Server array in the region where they are located, such as Americas, EMEA or APAC.
There are two primary approaches to addressing scalability:
-
Use Group Policy to direct devices to the closest MDM Gateway Server.
-
Use one namespace with content delivery platform to locate the nearest MDM Gateway Server
Using Group Policy to Direct Devices to the Closest MDM Gateway Server
You can use Group Policies to direct mobile devices to the MDM Gateway Server closest to them. Three MDM Gateway Servers are the optimal distribution for the Adventure Works scenario. The following illustration shows this approach. Although not shown, each site is implemented according to our recommendation to implement MDM Gateway Servers in pairs.
To work in an optimal fashion, one FQDN for the MDM Gateway Server is configured at the time of enrollment. All devices are configured with the same FQDN for the MDM Gateway Server at the time of enrollment. You cannot define more than one FQDN in the enrollment server for the MDM Gateway Server. After enrollment, the device connects to the MDM Gateway Server, or one of MDM Gateway Servers in an array of MDM Gateway Servers.
Once connected, Group Policy can configure the FQDN for the MDM Gateway Server so that all future connections use the MDM Gateway Server that supports the region in which the device usually operates. This is determined by the device Active Directory Computer Object being located in an OU against which this particular Group Policy is applied.
To facilitate and automate implementation, all Americas computer objects are placed in an OU located in the Americas Active Directory domain. EMEA computer objects are placed in an OU in the EMEA domain. All other devices default to the APAC SCMDM2008ManagedDevices OU. This process is only automated by default if you have a region-specific MDM Enrollment Server.
Adventure Works uses the following DNS entries for their three MDM Gateway Servers:
-
Mobile-VPN.Adventureworks.com which resolves to the MDM Gateway Server array in Sydney.
-
EMEA-VPN.Adventureworks.com resolves to the MDM Gateway Server array in Prague.
-
Americas-VPN.Adventureworks.com resolves to the MDM Gateway Server array in Puerto Rico.
A user in the Americas domain initially connects to the MDM Gateway Server in the APAC domain to receive the initial Group Policy push. Group Policy configures the device such that future VPN connections go directly to the MDM Gateway Server array in the Americas domain (Americas-VPN). Client sessions also connect more directly to the locations where LOB hosts for the region are located, which minimizes network latency.
A user in the EMEA domain behaves in a similar fashion, but Group Policy configures future VPN connections to use the EMEA (EMEA-VPN) MDM Gateway Server array.
The MDM Gateway Server in the APAC domain (Mobile-VPN) is the default to which devices connect because APAC is the Corporate headquarters and most likely to be the site where the MDM Device Management Server array is located. Group Policy to redirect to another geographic region is applied only to devices located outside the APAC domain.
This implementation builds on how MDM is designed to work, and is the recommended approach.
Using Content Delivery Platform to locate the Nearest MDM Gateway Server
You can use one namespace combined with content delivery platform to locate the nearest MDM Gateway Server. Content delivery platform is the mechanism by which a third party hosting service maintains tables of IP addresses to further extend DNS capabilities. For example, a DNS lookup on a host will not return the IP address of the first <A> record in the DNS being interrogated, but instead returns the IP address of the closest host geographically.
You can implement content delivery platform in a way that extends this concept beyond the geographical and maintains complex connectivity tables. In this case, the IP address returned to the interrogating device is one that connects the fastest rather than the closest physically.
This document provides a high level view of how this complex and involved capability could work if applied to an MDM implementation.
Woodgrove Bank uses content delivery platform for all managed devices. Their enterprise has five primary entry points. They use a third-party content delivery platform to redirect incoming MDM VPN sessions to MobileVPN.woodgrovebank.com to instead go the nearest MDM Gateway Server.
The following illustration shows the five Woodgrove Bank MDM Gateway Server arrays that share the same namespace, MobileVPN.woodgrovebank.com. In reality, a device is only directed to the MDM Gateway Server that is the closest geographically.
If you use the content delivery capability, it must be primarily supported by the third party content delivery platform service provider. We will support the MDM implementation from the MDM Gateway Server onward.
As an example of this method, a newly enrolled device is configured to seek MobileVPN.woodgrovebank.com as its target MDM Gateway Server. Instead of a Group Policy redirecting the device to a closer MDM Gateway Server, the content delivery platform makes this decision for the device.