CN101651722B - Method, device and system for automatically allocating IP address - Google Patents

Method, device and system for automatically allocating IP address Download PDF

Info

Publication number
CN101651722B
CN101651722B CN2009101668476A CN200910166847A CN101651722B CN 101651722 B CN101651722 B CN 101651722B CN 2009101668476 A CN2009101668476 A CN 2009101668476A CN 200910166847 A CN200910166847 A CN 200910166847A CN 101651722 B CN101651722 B CN 101651722B
Authority
CN
China
Prior art keywords
address
network segment
client
probe messages
probe
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2009101668476A
Other languages
Chinese (zh)
Other versions
CN101651722A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2009101668476A priority Critical patent/CN101651722B/en
Publication of CN101651722A publication Critical patent/CN101651722A/en
Priority to PCT/CN2010/076442 priority patent/WO2011023136A1/en
Application granted granted Critical
Publication of CN101651722B publication Critical patent/CN101651722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/246Connectivity information discovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a method, a device and a system for automatically allocating an IP address. The method comprises the following steps: receiving a network-segment probe packet transmitted from an address distribution server, wherein the network-segment probe packet comprises allocation information which comprises a client-terminal identifier in a network segment and an IP address corresponding to the client-terminal identifier; confirming probe messages corresponding to the network segment, and generating probe messages according to the network-segment probe data packet if the probe messages corresponding to the network segment are confirmed to be absent, wherein the probe messages comprise allocation data which comprise a client-terminal identifier in the network segment and an IP address corresponding to the client-terminal identifier; and transmitting the probe messages into the network segment so that the client terminal in the network segment carries out data allocation according to the allocation data in the probe messages. The invention can reduce the difficulty and the cost of IP address distribution.

Description

