Submitted:
11 August 2025
Posted:
12 August 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
- replacing the sequential activation scheme of agents with the new scheme of independent agent activation (experiments showed this achieves flow distribution close to optimal);
- Inventing algorithms for a two-layer agent control plane, that allow reduce the number of interagent exchanges and accelerates agent decision-making.
2. Related Work
3. Background
- Addition: +1;
- Null action: +0;
- Mulitplication: *k (k is a tunable parameter);
- Division: /k (k is a tunable parameter).

4. Proposed Methods
4.1. Simultaneous Actions MAROH (SAMAROH)
- Multiplication: *k (k is a tunable parameter);
- Null action: +0.
4.2. Two-Layers Control Plane MAROH (MAROH-2L)
4.2.1. Experience Layer

- Euclidean metric (L2):
- 2.
- Manhattan metric (L1):
- 3.
- Cosine distance1 (Cos):
4.2.2. Decision-Making Layer
4.2.3. Decision-Making Layer: -Net Based Method
- Either or . In the last alternative the chois is made based on the coincidence of actions in If the actions are coincedented in these cases, then the choice is random.
5. Materials and Methods
- network topology;
- load as traffic matrix;
- balancing algorithm and its parameters (memory size, threshold Δ, metric, clustering algorithm).


6. Experimental Results
6.1. MAROH vs SAMAROH
6.2. Research of Two-Layer Approach


7. Discussion
- investigating the effectiveness of the representative selection method proposed in Section 4.2.3;
- developing adaptive algorithms for states proximity threshold tuning;
- creating dynamic memory management techniques with intelligent identification of obsolete states and optimal memory sizing based on current network conditions;
- optimizing computational complexity for large-scale network topologies.
8. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| ECMP | Equal-Cost Multi-Path |
| MAROH | Multi-Agent ROuting using Hashing |
| MAROH-2L | MAROH with Two-Layer Control Plane |
| MPNN | Message Passing Neural Network |
| NP | Non-deterministic Polynomial time |
| RL | Reinforcement Learning |
| SAMAROH | Simultaneous Actions MAROH |
| UCMP | Unequal-Cost Multi-Path |
References
- Moiseev N.N., Ivanilov Yu.P., Stolyarova E.M. (1978) Optimization methods. Moscow: Nauka. 352 p.
- Wang, I-Lin. "Multicommodity network flows: A survey, Part I: Applications and Formulations." International Journal of Operations Research 15, no. 4 (2018): 145-153. [CrossRef]
- Wang, I-Lin. "Multicommodity network flows: A survey, part II: Solution methods." International Journal of Operations Research 15, no. 4 (2018): 155-173. [CrossRef]
- Even, Shimon, Alon Itai, and Adi Shamir. "On the complexity of time table and multi-commodity flow problems." 16th annual symposium on foundations of computer science (sfcs 1975). IEEE, 1975. [CrossRef]
- Stepanov, E. P., R. L. Smeliansky, A. V. Plakunov, A. V. Borisov, Xia Zhu, Jianing Pei, and Zhen Yao. "On fair traffic allocation and efficient utilization of network resources based on MARL." Computer Networks 250 (2024): 110540. [CrossRef]
- Kahneman, Daniel. Thinking, fast and slow. macmillan, 2011.
- Ramani, Dhruv. "A short survey on memory based reinforcement learning." arXiv preprint arXiv:1904.06736 (2019). [CrossRef]
- Zheng, Lulu, Jiarui Chen, Jianhao Wang, Jiamin He, Yujing Hu, Yingfeng Chen, Changjie Fan, Yang Gao, and Chongjie Zhang. "Episodic multi-agent reinforcement learning with curiosity-driven exploration." Advances in Neural Information Processing Systems 34 (2021): 3757-3769. [CrossRef]
- Okonishnikov, A. A., and E. P. Stepanov. "Memory mechanism efficiency analysis in multi-agent reinforcement learning applied to traffic engineering." 2024 International Scientific and Technical Conference Modern Computer Network Technologies (MoNeTeC). IEEE, 2024. [CrossRef]
- Yao, Z., Ding, Z. and Clausen, T., 2022, October. Multi-agent reinforcement learning for network load balancing in data center. In Proceedings of the 31st ACM International Conference on Information & Knowledge Management (pp. 3594-3603). [CrossRef]
- Bernárdez, Guillermo, José Suárez-Varela, Albert López, Xiang Shi, Shihan Xiao, Xiangle Cheng, Pere Barlet-Ros, and Albert Cabellos-Aparicio. "MAGNNETO: A graph neural network-based multi-agent system for traffic engineering." IEEE Transactions on Cognitive Communications and Networking 9, no. 2 (2023): 494-506. [CrossRef]
- Sutton, Richard S., and Andrew G. Barto. Reinforcement learning: An introduction. Vol. 1, no. 1. Cambridge: MIT press, 1998.
- Kryszkiewicz, Marzena. "The cosine similarity in terms of the euclidean distance." In Encyclopedia of Business Analytics and Optimization, pp. 2498-2508. IGI Global, 2014. [CrossRef]
- Xia, Peipei, Li Zhang, and Fanzhang Li. "Learning similarity with cosine similarity ensemble." Information sciences 307 (2015): 39-52. [CrossRef]
- Yosida, Kôsaku. Functional analysis. Vol. 123. Springer Science & Business Media, 2012.
- Overview of clustering methods. Available online: https://scikit-learn.org/stable/modules/clustering.html#overviewof-clustering-methods (accessed on 05 August 2025).
- MAROH implementation. Available online: https://github.com/estepanov-lvk/maroh.git (accessed on 05 August 2025).
- Topology zoo. Available online: https://github.com/sk2/topologyzoo (accessed on 31 July 2025).


| Algorithm | Clustering | Metric | Memory size | Threshold | Φ | Number of exchanges (%) |
|---|---|---|---|---|---|---|
| Genetic | - | - | - | - | 0.0205 | - |
| MAROH | - | - | 0 | - | 0.0280 | 100.00% |
| SAMAROH | - | - | 0 | - | 0.0231 | 100.00% |
| MAROH-2L | MiniBatch KMeans | L2 | 512 | 0.007 | 0.0249 | 95.86% |
| 0.010 | 0.0225 | 91.56% | ||||
| 0.015 | 0.0229 | 93.57% | ||||
| 0.018 | 0.0247 | 94.28% | ||||
| 0.025 | 0.0229 | 87.29% | ||||
| 0.030 | 0.0230 | 75.52% | ||||
| 0.040 | 0.0246 | 57.45% | ||||
| 0.050 | 0.0259 | 60.57% | ||||
| 0.060 | 0.0258 | 60.52% | ||||
| 0.070 | 0.0259 | 43.98% | ||||
| SAMAROH-2L | MiniBatch KMeans | L2 | 512 | 0.007 | 0.0256 | 62.29% |
| 0.010 | 0.0215 | 62.98% | ||||
| 0.015 | 0.0236 | 51.13% | ||||
| 0.018 | 0.0284 | 27.46% | ||||
| Agglomerative Clustering | L1 | 512 | 0.01 | 0.0211 | 87.80% | |
| 0.03 | 0.0278 | 75.81% | ||||
| 0.04 | 0.0290 | 50.95% | ||||
| 0.05 | 0.0286 | 30.20% | ||||
| Cos | 512 | 1e-7 | 0.0257 | 77.67% | ||
| 3e-7 | 0.0261 | 76.92% | ||||
| 4e-7 | 0.0272 | 47.68% | ||||
| 5e-7 | 0.0293 | 60.04% |
| Algorithm | Clustering | Metric | Memory size | Threshold | Φ | Number of exchanges (%) |
|---|---|---|---|---|---|---|
| Genetic | - | - | - | - | 0.0179 | - |
| MAROH | - | - | 0 | - | 0.0247 | 100.00% |
| SAMAROH | - | - | 0 | - | 0.0196 | 100.00% |
| SAMAROH-2L | MiniBatch KMeans | L2 | 512 | 0.035 | 0.0227 | 91.44% |
| 0.040 | 0.0187 | 88.73% | ||||
| 0.050 | 0.0211 | 84.13% | ||||
| 0.060 | 0.0210 | 80.71% | ||||
| Agglomerative Clustering | L1 | 512 | 0.052 | 0.0220 | 99.93% | |
| 0.062 | 0.0190 | 99.37% | ||||
| 0.067 | 0.0224 | 99.06% | ||||
| 0.077 | 0.0215 | 97.17% | ||||
| Cos | 512 | 1.5e-7 | 0.0234 | 98.61% | ||
| 3e-7 | 0.0205 | 98.48% | ||||
| 4.5e-7 | 0.0209 | 98.22% | ||||
| 7.5e-7 | 0.0218 | 97.67% |
| Algorithm | Clustering | Metric | Memory size | Threshold | Φ | Number of exchanges (%) |
|---|---|---|---|---|---|---|
| Genetic | - | - | - | - | 0.0179 | - |
| MAROH | - | - | 0 | - | 0.0247 | 100.00% |
| SAMAROH | - | - | 0 | - | 0.0196 | 100.00% |
| SAMAROH-2L | MiniBatch KMeans | L2 | 1024 | 0.035 | 0.0211 | 82.26% |
| 0.040 | 0.0214 | 82.61% | ||||
| 0.050 | 0.0226 | 69.43% | ||||
| 0.060 | 0.0320 | 53.32% | ||||
| Agglomerative Clustering | L1 | 1024 | 0.052 | 0.0208 | 96.10% | |
| 0.062 | 0.0214 | 88.81% | ||||
| 0.067 | 0.0214 | 82.85% | ||||
| 0.077 | 0.0294 | 57.93% | ||||
| Cos | 1024 | 1.5e-7 | 0.0234 | 95.70% | ||
| 3e-7 | 0.0207 | 89.44% | ||||
| 4.5e-7 | 0.0225 | 74.05% | ||||
| 7.5e-7 | 0.0303 | 37.12% |
| 1 | It should be noted that cosine distance is not formally a metric, as it does not satisfy the triangle inequality. Nevertheless, as shown in [13], the problem of determining a cosine similarity neighborhood can be transformed into the problem of determining the Euclidean distance, and cosine distance is widely used in machine learning [14]. |
| 2 | An ε-net is a subset Z of a metric space X for such that that is no farther than ε from x. Since we are working in a metric space and the set of agent states is finite, an ε-net exists for it. |
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. |
© 2025 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/).