QoSTCP:為軟體定義網路提供TCP流一致的速率保證
QoSTCP: Provide Consistent Rate Guarantees to TCP Flows in Software Defined Networks
摘要
應用程式對於服務品質的需求,隨著網路的發展日益重要,而軟體定義網路的出現,象徵著更加彈性擴展的網路資源的解放。在OpenFlow 1.3中新增的Meter Table,使支援OpenFlow協議的交換器能夠利用Meter量取流量,並能實現Rate-Limiter的QoS。然而此種基於丟棄封包的方法,TCP會啟動壅塞控制使得窗口週期性的減少再增長,使用TCP的上層服務流量則會週期性的因頻寬振盪而降低服務品質。因此,我們提出QoSTCP,藉由Meter和Rate-Limiting Notification(RLN)來改進TCP的QoS,Meter量取流量並標記封包的限速資訊RLN,而使用QoSTCP協議的傳送收發兩端能查看RLN資訊,及早並輕微調整窗口大小避免封包丟棄。針對最大速率和平均速率的兩種頻寬需求,我們也提供數理分析得知封包標記的時機,而藉由可程式化資料層P4以及現有的相似實作像是trTCM Meter、ECN和DCTCP,使用P4能夠輕易且快速的更改並結合現有實作模擬QoSTCP,而實驗結果也顯示QoSTCP能夠減少頻寬振盪和避免封包丟棄,標記時機與理論值相近,能夠給予一致的頻寬保證,進而確保服務品質。
The Quality of Service (QoS) for application is increasingly important along with the expansion of network development. The appearance of software defined network offers the flexibility and scalability in use of network resources. Such as the meter table updated after Openflow 1.3 provided meters for OpenFlow switches to measure the flow rates. These meters can be used to realize rate limiter QoS. However, this mechanism based on dropping packets while flow rate is over the rate limiter will make TCP congestion window reduced and grew periodically. The quality of service on upper layer using TCP will be suffered regularly because of bandwidth oscillation. Therefore, we propose a QoSTCP protocol using meter and Rate Limiting Notification (RLN) to improve QoS of TCP. The meter in switch measures flow rate and marks RLNs in the packets before sending out. Sender which using QoSTCP get this information to reduce the window size early and slightly to avoid packet drop. We also provide theoretically analysis to know when to marking packet at specific two kinds of bandwidth demands. One is maximum rate and the other is average rate. In order to verify QoSTCP performance, we implement Two Rate Three Color Marker (trTCM) meter to measure the flow rate and RLN using programmable data plane. To simplify our implementation, the existing Explicit Congestion Notification (ECN) and Data Center TCP (DCTCP) are modified to emulate QoSTCP behavior. The experiment results shows that our QoSTCP not only can provide consistent rate guarantee by avoiding packet drop but also match to our theoretical analytical values.