CN110995481A - Configuration method, server and computer-readable storage medium - Google Patents

Configuration method, server and computer-readable storage medium Download PDF

Info

Publication number
CN110995481A
CN110995481A CN201911166842.3A CN201911166842A CN110995481A CN 110995481 A CN110995481 A CN 110995481A CN 201911166842 A CN201911166842 A CN 201911166842A CN 110995481 A CN110995481 A CN 110995481A
Authority
CN
China
Prior art keywords
configuration
network device
session
network
configuration data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911166842.3A
Other languages
Chinese (zh)
Inventor
代明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cloudminds Robotics Co Ltd
Original Assignee
Cloudminds Shenzhen Robotics Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cloudminds Shenzhen Robotics Systems Co Ltd filed Critical Cloudminds Shenzhen Robotics Systems Co Ltd
Priority to CN201911166842.3A priority Critical patent/CN110995481A/en
Publication of CN110995481A publication Critical patent/CN110995481A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention relates to the field of communication, and discloses a configuration method, a server and a computer readable storage medium. In some embodiments of the present application, a configuration method includes: determining that configuration data is transmitted to at least one network device to be configured, wherein the configuration data corresponds to a single change service, and the single change service occurs in a thread corresponding to a session manager; sending an effective operation instruction to at least one network device to be configured, wherein the effective operation instruction indicates the at least one network device to be configured to take the configuration data into effect; if the configuration data of any network device fails to take effect, a rollback operation instruction is sent to the network device which fails to take effect, and the rollback operation instruction indicates at least one network device to perform rollback operation. In this embodiment, the operation of restoring the configuration is made simpler.

Description

