CN103036702B - A kind of N+1 backup method of cross-network segment and device - Google Patents

A kind of N+1 backup method of cross-network segment and device Download PDF

Info

Publication number
CN103036702B
CN103036702B CN201210098041.XA CN201210098041A CN103036702B CN 103036702 B CN103036702 B CN 103036702B CN 201210098041 A CN201210098041 A CN 201210098041A CN 103036702 B CN103036702 B CN 103036702B
Authority
CN
China
Prior art keywords
address
floating
standby server
server
reach
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
CN201210098041.XA
Other languages
Chinese (zh)
Other versions
CN103036702A (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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201210098041.XA priority Critical patent/CN103036702B/en
Publication of CN103036702A publication Critical patent/CN103036702A/en
Application granted granted Critical
Publication of CN103036702B publication Critical patent/CN103036702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of N+1 backup method and device of cross-network segment, be applied on gateway device, the network at this gateway device place comprises N number of primary server and standby server, wherein said primary server is all configured with heart hop IP address and the floating IP address of business service is provided, the method comprises: for the purpose of N number of floating IP address, address sends probe messages to standby server, if receive the response message of floating IP address, determine that this floating IP address can reach, the static routing that the floating IP address that can reach is corresponding is set to effectively, and to issue described state by dynamic routing protocol in network be effective static routing, otherwise be judged as unreachable and corresponding static routing is set to invalid.The present invention effectively can solve the problem that prior art cannot realize cross-network segment N+1 backup.

Description

A kind of N+1 backup method of cross-network segment and device
Technical field
The present invention relates to assist server and carry out service backup technology, particularly relate to backup method and the device of a kind of N+1.
Background technology
Along with the development supervisory control system scale of monitoring trade is increasing, the reliability requirement of user to monitoring server is more and more higher, at present to back mechanism mainly dual-host backup or the N+1 backup of server (as VM server).
A dual-host backup i.e. main frame (i.e. primary server) and a standby host (i.e. standby server) is all placed in same machine room, shares a floating IP address and externally provides service server.It should be noted that floating IP address and dynamic IP addressing are two different concepts.Floating IP address both can be fixed configurations also can be dynamic assignment.When main frame is normal, floating IP address is on main frame, and main frame externally provides monitoring business service.After hostdown or network interruption, it is abnormal that standby host is checked through main frame, and standby host switches to operating state, and floating IP address is switched on standby host, and standby host externally provides monitoring business service (this is also the origin of floating IP address definition).But the defect of this method to be cost compare high, because each server needs a standby server.
Another backup method is N+1 backup, i.e. the combination of N number of main frame and a standby host, and N number of main frame uses N number of floating IP address externally to provide service respectively, and after wherein main frame is abnormal, standby host uses the floating IP address of this main frame externally to provide service.But, please refer to the subway networking diagram along the line shown in Fig. 1, because use same floating IP address, so primary VM must with VM for subsequent use at same double layer network, existing server N+1 backup scenario limits all servers all at a double layer network.If server is in strange land, intermediate demand is across three-layer network, and existing N+1 scheme cannot use.
Summary of the invention
In view of this, the invention provides a kind of N+1 backup method of cross-network segment, the method is applied on the gateway device of standby server, the network at this gateway device place comprises N number of (N is not less than 2) primary server and at least one standby server, wherein said primary server is all configured with for setting up the IP address that heartbeat is connected and the floating IP address externally providing business service with standby server, wherein the floating IP address of each primary server belongs to the different network segments, and the method comprises:
A, received the IP address of N number of gateway sub-interface at the same network segment corresponding to N number of floating IP address respectively by configuration interface;
B, receive N number of static routing corresponding to respectively floating IP address by configuration interface; C, when define floating IP address enable by standby server time, static routing corresponding for the floating IP address be activated is set to effectively, and in network, to issue described state by dynamic routing protocol be effective static routing.
The present invention also provides a kind of N+1 back-up device of cross-network segment, this application of installation is on the gateway device of standby server, the network at this gateway device place comprises N number of (N is not less than 2) primary server and at least one standby server, wherein said primary server is all configured with for setting up the IP address that heartbeat is connected and the floating IP address externally providing business service with standby server, wherein the floating IP address of each primary server belongs to the different network segments, and correspond to different gateway ip address respectively, it is characterized in that, this device comprises: configuration management element, detecting unit and routing processing unit, wherein
Configuration management element, for receiving the IP address of N number of gateway sub-interface at the same network segment corresponding to N number of floating IP address respectively by configuration interface; This configuration management element is further used for receiving N number of static routing corresponding respectively with floating IP address by configuration interface;
Detecting unit, for when define floating IP address enable by standby server time, static routing corresponding for the floating IP address be activated be set to effectively and notify routing processing unit;
Routing processing unit is effective static routing for issuing described state when floating IP address can reach by dynamic routing protocol in network.
In the present invention, pre-configured the gateway IP corresponding with the floating IP address of each primary server and static routing on the gateway of standby server, gateway device is released by the static routing of the floating IP address can enabled by standby server in time the detection of standby server, the service of this floating IP address can not be interrupted, in addition arrange respectively for the IP address of heartbeat detection and service IP address, effectively overcome in prior art that standby server and primary server must in the restrictions of same double layer network, user is made not need to consider the restriction in geographical position completely when carrying out N+1 deployment, standby server can be arranged on the network segment different from primary server completely, for large-scale network application, flexibility improves greatly, effectively improve the range of application of N+1 back mechanism.
Accompanying drawing explanation
Fig. 1 is that one typically needs cross-network segment to carry out server N+1 backup network environment.
Fig. 2 is the logic networking diagram that server N+1 of the present invention backs up.
Fig. 3 is gateway device hardware structure diagram of the present invention.
Fig. 4 is the building-block of logic of N+1 back-up device of the present invention.
Embodiment
Describe the present invention below in conjunction with accompanying drawing.Please refer to Fig. 1 and Fig. 2, the networking structure illustrating a kind of subway monitor network shown in Fig. 1, if need to implement N+1 back mechanism under such application scenarios, be then difficult to the problem avoiding needing to solve cross-network segment.The present invention is that primary server introduces two IP addresses, and the detection mechanism by gateway device solves the problems referred to above.Please refer to the networking logic diagram that the present invention shown in Fig. 2 solves the problem.Primary server (VM_MAIN1 and VM_MAIN2) is provided with an own IP address (IP1_1 and IP2_1), this own IP address is used for setting up heartbeat with other servers, and gateway ip address corresponding to these two IP addresses is then respectively IP1_0 and IP2_0.Heartbeat mentioned here is a logical concept, not refers in particular to line physically, and refers to connection in logic, can be understood as the connection of carrying heartbeat message.Primary server (VM_MAIN1 and VM_MAIN2) comprises a floating IP address (IP11_1 and IP22_1) all further, and the floating IP address of VM is mainly used in externally providing business service, such as monitoring business service.VM is the core node in monitor network, and itself and other node mainly carries out Signalling exchange, guides the transmission in a network of whole monitor data business and storage.
In Fig. 2, each server (comprising standby server) utilizes gateway device access network, and in preferably execution mode, this gateway device is router or three-tier switch.Due to the introducing of floating IP address, the gateway device that each primary server is corresponding also needs configure respectively and floating IP address gateway ip address (IP11_0 and IP22-0) one to one.
Please refer to Fig. 3 and Fig. 4, Figure 3 shows that a kind of general hardware structure figure of gateway device of the present invention, wherein CPU is responsible for the affairs of the control planes such as process procotol usually, such as route learning, route issue and router-level topology etc.; And the forwarding of forwarding chip (as asic chip) primary responsibility deal with data message (also referred to as service message); Certainly, if gateway device is a traditional router, it may not need forwarding chip, and the forwarding of service message can perform computer program to realize by CPU.Fig. 4 be the present invention adopt computer program to realize execution mode under the N+1 back-up device building-block of logic of cross-network segment, this device comprises routing processing unit, configuration management element and detecting unit.It should be noted that, the present invention is not limited to computer program and realizes, but no matter which kind of implementation, and its logical construction can abstractly be all the structure shown in Fig. 4.The concrete handling process of the present invention in better embodiment is below described.
Step 101, received the IP address of N number of gateway sub-interface at the same network segment corresponding to N number of floating IP address respectively by configuration interface, wherein each floating IP address belongs to the different network segments.
Step 102, receives N number of static routing corresponding respectively with floating IP address by configuration interface.Step 101 and step 102 are performed by configuration management element.
When initial, each server all can obtain heart hop IP address by the mode such as manual configuration or DHCP usually.Furthermore, for primary server and its gateway device, each primary server configuration floating IP address (each floating IP address can belong to the different network segments), each gateway device can also configure the gateway sub-interface IP address corresponding with floating IP address and the static routing corresponding with floating IP address by the mode of manual configuration (can certainly be the configuration mode based on some privately owned/total agreements).Time initial, the static routing on the gateway device of primary server is in effective status, and the static routing on the gateway device of standby server is in disarmed state, because standby server does not also need externally to provide service.
The gateway of standby server needs configure the gateway sub-interface IP address identical with the gateway device of primary server.When standby server enables the floating IP address of primary server, this floating IP address has corresponding gateway sub-interface can provide gateway service for it.The same static routing needing configuration corresponding with each floating IP address on the gateway device of standby server.The gateway sub-interface IP address corresponding with floating IP address that the gateway device of that is each primary server configures and the static routing corresponding with floating IP address all need there is identical configuration on the gateway of standby server, so that after standby server uses the floating IP address of any one primary server, the gateway configuration of standby server can meet the requirement of its access network.In specific implementation, the gateway device of each server can be consistent in the configuration of gateway sub-interface IP address configuration and static routing, because the concept of primary server and a standby server role, may change mutually at any time, so it is a kind of common execution mode that gateway device configures identical.Same reason, standby server can configure N number of floating IP address (but can not being used time initial) in initial, even if certainly initially do not carry out such configuration, standby server also can be connected by heartbeat knows described N number of floating IP address with each primary server interaction, standby server mainly will be allowed can to know the floating IP address of each primary server to take over the service of primary server at any time, and specific design details can with reference to prior art.
Step 103, when define floating IP address enable by standby server time, static routing corresponding for the floating IP address be activated is set to effectively, and in network, to issue described state by dynamic routing protocol be effective static routing.Whether the determination Floating IP address of this step is activated and is performed by detecting unit, and route issue work is performed by routing processing unit.
Whether Floating IP address is enabled by standby server, and a variety of mode can be had to be realized.Such as, send probe messages to floating IP address and look at whether can receive response, or whether detection floating IP address outwards sends service message, or whether detection has the destination address of service message to be this floating IP address, or can the mode such as notice of receiving management equipment, can also be some self-defining means certainly to determine floating IP address whether enable by standby server.Below to send probe messages, in preferably execution mode, can respectively for the purpose of N number of floating IP address address to standby server direction send probe messages, if receive the response message of certain floating IP address, determine this floating IP address can reach and enable by described standby server, otherwise be judged as unreachable and the static routing of correspondence is set to invalid, if all floating IP address are all unreachable, return, if there is floating IP address to reach, the state of the static routing that the floating IP address that then can reach is corresponding is set to effectively, and to issue described state by dynamic routing protocol in network be effective static routing.The detection operations detecting unit of this step performs, and route issue work is performed by routing processing unit.
After various configuration effort completes, the gateway device of standby server needs Periodic probe standby server whether to take over the floating IP address (being equivalent to take over corresponding business service) of one or more primary server.When each primary server is all normal, standby server can not be taken over any floating IP address and externally provide service, therefore the gateway of standby server according to result of detection, static routing corresponding for each floating IP address can be set to invalid.Once the business service on certain primary server is unavailable, standby server will enable this primary server floating IP address according to the agreement that heartbeat runs externally provides business service.Although standby server can adapter business as early as possible, but other equipment in network also do not know how message is correctly transmitted to standby server, because other equipment in network also do not know the floating IP address of primary server " removal of home ", therefore gateway device needs to detect standby server as early as possible and whether enables floating IP address, if, then need to notify that routing processing unit externally issues the new static routing of floating IP address, the issue of static routing can be sent in network by routing protocol packet, other equipment can be known how to forward the packet on floating IP address.
Therefore, gateway device needs to coordinate standby server to assist it to complete the work externally providing business service in time, therefore gateway is first by sending probe messages (as Ping message) to standby server, in a preferred embodiment, in a detect cycle, preferably two probe messages are no less than to guarantee the accuracy detected to each floating IP address transmission.If backup server does not respond any message, so illustrate that standby server does not enable any floating IP address, namely all primary servers are all in normal operating conditions.Once receive the back message of standby server, can learn it is which floating IP address has been activated by the source IP address of message, now correspondingly notify that routing processing unit goes to issue the static routing corresponding with this floating IP address.Certain back message may from multiple floating IP address, and so routing processing unit can issue static routing respectively.Please refer to Fig. 2, when supposing that the service of VM_Main1 is unavailable, VM-BAK enables the floating IP address (IP11_1) of VM_Main1, under the cooperation of self gateway device proactive dissemination static routing mechanism, successfully externally provide business service with IP11_1 name, main frame in network can find IP11_1 very soon, and host subscriber can't experience any difference in service layer.
In the present invention, pre-configured the gateway IP corresponding with the floating IP address of each primary server and static routing on the gateway of standby server, the static routing of gateway device to the floating IP address that standby server can be enabled by the perception of standby server in time releases, the service of this floating IP address can not be interrupted, in addition heartbeat and service IP address are arranged respectively, effectively overcome in prior art that standby server and primary server must in the restrictions of same double layer network, user is made not need to consider the restriction in geographical position completely when carrying out N+1 deployment, standby server can be arranged on the network segment different from primary server completely, for large-scale network application, flexibility improves greatly, effectively improve the range of application of N+1 back mechanism.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (8)

1. the N+1 backup method of a cross-network segment, it is characterized in that, the method is applied on the gateway device of standby server, the network at this gateway device place comprises N number of primary server and a standby server, wherein, N is not less than 2, described primary server is all configured with for setting up the IP address that heartbeat is connected and the floating IP address externally providing business service with standby server, wherein the floating IP address of each primary server belongs to the different network segments, and the method comprises:
A, receive the IP address with N number of floating IP address corresponding N number of gateway sub-interface at the same network segment respectively by configuration interface;
B, receive N number of static routing corresponding to respectively floating IP address by configuration interface;
C, when define floating IP address enable by standby server time, static routing corresponding for the floating IP address be activated is set to effectively, and is effective static routing by dynamic routing protocol to issued state in network.
2. the method for claim 1, it is characterized in that, described in step C define floating IP address enable by standby server and specifically comprise: for the purpose of N number of floating IP address, address sends probe messages to standby server respectively, if receive the response message of certain floating IP address, determine this floating IP address can reach and enable by described standby server, otherwise be judged as unreachable and the static routing of correspondence is set to invalid, if there is floating IP address to reach, then the state of the static routing that the floating IP address that can reach is corresponding is set to effectively.
3. method as claimed in claim 2, it is characterized in that, whether the described N number of floating IP address of the detection described in step C can reach and be specially: whether the N number of floating IP address of detecting periodically can reach.
4. method as claimed in claim 2, it is characterized in that, the probe messages described in step C is Ping message, and the Ping message that each cycle sends is no less than 2.
5. the N+1 back-up device of a cross-network segment, it is characterized in that, this application of installation is on the gateway device of standby server, the network at this gateway device place comprises N number of primary server and a standby server, wherein, N is not less than 2, described primary server is all configured with for setting up the IP address that heartbeat is connected and the floating IP address externally providing business service with standby server, wherein the floating IP address of each primary server belongs to the different network segments, and correspond to different gateway ip address respectively, it is characterized in that, this device comprises: configuration management element, detecting unit and routing processing unit, wherein
Configuration management element, for receiving the IP address with N number of floating IP address corresponding N number of gateway sub-interface at the same network segment respectively by configuration interface; This configuration management element is further used for receiving N number of static routing corresponding respectively with floating IP address by configuration interface;
Detecting unit, for when define floating IP address enable by standby server time, static routing corresponding for the floating IP address be activated be set to effectively and notify routing processing unit;
Routing processing unit, for being effective static routing by dynamic routing protocol to issued state in network when floating IP address can reach.
6. device as claimed in claim 5, it is characterized in that: described define floating IP address enable by standby server and specifically comprise: for the purpose of N number of floating IP address, address sends probe messages to standby server respectively, if receive the response message of certain floating IP address, determine this floating IP address can reach and enable by described standby server, otherwise be judged as unreachable and the static routing of correspondence is set to invalid, if there is floating IP address to reach, then the state of the static routing that the floating IP address that can reach is corresponding is set to effectively;
Described routing processing unit, it is invalid to be further used for static routing corresponding for this floating IP address being set to when floating IP address is unreachable.
7. device as claimed in claim 6, it is characterized in that, whether the described N number of floating IP address of described detection can reach and be specially: whether the N number of floating IP address of detecting periodically can reach.
8. device as claimed in claim 6, it is characterized in that, described probe messages is Ping message, and the Ping message that each cycle sends is no less than 2.
CN201210098041.XA 2012-04-01 2012-04-01 A kind of N+1 backup method of cross-network segment and device Active CN103036702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210098041.XA CN103036702B (en) 2012-04-01 2012-04-01 A kind of N+1 backup method of cross-network segment and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210098041.XA CN103036702B (en) 2012-04-01 2012-04-01 A kind of N+1 backup method of cross-network segment and device

Publications (2)

Publication Number Publication Date
CN103036702A CN103036702A (en) 2013-04-10
CN103036702B true CN103036702B (en) 2016-04-13

Family

ID=48023216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210098041.XA Active CN103036702B (en) 2012-04-01 2012-04-01 A kind of N+1 backup method of cross-network segment and device

Country Status (1)

Country Link
CN (1) CN103036702B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3879778A4 (en) * 2018-11-16 2021-12-29 Wangsu Science & Technology Co., Ltd. Static route deployment method, device and system

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660441A (en) * 2013-11-25 2015-05-27 北京信威通信技术股份有限公司 Method, device and system for achieving high reliability of server
CN105872120A (en) * 2015-12-14 2016-08-17 乐视云计算有限公司 Public network IP processing method and device
CN105657708B (en) * 2016-01-25 2019-08-13 广州视睿电子科技有限公司 The connection method of mobile terminal and server-side and device
CN107613023B (en) * 2017-10-24 2021-10-26 西安万像电子科技有限公司 Equipment connection method and device
CN109451552B (en) * 2018-11-21 2022-03-15 上海事凡物联网科技有限公司 Data transmission method, equipment, terminal and storage medium based on hybrid routing networking
CN111405216B (en) * 2019-10-25 2022-06-28 杭州海康威视系统技术有限公司 Configuration method, device and equipment and storage medium
CN114363117B (en) * 2021-12-13 2023-11-28 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) Heterogeneous interconnection method and system for wireless subnetworks

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364927A (en) * 2008-09-24 2009-02-11 华为技术有限公司 Method, apparatus and system realizing fault recovery of virtual private network
CN101873223A (en) * 2010-05-27 2010-10-27 天讯瑞达通信技术有限公司 N+M service backup mechanism based on IP switching
CN102281158A (en) * 2011-08-23 2011-12-14 大唐移动通信设备有限公司 Line fault processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2677713A4 (en) * 2011-05-31 2014-04-09 Huawei Tech Co Ltd Method, device and system for realizing disaster-tolerant backup

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364927A (en) * 2008-09-24 2009-02-11 华为技术有限公司 Method, apparatus and system realizing fault recovery of virtual private network
CN101873223A (en) * 2010-05-27 2010-10-27 天讯瑞达通信技术有限公司 N+M service backup mechanism based on IP switching
CN102281158A (en) * 2011-08-23 2011-12-14 大唐移动通信设备有限公司 Line fault processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3879778A4 (en) * 2018-11-16 2021-12-29 Wangsu Science & Technology Co., Ltd. Static route deployment method, device and system

