Skip to main content

Measuring TCP Round-Trip Time in the Data Plane

Author(s): Chen, Xiaoqi; Kim, Hyojoon; Aman, Javed M; Chang, Willie; Lee, Mack; et al

Download
To refer to this page use: http://arks.princeton.edu/ark:/88435/pr11v98
Abstract: We present a data-plane algorithm that passively and continuously monitors the Round-Trip Time of TCP traffic, by matching data packets with their associated acknowledgments and calculating a time difference. Compared with traditional measurement systems based on active probing or measuring only SYN/ACK packets, our algorithm passively produces many samples for long-running connections. This enables network operators to observe abnormal RTT increases, which signal possible security or performance issues in the network, in real-time. To satisfy the stringent memory size and access constraints of programmable switches, our algorithm uses a multi-stage hash table data structure to maintain records for in-flight packets; the records not receiving their acknowledgments are lazily expired and overwritten. We implement our algorithm on a Barefoot Tofino programmable switch. Evaluation using a real-world traffic trace from a 10 Gbps campus network link demonstrates that our solution can accurately capture 99% of available RTT samples, using only 4 MB of data-plane memory.
Publication Date: 2020
Citation: Chen, Xiaoqi, Hyojoon Kim, Javed M. Aman, Willie Chang, Mack Lee, and Jennifer Rexford. "Measuring TCP Round-Trip Time in the Data Plane." In Proceedings of the Workshop on Secure Programmable Network Infrastructure (2020): pp. 35-41. doi:10.1145/3405669.3405823
DOI: 10.1145/3405669.3405823
Pages: 35 - 41
Type of Material: Conference Article
Journal/Proceeding Title: Proceedings of the Workshop on Secure Programmable Network Infrastructure
Version: Author's manuscript



Items in OAR@Princeton are protected by copyright, with all rights reserved, unless otherwise indicated.