CN102932500A - Method and system for taking over fault interface node - Google Patents

Method and system for taking over fault interface node Download PDF

Info

Publication number
CN102932500A
CN102932500A CN2012104426625A CN201210442662A CN102932500A CN 102932500 A CN102932500 A CN 102932500A CN 2012104426625 A CN2012104426625 A CN 2012104426625A CN 201210442662 A CN201210442662 A CN 201210442662A CN 102932500 A CN102932500 A CN 102932500A
Authority
CN
China
Prior art keywords
interface node
address
virtual
fault
adapter
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.)
Pending
Application number
CN2012104426625A
Other languages
Chinese (zh)
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.)
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry 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 Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Co Ltd
Priority to CN2012104426625A priority Critical patent/CN102932500A/en
Publication of CN102932500A publication Critical patent/CN102932500A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Abstract

The invention discloses a method for taking over a fault interface node in a storage system. The method comprises the steps of S1: obtaining a virtual Internet protocol (IP) address of the fault interface node and a normal interface node; S2: finding out a taking-over interface node which takes over the fault interface node in the normal interface node according to a virtual IP address allocation strategy, and allocating the virtual IP address to the taking-over interface node; and S3: enabling the virtual IP address to take effect on the taking-over interface node according to an address resolution protocol (ARP) cheating method. Besides, the invention also discloses a system for taking over the fault interface node. The system comprises the fault interface node, the normal interface node, a fault interface node virtual IP address acquisition module, a normal interface node acquisition module, a virtual IP address allocation module and an ARP cheating module. By the aid of the method and the system for taking over the fault interface node, the fault interface node can be taken over smoothly.

Description

