CN104717314A - IP management method and system, client-side and server - Google Patents

IP management method and system, client-side and server Download PDF

Info

Publication number
CN104717314A
CN104717314A CN201310695074.7A CN201310695074A CN104717314A CN 104717314 A CN104717314 A CN 104717314A CN 201310695074 A CN201310695074 A CN 201310695074A CN 104717314 A CN104717314 A CN 104717314A
Authority
CN
China
Prior art keywords
server
address
mapping table
cos
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310695074.7A
Other languages
Chinese (zh)
Other versions
CN104717314B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310695074.7A priority Critical patent/CN104717314B/en
Priority to TW103144126A priority patent/TWI536789B/en
Priority to PCT/CN2015/072652 priority patent/WO2015090243A1/en
Priority to US15/175,563 priority patent/US9590947B2/en
Publication of CN104717314A publication Critical patent/CN104717314A/en
Application granted granted Critical
Publication of CN104717314B publication Critical patent/CN104717314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4541Directories for service discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4535Network directories; Name-to-address mapping using an address exchange platform which sets up a session between two nodes, e.g. rendezvous servers, session initiation protocols [SIP] registrars or H.323 gatekeepers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides an IP management method and system, a client-side and a server. The IP management method comprises the steps that the client-side looks up a first corresponding relation table and determines the IP address of a server corresponding to the type of service needed to be accessed by the client-side if the client-side needs to access the service, wherein the first corresponding relation table and a second corresponding relation table are kept synchronous, the first corresponding relation table displays the corresponding relation of the IP addresses and service types of servers in service clusters stored on the client-side, the second corresponding relation table displays the corresponding relation of the IP addresses and service types of servers in service clusters stored by the server; the client-side sends an access request to the server corresponding to the IP address of a determined server, wherein the access request includes the type of the service needed to be accessed by the client-side; the client-side receives access data fed back by the server, corresponding to the type of the service needed to be accessed by the client-side. The IP management cost is effectively reduced, and the reliability of the system is improved.

Description

