CN101335652A - Status detection method, apparatus and system of dynamic host configuring protocol - Google Patents

Status detection method, apparatus and system of dynamic host configuring protocol Download PDF

Info

Publication number
CN101335652A
CN101335652A CNA2007101181748A CN200710118174A CN101335652A CN 101335652 A CN101335652 A CN 101335652A CN A2007101181748 A CNA2007101181748 A CN A2007101181748A CN 200710118174 A CN200710118174 A CN 200710118174A CN 101335652 A CN101335652 A CN 101335652A
Authority
CN
China
Prior art keywords
anchor point
dhcp
message
state
detection
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
Application number
CNA2007101181748A
Other languages
Chinese (zh)
Inventor
阳振庭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNA2007101181748A priority Critical patent/CN101335652A/en
Publication of CN101335652A publication Critical patent/CN101335652A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a stateful inspection method of a dynamic host configuration protocol. A first anchor point of the dynamic host configuration protocol monitors stateful inspection information sent by a second anchor point within an appointed time; the first anchor point determines the state of the second anchor point according to a monitoring result. The embodiment of the invention also provides a stateful inspection device of a dynamic host configuration protocol, and a system thereof. The embodiment of the invention realizes the maintenance management of accessed and connected calls so as to ensure that the reasonable operations of accounting and management can be carried out, thereby enlarging the application context, mode and range of DHCP.

Description