Fault interface node adapting method and system
Technical field
The present invention relates to network field basically, more specifically, relates to a kind of fault interface node adapting method and system.
Background technology
The quick speed of internet industry, the demand of large block file storage, mass file storage and the network storage grows with each passing day, and has promoted developing rapidly of cloud storage.The cloud storage can realize the efficient storage of high in the clouds mass data, how to guarantee the reliability of cloud storage system, has great significance for the high availability that guarantees the cloud storage.
The cloud storage system of current main-stream generally adopts static reliability safeguards technique---two-node cluster hot backup technology.The two-node cluster hot backup technology is a kind of high fault-tolerant application scheme of software and hardware combining, and this scheme is comprised of two-server system and an external shared disk array and corresponding two-node cluster hot backup software.Dual-machine hot backup system adopts " heartbeat " method to guarantee contacting of main system and back-up system.Double-machine standby technology is when main frame breaks down, and backup machine can not be realized level and smooth adapter, does not possess the ability of load balancing, parallel processing.
Summary of the invention
In order to overcome defects, the present invention proposes a kind of fault interface node adapting method and system, solved and how to have carried out better the technical problem that the fault interface node is taken over.
According to an aspect of the present invention, disclose a kind of fault interface node adapting method, having comprised: step S1: obtained the virtual ip address of described fault interface node and the physical address of normal interface node; And step S2: in described normal interface node, find be used to the adapter interface node of taking over described fault interface node according to the virtual ip address allocation strategy, described virtual ip address is distributed to described adapter interface node; And step S3: cheat mode so that described virtual ip address comes into force to described adapter interface node by ARP.
Preferably, described virtual ip address allocation strategy is the poll allocation strategy, and wherein, described adapter interface node is the normal interface node that circulation is arranged in order in the described normal interface node.
Preferably, described virtual ip address allocation strategy is the weight allocation strategy, and wherein, described adapter interface node is the highest normal interface node of predefined weight value in the described normal interface node.
Preferably, described virtual ip address allocation strategy is the Hash allocation strategy, and wherein, described adapter interface node is to carry out the resulting normal interface node of Hash calculation by described virtual ip address in the described normal interface node.
Preferably, described step S3 comprises: described virtual ip address is distributed to described adapter interface node, and described adapter interface node broadcast arp response packet, wherein, described arp reply bag is corresponding to the physical address of described virtual ip address and described adapter interface node.
According to a further aspect in the invention, a kind of fault interface node adapter system is provided, described system comprises fault interface node and normal interface node, wherein, described system also comprises: fault interface node virtual ip address acquisition module, for the virtual ip address that obtains described fault interface node; Normal interface node acquisition module is used for obtaining described normal interface node; The virtual ip address distribution module, be used for finding adapter interface node be used to the virtual ip address of taking over described fault interface node according to the virtual ip address allocation strategy at described normal interface node, and described virtual ip address is distributed to described adapter interface node; And ARP deception module, be used for by ARP deception mode so that described virtual ip address comes into force to described adapter interface node.
Preferably, described virtual ip address allocation strategy is the poll allocation strategy, and wherein, described adapter interface node is the normal interface node that circulation is arranged in order in the described normal interface node.
Preferably, described virtual ip address allocation strategy is the weight allocation strategy, and wherein, described adapter interface node is the highest normal interface node of predefined weight value in the described normal interface node.
Preferably, described virtual ip address allocation strategy is the Hash allocation strategy, and wherein, described adapter interface node is to carry out the resulting normal interface node of Hash calculation by described virtual ip address in the described normal interface node.
Preferably, described ARP deception module is further used for obtaining the virtual ip address allocation strategy, and obtain be used to the adapter interface node of taking over described fault interface virtual ip address according to described virtual ip address allocation strategy, and described virtual ip address is distributed to described adapter interface node, and described adapter interface node broadcast arp response packet, wherein, described arp reply bag is corresponding to the physical address of described virtual ip address and described adapter interface node.
By disclosed fault interface node adapting method of the present invention and system, can carry out more smoothly the fault interface node and take over.
Description of drawings
Accompanying drawing is used to provide a further understanding of the present invention, and consists of the part of specification, is used for together with embodiments of the present invention explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of a kind of fault interface node adapting method according to an aspect of the present invention;
Fig. 2 is the schematic diagram of a kind of fault interface node adapter system according to another aspect of the present invention;
Fig. 3 is the illustrative diagram according to fault interface node adapter system of the present invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, is not intended to limit the present invention.
Fig. 1 is the flow chart of a kind of fault interface node adapting method according to an aspect of the present invention.In Fig. 1:
Step S100: interface node (for example, server) is arranged when breaking down in system, obtain the virtual ip address of this fault interface node and the physical address of the normal interface node that do not break down.
Step S102: in a plurality of normal interface nodes, find adapter interface node for the taking over fault interface node according to the virtual ip address allocation strategy, virtual ip address is distributed to this adapter interface node.Wherein, the virtual ip address allocation strategy is used for finding one or more as the adapter interface node at a plurality of normal interface nodes, thereby the virtual ip address of fault interface node is distributed to this adapter interface node.
Specifically, the virtual ip address allocation strategy includes but not limited to poll allocation strategy, weight allocation strategy and Hash allocation strategy.
In the poll allocation strategy, storage system selects the normal interface node as taking over interface node successively in order.For example, the virtual IP address sequential loop is assigned on each normal interface node.This poll allocation strategy can be used as the virtual IP address allocation strategy of storage system acquiescence.
In the weight allocation strategy, taking over interface node is the highest normal interface node of predefined weight value in the normal interface node.For example, can be in advance with a plurality of interface nodes according to certain strategy value of assigning weight (such as the stronger interface node weighted value of performance higher etc.).When certain interface node breaks down, can in normal interface node, select the highest interface node of this predefined weight value as taking over interface node.
In the Hash allocation strategy, taking over interface node is to carry out the resulting normal interface node of Hash calculation by virtual ip address in the normal interface node.Wherein, this Hash calculation strategy is predefined, and the virtual ip address of the interface node that breaks down that passes through to obtain can calculate with which or which normal interface node and take over this fault interface node.
Step S104: cheat mode so that virtual ip address butt tube interface node comes into force by ARP, thereby so that this adapter interface node can smoothly be taken over this fault interface node, keep the normal operation of system.This step further comprises: virtual ip address is distributed to the adapter interface node, and take over interface node broadcast arp response packet, wherein, the arp reply bag is corresponding to the physical address of virtual ip address and adapter interface node.
ARP is address resolution protocol, is a kind of agreement that the IP address spaces is become physical address.Secondary IP address is to the dual mode that is mapped with of physical address: forms mode and non-forms mode.ARP is exactly the MAC Address that network layer address is resolved to datalink layer connection particularly.The ARP principle: certain machine A will send message to host B, can inquire about local arp cache table, find MAC Address corresponding to the IP address of B after, will carry out transfer of data.If do not find, then A broadcasts an ARP request message (carrying IP address Ia and the physical address Pa of host A), and IP address requesting is that the host B of Ib is answered physical address Pb.Online All hosts comprises that B receives the ARP request, but only has the IP address of host B identification oneself, so beam back an arp response message to the A main frame, wherein just includes the MAC Address of B.After A receives replying of B, will upgrade local arp cache, then use this MAC Address to send data (by the additional MAC Address of network interface card).Therefore, this ARP table of local cache is the basis of local network circulation, and this buffer memory is dynamic.The ARP agreement has more than having sent ARP request and just receives arp reply.When computer receives the arp reply packet, will upgrade the arp cache of this locality, the IP in replying and MAC Address are stored in the arp cache.Therefore, certain machine B in local area network (LAN) sends an arp reply of oneself forging to A, if and this to reply be that B pretends to be C to forge, be that the IP address is the IP of C, and MAC Address is forged, and then after A receives the arp reply of B forgery, will upgrade local arp cache, do not become in the IP address of A C like this, and its MAC Address be not original that.Because the circulation of the network of local area network (LAN) is not to carry out according to the IP address, but transmits according to MAC Address.So the MAC Address that puppet is created is changed to a non-existent MAC Address at A, will cause like this network obstructed, cause A not lead to C by Ping.A simple ARP deception that Here it is.In order to realize taking over based on the IP of ARP deception, when interface node has been reallocated new virtual IP address, need to broadcast immediately an arp reply bag, and send frequently at short notice the arp reply bag, reach the level and smooth effect of taking over of virtual IP address.
Preferably, this fault interface node adapting method can be applied to storage system.
By the described fault interface node of the present embodiment adapting method, can be so that the interface node that does not break down be taken over the interface node that breaks down smoothly, thereby so that storage system can be tackled fault, normal operation.
Fig. 2 is the schematic diagram of a kind of fault interface node adapter system 100 according to another aspect of the present invention.Fault interface node adapter system 100 comprises virtual ip address acquisition module 102, physical address acquisition module 104, virtual ip address distribution module 106 and ARP deception module 108.Wherein, virtual ip address acquisition module 102 is used for obtaining the virtual ip address of fault interface node.Physical address acquisition module 104 is used for obtaining the physical address of normal interface node.Virtual ip address distribution module 106 is used for finding adapter interface node for the taking over fault interface node according to the virtual ip address allocation strategy at the normal interface node, and virtual ip address is distributed to the adapter interface node.ARP deception module 108 is used for by ARP deception mode so that virtual ip address butt tube interface node comes into force.
Wherein, the virtual ip address allocation strategy is used for finding one or more as the adapter interface node at a plurality of normal interface nodes, thereby the virtual ip address of fault interface node is distributed to this adapter interface node.
Specifically, the virtual ip address allocation strategy includes but not limited to poll allocation strategy, weight allocation strategy and Hash allocation strategy.
In the poll allocation strategy, storage system selects the normal interface node as taking over interface node successively in order.For example, the virtual IP address sequential loop is assigned on each normal interface node.This poll allocation strategy can be used as the virtual IP address allocation strategy of storage system acquiescence.
In the weight allocation strategy, taking over interface node is the highest normal interface node of predefined weight value in the normal interface node.For example, can be in advance with a plurality of interface nodes according to certain strategy value of assigning weight (such as the stronger interface node weighted value of performance higher etc.).When certain interface node breaks down, can in normal interface node, select the highest interface node of this predefined weight value as taking over interface node.
In the Hash allocation strategy, taking over interface node is to carry out the resulting normal interface node of Hash calculation by virtual ip address in the normal interface node.Wherein, this Hash calculation strategy is predefined, and the virtual ip address of the interface node that breaks down that passes through to obtain can calculate with which or which normal interface node and take over this fault interface node.
In a preferred embodiment, ARP deception module 108 is further used for obtaining the virtual ip address allocation strategy, and obtain physical address for the adapter interface node of taking over fault interface IP address according to the virtual ip address allocation strategy, and virtual ip address is distributed to the adapter interface node, and take over interface node broadcast arp response packet, wherein, the arp reply bag is corresponding to the physical address of virtual ip address and adapter interface node.
Preferably, this fault interface node adapter system can be applied to storage system.
By the described fault interface node of the present embodiment adapter system, can be so that the interface node that does not break down be taken over the interface node that breaks down smoothly, thereby so that storage system can be tackled fault, normal operation.
Fig. 3 is the illustrative diagram according to fault interface node adapter system of the present invention.
As shown in Figure 3, formed by parallel file system and a plurality of interface node, interface node operation parallel file system client and storage system Agent, and as the accessing points of storing, the a series of virtual IP addresses of whole storage system configuration, to each interface node, client just can be connected to interface node by virtual IP address and carry out storage operation with these virtual IP address mean allocation.The parallel file system client has guaranteed the storage data's consistency of total interface node.The storage system Agent is used for realizing the functions such as distribution of virtual IP address.After an interface node breaks down inefficacy, storage system can be transferred to the virtual IP address on this interface node other interface nodes good for use and take over, if the client rectifies by the virtual IP address connection storage system of inefficacy interface node and is undertaken, client can not feel that interface node breaks down, can normally use, reach the level and smooth adapter of virtual IP address.Wherein, two aspects below the Gao Keyong of memory access access node needs guarantee: first, the parallel file system client: the total interface node all moves the client of same parallel file system, the reading and writing data of client all carries out in same parallel file system, has guaranteed the storage data's consistency.Second, storage system Agent: after an interface node lost efficacy, the Agent of storage system and this interface node is out of touch, storage system is assigned to the virtual IP address of this interface node on other healthy interface nodes immediately, and the interface node that then is assigned with uses the method for ARP deception to reach the level and smooth effect of taking over of virtual IP address.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a fault interface node adapting method is characterized in that, comprising:
Step S1: the virtual ip address and the normal interface node that obtain described fault interface node; And
Step S2: in described normal interface node, find be used to the adapter interface node of taking over described fault interface node according to the virtual ip address allocation strategy, described virtual ip address is distributed to described adapter interface node; And
Step S3: cheat mode so that described virtual ip address comes into force to described adapter interface node by ARP.
2. fault interface node adapting method according to claim 1 is characterized in that, described virtual ip address allocation strategy is the poll allocation strategy, and wherein, described adapter interface node is the normal interface node that circulation is arranged in order in the described normal interface node.
3. fault interface node adapting method according to claim 1, it is characterized in that, described virtual ip address allocation strategy is the weight allocation strategy, and wherein, described adapter interface node is the highest normal interface node of predefined weight value in the described normal interface node.
4. fault interface node adapting method according to claim 1, it is characterized in that, described virtual ip address allocation strategy is the Hash allocation strategy, wherein, described adapter interface node is to carry out the resulting normal interface node of Hash calculation by described virtual ip address in the described normal interface node.
5. fault interface node adapting method according to claim 1 is characterized in that, described step S3 comprises:
Described virtual ip address is distributed to described adapter interface node, and described adapter interface node broadcast arp response packet, wherein, described arp reply bag is corresponding to the physical address of described virtual ip address and described adapter interface node.
6. fault interface node adapter system, described system comprises fault interface node and normal interface node, it is characterized in that, described system also comprises:
Fault interface node virtual ip address acquisition module is for the virtual ip address that obtains described fault interface node;
Normal interface node acquisition module is used for obtaining described normal interface node;
The virtual ip address distribution module is used for finding be used to the adapter interface node of taking over described fault interface node at described normal interface node according to the virtual ip address allocation strategy, and described virtual ip address is distributed to described adapter interface node; And
ARP cheats module, is used for by ARP deception mode so that described virtual ip address comes into force to described adapter interface node.
7. fault interface node adapter system according to claim 6 is characterized in that, described virtual ip address allocation strategy is the poll allocation strategy, and wherein, described adapter interface node is the normal interface node that circulation is arranged in order in the described normal interface node.
8. fault interface node adapter system according to claim 6, it is characterized in that, described virtual ip address allocation strategy is the weight allocation strategy, and wherein, described adapter interface node is the highest normal interface node of predefined weight value in the described normal interface node.
9. fault interface node adapter system according to claim 6, it is characterized in that, described virtual ip address allocation strategy is the Hash allocation strategy, wherein, described adapter interface node is to carry out the resulting normal interface node of Hash calculation by described virtual ip address in the described normal interface node.
10. fault interface node adapter system according to claim 6, it is characterized in that, described ARP deception module is further used for obtaining the virtual ip address allocation strategy, and obtain be used to the adapter interface node of taking over described fault interface virtual ip address according to described virtual ip address allocation strategy, and described virtual ip address is distributed to described adapter interface node, and described adapter interface node broadcast arp response packet, wherein, described arp reply bag is corresponding to the physical address of described virtual ip address and described adapter interface node.
CN2012104426625A 2012-11-07 2012-11-07 Method and system for taking over fault interface node Pending CN102932500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104426625A CN102932500A (en) 2012-11-07 2012-11-07 Method and system for taking over fault interface node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104426625A CN102932500A (en) 2012-11-07 2012-11-07 Method and system for taking over fault interface node

