A configuration preservation and recovery system, method and device based on VPP

By deploying the configuration save and recovery system in the VPP architecture, the problem of VPP configuration cannot be saved and restored is solved, and the configuration is flexible saved and restored, which improves the reliability and maintenance of the system.

CN117579477BActive Publication Date: 2024-12-03YUSUR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311414244.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-27
Publication Date
2024-12-03
Estimated Expiration
2043-10-27

AI Technical Summary

Technical Problem

The VPP architecture lacks configuration saving and recovery functions, cannot export configurations for post-checking, and after power failure, the user needs to manually reissue configurations, which lacks the ability to automatically load configurations.

Method used

Provide a VPP-based configuration saving and recovery system, including memory pool module, API configuration translation module, CLI configuration analysis module and configuration saving module. Through these modules, the configuration saving and recovery can be realized, and independently deployed on VPP. In the architecture, independent operation does not interfere with the VPP structure.

Benefits of technology

It realizes flexible storage, recovery and modification of VPP configurations, abstracts configuration saving and recovery functions, supports VPP policy planning and reuse in multiple control surfaces, and improves the reliability and maintenance of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117579477B_ABST
    Figure CN117579477B_ABST
Patent Text Reader

Abstract

The present invention provides a configuration preservation and recovery system, method and device based on VPP. By deploying the system in the form of a plug-in, it runs independently and imperceptibly, does not need to modify the VPP code, does not affect the operation process of the VPP structure, and is convenient for upgrading and maintenance. The system translates the VPP planning strategy in the form of code issued by the user through the agent using the API interface into the VPP CLI format through the API configuration translation module, and stores it. At the same time, the CLI configuration parsing module is used to obtain and store the planning strategy directly configured by the user in the VPP CLI format, abstracts the configuration preservation and recovery functions, realizes the reuse of VPP strategy planning in multiple control planes, and realizes the flexible preservation, recovery and modification of exchange routing parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a configuration preservation and recovery system, method and device based on VPP. Background Art

[0002] VPP (Vector Packet Processing) is a DPDK-based network frame processing solution. It is an extensible framework that provides out-of-the-box switch / router functions.

[0003] There are two channels for VPP policy configuration. One is that users configure rules by issuing VPP CLI format commands through vpp ctl or Telnet; the other is that users implement a proxy plug-in, which sends configuration rules through API. API type configuration is often used for general business policy configuration, and CLI type configuration is often used for live network debugging configuration.

[0004] The VPP architecture itself does not have the function of saving and restoring configurations. Therefore, there are two problems with the VPP architecture during operation. The first is that the existing configuration cannot be exported, that is, the configuration cannot be verified later. The other is that after the VPP loses power, the user needs to re-issue the configuration by himself, and it does not have the ability to automatically load the configuration. Summary of the invention

[0005] In view of this, the embodiments of the present invention provide a configuration saving and restoring system, method and device based on VPP to eliminate or improve one or more defects existing in the prior art and solve the problem that VPP in the prior art cannot save and restore configurations.

[0006] One aspect of the present invention provides a configuration preservation and recovery system based on VPP, wherein the system is deployed in the VPP architecture in the form of a plug-in, and the system includes:

[0007] The memory pool module is used to initialize the memory space of the set capacity in advance according to the requirements of the configuration parameters;

[0008] An API configuration translation module, configured to receive a first VPP rule policy issued by a user in a first preset format through one or more preset API interfaces, and translate it into a configuration instruction in a VPP CLI format based on a pre-loaded mapping model; the first VPP rule policy is used to configure exchange routing parameters;

[0009] A CLI configuration parsing module, used to monitor, receive and parse a second VPP rule policy issued in a second preset format, where the second preset format is a VPP CLI format, and the second VPP rule policy is used to perform exchange routing parameter configuration;

[0010] The configuration saving module is used to receive and store a startup configuration file, wherein the startup configuration file is used to configure the switching routing parameters; and store the configuration instructions and the second VPP rule policy in the memory space to form a static configuration file, so that the startup configuration file and the static configuration file can be called to restore or modify the configuration of the switching routing parameters.

[0011] In some embodiments, the API configuration translation module compiles and maps various forms of API code languages ​​into CLI formats, forms corresponding mapping models, and loads them.

[0012] In some embodiments, the set capacity of the memory space is configured based on the routing data scale, iteration time, retention time and data compression rate in the target VPP architecture operating environment;

