Thursday 3 April 2014

Enabling quality of service in Lync 2013 deployment

At a customer deployment, we had to implement portbased DSCP QoS. Together with the network chaps, we decided to go with the following options:


Modality Srv ports Client ports DSCP value
Audio 49152-57500 20000-20019 46
Video 57501-65535 20020-20039 32
Appsharing 40803-49151 20040-20059 no marking
Filetransfer - 20060-20079 no marking
SIP signaling 5061 5061 no marking

These values gives every client 20 sessions for each modality, which in this senario is quite sufficient, DSCP values are defined in the networking equipment for different priority queues, these have to be addressed with the local network team.

To implement these settings we had to write 3 Lync PS commands and create some Group Policy Objects for the clients.

By default Application Sharing port range is overlapping the Audio port range, so we had to adjust the Application Sharing port range to be below the Audio port range, 40803-49151.
Get-CsService -ConferencingServer | ForEach-Object {Set-CsConferenceServer -Identity $_.Identity -AppSharingPortStart 40803 -AppSharingPortCount 8348}
Get-CsService -ApplicationServer | ForEach-Object {Set-CsApplicationServer -Identity $_.Identity -AppSharingPortStart 40803 -AppSharingPortCount 8348}

By default client port range overlaps all modalities, so we had to change ports to be able to seperate the different modalities.
Set-CsConferencingConfiguration -ClientMediaPortRangeEnabled $true
Set-CsConferencingConfiguration -ClientAudioPort 20000 -ClientAudioPortRange 20 -ClientVideoPort 20020 -ClientVideoPortRange 20 -ClientAppSharingPort 20040 -ClientAppSharingPortRange 20 -ClientFileTransferPort 20060 -ClientFileTransferPortRange 20

As GPOs are assigned to domain members only, we had to make sure that non-GPO enabled devices (tablet, smartphones, Lync phones etc.) are QoS enabled with DSCP tag 46
Set-CsMediaConfiguration -Identity global -EnableQoS $true
Set-CsUCPhoneConfiguration -VoiceDiffServTag 46

GPO:
Client GPO is asssigned to the OUs where the client computers are placed and applied to all authenticated users.


Server GPO is assigned to the root domain of the servers and applied to a group containing all internal Lync servers.

As the Edge servers are not members of the internal domain, all edge servers have to get the DSCP settings with a Local Group Policy.


No comments:

Post a Comment