CN108933847A - A kind of method and device that address is quickly distributed - Google Patents
A kind of method and device that address is quickly distributed Download PDFInfo
- Publication number
- CN108933847A CN108933847A CN201810712739.3A CN201810712739A CN108933847A CN 108933847 A CN108933847 A CN 108933847A CN 201810712739 A CN201810712739 A CN 201810712739A CN 108933847 A CN108933847 A CN 108933847A
- Authority
- CN
- China
- Prior art keywords
- address
- client
- message
- discovery message
- carried
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5061—Pools of addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5084—Providing for device mobility
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Abstract
The present invention provides a kind of method and device that address is quickly distributed, and makes Dynamic Host Configuration Protocol server when receiving the discovery message of client transmission, judges whether carry default mark in the discovery message;If so, distributing IP address for the client, and corresponding lease record is generated, the response message that client feedback carries the IP address is then stated, so that the client accesses network using the IP address in the response message;If it is not, then pre-allocating IP address for the client, and the offer message of the predistribution IP address is carried to the client feedback, so that the client can use IP address according to the offer message feedback request message to obtain.Therefore the present invention can be realized by way of the interaction of two steps carries out quick IP address distribution to client, so as to promote address allocation rates, reduces message interaction to the occupancy of bandwidth.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of method and devices that address is quickly distributed.
Background technique
DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) is common protocol,
By DHCP protocol, client can obtain the IP address of Dynamic Host Configuration Protocol server dynamic allocation.Client obtains for the first time in existing way
When taking IP address, client and Dynamic Host Configuration Protocol server usually find that message, DHCP-OFFER provide report by DHCP-DISCOVER
Text, DHCP-REQUEST request message and DHCP-ACK confirm response message, and the interaction of this four step is with obtaining an available IP
Location, detailed process is as follows:
Dhcp client finds Dynamic Host Configuration Protocol server by sending DHCP-DISCOVER message;
The Dynamic Host Configuration Protocol server that DHCP-DISCOVER message is received in network can be searched out from dhcp address pool arbitrarily may be used
After IP address, IP address is sent to by dhcp client by DHCP-OFFER message;
Dhcp client sends DHCP-REQUEST request message after receiving the IP address dynamically distributed;
After receiving DHCP-REQUEST message, Dynamic Host Configuration Protocol server can be sent after book server generates corresponding lease record
DHCP-ACK message notifies dhcp client that the IP address of dynamic allocation can be used as response;
If dhcp client is unavailable by the IP address of DHCP-REQUEST message request, Dynamic Host Configuration Protocol server can be sent
DHCP NAK message refuses the request of dhcp client, and triggers dhcp client and start new IP address application process.
In the network for being configured with a Dynamic Host Configuration Protocol server, there is still a need for obtain one by above-mentioned four steps interactive process for client
A available IP address, efficiency are lower;If in the network for being configured with multiple Dynamic Host Configuration Protocol server, since a client carries out
When Address requests, multiple Dynamic Host Configuration Protocol server in network can distribute IP address for client and provide offer message, and objective
Family end only will use the IP address of one of Dynamic Host Configuration Protocol server distribution, therefore client is not only needed through the interaction of above-mentioned four step
Process obtains IP address, can also lead to client and Dynamic Host Configuration Protocol server because of the interaction of multiple Dynamic Host Configuration Protocol server and the client
Interactive efficiency it is lower and increase the load of bandwidth in network.
Summary of the invention
In view of this, the present invention provides a kind of method and device that address is quickly distributed, to reduce DHCP in the prior art
The step that server is interacted with client reduces the load of network bandwidth.
Specifically, the present invention is achieved through the following technical solutions:
The present invention provides a kind of method that address is quickly distributed, and the method is applied to Dynamic Host Configuration Protocol server, the method packet
It includes:
When receiving the discovery message of client transmission, judge whether carry default mark in the discovery message;
If so, distributing IP address for the client, corresponding lease record is generated, is carried to the client feedback
The response message of the IP address, so that the client accesses network using the IP address in the response message;
If it is not, then pre-allocating IP address for the client, and with carrying the predistribution IP to the client feedback
The offer message of location, so that the client can use IP address according to the offer message feedback request message to obtain.
As one embodiment, judge whether carry default mark in the discovery message, comprising:
Check whether Option254 Rapid Commit field is 1 in the discovery message;
Default mark is carried in the discovery message if so, determining;
If not, it is determined that do not carry default mark in the discovery message.
As one embodiment, IP address is distributed for the client, comprising:
Judge that the MAC Address of the client carried in the discovery message is recorded with the presence or absence of lease;
If so, the allocated IP address in lease record is distributed to the client;
If it is not, then judging whether carry particular ip address in the discovery message;If carrying, and the particular ip address exists
In address pool, then the particular ip address is distributed into the client;If not carrying, with obtaining available IP from address pool
Distribute to the client in location.
As one embodiment, IP address is distributed for the client, further includes:
Judge that the MAC Address of the client carried in the discovery message whether there is corresponding IP in static binding table
Address;
If so, the corresponding IP address of the MAC Address is distributed to the client;
If it is not, then obtaining available IP address from address pool distributes to the client.
The present invention also provides a kind of method that address is quickly distributed, the method is applied to client, which comprises
Creation finds message, and default mark is carried in the discovery message;
The discovery message is sent to Dynamic Host Configuration Protocol server, so that the Dynamic Host Configuration Protocol server is carried according in the discovery message
It is default be designated as client distribution IP address and generate corresponding lease record, and carry institute to the client feedback
State the response message of IP address;
When receiving the response message, the IP address carried in the response message is obtained, is visited using the IP address
Ask network.
Based on identical design, the present invention also provides a kind of quick assigned unit in address, described device is applied to DHCP
Server, which comprises
Judging unit, for judging whether carry in the discovery message when receiving the discovery message of client transmission
Default mark;
Allocation unit generates corresponding rent if distributing IP address for carrying default mark for the client
It about records, the response message of the IP address is carried to the client feedback, so that the client uses the response report
IP address in text accesses network;
Unit is pre-allocated, if pre-allocating IP address for not carrying default mark for the client, and to the visitor
Family end feedback carries the offer message of the predistribution IP address, so that the client is according to the offer message feedback request
Message can use IP address to obtain.
As one embodiment, the judging unit is specifically used for checking Option254 Rapid in the discovery message
Whether Commit field is 1;Default mark is carried in the discovery message if so, determining;If not, it is determined that the discovery report
Default mark is not carried in text.
As one embodiment, the allocation unit, specifically for the client for judging to carry in the discovery message
The MAC Address at end is recorded with the presence or absence of lease;If so, the allocated IP address in lease record is distributed to described
Client;If it is not, then judging whether carry particular ip address in the discovery message;If carrying, and the particular ip address exists
In address pool, then the particular ip address is distributed into the client;If not carrying, with obtaining available IP from address pool
Distribute to the client in location.
As one embodiment, the allocation unit is also used to judge the client carried in the discovery message
MAC Address in static binding table whether there is corresponding IP address;If so, by the corresponding IP address of the MAC Address
Distribute to the client;If it is not, then obtaining available IP address from address pool distributes to the client.
The present invention also provides a kind of quick assigned unit in address, described device is applied to client, which comprises
Message creating unit carries default mark for creating discovery message in the discovery message;
Packet sending unit, for sending the discovery message to Dynamic Host Configuration Protocol server so that the Dynamic Host Configuration Protocol server according to
Carried in the discovery message it is default be designated as client distribution IP address and generate corresponding lease record, and to institute
State the response message that client feedback carries the IP address;
Message receiving unit, for when receiving the response message, obtaining the IP address carried in the response message,
Network is accessed using the IP address.
It can be seen that the present invention can make Dynamic Host Configuration Protocol server when receiving the discovery message of client transmission, described in judgement
It was found that whether carrying default mark in message;It if so, illustrating that the client supports the function of two steps interaction, therefore can be institute
Client distribution IP address is stated, and generates corresponding lease record, then states the response that client feedback carries the IP address
Message, so that the client accesses network using the IP address in the response message;If it is not, then illustrating that the client is not propped up
The function of two steps interaction is held, then can pre-allocate IP address for the client, and described pre- to client feedback carrying
The offer message for distributing IP address, so that the client is according to the offer message feedback request message come with obtaining IP available
Location.Therefore the present invention can be realized by way of the interaction of two steps carries out quick IP address distribution to client, so as to
Address allocation rates are promoted, reduce message interaction to the occupancy of bandwidth.
Detailed description of the invention
Fig. 1 is the process flow diagram for the method that a kind of one of illustrative embodiments of present invention address is quickly distributed;
Fig. 2 is the process flow for the method that another address in a kind of illustrative embodiments of the present invention is quickly distributed
Figure;
Fig. 3 is the process flow that Dynamic Host Configuration Protocol server in a kind of illustrative embodiments of the present invention quickly distributes IP address
Figure;
Dynamic Host Configuration Protocol server is hard where the quick assigned unit in address in a kind of illustrative embodiments of Fig. 4 a present invention
Part structure chart;
The building-block of logic of the quick assigned unit in address in a kind of illustrative embodiments of Fig. 4 b present invention;
The hardware knot of client where the quick assigned unit in address in a kind of illustrative embodiments of Fig. 5 a present invention
Composition;
The building-block of logic of the quick assigned unit in address in a kind of illustrative embodiments of Fig. 5 b present invention.
Specific embodiment
Of the existing technology in order to solve the problems, such as, the present invention provides a kind of method and device that address is quickly distributed, this
Whether invention can make Dynamic Host Configuration Protocol server when receiving the discovery message of client transmission, judge to carry in the discovery message pre-
Bidding is known;If so, illustrating that the client supports the function of two steps interaction, therefore IP address can be distributed for the client,
And corresponding lease record is generated, the response message that client feedback carries the IP address is then stated, so that the client
Network is accessed using the IP address in the response message;If it is not, then illustrating that the client does not support the function of two steps interaction, then
IP address can be pre-allocated for the client, and the offer report of the predistribution IP address is provided to the client feedback
Text, so that the client can use IP address according to the offer message feedback request message to obtain.Therefore the present invention can be with
It is realized by way of the interaction of two steps and quick IP address distribution is carried out to client, so as to promote address allocation rates,
Message interaction is reduced to the occupancy of bandwidth.
Referring to FIG. 1, being the processing for the method that a kind of one of illustrative embodiments of present invention address is quickly distributed
Flow chart, the method are applied to Dynamic Host Configuration Protocol server, which comprises
Step 101, when receive client transmission discovery message when, judge whether carry pre- bidding in the discovery message
Know;If so, going to step 102;If it is not, then going to step 103;
In the present embodiment, when Dynamic Host Configuration Protocol server receives the discovery message (such as DHCP-DISCOVER) of client transmission
When, can further judge whether carry default mark in the discovery message, if carried, illustrate that the client supports this hair
Bright address fast distribution method;If do not carried, illustrate that the client does not support address fast distribution method of the invention.
As one embodiment, Dynamic Host Configuration Protocol server is judging to find the default specific method identified whether is carried in message,
It include: to check whether Option254 Rapid Commit field is 1 in the discovery message;If so, determining the discovery report
Default mark is carried in text;If not, it is determined that do not carry default mark in the discovery message.
Distinguish whether client supports quick distribution address function of the invention by using label, so as to so that
Dynamic Host Configuration Protocol server distinguishes whether client supports quick distribution address function of the invention, in order to according to different interaction flows
It is interacted from client, so as to realize the function of quickly distribution address.
Step 102 distributes IP address for the client, generates corresponding lease record, takes to the client feedback
Response message with the IP address, so that the client accesses network using the IP address in the response message;
In the present embodiment, if carrying default mark in the discovery message of client, illustrate that the client supports this
The quick distribution address function of invention, therefore Dynamic Host Configuration Protocol server can distribute IP address for the client, and generate lease note
It records, includes MAC Address, allocated IP address and the IP address rental period etc. of the client in lease record.
Then the response message (such as DHCP-ACK) of the IP address is carried to the client feedback, so that client uses the response report
IP address in text accesses network.
Step 103 pre-allocates IP address for the client, and with carrying the predistribution IP to the client feedback
The offer message of location, so that the client can use IP address according to the offer message feedback request message to obtain.
In the present embodiment, if not carrying default mark in the discovery message of client, illustrate that the client is not propped up
Quick distribution address function of the invention is held, therefore Dynamic Host Configuration Protocol server can in a conventional manner for client predistribution IP
Then the IP address of the predistribution is added to and provides message (such as DHCP-OFFER) by location, so that client is according to the offer
Message, which continues to obtain to Dynamic Host Configuration Protocol server feedback request message (such as DHCP-REQUEST), can use IP address.
As one embodiment, Dynamic Host Configuration Protocol server is that the specific method that client distributes IP address includes: described in first judgement
It was found that the MAC Address of the client carried in message is recorded with the presence or absence of lease;If so, illustrating that the IP address was once distributed to
The client, client are in renewed treaty state, thus Dynamic Host Configuration Protocol server the lease can be recorded in allocated IP
The client is distributed in address, updates corresponding lease and records and reply response message;If it is not, then illustrating that the IP address is not divided
Dispensing crosses the client, therefore can further judge whether carry particular ip address in the discovery message again;If it carries, and
The particular ip address is then distributed to the client in address pool by the particular ip address, and generates lease record;If
It does not carry, then obtains available IP address from address pool and distribute to the client, and generate lease record.Therefore, Ke Yijin
Amount guarantees that the IP address of client is more stable, will not constantly change, to also enhance the stability of client access network.
As one embodiment, Dynamic Host Configuration Protocol server is the specific method that client distributes IP address further include: described in judgement
It was found that the MAC Address of the client carried in message whether there is corresponding IP address in static binding table;If so, can be with
The corresponding IP address of the MAC Address of client in static binding table is distributed into the client, and generates lease record;If
It is no, then available IP address is obtained from address pool and distribute to the client, and generate lease record.
Above-mentioned two embodiment can be used alone, and can also be used in combination with, and when being used in combination, can first judge
The MAC Address of the client carried in the discovery message whether there is corresponding IP address in static binding table, if not
In the presence of, then judge that the MAC Address of the client carried in the discovery message is recorded with the presence or absence of corresponding lease.In address pool
In for client distribute IP address before can be by judging the IP address of client request with whether belonging to the IP of static binding
Location, or be the IP address that the client was distributed, or be specific IP address, it can be asked with further satisfaction user
The different demands situation of IP address is sought, the efficiency of distribution IP address can also be further promoted.
Middle Dynamic Host Configuration Protocol server is interacted by four steps with client and realizes IP address distribution compared with the prior art, and the present invention can
Quick IP address is carried out to client to realize by way of two step interactions (i.e. only including discovery message and response message)
Distribution reduces message interaction to the occupancy of bandwidth so as to promote address allocation rates.The present invention also supports original simultaneously
Four step interactive modes, therefore the case where client or Dynamic Host Configuration Protocol server do not support address fast distribution method of the invention
Under, can also according to existing four steps exchange method be client distribute IP address, therefore can preferably and the prior art into
Row fusion, applicability are stronger.
Referring to FIG. 2, being the place for the method that another address in a kind of illustrative embodiments of the present invention is quickly distributed
Flow chart is managed, the method is applied to the client of access Dynamic Host Configuration Protocol server, which comprises
Step 201, creation find message, and default mark is carried in the discovery message;
In the present embodiment, when the method that client supports address of the invention quickly to distribute, discovery report can be created
Text carries default mark in the discovery message.As one embodiment, client can add in the discovery message
Option254 Rapid Commit field, and be set as 1, then make Dynamic Host Configuration Protocol server when receiving discovery message, can pass through
It parses the Option254 Rapid Commit field and determines the default mark of carrying in the discovery message, it is thus determined that the client
The method for supporting address of the invention quickly to distribute.
Step 202 sends the discovery message to Dynamic Host Configuration Protocol server, so that the Dynamic Host Configuration Protocol server is reported according to the discovery
Carried in text it is default be designated as client distribution IP address and generate corresponding lease record, and it is anti-to the client
Feedback carries the response message of the IP address;
Client sends the discovery message to Dynamic Host Configuration Protocol server, so that the Dynamic Host Configuration Protocol server is according in the discovery message
The pre- bidding carried determines the method that the client supports address of the invention quickly to distribute.Therefore with distributing IP for the client
Location and the corresponding lease of generation record, MAC Address, allocated IP address in lease record including the client, with
And IP address rental period etc..The response message of the IP address can be carried to the client feedback later.
Step 203, when receiving the response message, the IP address carried in the response message is obtained, using described
IP address accesses network.
When client receives the response message of Dynamic Host Configuration Protocol server feedback, carried in the available response message
IP address, and network is accessed using the IP address.
Middle Dynamic Host Configuration Protocol server is interacted by four steps with client and realizes IP address distribution compared with the prior art, and the present invention can
Quick IP address is carried out to client to realize by way of two step interactions (i.e. only including discovery message and response message)
Distribution reduces message interaction to the occupancy of bandwidth so as to promote address allocation rates.
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, below with reference to Fig. 3 to the solution of the present invention
It is described in further detail.
Fig. 3 is referred to, is the process flow diagram that Dynamic Host Configuration Protocol server quickly distributes IP address in the embodiment of the present invention, this method
Include:
Step 301 receives the DISCOVER message that client is sent;
Step 302, that whether the client mac address for judging in DISCOVER message has in static configuration list item is corresponding
IP address;If so, going to step 303;If it is not, then going to step 304;
Step 303, the IP address obtained in static configuration list item distribute to client, go to step 309;
Step 304 judges that the client mac address in the DISCOVER message is recorded with the presence or absence of lease;If so, turning
Step 305;If it is not, then going to step 306;
Allocated IP address in lease record is distributed to client by step 305, goes to step 309;
Step 306 judges whether carry particular ip address in the DISCOVER message;If so, going to step 307;If it is not,
Then go to step 308;
If step 307, the particular ip address distribute to client in address pool, by the particular ip address, turn step
Rapid 309;
Step 308 distributes to client from the available IP address of address pool acquisition, goes to step 309;
Step 309, according to distribution client IP address generate or the record that renews the lease;
Step 310 judges whether there is default mark in the DISCOVER message;If so, going to step 311;If it is not, then turning
Step 312;
Step 311, the ACK message that the IP address is carried to client feedback;
Step 312, the OFFER message that the IP address is carried to client feedback.
In compared with the existing technology, client and Dynamic Host Configuration Protocol server usually pass through DISCOVER message, OFFER message,
REQUEST message and ACK message, the interaction of this four step obtain an available IP address, and the present invention can pass through the interaction of two steps
Mode, i.e. DISCOVER message and ACK message are realized and carry out quick IP address distribution to client, so as to be promoted
Address allocation rates reduce message interaction to the occupancy of bandwidth.
Based on identical design, the present invention also provides a kind of quick assigned unit in address, which can pass through software
It realizes, can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, address of the invention is quickly divided
The device matched is by the CPU of device where it by computer corresponding in memory as the device on a logical meaning
Program instruction is run after reading.
Fig. 4 a is please referred to, is a kind of one of illustrative embodiments of the present invention quick assigned unit 400 in address, institute
Device is stated applied to Dynamic Host Configuration Protocol server, the basic running environment of the device includes CPU, memory and other hardware, from logical layer
From the point of view of on face, the logical construction of the device 400 is as shown in Figure 4 b, including:
Judging unit 401, for judging whether take in the discovery message when receiving the discovery message of client transmission
The default mark of band;
Allocation unit 402 generates corresponding if distributing IP address for carrying default mark for the client
Lease record, the response message of the IP address is carried to the client feedback, so as to answer described in the client use
Answer the IP address access network in message;
Unit 403 is pre-allocated, if pre-allocating IP address for not carrying default mark for the client, and to institute
The offer message that client feedback carries the predistribution IP address is stated, so that the client is fed back according to the offer message
Request message can use IP address to obtain.
As one embodiment, the judging unit 401 is specifically used for checking Option254 in the discovery message
Whether Rapid Commit field is 1;Default mark is carried in the discovery message if so, determining;If not, it is determined that described
It was found that default mark is not carried in message.
As one embodiment, the allocation unit 402, specifically for the visitor for judging to carry in the discovery message
The MAC Address at family end is recorded with the presence or absence of lease;If so, the allocated IP address in lease record is distributed to institute
State client;If it is not, then judging whether carry particular ip address in the discovery message;If carrying, and the particular ip address
In address pool, then the particular ip address is distributed into the client;If not carrying, available IP is obtained from address pool
Distribute to the client in address.
As one embodiment, the allocation unit 402 is also used to judge the client carried in the discovery message
The MAC Address at end whether there is corresponding IP address in static binding table;If so, by the corresponding IP of the MAC Address
Distribute to the client in location;If it is not, then obtaining available IP address from address pool distributes to the client.
Fig. 5 a is please referred to, is a kind of one of illustrative embodiments of the present invention quick assigned unit 500 in address, institute
Device is stated applied to client, the basic running environment of the device includes CPU, memory and other hardware, from logic level
From the point of view of, the logical construction of the device 500 is as shown in Figure 5 b, including:
Message creating unit 501 carries default mark for creating discovery message in the discovery message;
Packet sending unit 502, for sending the discovery message to Dynamic Host Configuration Protocol server, so that the Dynamic Host Configuration Protocol server root
According to carried in the discovery message it is default be designated as client distribution IP address and generate corresponding lease record, and to
The client feedback carries the response message of the IP address;
Message receiving unit 503, for when receiving the response message, obtaining the IP carried in the response message
Location accesses network using the IP address.
In conclusion the present invention can make Dynamic Host Configuration Protocol server when receiving the discovery message of client transmission, described in judgement
It was found that whether carrying default mark in message;It if so, illustrating that the client supports the function of two steps interaction, therefore can be institute
Client distribution IP address is stated, and generates corresponding lease record, then states the response that client feedback carries the IP address
Message, so that the client accesses network using the IP address in the response message;If it is not, then illustrating that the client is not propped up
The function of two steps interaction is held, then can pre-allocate IP address for the client, and described pre- to client feedback carrying
The offer message for distributing IP address, so that the client is according to the offer message feedback request message come with obtaining IP available
Location.Therefore the present invention can be realized by way of the interaction of two steps carries out quick IP address distribution to client, so as to
Address allocation rates are promoted, reduce message interaction to the occupancy of bandwidth.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (10)
1. a kind of method that address is quickly distributed, which is characterized in that the method takes applied to DHCP dynamic host configuration protocol
Business device, which comprises
When receiving the discovery message of client transmission, judge whether carry default mark in the discovery message;
If so, distributing IP address for the client, corresponding lease record is generated, to described in client feedback carrying
The response message of IP address, so that the client accesses network using the IP address in the response message;
If it is not, then pre-allocating IP address for the client, and the predistribution IP address is carried to the client feedback
Message is provided, so that the client can use IP address according to the offer message feedback request message to obtain.
2. the method according to claim 1, wherein judge whether carry default mark in the discovery message,
Include:
Check whether Option254Rapid Commit field is 1 in the discovery message;
Default mark is carried in the discovery message if so, determining;
If not, it is determined that do not carry default mark in the discovery message.
3. the method according to claim 1, wherein distributing IP address for the client, comprising:
Judge that the MAC Address of the client carried in the discovery message is recorded with the presence or absence of lease;
If so, the allocated IP address in lease record is distributed to the client;
If it is not, then judging whether carry particular ip address in the discovery message;If carrying, and the particular ip address is in address
The particular ip address is then distributed to the client by Chi Zhong;If not carrying, available IP address point is obtained from address pool
Client described in dispensing.
4. the method according to claim 1, wherein distributing IP address for the client, further includes:
Judge the MAC Address for finding the client carried in message in static binding table with the presence or absence of corresponding IP
Location;
If so, the corresponding IP address of the MAC Address is distributed to the client;
If it is not, then obtaining available IP address from address pool distributes to the client.
5. a kind of method that address is quickly distributed, which is characterized in that the method is applied to client, which comprises
Creation finds message, and default mark is carried in the discovery message;
The discovery message is sent to Dynamic Host Configuration Protocol server, so that the Dynamic Host Configuration Protocol server is pre- according to carrying in the discovery message
Bidding is that the client distributes IP address and generates corresponding lease record, and carries the IP to the client feedback
The response message of address;
When receiving the response message, the IP address carried in the response message is obtained, accesses net using the IP address
Network.
6. a kind of quick assigned unit in address, which is characterized in that described device is applied to Dynamic Host Configuration Protocol server, the method packet
It includes:
Judging unit, for judging whether to carry in the discovery message default when receiving the discovery message of client transmission
Mark;
Allocation unit generates corresponding lease note if distributing IP address for carrying default mark for the client
Record, the response message of the IP address is carried to the client feedback, so that the client uses in the response message
IP address access network;
Unit is pre-allocated, if pre-allocating IP address for not carrying default mark for the client, and to the client
Feedback carries the offer message of the predistribution IP address, so that the client is according to the offer message feedback request message
IP address can be used to obtain.
7. device according to claim 6, which is characterized in that
The judging unit, specifically for checking, whether Option254Rapid Commit field is 1 in the discovery message;
Default mark is carried in the discovery message if so, determining;If not, it is determined that do not carry pre- bidding in the discovery message
Know.
8. device according to claim 6, which is characterized in that
The allocation unit, specifically for judging that the MAC Address of the client carried in the discovery message whether there is
Lease record;If so, the allocated IP address in lease record is distributed to the client;If it is not, then judging
Whether particular ip address is carried in the discovery message;If carrying, and the particular ip address is in address pool, then by the spy
Determine IP address and distributes to the client;If not carrying, available IP address is obtained from address pool and distributes to the client.
9. device according to claim 6, which is characterized in that
The allocation unit is also used to judge the MAC Address of the client carried in the discovery message in static binding
It whether there is corresponding IP address in table;If so, the corresponding IP address of the MAC Address is distributed to the client;If
It is no, then available IP address is obtained from address pool distribute to the client.
10. a kind of quick assigned unit in address, which is characterized in that described device is applied to client, which comprises
Message creating unit carries default mark for creating discovery message in the discovery message;
Packet sending unit, for sending the discovery message to Dynamic Host Configuration Protocol server, so that the Dynamic Host Configuration Protocol server is according to
It was found that carried in message it is default be designated as client distribution IP address and generate corresponding lease record, and to the visitor
Family end feedback carries the response message of the IP address;
Message receiving unit is used for when receiving the response message, obtaining the IP address carried in the response message
The IP address accesses network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810712739.3A CN108933847A (en) | 2018-06-29 | 2018-06-29 | A kind of method and device that address is quickly distributed |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810712739.3A CN108933847A (en) | 2018-06-29 | 2018-06-29 | A kind of method and device that address is quickly distributed |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108933847A true CN108933847A (en) | 2018-12-04 |
Family
ID=64447601
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810712739.3A Pending CN108933847A (en) | 2018-06-29 | 2018-06-29 | A kind of method and device that address is quickly distributed |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108933847A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111935335A (en) * | 2020-08-14 | 2020-11-13 | 江苏创通电子股份有限公司 | DHCP address allocation method and device |
CN112003771A (en) * | 2020-08-25 | 2020-11-27 | 四川九州电子科技股份有限公司 | Method for realizing intelligent network access of LAN side terminal |
CN114172864A (en) * | 2020-08-21 | 2022-03-11 | 中国移动通信集团重庆有限公司 | Internet of things terminal address allocation method and device |
CN114448932A (en) * | 2021-12-29 | 2022-05-06 | 锐捷网络股份有限公司 | Address allocation method and device and electronic equipment |
CN114615234A (en) * | 2022-03-11 | 2022-06-10 | 新华三工业互联网有限公司 | Address allocation method and device |
WO2024021094A1 (en) * | 2022-07-29 | 2024-02-01 | 华为技术有限公司 | Communication method and apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8862705B2 (en) * | 2009-07-30 | 2014-10-14 | Calix, Inc. | Secure DHCP processing for layer two access networks |
CN104378455A (en) * | 2014-11-13 | 2015-02-25 | 杭州华三通信技术有限公司 | IP address distribution method and device |
CN106231003A (en) * | 2016-07-28 | 2016-12-14 | 杭州华三通信技术有限公司 | A kind of address distribution method and device |
CN107087041A (en) * | 2017-06-30 | 2017-08-22 | 杭州迪普科技股份有限公司 | A kind of method and apparatus to dhcp client static binding IP address |
-
2018
- 2018-06-29 CN CN201810712739.3A patent/CN108933847A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8862705B2 (en) * | 2009-07-30 | 2014-10-14 | Calix, Inc. | Secure DHCP processing for layer two access networks |
CN104378455A (en) * | 2014-11-13 | 2015-02-25 | 杭州华三通信技术有限公司 | IP address distribution method and device |
CN106231003A (en) * | 2016-07-28 | 2016-12-14 | 杭州华三通信技术有限公司 | A kind of address distribution method and device |
CN107087041A (en) * | 2017-06-30 | 2017-08-22 | 杭州迪普科技股份有限公司 | A kind of method and apparatus to dhcp client static binding IP address |
Non-Patent Citations (1)
Title |
---|
S.PARK等: "Rapid Commit Option for the Dynamic Host Configuration Protocol version 4 (DHCPv4)", 《NETWORK WORKING GROUP RFC4039》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111935335A (en) * | 2020-08-14 | 2020-11-13 | 江苏创通电子股份有限公司 | DHCP address allocation method and device |
CN114172864A (en) * | 2020-08-21 | 2022-03-11 | 中国移动通信集团重庆有限公司 | Internet of things terminal address allocation method and device |
CN114172864B (en) * | 2020-08-21 | 2024-04-09 | 中国移动通信集团重庆有限公司 | Internet of things terminal address allocation method and device |
CN112003771A (en) * | 2020-08-25 | 2020-11-27 | 四川九州电子科技股份有限公司 | Method for realizing intelligent network access of LAN side terminal |
CN114448932A (en) * | 2021-12-29 | 2022-05-06 | 锐捷网络股份有限公司 | Address allocation method and device and electronic equipment |
CN114615234A (en) * | 2022-03-11 | 2022-06-10 | 新华三工业互联网有限公司 | Address allocation method and device |
WO2024021094A1 (en) * | 2022-07-29 | 2024-02-01 | 华为技术有限公司 | Communication method and apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108933847A (en) | A kind of method and device that address is quickly distributed | |
AU2004288532B2 (en) | Method and system for accessing and managing virtual machines | |
CN102137014B (en) | Resource management method, system and resource manager | |
CN108924268B (en) | Container cloud service system and pod creation method and device | |
US20030069946A1 (en) | Central directory server | |
US20030163341A1 (en) | Apparatus and method of dynamically updating dynamic host configuration protocol (DHCP) options | |
CN108933829A (en) | A kind of load-balancing method and device | |
CN111585887B (en) | Communication method and device based on multiple networks, electronic equipment and storage medium | |
CN104380278A (en) | Device, system, and method for client-governed session persistency between one or more clients and servers of a data center | |
CN106453681B (en) | IP address allocation method and device | |
CN102027732A (en) | Providing access over an ip network to a server application program | |
CN111327668B (en) | Network management method, device, equipment and storage medium | |
CN108243079A (en) | A kind of method and apparatus that network access is carried out based on VPC | |
CN105871591A (en) | Method and device for distributing CDN (Content Delivery Network) addresses | |
CN106060131B (en) | A kind of method and apparatus for distributing dns server | |
KR101402367B1 (en) | Efficient and cost-effective distributed call admission control | |
CN105071965B (en) | A kind of management system of the network equipment | |
CN103369038A (en) | PaaS (platform as a service) management platform and method | |
CN104243628A (en) | Continuous multi-port application method and device | |
CN109743357B (en) | Method and device for realizing service access continuity | |
CN107547674A (en) | Address distribution method and device | |
CN102577249B (en) | The example set of the connection of dynamic addressing main frame | |
CN109005071B (en) | Decision deployment method and scheduling equipment | |
US20020002616A1 (en) | Method and apparatus for providing multimedia service in network environment | |
CN111683164B (en) | IP address configuration method and VPN service system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181204 |