A kind of IP management method and system, client, server
Technical field
The present invention relates to communication technical field, particularly relate to the agreement (InternetProtocol, the abbreviation: IP) management method and system, client, server that interconnect between a kind of network.
Background technology
In prior art, server needs at proxy server or domain name system (Domain NameSystem, be abbreviated as: DNS) server is registered, proxy server or dns server will preserve IP address and the available COS of this server of this server that this server sends, and the IP address to other servers that proxy server or dns server can be unified and available COS manage.
At present, if client needs the service using certain type, need first to send the request of IP address lookup to proxy server or dns server, the COS that this client-requested uses is comprised in this IP address lookup request, proxy server or dns server are searched and be can be the IP address that this client provides the server of this COS in the IP address of preservation and the corresponding relation of COS, the IP address of the server determined is sent to this client, make this client can utilize this IP address access services device, obtain the service wanted.
In prior art, when client needs to use service, the request of IP address lookup must be sent to proxy server or dns server, determine the IP address of the server that respective service can be provided, but, there is mistake in proxy server or dns server, all cannot be connected to causing all clients accurately and can provide the server of service for it, or, if the IP address of proxy server or dns server changes, client needs the IP address upgrading proxy server or the dns server preserved, to IP, there is strong dependency, the maintenance cost of client is higher, therefore, existing IP way to manage cost is high, and reliability is low.
Summary of the invention.
Embodiments provide a kind of IP management method and system, client, server, for providing the IP address of the server of service to manage, the cost of IP management can be effectively reduced, improving the reliability of system.
The invention provides a kind of IP management method, comprising:
If client needs access services, described client searches the first mapping table, determine the IP address of the server that described client needs the COS of access corresponding, described first mapping table and the second mapping table keep synchronous, described first mapping table is the corresponding relation in the service cluster preserved of described client between the IP address of server and COS, and described second mapping table is the corresponding relation between the IP address of server in the service cluster preserved of server and COS;
The server transmission access request that described client is corresponding to the IP address of the described server determined, comprises the COS of described client needs access in described access request;
The visit data needing the COS of accessing corresponding with described client that described client receives described server feedback.
The invention provides a kind of IP management method, comprising:
First server receives the access request that client sends, comprise the time of the COS of described client needs access and the first mapping table last update of described client preservation in described access request, described first mapping table is the corresponding relation between the IP address of server in the service cluster of described client preservation and COS;
Described first server needs the visit data of COS and the more new data of the first mapping table of access to client described in described client feedback according to described access request, described more new data is the data that the second mapping table has upgraded from the time of described last update to current time, make described client can utilize described in more new data realize the synchronous of described first mapping table and described second mapping table, described second mapping table is the IP address of server in the service cluster preserved of described first server and the corresponding relation between COS.
The invention provides a kind of client, comprising:
Search module, if need access services for described client, search the first mapping table, determine the IP address of the server that described client needs the COS of access corresponding, described first mapping table and the second mapping table keep synchronous, described first mapping table is the corresponding relation in the service cluster preserved of described client between the IP address of server and COS, and described second mapping table is the corresponding relation between the IP address of server in the service cluster preserved of server and COS;
Sending module, for searching after module determines the IP address of described server described, server corresponding to the IP address to the described server determined sends access request, comprises the COS that described client needs are accessed in described access request;
Receiver module, after sending described access request at described sending module, the visit data needing the COS of accessing corresponding with described client receiving described server feedback.
The invention provides a kind of server, comprising:
Receiver module, for receiving the access request that client sends, comprise the time of the COS of described client needs access and the first mapping table last update of described client preservation in described access request, described first mapping table is the corresponding relation between the IP address of server in the service cluster of described client preservation and COS;
Sending module, after receiving described access request at described receiver module, need the visit data of COS and the more new data of the first mapping table of access to client described in described client feedback according to described access request, described more new data is the data that the second mapping table has upgraded from the time of described last update to current time, make described client can utilize described in more new data realize the synchronous of described first mapping table and described second mapping table, described second mapping table is the IP address of server in the service cluster preserved of described first server and the corresponding relation between COS.
The invention provides a kind of IP management system, comprising:
Several above-mentioned clients, and several above-mentioned servers, and this several server forms service cluster.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
If client needs access services device, this client searches the first mapping table, determine the IP address that this client needs the COS of access corresponding, this first mapping table and the second mapping table keep synchronous, this first mapping table is the IP address of server in the service cluster preserved of this client and the corresponding relation between COS, this second mapping table is the IP address of server in the service cluster preserved of server and the corresponding relation between COS, client can be corresponding to the IP address of the server determined server send access request, this access request comprises the COS of client needs access, the visit data needing the COS of accessing corresponding with client of this client reception server feedback, because the first mapping table of client keeps synchronous with the second mapping table of server, the first mapping table making client directly to use self to preserve searches the IP address of server, and do not need the IP address obtaining server from proxy server or dns server, the problem such as can effectively avoid the high and reliability of proxy server or dns server break down or IP address substitution brings cost low, effectively reduce the cost of IP management, improve the reliability of system.
Term " first ", " second ", " the 3rd " " 4th " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein such as can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
In embodiments of the present invention, multiple client and multiple server is comprised in IP management system, and the plurality of server forms service cluster, each server in service cluster has preserved the second mapping table all, the corresponding relation between the IP address of the Servers-all in this service cluster and COS is comprised in this second mapping table, and carry out the client of service access all to preserve the first mapping table from the server this service cluster, the corresponding relation between the IP address of the server in server cluster and COS is comprised in this first mapping table, and the first mapping table and the second mapping table keep synchronous.
Refer to Fig. 1, be the embodiment of the IP management method in the embodiment of the present invention, comprise:
If 101 clients need access services, client searches the first mapping table, determines the IP address of the server that client needs the COS of access corresponding;
In embodiments of the present invention, if client needs access services, then this client can search the first mapping table self preserved, determine the IP address of the server that client needs the COS of access corresponding, wherein, first mapping table and the second mapping table keep synchronous, first mapping table is the corresponding relation in the service cluster preserved of client between the IP address of server and COS, and the second mapping table is the corresponding relation between the IP address of server in the service cluster preserved of server and COS.
Such as: if client needs to access " Tengxun's microblogging ", then client searches the first mapping table, determines the IP address that can provide the server of the service of access " Tengxun's microblogging " for client.
102, the server that client is corresponding to the IP address of the server determined sends access request, comprises the COS of client needs access in access request;
In embodiments of the present invention, the server transmission access request that client is corresponding to the IP address of the server determined, comprises the COS of client needs access in access request.
Such as: client determining to provide the IP address of the server of the access of " Tengxun's microblogging " is: 171.17.1.14, then send access request to this server, in this access request, carry the web address of " Tengxun's microblogging ", make this server can feed back corresponding visit data.
103, the visit data needing the COS of accessing corresponding with client of client reception server feedback.
In embodiments of the present invention, the client visit data needing the COS of accessing corresponding with client that will receive server feedback.
In embodiments of the present invention, if client needs access services device, this client searches the first mapping table, determine the IP address that this client needs the COS of access corresponding, this first mapping table and the second mapping table keep synchronous, this first mapping table is the IP address of server in the service cluster preserved of this client and the corresponding relation between COS, this second mapping table is the IP address of server in the service cluster preserved of server and the corresponding relation between COS, client can be corresponding to the IP address of the server determined server send access request, this access request comprises the COS of client needs access, the visit data needing the COS of accessing corresponding with client of this client reception server feedback, because the first mapping table of client keeps synchronous with the second mapping table of server, the first mapping table making client directly to use self to preserve searches the IP address of server, and do not need the IP address obtaining server from proxy server or dns server, the problem such as can effectively avoid the high and reliability of proxy server or dns server break down or IP address substitution brings cost low, effectively reduce the cost of IP management, improve the reliability of system.
Technical scheme for a better understanding of the present invention in embodiment, refers to Fig. 2, is the embodiment of the IP management method in the embodiment of the present invention, comprises:
If 201 clients need access services, client searches the first mapping table, determines the IP address of the server that client needs the COS of access corresponding;
In embodiments of the present invention, if client needs access services, then client searches the first mapping table, determine client need the server corresponding to COS of access IP address.
202, the server that client is corresponding to the IP address of the server determined sends access request, comprises the COS of client needs access and the time of the first mapping table last update in access request;
In embodiments of the present invention, the server that the IP address of the server that client wants is determined is corresponding sends access request, comprises the time of the COS of client needs access and the first mapping table last update of client preservation in this access request.
203, the visit data needing the COS of accessing corresponding with client of reception server feedback and the more new data of the first mapping table, more new data be the second mapping table from the time of last update to current time in the data that upgraded, perform step 204 and/or 205;
In embodiments of the present invention, client is after sending access request to server, server will utilize the COS determination visit data of the client needs access comprised in access request, and utilize the data of the first mapping table last update to obtain the more new data of this first mapping table, wherein, more new data is the data that the second mapping table has upgraded from time to the current time of this first mapping table last update, such as: if the time of the first mapping table last update of this client preservation is 8:00 in morning, current time is 10:00 in morning, then server using the second mapping table from morning data that 8:00 to 10:00 upgrades as the more new data of this first mapping table.
If 204 more comprise the corresponding relation between the IP address of server to be increased and COS in new data, then the corresponding relation between the IP address of server to be increased and COS is added in the first mapping table;
In embodiments of the present invention, client will utilize the visit data service of conducting interviews received, and also will the more new data received be utilized to upgrade the first mapping table.
If the more new data packets in the first mapping table contains the corresponding relation between the IP address of server to be increased and COS, then the corresponding relation between the IP address of this server to be increased and COS is added in the first mapping table, wherein, but the IP address of server to be increased refers to the IP address of the server increased in the second mapping table that the server in service cluster has been preserved the IP address of the server do not preserved in the first mapping table of client preservation.
If the IP address that 205 more comprise server to be deleted in new data, then delete the corresponding relation between the IP address of server to be deleted and COS from the first mapping table.
In embodiments of the present invention, if the more new data packets in the first mapping table is containing the IP address of server to be deleted, from the first mapping table that this client has been preserved, then delete the corresponding relation between the IP address of this server and COS, wherein, but the IP address of server to be deleted refers to the IP address of deleted server in the second mapping table that server is preserved the IP address of the server deleted in the first mapping table do not preserved in this client.
In embodiments of the present invention, the more new data of the first mapping table sent by utilizing server upgrades the first mapping table, the second mapping table of first mapping table that can effectively keep this client to preserve and server synchronous.
In embodiments of the present invention, if client needs access services device, this client can search its first mapping table preserved, determine the IP address of the server that this client needs the COS of access corresponding, then, the server transmission access request that this client is corresponding to the IP address of the server determined, time of the first mapping table last update that the COS of client needs access and this client have been preserved is comprised in this access request, and the more new data of this client visit data needing the COS of accessing corresponding with this client that can receive server feedback and the first mapping table, this more new data be the data that the second mapping table upgraded to current time from the time of the first mapping table last update, if and the corresponding relation more comprised in new data between the IP address of server to be increased and COS, then the corresponding relation between the IP address of this server to be increased and COS is added in the first mapping table by this client, if more comprise the IP address of server to be deleted in new data, from the first mapping table, then delete the corresponding relation between the IP address of this server to be deleted and COS, because client can utilize the first mapping table self preserved to determine the IP address of the server of the COS that can provide access, client is made not need to obtain from proxy server or dns server the IP address of server, the problem such as can effectively avoid the high and reliability of proxy server or dns server break down or IP address substitution brings cost low, effectively reduce the cost of IP management, improve the stability of system.And server also can feed back the more new data of the first mapping table of this client, make it possible to utilize this more new data the first mapping table is upgraded, make it possible to effectively to keep the synchronous of the second mapping table of this first mapping table and server.
Embodiment shown in Fig. 1 and Fig. 2 is the IP management method described from the angle of client, the angle from server is described IP management method below, refers to Fig. 3, is the embodiment of a kind of IP management method in the embodiment of the present invention, comprises:
301, first server receives the access request that client sends, and comprises the time of the COS of client needs access and the first mapping table last update of client preservation in access request;
In embodiments of the present invention, for first server, this first server can be any one server in service cluster.If first server receives the access request that client sends, the time of the COS of client needs access and the first mapping table last update of this client preservation is comprised in this access request, wherein, the first mapping table is the corresponding relation between the IP address of server in the service cluster of client preservation and COS.
302, first server needs the visit data of COS and the more new data of the first mapping table of access to client feedback client according to access request.
In embodiments of the present invention, first server is after receiving access request, COS according to these client needs access comprised in this access request is determined the visit data that this COS is corresponding, and utilize the time of the first mapping table last update of this client preservation comprised in this access request to determine the more new data of this first mapping table, wherein, more new data is the data that the second mapping table has upgraded from time to the current time of this first mapping table last update, make this client can utilize this more new data realize the synchronous of the first mapping table and the second mapping table, wherein, this second mapping table is the IP address of server in the service cluster preserved of first server and the corresponding relation between COS.
Such as: if the time of the first mapping table last update of this client preservation is 8:00 in morning, current time is 10:00 in morning, then first server using the second mapping table from morning data that 8:00 to 10:00 upgrades as the more new data of this first mapping table.
In embodiments of the present invention, first server will need the more new data of the visit data of the COS of access and the first mapping table of this client preservation to this client of client feedback sending access request, make this client that the more new data of this first mapping table can be utilized to upgrade this first mapping table, and more new data packets draws together the corresponding relation between the IP address of the first mapping table server to be increased and COS, and/or, the IP address of the server that the first mapping table is to be deleted.
Concrete: if the more new data packets in the first mapping table contains the corresponding relation between the IP address of server to be increased and COS, then the corresponding relation between the IP address of this server to be increased and COS is added in the first mapping table, wherein, but the IP address of server to be increased refers to the IP address of the server increased in the second mapping table that the server in service cluster has been preserved the IP address of the server do not preserved in the first mapping table of client preservation.If the more new data packets in the first mapping table is containing the IP address of server to be deleted, from the first mapping table that this client has been preserved, then delete the corresponding relation between the IP address of this server and COS, wherein, but the IP address of server to be deleted refers to the IP address of deleted server in the second mapping table that server is preserved the IP address of the server deleted in the first mapping table do not preserved in this client.
In embodiments of the present invention, after first server receives the access request of client transmission, the time of the COS of these client needs access and the first mapping table last update of client preservation is comprised in access request, and first server will need the visit data of COS and the more new data of the first mapping table of access to this client of client feedback according to this access request, make this client can utilize this more new data the first mapping table is upgraded, make the first mapping table can keep synchronous with the second mapping table that first server is preserved, make client that the first mapping table can be utilized to search the server that can be the COS that it provides it to want, client is made not need to obtain from proxy server or dns server the IP address of server, the problem such as can effectively avoid the high and reliability of proxy server or dns server break down or IP address substitution brings cost low, effectively reduce the cost of IP management, improve the stability of system.
In embodiments of the present invention, server in service cluster is also by mutually sending heartbeat to determine whether that server sends the situation of fault, with timely IP address of deleting the server broken down from the second mapping table that server is preserved, to realize the management of the IP address of the server in service cluster, refer to Fig. 4, for in the embodiment of the present invention, the embodiment of IP management method, comprising:
401, first server searches the first heartbeat message, determines that heart time exceedes the set of the server of default value, and the first heartbeat message is the IP address of server and the corresponding relation of heart time in the service cluster of first server preservation;
In embodiments of the present invention, first server searches the first heartbeat message by after timing or preset time period of being separated by, determine that heart time exceedes the set of the server of default value, wherein, the first heartbeat message is the IP address of server and the corresponding relation of heart time in the service cluster of first server preservation.Such as: refer to Fig. 5 a, IP address for server is first heartbeat message of 172.17.1.4, if and default value is 15 seconds, then the heart time of server 10.1.1.1 and 10.17.1.3 is greater than this default value, then comprise this server in the set of the server determined.
It should be noted that, in embodiments of the present invention, each server in service cluster all comprises the corresponding relation between the IP address of the Servers-all in this service cluster and COS, i.e. the second mapping table, and each server in service cluster comprises the corresponding relation between the IP address of the Servers-all in service cluster and heart time, i.e. heartbeat message.
If the set of 402 servers is nonvoid set, then first server initiates heartbeat to the second server in the set of server, and this second server is any one server in the set of server;
In embodiments of the present invention, if the set of server that first server is determined is nonvoid set, then this first server initiates heartbeat to the second server in the set of server, and this second server is any one server in the set of server.
In embodiments of the present invention, if the set of server is empty set, then illustrate that the heart time of not server has exceeded default value, does not need to upgrade the heartbeat message of first server.
If 403 in preset time, first server receives the second heartbeat message of second server feedback, second heartbeat message is the corresponding relation between the IP address of the server be kept in the service cluster of second server and heart time, then the heart time in the first heartbeat message of first server and the second heartbeat message is merged, using heart time minimum in heart time corresponding for the IP address of server as the heart time after renewal, obtain the 3rd heartbeat message;
In embodiments of the present invention, first server is initiated after heartbeat to second server, if within the preset time period, first server receives the second heartbeat message of second server feedback, this second heartbeat message is the corresponding relation between the IP address of the server be kept in the service cluster on second server and heart time, then the heart time of the first heartbeat message of this first server and the second heartbeat message of second server merges by first server, using heart time minimum in heart time corresponding for the IP address of server as the heart time after renewal, obtain the 3rd heartbeat message, such as: if the first heartbeat message of first server as shown in Figure 5 a, second heart time of second server as shown in Figure 5 b, the 3rd heartbeat message in Fig. 5 c can be obtained after then the first heartbeat message in Fig. 5 a and the second heartbeat message in Fig. 5 b being merged.
404, first server utilizes the 3rd heartbeat message to replace the first heartbeat message, and the 3rd heartbeat message is sent to second server, makes second server that the 3rd heartbeat message can be utilized to replace the second heartbeat message; Return and perform the step that first server searches the first heartbeat message;
In embodiments of the present invention, first server is after obtaining the 3rd heartbeat message after merging, the first heartbeat message is replaced by utilizing the 3rd heartbeat message, and the 3rd heartbeat message is sent to second server, make second server that the 3rd heartbeat message can be utilized to replace the second heartbeat message, and it should be noted that, first server and second server are utilizing after the 3rd heartbeat message replaces original heartbeat message, the heartbeat message that first server is preserved also can be described as the first heartbeat message, the heartbeat message that second server is preserved also can be described as the second heartbeat message, and in the first heartbeat message in first server, also comprise the server that heart time exceedes above-mentioned default value, first server also will return and perform step 401, till the set of the server obtained until first server is empty set.
If 405 in preset time, first server does not receive the second heartbeat message of second server feedback, from the first mapping table, then delete the corresponding relation between the IP address of second server and COS, from the first heartbeat message, delete the corresponding relation between the IP address of second server and heart time;
In embodiments of the present invention, first server is after initiating heartbeat to second server, if within the preset time, first server does not receive the second heartbeat message of second server feedback, then first server determines that this second server breaks down, the corresponding relation that first server will be deleted in the first mapping table preserved from it between IP address of second server and COS, and from the first heartbeat message of first server, delete the corresponding relation between the IP address of second server and heart time.
406, send deletion notice to other servers except first server and second server in the first mapping table, delete the IP address comprising second server in notice.
In embodiments of the present invention, first server also deletes the information relevant to second server to make other server, first server also deletes notice by sending to other servers except first server and second server in the first mapping table, the IP address of second server is comprised in this deletion notice, make other server after receiving this deletion notice, corresponding relation between the IP address of second server and COS is deleted from the second mapping table preserved, and the IP address of second server and the corresponding relation of heart time are deleted from heartbeat message.
In embodiments of the present invention, first server also can receive the heartbeat that other servers are initiated, such as: if first server receives the heartbeat that the 3rd server sends, comprise the corresponding relation between the IP address of the 3rd server and COS in this heartbeat; Then first server is by its heartbeat message preserved of inquiry, if find the IP address of the 3rd server in the first heartbeat message that it is preserved, then send the first heartbeat message of first server preservation to the 3rd server, the heartbeat message making the 3rd server that this first heartbeat message and the 3rd server can be utilized to have preserved merges.If for comprising the IP address of the 3rd server in the first heartbeat message that first server is preserved, then first server determines that the 3rd server is the server newly adding this service cluster, corresponding relation between the IP address of the 3rd server and COS is added in the first mapping table by this first server, is added in the first heartbeat message by the IP address of the 3rd server, and after the IP address of the 3rd server is added into the first heartbeat message, beginning is being the 3rd server timing in the first heartbeat message, obtain heart time, as the heart time corresponding with the 3rd server, and other servers in the first mapping table except first server and the 3rd server are also sent interpolation notice by first server, the corresponding relation between the IP address of the 3rd server and COS is comprised in this interpolation notice, make other servers the corresponding relation between the IP address of the 3rd server and COS can be added into its second mapping table preserved, the IP address of the 3rd server is added in its heartbeat message preserved, with the synchronized update of the second mapping table and heartbeat message that realize the server in service cluster.
In embodiments of the present invention, first server also can receive the deletion notice of other servers transmission or add notice.If this first server receives the deletion notice that the 3rd server sends, the IP address of the 4th server is comprised in this deletion notice, then this first server deletes the corresponding relation between the IP address of the 4th server and COS from the second mapping table that it is preserved, from the first heartbeat message that it is preserved, delete the IP address of the 4th server and the corresponding relation of heart time; If first server receives the interpolation notice that the 3rd server sends, the corresponding relation between the IP address of the 5th server and COS is comprised in this interpolation notice, then the corresponding relation between the IP address of the 5th server and COS is added in its second mapping table preserved by this first server, is added into the IP address of this second server in its first heartbeat message preserved.
In embodiments of the present invention, the first heartbeat message searched by first server device, determine that heart time exceedes the set of the server of default value, if and the set of this server is nonvoid set, then this first server initiates heartbeat to the second server in the set of server, this second server is any one server in the set of server, if in preset time, first server receives the second heartbeat message of second server feedback, then the heart time in the heartbeat message of first server and this second heartbeat message is merged, using heart time minimum in heart time corresponding for the IP address of server as the heart time after renewal, obtain the 3rd heartbeat message, this first server replaces the first heartbeat message by utilizing the 3rd heartbeat message, and the 3rd heartbeat message is sent to second server, make second server that the 3rd heartbeat message can be utilized to replace the second heartbeat message, if in preset time, first server does not receive the second heartbeat message of second server feedback, from the first mapping table, then delete the corresponding relation between the IP address of second server and COS, the corresponding relation between the IP address of second server and heart time is deleted from the first heartbeat message, and this first server also deletes notice by sending to other servers except first server and second server in the first mapping table, heartbeat is sent by the server utilizing heartbeat message to exceed default value to heart time, to determine whether this server sends fault, and the relevant information of this server is deleted when server sends fault, effectively can realize the management to the server in service cluster.
Below the client of the method to execution IP management, server and system are described in detail.
Refer to Fig. 6, be the embodiment of the structure of client in the embodiment of the present invention, comprise:
Search module 601, if need access services for described client, search the first mapping table, determine the IP address of the server that described client needs the COS of access corresponding, described first mapping table and the second mapping table keep synchronous, described first mapping table is the corresponding relation in the service cluster preserved of described client between the IP address of server and COS, and described second mapping table is the corresponding relation between the IP address of server in the service cluster preserved of server and COS;
Sending module 602, for searching after module determines the IP address of described server described, server corresponding to the IP address to the described server determined sends access request, comprises the COS that described client needs are accessed in described access request;
Receiver module 603, after sending described access request at described sending module, the visit data needing the COS of accessing corresponding with described client receiving described server feedback.
In embodiments of the present invention, if client needs access services, module 601 of searching then in this client searches the first mapping table, determine the IP address of the server that this client needs the COS of access corresponding, then, the server that sending module 602 is corresponding to the IP address of the described server determined sends access request, the COS of described client needs access is comprised, the visit data needing the COS of accessing corresponding with described client that last receiver module 603 receives described server feedback in described access request.
In embodiments of the present invention, if client needs access services device, this client searches the first mapping table, determine the IP address that this client needs the COS of access corresponding, this first mapping table and the second mapping table keep synchronous, this first mapping table is the IP address of server in the service cluster preserved of this client and the corresponding relation between COS, this second mapping table is the IP address of server in the service cluster preserved of server and the corresponding relation between COS, client can be corresponding to the IP address of the server determined server send access request, this access request comprises the COS of client needs access, the visit data needing the COS of accessing corresponding with client of this client reception server feedback, because the first mapping table of client keeps synchronous with the second mapping table of server, the first mapping table making client directly to use self to preserve searches the IP address of server, and do not need the IP address obtaining server from proxy server or dns server, the problem such as can effectively avoid the high and reliability of proxy server or dns server break down or IP address substitution brings cost low, effectively reduce the cost of IP management, improve the reliability of system.
Refer to Fig. 7, be the embodiment of the structure of client in the embodiment of the present invention, comprise:
What embodiment as shown in Figure 6 described searches module 601, sending module 602, receiver module 603, and similar to the content of middle description embodiment illustrated in fig. 6, repeats no more herein.
In embodiments of the present invention, the time of described first mapping table last update is comprised in described access request;
Then described receiver module 603 is specifically for the more new data of the visit data needing the COS of accessing corresponding with described client that receives described server feedback and described first mapping table, and described more new data is the data that described second mapping table has upgraded from the time of described last update to current time.
In embodiments of the present invention, client also comprises:
Processing module 701, for to receive described in described server feedback more after new data at described receiver module, if comprise the corresponding relation between the IP address of server to be increased and COS in described more new data, then the corresponding relation between the IP address of described server to be increased and COS is added in described first mapping table; If comprise the IP address of server to be deleted in described more new data, then from described first mapping table, delete the corresponding relation between the IP address of described server to be deleted and COS.
In embodiments of the present invention, if client needs access services, module 601 of searching then in this client searches the first mapping table, determine the IP address of the server that this client needs the COS of access corresponding, then, the server that sending module 602 is corresponding to the IP address of the described server determined sends access request, the COS of described client needs access and the time of the first mapping table last update is comprised in described access request, the visit data needing the COS of accessing corresponding with described client that receiver module 603 receives described server feedback and the more new data of described first mapping table, described more new data is the data that described second mapping table has upgraded from the time of described last update to current time, if comprise the corresponding relation between the IP address of server to be increased and COS in described more new data, then the corresponding relation between the IP address of described server to be increased and COS is added in described first mapping table by processing module 701, if comprise the IP address of server to be deleted in described more new data, then processing module 701 deletes the corresponding relation between the IP address of described server to be deleted and COS from described first mapping table.
In embodiments of the present invention, if client needs access services device, this client can search its first mapping table preserved, determine the IP address of the server that this client needs the COS of access corresponding, then, the server transmission access request that this client is corresponding to the IP address of the server determined, time of the first mapping table last update that the COS of client needs access and this client have been preserved is comprised in this access request, and the more new data of this client visit data needing the COS of accessing corresponding with this client that can receive server feedback and the first mapping table, this more new data be the data that the second mapping table upgraded to current time from the time of the first mapping table last update, if and the corresponding relation more comprised in new data between the IP address of server to be increased and COS, then the corresponding relation between the IP address of this server to be increased and COS is added in the first mapping table by this client, if more comprise the IP address of server to be deleted in new data, from the first mapping table, then delete the corresponding relation between the IP address of this server to be deleted and COS, because client can utilize the first mapping table self preserved to determine the IP address of the server of the COS that can provide access, client is made not need to obtain from proxy server or dns server the IP address of server, the problem such as can effectively avoid the high and reliability of proxy server or dns server break down or IP address substitution brings cost low, effectively reduce the cost of IP management, improve the stability of system.And server also can feed back the more new data of the first mapping table of this client, make it possible to utilize this more new data the first mapping table is upgraded, make it possible to effectively to keep the synchronous of the second mapping table of this first mapping table and server.
Refer to Fig. 8, be a kind of in embodiment of the present invention embodiment of structure of server, comprise:
Receiver module 801, for receiving the access request that client sends, comprise the time of the COS of described client needs access and the first mapping table last update of described client preservation in described access request, described first mapping table is the corresponding relation between the IP address of server in the service cluster of described client preservation and COS;
Sending module 802, after receiving described access request at described receiver module 801, need the visit data of COS and the more new data of the first mapping table of access to client described in described client feedback according to described access request, described more new data is the data that the second mapping table has upgraded from the time of described last update to current time, make described client can utilize described in more new data realize the synchronous of described first mapping table and described second mapping table, described second mapping table is the IP address of server in the service cluster preserved of described first server and the corresponding relation between COS.
In embodiments of the present invention, after first server receives the access request of client transmission, the time of the COS of these client needs access and the first mapping table last update of client preservation is comprised in access request, and first server will need the visit data of COS and the more new data of the first mapping table of access to this client of client feedback according to this access request, make this client can utilize this more new data the first mapping table is upgraded, make the first mapping table can keep synchronous with the second mapping table that first server is preserved, make client that the first mapping table can be utilized to search the server that can be the COS that it provides it to want, client is made not need to obtain from proxy server or dns server the IP address of server, the problem such as can effectively avoid the high and reliability of proxy server or dns server break down or IP address substitution brings cost low, effectively reduce the cost of IP management, improve the stability of system.
Referring to Fig. 9, is the embodiment of the structure of the server in the embodiment of the present invention, comprises the receiver module 801 described in embodiment as shown in Figure 8, sending module 802, and similar to the content of middle description embodiment illustrated in fig. 8, repeats no more herein.
In embodiments of the present invention, more new data packets draws together the corresponding relation between the IP address of described first mapping table server to be increased and COS, and/or, the IP address of the server that described first mapping table is to be deleted.
In embodiments of the present invention, server also comprises:
Information searching module 901, for searching the first heartbeat message, determine that heart time exceedes the set of the server of default value, described first heartbeat message is the IP address of server and the corresponding relation of heart time in the service cluster of described first server preservation;
If then described sending module 802 is also nonvoid set for the set of described server, then initiate heartbeat to the second server in the set of described server, this second server is any one server in the set of described server;
Then described receiver module 801 is also in preset time, receive the second heartbeat message of described second server feedback, described second heartbeat message is the corresponding relation between the IP address of the server be kept in the service cluster of described second server and heart time;
Then server also comprises and merges module 902 and replacement module 903;
Described merging module 902 is for merging the heart time in the first heartbeat message of described first server and described second heartbeat message, using heart time minimum in heart time corresponding for the IP address of server as the heart time after renewal, obtain the 3rd heartbeat message;
Described replacement module 903 replaces described first heartbeat message for utilizing described 3rd heartbeat message, and described 3rd heartbeat message is sent to described second server, make described second server that described 3rd heartbeat message can be utilized to replace described second heartbeat message; Return described information searching module 901.
In embodiments of the present invention, server also comprises:
Removing module 904, if in preset time, described receiver module 801 does not receive described second heartbeat message of described second server feedback, from described first mapping table, then delete the corresponding relation between the IP address of described second server and COS, from described first heartbeat message, delete the corresponding relation between the IP address of described second server and heart time;
Then described sending module 802 also deletes notice for sending to other servers except described first server and described second server in described first mapping table, comprises the IP address of described second server in described deletion notice.
In embodiments of the present invention, described receiver module 801 also for receiving the heartbeat that the 3rd server is initiated, comprises the corresponding relation between the IP address of described 3rd server and COS in described heartbeat;
If described sending module 802 is also for comprising the IP address of described 3rd server in described first heartbeat message, then send described first heartbeat message to described 3rd server.
In embodiments of the present invention, described server also comprises:
Add module 905, if for the IP address not comprising described 3rd server in described first heartbeat message, then the corresponding relation between the IP address of described 3rd server and COS is added in described first mapping table, the IP address of described 3rd server is added in described first heartbeat message;
Then described sending module 802 also sends for other servers in described first mapping table except described first server and described 3rd server and adds notice, comprises the corresponding relation between the IP address of described 3rd server and COS in described interpolation notice.
In embodiments of the present invention, described receiver module 801 is also for receiving the deletion notice that described 3rd server sends, the IP address of the 4th server is comprised in described deletion notice, and for receiving the interpolation notice that described 3rd server sends, in described interpolation notice, comprise the corresponding relation between the IP address of the 5th server and server;
Then described removing module 904 also for deleting the corresponding relation between the IP address of described 4th server and COS from described second mapping table, deletes the described IP address of the 4th server and the corresponding relation of heart time from described first heartbeat message;
Then described interpolation module 905 is also for being added in described second mapping table by the corresponding relation between the IP address of described 5th server and COS, is added in described first heartbeat message the IP address of described second server.
In embodiments of the present invention, receiver module 801 in server receives the access request that client sends, the time of the COS of described client needs access and the first mapping table last update of described client preservation is comprised in described access request, described first mapping table is the corresponding relation between the IP address of server in the service cluster of described client preservation and COS, and needed the visit data of COS and the more new data of the first mapping table of access to client described in described client feedback according to described access request by sending module, described more new data is the data that the second mapping table has upgraded from the time of described last update to current time, make described client can utilize described in more new data realize the synchronous of described first mapping table and described second mapping table, described second mapping table is the IP address of server in the service cluster preserved of described first server and the corresponding relation between COS.
In embodiments of the present invention, information searching module 901 in server searches the first heartbeat message, determine that heart time exceedes the set of the server of default value, described first heartbeat message is the IP address of server and the corresponding relation of heart time in the service cluster of described first server preservation, if the set of described server is nonvoid set, sending module 802 initiates heartbeat to the second server in the set of described server, this second server is any one server in the set of described server, and in preset time, the second heartbeat message of described second server feedback is received by receiver module 801, described second heartbeat message is the corresponding relation between the IP address of the server be kept in the service cluster of described second server and heart time, then, merge module 902 heart time in first heartbeat message of described first server and described second heartbeat message is merged, using heart time minimum in heart time corresponding for the IP address of server as the heart time after renewal, obtain the 3rd heartbeat message, described 3rd heartbeat message is utilized to replace described first heartbeat message by replacement module 903, and described 3rd heartbeat message is sent to described second server, make described second server that described 3rd heartbeat message can be utilized to replace described second heartbeat message, return described information searching module 901.If in preset time, receiver module 801 does not receive described second heartbeat message of described second server feedback, removing module 904 deletes the corresponding relation between the IP address of described second server and COS from described first mapping table, the corresponding relation between the IP address of described second server and heart time is deleted from described first heartbeat message, and sending module 802 sends deletion notice to other servers except described first server and described second server in described first mapping table, the IP address of described second server is comprised in described deletion notice.
In embodiments of the present invention, receiver module 801 in server receives the heartbeat that the 3rd server is initiated, the corresponding relation between the IP address of described 3rd server and COS is comprised in described heartbeat, if comprise the IP address of described 3rd server in described first heartbeat message, sending module 802 sends described first heartbeat message to described 3rd server, if do not comprise the IP address of described 3rd server in described first heartbeat message, adding module 905 is added in described first mapping table by the corresponding relation between the IP address of described 3rd server and COS, the IP address of described 3rd server is added in described first heartbeat message, and send interpolation notice by sending module 802 other servers in described first mapping table except described first server and described 3rd server, the corresponding relation between the IP address of described 3rd server and COS is comprised in described interpolation notice.
In embodiments of the present invention, receiver module 801 receives the deletion notice that described 3rd server sends, the IP address of the 4th server is comprised in described deletion notice, then described removing module 904 deletes the corresponding relation between the IP address of described 4th server and COS from described second mapping table, deletes the described IP address of the 4th server and the corresponding relation of heart time from described first heartbeat message.
In embodiments of the present invention, receiver module 801 receives the interpolation notice that described 3rd server sends, and comprises the corresponding relation between the IP address of the 5th server and server in described interpolation notice; Then adding module 905 is added in described second mapping table by the corresponding relation between the IP address of described 5th server and COS, is added in described first heartbeat message the IP address of described second server.
In embodiments of the present invention, the first heartbeat message searched by first server device, determine that heart time exceedes the set of the server of default value, if and the set of this server is nonvoid set, then this first server initiates heartbeat to the second server in the set of server, this second server is any one server in the set of server, if in preset time, first server receives the second heartbeat message of second server feedback, then the heart time in the heartbeat message of first server and this second heartbeat message is merged, using heart time minimum in heart time corresponding for the IP address of server as the heart time after renewal, obtain the 3rd heartbeat message, this first server replaces the first heartbeat message by utilizing the 3rd heartbeat message, and the 3rd heartbeat message is sent to second server, make second server that the 3rd heartbeat message can be utilized to replace the second heartbeat message, if in preset time, first server does not receive the second heartbeat message of second server feedback, from the first mapping table, then delete the corresponding relation between the IP address of second server and COS, the corresponding relation between the IP address of second server and heart time is deleted from the first heartbeat message, and this first server also deletes notice by sending to other servers except first server and second server in the first mapping table, heartbeat is sent by the server utilizing heartbeat message to exceed default value to heart time, to determine whether this server sends fault, and the relevant information of this server is deleted when server sends fault, effectively can realize the management to the server in service cluster.
In embodiments of the present invention, additionally provide a kind of IP management system, comprising:
Several as Fig. 6 or Fig. 7 describe client, and several as Fig. 8 or Fig. 9 describe servers, and these several described in server form service cluster.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
Above a kind of IP management method provided by the present invention and system, client, server are described in detail, for one of ordinary skill in the art, according to the thought of the embodiment of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Accompanying drawing explanation
Fig. 1 is a schematic diagram of the embodiment of IP management method in the embodiment of the present invention;
Fig. 2 is another schematic diagram of the embodiment of IP management method in the embodiment of the present invention;
Fig. 3 is another schematic diagram of the embodiment of IP management method in the embodiment of the present invention;
Fig. 4 is another schematic diagram of the embodiment of IP management method in the embodiment of the present invention;
Fig. 5 a is the schematic diagram of the first heartbeat message in the embodiment of the present invention;
Fig. 5 b is the schematic diagram of the second heartbeat message in the embodiment of the present invention;
Fig. 5 c is the schematic diagram of the 3rd heartbeat message in the embodiment of the present invention;
Fig. 6 is a schematic diagram of the structure of client in the embodiment of the present invention;
Fig. 7 is another schematic diagram of the structure of client in the embodiment of the present invention;
Fig. 8 is a schematic diagram of the structure of server in the embodiment of the present invention;
Fig. 9 is another schematic diagram of the structure of server in the embodiment of the present invention.
Embodiment
Embodiments provide a kind of IP management method and system, client, server, for providing the IP address of the server of service to manage, the cost of IP management can be effectively reduced, improving the reliability of system.
Below by specific embodiment, be described in detail respectively.
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only the present invention's part embodiments, and the embodiment of not all.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.