IP address automatic distributing method and device thereof, system
Technical field
The present invention relates to the communications field, particularly a kind of IP address automatic distributing method and device thereof, system.
Background technology
Internet protocol (Internet Protocol is called for short IP) address is a kind of sign that identifies the subscriber equipment and the network equipment in the IP network, also is that IP network is used for the sign that the IP bag is transmitted, and therefore, the distribution of IP address is an entire I P server.
The method of salary distribution of IP address comprises at present: obtain the IP address mode automatically.Automatically the mode that obtains the IP address is meant: client device does not need manual intervention, can obtain host IP address, gateway ip address and the network segment mask of this client device automatically.At present, the major technique that obtains the IP address automatically is DHCP (DHCP:Dynamic Host Configuration Protocol).
But the inventor finds that in realizing process of the present invention the defective that obtains the prior art of IP address automatically is: when Dynamic Host Configuration Protocol server and dhcp client not at the same network segment, need in the same network segment of dhcp client, dispose a DHCP relay (Relay) main frame.But the benchmark service of IP network only provides routing function generally speaking, do not provide the IP address automatic configuration feature, and this DHCP Relay main frame belong to the IP address function of configuration automatically, does not belong to routing function, therefore, bearer network operator does not generally provide DHCP Relay function.Because bearer network operator does not provide DHCP Relay function, and client oneself generally can not and be managed a DHCP relay or Dynamic Host Configuration Protocol server (Server) in each network segment configuration, therefore, under the benchmark service of IP network, the configuration of difficult realization automatic IP address.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of IP address automatic distributing method and device thereof, system, makes the difficulty of IP address assignment and cost be minimized.
The embodiment of the invention provides a kind of IP address automatic distributing method, this method comprises: the network segment probe data packet that the receiver address distribution server transmits, this network segment probe data packet comprises configuration information, the client identification in this configure packet purse rope section and the IP address of client identification correspondence; Determine whether to exist the probe messages of this network segment correspondence, if determine not exist the probe messages of this network segment correspondence, then generate probe messages according to this network segment probe data packet, this probe messages comprises configuration data, and this configuration data comprises the IP address of the interior client identification of this network segment and this client identification correspondence; This probe messages is sent to this network segment, so that the client in this network segment is carried out data configuration according to the configuration data in this probe messages after receiving this probe messages.
The embodiment of the invention also provides a kind of IP address automatic distributing method, this method comprises: do not finish the client of address assignment or revised the configuration data of finishing the client of address assignment if exist, then generate the network segment probe data packet of this client place network segment, this network segment probe data packet comprises configuration information, the client identification in this configure packet purse rope section and the IP address of client identification correspondence; This network segment probe data packet is sent to the office terminal.
The embodiment of the invention also provides the office terminal of configuration automatically, a kind of IP address, and this office terminal comprises:
The packet receiving element is used for the network segment probe data packet that the receiver address distribution server transmits, and this network segment probe data packet comprises the configuration information of the network segment, the client identification in this configure packet purse rope section and the IP address of client identification correspondence;
The message determining unit is used to determine whether to exist the probe messages of this network segment correspondence;
The processing data packets unit, be used for when determining not have the probe messages of this network segment correspondence, generate probe messages according to this network segment probe data packet, this probe messages comprises configuration data, and this configuration data comprises the IP address of the interior client identification of the network segment and this client identification correspondence;
Packet sending unit, this probe messages that is used for generating sends to this network segment, so that the client in this network segment is carried out data configuration according to the configuration data in this probe messages after receiving this probe messages.
The embodiment of the invention also provides a kind of IP address assignment server, and this server comprises:
The packet generation unit, be used for when existence is not finished the client of address assignment or revised the configuration data of the client of finishing address assignment, generate the network segment probe data packet of this client place network segment, this network segment probe data packet comprises configuration information, the client identification in this configure packet purse rope section and the IP address of client identification correspondence;
The packet transmitting element, this network segment probe data packet that is used for generating sends to the office terminal.
The beneficial effect of the embodiment of the invention is, technical scheme by the embodiment of the invention, the AACP office terminal can generate the probe messages that comprises configuration data according to the network segment probe data packet that the AACP address allocation server sends, and this probe messages sent to the corresponding network segment, the client of the network segment obtains the configuration data that the AACP office terminal sends under making, from this configuration data, obtain corresponding address, thereby finish address assignment automatically.In the technical scheme of the embodiment of the invention, this client can be in the different network segments with the AACP address allocation server, and when client is in the different network segments with the AACP address allocation server, do not need as the DHCP mode, Relay Server to be set, thereby reduced the difficulty and the cost of IP address assignment.
Description of drawings
Accompanying drawing described herein is used to provide the further understanding to the embodiment of the invention, constitutes a part of asking in this, does not constitute the qualification to the embodiment of the invention.In the accompanying drawings:
Fig. 1 is the IP address automatic distributing method flow chart of the embodiment of the invention 1;
Fig. 2 is the IP address automatic distributing method flow chart of the embodiment of the invention 2;
Fig. 3 is the IP address automatic distributing method flow chart of the embodiment of the invention 3;
Fig. 4 is that the data collocation system of the embodiment of the invention constitutes schematic diagram;
Fig. 5 is the IP address automatic distributing method flow chart of the embodiment of the invention 4;
Fig. 6 is a probe messages structural representation in the embodiment of the invention 4;
Fig. 7 is the IP address automatic distributing method flow chart of the embodiment of the invention 5;
Fig. 8 is the IP address automatic distributing method flow chart of the embodiment of the invention 6;
Fig. 9 is a probe messages structural representation in the embodiment of the invention 6;
Figure 10 is that the automatic inking device in the IP address of the embodiment of the invention 7 constitutes schematic diagram;
Figure 11 is that the automatic inking device in the IP address of the embodiment of the invention 8 constitutes schematic diagram;
Figure 12 is that message process unit constitutes schematic diagram in the embodiment of the invention 8;
Figure 13 is that the automatic inking device in the IP address of the embodiment of the invention 9 constitutes schematic diagram;
Figure 14 is that the automatic inking device in the IP address of the embodiment of the invention 10 constitutes schematic diagram;
Figure 15 is that the automatic inking device in the IP address of the embodiment of the invention 11 constitutes schematic diagram;
Figure 16 is that the automatic inking device in the IP address of the embodiment of the invention 12 constitutes schematic diagram.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer,, the embodiment of the invention is described in further detail below in conjunction with accompanying drawing.At this, illustrative examples of the present invention and explanation thereof are used to explain the present invention, but not as a limitation of the invention.
The embodiment of the invention provides a kind of IP address automatic distributing method, device and system.Below in conjunction with accompanying drawing the embodiment of the invention is elaborated.
The automatic configuring technical in IP address that the embodiment of the invention is introduced can be named as AACP:AutoAddress Configuration Protocol (automatic address configuration protocol), and this agreement is used for the IP address and obtains automatically.
The technical scheme of the embodiment of the invention may relate to three functional nodes:
1.AACP Client: i.e. AACP client (can be called for short " client "), this node needs the distributing IP address.In other words, client is waited for the distributing IP address of host exactly, as computer etc.
2.AACP Server: i.e. AACP server end (can be called for short " address allocation server "), this node provides the IP address assignment service, comprises the IP address pool, and the IP address assignment strategy;
3.AACP Terminal:AACP office terminal (can be called for short " office terminal "), this node provides the IP address to be issued to the function of AACP Client.
Below, AACP address assignment solution is described respectively from method, the node (also can be called " network element " or device) that relates to and the angle of system.
Embodiment 1
The embodiment of the invention provides a kind of IP address automatic distributing method, and as shown in Figure 1, this method comprises:
Step 101, client receive the probe messages of the network segment under this client, and this probe messages comprises configuration data, and this configuration data comprises the client identification in this network segment and the IP address of client identification correspondence;
In this step, such as, the client (client 1 and client 2) of 2 unallocated IP addresses is arranged in this network segment, then comprise the client identification of these 2 clients in the configuration data, accordingly, also comprise this 2 the pairing IP of client identification addresses in the configuration data.
In addition, the current probe messages that this client receives can be from the office terminal.
Step 102, client judge whether this client has been assigned with the IP address, if this client is determined not to be assigned with the IP address, then this client is resolved this current probe messages, to obtain this configuration data;
With this client is that client 1 is an example, in this step, if client determines oneself not to be assigned with the IP address, then the current probe messages that receives is resolved, and obtains the configuration data that wherein carries.
Step 103, the IP address that from this configuration data, obtains this client correspondence according to the client identification of this client, and carry out data configuration according to the IP address that obtains.
In the present embodiment, this client identification can be the physical label of this client, as Electronic Serial Number (ESN:Electronic Serial Number) or medium access control (MAC:Media AccessControl) address.In this step, client 1 is obtained this client 1 pairing IP address from the configuration data that parsing obtains, concrete obtain manner can for: search according to being identified in this configuration data of self, find the IP address corresponding with himself client identification.Afterwards, client can be carried out data configuration (specifically can be the IP address configuration) with the IP address that obtains.
In the present embodiment, the client identification and the IP address of client identification correspondence of this configuration data in comprising the network segment, this configuration data also can comprise other information: such as, network segment address; Perhaps, network segment mask-length; Perhaps, network segment mask-length and gateway address; Again or, comprise network segment address, network segment mask-length and gateway address.
Accordingly, this client also can be obtained the information that comprises network segment address, network segment mask-length, gateway address except the IP address that obtains this client correspondence, and with the information the obtained IP transmission configuration data as this client.
Be understandable that the information that configuration data comprises also can comprise the optional information of other needs, for example: distribute the IP address of the address allocation server of this IP address, the IP address of operation and maintenance (OM) server, current information such as timestamp.
By the foregoing description as can be known, this client can obtain the IP address of this client automatically according to the probe messages of the affiliated network segment that receives, even the server of this client and this IP address of distribution also can obtain its IP address automatically when the different network segments, and do not need as the DHCP mode, to be provided with Relay Server, therefore, can reduce the difficulty and the cost of IP address assignment.
Embodiment 1 is that the angle from client is described AACP address assignment solution, and following examples 2 will be described from the angle of office terminal.
Embodiment 2
The embodiment of the invention provides a kind of IP address automatic distributing method, and as shown in Figure 2, this method comprises:
Step 201, the network segment probe data packet that office terminal receiver address distribution server transmits, this network segment probe data packet comprises the configuration information of specifying the network segment;
This configuration information can comprise different information combination, such as:
(1) client identification and this client identification corresponding address in network segment address and this network segment; Perhaps, client identification and this client identification corresponding address in (2) network segment mask-length and this network segment; Perhaps, client identification and this client identification corresponding address in (3) network segment mask-length, gateway address and this network segment; Perhaps, client identification and this client identification corresponding address in (4) network segment address, network segment mask-length, gateway address and this network segment.
Step 202, office terminal determine whether to exist and the pairing probe messages of this network segment, if determine not exist the probe messages of this network segment correspondence, then generate probe messages according to the network segment probe data packet that receives, and this probe messages comprises configuration data;
The information of this configuration data can comprise: the client identification in the network segment and the IP address of client identification correspondence; Perhaps comprise the configuration information in the step 201, repeat no more herein.This configuration data can be used in the data configuration process by client in subsequent step.
Step 203 sends this probe messages that generates to this network segment, so that after the client in this network segment receives described probe messages, carry out data configuration according to the configuration data in this probe messages.
In the present embodiment, when only comprising the IP address of the interior client identification of this network segment and this client identification correspondence as if this configuration data, this client can be obtained its IP address after obtaining this configuration data.When if this configuration data comprises configuration information in the step 201, this client also can obtain information such as network segment address, network segment mask-length, gateway address, but be not limited thereto except obtaining the IP address.Certainly, also can comprise the information of other needs, as described in embodiment 1, repeat no more herein.
From the above, but the network segment probe data packet that office terminal receiver address distribution server sends, and generate corresponding probe messages according to this network segment probe data packet, this probe messages is broadcasted to the corresponding network segment, thereby the client of this network segment obtains the line data configuration of going forward side by side of this probe messages under making.Do not obtain the IP address even this client and address allocation server also do not need to be provided with Relay Server as the DHCP mode when the different network segments, therefore, can reduce the difficulty and the cost of IP address assignment.
Embodiment 1 is that the angle from client is described AACP address assignment solution, and embodiment 2 will be described from the angle of office terminal, and following examples 3 are described from the angle of address allocation server.
Embodiment 3
The embodiment of the invention provides a kind of IP address automatic distributing method, and as shown in Figure 3, this method comprises:
Step 301, if address allocation server is determined existence and is not finished the client of address assignment or revised the configuration data of finishing the client of address assignment, then generate the network segment probe data packet of this client place network segment, this network segment probe data packet comprises configuration information;
This configuration information can comprise the information in the step 201, repeats no more herein.
In addition, this configuration information also can comprise following information one of them or its combination: the IP address of address allocation server and the IP address of operation and maintenance server except comprising the described information of step 201.
Step 302 sends this network segment probe data packet that generates to the office terminal;
In the present embodiment, in determining some network segment, this address allocation server also exist client not finish IP address assignment, when perhaps having revised the configuration data of the client of having finished IP address assignment in this address allocation server, with the network segment is that unit generates this network segment probe data packet, and this network segment probe data packet that will generate is sent to the office terminal, after making that this office terminal receives this network segment probe data packet, generate corresponding probe messages, and this probe messages broadcasted in destination network segment, make the client that receives this probe messages obtain configuration datas such as corresponding IP address.Even this client and address allocation server do not need to be provided with Relay Server yet and obtain the IP address as the DHCP mode, therefore, can reduce the difficulty and the cost of IP address assignment when the different network segments.
Embodiment 4
The embodiment of the invention provides a kind of IP address automatic distributing method, below in conjunction with accompanying drawing, is that example describes with client, address allocation server, the office terminal of adopting automatic address configuration protocol AACP.
Wherein, as shown in Figure 4, address allocation server 401, when this address allocation server 401 is determined also to exist client 403 not finish IP address assignment in some network segment, with the network segment is that unit generates this network segment probe data packet, and this network segment probe data packet that will generate is sent to office terminal 402;
What deserves to be explained is, also have a kind of situation to be: to revise when address distribution server 401 under the scene of configuration data of the client 403 of finishing IP address assignment, the also technical scheme that can adopt present embodiment to provide, promptly be that unit generates network segment probe data packet, and the network segment probe data packet that generates is sent to office terminal 402 with the network segment.Because subsequent step is similar, the embodiment of the invention mainly is described with the scene that client 403 is not finished IP address assignment, but is not limited thereto.
Office terminal 402, receive the network segment probe data packet that this address allocation server 401 sends, and after this office terminal 402 receives this network segment probe data packet, generate corresponding probe messages, and this probe messages is broadcasted in the network segment of these office terminal 402 administrations;
Be understandable that office terminal 402 can determine whether earlier to exist and the pairing probe messages of this network segment, if determine not exist the probe messages of this network segment correspondence, then generates corresponding probe messages and broadcasts.
Client 403 receives the probe messages that broadcast affiliated network segment office terminal 402, obtains to comprise the configuration data of IP address according to the probe messages that receives.
As shown in Figure 5, this method comprises:
At address allocation server 401:
Step 501, these address allocation server 401 configuration relevant informations;
The relevant information of these address allocation server 401 configurations can comprise the information described in the step 201, repeats no more herein.
In the present embodiment, the information of this relevant information in comprising step 201, also can comprise the relevant informations such as IP address of operation and maintenance (OM) server.
Step 502, this address allocation server 401 determines whether to exist the client of not finishing IP address assignment as yet, if determine that the result is for being that then execution in step 503; If determine that the result for not, then continues execution in step 502;
In the present embodiment, the client 403 that address allocation server 401 can adopt following manner to determine whether to exist not finish IP address assignment as yet: determine at first whether in all network segments (all network segments under this address allocation server management) exist the network segment of the IP address assignment of not finishing all clients as yet, if exist, then determine whether there is the client of not finishing IP address assignment as yet in this network segment again;
What deserves to be explained is to also have a kind of situation to be: if revised at address allocation server 401 under the scene of configuration data of the client 403 of finishing IP address assignment, the also technical scheme that can adopt present embodiment to provide, execution in step 503.Because subsequent step is similar, the embodiment of the invention mainly is described with the scene that client 403 is not finished IP address assignment, but is not limited thereto.
Step 503, if determine the result for there being the client of not finishing IP address assignment in step 502, then this address allocation server 401 is that unit generates network segment probe data packet with the network segment, this network segment probe data packet comprises configuration information; And this network segment probe data packet sent to office terminal 402, after making that office terminal 402 receives this network segment probe data packet, generate the probe messages of this network segment according to the configuration information in this network segment probe data packet, finally make the client 403 in this network segment carry out corresponding data configuration according to the configuration data that this probe messages comprises.
Wherein, the configuration information in this network segment probe data packet comprises the relevant information in the step 501, repeats no more herein.The IP address that also can comprise in addition, address allocation server.
And the network segment probe data packet that this address server 401 generates can also carry current information such as timestamp.
For example, in embodiments of the present invention, the structure of this network segment probe data packet is as shown in table 1:
Table 1
Timestamp Network segment address Network segment mask-length Gateway IP address The AACP server ip address OM IP address AACP client 1 physical label AACP client 1IP address AACP client 2 physical labels AACP client 2IP address
In the present embodiment,, adopt the mode of different generation network segment probe data packet according to different scenes:
(1) when existing when not finishing the client 403 of IP address assignment as yet, promptly there is the IP address need that increases newly to distribute in the address allocation server 401, can be in the following way:
If newly-increased IP address belongs to the network segment of original certain network segment probe data packet, then should increase the IP address newly and add this original network segment probe data packet, and stab update time, thereby generate network segment probe data packet.
If newly-increased IP address does not belong to the network segment of any one original network segment probe data packet, then generate new network segment probe data packet, comprising timestamp.
(2) when revising the configuration data of the AACP client of distributing IP address, promptly in server, existing configuration data is revised, can be in the following way:
The configuration data that needs in the former network segment probe data packet to revise is updated to amended configuration data, and stabs update time, thereby generate network segment probe data packet.
Such as, if IP1 is revised as by IPO in the IP address of the electronics string in the former network segment probe data packet number (ESNO:Electronicseriesnumber), then can change IPO in the former network segment probe data packet into IP1 earlier, and stab update time, thereby generate network segment probe data packet.
In the present embodiment, the modification of the configuration data of client 403 is not limited to revise the IP address, can also revises other configuration data, as network segment mask-length and gateway ip address or gateway address etc.
This network segment probe data packet that step 504, this address allocation server 401 will generate transmits to office terminal 402;
Wherein, this load mode can adopt manually or automated manner, can select corresponding load mode according to actual needs.
In the office terminal 402:
Step 505, this office terminal 402 receive the network segment probe data packet that address allocation server 401 transmits.
Step 506 determines whether to exist the probe messages of this network segment correspondence, and this probe messages is for surveying the IP packet; If determine the result for existing, then execution in step 509; If determine that the result does not exist, then execution in step 507;
In the present embodiment, can determine the affiliated network segment of this network segment probe data packet earlier, search all probe messages according to this network segment then, if do not find the probe messages of this network segment correspondence, then can determine not exist the probe messages of this network segment correspondence, otherwise, definite probe messages that has this network segment correspondence.
Step 507, if determine not exist the probe messages of this network segment correspondence in step 506, then office terminal 402 generates corresponding probe messages according to this network segment probe data packet that receives;
In the present embodiment, this probe messages comprises configuration data, and the information that this configuration data comprises is the information in the step 503, repeats no more herein.And this probe messages can also be carried timestamp.
In the present embodiment, this probe messages can be the IP message, and Fig. 6 is the structural representation of probe messages.As shown in Figure 6, be destination address with this network segment broadcasting IP address, promptly the IP packet header of this IP message is this network segment broadcasting IP address; The data division of this IP message can comprise all information in this network segment probe data packet, as the information in the step 503.
Step 508, this probe messages is broadcasted to the network segment of network segment address correspondence in office terminal 402, when the client 403 of this network segment receives this probe messages under making, can carry out data configuration according to the information in this message;
In the present embodiment, office terminal 402 can periodically send probe messages to the network segment corresponding with network segment address, broadcasts this probe messages at this network segment.
Step 509 if in step 506, determines to exist the probe messages of this network segment correspondence, and then office terminal 402 further judges whether to need to upgrade this probe messages; If judged result is for being that then execution in step 510; If judged result is that then execution in step 512;
In the present embodiment, can stab according to the timestamp of this probe messages and already present probe messages time corresponding and determine whether that needs upgrade this probe messages.If the timestamp of this probe messages is later than already present probe messages time corresponding and stabs, then determine to upgrade already present probe messages.If the timestamp of this probe messages early than or equal already present this probe messages time corresponding and stab, then do not need to determine already present probe messages.
Step 510 if determine to need to upgrade already present probe messages in step 509, then generates new probe messages according to this network segment probe data packet that receives, and deletes already present probe messages.
Step 511, this probe messages is broadcasted to the network segment of this network segment address correspondence in office terminal 402;
In the present embodiment, data configuration can when the client 403 of this network segment receives this probe messages under making, can be carried out according to the information in this message periodically to the network segment transmission probe messages of this network segment address correspondence in office terminal 402.
Step 512 if determine not need to upgrade already present probe messages, then abandons current this network segment probe data packet that receives in step 509, keep already present probe messages.
From the above, in step 511 or step 508, office terminal 402 is to the network segment broadcast probe message of network segment address correspondence.Like this, all clients 403 in this network segment all can receive this probe messages, below are that example describes with the client 403 in this network segment.
In client 403:
Step 513, the probe messages of the affiliated network segment of client 403 receiving management terminals 402 broadcasting;
The configuration data that this probe messages comprises is the information in the step 501, repeats no more herein.
Step 514, client 403 determine whether to be assigned with the IP address, if determine the result for being, then execution in step 517, if determine that the result is for denying that then execution in step 515.
Step 515 is that then 403 pairs of these probe messages of client are not resolved, to obtain this configuration data if determine the result in step 514.
Step 516 is obtained the configuration data that comprises the IP address of this client correspondence according to this client identification, so that client 403 utilizes this configuration data to carry out data configuration from this configuration data.
Step 517 if judged result is for being in step 514, promptly received probe messages before this probe messages of reception, judge further then whether this IP address needs to upgrade, upgrade for needs that then execution in step 518 if determine the result, upgrade for not needing if determine the result, then execution in step 520;
In the present embodiment, can determine whether that needs upgrade this IP address according to the timestamp of this probe messages and the probe messages time corresponding stamp that receives before, if the probe messages time corresponding that receives before this current timestamp is later than is stabbed, then can determine to need to upgrade this IP address.If the timestamp of this probe messages early than or equal before the probe messages time corresponding that receives stab, then can determine not need to upgrade this IP address.
Step 518, if judged result is for needing to upgrade this IP address in step 517, then 403 pairs of these probe messages of client are resolved, to obtain this configuration data.
Step 519 is known according to client mark 403 and to be obtained the IP address of this client correspondence and obtain other relevant information in this configuration data from this configuration data.
Step 520, if judged result is not for needing to upgrade this IP address in step 517, then client 403 abandons this current probe messages.
In addition, after client 403 is obtained the IP address, can send to address allocation server 401 and confirm address addresses distributed confirmation.At this moment, address allocation server 401 can be adjusted its IP address assignment table according to the Address Confirmation information that client 403 is sent.If this address allocation server 401 determines that the IP address of certain network segment all assigns, this address allocation server 401 sends the instruction that stops to send probe messages to office terminal 402.After office terminal 402 receives this instruction, stop to send the probe messages of this network segment.
From the above, can generate the network segment probe data packet that comprises client ip address by the address allocation server of distributing IP address, the office terminal can generate corresponding probe messages according to this network segment probe data packet, after making that this client receives this probe messages, automatically obtain the IP address of this client correspondence, do not obtain the IP address even the address allocation server of this client and this IP address of distribution does not also need to be provided with Relay Server as the DHCP mode when the different network segments, reduced the difficulty and the cost of IP address assignment.In addition, the network segment probe data packet that address allocation server generates is except comprising the IP address, also can comprise other configuration data, like this, also can comprise other configuration data in the probe messages that the office terminal generates, after making that this client receives this probe messages, obtain the IP address of this client correspondence and other configuration data automatically to carry out data configuration.
Embodiment 5
The embodiment of the invention provides a kind of IP address automatic distributing method, on the basis of embodiment 4, consider safety of data transmission, the data that transmit between this client 403, address allocation server 401, the office terminal 402 are encrypted, be that transmitting terminal is encrypted data, receiving terminal is decrypted data, and this cipher mode can adopt existing any mode, encrypts as adopting password and be-encrypted data to carry out the similarities and differences.
As shown in Figure 7, in step 704, the network segment probe data packet of 401 pairs of generations of address allocation server is encrypted, and the network segment probe data packet after will encrypting then is sent to office terminal 402.
In step 705, after office terminal 402 receives this network segment probe data packet, this network segment probe data packet is decrypted.
After step 707,710 generates probe messages, in step 708,711, this probe messages that generates is encrypted, to the probe messages of the network segment broadcast enciphering corresponding with network segment address.
In step 713, after client 403 receives the probe messages of broadcasting, at first this probe messages is decrypted.
Other step shown in Figure 7 is similar to Example 5, repeats no more herein.
In addition, after client 403 is obtained the IP address, can to confirm the address the addresses distributed confirmation encrypt, send the Address Confirmation information of encrypting to address allocation server 401 then.At this moment, address allocation server 401 can be at first be decrypted the Address Confirmation information of this encryption, and the Address Confirmation information of sending according to client 403 is adjusted its IP address assignment table then.
In addition, when address distribution server 401 determines that the IP address of certain network segment all assigns or owing to other reason, but address allocation server 401 subtend office terminals 402 send the instruction that stops to send probe messages and encrypt, and the instruction that sends this encryption then is to the office terminal 402.After office terminal 402 receives this instruction, earlier this instruction is decrypted, stops to send the probe messages of this network segment then.
From the above, by the data that transmit between client 403, address allocation server 401, the office terminal 402 are encrypted, can improve the fail safe of Network Transmission.
Embodiment 6
The embodiment of the invention provides a kind of IP address automatic distributing method, on the basis of embodiment 4 and embodiment 5, when packet that consider to generate and message are big to the influence of the network bandwidth, address allocation server 401 can divide into groups to the client 403 of unallocated IP address under the same network segment, and this group can be described as the AACPClient group.Wherein, the purpose of grouping is:
1) can not produce big IP bag.If do not divide into groups, the detection IP message length that the big network segment produces may cause the IP packet fragmentation, like this, and to the influential and requirement of equipment meeting;
2) minimizing is to the influence of the network bandwidth.Because as long as after the IP address assignment of this AACP Client group finishes, just stop paying out detection IP bag at this AACP Client group, after the IP address assignment that does not need to wait as long for all network segments is finished, just stop paying out and survey IP and wrap.
In the present embodiment, on the basis of embodiment 5, present embodiment is described.
As shown in Figure 8, in step 803, the client 403 of unallocated IP address under the same network segment is divided into groups, this group can be described as AACP Client group, the corresponding client group number of each groups of clients.
Then, address allocation server 401 is that unit generates corresponding probe data packet with AACP Client group, the information that comprises in the information step 503 that this probe data packet comprises, in addition, this probe data packet is portability timestamp and AACP client group number also, and is as shown in table 2.
Table 2
Timestamp Network segment address Network segment mask-length Gateway IP address The client group number The AACP server ip address OM IP address AACP client 1 physical label AACP client 1IP address AACP client 2 physical labels AACP client 2IP address
In the present embodiment, according to different scenes, adopt the mode of different generation network segment probe data packet:
(1) when existing when not finishing the client 403 of IP address assignment as yet, promptly there is the IP address need that increases newly to distribute in the address allocation server 401, can be in the following way:
If newly-increased IP address belongs to the segment A ACP Client group of original certain network segment probe data packet, then should increase the IP address newly and add this original network segment probe data packet, and stab update time, thereby generate network segment probe data packet;
If newly-increased IP address does not belong to the segment A ACP Client group of any one original network segment probe data packet, then generate new network segment probe data packet, comprising AACP Client group number and timestamp.
(2) when revising the configuration data of the client 403 of distributing IP address, promptly the configuration data of original client 403 in the address allocation server 401 is made amendment, can be in the following way:
1) if revise the IP address of client identification correspondence, in the following several ways:
First kind: if former IP address and amended IP address belong to a segment A ACP Client group, then the IP address in the former network segment probe data packet can be updated to amended IP address, and stab update time, thereby generate network segment probe data packet.
Second kind: if former IP address and amended IP address do not belong to same segment A ACP Client group, then at first delete former IP address in the network segment probe data packet of the group of the segment A ACP Client under former IP address, perhaps except deleting former IP address, also delete former IP address clients corresponding sign; Then, whether the network segment probe data packet of determining the AACP Client group of amended IP address correspondence exists, if revising the network segment probe data packet of the AACP Client group of IP address, back correspondence exists, then can in this network segment probe data packet, increase the information (as the AACP client identification) and the timestamp of amended IP address correspondence, thereby generate new network segment probe data packet; If the network segment probe data packet of the AACP Client of amended IP address correspondence group does not exist, then can generate new network segment packet, wherein comprise timestamp, amended IP address and AACP client identification.
For example, change the IP address of ESNO into IP1 by IPO, can be in the following way:
If IPO and IP1 belong to a segment A ACP Client group, at this moment, can change the IPO of former network segment probe data packet into IP1, and stab update time, thereby generate network segment probe data packet.
If IPO and IP1 belong to different segment AACP Client group, the information of deletion IPO correspondence in the network segment probe data packet of segment A ACP Client group that then can be under IPO, the information of this IPO correspondence can comprise IP address and AACP client identification etc., but is not limited thereto.At this moment, if the network segment probe data packet of the AACP Client of IP1 correspondence group exists, then can in this network segment packet, increase the information of IP1 correspondence, thereby generate new network segment probe data packet, comprising timestamp; If the network segment probe data packet of the AACP Client of IP1 correspondence group does not exist, then can generate new network segment packet, comprise the information of timestamp and IP1 correspondence.
In the present embodiment, the modification of the configuration data of client 403 is not limited to revise the IP address, can also revises other configuration data, as network segment mask-length and gateway ip address or gateway address etc.
2) if when revising other configuration data of the client 403 of distributing IP address (other configuration datas except client identification and corresponding IP address): the configuration data that needs in the former network segment probe data packet to revise is updated to amended configuration data, and update time stab, thereby generate network segment probe data packet.
In step 806, after office terminal 402 receives this network segment probe data packet and this packet is decrypted, determine whether to exist the probe messages of the corresponding network segment, can determine in the following way:
Office terminal 402 can be determined the network segment at place or determine the network segment at place according to this network segment mask-length and gateway ip address according to this network segment address; Check all probe messages according to this network segment and client group number then,, can determine not exist this probe messages if do not find the message of this network segment and group number correspondence; Otherwise, can determine to exist this probe messages.
In step 807,810, the information of the probe messages of generation in comprising step 503, also can comprise this client group number.This probe messages can be the IP message, and Fig. 9 is the structural representation of probe messages.As shown in Figure 9, be destination address with this network segment broadcasting IP address, promptly the IP packet header of this IP message is this network segment broadcasting IP address; The data division of this IP message can comprise all information in this network segment probe data packet, as information in the step 503 and client group number.
Other step is similar to Example 5, repeats no more herein.
From the above, address allocation server is by dividing into groups to the client of unallocated IP address, and be that unit generates corresponding network segment probe data packet with the group, after making that the office terminal obtains this packet, whether exist and this network segment and the corresponding probe messages of client group number according to this network segment and the inspection of client group number, if do not exist, perhaps exist but when needing to upgrade, generate corresponding probe messages according to this packet, and periodically to specific network segment broadcasting, network segment client obtains this probe messages under making, thereby obtains the configuration data that comprises the IP address.By this client is divided into groups, can reduce influence, and reduce the network bandwidth resources that takies equipment.
Embodiment 7
The embodiment of the invention provides a kind of IP address automatic inking device, and as shown in figure 10, this device comprises message receiving element 1001, message process unit 1002 and data capture unit 1003; Wherein, this message receiving element 1001 is used to receive the probe messages of the affiliated network segment of client, and this probe messages comprises configuration data, and this configuration data comprises client identification and this client identification corresponding address in this network segment at least; This message process unit 1002 is used in the unallocated address of definite client or when determining to have distributed the address and determining that this has distributed the address to upgrade, is used for this current probe messages is resolved, to obtain this configuration data; This data capture unit 1003 is used for obtaining this client corresponding address according to this client identification from this configuration data.
In the present embodiment, this device can be the AACP client, can obtain the configuration data that comprises the IP address automatically.
The course of work of this device repeats no more as described in the embodiment 1 herein.
By the foregoing description as can be known, this client can obtain the IP address of this client automatically according to the probe messages of the affiliated network segment that receives, even also not needing to be provided with Relay Server as the DHCP mode when the different network segments, the server of this client and this IP address of distribution do not obtain the IP address, therefore, can reduce the difficulty and the cost of IP address assignment.
Embodiment 8
The embodiment of the invention provides a kind of IP address automatic inking device, and as shown in figure 11, this device comprises message receiving element 1101, message process unit 1102 and data capture unit 1103, and its effect is similar to Example 7, repeats no more herein.
In the present embodiment, the client identification and the IP address of client identification correspondence of this configuration data in comprising the network segment, this configuration data also can comprise other information: such as, network segment address; Perhaps, network segment mask-length; Again or, network segment mask-length and gateway address or comprise network segment address, network segment mask-length and gateway address.
Accordingly, this client also can be obtained the information that comprises network segment address, network segment mask-length, gateway address except the IP address that obtains this client correspondence, and with the information the obtained IP transmission configuration data as this client.
Be understandable that the information that configuration data comprises also can comprise the optional information of other needs, for example: distribute the IP address of the address allocation server of this IP address, the IP address of operation and maintenance (OM) server, current information such as timestamp.
Therefore, this data capture unit 1103 carries out also can obtaining other configuration data outside the IP address, to carry out corresponding data configuration according to this configuration data outside the automatic configuration in IP address except obtaining the IP address of this client correspondence.
As shown in figure 11, if the probe messages that receives is encrypted, then this device also can comprise first decrypting device 1104, after this message receiving element 1101 receives the current probe messages of the network segment under the client, if this current probe messages is encrypted, then this first decrypting device 1104 is used for this current probe messages is decrypted.Then this message after 1102 pairs of deciphering of this message process unit is handled.
In addition, after this device obtains the IP address, can send Address Confirmation information to the AACP server.As shown in figure 11, this device also comprises information transmitting unit 1105, is connected with this data capture unit 1103, is used for sending affirmation address addresses distributed confirmation to server.
In order to guarantee transmission security, in the present embodiment, before this Address Confirmation information of transmission, this Address Confirmation information is encrypted, and then be sent to this AACP server by this information transmitting unit 1105.Like this, as shown in figure 11, this device also comprises first ciphering unit 1106, is used for this Address Confirmation information is encrypted; Then this information transmitting unit 1105 is used to send this Address Confirmation information after the encryption.
In the present embodiment, as shown in figure 12, this message process unit 1102 can comprise address determining unit 1201, packet parsing unit 1202; Wherein, this address determining unit 1201 is used for determining whether client has distributed the address; Packet parsing unit 1202 is used for this current probe messages being resolved, thereby obtaining configuration data when this address determining unit 1201 is determined the unallocated address of client.
As shown in figure 12, this message process unit 1102 also comprises upgrades determining unit 1203, be used for when this address determining unit 1201 determines that client has been distributed the address, according to this current timestamp with distributed the address time corresponding to stab to determine whether that needs upgrade this and distributed the address, as described in embodiment 4 to 6.If this renewal determining unit 1203 determines that needing to upgrade this has distributed the address, then notifies this packet parsing unit 1202 to be used for this current probe messages is resolved.
As shown in figure 11, this device also comprises packet loss unit 1107, is used for abandoning this current probe messages when this renewal determining unit 1203 determines that this has distributed the address not need to upgrade.
In the present embodiment, this device can be the AACP client.Its course of work repeats no more as described in the embodiment 4 to 6 herein.
By the foregoing description as can be known, this client can be decrypted the probe messages that receives, and obtain the IP address of this client automatically according to the probe messages of the affiliated network segment that receives, even also not needing to be provided with Relay Server as the DHCP mode when the different network segments, the server of this client and this IP address of distribution do not obtain the IP address, therefore, can reduce the difficulty and the cost of IP address assignment.In addition, owing to also comprise other configuration data in this probe messages, therefore, also can carry out data configuration after the probe messages of this client network segment under receiving according to other configuration data in this probe messages.
Embodiment 9
The embodiment of the invention provides a kind of IP address automatic inking device, and as shown in figure 13, this device comprises packet receiving element 1301, message determining unit 1302, processing data packets unit 1303 and packet sending unit 1304; Wherein,
This packet receiving element 1301 is used for the network segment probe data packet that reception server transmits, this network segment probe data packet comprises the configuration information of the network segment, this configuration information comprises the information in the step 503, in addition, this network segment probe data packet is the group number of portability client place grouping also, repeats no more herein.
Message determining unit 1302 is used to determine whether to exist the probe messages of this network segment correspondence;
This processing data packets unit 1303, be used for when message determining unit 1302 is determined not have the probe messages of this network segment correspondence, generate this probe messages according to this network segment probe data packet, this probe messages comprises configuration data, and the information of this configuration data comprises that the client identification in this network segment comprises this configuration information that this packet receiving element 1301 receives with this client identification corresponding address or this configuration data;
Packet sending unit 1304, this probe messages that is used for generating sends to this network segment, so that the client in this network segment is carried out data configuration according to the configuration data in this probe messages after receiving this probe messages.
In the present embodiment, this packet sending unit 1304 can periodically be broadcasted this probe messages to the network segment of network segment address correspondence.
In the present embodiment, this device can be the AACP office terminal, and its course of work repeats no more as described in the embodiment 2 herein.
From the above, this AACP office terminal can receive the network segment probe data packet that comprises client ip address that the AACP address allocation server sends, can generate corresponding probe messages according to this network segment probe data packet, and this probe messages broadcasted to the corresponding network segment, after thereby the client of the network segment obtains this probe messages under making, from this probe messages, obtain the IP address of this client correspondence, even also not needing to be provided with Relay Server as the DHCP mode when the different network segments, the server of this client and this IP address of distribution do not obtain the IP address, therefore, can reduce the difficulty and the cost of IP address assignment.
In addition, this network segment probe data packet and probe messages are except comprising client ip address, also can comprise other configuration data, like this, the AACP office terminal with this probe messages after the broadcasting of the corresponding network segment, the client of this network segment can be obtained the configuration data that comprises this IP address under making from this probe messages, to carry out data configuration according to this configuration data.
Embodiment 10
The embodiment of the invention provides a kind of IP address automatic inking device, as shown in figure 14, this device comprises packet receiving element 1401, message determining unit 1402, processing data packets unit 1403 and packet sending unit 1404, and its effect is similar to Example 9, repeats no more herein.
Consider the fail safe of network data transmission, this device also comprises second decrypting device 1405, is connected with this packet receiving element 1401, is used for when current network segment detection data packet encryption this current network segment probe data packet being decrypted.
In addition, this device also comprises second ciphering unit 1406, is connected with this packet sending unit 1404 with this processing data packets unit 1403, is used for this probe messages that generates is encrypted; Then this packet sending unit 1404 is used to send this probe messages of encryption.
As shown in figure 14, this device also comprises command reception unit 1407 and processing unit 1408; Wherein, this command reception unit 1407 is used to receive the instruction that stops to send this probe messages that this address allocation server sends; This processing unit 1408 is used for stopping to send this probe messages according to this instruction.
In addition, this device also can comprise the 3rd decrypting device 1409, is used for when this stops to send the instruction encryption of probe messages this instruction being decrypted.
As shown in figure 14, this device comprises that also message upgrades determining unit 1410, be used for when this message determining unit 1402 is determined to have had the probe messages of this network segment correspondence, according to the timestamp of this network segment probe data packet with distributed the address time corresponding to stab to determine whether that needs upgrade already present probe messages, as described in embodiment 4 to 6; Upgrade already present this probe messages if determine the result for needing, then notify this message generation unit 1403 to generate this probe messages.
In addition, as shown in figure 14, this device also can comprise data packet discarding unit 1411, is used for abandoning this current network segment probe data packet when this message renewal determining unit 1410 is determined not need to upgrade already present probe messages.
In the present embodiment, also carry the group number of client place grouping in the network segment probe data packet that this packet receiving element 1401 receives.Like this, this message determining unit 1402 is used for according to this network segment address and this group number or determines whether to exist the probe messages of this network segment correspondence according to network segment mask-length and gateway address and this group number.
In the present embodiment, this device can be the AACP office terminal.Its course of work repeats no more as described in the embodiment 4 to 6 herein.
By the foregoing description as can be known, on the basis of embodiment 9, this AACP office terminal can be decrypted the network segment probe data packet that receives, and generate corresponding probe messages according to the network segment probe data packet that receives, encrypt the back and broadcast this probe messages, thereby can strengthen safety of data transmission to the specific network segment.。
Embodiment 11
The embodiment of the invention provides a kind of IP address automatic inking device, and as shown in figure 15, this device comprises packet generation unit 1501 and packet transmitting element 1502; Wherein,
This packet generation unit 1501 is used for when the client of address assignment is not finished in existence, generate the network segment probe data packet of this client place network segment, this network segment probe data packet comprises configuration information, this configuration information comprises the information in the step 503, perhaps comprise the group number of information in the step 503 and client place grouping, repeat no more herein.
This network segment probe data packet that this packet transmitting element 1502 is used for generating sends to the AACP office terminal, makes the AACP office terminal generate corresponding probe messages according to the network segment probe data packet that receives.
In the present embodiment, this packet generation unit 1501 can generate this network segment probe data packet according to the relevant information that is input in advance in the address allocation server.This relevant information of importing in advance repeats no more as described in the embodiment 3 herein.
In the present embodiment, this device can be the AACP address allocation server.The course of work of this device repeats no more as described in the embodiment 3,6 herein.
From the above, when in the AACP address allocation server is determined some network segment, also existing the AACP client not finish IP address assignment, with the network segment or client group number is that unit generates this network segment probe data packet, and this network segment probe data packet that will generate is sent to the AACP office terminal, after thereby the client of the network segment obtains this probe messages under making, from this probe messages, obtain the IP address of this client correspondence, even also not needing to be provided with Relay Server as the DHCP mode when the different network segments, the server of this client and this IP address of distribution do not obtain the IP address, therefore, can reduce the difficulty and the cost of IP address assignment.
In addition, this network segment probe data packet and probe messages are except comprising client ip address, also can comprise other configuration data, like this, the AACP office terminal with this probe messages after the broadcasting of the corresponding network segment, the client of this network segment can be obtained the configuration data that comprises this IP address under making from this probe messages, to carry out data configuration according to this configuration data.
Embodiment 12
The embodiment of the invention provides a kind of IP address automatic inking device, and as shown in figure 16, this device comprises packet generation unit 1601 and packet transmitting element 1602, and its effect is similar to Example 11, repeats no more herein.
As shown in figure 16, this device also comprises confirmation receiving element 1603, information adjustment unit 1604 and instruction sending unit 1605; Wherein, this confirmation receiving element 1603 is used to receive affirmation address that this client sends addresses distributed confirmation; This information adjustment unit 1604 is used for adjusting address allocation information according to this Address Confirmation information; This instruction sending unit 1605 is used for when the address assignment of this network segment finishes, and sends the instruction that stops to send probe messages.
In addition, this device also can comprise the dispensing unit (not shown), is used to dispose the relevant information that generates network segment probe data packet.
As shown in figure 16, this device comprises that also the 3rd ciphering unit 1606, the three ciphering units 1606 are used for the network segment probe data packet that generates is encrypted; And this packet transmitting element 1602 is used to send this network segment probe data packet of encryption.
This device also comprises the 4th ciphering unit 1607, and the instruction that is used for this is stopped to send probe messages is encrypted; And this instruction sending unit 1605 is used to send after the encryption this and stops to send the instruction of probe messages.
In the present embodiment, this device can be this AACP address allocation server.The course of work of this device repeats no more as described in the embodiment 4 to 6 herein.
From the above, on the basis of embodiment 12, address allocation server can be to the network detection packet that sends or the instruction that stops to send probe messages encrypt the back and send, thereby can improve safety of data transmission.
Embodiment 13
The embodiment of the invention provides a kind of data collocation system, and as shown in Figure 5, this system comprises terminal 502, and wherein, the formation of this terminal can be used embodiment 9 and embodiment 10 described devices or any one combination.
As shown in Figure 5, this system also can comprise address allocation server 501, and the formation of this address allocation server can be used embodiment 11 and embodiment 12 described devices or any one combination.
In addition, this system also comprises client 503, and wherein, the formation of this client can be used embodiment 7 and embodiment 8 described devices or any one combination.
By the foregoing description as can be known, the embodiment of the invention is only utilized the basic functions of IP network, just can finish automatic IP address distributes, and improve the IP address scope of application of configuration automatically, do not obtain the IP address even the server of this client and this IP address of distribution does not also need to be provided with Relay Server as the DHCP mode when the different network segments, thereby reduce the difficulty and the cost of IP address assignment.In addition, in the probe messages that comprises the IP address, also other configuration data can be comprised, thereby in configuration of IP address, also the configuration of other data can be carried out.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (19)

1. an IP address automatic distributing method is characterized in that, described method comprises:
The network segment probe data packet that the receiver address distribution server transmits, described network segment probe data packet comprises configuration information, the client identification in the described configure packet purse rope section and the IP address of client identification correspondence;
Determine whether to exist the probe messages of described network segment correspondence, if determine not exist the probe messages of described network segment correspondence, then generate probe messages according to described network segment probe data packet, described probe messages comprises configuration data, and described configuration data comprises the client identification in the described network segment and the IP address of described client identification correspondence;
Described probe messages is sent to the described network segment, so that the client in the described network segment is carried out data configuration according to the configuration data in the described probe messages after receiving described probe messages.
2. method according to claim 1 is characterized in that, after the network segment probe data packet that the receiver address distribution server transmits, described method also comprises:
If determine to have existed the probe messages of the described network segment, then further judge whether and to upgrade already present probe messages, if judged result is for being, then generates probe messages, and the probe messages of generation is sent to the described network segment according to the current network segment probe data packet that receives.
3. method according to claim 2 is characterized in that, the client in the described network segment belongs to certain grouping, describedly determines whether to exist the probe messages of described network segment correspondence to comprise:
According to the probe messages that whether has the described client place network segment and described grouping correspondence, determine whether to exist the probe messages of described network segment correspondence.
4. according to claim 2 or 3 described methods, it is characterized in that all assign if described address allocation server is determined the IP address of certain network segment, described method also comprises:
Receive the instruction that stops to send described probe messages that described address allocation server sends;
Stop to send described probe messages according to described instruction;
Or,
Receive the instruction that stops to send described probe messages after the encryption that described address allocation server sends;
Instruction after the described encryption is decrypted;
Stop to send described probe messages according to the instruction after the described deciphering.
5. method according to claim 4 is characterized in that, described configuration information and described configuration data also comprise network segment address; Perhaps network segment mask-length; Perhaps network segment mask-length and gateway address.
6. an IP address automatic distributing method is characterized in that, described method comprises:
Do not finish the client of address assignment or revised the configuration data of finishing the client of address assignment if exist, then generate the network segment probe data packet of the described client place network segment, described network segment probe data packet comprises configuration information, the client identification in the described configure packet purse rope section and the IP address of client identification correspondence;
Described network segment probe data packet is sent to the office terminal.
7. method according to claim 6 is characterized in that, after described client was obtained the IP address, described method also comprised:
Receive affirmation IP address that described client sends addresses distributed confirmation;
Adjust IP address assignment information according to described Address Confirmation information;
If the address assignment of the described network segment finishes, then send the instruction that stops to send probe messages to described office terminal.
8. method according to claim 7 is characterized in that, before described network segment probe data packet was sent, described method also comprised: described network segment probe data packet is encrypted;
Perhaps, before transmission stopped to send the instruction of probe messages, described method also comprised: the described instruction that stops to send probe messages is encrypted.
9. method according to claim 6 is characterized in that, described configuration information and described configuration data also comprise network segment address; Perhaps network segment mask-length; Perhaps network segment mask-length and gateway address.
10. the office terminal of configuration automatically, an IP address is characterized in that described office terminal comprises:
The packet receiving element is used for the network segment probe data packet that the receiver address distribution server transmits, and described network segment probe data packet comprises the configuration information of the network segment, the client identification in the described configure packet purse rope section and the IP address of client identification correspondence;
The message determining unit is used to determine whether to exist the probe messages of described network segment correspondence;
The processing data packets unit, be used for when determining not have the probe messages of described network segment correspondence, generate probe messages according to described network segment probe data packet, described probe messages comprises configuration data, and described configuration data comprises the client identification in the network segment and the IP address of described client identification correspondence;
Packet sending unit, the described probe messages that is used for generating sends to the described network segment, so that the client in the described network segment is carried out data configuration according to the configuration data in the described probe messages after receiving described probe messages.
11. office terminal according to claim 10 is characterized in that, described office terminal also comprises:
Message upgrades determining unit, is used for when described message determining unit is determined to have had the probe messages of described network segment correspondence, determines whether to need to upgrade already present probe messages; Upgrade already present described probe messages if determine the result for needing, then notify described processing data packets unit to generate described probe messages;
Described device also comprises the data packet discarding unit, is used for abandoning described network segment probe data packet when described message renewal determining unit is determined not need to upgrade already present probe messages.
12. according to claim 10 or 11 described office terminals, it is characterized in that, client in the described network segment belongs to certain grouping, described message determining unit determines whether to exist the probe messages of described network segment correspondence to be specially: according to the probe messages that whether has the described client place network segment and described grouping correspondence, determine whether to exist the probe messages of described network segment correspondence.
13., it is characterized in that described office terminal also comprises according to claim 10 or 11 described office terminals:
The first command reception unit, be used to receive described address allocation server sends stop to send described probe messages stop to send instruction;
First processing unit is used for stopping to send instruction and stopping to send described probe messages according to described;
Perhaps, described device comprises:
The second command reception unit is used to receive the instruction that stops to send described probe messages after the encryption that described address allocation server sends;
Decrypting device is used for the instruction after the described encryption is decrypted;
Second processing unit is used for stopping to send described probe messages according to the instruction after the described deciphering.
14. an IP address assignment server is characterized in that, described server comprises:
The packet generation unit, be used for when existence is not finished the client of address assignment or revised the configuration data of the client of finishing address assignment, generate the network segment probe data packet of the described client place network segment, described network segment probe data packet comprises configuration information, the client identification in the described configure packet purse rope section and the IP address of client identification correspondence;
The packet transmitting element, the described network segment probe data packet that is used for generating sends to the office terminal.
15. server according to claim 14 is characterized in that, described server also comprises:
The confirmation receiving element is used to receive affirmation address that described client sends addresses distributed confirmation;
The information adjustment unit is used for adjusting address allocation information according to described Address Confirmation information;
Instruction sending unit is used for when the address assignment of the described network segment finishes, and sends the instruction that stops to send probe messages to described office terminal.
16., it is characterized in that described server also comprises according to claim 14 or 15 described servers:
First ciphering unit is used for encrypting generating described network segment probe data packet; And described packet transmitting element is used to send the described network segment probe data packet of encryption; Perhaps,
Described server also comprises second ciphering unit, is used for the described instruction that stops to send probe messages is encrypted; And described instruction sending unit is used to send the described instruction that stops to send probe messages after the encryption.
17. an IP address automatic configuration system is characterized in that, described system comprises as each described office terminal of claim 10 to 13, and as each described IP address assignment server of claim 14 to 16.
18. system according to claim 17 is characterized in that, described system also comprises client, and described client comprises:
The message receiving element is used to receive the probe messages of the network segment under the client, and described current probe messages comprises configuration data, and described configuration data comprises the client identification in the described network segment and the IP address of described client identification correspondence;
Message process unit is used for described current probe messages being resolved, to obtain described configuration data when definite client is not assigned with the IP address or determines the distributing IP address and determine that described IP address allocated need be upgraded;
Data capture unit is used for obtaining from described configuration data according to described client identification the IP address of described client correspondence.
19. system according to claim 18 is characterized in that, described client also comprises:
The confirmation transmitting element is used for sending affirmation IP address addresses distributed confirmation to described IP address assignment server.
CN2009101668476A 2009-08-28 2009-08-28 Method, device and system for automatically allocating IP address Active CN101651722B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2009101668476A CN101651722B (en) 2009-08-28 2009-08-28 Method, device and system for automatically allocating IP address
PCT/CN2010/076442 WO2011023136A1 (en) 2009-08-28 2010-08-28 Method, device thereof and system thereof for automatically configuring internet protocol (ip) addresses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101668476A CN101651722B (en) 2009-08-28 2009-08-28 Method, device and system for automatically allocating IP address