Configuration method, server and computer-readable storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a configuration method, a server, and a computer-readable storage medium.
Background
In an MCS network, a centralized MCS network configuration system is usually used to manage the configuration of MCS gateways distributed in various places. A configuration change service of the MCS may involve configuration change of one or more MCS gateways; even if one configuration change service only involves one MCS gateway, configuration changes of a plurality of functional modules on the MCS gateway may be involved.
However, the inventors found that at least the following problems exist in the prior art: in the existing configuration method, when the configuration of a certain functional module of the gateway fails, the operation of restoring the original configuration of the gateway is extremely complex.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of embodiments of the present invention is to provide a configuration method, a server, and a computer-readable storage medium, which enable operations for recovering an original configuration of a network device to be simpler when the configuration fails.
To solve the above technical problem, an embodiment of the present invention provides a configuration method, including the following steps: determining that configuration data is transmitted to at least one network device to be configured, wherein the configuration data corresponds to a single change service, and the single change service occurs in a thread corresponding to a session manager; sending an effective operation instruction to at least one network device to be configured, wherein the effective operation instruction indicates the at least one network device to be configured to take the configuration data into effect; if the configuration data of any network device fails to take effect, a rollback operation instruction is sent to the network device which fails to take effect, and the rollback operation instruction indicates at least one network device to perform rollback operation.
An embodiment of the present invention further provides a server, including: at least one processor; and a memory communicatively coupled to the at least one processor; and a communication component in communicative connection with the network device, the communication component receiving and transmitting data under control of the processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the configuration method mentioned in the above embodiments.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the configuration method mentioned in the above embodiment.
Compared with the prior art, the network configuration system can control the network equipment to perform rollback operation and recover the initial configuration of the network equipment by sending the rollback operation instruction, so that the operation of recovering the original configuration of the network equipment is simpler when the configuration fails.
In addition, the configuration data is transmitted to the at least one network device and then stored in the candidate database of the at least one network device; after the configuration data takes effect, the configuration data is stored in an operation database of at least one network device; if it is determined that the configuration data of all the network devices are successful in effect, the configuration method further includes: and sending an updating operation instruction to all the network equipment, wherein the updating operation instruction instructs the network equipment to copy the data in the running database to the initial database.
In addition, configuration data is sent by the configuration module; before determining that the configuration data is transmitted to the at least one network device to be configured, the configuration method further includes: receiving a session request of a configuration module; judging whether to establish a session for communicating with at least one network device to be configured; if the session communicated with at least one network device to be configured is determined to be established, returning the information of the established session to the configuration module; otherwise, creating a session communicated with at least one network device to be configured, and returning the created session information to the configuration module; the configuration module transmits configuration data to at least one network device to be configured through a session.
In addition, the number of the network devices to be configured is greater than 1, and after the configuration data of any one network device fails to take effect, the configuration method further includes: and sending a rollback operation instruction to other network equipment except for the failure in effectiveness in at least one network equipment.
In addition, each configuration change service uses a respective thread, and a session manager object exists in each thread, and the session manager object executes a configuration method.
In addition, the configuration method further comprises the following steps: and after determining that the configuration flow of the configuration change service has errors, ending the session between the configuration module in the thread corresponding to the configuration change service and the network equipment.
In addition, the session manager object includes a Thread local Thread object.
In addition, the network configuration system also comprises a plurality of configuration modules; before transmitting the configuration data to the network device to be configured, the configuration method further includes: receiving configuration data sent by a configuration module related to the current configuration change service; it is determined that all of the configuration data for the associated configuration module has been received.
In addition, the number of the session managers is larger than 1, and each session manager corresponds to one change service.
In addition, the ending the session between the configuration module in the thread corresponding to the configuration change service and the network device includes: and calling a filter or an interceptor callback function to automatically clean the session.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a flowchart of a configuration method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a configuration method according to a second embodiment of the present invention;
fig. 3 is an interaction diagram of a network configuration system and a network device according to a second embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a configuration device according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a configuration method, which can be applied to a network configuration system, such as a session manager object established in the network configuration system. Taking a network configuration system including an established session manager object and a configuration module as an example, as shown in fig. 1, the configuration method of the present embodiment includes the following steps:
step 101: it is determined that configuration data is transmitted to at least one network device to be configured.
Specifically, the configuration data corresponds to a single change transaction, and the single change transaction occurs in a thread corresponding to the session manager. When single service change occurs and the external device sends a configuration instruction to the network configuration system, the network configuration system sends data contained in the configuration instruction to the corresponding configuration module, the configuration module generates related configuration data, and the generated configuration data is sent to the related network device.
In one embodiment, the network configuration system and the network devices communicate based on the NETCONF protocol. The network device is a server in NETCONF, the network configuration system is a client of NETCONF, and the established session manager object comprises a NETCONF session manager object, which can be realized by Thread local object.
In one embodiment, to avoid different configuration change services from interacting, the session manager object in the network configuration system may be set to respond to only one configuration change service at a time.
In the network configuration system, each configuration change service uses a respective thread, a session manager object exists in each thread, and the session manager object executes the configuration method, so that concurrent services are not influenced by each other.
It should be noted that the same thread uses one session manager object, and it is ensured that in one service change, the configuration module in the network configuration system and the same network device only establish one network configuration session through the session manager object, all configuration changes caused by the service change are transmitted through the session, and the configuration changes are either all effective or not all effective, so that atomicity of the network configuration service level is realized. Different session manager objects are used by different configuration change services, thereby ensuring that the services use independent sessions and the concurrent services are mutually influenced.
In one embodiment, a network configuration system includes a configuration module and a session manager object. The configuration module is used for generating configuration data and sending the data to at least one network device, and the session manager object manages a session between the configuration module and the at least one network device. Specifically, a configuration module related to the current configuration change service requests a session with the network device from a session manager object, and the session manager object receives a session request of the configuration module; judging whether to establish a session for communicating with at least one network device to be configured; if the session communicated with at least one network device to be configured is determined to be established, returning the information of the established session to the configuration module; otherwise, creating a session communicated with at least one network device to be configured, and returning the created session information to the configuration module; the configuration module transmits configuration data to at least one network device to be configured through a session. After each related configuration module completes the respective configuration data transmission task, a transmission completion instruction is sent to the session manager object, so that the session manager object executes the subsequent related steps after determining that the configuration data of each configuration module are completely transmitted.
Step 102: and sending a validation operation instruction to at least one network device to be configured.
Specifically, the validation operation instruction instructs the at least one network device to validate the configuration data. In this embodiment, the network configuration system manages the configuration validation process of the network device in a unified manner. And after receiving the effective operation instruction, the network equipment takes the configuration data into effect.
In one embodiment, an initial database (start Configuration database), a Candidate database (Candidate Configuration database), and a running database (RunningConfiguration database) are provided in the network device. The initial database stores the original configuration data of the network device, and is a configuration library loaded when the network device is started. The candidate database is a backup configuration in that modifying the configuration does not affect the operational state of the network device. The operation database stores the configuration data activated by the current network equipment. The validation operation is to activate the configuration in the candidate database to make the network device run according to the configuration data in the candidate database.
Step 103: and judging whether the configuration data of the at least one network device is effective successfully.
Specifically, if the configuration data of all the network devices are successful in validation, the configuration is successful, and the process is ended, and if the configuration data of any one of the network devices fails in validation, step 104 is executed.
In one embodiment, after the configuration data is successfully or unsuccessfully validated, the network device sends a prompt message to a session manager object in the network configuration system, where the prompt message indicates that the configuration data is successfully or unsuccessfully validated, so that the network configuration system determines whether the configuration data is successfully validated.
In one embodiment, each network device sends a prompt to the network configuration system after the configuration data is successfully validated, the prompt indicating that the configuration data is successfully validated. If the network configuration system receives the prompt message within the preset time, it is determined that the configuration data of the network equipment is successful in effect, and if the network configuration system does not receive the prompt message within the preset time, it is determined that the configuration data of the network equipment is failed in effect. Wherein, the length of the preset time can be set according to the requirement.
It should be noted that, as can be understood by those skilled in the art, in practical applications, whether the configuration is valid may be detected in other ways, and this embodiment is merely an example, and does not limit the method for determining whether the configuration data is valid by the network configuration system in practical applications.
Step 104: and sending a rollback operation instruction to the network equipment with failure in effectiveness.
Specifically, the rollback operation instruction instructs the at least one network device to perform a rollback operation. And after receiving the rollback operation instruction, the network equipment performs rollback operation.
In one embodiment, an initial database, a candidate database and an operation database are arranged in the network device (the configuration data is transmitted to the network device and then stored in the candidate database of the network device; the configuration data is stored in the operation database of the network device after the configuration data is validated).
In one embodiment, after the configuration data of any one network device fails to take effect, the rollback operation is sent to not only the network device which fails to take effect, but also a rollback operation instruction is sent to other network devices except for the network device which fails to take effect. And meanwhile, the configuration information is sent to all the network equipment to be configured, so that the configuration synchronization of the network equipment corresponding to the current change service can be ensured, and a plurality of network equipment are configured under different conditions.
It should be noted that, in practical applications, after the rollback operation instruction is sent to the network device that fails to take effect, the configuration data and the validation operation instruction may also be sent to the network device that fails to take effect again.
In one embodiment, when there are multiple concurrent change services, the number of session managers is greater than 1, and each session manager corresponds to a change service.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention.
Compared with the prior art, by adopting the configuration method provided by the embodiment, the network configuration system can control the network equipment which fails to take effect to carry out the rollback operation by sending the rollback operation instruction to the network which fails to take effect, and the initial configuration of the network equipment is recovered, so that the operation of recovering the original configuration of the network equipment is simpler when the configuration fails. In addition, the same NETCONF session manager object is used by the single configuration change service, and the session manager object executes the validation, error detection and rollback of the NETCONF configuration, so that the atomicity of the single service change of the cross-equipment is realized.
A second embodiment of the invention relates to a configuration method. The second embodiment is substantially the same as the first embodiment, and mainly differs therefrom in that: in this embodiment, a step of sending an update operation instruction is added.
Specifically, as shown in fig. 2, the present embodiment includes steps 201 to 205, where steps 201 and 202 are substantially the same as steps 101 and 102 in the first embodiment, and are not repeated here. The following mainly introduces the differences:
step 201: it is determined that configuration data is transmitted to at least one network device to be configured.
Step 202: and sending a validation operation instruction to at least one network device to be configured.
Step 203: and judging whether the configuration data of all the network equipment to be configured take effect successfully or not.
Specifically, if it is determined that all the configuration data of the network devices to be configured are successful in validation, step 204 is executed, and after it is determined that there is a network device for which the configuration data fails to be validated, step 205 is executed.
In one embodiment, each network device sends a prompt message to the network configuration system after the configuration data of the network device becomes effective, and the network configuration system considers that the configuration data of all the network devices become effective successfully if receiving the prompt messages sent by all the network devices, otherwise, considers that the network device with the failure in effectiveness of the configuration data exists.
Step 204: and sending an updating operation instruction to all the network equipment to be configured.
Specifically, the update operation instruction instructs the network device to copy the data in the operational database to the initial database. I.e. reloading the configuration data in the original database.
Step 205: and sending a rollback operation instruction to all the network equipment to be configured.
Specifically, after determining that there is a network device for which the configuration data fails to take effect, the network configuration system sends a rollback operation instruction to all network devices to be configured.
In one embodiment, the session manager object comprises a Thread local object.
It should be noted that, through the Thread local mode, it can be ensured that the same session manager is used for a single configuration change service, thereby ensuring the atomicity of the transaction of the configuration change service.
It should be noted that, as can be understood by those skilled in the art, in practical applications, a single-instance mode of the session manager object may also be implemented by other modes, and this embodiment does not limit the setting manner of the session manager object.
In one embodiment, after determining that an error occurs in a configuration flow of the configuration change service, the network configuration system ends a session between a configuration module in a thread corresponding to the configuration change service and the network device. Specifically, if a step is executed incorrectly in the process of executing the relevant program corresponding to the configuration method by the session manager object, a filter (JavaServlet filter) or a Spring MVC interceptor callback function may be called to automatically clean up the session in the thread corresponding to the configuration change service, so as to ensure that the same NETCONF session is not used for the two previous and subsequent configuration change services.
The following description will exemplify a configuration method by taking a network configuration system based on Thread local and NETCONF protocols as an example.
Supposing that a network configuration system is developed by using Java Web technology, a plurality of configuration modules and session manager objects corresponding to each thread are arranged, the session manager objects are communicated with network equipment based on a NETCONF protocol (namely, the NETCONF session manager objects), and a Map data structure can be used in the session manager objects to manage the NETCONF session, so that only one NETCONF session is established for the same network equipment. A schematic diagram of the interaction of the network configuration system and the network devices is shown in fig. 3. Wherein, the same configuration change service can be executed in the same Java thread. The session manager object for each Thread is a Thread Local object. The reference of the session manager object is dispersed in each configuration module, and as long as each configuration module runs in the same Java thread, the same session manager object is referred to, so that a thread-level singleton object is realized. Communication between the network configuration system and the network devices (e.g., gateway a and/or gateway B) is uniformly managed by the session manager object. When a configuration module needs to send configuration data to a network device, it first requests a NETCONF session with the corresponding network device from the session manager object. If the NETCONF session with the corresponding network device is not established, the session manager object establishes the NETCONF session with the corresponding network device, stores the NETCONF session in the session manager object and returns the NETCONF session to the configuration module. If a NETCONF session with the network device has been established, the NETCONF session is returned directly. Therefore, although configuration data included in the configuration change service may be generated by a plurality of configuration modules, the configuration data may be transmitted to a candidate database (NETCONF database) of a corresponding network device through the same NETCONF session, and the session manager object may also initiate a rollback operation instruction through the NETCONF session, so that the network device connected to the NETCONF session performs a rollback operation. And after the configuration data of each configuration module is completely sent, the session manager object sends a validation (COMMIT) operation instruction to each network device. And if the COMMIT operation of a certain network device fails in the execution process of the method, performing rollback operation on the network device which successfully executes the COMMIT operation. The rollback operation is to copy the configuration in the initial database to the running database. And if the effective COMMIT operations of the network devices are successful, controlling the network devices to copy the running database into the initial database so as to ensure that the restart configuration of the devices is not lost. If the network configuration system processes a plurality of configuration change services simultaneously, the concurrent configuration change services occur in respective Java threads, each Java thread has an independent session manager object, and each session manager object manages its own NETCONF session, so that the concurrent configuration change services do not affect each other. By decoupling the NETCONF session management of the session manager object from the session usage, a singleton mode is used to ensure that configuration changes of each configuration module in the same configuration change service are transmitted to the network device through the same NETCONF session. This enables the configuration in the same NETCONF session to be either all in effect (COMMIT) or not in effect (COMMIT), thereby achieving atomicity of configuration changes for a single network device. And the session manager object manages NETCONF sessions to a plurality of network devices at the same time, and if the NETCONF sessions fail, the session manager object can roll back the configuration which is already in effect to realize the atomicity of configuration change of the cross-device. The singleton mode of the session manager object can be realized through Thread Local, so that concurrent services can be realized without mutual influence. The session manager object is used for managing the NETCONF session in a unified mode, and random use of the NETCONF session by each configuration module can be achieved without considering whether the NETCONF session is established repeatedly or not, and programming of the configuration modules is simplified. In addition, because the JAVA Web program thread is multiplexed, in order to ensure that even if a service change has an error, the NETCONF session can still be closed, and configuration data confusion caused by subsequent service change multiplexing is avoided, the session manager object ends the session in the thread corresponding to the configuration change service after determining that the configuration flow of the configuration change service has an error. For example, cleaning up a possible NETCONF session may be achieved by adding a callback function in the Java Servletfilter or Spring MVC interceptor.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention.
Compared with the prior art, by adopting the configuration method provided by the embodiment, the network configuration system can control the network equipment to perform rollback operation by sending the rollback operation instruction, and recover the initial configuration of the network equipment, so that the operation of recovering the original configuration of the network equipment is simpler when the configuration fails. In addition, the same NETCONF session manager object is used by the single configuration change service, and the session manager object executes the validation, error detection and rollback of the NETCONF configuration, so that the atomicity of the single service change of the cross-equipment is realized.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A third embodiment of the present invention relates to a deployment apparatus, as shown in fig. 4, including: a transmission module 401, a sending module 402 and a judgment module 403. The transmission module 401 is configured to determine that the configuration data is transmitted to at least one network device to be configured; the configuration data corresponds to a single change service, and the single change service occurs in a thread corresponding to the session manager; the sending module 402 is configured to send an effective operation instruction to at least one network device to be configured, where the effective operation instruction indicates that the at least one network device to be configured takes effect of the configuration data; the determining module 403 is configured to send a rollback operation instruction to the network device that fails to take effect if the configuration data of any one of the network devices fails to take effect, where the rollback operation instruction instructs at least one of the network devices to perform a rollback operation.
It should be understood that the present embodiment is a system example corresponding to the configuration method described above, and the present embodiment can be implemented in cooperation with the configuration method. The related technical details mentioned in the configuration method described above are still valid in this embodiment, and are not described herein again to reduce the repetition. Accordingly, the related technical details mentioned in the present embodiment can also be applied to the configuration method described above.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A fourth embodiment of the present invention relates to a server, as shown in fig. 5, including: at least one processor 501; and a memory 502 communicatively coupled to the at least one processor 501; and a communication component 503 communicatively coupled to the network device, the communication component 503 receiving and transmitting data under control of the processor 501; the memory 502 stores instructions executable by the at least one processor 501, and the instructions are executed by the at least one processor 501, so that the at least one processor 501 can execute the configuration method mentioned in the above embodiments.
The server includes: one or more processors 501 and a memory 502, with one processor 501 being an example in fig. 5. The processor 501 and the memory 502 may be connected by a bus or other means, and fig. 5 illustrates the connection by the bus as an example. Memory 502, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The processor 501 executes various functional applications and data processing of the device, i.e., implements the above-described configuration method, by executing nonvolatile software programs, instructions, and modules stored in the memory 502.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store a list of options, etc. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 502 may optionally include memory located remotely from processor 501, which may be connected to an external device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 502 and, when executed by the one or more processors 501, perform the configuration method of any of the method embodiments described above.
The product can execute the method provided by the embodiment of the application, has corresponding functional modules and beneficial effects of the execution method, and can refer to the method provided by the embodiment of the application without detailed technical details in the embodiment.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (12)

