Dynamic configuration method, electronic device, storage medium and program product
By configuring a preset management program in the network device and dynamically loading the target business processing program, the problem of high storage resource utilization is solved, and resource optimization and performance improvement are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
- Filing Date
- 2024-12-30
- Publication Date
- 2026-06-30
AI Technical Summary
In existing technologies, network devices have a high storage resource utilization rate because a large number of unused programs are installed.
By configuring a preset management program in network devices, the service control program corresponding to the target protocol can be dynamically determined, and the service processing program corresponding to the target service can be loaded into the preset storage device, reducing unnecessary program installation.
It reduces the storage resource utilization of network devices, improves configuration flexibility and processing performance, while reducing CPU resource consumption and memory space loss during power failure.
Smart Images

Figure CN122316894A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a dynamic configuration method, electronic device, storage medium, and program product. Background Technology
[0002] Network devices can implement multiple functional types, such as management functions, business control functions, and business processing functions.
[0003] In related technologies, for any given function type, multiple programs can correspond to that function type. For example, a management function can correspond to multiple management programs, and a service control function can correspond to multiple service control programs. A system program can be installed on a network device, and this system program can include multiple programs corresponding to each function type. However, some programs may not be used by the network device. The installation of the system program on the network device results in a large utilization of the network device's storage resources. Summary of the Invention
[0004] This application provides a dynamic configuration method, electronic device, storage medium, and program product to reduce the storage resource occupancy rate of network devices.
[0005] In a first aspect, embodiments of this application provide a dynamic configuration method applied to a network device, comprising:
[0006] The network device's preset management program determines multiple service control programs corresponding to the target protocol;
[0007] For any given service control program, at least one target service corresponding to the target protocol is determined through the service control program, and the service processing program corresponding to each target service is obtained from the preset storage device;
[0008] For any given target service, configure the corresponding service processing program.
[0009] In one possible implementation, the network device's preset management program determines multiple service control programs corresponding to the target protocol, including:
[0010] The target management program for the network device is determined through the preset management program;
[0011] The target management procedure determines multiple business control procedures corresponding to the target protocol.
[0012] In one possible implementation, determining the target management program for the network device through the preset management program includes:
[0013] The preset management program receives the management loading instruction from the target management program.
[0014] According to the management loading instruction, the target management program is retrieved from the preset storage device.
[0015] In one possible implementation, according to the management loading instruction, retrieving the target management program from the preset storage device includes:
[0016] The management loading instruction is format-converted to obtain the target loading instruction;
[0017] The target management program is retrieved from the preset storage device via the target loading instruction.
[0018] In one possible implementation, the management loading instruction is subjected to format conversion processing to obtain the target loading instruction, including:
[0019] Obtain the first format corresponding to the network device, wherein the first format is a format that the network device can recognize;
[0020] The second format corresponding to the management loading instruction is converted into the first format to obtain the target loading instruction.
[0021] In one possible implementation, the target management program determines multiple service control programs corresponding to the target protocol, including:
[0022] The target management program receives the service control instructions corresponding to the target protocol.
[0023] According to the service control instruction, the service control program corresponding to the target protocol is obtained from the preset storage device.
[0024] In one possible implementation, the service control procedure determines at least one target service corresponding to the target protocol, including:
[0025] Receive the service configuration instruction corresponding to the target protocol;
[0026] The service configuration command is format-converted to obtain the first configuration command;
[0027] Based on the business control procedure, at least one target business corresponding to the first configuration instruction is determined.
[0028] Secondly, embodiments of this application provide a dynamic configuration device, including a first determining module, a second determining module, an acquisition module, and a configuration processing module:
[0029] The first determining module is used to determine the service control program corresponding to the target protocol through the preset management program of the network device;
[0030] The second determining module is used to determine at least one target service corresponding to the target protocol through the service control program;
[0031] The acquisition module is used to acquire the business processing program corresponding to each target business from a preset storage device;
[0032] The configuration processing module is used to configure the business processing program corresponding to any target business.
[0033] In one possible implementation, the first determining module is specifically used for:
[0034] The target management program for the network device is determined through the preset management program;
[0035] The target management procedure is used to determine the business control procedure corresponding to the target protocol.
[0036] In one possible implementation, the first determining module is specifically used for:
[0037] The preset management program receives the management loading instruction from the target management program.
[0038] According to the management loading instruction, the target management program is retrieved from the preset storage device.
[0039] In one possible implementation, the first determining module is specifically used for:
[0040] The management loading instruction is format-converted to obtain the target loading instruction;
[0041] The target management program is retrieved from the preset storage device via the target loading instruction.
[0042] In one possible implementation, the first determining module is specifically used for:
[0043] Obtain the first format corresponding to the network device, wherein the first format is a format that the network device can recognize;
[0044] The second format corresponding to the management loading instruction is converted into the first format to obtain the target loading instruction.
[0045] In one possible implementation, the first determining module is specifically used for:
[0046] The target management program receives the service control instructions corresponding to the target protocol.
[0047] According to the business control instruction, the business control program is retrieved from the preset storage device.
[0048] In one possible implementation, the second determining module is specifically used for:
[0049] Receive the service configuration instruction corresponding to the target protocol;
[0050] The service configuration command is format-converted to obtain the first configuration command;
[0051] Based on the business control procedure, at least one target business corresponding to the first configuration instruction is determined.
[0052] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;
[0053] The memory stores computer-executed instructions;
[0054] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0055] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0056] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0057] The dynamic configuration method, electronic device, storage medium, and program product provided in this application embodiment can configure a preset management program in the network device. Through the preset management program, the service control program corresponding to the target protocol can be determined. Through the service control program, at least one target service corresponding to the target protocol can be determined, and the service processing program corresponding to the target service can be loaded into the preset storage device. This allows only the preset management program to be installed at the factory, and the necessary service processing programs to be installed through the preset management program, eliminating the need to configure a large number of programs at the factory and reducing the storage resource utilization of the network device. Attached Figure Description
[0058] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0059] Figure 1 A schematic diagram illustrating the application scenarios provided in the embodiments of this application;
[0060] Figure 2 A flowchart illustrating the dynamic configuration method provided in this application;
[0061] Figure 3 A flowchart illustrating another dynamic configuration method provided in an embodiment of this application;
[0062] Figure 4 A schematic diagram of a network device configuration management program provided in an embodiment of this application;
[0063] Figure 5 An interactive schematic diagram of a dynamic configuration method provided in an embodiment of this application;
[0064] Figure 6 This is a schematic diagram of the structure of a dynamic configuration device provided in an embodiment of this application;
[0065] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0066] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0067] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application.
[0068] Figure 1 This is a schematic diagram illustrating an application scenario provided in an embodiment of this application. Please refer to [link / reference]. Figure 1 It may include a preset storage device 101, a network device 102, and a terminal device 103.
[0069] The preset storage device 101 can store multiple programs corresponding to each function type of the network device 102. The preset storage device 101 can be a network attached storage (NAS) storage server or an external storage device.
[0070] Terminal device 103 may include a display screen and an input device. Users can interact with network device 102 through terminal device 103. Network device 102 can be configured with a preset management program. Users can input at least one target service through terminal device 103, and network device 102 can receive at least one target service. The preset management program can retrieve the service program corresponding to each target service from preset storage device 101 based on the at least one target service. Network device 102 can configure and process the service program corresponding to each target service.
[0071] Network device 102 can be a router, switch, hub, bridge, or gateway, etc. The following explanation uses a router as an example.
[0072] In related technologies, each function type can correspond to multiple programs. For example, multiple programs corresponding to each function type can be installed on a router. However, many programs may not be used by the router. Installing all programs on the router results in a large utilization of the router's storage resources.
[0073] The dynamic configuration method provided in this application embodiment allows for the configuration of a preset management program in the router. This preset management program determines the service control program corresponding to the target protocol, and through the service control program, at least one target service corresponding to the target protocol is identified. The service processing program corresponding to the target service can then be loaded into a preset storage device. This method enables the router to be manufactured with only the preset management program installed, through which the necessary service control programs are installed and the service processing programs are determined. This eliminates the need to configure all functional programs at the router's factory, thus reducing the router's storage resource usage.
[0074] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0075] Figure 2 A flowchart illustrating the dynamic configuration method provided in this application. Please refer to [link / reference]. Figure 2 The method may include:
[0076] S201. Determine the service control program corresponding to the target protocol through the router's preset management program.
[0077] The execution entity of this application embodiment can be a router or a dynamic configuration device set in the router. The dynamic configuration device can be implemented by software or by a combination of software and hardware.
[0078] In the management functions of a router, the router can support a variety of management programs, such as command line interface (CLI) management programs, network configuration protocol (NETCONF) management programs, Google Remote Procedure Call (gRPC) management programs, and Simple Network Management Protocol (SNMP) management programs.
[0079] When the router leaves the factory, any management program can be configured in the router, such as the preset management program mentioned in the embodiments of this application.
[0080] Preset management programs can be used to implement router management functions, such as managing the interaction between the router and users, automating and scripting the router, enabling remote management, debugging, and diagnostics by users. For example, a preset management program can be a CLI management program.
[0081] If the default management program is the CLI management program, the terminal device can communicate with the router through the serial communication interface (Serial Port). The interface corresponding to the default management program can be displayed on the terminal device, and the user can input configuration commands through the terminal device.
[0082] In addition, a default management program is configured in the router, allowing users to manage the router's functions. However, users may not be familiar with or know how to use the default management functions. Therefore, multiple management programs can be stored in a default storage device. The user can then load the desired management program from among these programs and use that program to manage the router. Whether using the default management program directly or calling the target management program from within the default management program, router management functions can be achieved, thus improving the flexibility of router configuration.
[0083] The default management program and the target management program can have different user interfaces and different control commands.
[0084] When configuring a default management program in a router, you can determine the commonly used management program based on its historical installation information and configure it as the default management program.
[0085] Before using the router, users can configure the required target protocols and corresponding service processing programs in the router through a preset management program or a target management program.
[0086] If a user needs to configure the business processing program of the target protocol, the user can enter the calling command of the target protocol on the interface of the target management program. The target management program can load the business control program corresponding to the target protocol from the preset storage device through the calling command.
[0087] The target protocol can be used to instruct the router to run the required routing protocol. For example, the target protocol can be Routing Information Protocol (RIP), Dynamic Host Configuration Protocol (DHCP), etc.
[0088] The target protocol can support multiple services. For example, if the target protocol is RIP, the services can be routing information exchange, distance vector routing, and triggered updates.
[0089] The business control program can control the business processing program that loads the protocol content of its corresponding target protocol; that is, the business control program can implement business control functions.
[0090] A service processing program can be used to implement one of the multiple services corresponding to the target protocol configured on the router; that is, a service processing program can implement service processing functions.
[0091] S202. For any given business control program, determine at least one target business corresponding to the target protocol through the business control program.
[0092] Specifically, it can receive service configuration instructions corresponding to the target protocol, perform format conversion processing on the service configuration instructions to obtain a first configuration instruction, and determine at least one target service corresponding to the first configuration instruction according to the service control program.
[0093] If there is only one target service, the first configuration instruction can include a first instruction, which can determine the target service corresponding to the first instruction; if there are multiple target services, the first configuration instruction can include multiple first instructions, which can determine the multiple target services corresponding to the multiple first instructions.
[0094] For example, assuming the target protocol is RIP, the service configuration command can be text-based. After receiving the service configuration command, the router can perform format conversion processing to obtain the first configuration command. The first configuration command can be a router rip, meaning it includes a first instruction, which is a router rip. The router rip is used to instruct the target service to start the RIP routing process and enter RIP routing configuration mode.
[0095] The execution process described above will be explained in detail below.
[0096] After the router is configured with the service control program for the corresponding target protocol, the user can input service configuration commands through the terminal device. The router can receive the service configuration commands, which can be used to instruct the configuration of at least one service processing program corresponding to the target service.
[0097] The target service can be any one of the multiple services corresponding to the target protocol.
[0098] Since different management programs can be configured in the router, and each management program can have its corresponding format type and language type, when the user enters the service configuration command through the terminal device, it is entered according to the format type and language type of the preset management program or the target management program. The router can convert the format of the service configuration command to obtain the first configuration command.
[0099] The format and language of the first configuration command are recognizable by the router.
[0100] Since the router is configured with a service control program corresponding to the target protocol, it is necessary to use the service control program to determine at least one target service corresponding to the first configuration instruction and the target protocol.
[0101] S203. Obtain the business processing program corresponding to each target business from the preset storage device.
[0102] The default storage device can store various routing protocols and the business processing program for each service corresponding to each routing protocol.
[0103] Business processing procedures can be used to execute their corresponding target business.
[0104] Each routing protocol and its corresponding service can be updated in the preset storage device without affecting the router's service processing, thus improving the reliability of the router's services.
[0105] In addition, updating the router's configuration service processing program only, instead of updating all programs, can improve the efficiency of router updates.
[0106] S204. For any target service, configure the corresponding service processing program.
[0107] After configuring a service processing program in the router, the router can execute the service corresponding to the service processing program.
[0108] Compared to configuring all service processing programs in the router, configuring only the service processing program corresponding to the target service in the router allows the router to directly process according to the configured service processing program during use, reducing the need for judgment logic in multiple service processing programs and improving the router's processing performance.
[0109] The dynamic configuration method provided in this application embodiment only installs a preset management program when the router leaves the factory. During router configuration, the required service processing programs can be installed through the preset management program, which can reduce the router's storage resource usage. By reducing the router's CPU resource usage, the speed of CPU computing resources can be increased.
[0110] Meanwhile, storing all programs in a pre-defined storage device can reduce the storage space of non-volatile memory (NVMemory) in the router. NVMemory can retain its stored data when power is off. For example, NVMemory can be Read-Only Memory (ROM), Flash Memory, and Hard-Disk Drive (HDD).
[0111] Furthermore, the service processing programs are primarily stored in the router's power-loss memory (FSM). In this embodiment, only the service processing programs corresponding to the required target services are loaded, which reduces the storage space occupied by the FSM. The FSM loses its stored data when power is off. For example, the FSM can be Random Access Memory (RAM), Dynamic Random Access Memory (DRAM), or Static Random Access Memory (SRAM).
[0112] Figure 3 This is a flowchart illustrating another dynamic configuration method provided in an embodiment of this application. Please refer to... Figure 3 As shown, in this embodiment... Figure 2 Based on the embodiments, the dynamic configuration method is described in detail, which includes:
[0113] S301. Receive the management loading instruction from the target management program through the preset management program.
[0114] Terminal devices can connect to the router. After connection, the terminal device can display the management interface corresponding to the preset management program configured in the router.
[0115] Users can input management loading commands on the management interface through the input device of the terminal device, and the router can receive the management loading commands.
[0116] S302. Perform format conversion processing on the management loading instruction to obtain the target loading instruction.
[0117] After receiving the management loading command, the router can perform format conversion processing on the management loading command through the conversion interface to obtain the target loading command. The target loading command can be a format type and language type that the router can recognize. The target loading command can be used to load the target management program in the preset storage device.
[0118] The conversion interface can obtain the first format corresponding to the router, which is a format that the router can recognize; it can convert the second format corresponding to the management loading command into the first format to obtain the target loading command.
[0119] The conversion interface can also identify and process management loading instructions, determining that the format of the management loading instructions is the second format.
[0120] In some possible implementations, if the language type of the management loading command is different from the language type that the router can recognize, the language type of the management loading command can be converted to the language type that the router can recognize through a conversion interface.
[0121] S303. Obtain the target management program from the preset storage device through the target loading instruction.
[0122] The target loading instruction can include the program identifier corresponding to the target management program. The target management program can be obtained from the preset storage device through the target loading instruction.
[0123] For example, the program identifiers stored in the preset storage device, and the management program corresponding to each program identifier, can be as shown in Table 1.
[0124] Table 1
[0125]
[0126] At least one management program can be retained in the router. After obtaining the target management program, the default management program can be deleted from the router, which can free up the router's storage space.
[0127] For example, management load instructions may include enabling gRPC, where gRPC can be a program identifier.
[0128] To facilitate understanding, the following will be combined with... Figure 4 The present application provides an explanation of the preset management program and the target management program configured in the router according to the embodiments of the present application.
[0129] Figure 4 This is a schematic diagram of a router configuration management program provided in an embodiment of this application. Please refer to [link / reference]. Figure 4 There are five management programs in total, designated as Management Program 1-5. Management Programs 1-5 can be stored in a pre-configured storage device. Management Program 1 can also be a pre-configured management program within the router. Users can configure various programs on the router through these pre-configured management programs.
[0130] If the user finds it inconvenient to use the default management program, the user can load the target management program through the default management program. The target management program can be any one of management programs 2-5. The router can receive the management loading command of the target management program entered by the user and load the target management program into the default storage device.
[0131] If the target management program is management program 2, after configuring the target management program in the router, the interface corresponding to the target management program can be displayed on the terminal device, and users can configure various programs through the target management program.
[0132] Please see Figure 4 After configuring any management program on the router, the commands received by the management program can be converted and processed through a preset interface, so that the router can recognize the commands.
[0133] S304. Receive the business control instructions corresponding to the target protocol through the target management program.
[0134] You can configure a target management program in the router. Once the configuration is successful, the corresponding interface of the target management program can be displayed on the user interface of the terminal device.
[0135] Users can input business control commands on the interface corresponding to the target management program through terminal devices, and send business control commands through terminal devices.
[0136] For example, a service control directive could be to enable RIP.
[0137] It is worth noting that when receiving business control commands, the format of the commands can be converted through a conversion interface.
[0138] S305. According to the service control instructions, obtain the service control program corresponding to the target protocol from the preset storage device.
[0139] The preset storage device can also store the service control program corresponding to each routing protocol. The service control program can control the service processing program that loads the protocol content of its corresponding target protocol.
[0140] After the service control program corresponding to the target protocol is loaded into the router, the service processing program corresponding to the target service in the first configuration instruction of the target protocol content can be loaded through the service control program.
[0141] The protocol identifier of the target protocol can be included in the business control instructions.
[0142] Based on the protocol identifier of the target protocol, the service control program corresponding to the target protocol can be determined in the preset storage device and loaded into the router.
[0143] For example, suppose there are 5 service control programs in the preset storage device, namely service control program 1-5. The protocol identifier of the routing protocol corresponding to each service control program can be as shown in Table 2. If the protocol identifier in the service control instruction is protocol identifier 1, then the service control program of the target protocol can be determined to be service control program 1.
[0144] Table 2
[0145]
[0146] S306. Through the business control procedure, determine at least one target business corresponding to the target protocol.
[0147] For example, after loading the service control program, the router can receive service configuration instructions. Through the service control program, it can determine at least one target service from among multiple services corresponding to the target protocol.
[0148] In some possible implementations, the service configuration instruction can correspond to one or more target services, and can be configured according to the actual application.
[0149] S307. Obtain the business processing program corresponding to each target business from the preset storage device.
[0150] S308. For any target service, configure the corresponding service processing program.
[0151] The execution process of S306-S308 can be found in the execution process of S202-S204, and will not be repeated here.
[0152] The dynamic configuration method provided in this application embodiment only installs a preset management program when the router leaves the factory. When configuring the router, the required service processing programs can be installed through the preset management program, which can reduce the storage resource usage of the router. At the same time, the target management program can be configured through the preset management program, which can increase the flexibility of router configuration.
[0153] Figure 5 This is an interactive schematic diagram illustrating a dynamic configuration method provided in an embodiment of this application. Please refer to... Figure 5 This includes a pre-installed storage device, a network device, and a terminal device. The network device is configured with a pre-installed management program. After the terminal device establishes a communication connection with the network device, it can receive management loading commands input by the user and send these commands to the network device. The network device can receive the management loading command corresponding to the target management program through the pre-installed management program, and perform format conversion processing on the command to obtain the target loading command. The target loading command may include a program identifier. The network device can then retrieve the target management program from the pre-installed storage device using this program identifier.
[0154] After configuring the target management program in the network device, the terminal device can obtain user-input service control commands and send these commands to the network device. The network device, through the target management program, receives the service control commands corresponding to the target protocol, performs format conversion processing on the commands, and obtains a first control command, which includes the protocol identifier of the target protocol. The network device can then retrieve the service control program from a preset storage device based on the protocol identifier.
[0155] After configuring the service control program in the network device, the terminal device can obtain the service configuration command input by the user and send the service configuration command to the network device. The network device can receive the service configuration command corresponding to the target protocol, perform format conversion processing on the service configuration command to obtain the first configuration command, and determine at least one target service corresponding to the first configuration command according to the service control program.
[0156] Network devices can obtain the corresponding service processing program for each target service from a preset storage device based on at least one target service, and configure and process the corresponding service processing program for any target service.
[0157] Figure 6 This is a schematic diagram of a dynamic configuration device provided in an embodiment of this application. Please refer to... Figure 6The dynamic configuration device may include a first determining module 11, a second determining module 12, an acquisition module 13, and a configuration processing module 13.
[0158] The first determining module 11 is used to determine multiple service control programs corresponding to the target protocol through the preset management program of the network device;
[0159] The second determining module 12 is used to determine at least one target service corresponding to the target protocol through the business control program for any given business control program.
[0160] The acquisition module 13 is used to acquire the business processing program corresponding to each target business from the preset storage device;
[0161] The configuration processing module 14 is used to configure the business processing program corresponding to any target business.
[0162] The dynamic configuration device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0163] In one possible implementation, the first determining module 11 is specifically used for:
[0164] By pre-setting management procedures, the target management procedures for network devices can be determined;
[0165] The target management procedure identifies multiple business control procedures corresponding to the target agreement.
[0166] In one possible implementation, the first determining module 11 is specifically used for:
[0167] The system receives management loading instructions from the target management program through a pre-defined management program.
[0168] According to the management loading instructions, the target management program is retrieved from the preset storage device.
[0169] In one possible implementation, the first determining module 11 is specifically used for:
[0170] The management loading instruction is converted to obtain the target loading instruction;
[0171] The target management program is retrieved from the preset storage device using the target loading command.
[0172] In one possible implementation, the first determining module 11 is specifically used for:
[0173] Obtain the first format corresponding to the network device, which is a format that the network device can recognize;
[0174] The second format corresponding to the management loading instruction is converted into the first format to obtain the target loading instruction.
[0175] In one possible implementation, the first determining module 11 is specifically used for:
[0176] The target management program receives business control instructions corresponding to the target protocol.
[0177] According to the business control instructions, the business control program corresponding to the target protocol is obtained from the preset storage device.
[0178] In one possible implementation, the second determining module 12 is specifically used for:
[0179] Receive the service configuration instructions corresponding to the target protocol;
[0180] The business configuration command is converted to a format to obtain the first configuration command.
[0181] Based on the business control procedure, at least one target business corresponding to the first configuration instruction is determined.
[0182] The dynamic configuration device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0183] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Please refer to... Figure 7 The electronic device 20 may include a processor 21 and a memory 22. Exemplarily, the processor 21 and the memory 22 are interconnected via a bus 23.
[0184] Memory 22 stores instructions executed by the computer;
[0185] The processor 21 executes computer execution instructions stored in the memory 22, causing the processor 21 to perform the dynamic configuration method as shown in the above method embodiment.
[0186] Accordingly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the dynamic configuration method of the above-described method embodiments.
[0187] Accordingly, embodiments of this application may also provide a computer program product, including a computer program, which, when executed by a processor, can implement the dynamic configuration method shown in the above method embodiments.
[0188] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0189] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0190] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0191] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0192] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0193] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0194] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0195] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0196] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A dynamic configuration method, characterized by, Applied to network devices, including: The service control program corresponding to the target protocol is determined through the preset management program of the network device; The service control program determines at least one target service corresponding to the target protocol and retrieves the service processing program corresponding to each target service from the preset storage device. For any given target service, configure the corresponding service processing program.
2. The method of claim 1, wherein, The service control program corresponding to the target protocol is determined through the preset management program of the network device, including: The target management program for the network device is determined through the preset management program; The target management procedure is used to determine the business control procedure corresponding to the target protocol.
3. The method of claim 2, wherein, The target management program for the network device is determined through the preset management program, including: The preset management program receives the management loading instruction from the target management program. According to the management loading instruction, the target management program is retrieved from the preset storage device.
4. The method of claim 3, wherein, According to the management loading instruction, the target management program is retrieved from the preset storage device, including: The management loading instruction is format-converted to obtain the target loading instruction; The target management program is retrieved from the preset storage device via the target loading instruction.
5. The method of claim 4, wherein, The management loading instruction is format-converted to obtain the target loading instruction, including: Obtain the first format corresponding to the network device, wherein the first format is a format that the network device can recognize; The second format corresponding to the management loading instruction is converted into the first format to obtain the target loading instruction.
6. The method of claim 2, wherein, The target management procedure determines the business control procedure corresponding to the target protocol, including: The target management program receives the service control instructions corresponding to the target protocol. According to the service control instruction, the service control program corresponding to the target protocol is obtained from the preset storage device.
7. The method according to any one of claims 1 to 6, characterized in that, The service control procedure determines at least one target service corresponding to the target protocol, including: Receive the service configuration instruction corresponding to the target protocol; The service configuration command is format-converted to obtain the first configuration command; Based on the business control procedure, at least one target business corresponding to the first configuration instruction is determined.
8. A dynamic configuration apparatus, characterized by comprising: It includes a first determination module, a second determination module, an acquisition module, and a configuration processing module: The first determining module is used to determine multiple service control programs corresponding to the target protocol through the preset management program of the network device; The second determining module is used to determine, for any given service control program, at least one target service corresponding to the target protocol through the service control program. The acquisition module is used to acquire the business processing program corresponding to each target business from a preset storage device; The configuration processing module is used to configure the business processing program corresponding to any target business.
9. An electronic device, comprising: include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer-executable instructions stored in the memory such that the processor performs the method of any of claims 1-7.
10. A computer program product, characterised in that, A computer program is included which, when executed by a processor, implements the method of any of claims 1-7.