CN103369066A - IP (Internet Protocol) address distributing method - Google Patents

IP (Internet Protocol) address distributing method Download PDF

Info

Publication number
CN103369066A
CN103369066A CN2013103157062A CN201310315706A CN103369066A CN 103369066 A CN103369066 A CN 103369066A CN 2013103157062 A CN2013103157062 A CN 2013103157062A CN 201310315706 A CN201310315706 A CN 201310315706A CN 103369066 A CN103369066 A CN 103369066A
Authority
CN
China
Prior art keywords
server
address
message
authoritative
information
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
CN2013103157062A
Other languages
Chinese (zh)
Other versions
CN103369066B (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.)
SHENZHEN DANALE TECHNOLOGY CO., LTD.
Original Assignee
SUZHOU DANA INFORMATION TECHNOLOGY 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 SUZHOU DANA INFORMATION TECHNOLOGY Co Ltd filed Critical SUZHOU DANA INFORMATION TECHNOLOGY Co Ltd
Priority to CN201310315706.2A priority Critical patent/CN103369066B/en
Publication of CN103369066A publication Critical patent/CN103369066A/en
Application granted granted Critical
Publication of CN103369066B publication Critical patent/CN103369066B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to an IP (Internet Protocol) address distributing method. The IP address distributing method comprises a mechanical process of IP address distribution, a competition process of an authority server and an information processing process after the authority server is determined, wherein a server end acquires a send request file and IP address information corresponding to the request file from a client end, wherein the request file includes a device type and current default setting parameters; the server end analyzes and distributes the IP address information and configures an information base after receiving the request file and the IP address information from the client end; server groups of the server end need to continuously carry out the competition process of the authority server among servers, and the server end continuously sends a heartbeat package and updated IP address information to non-authority servers after the authority server is determined. According to the IP address distributing method disclosed by the invention, a multicast way is beneficial to distribution of the IP address, and the efficiency for setting and distributing the IP address according to different stages is high; the IP address distributing accuracy is ensured by virtue of the detecting mechanism for the distributed IP address information; a special pushing way is adopted, so that a plurality of terminals can be put into use as soon as being plugged.

Description

