CN101170544A - A communication method in high-availability cluster system based on single practical IP address - Google Patents
A communication method in high-availability cluster system based on single practical IP address Download PDFInfo
- Publication number
- CN101170544A CN101170544A CNA200610117523XA CN200610117523A CN101170544A CN 101170544 A CN101170544 A CN 101170544A CN A200610117523X A CNA200610117523X A CN A200610117523XA CN 200610117523 A CN200610117523 A CN 200610117523A CN 101170544 A CN101170544 A CN 101170544A
- Authority
- CN
- China
- Prior art keywords
- address
- router
- cluster system
- visit
- working machine
- 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
Links
- 230000006854 communication Effects 0.000 title claims abstract description 23
- 238000004891 communication Methods 0.000 title claims abstract description 21
- 238000000034 method Methods 0.000 title abstract description 10
- 238000007726 management method Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the communication method of a high availability cluster system adopting mono-virtual IP address. The invention mainly solves the technical problem that the virtual IP address access of the high availability cluster is limited when the high availability cluster system adopts the communication method of the mono-virtual IP address. The method comprises the following steps: (a): cluster system is established; a working machine and a standby engine form the inner sub-network through a router; cluster is established in the sub-network; the router is connected with the outer network, and the router outer IP address is designated as the client-side IP address; all cluster nodes in the sub-network are connected with the outer network through the router; furthermore, all node IP addresses of the outer network are the outer IP addresses of the router; (b): when the outer client side or the outer router accesses the high availability cluster system, the port transmitting function of the router is utilized to transmit the access data to the cluster IP address and hence the access of the outer client side is acquired; (c); when the cluster accesses outwards, the working machine transmits the data message to the internal IP address of the router through the IP address of the computer, and the data message is transmitted to the outer network through the router.
Description
Technical field:
The present invention relates to the means of communication of high available clustered computer system, relate in particular to the means of communication of the single real IP of high-availability cluster system based employing address.
Background technology:
Along with fast development of information technology, computer system is widely used in aspect of social life.Meanwhile, the dependence for computer system has also produced great risk.Some inside and outside reasons all can cause destruction, the loss of data of system, and make it that service can not externally be provided again.Therefore, the availability of raising system is very important.
The high availability clusters system utilization framework of trooping forms unified resource with common object computer task with many computers or node networking together.System externally is single reflection, internally has only a node to bear current task, and when working node breaks down with planned shut-down, secondary node will be taken over current task, become working node, to keep the normal operation of system application and resource.
High available trooping utilizes the IP address of trooping that external service is provided, and this IP is bundled on the network interface card of working machine.External entity (client) is obtained service by the access burst pool ip address.Outside access request is accepted by working machine, and working machine returns to external entity with packet by the virtual ip address on the network interface card after finishing current request.When height is available when trooping the external entity (external server) of initiatively visiting local network, because local ip address has priority, working machine adopts local real IP address to carry out external reference.
When working machine (A machine) fault or shutdown, an other standby host (B machine) will be converted to working machine, and the IP address of trooping is simultaneously also shifted thereupon and is tied on work at present machine (B machine) network interface card.At this moment, external entity still can be obtained the service of trooping by the IP address of trooping, but the IP address of externally initiatively visiting of trooping becomes the real IP of work at present machine (B machine) address by the real IP of former working machine (A machine) address.
High-availability cluster system basedly generally visited by external client as Service Source, Chang Yong method is to utilize the IP address (virtual IP address) of trooping on the network to realize the visit of client to Cluster Server the most.In many cases, require high-availability cluster system based employing single IP address visit external server or system.For example, based on the industries process control system of high-availability cluster system based framework the active of enterprise-level database system is visited.When the consideration of these external systems based on safety and framework, when only allowing single IP address to insert, the real IP address visit of high availability clusters is restricted.
Applied for about trooping and the patent of high-availability system mainly comprises three aspect themes: 1, the framework of cluster system, configuration management, application, software algorithm itself and troop and the application facet of high-availability system.2, the framework of high-availability system and configuration mode.3, troop and the application of high-availability system.
Wherein aspect one is meant, for a certain purposes that realizes trooping to the framework mode of aspects such as cluster system and cluster node, resource, load balancing management, the control and management of trooping, configuring management method, the description of software implementation algorithm etc.Main patent has CN97115437.6, CN02808612.0, CN02804758.3, CN02816646.9, CN97121527.8, CN00802642.4, CN200410084187.4, CN200410077878.1, CN200410068696.8 etc.
Aspect two mainly refers to the framework mode, configuration mode of high-availability system and relevant agreement thereof, building method, error-detecting method etc.Main patent has CN200310113622.7, CN200310117036.X, CN200310118384.9, CN200410090158.9, CN200510012192.9, CN200510043171.3.
Aspect three mainly refers to for realizing that certain function framework and configuration are trooped and the method for high-availability system.Main patent has CN99811945.8, CN03112402.X, CN200510012192.9, CN02154520.0.The patent that relates to the high availability clusters communication has, CN02147870.8, CN01823073.3, CN00802642.4 etc.
Wherein, patent CN02147870.8-is based on the high-availability system of TCP bind image, provided to utilize the basic skills of setting up high availability clusters and external resource by the troop basic principle of virtual IP address visit high availability clusters of ICP/IP protocol utilization.Its internal communication gateway is bundled on the master server, finishes external communication process by master server.This invention is to have proposed a kind of software architectural method, by the use realization cluster functionality of each software module.Clearly do not provide a kind of concrete realization high availability clusters is initiatively visited external server or system as client scheme.
What patent CN01823073.3 provided is the access mode of a kind of external equipment to set of clusters.The problem that its emphasis will solve is outside to residing in the visit of the inner group of trooping, and comprises the relevant issues such as qualification to access rights.The practical value of this invention is to manage to residing in the visit of the group on the clustered computer system.This invention does not specifically provide the scheme that a kind of high availability clusters system initiatively visits external server or system yet.
Summary of the invention:
The objective of the invention is to: on the existing ripe high available framework technology of trooping, software or scheme basis (as windows 2003 Cluster Administrators), realize the communication of itself and external server or system.Particularly externally server or system only allow this unique real IP of employing address of trooping that it is carried out the active visit, propose a kind of simple high availability clusters communication scheme, this scheme can realize that cluster system is as the visit of the unique constant IP of customer end adopted address to external server or system.
Technical scheme of the present invention is: the means of communication of the single real IP of a kind of high-availability cluster system based employing address may further comprise the steps:
A, framework cluster system: working machine and standby host form internal subnet by router, framework is trooped in subnet, router is connected in the external network and the Designated Router outside ip address is a client ip address, each cluster node in the subnet all inserts external network by router, and look each node IP address at outer net and be the router outside ip address, when working machine takes place to shift, the change of real IP address can not influence the change of router outside ip address, has therefore guaranteed the uniqueness of client-access IP address.
B, visit this when high-availability cluster system based, utilize the port forwarding function of router, visit data is forwarded on the IP address of trooping, realize the visit of external client when external client or external server.Described port is transmitted, and the entire packet that is about to designated port is forwarded on the IP address of internal subnet.
C, when trooping externally visit, working machine is sent to router interior IP address by this machine IP address with data message, is forwarded to outer net by router.
The invention has the beneficial effects as follows, a kind of simple high availability clusters communication scheme is provided, this scheme can realize that cluster system is as the visit of the unique constant IP of customer end adopted address to external server or system.Trooping in the prior art, front-end processor can realize similar function in the framework, but front-end processor generally only is used for the load-balancing function that high-performance is trooped.Troop in that height is available, the present invention has saved the framework of front-end server, and particularly in mini-system (as Dual-Computer Hot-Standby System) greatly reduces the framework cost.
Description of drawings:
Data packet addressed structure when Fig. 1 initiatively connects external server or system for cluster system of the present invention.
Data packet addressed structure when Fig. 2 troops for external client of the present invention connects.
Fig. 3 is the cluster system structure connection layout of one embodiment of the invention.
Embodiment:
With reference to Fig. 1, when trooping externally visit, the communication program that moves on the master server utilizes the real IP of master server working machine network interface card address that data message is sent to router interior IP address, be forwarded to outer net by router, the data message of router sends from the router outside ip address as long as flow through, promptly increased the outside ip address information of router, promptly for external server or system, the data message of visiting them derives from the external IP of router address.Even working machine is changed to other backup servers, external system is thought that still their data message of visit derives from the router outside ip address.After data message is received by external server or system, message is successively unpacked, reply data is recycled to router, be distributed to the real IP of Intranet working machine address by router again.
With reference to Fig. 2, when external server or system initiatively visit when trooping, accessed IP address is the router outside ip address, and access port is set, as FTP access port 21, and http access port 80, and ports of other visit appointments etc.The tcp data bag that utilizes router will point to this port all is forwarded on the IP address of trooping of subnet, and the IP address is sent to working machine by trooping.When working machine shifts, the IP address of trooping will be transferred on the backup server, be transferred to backup server with the communication channel of this IP address designated communication thereupon, reach the purpose that communication kept before and after working machine switched.
With high-availability cluster system based structure is example, and structure connects as shown in Figure 3.In this structure, server is a work at present machine A machine, and other servers are standby host B machine and C machine.Have only master server operation working procedure, other servers are in " awaiting orders " state.Troop and adopt the Share Nothing structure that is connected to disk array to carry out the critical data visit, only working machine has access rights to the disk array cabinet, and other standby servers are to its inaccessible.If current server A machine breaks down, can automatically switch a backup server B machine or C machine of the Cluster Administrator of system is working machine, takes over the disk array access rights simultaneously, the troop name and the IP address of trooping, and guarantees the continuity of work.
In this example, the real IP of working machine A machine address 3. is forwarded to external server by router by connecting by connecting 1. to router, and 4. external server by connecting the loopback message to router, by router by connecting 2. the real IP of A machine address to the subnet.When the A machine breaks down, working machine shifts and is the B machine, task is transferred to the B machine, the external server of required connection is initiated by the B machine, pass through to connect 9. to router from the real IP of B machine address, 3. be forwarded to external server by router by connecting, 4. the loopback message is to router by connecting for external server, and 10. router is forwarded to the real IP of B machine address by connecting.
When the external client visit is trooped, 7. client sends connection request to router by connecting, router is according to the port numbers of visit, specify this packet to be forwarded on the subnet inner groups pool ip address, promptly 6. data are sent on the IP address of trooping by connecting, troop the IP address binding this moment on working machine A network interface card, working machine A to data request make respective handling, 5. send corresponding message to router by connecting, 8. router by connecting transfer data packets to client.When working machine shifts in trooping, take over the A machine as the B machine and become working machine, the IP address of trooping will be transferred on the network interface card of new working machine B, 6. 7. the packet that this moment, client sent still can be sent on the IP address of trooping with being connected by connecting, but owing to troop the IP address binding on B machine network interface card, the B machine will be arranged to request response, and still utilize the IP address of trooping by connecting 5. and being connected 8. the echo back data bag to client.
Working machine shifts once more in if troop, as being transferred to the C machine from the B machine, and will be by connection
Be connected
The connection that replaces the B machine 9. be connected 10., simultaneously owing to the IP address of trooping is transferred on the network interface card of new working machine C machine, 6. 7. client-access still be sent to packet on the IP address of trooping with being connected by connecting, and 8. 5. response data packet be recycled to external client with being connected by connecting after the C machine disposed.
Claims (4)
1. the means of communication of the single real IP of a high-availability cluster system based employing address is characterized in that may further comprise the steps:
A, framework cluster system: working machine and standby host form internal subnet by router, framework is trooped in subnet, router is connected in the external network and the Designated Router outside ip address is a client ip address, each cluster node in the subnet all inserts external network by router, and looks each node IP address at outer net and be the router outside ip address;
B, visit this when high-availability cluster system based, utilize the port forwarding function of router, visit data is forwarded on the IP address of trooping, realize the visit of external client when external client or external server;
C, when trooping externally visit, working machine is sent to router interior IP address by this machine IP address with data message, is forwarded to outer net by router.
2. the means of communication of the single real IP of a kind of high-availability cluster system based employing according to claim 1 address is characterized in that standby host can be exchanged into working machine,
A, visit this when high-availability cluster system based when external client or external server, the IP address of trooping will be transferred on the backup server, be transferred on the standby host that is converted to working machine with the communication channel of this IP address designated communication thereupon;
B, when trooping externally visit, at this moment externally router interior IP address is still adopted in visit, after data message is received by external server or system, message is successively unpacked, reply data is recycled to router, is distributed to the real IP of the standby host address that is converted to working machine by router again.
3. the means of communication of the single real IP of a kind of high-availability cluster system based employing according to claim 1 address, it is characterized in that when the framework cluster system, working machine and standby host also are connected with disk array, be used for the critical data visit, and have only working machine to have access rights.
4. the means of communication of the single real IP of a kind of high-availability cluster system based employing according to claim 1 address is characterized in that, port described in the step b is transmitted, and are that the entire packet with designated port is forwarded on the IP address of internal subnet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200610117523XA CN101170544A (en) | 2006-10-25 | 2006-10-25 | A communication method in high-availability cluster system based on single practical IP address |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200610117523XA CN101170544A (en) | 2006-10-25 | 2006-10-25 | A communication method in high-availability cluster system based on single practical IP address |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101170544A true CN101170544A (en) | 2008-04-30 |
Family
ID=39391010
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA200610117523XA Pending CN101170544A (en) | 2006-10-25 | 2006-10-25 | A communication method in high-availability cluster system based on single practical IP address |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101170544A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103208142A (en) * | 2013-03-14 | 2013-07-17 | 牟宗清 | Intelligent access control system and signal projector |
CN107770298A (en) * | 2017-09-30 | 2018-03-06 | 华为技术有限公司 | The method and apparatus for transmitting data |
CN108446163A (en) * | 2018-02-28 | 2018-08-24 | 山东乾云启创信息科技股份有限公司 | The realization method and system of dhcp-server High Availabitities based on openstack |
-
2006
- 2006-10-25 CN CNA200610117523XA patent/CN101170544A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103208142A (en) * | 2013-03-14 | 2013-07-17 | 牟宗清 | Intelligent access control system and signal projector |
CN103208142B (en) * | 2013-03-14 | 2016-04-20 | 牟宗清 | Hotel's intelligent access control system |
CN107770298A (en) * | 2017-09-30 | 2018-03-06 | 华为技术有限公司 | The method and apparatus for transmitting data |
CN107770298B (en) * | 2017-09-30 | 2020-07-28 | 华为技术有限公司 | Method and device for transmitting data |
CN108446163A (en) * | 2018-02-28 | 2018-08-24 | 山东乾云启创信息科技股份有限公司 | The realization method and system of dhcp-server High Availabitities based on openstack |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11706102B2 (en) | Dynamically deployable self configuring distributed network management system | |
US11068362B2 (en) | High-availability cluster architecture and protocol | |
US6397260B1 (en) | Automatic load sharing for network routers | |
US8549120B2 (en) | System and method for location based address assignment in the distribution of traffic in a virtual gateway | |
US7733795B2 (en) | Virtual network testing and deployment using network stack instances and containers | |
US9659075B2 (en) | Providing high availability in an active/active appliance cluster | |
US6763479B1 (en) | High availability networking with alternate pathing failover | |
US8160070B2 (en) | Fibre channel proxy | |
US9621419B2 (en) | Determining when to switch to a standby intelligent adjunct network device | |
CN105024855A (en) | Distributed cluster management system and method | |
EP1290824A2 (en) | High availability networking with virtual ip address failover | |
JPH1127320A (en) | Packet relay control method, packet repeater and program storage medium | |
US20120117246A1 (en) | Method And System For The Efficient And Automated Management of Virtual Networks | |
CN104753697A (en) | Method, equipment and system for controlling provisioning of network equipment | |
CA2691266C (en) | Methods and devices for communicating diagnostic data in a real time communication network | |
EP2939401B1 (en) | Method for guaranteeing service continuity in a telecommunication network and system thereof | |
CN104717081A (en) | Gateway function realization method and device | |
US10693753B2 (en) | Network device snapshots | |
CN101827039B (en) | Method and equipment for load sharing | |
US10771402B2 (en) | Link aggregated fibre channel over ethernet system | |
CN113014611B (en) | Load balancing method and related equipment | |
CN109743197A (en) | A kind of firewall deployment system and method based on priority configuration | |
CN116458132A (en) | Method and system for providing time critical services by means of a process control environment | |
CN101534255A (en) | A method and device for realizing oriented processing of certain request | |
CN101170544A (en) | A communication method in high-availability cluster system based on single practical IP address |
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 |
Open date: 20080430 |