Code Monkey home page Code Monkey logo

spreadsketch's Introduction

SpreadSketch


Paper

Lu Tang, Qun Huang, and Patrick P. C. Lee. SpreadSketch: Toward Invertible and Network-Wide Detection of Superspreaders. INFOCOM 2020


Files

  • spreadsketch.hpp, spreadsketch.cpp: the implementation of SpreadSketch
  • mrbmp.hpp, mrbmp.cpp: the implementation of multiresolution bitmap (distinct counters in SpreadSketch)
  • main_ss.cpp: example about superspreader detection
  • p4/spreadsketch.p4: p4 implementation of SpreadSketch

Compile and Run the examples

SpreadSketch is implemented with C++. We show how to compile the examples on Ubuntu with g++ and make.

Requirements

  • Ensure g++ and make are installed. Our experimental platform is equipped with Ubuntu 14.04, g++ 4.8.4 and make 3.81.

  • Ensure the necessary library libpcap is installed.

    • It can be installed in most Linux distributions (e.g., apt-get install libpcap-dev in Ubuntu).
  • Prepare the pcap files.

    • We provide two small pcap files here. You can download and put them in the "traces" folder for testing.
    • Specify the path of each pcap file in "iptraces.txt".
    • Note that one pcap file is regarded as one epoch in our examples.

Compile

  • Compile examples with make
    • Run the example of SpreadSketch
    $ make main_ss
- Run the example of HP-SpreadSketch
    $ make main_ss_hp

Run

  • Run the examples, and the program will output some statistics about the detection accuracy.
$ ./main_ss
  • Note that you can change the configuration of SpreadSketch, e.g. number of rows and buckets in the example source code for testing.

spreadsketch's People

Contributors

grace-tl avatar ooyya1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.