[0013] And, the set capacity is configured according to a first preset redundancy value.

[0014] In some embodiments, the exchange routing parameter configuration includes: IP address, subnet mask, default gateway, routing table, dynamic routing protocol parameters, routing policy and router interface parameters.

[0015] In some embodiments, the API configuration translation module is connected to one or more API ports based on the Contive-vpp control panel; the CLI configuration parsing module is connected to the Vppctl command tool and / or the Telnet command tool, and the Vppctl command tool and / or the Telnet command tool are loaded on a preset control machine.

[0016] In some embodiments, the configuration saving module adds a timestamp to the startup configuration file and the static configuration file, and manages and deletes the timed-out startup configuration file and static configuration file according to the retention time.

[0017] On the other hand, the present invention also provides a VPP-based configuration preservation and recovery method, which is based on the above-mentioned VPP-based configuration preservation and recovery system operation, and the steps include:

[0018] The API configuration translation module obtains the first VPP rule policy configured by the user through the preset control plane and issued according to the first preset format based on the preset API port; the first VPP rule policy is used to configure the exchange routing parameters; the API configuration translation module translates the first VPP rule policy into a configuration instruction in the VPP CLI format based on the preloaded mapping model;

[0019] and / or, obtaining, by the CLI configuration parsing module, configuration by the user through the Vpp ctl command tool and / or the Telnet command tool, according to the second VPP rule policy issued secondly, wherein the second VPP rule policy is used to configure the exchange routing parameters;

[0020] And / or, receiving, by the configuration saving module, a startup configuration file, wherein the startup configuration file is used to configure the exchange routing parameters;

[0021] The configuration saving module stores the startup configuration file in the memory space of the memory pool module, and stores the configuration instruction and the second VPP rule policy in the memory space to form a static configuration file;

[0022] The startup configuration file and the static configuration file are called to restore the configuration of the exchange routing parameters.

[0023] In some embodiments, the method further includes: calling the startup configuration file and the static configuration file and modifying and redeploying the switching routing parameters in the VPP CLI format.

[0024] On the other hand, the present invention also provides a configuration preservation and recovery device based on VPP, including a processor and a memory, wherein the memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the above method.

[0025] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when executed by a processor.

[0026] The beneficial effects of the present invention are at least:

[0027] The VPP-based configuration preservation and recovery system, method and device of the present invention deploy the system in the form of a plug-in, run independently and imperceptibly, do not need to modify the VPP code, will not affect the operation process of the VPP structure, and are convenient for upgrading and maintenance. The system translates the VPP planning strategy in the code form issued by the user through the agent using the API interface into the VPP CLI format through the API configuration translation module, and stores it. At the same time, the CLI configuration parsing module is used to obtain and store the planning strategy directly configured by the user in the VPP CLI format, abstract the configuration preservation and recovery functions, realize the reuse of VPP strategy planning in multiple control planes, and realize the flexible preservation, recovery and modification of exchange routing parameters.

[0028] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention may be achieved and obtained by the structures specifically indicated in the specification and the accompanying drawings.

[0029] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of the present application, and do not constitute a limitation of the present invention. In the drawings:

[0031] Figure 1 The figure is a schematic diagram of the structure of a configuration preservation and recovery system based on VPP according to an embodiment of the present invention.

[0032] Figure 2 The figure is a deployment structure diagram of a VPP-based configuration preservation and recovery system in a VPP architecture according to an embodiment of the present invention.

[0033] Figure 3 The figure is a flowchart of a configuration saving and restoring method based on VPP according to an embodiment of the present invention.

[0034] Figure 4 FIG. 1 is a schematic diagram of the working logic of the VPP architecture according to an embodiment of the present invention.

[0035] Figure 5 A schematic diagram of the working logic of the VPP architecture executing planning strategy deployment according to an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0037] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.

[0038] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.

[0039] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection involving an intermediate.

[0040] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.

