CN110795212B - 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
CN110795212B
CN110795212B CN201911036298.0A CN201911036298A CN110795212B CN 110795212 B CN110795212 B CN 110795212B CN 201911036298 A CN201911036298 A CN 201911036298A CN 110795212 B CN110795212 B CN 110795212B
Authority
CN
China
Prior art keywords
ovc
standby
virtual interface
main control
current
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
CN201911036298.0A
Other languages
Chinese (zh)
Other versions
CN110795212A (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 CN201911036298.0A priority Critical patent/CN110795212B/en
Publication of CN110795212A publication Critical patent/CN110795212A/en
Application granted granted Critical
Publication of CN110795212B publication Critical patent/CN110795212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • 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, wherein the method comprises the following steps: a main master control Web process of the current OVC acquires information to be synchronously configured; establishing communication connection between a main control virtual interface of the current OVC and a standby main control virtual interface of the current OVC; generating a synchronization request message according to the configuration information to be synchronized, the IP address of the main master control virtual interface of the current OVC, the IP address of the standby master control virtual interface of the current OVC, and the virtual interface identifier of the main master control virtual interface of the current OVC; and sending the synchronization request message to the standby master control through the communication connection, so that the standby master control forwards the synchronization request message to a virtual interface corresponding to a virtual interface identifier carried by the synchronization request message. By applying the embodiment of the application, the consistency of the configuration information between the main master control and the standby master control can be 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 OVC virtualization, a plurality of logical devices on the same physical device have independent hardware, software, forwarding table entries, management planes and logs, and the operation of the logical devices is not affected. The OVC technology realizes the 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 finishes 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 configuration information, various table entries, and storage location information of the table entries in the interface board chip) as the main master.
Usually, a default OVC is provided on the frame device, and it is assumed that OVC0 is provided, all physical ports on the frame device and physical ports of an internal channel between the main master control and the standby master control all belong to OVC0, the main master control and the standby master control have respective Web processes, which are a main master control Web (Web) process and a standby master control Web process of OVC0, respectively, and a communication connection is established between the main master control Web process and the standby master control Web process of OVC0 through the internal channel between the main master control and the standby master control, so as to synchronize received configuration information issued by a user through the Web pages to the standby master control Web process, thereby ensuring that the configuration information of the two master controls can be synchronized in real time. After an OVC is newly created, a new main control Web process and a new standby control Web process are created in the OVC to manage configuration information of the corresponding OVC, and meanwhile, part of physical ports can be divided into the OVC, only one object channel port of an internal channel between the main control and the standby control belongs to one OVC, and usually, the physical port corresponding to the internal channel belongs to the OVC 0. Therefore, there is no internal channel between the main master control Web process and the standby master control Web process of the newly-built OVC, and communication connection cannot be established, that is, the configuration information received by the main master control Web process of the newly-built OVC cannot be synchronized into the standby master control Web process, which may cause inconsistency of the configuration information between the main master control and the standby master control, 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 controls based on a frame device, so as to solve the problem that configuration information between the main and standby main controls is inconsistent, normal service processing of the frame device is affected, and thus network security is affected.
Specifically, the method is realized through the following technical scheme:
a main and standby main control configuration synchronization method 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 internal interface of a first OVC in the at least two OVCs and a standby main control internal interface of the first OVC, the method is applied to main control Web processes of other OVCs except the first OVC in the at least two OVCs, the Internet protocol IP addresses of the main control virtual interfaces of the other OVCs except the first OVC in the at least two OVCs are the same as the IP address of the main control internal interface of the first OVC, the IP addresses of the standby main control virtual interfaces of the other OVCs except the first OVC in the at least two OVCs are the same as the IP address of the standby main control internal interface of the first OVC, and the IP addresses of the standby control virtual interfaces of the main control virtual interfaces of the other OVCs except the first OVC in the at least two OVCs are the same as the IP address of the standby control internal interface of the standby control of the first OVC, and the virtual interfaces of the other main control virtual interfaces of the other OVCs in the at least two OVCs except the first OVCs in the at least two OVCs The identification is the same as the virtual interface identification of the standby main control virtual interface, and the method comprises the following steps:
a main master control Web process of the current OVC acquires information to be synchronously configured;
establishing communication connection between a main control virtual interface of the current OVC and a standby main control virtual interface of the current OVC;
generating a synchronization request message according to the configuration information to be synchronized, the IP address of the main master control virtual interface of the current OVC, the IP address of the standby master control virtual interface of the current OVC and the virtual interface identifier of the main master control virtual interface of the current OVC;
and sending the synchronization request message to the standby master control through the communication connection, so that the standby master control forwards the synchronization request message to a virtual interface corresponding to a virtual interface identifier carried by the synchronization request message.
A main and standby main control configuration synchronization method 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, and a main control internal interface of a first OVC in the at least two OVCs and a standby main control internal interface of the first OVC use the internal channel The identification is the same as the virtual interface identification of the standby main control virtual interface, and the method comprises the following steps:
the standby main control Web process of the current OVC establishes communication connection between a main control virtual interface of the current OVC and a standby main control virtual interface of the current OVC;
receiving a synchronization request message through the communication connection, wherein the synchronization request message is generated and forwarded to the standby master by a master control Web process of the current OVC according to configuration information to be synchronized, an IP address of a master control virtual interface of the current OVC, an IP address of a standby master control virtual interface of the current OVC and a virtual interface identifier of the master control virtual interface of the current OVC, and is forwarded to a virtual interface corresponding to the virtual interface identifier carried by the synchronization request message by the standby master control;
and acquiring the configuration information to be synchronized in the synchronization request message.
A main and standby main control configuration synchronization device 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, a main control internal interface of a first OVC in the at least two OVCs and a standby main control internal interface of the first OVC use the internal channel, the device is applied to main control Web processes of other OVCs except the first OVC in the at least two OVCs, the Internet protocol IP addresses of main control virtual interfaces of the other OVCs except the first OVC in the at least two OVCs are the same as the IP address of the main control internal interface of the first OVC, the IP addresses of standby main control virtual interfaces of the other OVCs except the first OVC in the at least two OVCs are the same as the IP address of the standby main control internal interface of the first OVC, and the IP addresses of the virtual interfaces of the main control virtual interfaces of the other OVCs except the first OVC in the at least two OVCs are the same as the IP address of the standby control internal interface of the standby control internal interface of the first OVC, and the virtual interfaces of the other OVCs except the first OVC in the at least two OVCs in the main control Web processes of the standby control The identification is the same as the virtual interface identification of the standby main control virtual interface, and the device comprises:
the acquisition module is used for acquiring the information to be synchronously configured by the main master control Web process of the current OVC;
the establishing module is used for establishing communication connection between a main master control virtual interface of the current OVC and a standby master control virtual interface of the current OVC;
a generating module, configured to generate a synchronization request packet according to the to-be-synchronized configuration information, the IP address of the main master virtual interface of the current OVC, the IP address of the standby master virtual interface of the current OVC, and the virtual interface identifier of the main master virtual interface of the current OVC;
and the sending module is used for sending the synchronization request message to the standby master control through the communication connection so that the standby master control forwards the synchronization request message to a virtual interface corresponding to a virtual interface identifier carried by the synchronization request message.
A main and standby main control configuration synchronization device 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, a main control internal interface of a first OVC in the at least two OVCs and a standby main control internal interface of the first OVC use the internal channel, the device is applied to standby main control Web processes of other OVCs except the first OVC in the at least two OVCs, the Internet protocol IP addresses of main control virtual interfaces of the other OVCs except the first OVC in the at least two OVCs are the same as the IP address of the main control internal interface of the first OVC, the IP addresses of standby main control virtual interfaces of the other OVCs except the first OVC in the at least two OVCs are the same as the IP address of the standby main control internal interface of the first OVC, and the IP addresses of the virtual interfaces of the main control virtual interfaces of the other OVCs except the first OVC in the at least two OVCs are the same as the IP address of the standby main control internal interface of the standby control internal interface of the first OVC, and the virtual interfaces of the other OVCs except the first OVC in the at least two OVCs in the standby control The identification is the same as the virtual interface identification of the standby main control virtual interface, and the device comprises:
the establishing module is used for the standby main control Web process of the current OVC to establish the communication connection between the main control virtual interface of the current OVC and the standby main control virtual interface of the current OVC;
a receiving module, configured to receive, through the communication connection, a synchronization request packet, where the synchronization request packet is generated by a master control Web process of the current OVC according to configuration information to be synchronized, an IP address of a master control virtual interface of the current OVC, an IP address of a standby master control virtual interface of the current OVC, and a virtual interface identifier of the master control virtual interface of the current OVC, and is forwarded to the standby master, and the standby master forwards the generated synchronization request packet to a virtual interface corresponding to the virtual interface identifier carried in the synchronization request packet;
and the acquisition module is used for acquiring the configuration information to be synchronized in the synchronization request message.
An electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the above-described method steps when executing the program stored on the memory.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the above-mentioned method steps.
According to the technical scheme provided by the application, a main master control Web process of the current OVC can establish communication connection between a main master control virtual interface of the current OVC and a standby master control virtual interface of the current OVC, a synchronization request message generated based on to-be-synchronized configuration information and a virtual interface identifier of the main master control virtual interface of the current OVC is sent to a standby master control through the communication connection, the standby master control forwards the synchronization request message to a virtual interface corresponding to the virtual interface identifier carried by the synchronization request message, and the virtual interface identifiers of the main master control virtual interfaces of other OVCs except for the first OVC in at least two OVCs are the same as the virtual interface identifier of the standby master control virtual interface, so that the standby master control can forward the synchronization request message to the standby master control virtual interface of the current OVC, thereby ensuring that the standby master control of the current OVC obtains the to-be-synchronized configuration information and ensuring that the main master control Web process can establish communication connection between the main master control virtual interface of the current OVC and the standby master control virtual interface of the current OVC, Configuration information between the standby main controls is consistent, and then the frame type equipment can normally process services, so that network safety is 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 device based on the frame device shown in fig. 2 according to the present application;
fig. 6 is a schematic structural diagram of an electronic device shown in the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the 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 configuration information between the main master control and the standby master control is consistent, and the frame device can normally perform 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, 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 internal interface of a first OVC and a standby main control internal interface of the first OVC in the at least two OVCs, the method is applied to a main Web process of other OVCs except the first OVC in the at least two OVCs, an Internet Protocol (Internet Protocol, IP) address of a main control virtual interface of the other OVCs except the first OVC in the at least two OVCs is the same as an IP address of the main control internal interface of the first OVC, an IP address of a standby main control virtual interface of the other OVCs except the first OVC in the at least two OVCs is the same as an address of the standby main control internal interface of the first OVC, and an identifier of a virtual standby main control virtual master control interface of the other OVCs except the first OVC in the at least two OVCs are the same as an IP address of the standby virtual master control internal interface of the standby virtual control internal interface of the first OVC, and an identifier of the virtual master control virtual interface of the virtual control except the virtual control of the virtual control other OVC in the virtual control except the first OVC in the at least two OVC are the virtual control The virtual interfaces of the virtual interfaces have the same identifier, which may be but not limited to the identifier of the corresponding OVC, and the method includes:
s11: and the main control Web process of the current OVC acquires the configuration information to be synchronized.
The current OVC may be any one of the at least two OVCs except the first OVC, and the user may provide configuration information to a main control Web process of the current OVC through a Web page, where the configuration information may be defined as configuration information to be synchronized.
S12: and establishing communication connection between the main control virtual interface of the current OVC and the standby main control virtual interface of the current OVC.
Because the main control Web process and the standby main control Web process of other OVCs except the first OVC in the at least two OVCs are provided with virtual interfaces, and the virtual interfaces are provided with IP addresses, the communication connection between the main control virtual interface of the current OVC and the standby main control virtual interface of the current OVC can be realized.
There are many ways of communication connection, which may be, but not limited to, Transmission Control Protocol (TCP) connection.
S13: and generating a synchronization request message according to the configuration information to be synchronized, the IP address of the main master control virtual interface of the current OVC, the IP address of the standby master control virtual interface of the current OVC and the virtual interface identifier of the main master control virtual interface of the current OVC.
The specific process of the step is as follows: encapsulating the configuration information to be synchronized in a synchronization request message; setting a source IP address of the synchronization request message as an IP address of a main control virtual interface of the current OVC, and setting a target IP address of the synchronization request message as an IP address of a standby main control virtual interface of the current OVC; and writing the virtual interface identifier of the main control virtual interface of the current OVC in the synchronous request message.
The virtual interface identifier may be written in a setting field of the synchronization request message, and the setting field and the virtual interface identifier may be set according to actual needs.
S14: and sending a synchronization request message to the standby master control through communication connection so that the standby master control forwards the synchronization request message to a virtual interface corresponding to the virtual interface identifier carried by the synchronization request message.
The physical channel actually taken when the synchronization request message is sent is also an internal channel between the main master control and the standby master control, the synchronization request message is sent to the standby master control, and the standby master control can determine the virtual interface to be forwarded according to the virtual interface identifier carried by the synchronization request message.
As can be seen from the above technical solutions, a communication connection between a main control virtual interface of a current OVC and a standby main control virtual interface of the current OVC can be established by a main control Web process of the current OVC, a synchronization request message generated based on to-be-synchronized configuration information and a virtual interface identifier of the main control virtual interface of the current OVC is sent to a standby main control through the communication connection, and the standby main control forwards the synchronization request message to a virtual interface corresponding to the virtual interface identifier carried in the synchronization request message Configuration information between the standby main controls is consistent, and then the frame type equipment can normally process services, so that network safety is ensured.
In an alternative embodiment, the method further comprises:
receiving a synchronization response message through a communication connection;
the communication connection is disconnected.
After the synchronization response message is the to-be-synchronized configuration information in the synchronization request message acquired by the standby master control Web process of the current OVC, the synchronization response message may be generated and forwarded to the master controller according to the IP address of the master control virtual interface of the current OVC, the IP address of the standby master control virtual interface of the current OVC, and the virtual interface identifier of the master control virtual interface of the current OVC, and the standby master controller forwards the generated synchronization response message to the virtual interface corresponding to the virtual interface identifier carried in the synchronization request message.
After receiving the synchronization response message, the primary master control Web process of the current OVC indicates that the standby master control Web process of the current OVC has acquired the information to be configured synchronously.
Please refer 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 the master main control and the 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, and an internal channel is used between a master main control internal interface of a first OVC and a standby main control internal interface of the first OVC in the at least two OVCs, and the method is applied to a standby main control Web process of other OVCs except the first OVC in the at least two OVCs, where internet protocol IP addresses of master main virtual interfaces of the other OVCs except the first OVC in the at least two OVCs are the same as an IP address of a master main internal interface of the first OVC, IP addresses of standby main virtual interfaces of the other OVCs except the first OVC in the at least two OVCs are the same as an IP address of a standby main virtual interface of the first OVC, and a virtual interface identifier of a standby virtual interface of the other OVCs except the first OVC in the at least two OVCs are the same as a virtual interface identifier of a virtual interface of the standby main control Also, the above method comprises:
s21: and the standby main control Web process of the current OVC establishes communication connection between the main control virtual interface of the current OVC and the standby main control virtual interface of the current OVC.
S22: a synchronization request message is received over a communication connection.
The synchronous request message is generated and forwarded to the standby main control by the main control Web process of the current OVC according to the configuration information to be synchronized, the IP address of the main control virtual interface of the current OVC, the IP address of the standby main control virtual interface of the current OVC and the virtual interface identifier of the main control virtual interface of the current OVC, and the standby main control forwards the generated synchronous request message to the virtual interface corresponding to the virtual interface identifier carried by the synchronous request message.
S23: and acquiring the configuration information to be synchronized in the synchronization request message.
According to the technical scheme provided by the application, a main master control Web process of the current OVC can establish communication connection between a main master control virtual interface of the current OVC and a standby master control virtual interface of the current OVC, a synchronization request message generated based on to-be-synchronized configuration information and a virtual interface identifier of the main master control virtual interface of the current OVC is sent to a standby master control through the communication connection, the standby master control forwards the synchronization request message to a virtual interface corresponding to the virtual interface identifier carried by the synchronization request message, and the virtual interface identifiers of the main master control virtual interfaces of other OVCs except for the first OVC in at least two OVCs are the same as the virtual interface identifier of the standby master control virtual interface, so that the standby master control can forward the synchronization request message to the standby master control virtual interface of the current OVC, thereby ensuring that the standby master control of the current OVC obtains the to-be-synchronized configuration information and ensuring that the main master control Web process can establish communication connection between the main master control virtual interface of the current OVC and the standby master control virtual interface of the current OVC, Configuration information between the standby main controls is consistent, and then the frame type equipment can normally process services, so that network safety is ensured.
In a selectable real-time manner, the method further includes:
generating a synchronous response message according to the IP address of the main master control virtual interface of the current OVC, the IP address of the standby master control virtual interface of the current OVC and the virtual interface identifier of the standby master control virtual interface of the current OVC;
sending a synchronous response message to the main master control through communication connection so that the main master control forwards the synchronous response message to a virtual interface corresponding to a virtual interface identifier carried by the synchronous response message;
the communication connection is disconnected.
After the standby master control Web process of the current OVC acquires the information to be synchronized, in order to save network resources, a synchronization response message may be sent to the main master control Web process of the current OVC, and then the communication connection established before is disconnected.
The generating of the synchronous response message according to the IP address of the main master control virtual interface of the current OVC, the IP address of the standby master control virtual interface of the current OVC, and the virtual interface identifier of the standby master control virtual interface of the current OVC specifically includes:
generating a synchronous response message;
setting a source IP address of the synchronous response message as an IP address of a standby main control virtual interface of the current OVC and a target IP address of the synchronous response message as an IP address of a main control virtual interface of the current OVC;
and writing the virtual interface identifier of the standby main control virtual interface of the current OVC in the synchronous response message.
The virtual interface identifier may be written in a setting field of the synchronization request response packet, and the setting field and the virtual interface identifier may be set according to actual needs.
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 control only has one primary master control Web process, the standby master control also only has one standby master control Web process, both belong to OVC0 and are respectively represented by OVC0_ WEB _ M, OVC0_ WEB _ B, and subscript M, B respectively represents the primary master control and the standby master control. The configuration information on the main master control Web process can be sent to the standby master control Web process through an internal channel between the main master control and the standby master control, and the effect of configuration synchronization can be achieved. The physical interface ieth0_2 of the internal channel belongs to the OVC0, the address of ieth0_2 on the main master is 127.2.0.2, and the address of ieth0_2 on the standby master is 127.2.0.3. The main control Web process and the standby control Web process of the OVC0 have direct routing and can be intercommunicated.
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 frame device needs to create the OVC1, the operation of creating the OVC1 is performed by accessing the Web process of the primary master control of the OVC0 and issuing the configuration information, so the configuration information is synchronized to the secondary master control, and the OVC1 is created on the secondary master control synchronously. The OVC1 of the master and the standby master may have partial resources on the frame device, such as physical ports, Central Processing Unit (CPU) resources, and the like. Meanwhile, the main master and the standby master can automatically create a Web process under the OVC1, which is respectively represented as OVC1_ WEB _ M, OVC1_ WEB _ B. Users can respectively access OVC1_ WEB _ M of OVC1 to carry out configuration, OVC1_ WEB _ B is in a silent state and is only used for processing configuration information synchronously coming from OVC1_ WEB _ M, and the state is switched after main/standby switching, so that the effect is the same.
At this time, the primary master has OVC0_ WEB _ M, OVC1_ WEB _ M, and the backup master has OVC0_ WEB _ B, OVC1_ WEB _ B. Among them, there is physical interface ieth0_2 of the internal channel between OVC0_ WEB _ M and OVC0_ WEB _ B, and physical interface ieth0_2 of the internal channel can only belong to OVC0, and IP addresses of physical interface ieth0_2 of the internal channel can be intercommunicated between OVC0_ WEB _ M and OVC0_ WEB _ B. However, there is no actual physical interface between OVC1_ WEB _ M and OVC1_ WEB _ B for intercommunication, and if an internal physical interface is used exclusively for configuration information synchronization between the same OVCs on each main control and each standby control, waste of physical ports is caused, and since the number of physical ports that can be connected by an exchange chip on the frame device is limited, network connection cannot be directly established between OVCs 1 on the main control and the standby control.
In order to solve the above problem, when creating the OVC1, a virtual interface ieth0_2.1 is created for the primary master control Web process and the secondary master control Web process of the OVC1, respectively, and an IP address of a primary master control virtual interface ieth0_2.1 configured with the OVC1 is the same as an IP address of ieth0_2 on the primary master control, and is 127.2.0.2, and an IP address of a secondary master control virtual interface ieth0_2.1 configured with the OVC1 is the same as an IP address of ieth0_2 on the secondary master control, and is 127.2.0.3. Because the route between each OVC is isolated, the situation of IP conflict can not occur, and the configuration of the same IP address has the advantage that the connection flow in the configuration synchronization process is not required to be modified. Or using the address of 127.2.0.2 of the master to connect with the address of 127.2.0.3 of the backup master.
When configuration synchronization is carried out, the OVC1_ WEB _ M and the OVC1_ WEB _ B can establish communication connection through a virtual interface ieth0_2.1, and the OVC1_ WEB _ M generates a synchronization request message carrying ieth0_ 2.1; the synchronous request message is sent to a physical interface ieth0_2 of a standby master control through a physical interface ieth0_2 of the main master control by an OVC1_ WEB _ M, after the physical interface ieth0_2 of the standby master control receives the synchronous request message, the synchronous request message is sent to a virtual interface ieth0_2.1, ieth0_2.1 belongs to the OVC1, the OVC1_ WEB _ B can receive the synchronous request message to acquire the configuration information to be synchronized, and configuration synchronization is achieved through the process.
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, 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 internal interface of a first OVC of the at least two OVCs and a standby main control internal interface of the first OVC, and the apparatus is applied to a main control Web process of other OVCs except the first OVC among the at least two OVCs, and is characterized in that an internet protocol IP address of a main control virtual interface of the other OVC except the first OVC among the at least two OVCs is the same as an IP address of a main control internal interface of the first OVC, and an IP address of a standby main control virtual interface of the other OVCs except the first OVC among the at least two OVCs is the same as an IP address of a standby main control internal interface of the first OVC, the virtual interface identifier of the main control virtual interface of other OVCs except the first OVC in the at least two OVCs is the same as the virtual interface identifier of the standby main control virtual interface, and the device comprises:
an obtaining module 41, configured to obtain configuration information to be synchronized by a master control Web process of the current OVC;
an establishing module 42, configured to establish a communication connection between a main master control virtual interface of a current OVC and a standby master control virtual interface of the current OVC;
a generating module 43, configured to generate a synchronization request message according to the to-be-synchronized configuration information, the IP address of the main control virtual interface of the current OVC, the IP address of the standby main control virtual interface of the current OVC, and the virtual interface identifier of the main control virtual interface of the current OVC;
the sending module 44 is configured to send the synchronization request packet to the standby master controller through the communication connection, so that the standby master controller forwards the synchronization request packet to the virtual interface corresponding to the virtual interface identifier carried in the synchronization request packet.
According to the technical scheme provided by the application, a main master control Web process of the current OVC can establish communication connection between a main master control virtual interface of the current OVC and a standby master control virtual interface of the current OVC, a synchronization request message generated based on to-be-synchronized configuration information and a virtual interface identifier of the main master control virtual interface of the current OVC is sent to a standby master control through the communication connection, the standby master control forwards the synchronization request message to a virtual interface corresponding to the virtual interface identifier carried by the synchronization request message, and the virtual interface identifiers of the main master control virtual interfaces of other OVCs except for the first OVC in at least two OVCs are the same as the virtual interface identifier of the standby master control virtual interface, so that the standby master control can forward the synchronization request message to the standby master control virtual interface of the current OVC, thereby ensuring that the standby master control of the current OVC obtains the to-be-synchronized configuration information and ensuring that the main master control Web process can establish communication connection between the main master control virtual interface of the current OVC and the standby master control virtual interface of the current OVC, Configuration information between the standby main controls is consistent, and then the frame type equipment can normally process services, so that network safety is ensured.
Specifically, the generating module 43 is configured to generate a synchronization request message according to the to-be-synchronized configuration information, the IP address of the main master virtual interface of the current OVC, the IP address of the standby master virtual interface of the current OVC, and the virtual interface identifier of the main master virtual interface of the current OVC, and specifically configured to:
encapsulating the configuration information to be synchronized in a synchronization request message;
setting a source IP address of the synchronization request message as an IP address of a main control virtual interface of the current OVC, and setting a destination IP address of the synchronization request message as an IP address of a standby main control virtual interface of the current OVC;
and writing the virtual interface identifier of the main control virtual interface of the current OVC in the synchronous request message.
Optionally, the apparatus further comprises:
the receiving module is used for receiving a synchronous response message through communication connection, wherein the synchronous response message is generated and forwarded to the main master according to the IP address of the main master control virtual interface of the current OVC, the IP address of the standby master control virtual interface of the current OVC and the virtual interface identifier of the main master control virtual interface of the current OVC after the standby master control Web process of the current OVC acquires the to-be-synchronized configuration information in the synchronous request message, and the synchronous response message is forwarded to the virtual interface corresponding to the virtual interface identifier carried by the synchronous request message by the main master;
and the disconnection module is used for disconnecting the communication connection.
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, 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 internal interface of a first OVC of the at least two OVCs and a standby main control internal interface of the first OVC, and the apparatus is applied to a standby main control Web process of another OVC except the first OVC of the at least two OVCs, and is characterized in that an internet protocol IP address of a main control virtual interface of another OVC except the first OVC of the at least two OVCs is the same as an IP address of a main control internal interface of the first OVC, and an IP address of a standby main control virtual interface of another OVC except the first OVC of the at least two OVCs is the same as an IP address of a standby main control internal interface of the first OVC, the virtual interface identifier of the main control virtual interface of other OVCs except the first OVC in the at least two OVCs is the same as the virtual interface identifier of the standby main control virtual interface, and the device comprises:
the establishing module 51 is used for the standby main control Web process of the current OVC to establish communication connection between the main control virtual interface of the current OVC and the standby main control virtual interface of the current OVC;
a receiving module 52, configured to receive a synchronization request message through a communication connection, where the synchronization request message is generated and forwarded by a main master control Web process of a current OVC according to configuration information to be synchronized, an IP address of a main master control virtual interface of the current OVC, an IP address of a standby master control virtual interface of the current OVC, and a virtual interface identifier of the main master control virtual interface of the current OVC, and is forwarded to a virtual interface corresponding to the virtual interface identifier carried in the synchronization request message by the standby master control;
the obtaining module 53 is configured to obtain the configuration information to be synchronized in the synchronization request message.
According to the technical scheme provided by the application, a main master control Web process of the current OVC can establish communication connection between a main master control virtual interface of the current OVC and a standby master control virtual interface of the current OVC, a synchronization request message generated based on to-be-synchronized configuration information and a virtual interface identifier of the main master control virtual interface of the current OVC is sent to a standby master control through the communication connection, the standby master control forwards the synchronization request message to a virtual interface corresponding to the virtual interface identifier carried by the synchronization request message, and the virtual interface identifiers of the main master control virtual interfaces of other OVCs except for the first OVC in at least two OVCs are the same as the virtual interface identifier of the standby master control virtual interface, so that the standby master control can forward the synchronization request message to the standby master control virtual interface of the current OVC, thereby ensuring that the standby master control of the current OVC obtains the to-be-synchronized configuration information and ensuring that the main master control Web process can establish communication connection between the main master control virtual interface of the current OVC and the standby master control virtual interface of the current OVC, Configuration information between the standby main controls is consistent, and then the frame type equipment can normally process services, so that network safety is ensured.
Optionally, the apparatus further comprises:
the generating module is used for generating a synchronous response message according to the IP address of the main master control virtual interface of the current OVC, the IP address of the standby master control virtual interface of the current OVC and the virtual interface identifier of the standby master control virtual interface of the current OVC;
the sending module is used for sending the synchronous response message to the main master control through communication connection so that the main master control forwards the synchronous response message to a virtual interface corresponding to a virtual interface identifier carried by the synchronous response message;
and the port module is used for disconnecting the communication connection.
Specifically, the generating module is configured to generate a synchronization response packet according to an IP address of a main master virtual interface of the current OVC, an IP address of a standby master virtual interface of the current OVC, and a virtual interface identifier of the standby master virtual interface of the current OVC, and is specifically configured to:
generating a synchronous response message;
setting a source IP address of the synchronous response message as an IP address of a standby main control virtual interface of the current OVC, and setting a destination IP address of the synchronous response message as an IP address of a main control virtual interface of the current OVC;
and writing the virtual interface identifier of the standby main control virtual interface of the current OVC in the synchronous response message.
Referring to fig. 6, an electronic device shown in the present application includes a processor 10, a communication interface 620, a memory 630, and a communication bus 640, where the processor 610, the communication interface 620, and the memory 630 complete communication with each other through the communication bus 640.
A memory 630 for storing computer programs;
the processor 610 is configured to implement the main/standby main control configuration synchronization method based on the frame device in any of the foregoing embodiments when executing the program stored in the memory 630.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
According to the technical scheme provided by the application, a main master control Web process of the current OVC can establish communication connection between a main master control virtual interface of the current OVC and a standby master control virtual interface of the current OVC, a synchronization request message generated based on to-be-synchronized configuration information and a virtual interface identifier of the main master control virtual interface of the current OVC is sent to a standby master control through the communication connection, the standby master control forwards the synchronization request message to a virtual interface corresponding to the virtual interface identifier carried by the synchronization request message, and the virtual interface identifiers of the main master control virtual interfaces of other OVCs except for the first OVC in at least two OVCs are the same as the virtual interface identifier of the standby master control virtual interface, so that the standby master control can forward the synchronization request message to the standby master control virtual interface of the current OVC, thereby ensuring that the standby master control of the current OVC obtains the to-be-synchronized configuration information and ensuring that the main master control Web process can establish communication connection between the main master control virtual interface of the current OVC and the standby master control virtual interface of the current OVC, Configuration information between the standby main controls is consistent, and then the frame type equipment can normally process services, so that network safety is ensured.
Accordingly, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer is enabled to execute the method for synchronizing the main and standby main control configurations based on the frame device in any of the foregoing embodiments.
According to the technical scheme provided by the application, a main master control Web process of the current OVC can establish communication connection between a main master control virtual interface of the current OVC and a standby master control virtual interface of the current OVC, a synchronization request message generated based on to-be-synchronized configuration information and a virtual interface identifier of the main master control virtual interface of the current OVC is sent to a standby master control through the communication connection, the standby master control forwards the synchronization request message to a virtual interface corresponding to the virtual interface identifier carried by the synchronization request message, and the virtual interface identifiers of the main master control virtual interfaces of other OVCs except for the first OVC in at least two OVCs are the same as the virtual interface identifier of the standby master control virtual interface, so that the standby master control can forward the synchronization request message to the standby master control virtual interface of the current OVC, thereby ensuring that the standby master control of the current OVC obtains the to-be-synchronized configuration information and ensuring that the main master control Web process can establish communication connection between the main master control virtual interface of the current OVC and the standby master control virtual interface of the current OVC, Configuration information between the standby main controls is consistent, and then the frame type equipment can normally process services, so that network safety is ensured.
For the device embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment 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 method for synchronizing configuration of main and standby main controls based on a frame device, where the main and standby main controls of the frame device are connected by an internal channel, the main and standby main controls are provided with at least two operating system-level virtual environments OVC, and the internal channel is used between a main control internal interface of a first OVC in the at least two operating system-level virtual environments OVC and a standby main control internal interface of the first OVC, and the method is applied to main control Web page Web processes of other OVCs except the first OVC in the at least two operating system-level virtual environments OVC, and is characterized in that the Internet protocol IP addresses of the main control virtual interfaces of the other OVCs except the first OVC in the at least two operating system-level virtual environments OVC are the same as the IP address of the main control internal interface of the first OVC, and the IP-to-ground virtual interfaces of the standby main controls of the other OVCs except the first OVC in the at least two operating system-level virtual environments OVC are the same as the IP address of the main control internal interface of the first OVC The address is the same as the IP address of the standby master control internal interface of the first OVC, and the virtual interface identifiers of the master control virtual interfaces of the OVCs other than the first OVC in the at least two operating system level virtual environments OVC are the same as the virtual interface identifiers of the standby master control virtual interfaces, the method including:
a main master control Web process of the current OVC acquires information to be synchronously configured;
establishing communication connection between a main control virtual interface of the current OVC and a standby main control virtual interface of the current OVC;
generating a synchronization request message according to the configuration information to be synchronized, the IP address of the main master control virtual interface of the current OVC, the IP address of the standby master control virtual interface of the current OVC, and the virtual interface identifier of the main master control virtual interface of the current OVC;
and sending the synchronization request message to the standby master control through the communication connection, so that the standby master control forwards the synchronization request message to a virtual interface corresponding to a virtual interface identifier carried by the synchronization request message.
2. The method according to claim 1, wherein generating a synchronization request packet according to the configuration information to be synchronized, the IP address of the main control virtual interface of the current OVC, the IP address of the standby main control virtual interface of the current OVC, and the virtual interface identifier of the main control virtual interface of the current OVC specifically includes:
encapsulating the configuration information to be synchronized in a synchronization request message;
setting the source IP address of the synchronization request message as the IP address of the main master control virtual interface of the current OVC, and setting the destination IP address of the synchronization request message as the IP address of the standby master control virtual interface of the current OVC;
and writing the virtual interface identifier of the main control virtual interface of the current OVC in the synchronization request message.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving a synchronous response message through the communication connection, wherein the synchronous response message is generated and forwarded to the main master according to the IP address of the main master control virtual interface of the current OVC, the IP address of the standby master control virtual interface of the current OVC and the virtual interface identifier of the main master control virtual interface of the current OVC after the standby master control Web process of the current OVC acquires the to-be-synchronized configuration information in the synchronous request message, and the synchronous response message is forwarded to the virtual interface corresponding to the virtual interface identifier carried in the synchronous request message by the main master;
and disconnecting the communication connection.
4. A main and standby main control configuration synchronization method based on frame device, where 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 operating system level virtual environments OVC, and the internal channel is used between a main control internal interface of a first OVC in the at least two operating system level virtual environments OVC and a standby main control internal interface of the first OVC, and the method is applied to standby main control Web processes of other OVCs except the first OVC in the at least two operating system level virtual environments OVC, and is characterized in that the Internet protocol IP addresses of the main control virtual interfaces of the other OVCs except the first OVC in the at least two operating system level virtual environments OVC are the same as the IP address of the main control internal interface of the first OVC, and the IP addresses of the standby main control virtual interfaces of the other OVCs except the first OVC in the at least two operating system level virtual environments OVC and the IP address of the standby main control virtual interface of the other OVCs except the first OVC in the at least two operating system level virtual environments OVC are the same as the IP address of the standby main control internal interface of the standby main control virtual interfaces of the standby control of the other OVC The IP addresses of the standby master internal interfaces of the first OVC are the same, and the virtual interface identifiers of the master virtual interfaces of the OVCs other than the first OVC in the at least two operating system level virtual environments OVC are the same as the virtual interface identifiers of the standby master virtual interfaces, the method including:
the standby main control Web process of the current OVC establishes communication connection between a main control virtual interface of the current OVC and a standby main control virtual interface of the current OVC;
receiving a synchronization request message through the communication connection, wherein the synchronization request message is generated and forwarded to the standby master by a master control Web process of the current OVC according to configuration information to be synchronized, an IP address of a master control virtual interface of the current OVC, an IP address of a standby master control virtual interface of the current OVC and a virtual interface identifier of the master control virtual interface of the current OVC, and is forwarded to a virtual interface corresponding to the virtual interface identifier carried by the synchronization request message by the standby master control;
and acquiring the configuration information to be synchronized in the synchronization request message.
5. The method of claim 4, further comprising:
generating a synchronous response message according to the IP address of the main master control virtual interface of the current OVC, the IP address of the standby master control virtual interface of the current OVC and the virtual interface identifier of the standby master control virtual interface of the current OVC;
sending the synchronous response message to the main master control through the communication connection, so that the main master control forwards the synchronous response message to a virtual interface corresponding to a virtual interface identifier carried by the synchronous response message;
and disconnecting the communication connection.
6. The method according to claim 4 or 5, wherein generating a synchronization response packet according to the IP address of the main control virtual interface of the current OVC, the IP address of the standby main control virtual interface of the current OVC, and the virtual interface identifier of the standby main control virtual interface of the current OVC specifically includes:
generating a synchronous response message;
setting a source IP address of the synchronous response message as an IP address of a standby main control virtual interface of the current OVC, and setting a destination IP address of the synchronous response message as an IP address of a main control virtual interface of the current OVC;
and writing the virtual interface identifier of the standby main control virtual interface of the current OVC in the synchronous response message.
7. A main and standby main control configuration synchronization device based on frame equipment is characterized in that the main control and the 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 operation system level virtual environments OVC, the internal channel is used between a main control internal interface of a first OVC in the at least two operation system level virtual environments OVC and a standby main control internal interface of the first OVC, the device is applied to main control Web processes of other OVCs except the first OVC in the at least two operation system level virtual environments OVC, the Internet protocol IP addresses of the main control virtual interfaces of the other OVCs except the first OVC in the at least two operation system level virtual environments OVC are the same as the IP address of the main control internal interface of the first OVC, and the IP addresses of the standby main control virtual interfaces of the other OVCs except the first OVC in the at least two operation system level virtual environments OVC and the IP address of the standby main control virtual interface of the other OVC except the first OVC in the at least two operation system level virtual environments OVC are the same as the IP address of the standby main control virtual interface of the standby main control virtual interfaces of the standby control virtual environment The IP addresses of the standby master internal interfaces of the first OVC are the same, and the virtual interface identifiers of the master virtual interfaces of the OVCs other than the first OVC in the at least two operating system level virtual environments OVC are the same as the virtual interface identifiers of the standby master virtual interfaces, the apparatus includes:
the acquisition module is used for acquiring the information to be synchronously configured by the main master control Web process of the current OVC;
the establishing module is used for establishing communication connection between a main master control virtual interface of the current OVC and a standby master control virtual interface of the current OVC;
a generating module, configured to generate a synchronization request packet according to the to-be-synchronized configuration information, the IP address of the main master virtual interface of the current OVC, the IP address of the standby master virtual interface of the current OVC, and the virtual interface identifier of the main master virtual interface of the current OVC;
and the sending module is used for sending the synchronization request message to the standby master control through the communication connection so that the standby master control forwards the synchronization request message to a virtual interface corresponding to a virtual interface identifier carried by the synchronization request message.
8. A main and standby main control configuration synchronization device based on frame equipment is characterized in that the main control and the 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 operation system level virtual environments OVC, the internal channel is used between a main control internal interface of a first OVC in the at least two operation system level virtual environments OVC and a standby main control internal interface of the first OVC, the device is applied to standby main control Web processes of other OVCs except the first OVC in the at least two operation system level virtual environments OVC, the device is characterized in that the Internet protocol IP addresses of the main control virtual interfaces of the other OVCs except the first OVC in the at least two operation system level virtual environments OVC are the same as the IP address of the main control internal interface of the first OVC, and the IP addresses of the standby main control virtual interfaces of the other OVCs except the first OVC in the at least two operation system level virtual environments OVC and the IP address of the standby main control virtual interface of the other OVC except the first OVC in the at least two operation system level virtual environments OVC are the same as the IP address of the standby main control virtual interface of the standby main control virtual interfaces of the standby control The IP addresses of the standby master internal interfaces of the first OVC are the same, and the virtual interface identifiers of the master virtual interfaces of the OVCs other than the first OVC in the at least two operating system level virtual environments OVC are the same as the virtual interface identifiers of the standby master virtual interfaces, the apparatus includes:
the establishing module is used for the standby main control Web process of the current OVC to establish the communication connection between the main control virtual interface of the current OVC and the standby main control virtual interface of the current OVC;
a receiving module, configured to receive, through the communication connection, a synchronization request packet, where the synchronization request packet is generated by a master control Web process of the current OVC according to configuration information to be synchronized, an IP address of a master control virtual interface of the current OVC, an IP address of a standby master control virtual interface of the current OVC, and a virtual interface identifier of the master control virtual interface of the current OVC, and is forwarded to the standby master, and the standby master forwards the generated synchronization request packet to a virtual interface corresponding to the virtual interface identifier carried in the synchronization request packet;
and the acquisition module is used for acquiring the configuration information to be synchronized in the synchronization request message.
9. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-3 or the method steps of any of claims 4-6 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any of the claims 1-3 or the method steps of any of the claims 4-6.
CN201911036298.0A 2019-10-29 2019-10-29 Main/standby main control configuration synchronization method and device based on frame type equipment Active CN110795212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911036298.0A CN110795212B (en) 2019-10-29 2019-10-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
CN201911036298.0A CN110795212B (en) 2019-10-29 2019-10-29 Main/standby main control configuration synchronization method and device based on frame type equipment

Publications (2)

Publication Number Publication Date
CN110795212A CN110795212A (en) 2020-02-14
CN110795212B true CN110795212B (en) 2022-05-31

Family

ID=69441750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911036298.0A Active CN110795212B (en) 2019-10-29 2019-10-29 Main/standby main control configuration synchronization method and device based on frame type equipment

Country Status (1)

Country Link
CN (1) CN110795212B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117008999A (en) * 2023-08-16 2023-11-07 中科驭数(北京)科技有限公司 Method and device for synchronizing system-on-chip and host configuration in data processor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591794A (en) * 2015-07-10 2016-05-18 杭州华三通信技术有限公司 Method and device for managing network equipment
CN106775837A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Multi-system global configuration synchronization method and device
CN107995319A (en) * 2018-01-08 2018-05-04 迈普通信技术股份有限公司 Virtual unit collocation method and the network equipment
CN108432157A (en) * 2016-04-26 2018-08-21 华为技术有限公司 Main standby switching control method and relevant apparatus and system
CN109739622A (en) * 2018-12-29 2019-05-10 杭州迪普科技股份有限公司 Active and standby master control configuration and synchronization method and device based on frame type equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591794A (en) * 2015-07-10 2016-05-18 杭州华三通信技术有限公司 Method and device for managing network equipment
CN108432157A (en) * 2016-04-26 2018-08-21 华为技术有限公司 Main standby switching control method and relevant apparatus and system
CN106775837A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Multi-system global configuration synchronization method and device
CN107995319A (en) * 2018-01-08 2018-05-04 迈普通信技术股份有限公司 Virtual unit collocation method and the network equipment
CN109739622A (en) * 2018-12-29 2019-05-10 杭州迪普科技股份有限公司 Active and standby master control configuration and synchronization method and device based on frame type equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Smart data synchronization in m-Health monitoring applications";Abdelghani Benharref等;《2014 IEEE 16th International Conference on e-Health Networking, Applications and Services (Healthcom)》;20190411;第140-145页 *
"防火墙双机热备系统的设计与实现";孟祥飞;《中国优秀硕士学位论文全文数据库 信息科技辑》;20180215(第02期);第I139-102页 *

