skip to main content
10.1145/3600061.3600084acmotherconferencesArticle/Chapter ViewAbstractPublication PagescommConference Proceedingsconference-collections
research-article

EasyQuantile: Efficient Quantile Tracking in the Data Plane

Published:05 September 2023Publication History

ABSTRACT

Quantile tracking is an essential component of network measurement, where the tracked quantiles of the key performance metrics allow operators to better understand network performance. Given the high network speed and huge volume of traffic, the line-rate packet-processing performance and network visibility of programmable switches make it a trend to track quantiles in the programmable data plane. However, due to the rigorous resource constraints of programmable switches, quantile tracking is required to be both memory and computation efficient to be deployed in the data plane. In this paper, we present EasyQuantile, an efficient quantile tracking approach that has small constant memory usage and involves only hardware-friendly computations. EasyQuantile adopts an adjustable incremental update approach and calculates a pre-specified quantile with high accuracy entirely in the data plane. We implement EasyQuantile on Intel Tofino switches with small resource usage. Trace-driven experiments show that EasyQuantile achieves higher accuracy and lower complexities compared with state-of-the-art approaches.

References

  1. Pankaj K Agarwal, Graham Cormode, Zengfeng Huang, Jeff M Phillips, Zhewei Wei, and Ke Yi. 2013. Mergeable summaries. ACM Trans. Database Syst. 38, 4 (2013), 1–28.Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. V Altukhov and E Chemeritskiy. 2014. On real-time delay monitoring in software-defined networks. In Proc. of IEEE MoNeTeC. IEEE, 1–6.Google ScholarGoogle ScholarCross RefCross Ref
  3. Aboubacar Amiri and Baba Thiam. 2014. A smoothing stochastic algorithm for quantile estimation. Statistics & Probability Letters 93 (2014), 116–125.Google ScholarGoogle ScholarCross RefCross Ref
  4. Ran Ben Basat, Sivaramakrishnan Ramanathan, Yuliang Li, Gianni Antichi, Minian Yu, and Michael Mitzenmacher. 2020. PINT: Probabilistic in-band network telemetry. In Proc. of ACM SIGCOMM. 662–680.Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Pat Bosshart, Dan Daly, Glen Gibb, Martin Izzard, Nick McKeown, Jennifer Rexford, Cole Schlesinger, Dan Talayco, Amin Vahdat, George Varghese, 2014. P4: Programming protocol-independent packet processors. SIGCOMM Comput. Commun. Rev. 44, 3 (2014), 87–95.Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. CAIDA. 2014. IPv4 Routed /24 DNS Names Dataset.https://www.caida.org/data/active/ipv4_dnsnames_dataset.xml.Google ScholarGoogle Scholar
  7. CAIDA. 2019. The CAIDA UCSD Anonymized Internet Traces.https://www.caida.org/catalog/datasets/passive_dataset.Google ScholarGoogle Scholar
  8. Jin Cao, Li Erran Li, Aiyou Chen, and Tian Bu. 2010. Tracking quantiles of network data streams with dynamic operations. In Proc. of IEEE INFOCOM. IEEE, 1–5.Google ScholarGoogle ScholarCross RefCross Ref
  9. Fei Chen, Diane Lambert, and José C Pinheiro. 2000. Incremental quantile estimation for massive tracking. In Proc. of ACM SIGKDD. 516–522.Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Peiqing Chen, Yuhan Wu, Tong Yang, Junchen Jiang, and Zaoxing Liu. 2021. Precise error estimation for sketch-based flow measurement. In Proc. of ACM IMC. 113–121.Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Xiaoqi Chen, Shir Landau Feibish, Yaron Koral, Jennifer Rexford, Ori Rottenstreich, Steven A Monetti, and Tzuu-Yi Wang. 2019. Fine-grained queue measurement in the data plane. In Proc. of ACM CoNEXT. 15–29.Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Xiang Chen, Qun Huang, Dong Zhang, Haifeng Zhou, and Chunming Wu. 2020. Approsync: approximate state synchronization for programmable networks. In Proc. of IEEE ICNP. IEEE, 1–12.Google ScholarGoogle ScholarCross RefCross Ref
  13. Ulrich Fiedler and Bernhard Plattner. 2003. Using latency quantiles to engineer qos guarantees for web services. In Proc. of ACM IWQoS. Springer, 345–362.Google ScholarGoogle Scholar
  14. Michael Greenwald and Sanjeev Khanna. 2001. Space-efficient online computation of quantile summaries. ACM SIGMOD Record 30, 2, 58–66.Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Hugo Lewi Hammer, Anis Yazidi, and Håvard Rue. 2019. A new quantile tracking algorithm using a generalized exponentially weighted average of observations. Appl. Intell. 49 (2019), 1406–1420.Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Zaobo He, Zhipeng Cai, Siyao Cheng, and Xiaoming Wang. 2015. Approximate aggregation for tracking quantiles and range countings in wireless sensor networks. Theoretical Computer Science 607 (2015), 381–390.Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Nikita Ivkin, Edo Liberty, Kevin Lang, Zohar Karnin, and Vladimir Braverman. 2022. Streaming quantiles algorithms with small space and update time. Sensors 22, 24 (2022), 9612.Google ScholarGoogle ScholarCross RefCross Ref
  18. Nikita Ivkin, Zhuolong Yu, Vladimir Braverman, and Xin Jin. 2019. Qpipe: Quantiles sketch fully in the data plane. In Proc. of ACM CoNEXT. 285–291.Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. Raj Jain and Imrich Chlamtac. 1985. The P2 algorithm for dynamic calculation of quantiles and histograms without storing observations. Commun. ACM 28, 10 (1985), 1076–1085.Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Zohar Karnin, Kevin Lang, and Edo Liberty. 2016. Optimal quantile approximation in streams. In Proc. of IEEE FOCS. IEEE, 71–78.Google ScholarGoogle ScholarCross RefCross Ref
  21. Yuliang Li, Rui Miao, Hongqiang Harry Liu, Yan Zhuang, Fei Feng, Lingbo Tang, Zheng Cao, Ming Zhang, Frank Kelly, Mohammad Alizadeh, 2019. HPCC: High precision congestion control. In Proc. of ACM SIGCOMM. 44–58.Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. Lingxia Liao, Victor CM Leung, and Min Chen. 2018. An efficient and accurate link latency monitoring method for low-latency software-defined networks. IEEE Trans. Instrum. Meas. 68, 2 (2018), 377–391.Google ScholarGoogle ScholarCross RefCross Ref
  23. Qiang Ma, Shanmugavelayutham Muthukrishnan, and Mark Sandler. 2013. Frugal streaming for estimating quantiles. Space-Efficient Data Structures, Streams, and Algorithms (2013), 77–96.Google ScholarGoogle Scholar
  24. Gurmeet Singh Manku, Sridhar Rajagopalan, and Bruce G Lindsay. 1999. Random sampling techniques for space efficient online computation of order statistics of large datasets. ACM SIGMOD Record 28, 2, 251–262.Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. Charles Masson, Jee E Rim, and Homin K Lee. 2019. DDSketch: A fast and fully-mergeable quantile sketch with relative-error guarantees. arXiv preprint arXiv:1908.10693 (2019).Google ScholarGoogle Scholar
  26. Byung-Hoon Park, George Ostrouchov, Nagiza F Samatova, and Al Geist. 2004. Reservoir-based random sampling with replacement from data stream. In SIAM. SIAM, 492–496.Google ScholarGoogle Scholar
  27. Sandhya Rathee, Shubham Tiwari, K Haribabu, and Ashutosh Bhatia. 2022. qMon: A method to monitor queueing delay in OpenFlow networks. Journal of Communications and Networks 24, 4 (2022), 463–474.Google ScholarGoogle ScholarCross RefCross Ref
  28. Herbert Robbins and Sutton Monro. 1951. A stochastic approximation method. The Annals of Mathematical Statistics (1951), 400–407.Google ScholarGoogle Scholar
  29. Rana Shahout, Roy Friedman, and Ran Ben Basat. 2022. SQUAD: Combining sketching and sampling is better than either for per-item quantile estimation. arXiv preprint arXiv:2201.01958 (2022).Google ScholarGoogle Scholar
  30. Siyuan Sheng, Qun Huang, and Patrick PC Lee. 2021. DeltaINT: Toward general in-band network telemetry with extremely low bandwidth overhead. In Proc. of IEEE ICNP. IEEE, 1–11.Google ScholarGoogle ScholarCross RefCross Ref
  31. Debanshu Sinha, K Haribabu, and Sundar Balasubramaniam. 2015. Real-time monitoring of network latency in software defined networks. In Proc. of IEEE ANTS. IEEE, 1–3.Google ScholarGoogle ScholarCross RefCross Ref
  32. Luke Tierney. 1983. A space-efficient recursive procedure for estimating a quantile of an unknown distribution. SIAM J. Sci. Statist. Comput. 4, 4 (1983), 706–711.Google ScholarGoogle ScholarDigital LibraryDigital Library
  33. Nitya Tiwari and Prem C Pandey. 2019. A technique with low memory and computational requirements for dynamic tracking of quantiles. J. Signal Process. Syst. 91 (2019), 411–422.Google ScholarGoogle ScholarDigital LibraryDigital Library
  34. [34] Tofino2. 2023. https://www.intel.com.Google ScholarGoogle Scholar
  35. Milan Vojnovic, J-Y Le Boudec, and Catherine Boutremans. 2000. Global fairness of additive-increase and multiplicative-decrease with heterogeneous round-trip times. In Proc. of IEEE INFOCOM, Vol. 3. IEEE, 1303–1312.Google ScholarGoogle ScholarCross RefCross Ref
  36. Weitao Wang, Xinyu Crystal Wu, Praveen Tammana, Ang Chen, and TS Eugene Ng. 2022. Closed-loop network performance monitoring and diagnosis with { SpiderMon}. In Proc. of USENIX NSDI. USENIX Association, 267–285.Google ScholarGoogle Scholar
  37. Anis Yazidi and Hugo Hammer. 2017. Multiplicative update methods for incremental quantile estimation. IEEE Trans. Cybern. 49, 3 (2017), 746–756.Google ScholarGoogle ScholarCross RefCross Ref
  38. Xinchang Zhang, Yinglong Wang, Jianwei Zhang, Lu Wang, and Yanling Zhao. 2019. RINGLM: A link-level packet loss monitoring solution for software-defined networks. IEEE J. Sel. Areas Commun. 37, 8 (2019), 1703–1720.Google ScholarGoogle ScholarDigital LibraryDigital Library
  39. Hao Zheng, Chen Tian, Tong Yang, Huiping Lin, Chang Liu, Zhaochen Zhang, Wanchun Dou, and Guihai Chen. 2022. FlyMon: enabling on-the-fly task reconfiguration for network measurement. In Proc. of ACM SIGCOMM. 486–502.Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. EasyQuantile: Efficient Quantile Tracking in the Data Plane

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Other conferences
        APNET '23: Proceedings of the 7th Asia-Pacific Workshop on Networking
        June 2023
        229 pages
        ISBN:9798400707827
        DOI:10.1145/3600061

        Copyright © 2023 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 5 September 2023

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article
        • Research
        • Refereed limited
      • Article Metrics

        • Downloads (Last 12 months)66
        • Downloads (Last 6 weeks)13

        Other Metrics

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      HTML Format

      View this article in HTML Format .

      View HTML Format