A kind of condition detection method of DHCP, equipment and system
Technical field
The present invention relates to communication technical field, relate in particular to a kind of condition detection method, equipment and system of DHCP.
Background technology
(Dynamic Host Configuration Protocol DHCP) provides the mechanism of a kind of dynamic assigned ip address and configuration parameter to DHCP, and it is mainly used in the relatively place of difficulty of large network environment and configuration.According to this agreement, Dynamic Host Configuration Protocol server can be client computer assigned ip address and configuration parameter automatically, the configuration parameter of described appointment may be also uncorrelated with the IP agreement, but because the layoutprocedure of DHCP can realize automatically, all configuration informations can be by the Dynamic Host Configuration Protocol server unified management, not only can the distributing IP address, but also can dispose other a large amount of information, these configuration parameters make the compunication on the network become convenient and realize that easily therefore, DHCP more and more is widely used.
DHCP generally adopts client/server (Client/Server) pattern, by user end to server configuration application (comprising parameters such as IP address allocated, subnet mask, default gateway) is proposed, server returns corresponding configuration information according to strategy, and the DHCP message adopts UDP (User Datagram Protocol) to encapsulate.
As shown in Figure 1, be DHCP networking structure figure, defined main member and corresponding function thereof comprise in the DHCP agreement:
DHCP Server: the administration configuration server, DHCP is provided service, according to the request of client, be client distributing IP address or other network parameters, general existence form comprises: router, three-tier switch or special Dynamic Host Configuration Protocol server;
DHCP Relay/Proxy Agent:DHCP relay agent, i.e. the equipment of transmission of dhcp message between DHCP Server and DHCP Client, for the server and client side in the different segment transmits the DHCP message, it also provides secure option simultaneously; DHCP Relay/Proxy Agent provides a kind of transparent transmission mechanism of broadcasting packet, for not providing forwarding capability by the dhcp broadcast message of switch, make Dynamic Host Configuration Protocol server to provide service for dhcp client not at its this network segment, DHCPRelay/Proxy Agent is after receiving the DHCP request message that client is sent, the interface IP address of receiving this message is inserted message, transmit then, Dynamic Host Configuration Protocol server just can determine according to the interface IP address in the message of receiving needs distribute the IP address of which subnet like this;
DHCP Client: utilize the DHCP agreement to obtain the main frame of configuration parameter (as: IP address) in the network, promptly client host or other can obtain the three-layer equipment of IP address, as user residence gateway RG (Residential Gateway).
Be type of message and dynamic assigned ip address and the configuration parameter process that example is introduced DHCP with DHCP V4 (there are two versions in DHCP: DHCP V4 and V6) below:
DHCPDISCOVER: broadcast by client and to search available server.
DHCPOFFER: server is used for the DHCPDISCOVER message of customer in response end, and specifies corresponding configuration parameters.
DHCPREQUEST: send to server by client and ask configuration parameter or ask configure-ack or renew the rental period.
DHCPACK:, contain configuration parameter and comprise the IP address by the server to client end.
DHCPDEC LINE: when the client terminal to discover address has been used, be used for announcement server.
DHCPNAK: sending to the client by server, to bring in the Address requests that shows client incorrect or the rental period is out of date.
DHCPINFORM: come to other configuration parameter of server requests with it when client has had the IP address.
DHCPRELEASE: client is used for announcement server in the time of will discharging the address.
In telecommunications access network, it is two the most basic big functions of access-in management that access authentication of user and station address distribute, development along with Access Network of future generation, owing to DHCP is simple and widely-used, realize that by simple DHCP access authentication of user and station address distribution have become a kind of new trend.
The network configuration of using based on the user authentication process of DHCP as shown in Figure 2, the method of expansion DHCP realization access authentication of user and station address distribution is also not final at present determines, be example with the entity among Fig. 2 below, a kind of corresponding authentication processing process specifically comprises the steps:
Step 1: user terminal is initiated the DHCP request;
Step 2: access node apparatus (Access Node, AN) as L2DHCP RelayAgent (i.e. two layers of dhcp relay agent equipment) or DHCP Snooping (DHCP snooping equipment) point, in described DHCP request message, insert the physical circuit information at user terminal place, and transmit this message.
Step 3: broadband gateway equipment (BNG/BRAS) obtains physical circuit information as three layers of dhcp relay agent (being DHCP Relay/Proxy) equipment, subscriber line information and User Identity information (Subscriber-ID) are associated, initiate authenticating user identification by AAA Client (AAA client) to AAAServer (aaa server), for example, adopt Radius (remote dial authentication) agreement to authenticate.
Step 4: behind the authentication success, aaa server returns to DHCPRelay/Proxy with the authentication result relevant information, and information is inserted in the DHCP message, sends to Dynamic Host Configuration Protocol server.
Step 5:DHCP server carries out the configuration of corresponding address and other access parameter according to authentication result.
Above-mentioned expansion DHCP has realized the access authentication of user management function.As everyone knows, access authentication of user is for services such as the user charge, therefore need to insert the connection session condition managing, be after access authentication of user passes through, the state (online or off-line) that needs supervisory user, be exactly usually said survival (Keepalive) mechanism, keep the user by survival mechanisms and insert connection session.
But in realizing process of the present invention, the inventor finds that present DHCP does not provide keepalive mechanism, so the DHCP end points can't know the state of opposite end, and the user is by behind the DHCP access network, and access network can't be kept DHCP and insert connection session.
Summary of the invention
The embodiment of the invention provides a kind of condition detection method, equipment and system of DHCP, has solved the problem that existing DHCP end points can't be known the opposite end state, has realized that the access connection session keeps management.
The embodiment of the invention is achieved through the following technical solutions:
The embodiment of the invention provides a kind of condition detection method of DHCP, comprising:
The state-detection message that at the appointed time interior monitoring second anchor point of DHCP first anchor point sends;
Described first anchor point is determined the state of described second anchor point according to monitored results.
The embodiment of the invention provides a kind of DHCP anchor point, comprising:
State detection unit is used for the monitor state detect-message, and judges the state of opposite end anchor point or the state of access connection session according to described state-detection message;
The duration indicating member is used to control the opportunity that anchor point detects.
The embodiment of the invention provides a kind of condition detecting system of DHCP, comprising:
At least one first anchor point is used for timed sending state-detection message;
At least one second anchor point is used to monitor described state-detection message, thereby determines the described first anchor point state.
The technical scheme that is provided by the invention described above embodiment as can be seen, the survival mechanisms of the detection DHCP anchor point that the embodiment of the invention provides, realized that the access connection session keeps management, made and reasonably to charge and operation such as management, expanded application scenarios, mode and the scope of DHCP.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is prior art DHCP networking structure figure;
Fig. 2 is the network structure that prior art is used based on the user authentication process of DHCP;
Fig. 3 is the inventive method embodiment overview flow chart;
Fig. 4 embodiment of the invention one flow chart;
Fig. 5 is the embodiment of the invention one a process schematic diagram;
Fig. 6 is the embodiment of the invention two flow charts;
Fig. 7 is the embodiment of the invention two process schematic diagrames;
Fig. 8 is the embodiment of the invention five flow charts;
Fig. 9 is that the embodiment of the invention seven systems form schematic diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The described DHCP anchor point of the embodiment of the invention comprises: DHCP Client end points, DHCPSnooping (intercepting) point, DHCP Relay/Proxy Agent, DHCP Server end points.
The described DHCP survival of the embodiment of the invention (Keepalive) mechanism: after referring to user or accessing user terminal to network, after promptly foundation inserted connection session, DHCP kept and inserts the connection session state, promptly detects the existing state of connection session.Because inserting connection session is to be present in two connections between the anchor point, be exactly the anchor point existing state that detects the two ends of connection session so detect the existing state of connection session.
The DHCP survival mechanisms can be between any two DHCP anchor points, as: between DHCP Client end points and the DHCP Relay/Proxy agent, between DHCP Client end points and the DHCP Server end points, between DHCP Relay/Proxy Agent and the DHCP Server end points, between DHCP Snooping point and the DHCP Relay/Proxy Agent or the like;
The described survival mechanisms of present embodiment realizes by message mechanism, the periodic state-detection message that takes place between the DHCP anchor point, as status request message, the DHCP anchor point by monitor the state that described state-detection message is checked the state of opposite end anchor point or inserted connection session, comprise intercept receive effective state-detection message and intercept receive non-effective state-detection message and at the appointed time in do not intercept and receive effective state-detection message.Described in embodiments of the present invention state-detection message can comprise: solicitation message and/or detection response message.
The described survival mechanisms of present embodiment can be supported various detection modes flexibly, comprises realizing that single-ended (single/two-way) detects or both-end (single/two-way) detects.Described survival mechanisms can realize by existing dhcp message, also can expand new information type and realize.
Existing message comprises:
In V4, comprise: DHCPINFORM or DHCP REQUEST or DHCPLEASEQUERY DHCPLEASEACTIVE;
In V6, comprise: RELAY-FORW RELAY-REPL or DHCP LEASEQUERYDHCPLEASEACTIVE.
Expand new information type can for: among V4 or the V6: DHCP Echo or DHCP EchoRequest/DHCP Echo Reply.
The condition detection method overall procedure of the described DHCP of the embodiment of the invention comprises the steps: as shown in Figure 3
Step 1:DHCP anchor point detects has set up DHCP access connection session, then begins survival mechanisms and handles;
The DHCP anchor point comprises first anchor point and/or second anchor point; The DHCP anchor point is differentiated the foundation that DHCP inserts connection session by detecting DHCP protocol message process, as: DHCP Client anchor point detects user terminal by reception DHCP ACK or DHCP Reply message and finishes access network; DHCPSnooping point and DHCP Relay/Proxy Agent detect user terminal and finish access network according to intercepting DHCP ACK or DHCP Reply message; DHCP Server anchor point detects user terminal and finishes access network according to sending DHCPACK or DHCP Reply message.
The state-detection message that at the appointed time interior monitoring second anchor point of step 2:DHCP first anchor point sends;
The DHCP anchor point receives the state that described state-detection message is checked the state of opposite end anchor point or inserted connection session by intercepting, comprise intercept receive effective state-detection message and intercept receive non-effective state-detection message and at the appointed time in do not intercept and receive effective state-detection message.Described in embodiments of the present invention state-detection message can comprise: solicitation message and/or detection response message.
Step 3:DHCP first anchor point is determined the described access connection session or the second anchor point state according to monitored results;
Receive the effective state-detection message that described second anchor point sends if described first anchor point is intercepted at the appointed time, described first anchor point determines that the state of described access connection session or described second anchor point is normal (online), continues execution in step 2;
Described first anchor point is not at least once intercepted at the appointed time and is received the effective state-detection message that described second anchor point sends, or receive non-effective state-detection message, then described first anchor point determines that the state of described access connection session or described second anchor point is unusual (rolling off the production line), execution in step 4.
Step 4: insert the connection session state unusually or interrupt, then the DHCP anchor point stops detecting and monitors.
The following embodiment of the invention mainly describes the step of various detection modes in detail with DHCP V4, DHCP V6 is similar substantially, so do not describe in detail separately.
Embodiment one is that the DHCP anchor point of an end detects opposite end anchor point state by two-way news, promptly by sending solicitation message, and reception detection response message detects opposite end anchor point state, can be referred to as single-ended two-way detection, Fig. 4 is a particular flow sheet, Fig. 5 is corresponding process schematic diagram, specifically comprises the steps:
Step 1: user terminal is set up DHCP and is inserted connection session by the DHCP access network;
User terminal uses DHCP to obtain the authority of accesses network by access authentication, and/or uses DHCP to obtain the network configuration parameters that comprises the network address.
Step 2: the DHCP anchor point with survival mechanisms detects user terminal and finishes access network (insert connection session and set up the back) by DHCP, the beginning survival mechanisms is handled, the indication of T1 duration is set, be used to trigger DHCP anchor point timed sending solicitation message (as: status request message), after promptly passing through the T1 duration, the T1 duration indicating mechanism notice DHCP anchor point T1 time expires, and the DHCP anchor point sends solicitation message then.A kind of timing mechanism of duration indication expression realizes by timer usually that in reality realizes the indication of T1 duration can be referred to as timer T1 or T1 timer.
The DHCP anchor point comprises: DHCP Client end points, DHCP Snooping point, DHCPRelay/Proxy Agent, DHCP Server end points.Different DHCP anchor points detects the method difference that user terminal is finished access network, as: DHCP Client end points detects user terminal by reception DHCP ACK or DHCP Reply message and finishes access network; DHCP Snooping point and DHCP Relay/Proxy Agent detect user terminal and finish access network according to intercepting DHCP ACK or DHCP Reply message; DHCP Server end points detects user terminal and finishes access network according to sending DHCP ACK or DHCPReply message.
The T1 duration indication overtime or expire (expiring) of step 3:DHCP anchor point as the T1 timer, the DHCP anchor point sends solicitation message, as status request message, T2 duration indication (as opening the T2 timer) is set then, begins to wait for the monitoring and detection response message;
The message of described transmission can be existing dhcp message and/or newly-increased dhcp message.Existing dhcp message comprises: DHCP LEASEQUERY (rental period request), DHCP REQUEST (DHCP request), DHCP CONFIRM (DHCP affirmation), DHCP RENEW (DHCP renewal), DHCP REBIND (DHCP bundlees again), DHCPRECONFIGURE (DHCP reconfigures), DHCP INFORMATION-REQUEST (DHCP information request), DHCP RELAY-FORW (relay request); Can increase Option (option) in this existing message, the DHCP REQUEST message that sign is carried this Option is the solicitation message of survival mechanisms.
Newly-increased dhcp message refers to increase new dhcp message type, as: EchoRequest.
The solicitation message difference that different DHCP anchor points send comprises for the message that DHCP Client sends as anchor point: DHCP LEASEQUERY, DHCP REQUEST, DHCP CONFIRM, DHCP RENEW, DHCP REBIND, DHCP INFORMATION-REQUEST, DHCP Echo Request; Anchor point comprises for the message of DHCP Snooping point or DHCP Relay/ProxyAgent transmission: DHCP LEASEQUERY, DHCP RECONFIGURE, DHCP INFORMATION-REQUEST, DHCP RELAY-FORW, DHCPEchoRequest etc., the anchor point among Fig. 5 is DHCP Client.
Step 4:DHCP anchor point is intercepted the detection response message of monitoring opposite end anchor point, if receive in the time that at T2 the opposite end anchor point detects response message, if and message is effective, show that opposite end anchor point state is online or it is normal to insert connection session, then stop T2 duration indication (as stopping the T2 timer), T1 duration indication (as opening the T1 timer) is set, continues step 5.(as: solicitation message is DHCP LEASEQUERY if message is invalid, detecting response message is DHCP LEASEUNASSIGNED), or do not receive the detection response message of opposite end anchor point in the time at T2, it is undesired then to show opposite end anchor point state undesired (rolling off the production line) or insert the connection session state, not online or insert connection session and interrupt as the opposite end anchor point, then stop the detection and the monitoring of survival mechanisms, the DHCP anchor point then changes relevant processing over to, as restarts access network process.
Described opposite end anchor point detects response message and refers to that the opposite end anchor point receiving the solicitation message of survival mechanisms, after status request message, the opposite end anchor point is responded according to own state and is detected response message, as status response message, usually state is activation or effective status, then respond and detect response message, otherwise do not respond the detection response message, as: solicitation message is DHCP LEASEQUERY, corresponding correct or effectively to detect response message be DHCP LEASEACTIVE, if detecting response message is DHCP LEASEUNASSIGNED, it is expired or invalid that then expression inserts connection session.The detection response message that the opposite end anchor point is responded comprises the message (Dynamic Host Configuration Protocol server transmission message) that oneself sends and transmits the message (dhcp relay agent is transmitted the message of receiving from Dynamic Host Configuration Protocol server) of intercepting reception.
Described detection response message type is corresponding with described solicitation message type.As: the detection response message of solicitation message DHCP LEASEQUERY correspondence is DHCP LEASEACTIVE; The detection response message of solicitation message DHCP REQUEST correspondence is DHCP ACK or REPLY; The detection response message of solicitation message DHCP EchoRequest correspondence is DHCP EchoReply or ACK or REPLY.
It is to be used for survival mechanisms message that the detection response message can identify this message by described Option, and as increase Option in DHCP ACK message, the DHCP ACK message that sign is carried this Option is survival mechanisms message.
Step 5: if DHCP anchor point detection opposite end anchor point is normal in the step 4, when the T1 duration of DHCP anchor point was indicated to, then the DHCP anchor point sent solicitation message, as status request message, the indication of T2 duration was set then;
When the T2 duration of DHCP anchor point indicates overtime judgement to insert connection session interruption or opposite end anchor point abnormal state (rolling off the production line), prevent erroneous judgement, can set that the T2 duration indication of DHCP anchor point is overtime judges that just inserting connection session interrupts or opposite end anchor point abnormal state after repeatedly, if the T2 duration of DHCP anchor point is indicated overtime for the first time or is expired, the DHCP anchor point continues the transmit status request message, the indication of T2 duration is set simultaneously, the indication of T1 duration perhaps is set, the T2 duration indication of DHCP anchor point is overtime for the second time in succession, judges that inserting connection session interrupts or opposite end anchor point abnormal state.
The DHCP anchor point also can be optimized testing process in conjunction with the flow that inserts connection session, be checked through connection session to be detected or there is data traffic in the IP address as the DHCP anchor point, this moment, acquiescence inserted connection session state normal (not interrupting), then do not detect and monitor, as the indication of T1 duration is not set in this example, to be checked measuring the indication of T1 duration is set just after there are not data traffic in connection session or IP address, carries out above-mentioned transmission solicitation message afterwards again and carry out keepalive and detect and monitor.Perhaps, after the indication of T1 duration is overtime,, then do not send solicitation message, but continue to be provided with T1 duration indication (restarting timer T1) if anchor point is checked through connection session to be detected or there is data traffic in the IP address.
Embodiment two judges the opposite end state for recipient DHCP anchor point by receiving transmit leg anchor point detect-message, can be referred to as single-ended unidirectional detection, the difference of itself and embodiment one is: recipient's anchor point is after the detect-message that receives the transmit leg anchor point, if judge that described detect-message is effective, show that transmit leg anchor point state is online, the indication of T3 duration then is set, continues to enter next round and detect.Concrete steps as shown in Figure 6, corresponding process schematic diagram comprises the steps: as shown in Figure 7
Step 1: user terminal is set up and is inserted connection session by the DHCP access network;
User terminal uses DHCP to obtain the authority of accesses network by access authentication, and/or uses DHCP to obtain the network configuration parameters that comprises the network address.
Step 2: have DHCP first anchor point of survival mechanisms and second anchor point and detect user terminal and finish access network (insert connection session and set up the back) by DHCP, the beginning survival mechanisms is handled, comprise: DHCP first anchor point is provided with T1 duration indication (as: opening timing device T1) and triggers the transmission solicitation message, DHCP second anchor point is provided with T3 duration indication (as: opening timing device T3), be used for judging at the appointed time whether receive described solicitation message in the section that general T1 duration is less than the T3 duration.
The T1 duration of step 3:DHCP first anchor point is indicated overtime or is expired, and DHCP first anchor point sends solicitation message, as status request message;
The message of described transmission can be existing dhcp message and/or newly-increased dhcp message.Existing dhcp message comprises: DHCP LEASEQUERY, DHCP REQUEST, DHCPCONFIRM, DHCP RENEW, DHCP REBIND, DHCP RECONFIGURE, DHCP INFORMATION-REQUEST, DHCP RELAY-FORW; Can increase Option (option) in this existing message, the DHCP REQUEST message that sign is carried this Option is the survival mechanisms solicitation message.
Newly-increased dhcp message refers to increase new dhcp message type, as: EchoRequest.
The solicitation message difference that different DHCP anchor points send comprises for the message that DHCP Client sends as anchor point: DHCP LEASEQUERY, DHCP REQUEST, DHCP CONFIRM, DHCP RENEW, DHCP REBIND, DHCP INFORMATION-REQUEST, DHCP Echo Request; Anchor point comprises for the message of DHCP Snooping point or DHCP Relay/ProxyAgent transmission: DHCP LEASEQUERY, DHCP RECONFIGURE, DHCP INFORMATION-REQUEST, DHCP RELAY-FORW, DHCPEchoRequest etc., first anchor point of the transmission solicitation message among Fig. 7 is DHCP Client.
Step 4:DHCP second anchor point is intercepted the detect-message that monitoring DHCP first anchor point sends.DHCP second anchor point is intercepted and is monitored the solicitation message that DHCP first anchor point sends in the T3 duration, if message is effective, show that the first anchor point anchor point state is online, the indication of T3 duration is set, continue to intercept monitoring and detection message, if message is invalid, show the first anchor point state undesired (rolling off the production line), as it is expired to insert connection session, DHCP second anchor point stops survival and detects monitoring, change relevant processing over to, as restart access network process or cleaning local connection data or stop charging.
DHCP second anchor point also can send according to own state according to the solicitation message of receiving and detect response message, detect response message type according to solicitation message type correspondence, detection response message as solicitation message DHCP LEASEQUERY correspondence is DHCP LEASEACTIVE, and the detection response message of solicitation message DHCP REQUEST correspondence is DHCP ACK or REPLY.DHCP second anchor point is responded response according to own state, then do not send response as state is undesired, (as: solicitation message is DHCPLEASEQUERY to insert the expired then transmission of connection release indication, detecting response message is DHCP LEASEUNASSIGNED), state normally then responds correct message (as: solicitation message is DHCP LEASEQUERY, and detecting response message is DHCP LEASEACTIVE).
The T1 duration of step 5:DHCP first anchor point is indicated overtime or is expired, and the DHCP anchor point sends solicitation message, as status request message;
Step 6:DHCP second anchor point is intercepted the detect-message that monitoring DHCP first anchor point sends.DHCP second anchor point listens to the solicitation message that DHCP first anchor point sends in the T3 duration, if message is effective, shows that the first anchor point state is online, and the indication of T3 duration is set, and continues to intercept message and detection, execution in step 7; If message is invalid, show the first anchor point state undesired (rolling off the production line), expired as inserting connection session, DHCP second anchor point stops survival and detects and monitor, change relevant processing over to, as restart access network process or cleaning local connection data or stop charging.
Step 7:DHCP second anchor point is intercepted the detect-message that monitoring DHCP first anchor point sends.DHCP second anchor point does not listen to the solicitation message that DHCP first anchor point sends in the T3 duration.The T3 duration of DHCP second anchor point is indicated overtime or is expired, be that DHCP second anchor point is not received the solicitation message that first anchor point sends, show first anchor point or insert connection session state undesired (rolling off the production line), not online or insert connection session and interrupt as first anchor point, DHCP second anchor point stops survival and detects, change relevant processing over to, as restart access network process or cleaning local connection data or stop charging.
The indication of the T3 duration of DHCP second anchor point is overtime, judge to insert to connect to interrupt or during the first anchor point abnormal state, for preventing erroneous judgement, can set the T3 duration indication of DHCP second anchor point overtime just judge to insert to connect after repeatedly interrupt or the first anchor point abnormal state.
Above-mentioned two embodiment are the method that an end is determined other end presence.
Embodiment three confirms the method for opposite end state mutually for two ends, by embodiment one is combined with embodiment two, after at one end receiving other end solicitation message, if message is effective, can determine that then the described other end is online, then send and detect response message, the described other end is after receiving described detection response message, if described message is effective, the end that then can determine to send described response message is online, can be referred to as the unidirectional detection of both-end.Concrete steps repeat no more herein.
Embodiment four is similarly the method that the opposite end state is confirmed at two ends mutually, two DCHP anchor points send solicitation message to the opposite end respectively separately, after receiving the solicitation message of opposite end, send the relevant detection response message, whether whether the two ends basis receives described response message and described response message is judged effectively whether the opposite end is online, can be referred to as the two-way detection of both-end.The concrete step that sends solicitation message and detect response message repeats no more with embodiment one herein.
The various embodiments described above have realized having realized that by survival mechanisms the access connection session keeps management, for DHCP provides manageable access connection session characteristic, have expanded application scenarios, mode and the scope of DHCP.
Embodiment five introduces the negotiation of duration (as the time of timer) of the duration indication of detection mode in the various embodiments described above and detection mode correspondence and determines method.
The duration of the duration indication of detection mode described in the various embodiments described above and described detection mode correspondence can be specified by DHCP Relay/Proxy Agent or DHCP Server, under transmitting in the accessing user terminal to network process by DHCP then, DHCP keepalive anchor point is by listening to or receive the dhcp message of accessing user terminal to network, resolves the duration of the duration indication of the detection mode of obtaining keepalive and/or detection mode correspondence from message.
DHCP carries the duration method of the duration indication of the detection mode of Keepalive mechanism and/or detection mode correspondence and can carry by the Option of existing dhcp message, also can carry by newly-increased dhcp message type.
Carry mode and key step as shown in Figure 8 by existing dhcp message, comprise the steps:
Step 1: user terminal sends DHCP Server and finds message, and request can provide the DHCP Server of service;
Step 2: can provide the DHCP Server of service to send DHCP Offer message to user terminal;
Step 3: after user terminal receives described message, send DHCPRequest message to described DHCP Server, request is by the DHCP access network;
Step 4:DHCP Relay/Proxy Agent or DHCP Server are encapsulated into the duration of the duration indication of the detection mode of Keepalive mechanism and/or detection mode correspondence and send to user terminal in the dhcp message as Option;
Described dhcp message comprises: DHCP ACK, DHCP Reply etc.
Step 5:DHCP keepalive anchor point listens to or receives the dhcp message (comprising DHCP ACK, DHCP Reply etc.) of accessing user terminal to network, resolves message and obtains the detection mode of Keepalive mechanism and/or the duration parameters of the duration indication of detection mode correspondence.
The duration parameters of the detection mode of step 6:DHCP keepalive anchor point record and preservation Keepalive mechanism and/or the duration indication of detection mode correspondence, the process of the duration of the duration indication of definite detection mode of negotiation and/or detection mode correspondence is finished.
The present invention is not limited to the mode of duration of the duration indication of above-mentioned negotiation detection mode and/or detection mode correspondence; the method of the duration of any duration indication that can determine detection mode and/or detection mode correspondence is all in protection range of the present invention; for example; user terminal reports the duration of the duration indication of a kind of detection mode and/or detection mode correspondence in the time of can sending access network request, and DHCP Relay/Proxy Agent or DHCP Server determine the duration of the duration indication of final detection mode that adopts and/or detection mode correspondence according to the message of network side situation and described user terminal to send up.
Present embodiment has been realized can carrying out Keepalive mechanism according to the duration that the duration of detection mode of determining and/or detection mode correspondence is indicated like this after user terminal is by the DHCP access network at the duration of user terminal by the duration indication of definite detection mode and/or detection mode correspondence before the DHCP access network.
Embodiment six is for stopping the method for survival (Keepalive) mechanism, and the DHCP anchor point is checked through the DHCP access and discharges indication, and the DHCP anchor point stops survival mechanisms.The DHCP anchor point stops the keepalive processing and comprises: stop keepalive and detect, as stop the timer of detection mode correspondence, also comprise cleaning keepalive status information data.
The DHCP anchor point is checked through DHCP access release indication and comprises: the detected DHCP of non-keepalive inserts the situation of connection or opposite end anchor point abnormal state (off-line), comprises that dhcp client or server initiatively discharge DHCP access connection or (being that Dynamic Host Configuration Protocol server allows the client to use the fixed time of certain IP address) the overdue indication of address rental period.As, the DHCP anchor point is intercepted or is received dhcp client and sends DHCP release message or DHCP DECLINE message, and DHCP LEASEUNASSIGNED message, DHCP LEASEUNKNOWN message etc. are intercepted or received to the DHCP anchor point;
The DHCP anchor point is checked through DHCP and insert discharges indication and comprise that also the DHCP node detection discharges DHCP to link down and inserts and connect, as detects the physical port deexcitation and discharge DHCP and insert connection.
The DHCP anchor point is checked through DHCP and insert discharges indication and comprise that also management entity notice DHCP anchor point discharges DHCP and inserts and connect, and discharges DHCP as webmaster maintenance person by operation-interface and inserts and connect or authentication and authorization charging server discharges DHCP and inserts and connect.
Present embodiment realized when carrying out keepalive mechanism, can be at any time stops keepalive according to the needs of DHCP anchor point and detects.
Embodiment seven provides a kind of condition detecting system of DynamicHost address configuration agreement, as shown in Figure 9, described system comprises a plurality of DHCP anchor points, can pass through cycle transmit status detect-message between any two anchor points, based on described state-detection message detection opposite end anchor point state.
Described a plurality of anchor point is divided into first anchor point and second anchor point, and described first anchor point is used for timed sending state-detection message; Described second anchor point is used to monitor described state-detection message, thereby determines the described first anchor point state.
Described anchor point comprises: DHCP Client end points, DHCP Snooping point, DHCPRelay/Proxy Agent or DHCP Server end points, and for finishing above-mentioned functions, described anchor point is provided with:
State detection unit is used for the monitor state detect-message, and judges the state of opposite end anchor point or the state of access connection session according to described state-detection message;
The duration indicating member is used to control the opportunity that anchor point detects.
Described anchor point can further be provided with:
Protocol processing unit is used to handle dynamic host configuration protocol messages, comprises the transmit status detect-message, triggers the beginning and the termination of survival mechanisms.
Described first anchor point and second anchor point are for comparatively speaking, certainly, first anchor point can be used as second anchor point simultaneously, second anchor point can be used as first anchor point simultaneously, therefore, first anchor point can be provided with the functional unit of second anchor point simultaneously, and second anchor point also can be provided with each functional unit of first anchor point simultaneously.
Described duration indication (as timer) comprising: under the control of state detection unit, regularly the triggered protocol processing unit sends solicitation message T1 duration indication (as the T1 timer) regularly; For state detection unit is provided with monitoring period, the T2 duration indication (as the T2 timer) that accepting state to be monitored detects response message such as be included as; For waiting for the T3 duration indication (as the T3 timer) of monitor state detect-message.Certain duration indication of the present invention is not limited to this.
In sum, the embodiment of the invention provides the survival mechanisms of a kind of DHCP of detection opposite end anchor point state, has realized that the access connection session keeps management, makes can reasonably charge and operation such as management.Application scenarios, mode and the scope of DHCP have been expanded.
Though above-described only is embodiment, and do not mean that protection scope of the present invention only limits to described embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making under the creative work prerequisite by revising, be equal to, substituting the every other embodiment that is obtained.