Publications (2)

Publication Number Publication Date
CN101651722A CN101651722A (en) 2010-02-17
CN101651722B true CN101651722B (en) 2011-09-14

Family

ID=41673824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101668476A Active CN101651722B (en) 2009-08-28 2009-08-28 Method, device and system for automatically allocating IP address

Country Status (2)

Country Link
CN (1) CN101651722B (en)
WO (1) WO2011023136A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651722B (en) * 2009-08-28 2011-09-14 华为技术有限公司 Method, device and system for automatically allocating IP address
CN102244689B (en) * 2010-05-13 2014-01-01 华为技术有限公司 Method and equipment for obtaining remote IP address
CN102143244B (en) * 2010-11-01 2013-08-07 华为技术有限公司 Method and device for configuring subnet mask
CN104580547A (en) * 2014-12-23 2015-04-29 曙光信息产业(北京)有限公司 IP (internet protocol) configuration method and device for Linux operation system
CN104461697B (en) * 2014-12-25 2017-09-22 中国科学院信息工程研究所 A kind of online IP address automatic capture system of virtual machine batch and method
CN106603735B (en) * 2015-10-19 2020-06-26 华为技术有限公司 Method, device and system for distributing communication addresses of intelligent instrument
CN109889613B (en) * 2019-04-24 2022-03-18 广州欢聊网络科技有限公司 Message pushing method and device and mobile terminal
CN111447089B (en) * 2020-03-24 2023-07-14 深信服科技股份有限公司 Terminal asset identification method and device and computer readable storage medium
CN112738295B (en) * 2021-01-07 2022-08-30 中国工商银行股份有限公司 IP address exception handling method, device, computer system and storage medium
CN114513492A (en) * 2022-04-18 2022-05-17 浙江国利网安科技有限公司 Method and device for configuring IP address

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004098130A1 (en) * 2003-04-29 2004-11-11 Siemens Aktiengesellschaft Method for the automatic configuration of a communications device
CN1567883A (en) * 2003-06-12 2005-01-19 华为技术有限公司 Method for implementing automatic establishment of VPN address pool
CN101136946A (en) * 2006-08-31 2008-03-05 华为技术有限公司 Base station IP address assignment system and method, base station, access service network gateway

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854901A (en) * 1996-07-23 1998-12-29 Cisco Systems, Inc. Method and apparatus for serverless internet protocol address discovery using source address of broadcast or unicast packet
CN100502413C (en) * 2005-10-12 2009-06-17 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater
CN100550839C (en) * 2006-06-16 2009-10-14 华为技术有限公司 A kind of base station automatic configuration method and system
CN101098347B (en) * 2006-06-28 2011-02-09 华为技术有限公司 Method of assigning IP address for subscriber terminal
CN101651722B (en) * 2009-08-28 2011-09-14 华为技术有限公司 Method, device and system for automatically allocating IP address

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004098130A1 (en) * 2003-04-29 2004-11-11 Siemens Aktiengesellschaft Method for the automatic configuration of a communications device
CN1567883A (en) * 2003-06-12 2005-01-19 华为技术有限公司 Method for implementing automatic establishment of VPN address pool
CN101136946A (en) * 2006-08-31 2008-03-05 华为技术有限公司 Base station IP address assignment system and method, base station, access service network gateway

