CN102340421A - Gateway management method, address allocation method, device and system - Google Patents

Gateway management method, address allocation method, device and system Download PDF

Info

Publication number
CN102340421A
CN102340421A CN2011103181363A CN201110318136A CN102340421A CN 102340421 A CN102340421 A CN 102340421A CN 2011103181363 A CN2011103181363 A CN 2011103181363A CN 201110318136 A CN201110318136 A CN 201110318136A CN 102340421 A CN102340421 A CN 102340421A
Authority
CN
China
Prior art keywords
dhcp
gateway
dynamic gateway
address
dynamic
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
CN2011103181363A
Other languages
Chinese (zh)
Other versions
CN102340421B (en
Inventor
潘稻
阳振庭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201110318136.3A priority Critical patent/CN102340421B/en
Publication of CN102340421A publication Critical patent/CN102340421A/en
Application granted granted Critical
Publication of CN102340421B publication Critical patent/CN102340421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a gateway management method. By the method, a dynamic gateway is provided for network equipment, and at least comprises an active state and an inactive state. After the dynamic gateway is activated, gateway functions can be executed, and the method comprises the following steps of: sensing an event of activating/deactivating a target dynamic gateway, and controlling an activation/deactivation operation on the target dynamic gateway according to the sensed event and the active/inactive state information of the dynamic gateway. The invention also discloses an address allocation method, a gateway management function entity, a gateway function entity, an address allocation function entity and a network communication system. By the invention, an address provided by the dynamic gateway can be flexibly used, the application flexibility of a dynamic host configuration protocol (DHCP) can be improved in a DHCP environment, running cost is decreased, service deployment speed is increased, and simultaneously, favorability for the management and maintenance of a retailer address space is achieved.

Description

The management method of gateway, the method for address assignment and device, system
The application is based on and submitted Patent Office of the People's Republic of China on November 22nd, 2007, and application number is 200710031561.8, and denomination of invention is divided an application for what the Chinese invention patent application of " management method of gateway, the method for address assignment and device, system " proposed.
Technical field
The present invention relates to the communications field, relate in particular to method, gateway management functional entity, gateway function entity, address allocation function entity and the network communicating system of a kind of management method of gateway, a kind of address assignment.
Background technology
(Dynamic Host Configuration Protocol DHCP) provides the mechanism of a kind of dynamic assigned ip address and configuration parameter to DHCP, and the DHCP agreement is mainly used in the relatively place of difficulty of large network environment and configuration.According to the DHCP agreement; Dynamic Host Configuration Protocol server can be client specifies Internet agreement (Internet Protocol automatically; IP) configuration parameter such as address and gateway address is because the configuration of DHCP can realize automatically and unified management that the DHCP agreement more and more is widely used.
The DHCP agreement generally adopts client/server (Client/Server) pattern; To DHCP Server configuration application (comprising parameters such as IP address allocated, subnet mask, default gateway) is proposed by DHCP Client; DHCP Server returns corresponding configuration information according to strategy; Dhcp message adopts User Datagram Protocol, and (User Datagram Protocol UDP) encapsulates.
Fig. 1 is the DHCP system architecture diagram of prior art, in this DHCP system, is comprised by defined main member of DHCP agreement and corresponding function thereof:
DHCP Server: have the administration configuration function, DHCP is provided configuration admin service, as a kind of address allocation function entity; Can be DHCP Client distributing IP address or other network parameters according to the request of DHCP Client, DHCP Server is general, and existence form comprises: be integrated in router, the three-tier switch; Or exist with special Dynamic Host Configuration Protocol server form; Or be integrated in OSS (Operational Support Systems, OSS) in, perhaps other form;
Dhcp relay agent/DHCP proxy (DHCP Relay Agent/DHCP Proxy): the equipment of transmission of dhcp messages between DHCP Server and DHCP Client; DHCP Relay Agent/DHCP Proxy provides a kind of transparent transmission mechanism of broadcast; Can transmit can not be through the dhcp broadcast message of three-layer equipment; Make DHCP Server service to be provided for the DHCP Client of each subnet; DHCP Relay Agent/DHCP Proxy is after receiving the DHCP request message that DHCP Client sends; Corresponding D HCP Relay Agent/DHCP Proxy address is inserted request message and/or increased corresponding Option82 information; Be forwarded to then on the DHCP Server; DHCP Server just can confirm according to giaddr address information in the request message of receiving or Option82 information needs distribute the IP address of which subnet, and wherein, the general existence form of dhcp relay agent/DHCP proxy comprises: router, three-tier switch, edge, internet (IP Edge) equipment or other forms like this;
IP Edge equipment; Under DSL FORUM standard TR-059 and TR-101 definition can be Broadband Remote Access Server (Broadband Remote Access Server; BRAS) or wideband network gateway wideband network gateway (Broadband Network Gateway; BNG) equipment is not got rid of other IP edge devices (for example three layer access net networks) simultaneously yet, has DHCP Relay Agent/DHCP Proxy and gateway (Gateway) function on it;
DHCP Client: utilize the DHCP agreement to obtain the main frame of configuration parameter (as: IP address); General existence form is that perhaps other can obtain the terminals such as three-layer equipment of IP address to client host; As user residence gateway (Residential Gateway, RG).
Based on the DHCP system architecture of above-mentioned prior art shown in Figure 1, the dhcp address allocation flow in the face of prior art shown in Figure 2 describes down.
Fig. 2 is the schematic flow sheet based on the method for the address assignment of DHCP protocol system of prior art, and this flow process mainly comprises:
S201; DHCP Client sends DHCP DISCOVER message; DHCP DISCOVER message is a kind of as dhcp discover message, also can be DHCP Solicit message, carries out the parameter configuration application to seek the administration configuration server; Searching can provide the administration configuration server of parameter configuration service, carries information such as DHCP Client MAC Address in this DHCP DISCOVER message;
S202; After receiving DHCP DISCOVER message, handles accordingly DHCP Relay Agent/DHCP Proxy, as in DHCP DISCOVER message, increasing giaddr (being DHCP Relay Agent/DHCP Proxy address) and/or DHCP Option82 parameter etc.;
S203, DHCP Relay Agent/DHCP Proxy sends to DHCP Server with the DHCP DISCOVER message that processing obtains;
S204; After DHCP Server receives DHCP DISCOVER message; Resolve the parameter in this message, as in giaddr, DHCP Client MAC Address, the DHCP Option82 parameter one or more etc., and be DHCP Client distributing IP address according to strategy; Parameters such as IP address are inserted DHCP propose message, DHCP proposes that message can be DHCP OFFER message or DHCP Advertise message;
S205, the DHCP OFFER message that DHCP Server obtains processing sends to DHCP Relay Agent/DHCP Proxy;
S206, DHCP Relay Agent/DHCP Proxy send to DHCP Client after receiving and doing handled after the DHCP OFFER message, or directly give DHCP Client with DHCP OFFER forwards;
S207, DHCP Client begin parameter-configuring request after receiving DHCP OFFER message, and send the DHCP request message, as sending DHCP REQUEST message;
S208, DHCP Relay Agent/DHCP Proxy does handled after receiving said DHCP REQUEST message, as in DHCP REQUEST message, increasing the giaddr sign;
S209, DHCP Relay Agent/DHCP Proxy sends the DHCP REQUEST message that said processing obtains to DHCP Server;
S210, DHCP Server handle corresponding other of address assignment and handle after receiving DHCP REQUEST message, comprise the distribution state, the relevant treatment in IP address rental period of sign IP address etc.;
S211, DHCP Server is known message to DHCP Relay Proxy response DHCP, this DHCP knows that message can be DHCP ACK message or DHCP Reply message;
S212; After DHCP Relay Agent/DHCP Proxy receives said DHCP ACK message, resolve message, obtain the parameter in the message; In the rental period that comprises IP address and IP address, DHCP Relay Agent/DHCP Proxy can write down this IP address and this IP address rental period;
S213, DHCP Relay Agent/DHCP Proxy sends said DHCP ACK message to DHCP Client.
In the application of reality; General gateway through configuring fixed on DHCP Relay Agent/DHCP Proxy; A DHCP Client belongs to a gateway; It must be the corresponding same subnet network segment of this fixing gateway that DHCP Server gives DHCP Client IP address allocated, so DHCP Client can not independently select the IP address of other subnets, and DHCP Server can not control the IP address of distributing other subnets to DHCP Client.Shown in accompanying drawing 1: disposed gateway 10.0.0.255 and 20.0.0.255 on the DHCP Relay Agent/DHCP Proxy equipment; Their subnet mask is 255.255.255.0; Therefore DHCP Client1 can only distribute the corresponding 10.0.0.* network segment address of 10.0.0.255 gateway (wherein; * be asterisk wildcard, any number between the sign 1 to 254), DHCP Client2 can only distribute the 20.0.0.* network segment address.The very big like this application flexibility that limits the DHCP agreement; Especially under wholesale scene; DHCP Relay Agent/DHCP Proxy and DHCP Server ownership various network operator; The operator (operator that has DHCP Server) that address assignment be responsible in general title is the Retail Operations merchant; The operator (operator that has DHCP Relay Agent/DHCP Proxy equipment) that the access user be responsible in general title is wholesale operator, and when the Retail Operations merchant changed address distribution, the Retail Operations merchant must be through consulting to dispose accordingly and could change with wholesale operator.
The inventor finds that in the embodiment of the present invention process there is following problem at least in prior art:
Because the stationarity of gateway configuration; DHCP Client can not independently select the IP address of other subnets; DHCP Server can not control the IP address of distributing other subnets to DHCP Client, has therefore limited the application flexibility of DHCP agreement, has not only improved operation cost; And the speed of having slowed down service deployment, be unfavorable for the management maintenance of retailer's address space simultaneously.
Summary of the invention
Embodiment of the invention technical problem to be solved is; Method, gateway management functional entity, gateway function entity, address allocation function entity and the network communicating system of a kind of management method of gateway, a kind of address assignment are provided; Wherein used a kind of dynamic gateway; This dynamic gateway can switch between state of activation and deactivation status, and the IP address that makes this dynamic gateway provide can be used flexibly, and under the DHCP protocol environment; The IP address that this dynamic gateway provides is distributed to DHCP Client by DHCP Server and is used, and has also improved the application flexibility of DHCP agreement.
In order to solve the problems of the technologies described above, the embodiment of the invention has proposed a kind of network communicating system, and this network communicating system comprises:
The gateway function entity; Carry out gateway function, this gateway function entity is by pre-configured a kind of dynamic gateway, and this dynamic gateway comprises state of activation and deactivation status at least; When this dynamic gateway is in state of activation; This dynamic gateway can be carried out gateway function, and when this dynamic gateway was in deactivation status, this dynamic gateway can not be carried out gateway function;
The gateway management functional entity is managed said dynamic gateway, and this gateway management equipment comprises:
The perception unit, the incident of perception activation target dynamic gateway;
Control unit according to the activation state information of said incident that perceives and dynamic gateway, is controlled the activation operation of said gateway function entity to said target dynamic gateway.
In addition, the embodiment of the invention also provides a kind of management method of gateway, and this method is used to manage a kind of dynamic gateway; This dynamic gateway comprises state of activation and deactivation status at least; When this dynamic gateway was in state of activation, this dynamic gateway can be carried out gateway function, when this dynamic gateway is in deactivation status; This dynamic gateway can not be carried out gateway function, and then this method comprises:
The incident of perception activation target dynamic gateway;
According to the activation state information of said incident that perceives and dynamic gateway, control is to the activation operation of said target dynamic gateway.
In addition, the embodiment of the invention also provides a kind of distribution method of address, and this method has been used a kind of dynamic gateway; This dynamic gateway comprises state of activation and deactivation status at least; When this dynamic gateway was in state of activation, this dynamic gateway can be carried out gateway function, when this dynamic gateway is in deactivation status; This dynamic gateway can not be carried out gateway function, and this method comprises:
Reception is used to ask to distribute into client the request message of address;
According to described request message, from the dynamic gateway set of the corresponding deactivation status of the gateway function entity of said client ownership, confirm a target dynamic gateway;
Activate this target dynamic gateway on the said gateway function entity;
In the corresponding subnet of this target dynamic gateway, select an address assignment to give said client.
Correspondingly, the embodiment of the invention also provides a kind of gateway management functional entity, and this gateway management functional entity is used to manage a kind of dynamic gateway; This dynamic gateway comprises state of activation and deactivation status at least; When this dynamic gateway was in state of activation, this dynamic gateway can be carried out gateway function, when this dynamic gateway is in deactivation status; This dynamic gateway can not be carried out gateway function, and this gateway management functional entity comprises:
The perception unit, the incident of perception activation target dynamic gateway;
Control unit, according to the activation state information of said incident that perceives and dynamic gateway, control is to the activation operation of said target dynamic gateway.
Correspondingly, the embodiment of the invention also provides a kind of gateway function entity, this gateway function entity application a kind of dynamic gateway; This dynamic gateway comprises state of activation and deactivation status at least; When this dynamic gateway was in state of activation, this dynamic gateway can be carried out gateway function, when this dynamic gateway is in deactivation status; This dynamic gateway can not be carried out gateway function, and this gateway function entity comprises:
Receiving element, reception are used to control the control information to the activation operation of said target dynamic gateway;
Performance element according to said control information, is carried out said activation operation, and said activation manipulation comprises installs transmitting of said target dynamic gateway address, issues the corresponding routing iinformation of said target dynamic gateway; Said deactivating operation comprises transmitting of the said target dynamic gateway address of deletion, deletes the corresponding routing iinformation of said target dynamic gateway.
Correspondingly, the embodiment of the invention also provides a kind of address allocation function entity, and this address assignment service equipment is used to manage a kind of dynamic gateway; This dynamic gateway comprises state of activation and deactivation status at least; When this dynamic gateway was in state of activation, this dynamic gateway can be carried out gateway function, when this dynamic gateway is in deactivation status; This dynamic gateway can not be carried out gateway function, and this address assignment service equipment comprises:
It is that this client is distributed address that allocation unit, reception are used to ask behind the request message into client distribution address;
The gateway management unit; According to described request message; From the dynamic gateway set of the corresponding deactivation status of the gateway function entity of said client ownership, confirm a target dynamic gateway; Notify said gateway function entity to activate this target dynamic gateway, and Notify Address allocation units address of selection in the corresponding subnet of said target dynamic gateway is that said client is distributed.
The embodiment of the invention is through introducing a kind of dynamic gateway, and this dynamic gateway comprises state of activation and deactivation status at least, when this dynamic gateway is in state of activation; This dynamic gateway can be carried out gateway function, and when this dynamic gateway was in deactivation status, this dynamic gateway can not be carried out gateway function; And through this dynamic gateway of control activation, the IP address that makes this dynamic gateway provide can be by flexible use, under the DHCP protocol environment; The IP address that this dynamic gateway provides can be distributed to DHCP Client by DHCP Server and use; Improved the application flexibility of DHCP, thereby, operation cost not only reduced; And promoted the speed of service deployment, help the management maintenance of retailer's address space simultaneously.
Description of drawings
Fig. 1 is the DHCP system architecture diagram of prior art;
Fig. 2 is the schematic flow sheet based on the method for the address assignment of DHCP system of prior art;
Fig. 3 is the management method applied scene sketch map of the gateway of the embodiment of the invention;
Fig. 4 is the first embodiment sketch map of the management method of gateway of the present invention;
Fig. 5 is the second embodiment sketch map of the management method of gateway of the present invention;
Fig. 6 is the 3rd an embodiment sketch map of the management method of gateway of the present invention;
Fig. 7 is the 4th an embodiment sketch map of the management method of gateway of the present invention;
Fig. 8 is the 5th an embodiment sketch map of the management method of gateway of the present invention;
Fig. 9 is the 6th an embodiment sketch map of the management method of gateway of the present invention;
Figure 10 is the sketch map of the network system of the embodiment of the invention;
Figure 11 is the sketch map of multiple structure of the network communicating system of the embodiment of the invention.
Embodiment
The embodiment of the invention provides method, gateway management functional entity, gateway function entity, address allocation function entity and the network communicating system of a kind of management method of gateway, a kind of address assignment; Can realize dynamic gateway is activated and deexcitation; Improved the flexibility that use the corresponding IP of dynamic gateway address; Under the DHCP environment, can corresponding raising DHCP application flexibility.
Need to prove; In following each embodiment, all introduced dynamic gateway, this dynamic gateway comprises at least one its own IP address, and this dynamic gateway is to there being a sub-net network segment; This dynamic gateway includes the IP interface; This dynamic gateway also can be through the management interface configuration, like Simple Network Management Protocol (Simple Network Management Protocol, SNMP) configuration or command line interface (the Comand Line Interface through network management interface; CLI) configuration, and same dynamic gateway can be configured on a plurality of different relay agent's equipment (this relay agent's equipment has gateway function simultaneously)/gateway device.
Described dynamic gateway comprises two states at least: deactivation status (sleep state) and state of activation.The dynamic gateway of deactivation status does not take actual Internet resources, can not carry out gateway function, for example can not be used to transmit the data-message of self terminal, and the corresponding routing iinformation of the dynamic gateway of deactivation status also is non-existent; Otherwise the dynamic gateway of state of activation takies actual Internet resources, can carry out gateway function, for example can be used to transmit the data-message of self terminal, and the corresponding routing iinformation of the dynamic gateway of state of activation also exists.
Dhcp relay agent equipment (DHCP Relay Agent/DHCP Pxoxy) is responsible for the state of maintenance and management dynamic gateway, like state of activation, deactivation status.
Dynamic gateway through the management interface configuration is in deactivation status, and dhcp relay agent equipment is preserved the dynamic gateway of configuration on it and the state information of dynamic gateway through the dynamic gateway state table.
Dhcp relay agent equipment is responsible for intercepting signaling message and is activated dynamic gateway, comprises from the control signaling message of user terminal and/or from the message of Dynamic Host Configuration Protocol server, like DHCP OFFER message or DHCP ACK message.Said activation comprises installs transmitting of dynamic gateway address, the corresponding routing iinformation of issue dynamic gateway, and the state that corresponding dynamic gateway on the dynamic gateway state table is set is a state of activation.
Dhcp relay agent equipment is through detecting the state parameter deexcitation dynamic gateway of dynamic gateway; Said deexcitation comprises transmitting of deletion dynamic gateway address; The corresponding routing iinformation of deletion dynamic gateway, the state that corresponding dynamic gateway on the dynamic gateway state table is set is a deactivation status.The step of described detection comprises: intercept signaling message and judge whether this dynamic gateway exists the terminal of service, if do not exist, then carry out said deexcitation.
Dynamic Host Configuration Protocol server is responsible for receiving the DHCP request of self terminal; Is that dhcp client is selected available IP address according to the parameter in the request based on strategy; Be responsible for the activation and the deexcitation of control dynamic gateway in case of necessity, write down the state information of dynamic gateway and the correspondence relationship information of this dynamic gateway and dhcp relay agent equipment simultaneously.
The embodiment of the invention provides a kind of method of address assignment, and Dynamic Host Configuration Protocol server receives the parameter-configuring request message of user terminal, resolves the message configuring request parameter that gets parms, according to parameter-configuring request parameter and local tactful distributing IP address.Described parameter-configuring request parameter comprises: the gateway address that the MAC Address at terminal, dhcp relay agent equipment insert, Option 82 parameters of dhcp message etc.Comprise specifically that according to parameter-configuring request parameter and local tactful distributing IP address Dynamic Host Configuration Protocol server detects in the corresponding subnet network segment of gateway address (dynamic gateway that comprises common/default gateway and state of activation) in the described use according to gateway address and do not had the IP available address; Dynamic Host Configuration Protocol server is chosen other the subnet network segment (the corresponding subnet network segment of certain deactivation status dynamic gateway on this relay agent's equipment); Distribute IP address wherein to user terminal, wherein can comprise corresponding dynamic gateway on this dhcp relay agent equipment of activation.
The activation dynamic gateway of facing the management method of embodiment of the invention gateway down describes.
Fig. 3 is the management method applied scene sketch map of the gateway of the embodiment of the invention; DHCP Server serves a plurality of networks; Each network is all to there being DHCP Relay Agent/DHCP Proxy; Generally can have one or more default gateways on the DHCP Relay Agent/DHCP Proxy, promptly common gateway (non-dynamic gateway) is 10.0.0.1 (the off line pass of the corresponding scene of Fig. 3 interface identifies through the IP address) like the corresponding IP address of the default gateway interface on the DHCP Relay Agent/DHCP Proxy1 among Fig. 3; The IP address that default gateway interface on the DHCP Relay Agent/DHCP Proxy2 is corresponding is 10.1.0.1; The IP address that default gateway interface on the DHCP Relay Agent/DHCP Proxy3 is corresponding is 10.2.0.1, disposes at least one dynamic gateway on the DHCP Relay Agent/DHCP Proxy simultaneously, is defaulted as deactivation status at the beginning of the general configuration; Follow-up can the activation through the embodiment of following narration; There is 10.0.1.1 the IP address corresponding respectively like a plurality of dynamic gateway interfaces on the DHCP Relay Agent/DHCP Proxy2 among Fig. 3,10.0.2.1,10.1.1.1; 10.1.2.1; The dynamic gateway that wherein 10.1.2.1 is corresponding is activated, and the dynamic gateway state of DHCP Relay Agent/DHCP Proxy1, DHCP Relay Agent/DHCP Proxy3 correspondence repeats no more please referring to Fig. 3 here; And above-mentioned dynamic gateway can be configured to DHCP Relay Agent/DHCP Proxy or by DHCP Relay Agent/DHCP Proxy this locality through the management interface Remote configuration.The explanation of subsequent implementation example all is applicable to scene shown in Figure 3.
Fig. 4 is the first embodiment sketch map of the management method of gateway of the present invention; When describing this method; Also simultaneously the method for the address assignment of the embodiment of the invention is described, this embodiment has described through intercepting the process that protocol message between DHCP Client and the DHCP Server is realized the activation of dynamic gateway, wherein; DHCP Relay Agent/DHCP Proxy has gateway function, and this method comprises:
S401; DHCP Client sends the DHCP Server that DHCP DISCOVER message is sought administration configuration; Be that DHCP Client sends dhcp discover message (DHCP DISCOVER or DHCP Solicit); Begin to ask the parameter configuration of distributing IP address, searching can provide the administration configuration server of parameter configuration service;
S402; After DHCP Relay Agent/DHCP Proxy received the DHCP DISCOVER message of said DHCP Client transmission, DHCP Relay Agent/DHCP Proxy added relay agent's sign and/or at least one dynamic gateway sign in this DHCP DISCOVER message.Described relay agent sign comprises IP address or medium access control (Media Access Control, MAC) address or the device name of DHCP Relay Agent/DHCP Proxy; The dynamic gateway sign can be IP address, MAC Address, this dynamic gateway title (Identity of this dynamic gateway; The combination of one or more ID); Dynamic gateway comprises the gateway that is in state of activation/deactivation status; Specifically add to handle and to pass through giaddr (relay agent address) or DHCP Option82 field interpolation relay agent sign, and increase Option field interpolation dynamic gateway sign newly through DHCP DISCOVER message.
S403, DHCP Relay Agent/DHCP Proxy gives DHCP Server with the DHCP DISCOVER forwards that said interpolation is handled;
S404; After DHCP Server receives the DHCP DISCOVER message of said forwarding; Resolve this DHCP DISCOVER message and obtain the discovery message parameter; Wherein, find that message parameter can comprise that DHCP DISCOVER adds the MAC Address of the DHCP Client that comprises before handling, and relay agent's sign of inserting of DHCP Relay/Proxy Agent, dynamic gateway sign, Option82 parameter etc.
S405, DHCP Server chooses IP address available on the said DHCP Client according to discovery message parameter and local strategy that parsing obtains, and is specific as follows:
DHCP Server chooses the IP available address field that the IP address can be provided for DHCP Client according to MAC Address, Option 82 parameters, relay agent's sign and the local strategy of the DHCP Client in the DHCP DISCOVER message parameter, as: the available address section that DHCP Relay Agent/DHCP Proxy2 is corresponding among Fig. 3 is 10.1.0.*, 10.1.2.*;
DHCP Server chooses available IP address and uses for DHCP Client in the IP available address field; At this moment; DHCP Server at first judges in the corresponding subnet network segment of the dynamic gateway of the dynamic gateway sign indication of finding in the message parameter; Whether there is available IP address (idle IP address); Be whether perception has the incident that (or a plurality of) target dynamic gateway of activation,, then can distribute an IP available address in the dynamic gateway correspondence subnet network segment of finding dynamic gateway sign indication in the message to DHCP Client if the IP available address is arranged; If there is not the IP available address, then characterize the incident that has activation target dynamic gateway, from the dynamic gateway set of deactivation status, select the target dynamic gateway and the corresponding subnet thereof of available deactivation status;
DHCP Server is from the corresponding subnet of the target dynamic gateway selected, and selecting an IP available address is DHCP Client distribution;
S406; After DHCP Server selects IP available address corresponding in said target dynamic gateway and this target dynamic gateway; Transmission is used to control DHCP Relay Agent/DHCP Proxy and carries out the DHCP OFFER message (main control part) that the target dynamic gateway is activated; This DHCP OFFER message belongs to DHCP and proposes a kind of of message; This DHCP OFFER message comprises (if the IP address in the corresponding subnet network segment of IP available described herein address target dynamic gateway, IP available address; Then can this IP available address carry out following activation process) as the target dynamic gateway identification; Perhaps this DHCP OFFER message comprises the combination of IP available address and target dynamic gateway identification (if the IP address in the corresponding subnet network segment of IP available described herein address target dynamic gateway, target dynamic gateway identification then described herein can be MAC Address or dynamic gateway ID), and ciaddr (client address) field of DHCP OFFER message can be inserted in the IP available address of describing; The target dynamic gateway identification can be received in giaddr (the relay agent address of DHCP OFFER message; Be designated when dynamic gateway under the situation of IP address) field or DHCP OFFER message Option field, described DHCP proposes that message can also be the form of DHCP Advertise message.
S407; After DHCP Relay Agent/DHCP Proxy receives said DHCP OFFER message; Resolve this DHCP OFFER message, and the IP available address in the perception DHCP OFFER message, the perhaps combination of IP available address and target dynamic gateway identification; This IP available address, perhaps the incident of execution to target dynamic gateway activation manipulation promptly indicated in the combination of IP available address and target dynamic gateway identification;
S408, DHCP Relay Agent/DHCP Proxy are when perceiving said trigger event, and control is to the activation (from the control part) of target dynamic gateway; During concrete the realization; Can search the dynamic gateway state table according to described IP available address and/or target dynamic gateway identification, activate the target dynamic gateway, described activation comprises transmitting of installation targets dynamic gateway address; The corresponding routing iinformation of issue target dynamic gateway, the state of record object dynamic gateway is a state of activation etc.;
The effect of the dynamic gateway state table of mentioning here is; Realization is managed the activation state of the dynamic gateway of configuration on the DHCP Relay Agent/DHCP Proxy; Can carry out recording operation to this dynamic gateway state table; Comprise modification, deletion, renewal etc., the dynamic gateway state table that hereinafter is mentioned also is suitable for this description;
S409, DHCP Relay Agent/DHCP Proxy sends to DHCP Client with the DHCP OFFER message that S408 handles the back gained;
S410, DHCP Client receive after the DHCP OFFER message and send DHCP REQUEST message to DHCP Relay Agent/DHCP Proxy, i.e. DHCP request message, thereby beginning parameter-configuring request;
S411 after DHCP Relay Agent/DHCP Proxy receives said DHCP REQUEST message, adds the dynamic gateway sign that is activated in the said DHCP REQUEST message to;
S412; DHCP Relay Agent/DHCP Proxy sends the DHCP REQUEST message that said interpolation is handled to DHCP Server, like DHCP Relay Agent/DHCP Proxy2 among Fig. 3 dynamic gateway address 10.1.1.1 is added in giaddr (relay agent address) or the DHCP Option field;
S413; DHCP Server is after receiving DHCP REQUEST message; According to this DHCP REQUEST message; Carry out corresponding other processing of IP address assignment, comprise sign IP address relevant treatment such as distribution state and IP address assignment rental period, writing down this target dynamic gateway simultaneously is state of activation;
S414, DHCP Server response DHCP ACK message comprises parameter such as IP address allocated, this IP address rental period in this DHCP ACK message, DHCP ACK message is known a kind of form of message as DHCP, can also be DHCP Reply message;
S415; After DHCP Relay Agent/DHCP Proxy receives said DHCP ACK message; Resolve this DHCP ACK message; Get parms, comprise the rental period of distributing IP address and this IP address, DHCP Relay Agent/DHCP Proxy can write down the rental period of distributing IP address and this IP address;
S416, DHCP Relay Agent/DHCP Proxy sends said DHCP ACK message to DHCP Client.
Need to prove that before present embodiment, need at DHCP Relay Agent/DHCP Proxy configuration dynamic gateway and the corresponding DHCP Server address list of dynamic gateway, the dynamic gateway of configuration generally is in deactivation status.
As a kind of execution mode; On the first embodiment basis of the management method of above-mentioned gateway shown in Figure 4; Except that the DHCP Server address list that on DHCP Relay Agent/DHCP Proxy, disposes dynamic gateway and dynamic gateway correspondence of explanation before; Also through the corresponding relation of the dynamic gateway of configuration on management interface configuration DHCP RelayAgent/DHCP Proxy and this DHCP Relay Agent/DHCP Proxy, same dynamic gateway can be configured on a plurality of different DHCP Relay Agent/DHCP Proxy on the DHCP Server.Under this mode, the overall flow of first embodiment of the management method of gateway shown in Figure 4 does not need to change, and changes step S402, S405 in this flow process, below the difference of this step of narration:
S402, DHCP Relay Agent/DHCP Proxy no longer need increase dynamic gateway information after receiving the DHCP DISCOVER message of said DHCP Client transmission in DHCP DISCOVER message, only need to increase the corresponding relay agent identification;
S405, DHCP Server chooses IP address available on the said DHCP Client according to the relay agent's sign and the local policy of resolving in the said DHCP DISCOVER message, specifically can comprise:
DHCP Server judges according to relay agent sign whether default gateway said DHCP Relay Agent/DHCP Proxy on and the corresponding subnet network segment IP address of having activated of dynamic gateway distribute, and whether the interior IP address of the gateway correspondence subnet network segment of execution gateway function is all rented promptly said DHCP Relay Agent/DHCP Proxy on;
When the IP network sector address that determines said correspondence as DHCP Server has distributed (perhaps based on other strategy); (DHCP Server can write down the operating position of dynamic gateway to search available dynamic gateway under the said DHCP Relay Agent/DHCP Proxy; Promptly write down the activation state of dynamic gateway); After finding available dynamic gateway, add among the ciaddr of DHCP OFFER message the IP available address that this dynamic gateway is corresponding; This dynamic gateway sign is added among the giaddr (dynamic gateway identifies through the IP address) or DHCP Option field of DHCP OFFER message; Promptly in this mode DHCP Server through the corresponding relation of the dynamic gateway that on the DHCP Relay Agent/DHCP Proxy of this locality configuration and this DHCP Relay Agent/DHCP Proxy, disposes; Select dynamic gateway, select and no longer identify through the dynamic gateway that has in the DHCP DISCOVER message;
In addition, to first embodiment of the management method of above-mentioned gateway of the present invention shown in Figure 4, following points need explanation:
The incident that A1, flow process S405 describe for DHCP Server triggering control DHCP Relay Agent/DHCP Proxy activation dynamic gateway; This incident is kept among the DHCP Server as the local policy of DHCP Server, and this incident can have but be not limited only to following several kinds:
IP address on the corresponding DHCP Relay Agent/DHCP Proxy in the corresponding subnet network segment of gateway (dynamic gateway that comprises default gateway and state of activation) of execution gateway function distributes;
Carry out the IP address of being rented in the corresponding subnet network segment of gateway (dynamic gateway that comprises default gateway and state of activation) of gateway function on the corresponding DHCP Relay Agent/DHCP Proxy and reach a preset value;
Third party device such as strategic server (Policy Server) control DHCP Server triggers DHCP Relay Agent/DHCP Proxy and activates certain dynamic gateway; In such cases, can be that DHCP Server ACTIVE CONTROL DHCP Relay Agent/DHCP Proxy activates certain dynamic gateway on this DHCP Relay Agent/DHCP Proxy;
The DHCP Server that describes among A2, the flow process S405 selects one of them deactivation status dynamic gateway from the dynamic gateway set of deactivation status; This selection can be followed certain selection strategy; Can select according to set priority orders, also can select at random, but be not limited only to this;
Like this, when having a plurality of alternative dynamic gateway, the selection of multiple policy optimization to dynamic gateway can be provided;
The operation of the activation dynamic gateway of describing among A3, the flow process S408; The operation that fact of dynamic gateway activated in handling of this also can be transferred in the flow process and realize in other step in step; For example after the S411; DHCP Relay Agent/DHCP Proxy is true this dynamic gateway that activates after receiving DHCP REQUEST message, but while DHCP Relay Agent/DHCP Proxy in the S408 step still need write down the corresponding dynamic gateway information that is about to activation, i.e. this dynamic gateway of preactivate;
Like this; The activation process of multiple dynamic gateway can be provided; The method of above-mentioned employing preactivate dynamic gateway; Can before the flow process of DHCP agreement distributing IP address is accomplished, not activate dynamic gateway rashly, such benefit is to prevent because of the configuration parameter in the dhcp client refusal DHCP OFFER message or does not respond the abnormal conditions that cause, and makes content of the present invention more perfect;
Mechanism provided herein is applicable to the method flow of all activated dynamic gateway, and this explanation is applicable to the method embodiment of all gateway managements;
Possibly (interrupt suddenly or DHCP Client sudden power or malicious attack) because abnormal conditions in A4, this method like network, flow process can end in a certain step (just stopping having responded like DHCP Client relevant a certain step in this flow process) this moment we following 2 points are arranged:
One of which; DHCP Client has not just responded the DHCP OFFER message of DHCP Relay Agent/DHCP Proxy transmission when flow process S410; This moment can be through disposing a preset time on DHCP Relay Agent/DHCP Proxy; If the DHCP REQUEST message that DHCP Relay Agent/DHCP Proxy confiscates DHCP Client in this preset time; The dynamic gateway deexcitation that then will activate (all write down on DHCP Relay Agent/DHCP Proxy, the DHCP Server in the case and activated this dynamic gateway), perhaps this moment, DHCP Relay Agent/DHCP Proxy directly returned the DHCP ACK message (all write down on DHCP Relay Agent/DHCP Proxy, the DHCP Server in the case and activated this dynamic gateway) that activates said dynamic gateway to DHCP Server;
They are two years old; Under the described preactivate flow process of A3; Flow process S412, S414 are necessary to provide retransmission mechanism; For example, when DHCP Relay Agent/DHCP Proxy did not receive the DHCP ACK message (guaranteeing that promptly DHCP Server has accomplished the local record flow process of describing among the flow process S413) that the DHCP Server that describes among the flow process S414 returns in preset time, DHCP Relay Agent/DHCP Proxy did not directly activate said dynamic gateway; And this moment, DHCP Relay Agent/DHCP Proxy carried out the step of S412 again, received DHCP ACK message up to DHCP Relay Agent/DHCP Proxy;
Like this, just guaranteed dynamic gateway state consistency on DHCP Relay Agent/DHCP Proxy, the DHCP Server, but can realize that other measures of this purpose also should be within protection range of the present invention;
A5, according to DHCP agreement distributing IP address process, also comprise following two kinds of situation:
When 1, DHCP Client lands again; IP address relevant configured parameter according to before landing is again directly initiated the situation that DHCP REQUEST message is asked the IP address; So; If the parameter in the DHCP REQUEST message still can be used, then DHCP Server directly returns DHCP ACK message by the parameter before landing again, otherwise DHCP Client initiate the IP application IP addresses again and carry out normal flow or as above-mentioned embodiment in the flow process of the IP address assignment method described;
2, the situation of the DHCP Server DHCP request message parameter of sending through DHCP exception response message (like DHCP NAK or DHCP REPLY message) refusal DHCP Client etc.; So, DHCP Client initiate the IP Address requests again and carry out normal flow or as above-mentioned embodiment in the flow process of the IP address assignment method described.
A6, embodiment one comprise that the relay agent described in the following embodiment identifies and the bearing mode of dynamic gateway sign just is applied in a kind of optimal way of the present invention; The present invention does not limit the realization of bearing mode, and any protocol interaction realizes that the activation deexcitation of dynamic gateway all should be in protection scope of the present invention.
As a kind of execution mode; In practical application, before DHCP Client, once obtain DHCP Server and be its IP address allocated, and under the situation of this IP address aging; DHCP Client can initiate DHCP request message (like DHPC REQUEST message) and apply for renting this IP address again; Therefore, can use second embodiment of the management method of gateway of the present invention as shown in Figure 5, when describing this method; Also the distribution method of the IP address of the embodiment of the invention is illustrated simultaneously, idiographic flow is following:
S501; DHCP Client sends DHCP REQUEST message; The beginning parameter-configuring request, this DHCP REQUEST message is a kind of as the DHCP request message, can comprise that wherein DHCP Client request IP address allocated (is present in the DHCP REQUEST message among the ciaddr; Or be present among the Option50, or other modes);
S502; After DHCP Relay Agent/DHCP Proxy receives said DHCP REQUEST message; In this DHCP REQUEST message, add request message parameters such as relay agent's sign and/or at least one dynamic gateway sign, the dynamic gateway sign comprises the corresponding dynamic gateway in IP address of asking in the said DHCP REQUEST message;
DHCP REQUEST forwards after S503, DHCP Relay Agent/DHCP Proxy handle above-mentioned interpolation is to DHCP Server;
After S504-S505, DHCP Server receive DHCP REQUEST message, resolve this DHCP REQUEST message and obtain the request message parameter, do subsequent operation according to described request message parameter and local strategy, described strategy and operation comprise:
Gateway to message parameter indication in the DHCP REQUEST message is judged; Judge that promptly it is state of activation dynamic gateway, deactivation status dynamic gateway or default gateway; If the dynamic gateway of deactivated state; Then determine whether activating this dynamic gateway or reply DHCP NAK message and make DHCP Client initiate Address requests again, activate this dynamic gateway, then reply DHCP ACK message like decision according to strategy; Dynamic gateway activation event information is added in the corresponding description of first embodiment of the management method of concrete as gateway of the present invention; And add address and the relevant parameter information in the configuration parameter in the DHCP REQUEST message, if the dynamic gateway of default gateway or state of activation then continues following judgement and operation;
Judge whether the IP address in the configuration parameter is also available in the DHCP REQUEST message; As available, then directly reply DHCP ACK message, as unavailable by configuration parameter in the message; Then judge in the corresponding network segment in this this IP address and whether also have the IP available address; As existing, then select corresponding IP available address and add that corresponding configuration parameter issues, then reply DHCP NAK message and make DHCP Client initiate Address requests again as not existing;
Explain: this step S505 comprises the situation of follow-up multiple processing; But the flow of the corresponding S505 of Fig. 5 has only been described the gateway that in DHCP REQUEST message, carries and has been dynamic gateway and is in deactivation status, and the situation of activation manipulation is carried out in DHCP SERVER decision-making to this dynamic gateway;
S506; After DHCP Relay Agent/DHCP Proxy receives said DHCP ACK message; Resolve this DHCP ACK message, get parms, comprise the corresponding IP gateway address in rental period, IP available address and/or IP available address of distributing IP address, this IP address; And parameter carried out perception; The incident of execution to target dynamic gateway activation manipulation promptly indicated in the corresponding IP gateway address in this IP available address that is perceived and/or IP available address, searches the dynamic gateway state table according to the corresponding target dynamic gateway address in described IP available address and/or IP available address, if the target dynamic gateway is a deactivation status; Then activate the target dynamic gateway, concrete activation manipulation can to describe content identical with the embodiment one of the management method of gateway of the present invention shown in Figure 4;
DHCP ACK forwards after S507, DHCP Relay Agent/DHCP Proxy handle S506 is to DHCP Client.
Second embodiment of the management method of gateway of the present invention shown in Figure 5 is based on the IP address assignment flow process of prior art; The mode that in addition management of gateway is also existed other; Trigger the operation that DHCP Relay/Proxy activates dynamic gateway based on strategy or under the control of third party device such as Policy Server like DHCP Server; Fig. 6 is the 3rd embodiment of the management method of gateway of the present invention; Corresponding a kind of DHCP Server directly controls the flow process that DHCP Relay Agent/DHCP Proxy activates the operation of target dynamic gateway, and its detailed process is following:
S601; DHCP Server is based on local policy or receive third party device (like Policy Server) to search the dynamic gateway of deactivation status on the corresponding DHCP Relay Agent/DHCP Proxy, based on the target dynamic gateway of one of them deactivation status of policy selection;
S602; DHCP Server sends DHCP OFFER message; The target dynamic gateway identification is received in giaddr field or the newly-increased Option field in this DHCP OFFER message; If need once activate a plurality of dynamic gateways, then need a plurality of target dynamic gateway identifications be inserted newly-increased Option field;
S603; After DHCP Relay Agent/DHCP Proxy receives DHCP OFFER message; Perceive target dynamic gateway identification wherein; This target dynamic gateway identification indication triggers the incident of carrying out target dynamic gateway activation manipulation; Subsequently, find the corresponding target dynamic gateway of the target dynamic gateway identification with above-mentioned selection of local storage, and activate this target dynamic gateway; Concrete activation manipulation can to describe content identical with the embodiment one of the management method of gateway of the present invention shown in Figure 4, and DHCP Relay Agent/DHCP Proxy inserts the target dynamic gateway identification of the target dynamic gateway that is activated in the giaddr field or Option field in the DHCP ACK message;
S604, DHCP Relay Agent/DHCP Proxy returns DHCP ACK message to DHCP Server;
S605, DHCP Server extract target dynamic gateway identification wherein after receiving DHCP ACK message, and write down the state of this target dynamic gateway.
In the 3rd embodiment of the management method of gateway of the present invention shown in Figure 6, be worth explanation as follows:
Under B1, this kind method flow, need the information of the dynamic gateway corresponding relation of configuration on configuration DHCP Relay Agent/DHCP Proxy and this DHCP Relay Agent/DHCP Proxy on the DHCP Server;
B2, when specifically realizing, the dhcp message of above-mentioned transmission can have other selection, for example the S602 step can be sent through other form of message, be not restricted to DHCP OFFER message;
B3, this application flow have explained that the way to manage of dynamic gateway can be varied.Any all should be within the protection range of this patent through the activation of dynamic gateway being come gateway is managed.
The method of above-described activation dynamic gateway all is that DHCP Server triggers the activation to corresponding dynamic gateway based on local policy or external control, the activation manipulation to dynamic gateway that in the application of reality, also exists DHCP Relay Agent/DHCP Proxy to trigger.
Fig. 7 is the 4th an embodiment sketch map of the management method of gateway of the present invention, and this embodiment has described the process to the activation manipulation of dynamic gateway that is triggered by DHCP Relay Agent/DHCP Proxy, and the detailed step of this method is following:
S701; DHCP Relay Agent/DHCP Proxy initiates the activation manipulation to certain target dynamic gateway (or tabulation of a plurality of target dynamic gateway formation) under the triggering of condition; Concrete mode can be requesting activation one a target dynamic gateway, and the target dynamic gateway with all deactivated states on the DHCP Relay Agent/DHCP Proxy places message to send to DHCP Server as tabulation simultaneously;
S702; DHCP Relay Agent/DHCP Proxy initiates DHCP REQUEST message; In this DHCP REQUEST message, add relay agent's sign, target dynamic gateway identification and the said tabulation of DHCP Relay Agetn/DHCP Proxy, giaddr field or the Option field can relay agent be identified, DHCP REQUEST message inserted in target dynamic gateway identification and said tabulation;
S703; DHCP Server receives DHCP REQUEST message; Extract giaddr field or Option field information; Detect the request that DHCP Relay Agent/DHCP Proxy activates the target dynamic gateway, search the target dynamic gateway that be in deactivation status (based on certain strategy) corresponding, and to write down this target dynamic gateway be state of activation with the target dynamic gateway identification;
S704, DHCP Server inserts (giaddr or newly-increased Option field) in the DHCP ACK message with above-mentioned target dynamic gateway identification, and sends to DHCP Relay Agent/DHCP Proxy;
Follow-up DHCP Relay Agent/DHCP Proxy receives request, and the operation (comprise the DHCP Relay Agent/DHCP Proxy incident that perception activates the target dynamic gateway from the DHCP ACK that DHCP Server returns and trigger the process that the target dynamic gateway is activated) that activates the respective objects dynamic gateway is not described in detail here.
What this embodiment was worth explanation is:
F1, as the supplementary notes of the embodiment of the invention one; On the DHCP Server possible configuration corresponding relation of the dynamic gateway of configuration on DHCP Relay Agent/DHCP Proxy and this DHCP Relay Agent/DHCP Proxy; So on stream; Only need in DHCP REQUEST message, increase the dhcp relay agent sign and get final product, no longer need add the dynamic gateway identification information;
The condition that F2, DHCP Relay Agent/DHCP Proxy trigger is varied, is not limited to following two kinds:
The distribution condition of the interior IP address of the corresponding subnet network segment of gateway (dynamic gateway that comprises default gateway and state of activation) of gateway function is carried out in DHCP Relay Agent/DHCP Proxy perception self; Perceiving needs newly-increased gateway interface; For example; Judge on the DHCP Relay Agent/DHCP Proxy whether the IP address is all rented in the corresponding subnet network segment of the gateway of carrying out gateway function,, form said trigger condition when being judged as when being;
External policy control DHCP Relay Agent/DHCP Proxy triggers the activation to dynamic gateway, and for example strategic server control is to the activation of dynamic gateway;
The deexcitation dynamic gateway of facing the management method of embodiment of the invention gateway down describes.The deexcitation of dynamic gateway also can be carried out in several ways, is for example triggered the deexcitation of dynamic gateway by DHCP Server, or triggers the deexcitation of dynamic gateway by DHCP Relay Agent/DHCP Proxy.
Fig. 8 is the 5th an embodiment sketch map of the management method of gateway of the present invention, and this embodiment has described the process that is triggered control DHCP Relay Agent/DHCP Proxy deexcitation dynamic gateway by DHCP Server, and this method detailed step is following:
S801; DHCP Server sends the DHCP reconfiguration message under the triggering of condition; Thereby initiate deactivating operation to the target dynamic gateway; The DHCP reconfiguration message can be DHCP FORCERENEW message or DHCP RECONFIGURE message; To need the target dynamic gateway identification of deexcitation to insert in giaddr field or the DHCP Option field in the DHCP FORCERENEW message; The condition that triggers can be to perceive that IP address in the corresponding subnet network segment of this target dynamic gateway is released entirely or the rental period expires and do not upgrade, or does not have the IP address in real network, to be used, and the DHCP reconfiguration message promptly is used to control the control information of the target dynamic gateway being carried out deactivating operation;
S802; DHCP Relay Agent/DHCP Proxy is after receiving the DHCP reconfiguration message; Target dynamic gateway identification in perception giaddr field or the DHCP Option field, discovery are the target dynamic gateways under certain state of activation under the corresponding DHCP Relay Agent/DHCP Proxy, and this target dynamic gateway identification promptly characterizes the incident of carrying out target dynamic gateway deactivating operation that triggers; This target dynamic gateway is carried out deactivating operation; Comprise transmitting of this target dynamic gateway address of deletion, delete the corresponding routing iinformation of this target dynamic gateway, the state that writes down this target dynamic gateway is a deactivation status.
S803, DHCP Relay Agent/DHCP Proxy return DHCP ACK message and give DHCP Server.
S804, DHCP Server are after receiving DHCP ACK message, and writing down corresponding dynamic gateway state is deactivation status.
What be worth explanation among the 5th embodiment of the management method of gateway of the present invention shown in Figure 8 is:
C1, when specifically realizing, the dhcp message of above-mentioned transmission can have other to select, for example the S801 step can be sent the message of other form, is not restricted to the DHCP reconfiguration message.
Fig. 9 is the 6th an embodiment sketch map of the management method of gateway of the present invention, and this embodiment has described the process that is triggered the deexcitation dynamic gateway by DHCP Relay Agent/DHCP Proxy, and its detailed process is following:
S901; DHCP Relay Agent/DHCP Proxy initiates the deactivating operation to the target dynamic gateway under the triggering of condition; Comprise transmitting of this target dynamic gateway address of deletion; Delete the corresponding routing iinformation of this target dynamic gateway; The state that writes down this target dynamic gateway is a deactivation status, and the condition of triggering can be that DHCP Relay Agent/DHCP Proxy perceives that IP address in the corresponding subnet network segment of this dynamic gateway is released entirely or the rental period expires and do not upgrade, or does not have the IP address in real network, to be used (promptly indicating the incident to the deexcitation of target dynamic gateway);
S902; DHCP Relay Agent/DHCP Proxy sends DHCP RELEASE message; This DHCP RELEASE message is a kind of of DHCP release message, wherein can the target dynamic gateway identification be inserted in the giaddr field or DHCP Option field in this DHCP RELEASE message;
S903, DHCP Server extract wherein giaddr field or DHCP Option field information after receiving DHCP RELEASE message, find correspondingly with the dynamic gateway of certain state of activation, and writing down this target dynamic gateway is deactivation status;
S904, DHCP Server returns DHCPACK message, and this DHCPACK message is known a kind of form of message as DHCP, can also be DHCP REPLY message;
To the 6th embodiment of the management method of above-mentioned gateway of the present invention shown in Figure 9, following points need explanation:
D1, when specifically realizing, the dhcp message of transmission can have other to select, for example the S902 step can be sent the message of other form, is not restricted to the DHCP release message, also can be DHCP updating message or other;
The deexcitation that the 5th embodiment of the management method of D2, gateway of the present invention describes by DHCP Server triggering dynamic gateway; And the deexcitation by DHCP Relay Agent/DHCP Proxy triggering dynamic gateway that the 6th embodiment of the management method of gateway of the present invention describes all is optional mode; Can only adopt wherein a kind of mode or employing simultaneously; Wherein the 5th embodiment of the management method of gateway of the present invention is a preferred version, and other optional scheme can also be arranged;
The the 5th, the 6th embodiment of the management method of the gateway of the present invention of D3, Fig. 8, Fig. 9 correspondence just manages the preferred version of dynamic gateway deexcitation, and the scheme of all management dynamic gateway deexcitations all should be in protection scope of the present invention.
What be worth explanation is; In practical application; Often there is following situation; Certain dynamic gateway is after activating on the gateway device, and in certain time period, the IP address in the corresponding subnet network segment of certain dynamic gateway has only the application of very small amount in the network of correspondence; And other default gateway or activated and also have enough IP addresses to supply to use in the corresponding subnet of dynamic gateway; If exist a plurality of dynamic gateways to have the very low situation of this utilization rate simultaneously, certainly will cause the waste of address, therefore; Under this kind scene; DHCP Server can force to make the terminal of the IP address of using in the corresponding subnet network segment of corresponding dynamic gateway to change to (for example DHCP Server uses DHCP FORCERENEW message or DHCP RECONFIGURE message to force terminal updating IP address) on said enough IP addresses through the DHCP agreement earlier, makes that the IP address in the corresponding subnet network segment of dynamic gateway all is in unused state, triggers this dynamic gateway of deexcitation by DHCP Server method shown in above-mentioned embodiment again.
Through realizing following beneficial effect being arranged like two embodiment of the management method of Fig. 8, gateway of the present invention shown in Figure 9:
Activation process through dynamic gateway can realize the flexible use of gateway interface between distinct device, thereby realizes the management of gateway, and the flexible use of corresponding IP network section in heterogeneous networks improved the efficient that resource is used.
The flow process that first embodiment of the management method of gateway of the present invention, second embodiment mainly distribute based on existing dhcp address realizes the management of gateway; The distribution of IP address; The 3rd embodiment, the 4th embodiment, the 5th embodiment, the 6th embodiment then utilize the DHCP agreement to realize the management of gateway; Optimize the distribution of IP address, in the application of reality, be not limited to the management that in fact the DHCP agreement can realize gateway through multiple other agreement; Comprise activation of dynamic gateway or the like; For example DIAMETER agreement, general open policy service protocol (Common Open Policy Service, COPS) agreement, Simple Network Management Protocol (Simple Network Management Protocol, SNMP) or the like.In the application of reality; Shown in the 3rd embodiment, the 4th embodiment, the 5th embodiment, the 6th embodiment; Can be the activation operation to dynamic gateway that DHCP SERVER initiates through perception, also can be the activation operation to dynamic gateway that DHCP Relay Agent/DHCP Proxy initiates through perception.All these comprise and use variety of protocol to realize, comprise various perception initiation activation method of operating, all should be within the protection range of this patent.
Using the DHCP agreement is more excellent a kind of mode of the present invention, but the present invention does not limit the use of protocol type, no matter uses which kind of agreement to realize that dynamic gateway activates the control and management of deexcitation, all should be in protection scope of the present invention and so on.
Front embodiment all is based on gateway interface and is positioned at the scene on the DHCP Relay Agent/DHCP Proxy; And the situation that also exists dhcp relay agent to separate with gateway interface function (the gateway interface function is on the gateway function equipment) in actual use; Be DHCP Relay Agent/DHCP Proxy and gateway function device separates; Under this scene, DHCP Relay Agent/DHCP Proxy needs to handle:
The flow process of being narrated among E1, the completion front embodiment; Promptly comprise according to intercepting signaling message and activate dynamic gateway; Intercepting signaling message is specially from the signaling message of DHCP Client and/or from the message of DHCP Server; Like DHCP OFFER message or DHCP ACK message, preserve dynamic gateway and the state information thereof that disposes through the dynamic gateway state table, different with front embodiment is; The correspondence relationship information that DHCP Relay Agent/DHCP Proxy also need preserve the dynamic gateway of gateway function equipment and its configuration, DHCP Relay Agent/DHCP Proxy and gateway function equipment can be the relations of one-to-many;
E2, control gateway function device activation dynamic gateway; Wherein, Described activation is included in and disposes dynamic gateway corresponding in the dynamic gateway state table on the DHCP Relay Agent/DHCP Proxy is state of activation; Transmitting of dynamic gateway address is installed, the corresponding routing iinformation of issue dynamic gateway on gateway function equipment; The dynamic gateway that described deexcitation is included in configuration correspondence on the DHCP Relay Agent/DHCP Proxy is a deactivation status, and deletion dynamic gateway address transmits the corresponding routing iinformation of deletion dynamic gateway on gateway function equipment.The concrete control protocol that realizes can be a kind of in the agreements such as COPS agreement or DIAMETER agreement.
In addition, also possibly there is DHCP Relay Agent/DHCP Proxy function device integrated gateway interface function, also controls the scene of third party's gateway function equipment simultaneously.Any all should be within protection scope of the present invention based on the method for coming through the activation of dynamic gateway gateway is managed.
The embodiment of corresponding above-mentioned each method, the system that provides in the face of the embodiment of the invention down describes, and the device to the embodiment of the invention when describing embodiment of the invention system has also carried out related description.
Figure 10 is the sketch map of the network communicating system of the embodiment of the invention; With reference to this figure; Network communicating system includes DHCP Client101, DHCP Relay Agent/DHCP Proxy102, DHCP Server103; This DHCP Relay Agent/DHCP Proxy102 is except that having gateway function; Also has relay agent feature (corresponding to relay agent's sign, this DHCP Relay Agent/DHCP Proxy102 of sign indication of this relay agent), because it has gateway function; The dynamic gateway of the embodiment of the invention also is configured on the DHCP Relay Agent/DHCP Proxy102; Wherein, DHCP Relay Agent/DHCP Proxy102 comprises first receiving element 1021, first processing unit 1022, administrative unit 1023, first transmitting element 1024, first record cell 1025 (first receiving element 1021, first transmitting element 1024 are the unit with relay function), and DHCP Server103 comprises second receiving element 1031, second processing unit 1032, second transmitting element 1033, second record cell 1034; Wherein administrative unit 1023 includes perception unit and control unit, each Elementary Function such as following:
DHCP Client101, DHCP Server103 link to each other with DHCP Relay Agent/DHCP Proxy102 respectively;
According to the handling process of this network system, each Elementary Function is described below:
DHCP Client101; Be used to send the DHCP Server103 that DHCP DISCOVER message is sought administration configuration; Be that DHCP Client sends dhcp discover message (DHCP DISCOVER or DHCP Solicit); Begin to ask the parameter configuration of distributing IP address, searching can provide the administration configuration server of parameter configuration service;
First receiving element 1021 is used to receive the DHCP DISCOVER message that said DHCP Client101 sends;
First processing unit 1022; Be used for adding relay agent's sign and/or at least one dynamic gateway sign in the said DHCP DISCOVER message that receives, described relay agent sign comprises IP address or MAC Address or MAC Address or the device name of DHCP Relay Agent/DHCP Proxy102; Dynamic gateway sign can be one or more combination of IP address, MAC Address, this dynamic gateway title of this dynamic gateway; Dynamic gateway comprises the gateway that is in state of activation/deactivation status; Specifically add to handle and to pass through giaddr (relay agent address) or DHCP Option82 field interpolation relay agent sign, and increase Option field interpolation dynamic gateway sign newly through DHCP DISCOVER message;
First transmitting element 1024 is used for the DHCP DISCOVER forwards after the said interpolation processing to DHCP Server103;
Second receiving element 1031 is used to receive the discovery message of said forwarding;
Second processing unit 1032; The DHCP DISCOVER message that is used to resolve said reception is obtained the discovery message parameter; Wherein, Find that message parameter can comprise that DHCP DISCOVER adds the MAC Address of the DHCP Client101 that comprises before handling, and relay agent's sign of inserting of DHCP Relay/Proxy Agent102, dynamic gateway sign, Option82 parameter etc.; The MAC Address, Option 82 parameters, relay agent's sign and the local strategy that are used for according to the DHCP Client101 of DHCP DISCOVER message parameter are chosen the IP available address field that the IP address can be provided for DHCP Client101; Being used for choosing available IP address at the IP available address field uses for DHCP Client101; Judge that at first the dynamic gateway of finding in the message parameter identifies in the subnet network segment of the dynamic gateway correspondence of indicating; Whether there is available IP address (idle IP address); Be whether perception exists the incident (show on this DHCP Server103 and can also have a perception unit) that activates (or a plurality of) target dynamic gateway here,, then characterize the incident that has activation target dynamic gateway if there is not the IP available address; From the dynamic gateway set of deactivation status, select the target dynamic gateway and the corresponding subnet thereof of available deactivation status; Be used for from the corresponding subnet network segment of selecting of target dynamic gateway; Select an IP available address to distribute for DHCP Client101; Generation is used to control DHCP Relay Agent/DHCP Proxy102 and carries out the DHCP OFFER message (main control part shows also to have a control unit on this DHCP Server103) that the target dynamic gateway is activated here;
Second transmitting element 1033; Be used for after selecting the corresponding IP available address of said target dynamic gateway and this target dynamic gateway; Send DHCP OFFER message to DHCP Relay Agent/DHCP Proxy102; This DHCP OFFER message belongs to DHCP and proposes a kind of of message; This DHCP OFFER message comprises (if the IP address in the corresponding subnet network segment of IP available described herein address target dynamic gateway, IP available address; Then can this IP available address carry out following activation process) as the target dynamic gateway identification; Perhaps this DHCP OFFER message comprises the combination of IP available address and target dynamic gateway identification (if the IP address in the corresponding subnet network segment of IP available described herein address target dynamic gateway, target dynamic gateway identification then described herein can be MAC Address or dynamic gateway ID), and ciaddr (client address) field of DHCP OFFER message can be inserted in the IP available address of describing; The target dynamic gateway identification can be received in giaddr (the relay agent address of DHCP OFFER message; Be designated when dynamic gateway under the situation of IP address) field or DHCP OFFER message Option field, described DHCP proposes that message can also be the form of DHCP Advertise message;
First receiving element 1021 is used to receive said DHCP and proposes message;
Perception unit in the administrative unit 1023; The IP available address that is used for the DHCP OFFER message of the said reception of perception; The perhaps combination of IP available address and target dynamic gateway identification; This IP available address, perhaps the incident that following first processing unit 1022 is carried out target dynamic gateway activation manipulation is promptly indicated in the combination of IP available address and target dynamic gateway identification;
Control unit in the administrative unit 1023; Be used for the incident that the perception unit when administrative unit 1023 perceives; And the activation state information of the dynamic gateway of first record cell, 1025 records, be used to control its control information (from the control part) to 1022 transmissions of first processing unit to the activation manipulation of said target dynamic gateway;
Can comprise a performance element in first processing unit 1022; Be used for control information according to said administrative unit 1023 transmissions; Search dynamic gateway state table (can be present in first record cell 1025); Activate the target dynamic gateway, described activation comprises transmitting of installation targets dynamic gateway address, the routing iinformation that issue target dynamic gateway is corresponding etc.;
First record cell 1025, being used to write down the target dynamic gateway that performance element activates is state of activation, this first record cell 1025 can be operated the dynamic gateway state table;
First transmitting element 1024 is used for the DHCP OFFER message of gained after the above-mentioned processing is sent to DHCP Client101;
DHCP Client101, be used to receive DHCP OFFER message after, send DHCP REQUEST message to DHCP Relay Agent/DHCP Proxy102, i.e. DHCP request message, thereby beginning parameter-configuring request;
First receiving element 1021 is used to receive said DHCP REQUEST message;
First processing unit 1022 is used for adding the dynamic gateway sign that is activated in the said DHCP REQUEST message that receives;
First transmitting element 1024 is used for sending the DHCP REQUEST message of adding after handling to DHCP Server103;
Second receiving element 1031 is used to receive the DHCP REQUEST message after said interpolation is handled;
Second processing unit 1032 is used for carrying out corresponding other processing of IP address assignment according to the DHCP REQUEST message that receives, and comprises sign IP address relevant treatment such as distribution state and IP address assignment rental period;
Second record cell 1034, writing down the said target dynamic gateway that is activated is state of activation;
Second transmitting element 1033; Be used for message to DHCP Relay Agent/DHCP Proxy102 response DHCP ACK; Comprise parameter such as IP address allocated, this IP address rental period in this DHCP ACK message; DHCP ACK message is known a kind of form of message as DHCP, can also be DHCP Reply message;
First receiving element 1021 is used to receive said DHCP ACK message;
First processing unit 1022 is used to resolve said DHCP ACK message, gets parms, and comprises the rental period of distributing IP address and this IP address;
First record cell 1025 writes down rental period of distributing IP address and this IP address;
First transmitting element 1024 is used for sending said DHCP ACK message to DHCP Client101.
Need to prove that need configuration dynamic gateway and the corresponding DHCP Server address list of dynamic gateway on DHCP Relay Agent/DHCP Proxy102, the dynamic gateway of configuration generally is in deactivation status.
Above-mentioned DHCP Server103 is the mentioned address allocation function entity of the present invention; DHCP Server103 can think in the address assignment administrative unit of prior art (after the DHCP DISCOVER message that receives; Be DHCP Client101 distributing IP address) on the basis; Increased the gateway management unit (according to DHCP DISCOVER message; The target dynamic gateway of confirming a deactivation status of the DHCP Relay Agent/DHCP Proxy102 correspondence that DHCP Client101 belongs to carries out activation manipulation; And allocation manager unit, collaborative address distributes an IP address in this target dynamic gateway for DHCP Client101), and DHCP Relay Agent/DHCP Proxy102 is the mentioned gateway management functional entity of the present invention, simultaneously; Because adopt master control and the hierarchical control from controlling to the dynamic gateway activation manipulation, DHCP Server103 also can be used as the mentioned gateway management functional entity of the present invention.
As a kind of execution mode; Except that the DHCP Server103 address list that on DHCP Relay Agent/DHCP Proxy102, disposes dynamic gateway and dynamic gateway correspondence of explanation before; Also through the corresponding relation of the dynamic gateway of configuration on management interface configuration DHCP Relay Agent/DHCP Proxy102 and this DHCP Relay Agent/DHCP Proxy102, same dynamic gateway can be configured on a plurality of different DHCP Relay Agent/DHCP Proxy102 on the DHCP Server103.Under this mode; After above-mentioned first processing unit 1022 receives the DHCP DISCOVER message of said DHCP Client101 transmission at first receiving element 1021; No longer need in DHCP DISCOVER message, increase dynamic gateway information, and only need increase the corresponding relay agent identification; Accordingly, 1032 of second processing units can be chosen IP address available on the said DHCP Client101 according to the relay agent's sign and the local policy of resolving in the said DHCP DISCOVER message, and these second processing unit, 1032 functions specifically can comprise:
Judge according to relay agent sign whether default gateway said DHCP Relay Agent/DHCP Proxy102 on and the corresponding IP network sector address of dynamic gateway that has activated distribute, and whether the interior IP address of the gateway correspondence subnet network segment of execution gateway function is all rented promptly said DHCP Relay Agent/DHCP Proxy on;
When the IP network sector address that obtains said correspondence when judgement has distributed (perhaps based on other strategy); Search the available dynamic gateway (record cell 1034 on DHCP Server103 under the said DHCP Relay Agent/DHCP Proxy102; Be used to write down the activation state of dynamic gateway on the DHCP Relay Agent/DHCP Proxy102); After finding available dynamic gateway, add among the ciaddr of DHCP OFFER message the IP available address that this dynamic gateway is corresponding; This dynamic gateway sign is added among the giaddr (dynamic gateway identifies through the IP address) or DHCP Option field of DHCP OFFER message; Promptly in this mode DHCP Server103 through the corresponding relation of the dynamic gateway that on the DHCP Relay Agent/DHCP Proxy102 of this locality configuration and this DHCP Relay Agent/DHCP Proxy102, disposes; Select dynamic gateway, select and no longer identify through the dynamic gateway that has in the DHCP DISCOVER message.
As a kind of execution mode; In practical application; Before DHCP Client101, once obtained DHCP Server103 and be its IP address allocated, and under the situation of this IP address aging, DHCP Client101 can initiate DHCP request message (like DHPC REQUEST message) and apply for renting this IP address again; Therefore, in the network system of the above-mentioned embodiment of the invention shown in Figure 10 each Elementary Function can also as following:
DHCP Client101; Be used to send DHCP REQUEST message; The beginning parameter-configuring request, this DHCP REQUEST message is a kind of as the DHCP request message, wherein can comprise DHCP Client101 request IP address allocated (be present in the DHCP REQUEST message among the ciaddr);
First receiving element 1021 is used to receive said DHCP REQUEST message;
First processing unit 1022; Be used for adding request message parameters such as relay agent's sign and/or at least one dynamic gateway sign in the DHCP of said reception REQUEST message, the dynamic gateway sign comprises the corresponding dynamic gateway in IP address of asking in the said DHCP REQUEST message;
First transmitting element 1024 is used for the DHCP REQUEST forwards after the said interpolation processing to DHCP Server103;
Second receiving element 1031 is used to receive said DHCP REQUEST message;
Second processing unit 1032; The DHCP REQUEST message that is used to parse said reception is obtained the request message parameter; Determine the target dynamic gateway of a deactivation status is activated according to this request message parameter and local strategy, in the applied environment of present embodiment, specifically can judge by the gateway of message parameter indication in 1032 couples of DHCP REQUEST of second processing unit message; Judge that promptly it is state of activation dynamic gateway, deactivation status dynamic gateway or default gateway; If the dynamic gateway of deactivated state, then determine whether activating this dynamic gateway or reply DHCP NAK message and make DHCP Client101 initiate Address requests again according to strategy, activate this dynamic gateway like decision; Then reply DHCP ACK message; Add dynamic gateway in this DHCP ACK message and activate event information, and add address and the relevant parameter information in the configuration parameter in the DHCP REQUEST message, if the dynamic gateway of default gateway or state of activation; Then continue judgement and the operation whether available, repeat no more here the IP address in the configuration parameter in the DHCP REQUEST message;
Second transmitting element 1033; Be used to respond DHCP ACK message; Comprise the corresponding parameters such as IP gateway address in IP address allocated, this IP address rental period, IP available address and/or IP available address in this DHCP ACK message; DHCP ACK message is known a kind of form of message as DHCP, also can be DHCP Reply message;
First receiving element 1021 is used to receive said DHCP ACK message;
Perception unit in the administrative unit 1023; Be used for the address of distributing IP of the DHCP ACK message of the said reception of perception, the corresponding IP gateway address in rental period, IP available address and/or IP available address of this IP address, the incident that the corresponding IP gateway address in this IP available address and/or IP available address promptly indicates following first processing unit 1022 to carry out target dynamic gateway activation manipulation;
Control unit in the administrative unit 1023; Specifically can comprise a judging unit; Be used for after perceiving said incident; According to the corresponding IP gateway address in said IP available address and/or IP available address, search dynamic gateway state table (this dynamic gateway state table can be present in first record cell 1025), judge whether the target dynamic gateway is deactivation status;
Control unit in the administrative unit 1023; Can comprise also that specifically one judges performance element; Be used for when detection obtains said target dynamic gateway and is state of activation; Control first processing unit 1022 and activate these target dynamic gateways, when detection obtained said target dynamic gateway and is deactivation status, the target dynamic gateway of reselecting a deactivation status triggered first processing unit 1022 it is carried out activation manipulation;
First processing unit 1022 includes performance element, is used for the triggering according to said administrative unit 1023, activates the target dynamic gateway, and described activation comprises installs transmitting of dynamic gateway address, the corresponding routing iinformation of issue dynamic gateway;
First record cell 1025; Be used to write down the activation result of said performance element; In addition; First transmitting element 1024 needs to send this activation result and gives DHCP Server103, realizes that dynamic gateway activation state recording is synchronous between DHCP Relay Agent/DHCP Proxy and DHCP Server;
First transmitting element 1024 is used for the DHCP ACK forwards after the above-mentioned processing to DHCP Client101.
As a kind of execution mode, to other a kind of handling process, among first embodiment of above-mentioned network system of the present invention shown in Figure 10 each Elementary Function can also as following:
Second processing unit 1032; Be used for based on local policy or receive third party device (like Policy Server) to search the dynamic gateway of deactivation status on the corresponding DHCP Relay Agent/DHCP Proxy102, based on the target dynamic gateway of one of them deactivation status of policy selection;
Second transmitting element 1033; Be used to send DHCP OFFER message; The target dynamic gateway identification is received in giaddr field or the newly-increased Option field in this DHCP OFFER message; If need once activate a plurality of target dynamic gateways, then need a plurality of target dynamic gateway identifications be inserted newly-increased Option field;
First receiving element 1021 is used to receive said DHCP OFFER message;
Perception unit in the administrative unit 1023 is used for the said DHCP of perception and proposes the target dynamic gateway identification of message, the incident that the target dynamic gateway identification that perceives promptly indicates first processing unit 1022 to carry out target dynamic gateway activation manipulation;
Control unit in the administrative unit 1023; Activation state information according to the dynamic gateway of the incident of the perception unit perception in the administrative unit 1023 and first record cell, 1025 records; Control first processing unit 1022 and activate this target dynamic gateway, for example, after the perception unit perceives above-mentioned target dynamic gateway identification; When the target dynamic gateway of first record cell, 1025 records is deactivation status, controls first processing unit 1022 and activate this target dynamic gateway;
First processing unit 1022 according to the triggering signal of said administrative unit 1023, activates said target dynamic gateway, and the target dynamic gateway identification of the target dynamic gateway that is activated is inserted in the giaddr field or Option field of DHCP ACK message;
First record cell 1025, the activation state of record object dynamic gateway;
First transmitting element 1024 is used for returning said DHCP ACK message to DHCP Server103;
Second receiving element 1031 is used to receive said DHCP ACK message;
Second processing unit 1032 is used for extracting the target dynamic gateway identification in the said DHCP ACK message that receives;
Second record cell 1034 writes down the activation state of said target dynamic gateway.
As a kind of execution mode, to other a kind of handling process, among first embodiment of above-mentioned network system of the present invention shown in Figure 10 each Elementary Function can also as following:
First transmitting element 1021; Be used under condition triggers, sending DHCP REQUEST message to DHCP Server103; Can in this DHCP REQUEST message, add the tabulation of the target dynamic gateway of all deactivated states on relay agent sign, target dynamic gateway identification and the DHCP Relay Agent/DHCP Proxy102 of DHCP Relay Agetn/DHCP Proxy102 by first processing unit 1022, giaddr field or the Option field can relay agent be identified, DHCP REQUEST message inserted in target dynamic gateway identification and said tabulation;
Second receiving element 1031 is used to receive said DHCP REQUEST message;
Second processing unit 1032; Be used to extract giaddr field or Option field information; Detect the request that DHCP Relay Agent/DHCP Proxy102 activates the target dynamic gateway, search the target dynamic gateway that be in deactivation status (based on certain strategy) corresponding with the target dynamic gateway identification;
Second record cell 1034 is used for finding the target dynamic gateway that be in deactivation status (based on certain strategy) corresponding with the target dynamic gateway identification afterwards, and the record object dynamic gateway is a state of activation;
Second transmitting element 1033 is used for the DHCP ACK message that includes above-mentioned target dynamic gateway identification is sent to DHCP Relay Agent/DHCP Proxy102;
DHCP Relay Agent/DHCP Proxy102 receives after the DHCP ACK message, then activates the corresponding dynamic gateway, and other Elementary Functions repeat no more, and above-mentioned certain trigger condition can by but be not limited to following two kinds of situation:
The judging unit that increases newly on the DHCP Relay Agent/DHCP Proxy102; Be used to judge whether the corresponding IP of the gateway address of carrying out gateway function on the DHCP Relay Agent/DHCP Proxy102 is all rented; When being judged as when being, form said by perception events;
External policy control DHCP Relay Agent/DHCP Proxy102 triggers the activation to dynamic gateway, and like the control of tactful DHCP Server, this control signal promptly forms said by perception events.
More than be illustrated relating to the Apparatus and system that activates the dynamic gateway flow process in the embodiment of the invention, promptly the Apparatus and system that relates to deexcitation dynamic gateway flow process in the embodiment of the invention is described below.
As a kind of execution mode, among first embodiment of above-mentioned network system of the present invention shown in Figure 10 each Elementary Function can also as following:
Second transmitting element 1031; Be used under the triggering of condition, sending the DHCP reconfiguration message; Thereby initiate deactivating operation to the target dynamic gateway; The DHCP reconfiguration message can be DHCP FORCERENEW message or DHCP RECONFIGURE message; To need the target dynamic gateway identification of deexcitation to insert in giaddr field or the DHCP Option field in the DHCP FORCERENEW message; The condition that triggers can be to perceive that IP address in the corresponding subnet network segment of this target dynamic gateway is released entirely or the rental period expires and do not upgrade, or does not have the IP address in real network, to be used, and the DHCP reconfiguration message promptly is used to control the control information of the target dynamic gateway being carried out deactivating operation;
First receiving element 1021 is used to receive said DHCP reconfiguration message.
Perception unit in the administrative unit 1023; Be used for from the DHCP reconfiguration message perception giaddr field that receives or the target dynamic gateway identification the DHCP Option field; Discovery is the target dynamic gateway under certain state of activation under the corresponding DHCP Relay Agent/DHCP Proxy102, and this target dynamic gateway identification promptly characterizes and has the incident of carrying out target dynamic gateway deactivating operation that triggers;
Control unit in the administrative unit 1023; According to the incident of the perception unit perception in the administrative unit 1023 and the activation state information of dynamic gateway; Then control the deactivating operation that first processing unit 1022 is carried out the target dynamic gateway, can be used to control its control information to the deactivating operation of target dynamic gateway this moment to 1022 transmissions of first processing unit;
Can comprise a performance element in first processing unit 1022; Be used for control information according to said administrative unit 1023; The target dynamic gateway is carried out deactivating operation, comprise transmitting of this target dynamic gateway address of deletion, delete the corresponding routing iinformation of this target dynamic gateway;
First record cell 1025 is used to write down the deactivation status of the target dynamic gateway that said performance element handles;
First transmitting element 1024 is used to return DHCP ACK message;
Second receiving element 1031 is used to receive said DHCP ACK message;
Second record cell 1034, being used to write down said target dynamic gateway status is deactivation status.
As a kind of execution mode, among first embodiment of above-mentioned network system of the present invention shown in Figure 10 each Elementary Function can also as following:
First processing unit 1022; Be used under certain condition triggers, initiating deactivating operation to the target dynamic gateway; Comprise transmitting of this target dynamic gateway address of deletion; Delete the corresponding routing iinformation of this target dynamic gateway; The condition that triggers can be that judgment unit judges newly-increased among the DHCP Relay Agent/DHCP Proxy102 is released to the IP address under the corresponding network segment of this dynamic gateway entirely or the rental period expires and not upgrade, or not have the IP address in real network, to be used (i.e. indication triggers the incident to the deexcitation of target dynamic gateway);
First record cell 1025 is used to write down the deactivation status of the target dynamic gateway that first processing unit 1022 handles;
First transmitting element 1024 is used to send the DHCP release message, and this DHCP release message can be a DHCP RELEASE message, wherein can the target dynamic gateway identification be inserted in the giaddr field or DHCP Option field of this DHCP release message;
Second receiving element 1031 is used to receive said DHCP release message;
Second processing unit 1032 is used for after receiving the DHCP release message, extracts wherein giaddr field or DHCP Option field information, finds corresponding with the dynamic gateway of certain state of activation;
Second record cell 1034, writing down said target dynamic gateway is deactivation status;
Second transmitting element 1033 is used to return DHCP and knows message, and this DHCP knows that message can be DHCP ACK message or DHCP Reply message;
First receiving element 1021 is used to receive said DHCP and knows message.
The following points that are worth explanation:
K1, in said system and apparatus embodiments; Existing relay agent/agent functionality on the DHCP Relay Agent/DHCP Proxy102 (comprising the relay agent/agent functionality that relates in first receiving element 1021, first transmitting element 1024) has gateway management function (function that comprises perception unit, control unit in the administrative unit 1023) again, and also having gateway function (provides gateway interface; Comprise performance element function in first processing unit 1022); And in practical application, above-mentioned three functions can realize on different concrete equipment, for example; Can form multiple structure shown in figure 11, wherein:
The combination of the unit of describing among above-mentioned each embodiment of label 112 expressions with relay agent/agent functionality, gateway management function, gateway function forms DHCP Relay Agent/DHCP Proxy102;
The other a kind of execution mode of label 1121 expressions; The unit combination that promptly has relay agent/agent functionality, gateway management function; Form DHCP Relay Agent/DHCP Proxy102, and gateway function forms other one function device (can be gateway device) independently;
The other a kind of execution mode of label 1122 expressions; The unit combination that promptly has relay agent/agent functionality; Form DHCP Relay Agent/DHCP Proxy102; And have the combination of the unit of gateway management function, gateway function, form other one function device (can be gateway device) independently;
Under above-mentioned two kinds of execution modes, realize the information interaction that script is realized through certain concrete agreement in single equipment between the equipment, for example can be through a certain realization the in snmp protocol, DIAMETER agreement or the COPS agreement etc.;
The management method of the gateway that K2, the embodiment of the invention are described; Can there be hierarchical control to target dynamic gateway activation; First embodiment of the management method of gateway of the present invention as shown in Figure 4; Wherein realized main control part among the S406 to the activation of target dynamic gateway; And realized among the S408 to the target dynamic gateway activate from the control part, accordingly at equipment, system aspects, also can have the master control function unit, from the control functional unit; Perception unit and control unit among the DHCP Server103 of the main control part that for example occurs in the above-described embodiments, perception unit and control unit from the DHCP Relay Agent/DHCP Proxy102 of control part;
K3, in embodiments of the present invention; In the application of reality, also there is the scene of using other type protocol based on the scene of the DHCP agreement of the embodiment of front in relay agent/agent functionality unit; For example; Aforementioned relay agent/agent functionality unit can replace to this protocol processes functional unit, and the activation deexcitation event information of dynamic gateway in the agreement etc. is particularly extracted in the same in the present invention processing of being responsible for this agreement.The equipment enforcement that meets this thought all should be in protection scope of the present invention.
In addition; One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through program; Described program can be stored in the computer read/write memory medium, and this program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Radom Access Memory, RAM) or the Flash storage medium first-class.
The above 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 are regarded as protection scope of the present invention.

Claims (5)

1. an address distribution method is characterized in that, this method has been used a kind of dynamic gateway; This dynamic gateway comprises state of activation and deactivation status at least; When this dynamic gateway was in state of activation, this dynamic gateway can be carried out gateway function, when this dynamic gateway is in deactivation status; This dynamic gateway can not be carried out gateway function, and this method comprises:
Reception is used to ask to distribute into client the request message of address;
According to described request message, from the dynamic gateway set of the corresponding deactivation status of the gateway function entity of said client ownership, confirm a target dynamic gateway;
Activate this target dynamic gateway on the said gateway function entity;
In the corresponding subnet of this target dynamic gateway, select an address assignment to give said client.
2. address distribution method according to claim 1 is characterized in that, and is said according to described request message, from the dynamic gateway set of the corresponding deactivation status of the gateway function entity of said client ownership, confirms that a target dynamic gateway specifically comprises:
Said according to described request message, as to inquire about said gateway function entity and activation state dynamic gateway correspondence relationship information is confirmed a target dynamic gateway from the dynamic gateway set of the corresponding deactivation status of said gateway function entity.
3. a gateway device is characterized in that, this gateway device has been used a kind of dynamic gateway; This dynamic gateway comprises state of activation and deactivation status at least; When this dynamic gateway was in state of activation, this dynamic gateway can be carried out gateway function, when this dynamic gateway is in deactivation status; This dynamic gateway can not be carried out gateway function, and this gateway device comprises:
Receiving element, reception are used to control the control information to the activation operation of said target dynamic gateway;
Performance element according to said control information, is carried out said activation operation, and said activation manipulation comprises installs transmitting of said target dynamic gateway address, issues the corresponding routing iinformation of said target dynamic gateway; Said deactivating operation comprises transmitting of the said target dynamic gateway address of deletion, deletes the corresponding routing iinformation of said target dynamic gateway.
4. an address allocation function entity is characterized in that, this address allocation function entity is used to manage a kind of dynamic gateway; This dynamic gateway comprises state of activation and deactivation status at least; When this dynamic gateway was in state of activation, this dynamic gateway can be carried out gateway function, when this dynamic gateway is in deactivation status; This dynamic gateway can not be carried out gateway function, and this address allocation function entity comprises:
It is that this client is distributed address that allocation unit, reception are used to ask behind the request message into client distribution address;
The gateway management unit; According to described request message; From the dynamic gateway set of the corresponding deactivation status of the gateway function entity of said client ownership, confirm a target dynamic gateway; Notify said gateway function entity to activate this target dynamic gateway, and Notify Address allocation units address of selection in the corresponding subnet of said target dynamic gateway is that said client is distributed.
5. address allocation function entity as claimed in claim 4 is characterized in that, this address allocation function entity also comprises:
Record cell links to each other with said gateway management unit, the dynamic gateway activation state information that disposes on the record gateway function entity.
CN201110318136.3A 2007-11-22 2007-11-22 Gateway management method, address allocation method, device and system Active CN102340421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110318136.3A CN102340421B (en) 2007-11-22 2007-11-22 Gateway management method, address allocation method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110318136.3A CN102340421B (en) 2007-11-22 2007-11-22 Gateway management method, address allocation method, device and system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN2007100315618A Division CN101442425B (en) 2007-11-22 2007-11-22 Gateway management method, apparatus and system

Publications (2)

Publication Number Publication Date
CN102340421A true CN102340421A (en) 2012-02-01
CN102340421B CN102340421B (en) 2015-01-21

Family

ID=45515928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110318136.3A Active CN102340421B (en) 2007-11-22 2007-11-22 Gateway management method, address allocation method, device and system

Country Status (1)

Country Link
CN (1) CN102340421B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878481A (en) * 2016-12-30 2017-06-20 瑞斯康达科技发展股份有限公司 A kind of Internet protocol IP address acquisition methods, device and system
CN111062654A (en) * 2019-11-27 2020-04-24 坎德拉(深圳)科技创新有限公司 Method for taking delivered parts
CN111742520A (en) * 2018-02-27 2020-10-02 法国大陆汽车公司 Routing gateway and method for a motor vehicle
CN111756865A (en) * 2019-03-28 2020-10-09 苏州铭威天欣信息科技有限公司 Communication management method for base station and user terminal
WO2022037509A1 (en) * 2020-08-19 2022-02-24 华为技术有限公司 Access control method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553350A (en) * 2003-06-06 2004-12-08 鸿富锦精密工业(深圳)有限公司 Dynamic master configurating method
CN1845554A (en) * 2005-12-06 2006-10-11 华为技术有限公司 Control method for dynamically distributing IP address in 3G network
CN1949784A (en) * 2005-10-12 2007-04-18 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553350A (en) * 2003-06-06 2004-12-08 鸿富锦精密工业(深圳)有限公司 Dynamic master configurating method
CN1949784A (en) * 2005-10-12 2007-04-18 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater
CN1845554A (en) * 2005-12-06 2006-10-11 华为技术有限公司 Control method for dynamically distributing IP address in 3G network

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878481A (en) * 2016-12-30 2017-06-20 瑞斯康达科技发展股份有限公司 A kind of Internet protocol IP address acquisition methods, device and system
CN106878481B (en) * 2016-12-30 2020-08-18 瑞斯康达科技发展股份有限公司 Method, device and system for acquiring Internet Protocol (IP) address
CN111742520A (en) * 2018-02-27 2020-10-02 法国大陆汽车公司 Routing gateway and method for a motor vehicle
CN111742520B (en) * 2018-02-27 2022-07-19 法国大陆汽车公司 Routing gateway and method for a motor vehicle
CN111756865A (en) * 2019-03-28 2020-10-09 苏州铭威天欣信息科技有限公司 Communication management method for base station and user terminal
CN111756865B (en) * 2019-03-28 2024-02-09 苏州铭威天欣信息科技有限公司 Communication management method for base station and user terminal
CN111062654A (en) * 2019-11-27 2020-04-24 坎德拉(深圳)科技创新有限公司 Method for taking delivered parts
CN111062654B (en) * 2019-11-27 2023-12-29 坎德拉(深圳)科技创新有限公司 Delivery piece taking method
WO2022037509A1 (en) * 2020-08-19 2022-02-24 华为技术有限公司 Access control method and apparatus

Also Published As

Publication number Publication date
CN102340421B (en) 2015-01-21

Similar Documents

Publication Publication Date Title
CN101442425B (en) Gateway management method, apparatus and system
EP1410579B1 (en) Method for configuring a computer network
CN101179603B (en) Method and device for controlling user network access in IPv6 network
CN102647486B (en) Address distribution method, equipment and system
CN108777722B (en) Multi-system networking communication method and device, mobile terminal and storage medium
US9350815B2 (en) System and method for supporting multicast domain name system device and service classification
CN105245629B (en) Host communication method based on DHCP and device
US20020120706A1 (en) Method for determining master or slave mode in storage server subnet
CN102594652A (en) Migration method of virtual machine, switch and virtual machine system
CN102025630A (en) Load balancing method and load balancing system
CN102148879A (en) Port mapping method and device and communication system
CN102118453B (en) Method, service device, client and communication system for automatic configuration of IP address
CN101883090A (en) Client access method, equipment and system
CN106878480B (en) DHCP service process sharing method and device
CN102843441B (en) Method and device for controlling address configuration way
CN111327668B (en) Network management method, device, equipment and storage medium
CN102244690A (en) Address allocation method and system of dynamic host configuration protocol (DHCP) as well as client side and servers of same
CN102340421B (en) Gateway management method, address allocation method, device and system
US20160119186A1 (en) Zero-configuration networking protocol
CN102143242B (en) IP (internet protocol) network address allocation method, IP network address allocation equipment and IP network address allocation system
JP2000101589A (en) Dynamic domain name system
CN113381936B (en) Network information processing method and device and network equipment
EP1692819B1 (en) Methods and apparatus supporting configuration in a network
CN101018193A (en) Load distribution method and system and device for allocating the backup packet and virtual IP address
WO2016202016A1 (en) Device management method, apparatus and system

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