CN109739622B - Main/standby main control configuration synchronization method and device based on frame type equipment - Google Patents

Main/standby main control configuration synchronization method and device based on frame type equipment Download PDF

Info

Publication number
CN109739622B
CN109739622B CN201811632721.9A CN201811632721A CN109739622B CN 109739622 B CN109739622 B CN 109739622B CN 201811632721 A CN201811632721 A CN 201811632721A CN 109739622 B CN109739622 B CN 109739622B
Authority
CN
China
Prior art keywords
ovc
command line
control command
identifier
line process
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
CN201811632721.9A
Other languages
Chinese (zh)
Other versions
CN109739622A (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 CN201811632721.9A priority Critical patent/CN109739622B/en
Publication of CN109739622A publication Critical patent/CN109739622A/en
Application granted granted Critical
Publication of CN109739622B publication Critical patent/CN109739622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a method and a device for synchronizing main and standby main control configurations based on frame equipment, which are applied to the frame equipment, and the method comprises the following steps: receiving a first configuration command and an identifier of a second operating system-level virtual environment (OVC) sent by a main master control command line process of a second OVC through a first socket channel between the main master control command line process of the second OVC and the identifier of the second OVC, and sending the first configuration command and the identifier of the second OVC to a standby master control command line process of the first OVC through an internal channel; and receiving the identifier and the configuration result of a third OVC sent by the standby main control command line process of the first OVC through the internal channel, and if the identifier of the third OVC is different from the identifier of the first OVC, sending the identifier and the configuration result of the third OVC to the main control command line process of the third OVC through a second socket channel between the identifier and the main control command line process of the third OVC. By applying the embodiment of the application, the configuration consistency between the main master control and the standby master control is ensured.

Description

Main/standby main control configuration synchronization method and device based on frame type equipment
Technical Field
The application relates to the technical field of network communication, in particular to a method and a device for synchronizing main and standby main control configurations based on frame type equipment.
Background
An operating system Level Virtual environment (OVC) is a virtualization technology for virtualizing a physical device into a plurality of logical devices. After the OVC virtualization, a plurality of logic devices on the same physical device have independent hardware, software, forwarding table entries, management planes and logs, and the operation of the logic devices is not affected. The OVC technology realizes virtualization of resources and management, after the resources of the physical equipment are pooled, the rapid deployment and adjustment of services are not limited by the physical equipment, the advantages of saving construction and operation and maintenance cost, flexible deployment according to needs, complete fault isolation and the like are realized, and the problems of multi-service safety isolation and resource allocation according to needs are effectively solved. And a basic condition is created for the network security to change the omni-directional dynamic and elastic cloud service mode. The OVC technology enables the system to perform independent process management, memory management and disk management aiming at each virtual device, and resource consumption and performance loss caused by switching and scheduling among the virtual devices are avoided. And the kernel of the operating system completes the scheduling among the OVCs and distributes hardware resources for each OVC according to a preset resource template.
The frame type equipment is composed of a frame and a board card inserted on the frame, the double-master control equipment refers to equipment which supports two master control boards to be in place at the same time, only one of the two master control boards can be used as a master control and is responsible for communicating with all interface boards (including issuing various table entries, receiving and sending messages and responding various events) and controlling the operation of the whole equipment, the other master control board is a standby master control, the standby master control can not communicate with the interface boards and interfere the operation of the whole equipment, and is only responsible for receiving backup data backed up from the master control. Once the main master fails, the standby master is switched to a new main master to start to control the operation of the entire device, and in order that the new main master can seamlessly take over all the work of the original main master, the standby master must have the same data (including single board information, interface information, various configurations, various table entries, and storage location information of the table entries in the interface board chip) as the main master.
The main master control and the standby master control have respective command line processes, the command line process of the main master control establishes communication connection through a physical channel between the main master control and the standby master control, and synchronizes the received command to the command line process of the standby master control for execution, so as to ensure that the configuration of the two master controls can be synchronized in real time.
There will typically be a default OVC on the boxed device, assumed to be OVC 0. All physical ports on the frame device and internal physical channel ports between the main master and the standby master belong to the OVC 0. After the OVC is newly created, a new command line process is created in the OVC to manage the configuration of the corresponding OVC, and meanwhile, part of the physical ports can be divided into the OVC, while only one port of the internal channel between the main master and the standby master belongs to one OVC, and usually, the physical port corresponding to the internal channel belongs to the OVC 0. Therefore, the newly-built OVC has no internal channel between the main master control command line process of the main master control and the standby master control command line process of the standby master control, and cannot establish communication connection, that is, the command received by the main master control command line process of the newly-built OVC cannot be synchronized into the standby master control command line process, which may cause inconsistent configuration between the main master control and the standby master control, and affect normal service processing of the frame device, and further affect network security.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for synchronizing main and standby main control configurations based on a frame device, so as to solve the problem that the configuration between the main control and the standby main control is inconsistent, which affects the normal service processing of the frame device, and further affects the network security.
Specifically, the method is realized through the following technical scheme:
a main and standby main control configuration synchronization method based on a frame device, where a main control and a standby main control of the frame device are connected through an internal channel, the main control and the standby main control are provided with at least two OVCs, the internal channel is used between a main control command line process of a first OVC and a standby main control command line process of the first OVC, the main control command line process of the first OVC and main control command line processes of other OVCs except the first OVC in the at least two OVCs are respectively connected through a socket channel, the standby main control command line process of the first OVC and standby main control command line processes of other OVCs except the first OVC in the at least two OVCs are respectively connected through socket channels, and the method is applied to the main control command line process of the first OVC, and includes:
receiving a first configuration command sent by a main master command line process of a second OVC and an identifier of the second operating system-level virtual environment OVC through a first socket channel between the first configuration command and the main master command line process of the second OVC, and sending the first configuration command and the identifier of the second OVC to a standby master command line process of the first OVC through the internal channel; and the number of the first and second groups,
and receiving an identifier and a configuration result of a third OVC, which are sent by a standby main control command line process of the first OVC, through the internal channel, and if the identifier of the third OVC is determined to be different from the identifier of the first OVC, sending the identifier of the third OVC and the configuration result to a main control command line process of the third OVC through a second socket channel between the identifier of the third OVC and the main control command line process of the third OVC.
A main and standby main control configuration synchronizer based on a frame device, the main and standby main controls of the frame device are connected through an internal channel, the main and standby main controls are provided with at least two OVCs, the internal channel is used between a main control command line process of a first OVC and a standby main control command line process of the first OVC in the at least two OVCs, socket channel connection is respectively established between the main control command line process of the first OVC and main control command line processes of other OVCs except the first OVC in the at least two OVCs, socket channels are respectively established between the standby main control command line process of the first OVC and standby main control command line processes of other OVCs except the first OVC in the at least two OVCs, the synchronizer is applied to the main control command line process of the first OVC, and the synchronizer comprises:
a first transceiver module, configured to receive, through a first socket channel between a primary master control command line process of a second OVC, a first configuration command sent by the primary master control command line process of the second OVC and an identifier of the second operating system-level virtual environment OVC, and send the first configuration command and the identifier of the second OVC to a standby master control command line process of the first OVC through the internal channel; and the number of the first and second groups,
and a second transceiver module, configured to receive, through the internal channel, an identifier and a configuration result of a third OVC sent by a standby master control command line process of the first OVC, and send, if it is determined that the identifier of the third OVC is different from the identifier of the first OVC, the identifier and the configuration result of the third OVC to a master control command line process of the third OVC through a second socket channel between the identifier and the master control command line process of the third OVC.
According to the technical scheme provided by the application, the socket channels can be respectively established between the main master control command line process of the first OVC and the main master control command line processes of other OVCs, the socket channels can be respectively established between the standby master control command line process of the first OVC and the standby master control command line processes of other OVCs, and the configuration commands and the configuration results of other OVCs can be forwarded through the internal channel of the first OVC, so that the consistency of the configuration between the main master control and the standby master control can be ensured, the frame type equipment can normally perform service processing, and the network security is further ensured.
Drawings
Fig. 1 is a flowchart of a method for synchronizing main/standby main control configurations based on a frame device according to the present application;
fig. 2 is a flowchart of another method for synchronizing main/standby main control configurations based on a frame device according to the present application;
fig. 3 is a flowchart of another method for synchronizing main/standby main control configurations based on a frame device according to the present application;
fig. 4 is a schematic structural diagram of a main/standby main control configuration synchronization device based on a frame device shown in fig. 1 according to the present application;
fig. 5 is a schematic structural diagram of a main/standby main control configuration synchronization apparatus based on a frame device corresponding to fig. 2 shown in this 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 above problem, an embodiment of the present invention provides a method for synchronizing configuration of a main master control and a standby master control based on a frame device, so as to ensure that the configuration between the main master control and the standby master control is consistent, and the frame device normally performs service processing, thereby ensuring network security. Please refer to fig. 1, fig. 1 is a flowchart of a method for synchronizing configuration of a main and standby main controls based on a frame device shown in this application, where a main control and a standby main control of the frame device are connected by an internal channel, the main control and the standby main control are provided with at least two OVCs, an internal channel is used between a main control command line process of a first OVC of the at least two OVCs and a standby main control command line process of the first OVC and a standby main control command line process of another OVC of the at least two OVCs except the first OVC, respectively, a socket channel is established between the main control command line process of the first OVC and a standby main control command line process of another OVC of the at least two OVCs except the first OVC, respectively, and the method is applied to the main control command line process of the first OVC, and includes:
s11: and receiving a first configuration command and an identifier of a second OVC sent by a main master control command line process of the second OVC through a first socket channel between the first configuration command and the main master control command line process of the second OVC, and sending the first configuration command and the identifier of the second OVC to a standby master control command line process of the first OVC through an internal channel.
The second OVC may be any other OVC except the first OVC, and the configuration command issued by the primary master command travel route of the second OVC may be defined as the first configuration command.
S12: and receiving the identifier and the configuration result of the third OVC, which are sent by the standby main control command line process of the first OVC, through an internal channel, and if the identifier of the third OVC is determined to be different from the identifier of the first OVC, sending the identifier and the configuration result of the third OVC to the main control command line process of the third OVC through a second socket channel between the identifier and the main control command line process of the third OVC.
The identifier of the OVC received from the standby master control command line of the first OVC may be defined as the identifier of the third OVC, because the processing mode is different according to whether the identifier of the third OVC is the same as the identifier of the first OVC, it is first necessary to determine whether the identifier of the third OVC is the same as the identifier of the first OVC, and if the identifier of the third OVC is the same as the identifier of the first OVC, the configuration result is saved; and if the difference is that the identification does not belong to the first OVC, sending the identification and the configuration result of the third OVC to the main master control command line process of the third OVC through a second socket channel between the identification and the configuration result of the third OVC and the main master control command line process of the third OVC.
The identifier of the second OVC may be the same as or different from the identifier of the third OVC, if the configuration result received in S12 is the configuration result of the first configuration command, the identifier of the second OVC is the same as the identifier of the third OVC, and if the configuration result received in S12 is the configuration result of the configuration command sent before, the identifier of the second OVC is different from the identifier of the third OVC.
It should be noted that the S11 and the S12 are not in strict sequential execution order, and in a period of time, only S11 may be executed, only S12 may be executed, only S11 may be executed first and then S12 is executed, and only S12 may be executed first and then S11 is executed, which only exemplarily shows that S11 is executed first and then S12 is executed first, and other cases are not described again.
According to the technical scheme provided by the application, the socket channels can be respectively established between the main master control command line process of the first OVC and the main master control command line processes of other OVCs, the socket channels can be respectively established between the standby master control command line process of the first OVC and the standby master control command line processes of other OVCs, and the configuration commands and the configuration results of other OVCs can be forwarded through the internal channel of the first OVC, so that the consistency of the configuration between the main master control and the standby master control can be ensured, the frame type equipment can normally perform service processing, and the network security is further ensured.
Optionally, the method further includes:
generating a second configuration command according to a command line input by a user;
and sending the identifier carrying the first OVC and a second configuration command to the standby main control command process of the first OVC through the internal channel.
The primary master command line process of the first OVC, in addition to forwarding the commands of the primary master command line processes of other OVCs, will continue to send the second configuration commands generated from the command line received from the user, i.e. will continue to process the configuration commands of the first OVC itself.
Referring to fig. 2, fig. 2 is another method for synchronizing configuration of a master/standby main control based on a frame device shown in this application, where a master main control and a standby main control of the frame device are connected by an internal channel, the master main control and the standby main control are provided with at least two OVCs, an internal channel is used between a master main control command line process of a first OVC of the at least two OVCs and a standby main control command line process of the first OVC, socket channel connections are respectively established between the master main control command line process of the first OVC and master main control command line processes of other OVCs except the first OVC of the at least two OVCs, socket channels are respectively established between the standby main control command line process of the first OVC and standby main control command line processes of other OVCs except the first OVC of the at least two OVCs, and the method is applied to the standby main control command line process of the first OVC, and includes:
s21: and receiving the configuration command sent by the primary master control command line of the first OVC and the identification of the second OVC through the internal channel.
The identity of the OVC received over the inner channel may be defined as the identity of the second OVC.
S22: and if the identifier of the second OVC is different from the identifier of the first OVC, sending the configuration command and the identifier of the second OVC to the standby main control command line process of the second OVC through a first socket channel between the standby main control command line process of the second OVC, so that after the standby main control command line process of the second OVC executes the configuration command, sending the first configuration result and the identifier of the second OVC to the standby main control command line process of the first OVC through the first socket channel.
According to whether the identifier of the second OVC is the same as the identifier of the first OVC or not and the processing mode is different, it is first determined whether the identifier of the second OVC is the same as the identifier of the first OVC or not, and if the identifier of the second OVC is different from the identifier of the first OVC, the identifier of the second OVC and the identifier of the first OVC are not the same as the identifier of the first OVC, the configuration command and the identifier of the second OVC are sent to the standby master control command line process of the second OVC through a first socket channel between the standby master control command line process of the second OVC and processed by the standby master control command line process of the second OVC, the configuration result of the standby master control command line process of the second OVC with respect to the configuration command can be defined as a first configuration result, and the standby master control command line process of the second OVC sends the first configuration result and the identifier of the second OVC to the standby master control command line process of; if the two descriptions belong to the first OVC, after the configuration command is executed, the obtained configuration result is defined as a second configuration result, and the second configuration result and the identifier of the first OVC are sent to the main master control command line process of the first OVC through the internal channel.
S23: and sending the first configuration result and the identifier of the second OVC received through the first socket channel to a main master control command line process of the first OVC.
According to the technical scheme provided by the application, the socket channels can be respectively established between the main master control command line process of the first OVC and the main master control command line processes of other OVCs, the socket channels can be respectively established between the standby master control command line process of the first OVC and the standby master control command line processes of other OVCs, and the configuration commands and the configuration results of other OVCs can be forwarded through the internal channel of the first OVC, so that the consistency of the configuration between the main master control and the standby master control can be ensured, the frame type equipment can normally perform service processing, and the network security is further ensured.
Referring to fig. 3, fig. 3 is a diagram illustrating another method for synchronizing main and standby main control configurations based on a frame device according to the present application, where when the frame device does not turn on an OVC function, there is only one default OVC on the frame device, which may be defined as OVC 0. The primary master has only one master command line process, and the standby master also has only one standby master command line process, both belong to the OVC0, which are respectively represented by OVC0_ CLI _ M, OVC0_ CLI _ B, and subscript M, B respectively represents the master and the standby master. The configuration command on the main control command process can be sent to the standby main control command process for execution through an internal channel between the main control and the standby main control, and the effect of configuration synchronization can be achieved.
After the frame device starts the OVC function, n OVCs, such as OVC1, OVC2, OVCn, etc., may be created. In this embodiment, OVC1 is taken as an example to illustrate a complete technical solution of the present application. When the boxed device creates an OVC1, the OVC1 may have partial resources on the boxed device, such as physical ports, Central Processing Unit (CPU) resources, and the like. Meanwhile, the OVC1 creates a master command line process on the master, which may be defined as OVC1_ CLI _ M, and creates a slave command line process on the slave, which may be defined as OVC1_ CLI _ B, so that the user can log in the master command line process of the OVC1 to issue commands. If a special physical channel is set between the main control command line process and the standby main control command line process between the same OVCs on each main control and each standby main control, the waste of physical ports is caused because the number of physical ports on the frame device is limited. In order to save physical resources of the block device, the OVC1_ CLI _ M and the OVC1_ CLI _ B may implement configuration synchronization through an internal channel between the OVC0_ CLI _ M and the OVC0_ CLI _ B. And direct communication between the OVC1_ CLI _ M and the OVC1_ CLI _ B is impossible.
The OVC0_ CLI _ M, OVC1_ CLI _ M respectively belongs to processes on the main master control, and belongs to the same linux operating system on the same physical board card. And local unix socket monitoring can be created among the OVCs 0_ CLI _ M, OVC1_ CLI _ M, connection is mutually established, and information of the other party is transmitted and received, so that the communication among the OVCs 0_ CLI _ M, OVC1_ CLI _ M processes is realized. Each OVC has its own unique OVC Identification (ID), e.g., OVCIDs of OVC0, OVC1 are 0, 1, respectively.
If the user executes the command cmd on the OVC1_ CLI _ M, the OVC1_ CLI _ M may send the cmd and the OVCID to which the user belongs to the OVC0_ CLI _ M. After being received, the OVC0_ CLI _ M can be sent to the OVC0_ CLI _ B through an internal channel, and after being received, the OVC0_ CLI _ B can send cmd to the OVC1_ CLI _ B according to the OVCID, so that the command of the OVC1_ CLI _ M can be synchronized to the OVC1_ CLI _ B, and the configuration synchronization between the OVCs under the main control and the standby control is realized. The specific configuration synchronization process is as follows:
1. executing the command cmd on the OVC1_ CLI _ M, and after executing the cmd by the OVC1_ CLI _ M, sending the cmd and the OVCID of the OVC to which the cmd belongs to the OVC0_ CLI _ M through a local unix socket channel;
2. after receiving cmd and OVCID sent by OVC1_ CLI _ M, OVC0_ CLI _ M sends cmd and OVCID to OVC0_ CLI _ B through an internal channel;
3. after receiving cmd and OVCID sent by OVC0_ CLI _ M, OVC0_ CLI _ B determines whether OVCID is equal to OVCID of OVC to which it belongs, if so, executes the command, and sends execution result to OVC0_ CLI _ M, if not, connects backup master control command line process under corresponding OVC on backup master control according to OVCID, and the process takes OVC1 as an example, that is, connects to OVC1_ CLI _ B, and sends cmd and OVCID to OVC1_ CLI _ B;
4. after receiving the cmd and the OVCID sent by the OVC0_ CLI _ B, the OVC1_ CLI _ B executes the corresponding cmd and sends an execution result and the OVCID of the OVC to which the OVC belongs to the OVC0_ CLI _ B;
5. after the result of OVC0_ CLI _ B reaches the execution result of OVC1_ CLI _ B execution cmd, the execution result and OVCID are sent to OVC0_ CLI _ M;
6. after receiving the OVC0_ CLI _ M, connecting the corresponding command line process under the OVC according to the OVCID, and sending the execution result and the OVCID to the main master control command line process under the OVC, where the process takes OVC1 as an example, that is, sending the result to OVC1_ CLI _ M;
and after receiving the execution result, the OVC1_ CLI _ M process displays the result information on a terminal screen, namely the command configuration synchronization process is finished.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a main/standby main control configuration synchronization apparatus based on a frame device shown in this application, corresponding to the method shown in fig. 1, the main master control and the standby master control of the frame device are connected through an internal channel, the main master control and the standby master control are provided with at least two OVCs, the internal channel is used between the main master control command line process of the first OVC and the standby master control command line process of the first OVC in the at least two OVCs, socket channel connections are respectively established between the main master control command line process of the first OVC and the main master control command line processes of the other OVCs except the first OVC in the at least two OVCs, socket channels are respectively established between the standby master control command line process of the first OVC and the standby master control command line processes of the other OVCs except the first OVC in the at least two OVCs, the apparatus is applied to a master control command line process of a first OVC, the apparatus comprising:
a first transceiver module 41, configured to receive, through a first socket channel between the first transceiver module and a primary master control command line process of a second OVC, a first configuration command and an identifier of a second operating system-level virtual environment OVC that are sent by the primary master control command line process of the second OVC, and send the first configuration command and the identifier of the second OVC to a standby master control command line process of the first OVC through an internal channel; and the number of the first and second groups,
and the second transceiver module 42 is configured to receive, through the internal channel, an identifier and a configuration result of a third OVC sent by the standby master control command line process of the first OVC, and send, if it is determined that the identifier of the third OVC is different from the identifier of the first OVC, the identifier and the configuration result of the third OVC to the master control command line process of the third OVC through a second socket channel between the identifier and the master control command line process of the third OVC.
According to the technical scheme provided by the application, the socket channels can be respectively established between the main master control command line process of the first OVC and the main master control command line processes of other OVCs, the socket channels can be respectively established between the standby master control command line process of the first OVC and the standby master control command line processes of other OVCs, and the configuration commands and the configuration results of other OVCs can be forwarded through the internal channel of the first OVC, so that the consistency of the configuration between the main master control and the standby master control can be ensured, the frame type equipment can normally perform service processing, and the network security is further ensured.
Optionally, the apparatus further includes a saving module, configured to:
and if the identifier of the third OVC is the same as the identifier of the first OVC, storing the configuration result.
Optionally, the first transceiver module 41 is further configured to:
generating a second configuration command according to a command line input by a user;
and sending the identifier carrying the first OVC and a second configuration command to the standby main control command process of the first OVC through the internal channel.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a main/standby main control configuration synchronization apparatus based on a frame device shown in this application, corresponding to the method shown in fig. 2, the main master control and the standby master control of the frame device are connected through an internal channel, the main master control and the standby master control are provided with at least two OVCs, the internal channel is used between the main master control command line process of the first OVC and the standby master control command line process of the first OVC in the at least two OVCs, socket channel connections are respectively established between the main master control command line process of the first OVC and the main master control command line processes of the other OVCs except the first OVC in the at least two OVCs, socket channels are respectively established between the standby master control command line process of the first OVC and the standby master control command line processes of the other OVCs except the first OVC in the at least two OVCs, the device is applied to a standby main control command line process of a first OVC, and comprises the following steps:
a receiving module 51, configured to receive, through an internal channel, a configuration command sent by a primary master control command line of a first OVC and an identifier of a second OVC;
a sending module 52, configured to send the configuration command and the identifier of the second OVC to the standby master control command line process of the second OVC through a first socket channel between the standby master control command line process of the second OVC and the identifier of the second OVC if it is determined that the identifier of the second OVC is different from the identifier of the first OVC, so that after the standby master control command line process of the second OVC executes the configuration command, the first configuration result and the identifier of the second OVC are sent to the standby master control command line process of the first OVC through the first socket channel;
and the transceiver module 53 is configured to send the first configuration result and the identifier of the second OVC received through the first socket channel to a master control command line process of the first OVC.
According to the technical scheme provided by the application, the socket channels can be respectively established between the main master control command line process of the first OVC and the main master control command line processes of other OVCs, the socket channels can be respectively established between the standby master control command line process of the first OVC and the standby master control command line processes of other OVCs, and the configuration commands and the configuration results of other OVCs can be forwarded through the internal channel of the first OVC, so that the consistency of the configuration between the main master control and the standby master control can be ensured, the frame type equipment can normally perform service processing, and the network security is further ensured.
Optionally, the sending module 52 is further configured to:
and if the identifier of the second OVC is the same as the identifier of the first OVC, after the configuration command is executed, sending the second configuration result and the identifier of the first OVC to a main master control command line process of the first OVC through an internal channel.
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 main and standby main control configuration synchronization method based on frame equipment is disclosed, the main and standby main controls of the frame equipment are connected through an internal channel, the main and standby main controls are provided with at least two OVCs, the internal channel is used between a main control command line process of a first OVC in the at least two OVCs and a standby main control command line process of the first OVC, socket channel connection is respectively established between the main control command line process of the first OVC and main control command line processes of other OVCs except the first OVC in the at least two OVCs, socket channels are respectively established between the standby main control command line process of the first OVC and standby main control command line processes of other OVCs except the first OVC in the at least two OVCs, the method is applied to the main control command line process of the first OVC, the OVC is an operating system level virtual environment, characterized in that the method comprises:
receiving a first configuration command and an identifier of a second OVC (orthogonal frequency division multiplexing) sent by a main master control command line process of the second OVC through a first socket channel between the first configuration command and the main master control command line process of the second OVC, and sending the first configuration command and the identifier of the second OVC to a standby master control command line process of the first OVC through the internal channel; and the number of the first and second groups,
and receiving an identifier and a configuration result of a third OVC, which are sent by a standby main control command line process of the first OVC, through the internal channel, and if the identifier of the third OVC is determined to be different from the identifier of the first OVC, sending the identifier of the third OVC and the configuration result to a main control command line process of the third OVC through a second socket channel between the identifier of the third OVC and the main control command line process of the third OVC.
2. The method of claim 1, further comprising:
and if the identifier of the third OVC is determined to be the same as the identifier of the first OVC, storing the configuration result.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
generating a second configuration command according to a command line input by a user;
and sending the identifier carrying the first OVC and the second configuration command to a standby main control command line process of the first OVC through the internal channel.
4. A main and standby main control configuration synchronization method based on frame equipment is disclosed, the main and standby main controls of the frame equipment are connected through an internal channel, the main and standby main controls are provided with at least two OVCs, the internal channel is used between a main control command line process of a first OVC and a standby main control command line process of the first OVC in the at least two OVCs, socket channel connection is respectively established between the main control command line process of the first OVC and main control command line processes of other OVCs except the first OVC in the at least two OVCs, socket channels are respectively established between the standby main control command line process of the first OVC and standby main control command line processes of other OVCs except the first OVC in the at least two OVCs, the method is applied to the standby main control command line process of the first OVC, and the OVCs are operating system level virtual environments, characterized in that the method comprises:
receiving a configuration command sent by a primary master control command line of the first OVC and an identifier of a second OVC through the internal channel;
if the identifier of the second OVC is determined to be different from the identifier of the first OVC, sending the configuration command and the identifier of the second OVC to the standby master control command line process of the second OVC through a first socket channel between the standby master control command line process of the second OVC, so that after the standby master control command line process of the second OVC executes the configuration command, sending a first configuration result and the identifier of the second OVC to the standby master control command line process of the first OVC through the first socket channel;
and sending the first configuration result and the identifier of the second OVC received through the first socket channel to a master control command line process of the first OVC.
5. The method of claim 4, further comprising:
and if the identifier of the second OVC is the same as the identifier of the first OVC, after the configuration command is executed, sending a second configuration result and the identifier of the first OVC to a master control command line process of the first OVC through the internal channel.
6. A main and standby main control configuration synchronizer based on frame equipment is characterized in that a main control and a standby main control of the frame equipment are connected through an internal channel, the main control and the standby main control are provided with at least two OVCs, the internal channel is used between a main control command line process of a first OVC in the at least two OVCs and a standby main control command line process of the first OVC, socket channel connections are respectively established between the main control command line process of the first OVC and main control command line processes of other OVCs except the first OVC in the at least two OVCs, socket channels are respectively established between the standby main control command line process of the first OVC and standby main control command line processes of other OVCs except the first OVC in the at least two OVCs, the synchronizer is applied to the main control command line process of the first OVC, and the OVCs are operating system level virtual environments, the device comprises:
a first transceiver module, configured to receive, through a first socket channel between the first transceiver module and a primary master control command line process of a second OVC, a first configuration command and an identifier of the second OVC that are sent by the primary master control command line process of the second OVC, and send the first configuration command and the identifier of the second OVC to a standby master control command line process of the first OVC through the internal channel; and the number of the first and second groups,
and a second transceiver module, configured to receive, through the internal channel, an identifier and a configuration result of a third OVC sent by a standby master control command line process of the first OVC, and send, if it is determined that the identifier of the third OVC is different from the identifier of the first OVC, the identifier and the configuration result of the third OVC to a master control command line process of the third OVC through a second socket channel between the identifier and the master control command line process of the third OVC.
7. The apparatus of claim 6, further comprising a save module to:
and if the identifier of the third OVC is determined to be the same as the identifier of the first OVC, storing the configuration result.
8. The apparatus of claim 6 or 7, wherein the first transceiver module is further configured to:
generating a second configuration command according to a command line input by a user;
and sending the identifier carrying the first OVC and the second configuration command to a standby main control command line process of the first OVC through the internal channel.
9. A main and standby main control configuration synchronizer based on frame equipment is disclosed, the main and standby main controls of the frame equipment are connected through an internal channel, the main and standby main controls are provided with at least two OVCs, the internal channel is used between a main control command line process of a first OVC and a standby main control command line process of the first OVC in the at least two OVCs, socket channel connection is respectively established between the main control command line process of the first OVC and main control command line processes of other OVCs except the first OVC in the at least two OVCs, socket channels are respectively established between the standby main control command line process of the first OVC and standby main control command line processes of other OVCs except the first OVC in the at least two OVCs, the synchronizer is applied to the standby main control command line process of the first OVC, and the OVC is an operating system level virtual environment, characterized in that the device comprises:
a receiving module, configured to receive, through the internal channel, a configuration command sent by a primary master control command line of the first OVC and an identifier of a second OVC;
a sending module, configured to send the configuration command and the identifier of the second OVC to a standby master control command line process of the second OVC through a first socket channel between the second OVC and the standby master control command line process if it is determined that the identifier of the second OVC is different from the identifier of the first OVC, so that after the standby master control command line process of the second OVC executes the configuration command, a first configuration result and the identifier of the second OVC are sent to the standby master control command line process of the first OVC through the first socket channel;
and the transceiver module is configured to send the first configuration result and the identifier of the second OVC received through the first socket channel to a master control command line process of the first OVC.
10. The apparatus of claim 9, wherein the sending module is further configured to:
and if the identifier of the second OVC is the same as the identifier of the first OVC, after the configuration command is executed, sending a second configuration result and the identifier of the first OVC to a master control command line process of the first OVC through the internal channel.
CN201811632721.9A 2018-12-29 2018-12-29 Main/standby main control configuration synchronization method and device based on frame type equipment Active CN109739622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811632721.9A CN109739622B (en) 2018-12-29 2018-12-29 Main/standby main control configuration synchronization method and device based on frame type equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811632721.9A CN109739622B (en) 2018-12-29 2018-12-29 Main/standby main control configuration synchronization method and device based on frame type equipment

Publications (2)

Publication Number Publication Date
CN109739622A CN109739622A (en) 2019-05-10
CN109739622B true CN109739622B (en) 2020-12-04

Family

ID=66362196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811632721.9A Active CN109739622B (en) 2018-12-29 2018-12-29 Main/standby main control configuration synchronization method and device based on frame type equipment

Country Status (1)

Country Link
CN (1) CN109739622B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231961B (en) * 2019-06-27 2023-02-28 杭州迪普信息技术有限公司 Control method and system for restarting main control board
CN110795212B (en) * 2019-10-29 2022-05-31 杭州迪普科技股份有限公司 Main/standby main control configuration synchronization method and device based on frame type equipment
CN110913001A (en) * 2019-11-27 2020-03-24 杭州迪普科技股份有限公司 Method, device and equipment for synchronizing dual-computer configuration
CN111147400B (en) * 2019-12-04 2022-03-01 杭州迪普科技股份有限公司 Method and device for command line configuration synchronization and electronic equipment
CN111211927B (en) * 2019-12-31 2023-01-24 杭州迪普科技股份有限公司 Resource synchronization method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119754A (en) * 2015-09-08 2015-12-02 烽火通信科技股份有限公司 System and method for performing virtual master-to-slave shift to keep TCP connection
CN105975364A (en) * 2016-05-03 2016-09-28 杭州迪普科技有限公司 Data backup method and device
US9648147B2 (en) * 2006-12-29 2017-05-09 Futurewei Technologies, Inc. System and method for TCP high availability
CN106656869A (en) * 2016-12-30 2017-05-10 杭州迪普科技股份有限公司 Information synchronization method and system in frame type device
CN108683532A (en) * 2018-05-11 2018-10-19 新华三技术有限公司 A kind of main standby synchronous method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425961B (en) * 2007-10-31 2012-04-04 华为技术有限公司 Method for implementing link state database synchronization, router, circuit board and main control board

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9648147B2 (en) * 2006-12-29 2017-05-09 Futurewei Technologies, Inc. System and method for TCP high availability
CN105119754A (en) * 2015-09-08 2015-12-02 烽火通信科技股份有限公司 System and method for performing virtual master-to-slave shift to keep TCP connection
CN105975364A (en) * 2016-05-03 2016-09-28 杭州迪普科技有限公司 Data backup method and device
CN106656869A (en) * 2016-12-30 2017-05-10 杭州迪普科技股份有限公司 Information synchronization method and system in frame type device
CN108683532A (en) * 2018-05-11 2018-10-19 新华三技术有限公司 A kind of main standby synchronous method and device

Also Published As

Publication number Publication date
CN109739622A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN109739622B (en) Main/standby main control configuration synchronization method and device based on frame type equipment
CN108632067B (en) Disaster recovery deployment method, device and system
US9703654B2 (en) Method, system, and apparatus for cloud application redundancy
CN101562761B (en) Method and system for backup storage in optical network
CN101807985B (en) Datacenter centralization control switching method and system
CN110138876B (en) Task deployment method, device, equipment and platform
CN102316043B (en) Port virtualization method, switch and communication system
CN110837407B (en) Server-free cloud service system, resource management method thereof and electronic equipment
CN112948063B (en) Cloud platform creation method and device, cloud platform and cloud platform implementation system
US10496294B2 (en) Data migration method and computer system
CN106982133B (en) Method, equipment and system for changing configuration information of virtual network card
CN115086330B (en) Cross-cluster load balancing system
CN109194589B (en) MDC (media data center) implementation method and device
CN107370622A (en) A kind of virtual machine multiplexing host MAC and IP method and system
CN104639615A (en) Data processing method and data processing device in controller cluster
CN105591801B (en) A kind of virtual network function VNF fault handling method and VNF management equipment
CN104394018A (en) Communication device and active-standby system data online exchange method for hot master control panel backup
CN106254814B (en) Conference recovery method, service management center and system
CN107688512A (en) One kind optimization virtual-machine data backup method and system
CN109327360B (en) Port multiplexing method and device
CN110795212B (en) Main/standby main control configuration synchronization method and device based on frame type equipment
CN110972170A (en) Base station configuration method and base station
WO2015101100A1 (en) Network device and service processing method in network
CN113127144B (en) Processing method, processing device and storage medium
CN107563075B (en) Method for realizing CosiMate network and DDS network interconnection

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