Claims (21)

1. the protocol IP management method interconnected between network, is characterized in that, comprising:
If client needs access services, described client searches the first mapping table, determine the IP address of the server that described client needs the COS of access corresponding, described first mapping table and the second mapping table keep synchronous, described first mapping table is the corresponding relation in the service cluster preserved of described client between the IP address of server and COS, and described second mapping table is the corresponding relation between the IP address of server in the service cluster preserved of server and COS;
The server transmission access request that described client is corresponding to the IP address of the described server determined, comprises the COS of described client needs access in described access request;
The visit data needing the COS of accessing corresponding with described client that described client receives described server feedback.
2. method according to claim 1, is characterized in that, comprises the time of described first mapping table last update in described access request;
Then the comprising with the visit data that described client needs the COS of the accessing corresponding of described server feedback of described reception:
The visit data needing the COS of accessing corresponding with described client receiving described server feedback and the more new data of described first mapping table, described more new data is the data that described second mapping table has upgraded from the time of described last update to current time.
3. method according to claim 2, is characterized in that, described method also comprises:
If comprise the corresponding relation between the IP address of server to be increased and COS in described more new data, then the corresponding relation between the IP address of described server to be increased and COS is added in described first mapping table;
If comprise the IP address of server to be deleted in described more new data, then from described first mapping table, delete the corresponding relation between the IP address of described server to be deleted and COS.
4. the protocol IP management method interconnected between network, is characterized in that, comprising:
First server receives the access request that client sends, comprise the time of the COS of described client needs access and the first mapping table last update of described client preservation in described access request, described first mapping table is the corresponding relation between the IP address of server in the service cluster of described client preservation and COS;
Described first server needs the visit data of COS and the more new data of the first mapping table of access to client described in described client feedback according to described access request, described more new data is the data that the second mapping table has upgraded from the time of described last update to current time, make described client can utilize described in more new data realize the synchronous of described first mapping table and described second mapping table, described second mapping table is the IP address of server in the service cluster preserved of described first server and the corresponding relation between COS.
5. IP management method according to claim 4, it is characterized in that, described more new data packets draws together the corresponding relation between the IP address of described first mapping table server to be increased and COS, and/or, the IP address of the server that described first mapping table is to be deleted.
6. the management method according to claim 4 or 5, is characterized in that, described method also comprises:
Described first server searches the first heartbeat message, determines that heart time exceedes the set of the server of default value, and described first heartbeat message is the IP address of server and the corresponding relation of heart time in the service cluster of described first server preservation;
If the set of described server is nonvoid set, then described first server initiates heartbeat to the second server in the set of described server, and this second server is any one server in the set of described server;
If in preset time, described first server receives the second heartbeat message of described second server feedback, described second heartbeat message is the corresponding relation between the IP address of the server be kept in the service cluster in described second server and heart time, then the heart time in the first heartbeat message of described first server and described second heartbeat message is merged, using heart time minimum in heart time corresponding for the IP address of server as the heart time after renewal, obtain the 3rd heartbeat message;
Described first server utilizes described 3rd heartbeat message to replace described first heartbeat message, and described 3rd heartbeat message is sent to described second server, makes described second server that described 3rd heartbeat message can be utilized to replace described second heartbeat message; Return and perform the step that described first server searches the first heartbeat message.
7. management method according to claim 6, is characterized in that, described method also comprises:
If in preset time, described first server does not receive described second heartbeat message of described second server feedback, from described first mapping table, then delete the corresponding relation between the IP address of described second server and COS, from described first heartbeat message, delete the corresponding relation between the IP address of described second server and heart time;
Send to other servers except described first server and described second server in described first mapping table and delete notice, in described deletion notice, comprise the IP address of described second server.
8. management method according to claim 6, is characterized in that, described method also comprises:
Described first server receives the heartbeat that the 3rd server is initiated, and comprises the corresponding relation between the IP address of described 3rd server and COS in described heartbeat;
If comprise the IP address of described 3rd server in described first heartbeat message, then send described first heartbeat message to described 3rd server.
9. management method according to claim 8, is characterized in that, described method also comprises:
If do not comprise the IP address of described 3rd server in described first heartbeat message, then the corresponding relation between the IP address of described 3rd server and COS is added in described first mapping table, the IP address of described 3rd server is added in described first heartbeat message;
Other servers in described first mapping table except described first server and described 3rd server send and add notice, comprise the corresponding relation between the IP address of described 3rd server and COS in described interpolation notice.
10. management method according to claim 6, is characterized in that, described method also comprises:
If described first server receives the deletion notice that described 3rd server sends, the IP address of the 4th server is comprised in described deletion notice, then described first server deletes the corresponding relation between the IP address of described 4th server and COS from described second mapping table, deletes the described IP address of the 4th server and the corresponding relation of heart time from described first heartbeat message;
If described first server receives the interpolation notice that described 3rd server sends, the corresponding relation between the IP address of the 5th server and COS is comprised in described interpolation notice, then the corresponding relation between the IP address of described 5th server and COS is added in described second mapping table by described first server, is added in described first heartbeat message the IP address of described second server.
11. 1 kinds of clients, is characterized in that, comprising:
Search module, if need access services for described client, search the first mapping table, determine the IP address of the server that described client needs the COS of access corresponding, described first mapping table and the second mapping table keep synchronous, described first mapping table is the corresponding relation in the service cluster preserved of described client between the IP address of server and COS, and described second mapping table is the corresponding relation between the IP address of server in the service cluster preserved of server and COS;
Sending module, for searching after module determines the IP address of described server described, server corresponding to the IP address to the described server determined sends access request, comprises the COS that described client needs are accessed in described access request;
Receiver module, after sending described access request at described sending module, the visit data needing the COS of accessing corresponding with described client receiving described server feedback.
12. clients according to claim 11, is characterized in that, comprise the time of described first mapping table last update in described access request;
Then described receiver module is specifically for the more new data of the visit data needing the COS of accessing corresponding with described client that receives described server feedback and described first mapping table, and described more new data is the data that described second mapping table has upgraded from the time of described last update to current time.
13. methods according to claim 12, is characterized in that, described client also comprises:
Processing module, for to receive described in described server feedback more after new data at described receiver module, if comprise the corresponding relation between the IP address of server to be increased and COS in described more new data, then the corresponding relation between the IP address of described server to be increased and COS is added in described first mapping table; If comprise the IP address of server to be deleted in described more new data, then from described first mapping table, delete the corresponding relation between the IP address of described server to be deleted and COS.
14. 1 kinds of servers, is characterized in that, comprising:
Receiver module, for receiving the access request that client sends, comprise the time of the COS of described client needs access and the first mapping table last update of described client preservation in described access request, described first mapping table is the corresponding relation between the IP address of server in the service cluster of described client preservation and COS;
Sending module, after receiving described access request at described receiver module, need the visit data of COS and the more new data of the first mapping table of access to client described in described client feedback according to described access request, described more new data is the data that the second mapping table has upgraded from the time of described last update to current time, make described client can utilize described in more new data realize the synchronous of described first mapping table and described second mapping table, described second mapping table is the IP address of server in the service cluster preserved of described first server and the corresponding relation between COS.
15. servers according to claim 14, it is characterized in that, described more new data packets draws together the corresponding relation between the IP address of described first mapping table server to be increased and COS, and/or, the IP address of the server that described first mapping table is to be deleted.
16. servers according to claims 14 or 15, it is characterized in that, described server also comprises:
Information searching module, for searching the first heartbeat message, determines that heart time exceedes the set of the server of default value, and described first heartbeat message is the IP address of server and the corresponding relation of heart time in the service cluster of described first server preservation;
If then described sending module is also nonvoid set for the set of described server, then initiate heartbeat to the second server in the set of described server, this second server is any one server in the set of described server;
Then described receiver module is also in preset time, receive the second heartbeat message of described second server feedback, described second heartbeat message is the corresponding relation between the IP address of the server be kept in the service cluster in described second server and heart time;
Then described server also comprises and merges module and replacement module;
Described merging module is used for the heart time in the first heartbeat message of described first server and described second heartbeat message to merge, using heart time minimum in heart time corresponding for the IP address of server as the heart time after renewal, obtain the 3rd heartbeat message;
Described replacement module is used for utilizing described 3rd heartbeat message to replace described first heartbeat message, and described 3rd heartbeat message is sent to described second server, make described second server that described 3rd heartbeat message can be utilized to replace described second heartbeat message; Return described information searching module.
17. servers according to claim 16, is characterized in that, described server also comprises:
Removing module, if in preset time, described receiver module does not receive described second heartbeat message of described second server feedback, from described first mapping table, then delete the corresponding relation between the IP address of described second server and COS, from described first heartbeat message, delete the corresponding relation between the IP address of described second server and heart time;
Then described sending module also deletes notice for sending to other servers except described first server and described second server in described first mapping table, comprises the IP address of described second server in described deletion notice.
18. servers according to claim 16, is characterized in that:
Described receiver module also for receiving the heartbeat that the 3rd server is initiated, comprises the corresponding relation between the IP address of described 3rd server and COS in described heartbeat;
If described sending module is also for comprising the IP address of described 3rd server in described first heartbeat message, then send described first heartbeat message to described 3rd server.
19. servers according to claim 18, is characterized in that, described server also comprises:
Add module, if for the IP address not comprising described 3rd server in described first heartbeat message, then the corresponding relation between the IP address of described 3rd server and COS is added in described first mapping table, the IP address of described 3rd server is added in described first heartbeat message;
Then described sending module also sends for other servers in described first mapping table except described first server and described 3rd server and adds notice, comprises the corresponding relation between the IP address of described 3rd server and COS in described interpolation notice.
20. servers according to claim 19, is characterized in that:
Described receiver module is also for receiving the deletion notice that described 3rd server sends, the IP address of the 4th server is comprised in described deletion notice, and for receiving the interpolation notice that described 3rd server sends, in described interpolation notice, comprise the corresponding relation between the IP address of the 5th server and server;
Then described removing module also for deleting the corresponding relation between the IP address of described 4th server and COS from described second mapping table, deletes the described IP address of the 4th server and the corresponding relation of heart time from described first heartbeat message;
Then described interpolation module is also for being added in described second mapping table by the corresponding relation between the IP address of described 5th server and COS, is added in described first heartbeat message the IP address of described second server.
The protocol IP management system interconnected between 21. 1 kinds of networks, is characterized in that, comprising:
Several clients as described in any one of claim 11 to 13, and several servers as described in any one of claim 14 to 20, and server described in several forms service cluster.
CN201310695074.7A 2013-12-17 2013-12-17 A kind of IP management method and system, client, server Active CN104717314B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201310695074.7A CN104717314B (en) 2013-12-17 2013-12-17 A kind of IP management method and system, client, server
TW103144126A TWI536789B (en) 2013-12-17 2014-12-17 Method of internet protocol (ip) management, system, client terminal and server thereof
PCT/CN2015/072652 WO2015090243A1 (en) 2013-12-17 2015-02-10 Ip management method, client and server
US15/175,563 US9590947B2 (en) 2013-12-17 2015-02-10 IP management method, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310695074.7A CN104717314B (en) 2013-12-17 2013-12-17 A kind of IP management method and system, client, server

