QoS 原則的運作方式How QoS Policy Works

適用於:Windows Server(以每年次管道)、Windows Server 2016Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016

當開始或向可能受到更新的使用者或電腦群組原則設定的 QoS,下列程序。When starting up or obtaining updated user or computer configuration Group Policy settings for QoS, the following process occurs.

  1. 群組原則引擎 Active directory 擷取電腦的使用者或群組原則設定。The Group Policy engine retrieves the user or computer configuration Group Policy settings from Active Directory.

  2. 群組原則引擎會通知 QoS Client 端延伸 QoS 原則中已變更。The Group Policy engine informs the QoS Client-Side Extension that there were changes in QoS policies.

  3. QoS Client 端延伸模組 QoS 檢查傳送 QoS 原則事件通知。The QoS Client-Side Extension sends a QoS policy event notification to the QoS Inspection Module.

  4. 擷取的使用者或電腦 QoS 原則 QoS 偵測模組,並將它們儲存。The QoS Inspection Module retrieves the user or computer QoS policies and stores them.

當新傳輸層端點 \(TCP 連接或 UDP traffic\)建立,下列程序。When a new Transport Layer endpoint (TCP connection or UDP traffic) is created, the following process occurs.

  1. TCP/IP 堆疊傳輸層元件通知 QoS 偵測模組。The Transport Layer component of the TCP/IP stack informs the QoS Inspection Module.

  2. QoS 偵測模組比較傳輸層端點儲存 QoS 原則的參數。The QoS Inspection Module compares the parameters of the Transport Layer endpoint to the stored QoS policies.

  3. 如果您找到符合 QoS 偵測模組連絡人 Pacer.sys 建立包含 DSCP 值,資料傳輸節流對應 QoS 原則設定的資料結構流程。If a match is found, the QoS Inspection Module contacts Pacer.sys to create a flow, a data structure containing the DSCP value and the traffic throttling settings of the matching QoS policy. 如果有多個 QoS 原則符合傳輸層的端點的參數,則使用最特定 QoS 原則。If there are multiple QoS policies that match the parameters of the Transport Layer endpoint, the most specific QoS policy is used.

  4. Pacer.sys 儲存流程,並傳回對應 QoS 偵測模組 flow 流程數字。Pacer.sys stores the flow and returns a flow number corresponding to the flow to the QoS Inspection Module.

  5. QoS 偵測模組傳回傳輸層流量號碼。The QoS Inspection Module returns the flow number to the Transport Layer.

  6. 傳輸層儲存傳輸層端點流程電話號碼。The Transport Layer stores the flow number with the Transport Layer endpoint.

對應至傳輸層端點封包標示流程數字會傳送,下列程序。When a packet corresponding to a Transport Layer endpoint marked with a flow number is sent, the following process occurs.

  1. 傳輸層內部標記流量號碼封的包。The Transport Layer internally marks the packet with the flow number.

  2. 網路層級查詢 Pacer.sys 對應的封包流程數目 DSCP 值。The Network Layer queries Pacer.sys for the DSCP value corresponding to the flow number of the packet.

  3. Pacer.sys 網路層級會 DSCP 值。Pacer.sys returns the DSCP value to the Network Layer.

  4. 網路層級變更 DSCP 值 Pacer.sys 指定 IPv4 TO 欄位或 IPv6 流量課程欄位,並 IPv4 封包,計算最終 IPv4 標頭檢查值。The Network Layer changes the IPv4 TOS field or IPv6 Traffic Class field to the DSCP value specified by Pacer.sys and, for IPv4 packets, calculates the final IPv4 header checksum.

  5. 網路層級框架層傳遞封包。The Network Layer hands the packet to the Framing Layer.

  6. 因為封包已標示的流程數字,框架層將封包交給 Pacer.sys NDIS 透過 6.x。Because the packet has been marked with a flow number, the Framing Layer hands the packet to Pacer.sys through NDIS 6.x.

  7. Pacer.sys 來判斷封包需要節流,如果是,使用封包流量號碼、排定的傳送封包。Pacer.sys uses the flow number of the packet to determine if the packet needs to be throttled, and if so, schedules the packet for sending.

  8. Pacer.sys 傳遞封包可以立即 \(如果未流量 throttling\)或已排定為 \(如果流量 throttling\)來 NDIS 6.x 傳輸到適當的網路介面卡。Pacer.sys hands the packet either immediately (if there is no traffic throttling) or as scheduled (if there is traffic throttling) to NDIS 6.x for transmission over the appropriate network adapter.

這些處理程序的原則為主 QoS 提供下列優點。These processes of Policy-based QoS provide the following advantages.

  • 檢查以判斷是否 QoS 原則套用流量是每個傳輸層端點,而不是每一封包。The inspection of traffic to determine whether a QoS policy applies is done per-Transport Layer endpoint, rather than per-packet.

  • 也不會效能影響流量不符合 QoS 原則。There is no performance impact for traffic that does not match a QoS policy.

  • 利用 DSCP 型已區分服務或流量節流修改不需要應用程式。Applications do not need to be modified to take advantage of DSCP-based differentiated service or traffic throttling.

  • 交通受 IPsec 可套用 QoS 原則。QoS policies can apply to traffic protected with IPsec.

本指南下一步主題,請查看QoS 原則架構For the next topic in this guide, see QoS Policy Architecture.

本指南中第一次主題,請查看品質服務 (QoS) 原則For the first topic in this guide, see Quality of Service (QoS) Policy.