Controlling/limiting the port ranges for traffic

So far, we've discussed how to control the number of sessions allowed between sites (CAC) and how to mark packets based on ports and applications. However, we have not yet discussed how to tell the servers and clients which port ranges it should use for the different types of media. Without doing this, Lync will use the default ports, and our marking and QoS scheme might fail.

Note

Values given here are examples only! Adjustments might be necessary for larger or smaller deployments. The number of available ports can influence the call flows available in a system. Also, remember that the port number assignments must never overlap (how will QoS tagging know the difference between services?).

Getting ready

There are a lot of components in Lync, and we need to address all of those services. Luckily, all the settings are stored in the topology, and we can apply all of the settings through PowerShell from the same management station.

We will configure conferencing services, mediation services, application services, and edge services.

How to do it…

Proceed with the following steps for controlling/limiting the port ranges for traffic:

  1. Log on to a server with Lync administrative tools, and launch PowerShell in the elevated administrative mode.

    Note

    In most deployments with collocated services, the application pool, mediation pool, and conferencing pool will have the same pool name.

  2. Enable QoS system-wide by typing the following command:
    Set-CsMediaConfiguration -EnableQoS $True
    
  3. Enable QoS for the conferencing server. For each conferencing pool in the system, type the following command:
    Set-CsConferenceServer -Identity "myconfpool.mydomain.com"`
     –AudioPortStart "50000" -AudioPortCount "2000"`
     -VideoPortStart "52000" -VideoPortCount "2000"`
     -AppSharingPortStart "54000" –AppSharingPortCount "2000"
    
  4. Enable QoS for the mediation server. For each mediation pool in the system, type the following command:
    Set-CsMediationServer -Identity "mymedpool.mydomain.com"`
     –AudioPortStart "50000" -AudioPortCount "2000"
    

    Tip

    Don't configure AudioPortCount, which is too low. A single audio call will need at least 7 calls.

  5. Enable QoS for the application servers. For each application pool in the system, type the following command:
    Set-CsApplicationServer -Identity "myapppool.mydomain.com"`
     –AudioPortStart "50000" -AudioPortCount "2000"`
     -VideoPortStart "52000" -VideoPortCount "2000"`
     -AppSharingPortStart "54000" –AppSharingPortCount "2000"
    
  6. Enable QoS for the Edge Servers. For each Edge pool in the system, type the following command:
    Set-CsEdgeServer -Identity "myedgepool.mydomain.com"`
     -MediaCommunicationPortStart "50000"`
     -MediaCommunicationPortCount "10000"
    
  7. Enable QoS for the clients. Type the following command:
    Set-CsConferencingConfiguration`
     -ClientMediaPortRangeEnabled $True`
     -ClientAudioPort "50000" -ClientAudioPortRange "2000"`
     -ClientVideoPort "52000" -ClientVideoPortRange "2000"`
     -ClientAppSharingPort "54000"`
     -ClientAppSharingPortRange "2000" `
     -ClientFileTransferPort "56000"*
     -ClientFileTransferPortRange "2000"
    
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.162.37