The method of IP address distribution
Technical field
The present invention relates to a kind of method of IP address distribution, belong to communication technical field.
Background technology
At present, mainly be by the DHCP form to IP address (Internet Protocol Address) distribution, during current DHCP distributing ip address, can not carry out the validity check of IP address, may cause IP address conflict; In the time of a plurality of DHCP, service-impacting, function singleness can not be carried out the Intelligence Selection configuration as required.
Summary of the invention
The objective of the invention is to overcome the deficiency that prior art exists, a kind of method of IP address distribution is provided.
Purpose of the present invention is achieved through the following technical solutions:
The method of IP address distribution, characteristics are: relate to client and server in the IP address distribution, server end is comprised of a plurality of server farm, is in the current server that is using and is authoritative server; Comprise the machine-processed process of IP address distribution, the competition process of authoritative server and the Message Processing behind definite authoritative server in the IP address distribution;
A) the machine-processed process of IP address distribution: between server end and client, realize, the client request of initiating a message is to server end, after server end receives message, the message that receives is carried out the management of IP address information, whether detect the distributing IP address information, judge whether new IP address, then detect and whether exist, to detect distributing IP address, new IP address in judging be no and the IP address is yes when having existed, and redistributes and obtain the IP address information; In judging, detect distributing IP address, new IP address for being to be no when having existed with the IP address, the IP address information of acquisition client; Be encapsulated as configuration information according to obtaining the IP address information, configuration information is pushed in the client, client is after information, the information that receives is processed, check whether distribution obtains the IP address successful, then to use this IP address, otherwise the mistake of 500 types of dishing out, namely error message is processed; The configuration client is up-to-date IP address information, obtain server information after, send the checking echo message, server receives authorization information, the mechanism of IP address distribution is finished;
B) competition process of authoritative server: have competitive relation between the server farm of server end, determine that by competing which station server is authoritative server, wherein a station server sends Alive to other servers, receive the server of Alive message, by the preference strategy that sends message server is compared, the server preference strategy numeral of receipt message is smaller, then begin to judge time point, if the time of receipt message server is newer, then revising reception server is authoritative server, otherwise send message server and receipt message server and stop response, namely determine authoritative server message, the preference strategy in the server arranges according to configuration file, the dynamic setting, time point is the time point when preference strategy is set;
C) determine Message Processing behind the authoritative server: through determining authoritative server after the server competition, be authoritative server such as a server, authoritative server sends a heartbeat packet at set intervals to other servers, other servers receive the heartbeat packet message of authoritative server, when not receiving heartbeat packet, carry out again the competition process of authoritative server; Simultaneously, authoritative server also sends up-to-date IP address information to other servers, after other servers receive message, is updated to up-to-date IP address information.
Further, the method for above-mentioned IP address distribution, wherein, to determine to only have a station server be authoritative server by competing, the inauthoritativeness server receives message and the synchronizing information of authoritative server.
Further, the method for above-mentioned IP address distribution, wherein, authoritative server sent a heartbeat packet to other servers every 5 seconds.
Again further, the method for above-mentioned IP address distribution, wherein, client is configured the IP address information of this locality, and client transmit a request to server end with configuration;
The server end receipt message is resolved its IP address information, server end judges whether the IP address information is available, if IP address information to be distributed is unavailable, then regenerate the IP address information, if IP address information to be distributed can be used, then server end continues follow-up IP address distribution flow process, server end sends to client with IP address information to be distributed as configuration information, client judges whether available according to receiving the IP address information, if IP address information to be distributed is unavailable, the client failed message of dishing out then, if IP address information to be distributed can be used, then client is finished follow-up IP address applications process concurrency and is sent identifying code to server end;
Server end is comprised of a plurality of server farm, wherein a station server sends Alive to other servers, receive the server of Alive message, by the preference strategy that sends message server is compared, the server preference strategy of receipt message is high, and (as: it is little to set the preference strategy numeral, be that priority ratio is higher), when the priority of server is identical, then begin to judge time point, if the time of receipt message server is newer, then revising reception server is authoritative server, otherwise transmission message server and receipt message server stop response, have so namely determined authoritative server message;
After through the server competition, determine authoritative server, authoritative server sends a heartbeat packet at set intervals to other servers, other servers receive the heartbeat packet message of authoritative server, when not receiving heartbeat packet, carry out again the competition process of authoritative server, simultaneously, authoritative server also sends up-to-date IP address information and other servers are arrived in the configuration information storehouse, after other servers receive message, upgrade local ip address information and configuration information storehouse.
The substantive distinguishing features that technical solution of the present invention is outstanding and significant progressive being mainly reflected in:
The present invention adopts the multicast mode more to be conducive to the distributing ip address, according to different ranks the distributing ip address is set, and efficient is high, the distributing ip address information there is testing mechanism, better guarantees the accuracy rate of IP address distribution, adopt special propelling movement mode, the multiple terminal plug and play, convenient and practical.
Description of drawings
Below in conjunction with accompanying drawing technical solution of the present invention is described further:
Fig. 1: the schematic diagram of the machine-processed process of IP address distribution;
Fig. 2: the schematic diagram of the competition process of authoritative server;
Fig. 3: the schematic diagram of determining the Message Processing behind the authoritative server;
Fig. 4: the schematic flow sheet that the inventive method realizes.
Embodiment
The method of IP address distribution relates to client and server in the IP address distribution, and server end is comprised of a plurality of server farm, is in the current server that is using and is authoritative server; Comprise the machine-processed process of IP address distribution, the competition process of authoritative server and the Message Processing behind definite authoritative server in the IP address distribution.
A) the machine-processed process of IP address distribution: as shown in Figure 1, between server end and client, realize, the client request of initiating a message is to server end, after server end receives message, the message that receives is carried out the management of IP address information, whether detect the distributing IP address information, judge whether new IP address, whether then detect and exist, to detect distributing IP address, new IP address in judging be no and the IP address is yes when having existed, and redistributes and obtain the IP address information; In judging, detect distributing IP address, new IP address for being to be no when having existed with the IP address, the IP address information of acquisition client; Be encapsulated as configuration information according to obtaining the IP address information, configuration information is pushed in the client, client is after information, the information that receives is processed, check whether distribution obtains the IP address successful, then to use this IP address, otherwise the mistake of 500 types of dishing out, namely error message is processed; The configuration client is up-to-date IP address information, obtain server information after, send the checking echo message, server receives authorization information, the mechanism of IP address distribution is finished;
B) competition process of authoritative server: as shown in Figure 2, there is competitive relation between the server farm of server end, determine that by competing which station server is authoritative server, wherein a station server sends Alive to other servers, receive the server of Alive message, by the preference strategy that sends message server is compared, the server preference strategy numeral of receipt message is smaller, then begin to judge time point, if the time of receipt message server is newer, then revising reception server is authoritative server, otherwise transmission message server and receipt message server stop response, namely determines authoritative server message, preference strategy in the server, arrange according to configuration file, the dynamic setting, time point is the time point when preference strategy is set; To determine to only have a station server be authoritative server by competing, and the inauthoritativeness server receives message and the synchronizing information of authoritative server;
C) determine Message Processing behind the authoritative server: as shown in Figure 3, through determining authoritative server after the server competition, be authoritative server such as a server, authoritative server sends a heartbeat packet at set intervals to other servers, other servers receive the heartbeat packet message of authoritative server, when not receiving heartbeat packet, carry out again the competition process of authoritative server; Simultaneously, authoritative server also sends up-to-date IP address information to other servers, after other servers receive message, is updated to up-to-date IP address information.
Embodiment
As shown in Figure 4, client is configured the IP address information of this locality, and client transmit a request to server end with configuration;
The server end receipt message is resolved its IP address information, server end judges whether the IP address information is available, if IP address information to be distributed is unavailable, then regenerate the IP address information, if IP address information to be distributed can be used, then server end continues follow-up IP address distribution flow process, server end sends to client with IP address information to be distributed as configuration information, client judges whether available according to receiving the IP address information, if IP address information to be distributed is unavailable, the client failed message of dishing out then, if IP address information to be distributed can be used, then client is finished follow-up IP address applications process concurrency and is sent identifying code to server end;
Server end is comprised of a plurality of server farm, wherein a station server sends Alive to other servers, receive the server of Alive message, by the preference strategy that sends message server is compared, the server preference strategy of receipt message is high, and (as: it is little to set the preference strategy numeral, be that priority ratio is higher), when the priority of server is identical, then begin to judge time point, if the time of receipt message server is newer, then revising reception server is authoritative server, otherwise transmission message server and receipt message server stop response, have so namely determined authoritative server message;
After through the server competition, determine authoritative server, authoritative server sent a heartbeat packet to other servers every 5 seconds, other servers receive the heartbeat packet message of authoritative server, when not receiving heartbeat packet, carry out again the competition process of authoritative server, simultaneously, authoritative server also sends up-to-date IP address information and other servers are arrived in the configuration information storehouse, after other servers receive message, upgrade local ip address information and configuration information storehouse.
In sum, the present invention adopts the multicast mode more to be conducive to the distributing ip address, according to different ranks the distributing ip address is set, efficient is higher, the distributing ip address information by testing mechanism, is better guaranteed the success rate of IP address distribution, adopt special propelling movement mode, the multiple terminal plug and play, convenient applicable.
What need to understand is: the above only is preferred implementation of the present invention; for those skilled in the art; under the prerequisite that does not break away from the principle of the invention, can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (4)

