What is MRAS?
Media Relay Authentication Server
MRAS generates the credentials needed for external media by Lync users outside the local network. Before an external user can initiate any type of A\V traffic the Edge server will need to obtain credentials that will allow it to relay A\V internally on behalf of the external client.

MRAS is part 1 of the ICE process (Part 2 is the Candidate process, read about that here)
The following illustration depicts the MRAS process:

The MRAS Process is as follows:

  1. SIP Register
  2. MRAS Request
  3. MRAS Response
  4. MRAS Response (to user)

To have a closer look at these we will use snooper

In Snooper (client side logs) grab traces of a login and filter with “MRAS”
You should find 3 messages.

1. SIP Register

The First message (SIP 200 OK) contains all user settings, profile, URls etc etc (all in-band)

NB If the MRAS message is missing then there is no Edge Server defined in the Topology

2. MRAS Request

The Second MRAS message (SERVICE) shows the service request from the Lync Client to the Front End for credentials to chat to the Lync Edge.

This message shows sip uri, duration that credentials are valid and location (intranetl\external)

You will always see this second MRAS message once the first is seen as its simply the client responding.

3. MRAS Response

The Third MRAS message (SIP 200 OK) is a response from the Lync Front End providing credentials, location, and the HOST NAME of AV EDGE and the ports to use for media.


External clients need to get the External FQDN of the Edge Server here and internal clients need to get the Internal FQDN of the Edge Server – This is the server name that the client needs to connect to for establishing media.

If the 3rd message is present it reveals that the FE is able to communicate with the Edge on port 5062 (MRAS)

If there is an MRAS error in message 3 (eg Timeout) then there is a connectivity issue between Edge and FE (eg FW, DNS).

Make sure the client can Telnet to the FQDN shown in message 3 as this is the A\V path

For Reference