1. A configuration method performed by a session manager, comprising:
determining that configuration data is transmitted to at least one network device to be configured, wherein the configuration data corresponds to a single change service, and the single change service occurs in a thread corresponding to the session manager;
sending an effect operation instruction to the at least one network device to be configured, wherein the effect operation instruction instructs the at least one network device to be configured to effect the configuration data;
if the configuration data of any network device fails to take effect, a rollback operation instruction is sent to the network device which fails to take effect, and the rollback operation instruction indicates the at least one network device to perform rollback operation.
2. The configuration method according to claim 1, wherein the configuration data is stored in a candidate database of the at least one network device after being transmitted to the at least one network device; after the configuration data is validated, the configuration data is stored in an operation database of the at least one network device;
if it is determined that all the configuration data of the network device are successful in validation, the configuration method further includes:
and sending an updating operation instruction to all the network equipment, wherein the updating operation instruction instructs the network equipment to copy the data in the running database to the initial database.
3. A configuration method according to claim 1 or 2, characterized in that said configuration data is sent by a configuration module;
before the determining that the configuration data is transmitted to the at least one network device to be configured, the configuration method further includes:
receiving a session request of the configuration module;
judging whether to establish a session for communicating with the at least one network device to be configured;
if the session communicated with the at least one network device to be configured is determined to be established, returning the information of the established session to the configuration module;
otherwise, creating a session communicated with the at least one network device to be configured, and returning the created session information to the configuration module;
wherein the configuration module transmits the configuration data to the at least one network device to be configured through the session.
4. The configuration method according to claim 1, wherein the number of the network devices to be configured is greater than 1, and after the configuration data of any one of the network devices fails to take effect, the configuration method further comprises:
and sending the rollback operation instruction to other network equipment except the at least one network equipment which fails to take effect.
5. A configuration method according to any of claims 1 to 4, characterized in that each configuration change service uses a respective thread, in each of which there is a session manager object, by which the configuration method is executed.
6. The configuration method according to claim 5, further comprising:
and after determining that the configuration flow of the configuration change service has errors, ending the session between the configuration module in the thread corresponding to the configuration change service and the network equipment.
7. The configuration method according to any of the claim 5, wherein the session manager object comprises a Thread local Thread object.
8. The configuration method of claim 6, wherein the network configuration system further comprises a plurality of configuration modules; before the transmitting the configuration data to the network device to be configured, the configuration method further includes:
receiving configuration data sent by a configuration module related to the current configuration change service;
determining that all of the configuration data of the relevant configuration modules have been received.
9. The configuration method according to any one of claims 1 to 8, wherein the number of the session managers is greater than 1, and each session manager corresponds to a change service.
10. The configuration method according to claim 6, wherein the ending the session between the configuration module and the network device in the thread corresponding to the configuration change service comprises:
and calling a filter or an interceptor callback function to automatically clean the session.
11. A server, comprising: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; and the number of the first and second groups,
a communication component in communicative connection with a network device, the communication component receiving and transmitting data under control of the processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the configuration method of any one of claims 1 to 10.
12. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the configuration method of any one of claims 1 to 10.
CN201911166842.3A 2019-11-25 2019-11-25 Configuration method, server and computer-readable storage medium Pending CN110995481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911166842.3A CN110995481A (en) 2019-11-25 2019-11-25 Configuration method, server and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911166842.3A CN110995481A (en) 2019-11-25 2019-11-25 Configuration method, server and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN110995481A true CN110995481A (en) 2020-04-10

