[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-134459-en":3,"doc-seo-134459-105":30,"detail-sidebar-cat-0-en-105":84},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},134459,1099523882367,"Jordan Avery","https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc",8,"Research & Report","SketchLib - Enabling Efficient Sketch-based Monitoring on Programmable Switches","SketchLib enables accurate network measurement with low resource footprints by bringing sketch-based monitoring to programmable switch hardware. The work analyzes hardware bottlenecks in existing sketch implementations, including hash-call cost, limited per-packet memory accesses, pipeline-stage constraints, and heavy-flowkey tracking overheads. It then introduces correct-by-construction optimization techniques and packages them as an easy-to-use library. Evaluations with state-of-the-art sketches show SketchLib cuts switch hardware resource usage by up to 96% while preserving measurement fidelity.","SketchLib: Enabling Efficient Sketch-based Monitoring  \non Programmable Switches  \nHun Namkung, Carnegie Mellon University; Zaoxing Liu, Boston University; Daehyeok Kim, Carnegie Mellon University and Microsoft; Vyas Sekar and Peter Steenkiste, Carnegie Mellon University  \n[https://www.usenix.org/conference/nsdi22/presentation/namkung](https://www.usenix.org/conference/nsdi22/presentation/namkung)  \nThis paper is included in the Proceedings of the 19th USENIX Symposium on Networked Systems Design and Implementation .  \nApril 4–6, 2022 • Renton, WA, USA  \n978-1-939133-27-4  \nOpen access to the Proceedings of the 19th USENIX Symposium on Networked Systems Design and Implementation is sponsored by  \nSketchLib: Enabling Efﬁcient Sketch-based Monitoring on  \nProgrammable Switches  \nHun Namkung?, Zaoxing Liu†, Daehyeok Kim?§, Vyas Sekar? , Peter Steenkiste?? Carnegie Mellon University, †Boston University, § Microsoft  \nAbstract  \nSketching algorithms or sketches enable accurate network measurement results with low resource footprints. While emerging programmable switches are an attractive target to get these beneﬁts, current implementations of sketches are either inefﬁcient and/or infeasible on hardware. Our contributions in the paper are: (1) systematically analyzing the resource bottlenecks of existing sketch implementations in hardware; (2) identifying practical and correct-by-construction optimization techniques to tackle the identiﬁed bottlenecks; and (3) designing an easy-to-use library called SketchLib to help developers efﬁciently implement their sketch algorithms in switch hardware to beneﬁt from these resource optimizations. Our evaluation on state-of-the-art sketches demonstrates that SketchLib reduces the hardware resource footprint up to 96% without impacting ﬁdelity.  \n1 Introduction  \nThe ability to monitor network trafﬁc is necessary for various network management tasks such as trafﬁc engineering, anomaly detection, load balancing, and resource provisioning [10, 13, 27, 29, 43, 45, 54] . In this respect, recent developments in programmable switches and attendant languages [9, 14] make it possible to support richer ﬁne-grained and real-time monitoring capabilities.  \nWith this network programmability, sketch-based monitoring has emerged as a promising alternative to traditional sampling-based techniques [19, 49] . At a high-level, sketch algorithms consist of updating multiple counter arrays with a series of independent hash function calls and counter updates. Sketch-based approaches have been developed to support abroad spectrum of measurement tasks with provable resourceaccuracy trade-offs, including heavy-hitter detection or quantile estimation (e.g., [17, 21]), general estimation capabilities (e.g., UnivMon [41]), and more expressive multidimensional analytics (e.g., R-HHH [12]) .  \nWhile prior efforts have demonstrated the feasibility of expressing sketches using these language APIs [32, 41, 46, 53], implementing sketches efﬁciently in hardware remains an  \nopen challenge. For example, off-the-shelf sketch implementations often cannot run with the desired accuracy levels due to insufﬁcient hardware resources (see §3) . Indeed, some proposed sketches (e.g., [41]) are infeasible as implemented, or even if they are feasible, consume signiﬁcant resources.  \nEven if more hardware resources may become available, so too do operators’ demands of in-switch applications, and the resources consumed by sketches will be unavailable for other switch functions. Thus, it is essential to explore if, and how, we can efﬁciently realize sketch-based telemetry on programmable switches. This is the central question that this paper tackles. Speciﬁcally, we focus on programmable hardware switches based on the Reconﬁgurable Match-Action Tables (RMT) paradigm [1] .  \nWe identify and analyze four key resource bottlenecks for realizing sketches on RMT switch hardware:  \n• Hash calls: Sketches make a number of counter updates based on indepe","cbCaiuKZOw9KHeKc","https://ap.wps.com/l/cbCaiuKZOw9KHeKc","pdf",2764861,1,18,"English","en",105,"# Abstract\n# Introduction\n## Sketch-based monitoring overview\n## Hardware challenges for sketch implementation\n## Resource bottlenecks on RMT switches","[{\"question\":\"How does SketchLib achieve resource reductions without losing fidelity?\",\"answer\":\"The paper combines multiple correct-by-construction optimizations and packages them into a library. Experiments report up to 96% reduction in hardware resource footprint while keeping measurement fidelity.\"}]","SketchLib - Enabling Efficient Sketch-based Monitoring on Programmable Switches | PDF",1787262793,45,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":79,"head_meta":81,"extra_data":83,"updated_unix":28},"sketchlib-enabling-efficient-sketch-based-monitoring-on-programmable-switches","",{"@graph":36,"@context":78},[37,54,69],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/research-report/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/sketchlib-enabling-efficient-sketch-based-monitoring-on-programmable-switches/134459/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":63,"encodingFormat":61,"isAccessibleForFree":64,"interactionStatistic":65},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-22","2026-08-20",true,{"@type":66,"interactionType":67,"userInteractionCount":20},"InteractionCounter",{"@type":68},"ViewAction",{"@type":70,"mainEntity":71},"FAQPage",[72],{"name":73,"@type":74,"acceptedAnswer":75},"How does SketchLib achieve resource reductions without losing fidelity?","Question",{"text":76,"@type":77},"The paper combines multiple correct-by-construction optimizations and packages them into a library. Experiments report up to 96% reduction in hardware resource footprint while keeping measurement fidelity.","Answer","https://schema.org",{"og:url":52,"og:type":80,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":82,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":85},[86,90,94,98,103,108,113,116,121,124,128],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":87,"show_sort_weight":88,"slug":89},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":91,"show_sort_weight":92,"slug":93},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":95,"show_sort_weight":96,"slug":97},"Exam",70,"exam",{"id":99,"doc_module":4,"doc_module_name":46,"category_name":100,"show_sort_weight":101,"slug":102},5,"Comic",60,"comic",{"id":104,"doc_module":4,"doc_module_name":46,"category_name":105,"show_sort_weight":106,"slug":107},6,"Technology",50,"technology",{"id":109,"doc_module":4,"doc_module_name":46,"category_name":110,"show_sort_weight":111,"slug":112},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":114,"slug":115},30,"research-report",{"id":117,"doc_module":4,"doc_module_name":46,"category_name":118,"show_sort_weight":119,"slug":120},9,"Religion & Spirituality",20,"religion-spirituality",{"id":119,"doc_module":4,"doc_module_name":46,"category_name":122,"show_sort_weight":119,"slug":123},"World Cup","world-cup",{"id":125,"doc_module":4,"doc_module_name":46,"category_name":126,"show_sort_weight":125,"slug":127},10,"Lifestyle","lifestyle",{"id":129,"doc_module":4,"doc_module_name":46,"category_name":130,"show_sort_weight":99,"slug":131},19,"General","general"]