CN107888434B - Network equipment configuration synchronization method and device - Google Patents

Network equipment configuration synchronization method and device Download PDF

Info

Publication number
CN107888434B
CN107888434B CN201711479119.1A CN201711479119A CN107888434B CN 107888434 B CN107888434 B CN 107888434B CN 201711479119 A CN201711479119 A CN 201711479119A CN 107888434 B CN107888434 B CN 107888434B
Authority
CN
China
Prior art keywords
configuration
configuration request
request message
service module
locally
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.)
Active
Application number
CN201711479119.1A
Other languages
Chinese (zh)
Other versions
CN107888434A (en
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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201711479119.1A priority Critical patent/CN107888434B/en
Publication of CN107888434A publication Critical patent/CN107888434A/en
Application granted granted Critical
Publication of CN107888434B publication Critical patent/CN107888434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • 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/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a method and a device for synchronizing network equipment configuration, which are applied to a dual-computer system and comprise the following steps: when receiving a configuration request message, locally executing configuration modification based on the configuration request message; detecting whether the configuration request message is a synchronized configuration request message; if not, acquiring a service module identifier and a configuration file identifier in the URL carried by the configuration request message; based on the service module identification and the configuration file identification, searching a corresponding service module and a corresponding configuration file locally; if the service module and the configuration file are found and the synchronization mode in the configuration file is dual-computer synchronization, modifying the configuration request message into a synchronized configuration request message; and sending the modified configuration request message to the opposite terminal equipment so that the opposite terminal equipment locally executes the configuration modification which is the same as that of the equipment based on the modified configuration request message. The technical scheme of the application can avoid unnecessary configuration data synchronization and save the resource waste of the network equipment.

Description

Network equipment configuration synchronization method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for synchronizing network device configuration.
Background
In order to ensure the continuity and reliability of the operation of the internet service, two network devices may be deployed at the same location, and operate in the mode of the active device and the standby device, respectively. The active device can perform service processing, and the standby device can take over the active device to continue the service processing when the active device fails. In this case, it is important to timely and accurately synchronize data (generally, configuration data, service data, and the like) in the active device and the standby device.
In practice, however, for some service modules (i.e. for a generic service, including configuration data and service data of such service, etc.), some configuration data of these service modules may not need to be synchronized. For example, since the interface addresses of the two network devices are the same, in some cases, address collision may be caused, and therefore, for the network communication module, it is not necessary to perform dual-machine synchronization on the interface address of the network communication module between the active device and the standby device. In the related art, when data synchronization is performed between the active device and the standby device, all data in the active device and the standby device are generally synchronized uniformly, which may cause unnecessary configuration data synchronization and waste of network device resources.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for synchronizing configuration of a network device, so as to solve the problem of resource waste of the network device caused by unnecessary synchronization of configuration data in the related art.
Specifically, the method is realized through the following technical scheme:
in a first aspect, the present application provides a method for synchronizing network device configuration, where the method is applied to a dual-machine system including an active device and a standby device, and the method includes:
when receiving a configuration request message, locally executing configuration modification based on the configuration request message;
detecting whether the configuration request message is a synchronized configuration request message;
if the configuration request message is an unsynchronized configuration request message, acquiring a service module identifier and a configuration file identifier in a URL (uniform resource locator) carried by the configuration request message;
based on the service module identification and the configuration file identification, searching a corresponding service module and a corresponding configuration file locally;
if the service module and the configuration file are found and the synchronization mode in the configuration file is dual-computer synchronization, modifying the configuration request message into a synchronized configuration request message;
and sending the modified configuration request message to opposite-end equipment so that the opposite-end equipment locally executes the same configuration modification as the equipment on the basis of the modified configuration request message.
In a second aspect, the present application provides a network device configuration synchronization apparatus, where the apparatus is applied to a dual-machine system including an active device and a standby device, and the apparatus includes:
the first execution unit is used for locally executing configuration modification based on the configuration request message when receiving the configuration request message;
a first detecting unit, configured to detect whether the configuration request packet is a synchronized configuration request packet;
an obtaining unit, configured to obtain, when the configuration request packet is an unsynchronized configuration request packet, a service module identifier and a configuration file identifier in a URL carried by the configuration request packet;
the searching unit is used for locally searching the corresponding service module and the configuration file based on the service module identifier and the configuration file identifier;
a modification unit, configured to modify the configuration request packet into a synchronized configuration request packet when the service module and the configuration file are found and a synchronization mode in the configuration file is dual-machine synchronization;
a sending unit, configured to send the modified configuration request packet to an opposite-end device, so that the opposite-end device locally performs the same configuration modification as the device based on the modified configuration request packet.
Analyzing the above technical solution, it can be known that selective data synchronization can be performed between the primary device and the standby device in the dual-computer system by configuring the synchronization identifier for the service module and determining whether dual-computer synchronization needs to be performed on the service module according to the synchronization identifier, so that unnecessary configuration data synchronization can be avoided, waste of network device resources can be saved, and service processing efficiency of the network device in the dual-computer system can be improved.
Drawings
Fig. 1 is a flowchart illustrating a method for synchronizing network device configurations according to an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram of an HTTP message format;
fig. 3 is a hardware structure diagram of a device where a network device configuration synchronization apparatus is located according to an exemplary embodiment of the present application;
fig. 4 is a block diagram illustrating a network device configuration synchronization apparatus according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In order to solve the problem of unnecessary configuration data synchronization which may occur in the related art, the application provides a method and a device for network device configuration synchronization, so as to avoid unnecessary configuration data synchronization, thereby saving network device resources and improving service processing efficiency of network devices in a dual-computer system.
Referring to fig. 1, a flowchart of a network device configuration synchronization method according to an exemplary embodiment of the present application is shown. The network device configuration synchronization method may be applied to a dual-machine system including two network devices, where the two network devices may determine roles of the two network devices in the dual-machine system, for example: the two network devices may negotiate based on RDMP (redundant Device Management Protocol) to determine the active Device and the standby Device in the dual-computer system. The network device configuration synchronization method may include the steps of:
step 101: when receiving a configuration request message, locally executing configuration modification based on the configuration request message.
In this embodiment, a user may perform remote management on the dual-computer system through a management device connected to the dual-computer system. Generally, the management device may provide a web page as a user interface for a user, and the user may configure the service modules in the active device and the standby device through the user interface. Of course, the network devices in the dual-computer system may also respectively provide a web page for the user as a user interface, so that the user can configure the service module in the corresponding network device through the user interface.
In one aspect, a user may specify an identifier of a service module and an identifier of a configuration file corresponding to the service module under a URL (Uniform Resource Locator) corresponding to the service module, where the identifier of the service module is generally a name of the service module, and the identifier of the configuration file is generally a name of the configuration file, for example: the system comprises a service module, a set system and a set system, wherein the service module is a service module name, and the set system is a configuration file name.
The configuration file may store the synchronization mode of the corresponding service module, that is, it may be determined whether the configuration data of the corresponding service module needs to be synchronized between the primary device and the standby device, for example, through a synchronization mode field in the configuration file: a sync _ flag field may be set in the configuration file as a synchronization mode field, and when the field value is 1, it indicates that dual-machine synchronization is required, and when the field value is 0, it indicates that dual-machine synchronization is not required. It should be noted that the value of the synchronization mode field in the configuration file may be preset by the user, that is, the synchronization mode stored in the configuration file is not changed all the time; it may also be dynamically modified by the user via a web page or command line, i.e. the synchronization pattern stored in the configuration file may change. Of course, other information than the synchronization pattern, such as the execution function name, may also be stored in the configuration file.
On the other hand, the user may also modify the configuration data of the service module in the active device or modify the configuration data of the service module in the standby device through the management device. The management setting can be used for constructing a configuration request message based on the modification operation of a user after the user modifies the configuration data of the service module in the main equipment, and sending the configuration request message to the main equipment; or, the management device may also construct a configuration request message based on a modification operation of the user after the user modifies the configuration data of the service module in the standby device, and send the configuration request message to the standby device. Fig. 2 is a schematic diagram of an HTTP (HyperText Transfer Protocol) message format. Because the configuration request message is usually an HTTP message based on the POST method, the network device in the dual system may determine whether the HTTP message is the configuration request message according to whether the request method field in the received HTTP message represents the POST method.
In this embodiment, when determining that the configuration request packet is received, the network device in the dual-computer system may first perform configuration modification locally based on the configuration request packet, so as to implement modification operation of the user.
Step 102: and detecting whether the configuration request message is a synchronized configuration request message.
In this embodiment, the network device in the dual-computer system may detect whether the configuration request packet is a synchronized configuration request packet while locally performing configuration modification based on the received configuration request packet.
In an optional embodiment, the network device in the dual-computer system may detect whether the configuration request packet is a synchronized configuration request packet according to a source IP address of the received configuration request packet. If the source IP address of the configuration request message is the IP address of the management device, the network device may determine that the configuration request message is an unsynchronized configuration request message; if the source IP address of the configuration request packet is the synchronous IP address of the peer device in the dual-computer system (the synchronous IP address may be the same as or different from the IP address of the peer device itself), the network device may determine that the configuration request packet is a synchronized configuration request packet. Taking the configuration request message received by the master device as an example, if the source IP address of the configuration request message is the IP address of the management device, the master device may determine that the configuration request message is an unsynchronized configuration request message; if the source IP address of the configuration request packet is the synchronous IP address of the standby device, the active device may determine that the configuration request packet is a synchronized configuration request packet.
In another alternative embodiment, a synchronization identifier may be inserted into the configuration request message to indicate that the configuration request message is a synchronized configuration request message. Therefore, the network device in the dual-computer system can detect whether the configuration request message is a synchronized configuration request message according to whether the received configuration request message carries a synchronization identifier. If the configuration request message does not carry a synchronization identifier, the network device may determine that the configuration request message is an unsynchronized configuration request message; if the configuration request message carries the synchronization identifier, the network device may determine that the configuration request message is a synchronized configuration request message.
Step 103: and if the configuration request message is an unsynchronized configuration request message, acquiring a service module identifier and a configuration file identifier in a URL (uniform resource locator) carried by the configuration request message.
In this embodiment, based on the detection result in the foregoing step 102, if the network device in the dual-computer system determines that the received configuration request packet is an unsynchronized configuration request packet, the service module identifier and the configuration file identifier in the URL carried in the configuration request packet may be further obtained.
In an optional embodiment, based on the detection result in the foregoing step 102, if the configuration request packet received by the network device in the dual-machine system is a synchronized configuration request packet, it indicates that the peer device in the dual-machine system has performed configuration modification locally, so that after performing configuration modification locally based on the configuration request packet, the network device does not need to synchronize the synchronized configuration request packet to the peer device any more, so as to avoid repeated configuration, save network device resources, and thereby improve service processing efficiency of the network device in the dual-machine system.
Step 104: and searching the corresponding service module and the configuration file locally based on the service module identifier and the configuration file identifier.
In this embodiment, the network device in the dual-computer system may locally search the service module corresponding to the service module identifier and the configuration file corresponding to the configuration file identifier according to the service module identifier and the configuration file identifier obtained in step 103.
Step 105: and if the service module and the configuration file are found and the synchronization mode in the configuration file is dual-computer synchronization, modifying the configuration request message into a synchronized configuration request message.
In this embodiment, based on the search result in the step 104, if the network device in the dual-computer system searches the service module and the configuration file, it may be determined whether the synchronization mode stored in the configuration file is dual-computer synchronization.
If the synchronization mode stored in the configuration file is dual-machine synchronization, it indicates that dual-machine synchronization needs to be performed on the configuration data of the service module, so the network device can modify the configuration request message into a synchronized configuration request message first, so as to synchronize the configuration request message to the peer device.
Specifically, the network device may modify the source IP address of the configuration request packet into the synchronous IP address of the device, so that for the peer device in the dual-computer system, the network device modifies the configuration request packet into a synchronized configuration request packet; or, the network device may insert a synchronization identifier into the configuration request message, so that the configuration request message may be modified into a synchronized configuration request message.
Step 106: and sending the modified configuration request message to opposite-end equipment so that the opposite-end equipment locally executes the same configuration modification as the equipment on the basis of the modified configuration request message.
In this embodiment, after modifying the originally received unsynchronized configuration request message into the synchronized configuration request message in step 105, the network device in the dual-machine system may send the modified configuration request message to the peer device in the dual-machine system. After receiving the modified configuration request packet, the peer device may locally perform the same configuration as the network device based on the modified configuration request packet. In addition, since the peer device can determine that the modified configuration request message is a synchronized configuration request message, the peer device does not need to synchronize the modified configuration request message to the network device after locally executing configuration modification, so as to avoid repeated configuration, save network device resources, and improve service processing efficiency of the network device in the dual-computer system.
In an optional embodiment, if the network device in the dual-computer system determines in the step 105 that the synchronization mode stored in the configuration file is not dual-computer synchronization, it indicates that dual-computer synchronization is not needed for the configuration data of the service module, and therefore, after the network device performs configuration modification locally based on the configuration request packet, the network device does not need to synchronize the configuration request packet to the peer device in the dual-computer system.
Or, based on the search result in the step 104, if the network device in the dual-computer system does not find the service module or the configuration file, the network device does not need to synchronize the configuration request message to the peer device in the dual-computer system after performing the configuration modification locally based on the configuration request message.
In practical applications, before executing the step 103, the network device may determine whether the working environment of the network device is a dual-system environment, for example: the network device can judge whether the device works in a dual-computer system environment according to the locally stored dual-computer working identifier. If yes, the network device may continue to perform the aforementioned step 103; if not, the network device does not belong to a certain dual-machine system, that is, the network device does not need to execute other processing after locally executing configuration modification based on the received configuration request message.
It should be noted that, after the two network devices in the dual-computer system perform configuration modification locally based on the received configuration request packet, both network devices can detect whether the configuration of the network device is successful. For a network device that receives a synchronized configuration request packet, the network device may send a configuration end packet including a configuration result to an opposite device in the dual-computer system (i.e., a network device that receives an unsynchronized configuration request packet), so that the opposite device may determine whether the network device is successfully configured based on the configuration end packet.
For a network device that receives an unsynchronized configuration request packet, on one hand, the network device may detect whether the configuration of the network device is successful, and on the other hand, the network device may receive a configuration end packet sent by an opposite device (i.e., a network device that receives a synchronized configuration request packet) in the dual-computer system, and determine whether the configuration of the opposite device is successful based on the configuration end packet. If the network device is configured successfully and the opposite device is configured successfully, the network device may return a configuration success message to the management device, and the management device may present the configuration success message to the user. If the network device configuration fails or the opposite device configuration fails, the network device may return a configuration failure message to the management device, and the management device may display the configuration failure message to the user to remind the user of the failure of the dual-computer system configuration. Meanwhile, the network device may also perform configuration rollback locally (generally, rollback the configuration to the state when the last configuration was successful), and send a configuration rollback notification to the peer device, so that the peer device performs the same configuration rollback as the network device locally.
It can be seen from the above embodiments that selective data synchronization can be performed between the primary device and the standby device in the dual-device system by configuring the synchronization identifier for the service module and determining whether dual-device synchronization needs to be performed on the service module according to the synchronization identifier, so that unnecessary configuration data synchronization can be avoided, waste of network device resources can be saved, and service processing efficiency of the network device in the dual-device system can be improved.
Corresponding to the foregoing embodiments of the method for synchronizing network device configuration, the present application also provides embodiments of a device for synchronizing network device configuration.
The embodiment of the network equipment configuration synchronization device can be applied to network equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the device where the software implementation is located as a logical means. From a hardware aspect, as shown in fig. 3, a hardware structure diagram of a network device where a synchronization apparatus is configured for a network device in the present application is shown, except for the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 3, a network device where the apparatus is located in the embodiment may also include other hardware according to an actual function of the network device configuration synchronization, which is not described again.
Referring to fig. 4, a block diagram of a network device configuration synchronization apparatus according to an exemplary embodiment of the present application is shown. The network device configuration synchronization apparatus 400 can be applied to the network device shown in fig. 3, and includes:
a first execution unit 401, configured to, when receiving a configuration request packet, locally execute configuration modification based on the configuration request packet;
a first detecting unit 402, configured to detect whether the configuration request packet is a synchronized configuration request packet;
an obtaining unit 403, configured to obtain, when the configuration request packet is an unsynchronized configuration request packet, a service module identifier and a configuration file identifier in a URL carried in the configuration request packet;
a searching unit 404, configured to locally search for a corresponding service module and a corresponding configuration file based on the service module identifier and the configuration file identifier;
a modifying unit 405, configured to modify the configuration request packet into a synchronized configuration request packet when the service module and the configuration file are found and a synchronization mode in the configuration file is dual-machine synchronization;
a sending unit 406, configured to send the modified configuration request packet to an opposite end device, so that the opposite end device locally performs the same configuration modification as that of the device based on the modified configuration request packet.
In an alternative embodiment, the first detecting unit 402 may include:
a first detecting subunit 4021, configured to detect whether the configuration request packet carries a synchronization identifier, and if so, determine that the configuration request packet is a synchronized configuration request packet; or
A second detecting subunit 4022, configured to detect whether a source IP address of the configuration request packet is a synchronous IP address of the peer device, and if so, determine that the configuration request packet is a synchronized configuration request packet.
In another alternative embodiment, the apparatus 400 may further include:
a second executing unit 407, configured to, when the configuration request packet is a synchronized configuration request packet, after performing configuration modification locally based on the configuration request packet, no longer synchronize the configuration request packet to the peer device.
In another alternative embodiment, the apparatus 400 may further include:
a third executing unit 408, configured to, when the service module or the configuration file is not found or the synchronization mode in the configuration file is not dual-machine synchronization, after the configuration modification is locally executed based on the configuration request packet, no longer synchronize the configuration request packet to the peer device.
In another alternative embodiment, the apparatus 400 may further include:
a second detecting unit 409, configured to detect whether the configuration of the device is successful after locally performing configuration modification based on the configuration request message when the configuration request message is an unsynchronized configuration request message;
a determining unit 410, configured to, when receiving a configuration end packet sent by the peer device, determine whether the peer device is successfully configured based on the configuration end packet;
a first returning unit 411, configured to return a configuration success message to the management device when the device configuration is successful and the peer device configuration is successful;
a second returning unit 412, configured to, when the configuration of the local device fails or the configuration of the peer device fails, return a configuration failure message to the management device, perform configuration rollback locally, and send a configuration rollback notification to the peer device, so that the peer device locally performs the same configuration rollback as the local device.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A network equipment configuration synchronization method is characterized in that the method is applied to a dual-computer system comprising main equipment and standby equipment, the service of the dual-computer system is divided into a plurality of service modules, and the synchronization mode of each service module is respectively stored in a configuration file corresponding to each service module; the method comprises the following steps:
when receiving a configuration request message, locally executing configuration modification based on the configuration request message;
detecting whether the configuration request message is a synchronized configuration request message;
if the configuration request message is an unsynchronized configuration request message, acquiring a service module identifier and a configuration file identifier in a URL (uniform resource locator) carried by the configuration request message;
based on the service module identification and the configuration file identification, searching a corresponding service module and a corresponding configuration file locally;
if the service module and the configuration file are found and the synchronization mode in the configuration file is dual-computer synchronization, modifying the configuration request message into a synchronized configuration request message;
and sending the modified configuration request message to opposite-end equipment so that the opposite-end equipment locally executes the same configuration modification as the equipment on the basis of the modified configuration request message.
2. The method according to claim 1, wherein the detecting whether the configuration request message is a synchronized configuration request message comprises:
detecting whether the configuration request message carries a synchronous identifier, and if so, determining that the configuration request message is a synchronized configuration request message; or
And detecting whether the source IP address of the configuration request message is the synchronous IP address of the opposite terminal equipment, and if so, determining that the configuration request message is the synchronized configuration request message.
3. The method of claim 1, further comprising:
if the configuration request message is a synchronized configuration request message, the configuration request message is not synchronized to the opposite terminal device after the configuration modification is performed locally based on the configuration request message.
4. The method of claim 1, further comprising:
if the service module or the configuration file is not found or the synchronization mode in the configuration file is not dual-computer synchronization, the configuration request message is not synchronized to the opposite terminal device after the configuration modification is locally executed based on the configuration request message.
5. The method of claim 1, further comprising:
if the configuration request message is an unsynchronized configuration request message, detecting whether the equipment is successfully configured or not after locally executing configuration modification based on the configuration request message;
when receiving a configuration end message sent by the opposite terminal equipment, judging whether the opposite terminal equipment is successfully configured based on the configuration end message;
if the equipment configuration is successful and the opposite-end equipment configuration is successful, returning a configuration success message to the management equipment;
if the device configuration fails or the opposite-end device configuration fails, returning a configuration failure message to the management device, locally executing configuration rollback, and sending a configuration rollback notification to the opposite-end device, so that the opposite-end device locally executes the same configuration rollback as the device.
6. A network equipment configuration synchronization device is characterized in that the device is applied to a dual-computer system comprising main equipment and standby equipment, the service of the dual-computer system is divided into a plurality of service modules, and the synchronization mode of each service module is respectively stored in a configuration file corresponding to each service module; the device comprises:
the first execution unit is used for locally executing configuration modification based on the configuration request message when receiving the configuration request message;
a first detecting unit, configured to detect whether the configuration request packet is a synchronized configuration request packet;
an obtaining unit, configured to obtain, when the configuration request packet is an unsynchronized configuration request packet, a service module identifier and a configuration file identifier in a URL carried by the configuration request packet;
the searching unit is used for locally searching the corresponding service module and the configuration file based on the service module identifier and the configuration file identifier;
a modification unit, configured to modify the configuration request packet into a synchronized configuration request packet when the service module and the configuration file are found and a synchronization mode in the configuration file is dual-machine synchronization;
a sending unit, configured to send the modified configuration request packet to an opposite-end device, so that the opposite-end device locally performs the same configuration modification as the device based on the modified configuration request packet.
7. The apparatus of claim 6, wherein the first detection unit comprises:
a first detecting subunit, configured to detect whether the configuration request packet carries a synchronization identifier, and if so, determine that the configuration request packet is a synchronized configuration request packet; or
A second detecting subunit, configured to detect whether a source IP address of the configuration request packet is a synchronous IP address of the peer device, and if so, determine that the configuration request packet is a synchronized configuration request packet.
8. The apparatus of claim 6, further comprising:
and a second execution unit, configured to, when the configuration request packet is a synchronized configuration request packet, not synchronize the configuration request packet to the peer device any more after locally performing configuration modification based on the configuration request packet.
9. The apparatus of claim 6, further comprising:
a third executing unit, configured to, when the service module or the configuration file is not found or a synchronization mode in the configuration file is not dual-machine synchronization, not synchronize the configuration request packet to the peer device after performing configuration modification locally based on the configuration request packet.
10. The apparatus of claim 6, further comprising:
a second detecting unit, configured to detect whether the device is successfully configured after locally performing configuration modification based on the configuration request message when the configuration request message is an unsynchronized configuration request message;
a determining unit, configured to determine, when receiving a configuration end packet sent by the peer device, whether the peer device is successfully configured based on the configuration end packet;
a first returning unit, configured to return a configuration success message to the management device when the device configuration is successful and the peer device configuration is successful;
a second returning unit, configured to, when the configuration of the local device fails or the configuration of the peer device fails, return a configuration failure message to the management device, perform configuration rollback locally, and send a configuration rollback notification to the peer device, so that the peer device performs configuration rollback locally that is the same as that of the local device.
CN201711479119.1A 2017-12-29 2017-12-29 Network equipment configuration synchronization method and device Active CN107888434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711479119.1A CN107888434B (en) 2017-12-29 2017-12-29 Network equipment configuration synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711479119.1A CN107888434B (en) 2017-12-29 2017-12-29 Network equipment configuration synchronization method and device

Publications (2)

Publication Number Publication Date
CN107888434A CN107888434A (en) 2018-04-06
CN107888434B true CN107888434B (en) 2021-02-26

Family

ID=61770448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711479119.1A Active CN107888434B (en) 2017-12-29 2017-12-29 Network equipment configuration synchronization method and device

Country Status (1)

Country Link
CN (1) CN107888434B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039754B (en) * 2018-08-20 2022-05-10 新华三技术有限公司 Network equipment management method and device
CN109302326A (en) * 2018-11-30 2019-02-01 新华三技术有限公司 A kind of configuration method and device of qos policy
CN110913001A (en) * 2019-11-27 2020-03-24 杭州迪普科技股份有限公司 Method, device and equipment for synchronizing dual-computer configuration
CN113794583B (en) * 2021-08-15 2023-12-29 新华三信息安全技术有限公司 Configuration method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753362A (en) * 2010-02-10 2010-06-23 中兴通讯股份有限公司 Configuring method and device of stacking virtual local area network of distributed network device
CN102347866A (en) * 2011-11-08 2012-02-08 迈普通信技术股份有限公司 Data configuration system and method in network management
CN106169964A (en) * 2016-09-28 2016-11-30 杭州迪普科技有限公司 Network equipments configuration synchronous method and device
CN106209690A (en) * 2015-05-08 2016-12-07 中兴通讯股份有限公司 A kind of synchronize the method for configuration information, main equipment and standby equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136730A (en) * 2007-10-19 2008-03-05 武汉烽火网络有限责任公司 Credible synchronization method of distributed network equipment
CN103200146B (en) * 2012-01-04 2016-05-25 ***通信集团安徽有限公司 The method of data synchronization of terminal and server and device
CN103812823B (en) * 2012-11-07 2017-10-10 华为技术有限公司 Configuration information is migrated during live migration of virtual machine method, equipment and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753362A (en) * 2010-02-10 2010-06-23 中兴通讯股份有限公司 Configuring method and device of stacking virtual local area network of distributed network device
CN102347866A (en) * 2011-11-08 2012-02-08 迈普通信技术股份有限公司 Data configuration system and method in network management
CN106209690A (en) * 2015-05-08 2016-12-07 中兴通讯股份有限公司 A kind of synchronize the method for configuration information, main equipment and standby equipment
CN106169964A (en) * 2016-09-28 2016-11-30 杭州迪普科技有限公司 Network equipments configuration synchronous method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
小米手机如何从云服务同步部分数据;tanwen1234;《百度经验 https://jingyan.***.com/article/676629977fdab454d41b8457.html》;20160505;全文 *

Also Published As

Publication number Publication date
CN107888434A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
CN107888434B (en) Network equipment configuration synchronization method and device
EP1702423B1 (en) Time synchronizing device and process and associated products
WO2017088703A1 (en) Page jumping method and apparatus
CN107483260B (en) Fault processing method and device and electronic equipment
CN104184756A (en) Data synchronization method, device and system
CN104504062A (en) Data synchronization method and device of primary and standby databases
WO2014166265A1 (en) Method, terminal, cache server and system for updating webpage data
US9596313B2 (en) Method, terminal, cache server and system for updating webpage data
CN112506702B (en) Disaster recovery method, device, equipment and storage medium for data center
CN106790131B (en) Parameter modification method and device and distributed platform
JP2019502186A (en) System and method for obtaining, processing and updating global information
CN111404628B (en) Time synchronization method and device
CN103916277A (en) Method and device for not interrupting forwarding service in rebooting process
CN109039518A (en) The ntp server address intelligent management of Android television system
CN103312489A (en) Method and device for synchronizing terminal and server
CN108228789B (en) Synchronous abnormity recovery method and device triggered by slave node
CN112769652A (en) Node service monitoring method, device, equipment and medium
CN106941418B (en) SSL VPN configuration information synchronization method and device
CN111083049A (en) User table item recovery method and device, electronic equipment and storage medium
US11082522B2 (en) Information acquisition
CN110071778B (en) Time synchronization method, device, equipment and medium
CN112035418A (en) Multi-computer room synchronization method, computing device and computer storage medium
CN106789304B (en) Network equipment configuration synchronization method and device
CN113032021B (en) System switching and data processing method, device, equipment and storage medium thereof
CN103561102B (en) Data real-time synchronization method and system

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
GR01 Patent grant
GR01 Patent grant