In Remote Desktop Services, what do the Connection Broker and RD Web Access each do for a collection served by two session hosts?
answer
- one name, several hosts behind it
- places new sessions
- remembers who is where
- portal that publishes the feed
basics
~20 sThe Connection Broker places each new connection on a session host in the farm, can balance the load, and returns a user whose session disconnected to the host still holding it. RD Web Access publishes the desktops and apps.
solid answer
~40 sA collection groups session hosts that deliver the same desktops or apps. The **RD Connection Broker** manages incoming connections to that farm: for a new connection it can balance load across the collection's servers, and when a user disconnects it reconnects them to the correct host and the interrupted session, which still exists in the farm. **RD Web Access** is the web portal, served over HTTPS on 443 by the web server role, that lists what a user may launch and starts it in the native client. Once a broker is enabled, DNS round robin to the session hosts is not supported. For availability, run a second broker on a shared database server behind a load balancer or DNS round robin.
go deeper
Know that the broker spreads new connections over the session hosts and sends a returning user back to their session.
Explain placement, reconnection to the existing session, why DNS round robin to hosts is unsupported with a broker, and what RD Web Access publishes.
Describe broker high availability: a second broker, a shared database server, a cluster name, and matching certificates.
Weigh the extra database and load-balancer dependencies of a broker cluster against the outage you are insuring against.
## The farm and the names in it Remote Desktop Services organizes session hosts into **collections**: one or more RD Session Host servers that deliver the same desktops or RemoteApp programs. When one collection has several hosts, the question becomes which host a given user lands on. That is the job of the **RD Connection Broker**, which manages incoming remote desktop connections to the session host farm, for both full-desktop collections and RemoteApp collections. ## What the broker does 1. **Places new connections.** It can balance the load across the collection's servers when making new connections. 2. **Returns users to their session.** If a session disconnects, the broker reconnects the user to the correct session host and to their interrupted session, which still exists in the farm. 3. **Replaces DNS round robin at the hosts.** The role page states that with a broker enabled, DNS round robin to the session hosts is not supported for balancing them. Plain DNS has no idea where a user's disconnected session lives; the broker does. Reconnecting to a session across a farm is the broker's job. What a disconnect does to the session on a single host, and what survives a logoff, is covered with sessions and channels. ## What RD Web Access does **RD Web Access** is the portal through which users see and start their desktops and applications. It publishes to Windows and non-Windows devices, can publish selectively to users or groups, and launches the chosen resource through the device's native Remote Desktop client. It needs the web server role, and the page asks for a public address that allows inbound TCP 443 where users come from the internet. For small deployments it can share a machine with RD Gateway. ## Making the broker itself highly available A single broker is a single point of failure for placement. The guidance describes a cluster: - a second broker server; - a **shared database server**, either a cloud SQL database or SQL Server (the roles page also names an AlwaysOn availability group), that holds the broker's data; - a **DNS name for the cluster**, backed by a load balancer or by DNS round robin to the brokers' addresses. The worked example in the guide configures a probe and a rule on TCP 3389 for the load balancer; treat that as the example's choice, not as a universal requirement. ## Certificates and trust Matching digital certificates must be installed on the broker and the clients for single sign-on and application publishing. A self-generated certificate suits development and testing; released services need a certificate from a trusted certification authority, and the certificate name must be the broker's internal fully qualified domain name. ## Failure modes worth naming - **The shared database is down.** Both brokers read the same data, so the database, not the second broker, is the part to make resilient. - **A certificate name does not match.** The broker certificate's name must be the broker's internal fully qualified domain name, and the web portal's must match the name users type; a mismatch breaks single sign-on and publishing. - **A resource policy omits a host.** Users are refused only when placement lands on the unlisted host, which reads as an intermittent fault. - **A record points users straight at hosts.** A DNS round-robin name for the hosts bypasses the one component that knows where sessions live. ## Questions to ask in a design review - Which collections exist, and which host sets belong to each? - Who may reach each collection, and does the gateway's resource policy cover every host in it? - Where does the broker's database live, and what happens to placement if it is unavailable? - Do the broker's, the web portal's and the gateway's certificates carry the names clients actually use? ## How it fits with the gateway Remote staff reach published resources through the gateway, which then relays to the host the user was directed to. One consequence is a design rule: the gateway's resource policy must authorize every host the broker may choose in that collection, or users will be refused only when placement lands on an unlisted host. ## What to check on your own estate - Whether a DNS round-robin record points users straight at session hosts in a farm that also runs a broker. - Whether the broker's database is on a single instance with no plan for its failure. - Whether the broker and web access certificates are publicly trusted or distributed to clients, and whether the names match.
- Why not balance session hosts with a DNS round-robin name instead of using a broker?Because the guidance does not support it once a broker is enabled, and because DNS cannot know which host holds a user's disconnected session. A returning user could be sent to a host with no session. The broker holds that knowledge and sends the user back to the right one.
- What failure does a second broker with a shared database protect against, and what does it leave unprotected?It protects against the loss of one broker server: the other can keep placing and reconnecting users because the data is shared. It does not protect the database itself, which is now the single point to make resilient, nor the session hosts or the gateway.
- Says the broker is a firewall or VPN appliance that authenticates internet users.
- Thinks DNS round robin across the session hosts is the recommended way to balance a farm.
- Believes a disconnected user always gets a fresh session on the least-loaded host.
- Confuses RD Web Access with the gateway and expects it to relay RDP traffic.
- Treats a second broker as needing no shared database.