Also Published As

Publication number Publication date
CN103036702A (en) 2013-04-10

Similar Documents

Publication Publication Date Title
CN103036702B (en) A kind of N+1 backup method of cross-network segment and device
CN102710457B (en) A kind of N+1 backup method of cross-network segment and device
KR100617344B1 (en) Reliable fault resolution in a cluster
CN104168193B (en) A kind of method and routing device of Virtual Router Redundancy Protocol fault detect
CN100454875C (en) Method and system for realizing dual attachment or multiple attachment of user network boundary device
CN103036701B (en) The N+1 alternative mean of a kind of cross-network segment and device
US10454809B2 (en) Automatic network topology detection for merging two isolated networks
US20070081535A1 (en) Method and system for implementing virtual router redundacy protocol on a resilient packet ring
CN102904818A (en) Method and device for updating ARP (Address Resolution Protocol) information table
CN102164091A (en) Method for building MAC (Media Access Control) address table and provider edge device
CN101841408A (en) Primary/standby route equipment switching method and route equipment
CN105024855A (en) Distributed cluster management system and method
CN101304346B (en) Method and apparatus for monitoring link
CN101860492A (en) Quick switching method, device and system
CN110572275A (en) Network card switching method and device, server and computer readable storage medium
CN105472049B (en) CGN backup protection method and device for carrier-grade network address conversion
CN103607317A (en) Two-layer loop detection method, two-layer loop detection device and communication system
US7813341B2 (en) Overhead reduction for multi-link networking environments
CN102710520B (en) Method and device for backing up lonworks network service (LNS)
CN102647304A (en) Synchronizing method of address resolution protocols and device
CN101197733A (en) Automatic detection method and device for network connectivity
JP2015211374A (en) Information processing system, control method for information processing system, and control program for management device
CN103581025A (en) Method and system for processing routing information and equipment
CN104579729B (en) The notification method and device of CGN single board default
WO2011110134A2 (en) Method, device and broadband access server system for load share

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant