Studi Perbandingan Library Untuk Implementasi Network Automation Menggunakan Paramiko Dan Netmiko Pada Router Mikrotik

Authors

  • Luis Geraldo Mauboy Universitas Kristen Satya Wacana, Salatiga
  • Theophilus Wellem Universitas Kristen Satya Wacana, Salatiga

DOI:

https://doi.org/10.30865/jurikom.v9i4.4420

Keywords:

Network Automation, Python, Paramiko, Netmiko, GNS3

Abstract

In recent years, network automation has emerged as a solution to the impracticality of manually configuring network devices by network administrators. By implementing network automation, network administrators can configure and manage network devices automatically using scripts or software that is run from one of the hosts or servers in the network. This paper aims to conduct a comparative study through the implementation of cases for network automation. Four scenarios are taken as examples for the implementation of network automation, among others, static routing, dynamic routing, network address translation (NAT), and simple network management protocol (SNMP). The automation scripts are realized using Python libraries, namely Paramiko and Netmiko. Tests and simulations were carried out using the GNS3 simulator software with a network topology consisting of two Mikrotik routers, one Ethernet switch, one Network Automation server, and two computers as clients. The experiment results show that automation using the Paramiko library is better than automation using the Netmiko library in terms of the time required for the execution of configuration scripts. The average execution time for the four implemented scenarios is 3.66 seconds.

References

R. Enns, “RFC 4741 NETCONF Configuration Protocol.†Internet Engineering Task Force (IETF), 2006.

R. Enns, M. Bjorklund, J. Schoenwaelder, and A. Bierman, “RFC 6241 Network Configuration Protocol (NETCONF).†Internet Engineering Task Force (IETF), 2011.

A. Bierman, M. Bjorklund, and K. Watsen, “RFC 8040 RESTCONF Protocol.†Internet Engineering Task Force (IETF), 2017.

J. Edelman, S. S. Lowe, and M. Oswalt, Network Programmability and Automation: Skills for the Next-Generation Network Engineer, 1st ed. O’Reilly Media, 2018.

I. Pinto, Network Automation Made Easy, 1st ed. Cisco Press, 2021.

K. Abuelenain, J. Doyle, A. Karneliuk, and V. Jain, Network Programmability and Automation Fundamentals, 1st ed. Cisco Press, 2021.

M. Neidinger, Python network programming techniques: 50 real-world recipes to automate infrastructure networks, 1st ed. Packt Publishing, 2021.

J. Alex, Network Automation using Python 3: An Administrator’s Handbook, 1st ed. Independent, 2020.

“Paramiko - A Python Implementation of SSHv2.†https://www.paramiko.org/ (accessed Jun. 30, 2022).

K. Byers, “Netmiko: Multi-vendor library to simplify Paramiko SSH connections to network devices.†https://github.com/ktbyers/netmiko (accessed Jul. 04, 2022).

A. F. Rochim, A. Rafi, A. Fauzi, and K. T. Martono, “As-RaD System as a Design Model of the Network Automation Configuration System Based on the REST-API and Django Framework,†Kinet. Game Technol. Inf. Syst. Comput. Network, Comput. Electron. Control, vol. 4, pp. 291–298, 2020, doi: 10.22219/kinetik.v5i4.1093.

E. N. Fadhila, E. R. Gumelar, H. R. Pratama, and G. M. Suranegara, “Otomasi Konfigurasi Routing pada Router menggunakan Ansible,†TELNECT, vol. 1, no. 2, pp. 93–98, 2021.

W. Irtaza, IT Infrastructure Automation using Ansible, 1st ed. ‎ BPB Publications, 2021.

M. R. Afandi, P. Hatta, and A. Efendi, “Otomatisasi Perangkat Jaringan Komputer Menggunakan Ansible Pada Laboratorium Komputer,†SMARTICS J., vol. 6, no. 2, pp. 48–53, 2020, [Online]. Available: https://doi.org/10.21067/smartics.v6i2.4599.

E. S. Ginting, S. Suroso, and I. Hadi, “Pengujian Konfigurasi Otomatis Penambahan Gateway Pada Virtual Router Menggunakan Aplikasi Otomatisasi Jaringan Berbasis Web,†J. Media Inform. Budidarma, vol. 4, no. 4, pp. 1126–1131, Oct. 2020, doi: 10.30865/MIB.V4I4.2485.

M. Fahmi, M. Maisyaroh, I. Komarudin, S. Faizah, and I. Fadhilah, “Otomatisasi Jaringan Menggunakan Script Python Untuk Penyediaan Konfigurasi Internet Dan Manajemen Mikrotik,†Bina Insa. Ict J., vol. 8, no. 1, p. 53, 2021, doi: 10.51211/biict.v8i1.1517.

D. Rahardika and N. Ratama, “Implementasi Network Automation Untuk Konfigurasi Jaringan Baru Dengan Netmiko,†J. Artif. Intell. Innov. Appl., vol. 2, no. 3, pp. 190–200, 2021.

K. Nugroho, A. D. Abrariansyah, and S. Ikhwan, “Perbandingan Kinerja Library Paramiko dan Netmiko dalam Proses Otomasi Jaringan,†InfoTekJar J. Nas. Inform. dan Teknol. Jar., vol. 5, no. 1, pp. 1–8, 2020.

George Milios, “Network Automation Using Python,†Master’s Thesis, International Hellenic University, 2020.

A. Boumezrag, “A Proposed of Novel Network Management Platform for Network Automation and Programmability with Implementation on GNS3,†Master’s Thesis, University of Biskra, 2020.

M. F. Islami, P. Musa, and M. Lamsani, “Implementation of Network Automation using Ansible to Configure Routing Protocol in Cisco and Mikrotik Router with Raspberry PI,†J. Ilm. Komputasi, vol. 19, no. 2, pp. 127–134, 2020, doi: 10.32409/jikstik.19.2.80.

Additional Files

Published

2022-08-30

How to Cite

Mauboy, L. G., & Wellem, T. (2022). Studi Perbandingan Library Untuk Implementasi Network Automation Menggunakan Paramiko Dan Netmiko Pada Router Mikrotik. JURNAL RISET KOMPUTER (JURIKOM), 9(4), 790–799. https://doi.org/10.30865/jurikom.v9i4.4420