Publications (2)

Publication Number Publication Date
CN104717314A true CN104717314A (en) 2015-06-17
CN104717314B CN104717314B (en) 2018-12-11

Family

ID=53402133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310695074.7A Active CN104717314B (en) 2013-12-17 2013-12-17 A kind of IP management method and system, client, server

Country Status (4)

Country Link
US (1) US9590947B2 (en)
CN (1) CN104717314B (en)
TW (1) TWI536789B (en)
WO (1) WO2015090243A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209917A (en) * 2016-09-08 2016-12-07 上海携程商务有限公司 The control method of sync server cluster configuration and safety control server and system
CN106649751A (en) * 2016-12-26 2017-05-10 中国建设银行股份有限公司 Cash management service data storage system, method and device
CN108924210A (en) * 2018-06-27 2018-11-30 杭州贝店科技有限公司 Service request processing method, device, server and storage medium
CN109451088A (en) * 2018-10-30 2019-03-08 新华三大数据技术有限公司 A kind of data access method and device
CN111756795A (en) * 2020-05-06 2020-10-09 浙江吉利汽车研究院有限公司 Service information management method and device, electronic equipment and storage medium
CN113114588A (en) * 2021-04-14 2021-07-13 百度在线网络技术(北京)有限公司 Data processing method and device, electronic equipment and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770222B (en) * 2016-08-19 2021-03-23 阿里巴巴集团控股有限公司 Network information processing method, equipment and system
CN108989264B (en) * 2017-05-31 2020-04-03 华为技术有限公司 Live broadcast method, system and related equipment
CN109673004B (en) * 2017-10-13 2021-10-22 成都鼎桥通信技术有限公司 Method and device for terminal to obtain cluster service server address
CN110046123B (en) * 2018-12-24 2023-06-20 创新先进技术有限公司 Method and device for synchronizing connection states of trusted computing clusters
CN115516835B (en) * 2020-05-13 2024-03-29 深圳市欢太科技有限公司 Method, device, equipment and computer storage medium for updating IP address

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1742255A (en) * 2002-12-23 2006-03-01 德克斯特拉公司 Mobile data and software update system and method
US7747749B1 (en) * 2006-05-05 2010-06-29 Google Inc. Systems and methods of efficiently preloading documents to client devices
CN101822022A (en) * 2007-10-12 2010-09-01 爱立信电话股份有限公司 Support of triple play services in user devices
US8156199B1 (en) * 2006-11-10 2012-04-10 Juniper Networks, Inc. Centralized control of client-side domain name resolution using VPN services
US8195763B2 (en) * 2005-07-22 2012-06-05 Research In Motion Limited Secure method of synchronizing cache contents of a mobile browser with a server

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI245997B (en) 2000-04-06 2005-12-21 Distribution Systems Res Inst IP communication system, IP transfer network, gateway device, server, network point device, medium router, terminal device and terminal communication method
US7725602B2 (en) 2000-07-19 2010-05-25 Akamai Technologies, Inc. Domain name resolution using a distributed DNS network
WO2004064481A2 (en) 2003-01-23 2004-08-05 Dexterra, Inc. System and method for mobile data update
US20080298366A1 (en) 2007-05-31 2008-12-04 Microsoft Corporation Agnostic Network Architecture
US8966121B2 (en) * 2008-03-03 2015-02-24 Microsoft Corporation Client-side management of domain name information
CN101989986A (en) 2010-10-28 2011-03-23 北京瑞汛世纪科技有限公司 Method for inquiring service node, server and system
WO2012094675A2 (en) * 2011-01-07 2012-07-12 Seven Networks, Inc. System and method for reduction of mobile network traffic used for domain name system (dns) queries
CN102420916A (en) 2011-11-28 2012-04-18 中国联合网络通信集团有限公司 Call processing method and call center
US9215205B1 (en) * 2012-04-20 2015-12-15 Infoblox Inc. Hardware accelerator for a domain name server cache
CN103428302A (en) * 2012-05-15 2013-12-04 阿里巴巴集团控股有限公司 Domain name resolution method, server and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1742255A (en) * 2002-12-23 2006-03-01 德克斯特拉公司 Mobile data and software update system and method
US8195763B2 (en) * 2005-07-22 2012-06-05 Research In Motion Limited Secure method of synchronizing cache contents of a mobile browser with a server
US7747749B1 (en) * 2006-05-05 2010-06-29 Google Inc. Systems and methods of efficiently preloading documents to client devices
US8156199B1 (en) * 2006-11-10 2012-04-10 Juniper Networks, Inc. Centralized control of client-side domain name resolution using VPN services
CN101822022A (en) * 2007-10-12 2010-09-01 爱立信电话股份有限公司 Support of triple play services in user devices

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209917A (en) * 2016-09-08 2016-12-07 上海携程商务有限公司 The control method of sync server cluster configuration and safety control server and system
CN106649751A (en) * 2016-12-26 2017-05-10 中国建设银行股份有限公司 Cash management service data storage system, method and device
CN108924210A (en) * 2018-06-27 2018-11-30 杭州贝店科技有限公司 Service request processing method, device, server and storage medium
CN109451088A (en) * 2018-10-30 2019-03-08 新华三大数据技术有限公司 A kind of data access method and device
CN111756795A (en) * 2020-05-06 2020-10-09 浙江吉利汽车研究院有限公司 Service information management method and device, electronic equipment and storage medium
CN113114588A (en) * 2021-04-14 2021-07-13 百度在线网络技术(北京)有限公司 Data processing method and device, electronic equipment and storage medium
CN113114588B (en) * 2021-04-14 2023-02-17 百度在线网络技术(北京)有限公司 Data processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
US9590947B2 (en) 2017-03-07
TWI536789B (en) 2016-06-01
WO2015090243A1 (en) 2015-06-25
CN104717314B (en) 2018-12-11
TW201526591A (en) 2015-07-01
US20160323238A1 (en) 2016-11-03