1.IP the method for address distribution is characterized in that: relate to client and server in the IP address distribution, server end is comprised of a plurality of server farm, is in the current server that is using and is authoritative server; Comprise the machine-processed process of IP address distribution, the competition process of authoritative server and the Message Processing behind definite authoritative server in the IP address distribution;
A) the machine-processed process of IP address distribution: between server end and client, realize, the client request of initiating a message is to server end, after server end receives message, the message that receives is carried out the management of IP address information, whether detect the distributing IP address information, judge whether new IP address, then detect and whether exist, to detect distributing IP address, new IP address in judging be no and the IP address is yes when having existed, and redistributes and obtain the IP address information; In judging, detect distributing IP address, new IP address for being to be no when having existed with the IP address, the IP address information of acquisition client; Be encapsulated as configuration information according to obtaining the IP address information, configuration information is pushed in the client, client is after information, the information that receives is processed, check whether distribution obtains the IP address successful, then to use this IP address, otherwise the mistake of 500 types of dishing out, namely error message is processed; The configuration client is up-to-date IP address information, obtain server information after, send the checking echo message, server receives authorization information, the mechanism of IP address distribution is finished;
B) competition process of authoritative server: have competitive relation between the server farm of server end, determine that by competing which station server is authoritative server, wherein a station server sends Alive to other servers, receive the server of Alive message, by the preference strategy that sends message server is compared, the server preference strategy numeral of receipt message is smaller, then begin to judge time point, if the time of receipt message server is newer, then revising reception server is authoritative server, otherwise send message server and receipt message server and stop response, namely determine authoritative server message, the preference strategy in the server arranges according to configuration file, the dynamic setting, time point is the time point when preference strategy is set;
C) determine Message Processing behind the authoritative server: through determining authoritative server after the server competition, be authoritative server such as a server, authoritative server sends a heartbeat packet at set intervals to other servers, other servers receive the heartbeat packet message of authoritative server, when not receiving heartbeat packet, carry out again the competition process of authoritative server; Simultaneously, authoritative server also sends up-to-date IP address information to other servers, after other servers receive message, is updated to up-to-date IP address information.
2. the method for IP address distribution according to claim 1 is characterized in that: to determine to only have a station server be authoritative server by competing, and the inauthoritativeness server receives message and the synchronizing information of authoritative server.
3. the method for IP address distribution according to claim 1 is characterized in that: authoritative server sent a heartbeat packet to other servers every 5 seconds.
4. the method for IP address distribution according to claim 1, it is characterized in that: client is configured the IP address information of this locality, and client transmit a request to server end with configuration;
The server end receipt message is resolved its IP address information, server end judges whether the IP address information is available, if IP address information to be distributed is unavailable, then regenerate the IP address information, if IP address information to be distributed can be used, then server end continues follow-up IP address distribution flow process, server end sends to client with IP address information to be distributed as configuration information, client judges whether available according to receiving the IP address information, if IP address information to be distributed is unavailable, the client failed message of dishing out then, if IP address information to be distributed can be used, then client is finished follow-up IP address applications process concurrency and is sent identifying code to server end;
Server end is comprised of a plurality of server farm, wherein a station server sends Alive to other servers, receive the server of Alive message, by the preference strategy that sends message server is compared, the server preference strategy of receipt message is high (as: sets the preference strategy numeral, when the priority of server is identical, then begin to judge time point, if the time of receipt message server is newer, then revising reception server is authoritative server, stop response otherwise send message server and receipt message server, so namely determined authoritative server message;
After through the server competition, determine authoritative server, authoritative server sends a heartbeat packet at set intervals to other servers, other servers receive the heartbeat packet message of authoritative server, when not receiving heartbeat packet, carry out again the competition process of authoritative server, simultaneously, authoritative server also sends up-to-date IP address information and other servers are arrived in the configuration information storehouse, after other servers receive message, upgrade local ip address information and configuration information storehouse.
CN201310315706.2A 2013-07-25 2013-07-25 IP (Internet Protocol) address distributing method Active CN103369066B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310315706.2A CN103369066B (en) 2013-07-25 2013-07-25 IP (Internet Protocol) address distributing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310315706.2A CN103369066B (en) 2013-07-25 2013-07-25 IP (Internet Protocol) address distributing method

Publications (2)

Publication Number Publication Date
CN103369066A true CN103369066A (en) 2013-10-23
CN103369066B CN103369066B (en) 2017-02-15

Family

ID=49369586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310315706.2A Active CN103369066B (en) 2013-07-25 2013-07-25 IP (Internet Protocol) address distributing method

Country Status (1)

Country Link
CN (1) CN103369066B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744612A (en) * 2005-08-19 2006-03-08 杭州华为三康技术有限公司 DHCP address allocation method
CN101951417A (en) * 2010-09-21 2011-01-19 北京星网锐捷网络技术有限公司 Method, system and trunk equipment for assigning multiple server addresses
CN102098354A (en) * 2011-02-28 2011-06-15 北京星网锐捷网络技术有限公司 Method and server for allocating dynamic host configuration protocol (DHCP) addresses

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744612A (en) * 2005-08-19 2006-03-08 杭州华为三康技术有限公司 DHCP address allocation method
CN101951417A (en) * 2010-09-21 2011-01-19 北京星网锐捷网络技术有限公司 Method, system and trunk equipment for assigning multiple server addresses
CN102098354A (en) * 2011-02-28 2011-06-15 北京星网锐捷网络技术有限公司 Method and server for allocating dynamic host configuration protocol (DHCP) addresses

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杭州华三通信技术有限公司: "《DHCP技术白皮书》", 31 December 2008, article "DHCP技术白皮书" *

Also Published As

Publication number Publication date
CN103369066B (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN107864228B (en) Connection establishment method and system in content distribution network
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
CN103167017B (en) Web polling method, Apparatus and system
RU2014108994A (en) SMB2 ZOOM
CN110995513B (en) Data sending and receiving method in Internet of things system, internet of things equipment and platform
CN105406974A (en) Method and system for increasing popularity value in chat room
CN104144098A (en) Information pushing method and system and pushing server equipment
CN106961426B (en) Communication method and device of intelligent equipment
CN105681385B (en) Information-pushing method and device
CN107567107B (en) Data transmission method and device
CN105227398A (en) Long method of attachment, system and its apparatus, terminal are shared in multi-service
WO2017004894A1 (en) Resource sharing method, terminal device, application server and system
CN104850980A (en) Delivery method based on Bluetooth and substitutive parcel taking method and system
CN103685570A (en) Server, terminal and message pushing method
CN108494826A (en) A kind of distribution cloud storage method and system
CN105262836A (en) Information push method of server and push information reception method of client
CN103685398B (en) Communication connection method for building up and communication system
CN103841135A (en) File accelerative download method and apparatus
RU2017103781A (en) METHOD FOR CALCULATING BOARDS IN REAL TIME MODE, GATEWAY AND DEVICE FOR CALCULATING BOARDS IN REAL TIME MODE
CN105610932B (en) Data delivery system and method suitable for urban track traffic
CN104320765A (en) Group information display method, group information sending method and terminal
US20140201376A1 (en) Method and system for the handling of redundant long poll
US20230043889A1 (en) Message Processing Method and Device, Storage Medium, and Electronic Device
CN111182504B (en) Wi-Fi Aware-based Internet of things equipment communication method, equipment and storage medium
CN106921992B (en) Method for determining wireless network connection state, client and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Inventor after: Yu Chengfu

Inventor before: Wang Binwen

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170727

Address after: The streets of Shenzhen city in Guangdong province 518057 Keyuan Road No. 15 Nanshan District Guangdong Kexing Science Park building B4 room 1102

Patentee after: SHENZHEN DANALE TECHNOLOGY CO., LTD.

Address before: Suzhou City, Jiangsu province 215021 Xinghu Park Street No. 328 Creative Industry Park 3-B302 unit

Patentee before: Suzhou Dana Information Technology Co., Ltd.