Also Published As

Publication number Publication date
CN110795212A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN109739622B (en) Main/standby main control configuration synchronization method and device based on frame type equipment
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
EP3627358B1 (en) Method, system, and apparatus for cloud application redundancy
US9992058B2 (en) Redundant storage solution
CN111880902A (en) Pod creation method, device, equipment and readable storage medium
CN104935672A (en) High available realizing method and equipment of load balancing service
CN112910685B (en) Method and device for realizing unified management of container network
CN111404628B (en) Time synchronization method and device
CN103634225A (en) Service bandwidth expansion method in cloud computing network virtualization
CN113630265B (en) Virtual network redundancy backup method and device based on intelligent network card
CN108632155B (en) Cloud platform traffic scheduling method and system and computer-readable storage medium
CN103631652A (en) Method and system for achieving virtual machine migration
CN109194589B (en) MDC (media data center) implementation method and device
CN115102896B (en) Data broadcasting method, broadcasting accelerator, NOC, SOC and electronic equipment
JP7309580B2 (en) Communication device, communication method and program
CN110795212B (en) Main/standby main control configuration synchronization method and device based on frame type equipment
US10353857B2 (en) Parallel processing apparatus and method for controlling communication
CN115348126A (en) Network target range entity equipment access method, device and implementation system
CN113127144B (en) Processing method, processing device and storage medium
CN111654559A (en) Container data transmission method and device
WO2023000672A1 (en) Network switching method and apparatus, electronic device, and storage medium
CN113886153B (en) Network card pressure testing method and device based on container
CN105939242B (en) Realize the method and device of virtual system
CN104320282A (en) Method for switching of main and standby virtual machines in virtual edge port aggregation system and physical mainframes
WO2022160714A1 (en) Communication method, apparatus, and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant