A Distributed Traffic Replay Framework for Network Emulation
Abstract
:1. Introduction
- From a micro perspective, in a single emulation node, to tackle the high overhead of the kernel protocol stack, the state control of traffic replay is implemented in the user space, which shortens the path of traffic replay. Additional overheads are reduced (such as interruptions, memory copying, context switching, and lock contention), so that more CPU and memory are used for traffic replay and higher traffic replay performance can be obtained.
- From a macro perspective, a method for the cluster control of emulation nodes and the flexible configuration of emulation tasks in large-scale and complex virtual network scenarios is proposed, which transmits control commands in parallel on the basis of message queues and models the execution process of emulation tasks on the basis of workflows. This method improves the scalability of the emulation scale (the number of emulation nodes that can be controlled in emulation experiments) and expands the emulation scenario from a reduced-scale network to a massive heterogeneous network.
2. DTRF Introduction
2.1. Introduction to the DTRF Architecture
- 1.
- Platform Start-Up Stage
- 2.
- Emulation Task Configuration and Node Initialization Stage
- 3.
- Emulation Task Execution and Completion Stage
2.2. Traffic Replay Algorithm
Algorithm 1: Traffic Replay Algorithm |
Input: stream 1. last_ts ← 0//first packet timestamp 2. last_send ← 0//first packt send time 3. for packet in stream do: 4. if last_ts == 0 then://first packt in stream 5. last_ts ← packt_ts 6. last_send ← gettime()//the actual send time 7. else: 8. gap_ts ← packt_ts—last_ts 9. gap_send ← gettime()—last_send 10. if gap_ts > gap_send then: 11. sleep_time ← gap_ts—gap_send 12. sleep() 13. end if 14. last_send ← gettime() 15. last_ts ← packt_ts//update 16. end if 17. send packet 18. end for |
2.3. High-Performance Strategy of Traffic Replay
2.4. Cluster Control and Flexible Configuration Strategy
3. Results
3.1. Experimental Environment
3.2. Comparison of Replay Performance
3.2.1. Comparison of Throughput
3.2.2. Comparison of Concurrent Streams
3.2.3. Comparison of Timestamp Errors
3.2.4. Results Explanation
3.3. DTRF Function Verification
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Fang, B.; Jia, Y. Cyber Ranges: State-of-the-art and research challenges. J. Cyber Secur. 2016, 1, 1–9. [Google Scholar]
- Li, F.; Wang, Q. Research on Cyber Ranges and Its Key Technologies. Comput. Eng. Appl. 2022, 58, 12–22. [Google Scholar]
- Fu, Y.; Zhao, H.; Wang, X.F.; Liu, H.R.; An, L. State-of-the-Art Survey of Network Behavior Emulation. J. Softw. 2022, 33, 274–296. [Google Scholar]
- Zhang, L. Opnet based emulation research on heterogeneous network for smart-home. Master’s Thesis, Beijing University of Posts and Telecommunications, Beijing, China, 2019. [Google Scholar]
- Ru, X.; Liu, Y. A survey of new network simulator NS3. Microcomput. Its Appl. 2017, 36, 14–16. [Google Scholar]
- Felter, W.; Ferreira, A. An updated performance comparison of virtual machines and Linux containers. In Proceedings of the 2015 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), Philadelphia, PA, USA, 29–31 March 2015; pp. 171–172. [Google Scholar]
- Li, C.; Zhang, X. Performance evaluation on open source cloud platform for high performance computing. J. Comput. Appl. 2013, 33, 3580–3585. [Google Scholar]
- Adeleke, O.; Bastin, N. Network Traffic Generation: A Survey and Methodology. ACM Comput. Surv. 2022, 55, 1–23. [Google Scholar] [CrossRef]
- Catillo, M.; Pecchia, A.; Rak, M. Demystifying the role of public intrusion datasets: A replication study of DoS network traffic data. Comput. Secur. 2021, 108, 102341. [Google Scholar] [CrossRef]
- Toll, M.; Behnke, I. IoTreeplay: Synchronous Distributed Traffic Replay in IoT Environments. In Proceedings of the 2022 IEEE International Conference on Cloud Engineering (IC2E), San Francisco, CA, USA, 26–30 September 2022; pp. 8–14. [Google Scholar]
- Wen, H.; Liu, Y.; Wang, X. Malicious user behavior emulation technology for space-ground integrated network. J. Chin. Mini-Micro Comput. Syst. 2019, 40, 1658–1665. [Google Scholar]
- Li, L.; Hao, Z. Traffic replay in virtual network based on IP-mapping. In Proceedings of the International Conference on Algorithms and Architectures for Parallel Processing, Zhangjiajie, China, 18–20 November 2015; pp. 697–713. [Google Scholar]
- Huang, N.; Liu, Y.; Wang, X. User Behavior Emulation Technology Based on Interactive Traffic Replay. Comput. Eng. 2021, 47, 103–110. [Google Scholar]
- Liu, H.; An, L.; Ren, J.; Wang, B. An interactive traffic replay method in a scaled-down environment. IEEE Access 2019, 7, 149373–149386. [Google Scholar] [CrossRef]
- Du, X.L.; Xu, G.; Li, T. Traffic Control for Data Center Network: State of Art and Future Research. J. Comput. 2021, 44, 1287–1309. [Google Scholar]
- Zhang, Z.; Lu, G.; Zhang, C.; Gao, Y.; Wu, Y.; Zhong, G. Cyfrs: A fast recoverable system for cyber range based on real network environment. In Proceedings of the 2020 Information Communication Technologies Conference (ICTC), Nanjing, China, 29–31 May 2020; pp. 153–157. [Google Scholar]
- Andreolini, M.; Colacino, V.G.; Colajanni, M.; Marchetti, M. A framework for the evaluation of trainee performance in cyber range exercises. Mob. Netw. Appl. 2020, 25, 236–247. [Google Scholar] [CrossRef]
- Xu, Y. Research and Implementation of Software Automation Test Framework Based on Workflow Model. Master’s Thesis, Nanjing University of Posts and Telecommunications, Nanjing, China, 2015. [Google Scholar]
- Zheng, H.; Ye, C. A Game Cheating Detection System Based on Petri Nets. J. Syst. Simul. 2020, 32, 455–463. [Google Scholar]
- Liu, C.; Wang, H. Workflow and Service Oriented E-mail System Model. Comput. Eng. 2010, 36, 68–71. [Google Scholar]
- Shi, J.; Pesavento, D. NDN-DPDK: NDN forwarding at 100 Gbps on commodity hardware. In Proceedings of the 7th ACM Conference on Information-Centric Networking, Virtual Event, 29 September–1 October 2020; Association for Computing Machinery: New York, NY, USA, 2020; pp. 30–40. [Google Scholar]
- Zhang, W.S.; Wu, T.; Jin, S.Y.; Wu, Q.Y. Design and Implementation of a Virtual Internet Server. J. Softw. 2000, 11, 122–125. [Google Scholar]
- Yang, Z.; Harris, J.R. SPDK: A development kit to build high performance storage applications. In Proceedings of the 2017 IEEE International Conference on Cloud Computing Technology and Science (CloudCom), Hong Kong, China, 11–14 December 2017; pp. 154–161. [Google Scholar]
- Tcpreplay. Available online: https://github.com/appneta/tcpreplay (accessed on 23 October 2022).
Configuration | CPU/Core | Memory/GB | Disk/GB |
---|---|---|---|
Control Node | 8 | 64 | 1024 |
Network Node | 6 | 16 | 1024 |
Compute Node 1 | 6 | 16 | 2048 |
Compute Node 2 | 6 | 32 | 2048 |
Traffic Type | Web(HTTP) | Email(SMTP) | Video(RSTP) | File(FTP) |
---|---|---|---|---|
PPS/k | 10 | 2 | 4 | 8 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Huang, X.; Wang, X.; Liu, Y.; Xue, Q. A Distributed Traffic Replay Framework for Network Emulation. Information 2023, 14, 59. https://doi.org/10.3390/info14020059
Huang X, Wang X, Liu Y, Xue Q. A Distributed Traffic Replay Framework for Network Emulation. Information. 2023; 14(2):59. https://doi.org/10.3390/info14020059
Chicago/Turabian StyleHuang, Xiao, Xiaofeng Wang, Yuan Liu, and Qingsong Xue. 2023. "A Distributed Traffic Replay Framework for Network Emulation" Information 14, no. 2: 59. https://doi.org/10.3390/info14020059
APA StyleHuang, X., Wang, X., Liu, Y., & Xue, Q. (2023). A Distributed Traffic Replay Framework for Network Emulation. Information, 14(2), 59. https://doi.org/10.3390/info14020059