CN104125079A - Method and device for determining double-device hot-backup configuration information - Google Patents

Method and device for determining double-device hot-backup configuration information Download PDF

Info

Publication number
CN104125079A
CN104125079A CN201310142917.0A CN201310142917A CN104125079A CN 104125079 A CN104125079 A CN 104125079A CN 201310142917 A CN201310142917 A CN 201310142917A CN 104125079 A CN104125079 A CN 104125079A
Authority
CN
China
Prior art keywords
interface
itself body
peer itself
backup
backup peer
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
Application number
CN201310142917.0A
Other languages
Chinese (zh)
Other versions
CN104125079B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310142917.0A priority Critical patent/CN104125079B/en
Publication of CN104125079A publication Critical patent/CN104125079A/en
Application granted granted Critical
Publication of CN104125079B publication Critical patent/CN104125079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and device for determining double-device hot-backup configuration information. The method includes the following steps: a network device which is used as a management master device initiates link layer connectivity detection to a network device which is used as a management slave device and backup peers are established according to a result of the link layer connectivity detection and main interfaces and standby interfaces, which are included in the backup peers and capable of mutual backup, are determined, wherein the management master device and the management slave device are two network devices capable of mutual backup; and the management master device notifies information of the main interfaces and the standby interfaces included in the backup peers to the management slave device. The method and device for determining the double-device hot-backup configuration information enable a processing process of the double-device hot-backup configuration information to have advantages of being simple in a configuration deployment and maintenance process so that under a condition that network constructing cost is not increased, network operation cost is significantly reduced.

Description

A kind of method of definite two-node cluster hot backup configuration information and device
Technical field
The present invention relates to a kind of communication technical field, relate in particular to a kind of method and device of definite two-node cluster hot backup configuration information.
Background technology
Along with the development of broadband network business, user is more and more higher to the requirement of network reliability, for example, network interrupts directly affecting large-scale network game player's experience, or, affect the IP-based voice of enterprise customer voip(, voice over IP), the experience of the application such as video (as meeting etc.).
Based on the demand, for improving the reliability of Broadband Network Access, operator all can adopt dual homed access way, and subscriber equipment (as switch) is received respectively two BRAS(BAS Broadband Access Servers by two access link, Broadband Remote Access Server) on.Because BRAS equipment is generally by PPPoE(Point-to-Point Potocol Over Ethernet; on Ethernet, transmit the mode of peer to peer session) carry out mode and realize access authentication; if the data such as authentication state to user are not carried out the backup of equipment room; occur there is link or node failure so after protection switching; user need to dial again just can complete the access on another equipment; in this process; user's network application connection can be broken, and greatly affects user and experiences.Therefore, can back up in realtime between master/slave device user's the relevant user data such as access authentication.Back up user data in order to realize between active and standby equipment, the mode adopting at present conventionally comprises VRRP(Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol) mode of expansion.In the mode of this VRRP expansion, be mainly that the dual-computer redundancy protection based on VRRP realizes.In order to realize hot standby between BRAS two-shipper, VRRP agreement is expanded, increased the functions such as user profile backed up in synchronization, to make full use of original networking and VRRP agreement, realize corresponding two-node cluster hot backup.
But; because VRRP is the protection agreement towards interface; thereby; for realizing hot standby between BRAS two-shipper; need on active and standby BRAS, connect on the every a pair of mutually redundant interface in the interface of lower floor's network equipment and configure at least one VRRP protection group; each VRRP protection group needs to configure 3 IP addresses and the order of configuration 10-20 bar, like this, need to configure thousands of orders and hundreds of IP addresses for a BRAS equipment of realizing two-node cluster hot backup.And; conventionally need to be based on VLAN(VLAN in the process of two-node cluster hot backup owing to realizing; Virtual Local Area Network) granularity protects; thereby need to carry out unified planning to VLAN; the configuration of lower layer switch is also needed to adjust, this has just further improved the complexity of whole configure and maintenance process simultaneously.
Summary of the invention
The object of this invention is to provide a kind of method and device of definite two-node cluster hot backup configuration information, to reduce the complexity that configures and safeguard the processing procedure of two-node cluster hot backup configuration information.
First aspect, the embodiment of the present invention provides a kind of method of definite two-node cluster hot backup configuration information, comprising:
The network equipment as management main equipment detects to initiating link layer connectivity as management from the network equipment of equipment, and the result detecting according to described link layer connectivity is set up backup peer itself body, and determine described backup peer itself body primary interface and the spare interface that can back up mutually that comprise, wherein, described management main equipment and described management are two network equipments that can back up mutually from equipment;
The described primary interface that described management main equipment comprises described backup peer itself body and the information of spare interface notify described management from equipment.
In the possible implementation of the first of described first aspect, the step that described initiation link layer connectivity detects comprises:
Described management main equipment is initiatively initiated described link layer connectivity according to the outer virtual local area network configuration information of the interface of self and lower floor's network equipment connection and is detected.
In the possible implementation of the second of described first aspect, the step that described initiation link layer connectivity detects comprises:
In the time that described management main equipment is received the non-unicast access message of VLAN, if described VLAN is not yet set up described backup peer itself body, initiate described link layer connectivity and detect.
The implementation that the first based on described first aspect or described first aspect is possible or the possible implementation of the second of described first aspect, in the third possible implementation of described first aspect, described method also comprises:
Described management main equipment is according to predetermined time interval, periodically initiating described link layer connectivity for the described backup peer itself body of having set up detects, the backup peer itself body set up lost efficacy described in determine, again initiating described link layer connectivity for the interface of the backup peer itself body losing efficacy detects, and set up new backup peer itself body for the interface of the backup peer itself body of described inefficacy, wherein, the lost efficacy result that refers to described detection of connectivity of described backup peer itself body is not to be communicated with between the primary interface that comprises of described backup peer itself body and spare interface.
The implementation that the first based on described first aspect or described first aspect is possible or the possible implementation of the second of described first aspect, in the 4th kind of possible implementation of described first aspect, determine that the primary interface that can back up mutually that described backup peer itself body comprises and the step of spare interface comprise:
Described management main equipment is according to one or more primary interface and the spare interface that can back up mutually of determining that described backup peer itself body comprises in the rate-matched of the interface in the local attribute of the interface in described backup peer itself body, described backup peer itself body, uplink downlink flow equalization degree, address pool equilibrium degree or VLAN quantity equilibrium degree, primary interface or the spare interface of the backup peer itself body that wherein, described local attribute is its place for pre-configured appointment interface.
Second aspect, the embodiment of the present invention provides a kind of device of definite two-node cluster hot backup configuration information, it is characterized in that, and described device is arranged in the network equipment as management main equipment, and described device comprises:
Detection of connectivity unit, for detecting to initiating link layer connectivity as management from the network equipment of equipment, wherein, described management main equipment and described management are two network equipments that can back up mutually from equipment;
Backup peer itself body is set up unit, sets up backup peer itself body for the result detecting according to the described link layer connectivity of described detection of connectivity unit, and determines primary interface and the spare interface that can back up mutually that described backup peer itself body comprises;
Backup peer itself body information transmitting unit, notifies described management from equipment for described backup peer itself body being set up to the described primary interface that comprises of described backup peer itself body set up unit and the information of spare interface.
In the possible implementation of the first of described second aspect, described detection of connectivity unit comprises static detection of connectivity subelement, detects for initiatively initiate described link layer connectivity according to the outer virtual local area network configuration information of the interface of described management main equipment and lower floor's network equipment connection.
In the possible implementation of the second of described second aspect, described detection of connectivity unit comprises dynamic connectivity detection sub-unit, for in the time that described management main equipment is received the non-unicast access message of VLAN, if described VLAN is not yet set up described backup peer itself body, initiate described link layer connectivity and detect.
The implementation that the first based on described second aspect or described second aspect is possible or the possible implementation of the second of described second aspect, in the third possible implementation of described second aspect, described device also comprises:
Connective monitoring means, be used for according to predetermined time interval, periodically initiating described link layer connectivity for the described backup peer itself body of having set up detects, the backup peer itself body set up lost efficacy described in determine, again initiating described link layer connectivity for the interface of the backup peer itself body losing efficacy detects, and set up new backup peer itself body for the interface of the backup peer itself body of described inefficacy, wherein, the lost efficacy result that refers to described detection of connectivity of described backup peer itself body is not to be communicated with between the primary interface that comprises of described backup peer itself body and spare interface.
The implementation that the first based on described second aspect or described second aspect is possible or the possible implementation of the second of described second aspect, in the 4th kind of possible implementation of described second aspect, described backup peer itself body is set up unit and is comprised:
Backup peer itself body is determined subelement, sets up backup peer itself body for the result detecting according to the described link layer connectivity of described detection of connectivity unit;
Active and standby chooser unit, for primary interface and the spare interface that can back up mutually that comprise according to the one or more definite described backup peer itself body in the rate-matched of the interface in the local attribute of the interface of described backup peer itself body, described backup peer itself body, uplink downlink flow equalization degree, address pool equilibrium degree or VLAN quantity equilibrium degree, primary interface or the spare interface of the backup peer itself body that wherein, described local attribute is its place for pre-configured appointment interface.
As seen from the above technical solution provided by the invention, the technical scheme that the embodiment of the present invention provides makes to determine the advantages such as the processing procedure of described two-node cluster hot backup configuration information has configuration deployment and maintenance process is simple.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain other accompanying drawings according to these accompanying drawings.
The processing procedure schematic diagram of the method for definite two-node cluster hot backup configuration information that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 is the applied environment structural representation of the embodiment of the present invention;
The Application Example processing procedure schematic diagram of the method for definite two-node cluster hot backup configuration information that Fig. 3 provides for the embodiment of the present invention;
The structural representation one of the device of definite two-node cluster hot backup configuration information that Fig. 4 provides for the embodiment of the present invention;
The structural representation two of the device of definite two-node cluster hot backup configuration information that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the network equipment that Fig. 6 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on embodiments of the invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to protection scope of the present invention.
The method of a kind of definite two-node cluster hot backup configuration information that the embodiment of the present invention provides, as shown in Figure 1, specifically can comprise the following steps:
Step 11, detects to initiating link layer connectivity as management from the network equipment of equipment as the network equipment of management main equipment;
Wherein, the corresponding network equipment can be, but not limited to comprise: BAS Broadband Access Server etc.;
Corresponding triggering mode of initiating detection of connectivity specifically can be, but not limited to comprise following one or more:
Mode one: management main equipment is initiatively initiated described link layer connectivity according to the outer VLAN configuration of the interface of the network equipment and detected;
Mode two: in the time that management main equipment is received the non-unicast access message of VLAN, if this VLAN is not yet set up described backup peer itself body, initiate described link layer connectivity and detect; Described non-unicast access message can be broadcasting packet or multicast message, and described broadcasting packet or multicast message are the message that the network equipment (as managed main equipment and management from equipment) in L 2 broadcast territory all can be received;
Wherein, in the foregoing description, managing accordingly main equipment is in described two network equipments that can back up mutually, to select a definite network equipment according to predetermined mode, and another network equipment can be called management from equipment;
For instance, corresponding link layer connectivity testing process can comprise: by LLDP(Link Layer Discovery Protocol, Link Layer Discovery Protocol) message carries out detection of connectivity, or, carry out detection of connectivity by send broadcasting packet in same two layers (being link layer) broadcast area, to carry out detection of connectivity as example by described broadcasting packet, corresponding detection of connectivity process can comprise: management main equipment sends broadcasting packet (broadcasting packet as formatted in private), management notifies described management main equipment (in notice, to comprise the mark of the interface that receives this broadcasting packet from equipment receives this broadcasting packet, as interface number etc.), described management main equipment judges according to the notice of receiving whether management main equipment and management are communicated with from the interface between equipment, thereby determine management main equipment and the management link layer connectivity situation from interface between equipment,
Step 12, the result detecting according to described link layer connectivity is set up backup peer itself body, and described backup peer itself body comprises the interface that can back up mutually, i.e. primary interface and spare interface;
The treatment step that the result detecting according to described link layer connectivity is set up backup peer itself body specifically can comprise: the notice that described management main equipment sends from equipment according to the described management receiving, if find the A interface on management main equipment and manage between the A ' interface from equipment and can transmit above-mentioned broadcasting packet, be to be communicated with between A interface and A ' interface, set up the backup peer itself body that comprises A interface and A ' interface.
Further, in this step, when management main equipment is set up after described backup peer itself body, management main equipment can also be according to the local attribute of the interface in described backup peer itself body, the rate-matched of the interface in described backup peer itself body, uplink downlink flow equalization degree, one or more primary interface and the spare interface of determining in described backup peer itself body in address pool equilibrium degree or VLAN quantity equilibrium degree, wherein, the primary interface of the backup peer itself body that described local attribute is its place for pre-configured appointment interface, for example, if wish, certain interface is primary interface, can be by serving as the primary interface in backup peer itself body for the mode of local attribute of this interface of configuration represents this interface, the i.e. configuration of the local attribute by interface can manual intervention backup peer itself body the selection of primary interface, or, also can be by the selection of the spare interface in the local attribute manual intervention backup peer itself body of described interface, the selection mode of the primary interface in processing mode and manual intervention backup peer itself body is similar, the spare interface in the backup peer itself body that pre-configured appointment interface is its place,
Step 13, the described primary interface that described management main equipment comprises described backup peer itself body and the information of spare interface notify described management from equipment;
Particularly, the information of described primary interface and spare interface can be, but not limited to comprise the information such as the activestandby state of interface number and interface.
Suppose that described backup peer itself body is on management main equipment, connect the interface of lower floor's network equipment and manage between the interface that connects lower floor's network equipment from equipment and set up, set up by the way after two-node cluster hot backup configuration information, in the time being in the primary interface of operating state in backup peer itself body and breaking down, the described spare interface that can Business Stream be led in described backup peer itself body by the network equipment notice lower floor network equipment at spare interface place, the corresponding lower floor network equipment can be, but not limited to comprise: lower layer exchange device, as switch etc.;
Particularly, by the network equipment notice lower floor network equipment at spare interface place, Business Stream is led in the process of the described spare interface in described backup peer itself body, specifically can send Gratuitous ARP(Gratuitous Address Resolution Protocol by downward layer network device by the primary interface in backup peer itself body, free address resolution protocol) message, with the spare interface of notifying lower floor's network equipment that Business Stream is led in described interface backup peer-to-peer.
In the embodiment of the present invention, can also between described two network equipments (managing main equipment and management from equipment), set up control connection, as TCP(Transmission Control Protocol, transmission control protocol) connect etc., and between equipment, back up at described management main equipment and management the needed global information of user access network connecting the described lower floor network equipment by the described control connection of setting up, as user profile etc.; Also can be by this control connection in management main equipment and management from transmitting the information such as local attribute of described interface between equipment.Further, in order to ensure the need for reliable backup of corresponding global information, between the primary interface that can also comprise at a described backup peer itself body and spare interface, setting up Standby control connects, connect for the backup as the described control connection of setting up between described two network equipments, in the time that breaking down, the control connection of setting up can connect the backup of carrying out global information by this Standby control, to improve the reliability of global information backup.
In the embodiment of the present invention, if a network equipment in two network equipments that can back up mutually described cannot normally be worked, the all spare interface on another network equipment in described two network equipments that can back up mutually can be upgraded to primary interface, and notify lower floor's network equipment to carry out the switching of service route.
Can find out by the invention described above embodiment; because in the embodiment of the present invention being is realized and is protected automatic discovery and the protection of link to switch (setting up described backup peer itself body by the testing result of detection of connectivity technology, to carry out corresponding two-node cluster hot backup processing) by network automatic technology , and set up accordingly the process of described backup peer itself body can be based on vLAN attribute is realized automatically, makes the process of setting up described backup peer itself body to adapt to well plan and arranged vLAN, and do not need artificial unified planning VLAN to adapt to the backup peer itself body of required foundation, and then do not need yet because of the operation of the adjustment lower floor switch configuration that manually unified planning VLAN causes.Therefore, realize accordingly the configuration order negligible amounts and the configuration operation process that in the process of two-node cluster hot backup, need simple, greatly reduce the complexity of configure and maintenance, improve maintenance efficiency.
The technical scheme that the realizes two-node cluster hot backup embodiment of the present invention being provided below in conjunction with accompanying drawing is further described.
As shown in Figure 2, suppose that backup group comprises network equipment A and network equipment B, network equipment A and B can be respectively two BRAS, on network equipment A, there are two BAS(broadband inserting services, Broadband Access Service) interface, be respectively BAS interface 1 and BAS interface 2, BAS interface 1 connects the network equipment C of lower floor, and BAS interface 2 connects the network equipment D of lower floor; Network equipment B has two BAS interfaces, is respectively BAS interface 3 and BAS interface 4, and BAS interface 3 connects the network equipment C of lower floor, and BAS interface 4 connects the network equipment D of lower floor.In conjunction with the standby system framework shown in Fig. 2; the specific implementation process of the processing scheme of two-node cluster hot backup that what the embodiment of the present invention provided realize as shown in Figure 3; switch with the main and standby relation and the corresponding protection that automatically complete between the BAS interface on BAS interface and the network equipment B on configure network devices A, specifically can comprise the following steps:
Step 31, sets up control connection, chooses management main equipment and management from equipment;
Particularly, can be the network equipment at two of a backup group peer() between set up TCP connect, and according to one of them peer of the policy selection such as priority for management main equipment, another for management from equipment, principal and subordinate's concept here is just managed the principal and subordinate in meaning, instead of the principal and subordinate of interface;
Corresponding backup group comprises two network equipments that can back up mutually, i.e. two peer.In the present embodiment, suppose that specified network device A is for management main equipment, network equipment B is for management is from equipment.
Step 32, VLAN attribute and local(this locality of configuration BAS interface) attribute;
Particularly, the VLAN attribute of BAS interface and local attribute are for the foundation as setting up described backup peer itself body, wherein, the VLAN attribute of BAS interface is for the foundation as setting up described backup peer itself body, and the local attribute of BAS interface is for the primary interface as definite described backup peer itself body and the foundation of spare interface.
For example, if BAS interface 1 and BAS interface 3 will be joined in backup peer itself body 1, BAS interface 2 and BAS interface 4 are joined in backup peer itself body 2, and BAS1 is set to the main port in backup peer itself body 1, BAS4 is set to the main port in backup peer itself body 2, can BAS interface 1 and the value of the VLAN attribute of BAS interface 3 be set to 1, the value of the VLAN attribute of BAS interface 2 and BAS interface 4 is set to 2, the value of the local attribute of configuration BAS interface 1 and BAS interface 4 is that 1 (value of supposing local attribute is here that 1 expression is set to local, be that 0 expression is not set to local), the value of the local attribute of configuration BAS interface 2 and BAS interface 3 is 0.
Can need to specify local attribute for the VLAN of local first access according to topological structure by this step, to specify certain interface as the primary interface in backup peer itself body, can control the try one's best homonymy access of lower layer switch based on this local attribute, to select to have specified the interface of described local attribute be primary interface for preferential between the backup peer itself body of a pair of connection (being the interface of the BAS of two network equipments comprising of backup group), to reduce in the situations such as U-shaped networking the flow that passes through between switch.
Step 33, management main equipment is initiated detection of connectivity, to set up backup peer itself body;
In this step, specifically can set up backup peer itself body by the mode of static detection of connectivity, the mode that also can detect by dynamic connectivity is set up backup peer itself body, will describe respectively below;
(1) mode of static detection of connectivity is set up backup peer itself body
Described management main equipment is initiatively initiated detection of connectivity (the detection of connectivity between interface is only initiated in configuration in same VLAN according to VLAN) according to the value of the VLAN attribute of the BAS interface of configuration in step 32 to management from equipment, to detect the BAS interface of corresponding described management main equipment and described management from the connectedness between the BAS interface of equipment, and set up backup peer itself body and notice management from equipment according to testing result, described backup peer itself body comprises interface and the vlan information that can back up mutually, can be for example " port(interface)+vlan " right.For example, network equipment A initiates detection of connectivity to network equipment B, specifically can be, but not limited to carry the information of BAS interface 1 and VLAN1 in connectivity testing message, obtain the response of network equipment B, learn that the BAS interface 3 of network equipment B is also in VLAN1, thereby set up backup peer itself body 1, described backup peer itself body 1 comprises BAS interface 1 and BAS interface 3.Afterwards, network equipment A initiates detection of connectivity to network equipment B again, in connectivity testing message, carry the information of BAS interface 2 and VLAN2, obtain the response of network equipment B, learn that the BAS interface 4 of network equipment B is also in VLAN2, thereby set up backup peer itself body 2, described backup peer itself body 2 comprises BAS interface 2 and BAS interface 4.
Management main equipment also generates the main and standby relation (determining corresponding primary interface and spare interface) of backup peer itself body and notices management from equipment according to the one or more strategy such as the local attribute of the interface in backup peer itself body, interface rate coupling, uplink downlink flow equalization degree, address pool equilibrium degree and VLAN quantity equilibrium degree.For example, when determining that the strategy of primary interface and spare interface is set to consider the local attribute of interface, can determine according to the local attribute of the each BAS interface having configured in above-mentioned steps 32 main and standby relation of backup peer itself body.
Alternatively, between management master-slave equipment, can also select one of them backup peer itself body to create control connection for subsequent use, the backup link connecting using the TCP setting up as step 31;
(2) mode that dynamic connectivity detects is set up backup peer itself body
If BAS interface VLAN configuration (being VLAN attribute), for the configuration of the even unclear lower layer switch of anyother(, is used this order, represent that any VLAN or QinQ can be accessed by), need to set up backup peer itself body by non-unicast access message Dynamic trigger, this non-unicast access message can be user's access protocol association message, as ARP message or DHCP(DHCP, Dynamic Host Configuration Protocol) message etc.; The process of setting up accordingly backup peer itself body can comprise:
In the time that management main equipment is received the non-unicast access message of certain VLAN first, judge whether this VLAN sets up backup peer itself body, if this VLAN does not also set up backup peer itself body, initiate detection of connectivity and set up backup peer itself body, also can be by coordinating realization with management from equipment Inspection message in corresponding detection of connectivity process, or, also can realize by the special detection messages of initiating; Management main equipment also generates the main and standby relation of backup peer itself body and notices management from equipment according to the one or more strategy such as the local attribute of the VLAN on backup peer itself body physical interface, interface rate coupling, uplink downlink flow equalization degree, address pool equilibrium degree and VLAN quantity equilibrium degree;
Further, in the time that management is received the non-unicast access message of certain VLAN from device first, if this VLAN does not also set up backup peer itself body, receive and on the interface of non-unicast access message, initiate to connect the general character and detect at this, if testing result is for being communicated with, show to manage main equipment and can complete corresponding detection of connectivity work, now can abandon this non-unicast access message; If detection of connectivity failure, this management is done access from equipment to this VLAN and is processed and notice management main equipment.
In addition, in the embodiment of the present invention, because topology of networks and VLAN configuration may change, therefore described management main equipment can also be according to predetermined time interval, periodically initiating described link layer connectivity for the described backup peer itself body of having set up detects, the backup peer itself body set up lost efficacy described in determine, again initiating described link layer connectivity for the interface of the backup peer itself body losing efficacy detects, and set up new backup peer itself body for the interface of the backup peer itself body of described inefficacy, wherein, the lost efficacy result that refers to described detection of connectivity of described backup peer itself body is not to be communicated with between the primary interface that comprises of described backup peer itself body and spare interface.Be that described management main equipment can also periodically carry out detection of connectivity to adapt to the change in topology of lower floor's switching network, when finding after backup peer itself body invalid (as invalid in three sense cycle), the interface that former backup peer itself body is comprised starts new detection of connectivity process, (detect that new interface is communicated with the interface that described former backup peer itself body comprises) when detecting after new connectedness, upgrade the interface message (being primary interface and spare interface information) that described original backup peer itself body comprises; Wherein, the length of sense cycle can be determined according to the change interval time of topology of networks and VLAN configuration, for example, can be set to 60 seconds etc.).
Step 34, the backup peer itself body based on setting up carries out selection and the switching of corresponding primary interface and spare interface;
Determining that after the primary interface and spare interface that described backup peer itself body comprises, described primary interface and spare interface can also change according to the triggering of event, former primary interface may become spare interface, and spare interface also may become primary interface.Particularly, first, management is collected the Interface status of the machine and the traffic statistics that mode is obtained outside VLAN granularity such as is obtained by the active cycle according to approach such as Event triggered report from equipment, and notices to management main equipment; Afterwards, management main equipment can carry out active and standby selection according to each equipment state, Interface status, uplink downlink flow equalization degree, if primary interface and spare interface that the backup peer itself body of having set up comprises change, send the lower layer switch of gratuitous ARP packet notice by Business Stream described new primary interface (the being former spare interface) interface that leads, to carry out the switching of primary interface and spare interface by new primary interface; It should be noted that, whether initiating initiatively active and standby switching because of mass flow discrepancy weighing apparatus for the backup peer itself body of having reached the standard grade specifically can be designed to arrangement (to switch as mass flow discrepancy weighing apparatus degree exceedes predetermined value triggering, and predetermined value size is configurable), be defaulted as and do not switch, thereby can prevent that changes in flow rate from causing active and standby frequently switching repeatedly;
Further, when equipment Inspection was lost efficacy to opposite equip. DOWN() time, will there is the active and standby switching of device level, all spare interface of the equipment not losing efficacy upgrade to primary interface, and send the described spare interface that the exchange interface of gratuitous ARP packet notice lower floor is led Business Stream in the equipment not losing efficacy; Afterwards, after faulty equipment recovers normally, two ends re-establish connection, reselect management main equipment and management from equipment and set up corresponding backup peer itself body, simultaneous user's Backup Data and user profile etc., and according to active and standby selection strategy election standby usage interface, the primary interface of selecting to determine sends the lower layer switch of gratuitous ARP packet notice by the Business Stream primary interface that described selection determines that leads.
In the above-mentioned description for the embodiment of the present invention; emphasis has been described according to the configuration of topological structure and has automatically been found to protect link and realize the processing procedure of active and standby switching; back-up processing for the user data backup relating in handoff procedure and the distribution of BRAS address pool and route issue etc. adopts processing mode of the prior art, therefore specify.
The technical scheme providing by the invention described above embodiment can find out, the embodiment of the present invention has disposes simple, backup policy and granularity selection flexibly, existing network is had to the advantages such as stronger adaptability.And, utilize the technical scheme that the embodiment of the present invention provides to realize corresponding two-node cluster hot backup, can also, in the situation that not increasing networking cost, greatly cut down network operation cost.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The embodiment of the present invention also provides a kind of device of definite two-node cluster hot backup configuration information, and described device is arranged in the network equipment as management main equipment, and as shown in Figure 4, described device specifically can comprise with lower unit:
Detection of connectivity unit 41, for detecting to initiating link layer connectivity as management from the network equipment of equipment, wherein, described management main equipment and described management are two network equipments that can back up mutually from equipment;
Backup peer itself body is set up unit 42, sets up backup peer itself body for the result detecting according to the described link layer connectivity of described detection of connectivity unit 41, and determines primary interface and the spare interface that can back up mutually that described backup peer itself body comprises;
Backup peer itself body information transmitting unit 43, notifies described management from equipment for described backup peer itself body being set up to described primary interface that the described backup peer itself body set up unit 42 comprises and the information of spare interface.
Further, as shown in Figure 5, described detection of connectivity unit 41 can comprise static detection of connectivity subelement 411, detects for initiatively initiate described link layer connectivity according to the outer virtual local area network configuration information of the interface of described management main equipment and lower floor's network equipment connection.
Alternatively, as shown in Figure 5, described detection of connectivity unit 41 also can comprise dynamic connectivity detection sub-unit 412, for in the time that described management main equipment is received the non-unicast access message of VLAN, if described VLAN is not yet set up described backup peer itself body, initiate described link layer connectivity and detect.
As shown in Figure 5, the device of described definite two-node cluster hot backup configuration information that the embodiment of the present invention provides can also comprise connective monitoring means 44, be used for according to predetermined time interval, periodically initiating described link layer connectivity for the described backup peer itself body of having set up detects, the backup peer itself body set up lost efficacy described in determine, again initiating described link layer connectivity for the interface of the backup peer itself body losing efficacy detects, and set up new backup peer itself body for the interface of backup peer itself body losing efficacy, wherein, the lost efficacy result that refers to described detection of connectivity of described backup peer itself body is not to be communicated with between the primary interface that comprises of described backup peer itself body and spare interface.
In the device of described definite two-node cluster hot backup configuration information, as shown in Figure 5, described backup peer itself body is set up unit 42 specifically can comprise that backup peer itself body determines subelement 421 and active and standby chooser unit 422, wherein:
Backup peer itself body is determined subelement 421, sets up backup peer itself body for the result detecting according to the described link layer connectivity of described detection of connectivity unit;
Active and standby chooser unit 422, be used for according to the local attribute of the interface of described management main equipment and lower floor's network equipment connection, interface rate coupling, uplink downlink flow equalization degree, one or more primary interface and the spare interface that can back up mutually of determining that described backup peer itself body comprises in address pool equilibrium degree or VLAN quantity equilibrium degree, wherein, the primary interface of the backup peer itself body that described local attribute is its place for pre-configured appointment interface, or, the spare interface of described local attribute in also can the backup peer itself body that be its place for pre-configured appointment interface.
The said apparatus that the embodiment of the present invention provides makes to determine that the processing procedure of described two-node cluster hot backup configuration information has that configuration deployment is simple, backup policy and granularity selection flexibly, existing network is had to the advantages such as stronger adaptability.But also can, in the situation that not increasing networking cost, greatly cut down network operation cost.
It should be noted that, in the specific implementation of the function that each processing unit comprising in said apparatus is realized each embodiment above, have a detailed description, therefore here repeat no more.
The said apparatus that the embodiment of the present invention provides specifically can be arranged in the network equipment, in BAS equipment, so that the described network equipment can complete above-mentioned processing capacity as management when primary device application.Concrete, the structure of the described network equipment as shown in Figure 6, can comprise: memory 61, transmitter 62 and receiver 63, and the processor 64 being connected with memory 61, transmitter 62 and receiver 63 respectively, and memory 61 is for storing batch processing code, processor 64 is carried out following operation for the program of calling memory 61 and storing:
Detect to initiating link layer connectivity as management from the network equipment of equipment by transmitter 62, the information receiving according to receiver 63 is determined the result that described link layer connectivity detects, the result detecting according to described link layer connectivity is set up backup peer itself body, and determines primary interface and the spare interface that can back up mutually that described backup peer itself body comprises; Also crossing described transmitter 62 for the information exchange of described primary interface that described backup peer itself body is comprised and spare interface notifies described management from equipment.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional unit, in practical application, can above-mentioned functions be distributed and completed by different functional units as required, be divided into different functional units by the internal structure of device, to complete all or part of function described above.The specific works process of the device of foregoing description and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that disclosed system and method can be realized by another way.For example, system embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, when actual realization, can have other dividing mode, for example multiple unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, the indirect coupling of unit or communication connection can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
The above; only for preferably embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with in technical scope that those skilled in the art disclose in the present invention; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claims.

