(SIGCOMM '22) Practical GAN-based Synthetic IP Header Trace Generation using NetShare
(SIGCOMM '22) Practical GAN-based Synthetic IP Header Trace Generation using NetShare
[paper (SIGCOMM 2022)] [talk (SIGCOMM 2022)] [talk (ZeekWeek 2022)] [talk (FloCon 2023)] [web service demo]
Authors: [Yucheng Yin] [Zinan Lin] [Minhao Jin] [Giulia Fanti] [Vyas Sekar]
Abstract: We explore the feasibility of using Generative Adversarial Networks (GANs) to automatically learn generative models to generate synthetic packet- and flow header traces for network-ing tasks (e.g., telemetry, anomaly detection, provisioning). We identify key fidelity, scalability, and privacy challenges and tradeoffs in existing GAN-based approaches. By synthesizing domain-specific insights with recent advances in machine learning and privacy, we identify design choices to tackle these challenges. Building on these insights, we develop an end-to-end framework, NetShare. We evaluate NetShare on six diverse packet header traces and find that: (1) across distributional metrics and traces, it achieves 46% more accuracy than baselines, and (2) it meets users’ requirements of downstream tasks in evaluating accuracy and rank ordering of candidate approaches.
[2023.04] Woohoo! New version released with a list of new features:
[2022.08]: The deprecated camera-ready branch holds the scripts we used to run all the experiments in the paper.
NetShare has been used by several independent users/companies.
We are adding more datasets! Feel free to add your own and contribute!
Our paper uses six public datasets for reproducibility. Please download the six datasets here and put them under traces/.
You may also refer to the README for detailed descriptions of the datasets.
libpcap depdency (Optional)If you are working with PCAP files and you have not installed libpcap,
homebrew:brew install libpcapapt:sudo apt install libpcap-devWe recommend installing NetShare in a virtual environment (e.g., Anaconda3). We test with virtual environment with Python==3.9.
# Assume Anaconda is installed
# Create virtual environment if not exists
conda create --name NetShare python=3.9
# Activate virtual env
conda activate NetShare
# Install NetShare package
git clone https://github.com/netsharecmu/NetShare.git
pip3 install -e NetShare/
# Install SDMetrics package
git clone https://github.com/netsharecmu/SDMetrics_timeseries
pip3 install -e SDMetrics_timeseries/Ray is a unified framework for scaling AI and Python applications. Our framework utilizes Ray to increase parallelism and distribute workloads among the cluster automatically and efficiently.
ray start --head --port=6379 --include-dashboard=True --dashboard-host=0.0.0.0 --dashboard-port=8265Please go to http://localhost:8265 to view the Ray dashboard.
We provide a utility script and README under util/ for setting up a Ray cluster. As a reference, we are using Cloudlab which is referred as ``custom cluster'' in the Ray documentation. If you are using a different cluster (e.g., AWS, GCP, Azure), please refer to the Ray doc for full reference.
We are adding more examples of usage (PCAP, NetFlow, w/ and w/o DP). Please stay tuned!
Here is a minimal working example to generate synthetic netflow files without differential privacy. Please change your working directory to examples/ by cd examples/.
You may refer to examples for more scripts and config files.
…The corresponding configuration file. You may refer to README for detailed explanations of the configuration files.
After generation, you will be redirected to a dashboard where a side-to-side visual comparison between real and synthetic data will be shown.
…Please cite our paper/codebase approriately if you find NetShare is useful.
…Part of the source code is adapated from the following open-source projects:
No open issues yet, or sync has not completed.