Claims (10)

1, a kind of condition detection method of DHCP is characterized in that, comprising:
The state-detection message that at the appointed time interior monitoring second anchor point of DHCP first anchor point sends;
Described first anchor point is determined the state of described second anchor point according to monitored results.
2, the method for claim 1 is characterized in that, described monitored results comprises:
Described first anchor point is intercepted at the appointed time and is received the effective state-detection message that described second anchor point sends; Or,
Described first anchor point is not intercepted at the appointed time and is received the effective state-detection message that described second anchor point sends.
3, method as claimed in claim 1 or 2 is characterized in that, described first anchor point determines that according to monitored results the state of described second anchor point comprises:
Described first anchor point is intercepted at the appointed time and is received the effective state-detection message that described second anchor point sends, and described first anchor point determines that the state of described second anchor point is for normal; Or,
Described first anchor point is not at least once intercepted at the appointed time and is received the effective state-detection message that described second anchor point sends, and described first anchor point determines that the state of described second anchor point is for unusual.
4, the method for claim 1 is characterized in that, described method also comprises:
Described second anchor point is regularly asked to the first anchor point transmit status detect-message according to described first anchor point.
5, the method for claim 1 is characterized in that, described method also comprises:
Described second anchor point is regularly to the described first anchor point transmit status detect-message.
6, the method for claim 1 is characterized in that, described method also comprises:
When first anchor point detected described first anchor point and second anchor point at the appointed time and do not have data traffic, described first anchor point began to monitor the state-detection message that second anchor point sends.
7, the method for claim 1 is characterized in that, described method also comprises:
Described first anchor point and/or described second anchor point discharge the described monitoring of indication termination according to inserting.
8, a kind of DHCP anchor point is characterized in that, comprising:
State detection unit is used for the monitor state detect-message, and judges the state of opposite end anchor point or the state of access connection session according to described state-detection message;
The duration indicating member is used to control the opportunity that anchor point detects.
9, anchor point as claimed in claim 8 is characterized in that, also comprises:
Protocol processing unit is used to handle dynamic host configuration protocol messages, comprises the transmit status detect-message, triggers the beginning and the termination of survival mechanisms.
10, a kind of condition detecting system of DHCP is characterized in that, comprising:
At least one first anchor point is used for timed sending state-detection message;
At least one second anchor point is used to monitor described state-detection message, thereby determines the described first anchor point state.
CNA2007101181748A 2007-06-29 2007-06-29 Status detection method, apparatus and system of dynamic host configuring protocol Pending CN101335652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101181748A CN101335652A (en) 2007-06-29 2007-06-29 Status detection method, apparatus and system of dynamic host configuring protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101181748A CN101335652A (en) 2007-06-29 2007-06-29 Status detection method, apparatus and system of dynamic host configuring protocol

