Analisis dan Prediksi Convergence Time Protokol STP dan RSTP pada Topologi Redundant Ring Menggunakan Machine Learning
DOI:
https://doi.org/10.53863/kst.v8i02.2564Keywords:
STP, RSTP, convergence time, machine learningAbstract
Path redundancy in switch-based Local Area Networks (LANs) increases availability, but can cause loops if left uncontrolled. The Spanning Tree Protocol (STP) and its successor, the Rapid Spanning Tree Protocol (RSTP), prevent loops by logically blocking one path, while the recovery process after a link failure determines the duration of the service outage. This study measured end-to-end connectivity recovery time (measured convergence time) on a ring topology of five switches and two hosts, and explored machine learning to predict it. The measured value was the duration for which the PC-A to PC-B ping was interrupted, not the protocol's internal convergence time, so 0 seconds means no disruption for that host pair. Tests in Cisco Packet Tracer covered five link-failure scenarios (F1-F5), each run five times in STP and RSTP modes (50 samples). In the three scenarios that cut the active path between hosts (F1, F3, F5), mean STP recovery time was 52.0-58.0 seconds and RSTP 7.8-12.6 seconds, a reduction of 78%-86% (Mann-Whitney U = 225; p < 0.001; n = 15 per mode); in F2 and F4, which the host-to-host path does not traverse, both protocols produced 0 seconds. With 5-fold cross-validation, Decision Tree and Random Forest achieved R2 0.974 (MAE 1.71 seconds), compared with Linear Regression's R2 0.722 (MAE 11.71 seconds). However, these results equal a simple baseline of per-scenario-and-mode means (R2 0.974), so the machine learning analysis is exploratory and has not shown an advantage over that baseline
References
Abedin, T., Xu, H., & Uddin, S. (2026). The impact of K selection in K ‑ fold cross-validation on bias and variance in supervised learning models. 1–13.
Alfian, T., Sandi, A., Anwar, R. S., & Fauzi, A. (2023). Analisis Performa Redundancy Link Menggunakan Metode Spanning Tree Protocol Dan Per VLAN Spanning Tree. 5(1), 47–52.
Ali, M. H. (2025). Dynamic Fast Convergence Improvement using Predictive Network Analysis. 17(1), 1–19.
Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32. https://doi.org/10.1023/A:1010933404324
Breiman, L., Friedman, J. H., Olshen, R. A., & Stone, C. J. (1984). Classification and regression trees. Wadsworth.
Cisco Systems. (n.d.-a). Spanning tree from PVST+ to Rapid-PVST migration configuration example. https://www3-realm.cisco.com/en/US/products/hw/switches/ps708/products_configuration_example09186a00807b0670.shtml
Cisco Systems. (n.d.-b). Troubleshoot STP problems & related design considerations. https://www.cisco.com/c/en/us/support/docs/lan-switching/spanning-tree-protocol/10556-16.html
Cisco Systems. (n.d.-c). Understand and configure Spanning Tree Protocol (STP) on Catalyst switches. https://www.cisco.com/c/en/us/support/docs/lan-switching/spanning-tree-protocol/5234-5.html
Cisco Systems. (n.d.-d). Understand and tune Spanning Tree Protocol timers. https://www.cisco.com/c/en/us/support/docs/lan-switching/spanning-tree-protocol/19120-122.html
Cisco Systems. (n.d.-e). Understand Multiple Spanning Tree Protocol (802.1s). https://www.cisco.com/c/en/us/support/docs/lan-switching/spanning-tree-protocol/24248-147.html
Cisco Systems. (n.d.-f). Understand Rapid Spanning Tree Protocol (802.1w). https://www.cisco.com/c/en/us/support/docs/lan-switching/spanning-tree-protocol/24062-146.html
Creswell, J. W., & Creswell, J. D. (2018). Research design: Qualitative, quantitative, and mixed methods approaches (5th ed.). SAGE Publications.
Dunn, O. J. (1961). Multiple comparisons among means. Journal of the American Statistical Association, 56(293), 52–64. https://doi.org/10.1080/01621459.1961.10482090
Em, S. (2024). Exploring Experimental Research : Methodologies , Designs , and Applications Across Disciplines. March, 1–9.
Hamdani, M., Irawan, D., Kusuma, A. A. N. A., Agastani, T., & Iqbal, M. (n.d.). Preliminary Assessment of Using Spanning Tree Open Protocols in INA-CBT Communication System. In The 2022 International Conference on Computer, Control, Informatics and Its Applications (IC3INA 2022), November 22â•fi23, 2022, Virtual Event, Indonesia (Vol. 1, Issue 1). Association for Computing Machinery. https://doi.org/10.1145/3575882.3575884
Harahus, M., Čavojský, M., Bugár, G., & Pleva, M. (2023). Interactive network learning: An assessment of EVE-NG platform in educational settings. Acta Electrotechnica et Informatica, 23(3), 3–9. https://doi.org/10.2478/aei-2023-0011
Hastie, T., Tibshirani, R., & Friedman, J. (2009). The elements of statistical learning: Data mining, inference, and prediction (2nd ed.). Springer. https://doi.org/10.1007/978-0-387-84858-7
IEEE. (1998). Information technology—Telecommunications and information exchange between systems—Local and metropolitan area networks—Common specifications—Part 3: Media access control (MAC) bridges (ANSI/IEEE Std 802.1D, 1998 ed.). IEEE.
IEEE. (2002). IEEE standard for local and metropolitan area networks—Virtual bridged local area networks—Amendment 3: Multiple spanning trees (IEEE Std 802.1s-2002). IEEE.
IEEE. (2004). IEEE standard for local and metropolitan area networks: Media access control (MAC) bridges (IEEE Std 802.1D-2004). IEEE. https://doi.org/10.1109/IEEESTD.2004.94569
Indrianingsih, Y., Wintolo, H., & Saputri, E. Y. (2021). Spanning Tree Protocol ( STP ) Based Computer Network Performance Analysis on BPDU Config Attacks and Take Over Root Bridge Using the Linear Regression Method. 6(2), 155–162. https://doi.org/10.15575/join.v6i2.703
James, G. (2024). Sciences Analysis of support vector machine and random forest models for predicting the scalability of a broadband network. 6, 1–10.
Khan, N., Koubaa, A., Khan, Z., Khurram, M., & Ali, I. (2023). Data plane failure and its recovery techniques in SDN : A systematic literature review. Journal of King Saud University - Computer and Information Sciences, 35(3), 176–201. https://doi.org/10.1016/j.jksuci.2023.02.001
Kohavi, R. (1995). A study of cross-validation and bootstrap for accuracy estimation and model selection. In Proceedings of the 14th International Joint Conference on Artificial Intelligence (IJCAI-95) (Vol. 2, pp. 1137–1143). Morgan Kaufmann.
Kruskal, W. H., & Wallis, W. A. (1952). Use of ranks in one-criterion variance analysis. Journal of the American Statistical Association, 47(260), 583–621. https://doi.org/10.1080/01621459.1952.10483441
Louppe, G., Wehenkel, L., Sutera, A., & Geurts, P. (2013). Understanding variable importances in forests of randomized trees. In Advances in Neural Information Processing Systems 26 (pp. 431–439). Curran Associates.
Malekzadeh, M. (2023). Performance prediction and enhancement of 5G networks based on linear regression machine learning. EURASIP Journal on Wireless Communications and Networking. https://doi.org/10.1186/s13638-023-02282-z
Mann, H. B., & Whitney, D. R. (1947). On a test of whether one of two random variables is stochastically larger than the other. The Annals of Mathematical Statistics, 18(1), 50–60. https://doi.org/10.1214/aoms/1177730491
Mauro, M. Di, Cerroni, W., Postiglione, F., Tornatore, M., & Trivedi, K. S. (2026). Reliability and Availability in Virtualized Networks : A Survey on Standards , Modeling Approaches , and Research Challenges. IEEE Communications Surveys & Tutorials, 28, 5121–5158.
Nasr, A., & Ahmed, N. A. S. (2026). ةينقتلاو مولعلل دئارلا ةلجم Comparative Review of STP , RSTP , and PVST Protocols : Loop Prevention in Layer 2 Networks ةينقتلاو مولعلل دئارلا ةلجم. 3(1), 104–120.
Papan, J., Chovanec, T., Bridova, I., & Kvet, M. (2024). THE NEW LABEL BIT REPAIR FAST REROUTE MECHANISM. IEEE Access, PP, 1. https://doi.org/10.1109/ACCESS.2024.3379150
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., & Duchesnay, É. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825–2830.
Perlman, R. (1985). An algorithm for distributed computation of a spanning tree in an extended LAN. ACM SIGCOMM Computer Communication Review, 15(4), 44–53. https://doi.org/10.1145/318951.319004
Rashid, R. A., Abd, D. F., Othman, D. A., & Abdulqader, H. (2024). Performance Evaluation using Spanning Tree Protocol , Rapid Spanning Tree Protocol , Per-VLAN Spanning Tree , and Multiple Spanning Tree. 8(1). https://doi.org/10.21928/uhdjst.v8n1y2024.pp20-30
Roberts, D. R., Bahn, V., Ciuti, S., Boyce, M. S., Elith, J., Guillera-Arroita, G., Hauenstein, S., Lahoz-Monfort, J. J., Schröder, B., Thuiller, W., Warton, D. I., Wintle, B. A., Hartig, F., & Dormann, C. F. (2017). Cross-validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure. Ecography, 40(8), 913–929. https://doi.org/10.1111/ecog.02881
Su, J. (2024). ScienceDirect Construction of a Computer Network Performance Prediction Optimization Model Based on Machine Learning Algorithms. Procedia Computer Science, 243, 364–371. https://doi.org/10.1016/j.procs.2024.09.045
Taufan, M., Zaen, A., & Tantoni, A. (2022). Topologi Redundansi Link Untuk Keamanan Serta Mitigasi Ketersediaan Jaringan Komputer Menggunakan Rapid Spanning Tree Protocol. 4(1), 88–100. https://doi.org/10.47065/josyc.v4i1.2336
Tudoroiu, A. (2025). EVOLUTION OF SPANNING TREE PROTOCOL : FROM STP TO SPB AND TRILL – A COMPARATIVE ANALYSIS. 30–35. https://doi.org/10.2478/sbeef-2025-0018
Virtanen, P., Gommers, R., Oliphant, T. E., Haberland, M., Reddy, T., Cournapeau, D., Burovski, E., Peterson, P., Weckesser, W., Bright, J., van der Walt, S. J., Brett, M., Wilson, J., Millman, K. J., Mayorov, N., Nelson, A. R. J., Jones, E., Kern, R., Larson, E., . . . SciPy 1.0 Contributors. (2020). SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nature Methods, 17(3), 261–272. https://doi.org/10.1038/s41592-019-0686-2
Willmott, C. J., & Matsuura, K. (2005). Advantages of the mean absolute error (MAE) over the root mean square error (RMSE) in assessing average model performance. Climate Research, 30(1), 79–82. https://doi.org/10.3354/cr030079
Zhang, R., & Fan, L. (2025). Research on Self-Diagnosis and Self-Healing Technologies for Intelligent Fiber Optic Sensing Networks. 1–15.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Fitriani Ramadhani, Zidan Abdul Jabar Saka, Bambang Sugiantoro

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlike 4.0 International License that allows others to share the work with an acknowledgment of the work’s authorship and initial publication in this journal
