[0041] Under the VPP (Vector Packet Processing) architecture, the planning strategy needs to be deployed and adjusted with configuration commands in the VPP CLI (Command Line Interface) format. Configuration instructions in the VPP CLI format can be issued through the Vppctl command tool or the Telnet command tool. However, in actual use, users usually issue agents based on services on the control plane and use the API interface (Application Programming Interface) to deploy VPP planning strategies. The API interface can have multiple code forms. Although it can be more personalized and convenient for users to use, it can only be deployed and adjusted using the API interface. However, in real commercial environments, it is likely that the multi-control scenario where CLI configuration and API configuration coexist is adopted. However, this scenario makes it difficult to effectively save and restore various forms of VPP planning strategies, especially the configuration issued in the VPP CLI format, which is difficult to effectively manage. Even if the control plane implements another set of Vppctl and Telnet mechanisms to replace the vppctl and telnet functions that come with vpp, there are still two other problems. One problem is that the workload of development and adaptation is large. The other problem is that when VPP restarts and performs configuration recovery and loading, it depends on the control plane to issue it. It must be ensured that there are no problems in the network between the two. VPP and the control plane are likely to be deployed on different machines. In this way, the complexity of the network cannot be guaranteed, which will lead to the problem that VPP cannot work normally when the network of the two machines fails, and the reliability is worrying.

[0042] One aspect of the present invention provides a configuration preservation and recovery system based on VPP, wherein the system is deployed in the VPP architecture in the form of a plug-in, such as Figure 1 and Figure 2 As shown, the system includes: a memory pool module, an API configuration translation module, a CLI configuration parsing module and a configuration saving module. The VPP-based configuration saving and recovery system operates independently, does not interfere with the operation of the VPP structure, and is only used to receive various forms of policy planning and save them for call recovery.

[0043] The memory pool module is used to initialize the memory space of the set capacity in advance according to the requirements of the configuration parameters; the memory pool is used to improve the efficiency of memory allocation and release, reduce the memory fragmentation problem, and is implemented at the software level. First, the size of the memory pool is determined according to the memory requirements. In some embodiments, the set capacity of the memory space is configured based on the routing data scale, iteration time, retention time and data compression rate under the target VPP architecture operating environment; and the set capacity is configured according to the first preset redundancy value.

[0044] Specifically, first determine the amount of data: estimate the amount of data generated in each cycle of the VPP architecture. You can get a rough data growth rate and data storage cycle based on historical data or business needs. Set the data retention period, that is, how long the data needs to be saved and analyzed, which depends on factors such as business needs, compliance requirements, and predictive analysis. Evaluate the data growth rate. According to the change requirements of the exchange routing of the VPP architecture system, estimate the amount of new data added in each cycle. This can be roughly calculated through historical data or traffic models. Determine redundancy and backup. If the availability and fault tolerance configured in the planning strategy are high, RAID technology or distributed storage systems can be used to provide data redundancy and reliability. Determine the compression rate. Different types of compression forms may occupy different spaces when stored. Using compression algorithms can reduce storage space usage. Determine data archiving and tiered storage. For historical data that is not frequently accessed for a long time, it can be archived or stored on cheaper media to free up high-performance storage space. Determine the hardware and storage media. According to the estimated storage needs, select appropriate hardware devices and storage media. For example, use solid-state drives (SSDs) or hard disk arrays (RAID) to meet high performance and scalability requirements.

[0045] It should be noted that the configuration of storage space is a dynamic process and may require periodic evaluation and adjustment. As the business scale expands and data growth changes, it may be necessary to re-evaluate and adjust the configuration of storage space to ensure the normal operation of the system and reliable storage of data.

[0046] The API configuration translation module is used to receive the first VPP rule policy issued by the user through one or more preset API interfaces in a first preset format, and translate it into a configuration instruction in the VPP CLI format based on the pre-loaded mapping model; the first VPP rule policy is used to configure the exchange routing parameters. In some embodiments, the API configuration translation module compiles and maps multiple forms of API code languages ​​to the CLI format, forms a corresponding mapping model and loads it.

[0047] In actual application, the API configuration translation module can connect to one or more API ports based on the Contive-vpp control panel. Contive-vpp can only be applied to the scenario where vpp replaces the kubenetes network. In other embodiments, it is also possible to configure a custom or control plane according to requirements and configure the required code language.

[0048] The configuration in VPP CLI format is the configuration that can be directly observed and operated by the human eye. For example, the configuration of the switch is interactive configuration using VPP CLI format. For example, to configure the IP address of the network port: set int ip addr eth0 1.1.1.1 / 24.

[0049] The configuration of the API interface is implemented by calling functions through code. For example, to configure the IP address, the control plane needs to programmatically call the function code: set_interface_ip(eth0,1.1.1.1 / 24).

