Introduction
Network traces—records of packet headers and flow statistics—are indispensable for network measurement, security research, and traffic engineering. However, the sensitive nature of these traces makes sharing them a significant privacy risk. Traditional methods like IP anonymization are increasingly vulnerable to sophisticated inference attacks, while modern generative approaches, such as Generative Adversarial Networks (GANs), often lack rigorous privacy guarantees.
When researchers attempt to integrate formal Differential Privacy (DP) into generative models, typically via DP-SGD (Differentially Private Stochastic Gradient Descent), the resulting data utility often collapses. The noise required to protect individual records during the complex training of a neural network frequently destroys the statistical properties that make the data useful. NetDPSyn addresses this "privacy-utility gap" by moving away from noisy generative models in favor of a marginal-based approach that captures and protects the underlying data distributions directly.
The NetDPSyn Framework
NetDPSyn is the first system to synthesize high-fidelity network traces (both packets and flows) with formal DP guarantees. Rather than teaching a model to mimic data, NetDPSyn identifies the most critical correlations between attributes—known as marginals—and protects those specific statistics. The system operates through a three-stage pipeline designed to handle the unique structure of network traffic.
1. Domain-Aware Pre-processing
Network data is high-dimensional and follows strict protocol logic. NetDPSyn uses "type-dependent binning" to manage this complexity:
- IP Addresses: Low-count addresses are binned by prefix (e.g., /30) to preserve structural information without exposing individuals.
- Ports: Common ports (under 1024) are kept distinct, while high ports are grouped.
- Continuous Values: Fields like packet lengths undergo log-transformation to handle wide ranges.
- Temporal Patterns: To capture time-series behavior without complex recurrent models, the system introduces a
tsdifffield, representing inter-arrival times, effectively treating temporal data as a tabular attribute.
2. Noisy Marginal Generation
The system employs an optimization algorithm called DenseMarg to select the most informative 2-way marginals (correlations between two fields). Calibrated Gaussian noise is added to these marginals to satisfy DP requirements. Crucially, NetDPSyn applies post-processing to ensure the noisy data remains consistent with networking logic—for example, ensuring a packet's total byte count is mathematically consistent with its packet count.
3. GUMMI Synthesis
To reconstruct a synthetic dataset from these noisy statistics, the authors developed GUMMI (Gradually Update Method with Marginal Initialization). GUMMI improves upon previous marginal-based synthesizers by initializing the synthetic dataset with key correlations (such as labels) first. This targeted initialization makes the synthesis process both faster and more accurate for downstream machine learning tasks.
Experimental Evaluation
The authors evaluated NetDPSyn across five diverse datasets, including flow-based traces (TON_IoT, UGR16, CIDDS) and packet-based traces (CAIDA, DC). The results demonstrate significant improvements over state-of-the-art baselines like NetShare.
- High Fidelity: In data sketching tasks, such as heavy hitter estimation, NetDPSyn’s relative error was often an order of magnitude lower than existing methods.
- Machine Learning Utility: On the TON_IoT dataset, models trained on NetDPSyn-generated data achieved approximately 89% accuracy, nearing the 98% accuracy of raw data. In contrast, data generated by NetShare saw accuracy drop to roughly 23%.
- Efficiency: NetDPSyn is significantly more efficient, synthesizing data 2.5x faster on average than baselines. In specific scenarios, such as the CIDDS dataset, it achieved a 5x speedup.
- Privacy Robustness: The system effectively defends against Membership Inference Attacks (MIA). While raw data showed an attack accuracy of 64%, NetDPSyn reduced this to near-random levels (~55% at $\epsilon=2$), providing strong empirical evidence for its formal DP guarantees.
Key Insights and Limitations
The success of NetDPSyn stems from the realization that for structured network data, distribution control is superior to model generation. By enforcing network logic and protocol constraints after noise addition, the system maintains a level of fidelity that generic generative models cannot reach. Furthermore, treating temporal features as tabular data allows the system to bypass the noise accumulation inherent in training complex Recurrent Neural Networks (RNNs) under DP.
Despite these gains, some limitations remain. The tsdiff approach, while efficient, may struggle with tasks requiring extremely fine-grained temporal dependencies. Additionally, the system is currently optimized for datasets with fewer than 15 attributes; higher-dimensional data may require further dimensionality reduction. Finally, NetDPSyn focuses on header data and does not yet address the synthesis of packet payloads, which remains a significant open challenge in the field of private data synthesis.
Conclusion
NetDPSyn represents a significant step forward in the private sharing of network data. By prioritizing the protection of marginal distributions over the training of complex generative models, it provides a scalable, efficient, and high-utility solution for researchers who require realistic network traces without compromising individual privacy.
Summary updated