Also Published As

Publication number Publication date
WO2011023136A1 (en) 2011-03-03
CN101651722A (en) 2010-02-17

Similar Documents

Publication Publication Date Title
CN101651722B (en) Method, device and system for automatically allocating IP address
CN108307355B (en) Multicast implementation method of L PWAN Internet of things
CN101478576B (en) Method, apparatus and system for selecting service network
CN1947373B (en) Method for managing traffic encryption key in wireless portable internet system and protocol configuration method thereof, and operation method of traffic encryption key state machine in subscriber st
CN101421999B (en) Network equipment and network equipment management method
CN1985470A (en) System, network entities and computer programs for configuration management of a dynamic host configuration protocol framework
JP5850084B2 (en) Method for group change occurring in MTC
CN107204873B (en) Method for switching target domain name resolution server and related equipment
KR20040102216A (en) Methods and apparatus for mobile ip dynamic home agent allocation
CN107005430B (en) Communication method, device and system based on data link layer
CN102447679A (en) Method and system for ensuring safety of peer-to-peer (P2P) network data
CN103069750B (en) The method and system of the connection for being efficiently used between communication network and this communication network and customer rs premise equipment
CN101001264A (en) Method, device, network edge equipment and addressing server for L1VPN address distribution
CN105979202B (en) Data transmission method and device
KR101710385B1 (en) Method, apparatus and computer program for managing arp packet
KR20170076064A (en) Method, apparatus and computer program for subnetting of software defined network
WO2018054272A1 (en) Data transmission method and device, and computer storage medium
KR101789264B1 (en) Authentication system of IoT devices and Method using the same
CN105337766A (en) Network element automatic discovery method and system based on DHCP
JP4889984B2 (en) Communication system and communication method
KR20180081965A (en) Apparatus and methdo for providing network service
CN112600947B (en) Address management method and device
JP2018174550A (en) Communication system
CN101562613B (en) Method for controlling multicast source and network access server
KR101425215B1 (en) METHOD FOR PROTECTING HOST APPARATUS IN IPv6 NETWORK, AND NETWORK MANAGEMENT APPARATUS THEREOF

Legal Events

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