Publications (1)

Publication Number Publication Date
CN101335652A true CN101335652A (en) 2008-12-31

Family

ID=40197985

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101181748A Pending CN101335652A (en) 2007-06-29 2007-06-29 Status detection method, apparatus and system of dynamic host configuring protocol

Country Status (1)

Country Link
CN (1) CN101335652A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778107A (en) * 2010-01-15 2010-07-14 中兴通讯股份有限公司 State synchronization processing method and device
WO2011035598A1 (en) * 2009-09-22 2011-03-31 中兴通讯股份有限公司 Dhcp client session keep-alive method, dhcp communication system and sn device
CN102571594A (en) * 2012-01-30 2012-07-11 华为技术有限公司 Method of relay configuration, network node and system
WO2016202126A1 (en) * 2015-06-19 2016-12-22 中兴通讯股份有限公司 Method and device of reclaiming ip address and dynamic host configuration protocol server
CN106603507A (en) * 2016-11-29 2017-04-26 哈尔滨安天科技股份有限公司 Method and system for automatically completing network security self checking
CN107332941A (en) * 2017-06-13 2017-11-07 青岛海信宽带多媒体技术有限公司 A kind of method, device and pattern of fusion gateway for configuring IP address, obtaining IP address
CN107968845A (en) * 2016-10-19 2018-04-27 中兴通讯股份有限公司 Detection method, device and the DHCP relay of Dynamic Host Configuration Protocol server state

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011035598A1 (en) * 2009-09-22 2011-03-31 中兴通讯股份有限公司 Dhcp client session keep-alive method, dhcp communication system and sn device
CN101778107A (en) * 2010-01-15 2010-07-14 中兴通讯股份有限公司 State synchronization processing method and device
WO2011085612A1 (en) * 2010-01-15 2011-07-21 中兴通讯股份有限公司 Method and apparatus for processing state synchronization
CN101778107B (en) * 2010-01-15 2014-03-12 中兴通讯股份有限公司 State synchronization processing method and device
CN102571594A (en) * 2012-01-30 2012-07-11 华为技术有限公司 Method of relay configuration, network node and system
CN102571594B (en) * 2012-01-30 2015-04-15 华为技术有限公司 Method of relay configuration, network node and system
WO2016202126A1 (en) * 2015-06-19 2016-12-22 中兴通讯股份有限公司 Method and device of reclaiming ip address and dynamic host configuration protocol server
CN107968845A (en) * 2016-10-19 2018-04-27 中兴通讯股份有限公司 Detection method, device and the DHCP relay of Dynamic Host Configuration Protocol server state
CN106603507A (en) * 2016-11-29 2017-04-26 哈尔滨安天科技股份有限公司 Method and system for automatically completing network security self checking
CN107332941A (en) * 2017-06-13 2017-11-07 青岛海信宽带多媒体技术有限公司 A kind of method, device and pattern of fusion gateway for configuring IP address, obtaining IP address

Similar Documents

Publication Publication Date Title
CN101355474B (en) Method and equipment for requesting and distributing connection point address
JP4727537B2 (en) Relay agent device and proxy address lending device
JP4103816B2 (en) Router setting method and router apparatus
CN101304363B (en) Method for managing conversation connection as well as apparatus and system
CN101335652A (en) Status detection method, apparatus and system of dynamic host configuring protocol
RU2285346C2 (en) Method for setting up default channels for operation and servicing on basis of internet-protocol over asynchronous transfer mode
JP2002158701A (en) Cable modem
CN101471966A (en) Method for preventing IP address from leakage
JP2004185498A (en) Access control unit
CN100553264C (en) A kind of method and apparatus that in dynamic host configure process, carries out relaying
EP2139189B1 (en) Method and system for performing keepalive monitoring on client sessions
EP1641192A1 (en) Method and device for detecting connectivity termination within an internet protocol version 6 access networks
US20100039956A1 (en) Method and system for performing keep-alive monitoring on subscriber sessions
JP5604389B2 (en) Communication system, router device, and router switching method
CN101325587A (en) Method for monitoring DHCP conversation
CN101197811B (en) Method for improving server reliability in dynamic main unit configuration protocol under proxy mode
CN104935564A (en) Method of enabling devices and services based on mDNS protocol to discover mutually in local area network
CN100525179C (en) Method for preventing IP address leakage
KR100399576B1 (en) The Servicing Method of Simple IP and Mobile IP Service in IMT-2000 Packet Data Service Node
CN101304406B (en) Method for managing conversation connection as well as apparatus and system
US8509153B2 (en) Method and apparatus for forwarding packets in IPV6 access code
CN111225080B (en) Method for acquiring gateway down-hanging equipment information
CN101888319A (en) Method and device for acquiring network access information of terminal equipment
CN103856571B (en) A kind of adaptive networking connection method and system
WO2012155571A1 (en) Base station self-configuration method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20081231