Claims (10)

1. a method for definite two-node cluster hot backup configuration information, is characterized in that, comprising:
The network equipment as management main equipment detects to initiating link layer connectivity as management from the network equipment of equipment, and the result detecting according to described link layer connectivity is set up backup peer itself body, and determine described backup peer itself body primary interface and the spare interface that can back up mutually that comprise, wherein, described management main equipment and described management are two network equipments that can back up mutually from equipment;
The described primary interface that described management main equipment comprises described backup peer itself body and the information of spare interface notify described management from equipment.
2. method according to claim 1, is characterized in that, the step that described initiation link layer connectivity detects comprises:
Described management main equipment is initiatively initiated described link layer connectivity according to the outer virtual local area network configuration information of the interface of self and lower floor's network equipment connection and is detected.
3. method according to claim 1, is characterized in that, the step that described initiation link layer connectivity detects comprises:
In the time that described management main equipment is received the non-unicast access message of VLAN, if described VLAN is not yet set up described backup peer itself body, initiate described link layer connectivity and detect.
4. according to the method described in claim 1,2 or 3, it is characterized in that, described method also comprises:
Described management main equipment is according to predetermined time interval, periodically initiating described link layer connectivity for the described backup peer itself body of having set up detects, the backup peer itself body set up lost efficacy described in determine, again initiating described link layer connectivity for the interface of the backup peer itself body losing efficacy detects, and set up new backup peer itself body for the interface of the backup peer itself body of described inefficacy, wherein, the lost efficacy result that refers to described detection of connectivity of described backup peer itself body is not to be communicated with between the primary interface that comprises of described backup peer itself body and spare interface.
5. according to the method described in claim 1,2 or 3, it is characterized in that, determine that the primary interface that can back up mutually that described backup peer itself body comprises and the step of spare interface comprise:
Described management main equipment is according to one or more primary interface and the spare interface that can back up mutually of determining that described backup peer itself body comprises in the rate-matched of the interface in the local attribute of the interface in described backup peer itself body, described backup peer itself body, uplink downlink flow equalization degree, address pool equilibrium degree or VLAN quantity equilibrium degree, primary interface or the spare interface of the backup peer itself body that wherein, described local attribute is its place for pre-configured appointment interface.
6. a device for definite two-node cluster hot backup configuration information, is characterized in that, described device is arranged in the network equipment as management main equipment, and described device comprises:
Detection of connectivity unit, for detecting to initiating link layer connectivity as management from the network equipment of equipment, wherein, described management main equipment and described management are two network equipments that can back up mutually from equipment;
Backup peer itself body is set up unit, sets up backup peer itself body for the result detecting according to the described link layer connectivity of described detection of connectivity unit, and determines primary interface and the spare interface that can back up mutually that described backup peer itself body comprises;
Backup peer itself body information transmitting unit, notifies described management from equipment for described backup peer itself body being set up to the described primary interface that comprises of described backup peer itself body set up unit and the information of spare interface.
7. device according to claim 6, it is characterized in that, described detection of connectivity unit comprises static detection of connectivity subelement, detects for initiatively initiate described link layer connectivity according to the outer virtual local area network configuration information of the interface of described management main equipment and lower floor's network equipment connection.
8. device according to claim 6, it is characterized in that, described detection of connectivity unit comprises dynamic connectivity detection sub-unit, for in the time that described management main equipment is received the non-unicast access message of VLAN, if described VLAN is not yet set up described backup peer itself body, initiate described link layer connectivity and detect.
9. according to the device described in claim 6,7 or 8, it is characterized in that, described device also comprises:
Connective monitoring means, be used for according to predetermined time interval, periodically initiating described link layer connectivity for the described backup peer itself body of having set up detects, the backup peer itself body set up lost efficacy described in determine, again initiating described link layer connectivity for the interface of the backup peer itself body losing efficacy detects, and set up new backup peer itself body for the interface of the backup peer itself body of described inefficacy, wherein, the lost efficacy result that refers to described detection of connectivity of described backup peer itself body is not to be communicated with between the primary interface that comprises of described backup peer itself body and spare interface.
10. according to the device described in claim 6,7 or 8, it is characterized in that, described backup peer itself body is set up unit and is comprised:
Backup peer itself body is determined subelement, sets up backup peer itself body for the result detecting according to the described link layer connectivity of described detection of connectivity unit;
Active and standby chooser unit, for primary interface and the spare interface that can back up mutually that comprise according to the one or more definite described backup peer itself body in the rate-matched of the interface in the local attribute of the interface of described backup peer itself body, described backup peer itself body, uplink downlink flow equalization degree, address pool equilibrium degree or VLAN quantity equilibrium degree, primary interface or the spare interface of the backup peer itself body that wherein, described local attribute is its place for pre-configured appointment interface.
CN201310142917.0A 2013-04-23 2013-04-23 A kind of method and device for determining two-node cluster hot backup configuration information Active CN104125079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310142917.0A CN104125079B (en) 2013-04-23 2013-04-23 A kind of method and device for determining two-node cluster hot backup configuration information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310142917.0A CN104125079B (en) 2013-04-23 2013-04-23 A kind of method and device for determining two-node cluster hot backup configuration information

Publications (2)

Publication Number Publication Date
CN104125079A true CN104125079A (en) 2014-10-29
CN104125079B CN104125079B (en) 2017-11-17

Family

ID=51770351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310142917.0A Active CN104125079B (en) 2013-04-23 2013-04-23 A kind of method and device for determining two-node cluster hot backup configuration information

Country Status (1)

Country Link
CN (1) CN104125079B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016101825A1 (en) * 2014-12-25 2016-06-30 中兴通讯股份有限公司 Method and apparatus for hot standby of controllers in distributed protection
CN108319679A (en) * 2018-01-30 2018-07-24 杭州迪普科技股份有限公司 A kind of generation method and device of major key
CN109873761A (en) * 2017-12-04 2019-06-11 中兴通讯股份有限公司 Switch the method and apparatus of master/slave device in a kind of hot standby environment
CN114070781A (en) * 2020-08-05 2022-02-18 北京威努特技术有限公司 Data communication method, device and system and computer equipment
CN114531722A (en) * 2022-03-01 2022-05-24 杭州老板电器股份有限公司 Networking method and device for equipment in local network and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079795A (en) * 2007-07-27 2007-11-28 杭州华三通信技术有限公司 Data forwarding method and forwarding device
CN101197733A (en) * 2007-12-18 2008-06-11 中兴通讯股份有限公司 Automatic detection method and device for network connectivity
US20090109841A1 (en) * 2007-10-24 2009-04-30 Shinji Nozaki Layer-2 Redundancy Protocol Interconnection Device
CN101695043A (en) * 2009-10-15 2010-04-14 中兴通讯股份有限公司 Method for multiplexing hot backup port and network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079795A (en) * 2007-07-27 2007-11-28 杭州华三通信技术有限公司 Data forwarding method and forwarding device
US20090109841A1 (en) * 2007-10-24 2009-04-30 Shinji Nozaki Layer-2 Redundancy Protocol Interconnection Device
CN101197733A (en) * 2007-12-18 2008-06-11 中兴通讯股份有限公司 Automatic detection method and device for network connectivity
CN101695043A (en) * 2009-10-15 2010-04-14 中兴通讯股份有限公司 Method for multiplexing hot backup port and network system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016101825A1 (en) * 2014-12-25 2016-06-30 中兴通讯股份有限公司 Method and apparatus for hot standby of controllers in distributed protection
CN109873761A (en) * 2017-12-04 2019-06-11 中兴通讯股份有限公司 Switch the method and apparatus of master/slave device in a kind of hot standby environment
CN108319679A (en) * 2018-01-30 2018-07-24 杭州迪普科技股份有限公司 A kind of generation method and device of major key
CN108319679B (en) * 2018-01-30 2021-03-23 杭州迪普科技股份有限公司 Method and device for generating primary key
CN114070781A (en) * 2020-08-05 2022-02-18 北京威努特技术有限公司 Data communication method, device and system and computer equipment
CN114070781B (en) * 2020-08-05 2023-08-08 北京威努特技术有限公司 Data communication method, device, system and computer equipment
CN114531722A (en) * 2022-03-01 2022-05-24 杭州老板电器股份有限公司 Networking method and device for equipment in local network and electronic equipment
CN114531722B (en) * 2022-03-01 2024-05-03 杭州老板电器股份有限公司 Networking method and device for equipment in local network and electronic equipment

