HTML Access 可以在遠端工作階段期間監控網路品質,並在偵測到由於高延遲而導致網路不穩定時顯示通知訊息。網路延遲是以來回行程時間 (RTT) 度量來衡量。

您可以對 HTML Access 進行設定,以控制這些通知訊息的顯示。您也可以設定 HTML Access 用於確定不穩定網路的臨界值參數。

設定網路通知訊息的顯示

若要開啟或關閉通知訊息,請按一下桌面平台和應用程式選取器視窗右上角的設定工具列按鈕,然後切換停用網路狀態顯示選項。

自訂 HTML Access 判定網路品質的方式

為判定網路連線的品質,HTML Access 會將指定時間間隔內偵測到的 RTT 值與一對低臨界值和高臨界值進行比較,並計算從 0% 到 100% 的品質分數。如果分數低於特定百分比,則會將網路視為高延遲且不穩定。

HTML Access 使用以下規則來計算網路品質分數:

Definitions:
rtt = detected RTT value
lowBound = low threshold value
highBound = high threshold value
score = network quality score

If rtt >= highBound, then score = 0

If rtt <= lowBound, then score = 100

If lowBound < rtt < highBound, then score = 100 * ((rtt - lowBound) / (highBound - lowBound))

然後,HTML Access 會使用以下規則判定網路的穩定性:

Definitions:
score = network quality score
thresholdGood = minimum score required to indicate good network stability
thresholdPoor = high limit of score range indicating poor network stability

If score >= thresholdGood, the network is considered good and no notification is displayed.

If thresholdPoor <= score < thresholdGood, the network is considered OK and no notification is displayed.

If score < thresholdPoor, the network is considered poor and a notification is displayed.

您可以使用下列步驟自訂 HTML Access 用於計算網路品質分數並確定網路穩定性的臨界值。

  1. 以具有管理員權限的身分登入 Horizon Connection Server 主機。
  2. 導覽至 Program Files/VMware/VMware View/Server/broker/webapps/portal/WEB-INF/classes 目錄。
  3. 在文字編輯器中開啟 portal-version.properties 檔案。
  4. 在組態檔中指定下列內容。
    內容 有效值 說明
    enableNetworkIndicator truefalse

    指定要啟用網路通知功能 (true) 或是停用該功能 (false)。

    將值設定為 false 可從設定視窗中移除停用網路狀態顯示選項。

    預設值為 true

    networkState.TcpRttMSLow 正整數

    用於計算網路品質分數的低 RTT 臨界值。此值必須小於 networkState.TcpRttMSHigh 值。此值對應於前文所述規則中的「lowBound」變數。

    預設值為 2

    networkState.TcpRttMSHigh 正整數

    用於計算網路品質分數的高 RTT 臨界值。此值必須大於 networkState.TcpRttMSLow 值。此值對應於前文所述規則中的「highBound」變數。

    預設值為 400

    networkState.TcpThresholdGood 0 到 100 的百分比

    指示網路穩定性良好的最低分數。此值必須大於 networkState.TcpThresholdPoor 值。此值對應於前文所述規則中的「thresholdGood」變數。

    預設值為 85

    networkState.TcpThresholdPoor 0 到 100 的百分比

    指示網路穩定性不佳的分數範圍上限。此值必須小於 networkState.TcpThresholdGood 值。此值對應於前述規則中的「thresholdPor」變數。

    預設值為 40

    networkState.RttCheckPeriodMs 大於 2000 的整數

    監控網路 RTT 的時間間隔 (以毫秒為單位)。

    預設值為 15000