Sketchovsky: Enabling Sketch Ensembles on Programmable Switches

Slide Note
Embed
Share

Network measurement plays a crucial role in management tasks such as port scan detection and resource provisioning. The concept of sketch ensembles on programmable switches shows promise in addressing key challenges related to control and data plane operations. This approach offers a way to efficiently handle diverse measurement tasks with high accuracy, while minimizing resource footprints. Previous work and limitations in per-sketch optimization are also discussed, highlighting the need for more effective strategies. Sketchovsky introduces cross-sketch optimizations to enhance the performance of sketch ensembles, aiming to generate optimized code and reduce hardware resource usage significantly.


Uploaded on Oct 06, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Sketchovsky: Enabling Ensembles of Sketches on Programmable Switches Hun Namkung* Zaoxing Liu Daehyeok Kim Vyas Sekar* Peter Steenkiste* (Now at) *

  2. Network measurement is essential for management Management Tasks Port Scan Detection Resource Provisioning Syn Flood Detection Diverse Top K flows on 5-tuple Unique # of flows on srcIP Entropy on dstPort Measurement Tasks 2

  3. Ensemble of sketches on programmable switch is promising Control Plane Top K flows on 5-tuple Unique # of flows on srcIP Entropy on dstPort Sketch Ensemble Data Plane Sketch Instance N Packets Sketch Sketch Sketching Algorithms (Sketches) Packet Sampling Approach (Netflow) Instance 2 Instance 1 Fixed-Function Network Switch Programmable Switch 3

  4. Prior work cannot handle ensemble of sketches Three requirements for running the sketch ensemble 1. Generality: any combination of measurement tasks 2. Low Resource: footprint on switch 3. High Accuracy: for measurement tasks Prior Work Generality Low Resource High Accuracy More expressive sketches (UnivMon, CocoSketch) Per-sketch optimization (SketchLib) Dynamic resource allocation (P4All, FlyMon) 4

  5. Per-sketch optimization has fundamental limitation for ensemble SketchLib (NSDI 22) HW resources Can we run the sketch ensemblewith sub-linear resources while preserving high accuracy? 5

  6. Sketchovsky Overview Sketch Ensemble inst1.p4 inst1.p4 inst1.p4 inst1.p4 sket1.p4 sket1.p4 INPUT An optimized sketch code Sketchovsky Apply opt X to inst Y Strategy Strategy Finder Auto-code Composition Cross-Sketch Optimizations opt.p4 opt.p4 Propose five cross-sketch optimizations as building blocks Find best strategy on how to apply building blocks Automatically generate optimized code up to 18 sketch instances by reducing up to 45% HW resource 6

  7. Outline Motivation Five cross-sketch optimizations Strategy finder Evaluation 7

  8. Sketches have three common workflow steps Heavy Flowkey Storage Counter Update Hash Packets Computation flow key = srcIP +1 3 1 Pkt header SRAM Storage 5 +1 2 192.168.0.1 +1 2 3 SALU SRAM Hash Unit Programmable Switch 8

  9. Five cross-sketch optimizations We can reuse hardware resources across sketch instances! Sketch3 Sketch2 Sketch1 Heavy Flowkey Storage Heavy Flowkey Storage Heavy Flowkey Storage Counter Update Counter Update Counter Update Hash Hash Hash Computation Sketch Ensemble Computation Computation O1. reuse hash results as-is O2. reuse hash results with XOR O5. reuse heavy flowkey storage O3. reuse counter arrays O4. reuse a SALU for two counter arrays 9

  10. Hash1: Reusing hash results reduces hash units Applicable condition Sketch 1 Sketch 2 Sketch 3 Flowkey ????? ????? ????? 31????? 11????? 11????? 21????? Hash Units 12????? 12????? 22????? ??????????? 13????? 13????? Hash results can be reusedacrosssketch instances! 6 hash units 3 hash units 10

  11. Hash2: XOR-based hash reconstruction Applicable condition Sketch 1 Sketch 2 Sketch 3 { } = { } Flowkey ????? ????? ?????,????? 3?????,????? 1????? 2????? Hash Units ??????????? 1????? 2????? Hash results can be reconstruted using XOR operation 3 hash units 2 hash units 11

  12. Ctr1: Reusing counter arrays can reduce memory Accuracy is improved! Control Plane Measurement Task 1 8 SRAMs Measurement Task 2 13 SRAMs Measurement Task 3 ?1 ?3 ?2 ?3 ?3 +1 +1 +1 +1 ?3 ?2 +1 +1 +1 +1 Data Plane ?1 ?1 ?2 +1 +1 +1 ?1 +1 +1 Sketch 1,2,3 Sketch 2 Sketch 1 Sketch 3 SALU ( ??): 9 4 SRAM ( ????) : 25 13 12

  13. Outline Motivation Five cross-sketch optimizations Strategy finder Evaluation 13

  14. Problem formulation for strategy finder For all possible strategy ?, we want to solve ? 5 Optimizations X = ???? ??_????????(?) ?.?. ????? ? = ???? ??? 1??? 2 ???1 ???2 ??? ?1 ?2 ?3 ?4 ?5 ?6 ?7 Sketch Ensemble Challenge: large search space! 14

  15. Search space decomposition across workflow steps ? Large search space ???? ???? ???? X = ???? ??_????????(?) ?.?. ????? ? = ???? ??? 1??? 2 ???1 ???2 ??? ?1 ?2 ?3 ?4 ?5 ?6 ?7 Sketch Ensemble Equivalent Solve above for???? , ????, ???? separately and merge: ???? ,???? Small search space ,???? = ? 15

  16. Outline Motivation Five cross-sketch optimizations Strategy finder Evaluation 16

  17. Sketchovsky makes previously infeasible ensembles become feasible Higher is better 17

  18. Sketchovsky reduces hardware resources Number of sketch instances = 12, we generate 300 ensembles Resource Use (RU) % : ????????? ???????? Error bar : 10% ~ 90% percentile ???? ???????? Lower is better 18

  19. Sketchovsky preserves or improves accuracy 10 sketching algorithms LC Linear counting HLL HyperLogLog Lower is better PCSA PCSA MRB Multi-resolution Bitmap MRAC MRAC CS Count-sketch CM Count-min sketch KARY K-ary sketch ENT Entropy sketch UM UnivMon 19

  20. Conclusion Diverse measurement tasks at scale are critical for management Sketch ensemble on programmable switch is promising, but prior work has fundamental limitation We propose a composition framework Sketchovsky that propose cross-sketch optimizations, strategy finder, and auto-code composition Sketchovsky makes previously infeasible ensembles feasible by reducing up to 45% hardware resources without accuracy loss 20

Related


More Related Content