Parameter configuration method, device and computer equipment
By displaying and dynamically adjusting the constraint file model content of network equipment, the problem of insufficient data transmission reliability and real-time performance in the cluster network is solved, and the real-time configuration method of non-interrupted services is realized, which improves the continuity and adaptability of the network.
Patent Information
- Application Number
- CN202510185725.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-02-19
AI Technical Summary
The prior art has limitations in the reliability, real-time and stability of data transmission in clustered networks, especially in the case of incompatibility of configuration commands and high requirements for engineer expertise, resulting in high maintenance costs and high error rates.
A parameter configuration method is proposed, by displaying the constraint file model content of the target network device, allowing users to adjust the configuration parameters in a custom way to ensure that the network device does not interrupt service during the configuration update process. The method includes displaying the first configuration parameter of the current running state, modifying it to a second configuration parameter suitable for the target device in response to the configuration parameter modification operation, and applying the new configuration parameter at the next startup.
It realizes a real-time configuration method of adjusting network device parameters according to requirements without interruption of service, improving the continuity and real-timeness of the network and adapting to different network environments and business needs.
Smart Images

Figure CN119676078B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and in particular to a parameter configuration method, device and computer equipment. Background Art
[0002] With the large-scale development of cluster networks and the vertical applications of various big data industries, higher requirements are placed on the real-time, compatibility, and stability of network data transmission. However, there are still limitations in the reliability, real-time, and stability of data transmission in related technologies. Therefore, a new parameter configuration method for cluster networks is needed. Summary of the invention
[0003] The present application aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the present application proposes a parameter configuration method, device and computer equipment. The main technical solutions adopted by the present application include:
[0004] In a first aspect, an embodiment of the present application provides a parameter configuration method, which is applied to a configuration server, wherein the configuration server is communicatively connected to a target network device; the method comprises: displaying the constraint file model content corresponding to the target network device; wherein the constraint file model content comprises a first configuration parameter corresponding to the current operating state of the target network device; in response to a configuration parameter modification operation, modifying the first configuration parameter to a second configuration parameter suitable for the target network device; wherein, in the process of modifying the first configuration parameter to the second configuration parameter, the target network device continues to maintain the current operating state with the first configuration parameter; and sending the second configuration parameter in the constraint file model format to the target network device, so that after receiving the second configuration parameter, the target network device still maintains the current operating state with the first configuration parameter, and at the next startup, the target network device is started according to the second configuration parameter to enter the operating state corresponding to the second configuration parameter.
[0005] Optionally, the configuration server is communicatively connected to multiple network devices; before displaying the constraint file model content corresponding to the target network device, the method also includes: in response to a network device selection operation, determining a target network device whose configuration parameters need to be modified among multiple network devices; and establishing a network management protocol session between the configuration server and the target network device.
[0006] Optionally, the first configuration parameter is stored in the configuration information library of the target network device in a constraint file model format; the method also includes: sending a parameter locking instruction to the target network device; wherein the parameter locking instruction is used to instruct the target network device to lock the configuration information library and continue to maintain the current operating state with the first configuration parameter.
[0007] Optionally, the configuration information database includes a main configuration database, a backup configuration database and a startup configuration database; the parameter locking instruction is used to instruct the target network device to lock the main configuration database or simultaneously lock the main configuration database, the backup configuration database and the startup configuration database; the main configuration database is used to save the configuration parameters corresponding to the current operating state of the target network device; the backup configuration database is used to save the backup data of the configuration parameters corresponding to the current operating state of the target network device; the startup configuration database is used to save the recovery configuration parameters used after the target network device is restarted.
[0008] Optionally, after the target network device modifies the first configuration parameter into the second configuration parameter, the method further includes: sending a parameter unlocking instruction to the target network device; wherein the parameter unlocking instruction is used to release the locking state of the configuration information base.
[0009] Optionally, the method further includes: if the second configuration parameter in the constraint file model format passes the compliance check of the target network device, receiving a confirmation response sent by the target network device.
[0010] Optionally, the first configuration parameter is stored in the main configuration database of the target network device in the format of a constraint file model; after receiving a confirmation response, the method further includes: sending a parameter modification instruction to the target network device so that the target network device modifies the first configuration parameter in the main configuration database to a second configuration parameter, and during the process of the target network device modifying the first configuration parameter, the target network device still maintains the current operating state with the first configuration parameter.
[0011] Optionally, the first configuration parameter is at least one of a QoS configuration parameter, a port list configuration parameter, and a traffic management configuration parameter; the traffic management configuration parameter includes at least one of a traffic speed limit, a bandwidth allocation, and a bandwidth priority strategy.
[0012] In a second aspect, an embodiment of the present application provides a parameter configuration device, which is applied to a configuration server, and the configuration server is communicatively connected to a target network device; the device includes: a configuration parameter display module, which is used to display the constraint file model content corresponding to the target network device; wherein the constraint file model content includes a first configuration parameter corresponding to the current operating state of the target network device; a configuration parameter modification module, which is used to modify the first configuration parameter to a second configuration parameter suitable for the target network device in response to a configuration parameter modification operation; wherein, in the process of modifying the first configuration parameter to the second configuration parameter, the target network device continues to maintain the current operating state with the first configuration parameter; a configuration parameter operation module, which is used to send a second configuration parameter in the constraint file model format to the target network device, so that after receiving the second configuration parameter, the target network device still maintains the current operating state with the first configuration parameter, and when it is started next time, the target network device starts according to the second configuration parameter to enter the operating state corresponding to the second configuration parameter.
[0013] In a third aspect, the present application further provides a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0014] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of any of the above methods when the computer program is executed by a processor.
[0015] In a fifth aspect, the present invention provides a computer program product, comprising a computer program, which implements the steps of any of the above methods when executed by a processor.
[0016] In the above embodiment, by displaying the constraint file model content corresponding to the target network device, the user can be allowed to dynamically adjust the configuration parameters according to the actual operating status and needs of the network device, thereby providing the user with a high degree of flexibility to adapt to different network environments and business needs. At the same time, in the process of modifying the first configuration parameter to the second configuration parameter, it is ensured that the target network device can continue to maintain the current operating state with the first configuration parameter, so that the network device does not need to interrupt the service during the configuration update process, thereby ensuring the continuity and real-time performance of the network. Thus, a real-time configuration method that can flexibly and dynamically adjust the parameters of the network device according to the needs without interrupting the service is realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1a A flowchart of a parameter configuration method provided according to an embodiment of the present application;
[0019] Figure 1b A schematic diagram of cluster network device networking provided according to an embodiment of the present application;
[0020] Figure 2 A flowchart of a method for determining a target network device according to another embodiment of the present application;
[0021] Figure 3 A structural block diagram of a parameter configuration device provided according to another embodiment of the present application;
[0022] Figure 4 The figure is a diagram of the internal structure of a computer device according to one embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0024] With the development of new-generation information network technology and the massive data integration generated by the Internet of Everything, data management planning is becoming more and more reasonable, which can meet the data transmission needs of different application scenarios. Distributed parallel computing is a key means to realize AI large model training, which usually includes multiple parallel computing modes such as data parallelism, pipeline parallelism and tensor parallelism. All parallel modes require multiple collective communication operations between multiple computing devices. Facing the future scale construction of intelligent computing centers and the development and deployment needs of AI large models, creating a new intelligent computing center network with non-blocking, high bandwidth and ultra-low latency can effectively help AIGC (AI Generated Content) and other high-performance businesses to develop rapidly.
[0025] However, data centers in related technologies mostly use a solidified network architecture, which has drawbacks in terms of data transmission reliability, real-time and stability. The CLI (Command-Line Interface) configuration method used by the switching and routing equipment in the data center has the problem of incompatible configuration commands, and requires high professional knowledge of engineers, high manual maintenance costs, and is prone to high error rates during the configuration process, which cannot effectively adapt to the development trend of contemporary network technology.
[0026] Specifically, the session protocol used in the related art specifies the structure of the message in the protocol and the architecture of reading and parsing according to the byte stream. In order to better express a richer message structure in the byte stream, TLV (Type-Length-Value) and other methods are used to define objects. However, the scalability of this method is limited. For example, if the object is expanded or modified, the code needs to be changed. Moreover, the byte stream-based session protocol used in the related art can be regarded as a program with a clear execution process, so the data model can be compared to a programming language for writing programs. If a large amount of private data is extended to a protocol, then first of all, there will be major problems with the compatibility of the protocol. Secondly, the code of its protocol stack is almost completely rewritten, which is time-consuming and labor-intensive.
[0027] Based on this, according to an embodiment of the present application, a parameter configuration method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0028] In this embodiment, a parameter configuration method is provided, which is applied to a configuration server, where the configuration server is communicatively connected to a target network device. Figure 1a According to the flow chart of the parameter configuration method of the embodiment of the present application, Figure 1a As shown, the process includes the following steps:
[0029] S110: Display the constraint file model content corresponding to the target network device.
[0030] In some cases, in view of the limitations of parameter configuration methods in related technologies, if you want to improve the flexibility, intelligence and efficiency of the network, you can use a custom parameter configuration method that separates the data management plane and the data service plane in the cluster network.
[0031] Specifically, the cluster network may include a configuration server and a target network device (client). The configuration server may be a physical device of the management plane, which may be connected to a target network device with the network management protocol enabled through a CLI interface to obtain and operate the configuration data of the device. The target network device may refer to any client device such as a switch, router, and storage device in the cluster network. For example, Figure 1b This is a schematic diagram of cluster network equipment networking, please refer to Figure 1b The target network device (client) can be any of the Spine devices, Leaf devices, and GPU (Graphics Processing Unit) server devices that support network management protocols such as Openflow, Netconf (Network Configuration Protocol), SNMP (Simple Network Management Protocol), RESTCONF, gNMI, BGP-LS, and XMPP, and can support mandatory SSH and TLS as the transmission protocol.
[0032] Further, Figure 1b The application APPs shown in the figure can be network control and management applications (Apps) developed for business needs. The northbound interface can refer to the interface connected to the core devices in the cluster network. Specifically, through the northbound abstraction, the application APPs can obtain the global network view to simplify the development of management, control and configuration services. Among them, the global network view can provide the application with relevant network topology information, including hosts, switching and forwarding devices, and network-related status indicators. The application is an intelligent management tool that can be programmed based on the global network view through the API interface (Application Programming Interface). The southbound interface can refer to the interface connected to the client devices (such as personal computers, servers, etc.) in the cluster network. Through the southbound interface, the core of the configuration server can be isolated from the details of different devices (clients) and protocols.
[0033] For example, Figure 1bAs shown in , the southbound interface allows the system to create a unified network management view using various network components, such as Spine devices, Leaf devices, and GPU servers. The configuration server, through southbound abstraction, can uniformly convert the various network elements in the cluster network into standardized objects. It can be understood that through this method, the distributed core system of the configuration server can maintain the state of the network elements, and can achieve communication connection and configuration without knowing the details of each network element represented by the underlying driver. Furthermore, the configuration server and its southbound abstraction can also allow various southbound protocols and client devices to use plug-ins. Among them, the plug-in can map and convert the general network element description and operation on the client device into a language that the client device can understand, so that when the client device uses different protocols (such as OpenFlow protocol, etc.), the configuration server can also control or manage various different client devices.
[0034] It is understandable that the northbound interface and southbound interface of the configuration server provide the initial basis for isolating the application, core layer and adapter from each other, that is, separating the management plane of data from the business plane of data. Through this separated modular design, the configuration server can be used as a software system, so that developers and service providers can more conveniently carry out post-development according to their needs. And the stability of the system can be maintained and upgraded through continuous parameter debugging. At the same time, since the configuration server is built as a system composed of multiple independent components, and the direct dependency between modules is realized through the north-south interface module, the modules also maintain relatively small dependencies. The dependency between them can form an acyclic graph, thus avoiding complex dependency chains, making the system structure clearer and facilitating future expansion and upgrades.
[0035] Based on this, a parameter configuration method applied to a configuration server, and the configuration server is communicatively connected to a target network device, can first display the constraint file model content corresponding to the target network device. Among them, the constraint file can refer to a standardized document that defines the structure, syntax and semantics of the data model, as well as the hierarchical organization and constraints of the data. It can be understood as a standard-based, extensible hierarchical data modeling language used to model the configuration and status data used for network management protocol operations, remote procedure calls (RPCs) and server event notifications. Exemplarily, the constraint file can be regarded as a template for parameter configuration, which not only clarifies the grammatical structure of the data, but also describes the semantic meaning of the data in detail. Through the constraint file model content, the association between data and constraints can be explicitly defined, so that users can quickly and directly create configuration data that meets the constraint requirements and is grammatically correct in a customized manner.
[0036] Furthermore, the constraint file can not only exist as a complete independent unit, but also introduce the definition of other modules and sub-modules, and allow the existing data model to be extended by adding additional nodes. Specifically, although the device configuration data is stored in the form of an XML (eXtensible Markup Language) document, the specific nodes and allowed values in the document can be flexibly defined, and support conversion to YIN format using XML-based syntax. Exemplarily, IETF (Internet Engineering Task Force) can be used, in which many models that allow flexible definition of nodes are directly created to further support the standardization and unification of network management protocol interfaces of common network devices. That is, the system of a standard computer can be described in the network interface configuration defined in the IETF-system model (RFC7317) or the IETF-interfaces model (RFC7223). For each system, some specific parameters are required in the network to ensure that the network protocol can work properly. These parameters need to be configured according to the specific network protocol requirements to ensure that the network can operate efficiently and stably to meet the data transmission requirements under large-scale networking.
[0037] It is important to understand that since the cluster network architecture uses northbound and southbound interfaces, in conjunction with constraint files, the interaction between the client and the configuration server becomes more standardized through standardized interfaces (northbound and southbound interfaces) and data models (constraint files), so that the management plane of data and the business plane of data can be separated. Therefore, the configuration data in the constraint file no longer needs to strictly focus on the parameters of the network itself, that is, in addition to the RPC defined by the network management protocol, it can also describe its characteristics, such as the version information of the protocol session, the identifier information of the device, the timestamp, the transmission protocol or security configuration, whether SSH or TLS security encryption is supported, etc.
[0038] Specifically, the constraint file model content includes a first configuration parameter corresponding to the current operating state of the target network device.
[0039] The first configuration parameter may refer to a configuration parameter of the target network device in the current operating state. Specifically, the first configuration parameter may define the operating behavior of the device, such as QoS settings, port configuration, traffic management, etc., and may also reflect the configuration settings currently being used by the device.
[0040] It should be understood that the model data of the cluster network can include both state data and configuration data. Among them, state data refers to the inherent attribute data of the client and the dynamic information data of the current operation, etc. This type of data is only for call query. Configuration data refers to static information data that defines the behavior and operation mode of network devices. Since configuration data allows users to customize configurations according to needs, it itself has different representations. Exemplarily, the configuration data may include effective configuration data corresponding to the current state data after the client applies it; it may also include pre-effective configuration data that has been modified by the network administrator or user but has not yet been applied to the client and is only waiting to be submitted for effectiveness; it may also include the startup configuration data of the client's own application when the initial configuration state is started.
[0041] Therefore, based on this, after the network control management application on the configuration server responds to the request of the network administrator or user, it will display the constraint file model content corresponding to the target network device. Among them, the constraint file model content includes the first configuration parameter of the target network device, and the first configuration parameter can be the configuration parameter of the target network device in the current operating state, that is, the effective configuration data currently being used by the device.
[0042] S120. In response to the configuration parameter modification operation, modify the first configuration parameter to a second configuration parameter suitable for the target network device.
[0043] Among them, the second configuration parameter may refer to a new configuration parameter obtained by a network administrator or user after modifying the first configuration parameter according to new business requirements or network changes, that is, obtaining the second configuration parameter. Exemplarily, the second configuration parameter may also include a backup QoS configuration, a port list configuration, and a traffic management configuration (traffic speed limit, bandwidth allocation, and bandwidth priority strategy) to optimize device performance, adjust new security policies, and traffic management rules. Specifically, the network administrator or user may modify and adjust the configuration parameters of the target network device on the network control management application on the configuration server side according to the network performance monitoring results or business demand changes, and modify the first configuration parameter to a second configuration parameter suitable for the target network device.
[0044] It should be understood that in the process of modifying the first configuration parameter to the second configuration parameter, since the management plane of data and the business plane of data are separated by adopting northbound and southbound interfaces, while the network administrator or user customizes the first configuration parameter according to new business requirements or network changes, the target network device continues to operate normally in the current operating state with the first configuration parameter.
[0045] S130. Send a second configuration parameter in a constraint file model format to the target network device, so that after receiving the second configuration parameter, the target network device still maintains the current operating state with the first configuration parameter, and when the target network device is started next time, it starts according to the second configuration parameter to enter the operating state corresponding to the second configuration parameter.
[0046] It is understandable that, since the second configuration parameter is generated by customizing and modifying the first configuration parameter, the configuration server also uses the constraint file model format when sending the modified second configuration parameter to the corresponding target network device. That is, the second configuration parameter is also encapsulated in the constraint file model and stored in the form of an XML document.
[0047] Furthermore, since the management plane of data and the business plane of data are separated in operation, the target network device still maintains the current operation state with the first configuration parameter after receiving the second configuration parameter. Until the next startup, the second configuration parameter is used to overwrite the first configuration parameter, and the device is started according to the second configuration parameter to enter the operation state corresponding to the second configuration parameter, that is, the network device is allowed to smoothly transition to the new configuration state without interrupting the service.
[0048] In the above implementation, by displaying the constraint file model content corresponding to the target network device, the user can be allowed to dynamically adjust the configuration parameters according to the actual operating status and needs of the network device, thereby providing users with a high degree of flexibility to adapt to different network environments and business needs. At the same time, in the process of modifying the first configuration parameter to the second configuration parameter, it is ensured that the target network device can continue to maintain the current operating state with the first configuration parameter, so that the network device does not need to interrupt service during the configuration update process, thereby ensuring the continuity and real-time performance of the network. Thus, a real-time configuration method that can flexibly and dynamically adjust network device parameters according to needs without interrupting service is realized.
[0049] In some implementations, the configuration server is communicatively connected to multiple network devices; before displaying the constraint file model content corresponding to the target network device, please refer to the attached Figure 2 , the method further comprises:
[0050] S210 . In response to a network device selection operation, determine a target network device whose configuration parameters need to be modified among multiple network devices.
[0051] The network device selection operation may refer to a process in which a network administrator or user independently selects one or more specific devices for configuration management among multiple network devices. The target network device may refer to a network device that is selected after the network device selection operation and that can accept new configuration parameters. Specifically, the network administrator or user may input the IP address of the target network device on the network control management application at the configuration server end to determine the target network device for which the configuration parameters need to be modified.
[0052] S220: Establish a network management protocol session between the configuration server and the target network device.
[0053] It can be understood that the network management protocol session may refer to a communication connection established between the configuration server and the target network device for transmitting configuration data and management commands.
[0054] Exemplarily, such a session follows a specific network management protocol, such as SNMP (Simple Network Management Protocol), NETCONF or RESTCONF, to ensure accurate data transmission and correct management of the device. Specifically, a suitable network management protocol can be selected according to the network environment and device support, and necessary communication parameters can be set. Exemplarily, the IP address, port number, community string (for SNMP) or user name and password (for NETCONF or RESTCONF) of the target device can be included.
[0055] Further, the configuration server will send an initialization request to the target network device to establish a session, thereby verifying the identities and communication parameters of both parties. Once the identity verification is successful, the target network device will confirm the establishment of the session and can prepare to receive management commands.
[0056] When a link is established between the configuration server and the target network device through a network management protocol session, the target network device can reply to the configuration server with a message that contains the features and capabilities supported by the network device itself, mainly including version information of the protocol session, device identifier information, timestamp, transmission protocol or security configuration, whether SSH or TLS security encryption is supported, and other information.
[0057] It can be understood that since the target network device (client) can be a network device that supports mandatory SSH and TLS as transmission protocols, that is, the network management protocol session can include protocols using SSH (Secure Shell) and TLS (Transport Layer Security) as secure transport layers, the client can use any of these two transmission protocols to establish a network management protocol session link when the connection is successful, and send a network management protocol RPC (remote procedure call) command to the configuration server so that the configuration server provides an accurate response based on this command.
[0058] Optionally, the client can also implement most of the key functions in the RFC 6241 standard, including verifying the new configuration before applying it to ensure the security and compatibility of the new configuration. Or being able to return to the previous configuration when the application of the new configuration fails to ensure the stability of the network. At the same time, access control is also supported, that is, each user has a designated available part of the configuration for reading and writing, and cannot access any other configuration, ensuring that each user can only access and modify the configuration part they are authorized to, thereby enhancing the security and controllability of network management.
[0059] In the above implementation, the network administrator or user can accurately select a specific network device for configuration management, and conveniently call and display the constraint file model content corresponding to the target network device by configuring the network control management application on the server side. This process not only simplifies configuration management, but also ensures the accuracy and real-time nature of the configuration.
[0060] In some implementations, the first configuration parameter is stored in a configuration information repository of the target network device in a constraint file model format. The method further includes: sending a parameter locking instruction to the target network device.
[0061] The parameter locking instruction is used to instruct the target network device to lock the configuration information base and continue to maintain the current operating state with the first configuration parameter.
[0062] It can be understood that the Configuration Information Base (CIB) is a key component in the network management system, which is used to store various configuration data and status information of network devices.
[0063] Specifically, after a target network device whose configuration parameters need to be modified is selected and a network management protocol session link is established between the configuration server and the target network device, in order to ensure that during the configuration modification process, the first configuration parameter currently running by the target network device will not be affected by the operations of other users or administrators, the configuration server can send a parameter lock instruction to the target network device to instruct the target network device to lock its configuration information base to prevent other operations from changing the configuration.
[0064] In the above implementation, after the network management protocol session is established between the configuration server and the target network device, the parameter locking instruction is implemented to ensure that during the configuration modification period, the device will continue to operate with the first configuration parameters, while preventing intervention by other users or administrators, avoiding potential configuration conflicts and errors, thereby ensuring the accuracy and reliability of the configuration process.
[0065] In some implementations, the configuration information repository includes a primary configuration database, a backup configuration database, and a startup configuration database.
[0066] The parameter locking instruction is used to instruct the target network device to lock the main configuration database or to lock the main configuration database, the backup configuration database and the startup configuration database at the same time.
[0067] Specifically, during the network management process, the configuration server communicates with the target network device through a network management protocol session and sends a parameter locking instruction to lock the main configuration database, or simultaneously locks the main configuration database, the backup configuration database, and the startup configuration database to prevent other operations from changing the configuration when making configuration changes, thereby ensuring the accuracy of the configuration process.
[0068] Among them, the main configuration database can be used to save the configuration parameters corresponding to the current operating state of the target network device, that is, to save the effective configuration data corresponding to the current state data after the client applies it. The backup configuration database can be used to save the backup data of the configuration parameters, that is, to save the pre-effective configuration data that has been modified by the network administrator or user but has not yet been applied to the client and is only waiting to be submitted for effectiveness. It should be understood that the configuration parameters stored in the backup configuration database are consistent with those in the main configuration database, that is, the main configuration database and the backup configuration database can be redundantly configured to each other. The startup configuration database can be used to save the recovery configuration parameters used after the target network device is restarted. Among them, the recovery configuration parameters refer to the data that can ensure the normal operation of the client device when the device is initialized and started.
[0069] Specifically, when the user wants to modify the configuration parameters of the target network device, the user can call the first configuration parameters of the target network device currently running stored in the main configuration database of the client on the network control management application of the configuration server, and modify them. In this process, the first configuration parameters will also be backed up in real time in the backup configuration database. If the main configuration database fails and cannot be used at this time, the data stored in real time in the backup configuration database can be used to continue to run. Furthermore, if the backup configuration database also fails and cannot be used at this time, the recovery configuration parameters of the initial state can be called from the startup configuration database to ensure that the target network device will not be unable to run due to damage to the main configuration database and the backup configuration database.
[0070] Exemplarily, taking the port configuration parameters as an example, when a certain network device is initialized and started, port 1 is used, so the port configuration parameters stored in the main configuration database, backup configuration database and startup configuration database of the network device are all port 1. Further, the user changes port 1 to port 2, then the port configuration parameters stored in the main configuration database and the backup configuration database are all port 2, and the port configuration parameters stored in the startup configuration database are still port 1. If the main configuration database of the network device suddenly cannot be opened at this time, the port configuration parameters of port 2 can be obtained from the backup configuration database to continue running. If the main configuration database and the backup configuration database of the network device are damaged and cannot be opened at the next moment, the port configuration parameters can only be obtained from the startup configuration database for port 1. Configuration parameters are run, and the configuration parameters are modified again, and port 1 is changed to port 2 again to meet new needs.
[0071] In the above implementation, the locking mechanism is used to prevent other operations or users from changing the configuration when the configuration is changed, thereby maintaining the stable operation of the network device when the configuration parameters are modified. At the same time, by designing three databases, both the old configuration parameters before the modification and the new configuration parameters after the modification are backed up. Furthermore, if there is a problem with the new configuration parameters, it can be quickly rolled back to the old configuration parameters, thereby ensuring the stability and reliability of the network.
[0072] In some implementations, after the target network device modifies the first configuration parameter into the second configuration parameter, the method further includes: sending a parameter unlocking instruction to the target network device.
[0073] The parameter unlocking instruction is used to release the lock state of the configuration information base.
[0074] Specifically, after the target network device successfully modifies the first configuration parameter to the second configuration parameter, the configuration server sends a parameter unlocking instruction to the target device. The parameter unlocking instruction is used to inform the target network device that the configuration modification process has been completed and the lock status of the main configuration database, the backup configuration database, and the startup configuration database can be released.
[0075] Furthermore, after receiving the parameter unlocking instruction, the target network device will correspondingly release the locked state of the configuration information base, restore it to a normal state, and allow other users or administrators to operate data services or make possible configuration changes later.
[0076] In the above implementation, the sending of the unlock instruction indicates the successful completion of the configuration modification process, thereby allowing the network device to release the lock state of the configuration information base, restore normal operation, and provide the possibility for subsequent configuration changes. By sending the parameter unlock instruction after the target network device successfully modifies the first configuration parameter to the second configuration parameter, not only the integrity of the configuration change and the stability of the network are ensured, but also the flexibility and security of network configuration management are improved.
[0077] In some implementations, the method further includes: if the second configuration parameter in the constraint file model format passes the compliance check of the target network device, receiving a confirmation response sent by the target network device.
[0078] It is understandable that after the configuration parameters are modified, the modified configuration parameters may not be correctly applied to the target network device. For example, taking the port configuration parameters as an example, when a certain network device is initialized and started, port 1 is used. When modifying, port 1 is changed to port 10, but the network device may not have port 10, so the modification at this time is illegal and cannot be correctly applied to the target network device.
[0079] Therefore, after the first configuration parameter is modified to the second configuration parameter, the configuration server will send a compliance check command to the target network device so that the target network device can perform compliance check on the modified second configuration parameter.
[0080] Compliance checking refers to a series of legality checks on new configuration parameters before they are applied to verify whether they comply with the hardware and software requirements of network devices, network policies, security standards, and any related service level agreements (SLAs). Specifically, compliance checking can include basic syntax verification, structure and rule checking, entity and character reference verification, element data type and range constraint checking, etc.
[0081] Specifically, when making modifications, the configuration server will send the second configuration parameters in the constraint file model format to the target network device. After receiving the second configuration parameters, the target network device can parse these parameters through its verification module and perform compliance verification on the new configuration parameters according to predefined rules and standards to ensure the legality, compatibility and reliability of the configuration parameter settings. If the second configuration parameters pass all compliance checks, the target network device will send a confirmation response to the configuration server, indicating that the new configuration parameters have been accepted and are ready to be applied. However, if the second configuration parameters cannot pass the compliance check of the target network device, the target network device will not send a confirmation ACK response frame, indicating that the modification of the second configuration parameters is illegal and the modification is invalid.
[0082] In the above implementation, by implementing compliance verification, the legality, compatibility and reliability of network device configuration parameters are also ensured. At the same time, it is ensured that only configuration parameters that meet the network device hardware and software requirements, network policies, security standards and service level agreements can be applied, thereby significantly improving the security and effectiveness of network management.
[0083] In some implementations, the first configuration parameter is stored in a master configuration database of the target network device in a constraint file model format. After receiving the confirmation response, the method further includes: sending a parameter modification instruction to the target network device so that the target network device modifies the first configuration parameter in the master configuration database into a second configuration parameter, and during the process of the target network device modifying the first configuration parameter, the target network device still maintains the current operating state with the first configuration parameter.
[0084] Specifically, after receiving a confirmation response based on compliance verification from the target network device, the configuration server will send a parameter modification instruction to the target network device to instruct the device to start modifying the current configuration parameter (first configuration parameter) in the main configuration database to a new configuration parameter (second configuration parameter). After receiving the parameter modification instruction, the target network device will start the update process in its main configuration database, thereby replacing the first configuration parameter with the second configuration parameter. Exemplarily, the second configuration parameter can be directly overwritten with the second configuration parameter, which is also stored in the main configuration database in the constraint file model format and synchronized to the backup configuration database.
[0085] Optionally, since the main configuration database and the backup configuration database are mutually redundant, the backup configuration database can also allow repeated operations of custom parameter configuration. After confirming that the modified second configuration parameters pass the compliance test, the main configuration database can also be overwritten with the parameter configuration of the backup database to achieve data backup.
[0086] It should be noted that in this process, since the management plane of the data and the business plane of the data are separated in operation, the operating state of the target network device will not be disturbed during the process of the target network device modifying the first configuration parameter in the main configuration database to the second configuration parameter, and it can still maintain the current operating state according to the first configuration parameter. Exemplarily, after the target network device modifies the first configuration parameter in the main configuration database to the second configuration parameter, a data update request can be displayed in a pop-up window on its front end. If the user agrees to update, the target network device is restarted in response to the consent request, and runs with the modified second configuration parameter as the configuration parameter. If the user does not agree to update, the second configuration parameter can be temporarily stored in the configuration database, and the current running process will not be forcibly interrupted to update the configuration parameter. Instead, the next time the target network device is started, it will be directly started and run according to the modified second configuration parameter as the configuration parameter.
[0087] In the above implementation, after confirming that the second configuration parameter has passed the compliance check and receiving the confirmation response, the configuration server will instruct the target network device to update the parameters in the main configuration database to the new configuration, while ensuring that the device continues to run with the first configuration parameter to ensure that the service is not interrupted. The device will not be restarted and the new configuration parameters will not be applied until the user confirms the update, thereby ensuring the stability of the network device and the flexibility of parameter updates.
[0088] In some implementations, the first configuration parameter is at least one of a QoS configuration parameter, a port list configuration parameter, and a traffic management configuration parameter.
[0089] Among them, QoS configuration parameters (Quality of Service Configuration Parameters) can refer to configuration parameters that define the quality of service of data transmission in the network, which are used to ensure that key applications of the target network device can obtain the necessary bandwidth and low latency to ensure its application performance. Specifically, QoS configuration parameters can include data packet classification, priority allocation, queue management, etc., to achieve differentiated processing of network traffic.
[0090] Port List Configuration Parameters may be configuration parameters related to the configuration of each port on a network device, including enabling, disabling, rate limiting, etc. of the port, which are used to allow network administrators to define which ports can be used for data transmission and the transmission characteristics of how these ports transmit.
[0091] Traffic Management Configuration Parameters may refer to configuration parameters used to control and optimize network traffic, which may include monitoring, analyzing, and adjusting network traffic to prevent network congestion and ensure that service level agreements (SLAs) are met, thereby achieving effective utilization of network resources and maximizing network performance.
[0092] Furthermore, the traffic management configuration parameters include at least one of traffic speed limit, bandwidth allocation and bandwidth priority strategy.
[0093] Traffic Shaping can refer to a traffic management technology used to control the transmission rate of network traffic to prevent certain traffic from occupying too much bandwidth and affecting other traffic. Bandwidth Allocation can refer to a traffic management technology that allocates the total bandwidth of the network to different users, applications or services. Bandwidth Priority Policy can be a traffic management technology that defines the priorities of different types of traffic. It can set the priority of traffic according to its type, source or destination, thereby ensuring that critical business traffic can be given priority in the network.
[0094] In the above implementation, by comprehensively using QoS configuration parameters, port list configuration parameters and traffic management configuration parameters, users can customize configuration parameters according to business needs and transmission needs, realize refined management and optimized allocation of network resources, and ensure the performance of key applications, thereby improving the overall service quality of the network. At the same time, since these parameters can be modified in real time without interrupting the business of the target network device, it not only maximizes the utilization of network resources, but also significantly improves the stability and reliability of the network, providing an efficient, stable and responsive operating environment for the target network device.
[0095] The embodiment of this specification also provides a parameter configuration method, which is applied to a configuration server, and the configuration server is connected to multiple network devices. The first configuration parameter is stored in the configuration information library of the target network device in the format of a constraint file model. The first configuration parameter is at least one of a QoS configuration parameter, a port list configuration parameter, and a traffic management configuration parameter. The traffic management configuration parameter includes at least one of a traffic speed limit, a bandwidth allocation, and a bandwidth priority strategy. The configuration information library includes a main configuration database, a backup configuration database, and a startup configuration database. The method includes the following steps:
[0096] S302: In response to a network device selection operation, determine a target network device whose configuration parameters need to be modified among multiple network devices.
[0097] S304: Establish a network management protocol session between the configuration server and the target network device.
[0098] S306: Send a parameter locking instruction to the target network device.
[0099] The parameter locking instruction is used to instruct the target network device to lock the main configuration database or lock the main configuration database, the backup configuration database and the startup configuration database at the same time, and continue to maintain the current operating state with the first configuration parameter. The main configuration database is used to save the configuration parameters corresponding to the current operating state of the target network device; the backup configuration database is used to save the backup data of the configuration parameters corresponding to the current operating state of the target network device; the startup configuration database is used to save the recovery configuration parameters used by the target network device after restarting.
[0100] S308: Display the constraint file model content corresponding to the target network device.
[0101] The constraint file model content includes a first configuration parameter corresponding to the current operating state of the target network device.
[0102] S310. In response to the configuration parameter modification operation, modify the first configuration parameter to a second configuration parameter suitable for the target network device.
[0103] In the process of modifying the first configuration parameter to the second configuration parameter, the target network device continues to maintain the current operating state with the first configuration parameter.
[0104] S312: Send a second configuration parameter in a constraint file model format to the target network device, so that the target network device performs compliance verification on the second configuration parameter.
[0105] S314: If the second configuration parameter in the constraint file model format passes the compliance check of the target network device, a confirmation response sent by the target network device is received.
[0106] S316. After receiving the confirmation response, send a parameter modification instruction to the target network device so that the target network device modifies the first configuration parameter in the main configuration database to the second configuration parameter. During the process of the target network device modifying the first configuration parameter, the target network device still maintains the current operating state with the first configuration parameter.
[0107] S318: After the target network device modifies the first configuration parameter into the second configuration parameter, send a parameter unlocking instruction to the target network device.
[0108] The parameter unlocking instruction is used to release the lock state of the configuration information base.
[0109] S320: After the target network device changes the first configuration parameter to the second configuration parameter, the target network device still maintains the current operating state with the first configuration parameter, and when it is started next time, the target network device starts according to the second configuration parameter to enter the operating state corresponding to the second configuration parameter.
[0110] It should be understood that, although the various steps in the above flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above flowchart may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0111] The embodiment of this specification also provides a parameter configuration device 300, which is applied to a configuration server, and the configuration server is communicatively connected to a target network device. Figure 3 As shown, it includes: a configuration parameter display module 310, a configuration parameter modification module 320 and a configuration parameter operation module 330, wherein:
[0112] The configuration parameter display module 310 is used to display the constraint file model content corresponding to the target network device; wherein the constraint file model content includes the first configuration parameter corresponding to the current operating state of the target network device.
[0113] The configuration parameter modification module 320 is used to modify the first configuration parameter to a second configuration parameter suitable for the target network device in response to the configuration parameter modification operation; wherein, during the process of modifying the first configuration parameter to the second configuration parameter, the target network device continues to maintain the current operating state with the first configuration parameter.
[0114] The configuration parameter operation module 330 is used to send a second configuration parameter in the constraint file model format to the target network device, so that after receiving the second configuration parameter, the target network device still maintains the current operation state with the first configuration parameter, and when it is started next time, the target network device starts according to the second configuration parameter to enter the operation state corresponding to the second configuration parameter.
[0115] In some embodiments, the configuration server is communicatively connected to multiple network devices; before displaying the constraint file model content corresponding to the target network device, the parameter configuration device 300 also includes a network management protocol session establishment module, which is used to determine the target network device that needs to modify the configuration parameters among multiple network devices in response to the network device selection operation; and establish a network management protocol session between the configuration server and the target network device.
[0116] In some embodiments, the first configuration parameter is stored in the configuration information base of the target network device in the format of a constraint file model. The parameter configuration device 300 also includes a parameter locking module, which is used to send a parameter locking instruction to the target network device; wherein the parameter locking instruction is used to instruct the target network device to lock the configuration information base and continue to maintain the current operating state with the first configuration parameter.
[0117] In some embodiments, the parameter configuration device 300 also includes a configuration information library module, which includes a main configuration database, a backup configuration database, and a startup configuration database; the parameter locking instruction is used to instruct the target network device to lock the main configuration database or simultaneously lock the main configuration database, the backup configuration database, and the startup configuration database; the main configuration database is used to save the configuration parameters corresponding to the current operating state of the target network device; the backup configuration database is used to save the backup data of the configuration parameters corresponding to the current operating state of the target network device; the startup configuration database is used to save the recovery configuration parameters used after the target network device is restarted.
[0118] In some implementations, after the target network device modifies the first configuration parameter into the second configuration parameter, the parameter locking module is further used to send a parameter unlocking instruction to the target network device; wherein the parameter unlocking instruction is used to release the locking state of the configuration information base.
[0119] In some implementations, the parameter configuration apparatus 300 further includes a response confirmation module, which is configured to receive a confirmation response sent by the target network device if the second configuration parameter in the constraint file model format passes the compliance check of the target network device.
[0120] In some embodiments, the first configuration parameter is stored in the main configuration database of the target network device in a constraint file model format; after receiving a confirmation response, the configuration parameter operation module 330 is further used to send a parameter modification instruction to the target network device so that the target network device modifies the first configuration parameter in the main configuration database to a second configuration parameter. During the process of the target network device modifying the first configuration parameter, the target network device still maintains the current operating state with the first configuration parameter.
[0121] In some embodiments, the configuration parameter modification module 320 is also used to determine that the first configuration parameter is at least one of a QoS configuration parameter, a port list configuration parameter, and a traffic management configuration parameter; the traffic management configuration parameter includes at least one of a traffic speed limit, bandwidth allocation, and a bandwidth priority strategy.
[0122] For the specific definition of a parameter configuration device, please refer to the definition of a parameter configuration method above, which will not be repeated here. Each module in the above parameter configuration device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0123] A parameter configuration device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0124] The embodiment of the present application also provides a computer device, which may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a parameter configuration method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse, etc.
[0125] Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0126] The embodiment of the present application also provides a computer-readable storage medium. The above method according to the embodiment of the present application can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0127] The embodiment of the present application provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method of any embodiment of the present application.
[0128] The parameter configuration method, apparatus, and computer device described in the above embodiments may be implemented by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0129] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0130] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0131] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate a device for implementing the functions specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.
[0132] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0133] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0134] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0135] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0136] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0137] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. Since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0138] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
[0139] Although the embodiments of the present application are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.
[0140] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0141] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0142] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0143] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0144] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0145] It is understandable that in the specific implementation of the present application, related data such as user information, location information, navigation data, etc. are involved. When the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
Claims
1. A parameter configuration method, characterized in that: Applied to a configuration server, the configuration server is communicatively connected to a target network device; the method comprises: Displaying the constraint file model content corresponding to the target network device; wherein the constraint file model content includes a first configuration parameter corresponding to the current operating state of the target network device; In response to the configuration parameter modification operation, modify the first configuration parameter to a second configuration parameter suitable for the target network device; wherein, in the process of modifying the first configuration parameter to the second configuration parameter, the target network device continues to maintain the current operating state with the first configuration parameter; Sending a second configuration parameter in a constraint file model format to the target network device so that after receiving the second configuration parameter, the target network device still maintains the current operating state with the first configuration parameter, and when the target network device is started next time, it starts according to the second configuration parameter to enter the operating state corresponding to the second configuration parameter.
2. The method according to claim 1, characterized in that The configuration server is communicatively connected to a plurality of network devices; before displaying the constraint file model content corresponding to the target network device, the method further includes: In response to a network device selection operation, determining the target network device whose configuration parameters need to be modified among the multiple network devices; A network management protocol session is established between the configuration server and the target network device.
3. The method according to claim 1, characterized in that The first configuration parameter is stored in the configuration information library of the target network device in the constraint file model format; the method further includes: Sending a parameter locking instruction to the target network device; wherein the parameter locking instruction is used to instruct the target network device to lock the configuration information library and continue to maintain the current operating state with the first configuration parameters.
4. The method according to claim 3, characterized in that The configuration information base includes a main configuration database, a backup configuration database and a startup configuration database; the parameter locking instruction is used to instruct the target network device to lock the main configuration database or lock the main configuration database, the backup configuration database and the startup configuration database at the same time; The main configuration database is used to store configuration parameters corresponding to the current operating state of the target network device; The backup configuration database is used to store backup data of configuration parameters corresponding to the current operating state of the target network device; The startup configuration database is used to store the recovery configuration parameters used after the target network device is restarted.
5. The method according to claim 3, characterized in that: After the target network device modifies the first configuration parameter to the second configuration parameter, the method further includes: A parameter unlocking instruction is sent to the target network device; wherein the parameter unlocking instruction is used to release the locking state of the configuration information base.
6. The method according to claim 1, characterized in that The method further comprises: If the second configuration parameter in the constraint file model format passes the compliance check of the target network device, a confirmation response sent by the target network device is received.
7. The method according to claim 6, characterized in that The first configuration parameter is stored in the master configuration database of the target network device in the constraint file model format; after receiving the confirmation response, the method further includes: A parameter modification instruction is sent to the target network device so that the target network device modifies the first configuration parameter in the main configuration database to the second configuration parameter. During the process of the target network device modifying the first configuration parameter, the target network device still maintains the current operating state with the first configuration parameter.
8. The method according to any one of claims 1 to 7, characterized in that: The first configuration parameter is at least one of a QoS configuration parameter, a port list configuration parameter, and a traffic management configuration parameter; The traffic management configuration parameters include at least one of traffic speed limit, bandwidth allocation and bandwidth priority strategy.
9. A parameter configuration device, characterized in that: Applied to a configuration server, the configuration server is communicatively connected to a target network device; the device comprises: A configuration parameter display module, used to display the constraint file model content corresponding to the target network device; wherein the constraint file model content includes a first configuration parameter corresponding to the current operating state of the target network device; a configuration parameter modification module, configured to modify the first configuration parameter into a second configuration parameter suitable for the target network device in response to a configuration parameter modification operation; wherein, in the process of modifying the first configuration parameter into the second configuration parameter, the target network device continues to maintain the current operating state with the first configuration parameter; A configuration parameter operation module is used to send a second configuration parameter in a constraint file model format to the target network device, so that after receiving the second configuration parameter, the target network device still maintains the current operation state with the first configuration parameter, and when the target network device is started next time, it starts according to the second configuration parameter to enter the operation state corresponding to the second configuration parameter.
10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 8 by executing the computer instructions.
Citation Information
Patent Citations
Network parameter configuration method and device
CN112491573A
Network parameter configuration method and device, storage medium and electronic equipment
CN117081904A