Publications (1)

Publication Number Publication Date
CN102932500A true CN102932500A (en) 2013-02-13

Family

ID=47647196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104426625A Pending CN102932500A (en) 2012-11-07 2012-11-07 Method and system for taking over fault interface node

Country Status (1)

Country Link
CN (1) CN102932500A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032830A (en) * 2018-07-25 2018-12-18 广东浪潮大数据研究有限公司 A kind of fault recovery method of distributed memory system, system and associated component
CN110932925A (en) * 2019-10-31 2020-03-27 苏州浪潮智能科技有限公司 Method and system for testing stability of server BMC (baseboard management controller) network
CN111147615A (en) * 2019-12-12 2020-05-12 加弘科技咨询(上海)有限公司 Method and system for taking over IP address, computer readable storage medium and server
CN111404980A (en) * 2019-09-29 2020-07-10 杭州海康威视系统技术有限公司 Data storage method and object storage system
CN112087336A (en) * 2020-09-11 2020-12-15 杭州海康威视系统技术有限公司 Deployment and management method and device of virtual IP service system and electronic equipment
WO2023065294A1 (en) * 2021-10-22 2023-04-27 Telefonaktiebolaget Lm Ericsson (Publ) Moveable ip based network resilience

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1531262A (en) * 2003-03-11 2004-09-22 ��Ϊ�������޹�˾ Network communication method for carrying out load division
US20050144316A1 (en) * 2003-12-06 2005-06-30 William Loo Method and system for service node redundancy
CN101237315A (en) * 2008-02-28 2008-08-06 浪潮电子信息产业股份有限公司 A synchronous detection and failure separation method for dual control high-availability system
CN101483673A (en) * 2009-02-20 2009-07-15 杭州华三通信技术有限公司 Implementation method and system for heat backup at different sites

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1531262A (en) * 2003-03-11 2004-09-22 ��Ϊ�������޹�˾ Network communication method for carrying out load division
US20050144316A1 (en) * 2003-12-06 2005-06-30 William Loo Method and system for service node redundancy
CN101237315A (en) * 2008-02-28 2008-08-06 浪潮电子信息产业股份有限公司 A synchronous detection and failure separation method for dual control high-availability system
CN101483673A (en) * 2009-02-20 2009-07-15 杭州华三通信技术有限公司 Implementation method and system for heat backup at different sites

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032830A (en) * 2018-07-25 2018-12-18 广东浪潮大数据研究有限公司 A kind of fault recovery method of distributed memory system, system and associated component
CN111404980A (en) * 2019-09-29 2020-07-10 杭州海康威视系统技术有限公司 Data storage method and object storage system
CN110932925A (en) * 2019-10-31 2020-03-27 苏州浪潮智能科技有限公司 Method and system for testing stability of server BMC (baseboard management controller) network
CN111147615A (en) * 2019-12-12 2020-05-12 加弘科技咨询(上海)有限公司 Method and system for taking over IP address, computer readable storage medium and server
CN112087336A (en) * 2020-09-11 2020-12-15 杭州海康威视系统技术有限公司 Deployment and management method and device of virtual IP service system and electronic equipment
WO2023065294A1 (en) * 2021-10-22 2023-04-27 Telefonaktiebolaget Lm Ericsson (Publ) Moveable ip based network resilience

Similar Documents

Publication Publication Date Title
WO2021179493A1 (en) Microservice-based load balancing method, apparatus and device, and storage medium
CN102404390B (en) Intelligent dynamic load balancing method for high-speed real-time database
CN102932500A (en) Method and system for taking over fault interface node
CN106210147B (en) Load balancing method and device based on polling
WO2017114017A1 (en) Computer device, system and method for implementing load balancing
US20130007253A1 (en) Method, system and corresponding device for load balancing
TWI381682B (en) Intelligent load balancing and failover of network traffic
CN105099793B (en) Hot spare method, apparatus and system
CN102025630A (en) Load balancing method and load balancing system
WO2015096681A1 (en) Method and device for processing service access
US9584481B2 (en) Host providing system and communication control method
CN101247349A (en) Network flux fast distribution method
CN106559263A (en) A kind of improved distributed consensus algorithm
JP6341914B2 (en) System and method for supporting high availability (HA) network communication in a middleware machine environment
US8478891B1 (en) Employing socket ranges to ascertain layer 2 addresses
CN101447989A (en) System and method for an improved high availability component implementation
CN104468869B (en) For the method for terminal distribution IP address, the method and device of acquisition IP address
CN106304396B (en) Method, system and related device for discovering wireless controller by access point
CN106953943B (en) Method and device suitable for switch communication
US20210297366A1 (en) Resource distribution method and apparatus in internet of things, device, and storage medium
CN111131445B (en) DHCP cluster scheduling method and DHCP cluster system
CN108881506A (en) A kind of domain name analytic method and device based on more available partition AZ
CN103795581A (en) Address processing method and address processing device
Hines et al. Distributed anemone: Transparent low-latency access to remote memory
CN105847143B (en) Load balancing method and system based on VRRP

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130213