[0050] The planning strategy of the API interface is in code form, and the final presentation is compiled into a process file. The configuration is processed inside the process file, which is not easy to observe, maintain, and operate. Therefore, the API interface's call to the function or code is converted into CLI format.

[0051] The specific conversion operation is to monitor the functions of the API in the VPP called by the developer, and translate it into CLI instruction operations according to the meaning of the function. For example, after the developed program calls the set_interface_ip(eth0,1.1.1.1 / 24) function, the present invention automatically generates the configuration: set int ip addr eth0 1.1.1.1 / 24. This conversion can be directly established by writing a computer program to map the first preset format used by the API to the CLI format, and form a mapping model for loading.

[0052] The CLI configuration parsing module is used to monitor, receive and parse the second VPP rule policy issued in a second preset format, the second preset format is a VPP CLI format, and the second VPP rule policy is used to configure the exchange routing parameters. In some embodiments, the CLI configuration parsing module is connected to the Vppctl command tool and / or the Telnet command tool, and the Vppctl command tool and / or the Telnet command tool are loaded on a preset control machine. The preset control machine can use a dedicated device, or be loaded on a PC terminal or a mobile terminal.

[0053] It should be noted that both the first VPP rule policy and the second VPP rule policy are instructions for configuring VPP, which are generated based on different channels, the former is generated based on diversified control planes, and the latter is generated through a specific command tool; the first VPP rule policy is configured by calling the control plane through a specific interface, and its format changes with the interface type and the programming language adopted by the control plane. Therefore, the first preset format adopted by the first VPP rule policy is an unspecific programming language format, which is diverse and complex, and is not conducive to the adjustment, storage and recovery of the VPP configuration. Therefore, this application translates the first VPP rule policy and translates the first preset format into a CLI format to ensure the efficient implementation of subsequent calls, modifications and recovery. The second preset format of the second VPP rule policy is determined and is based on a CLI format instruction directly generated by the command tool, so no additional translation is required and it is directly stored to ensure subsequent calls, modifications and recovery.

[0054] The configuration saving module is used to receive and store a startup configuration file (Startup.conf), which is used to configure the exchange routing parameters; and store the configuration instructions and the second VPP rule policy in the memory space to form a static configuration file, so that the startup configuration file and the static configuration file can be called to restore or modify the configuration of the exchange routing parameters. In some embodiments, the configuration saving module adds a timestamp to the startup configuration file and the static configuration file, and manages and deletes the timed startup configuration file and the static configuration file according to the retention time.

[0055] In some embodiments, the exchange routing parameter configuration includes: IP address, subnet mask, default gateway, routing table, dynamic routing protocol parameters, routing policy and router interface parameters. In addition to the above parameters, other configurations may also be involved, such as security settings (such as access control lists) and QoS (Quality of Service) parameter configuration. The specific parameter settings and configuration methods will be affected by different network devices and operating systems, so it is necessary to refer to the corresponding documents and manuals for configuration.

[0056] On the other hand, the present invention also provides a configuration preservation and recovery method based on VPP, based on the above-mentioned configuration preservation and recovery system based on VPP, such as Figure 3 As shown, the steps include steps S101 to S105:

[0057] Step S101: The API configuration translation module obtains the first VPP rule policy configured by the user through the preset control plane and sends it according to the first preset format based on the preset API port; the first VPP rule policy is used to configure the exchange routing parameters; the API configuration translation module translates the first VPP rule policy into a configuration instruction in the VPP CLI format based on the pre-loaded mapping model. The preset control plane can adopt Contiv-VPP.

[0058] And / or, step S102: the CLI configuration parsing module obtains the user configuration through the Vpp ctl command tool and / or the Telnet command tool, and the second VPP rule policy is used to perform switching routing parameter configuration according to the second VPP rule policy issued secondly.

[0059] And / or, step S103: the configuration saving module receives a startup configuration file, where the startup configuration file is used to configure the switching routing parameters.

[0060] Step S104: the configuration saving module stores the startup configuration file into the memory space of the memory pool module, and stores the configuration instruction and the second VPP rule policy into the memory space to form a static configuration file.

[0061] Step S105: calling the startup configuration file and the static configuration file to restore the configuration of the exchange routing parameters.

[0062] In some embodiments, the method further includes: calling a startup configuration file and a static configuration file and modifying and redeploying the switching routing parameters in a VPPCLI format.

[0063] On the other hand, the present invention also provides a configuration preservation and recovery device based on VPP, including a processor and a memory, wherein the memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the above method.

[0064] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when executed by a processor.

[0065] The present invention is described below in conjunction with a specific embodiment:

[0066] This embodiment provides a configuration preservation and recovery system and method based on VPP, which solves the problem that configuration recovery cannot be performed in a scenario where the VPP and the control plane are deployed separately and the network is disconnected. It also solves the problem of waste of workload and low maintainability caused by repeated development of configuration preservation and recovery codes when multiple control planes exist at the same time and configuration preservation and recovery capabilities are required.

[0067] The VPP architecture targeted by this embodiment is as follows Figure 2 As shown, the operating system running on VPP can be Centos, Ubuntu, etc. VPP's sending and receiving processing of messages is based on DPDK (DPDK provides a set of optimized user space APIs designed to help developers take advantage of the performance of modern CPUs and hardware platforms and achieve low latency and high throughput in packet processing). The network packet processing capabilities provided by VPP include layer 2, layer 3, and layer 4 parsing and processing, as well as traffic ACL control (Access Control List is a network management technology used to control and filter network traffic to achieve network security and resource management. By configuring ACL rules, you can limit the transmission of specific traffic, filter malicious traffic, or implement priority control of network traffic). The management plane is used to configure rules for VPP, such as the rules in the form of API and CLI mentioned above, which can configure the IP address, MAC address (Media Access Control), ACL (Access Control List) rules, etc. of the network port in VPP. The VPP architecture uses Contive-vpp as the control plane of VPP, provides an API interface to deploy VPP planning policies, and deploys planning policies in CLI format based on the Vppctl command tool and / or Telnet command tool, as well as directly deploying planning policies using the startup configuration file (Startup.conf).

[0068] Reference Figure 4 The system in this embodiment includes modules including an API configuration translation module, a CLI configuration parsing module, a memory pool module, and a configuration storage module. Figure 5 , the functions of the module are as follows:

[0069] Memory pool module: Pre-initializes and applies for a certain size of memory space according to the parameters configured by the user (the configuration parameter is the size of the memory applied for. In the configuration file, the developer can configure the parameter to allocate 1G of space), and maintains the dequeue and enqueue of the memory space. Pre-allocating memory in advance through the memory pool avoids the consumption caused by dynamic memory application in data processing, improves the performance of VPP configuration recovery startup, and minimizes the network impact on existing customers.

[0070] API configuration translation module: responsible for monitoring and parsing the rules and policies issued by all user-implemented control planes through the API mechanism, that is, the rules and policies of vpp. For example, developers configure a NAT policy (Network Address Translation), routing policy, IP, MAC, etc., and translate and convert them according to the CLI format, and save the translated rules and policies to the memory pool space applied in advance.

[0071] CLI configuration parsing module: responsible for monitoring and parsing all rules and policies issued by terminals such as vppctl and telnet through the CLI mechanism, and saving the parsed rules and policies to the memory pool space applied in advance.

[0072] Configuration saving module: responsible for dynamically updating the configuration strategy in the memory pool to the specified file for later configuration recovery.

[0073] This embodiment can simultaneously meet the configuration preservation and recovery of API type and CLI type, which is convenient for debugging and deployment in scenarios of large-scale existing network deployment and debugging. It can be deployed in the form of a plug-in on the VPP side, which is also convenient for upgrading scenarios of previously deployed business systems. VPP is not aware of this, which is also convenient for subsequent VPP upgrades and maintenance, improving the maintainability of the business system. It can work when VPP and the control plane are offline. The configuration recovery method of this embodiment does not rely on communication with the control plane. Even if the control plane is down, the VPP side business can still perform configuration recovery, which improves the reliability of the system.

[0074] Corresponding to the above method, the present invention also provides an apparatus / system, which includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, the processor is used to execute the computer instructions stored in the memory, and when the computer instructions are executed by the processor, the apparatus / system implements the steps of the method described above.

[0075] The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned edge computing server deployment method are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.