Similar Documents

Publication Publication Date Title
CN104717314A (en) IP management method and system, client-side and server
US10715485B2 (en) Managing dynamic IP address assignments
US10374955B2 (en) Managing network computing components utilizing request routing
CN100484069C (en) File data distributing method and relative device
CN103338279B (en) Based on optimization sequencing method and the system of domain name mapping
CN104883547B (en) Method and NVR based on network access equipment physical port access IPC
US10069941B2 (en) Scalable event-based notifications
US10021181B2 (en) System and method for discovering a LAN synchronization candidate for a synchronized content management system
US20150350154A1 (en) Using Distributed Network Elements to Send Authoritative DNS Responses
CN101447895A (en) Collocation method for synchronizing network management and network element and device thereof
CN102904977B (en) Network address allocation method, server and node
US20120191769A1 (en) Site-aware distributed file system access from outside enterprise network
US20110173344A1 (en) System and method of reducing intranet traffic on bottleneck links in a telecommunications network
US20130166680A1 (en) Method, apparatus, and network system for acquiring content
CN106612339A (en) Domain name updating method, system and main DNS (Domain Name System) server
US9130938B2 (en) Method, switch, and system for processing a message
CN104205730B (en) Network element data access method, Virtual NE, network management server and NMS
CN114422519B (en) Data request processing method and device, electronic equipment and storage medium
CN107959704A (en) A kind of data processing method and home gateway
CN107360095B (en) Method for realizing port forwarding in router based on client host name
US20240015135A1 (en) Domain management and synchronization system
CN103380607A (en) DNS client address and RR TTL updating method, device and system
US20220263759A1 (en) Addressing method, addressing system, and addressing apparatus
CN104468767A (en) Method and system for detecting cloud storage data collision
CN113612811B (en) Method, system, equipment and medium for client mounting in multiple channels

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant