[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104125079B - A kind of method and device for determining two-node cluster hot backup configuration information - Google Patents

A kind of method and device for determining two-node cluster hot backup configuration information Download PDF

Info

Publication number
CN104125079B
CN104125079B CN201310142917.0A CN201310142917A CN104125079B CN 104125079 B CN104125079 B CN 104125079B CN 201310142917 A CN201310142917 A CN 201310142917A CN 104125079 B CN104125079 B CN 104125079B
Authority
CN
China
Prior art keywords
interface
backup
peer itself
itself body
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.)
Active
Application number
CN201310142917.0A
Other languages
Chinese (zh)
Other versions
CN104125079A (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 kind of method and device for determining two-node cluster hot backup configuration information, including:The network equipment as management main equipment initiates link layer connectivity detection to the network equipment as management slave unit, and the result detected according to the link layer connectivity establishes backup peer itself body, and determine the primary interface that can be backed up mutually and spare interface that the backup peer itself body includes, wherein, the management main equipment and the management slave unit are two network equipments that can be backed up mutually;The primary interface and the information of spare interface that the backup peer itself body includes are notified the management slave unit by the management main equipment.The embodiment of the present invention make it that to determine that the processing procedure of the two-node cluster hot backup configuration information has the advantages that configuration deployment and maintenance process are simple, in the case where not increasing networking cost, greatly to cut down network operation cost.

Description

A kind of method and device for determining two-node cluster hot backup configuration information
Technical field
The present invention relates to a kind of communication technical field, more particularly to a kind of method for determining two-node cluster hot backup configuration information and Device.
Background technology
With the development of broadband network business, requirement more and more higher of the user to network reliability, for example, network interruption will The experience of large-scale network game player is directly affected, or, influence enterprise customer voip(IP-based voice, voice over IP)、 Video etc. is applied(Such as meeting)Experience.
Based on the demand, to improve the reliability of Broadband Network Access, operator can all use dual homed access way, i.e., User equipment(Such as interchanger)Two BRAS are coupled with by two access link(BAS Broadband Access Server, Broadband Remote Access Server)On.Because BRAS equipment typically passes through PPPoE(Point-to-Point Potocol Over Ethernet, the mode of peer to peer session is transmitted on Ethernet)Carry out mode to realize access authentication, if the not certification to user The data such as state carry out equipment room backup, then there is link or node failure and occur protection switching after, user need Again dialing could complete the access in another equipment, and in this process, the network application connection of user can be broken, pole It is big to influence Consumer's Experience.Therefore, can back up in realtime the relevant user data such as access authentication of user between master/slave device.In order to User data is backed up in realization between active and standby equipment, and the mode of generally use includes VRRP at present(Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol)The mode of extension.In the mode of VRRP extensions, mainly Dual-computer redundancy protection based on VRRP is realized.It is i.e. hot standby between BRAS two-shippers in order to realize, VRRP agreements are extended, increased Add the functions such as user profile backed up in synchronization, to make full use of original networking and VRRP agreements, realize corresponding two-node cluster hot backup.
But because VRRP is the protection agreement towards interface, thus, to realize hot standby between BRAS two-shippers, it is necessary to Connected on active and standby BRAS and configure at least one VRRP on every a pair mutually redundant interfaces in the interface of lower floor's network equipment Protection group, each VRRP protection group are required for configuring 3 IP address and configure 10-20 bar orders, so, for a realization The BRAS equipment of two-node cluster hot backup needs to configure thousands of commands and hundreds of IP address.It is additionally, since the mistake for realizing two-node cluster hot backup Usually require to be based on VLAN in journey(VLAN, Virtual Local Area Network)Granularity is protected, thus Need to carry out unified planning to VLAN, while the configuration to lower layer switch is also required to be adjusted, this is just further increased Whole configuration and the complexity of maintenance process.
The content of the invention
It is an object of the invention to provide it is a kind of determine two-node cluster hot backup configuration information method and device, with reduce configuration and Safeguard the complexity of the processing procedure of two-node cluster hot backup configuration information.
In a first aspect, the embodiments of the invention provide a kind of method for determining two-node cluster hot backup configuration information, including:
The network equipment as management main equipment initiates link layer connectivity inspection to the network equipment as management slave unit Survey, and the result detected according to the link layer connectivity establishes backup peer itself body, and determine that the backup peer itself body includes The primary interface that can be backed up mutually and spare interface, wherein, the management main equipment and the management slave unit is can Two network equipments backed up mutually;
The primary interface and the information notice of spare interface that the management main equipment includes the backup peer itself body The management slave unit.
In the first possible implementation of the first aspect, described the step of initiating link layer connectivity detection Including:
The outer layer VLAN for the interface that the management main equipment is connected according to itself with the lower floor network equipment matches somebody with somebody confidence Breath actively initiates the link layer connectivity detection.
In second of possible implementation of the first aspect, described the step of initiating link layer connectivity detection Including:
When the management main equipment receives the non-unicast access message of VLAN, if the VLAN is not yet The backup peer itself body is established, then initiates the link layer connectivity detection.
Based on the possible implementation of the first of the first aspect or the first aspect or the first aspect Second of possible implementation, in the third possible implementation of the first aspect, methods described also includes:
The management main equipment is according to predetermined time interval, periodically for the backup peer itself body having built up The link layer connectivity detection is initiated, when it is determined that the backup peer itself body failure having built up, the then backup for failing The interface of peer-to-peer initiates the link layer connectivity detection again, and the interface for the backup peer itself body of the failure is established newly Backup peer itself body, wherein, backup peer itself body failure refers to that the result of the detection of connectivity is the backup peer itself body Including primary interface and spare interface between do not connect.
Based on the possible implementation of the first of the first aspect or the first aspect or the first aspect Second of possible implementation, in the 4th kind of possible implementation of the first aspect, determine the backup peer itself The step of primary interface that can be backed up mutually and spare interface that body includes, includes:
In the local attribute of the interface of the management main equipment in the backup peer itself body, the backup peer itself body One in the rate-matched of interface, uplink downlink flow equalization degree, address pool equilibrium degree or VLAN equal number degree The primary interface that can be backed up mutually and spare interface that item or the multinomial determination backup peer itself body include, wherein, described Ground attribute is used for primary interface or the spare interface being pre-configured with backup peer itself body of certain specified interface where it.
Second aspect, the embodiments of the invention provide a kind of device for determining two-node cluster hot backup configuration information, its feature exists In described device is arranged in the network equipment as management main equipment, and described device includes:
Detection of connectivity unit, for initiating link layer connectivity detection to the network equipment as management slave unit, its In, the management main equipment and the management slave unit are two network equipments that can be backed up mutually;
Backup peer itself body establishes unit, for what is detected according to the link layer connectivity of the detection of connectivity unit As a result establish backup peer itself body, and determine the primary interface that can be backed up mutually that the backup peer itself body includes and standby connect Mouthful;
Backup peer itself body information transmitting unit, for the backup peer itself body to be established to the backup peer itself of unit foundation The primary interface and the information of spare interface that body includes notify the management slave unit.
In the first possible implementation of the second aspect, the detection of connectivity unit includes static connect Property detection sub-unit, the outer layer VLAN of the interface for being connected according to the management main equipment with the lower floor network equipment matches somebody with somebody Confidence breath actively initiates the link layer connectivity detection.
In second of possible implementation of the second aspect, the detection of connectivity unit includes dynamic and connected Property detection sub-unit, for when the management main equipment receives the non-unicast access message of VLAN, if described virtual LAN not yet establishes the backup peer itself body, then initiates the link layer connectivity detection.
Based on the possible implementation of the first of the second aspect or the second aspect or the second aspect Second of possible implementation, in the third possible implementation of the second aspect, described device also includes:
Connective monitoring unit, for according to predetermined time interval, periodically for the backup having built up Peer-to-peer initiates the link layer connectivity detection, when it is determined that the backup peer itself body failure having built up, then be directed to failure The interface of backup peer itself body initiate link layer connectivity detection, and the interface of the backup peer itself body for the failure again New backup peer itself body is established, wherein, the backup peer itself body failure refers to that the result of the detection of connectivity is the backup Do not connected between primary interface and spare interface that peer-to-peer includes.
Based on the possible implementation of the first of the second aspect or the second aspect or the second aspect Second of possible implementation, in the 4th kind of possible implementation of the second aspect, the backup peer itself body is built Vertical unit includes:
Backup peer itself body determination subelement, for being detected according to the link layer connectivity of the detection of connectivity unit Result establish backup peer itself body;
Active and standby selection subelement, local attribute, the backup peer itself for the interface in the backup peer itself body Rate-matched, uplink downlink flow equalization degree, address pool equilibrium degree or the VLAN equal number degree of interface in body In the primary interface that can be backed up mutually that includes of one or more determinations backup peer itself body and spare interface, wherein, The local attribute is used for primary interface or the spare interface being pre-configured with backup peer itself body of certain specified interface where it.
As seen from the above technical solution provided by the invention, technical scheme provided in an embodiment of the present invention to determine The processing procedure of the two-node cluster hot backup configuration information has the advantages that configuration deployment and maintenance process are simple.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the processing procedure schematic diagram of the method for determination two-node cluster hot backup configuration information provided in an embodiment of the present invention;
Fig. 2 is the application environment structural representation of the embodiment of the present invention;
Fig. 3 is that the Application Example of the method for determination two-node cluster hot backup configuration information provided in an embodiment of the present invention treats Journey schematic diagram;
Fig. 4 is the structural representation one of the device of determination two-node cluster hot backup configuration information provided in an embodiment of the present invention;
Fig. 5 is the structural representation two of the device of determination two-node cluster hot backup configuration information provided in an embodiment of the present invention;
Fig. 6 is the structural representation of the network equipment provided in an embodiment of the present invention.
Embodiment
With reference to the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on this The embodiment of invention, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to protection scope of the present invention.
A kind of method for determining two-node cluster hot backup configuration information provided in an embodiment of the present invention, as shown in figure 1, specifically can be with Comprise the following steps:
Step 11, the network equipment as management main equipment initiates link layer company to the network equipment as management slave unit The general character detects;
Wherein, the corresponding network equipment can be, but not limited to include:BAS Broadband Access Server etc.;
The corresponding triggering mode for initiating detection of connectivity specifically can be, but not limited to include one or more of:
Mode one:Management main equipment actively initiates the chain according to the configuration of the outer layer VLAN of the interface of the network equipment Road layer connectivity detection;
Mode two:When management main equipment receives the non-unicast access message of VLAN, if the VLAN is still The backup peer itself body is not set up, then initiates the link layer connectivity detection;The non-unicast access message can be broadcast Message or multicast message, the broadcasting packet or multicast message are the network equipment in L 2 broadcast domain(Such as manage main equipment and pipe Manage slave unit)The message that can receive;
Wherein, in the foregoing description, management main equipment is that can be backed up mutually described according to predetermined mode accordingly Two network equipments in select determine a network equipment, and another network equipment be properly termed as manage slave unit;
For example, corresponding link layer connectivity detection process can include:Pass through LLDP(Link Layer Discovery Protocol, Link Layer Discovery Protocol)Message carries out detection of connectivity, or, by same two layers(I.e. Link layer)Broadcasting packet is sent in broadcast area and carries out detection of connectivity;To carry out detection of connectivity by the broadcasting packet Exemplified by, corresponding detection of connectivity process can include:Manage main equipment and send broadcasting packet(Such as the broadcast report of privately owned form Text), manage after slave unit receives the broadcasting packet and then notify the management main equipment(Included in notice and receive the broadcast report The mark of the interface of text, such as interface number), the management main equipment according to the notice that receives judge management main equipment with manage from Whether the interface between equipment connects, so that it is determined that the link layer connectivity feelings of interface of the management main equipment with managing slave unit Condition;
Step 12, the result detected according to the link layer connectivity establishes backup peer itself body, the backup peer itself body bag The interface that can be backed up mutually is included, i.e., primary interface and spare interface;
The processing step that the result detected according to the link layer connectivity establishes backup peer itself body can specifically include:Institute The notice that management main equipment is sent according to the management slave unit received is stated, if finding the A interfaces on management main equipment Above-mentioned broadcasting packet can be transmitted between the A ' interfaces in management slave unit, i.e., connects, then establishes between A interfaces and A ' interfaces Backup peer itself body comprising A interfaces and A ' interfaces.
Further, in this step, after managing main equipment and establishing the backup peer itself body, management main equipment can be with The local attribute of interface in the backup peer itself body, the rate-matched of interface in the backup peer itself body, up-downgoing One or more determinations backup pair in link flow equilibrium degree, address pool equilibrium degree or VLAN equal number degree Deng the primary interface and spare interface in body, wherein, the local attribute is used to be pre-configured with certain specified interface where it Primary interface in backup peer itself body, if for example, wish that certain interface is primary interface, can be by configure the sheet of the interface The mode of ground attribute represents that the interface is needed as the primary interface in backup peer itself body, i.e. matching somebody with somebody by the local attribute of interface Putting can be with the selection of the primary interface of manual intervention backup peer itself body;Or the local attribute people of the interface can also be passed through Work intervenes the selection of the spare interface in backup peer itself body, processing mode and the primary interface in manual intervention backup peer itself body Selection mode is similar, that is, the spare interface being pre-configured with backup peer itself body of certain specified interface where it;
Step 13, the primary interface and the letter of spare interface that the management main equipment includes the backup peer itself body Breath notifies the management slave unit;
Specifically, the information of the primary interface and spare interface can be, but not limited to include the active and standby of interface number and interface The information such as state.
Assuming that the backup peer itself body be connected on management main equipment the lower floor network equipment interface and management from setting Established between the interface of the standby upper connection lower floor network equipment, then after establishing two-node cluster hot backup configuration information through the above way, When the primary interface that working condition is in backup peer itself body breaks down, then can be set as the network where spare interface Business Stream is oriented to the spare interface in the backup peer itself body by standby notice lower floor's network equipment, and corresponding lower floor's network is set It is standby to can be, but not limited to include:Lower layer exchange device, such as interchanger;
Specifically, Business Stream is oriented to the backup pair as network equipment notice lower floor's network equipment where spare interface During Deng the spare interface in body, it can specifically be sent out by the downward layer network device of primary interface in backup peer itself body Send Gratuitous ARP(Gratuitous Address Resolution Protocol, free address resolution protocol)Report Text, to notify lower floor's network equipment that Business Stream is oriented to the spare interface in the interface backup peer-to-peer.
, can also be in described two network equipments in the embodiment of the present invention(Manage main equipment and management slave unit)Between Establish control connection, such as TCP(Transmission Control Protocol, transmission control protocol)Connection etc., and by building The vertical control is connected between the management main equipment and management slave unit and backs up what is connected under lower floor's network equipment Global information required for user access network, such as user profile;Can also be connected to by the control management main equipment and The information such as the local attribute of the interface are transmitted between management slave unit.Further, in order to ensure corresponding global information Need for reliable backup, Standby control company can also be established between the primary interface and spare interface that a backup peer itself body includes Connect, for the backup connection as the control connection established between described two network equipments, i.e., when the control of foundation connects The backup for carrying out global information can be connected when connecing failure by the Standby control, to improve the reliable of global information backup Property.
In the embodiment of the present invention, if a network equipment in two network equipments that can be backed up mutually can not be just Often work, then all on another network equipment in two network equipments that can be backed up mutually standby can be connect Mouth upgrades to primary interface, and notifies lower floor's network equipment to carry out the switching of service route.
By the embodiments of the present invention as can be seen that due to be in the embodiment of the present invention by network automatic technology come Realize automatic discovery and the pretection switch of protection link(The backup pair is established by the testing result of detection of connectivity technology Deng body, to carry out corresponding two-node cluster hot backup processing), and the process for establishing the backup peer itself body accordingly can be based on VLAN Attribute is realized automatically so that establishing the process of the backup peer itself body can be well adapted for having planned what arrangement was completed VLAN, the backup peer itself body of foundation required for being adapted to without artificial unified planning VLAN, and then also without because artificial The operation that layer switch configures under adjustment caused by unified planning VLAN.Therefore, the process of two-node cluster hot backup is realized accordingly The configuration order negligible amounts of middle needs and configuration operating process is simple, greatly reduce configuration and the complexity safeguarded, improve Maintenance efficiency.
The technical scheme provided in an embodiment of the present invention for realizing two-node cluster hot backup is further retouched below in conjunction with accompanying drawing State.
As illustrated in fig. 2, it is assumed that backup group includes network equipment A and network equipment B, the network equipment A and B can be respectively two There are two BAS on individual BRAS, network equipment A(Broadband inserting service, Broadband Access Service)Interface, it is respectively BAS interfaces 1 and BAS interfaces 2, BAS interfaces 1 connect lower floor network equipment C, and BAS interfaces 2 connect lower floor network equipment D;Network is set Standby B has two BAS interfaces, is BAS interfaces 3 and BAS interfaces 4 respectively, and BAS interfaces 3 connect lower floor network equipment C, BAS interfaces 4 Connect lower floor network equipment D.Standby system framework with reference to shown in Fig. 2, it is provided in an embodiment of the present invention to realize two-node cluster hot backup The specific implementation process of processing scheme is as shown in figure 3, BAS interface and network equipment B to be automatically performed in Configuration network device A On BAS interfaces between main and standby relation and corresponding pretection switch, specifically may comprise steps of:
Step 31, control connection is established, chooses management main equipment and management slave unit;
Specifically, can be in two peer of backup group(That is the network equipment)Between establish TCP connections, and according to priority Peer one of etc. policy selection is management main equipment, and another is management slave unit, and principal and subordinate's concept here simply manages Principal and subordinate in meaning, rather than the principal and subordinate of interface;
Corresponding backup group includes two network equipments that can be backed up mutually, i.e. two peer.In the present embodiment, it is false If specifying network equipment A, network equipment B is management slave unit for management main equipment.
Step 32, the VLAN attributes and local of BAS interfaces are configured(It is local)Attribute;
Specifically, the VLAN attributes of BAS interfaces and local attributes are used for as the foundation for establishing the backup peer itself body, Wherein, the VLAN attributes of BAS interfaces are used to be used for as the foundation for establishing the backup peer itself body, the local attributes of BAS interfaces Foundation as the primary interface and spare interface determined in the backup peer itself body.
For example, to BAS interfaces 1 and BAS interfaces 3 are added in backup peer itself body 1, by BAS interfaces 2 and BAS interfaces 4 It is added in backup peer itself body 2, and BAS1 is arranged to the main port in backup peer itself body 1, BAS4 is arranged to back up Main port in peer-to-peer 2, then the value of BAS interfaces 1 and the VLAN attributes of BAS interfaces 3 can be arranged to 1, by BAS interfaces The value of the VLAN attributes of 2 and BAS interfaces 4 is arranged to 2, and the value for configuring the local attributes of BAS interfaces 1 and BAS interfaces 4 is 1 (this In assume that the value of local attributes represents to be arranged to local for 1, represent to be not provided as local for 0), the He of configuration BAS interfaces 2 The value of the local attributes of BAS interfaces 3 is 0.
By the step VLAN accessed for local first can be needed to specify local attributes according to topological structure, to refer to Certain fixed interface can control lower layer switch to try one's best homonymy as the primary interface in backup peer itself body, based on the local attributes Access, i.e. the backup peer itself body for a pair of connections(That is the BAS for two network equipments that backup group includes interface)Between it is excellent The interface that first selection specifies the local attributes is primary interface, wearing between interchanger when reducing U-shaped networking More flow.
Step 33, manage main equipment and initiate detection of connectivity, to establish backup peer itself body;
In this step, backup peer itself body can be specifically established by way of static detection of connectivity, can also be passed through The mode of dynamic connectivity detection establishes backup peer itself body, will illustrate respectively below;
(1)The mode of static detection of connectivity establishes backup peer itself body
The management main equipment is according to the value of the VLAN attributes of the BAS interfaces configured in step 32 actively to management slave unit Initiate detection of connectivity(The detection of connectivity between interface is initiated only in same VLAN according to VLAN configurations), to detect phase Connectedness between the BAS interfaces for the management main equipment answered and the BAS interfaces of the management slave unit, and tied according to detection Fruit establishes backup peer itself body and notices management slave unit, and the backup peer itself body includes the interface that can be backed up mutually and VLAN letters Breath, such as can be " port(Interface)+ vlan " is right.For example, network equipment A initiates detection of connectivity to network equipment B, specifically It can be, but not limited to carry BAS interfaces 1 and VLAN1 information in connectivity testing message, obtain network equipment B response, Network equipment B BAS interfaces 3 are learnt also in VLAN1, so as to establish backup peer itself body 1, the backup peer itself body 1 includes BAS interfaces 1 and BAS interfaces 3.Afterwards, network equipment A initiates detection of connectivity to network equipment B again, in detection of connectivity report BAS interfaces 2 and VLAN2 information are carried in text, network equipment B response is obtained, learns that network equipment B BAS interfaces 4 also exist In VLAN2, so as to establish backup peer itself body 2, the backup peer itself body 2 includes BAS interfaces 2 and BAS interfaces 4.
Main equipment is managed always according to the local attributes of the interface in backup peer itself body, interface rate matching, uplink downlink The active and standby pass of one or more strategy generating backup peer itself bodies such as flow equalization degree, address pool equilibrium degree and VLAN equal number degree System(Determine corresponding primary interface and spare interface)And notice management slave unit.For example, when determining primary interface and standby , can be according to each BAS being configured with above-mentioned steps 32 when the strategy of interface is arranged to need to consider the local attributes of interface The local attributes of interface determine the main and standby relation of backup peer itself body.
Alternatively, it is also an option that one of backup peer itself body creates standby control company between master-slave equipment is managed Connect, using the backup link for the TCP connections established as step 31;
(2)The mode of dynamic connectivity detection establishes backup peer itself body
If BAS interfaces VLAN is configured(That is VLAN attributes)For anyother(The configuration of lower layer switch is not known even The order is then used, represents that any VLAN or QinQ can access), then need to establish by non-unicast access message Dynamic trigger Backup peer itself body, the non-unicast access message can be the access protocol association message of user, such as ARP messages or DHCP(Dynamically Host configuration, Dynamic Host Configuration Protocol)Message etc.;Establish backup peer itself accordingly The process of body can include:
When management main equipment receives certain VLAN non-unicast access message first, then judge whether the VLAN establishes backup Peer-to-peer, if the VLAN does not establish backup peer itself body also, initiate detection of connectivity and establish backup peer itself body, connect accordingly It can also be realized in general character detection process by coordinating with management slave unit detection messages, or, can also be by specially initiating Detection messages realize;Manage local attribute, interface rate of the main equipment always according to the VLAN on backup peer itself body physical interface One or more strategy generatings such as matching, uplink downlink flow equalization degree, address pool equilibrium degree and VLAN equal number degree are standby The main and standby relation of part peer-to-peer simultaneously notices management slave unit;
Further, when management slave unit receives certain VLAN non-unicast access message first, if the VLAN does not have also Backup peer itself body is established, then initiation connection general character detection on the interface of non-unicast access message is received at this, if detection As a result it is connection, then shows that corresponding detection of connectivity work can be completed by managing main equipment, and it is non-unicast can now to abandon this Access message;If detection of connectivity fails, the management slave unit does access to the VLAN and handles and notice management main equipment.
In addition, in the embodiment of the present invention, because topological structure and the VLAN configuration of network may change, thus it is described Institute can also be initiated according to predetermined time interval periodically for the backup peer itself body having built up by managing main equipment Link layer connectivity detection is stated, when it is determined that the backup peer itself body failure having built up, then be directed to the backup peer itself body to fail Interface initiate link layer connectivity detection again, and the interface for the backup peer itself body of the failure establishes new backup Peer-to-peer, wherein, the backup peer itself body failure refers to that the result backup peer itself body of the detection of connectivity includes Do not connected between primary interface and spare interface.I.e. described management main equipment can also periodically carry out detection of connectivity to adapt to The change in topology of lower floor's exchange network, when discovery backup peer itself body is invalid(As three detection cycles are invalid)Afterwards, to original backup pair The interface included Deng body starts new detection of connectivity process, after new connectedness is detected(Detect new interface with The orifice that the former backup peer itself body includes), then the interface message that original backup peer itself body includes is updated(It is i.e. primary Interface and spare interface information);Wherein, the change that the length of detection cycle can configure according to the topological structure and VLAN of network Interval time determines, for example, could be arranged to 60 seconds etc.).
Step 34, the backup peer itself body based on foundation carries out the selection and switching of corresponding primary interface and spare interface;
It is determined that after the primary interface and spare interface that the backup peer itself body includes, the primary interface and spare interface It can also be changed according to the triggering of event, i.e., former primary interface is likely to become spare interface, and spare interface may also become Into primary interface.Specifically, first, manage slave unit according to event triggering report etc. approach collect the machine Interface status and The traffic statistics of outside VLAN granularity are obtained by modes such as active period acquisitions, and are noticed to management main equipment;Afterwards, manage Main equipment can carry out active and standby selection according to each equipment state, Interface status, uplink downlink flow equalization degree, if having built up The primary interface that includes of backup peer itself body and spare interface change, then gratuitous ARP packet is sent by new primary interface Business Stream is oriented to the new primary interface by the lower layer switch of notice(I.e. former spare interface)Interface, with carry out primary interface and The switching of spare interface;It should be noted that whether because mass flow discrepancy weighs initiate to lead for the backup peer itself body reached the standard grade Dynamic active-standby switch can be specifically designed to can arrangement(Switch as mass flow discrepancy weighing apparatus degree exceedes predetermined value triggering, and predetermined value is big It is small configurable), it is defaulted as not switching, so as to prevent changes in flow rate from causing active and standby frequent switching repeatedly;
Further, when equipment detects opposite equip. DOWN(Failure)When, then by occurrence of equipment level active-standby switch, i.e., not All spare interfaces of the equipment of failure upgrade to primary interface, and send gratuitous ARP packet and notify lower floor's exchange interface will Business Stream is oriented to the spare interface in the equipment not failed;Afterwards, after faulty equipment recovers normal, both ends re-establish Connection, reselect management main equipment and management slave unit and establish corresponding backup peer itself body, synchronous user ID data and User profile etc., and standby usage interface is elected according to active and standby selection strategy, the primary interface for selecting to determine sends gratuitous ARP report Business Stream is oriented to the primary interface of the selection determination by the lower layer switch of text notice.
Found automatically according to the configuration of topological structure above-mentioned in the description of the embodiment of the present invention, an emphasis describes Protection link and the processing procedure for realizing active-standby switch, for the user data backup being related in handoff procedure and BRAS The back-up processing that issue etc. was distributed and route in location pond uses processing mode of the prior art, therefore does not illustrate.
The technical scheme provided by the embodiments of the present invention can be seen that the embodiment of the present invention have deployment it is simple, Backup policy and granularity selection are flexible, have the advantages that stronger adaptability to existing network.Moreover, carried using the embodiment of the present invention The technical scheme of confession realizes corresponding two-node cluster hot backup, can also greatly cut down network in the case where not increasing networking cost Operation cost.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access Memory, RAM)Deng.
The embodiment of the present invention additionally provides a kind of device for determining two-node cluster hot backup configuration information, and described device is arranged at work To manage in the network equipment of main equipment, as shown in figure 4, described device can specifically include with lower unit:
Detection of connectivity unit 41, for initiating link layer connectivity detection to the network equipment as management slave unit, Wherein, the management main equipment and the management slave unit are two network equipments that can be backed up mutually;
Backup peer itself body establishes unit 42, for being examined according to the link layer connectivity of the detection of connectivity unit 41 The result of survey establishes backup peer itself body, and determines the primary interface that can be backed up mutually that the backup peer itself body includes and standby Use interface;
Backup peer itself body information transmitting unit 43, for the backup peer itself body to be established into the backup that unit 42 establishes The primary interface and the information of spare interface that peer-to-peer includes notify the management slave unit.
Further, as shown in figure 5, the detection of connectivity unit 41 can include static detection of connectivity subelement 411, for the outer layer virtual local area network configuration information master for the interface being connected according to the management main equipment with the lower floor network equipment It is dynamic to initiate the link layer connectivity detection.
Alternatively, as shown in figure 5, the detection of connectivity unit 41 can also include dynamic connectivity detection sub-unit 412, for when it is described management main equipment receive the non-unicast access message of VLAN when, if the VLAN is not yet The backup peer itself body is established, then initiates the link layer connectivity detection.
As shown in figure 5, the device for determining two-node cluster hot backup configuration information provided in an embodiment of the present invention can also wrap Connective monitoring unit 44 is included, for according to predetermined time interval, periodically for the backup peer itself having built up Body initiates the link layer connectivity detection, when it is determined that the backup peer itself body failure having built up, then standby for what is failed The interface of part peer-to-peer initiates the link layer connectivity detection again, and the interface for the backup peer itself body of failure is established newly Backup peer itself body, wherein, the backup peer itself body failure refers to that the result of the detection of connectivity is the backup peer itself body bag Do not connected between the primary interface and spare interface that include.
In the device of the determination two-node cluster hot backup configuration information, as shown in figure 5, the backup peer itself body establishes unit 42 can specifically include backup peer itself body determination subelement 421 and active and standby selection subelement 422, wherein:
Backup peer itself body determination subelement 421, for the link layer connectivity according to the detection of connectivity unit The result of detection establishes backup peer itself body;
Active and standby selection subelement 422, for the sheet for the interface being connected according to the management main equipment with the lower floor network equipment In ground attribute, interface rate matching, uplink downlink flow equalization degree, address pool equilibrium degree or VLAN equal number degree The primary interface that can be backed up mutually that includes of one or more determinations backup peer itself body and spare interface, wherein, institute The primary interface that local attribute is used to be pre-configured with backup peer itself body of certain specified interface where it is stated, or, described Ground attribute can be used for the spare interface being pre-configured with backup peer itself body of certain specified interface where it.
Said apparatus provided in an embodiment of the present invention causes the processing procedure tool for determining the two-node cluster hot backup configuration information Have the advantages that configuration deployment is simple, backup policy and granularity selection are flexible, have stronger adaptability to existing network.But also can In the case where not increasing networking cost, greatly to cut down network operation cost.
It should be noted that the specific implementation for the function that each processing unit included in said apparatus is realized exists Have a detailed description in each embodiment above, therefore repeated no more herein.
Said apparatus provided in an embodiment of the present invention can be specifically arranged in the network equipment, in BAS equipment, in order to Above-mentioned processing function can be completed when the network equipment is as management primary device application.Specifically, the knot of the network equipment Structure is as shown in fig. 6, can include:Memory 61, transmitter 62 and receiver 63, and respectively with memory 61, transmitter 62 The processor 64 connected with receiver 63, and memory 61 is used to store batch processing code, processor 64, which is used to call, to be stored The program that device 61 stores performs following operation:
Link layer connectivity is initiated by transmitter 62 to the network equipment for being used as management slave unit to detect, according to receiver 63 information received determine the result of the link layer connectivity detection, are built according to the result that the link layer connectivity detects Vertical backup peer itself body, and determine the primary interface that can be backed up mutually and spare interface that the backup peer itself body includes;Also The primary interface and the information of spare interface for the backup peer itself body to be included notify institute by the transmitter 62 State management slave unit.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of unit, can be as needed and by above-mentioned function distribution by different function lists for example, in practical application Member is completed, i.e., the internal structure of device is divided into different functional units, to complete all or part of work(described above Energy.The device of foregoing description and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, herein Repeat no more.
In several embodiments provided herein, it should be understood that disclosed system and method, it can be passed through Its mode is realized.For example, system embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication link of unit Connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
The foregoing is only a preferred embodiment of the present invention, but protection scope of the present invention be not limited thereto, Any one skilled in the art is in the technical scope of present disclosure, the change or replacement that can readily occur in, It should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with the protection model of claims Enclose and be defined.

Claims (8)

  1. A kind of 1. method for determining two-node cluster hot backup configuration information, it is characterised in that including:
    The network equipment as management main equipment initiates link layer connectivity detection to the network equipment as management slave unit, and Backup peer itself body is established according to the result that the link layer connectivity detects, and determine that the backup peer itself body includes can be with The primary interface and spare interface backed up mutually, wherein, the management main equipment and the management slave unit is can be standby mutually Two network equipments of part;
    Described in the primary interface and the information notice of spare interface that the management main equipment includes the backup peer itself body Manage slave unit;
    Wherein it is determined that the step of primary interface that can be backed up mutually and spare interface that the backup peer itself body includes, includes:
    Interface in the local attribute of the interface of the management main equipment in the backup peer itself body, the backup peer itself body Rate-matched, uplink downlink flow equalization degree, one in address pool equilibrium degree or VLAN equal number degree or The primary interface that can be backed up mutually and spare interface that the multinomial determination backup peer itself body includes, wherein, the local category Property be used to be pre-configured with certain specified interface for the primary interface or spare interface in the backup peer itself body where it.
  2. 2. according to the method for claim 1, it is characterised in that the step of initiation link layer connectivity detects includes:
    The outer layer virtual local area network configuration information master for the interface that the management main equipment is connected according to itself with the lower floor network equipment It is dynamic to initiate the link layer connectivity detection.
  3. 3. according to the method for claim 1, it is characterised in that the step of initiation link layer connectivity detects includes:
    When the management main equipment receives the non-unicast access message of VLAN, if the VLAN is not yet established The backup peer itself body, then initiate the link layer connectivity detection.
  4. 4. according to the method described in claim 1,2 or 3, it is characterised in that methods described also includes:
    The management main equipment is initiated according to predetermined time interval periodically for the backup peer itself body having built up The link layer connectivity detection, when it is determined that the backup peer itself body failure having built up, then be directed to the backup peer itself to fail The interface of body initiates the link layer connectivity detection again, and the interface for the backup peer itself body of the failure establishes newly standby Part peer-to-peer, wherein, the backup peer itself body failure refers to that the result of the detection of connectivity includes for the backup peer itself body Primary interface and spare interface between do not connect.
  5. 5. a kind of device for determining two-node cluster hot backup configuration information, it is characterised in that described device is arranged to be set as management master In the standby network equipment, and described device includes:
    Detection of connectivity unit, for initiating link layer connectivity detection to the network equipment as management slave unit, wherein, institute It is two network equipments that can be backed up mutually to state management main equipment and the management slave unit;
    Backup peer itself body establishes unit, for the result detected according to the link layer connectivity of the detection of connectivity unit Establish backup peer itself body, and determine the primary interface that can be backed up mutually and spare interface that the backup peer itself body includes;
    Backup peer itself body information transmitting unit, for the backup peer itself body to be established to the backup peer itself body bag of unit foundation The primary interface and the information of spare interface included notifies the management slave unit;
    Wherein, the backup peer itself body, which establishes unit, includes:
    Backup peer itself body determination subelement, for the knot detected according to the link layer connectivity of the detection of connectivity unit Fruit establishes backup peer itself body;
    Active and standby selection subelement, in the local attribute, the backup peer itself body for the interface in the backup peer itself body The rate-matched of interface, uplink downlink flow equalization degree, in address pool equilibrium degree or VLAN equal number degree The primary interface that can be backed up mutually and spare interface that one or more determination backup peer itself bodies include, wherein, it is described Local attribute is used for primary interface or the spare interface being pre-configured with backup peer itself body of certain specified interface where it.
  6. 6. device according to claim 5, it is characterised in that the detection of connectivity unit includes static detection of connectivity Subelement, for the outer layer virtual local area network configuration information for the interface being connected according to the management main equipment with the lower floor network equipment Actively initiate the link layer connectivity detection.
  7. 7. device according to claim 5, it is characterised in that the detection of connectivity unit detects including dynamic connectivity Subelement, for when it is described management main equipment receive the non-unicast access message of VLAN when, if the VLAN The backup peer itself body is not yet established, then initiates the link layer connectivity detection.
  8. 8. according to the device described in claim 5,6 or 7, it is characterised in that described device also includes:
    Connective monitoring unit, for according to predetermined time interval, periodically for the backup peer itself having built up Body initiates the link layer connectivity detection, when it is determined that the backup peer itself body failure having built up, then standby for what is failed The interface of part peer-to-peer initiates the link layer connectivity detection again, and the interface for the backup peer itself body of the failure is established New backup peer itself body, wherein, the backup peer itself body failure refers to that the result of the detection of connectivity is the backup peer itself Do not connected between primary interface and spare interface that body includes.
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 CN104125079A (en) 2014-10-29
CN104125079B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790825B (en) * 2014-12-25 2020-08-14 中兴通讯股份有限公司 Method and device for hot backup of controller 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
CN108319679B (en) * 2018-01-30 2021-03-23 杭州迪普科技股份有限公司 Method and device for generating primary key
CN114070781B (en) * 2020-08-05 2023-08-08 北京威努特技术有限公司 Data communication method, device, system and computer equipment
CN114531722B (en) * 2022-03-01 2024-05-03 杭州老板电器股份有限公司 Networking method and device for equipment in local network and electronic equipment

Citations (3)

* 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
CN101695043A (en) * 2009-10-15 2010-04-14 中兴通讯股份有限公司 Method for multiplexing hot backup port and network system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009105690A (en) * 2007-10-24 2009-05-14 Alaxala Networks Corp Layer-2 redundancy protocol interconnection device

Patent Citations (3)

* 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
CN101695043A (en) * 2009-10-15 2010-04-14 中兴通讯股份有限公司 Method for multiplexing hot backup port and network system

Also Published As

Publication number Publication date
CN104125079A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN102035676B (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
EP3525405A1 (en) Packet sending method and network device
CN104025513B (en) Apparatus and method for the control level in data center network
CN105162704B (en) The method and device of multicast replication in Overlay network
CN104125079B (en) A kind of method and device for determining two-node cluster hot backup configuration information
CN108259215B (en) Equipment management method and device
JP5764820B2 (en) Transmission system and transmission system control method
CN105871674B (en) The guard method of ring protection link failure, equipment and system
CN101483571B (en) RRPP configuring method, system and device
CN106453124A (en) Traffic scheduling method and device
CN103119400B (en) For the method and apparatus of the state synchronized of serial data link session connected across IP network
CN101562576B (en) Route distribution method and equipment thereof
CN1812300B (en) Loop network connection control method, route exchanging equipment and loop network system
CN102780615A (en) Link backup method and routing forwarding device
CN104283790A (en) Topology discovery method and equipment of resilient packet ring (RPR) in SDN
CN101340377A (en) Method, apparatus and system for data transmission in double layer network
CA3031594A1 (en) Method for managing network nodes and communication control method thereof
CN101136838B (en) Bridge mode elastic grouping ring transannular bridge equipment redundancy protecting method
CN103414642A (en) Maintaining method and device of information forwarding
JP2014140095A (en) Communication system and network relay device
CN103685029B (en) Message forwarding method and equipment in a kind of rapid ring protection protocol networking
CN106533775A (en) Virtual member equipment and neighbor discovery method
US12034566B2 (en) Method and system to selectively flush filtering databases in a major ring of an ethernet ring protection switching network
CN103107942A (en) Tracking method and device of static route
CN110191051A (en) Layer 2 Multicast network convergence method, apparatus, equipment and storage medium

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