針對會議、應用程式及轉送伺服器設定 Lync Server 2013 中的埠範圍Configuring port ranges in Lync Server 2013 for your Conferencing, Application, and Mediation servers

 

主題上次修改日期: 2015-04-30Topic Last Modified: 2015-04-30

為了實作服務品質 (QoS) ,您應該為在會議、應用程式和中繼伺服器上共用的音訊、視訊和應用程式共用,設定完全相同的連接埠範圍;此外,這些連接埠範圍不得以任何方式重疊。舉個簡單的例子,假設您針對會議伺服器上的視訊使用連接埠 10000 到 10999。這表示您也必須為應用程式和中繼伺服器上的視訊保留連接埠 10000 到 10999。如果沒有,服務品質 (QoS) 將無法如預期般運作。In order to implement Quality of Service, you should configure identical port ranges for audio, video, and application sharing on your Conferencing, Application, and Mediation servers; furthermore, those port ranges must not overlap in any way. To use a simple example, suppose you use ports 10000 through 10999 for video on your Conferencing servers. That means that you must also reserve ports 10000 through 10999 for video on your Application and Mediation servers. If you do not, QoS will not work as expected.

同樣地,假設您為視訊保留連接埠 10000 到 10999,但接著為音訊保留連接埠 10500 到 11999。這樣會造成服務品質的問題,因為連接埠範圍重疊。使用服務品質 (QoS) 時,每一種模式都必須有一組唯一的連接埠:如果您對視訊使用連接埠 10000 到 10999,則必須使用不同的範圍 (例如,對音訊使用 11000 到 11999)。Similarly, suppose you reserve ports 10000 through 10999 for video, but then reserve ports 10500 through 11999 for audio. This can create problems for Quality of Service, because the port ranges overlap. With QoS, each modality must have a unique set of ports: if you use ports 10000 through 10999 for video, then you'll have to use a different range (for example, 11000 through 11999 for audio).

依預設,Microsoft Lync Server 2013 中的音訊和視訊連接埠範圍不會重疊;不過,指派給應用程式共用的埠範圍會與音訊和視訊連接埠範圍重疊。By default, audio and video port ranges do not overlap in Microsoft Lync Server 2013; however, the port ranges assigned to application sharing overlap with both the audio and video port ranges. (,這表示這些範圍都不是唯一的。 ) 您可以從 Lync Server 2013 管理命令介面中執行下列三個命令,以驗證會議、應用程式及轉送伺服器的現有埠範圍。(Which, in turn, means that none of these ranges are unique.) You can verify the existing port ranges for your Conferencing, Application, and Mediation servers by running the following three commands from within the Lync Server 2013 Management Shell:

Get-CsService -ConferencingServer | Select-Object Identity, AudioPortStart, AudioPortCount, VideoPortStart, VideoPortCount, AppSharingPortStart, AppSharingPortCount

Get-CsService -ApplicationServer | Select-Object Identity, AudioPortStart, AudioPortCount

Get-CsService -MediationServer | Select-Object Identity, AudioPortStart, AudioPortCount

警告

如同您在上述命令中所見,每一種連接埠類型 (音訊、視訊和應用程式共用) 都會被指派兩個不同的屬性值:連接埠起點和連接埠計數。連接埠起點指出用於該形式的第一個連接埠;例如,如果音訊連接埠起點等於 50000,表示用於音訊流量的第一個連接埠是連接埠 50000。如果音訊連接埠計數是 2 (這不是有效值,在這裡是作為說明之用) 表示只為音訊配置 2 個連接埠。如果第一個連接埠是連接埠 50000,且總共有兩個連接埠,表示第二個連接埠一定是連接埠 50001 (連接埠範圍必須是連續的)。因此,音訊的連接埠範圍將會是連接埠 50000 到 50001 (含)。As you can see in the preceding commands, each port type – audio, video, and application sharing – is assigned two separate property values: the port start and the port count. The port start indicates the first port used for that modality; for example, if the audio port start is equal to 50000 that means that the first port used for audio traffic is port 50000. If the audio port count is 2 (which is not a valid value, but is used here for illustration purposes) that means that only 2 ports are allocated for audio. If the first port is port 50000 and there are a total of two ports, that means the second port must be port 50001 (port ranges have to be contiguous). As a result, the port range for audio would be ports 50000 through 50001, inclusive.
另請注意,應用程式伺服器和中繼伺服器只支援音訊的服務品質;您不需要在應用程式伺服器或中繼伺服器中變更視訊或應用程式共用連接埠。Note, too that Application server and Mediation server only support QoS for audio; you do not need to change video or application sharing ports in your Application servers or Mediation servers.

如果您執行上述三個命令,您會看到 Lync Server 2013 的預設埠值設定如下:If you run the preceding three commands you'll see that the default port values for Lync Server 2013 are configured like this:

屬性 Property 會議伺服器Conferencing Server 應用程式伺服器Application Server 中繼伺服器Mediation Server

AudioPortStartAudioPortStart

4915249152

4915249152

4915249152

AudioPortCountAudioPortCount

83488348

83488348

83488348

VideoPortStartVideoPortStart

5750157501

--

--

VideoPortCountVideoPortCount

80348034

--

--

ApplicationSharingPortStartApplicationSharingPortStart

4915249152

--

--

ApplicationSharingPortCountApplicationSharingPortCount

1638316383

--

--

如先前所述,設定 QoS 的 Lync 伺服器埠時,應確定在您的會議、應用程式及轉送伺服器上,: 1) 音訊埠設定都相同。而且,2) 埠範圍不會重疊。As noted previously, when configuring Lync Server ports for QoS, you should ensure that: 1) audio port settings are identical across yours Conferencing, Application, and Mediation servers; and, 2) port ranges do not overlap. 如果您仔細查看前面的表格,您會看到埠範圍在三個伺服器類型中皆相同。If you look closely at the preceding table, you will see that the port ranges are identical across the three server types. 例如,在每個伺服器類型上,啟動音訊埠設定為埠49152,而在每個伺服器上為音訊保留的埠總數也相同:8348。For example, the starting audio port is set to port 49152 on each server type, and the total number of ports reserved for audio in each server is also identical: 8348. 不過,埠範圍會重迭:音訊埠會從埠49152開始,但也會為應用程式共用設定埠。However, the port ranges overlap: audio ports start at port 49152, but so do the ports set aside for application sharing. 為了讓服務品質獲得最佳的使用,應將應用程式共用重新設定為使用唯一的埠範圍。In order to make optimal use of Quality of Service, application sharing should be reconfigured to use a unique port range. 例如,您可以將應用程式共用設定為從埠40803開始,並使用8348埠。For example, you could configure application sharing to start at port 40803 and to use 8348 ports. (為何8348埠?(Why 8348 ports? 如果您將這些值一起新增--40803 + 8348--這表示應用程式共用將使用埠40803透過埠49150。If you add those values together -- 40803 + 8348 -- that means that application sharing will use ports 40803 through port 49150. 因為音訊埠不會開始,直到埠49152,您就不會再有任何重疊的埠範圍。 ) Because audio ports do not begin until port 49152, you will no longer have any overlapping port ranges.)

在為應用程式共用選取新的連接埠範圍之後,可以使用 Set-CsConferencingServer Cmdlet 進行變更。您不需要在應用程式伺服器或中繼伺服器上進行這項變更,因為這些伺服器不會處理應用程式共用流量。如果您決定要重新指派用於音效流量的連接埠,只要在這些伺服器上變更連接埠值即可。After you have selected the new port range for application sharing you can make your change by using the Set-CsConferencingServer cmdlet. This change does not need to be made on your Application servers or on your Mediation servers, because these servers do not handle application sharing traffic. You only need to change port values on these servers if you decide to reassign the ports used for audio traffic.

若要在單一會議服務器上修改應用程式共用的埠值,請在 Lync Server 管理命令介面中執行類似下列的命令:To modify the port values for application sharing on a single Conferencing server run a command similar to this from within the Lync Server Management Shell:

Set-CsConferenceServer -Identity ConferencingServer:atl-cs-001.litwareinc.com -AppSharingPortStart 40803 -AppSharingPortCount 8348

如果您要在所有的會議伺服器上進行這些變更,可以改為執行下列命令:If you want to make these changes on all your Conferencing servers you can run this command instead:

Get-CsService -ConferencingServer | ForEach-Object {Set-CsConferenceServer -Identity $_.Identity -AppSharingPortStart 40803 -AppSharingPortCount 8348}

在變更連接埠設定之後,您應該要先停止,然後再重新啟動每一項受到變更影響的服務。After changing port settings you should stop and then restart each service affected by the changes.

您的會議伺服器、應用程式伺服器和中繼伺服器並不是一定要共用完全相同的連接埠範圍;唯一必要的需求是您要在所有的伺服器上預留唯一的連接埠範圍。不過,如果您在所有伺服器上使用同一組連接埠,通常會讓管理工作更為輕鬆。It is not mandatory that your Conferencing servers, Application servers, and Mediation servers share the exact same port range; the only true requirement is that you set aside unique port ranges on all your servers. However, administration will typically be easier if you use the same set of ports on all your servers.