[0076] In summary, the VPP-based configuration preservation and recovery system, method and device of the present invention, by deploying the system in the form of a plug-in, runs independently and imperceptibly, does not require modification of the VPP code, does not affect the operation process of the VPP structure, and is convenient for upgrading and maintenance. The system translates the VPP planning strategy in the form of code issued by the user through the agent using the API interface into the VPP CLI format through the API configuration translation module, and stores it. At the same time, the CLI configuration parsing module is used to obtain and store the planning strategy directly configured by the user in the VPP CLI format, abstracting the configuration preservation and recovery functions, realizing the reuse of VPP policy planning in multiple control planes, and realizing the flexible preservation, recovery and modification of exchange routing parameters.

[0077] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.

[0078] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0079] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.

[0080] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A configuration preservation and recovery system based on VPP, characterized in that: The system is deployed in the VPP architecture in the form of a plug-in, and includes: The memory pool module is used to initialize the memory space of the set capacity in advance according to the requirements of the configuration parameters; An API configuration translation module, configured to receive a first VPP rule policy issued by a user through one or more preset API interfaces in a first preset format, and translate the first VPP rule policy into a configuration instruction in a VPPCLI format based on a pre-loaded mapping model; the first VPP rule policy is used to configure exchange routing parameters; A CLI configuration parsing module, used to monitor, receive and parse a second VPP rule policy issued in a second preset format, where the second preset format is a VPP CLI format, and the second VPP rule policy is used to perform exchange routing parameter configuration; The configuration saving module is used to receive and store a startup configuration file, wherein the startup configuration file is used to configure the switching routing parameters; and store the configuration instructions and the second VPP rule policy in the memory space to form a static configuration file, so as to call the startup configuration file and the static configuration file to restore or modify the configuration of the switching routing parameters.

2. The VPP-based configuration preservation and recovery system according to claim 1, characterized in that: The API configuration translation module compiles and maps various forms of API code languages ​​into CLI formats, forms corresponding mapping models, and loads them.

3. The configuration preservation and recovery system based on VPP according to claim 1, characterized in that: The set capacity of the memory space is configured based on the routing data scale, iteration time, retention time and data compression rate in the target VPP architecture operating environment; And, the set capacity is configured according to a first preset redundancy value.

4. The VPP-based configuration preservation and recovery system according to claim 1, characterized in that: The exchange routing parameter configuration includes: IP address, subnet mask, default gateway, routing table, dynamic routing protocol parameters, routing strategy and router interface parameters.

5. The VPP-based configuration preservation and recovery system according to claim 1, characterized in that: The API configuration translation module is connected to one or more API ports based on the Contive-vpp control panel; the CLI configuration parsing module is connected to the Vppctl command tool and / or the Telnet command tool, and the Vppctl command tool and / or the Telnet command tool are loaded on a preset control machine.

6. The VPP-based configuration preservation and recovery system according to claim 3, characterized in that: The configuration saving module adds a timestamp to the startup configuration file and the static configuration file, and manages and deletes the timed startup configuration file and the static configuration file according to the retention time.

7. A configuration saving and recovery method based on VPP, characterized in that: The VPP-based configuration preservation and recovery system according to any one of claims 1 to 6 is operated, and the steps include: The API configuration translation module obtains the first VPP rule policy configured by the user through the preset control plane and issued according to the first preset format based on the preset API port; the first VPP rule policy is used to configure the exchange routing parameters; the API configuration translation module translates the first VPP rule policy into a configuration instruction in the VPP CLI format based on the preloaded mapping model; The CLI configuration parsing module obtains the second VPP rule policy configured by the user through the Vpp ctl command tool and / or the Telnet command tool, and sends it according to the second preset format, where the second VPP rule policy is used to configure the exchange routing parameters; the second preset format is the VPP CLI format; The configuration saving module receives a startup configuration file, wherein the startup configuration file is used to configure exchange routing parameters; The configuration saving module stores the startup configuration file in the memory space of the memory pool module, and stores the configuration instruction and the second VPP rule policy in the memory space to form a static configuration file; The startup configuration file and the static configuration file are called to restore the configuration of the exchange routing parameters.

8. The VPP-based configuration preservation and recovery method according to claim 7, characterized in that: The method further comprises: The startup configuration file and the static configuration file are called and the switching routing parameters are modified and redeployed in the VPP CLI format.

9. A configuration saving and restoring device based on VPP, comprising a processor and a memory, characterized in that: The memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the method as claimed in any one of claims 7 to 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 7 to 8 are implemented.