CN102340421B - 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
CN102340421B
CN102340421B CN201110318136.3A CN201110318136A CN102340421B CN 102340421 B CN102340421 B CN 102340421B CN 201110318136 A CN201110318136 A CN 201110318136A CN 102340421 B CN102340421 B CN 102340421B
Authority
CN
China
Prior art keywords
dhcp
gateway
dynamic gateway
dynamic
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110318136.3A
Other languages
Chinese (zh)
Other versions
CN102340421A (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

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 that application number is 200710031561.8, the divisional application that the Chinese invention patent application that denomination of invention is " management method of gateway, the method for address assignment and device, system " proposes based on submitting Patent Office of the People's Republic of China on November 22nd, 2007.
Technical field
The present invention relates to the communications field, particularly relate to a kind of management method of gateway, a kind of method of address assignment, gateway management functional entity, gateway functionality entities, address allocation function entity and network communicating system.
Background technology
DHCP (Dynamic Host Configuration Protocol, DHCP) provide the mechanism of a kind of assigned IP addresses dy and configuration parameter, DHCP agreement is mainly used in large network environment and configures more difficult place.According to DHCP agreement, Dynamic Host Configuration Protocol server can automatically for client specifies Internet Protocol (Internet Protocol, IP) configuration parameter such as address and gateway address, because the configuration of DHCP can realize and unified management automatically, DHCP agreement is more and more widely used.
DHCP agreement generally adopts client/server (Client/Server) pattern, to DHCP Server, configuration application (comprising the parameter such as IP address, subnet mask, default gateway of distribution) is proposed by DHCP Client, DHCP Server returns corresponding configuration information according to strategy, dhcp message adopts User Datagram Protocol (User Datagram Protocol, UDP) to encapsulate.
Fig. 1 is the DHCP system architecture diagram of prior art, and the Major Members defined by DHCP agreement in this DHCP system and the function of correspondence thereof comprise:
DHCP Server: there is administration configuration function, DHCP configuration admin service is provided, as a kind of address allocation function entity, can according to the request of DHCP Client, for DHCP Client distributing IP address or other network parameters, DHCP Server is general, and existence form comprises: be integrated in router, three-tier switch, or exist with special Dynamic Host Configuration Protocol server form, or be integrated in OSS (Operational Support Systems, OSS) in, or 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 forward not by the dhcp broadcast message of three-layer equipment, make DHCP Server can provide service for the DHCP Client of each subnet, DHCP Relay Agent/DHCP Proxy is after receiving the DHCP request message that DHCP Client sends, corresponding DHCP Relay Agent/DHCP Proxy address is inserted request message and/or increased corresponding Option82 information, then be forwarded on DHCP Server, such DHCP Server just can determine according to the giaddr address information in the request message received or Option82 information the IP address needing to distribute which subnet, wherein, the general existence form of dhcp relay agent/DHCP proxy comprises: router, three-tier switch, Internet edge (IP Edge) equipment or other forms,
IP Edge equipment, can be Broadband Remote Access Server (Broadband Remote Access Server under DSL FORUM standard TR-059 and TR-101 definition, or wideband network gateway wideband network gateway (Broadband Network Gateway BRAS), BNG) equipment, do not get rid of other IP edge devices (such as three layer access net networks) simultaneously, it has DHCP Relay Agent/DHCP Proxy and gateway (Gateway) function yet;
DHCP Client: utilize DHCP agreement to obtain the main frame of configuration parameter (as: IP address), general existence form and client host or other can obtain the terminals such as the three-layer equipment of IP address, as user residence gateway (Residential Gateway, RG).
Based on the DHCP system architecture of the prior art shown in above-mentioned Fig. 1, below the dhcp address allocation flow of the prior art shown in Fig. 2 is described.
Fig. 2 is the schematic flow sheet of the method for the address assignment based on DHCP protocol system of prior art, and this flow process mainly comprises:
S201, DHCP Client sends DHCP DISCOVER message, DHCP DISCOVER message is as the one of dhcp discover message, also can be DHCP Solicit message, parameter configuration application is carried out to find administration configuration server, the administration configuration server that searching can provide parameter configuration to serve, carries the information such as DHCP Client MAC Address in this DHCP DISCOVER message;
S202, process accordingly after DHCP Relay Agent/DHCP Proxy receives DHCP DISCOVER message, as increased giaddr (i.e. DHCP Relay Agent/DHCP Proxy address) and/or DHCP Option82 parameter etc. in DHCP DISCOVER message;
S203, DHCP Relay Agent/DHCP Proxy sends to DHCP Server by processing the DHCP DISCOVER message obtained;
S204, after DHCP Server receives DHCP DISCOVER message, resolve the parameter in this message, as one or more in giaddr, DHCP Client MAC Address, DHCP Option82 parameter etc., and be DHCP Client distributing IP address according to strategy, the parameters such as IP address are inserted DHCP and propose message, DHCP proposes that message can be DHCP OFFER message or DHCP Advertise message;
S205, DHCP Server sends to DHCP Relay Agent/DHCP Proxy by processing the DHCP OFFER message obtained;
Send to DHCP Client after doing respective handling after S206, DHCP Relay Agent/DHCP Proxy receives DHCP OFFER message, or directly DHCP OFFER message is transmitted to DHCP Client;
S207, DHCP Client starts parameter-configuring request after receiving DHCP OFFER message, and sends DHCP request message, as sent DHCP REQUEST message;
S208, DHCP Relay Agent/DHCP Proxy does respective handling after receiving described DHCP REQUEST message, as increased giaddr mark in DHCP REQUEST message;
S209, DHCP Relay Agent/DHCP Proxy sends to DHCP Server the DHCP REQUEST message that described process obtains;
S210, DHCP Server is after receiving DHCP REQUEST message, and other process corresponding of process address assignment, comprise the mark distribution state of IP address, the relevant treatment etc. of IP address lease;
S211, DHCP Server responds DHCP to DHCP Relay Proxy and knows message, and this DHCP knows that message can be DHCP ACK message or DHCP Reply message;
S212, after DHCP Relay Agent/DHCP Proxy receives described DHCP ACK message, resolve message, obtain the parameter in message, comprise the rental period of IP address and IP address, DHCP Relay Agent/DHCP Proxy can record this IP address and this IP address lease;
S213, DHCP Relay Agent/DHCP Proxy sends described DHCP ACK message to DHCP Client.
In the application of reality, general by configuring fixing gateway on DHCP Relay Agent/DHCP Proxy, a DHCP Client belongs to a gateway, DHCP Server must be the corresponding same subnet network segment of this fixing gateway to the IP address that DHCP Client distributes, therefore DHCP Client can not from the IP address of other subnets of main separation, and DHCP Server can not control the IP address distributing other subnets to DHCP Client.As shown in Figure 1: DHCP Relay Agent/DHCP Proxy equipment is configured with gateway 10.0.0.255 and 20.0.0.255, their subnet mask is 255.255.255.0, therefore DHCP Client1 can only distribute 10.0.0.* network segment address corresponding to 10.0.0.255 gateway (wherein, * be asterisk wildcard, any number between mark 1 to 254), DHCP Client2 can only distribute 20.0.0.* network segment address.Strongly limit the application flexibility of DHCP agreement like this, especially under wholesale scene, DHCP Relay Agent/DHCP Proxy belongs to different Virtual network operators from DHCP Server, operator's (having the operator of DHCP Server) that address assignment be responsible in general title is Retail Operations business, operator's (having the operator of DHCP Relay Agent/DHCP Proxy equipment) that access user be responsible in general title is wholesale operator, when Retail Operations business changes address distribution, Retail Operations business must by carrying out corresponding configuration could be changed to wholesale operator negotiation.
Inventor finds in enforcement process of the present invention, and at least there are the following problems for prior art:
Due to the stationarity of gateway configuration, DHCP Client independently can not select the IP address of other subnets, DHCP Server can not control the IP address distributing other subnets to DHCP Client, because which limit the application flexibility of DHCP agreement, not only increase operation cost, and slow down the speed of service deployment, be unfavorable for the management maintenance in retailer addresses space simultaneously.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, provide a kind of management method of gateway, a kind of method of address assignment, gateway management functional entity, gateway functionality entities, address allocation function entity and network communicating system, wherein apply a kind of dynamic gateway, this dynamic gateway can switch between state of activation and deactivation status, the IP address that this dynamic gateway is provided can use flexibly, and under DHCP protocol environment, the IP address that this dynamic gateway provides is distributed to DHCP Client by DHCP Server and is used, also improve the application flexibility of DHCP agreement.
In order to solve the problems of the technologies described above, the embodiment of the present invention proposes a kind of network communicating system, and this network communicating system comprises:
Gateway functionality entities, perform gateway function, this gateway functionality entities has been preconfigured a kind of dynamic gateway, this dynamic gateway at least comprises state of activation and deactivation status, when this dynamic gateway is in state of activation, this dynamic gateway can perform gateway function, and when this dynamic gateway is in deactivation status, this dynamic gateway can not perform gateway function;
Gateway management functional entity, manages described dynamic gateway, and this gateway management equipment comprises:
Perception unit, the event of perception activation/deactivation target dynamic gateway;
Control unit, according to the activation/deactivation state information of the described event that perceives and dynamic gateway, controls described gateway functionality entities and operates the activation/deactivation of described target dynamic gateway.
In addition, the embodiment of the present invention additionally provides a kind of management method of gateway, the method is for managing a kind of dynamic gateway, this dynamic gateway at least comprises state of activation and deactivation status, when this dynamic gateway is in state of activation, this dynamic gateway can perform gateway function, when this dynamic gateway is in deactivation status, this dynamic gateway can not perform gateway function, then the method comprises:
The event of perception activation/deactivation target dynamic gateway;
According to the activation/deactivation state information of the described event that perceives and dynamic gateway, control to operate the activation/deactivation of described target dynamic gateway.
In addition, the embodiment of the present invention additionally provides a kind of distribution method of address, the method applies a kind of dynamic gateway, this dynamic gateway at least comprises state of activation and deactivation status, when this dynamic gateway is in state of activation, this dynamic gateway can perform gateway function, when this dynamic gateway is in deactivation status, this dynamic gateway can not perform gateway function, and the method comprises:
Receive for asking the request message for client allocation address;
According to described request message, the dynamic gateway set of the deactivation status that the gateway functionality entities belonged to from described client is corresponding, determine a target dynamic gateway;
Activate this target dynamic gateway on described gateway functionality entities;
In the corresponding subnet of this target dynamic gateway, select an address assignment to described client.
Correspondingly, the embodiment of the present invention additionally provides a kind of gateway management functional entity, this gateway management functional entity is for managing a kind of dynamic gateway, this dynamic gateway at least comprises state of activation and deactivation status, when this dynamic gateway is in state of activation, this dynamic gateway can perform gateway function, when this dynamic gateway is in deactivation status, this dynamic gateway can not perform gateway function, and this gateway management functional entity comprises:
Perception unit, the event of perception activation/deactivation target dynamic gateway;
Control unit, according to the activation/deactivation state information of the described event that perceives and dynamic gateway, controls to operate the activation/deactivation of described target dynamic gateway.
Correspondingly, the embodiment of the present invention additionally provides a kind of gateway functionality entities, this gateway functionality entities applies a kind of dynamic gateway, this dynamic gateway at least comprises state of activation and deactivation status, when this dynamic gateway is in state of activation, this dynamic gateway can perform gateway function, when this dynamic gateway is in deactivation status, this dynamic gateway can not perform gateway function, and this gateway functionality entities comprises:
Receiving element, receives for controlling the control information operated the activation/deactivation of described target dynamic gateway;
Performance element, according to described control information, performs the operation of described activation/deactivation, and described activation manipulation comprises installs transmitting of described target dynamic gateway address, issues the routing iinformation that described target dynamic gateway is corresponding; Described deactivating operation comprises deletes transmitting of described target dynamic gateway address, deletes the routing iinformation that described target dynamic gateway is corresponding.
Correspondingly, the embodiment of the present invention additionally provides a kind of address allocation function entity, this address allocation services equipment is for managing a kind of dynamic gateway, this dynamic gateway at least comprises state of activation and deactivation status, when this dynamic gateway is in state of activation, this dynamic gateway can perform gateway function, when this dynamic gateway is in deactivation status, this dynamic gateway can not perform gateway function, and this address allocation services equipment comprises:
Allocation unit is this client allocation address after receiving the request message for asking as client allocation address;
Gateway management unit, according to described request message, a target dynamic gateway is determined the dynamic gateway set of the deactivation status that the gateway functionality entities belonged to from described client is corresponding, notify that described gateway functionality entities activates this target dynamic gateway, and Notify Address allocation units select in the corresponding subnet of described target dynamic gateway an address to be that described client is distributed.
The embodiment of the present invention is by introducing a kind of dynamic gateway, this dynamic gateway at least comprises state of activation and deactivation status, when this dynamic gateway is in state of activation, this dynamic gateway can perform gateway function, when this dynamic gateway is in deactivation status, this dynamic gateway can not perform gateway function, and by controlling this dynamic gateway of activation/deactivation, the IP address that this dynamic gateway is provided can be used flexibly, under DHCP protocol environment, the IP address that this dynamic gateway provides can be distributed to DHCP Client by DHCP Server and use, improve the application flexibility of DHCP, thus, not only reduce operation cost, and improve the speed of service deployment, be conducive to the management maintenance in retailer addresses space simultaneously.
Accompanying drawing explanation
Fig. 1 is the DHCP system architecture diagram of prior art;
Fig. 2 is the schematic flow sheet of the method for the address assignment based on DHCP system of prior art;
Fig. 3 is the scene schematic diagram of the management method application of the gateway of the embodiment of the present invention;
Fig. 4 is the first embodiment schematic diagram of the management method of gateway of the present invention;
Fig. 5 is the second embodiment schematic diagram of the management method of gateway of the present invention;
Fig. 6 is the 3rd embodiment schematic diagram of the management method of gateway of the present invention;
Fig. 7 is the 4th embodiment schematic diagram of the management method of gateway of the present invention;
Fig. 8 is the 5th embodiment schematic diagram of the management method of gateway of the present invention;
Fig. 9 is the 6th embodiment schematic diagram of the management method of gateway of the present invention;
Figure 10 is the schematic diagram of the network system of the embodiment of the present invention;
Figure 11 is the schematic diagram of the various structures of the network communicating system of the embodiment of the present invention.
Embodiment
Embodiments provide a kind of management method of gateway, a kind of method of address assignment, gateway management functional entity, gateway functionality entities, address allocation function entity and network communicating system, can realize activating and deexcitation dynamic gateway, improve the flexibility that the corresponding IP address of dynamic gateway uses, under DHCP environment, can the corresponding flexibility improving DHCP application.
It should be noted that, all introduce dynamic gateway in each of the embodiments described below, this dynamic gateway comprises at least one self IP address, and this dynamic gateway is to there being a subnet network segment, this dynamic gateway includes IP interface, this dynamic gateway also configures by management interface, as Simple Network Management Protocol (the Simple Network Management Protocol by network management interface, SNMP) configuration or command line interface (Comand Line Interface, CLI) configure, and same dynamic gateway can be configured on multiple different relay agent's equipment (this relay agent's equipment has gateway function)/gateway device simultaneously.
Described dynamic gateway at least comprises two states: deactivation status (sleep state) and state of activation.The dynamic gateway of deactivation status does not take actual Internet resources, can not perform gateway function, such as, can not be used for the data-message forwarding self terminal, and routing iinformation corresponding to the dynamic gateway of deactivation status is also non-existent; Such as, otherwise the dynamic gateway of state of activation takies actual Internet resources, can perform gateway function, can be used for the data-message forwarding self terminal, and routing iinformation corresponding to the dynamic gateway of state of activation is also exist.
Dhcp relay agent equipment (DHCP Relay Agent/DHCP Pxoxy) is responsible for the state of maintenance and management dynamic gateway, as state of activation, deactivation status.
The dynamic gateway configured by management interface is in deactivation status, and dhcp relay agent equipment preserves the dynamic gateway of configuration and the state information of dynamic gateway on it by dynamic gateway state table.
Dhcp relay agent equipment is responsible for intercepting signaling message and is activated dynamic gateway, comprises coming the control signal message of user terminal and/or the message from Dynamic Host Configuration Protocol server, as DHCP OFFER message or DHCP ACK message.Described activation comprises installs transmitting of dynamic gateway address, and issue the routing iinformation that dynamic gateway is corresponding, the state arranging corresponding dynamic gateway on dynamic gateway state table is state of activation.
Dhcp relay agent equipment is by detecting the state parameter deexcitation dynamic gateway of dynamic gateway, described deexcitation comprises deletes transmitting of dynamic gateway address, delete the routing iinformation that dynamic gateway is corresponding, the state arranging corresponding dynamic gateway on dynamic gateway state table is deactivation status.The step of described detection comprises: intercept the terminal that signaling message judges this dynamic gateway whether presence service, if there is no, then perform described deexcitation.
Dynamic Host Configuration Protocol server is responsible for the DHCP request receiving self terminal, be that dhcp client selects available IP address according to the parameter in request based on strategy, be responsible for the activation and the deexcitation that control dynamic gateway if desired, record the state information of dynamic gateway and the correspondence relationship information of this dynamic gateway and dhcp relay agent equipment simultaneously.
Embodiments provide a kind of method of address assignment, Dynamic Host Configuration Protocol server receives the parameter-configuring request message of user terminal, resolves message and to get parms configuring request parameter, according to the tactful distributing IP address of parameter-configuring request parameter and this locality.Described parameter-configuring request parameter comprises: the MAC Address of terminal, the gateway address of dhcp relay agent equipment insertion, Option 82 parameter etc. of dhcp message.Specifically comprise in the subnet network segment corresponding to gateway address (comprising the dynamic gateway of common/default gateway and state of activation) that Dynamic Host Configuration Protocol server detects in described use according to gateway address according to the tactful distributing IP address of parameter-configuring request parameter and this locality and there is no available IP-addresses, Dynamic Host Configuration Protocol server chooses other the subnet network segment (on this relay agent's equipment the corresponding subnet network segment of certain deactivation status dynamic gateway), to user terminal distribution IP address wherein, wherein can comprise and activate corresponding dynamic gateway on this dhcp relay agent equipment.
Below the activation dynamic gateway of the management method of embodiment of the present invention gateway is described.
Fig. 3 is the scene schematic diagram of the management method application of the gateway of the embodiment of the present invention, DHCP Server serves multiple network, each network is to there being DHCP Relay Agent/DHCP Proxy, generally can there is one or more default gateway in DHCP Relay Agent/DHCP Proxy, i.e. common gateway (non-dynamic gateway), IP address as corresponding in the default gateway interface on DHCP Relay Agent/DHCP Proxy1 in Fig. 3 is 10.0.0.1 (Fig. 3 corresponding scene off line pass interface is identified by IP address), the IP address that default gateway interface on DHCP Relay Agent/DHCP Proxy2 is corresponding is 10.1.0.1, the IP address that default gateway interface on DHCP Relay Agent/DHCP Proxy3 is corresponding is 10.2.0.1, DHCP Relay Agent/DHCP Proxy is configured with at least one dynamic gateway simultaneously, deactivation status is defaulted as at the beginning of one general configuration, follow-up can by below describe embodiment activate, there is 10.0.1.1 IP address as corresponding respectively in the multiple dynamic gateway interfaces on the DHCP Relay Agent/DHCP Proxy2 in 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, DHCP Relay Agent/DHCP Proxy1, the dynamic gateway state that DHCP Relay Agent/DHCP Proxy3 is corresponding please refer to Fig. 3, here repeat no more, and above-mentioned dynamic gateway is configured to DHCP Relay Agent/DHCP Proxy or by DHCP Relay Agent/DHCP Proxy this locality by management interface Remote configuration.The explanation of subsequent embodiment is all applicable to the scene shown in Fig. 3.
Fig. 4 is the first embodiment schematic diagram of the management method of gateway of the present invention, when describing this method, also the method for the address assignment of the embodiment of the present invention is described simultaneously, This embodiment describes the process of the activation being realized dynamic gateway by the protocol message of intercepting between DHCP Client and DHCP Server, wherein, DHCP Relay Agent/DHCP Proxy has gateway function, and the method comprises:
S401, DHCP Client sends the DHCP Server that DHCP DISCOVER message finds administration configuration, namely DHCP Client sends dhcp discover message (DHCP DISCOVER or DHCP Solicit), start the parameter configuration of request dispatching IP address, find the administration configuration server that parameter configuration can be provided to serve;
S402, after DHCP Relay Agent/DHCP Proxy receives the DHCP DISCOVER message of described DHCP Client transmission, DHCP Relay Agent/DHCP Proxy adds relay agent's mark and/or at least one dynamic gateway mark in this DHCP DISCOVER message.Described relay agent identifies the IP address or medium access control (Media Access Control, MAC) address or device name that comprise DHCP Relay Agent/DHCP Proxy; Dynamic gateway mark can be the IP address of this dynamic gateway, MAC Address, this dynamic gateway title (Identity, ID) one or more the combination in, dynamic gateway comprises the gateway being in state of activation/deactivation status, concrete interpolation process adds relay agent's mark by giaddr (relay agent address) or DHCP Option82 field, and newly increases Option field interpolation dynamic gateway mark by DHCP DISCOVER message.
Described DHCP DISCOVER message of adding process is transmitted to DHCP Server by S403, DHCP Relay Agent/DHCP Proxy;
S404, after DHCP Server receives the DHCP DISCOVER message of described forwarding, resolve this DHCP DISCOVER message and obtain discovery message parameter, wherein, find that message parameter can comprise the MAC Address of DHCP Client comprised before DHCP DISCOVER adds process, and DHCP Relay/Proxy Agent insert relay agent's mark, dynamic gateway mark, Option82 parameter etc.
S405, DHCP Server chooses IP address available on described DHCP Client according to the strategy of resolving discovery message parameter and this locality obtained, specific as follows:
DHCP Server chooses can provide the available IP-addresses section of IP address for DHCP Client according to the strategy of the MAC Address of the DHCP Client in DHCP DISCOVER message parameter, Option 82 parameter, relay agent's mark and this locality, as: the available address section that in Fig. 3, DHCP Relay Agent/DHCP Proxy2 is corresponding is 10.1.0.*, 10.1.2.*;
DHCP Server chooses available IP address and uses to DHCP Client in available IP-addresses section, now, first DHCP Server judges in the subnet network segment that the dynamic gateway of the dynamic gateway mark instruction found in message parameter is corresponding, whether there is available IP address (idle IP address), namely whether perception has the event that there is activation (or multiple) target dynamic gateway, if there is available IP-addresses, then can distribute an available IP-addresses in the corresponding subnet network segment of dynamic gateway finding dynamic gateway mark instruction in message to DHCP Client; If there is no available IP-addresses, then characterize the event existing and activate target dynamic gateway, from the dynamic gateway set of deactivation status, select the target dynamic gateway of available deactivation status and the subnet of correspondence thereof;
DHCP Server, from subnet corresponding to the target dynamic gateway selected, selects an available IP-addresses to be that DHCP Client distributes;
S406, after DHCP Server selects available IP-addresses corresponding in described target dynamic gateway and this target dynamic gateway, send and perform for control DHCP Relay Agent/DHCP Proxy the DHCP OFFER message (main control part) that target dynamic gateway is activated, this DHCP OFFER message belongs to the one that DHCP proposes message, this DHCP OFFER message comprises available IP-addresses (if the IP address in the corresponding subnet network segment of available IP-addresses target dynamic gateway described herein, then can this available IP-addresses carry out following activation process as target dynamic gateway identification), or this DHCP OFFER message comprises available IP-addresses and target dynamic gateway identification (if the IP address in the corresponding subnet network segment of available IP-addresses target dynamic gateway described herein, then target dynamic gateway identification described herein can be MAC Address or dynamic gateway ID) combination, and the available IP-addresses described can insert ciaddr (client address) field of DHCP OFFER message, target dynamic gateway identification can be received in giaddr (the relay agent address of DHCP OFFER message, when dynamic gateway is designated 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 described DHCP OFFER message, resolve this DHCP OFFER message, and the available IP-addresses in perception DHCP OFFER message, or the combination of available IP-addresses and target dynamic gateway identification, this available IP-addresses, or namely the combination of available IP-addresses and target dynamic gateway identification indicates the event performing and operate target dynamic gateway activation;
S408, DHCP Relay Agent/DHCP Proxy is when perceiving described trigger event, control the activation (from control part) to target dynamic gateway, during specific implementation, can search dynamic gateway state table according to described available IP-addresses and/or target dynamic gateway identification, activate target dynamic gateway, described activation comprises transmitting of installation targets dynamic gateway address, issue the routing iinformation that target dynamic gateway is corresponding, the state of record object dynamic gateway is state of activation etc.;
The effect of the dynamic gateway state table mentioned here is, realize managing the activation/deactivation state of the dynamic gateway of configuration on DHCP Relay Agent/DHCP Proxy, record operation can be carried out to this dynamic gateway state table, comprise amendment, deletion, renewal etc., the dynamic gateway state table hereafter mentioned also is suitable for this description;
The DHCP OFFER message of gained after S408 process is sent to DHCP Client by S409, DHCP Relay Agent/DHCP Proxy;
Send DHCP REQUEST message to DHCP Relay Agent/DHCP Proxy, i.e. DHCP request message after S410, DHCP Client receives DHCP OFFER message, thus start parameter-configuring request;
After S411, DHCP Relay Agent/DHCP Proxy receives described DHCP REQUEST message, the dynamic gateway be activated mark is added in described DHCP REQUEST message;
S412, DHCP Relay Agent/DHCP Proxy sends described DHCP REQUEST message of adding process, as dynamic gateway address 10.1.1.1 adds in giaddr (relay agent address) or DHCP Option field by DHCP Relay Agent/DHCP Proxy2 in Fig. 3 to DHCP Server;
S413, DHCP Server is after receiving DHCP REQUEST message, according to this DHCP REQUEST message, carry out other process corresponding of IP address assignment, comprise the mark IP address relevant treatment such as distribution state and IP address assignment rental period, record this target dynamic gateway is state of activation simultaneously;
S414, DHCP Server responds DHCP ACK message, and this DHCP ACK message comprises the parameter such as IP address, this IP address lease of having distributed, and DHCP ACK message knows a kind of form of message as DHCP, can also be DHCP Reply message;
S415, after DHCP Relay Agent/DHCP Proxy receives described 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 record the rental period of distributing IP address and this IP address;
S416, DHCP Relay Agent/DHCP Proxy sends described DHCP ACK message to DHCP Client.
It should be noted that, before the present embodiment, need configure dynamic gateway and DHCP Server address list corresponding to dynamic gateway at DHCP Relay Agent/DHCP Proxy, the dynamic gateway of configuration is generally in deactivation status.
As a kind of execution mode, on the first embodiment basis of the management method of gateway shown in above-mentioned Fig. 4, configure except dynamic gateway and DHCP Server address list corresponding to dynamic gateway on DHCP Relay Agent/DHCP Proxy except what illustrate before, DHCP Server also passes through the corresponding relation of the dynamic gateway that management interface configuration DHCP RelayAgent/DHCP Proxy and this DHCP Relay Agent/DHCP Proxy configures, same dynamic gateway can be configured on multiple different DHCP Relay Agent/DHCP Proxy.Under this mode, the overall flow of the first embodiment of the management method of the gateway shown in Fig. 4 does not need to change, and changes step S402, S405 in this flow process, describes the difference of this step below:
S402, DHCP Relay Agent/DHCP Proxy no longer needs to increase dynamic gateway information in DHCP DISCOVER message after receiving the DHCP DISCOVER message of described DHCP Client transmission, and only needing increases corresponding relay agent mark;
S405, DHCP Server chooses IP address available on described DHCP Client according to relay agent's mark of resolving in described DHCP DISCOVER message and local policy, specifically can comprise:
According to relay agent's mark, DHCP Server judges whether default gateway described DHCP Relay Agent/DHCP Proxy on and subnet network segment IP address corresponding to the dynamic gateway activated distribute, namely on described DHCP Relay Agent/DHCP Proxy execution gateway function the gateway correspondence subnet network segment in IP address whether all rented;
When the IP network sector address that DHCP Server determines described correspondence distributes (or based on other strategy), (DHCP Server can record the service condition of dynamic gateway to the available dynamic gateway searching under described DHCP Relay Agent/DHCP Proxy, namely the activation/deactivation state of dynamic gateway is recorded), after finding available dynamic gateway, available IP-addresses corresponding for this dynamic gateway is added in the ciaddr of DHCP OFFER message; This dynamic gateway is identified in the giaddr (dynamic gateway is identified by IP address) or DHCP Option field adding DHCP OFFER message to, namely in the manner, DHCP Server passes through the corresponding relation of the dynamic gateway configured on the DHCP Relay Agent/DHCP Proxy and this DHCP Relay Agent/DHCP Proxy of this locality configuration, select dynamic gateway, and no longer by DHCP DISCOVER message with dynamic gateway mark select;
In addition, for the first embodiment of the management method of the gateway of the present invention shown in above-mentioned Fig. 4, following points need to illustrate:
What A1, flow process S405 described is the event that DHCP Server trigging control DHCP Relay Agent/DHCP Proxy activates dynamic gateway, this event is kept in DHCP Server as the local policy of DHCP Server, and this event can have but be not limited only to following several:
On corresponding DHCP Relay Agent/DHCP Proxy, the IP address performed in gateway (comprising the dynamic gateway of default gateway and state of activation) the corresponding subnet network segment of gateway function distributes;
On corresponding DHCP Relay Agent/DHCP Proxy, gateway (comprising the dynamic gateway of default gateway and state of activation) the corresponding subnet network segment of execution gateway function is interior is reached a preset value by the IP address rented;
Third party device activates certain dynamic gateway as strategic server (Policy Server) control DHCP Server triggers DHCP Relay Agent/DHCP Proxy, in such cases, it can be certain dynamic gateway that DHCP Server ACTIVE CONTROL DHCP Relay Agent/DHCP Proxy activates on this DHCP Relay Agent/DHCP Proxy;
The DHCP Server described in A2, flow process S405 selects one of them deactivation status dynamic gateway from the dynamic gateway set of deactivation status, this selection can follow certain selection strategy, can select according to set priority orders, also can Stochastic choice, but be not limited only to this;
Like this, when there is multiple alternative dynamic gateway, multiple policy optimization can be provided the selection of dynamic gateway;
The operation of the activation dynamic gateway described in A3, flow process S408, the operation activated the fact of dynamic gateway in this step process also can be transferred in flow process and realize in other step, such as, after S411, DHCP Relay Agent/DHCP Proxy is true after receiving DHCP REQUEST message activates this dynamic gateway, but in S408 step, DHCP Relay Agent/DHCP Proxy still needs to record the corresponding dynamic gateway information being about to activate, i.e. this dynamic gateway of preactivate simultaneously;
Like this, the activation process of multiple dynamic gateway can be provided, the method of above-mentioned employing preactivate dynamic gateway, rashly dynamic gateway can not be activated before the flow process of DHCP agreement distributing IP address does not complete, such benefit is to prevent because of the configuration parameter in dhcp client refusal DHCP OFFER message or the abnormal conditions that do not respond and cause, 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 embodiment of the method for all gateway managements;
May due to abnormal conditions (as network interrupts suddenly or the unexpected power-off of DHCP Client or malicious attack) in A4, this method, flow process can stop in a certain step (as DHCP Client relevant a certain step in this flow process just stops having responded), and now we have following 2 points:
One, when flow process S410, DHCP Client does not just respond the DHCP OFFER message that DHCP Relay Agent/DHCP Proxy sends, now by configuring a preset time on DHCP Relay Agent/DHCP Proxy, if DHCP Relay Agent/DHCP Proxy confiscates the DHCP REQUEST message of DHCP Client within this preset time, dynamic gateway deexcitation (the DHCP Relay Agent/DHCP Proxy in the case then will activated, DHCP Server does not all record and have activated this dynamic gateway), or now DHCP Relay Agent/DHCP Proxy returns DHCP ACK message (the DHCP Relay Agent/DHCP Proxy in the case activating described dynamic gateway directly to DHCP Server, DHCP Server all records and has activated this dynamic gateway),
They are two years old, under the preactivate flow process described in A3, flow process S412, S414 is necessary to provide retransmission mechanism, such as, when DHCP Relay Agent/DHCP Proxy does not receive DHCP ACK message (namely the guaranteeing that DHCP Server has completed the local record flow process described in flow process S413) that the DHCP Server that describes in flow process S414 returns within preset time, DHCP Relay Agent/DHCP Proxy does not directly activate described dynamic gateway, and now DHCP Relay Agent/DHCP Proxy re-executes the step of S412, until DHCP Relay Agent/DHCP Proxy receives DHCP ACK message,
Like this, just ensure that dynamic gateway state consistency on DHCP Relay Agent/DHCP Proxy, DHCP Server, but other measures that can realize this object also should within scope;
A5, according to DHCP agreement distributing IP address process, also comprise two kinds of situations below:
1, when DHCP Client logs in again, the situation that DHCP REQUEST message carrys out IP address requesting is directly initiated according to the IP address relevant configured parameter before again logging in, so, if the parameter in DHCP REQUEST message still can use, then DHCP Server directly returns DHCP ACK message by the parameter before again logging in, otherwise DHCP Client again initiates IP application IP addresses and carries out normal flow or the flow process of IP address assignment method as described in above-described embodiment;
2, DHCP Server refuses the situation etc. of the DHCP request message parameter that DHCP Client sends by DHCP exception response message (as DHCP NAK or DHCP REPLY message), so, DHCP Client again initiates IP Address requests and carries out normal flow or the flow process of IP address assignment method as described in above-described embodiment.
A6, embodiment one relay agent comprised below described in embodiment identifies and the bearing mode of dynamic gateway mark is just 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 the activation deexcitation of dynamic gateway all should in protection scope of the present invention.
As a kind of execution mode, in actual applications, before DHCP Client, once obtained DHCP Server is the IP address that it distributes, and when this IP address aging, DHCP Client can initiate DHCP request message (as DHPC REQUEST message) and again apply for renting this IP address, therefore, the second embodiment of the management method of gateway of the present invention as shown in Figure 5 can be used, when describing this method, also be illustrated the distribution method of the IP address of the embodiment of the present invention, idiographic flow is as follows simultaneously:
S501, DHCP Client sends DHCP REQUEST message, start parameter-configuring request, this DHCP REQUEST message is as the one of DHCP request message, the IP address that wherein can comprise a DHCP Client request dispatching (to be present in DHCP REQUEST message in ciaddr, or be present in Option50, or other modes);
S502, after DHCP Relay Agent/DHCP Proxy receives described DHCP REQUEST message, in this DHCP REQUEST message, add relay agent's mark and/or the request message parameter such as at least one dynamic gateway mark, dynamic gateway mark comprises dynamic gateway corresponding to the IP address of asking in described DHCP REQUEST message;
DHCP REQUEST message after above-mentioned interpolation process is forwarded to DHCP Server by S503, DHCP Relay Agent/DHCP Proxy;
After S504-S505, DHCP Server receives DHCP REQUEST message, resolve this DHCP REQUEST message and obtain request message parameter, the strategy according to described request message parameter and this locality does subsequent operation, and described strategy and operation comprise:
The gateway of message parameter instruction in DHCP REQUEST message is judged, namely judge that 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 replying DHCP NAK message making DHCP Client again initiate Address requests according to strategy, this dynamic gateway is activated as determined, then reply DHCP ACK message, the corresponding description of the first embodiment specifically as the management method of gateway of the present invention is added dynamic gateway and is activated event information, and the address of adding in DHCP REQUEST message in configuration parameter and relevant parameter information, if the dynamic gateway of default gateway or state of activation, then continue following judgement and operation,
Judge that whether the IP address in DHCP REQUEST message in configuration parameter is also available, as available, then directly reply DHCP ACK message by configuration parameter in message, as unavailable, then judge whether also there is available IP-addresses in the corresponding network segment in this this IP address, as existed, then select corresponding available IP-addresses and add that corresponding configuration parameter issues, if do not existed, replying DHCP NAK message and making DHCP Client again initiate Address requests;
Illustrate: this step S505 comprises the situation of follow-up multiple process, but the gateway that the follow-up flow process of the corresponding S505 of Fig. 5 only describes when carrying in DHCP REQUEST message is dynamic gateway and is in deactivation status, 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 described DHCP ACK message, resolve this DHCP ACK message, get parms, comprise distributing IP address, the rental period of this IP address, available IP-addresses and/or IP gateway address corresponding to available IP-addresses, and perception is carried out to parameter, namely this available IP-addresses perceived and/or IP gateway address corresponding to available IP-addresses indicate the event performed the operation of target dynamic gateway activation, dynamic gateway state table is searched according to described available IP-addresses and/or target dynamic gateway address corresponding to available IP-addresses, if target dynamic gateway is deactivation status, then activate 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 Fig. 4,
DHCP ACK message after S506 process is forwarded to DHCP Client by S507, DHCP Relay Agent/DHCP Proxy.
Second embodiment of the management method of the gateway of the present invention shown in Fig. 5 is the IP address assignment flow process based on prior art, in addition the management of gateway is also existed to other mode, if DHCP Server is based on strategy or the operation triggering DHCP Relay/Proxy activation dynamic gateway under third party device is as the control of Policy Server, Fig. 6 is the 3rd embodiment of the management method of gateway of the present invention, corresponding a kind of DHCP Server directly control DHCP Relay Agent/DHCP Proxy activates the flow process of the operation of target dynamic gateway, its detailed process is as follows:
S601, DHCP Server is based on local policy or be subject to third party device (as Policy Server) to search the dynamic gateway of deactivation status on 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, target dynamic gateway identification is received in giaddr field in this DHCP OFFER message or newly-increased Option field, if need once activate multiple dynamic gateway, then need multiple target dynamic gateway identification to insert newly-increased Option field;
S603, after DHCP Relay Agent/DHCP Proxy receives DHCP OFFER message, perceive target dynamic gateway identification wherein, the instruction of this target dynamic gateway identification triggers the event performed the operation of target dynamic gateway activation, subsequently, find the local target dynamic gateway corresponding with the target dynamic gateway identification of above-mentioned selection stored, and activate this target dynamic gateway, concrete activation manipulation can to describe content identical with the embodiment one of the management method of the gateway of the present invention shown in Fig. 4, the target dynamic gateway identification of activated target dynamic gateway is inserted in giaddr field in DHCP ACK message or Option field by DHCP Relay Agent/DHCP Proxy,
S604, DHCP Relay Agent/DHCP Proxy returns DHCP ACK message to DHCP Server;
S605, DHCP Server, after receiving DHCP ACK message, extracts target dynamic gateway identification wherein, and records the state of this target dynamic gateway.
In the 3rd embodiment of the management method of the gateway of the present invention shown in Fig. 6, be worth the as follows of explanation:
Under B1, this kind of method flow, DHCP Server needs the information of the dynamic gateway corresponding relation that configuration DHCP Relay Agent/DHCP Proxy and this DHCP Relay Agent/DHCP Proxy configures;
When B2, specific implementation, the dhcp message of above-mentioned transmission can have other to select, and such as S602 step can be sent by other form of message, is not restricted to DHCP OFFER message;
B3, this application flow describe the way to manage of dynamic gateway can be varied.Any all should within the protection range of this patent by managing gateway the activation/deactivation of dynamic gateway.
The method of above-described activation dynamic gateway is all that DHCP Server triggers the activation to corresponding dynamic gateway based on local policy or external control, also there is the activation manipulation to dynamic gateway that DHCP Relay Agent/DHCP Proxy triggers in the application of reality.
Fig. 7 is the 4th embodiment schematic diagram of the management method of gateway of the present invention, and This embodiment describes the process of the activation manipulation to dynamic gateway triggered by DHCP Relay Agent/DHCP Proxy, the detailed step of the method is as follows:
S701, under the triggering of condition, DHCP Relay Agent/DHCP Proxy initiates the activation manipulation to certain target dynamic gateway (or list of multiple target dynamic gateway formation), concrete mode can be request activation one target dynamic gateway, the target dynamic gateway of all deactivated states on DHCP Relay Agent/DHCP Proxy is placed in message as list simultaneously and is sent to DHCP Server;
S702, DHCP Relay Agent/DHCP Proxy initiates DHCP REQUEST message, in this DHCP REQUEST message, add relay agent's mark of DHCP Relay Agetn/DHCP Proxy, target dynamic gateway identification and described list, relay agent can be identified, giaddr field or Option field that DHCP REQUEST message is inserted in target dynamic gateway identification and described list;
S703, DHCP Server receives DHCP REQUEST message, extract giaddr field or Option field information, detect that DHCP Relay Agent/DHCP Proxy activates the request of target dynamic gateway, search the target dynamic gateway (based on certain strategy) that be in deactivation status corresponding with target dynamic gateway identification, and to record this target dynamic gateway be state of activation;
Above-mentioned target dynamic gateway identification is inserted (giaddr or newly-increased Option field) in DHCP ACK message by S704, DHCP Server, and sends to DHCP Relay Agent/DHCP Proxy;
Follow-up DHCP Relay Agent/DHCP Proxy receives request, and the operation (comprise DHCP Relay Agent/DHCP Proxy from the DHCP ACK that DHCP Server returns perception to the event of target dynamic gateway activation and the process that triggers target dynamic gateway activation) activating respective objects dynamic gateway is not described in detail here.
This embodiment be what deserves to be explained is:
F1, supplementary notes as the embodiment of the present invention one, the corresponding relation of the dynamic gateway that possible configuration DHCP Relay Agent/DHCP Proxy and this DHCP Relay Agent/DHCP Proxy configures DHCP Server, so on stream, only need to increase dhcp relay agent in DHCP REQUEST message to identify, no longer need to add dynamic gateway identification information;
The condition that F2, DHCP Relay Agent/DHCP Proxy triggers is varied, is not limited to two kinds below:
The distribution condition of IP address in gateway (comprising the dynamic gateway of default gateway and state of activation) the corresponding subnet network segment of DHCP Relay Agent/DHCP Proxy perception self execution gateway function, perceive and need newly-increased gateway interface, such as, judge in the corresponding subnet network segment of the gateway of execution gateway function on DHCP Relay Agent/DHCP Proxy, whether IP address is all rented, when being judged as YES, form described trigger condition;
External policy control DHCP Relay Agent/DHCP Proxy triggers the activation to dynamic gateway, and such as strategic server controls the activation to dynamic gateway;
Below the deexcitation dynamic gateway of the management method of embodiment of the present invention gateway is described.The deexcitation of dynamic gateway also can be carried out in several ways, such as, 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 embodiment schematic diagram of the management method of gateway of the present invention, and This embodiment describes by the process of DHCP Server trigging control DHCP Relay Agent/DHCP Proxy deexcitation dynamic gateway, the method detailed step is as follows:
S801, DHCP Server sends DHCP reconfiguration message under the triggering of condition, thus the deactivating operation initiated target dynamic gateway, DHCP reconfiguration message can be DHCP FORCERENEW message or DHCP RECONFIGURE message, to the target dynamic gateway identification of deexcitation be needed to insert in giaddr field or DHCP Option field in DHCP FORCERENEW message, the condition triggered can be that the IP address perceived in the corresponding subnet network segment of this target dynamic gateway is released entirely or the rental period expires and do not upgrade, or do not have IP address to be used in real network, DHCP reconfiguration message is namely for controlling control information target dynamic gateway being performed to deactivating operation,
S802, DHCP Relay Agent/DHCP Proxy is after receiving DHCP reconfiguration message, target dynamic gateway identification in perception giaddr field or DHCP Option field, discovery is the target dynamic gateway under certain state of activation under corresponding DHCP Relay Agent/DHCP Proxy, namely this target dynamic gateway identification characterizes the event triggering and perform target dynamic gateway deactivating operation, deactivating operation is performed to this target dynamic gateway, comprise and delete transmitting of this target dynamic gateway address, delete the routing iinformation that this target dynamic gateway is corresponding, the state recording this target dynamic gateway is deactivation status.
S803, DHCP Relay Agent/DHCP Proxy returns DHCP ACK message to DHCP Server.
S804, DHCP Server is after receiving DHCP ACK message, and recording corresponding dynamic gateway state is deactivation status.
What deserves to be explained is in 5th embodiment of the management method of the gateway of the present invention shown in Fig. 8:
When C1, specific implementation, the dhcp message of above-mentioned transmission can have other to select, and such as S801 step can send the message of other form, is not restricted to DHCP reconfiguration message.
Fig. 9 is the 6th embodiment schematic diagram of the management method of gateway of the present invention, and This embodiment describes by the process of DHCP Relay Agent/DHCP Proxy trigger deactivation dynamic gateway, its detailed process is as follows:
S901, DHCP Relay Agent/DHCP Proxy initiates the deactivating operation to target dynamic gateway under the triggering of condition, comprise and delete transmitting of this target dynamic gateway address, delete the routing iinformation that this target dynamic gateway is corresponding, the state recording this target dynamic gateway is deactivation status, the condition triggered can be that the DHCP Relay Agent/DHCP Proxy IP address perceived in the corresponding subnet network segment of this dynamic gateway is released entirely or the rental period expires and do not upgrade, or do not have IP address to be used in real network (namely indicating the event to the deexcitation of target dynamic gateway),
S902, DHCP Relay Agent/DHCP Proxy sends DHCP RELEASE message, this DHCP RELEASE message is the one of DHCP release message, wherein target dynamic gateway identification can be inserted in giaddr field in this DHCP RELEASE message or DHCP Option field;
S903, DHCP Server is after receiving DHCP RELEASE message, and extract giaddr field wherein or DHCP Option field information, find corresponding with the dynamic gateway of certain state of activation, recording this target dynamic gateway is deactivation status;
S904, DHCP Server returns DHCPACK message, and this DHCPACK message knows a kind of form of message as DHCP, can also be DHCP REPLY message;
For the 6th embodiment of the management method of the gateway of the present invention shown in above-mentioned Fig. 9, following points need to illustrate:
When D1, specific implementation, the dhcp message of transmission can have other to select, and such as S902 step can send the message of other form, is not restricted to DHCP release message, also can be DHCP updating message or other;
The deexcitation being triggered dynamic gateway by DHCP Server of the 5th embodiment description of the management method of D2, gateway of the present invention, and the 6th embodiment description of the management method of gateway of the present invention is all optional manner by the deexcitation of DHCP Relay Agent/DHCP Proxy triggering dynamic gateway, only can adopt wherein a kind of mode or simultaneously adopt, wherein the 5th embodiment of the management method of gateway of the present invention is preferred version, can also have other optional scheme;
5th, the 6th embodiment of the management method of the gateway of the present invention that D3, Fig. 8, Fig. 9 are corresponding is all the preferred version of management dynamic gateway deexcitation, and the scheme of all management dynamic gateways deexcitation all should in protection scope of the present invention.
What deserves to be explained is, in actual applications, often there is following situation, after certain dynamic gateway activates on gateway device, within certain time period, IP address in the corresponding subnet network segment of certain dynamic gateway only has the application of seldom amount in the network of correspondence, and other default gateway or activated in the corresponding subnet of dynamic gateway also have enough IP addresses for, if there is multiple dynamic gateway to there is the very low situation of this utilization rate simultaneously, the waste of address certainly will be caused, therefore, under this kind of scene, DHCP Server can first force to make the terminal of the IP address used in the corresponding subnet network segment of corresponding dynamic gateway change to (such as DHCP Server uses DHCP FORCERENEW message or DHCP RECONFIGURE message to force terminal to upgrade IP address) on described enough IP addresses by DHCP agreement, the IP address in the corresponding subnet network segment of dynamic gateway is made all to be in unused state, again by DHCP Server this dynamic gateway of method trigger deactivation as shown in above-described embodiment.
By realizing two embodiments of the management method of gateway of the present invention as shown in Figure 8, Figure 9, there is following beneficial effect:
Gateway interface flexible use between different devices can be realized by the activation/deactivation process of dynamic gateway, thus realize the management of gateway, the flexible use of corresponding IP network section in heterogeneous networks, improve the efficiency that resource uses.
First embodiment of the management method of gateway of the present invention, the flow process that second embodiment is mainly distributed based on existing dhcp address realizes the management of gateway, the distribution of IP address, and the 3rd embodiment, 4th embodiment, 5th embodiment, 6th embodiment then utilizes DHCP agreement to realize the management of gateway, optimize the distribution of IP address, in the application of reality, be not limited in fact DHCP agreement can realize gateway management by other agreement multiple, activation/deactivation comprising dynamic gateway etc., such as DIAMETER agreement, Common Open Policy Service (Common Open Policy Service, COPS) agreement, Simple Network Management Protocol (Simple Network Management Protocol, SNMP) etc.In the application of reality, as shown in the 3rd embodiment, the 4th embodiment, the 5th embodiment, the 6th embodiment, can be that the activation/deactivation to dynamic gateway that DHCP SERVER is initiated by perception operates, also can be that the activation/deactivation to dynamic gateway that DHCP Relay Agent/DHCP Proxy is initiated by perception operates.All these, comprise and use various agreement to realize, and comprises the method that activation/deactivation operation is initiated in various perception, all should within the protection range of this patent.
Use DHCP agreement to be preferably a kind of mode of the present invention, but the present invention does not limit the use of protocol type, no matter use which kind of agreement to realize the control and management that dynamic gateway activates deexcitation, all should in protection scope of the present invention and so on.
Preceding embodiment is all the scenes be positioned at based on gateway interface on DHCP Relay Agent/DHCP Proxy, and also there is the situation that dhcp relay agent is separated with gateway interface function (gateway interface function is on gateway function equipment) in actual use, i.e. DHCP Relay Agent/DHCP Proxy and gateway function device separates, under this scene, DHCP Relay Agent/DHCP Proxy needs process:
E1, to complete in preceding embodiment the flow process that describes, namely comprise and activate dynamic gateway according to intercepting signaling message, intercepting signaling message is specially from the signaling message of DHCP Client and/or the message from DHCP Server, as DHCP OFFER message or DHCP ACK message, dynamic gateway and the state information thereof of configuration is preserved by dynamic gateway state table, with preceding embodiment unlike, DHCP Relay Agent/DHCP Proxy also needs the correspondence relationship information of the dynamic gateway preserving 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/deactivation dynamic gateway, wherein, described activation is included in and DHCP Relay Agent/DHCP Proxy configures dynamic gateway corresponding in dynamic gateway state table is state of activation, gateway function equipment is installed transmitting of dynamic gateway address, issues the routing iinformation that dynamic gateway is corresponding; It is deactivation status that described deexcitation is included in the dynamic gateway that on DHCP Relay Agent/DHCP Proxy, configuration is corresponding, and gateway function equipment is deleted transmitting of dynamic gateway address, deletes the routing iinformation that dynamic gateway is corresponding.The control protocol of specific implementation can be the one in the agreement such as COPS agreement or DIAMETER agreement.
In addition, also may there is DHCP Relay Agent/DHCP Proxy function device integrated gateway interface function, also control the scene of third party's gateway function equipment simultaneously.Any all should within protection scope of the present invention to the method that gateway manages based on the activation/deactivation by dynamic gateway.
The embodiment of corresponding above-mentioned each method, is described the system that the embodiment of the present invention provides below, while description embodiment of the present invention system, also carried out related description to the device of the embodiment of the present invention.
Figure 10 is the schematic diagram of the network communicating system of the embodiment of the present 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 having gateway function, also there is relay agent feature (identify corresponding to relay agent, this relay agent this DHCP Relay Agent/DHCP Proxy102 of mark instruction), because it has gateway function, the dynamic gateway of the embodiment of the present invention is also configured on DHCP Relay Agent/DHCP Proxy102, wherein, DHCP Relay Agent/DHCP Proxy102 comprises the first receiving element 1021, first processing unit 1022, administrative unit 1023, first transmitting element 1024, first record cell 1025 (the first receiving element 1021, first transmitting element 1024 is the unit with relay function), DHCP Server103 comprises the 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 is as following:
DHCP Client101, DHCP Server103 are connected with DHCP Relay Agent/DHCP Proxy102 respectively;
Below according to the handling process of this network system, each Elementary Function is described:
DHCP Client101, the DHCP Server103 of administration configuration is found for sending DHCP DISCOVER message, namely DHCP Client sends dhcp discover message (DHCP DISCOVER or DHCP Solicit), start the parameter configuration of request dispatching IP address, find the administration configuration server that parameter configuration can be provided to serve;
First receiving element 1021, for receiving the DHCP DISCOVER message that described DHCP Client101 sends;
First processing unit 1022, for adding relay agent's mark and/or at least one dynamic gateway mark in the described DHCP DISCOVER message received, described relay agent identifies the IP address or MAC Address or MAC Address or device name that comprise DHCP Relay Agent/DHCP Proxy102; Dynamic gateway mark can be one or more combination of the IP address of this dynamic gateway, MAC Address, this dynamic gateway title, dynamic gateway comprises the gateway being in state of activation/deactivation status, concrete interpolation process adds relay agent's mark by giaddr (relay agent address) or DHCP Option82 field, and newly increases Option field interpolation dynamic gateway mark by DHCP DISCOVER message;
First transmitting element 1024, for being forwarded to DHCP Server103 by the DHCP DISCOVER message after described interpolation process;
Second receiving element 1031, for receiving the discovery message of described forwarding;
Second processing unit 1032, DHCP DISCOVER message for resolving described reception obtains and finds message parameter, wherein, find that message parameter can comprise the MAC Address of DHCP Client101 comprised before DHCP DISCOVER adds process, and DHCP Relay/Proxy Agent102 insert relay agent's mark, dynamic gateway mark, Option82 parameter etc., choose can provide the available IP-addresses section of IP address for DHCP Client101 for the MAC Address according to the DHCP Client101 in DHCP DISCOVER message parameter, Option 82 parameter, relay agent's mark and the strategy of this locality, use to DHCP Client101 for choosing available IP address in available IP-addresses section, first judge in the subnet network segment that the dynamic gateway of the dynamic gateway mark instruction found in message parameter is corresponding, whether there is available IP address (idle IP address), namely whether perception exists the event (showing that this DHCP Server103 can also exist a perception unit herein) of activation (or multiple) target dynamic gateway, if there is no available IP-addresses, then characterize the event existing and activate target dynamic gateway, from the dynamic gateway set of deactivation status, select the target dynamic gateway of available deactivation status and the subnet of correspondence thereof, for from the subnet network segment corresponding to the target dynamic gateway selected, an available IP-addresses is selected to be that DHCP Client101 distributes, generate and perform for control DHCP Relay Agent/DHCP Proxy102 the DHCP OFFER message (main control part shows that this DHCP Server103 also can exist a control unit herein) that target dynamic gateway is activated,
Second transmitting element 1033, for after selecting available IP-addresses corresponding in described target dynamic gateway and this target dynamic gateway, DHCP OFFER message is sent to DHCP Relay Agent/DHCP Proxy102, this DHCP OFFER message belongs to the one that DHCP proposes message, this DHCP OFFER message comprises available IP-addresses (if the IP address in the corresponding subnet network segment of available IP-addresses target dynamic gateway described herein, then can this available IP-addresses carry out following activation process as target dynamic gateway identification), or this DHCP OFFER message comprises available IP-addresses and target dynamic gateway identification (if the IP address in the corresponding subnet network segment of available IP-addresses target dynamic gateway described herein, then target dynamic gateway identification described herein can be MAC Address or dynamic gateway ID) combination, and the available IP-addresses described can insert ciaddr (client address) field of DHCP OFFER message, target dynamic gateway identification can be received in giaddr (the relay agent address of DHCP OFFER message, when dynamic gateway is designated 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, proposes message for receiving described DHCP;
Perception unit in administrative unit 1023, for the available IP-addresses in the DHCP OFFER message that receives described in perception, or the combination of available IP-addresses and target dynamic gateway identification, this available IP-addresses, or namely the combination of available IP-addresses and target dynamic gateway identification indicates following first processing unit 1022 to perform the event operated target dynamic gateway activation;
Control unit in administrative unit 1023, for the event perceived when the perception unit in administrative unit 1023, and the first activation/deactivation state information of dynamic gateway that record of record cell 1025, send for controlling its control information to the activation manipulation of described target dynamic gateway (from control part) to the first processing unit 1022;
A performance element can be comprised in first processing unit 1022, for the control information sent according to described administrative unit 1023, search dynamic gateway state table (can be present in the first record cell 1025), activate target dynamic gateway, described activation comprises transmitting of installation targets dynamic gateway address, issues the routing iinformation etc. that target dynamic gateway is corresponding;
First record cell 1025, the target dynamic gateway activated for recording performance element is state of activation, and this first record cell 1025 can operate dynamic gateway state table;
First transmitting element 1024, for being sent to DHCP Client101 by the DHCP OFFER message of gained after above-mentioned process;
DHCP Client101, after receiving DHCP OFFER message, sends DHCP REQUEST message to DHCP Relay Agent/DHCP Proxy102, i.e. DHCP request message, thus starts parameter-configuring request;
First receiving element 1021, for receiving described DHCP REQUEST message;
First processing unit 1022, for adding the dynamic gateway mark be activated in the described DHCP REQUEST message received;
First transmitting element 1024, for sending the DHCP REQUEST message after adding process to DHCP Server103;
Second receiving element 1031, for receiving described DHCP REQUEST message of adding after process;
Second processing unit 1032, for according to the DHCP REQUEST message received, carries out other process corresponding of IP address assignment, comprises the mark IP address relevant treatment such as distribution state and IP address assignment rental period;
Second record cell 1034, the target dynamic gateway be activated described in record is state of activation;
Second transmitting element 1033, for responding DHCP ACK message to DHCP Relay Agent/DHCP Proxy102, this DHCP ACK message comprises the parameter such as IP address, this IP address lease of having distributed, DHCP ACK message knows a kind of form of message as DHCP, can also be DHCP Reply message;
First receiving element 1021, for receiving described DHCP ACK message;
First processing unit 1022, for resolving described DHCP ACK message, getting parms, comprising the rental period of distributing IP address and this IP address;
First record cell 1025, records the rental period of distributing IP address and this IP address;
First transmitting element 1024, for sending described DHCP ACK message to DHCP Client101.
It should be noted that, need configure dynamic gateway and DHCP Server address list corresponding to dynamic gateway on DHCP Relay Agent/DHCP Proxy102, the dynamic gateway of configuration is generally in deactivation status.
Above-mentioned DHCP Server103 and the address allocation function entity mentioned by the present invention, DHCP Server103 can think that address assignment administrative unit in prior art is (after the DHCP DISCOVER message received, for DHCP Client101 distributing IP address) on basis, add gateway management unit (according to DHCP DISCOVER message, determine that the target dynamic gateway of the deactivation status that DHCP Relay Agent/DHCP Proxy102 that DHCP Client101 belongs to is corresponding carries out activation manipulation, and collaborative address allocation manager unit is the IP address that DHCP Client101 distributes in this target dynamic gateway), and DHCP Relay Agent/DHCP Proxy102 and the gateway management functional entity mentioned by the present invention, simultaneously, owing to adopting to the master control of dynamic gateway activation manipulation and from the hierarchical control controlled, DHCP Server103 also can be used as the gateway management functional entity mentioned by the present invention.
As a kind of execution mode, configure except dynamic gateway and DHCP Server103 address list corresponding to dynamic gateway on DHCP Relay Agent/DHCP Proxy102 except what illustrate before, DHCP Server103 also passes through the corresponding relation of the dynamic gateway that management interface configuration DHCP Relay Agent/DHCP Proxy102 and this DHCP Relay Agent/DHCP Proxy102 configures, same dynamic gateway can be configured on multiple different DHCP Relay Agent/DHCP Proxy102.In this fashion, above-mentioned first processing unit 1022 is after the first receiving element 1021 receives the DHCP DISCOVER message of described DHCP Client101 transmission, no longer need to increase dynamic gateway information in DHCP DISCOVER message, and only need to increase corresponding relay agent mark; Accordingly, the second processing unit 1032 can choose IP address available on described DHCP Client101 according to relay agent's mark of resolving in described DHCP DISCOVER message and local policy, and this second processing unit 1032 function specifically can comprise:
Judge whether default gateway described DHCP Relay Agent/DHCP Proxy102 on and IP network sector address corresponding to the dynamic gateway activated distribute according to relay agent's mark, namely on described DHCP Relay Agent/DHCP Proxy execution gateway function the gateway correspondence subnet network segment in IP address whether all rented;
When the IP network sector address judging to obtain described correspondence distributes (or based on other strategy), search the available dynamic gateway (record cell 1034 on DHCP Server103 under described DHCP Relay Agent/DHCP Proxy102, for recording the activation/deactivation state of dynamic gateway on DHCP Relay Agent/DHCP Proxy102), after finding available dynamic gateway, available IP-addresses corresponding for this dynamic gateway is added in the ciaddr of DHCP OFFER message; This dynamic gateway is identified in the giaddr (dynamic gateway is identified by IP address) or DHCP Option field adding DHCP OFFER message to, namely in the manner, DHCP Server103 passes through the corresponding relation of the dynamic gateway configured on the DHCP Relay Agent/DHCP Proxy102 and this DHCP Relay Agent/DHCP Proxy102 of this locality configuration, select dynamic gateway, and no longer by DHCP DISCOVER message with dynamic gateway mark select.
As a kind of execution mode, in actual applications, before DHCP Client101, once obtained DHCP Server103 is the IP address that it distributes, and when this IP address aging, DHCP Client101 can initiate DHCP request message (as DHPC REQUEST message) and again apply for renting this IP address, therefore, in the network system of the embodiment of the present invention shown in above-mentioned Figure 10, each Elementary Function can also as following:
DHCP Client101, for sending DHCP REQUEST message, start parameter-configuring request, this DHCP REQUEST message, as the one of DHCP request message, wherein can comprise the IP address (be present in DHCP REQUEST message in ciaddr) of a DHCP Client101 request dispatching;
First receiving element 1021, for receiving described DHCP REQUEST message;
First processing unit 1022, for adding relay agent's mark and/or the request message parameter such as at least one dynamic gateway mark in the DHCP REQUEST message of described reception, dynamic gateway mark comprises dynamic gateway corresponding to the IP address of asking in described DHCP REQUEST message;
First transmitting element 1024, for being forwarded to DHCP Server103 by the DHCP REQUEST message after described interpolation process;
Second receiving element 1031, for receiving described DHCP REQUEST message;
Second processing unit 1032, DHCP REQUEST message for parsing described reception obtains request message parameter, the target dynamic gateway of strategy decision to a deactivation status according to this request message parameter and this locality activates, in the applied environment of the present embodiment, the gateway that specifically can be indicated by message parameter in the second processing unit 1032 pairs of DHCP REQUEST message judges, namely judge that 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 replying DHCP NAK message making DHCP Client101 again initiate Address requests according to strategy, this dynamic gateway is activated as determined, then reply DHCP ACK message, add dynamic gateway in this DHCP ACK message and activate event information, and the address of adding in DHCP REQUEST message in configuration parameter and relevant parameter information, if the dynamic gateway of default gateway or state of activation, then continue to the IP address in configuration parameter in DHCP REQUEST message whether can judgement and operation, repeat no more herein,
Second transmitting element 1033, for responding DHCP ACK message, this DHCP ACK message comprises the parameters such as the IP address distributed, IP gateway address that this IP address lease, available IP-addresses and/or available IP-addresses are corresponding, DHCP ACK message knows a kind of form of message as DHCP, also can be DHCP Reply message;
First receiving element 1021, for receiving described DHCP ACK message;
Perception unit in administrative unit 1023, for the IP gateway address that rental period of the address of distributing IP in the DHCP ACK message that receives described in perception, this IP address, available IP-addresses and/or available IP-addresses are corresponding, namely this available IP-addresses and/or IP gateway address corresponding to available IP-addresses indicate following first processing unit 1022 to perform event to the operation of target dynamic gateway activation;
Control unit in administrative unit 1023, specifically can comprise a judging unit, for after perceiving described event, according to described available IP-addresses and/or IP gateway address corresponding to available IP-addresses, search dynamic gateway state table (this dynamic gateway state table can be present in the first record cell 1025), judge whether target dynamic gateway is deactivation status;
Control unit in administrative unit 1023, specifically also can comprise a judgement performance element, when being state of activation for obtaining described target dynamic gateway when detecting unit detection, control the first processing unit 1022 and activate this target dynamic gateway, when detecting unit detects that to obtain described target dynamic gateway be deactivation status, the target dynamic gateway reselecting a deactivation status triggers the first processing unit 1022 and performs activation manipulation to it;
First processing unit 1022 includes performance element, for the triggering according to described administrative unit 1023, activates target dynamic gateway, and described activation comprises installs transmitting of dynamic gateway address, issues the routing iinformation that dynamic gateway is corresponding;
First record cell 1025, for recording the activation result of described performance element, in addition, first transmitting element 1024 needs to send this activation result to DHCP Server103, realizes dynamic gateway activation/deactivation state recording synchronous with between DHCP Server at DHCP Relay Agent/DHCP Proxy;
First transmitting element 1024, for being forwarded to DHCP Client101 by the DHCP ACK message after above-mentioned process.
As a kind of execution mode, for another handling process, in the first embodiment of the network system of the present invention shown in above-mentioned Figure 10, each Elementary Function is all right as following:
Second processing unit 1032, for based on local policy or the dynamic gateway searching deactivation status on corresponding DHCP Relay Agent/DHCP Proxy102 by third party device (as Policy Server), based on the target dynamic gateway of one of them deactivation status of policy selection;
Second transmitting element 1033, for sending DHCP OFFER message, target dynamic gateway identification is received in giaddr field in this DHCP OFFER message or newly-increased Option field, if multiple target dynamic gateway once need be activated, then need multiple target dynamic gateway identification to insert newly-increased Option field;
First receiving element 1021, for receiving described DHCP OFFER message;
Perception unit in administrative unit 1023, proposes the target dynamic gateway identification in message for DHCP described in perception, and namely the target dynamic gateway identification perceived indicates the first processing unit 1022 to perform the event operated target dynamic gateway activation;
Control unit in administrative unit 1023, according to the activation/deactivation state information of the dynamic gateway that event and first record cell 1025 of the perception unit perception in administrative unit 1023 record, control the first processing unit 1022 and activate this target dynamic gateway, such as, after perception unit perceives above-mentioned target dynamic gateway identification, when the target dynamic gateway that the first record cell 1025 records is deactivation status, controls the first processing unit 1022 and activate this target dynamic gateway;
First processing unit 1022, according to the triggering signal of described administrative unit 1023, activates described target dynamic gateway, and in the giaddr field that the target dynamic gateway identification of activated target dynamic gateway is inserted DHCP ACK message or Option field;
First record cell 1025, the activation/deactivation state of record object dynamic gateway;
First transmitting element 1024, for returning described DHCP ACK message to DHCP Server103;
Second receiving element 1031, for receiving described DHCP ACK message;
Second processing unit 1032, for extracting target dynamic gateway identification in the described DHCP ACK message received;
Second record cell 1034, records the activation/deactivation state of described target dynamic gateway.
As a kind of execution mode, for another handling process, in the first embodiment of the network system of the present invention shown in above-mentioned Figure 10, each Elementary Function is all right as following:
First transmitting element 1021, DHCP REQUEST message is sent to DHCP Server103 under triggering in condition, the relay agent that can add DHCP Relay Agetn/DHCP Proxy102 by the first processing unit 1022 in this DHCP REQUEST message identifies, the list of the target dynamic gateway of all deactivated states on target dynamic gateway identification and DHCP Relay Agent/DHCP Proxy102, relay agent can be identified, giaddr field or Option field that DHCP REQUEST message is inserted in target dynamic gateway identification and described list;
Second receiving element 1031, for receiving described DHCP REQUEST message;
Second processing unit 1032, for extracting giaddr field or Option field information, detect that DHCP Relay Agent/DHCP Proxy102 activates the request of target dynamic gateway, search the target dynamic gateway (based on certain strategy) that be in deactivation status corresponding with target dynamic gateway identification;
Second record cell 1034, for after finding the target dynamic gateway (based on certain strategy) that be in deactivation status corresponding with target dynamic gateway identification, record object dynamic gateway is state of activation;
Second transmitting element 1033, for being sent to DHCP Relay Agent/DHCP Proxy102 by the DHCP ACK message including above-mentioned target dynamic gateway identification;
After DHCP Relay Agent/DHCP Proxy102 receives DHCP ACK message, then activate corresponding dynamic gateway, other Elementary Functions repeat no more, and above-mentioned certain trigger condition can by but be not limited to two kinds of situations below:
Judging unit newly-increased on DHCP Relay Agent/DHCP Proxy102, whether the corresponding IP address of the gateway for judging DHCP Relay Agent/DHCP Proxy102 performs gateway function is all rented, when being judged as YES, form described perceived event;
External policy control DHCP Relay Agent/DHCP Proxy102 triggers the activation to dynamic gateway, and as the control of tactful DHCP Server, namely this control signal forms described perceived event.
Being illustrated relating to the Apparatus and system activating dynamic gateway flow process in the embodiment of the present invention above, namely the Apparatus and system relating to deexcitation dynamic gateway flow process in the embodiment of the present invention being described below.
As a kind of execution mode, in the first embodiment of the network system of the present invention shown in above-mentioned Figure 10, each Elementary Function is all right as following:
Second transmitting element 1031, for sending DHCP reconfiguration message under the triggering of condition, thus the deactivating operation initiated target dynamic gateway, DHCP reconfiguration message can be DHCP FORCERENEW message or DHCP RECONFIGURE message, to the target dynamic gateway identification of deexcitation be needed to insert in giaddr field or DHCP Option field in DHCP FORCERENEW message, the condition triggered can be that the IP address perceived in the corresponding subnet network segment of this target dynamic gateway is released entirely or the rental period expires and do not upgrade, or do not have IP address to be used in real network, DHCP reconfiguration message is namely for controlling control information target dynamic gateway being performed to deactivating operation,
First receiving element 1021, for receiving described DHCP reconfiguration message.
Perception unit in administrative unit 1023, for the target dynamic gateway identification in perception giaddr field from the DHCP reconfiguration message received or DHCP Option field, discovery is the target dynamic gateway under certain state of activation under corresponding DHCP Relay Agent/DHCP Proxy102, and namely this target dynamic gateway identification characterizes the event existing and trigger and perform target dynamic gateway deactivating operation;
Control unit in administrative unit 1023, according to the event of perception unit perception in administrative unit 1023 and the activation/deactivation state information of dynamic gateway, then controlling the first processing unit 1022 and perform deactivating operation to target dynamic gateway, now can sending for controlling its control information to the deactivating operation of target dynamic gateway to the first processing unit 1022;
A performance element can be comprised in first processing unit 1022, for the control information according to described administrative unit 1023, deactivating operation is carried out to target dynamic gateway, comprises and delete transmitting of this target dynamic gateway address, delete the routing iinformation that this target dynamic gateway is corresponding;
First record cell 1025, for recording the deactivation status of the target dynamic gateway of described performance element process;
First transmitting element 1024, for returning DHCP ACK message;
Second receiving element 1031, for receiving described DHCP ACK message;
Second record cell 1034 is deactivation status for recording described target dynamic gateway status.
As a kind of execution mode, in the first embodiment of the network system of the present invention shown in above-mentioned Figure 10, each Elementary Function is all right as following:
First processing unit 1022, for initiating the deactivating operation to target dynamic gateway under certain condition triggering, comprise and delete transmitting of this target dynamic gateway address, delete the routing iinformation that this target dynamic gateway is corresponding, the condition triggered can be that judging unit newly-increased in the DHCP Relay Agent/DHCP Proxy102 IP address determined under the corresponding network segment of this dynamic gateway is released entirely or the rental period expires and do not upgrade, or does not have IP address to be used in real network (i.e. the event of instruction triggering to the deexcitation of target dynamic gateway);
First record cell 1025, for recording the deactivation status of the target dynamic gateway that the first processing unit 1022 processes;
First transmitting element 1024, for sending DHCP release message, this DHCP release message can be DHCP RELEASE message, in the giaddr field wherein target dynamic gateway identification can being inserted this DHCP release message or DHCP Option field;
Second receiving element 1031, for receiving described DHCP release message;
Second processing unit 1032, for after receiving DHCP release message, extracts giaddr field wherein or DHCP Option field information, finds corresponding with the dynamic gateway of certain state of activation;
Second record cell 1034, recording described target dynamic gateway is deactivation status;
Second transmitting element 1033, knows message for returning DHCP, and this DHCP knows that message can be DHCP ACK message or DHCP Reply message;
First receiving element 1021, knows message for receiving described DHCP.
Be worth the following points illustrated:
K1, in said system and apparatus embodiments, on DHCP Relay Agent/DHCP Proxy102, existing relay agent/agent functionality (comprises the first receiving element 1021, relay agent/the agent functionality related in first transmitting element 1024), gateway management function is had again (to comprise perception unit in administrative unit 1023, the function of control unit), also there is gateway function and (provide gateway interface, comprise performance element function in the first processing unit 1022), and in actual applications, above-mentioned three functions can realize on different concrete equipment, such as, various structures as shown in figure 11 can be formed, wherein:
Label 112 represents the combination of unit with relay agent/agent functionality, gateway management function, gateway function described in the various embodiments described above, forms DHCP Relay Agent/DHCP Proxy102;
Label 1121 represents another execution mode, namely there is the unit combination of relay agent/agent functionality, gateway management function, form DHCP Relay Agent/DHCP Proxy102, and gateway function forms other one independently function device (can be gateway device);
Label 1122 represents another execution mode, namely there is the unit combination of relay agent/agent functionality, form DHCP Relay Agent/DHCP Proxy102, and there is the combination of unit of gateway management function, gateway function, form other one independently function device (can be gateway device);
Under above-mentioned two kinds of execution modes, between equipment, realized the information interaction originally realized in single equipment by certain concrete agreement, such as, can be realized by a certain in snmp protocol, DIAMETER agreement or COPS agreement etc.;
K2, the management method of the gateway that the embodiment of the present invention describes, the hierarchical control to target dynamic gateway activation/deexcitation can be there is, first embodiment of the management method of gateway of the present invention as shown in Figure 4, wherein achieve the main control part to target dynamic gateway activation in S406, and achieve in S408 to target dynamic gateway activation from control part, corresponding at equipment, system aspects, also master control function unit can be there is, from control functional unit, such as, perception unit in the DHCP Server103 of the main control part occurred in the above-described embodiments and control unit, from the perception unit the DHCP Relay Agent/DHCP Proxy102 of control part and control unit,
K3, in embodiments of the present invention, relay agent/agent functionality is based on the scene of the DHCP agreement of embodiment above, in the application of reality, also there is the scene using other type protocol, such as, aforementioned relay agent/agent functionality can replace to this protocol processes functional unit, and the same process be responsible for this agreement, particularly extracts the activation deexcitation event information etc. of dynamic gateway in agreement in the present invention.The equipment enforcement meeting this thought all should 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 realized in above-described embodiment method, that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Radom Access Memory, RAM) or flash storage medium first-class.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications are also considered as protection scope of the present invention.

Claims (5)

1. an address distribution method, it is characterized in that, the method applies a kind of dynamic gateway, described dynamic gateway is to there being a subnet network segment, and this dynamic gateway at least comprises state of activation and deactivation status, when this dynamic gateway is in state of activation, this dynamic gateway performs gateway function, when this dynamic gateway is in deactivation status, this dynamic gateway does not perform gateway function, and the method comprises:
Receive for asking the request message for client allocation address;
According to described request message, the dynamic gateway set of the deactivation status that the gateway functionality entities belonged to from described client is corresponding, determine a target dynamic gateway;
Activate this target dynamic gateway on described gateway functionality entities;
In the corresponding subnet of this target dynamic gateway, select an address assignment to described client.
2. address distribution method according to claim 1, is characterized in that, described according to described request message, determines that a target dynamic gateway specifically comprises the dynamic gateway set of the deactivation status that the gateway functionality entities belonged to from described client is corresponding:
Described according to described request message, inquire about the state information of described gateway functionality entities and dynamic gateway and the correspondence relationship information of dynamic gateway, from the dynamic gateway set of deactivation status corresponding to described gateway functionality entities, determine a target dynamic gateway; The state information of described dynamic gateway comprises activation or deactivation status information.
3. a gateway device, it is characterized in that, this gateway device applies a kind of dynamic gateway, this dynamic gateway at least comprises state of activation and deactivation status, when this dynamic gateway is in state of activation, this dynamic gateway performs gateway function, when this dynamic gateway is in deactivation status, this dynamic gateway does not perform gateway function, and this gateway device comprises:
Receiving element, receives the control information for controlling activation to target dynamic gateway or deactivating operation;
Performance element, according to described control information, performs described activation or deactivating operation, and described activation manipulation comprises installs transmitting of described target dynamic gateway address, issues the routing iinformation that described target dynamic gateway is corresponding; Described deactivating operation comprises deletes transmitting of described target dynamic gateway address, deletes the routing iinformation that described target dynamic gateway is corresponding.
4. an address allocation function entity, it is characterized in that, this address allocation function entity is for managing a kind of dynamic gateway, described dynamic gateway is to there being a subnet network segment, and this dynamic gateway at least comprises state of activation and deactivation status, when this dynamic gateway is in state of activation, this dynamic gateway performs gateway function, when this dynamic gateway is in deactivation status, this dynamic gateway does not perform gateway function, and this address allocation function entity comprises:
Allocation unit is this client allocation address after receiving the request message for asking as client allocation address;
Gateway management unit, according to described request message, a target dynamic gateway is determined the dynamic gateway set of the deactivation status that the gateway functionality entities belonged to from described client is corresponding, notify that described gateway functionality entities activates this target dynamic gateway, and Notify Address allocation units select in the corresponding subnet of described target dynamic gateway an address to be that described client is distributed.
5. address allocation function entity as claimed in claim 4, it is characterized in that, this address allocation function entity also comprises:
Record cell, is connected with described gateway management unit, and the dynamic gateway that record gateway functionality entities configures activates or deactivation status information.
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 CN102340421A (en) 2012-02-01
CN102340421B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878481B (en) * 2016-12-30 2020-08-18 瑞斯康达科技发展股份有限公司 Method, device and system for acquiring Internet Protocol (IP) address
CN106953942A (en) * 2017-04-24 2017-07-14 张良级 A kind of method of DHCP dynamically distributes gateway
FR3078461B1 (en) * 2018-02-27 2020-01-31 Continental Automotive France ROUTING METHOD AND GATEWAY FOR A MOTOR VEHICLE
CN111756865B (en) * 2019-03-28 2024-02-09 苏州铭威天欣信息科技有限公司 Communication management method for base station and user terminal
CN111062654B (en) * 2019-11-27 2023-12-29 坎德拉(深圳)科技创新有限公司 Delivery piece taking method
CN114079586A (en) * 2020-08-19 2022-02-22 华为技术有限公司 Access control method and device

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

Also Published As

Publication number Publication date
CN102340421A (en) 2012-02-01

Similar Documents

Publication Publication Date Title
CN101442425B (en) Gateway management method, apparatus and system
CN107733670B (en) Forwarding strategy configuration method and device
EP3361675B1 (en) Distributed load balancing system, health check method and service node
EP2800308B1 (en) Tunnel failover
US9363207B2 (en) Private virtual local area network isolation
CN101179603B (en) Method and device for controlling user network access in IPv6 network
EP1125423B1 (en) Digital network modem with an integrated dhcp server
CN102340421B (en) Gateway management method, address allocation method, device and system
CN108777722B (en) Multi-system networking communication method and device, mobile terminal and storage medium
US7231660B1 (en) Method and system for preventing unauthorized server interference in an internet protocol network
CN105245629B (en) Host communication method based on DHCP and device
US20100005506A1 (en) Dynamic address assignment for access control on dhcp networks
US20130024553A1 (en) Location independent dynamic IP address assignment
CN102148879A (en) Port mapping method and device and communication system
CN114070723B (en) Virtual network configuration method and system of bare metal server and intelligent network card
CN106878480B (en) DHCP service process sharing method and device
CN111327668B (en) Network management method, device, equipment and storage medium
CA2851487C (en) Dynamic network awareness
CN102118453B (en) Method, service device, client and communication system for automatic configuration of IP address
CN102244690A (en) Address allocation method and system of dynamic host configuration protocol (DHCP) as well as client side and servers of same
EP2466796B1 (en) User access method, system and access server, access device
EP2218214B1 (en) Network location service
JP2000101589A (en) Dynamic domain name system
CN107995124B (en) Traffic scheduling method and device
CN109561004B (en) Message forwarding method and device and switch

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