CN107493201B - Synchronization method and device for configuration messages - Google Patents

Synchronization method and device for configuration messages Download PDF

Info

Publication number
CN107493201B
CN107493201B CN201710821372.4A CN201710821372A CN107493201B CN 107493201 B CN107493201 B CN 107493201B CN 201710821372 A CN201710821372 A CN 201710821372A CN 107493201 B CN107493201 B CN 107493201B
Authority
CN
China
Prior art keywords
configuration
synchronization
message
configuration message
sending
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
CN201710821372.4A
Other languages
Chinese (zh)
Other versions
CN107493201A (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 CN201710821372.4A priority Critical patent/CN107493201B/en
Publication of CN107493201A publication Critical patent/CN107493201A/en
Application granted granted Critical
Publication of CN107493201B publication Critical patent/CN107493201B/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/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • 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
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a synchronization method and a device for configuration messages, wherein the method comprises the following steps: if the first configuration message is received, determining whether the first configuration message carries a synchronization identifier, wherein the synchronization identifier is used for marking the message needing synchronization; if the first configuration message does not carry the synchronous identification, adding the synchronous identification at the preset position of the first configuration message to generate a second configuration message; sending a second configuration message to a second device to be configured, which is synchronous with the first device to be configured; if a first configuration result that the second device to be configured is successfully configured based on the second configuration message is obtained, configuring the relevant configuration based on the first configuration message; and if the first equipment to be configured is successfully configured based on the first configuration message, sending synchronization success information to the management equipment. By applying the embodiment of the invention, the synchronization of the configuration messages between the main equipment and the standby equipment is realized through the synchronization identifier, the synchronization process of the configuration messages is greatly simplified, the power consumption of the equipment is low, and the processing efficiency of the synchronization of the configuration messages of the equipment is high.

Description

Synchronization method and device for configuration messages
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for synchronizing configuration packets.
Background
Under the dual-computer hot standby environment, the synchronization of the configuration messages needs to be realized between the main equipment and the standby equipment.
In the prior art, when any device of the main/standby devices receives a configuration message, the synchronization process of the configuration message of the main/standby device and the configuration message of the standby device needs a module to be configured in the device to participate in implementation. For example, when the active device receives the configuration message, the active device parses the configuration message, the active device matches the configuration content to the corresponding module to be configured according to the specific configuration content in the configuration message, and the module to be configured synchronizes the configuration result to the corresponding other module to be configured in the standby device. The whole synchronization process is complex, the processing resources of the module to be configured are wasted, the power consumption of the equipment is large, and the processing efficiency of the equipment configuration message synchronization is greatly reduced.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for synchronizing configuration packets, so as to solve the problems of complex synchronization process of configuration packets, large power consumption of devices, and low processing efficiency of device configuration packet synchronization.
In order to achieve the purpose, the invention provides the following technical scheme:
according to a first aspect of the present invention, a method for synchronizing configuration packets is provided, where the method includes:
if a first configuration message is received, determining whether the first configuration message carries a synchronization identifier, wherein the synchronization identifier is used for marking the message needing synchronization;
if the first configuration message does not carry the synchronization identifier, adding the synchronization identifier at a preset position of the first configuration message to generate a second configuration message;
sending the second configuration message to a second device to be configured, which is synchronous with the first device to be configured;
if a first configuration result that the second device to be configured is successfully configured based on the second configuration message is obtained, configuring the relevant configuration based on the first configuration message;
and if the first equipment to be configured is successfully configured based on the first configuration message, sending synchronization success information to management equipment.
According to a second aspect of the present invention, a synchronization apparatus for configuring a packet is provided, including:
the identification determining module is configured to determine whether a first configuration message carries a synchronization identification if the first configuration message is received, wherein the synchronization identification is used for marking a message needing synchronization;
the identifier adding module is configured to add the synchronization identifier at a preset position of the first configuration message to generate a second configuration message if the synchronization identifier is not carried in the first configuration message;
the first sending module is configured to send the second configuration message to a second device to be configured, which is configured synchronously with the first device to be configured;
the first configuration module is configured to configure the relevant configuration based on the first configuration message if a first configuration result that the second device to be configured is successfully configured based on the second configuration message is obtained;
and the second sending module is configured to send synchronization success information to the management device if the first device to be configured is successfully configured based on the first configuration message.
As can be seen from the above technical solutions, if the first device to be configured receives the first configuration message, the first device to be configured determines whether the first configuration message carries the synchronization identifier. And if the first configuration message does not carry the synchronous identifier, adding the synchronous identifier to the preset position of the first configuration message by the first device to be configured, and generating a second configuration message. And the first device to be configured sends a second configuration message to the second device to be configured. And if the first device to be configured obtains a first configuration result that the second device to be configured is successfully configured based on the second configuration message, the first device to be configured configures the relevant configuration based on the first configuration message. And if the first equipment to be configured is successfully configured based on the first configuration message, sending synchronization success information to the management equipment. The synchronization of the configuration messages between the main equipment and the standby equipment is realized through the synchronization identification, the synchronization process of the configuration messages is greatly simplified, the power consumption of the equipment is low, and the processing efficiency of the synchronization of the configuration messages of the equipment is high.
Drawings
Fig. 1 is a flowchart of an embodiment of a method for synchronizing configuration messages according to the present invention;
FIG. 2 is a flowchart of another embodiment of a method for synchronizing configuration messages according to the present invention;
FIG. 3 is a flowchart of another embodiment of a method for synchronizing configuration messages according to the present invention;
FIG. 4 is a flowchart of another embodiment of a method for synchronizing configuration messages according to the present invention;
FIG. 5 is a flowchart of another embodiment of a method for synchronizing configuration messages according to the present invention;
fig. 6 is a hardware structure diagram of a main device provided in the present invention;
FIG. 7 is a block diagram of an embodiment of a synchronization apparatus for configuration messages according to the present invention;
fig. 8 is a block diagram of another embodiment of a synchronization apparatus for configuration messages according to the present invention.
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 invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, 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 invention. As used in this specification 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, these 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 invention. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Fig. 1 is a flowchart of an embodiment of a synchronization method for configuration messages provided in the present invention, where a dual-computer hot-standby environment generally includes a primary device and a standby device, the synchronization method for configuration messages may be applied to any device in dual-computer hot-standby, and if a first device to be configured is the primary device, a second device to be configured is the standby device; and if the first equipment to be configured is standby equipment, the second equipment to be configured is main equipment. In the following embodiments, the first device to be configured is taken as an active device, and the second device to be configured is taken as a standby device for example. As shown in fig. 1, the method for synchronizing configuration messages includes the following steps:
step 101: and if the first configuration message is received, determining whether the first configuration message carries a synchronization identifier, wherein the synchronization identifier is used for marking the message needing synchronization.
Step 102: and if the first configuration message does not carry the synchronous identifier, adding the synchronous identifier at the preset position of the first configuration message to generate a second configuration message.
Step 103: and sending a second configuration message to a second device to be configured, which is synchronous with the first device to be configured.
Step 104: and if a first configuration result that the second device to be configured is successfully configured based on the second configuration message is obtained, configuring the relevant configuration based on the first configuration message.
Step 105: and if the first equipment to be configured is successfully configured based on the first configuration message, sending synchronization success information to the management equipment.
In step 101, in an embodiment, the first configuration message may be an HTTP message carrying configuration information, and generally, if the request method in the HTTP message request line is POST, it indicates that the message is a configuration message. If the primary device receives the first configuration message, the primary device determines whether the first configuration message carries a synchronization identifier, where the synchronization identifier is used to mark a message that needs to be synchronized, and the synchronization identifier is, for example, "OK".
In step 102, in an embodiment, if the first configuration packet does not carry the synchronization identifier, the first configuration packet is directly issued to the active device for the management device. And the main equipment adds a synchronous identifier at a preset position of the first configuration message to generate a second configuration message, wherein the preset position is a position which is preset by a manager and needs to be changed. Taking the first configuration message as an HTTP message as an example, as shown in the following table 1, the first configuration message is a schematic structural diagram of the HTTP message:
TABLE 1
Figure GDA0002420028660000051
The first row in table 1 is the request row; the second line to the fourth line are request headers, and the number of lines included in the request headers is set by the client 11 according to different requirements; the sixth action requests text. It will be understood by those skilled in the art that the fourth row of the last row of the request header in table 1 (i.e. the preset position) is a row of content added by the user, and the preset position is only an exemplary one and is not a limitation to the present invention. And the main equipment adds a synchronous identifier ' OK ' in the synchronous identifier ' and generates a second configuration message carrying the synchronous identifier.
In step 103, in an embodiment, the active device sends a second configuration packet to the standby device.
In step 104, in an embodiment, if the active device obtains a first configuration result that the standby device is successfully configured based on the second configuration packet, the active device configures the relevant configuration based on the first configuration packet.
In step 105, in an embodiment, if the active device is successfully configured based on the first configuration packet, the active device sends synchronization success information to the management device, and the synchronization process of the configuration packet between the active device and the standby device is ended.
In the embodiment of the present invention, if the first device to be configured receives the first configuration message, the first device to be configured determines whether the first configuration message carries the synchronization identifier. And if the first configuration message does not carry the synchronous identifier, adding the synchronous identifier to the preset position of the first configuration message by the first device to be configured, and generating a second configuration message. And the first device to be configured sends a second configuration message to the second device to be configured. And if the first device to be configured obtains a first configuration result that the second device to be configured is successfully configured based on the second configuration message, the first device to be configured configures the relevant configuration based on the first configuration message. And if the first equipment to be configured is successfully configured based on the first configuration message, sending synchronization success information to the management equipment. The synchronization of the configuration messages between the main equipment and the standby equipment is realized through the synchronization identification, the synchronization process of the configuration messages is greatly simplified, the power consumption of the equipment is low, and the processing efficiency of the synchronization of the configuration messages of the equipment is high.
Fig. 2 is a flowchart of another embodiment of a method for synchronizing configuration packets provided by the present invention, and an exemplary description is given to a case where a first configuration packet carries a synchronization identifier on the basis of steps 101 to 105 in fig. 1, where as shown in fig. 2, the method includes the following steps:
step 201: and if the first configuration message carries the synchronous identification, configuring the relevant configuration based on the first configuration message.
Step 202: and sending a second configuration result of whether the configuration is successful or not to the second device to be configured.
Step 203: and if the second configuration result shows that the configuration is successful, deleting the related configuration configured based on the first configuration message when a third configuration result which is sent by the second device to be configured and shows that the configuration is unsuccessful is obtained.
In step 201 to step 203, if the first configuration packet carries the synchronization identifier, the active device configures the relevant configuration based on the first configuration packet. And the main equipment sends a second configuration result indicating whether the configuration is successful or not to the standby equipment, and if the second configuration result indicates that the configuration is successful, when the main equipment acquires a third configuration result indicating that the configuration is unsuccessful, which is sent by the standby equipment, the main equipment deletes the relevant configuration configured based on the first configuration message.
In the embodiment of the present invention, the active device completes the relevant configuration according to the first configuration message, and if the active device receives a third configuration result that the configuration sent by the standby device is unsuccessful, which indicates that the configuration of the active device is successful and the configuration of the standby device is not successful, the active device deletes the previously configured relevant configuration, and recovers the configuration state before the configuration is not configured, thereby ensuring that the configurations of the active device and the standby device are consistent.
Fig. 3 is a flowchart of an embodiment of a synchronization method for a configuration packet provided by the present invention, where the embodiment of the present invention is exemplarily described on the basis of steps 101 to 104 with reference to fig. 1, and as shown in fig. 3, the method includes the following steps:
step 301: and if the first configuration message is received, determining whether the first configuration message carries a synchronization identifier, wherein the synchronization identifier is used for marking the message needing synchronization.
Step 302: and if the first configuration message does not carry the synchronous identifier, adding the synchronous identifier at the preset position of the first configuration message to generate a second configuration message.
Step 303: and sending a second configuration message to a second device to be configured, which is synchronous with the first device to be configured.
Step 304: and if a first configuration result that the second device to be configured is successfully configured based on the second configuration message is obtained, configuring the relevant configuration based on the first configuration message.
Step 305: and if the first device to be configured is unsuccessful in configuration based on the first configuration message, sending a fourth configuration result of unsuccessful configuration to the second device to be configured.
The related descriptions in steps 301 and 304 can refer to the related descriptions in steps 101 to 104, which are not described herein again.
In step 305, if the active device is not configured successfully based on the first configuration packet, the active device sends a fourth configuration result that the configuration is not successful to the standby device, so that the standby device deletes the relevant configuration configured based on the second configuration packet after the standby device obtains the fourth configuration result.
In the embodiment of the present invention, if the primary device is unsuccessfully configured based on the first configuration packet, the primary device sends a fourth configuration result that the configuration is unsuccessful to the second device to be configured, so that a configuration result indicating whether the configuration of the other device is successful or not is obtained between the primary device and the standby device in time.
Fig. 4 is a flowchart of an embodiment of a synchronization method for a configuration packet provided by the present invention, where the embodiment of the present invention is exemplarily described on the basis of steps 101 to 103 with reference to fig. 1, and as shown in fig. 4, the method includes the following steps:
step 401: and if the first configuration message is received, determining whether the first configuration message carries a synchronization identifier, wherein the synchronization identifier is used for marking the message needing synchronization.
Step 402: and if the first configuration message does not carry the synchronous identifier, adding the synchronous identifier at the preset position of the first configuration message to generate a second configuration message.
Step 403: and sending a second configuration message to a second device to be configured, which is synchronous with the first device to be configured.
Step 404: and if the first configuration result that the configuration of the second device to be configured is successful is not obtained within the preset time length, or the fifth configuration result that the configuration of the second device to be configured is unsuccessful is received, sending a sixth configuration result that the configuration is unsuccessful to the second device to be configured.
Step 405: and sending synchronization failure information to the management device.
The related descriptions in steps 401 through 403 can refer to the related descriptions in steps 101 through 103, which are not described herein again.
In steps 404 to 405, the preset duration is, for example, 2 minutes, and if the active device does not obtain the first configuration result that the configuration of the standby device is successful within 2 minutes, or receives the fifth configuration result that the configuration of the standby device is unsuccessful, the active device sends the sixth configuration result that the configuration is unsuccessful to the standby device, and the active device sends synchronization failure information to the management device.
In the embodiment of the present invention, for a situation that the primary device does not receive the first configuration result or receives a fifth configuration result that the configuration of the standby device is unsuccessful, the primary device sends a sixth configuration result that the configuration is unsuccessful to the standby device, and sends a configuration situation of itself to the standby device in time; the main device sends synchronization failure information to the management device, so that the management device can timely respond to the synchronization failure condition.
Fig. 5 is a flowchart of an embodiment of a synchronization method for a configuration packet provided in the present invention, where the embodiment of the present invention is exemplarily described before step 102 is executed in conjunction with fig. 1, and as shown in fig. 5, the method includes the following steps:
step 501: and determining whether the mobile terminal is in a dual-computer hot standby state.
Step 502: and when the device is determined to be in the dual-computer hot standby state, determining a second device to be configured which is synchronous with the first device to be configured and a synchronous path between the first device to be configured and the second device to be configured.
Step 503: and based on the synchronous path, executing the step of sending a second configuration message to a second device to be configured, which is synchronous with the first device to be configured.
In step 501, the active device determines whether the active device is in the dual-device hot-standby state, specifically, the active device may determine through the dual-device hot-standby state identifier in the active device, for example, when the dual-device hot-standby state identifier recorded in the active device is "on", it indicates that the active device is in the dual-device hot-standby state.
In step 502, when the active device determines that the active device is in the dual-device hot standby state, the active device determines the standby device connected to the active device and configured synchronously, and the synchronous path between the active device and the standby device, specifically, the active device determines the output port and the input port configured with message synchronization, and the output port and the input port of the standby device.
In step 503, the active device executes a step of sending a second configuration packet to the standby device based on the determined synchronization path.
In the embodiment of the present invention, the active device needs to determine in advance whether the active device is in the dual-device hot-standby state, and when the active device determines that the active device is in the dual-device hot-standby state, the active device determines a synchronization path for implementing synchronization of the configuration messages with the standby device, thereby ensuring that a stable dual-device hot-standby state is established between the active device and the standby device, and laying a solid foundation for implementing synchronization of the configuration messages between the active device and the standby device.
Corresponding to the above synchronization method for configuration packets, the present invention also provides a hardware structure diagram of the active device shown in fig. 6. Referring to fig. 6, at the hardware level, the active device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required by other services. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a synchronization device for configuring the message on a logic level. Of course, besides the software implementation, the present invention does not exclude other implementations, such as logic devices or combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may be hardware or logic devices.
It can be understood by those skilled in the art that, corresponding to the above synchronization method for configuration packets, the hardware structure diagram of the standby device proposed in the present invention is consistent with the hardware structure diagram of the active device shown in fig. 6, and the description of the standby device may refer to the description of the active device in fig. 6, which is not described herein again.
Fig. 7 is a block diagram of an embodiment of a synchronization apparatus for configuration messages, where as shown in fig. 7, the synchronization apparatus for configuration messages may include: an identity determining module 71, an identity adding module 72, a first sending module 73, a first configuration module 74, and a second sending module 75, wherein:
an identifier determining module 71, configured to determine whether a first configuration message carries a synchronization identifier if the first configuration message is received, where the synchronization identifier is used to mark a message that needs to be synchronized;
an identifier adding module 72, configured to add the synchronization identifier to a preset position of the first configuration packet to generate a second configuration packet if the synchronization identifier is not carried in the first configuration packet;
a first sending module 73, configured to send the second configuration packet to a second device to be configured, where the second device to be configured is configured synchronously with the first device to be configured;
a first configuration module 74, configured to configure, if a first configuration result that the second device to be configured is successfully configured based on the second configuration packet is obtained, a relevant configuration based on the first configuration packet;
the second sending module 75 is configured to send synchronization success information to the management device if the first device to be configured is successfully configured based on the first configuration packet.
Fig. 8 is a block diagram of another embodiment of a synchronization apparatus for configuration messages provided by the present invention, and as shown in fig. 8, on the basis of the embodiment shown in fig. 7, the synchronization apparatus for configuration messages further includes:
a second configuration module 76, configured to configure a relevant configuration based on the first configuration packet if the synchronization identifier is carried in the first configuration packet;
a third sending module 77, configured to send a second configuration result of whether the configuration is successful or not to the second device to be configured.
In an embodiment, the apparatus for synchronizing configuration packets further includes:
a configuration deleting module 78, configured to delete the relevant configuration configured based on the first configuration packet if the second configuration result indicates that the configuration is successful, when a third configuration result indicating that the configuration sent by the second device to be configured is unsuccessful is obtained.
In an embodiment, the apparatus for synchronizing configuration packets further includes:
a fourth sending module 79, configured to send, if the first device to be configured fails to configure based on the first configuration packet, a fourth configuration result that the configuration is unsuccessful to the second device to be configured.
In an embodiment, the apparatus for synchronizing configuration packets further includes:
a fifth sending module 80, configured to send, to the second device to be configured, a sixth configuration result with unsuccessful configuration if the first configuration result with successful configuration of the second device to be configured is not obtained within a preset time length, or a fifth configuration result with unsuccessful configuration of the second device to be configured is received;
a sixth sending module 81 configured to send synchronization failure information to the management device.
In an embodiment, the apparatus for synchronizing configuration packets further includes:
a state determination module 82 configured to determine whether it is in a dual-computer hot-standby state;
a path determining module 83, configured to determine, when it is determined that the device is in the dual-computer hot standby state, a second device to be configured that is configured synchronously with the first device to be configured and a synchronization path between the first device to be configured and the second device to be configured, and based on the synchronization path, perform the step of sending the second configuration packet to the second device to be configured that is configured synchronously with the first device to be configured.
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 invention. One of ordinary skill in the art can understand and implement it without inventive effort.
As can be seen from the foregoing embodiment, if the first device to be configured receives the first configuration message, the first device to be configured determines whether the first configuration message carries the synchronization identifier. And if the first configuration message does not carry the synchronous identifier, adding the synchronous identifier to the preset position of the first configuration message by the first device to be configured, and generating a second configuration message. And the first device to be configured sends a second configuration message to the second device to be configured. And if the first device to be configured obtains a first configuration result that the second device to be configured is successfully configured based on the second configuration message, the first device to be configured configures the relevant configuration based on the first configuration message. And if the first equipment to be configured is successfully configured based on the first configuration message, sending synchronization success information to the management equipment. The synchronization of the configuration messages between the main equipment and the standby equipment is realized through the synchronization identification, the synchronization process of the configuration messages is greatly simplified, the power consumption of the equipment is low, and the processing efficiency of the synchronization of the configuration messages of the equipment is high.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A synchronization method for configuring messages is characterized in that the method comprises the following steps:
if a first configuration message is received, determining whether the first configuration message carries a synchronization identifier, wherein the synchronization identifier is used for marking the message needing synchronization;
if the first configuration message does not carry the synchronization identifier, adding the synchronization identifier at a preset position of the first configuration message to generate a second configuration message;
sending the second configuration message to a second device to be configured, which is synchronous with the first device to be configured;
if a first configuration result that the second device to be configured is successfully configured based on the second configuration message is obtained, configuring the relevant configuration based on the first configuration message;
and if the first equipment to be configured is successfully configured based on the first configuration message, sending synchronization success information to management equipment.
2. The method of claim 1, further comprising:
if the first configuration message carries the synchronous identification, configuring related configuration based on the first configuration message;
and sending a second configuration result of whether the configuration is successful or not to the second device to be configured.
3. The method of claim 2, further comprising:
and if the second configuration result indicates that the configuration is successful, deleting the relevant configuration configured based on the first configuration message when a third configuration result which indicates that the configuration is unsuccessful and is sent by the second device to be configured is obtained.
4. The method of claim 1, further comprising:
and if the first device to be configured is not configured successfully based on the first configuration message, sending a fourth configuration result with unsuccessful configuration to the second device to be configured.
5. The method of claim 1, further comprising:
if the first configuration result that the configuration of the second device to be configured is successful is not obtained within a preset time length, or a fifth configuration result that the configuration of the second device to be configured is unsuccessful is received, sending a sixth configuration result that the configuration is unsuccessful to the second device to be configured;
and sending synchronization failure information to the management device.
6. The method of claim 1, further comprising:
determining whether the mobile terminal is in a dual-computer hot standby state;
when the dual-computer hot standby state is determined, determining a second device to be configured which is synchronous with the first device to be configured and a synchronous path between the first device to be configured and the second device to be configured;
and executing the step of sending the second configuration message to a second device to be configured, which is configured synchronously with the first device to be configured, based on the synchronization path.
7. A synchronization apparatus for configuring a packet, the apparatus comprising:
the identification determining module is configured to determine whether a first configuration message carries a synchronization identification if the first configuration message is received, wherein the synchronization identification is used for marking a message needing synchronization;
the identifier adding module is configured to add the synchronization identifier at a preset position of the first configuration message to generate a second configuration message if the synchronization identifier is not carried in the first configuration message;
the first sending module is configured to send the second configuration message to a second device to be configured, which is configured synchronously with the first device to be configured;
the first configuration module is configured to configure the relevant configuration based on the first configuration message if a first configuration result that the second device to be configured is successfully configured based on the second configuration message is obtained;
and the second sending module is configured to send synchronization success information to the management device if the first device to be configured is successfully configured based on the first configuration message.
8. The apparatus of claim 7, further comprising:
a second configuration module configured to configure a relevant configuration based on the first configuration packet if the first configuration packet carries the synchronization identifier;
and the third sending module is configured to send a second configuration result of whether the configuration is successful or not to the second device to be configured.
9. The apparatus of claim 8, further comprising:
and the configuration deleting module is configured to delete the relevant configuration configured based on the first configuration message when a third configuration result which is sent by the second device to be configured and indicates that the configuration is unsuccessful is obtained if the second configuration result indicates that the configuration is successful.
10. The apparatus of claim 8, further comprising:
a fourth sending module, configured to send, to the second device to be configured, a fourth configuration result with unsuccessful configuration, if the first device to be configured is unsuccessful in configuration based on the first configuration packet.
CN201710821372.4A 2017-09-13 2017-09-13 Synchronization method and device for configuration messages Active CN107493201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710821372.4A CN107493201B (en) 2017-09-13 2017-09-13 Synchronization method and device for configuration messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710821372.4A CN107493201B (en) 2017-09-13 2017-09-13 Synchronization method and device for configuration messages

Publications (2)

Publication Number Publication Date
CN107493201A CN107493201A (en) 2017-12-19
CN107493201B true CN107493201B (en) 2020-06-09

Family

ID=60652317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710821372.4A Active CN107493201B (en) 2017-09-13 2017-09-13 Synchronization method and device for configuration messages

Country Status (1)

Country Link
CN (1) CN107493201B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932190A (en) * 2012-11-22 2013-02-13 杭州迪普科技有限公司 Method and device for solving single point of failure of equipment section
CN103152266A (en) * 2011-12-07 2013-06-12 华为技术有限公司 Synchronization method among network equipment, network equipment and system
CN103532970A (en) * 2013-10-23 2014-01-22 杭州华三通信技术有限公司 Transmission method and equipment of time synchronization messages
CN104079440A (en) * 2014-07-24 2014-10-01 上海斐讯数据通信技术有限公司 Synchronous configuration method of primary equipment and stand-by equipment and SNMP (Simple Network Management Protocol) system
CN106169964A (en) * 2016-09-28 2016-11-30 杭州迪普科技有限公司 Network equipments configuration synchronous method and device
CN106941418A (en) * 2017-03-10 2017-07-11 杭州迪普科技股份有限公司 The synchronous method and device of SSL VPN configuration informations

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013017104A (en) * 2011-07-06 2013-01-24 Fujitsu Ltd Communication system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152266A (en) * 2011-12-07 2013-06-12 华为技术有限公司 Synchronization method among network equipment, network equipment and system
CN102932190A (en) * 2012-11-22 2013-02-13 杭州迪普科技有限公司 Method and device for solving single point of failure of equipment section
CN103532970A (en) * 2013-10-23 2014-01-22 杭州华三通信技术有限公司 Transmission method and equipment of time synchronization messages
CN104079440A (en) * 2014-07-24 2014-10-01 上海斐讯数据通信技术有限公司 Synchronous configuration method of primary equipment and stand-by equipment and SNMP (Simple Network Management Protocol) system
CN106169964A (en) * 2016-09-28 2016-11-30 杭州迪普科技有限公司 Network equipments configuration synchronous method and device
CN106941418A (en) * 2017-03-10 2017-07-11 杭州迪普科技股份有限公司 The synchronous method and device of SSL VPN configuration informations

Also Published As

Publication number Publication date
CN107493201A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
CN108833521B (en) Message pushing method, device, system, computer equipment and storage medium
CN102404858B (en) Radio resource optimizing method, device and system
CN108810119A (en) block chain processing method, device and block chain node
EP3211852A1 (en) Ssh protocol-based session parsing method and system
CN108712457A (en) Back-end server dynamic load method of adjustment and device based on Nginx reverse proxys
CN104184756A (en) Data synchronization method, device and system
CN103401946A (en) HTTP (hyper text transfer protocol) uploading acceleration method and system
CN103631652A (en) Method and system for achieving virtual machine migration
CN105208058A (en) Information exchange system based on web session sharing
CN106941418B (en) SSL VPN configuration information synchronization method and device
CN103581274A (en) Message forwarding method and device in stacking system
CN107888434B (en) Network equipment configuration synchronization method and device
US10225358B2 (en) Page push method, device, server and system
CN109379764A (en) File transmitting method and device
CN108965359B (en) Communication method, communication device, readable medium, and electronic apparatus
CN105302486A (en) Virtual offline desktop block device storage synchronization method
CN113783789B (en) Message speed limiting method and device
WO2015027931A1 (en) Method and system for realizing cross-domain remote command
CN107493201B (en) Synchronization method and device for configuration messages
CN110888892B (en) Block synchronization method, device and storage medium
CN107835099B (en) Information synchronization method and device
CN110535959A (en) A kind of method, apparatus and computer readable storage medium for transmitting data
CN103259863B (en) Based on the system and method that the control zookeeper of cluster serves
CN111385324A (en) Data communication method, device, equipment and storage medium
CN113261249A (en) Data transmission method, related equipment and computer storage medium

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