Family

ID=70086754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911166842.3A Pending CN110995481A (en) 2019-11-25 2019-11-25 Configuration method, server and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN110995481A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111865699A (en) * 2020-07-31 2020-10-30 中国工商银行股份有限公司 Fault identification method and device, computing equipment and medium
CN111917613A (en) * 2020-09-07 2020-11-10 紫光云(南京)数字技术有限公司 Automatic detection system and method for cloud computing network configuration
CN113259468A (en) * 2021-06-02 2021-08-13 新华三智能终端有限公司 Network equipment configuration method and device
CN114006812A (en) * 2021-10-30 2022-02-01 杭州迪普信息技术有限公司 Configuration method and device of network equipment
CN116886533A (en) * 2023-09-07 2023-10-13 深圳市天思智慧科技有限公司 Method for configuring OpenWRT system by proxy based on MQTT service

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070239728A1 (en) * 2006-03-29 2007-10-11 Thomas Smits System and method for transactional session management
CN102347866A (en) * 2011-11-08 2012-02-08 迈普通信技术股份有限公司 Data configuration system and method in network management
CN102413166A (en) * 2011-09-22 2012-04-11 上海西本网络科技有限公司 Distributed transaction method and system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070239728A1 (en) * 2006-03-29 2007-10-11 Thomas Smits System and method for transactional session management
CN102413166A (en) * 2011-09-22 2012-04-11 上海西本网络科技有限公司 Distributed transaction method and system thereof
CN102347866A (en) * 2011-11-08 2012-02-08 迈普通信技术股份有限公司 Data configuration system and method in network management

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李晗: "下一代网络管理平台中NETCONF代理的设计与实现", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111865699A (en) * 2020-07-31 2020-10-30 中国工商银行股份有限公司 Fault identification method and device, computing equipment and medium
CN111917613A (en) * 2020-09-07 2020-11-10 紫光云(南京)数字技术有限公司 Automatic detection system and method for cloud computing network configuration
CN113259468A (en) * 2021-06-02 2021-08-13 新华三智能终端有限公司 Network equipment configuration method and device
CN113259468B (en) * 2021-06-02 2021-09-21 新华三智能终端有限公司 Network equipment configuration method and device
CN114006812A (en) * 2021-10-30 2022-02-01 杭州迪普信息技术有限公司 Configuration method and device of network equipment
CN116886533A (en) * 2023-09-07 2023-10-13 深圳市天思智慧科技有限公司 Method for configuring OpenWRT system by proxy based on MQTT service
CN116886533B (en) * 2023-09-07 2023-12-15 深圳市天思智慧科技有限公司 Method for configuring OpenWRT system by proxy based on MQTT service