Also Published As

Publication number Publication date
CN104125079B (en) 2017-11-17

Similar Documents

Publication Publication Date Title
US10164873B1 (en) All-or-none switchover to address split-brain problems in multi-chassis link aggregation groups
CN102025798B (en) Address allocation processing method, device and system
US10027574B2 (en) Redundant pathways for network elements
JP7046473B2 (en) Methods and equipment for providing redundancy for process control systems
EP2045965B1 (en) Resource state monitoring method, device and communication network
CN102404146B (en) Master-slave switching method, network device and DHCP server
US9218230B2 (en) Method for transmitting messages in a redundantly operable industrial communication network and communication device for the redundantly operable industrial communication network
CN108259215B (en) Equipment management method and device
CN106685818A (en) Message feedback method and device
CN104168193A (en) Virtual router redundancy protocol fault detection method and router equipment
CN103036702B (en) A kind of N+1 backup method of cross-network segment and device
CN104038376A (en) Method and device for managing real servers and LVS clustering system
CN104125079A (en) Method and device for determining double-device hot-backup configuration information
CN112436966B (en) OpenStack platform-based cloud physical host network card binding configuration method and system
CN105119822A (en) Backup group management method and system based on VRRP (Virtual Router Redundancy Protocol)
CN102742222B (en) Method and apparatus for maintaining connectivity of transmission lines
CN101197733A (en) Automatic detection method and device for network connectivity
CN101729426A (en) Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)
CN101483571B (en) RRPP configuring method, system and device
CN112583708B (en) Connection relation control method and device and electronic equipment
CN103095573A (en) Method for virtual router redundancy protocol backup set switching and switch
CN102710520A (en) Method and device for backing up lonworks network service (LNS)
CN106941424B (en) Redundancy switching method and device based on TTDP protocol
JP5974911B2 (en) Communication system and network relay device
CN104160667A (en) Method, Device, and System for Dual-Uplink Tangent Ring Convergence

Legal Events

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