CN102325202A - Method and equipment for managing customer address table - Google Patents

Method and equipment for managing customer address table Download PDF

Info

Publication number
CN102325202A
CN102325202A CN201110336668A CN201110336668A CN102325202A CN 102325202 A CN102325202 A CN 102325202A CN 201110336668 A CN201110336668 A CN 201110336668A CN 201110336668 A CN201110336668 A CN 201110336668A CN 102325202 A CN102325202 A CN 102325202A
Authority
CN
China
Prior art keywords
address
dhcp
message
dhcp relay
lease
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201110336668A
Other languages
Chinese (zh)
Other versions
CN102325202B (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201110336668.XA priority Critical patent/CN102325202B/en
Publication of CN102325202A publication Critical patent/CN102325202A/en
Application granted granted Critical
Publication of CN102325202B publication Critical patent/CN102325202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and equipment for managing a customer address table. The method comprises the following steps of: after a DHCP (Dynamic Host Configuration Protocol) request message sent from a DHCP client is received by a DHCP relay, establishing a corresponding customer address entry; adding a security option into the message and then sending the processed message to a DHCP server; after a DHCP release massage is received by the DHCP server, if judging that an address of the DHCP relay is recorded in a corresponding IP (Internet Protocol) address lease and the DHCP relay is labeled with an opened security function, forwarding the released message to the DHCP relay; or after the DHCP server finds out that the IP address lease is expired, if judging that the address of the DHCP relay is recorded in the corresponding IP (Internet Protocol) address lease and the DHCP relay is labeled with the opened security function, generating the DHCP released massage according to a corresponding client address and sending the DHCP released massage to the DHCP relay; after the DHCP relay receives the released message sent by the DHCP server, deleting the corresponding customer address entry. By utilizing the method provided by the invention, the customer address table on the DHCP relay can be aged in time so that network expenditures can be reduced.

Description

A kind of station address table management method and equipment
Technical field
The present invention relates to communication technical field, relate in particular to a kind of station address table management method and equipment that is applied to comprise the network system of dhcp client, DHCP relay and Dynamic Host Configuration Protocol server.
Background technology
DHCP (Dynamic Host Configuration Protocol, DHCP) is used for being network equipment network configuration parameters such as distributing IP address dynamically.
DHCP adopts the client/server communication pattern, proposes the configuration application by user end to server, and server is returned as corresponding configuration informations such as client IP address allocated, to realize the dynamic-configuration of information such as IP address.
DHCP only is applicable to that dhcp client and server are in the situation in the same subnet.For carrying out the DynamicHost configuration, a Dynamic Host Configuration Protocol server need all be set on all network segments, this obviously is very uneconomic.
The introducing of dhcp relay feature has solved this difficult problem: client can be communicated by letter with the Dynamic Host Configuration Protocol server of other network segments through DHCP relay, finally gets access to the IP address.Like this, the dhcp client on a plurality of networks can use same Dynamic Host Configuration Protocol server, both provides cost savings, and is convenient to again manage concentratedly.Accomplish through DHCP relay in the process of dynamic-configuration, the processing mode of the processing mode of dhcp client and Dynamic Host Configuration Protocol server when not passing through DHCP relay is basic identical.
In order to prevent illegitimate client static configuration IP address and access external network, DHCP relay is supported the matching addresses audit function.After enabling this function on the DHCP relay equipment interface; When client through DHCP relay when Dynamic Host Configuration Protocol server gets access to the IP address; DHCP relay can write down client ip address and MAC (Media Access Control automatically; Medium access control) binding relationship of address, dynamic subscriber's address list item of generation DHCP relay.Simultaneously, for satisfying the demand that the user adopts legal fixed ip address access external network, DHCP relay is also supported static configuration station address list item, i.e. the binding relationship of manual configuration of IP address and MAC Address on DHCP relay.
After DHCP relay receives the message of client transmission; If the list item that in user address list, (comprises the list item of DHCP relay dynamically recording and the station address list item of manual configuration) and not do not mate with message source IP address and source MAC; Then do not learn ARP (Address Resolution Protocol, the address resolution protocol) list item of this client.After DHCP relay receives that Dynamic Host Configuration Protocol server is replied the message to this client, can't response message be sent to this client.Thereby the assurance illegitimate client can't be passed through DHCP relay and external network communication.
DHCP relay needs the IP address and the MAC Address of record dhcp client in order to realize safety function, and deletion record when client rolls off the production line.Because DHCP RELEASE (DHCP release) message is a unicast message, directly sends to Dynamic Host Configuration Protocol server, handle without DHCP relay, so DHCP relay can't come deletion record through the DHCP RELEASE message that client is sent.
A solution of prior art is: initiatively send DHCP REQUEST (DHCP request) handshake message to Dynamic Host Configuration Protocol server through DHCP relay and realize, the concrete realization as follows:
DHCP relay timed sending handshake message, for each IP address and MAC Address record, DHCP REQUEST message of DHCP relay structure carries the IP address of client and the interface IP address of MAC Address and DHCP relay in the message.After Dynamic Host Configuration Protocol server is received message, look for lease, respond DHCP NAK message if the client mac address in the MAC Address of lease and the message is inconsistent according to client ip address; If unanimity then respond DHCP ACK message; If do not find lease then do not respond.DHCP relay is received the NAK message, explains that the IP address also using, and does not then delete IP and MAC record; If receive ACK, explain that the IP address do not using, then delete IP address and MAC Address record at once; If do not receive replying of server after sending three DHCP REQUEST messages, then think the not lease record of this IP address of server, then delete the record of IP address and MAC Address.
The inventor finds that there is following defective at least in prior art in realizing process of the present invention:
DHCP relay needs a large amount of handshake message of timed sending, when list item more (can reach tens K bar list items) time, can increase network burden, also can increase the burden of Dynamic Host Configuration Protocol server.In addition, the user address list on the DHCP relay is aging untimely.
Summary of the invention
The invention provides a kind of station address table management method and equipment, in order to the big and aging untimely problem of user address list updating cost on the DHCP relay in the solution prior art.
Station address table management method provided by the invention is applied to include the network system of dhcp client, DHCP relay and Dynamic Host Configuration Protocol server, and this method comprises:
DHCP relay receives that dhcp client sends be used to confirm to be accepted as the DHCP request message of its IP address allocated after; Create corresponding station address list item; And in said DHCP request message, add the option that is used to identify the unlatching safety function, the DHCP request message after handling is sent to Dynamic Host Configuration Protocol server; Wherein, Said station address list item records the IP address and the medium access control MAC Address of said client, and said option is used to trigger Dynamic Host Configuration Protocol server and when discharging the dhcp client address, sends the message that is used to indicate deletion station address list item to DHCP relay;
After said DHCP relay being used to of receiving that Dynamic Host Configuration Protocol server sends indicated the message of deletion station address list item, delete corresponding station address list item.
DHCP relay equipment provided by the invention is applied to include the network system of dhcp client and Dynamic Host Configuration Protocol server, and this DHCP relay equipment comprises:
Memory module is used to store the station address list item, records the IP address and the MAC Address of client in the said station address option;
First receiver module is used to receive the DHCP request message that is used to confirm to be accepted as its IP address allocated that dhcp client sends;
Message processing module (MPM) be used for adding the option that is used to identify the unlatching safety function at the said DHCP request message that said first receiver module receives, and the DHCP request message after will handling sends to Dynamic Host Configuration Protocol server; Wherein, said option is used to trigger Dynamic Host Configuration Protocol server and when discharging the dhcp client address, is used to indicate the message of deleting the station address list item to the DHCP relay transmission;
Second receiver module is used to receive the message that is used to indicate deletion station address list item that Dynamic Host Configuration Protocol server sends;
The list item administration module, the message that is used for receiving according to said first receiver module is created corresponding station address list item, deletes corresponding station address list item according to the message that said second receiver module receives.
The management method of user address list provided by the invention; Be applied to include the network system of dhcp client, DHCP relay and Dynamic Host Configuration Protocol server; Record the station address list item in the said DHCP relay, record client ip address and MAC Address in the said station address list item, this method comprises:
Dynamic Host Configuration Protocol server receives that DHCP relay sends be used to confirm to accept the DHCP request message of this Dynamic Host Configuration Protocol server institute IP address allocated after; If parse wherein to carry and be used to identify the option of opening safety function; The address of the said DHCP relay of record in the lease of corresponding IP address then, and this DHCP relay is designated launched safety function;
Receive the DHCP release message of client transmission when said Dynamic Host Configuration Protocol server after; Launched safety function if judge that the address that records DHCP relay in the lease of corresponding IP address and this DHCP relay are identified as; Then send the message that is used to indicate deletion station address list item to corresponding D HCP relaying, and delete this IP address lease information according to the address of this DHCP relay;
When said Dynamic Host Configuration Protocol server is found IP address lease expires; Launched safety function if judge that the address that records DHCP relay in this IP address lease and this DHCP relay are identified as; Then generate the message that is used to indicate deletion station address list item according to the dhcp client address of writing down in this ID address lease; According to the address of the DHCP relay that writes down in this IP address lease, the message that generates is sent to corresponding DHCP relay, and delete this IP address lease.
Dynamic Host Configuration Protocol server provided by the invention; Be applied to include the network system of dhcp client and DHCP relay; Record the station address list item in the said DHCP relay; Record client ip address and MAC Address in the said station address list item, this Dynamic Host Configuration Protocol server comprises: first receiver module, address assignment processing module, second receiver module, control module and sending module, wherein:
First receiver module is used to receive the DHCP request message that is used to confirm to accept this Dynamic Host Configuration Protocol server institute IP address allocated that DHCP relay sends;
Second receiver module is used to receive the DHCP release message that client is sent;
Control module is used for carrying when being used to identify the option of opening safety function when parsing DHCP request message that said first receiver module receives, indicates said address assignment processing module that the address lease is set; After said second receiver module receives DHCP release message; Launched safety function if judge that the address that records DHCP relay in the lease of corresponding IP address and this DHCP relay are identified as; Then indicate said sending module to send the message that is used to indicate deletion station address list item, and indicate said this IP address lease information of address assignment module deletion according to the address of this DHCP relay; When finding IP address lease expires; Launched safety function if judge that the address that records DHCP relay in this IP address lease and this DHCP relay are identified as; Then generate the message that is used to indicate deletion station address list item according to the dhcp client address of writing down in this IP address lease; And indicate said sending module to send the message that generates, and indicate said this IP address lease of address assignment processing module deletion according to the address of the DHCP relay that writes down in this IP address lease;
The address assignment processing module is used for the indication according to said control module, the address of the said DHCP relay of record in the lease of corresponding IP address, and this DHCP relay is designated launched safety function; And, according to the indication of said control module, deletion corresponding IP address lease;
Sending module is used for the indication according to said control module, sends the message that message is used to indicate deletion station address list item to DHCP relay.
Compared with prior art, useful technique effect of the present invention comprises:
The present invention carries in being transmitted to the DHCP request message of Dynamic Host Configuration Protocol server through DHCP relay and is used to identify the option of opening safety function; To trigger Dynamic Host Configuration Protocol server at the release message of receiving client or after finding the address lease expires; The notice DHCP relay is deleted corresponding station address list item; On the one hand; Regularly send handshake message with DHCP relay in the prior art and compare, the present invention only just produces network message when needs are deleted address lease station address list item, thereby has reduced network and device processes expense; On the other hand, when the lease of needs address, can in time trigger DHCP relay deletion relative users address list item, solve the aging untimely problem of station address list item in the prior art.
Description of drawings
Fig. 1 is the network architecture sketch map that the embodiment of the invention was suitable for;
Fig. 2 A is the schematic flow sheet of the client application IP address that provides of the embodiment of the invention;
Fig. 2 B is the schematic flow sheet of the client releasing IP addresses that provides of the embodiment of the invention;
Fig. 2 C is the handling process sketch map of the IP address lease expires that provides of the embodiment of the invention;
The form sketch map of the secure option that Fig. 3 provides for the embodiment of the invention;
The structural representation of the DHCP relay equipment that Fig. 4 provides for the embodiment of the invention;
The structural representation of the Dynamic Host Configuration Protocol server that Fig. 5 provides for the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing the embodiment of the invention is described in detail.
Referring to Fig. 1, be the suitable network architecture sketch map of the embodiment of the invention.As shown in the figure, comprise dhcp client, Dynamic Host Configuration Protocol server and DHCP relay in this network architecture.Dynamic Host Configuration Protocol server and dhcp client be not in same local area network (LAN); DHCP relay is born relay services between the dhcp client and the server that are between different segment; DHCP protocol massages inter-network section is relayed to the purpose Dynamic Host Configuration Protocol server, makes the dhcp client on the heterogeneous networks can use a Dynamic Host Configuration Protocol server jointly.During client inter-network section applied address, dhcp client dynamically obtains IP address and other network parameters through DHCP relay with the mode of DHCP.
The embodiment of the invention has been expanded the DHCP option of DHCP message, and has expanded the function of DHCP relay and Dynamic Host Configuration Protocol server.Promptly; Designed new DHCP option (for simplicity; Below this option is called option A), this option A is made an addition in the DHCP request message by DHCP relay as required, is used to trigger Dynamic Host Configuration Protocol server and is receiving that address that client is sent discharges message or/and during the lease expires of address; The notice DHCP relay is deleted corresponding station address list item, promptly deletes the IP address of this client and the corresponding relation record of MAC Address.
Be example with dhcp client application IP address and releasing IP addresses below, the management process of the user address list that the embodiment of the invention is provided is described in detail.
Shown in Fig. 2 A, when dhcp client application IP address, its flow process can comprise:
Step 201~202, dhcp client sends DHCP DISCOVER message with broadcast mode.DHCP relay is handled according to old process after receiving DHCP DISCOVER message, and the DHCP DISCOVER message after will handling sends to Dynamic Host Configuration Protocol server with mode of unicast.
Concrete, after DHCP relay receives the DHCP DISCOVER message that dhcp client sends, the giaddr field in the message is filled to the IP address of DHCP relay, and the message clean culture is transmitted to the Dynamic Host Configuration Protocol server of appointment according to configuration.
Step 203~204, Dynamic Host Configuration Protocol server are this dhcp client distributing IP address, and send to DHCP relay with other configuration parameters through DHCP OFFER message after receiving the DHCP DISCOVER message of DHCP relay transmission.DHCP relay is transmitted to dhcp client with DHCP OFFER message.Its implementation procedure is identical with prior art.
Concrete, Dynamic Host Configuration Protocol server is configuration parameters such as client distributing IP address according to the giaddr field, and through DHCP relay configuration information is transmitted to dhcp client.
After step 205, dhcp client are accepted first DHCP OFFER message of receiving, send DHCP REQUEST message, comprise Dynamic Host Configuration Protocol server IP address allocated in DHCP OFFER message in this message with broadcast mode.
Step 206; After DHCP relay receives the DHCP REQUEST message of client transmission; Create corresponding station address list item, promptly write down the MAC Address of this client and the corresponding relation that this client is confirmed the IP address of acceptance, in this DHCP REQUEST message, add option A; And the parameter value of this option A is set, the message after will handling then sends to Dynamic Host Configuration Protocol server with mode of unicast.
Concrete, the field length of option A can be made as 1 byte, and its value can be 1 or 0.According to preset rules, its value is to represent that DHCP relay launched safety function at 1 o'clock, promptly triggers Dynamic Host Configuration Protocol server and after receiving the DHCP RELEASE message of dhcp client, notifies this DHCP relay deletion relative users address list item; Its value is to represent that DHCP relay do not launch safety function at 0 o'clock, and this Dynamic Host Configuration Protocol server still adopts existing mode to realize the aging of station address list item.Fig. 3 shows the form sketch map of a kind of option A.
After step 207, Dynamic Host Configuration Protocol server are received the DHCP REQUEST message that DHCP relay sends,, then return DHCP ACK message if the server that dhcp client is selected is confirmed to give this dhcp client with address assignment; Otherwise return DHCP NAK message, show that the address can not distribute to this client.
Wherein, If Dynamic Host Configuration Protocol server is confirmed to give dhcp client with address assignment; And the value of carrying is 1 option A in the DHCP REQUEST message; Then Dynamic Host Configuration Protocol server also will write down the address of DHCP relay in the lease of this dhcp client IP address, and identifies this DHCP relay and launched safety function.If Dynamic Host Configuration Protocol server is confirmed to give dhcp client with address assignment, be 0 option A but carried value in the DHCP REQUEST message, or do not carry option A that then Dynamic Host Configuration Protocol server is handled according to existing mode.
Step 208, DHCP relay is transmitted to dhcp client with DHCP ACK message or the DHCP NAK message that DHCP sends.
In the step 206 in the above-mentioned flow process, DHCP relay also can not add option A in DHCP REQUEST message, and in this case, DHCP relay and Dynamic Host Configuration Protocol server will carry out relevant treatment according to existing mode.
Of Fig. 2 B, when this dhcp client releasing IP addresses, its flow process can comprise:
Step 210, dhcp client sends DHCP RELEASE message to Dynamic Host Configuration Protocol server.
Step 211, the pairing lease record in IP address of this client of Dynamic Host Configuration Protocol server inquiry, if record the address of DHCP relay in this lease record, and this DHCP relay is identified as and launched safety function, then execution in step 212; If the address of not writing down DHCP relay in this lease record, though perhaps record the address of DHCP relay, this DHCP relay is not identified as has opened safety function, and then execution in step 213.
Step 212, Dynamic Host Configuration Protocol server are transmitted to this DHCP relay according to the address of this DHCP relay with the DHCP RELEASE message of receiving, change step 213 then over to.
After DHCP relay is received DHCP RELEASE message, delete the relative users address list item, promptly delete the corresponding relation record of relative client IP address and MAC Address.
Step 213, this lease of Dynamic Host Configuration Protocol server deletion.
In the above-mentioned flow process, the operation that Dynamic Host Configuration Protocol server is transmitted DHCP RELEASE message and deleted corresponding lease does not have strict sequential requirement.
Shown in Fig. 2 C,, then carry out following flow process if Dynamic Host Configuration Protocol server is found the IP address lease expires of dhcp client:
Step 220, Dynamic Host Configuration Protocol server judge whether record the DHCP relay address in the overdue lease, and this DHCP relay is identified as and launched safety function, if then execution in step 221; If the address of not writing down DHCP relay in this lease record, though perhaps record the address of DHCP relay, this DHCP relay is not identified as has opened safety function, and then execution in step 222.
Step 221; Dynamic Host Configuration Protocol server generates DHCP RELEAS message; And according to the address of the DHCP relay that writes down in this lease that expires; This DHCP RELEASE message is sent to this DHCP relay, carry this lease clients corresponding IP address or MAC Address in this DHCP RELESE message, and change step 222 over to.
After DHCP relay is received DHCP RELEASE message, delete the relative users address list item, promptly delete the corresponding relation record of relative client IP address and MAC Address.
Step 222, this lease of Dynamic Host Configuration Protocol server deletion, the IP address of reclaiming this dhcp client.
Dynamic Host Configuration Protocol server generates DHCP RELEAS message and transmission in the above flow process, and the step of deletion lease, does not have strict sequential requirement.
Can find out on the one hand, only when dhcp client discharges lease or lease expires, message interaction is arranged just through above flow process, can exert an influence to network hardly; On the other hand, when lease need be deleted in the address, the DHCP relay corresponding station address list item that can in time wear out.
Need to prove; When Dynamic Host Configuration Protocol server discharged request in the IP address that receives client, the implementation of the notice DHCP relay deletion relative users address list item that is adopted was the implementation of in above-mentioned flow process, putting down in writing; Can also adopt following implementation; That is: generate and send new notice message, wherein carry the address of relative client, delete corresponding station address list item with the indication DHCP relay.In like manner, Dynamic Host Configuration Protocol server also can generate and send the notice message when finding IP address lease expires is arranged, wherein carry the client address that writes down in this IP address lease, deletes corresponding station address list item with the indication DHCP relay.Accordingly, this notice message should be able to discerned and understand to DHCP relay.
Based on identical technical conceive, the embodiment of the invention also provides a kind of DHCP relay equipment and Dynamic Host Configuration Protocol server that can be applicable to above-mentioned flow process.
As shown in Figure 4, the DHCP relay equipment that the embodiment of the invention provides can comprise: memory module 401, first receiver module 402, message processing module (MPM) 403, second receiver module 404, list item administration module 405, wherein:
Memory module 401 is used to store the station address list item, records the IP address and the MAC Address of client in the said station address option;
First receiver module 402 is used to receive the DHCP request message that is used to confirm to be accepted as its IP address allocated that dhcp client sends;
Message processing module (MPM) 403 be used for adding the option that is used to identify the unlatching safety function at the said DHCP request message that first receiver module 402 receives, and the DHCP request message after will handling sends to Dynamic Host Configuration Protocol server; Wherein, said option is used to trigger Dynamic Host Configuration Protocol server and when discharging the dhcp client address, is used to indicate the message of deleting the station address list item to the DHCP relay transmission;
Second receiver module 404 is used to receive the message that is used to indicate deletion station address list item that Dynamic Host Configuration Protocol server sends;
List item administration module 405, the message that is used for receiving according to first receiver module 402 is created corresponding station address list item, deletes corresponding station address list item according to the message that second receiver module 404 receives.
Concrete, the message that second receiver module 404 receives is that dhcp address discharges message; It is that Dynamic Host Configuration Protocol server is receiving the DHCP release message that client is sent that said dhcp address discharges message; And judge that the address and this DHCP relay that record DHCP relay in the lease of corresponding IP address are identified as under the situation of having opened safety function, are transmitted to said DHCP relay equipment according to the address that records DHCP relay in this IP address lease; Perhaps; Be that Dynamic Host Configuration Protocol server is being found IP address lease expires; And judge that the address that records DHCP relay in the lease of corresponding IP address and this DHCP relay are identified as under the situation of having opened safety function and generate, and send to said DHCP relay equipment according to the address that records DHCP relay in this IP address lease.
As shown in Figure 5, the Dynamic Host Configuration Protocol server that the embodiment of the invention provides can comprise: first receiver module 501, second receiver module 502, control module 503, address assignment processing module 504, sending module 505, wherein:
First receiver module 501 is used to receive the DHCP request message that is used to confirm to accept this Dynamic Host Configuration Protocol server institute IP address allocated that DHCP relay sends;
Second receiver module 502 is used to receive the DHCP release message that client is sent;
Control module 503 is used for carrying when being used to identify the option of opening safety function when parsing DHCP request message that first receiver module 501 receives, and indication address assignment processing module 504 is provided with the address lease; After second receiver module 502 receives DHCP release message; Launched safety function if judge that the address that records DHCP relay in the lease of corresponding IP address and this DHCP relay are identified as; Then indicate sending module 505 to send the message that is used to indicate deletion station address list item according to the address of this DHCP relay, and indication address assignment module 504 these IP address lease information of deletion; When finding IP address lease expires; Launched safety function if judge that the address that records DHCP relay in this IP address lease and this DHCP relay are identified as; Then generate the message that is used to indicate deletion station address list item according to the dhcp client address of writing down in this IP address lease; And indicate sending module 505 to send the message that generates, and indication address assignment processing module 504 these IP address leases of deletion according to the address of the DHCP relay that writes down in this IP address lease;
Address assignment processing module 504 is used for the indication according to control module 503, the address of the said DHCP relay of record in the lease of corresponding IP address, and this DHCP relay is designated launched safety function; And, according to the indication of control module 503, deletion corresponding IP address lease;
Sending module 505 is used for the indication according to control module 503, sends the message that message is used to indicate deletion station address list item to DHCP relay.
Concrete; Control module 503 specifically is used for: after second receiver module 502 receives DHCP release message; If judging the address and this DHCP relay that record DHCP relay in the lease of corresponding IP address is identified as when having launched safety function; Indication sending module 505 is transmitted the DHCP that receives according to the address of this DHCP relay and is discharged message, in order to the corresponding station address list item of indication DHCP relay deletion.
Concrete, the message that control module 503 is generated is that DHCP discharges message, wherein carries the dhcp client address of writing down in this IP address lease, in order to the corresponding station address list item of indication DHCP relay deletion.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium, comprise some instructions with so that a station terminal equipment (can be mobile phone, personal computer; Server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be looked protection scope of the present invention.

Claims (11)

1. station address table management method is applied to include the network system of dhcp client, DHCP relay and Dynamic Host Configuration Protocol server, it is characterized in that this method comprises:
DHCP relay receives that dhcp client sends be used to confirm to be accepted as the DHCP request message of its IP address allocated after; Create corresponding station address list item; And in said DHCP request message, add the option that is used to identify the unlatching safety function, the DHCP request message after handling is sent to Dynamic Host Configuration Protocol server; Wherein, Said station address list item records the IP address and the medium access control MAC Address of said client, and said option is used to trigger Dynamic Host Configuration Protocol server and when discharging the dhcp client address, sends the message that is used to indicate deletion station address list item to DHCP relay;
After said DHCP relay being used to of receiving that Dynamic Host Configuration Protocol server sends indicated the message of deletion station address list item, delete corresponding station address list item.
2. the method for claim 1; It is characterized in that; It is said that to be used to indicate the message of deletion station address list item be that DHCP discharges message; Said DHCP discharges message, and to be Dynamic Host Configuration Protocol server discharge message receiving the DHCP that client sends, and judge that the address and this DHCP relay that record DHCP relay in the lease of corresponding IP address are identified as under the situation of having opened safety function, is transmitted to said DHCP relay according to the address of said DHCP relay.
3. the method for claim 1; It is characterized in that; It is said that to be used to indicate the message of deletion station address list item be that DHCP discharges message; It is that Dynamic Host Configuration Protocol server is being found IP address lease expires that said DHCP discharges message, and judges that the address that records DHCP relay in the lease of corresponding IP address and this DHCP relay are identified as under the situation of having opened safety function and generate, and sends to said DHCP relay according to the address of said DHCP.
4. DHCP relay equipment is applied to include the network system of dhcp client and Dynamic Host Configuration Protocol server, it is characterized in that this DHCP relay equipment comprises:
Memory module is used to store the station address list item, records the IP address and the MAC Address of client in the said station address option;
First receiver module is used to receive the DHCP request message that is used to confirm to be accepted as its IP address allocated that dhcp client sends;
Message processing module (MPM) be used for adding the option that is used to identify the unlatching safety function at the said DHCP request message that said first receiver module receives, and the DHCP request message after will handling sends to Dynamic Host Configuration Protocol server; Wherein, said option is used to trigger Dynamic Host Configuration Protocol server and when discharging the dhcp client address, is used to indicate the message of deleting the station address list item to the DHCP relay transmission;
Second receiver module is used to receive the message that is used to indicate deletion station address list item that Dynamic Host Configuration Protocol server sends;
The list item administration module, the message that is used for receiving according to said first receiver module is created corresponding station address list item, deletes corresponding station address list item according to the message that said second receiver module receives.
5. DHCP relay equipment as claimed in claim 4 is characterized in that, the message that said second receiver module receives is that dhcp address discharges message; It is that Dynamic Host Configuration Protocol server is receiving the DHCP release message that client is sent that said dhcp address discharges message; And judge that the address and this DHCP relay that record DHCP relay in the lease of corresponding IP address are identified as under the situation of having opened safety function, be transmitted to said DHCP relay equipment according to the address of said DHCP relay; Perhaps; Be that Dynamic Host Configuration Protocol server is being found IP address lease expires; And judge that the address that records DHCP relay in the lease of corresponding IP address and this DHCP relay are identified as under the situation of having opened safety function and generate, and send to said DHCP relay equipment according to the address of said DHCP relay.
6. the management method of a user address list; Be applied to include the network system of dhcp client, DHCP relay and Dynamic Host Configuration Protocol server; Record the station address list item in the said DHCP relay; Record client ip address and MAC Address in the said station address list item, it is characterized in that, this method comprises:
Dynamic Host Configuration Protocol server receives that DHCP relay sends be used to confirm to accept the DHCP request message of this Dynamic Host Configuration Protocol server institute IP address allocated after; If parse wherein to carry and be used to identify the option of opening safety function; The address of the said DHCP relay of record in the lease of corresponding IP address then, and this DHCP relay is designated launched safety function;
Receive the DHCP release message of client transmission when said Dynamic Host Configuration Protocol server after; Launched safety function if judge that the address that records DHCP relay in the lease of corresponding IP address and this DHCP relay are identified as; Then send the message that is used to indicate deletion station address list item to corresponding D HCP relaying, and delete this IP address lease information according to the address of this DHCP relay;
When said Dynamic Host Configuration Protocol server is found IP address lease expires; Launched safety function if judge that the address that records DHCP relay in this IP address lease and this DHCP relay are identified as; Then generate the message that is used to indicate deletion station address list item according to the dhcp client address of writing down in this ID address lease; According to the address of the DHCP relay that writes down in this IP address lease, the message that generates is sent to corresponding DHCP relay, and delete this IP address lease.
7. method as claimed in claim 6 is characterized in that, the message that is used to indicate deletion station address list item is sent to corresponding D HCP relaying in said address according to DHCP relay, comprising:
Said Dynamic Host Configuration Protocol server discharges message with the DHCP that receives and is transmitted to corresponding D HCP relaying according to the address of DHCP relay, is used to indicate the corresponding station address list item of DHCP relay deletion.
8. method as claimed in claim 6; It is characterized in that; Said Dynamic Host Configuration Protocol server generated is used to indicate the message of deletion station address list item is that DHCP discharges message; Wherein carry the dhcp client address of writing down in the lease of corresponding IP address, in order to the corresponding station address list item of indication Dynamic Host Configuration Protocol server deletion.
9. Dynamic Host Configuration Protocol server; Be applied to include the network system of dhcp client and DHCP relay; Record the station address list item in the said DHCP relay, record client ip address and MAC Address in the said station address list item, it is characterized in that; This Dynamic Host Configuration Protocol server comprises: first receiver module, address assignment processing module, second receiver module, control module and sending module, wherein:
First receiver module is used to receive the DHCP request message that is used to confirm to accept this Dynamic Host Configuration Protocol server institute IP address allocated that DHCP relay sends;
Second receiver module is used to receive the DHCP release message that client is sent;
Control module is used for carrying when being used to identify the option of opening safety function when parsing DHCP request message that said first receiver module receives, indicates said address assignment processing module that the address lease is set; After said second receiver module receives DHCP release message; Launched safety function if judge that the address that records DHCP relay in the lease of corresponding IP address and this DHCP relay are identified as; Then indicate said sending module to send the message that is used to indicate deletion station address list item, and indicate said this IP address lease information of address assignment module deletion according to the address of this DHCP relay; When finding IP address lease expires; Launched safety function if judge that the address that records DHCP relay in this IP address lease and this DHCP relay are identified as; Then generate the message that is used to indicate deletion station address list item according to the dhcp client address of writing down in this IP address lease; And indicate said sending module to send the message that generates, and indicate said this IP address lease of address assignment processing module deletion according to the address of the DHCP relay that writes down in this IP address lease;
The address assignment processing module is used for the indication according to said control module, the address of the said DHCP relay of record in the lease of corresponding IP address, and this DHCP relay is designated launched safety function; And, according to the indication of said control module, deletion corresponding IP address lease;
Sending module is used for the indication according to said control module, sends the message that message is used to indicate deletion station address list item to DHCP relay.
10. Dynamic Host Configuration Protocol server as claimed in claim 9; It is characterized in that; Said control module specifically is used for, and after said second receiver module receives DHCP release message, is identified as when having launched safety function if judge the address and this DHCP relay that record DHCP relay in the lease of corresponding IP address; Indicate said sending module to transmit the DHCP that receives and discharge message, in order to the corresponding station address list item of indication DHCP relay deletion according to the address of this DHCP relay.
11. Dynamic Host Configuration Protocol server as claimed in claim 9; It is characterized in that; The message that said control module generated is that DHCP discharges message, wherein carries the dhcp client address of writing down in this IP address lease, in order to the corresponding station address list item of indication DHCP relay deletion.
CN201110336668.XA 2011-10-31 2011-10-31 Method and equipment for managing customer address table Active CN102325202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110336668.XA CN102325202B (en) 2011-10-31 2011-10-31 Method and equipment for managing customer address table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110336668.XA CN102325202B (en) 2011-10-31 2011-10-31 Method and equipment for managing customer address table

Publications (2)

Publication Number Publication Date
CN102325202A true CN102325202A (en) 2012-01-18
CN102325202B CN102325202B (en) 2014-02-12

Family

ID=45452870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110336668.XA Active CN102325202B (en) 2011-10-31 2011-10-31 Method and equipment for managing customer address table

Country Status (1)

Country Link
CN (1) CN102325202B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761618A (en) * 2012-07-03 2012-10-31 杭州华三通信技术有限公司 Method, equipment and system for realizing load balancing
CN103297562A (en) * 2013-05-31 2013-09-11 深圳市共进电子股份有限公司 Method, equipment and system for realizing Option82 processing based on kernel
CN103312708A (en) * 2013-06-07 2013-09-18 福建联迪商用设备有限公司 Lease file based IP (internet protocol) setting method and system
CN103428308A (en) * 2013-08-13 2013-12-04 杭州华三通信技术有限公司 Method and device for assisting DHCP (dynamic host configuration protocol) relay in refreshing address safety entries
CN107040480A (en) * 2017-04-01 2017-08-11 汕头大学 A kind of method that network of computer room automatically switches
CN107210946A (en) * 2015-02-19 2017-09-26 三菱电机株式会社 Relay
WO2017219777A1 (en) * 2016-06-24 2017-12-28 中兴通讯股份有限公司 Packet processing method and device
CN108123955A (en) * 2017-12-27 2018-06-05 新华三技术有限公司 Management method, device, equipment and the machine readable storage medium of safe list item
CN108123915A (en) * 2016-11-28 2018-06-05 北京神州泰岳软件股份有限公司 A kind of detection method and device of illegal connection to LAN equipment
CN109257458A (en) * 2018-10-31 2019-01-22 新华三技术有限公司 A kind of message forwarding method and device
CN114040382A (en) * 2021-11-09 2022-02-11 锐捷网络股份有限公司 Message transmission processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050271049A1 (en) * 2004-06-03 2005-12-08 International Business Machines Corporation DHCP cache method and apparatus
CN1738269A (en) * 2004-08-17 2006-02-22 杭州华为三康技术有限公司 Method to allocate protocol relay address table and server address pool for synchronization dynamic host machine
CN101009635A (en) * 2006-01-27 2007-08-01 上海贝尔阿尔卡特股份有限公司 A message forwarding method for the dynamic host configuration protocol and its network device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050271049A1 (en) * 2004-06-03 2005-12-08 International Business Machines Corporation DHCP cache method and apparatus
CN1738269A (en) * 2004-08-17 2006-02-22 杭州华为三康技术有限公司 Method to allocate protocol relay address table and server address pool for synchronization dynamic host machine
CN101009635A (en) * 2006-01-27 2007-08-01 上海贝尔阿尔卡特股份有限公司 A message forwarding method for the dynamic host configuration protocol and its network device

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761618A (en) * 2012-07-03 2012-10-31 杭州华三通信技术有限公司 Method, equipment and system for realizing load balancing
CN103297562A (en) * 2013-05-31 2013-09-11 深圳市共进电子股份有限公司 Method, equipment and system for realizing Option82 processing based on kernel
CN103312708A (en) * 2013-06-07 2013-09-18 福建联迪商用设备有限公司 Lease file based IP (internet protocol) setting method and system
CN103312708B (en) * 2013-06-07 2016-06-01 福建联迪商用设备有限公司 A kind of IP establishing method based on lease file and system
CN103428308A (en) * 2013-08-13 2013-12-04 杭州华三通信技术有限公司 Method and device for assisting DHCP (dynamic host configuration protocol) relay in refreshing address safety entries
CN103428308B (en) * 2013-08-13 2016-12-28 杭州华三通信技术有限公司 Assist the method and device of the safe list item of DHCP relay refresh address
CN107210946B (en) * 2015-02-19 2020-07-14 三菱电机株式会社 Relay device
CN107210946A (en) * 2015-02-19 2017-09-26 三菱电机株式会社 Relay
WO2017219777A1 (en) * 2016-06-24 2017-12-28 中兴通讯股份有限公司 Packet processing method and device
CN107547667A (en) * 2016-06-24 2018-01-05 中兴通讯股份有限公司 A kind of message processing method and device
CN108123915A (en) * 2016-11-28 2018-06-05 北京神州泰岳软件股份有限公司 A kind of detection method and device of illegal connection to LAN equipment
CN108123915B (en) * 2016-11-28 2020-11-20 北京神州泰岳软件股份有限公司 Detection method and device for illegal network access equipment
CN107040480A (en) * 2017-04-01 2017-08-11 汕头大学 A kind of method that network of computer room automatically switches
CN108123955A (en) * 2017-12-27 2018-06-05 新华三技术有限公司 Management method, device, equipment and the machine readable storage medium of safe list item
CN108123955B (en) * 2017-12-27 2020-12-29 新华三技术有限公司 Management method, device and equipment of safety table items and machine-readable storage medium
CN109257458A (en) * 2018-10-31 2019-01-22 新华三技术有限公司 A kind of message forwarding method and device
CN109257458B (en) * 2018-10-31 2021-09-21 新华三技术有限公司 Message forwarding method and device
CN114040382A (en) * 2021-11-09 2022-02-11 锐捷网络股份有限公司 Message transmission processing method and device

Also Published As

Publication number Publication date
CN102325202B (en) 2014-02-12

Similar Documents

Publication Publication Date Title
CN102325202B (en) Method and equipment for managing customer address table
CN101577722B (en) Method for realizing MAC forced forwarding function and device
CN101453495B (en) Method, system and equipment for preventing authentication address resolution protocol information loss
CN103534994B (en) The method, apparatus and system of communication are realized after a kind of virtual machine (vm) migration
CN101730090B (en) Method and equipment for releasing IP addresses by DHCP server
JP5459809B2 (en) Method for obtaining the IP address of a dynamic host configuration protocol version 6 server, dynamic host configuration protocol version 6 server, and dynamic host configuration protocol version 6 communication system
CN105245629B (en) Host communication method based on DHCP and device
CN102394948B (en) DHCP (dynamic host configuration protocol) address distribution method and DHCP server
WO2009030173A1 (en) Processing method and device for qinq termination configuration
CN101453447A (en) Customer aging method for dynamic host configuration protocol DHCP and access equipment
CN101795449A (en) Wireless network terminal access control method and device thereof
CN101873320B (en) Client information verification method based on DHCPv6 relay and device thereof
EP2161875A1 (en) Method and device for configuring configuration data of user access network
CN106254571A (en) A kind of client ip address distribution method and device
CN101888388A (en) Method and device for realizing virtual media access control address
CN107046585A (en) Dynamic Host Configuration Protocol server system of selection and device
CN103414641A (en) Neighbor table item release method, device and network equipment
CN101729314A (en) Method and device for recovering dynamic table entries and dynamic host configuration protocol snoopingsnooping equipment
CN110909030A (en) Information processing method and server cluster
CN108123955B (en) Management method, device and equipment of safety table items and machine-readable storage medium
CN101272247A (en) Method and equipment and system for implementing user authentication based on DHCP
CN104009961A (en) PPPoE session ID distribution method and equipment thereof
CN102523316B (en) A kind of address distribution method and equipment
CN110278558B (en) Message interaction method and WLAN system
CN102752414B (en) Method and equipment for releasing Internet protocol (IP)v6 address

Legal Events

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

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230529

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.