Network Automation With Multithreading Using GNS3 and Netmiko
DOI:
https://doi.org/10.17010/ijcs/2024/v9/i2/173860Keywords:
GNS3
, Performance Analysis, Multithreading, Netmiko, Network Automation, Python Scripting.Paper Submission Date
, February 8, 2024, Paper sent back for Revision, February 20, Paper Acceptance Date, February 22, Paper Published Online, April 5, 2024.Abstract
In the field of network automation, the combination of powerful tools like Netmiko and simulation environments like GNS3 offers network engineers an unprecedented opportunity to streamline operations, improve time efficiency, and enhance reliability. In this research we have done the automation in network configuration and also automation in backup of configuration. Configuration backup plays a crucial role in networking as it facilitates rapid failure recovery, reduces downtime, and enhances security. However, the backup process can be time-consuming, which is why a multithreading approach is adopted. This project focuses on exploring the utilization of Netmiko, a Python library for network device management within the GNS3 platform to automate various networking tasks. By creating a simulated network environment and developing Python scripts that leverage Netmiko, this project demonstrates the automation of configuration and OSPF routing protocol. Furthermore, the project investigates the multithreaded configuration backup and conducts a performance time analysis between multithreading and single-thread backup configurations. The objective of this study is to contribute further to current research on network automation.Downloads
Published
How to Cite
Issue
Section
References
A. M. Mazin, R. A. Rahman, M. Kassim, and A. R. Mahmud, "Performance analysis on network automation interaction with network devices using Python," in 2021 11th IEEE Symp. Comput. Appl. Ind. Electronics, Penang, Malaysia, 2021, pp. 360–366, doi: 10.1109/ISCAIE51753.2021.9431823.
B. Vogel-Heuser, J. Folmer, G. Frey, L. Liu, H. Hermanns, and A. Hartmanns, "Modeling of Networked Automation Systems for simulation and model checking of time behavior," Int. Multi-Conf. Systems, Signals Devices, Chemnitz, Germany, 2012, pp. 1–5, doi: 10.1109/SSD.2012.6197943.
M. F. Sanner, "Python: A programming language for software integration and development," J. Molecular Graph. Model., vol. 17, no. 1, pp. 57–61, 1999. [Online]. Available: https://api.semanticscholar.org/CorpusID:12160699
B. Rhodes, and J. Goerzen, “Foundations of Python Network Programming: The comprehensive guide to building network applications with Python,†Apress, 2010.
A. A. Don, and M. M. Richard, “Automatic backup configuration of routers using PERL scripting,†Int. J. Eng. Technol., vol. 7, no. 4.16, pp. 200–202, 2018, doi: 10.14419/ijet.v7i4.16.22887.
B. Ou, and P. Dong, "Automatically configuring the IP Addresses for mobile network in collaborative network," in 2020 IEEE 5th Inf. Technol. Mechatronics Eng. Conf., Chongqing, China, 2020, pp. 1020–1025, doi: 10.1109/ITOEC49072.2020.9141797.
R. Emiliano, and M. Antunes, "Automatic network configuration in virtualized environment using GNS3," in 2015 10th Int. Conf. Comput. Sci. Edu., Cambridge, UK, 2015, Cambridge, UK, 2015, pp. 25–30, doi: 10.1109/ICCSE.2015.7250212.
P. Gil, G. J. Garcia, A. Delgado, R. M. Medina, A. Calderón, and P. Marti, "Computer networks virtualization with GNS3: Evaluating a solution to optimize resources and achieve a distance learning," 2014 IEEE Frontiers Educ. Conf. Proc., Madrid, Spain, 2014, 2014, pp. 1–4, doi: 10.1109/FIE.2014.7044343.
F. Zheng, and Z. Cui, "The new way of configuration management of network devices under mutable environment," in 2010 3rd Int. Symp. Knowl. Acquisition Model., Wuhan, 2010, pp. 103–106, doi: 10.1109/KAM.2010.5646314.
W. Brockelsby, and S. Dilda, "Tactical network automation with NetZTP and One Shot," in 2019 IEEE 40th Sarnoff Symp., Newark, NJ, USA, 2019, doi: 10.1109/Sarnoff47838.2019.9067817.
X. Liu, B. Holden, and D. Wu, "Automated synthesis of access control lists," in 2017 Int. Conf. Softw. Secur. Assurance, Altoona, PA, USA, 2017, pp. 104–109, doi: 10.1109/ICSSA.2017.26.
Y. Ruan, V. S. Pai, E. Nahum, and J. M. Tracey, “Evaluating the impact of simultaneous multithreading on network servers using real hardware,†Sigmetrics Perform. Eval. Rev. – SIGMETRICS, vol. 33, pp. 315–326, Jun. 2005. [Online]. Available: http://www.cs.columbia.edu/~nahum/papers/sigmetrics05-smt.pdf
G. Hoover, F. Brewer, and T. Sherwood, “A case study of multi-threading in the embedded space,†in CASES '06: Proc. 2006 Int. Conf. Compilers, Architecture, Synthesis Embedded Systems Synthesis Embedded Syst., Oct. 2006, pp. 357–367, doi: 10.1145/1176760.1176803.