SketchLib: Enabling Efficient Sketch-based Monitoring on Programmable Switches
Talkat 19th USENIX Symposium on Networked Systems Design and Implementation (NSDI '22) · 2022-04-04..04-06·
summary
SketchLib is a P4-targeted library that implements six correct-by-construction optimizations after identifying four hardware bottlenecks (hash units, SLUs, pipeline stages, heavy-key tracking). It consolidates counters and slices long hashes to cut hash calls by ~3x or more, reports up to 96% reduction in hardware footprint (example: 91% fewer hash calls, 90% fewer SLU uses, 65% fewer stages for one multi-level sketch), ships 15 sketches implemented, and preserves accuracy (median error change <1%); code is open source.
AI-written summary · about
chapters (16)
- 0:00Intro
- 1:09Let's try to run sketches on programmable switches
- 2:09Sketch is inefficient or infeasible on programmable switch
- 3:00Our work: Sketchlib bridges the gap!
- 3:47Outline
- 4:32Sketches have four common steps
- 5:18Sketch imposes burden on hardware resources
- 7:01Hash calls and SALUs are resource bottlenecks
- 7:58Overview of optimizations and SketchLib API
- 8:2401. Consolidate short hash calls
- 9:4405. Remove unnecessary SALU allocation
- 11:01End-to-end code example
- 11:54Applicability of SketchLib
- 12:27Sketchlib reduces resource bottlenecks
- 13:30Sketch Lib preserves accuracy
- 14:25Conclusion
related talks
17mSketchovsky: Enabling Ensembles of Sketches on Programmable Switches
15mSketchPipe: Toward Accurate Sketch-based Network Measurement on Multi-Pipeline...
14mOctoSketch: Enabling Real-Time, Continuous Network Monitoring over Multiple Cores
15mAutoSketch: Automatic Sketch-Oriented Compiler for Query-driven Network Telemetry
22mSoftware Defined Traffic Measurement with OpenSketch
15mSynthesizing Runtime Programmable Switch Updates
12mToward Nearly-Zero-Error Sketching via Compressive Sensing
12mLightGuardian: A Full-Visibility, Lightweight, In-band Telemetry System Using Sketchlets