Similar Documents

Publication Publication Date Title
CN110995481A (en) Configuration method, server and computer-readable storage medium
US11080144B2 (en) System and method for managing blockchain nodes
US20180373517A1 (en) Systems, methods, and apparatuses for docker image downloading
CN111045854B (en) Method, apparatus and computer readable medium for managing service containers
CN109976822B (en) Configuration method and device of distributed application and distributed system
CN108681777B (en) Method and device for running machine learning program based on distributed system
EP3011446B1 (en) Synchronized update of multiple devices in a local network
WO2017049997A1 (en) Virtual machine monitoring method, apparatus and system based on cloud computing service
US20170155550A1 (en) Cloud orchestrated cloud connector upgrades
JP7345921B2 (en) OTA differential update method and system for master-slave architecture
CN104850416A (en) Upgrading system, method and device and cloud computing node
CN109361542A (en) The fault handling method of client, device, system, terminal and server
US8719622B2 (en) Recording and preventing crash in an appliance
CN107786350B (en) Method and device for restoring factory configuration of network equipment and network equipment
CN108521342B (en) Cluster management method and device
CN107463390B (en) Software upgrading method and upgrading server
US9342291B1 (en) Distributed update service
US11256575B2 (en) Methods, electronic devices and computer program products for managing and performing data backup jobs
CN111615819B (en) Method and device for transmitting data
US20100185761A1 (en) Service provider node, and computer-readable recording medium storing service provider program
CN116260827A (en) Election method, election system and related device of leader in cluster
US11290318B2 (en) Disaster recovery of cloud resources
US9800672B2 (en) Computer work distribution system and method
US9880855B2 (en) Start-up control program, device, and method
CN110046123B (en) Method and device for synchronizing connection states of trusted computing clusters

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210322

Address after: 200245 2nd floor, building 2, no.1508, Kunyang Road, Minhang District, Shanghai

Applicant after: Dalu Robot Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: CLOUDMINDS (SHENZHEN) ROBOTICS SYSTEMS Co.,Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 200245 Building 8, No. 207, Zhongqing Road, Minhang District, Shanghai

Applicant after: Dayu robot Co.,Ltd.

Address before: 200245 2nd floor, building 2, no.1508, Kunyang Road, Minhang District, Shanghai

Applicant before: Dalu Robot Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200410