CN109739622A - Active and standby master control configuration and synchronization method and device based on frame type equipment - Google Patents
Active and standby master control configuration and synchronization method and device based on frame type equipment Download PDFInfo
- Publication number
- CN109739622A CN109739622A CN201811632721.9A CN201811632721A CN109739622A CN 109739622 A CN109739622 A CN 109739622A CN 201811632721 A CN201811632721 A CN 201811632721A CN 109739622 A CN109739622 A CN 109739622A
- Authority
- CN
- China
- Prior art keywords
- ovc
- master control
- line process
- order line
- mark
- 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.)
- Granted
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application is for a kind of active and standby master control configuration and synchronization method and device based on frame type equipment, applied in frame type equipment, the described method includes: the first configuration order and the mark of the 2nd OVC, are sent to the standby master control order line process of the first OVC by the mark of the first configuration order and the second OS-Level virtual environment OVC that the master control order line process of the 2nd OVC of first set of words channel reception between the master control order line process for passing through the 2nd OVC is sent by inner passage;And, pass through the mark and configuration result of the 3rd OVC that the standby master control order line process that inner passage receives the first OVC is sent, if it is determined that the mark of the 3rd OVC is different from the mark of the first OVC, then the second socket channel between master control order line process that the mark of the 3rd OVC and configuration result pass through the 3rd OVC is sent to the main master control order line process of the 3rd OVC.Using embodiments herein, it is ensured that configuration consistency between master control, standby master control.
Description
Technical field
This application involves network communication technology fields, are specifically designed a kind of active and standby master control configuration synchronization based on frame type equipment
Method and apparatus.
Background technique
OS-Level virtual environment (OS-Level Virtual Context, OVC) is that a physical equipment is virtual
The virtualization technology of Cheng Duotai logical device.After virtualizing by OVC, multiple logical device on same physical equipment are all
Possess independent hardware, software, forwarding-table item, management plane and log, the operation of each logical device is independent of each other.OVC technology
Realize the virtualization of resource and management, after physical equipment resource pool, the rapid deployment of business and adjustment are no longer limited by object
The advantages that managing equipment itself, realizing saving construction and O&M cost, flexible deployment on demand, complete failure isolation, effectively solves
The problem of multi-service security isolation of having determined and resource are distributed according to need.Turn for network security to dynamic, elastic cloud service mode
Change creates basic condition.OVC technology allows system to carry out independent management of process, memory pipe for each virtual unit
It manages, disk management, does not switch and dispatch bring resource consumption and performance loss between each virtual unit.Operating system nucleus
The scheduling between OVC is completed, and is that each OVC distributes hardware resource by preset resource template.
Frame type equipment is made of frame and the board being inserted on frame, and dual master control equipment, which refers to, supports two pieces of master control borads simultaneously
Equipment in place, only one piece of energy becomes master control in two pieces of master control borads, is responsible for (including issuing various with total interface board communications
List item, transmitting-receiving message and the various events of response) and the operation of whole equipment is controlled, another piece is then standby master control, and standby master control is not
It can will not intervene the operation of whole equipment with interface board communications, and only be responsible for receiving from master control and back up the backup to come
Data.Once master control is broken down, then new master control can be switched to for master control, start the fortune for being responsible for whole equipment of control
Row, for all working of the new former master control of master control energy seamless pipe, standby master control must possess same number with master control
According to (including single board information, interface message, various configurations, the storage position confidence of various list items and list item in interface board chip
Breath etc.), it is standby main after may result in master control delay machine generation active-standby switch if the data of standby master control and master control are inconsistent
Control cannot continue after controlling the normal operation of whole equipment, thus cause service disconnection etc. seriously after being switched to new master control
Fruit.
Master control and standby master control possess respective order line process, the order line process of master control can by master control with it is standby
Communication connection is established in physical channel between master control, and the order line process of the command synchronization received to standby master control is executed, with
Guarantee that the configuration of two pieces of master controls being capable of real-time synchronization.
A default OVC is had on usual frame type equipment, it is assumed that is OVC0.All physical ports, master on frame type equipment
Internal physical access port belongs to OVC0 between master control and standby master control.After newly-built OVC, one can be all created in the OVC newly
Order line process be used to manage the configuration of corresponding OVC, while part physical port can be divided into the OVC, and main
Control the inner passage between standby master control object road port only one, an OVC can only be belonged to, the usual inner passage is corresponding
Physical port belong to OVC0.So standby master control of the newly-built OVC in the master control order line process and standby master control of master control
There is no inner passage between order line process, communication connection can not be established, i.e., the master control order line process of newly-built OVC receives
Order can not be synchronized in standby master control order line process, will lead to and configure inconsistent between master control, standby master control, influence frame and set
Standby regular traffic processing, and then influence network security.
Summary of the invention
In view of this, the application provides a kind of active and standby master control configuration and synchronization method and device based on frame type equipment, with solution
It certainly configures inconsistent between master control, standby master control, influences the regular traffic processing of frame type equipment, and then influence asking for network security
Topic.
Specifically, the application is achieved by the following technical solution:
A kind of active and standby master control configuration and synchronization method based on frame type equipment, the master control of the frame type equipment and standby master control it
Between connected by inner passage, in the master control and standby master control setting at least two OVC, at least two OVC
The inner passage, institute are used between the master control order line process of first OVC and the standby master control command process of the first OVC
State the master of other OVC in the master control order line process and at least two OVC of the first OVC in addition to the first OVC
Established respectively between master control order line process socket channel connection, the standby master control order line process of the first OVC with it is described
It is logical that socket is established between the standby master control order line process of other OVC at least two OVC in addition to the first OVC respectively
Road, the method is applied in the master control order line process of the first OVC, which comprises
Pass through the 2nd OVC's described in the first set of words channel reception between the master control order line process of the 2nd OVC
The mark of the first configuration order and the second OS-Level virtual environment OVC that master control order line process is sent, by institute
The mark for stating the first configuration order and the 2nd OVC is ordered by the standby master control that the inner passage is sent to the first OVC
Enable traveling journey;And
Pass through the mark for the 3rd OVC that the standby master control order line process that the inner passage receives the first OVC is sent
With configuration result, however, it is determined that the mark of the 3rd OVC is different from the mark of the first OVC, then by the mark of the 3rd OVC
The second socket channel between master control order line process that knowledge and the configuration result pass through the 3rd OVC is sent to
The master control order line process of 3rd OVC.
A kind of active and standby master control based on frame type equipment configures synchronizing device, the master control of the frame type equipment and standby master control it
Between connected by inner passage, in the master control and standby master control setting at least two OVC, at least two OVC
The inner passage, institute are used between the master control order line process of first OVC and the standby master control command process of the first OVC
State the master of other OVC in the master control order line process and at least two OVC of the first OVC in addition to the first OVC
Established respectively between master control order line process socket channel connection, the standby master control order line process of the first OVC with it is described
It is logical that socket is established between the standby master control order line process of other OVC at least two OVC in addition to the first OVC respectively
Road, applied in the master control order line process of the first OVC, described device includes: described device
First transceiver module, for the first set of words channel between the master control order line process by the 2nd OVC
Receive the first configuration order and the second OS-Level virtual ring that the master control order line process of the 2nd OVC is sent
First configuration order and the mark of the 2nd OVC are sent to described by the inner passage by the mark of border OVC
The standby master control order line process of one OVC;And
Second transceiver module, the standby master control order line process for receiving the first OVC by the inner passage are sent out
The mark and configuration result of the 3rd OVC sent, however, it is determined that the mark of the 3rd OVC is different from the mark of the first OVC, then
Between the master control order line process that the mark of 3rd OVC and the configuration result are passed through the 3rd OVC
Two socket channels are sent to the master control order line process of the 3rd OVC.
By the above technical solution provided by the present application as it can be seen that the master control order line process of the first OVC can respectively with its
The master control order line process of his OVC establishes socket channel, the standby master control order line process of the first OVC can respectively with other
The standby master control order line process of OVC establishes socket channel, the configuration order and configuration result of other OVC can pass through first
The inner passage of OVC is forwarded, so as to ensure configuration consistency between master control, standby master control, frame type equipment normally into
Row business processing, and then ensure network security.
Detailed description of the invention
Fig. 1 is a kind of flow chart of active and standby master control configuration and synchronization method based on frame type equipment shown in the application;
Fig. 2 is the flow chart of another active and standby master control configuration and synchronization method based on frame type equipment shown in the application;
Fig. 3 is the flow chart of another active and standby master control configuration and synchronization method based on frame type equipment shown in the application;
Fig. 4 is that a kind of active and standby master control based on frame type equipment corresponding with Fig. 1 shown in the application configures synchronizing device
Structural schematic diagram;
Fig. 5 is that a kind of active and standby master control based on frame type equipment corresponding with Fig. 2 shown in the application configures synchronizing device
Structural schematic diagram.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " " and "the" including most shapes
Formula, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and includes
One or more associated any or all of project listed may combine.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
To solve the above-mentioned problems, the active and standby master control based on frame type equipment that the embodiment of the invention provides a kind of, which configures, to be synchronized
Method, it is ensured that configuration consistency between master control, standby master control, frame type equipment is normally carried out business processing, and then ensures network security.Please
Referring to Fig. 1, Fig. 1 is a kind of flow chart of active and standby master control configuration and synchronization method based on frame type equipment shown in the application, frame
It is connected between the master control of equipment and standby master control by inner passage, master control and standby master control setting at least two OVC, at least two
Inner passage is used between the master control order line process of the first OVC and the standby master control command process of the first OVC in a OVC,
The master control order line of the master control order line process of first OVC and other OVC at least two OVC in addition to the first OVC
The connection of socket channel is established between process respectively, removes first in the standby master control order line process of the first OVC and at least two OVC
Socket channel is established between the standby master control order line process of other OVC except OVC respectively, the above method is applied to first
In the master control order line process of OVC, the above method includes:
S11: pass through the 2nd OVC's of first set of words channel reception between the master control order line process of the 2nd OVC
The mark of the first configuration order and the 2nd OVC that master control order line process is sent, by the mark of the first configuration order and the 2nd OVC
Know the standby master control order line process that the first OVC is sent to by inner passage.
2nd OVC can be out other any one OVC except the first OVC, the main master control order line process hair of the 2nd OVC
Configuration order out can be defined as the first configuration order.
S12: by inner passage receive the first OVC standby master control order line process transmission the 3rd OVC mark with match
Set result, however, it is determined that the mark of the 3rd OVC is different from the mark of the first OVC, then passes through the mark of the 3rd OVC and configuration result
The master control order that the second socket channel between the master control order line process of the 3rd OVC is sent to the 3rd OVC is advanced
Journey.
The mark of the OVC received from the standby master control order line process of the first OVC can be defined as the mark of the 3rd OVC,
Because identifying whether identical according to the mark of third OVC and the first OVC, processing mode is also different, therefore firstly the need of determination
The mark of 3rd OVC identifies whether identical with the first OVC's, and if they are the same, explanation belongs to the first OVC, then saves the configuration
As a result;If it is different, explanation is not belonging to the first OVC, then the mark of the 3rd OVC and configuration result are passed through with the 3rd OVC's
The second socket channel between master control order line process is sent to the master control order line process of the 3rd OVC.
Wherein, the mark of the 2nd OVC is identical as the mark possibility of the 3rd OVC can also be different, if the configuration that S12 is received
It as a result is exactly the configuration result of the first configuration order, then the mark of the 2nd OVC is identical as the mark of the 3rd OVC, if S12 is received
To configuration result be before the configuration result of configuration order that sends, then the mark of the 2nd OVC with the mark of the 3rd OVC not
Together.
It should be noted that S11 and S12 there is no it is stringent it is successive execute sequence, whithin a period of time, it is also possible to only hold
Row S11, it is also possible to only execute S12, it is also possible to first carry out S11 and execute S12 again, it is also possible to first carry out S12 and execute S11, this reality again
Apply example and only illustrate and first carry out S11 and execute S12 again, other the case where no longer repeat one by one.
By the above technical solution provided by the present application as it can be seen that the master control order line process of the first OVC can respectively with its
The master control order line process of his OVC establishes socket channel, the standby master control order line process of the first OVC can respectively with other
The standby master control order line process of OVC establishes socket channel, the configuration order and configuration result of other OVC can pass through first
The inner passage of OVC is forwarded, so as to ensure configuration consistency between master control, standby master control, frame type equipment normally into
Row business processing, and then ensure network security.
Optionally, the above method further include:
The second configuration order is generated according to the order line of user's input;
Matched by inner passage to the mark and second that the standby master control order line process of the first OVC sends the first OVC of carrying
Set order.
The master control order line process of first OVC other than the order of master control order line process for forwarding other OVC,
It also will continue to send the second configuration order that the order line received from user generates, that is, also will continue to the first OVC of processing
The configuration order of itself.
Fig. 2 is referred to, Fig. 2 is another active and standby master control configuration and synchronization method based on frame type equipment shown in the application,
It being connected between the master control of frame type equipment and standby master control by inner passage, at least two OVC are arranged in master control and standby master control, until
Using internal logical between the master control order line process of the first OVC and the standby master control command process of the first OVC in few two OVC
The master control order of other OVC in road, the master control order line process of the first OVC and at least two OVC in addition to the first OVC
It establishes the connection of socket channel between traveling journey respectively, the is removed in the standby master control order line process of the first OVC and at least two OVC
Socket channel is established between the standby master control order line process of other OVC except one OVC respectively, method is applied to the first OVC
Standby master control order line process in, the above method includes:
S21: the configuration order and the 2nd OVC that the master control order line process of the first OVC is sent are received by inner passage
Mark.
The mark of the OVC received by inner passage can be defined as the mark of the 2nd OVC.
S22: it if it is determined that the mark of the 2nd OVC is different from the mark of the first OVC, is then ordered by the standby master control with the 2nd OVC
The first set of words channel between traveling journey is enabled to order the standby master control for being sent to the 2nd OVC that configuration order and the 2nd OVC identify
Traveling journey is enabled, so that after the standby master control order line process of the 2nd OVC executes configuration order, by the first configuration result and the 2nd OVC
Mark the standby master control order line process of the first OVC is sent to by first set of words channel.
Due to identifying whether identical according to the mark of the 2nd OVC and the first OVC, processing mode is also different, therefore first
It needs to be determined that the 2nd OVC mark with the first OVC identify whether it is identical, if it is different, illustrate be not belonging to the first OVC, then
Configuration order and the 2nd OVC are identified by the first set of words channel between the standby master control order line process of the 2nd OVC
It is sent to the standby master control order line process of the 2nd OVC, is handled by the standby master control order line process of the 2nd OVC, the 2nd OVC's is standby main
Control order line process can be defined as the first configuration result, the standby master control order of the 2nd OVC for the configuration result of configuration order
First configuration result and the mark of the 2nd OVC are then forwarded to the standby master control of the first OVC by traveling journey by first set of words channel
Order line process;If they are the same, explanation belongs to the first OVC, then after having executed configuration order, obtained configuration result is defined as
Second configuration result orders the second configuration result and the mark of the first OVC by the master control that inner passage is sent to the first OVC
Enable traveling journey.
S23: by by first set of words channel reception to the first configuration result and the mark of the 2nd OVC be sent to first
The master control order line process of OVC.
By the above technical solution provided by the present application as it can be seen that the master control order line process of the first OVC can respectively with its
The master control order line process of his OVC establishes socket channel, the standby master control order line process of the first OVC can respectively with other
The standby master control order line process of OVC establishes socket channel, the configuration order and configuration result of other OVC can pass through first
The inner passage of OVC is forwarded, so as to ensure configuration consistency between master control, standby master control, frame type equipment normally into
Row business processing, and then ensure network security.
Fig. 3 is referred to, Fig. 3 is another active and standby master control configuration and synchronization method based on frame type equipment shown in the application,
When frame type equipment does not open OVC function, only one default OVC on frame type equipment, can be defined as OVC0 at this time.Master control
Only one upper master control order line process, standby master control also only one belong to OVC0 for master control order line process, respectively with
OVC0_CLI_M, OVC0_CLI_B indicate that subscript M, B respectively indicates main master control and standby master control.In master control order line process
Configuration order can be sent to standby master control order line process by the inner passage between master control, standby master control and execute, Ke Yishi
Now configure synchronous effect.
After frame type equipment opens OVC function, n OVC, such as OVC1, OVC2, OVCn etc. can be created.In the present embodiment
Illustrate the complete technical solution of the application by taking OVC1 as an example.After frame type equipment creates an OVC1, which can possess frame
Upper side divides resource, such as physical port, central processing unit (Central Processing Unit, CPU) resource etc..Together
When OVC1 will create master control order line process in master control, OVC1_CLI_M can be defined as, will create in standby master control standby
Master control order line process, can be defined as OVC1_CLI_B, and the master control order line process that user can log in OVC1 issues life
It enables.If to master control order line process and standby master control order line process between the identical OVC in each master control, standby master control
Between special physical channel is all set, it will cause the wastes of physical port, because of the physical port number on frame type equipment
It is limited.In order to save the physical resource of frame type equipment, OVC1_CLI_M and OVC1_CLI_B can pass through OVC0_CLI_M
Inner passage realizes that configuration is synchronous between OVC0_CLI_B.And can not directly it lead between OVC1_CLI_M and OVC1_CLI_B
Letter.
OVC0_CLI_M, OVC1_CLI_M are belonging respectively to the process in master control, on the same physics board, belong to same
One linux operating system.Local unix socket can be created between OVC0_CLI_M, OVC1_CLI_M to monitor, and built mutually
The vertical information connected and send and receive other side, realizes OVC0_CLI_M, OVC1_CLI_M interprocess communication.Each OVC has
Oneself exclusive OVC identifies (ID), such as the OVCID of OVC0, OVC1 are respectively 0,1.
If user executes order cmd, OVC1_CLI_M on OVC1_CLI_M and can send out cmd and oneself affiliated OVCID
Give OVC0_CLI_M.OVC0_CLI_M can be sent to OVC0_CLI_B after receiving by inner passage, and OVC0_CLI_B connects
OVC1_CLI_B can be sent for cmd according to OVCID after receipts, the command synchronization of OVC1_CLI_M can be realized to OVC1_
CLI_B realizes that the configuration between master control and each OVC under standby master control is synchronous.The synchronous process of concrete configuration is as follows:
1, order cmd is executed on OVC1_CLI_M, after OVC1_CLI_M has executed cmd, by cmd and oneself affiliated OVC
OVCID OVC0_CLI_M is sent to by local unix socket channel;
2, after OVC0_CLI_M receives the cmd and OVCID that OVC1_CLI_M is sended over, then cmd and OVCID are passed through
Inner passage is sent to OVC0_CLI_B;
3, after OVC0_CLI_B receives the cmd and OVCID that OVC0_CLI_M is sent out, judge OVCID's and oneself affiliated OVC
Whether OVCID is equal, the order is executed if equal, and implementing result is sent to OVC0_CLI_M, if unequal, basis
Standby master control order line process in the standby master control of OVCID connection under corresponding OVC, this process are attached to OVC1_ by taking OVC1 as an example
CLI_B, and cmd and OVCID are sent to OVC1_CLI_B;
4, after OVC1_CLI_B receives the cmd and OVCID that OVC0_CLI_B is sended over, corresponding cmd is executed, and will
The OVCID of implementing result and oneself affiliated OVC are sent to OVC0_CLI_B;
5, after OVC0_CLI_B result to the implementing result of OVC1_CLI_B execution cmd, implementing result and OVCID are sent
To OVC0_CLI_M;
6, after OVC0_CLI_M is received, the order line process under corresponding OVC is connected according to OVCID, and knot will be executed
Fruit and OVCID are sent to the master control order line process under the OVC, this process is sent to OVC1_CLI_M by taking OVC1 as an example;
After OVC1_CLI_M process receives implementing result, result information is shown on terminal screen, i.e., this subcommand is matched
Setting synchronous process terminates.
Fig. 4 is referred to, Fig. 4 is a kind of knot of active and standby master control configuration synchronizing device based on frame type equipment shown in the application
Structure schematic diagram, it is corresponding with method as shown in Figure 1, connected between the master control of frame type equipment and standby master control by inner passage
It connects, master control and standby master control are arranged at least two OVC, the master control order line process of the first OVC at least two OVC and the
Inner passage, the master control order line process and at least two OVC of the first OVC are used between the standby master control command process of one OVC
In other OVC in addition to the first OVC master control order line process between establish the connection of socket channel, the first OVC respectively
Standby master control order line process and at least two OVC in other OVC in addition to the first OVC standby master control order line process between
Socket channel is established respectively, and applied in the master control order line process of the first OVC, above-mentioned device of stating includes: above-mentioned apparatus
First transceiver module 41 is logical for the first set of words between the master control order line process by the 2nd OVC
Road receives the first configuration order and the second OS-Level virtual environment OVC that the master control order line process of the 2nd OVC is sent
Mark, the mark of the first configuration order and the 2nd OVC are sent to the standby master control order traveling of the first OVC by inner passage
Journey;And
Second transceiver module 42, the of the standby master control order line process transmission for receiving the first OVC by inner passage
The mark and configuration result of three OVC, however, it is determined that the mark of the 3rd OVC is different from the mark of the first OVC, then by the mark of the 3rd OVC
The second socket channel between master control order line process that knowledge and configuration result pass through the 3rd OVC is sent to the 3rd OVC
Master control order line process.
By the above technical solution provided by the present application as it can be seen that the master control order line process of the first OVC can respectively with its
The master control order line process of his OVC establishes socket channel, the standby master control order line process of the first OVC can respectively with other
The standby master control order line process of OVC establishes socket channel, the configuration order and configuration result of other OVC can pass through first
The inner passage of OVC is forwarded, so as to ensure configuration consistency between master control, standby master control, frame type equipment normally into
Row business processing, and then ensure network security.
Optionally, above-mentioned apparatus further includes preserving module, is used for:
If it is determined that the mark of the 3rd OVC is identical as the mark of the first OVC, then configuration result is saved.
Optionally, the first transceiver module 41, is also used to:
The second configuration order is generated according to the order line of user's input;
Matched by inner passage to the mark and second that the standby master control order line process of the first OVC sends the first OVC of carrying
Set order.
Fig. 5 is referred to, Fig. 5 is a kind of knot of active and standby master control configuration synchronizing device based on frame type equipment shown in the application
Structure schematic diagram, it is corresponding with method as shown in Figure 2, connected between the master control of frame type equipment and standby master control by inner passage
It connects, master control and standby master control are arranged at least two OVC, the master control order line process of the first OVC at least two OVC and the
Inner passage, the master control order line process and at least two OVC of the first OVC are used between the standby master control command process of one OVC
In other OVC in addition to the first OVC master control order line process between establish the connection of socket channel, the first OVC respectively
Standby master control order line process and at least two OVC in other OVC in addition to the first OVC standby master control order line process between
Socket channel is established respectively, and applied in the standby master control order line process of the first OVC, above-mentioned apparatus includes: above-mentioned apparatus
Receiving module 51, the configuration that the master control order line process for receiving the first OVC by inner passage is sent are ordered
Enable the mark with the 2nd OVC;
Sending module 52, for if it is determined that the 2nd OVC mark it is different from the mark of the first OVC, then by with the 2nd OVC
Standby master control order line process between first set of words channel be sent to the 2nd OVC for what configuration order and the 2nd OVC were identified
Standby master control order line process so that the 2nd OVC standby master control order line process execute configuration order after, by the first configuration result
The standby master control order line process of the first OVC is sent to by first set of words channel with the mark of the 2nd OVC;
Transceiver module 53, the mark of the first configuration result and the 2nd OVC for that will be arrived by first set of words channel reception
Know the master control order line process for being sent to the first OVC.
By the above technical solution provided by the present application as it can be seen that the master control order line process of the first OVC can respectively with its
The master control order line process of his OVC establishes socket channel, the standby master control order line process of the first OVC can respectively with other
The standby master control order line process of OVC establishes socket channel, the configuration order and configuration result of other OVC can pass through first
The inner passage of OVC is forwarded, so as to ensure configuration consistency between master control, standby master control, frame type equipment normally into
Row business processing, and then ensure network security.
Optionally, sending module 52 are also used to:
If it is determined that the mark of the 2nd OVC is identical as the mark of the first OVC, then after having executed configuration order, by the second configuration
As a result the master control order line process of the first OVC is sent to by inner passage with the mark of the first OVC.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (10)
1. a kind of active and standby master control configuration and synchronization method based on frame type equipment, between the master control of the frame type equipment and standby master control
It being connected by inner passage, at least two OVC are arranged in the master control and the standby master control, and at least two OVC
The inner passage is used between the master control order line process of one OVC and the standby master control command process of the first OVC, it is described
The master control order line process of first OVC is main with other OVC's at least two OVC in addition to the first OVC
Control order line process between establish respectively socket channel connection, the standby master control order line process of the first OVC with it is described extremely
It is logical that socket is established respectively between the standby master control order line process of other OVC in few two OVC in addition to the first OVC
Road, the method is applied in the master control order line process of the first OVC, which is characterized in that the described method includes:
Pass through the main of the 2nd OVC described in the first set of words channel reception between the master control order line process of the 2nd OVC
The mark for controlling the first configuration order and the second OS-Level virtual environment OVC that order line process is sent, by described the
One configuration order and the mark of the 2nd OVC are sent to the standby master control order line of the first OVC by the inner passage
Process;And
By the inner passage receive the first OVC standby master control order line process send the 3rd OVC mark with match
Set result, however, it is determined that the 3rd OVC mark it is different from the mark of the first OVC, then by the mark of the 3rd OVC with
The second socket channel between master control order line process that the configuration result passes through the 3rd OVC is sent to described
The master control order line process of 3rd OVC.
2. the method according to claim 1, wherein the method also includes:
If it is determined that the mark of the 3rd OVC is identical as the mark of the first OVC, then the configuration result is saved.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
The second configuration order is generated according to the order line of user's input;
The mark for carrying the first OVC is sent to the standby master control order line process of the first OVC by the inner passage
With second configuration order.
4. a kind of active and standby master control configuration and synchronization method based on frame type equipment, between the master control of the frame type equipment and standby master control
It being connected by inner passage, at least two OVC are arranged in the master control and the standby master control, and at least two OVC
The inner passage is used between the master control order line process of one OVC and the standby master control command process of the first OVC, it is described
The master control order line process of first OVC is main with other OVC's at least two OVC in addition to the first OVC
Control order line process between establish respectively socket channel connection, the standby master control order line process of the first OVC with it is described extremely
It is logical that socket is established respectively between the standby master control order line process of other OVC in few two OVC in addition to the first OVC
Road, the method is applied in the standby master control order line process of the first OVC, which is characterized in that the described method includes:
The configuration order and the 2nd OVC that the master control order line process of the first OVC is sent are received by the inner passage
Mark;
If it is determined that the mark of the 2nd OVC is different from the mark of the first OVC, then by standby main with the 2nd OVC
First set of words channel between control order line process is by being sent to of identifying of the configuration order and the 2nd OVC described the
The standby master control order line process of two OVC, so that after the standby master control order line process of the 2nd OVC executes the configuration order,
The mark of first configuration result and the 2nd OVC are sent to the standby of the first OVC by the first set of words channel
Master control order line process;
By by the first set of words channel reception to first configuration result and the mark of the 2nd OVC be sent to
The master control order line process of first OVC.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
If it is determined that the mark of the 2nd OVC is identical as the mark of the first OVC, then it, will after having executed the configuration order
Second configuration result and the mark of the first OVC are sent to the master control order of the first OVC by the inner passage
Traveling journey.
6. a kind of active and standby master control based on frame type equipment configures synchronizing device, between the master control of the frame type equipment and standby master control
It being connected by inner passage, at least two OVC are arranged in the master control and the standby master control, and at least two OVC
The inner passage is used between the master control order line process of one OVC and the standby master control command process of the first OVC, it is described
The master control order line process of first OVC is main with other OVC's at least two OVC in addition to the first OVC
Control order line process between establish respectively socket channel connection, the standby master control order line process of the first OVC with it is described extremely
It is logical that socket is established respectively between the standby master control order line process of other OVC in few two OVC in addition to the first OVC
Road, described device is applied in the master control order line process of the first OVC, which is characterized in that described device includes:
First transceiver module, for the first set of words channel reception between the master control order line process by the 2nd OVC
The first configuration order and the second OS-Level virtual environment that the master control order line process of 2nd OVC is sent
The mark of first configuration order and the 2nd OVC is sent to described first by the inner passage by the mark of OVC
The standby master control order line process of OVC;And
Second transceiver module, what the standby master control order line process for receiving the first OVC by the inner passage was sent
The mark and configuration result of 3rd OVC, however, it is determined that the mark of the 3rd OVC is different from the mark of the first OVC, then by institute
Second set between master control order line process that the mark and the configuration result for stating the 3rd OVC pass through the 3rd OVC
Connect the master control order line process that word channel is sent to the 3rd OVC.
7. device according to claim 6, which is characterized in that described device further includes preserving module, is used for:
If it is determined that the mark of the 3rd OVC is identical as the mark of the first OVC, then the configuration result is saved.
8. device according to claim 6 or 7, which is characterized in that first transceiver module is also used to:
The second configuration order is generated according to the order line of user's input;
The mark for carrying the first OVC is sent to the standby master control order line process of the first OVC by the inner passage
With second configuration order.
9. a kind of active and standby master control based on frame type equipment configures synchronizing device, between the master control of the frame type equipment and standby master control
It being connected by inner passage, at least two OVC are arranged in the master control and the standby master control, and at least two OVC
The inner passage is used between the master control order line process of one OVC and the standby master control command process of the first OVC, it is described
The master control order line process of first OVC is main with other OVC's at least two OVC in addition to the first OVC
Control order line process between establish respectively socket channel connection, the standby master control order line process of the first OVC with it is described extremely
It is logical that socket is established respectively between the standby master control order line process of other OVC in few two OVC in addition to the first OVC
Road, described device is applied in the standby master control order line process of the first OVC, which is characterized in that described device includes:
Receiving module, the configuration that the master control order line process for receiving the first OVC by the inner passage is sent
The mark of order and the 2nd OVC;
Sending module, for if it is determined that the 2nd OVC mark it is different from the mark of the first OVC, then by with it is described
First set of words channel between the standby master control order line process of 2nd OVC identifies the configuration order and the 2nd OVC
The standby master control order line process for being sent to the 2nd OVC so that the 2nd OVC standby master control order line process execute institute
After stating configuration order, the mark of the first configuration result and the 2nd OVC is sent to institute by the first set of words channel
State the standby master control order line process of the first OVC;
Transceiver module, first configuration result and described second for will be arrived by the first set of words channel reception
The mark of OVC is sent to the master control order line process of the first OVC.
10. device according to claim 9, which is characterized in that the sending module is also used to:
If it is determined that the mark of the 2nd OVC is identical as the mark of the first OVC, then it, will after having executed the configuration order
Second configuration result and the mark of the first OVC are sent to the master control order of the first OVC by the inner passage
Traveling journey.
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 true CN109739622A (en) | 2019-05-10 |
CN109739622B 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) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110231961A (en) * | 2019-06-27 | 2019-09-13 | 杭州迪普信息技术有限公司 | A kind of control method and system that master control borad is restarted |
CN110795212A (en) * | 2019-10-29 | 2020-02-14 | 杭州迪普科技股份有限公司 | 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 |
CN111147400A (en) * | 2019-12-04 | 2020-05-12 | 杭州迪普科技股份有限公司 | Method and device for command line configuration synchronization and electronic equipment |
CN111211927A (en) * | 2019-12-31 | 2020-05-29 | 杭州迪普科技股份有限公司 | Resource synchronization method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090116514A1 (en) * | 2007-10-31 | 2009-05-07 | Huawei Technologies Co., Ltd. | Method for implementing synchronization of link state database, router, line card and master board |
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 |
-
2018
- 2018-12-29 CN CN201811632721.9A patent/CN109739622B/en active Active
Patent Citations (6)
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 |
US20090116514A1 (en) * | 2007-10-31 | 2009-05-07 | Huawei Technologies Co., Ltd. | Method for implementing synchronization of link state database, router, line card and master board |
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 |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110231961A (en) * | 2019-06-27 | 2019-09-13 | 杭州迪普信息技术有限公司 | A kind of control method and system that master control borad is restarted |
CN110795212A (en) * | 2019-10-29 | 2020-02-14 | 杭州迪普科技股份有限公司 | Main/standby main control configuration synchronization method and device based on frame type equipment |
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 |
CN111147400A (en) * | 2019-12-04 | 2020-05-12 | 杭州迪普科技股份有限公司 | Method and device for command line configuration synchronization and electronic equipment |
CN111147400B (en) * | 2019-12-04 | 2022-03-01 | 杭州迪普科技股份有限公司 | Method and device for command line configuration synchronization and electronic equipment |
CN111211927A (en) * | 2019-12-31 | 2020-05-29 | 杭州迪普科技股份有限公司 | Resource synchronization method and device |
CN111211927B (en) * | 2019-12-31 | 2023-01-24 | 杭州迪普科技股份有限公司 | Resource synchronization method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109739622B (en) | 2020-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109739622A (en) | Active and standby master control configuration and synchronization method and device based on frame type equipment | |
US8738802B2 (en) | Forwarding traffic flow in intelligent resilient framework system | |
CN107278362B (en) | The method of Message processing, host and system in cloud computing system | |
US8027354B1 (en) | Network consolidation for virtualized servers | |
US8589919B2 (en) | Traffic forwarding for virtual machines | |
CN103973560B (en) | A kind of method and apparatus that link failure processing is stacked in IRF systems | |
CN106656846A (en) | Construction method of coordination layer in software defined network (SDN) architecture | |
CN102843286A (en) | Implementation method, device and system of virtual routers | |
CN103259685A (en) | Method for detecting link failures and network equipment | |
CN102724030A (en) | Stacking system with high reliability | |
WO2016095341A1 (en) | Link management method, device and system in virtual machine environment | |
WO2015158120A1 (en) | Method and apparatus for upgrading software version | |
CN103634225A (en) | Service bandwidth expansion method in cloud computing network virtualization | |
WO2023093367A1 (en) | Data packet capturing method and apparatus, electronic device, and storage medium | |
US9166868B2 (en) | Distributed control plane for link aggregation | |
CN102664918A (en) | Blade server control method and console | |
CN106899478A (en) | The method that power test business realizes resource resilient expansion by cloud platform | |
US11095510B2 (en) | Aggregated networking device maintenance system | |
CN109995875A (en) | Virtualization data distributes elastomeric network system | |
CN103067287A (en) | Method achieving virtual programmable router under framework of forwarding and control separation | |
CN106874150A (en) | A kind of virtual machine High Availabitity disaster recovery method and its system | |
CN113645081B (en) | Method, equipment and medium for realizing multi-outlet of tenant network in cloud network environment | |
CN110795212B (en) | Main/standby main control configuration synchronization method and device based on frame type equipment | |
CN108886476B (en) | Multiple provider framework for virtual switch data plane and data plane migration | |
CN104320282A (en) | Method for switching of main and standby virtual machines in virtual edge port aggregation system and physical mainframes |
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 |