Configtrans: Network Configuration Translation Based on Large Language Models and Constraint Solving
Damage or relocation of network devices necessitates the replacement of devices. Additionally, manufacturers of devices may also change due to factors such as price, policies, and functional limitations. This brings great needs of converting existing configurations to fix new devices and ensuring consistent network policy behaviors, which is configuration translation. Manually translating requires network administrators to possess significant configuration expertise and to spend extreme time translating thousands of commands for a core device. Therefore, we propose ConfigTrans, a novel configuration translation method for commands with and without parameters based on constraint solving and large language models (LLMs), respectively. For commands with parameters, we explore constraints about parameters, commands, and format limitations, and design a heuristic algorithm to solve them. For commands without parameters, we utilize an LLM to find the translation. The most likely several commands are selected based on semantic similarity, and the final result and keywords in it are chosen by the LLM. To meet the requirements of the view, the result commands are arranged while supplementing missing higherview commands. Experimental results show that our method achieves an accuracy rate of 82.47 % for translating commands with parameters and 75.5 % for commands without parameters.
Authors
- Ziming Li (ORCID: https://orcid.org/0000-0002-3647-8140)
- Naigong Zheng
- Yansen Hao (ORCID: https://orcid.org/0000-0002-5606-2839)
- Chenyang Liu (ORCID: https://orcid.org/0000-0003-3034-6646)
- Fuliang Li (ORCID: https://orcid.org/0000-0001-9782-0053)
- Xingwei Wang (ORCID: https://orcid.org/0000-0001-9143-2287)
- Yu Yang (ORCID: https://orcid.org/0000-0001-9354-3909)
Institutions
- Hong Kong Polytechnic University (HK)
- Northeastern University (CN)
Publication Details
- Published
- 2024-10-28
- DOI
- https://doi.org/10.1109/icnp61940.2024.10858572
- Citations
- 3
- Primary Topic
- Semantic Web and Ontologies
- Type
- article
- Field-Weighted Citation Impact
- 1.04