CN1567887A - Method for triggering user IP address assignment - Google Patents

Method for triggering user IP address assignment Download PDF

Info

Publication number
CN1567887A
CN1567887A CN 03178309 CN03178309A CN1567887A CN 1567887 A CN1567887 A CN 1567887A CN 03178309 CN03178309 CN 03178309 CN 03178309 A CN03178309 A CN 03178309A CN 1567887 A CN1567887 A CN 1567887A
Authority
CN
China
Prior art keywords
user
address
message
dhcp
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 03178309
Other languages
Chinese (zh)
Other versions
CN100370768C (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 CNB031783090A priority Critical patent/CN100370768C/en
Publication of CN1567887A publication Critical patent/CN1567887A/en
Application granted granted Critical
Publication of CN100370768C publication Critical patent/CN100370768C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention discloses a user IP address dynamically allocating method, analyzing non-DHCP message of user, triggering the allocation of DHCP service end on the user IP address according to the analysis result. It does not need the participation of the user in the course of user obtaining IP address, the client end only sends APR message and obtains the response, thus able to access to the network; by the ARP message or ordinary IP message, it triggers to allocate IP address to the user, can fast resume the user connection, and increases satisfactoriness of the user and simultaneously reduces maintenance cost of the operator. For PPPOE dial-in user, the operator can use DHCP server to allocate the IP address to the user, and need not singly manage and reduces operating cost and it is convenient to manage.

Description

The method that triggering distributes IP address
Technical field
The present invention relates to the distribution method of a kind of dynamic subscriber IP address, specifically be meant a kind of non-DHCP (Dynamic Host Configuration Protocol that utilizes, abbreviation DHCP) message triggers the method to user's address assignment, belongs to technical field of the computer network.
Background technology
As everyone knows, manual configuration main frame Internet protocol (Internet Protocol, be called for short IP) address is a not only time-consuming but also dull thing, and the static ip address that main frame is distributed in management difficult task especially, especially when host IP address needs often change.Can adopt DHCP to solve the above problems; Promptly, by Dynamic Host Configuration Protocol server of configuration in a network segment, receive and handle the DHCP request message of the All Clients in the same subnet, look for the IP of a free time to distribute to the user the address pool that in Dynamic Host Configuration Protocol server, disposes, simultaneously also can be with some parameter informations (such as name server (Domain Name Server is called for short DNS), WINS (Windows Name Server, be used for the NetBIOS name resolution), gateway) notify the user.Behind the unique IP address, the user can realize netting the exchanging visit between interior or net in obtaining subnet.Also can make a Dynamic Host Configuration Protocol server is client computer distributing IP address in a plurality of network segments, this equipment that just needs to use band DHCP to take over (Relay) function is realized the IP address unified management of same equipment to main frame in a plurality of different sub-networks with Dynamic Host Configuration Protocol server or other Relay equipment that user's request Relay gives the inter-network section.
Modern society has entered information equipment, and communication network has been applied to each aspect of entire society as the carrier of information.The communication technology commonly used has Ethernet, Token Ring, frame relay (FrameRelay, abbreviation FR), IP, asynchronous transfer mode (Asynchronous Transfer Mode, be called for short ATM) or the like, the wide area network that the local area network (LAN) that communication network commonly used is made up of Ethernet, TCP (Transmission Control Protocol/Internet Protocol is called for short TCP/IP) are formed and Internet or the like.
With the Ethernet is example, and common network organizing mode as shown in Figure 1.Use ethernet technology, computer PC links to each other by netting twine with Ethernet switch LAN Switch or hub HUB by its network interface card, Ethernet switch LAN Switch or hub HUB can connect a plurality of computer PC, Ethernet switch LAN Switch or hub HUB receive among the core net NET, for example: intranet, metropolitan area network etc. by ethernet line (comprising access device CQ).
In the networking of reality, multiple networking structure can be arranged.Referring to Fig. 1, computer PC can directly be connected on the Ethernet switch LAN Switch, also can pass through equipment cascadings such as hub HUB, Ethernet switch LAN Switch to Ethernet switch LAN Switch.Computer PC also can be passed through Very-high-speed Digital Subscriber Line road (Very High Speed Digital Subscriber Line is called for short VDSL) and link to each other with VDSL switch (VDSL Switch); What transmit in the VDSL circuit is the message of ethernet format.In WLAN (wireless local area network), can use but be not limited to wireless ethernet agreements such as IEEE 802.11,802.11a, 802.11b, 802.11g to connect computer PC and WAP (wireless access point) (Access Point is called for short AP).Computer PC also can be passed through Asymmetric Digital Subscriber Loop (ADSL) (Asymmetric Digital Subscriber Line is called for short ADSL) equipment and be connected in the network.Above-mentioned VDSL, ADSL and other number circuits (Digital Subscriber Line is called for short DSL) can be referred to as xDSL.
In sum, computer PC can by but be not limited to mode access networks such as Ethernet switch LAN Switch, AP and xDSL.
In network, the equipment that has provides service, and the equipment that has uses service.Provide the equipment of service to be commonly referred to as server, provide and use the equipment of service to be commonly referred to as client.Especially, the equipment that has may provide service simultaneously, also uses service, and therefore, this equipment may be client and server simultaneously.
The network classification of service is a lot, according to (the International StandardOrganization of International Standards Organization, be called for short ISO) the network layer model, in conjunction with the Ethernet and the IP technology of existing network extensive use, the network service is divided into two layers of service and service more than three layers.Two layers of service refer to the following service of data link layer, and referring to Fig. 2, service commonly used includes but not limited to Ethernet bearing point-to-point (Point-to-Point Protocol is called for short PPP) agreement (PPP over Ethernet is called for short PPPoE); Service refers to the above service of network layer more than three layers, and service commonly used includes but not limited to DHCP.
PPPoE sets up a PPP and connects by holding consultation on the net at Ethernet; Referring to Fig. 2 and Fig. 3, typical PPPoE networking process is as follows:
1, computer PC sends an initial message of PPPoE (PPPoE Active Discovery Initiation is called for short PADI) as pppoe client to the PPPoE server PS, and beginning PPPoE inserts;
2, the PPPoE server PS sends PPPoE to pppoe client message (PPPoE ActiveDiscovery Offer is called for short PADO) is provided;
3, pppoe client sends PPPoE request message (PPPoE ActiveDiscovery Request is called for short PADR) and gives the PPPoE server PS according to response;
4, the PPPoE server produces the unique sign ID (session id) of conversation procedure this time, issues pppoe client by PADS (pppoe session message);
Like this, pppoe client and PPPoE server PS have just successfully been finished the PPPoE negotiation, can provide service for subsequent P PP process.
The transition process of PPP is as follows:
1, after detecting physical link and can using, PPP will enter into establishment stage (Establish), begins to carry out LCP (Link Control Protocol is called for short LCP) negotiations process;
2, the negotiation that LCP carries out and network layer protocol is irrelevant, consult successfully after, enter optional Qualify Phase (Authenticate);
If 3 have Qualify Phase, then have only when checking by the time just can enter network layer protocol phase, if checking is not passed through, then should continue checking rather than forward the link termination phase to; After checking is passed through, enter network layer protocol (Network-Layer Protocol) stage;
4, in network layer protocol phase, the configuration of each network layer protocol is disposed in network layer protocol (Network-Layer Protocol) stage by Network Control Protocol (NCP) separately.In this stage, client can be obtained IP address, WINS information such as (Windows Name Server).After the user obtains these information, just can be with certain authority accesses network.
5, link termination phase (Terminate).PPP can stop link at any time, causes that the reason of link termination is a lot: loss of carrier, authentification failure, link-quality failure, idling cycle timer expiration or keeper close link.LCP can stop method of message by interactive link and stop link.
When link just was closed, PPP informing network layer protocol carried out cleaning work after client rolls off the production line so that they can take appropriate measures.
Referring to Fig. 4, it is the DHCP networking in the typical same subnet, comprises Dynamic Host Configuration Protocol server DS, too network switch LAN Switch and dhcp client; Under this networking situation, further referring to Fig. 5, the negotiations process of DHCP specifically comprises following step:
1, dhcp client sends a DHCP Discover (DHCP finds message) message to Dynamic Host Configuration Protocol server, beginning DHCP host configuration process;
2, Dynamic Host Configuration Protocol server sends DHCP Offer (DHCP provides message) message to dhcp client.If many Dynamic Host Configuration Protocol server are arranged on the net, each Dynamic Host Configuration Protocol server all can be responded this message;
3, dhcp client is selected a Dynamic Host Configuration Protocol server according to response, initiates DHCP Request (DHCP request message) request and gives corresponding Dynamic Host Configuration Protocol server;
4, Dynamic Host Configuration Protocol server provides the dhcp client host configuration information, issues dhcp client by DHCP Ack (DHCP response message).
At this moment, dhcp client and Dynamic Host Configuration Protocol server have completed successfully host configuration, can be follow-up work service.
Referring to Fig. 6, because dhcp client itself has had configurations such as IP address, but need obtain other host configuration from Dynamic Host Configuration Protocol server, therefore, dhcp client is carried out following step:
1, dhcp client sends a DHCP INFORM (DHCP information request message) message to Dynamic Host Configuration Protocol server, beginning DHCP host configuration process;
2, Dynamic Host Configuration Protocol server sends DHCP Ack (DHCP response message) message to dhcp client.
At this moment, dhcp client and Dynamic Host Configuration Protocol server have completed successfully host configuration, can be follow-up work service.
Referring to Fig. 7, it is for typically striding the DHCP networking of subnet, this networking is with the difference of networking shown in Figure 4: dhcp client is connected and connects DHCP relay DR with Ethernet switch LAN Switch, and this DHCP relay router DR is connected with Dynamic Host Configuration Protocol server DS by core net NET again; As follows referring to the DHCP negotiations process that Fig. 8 is concrete:
1, dhcp client sends a DHCP Discover (DHCP finds message) message to DHCP relay DR, beginning DHCP host configuration process;
2, DHCP relay is forwarded to Dynamic Host Configuration Protocol server with this message;
3, Dynamic Host Configuration Protocol server sends DHCP Offer (DHCP provides message) message to DHCP relay; If many Dynamic Host Configuration Protocol server are arranged on the net, each Dynamic Host Configuration Protocol server all can be responded this message;
4, this message of DHCP relay is forwarded to dhcp client;
5, dhcp client is selected a Dynamic Host Configuration Protocol server according to response, initiates DHCP Request (DHCP request message) request and gives DHCP relay;
6, DHCP relay is forwarded to Dynamic Host Configuration Protocol server with this message;
7, Dynamic Host Configuration Protocol server provides the client host configuration information, issues DHCP relay by DHCP Ack (DHCP response message);
8, this message of DHCP relay is forwarded to dhcp client.
At this moment, dhcp client and Dynamic Host Configuration Protocol server have completed successfully host configuration, can be follow-up work service.
Referring to Fig. 9, because dhcp client itself has had configurations such as IP address, but need obtain other host configuration, so dhcp client is carried out following step from Dynamic Host Configuration Protocol server:
1, client sends a DHCP INFORM (DHCP information request message) message to DHCP relay, beginning DHCP host configuration process;
2, DHCP relay is forwarded to Dynamic Host Configuration Protocol server with this message;
3, Dynamic Host Configuration Protocol server sends DHCP Ack (DHCP response message) message to client;
4, this message of DHCP relay is forwarded to dhcp client.
At this moment, dhcp client and Dynamic Host Configuration Protocol server have completed successfully host configuration, can be follow-up work service.
Be the process that example illustrates the network service with PPPoE and DHCP only, in fact, all network services all have own corresponding service process herein, and therefore above-mentioned example can be generalized to all network services.
In the prior art, the user can obtain the IP address by the DHCP agreement; For BAS Broadband Access Server (Broadband Access Server, be called for short BAS) equipment, because control user's access authority, so need carry out unified management to user's IP address, therefore, general BAS device interior is realized DHCP SERVER or DHCP RELAY (DHCP takes over) function.When BAS equipment is received user's DHCP message, after the validity checking of carrying out message, user's DHCP message Relay is arrived internal or external Dynamic Host Configuration Protocol server according to configuration.Therefore, have only the user successfully to obtain IP after, just can obtain the part or all of authority of network.
In the prior art, for the PPPOE dial user, can not have dhcp process, the PPPOE dialer can be set up a Microsoft Loopback Adapter on PC; This Microsoft Loopback Adapter obtains IP by the PPP process from access device, and the user also realizes by Microsoft Loopback Adapter the visit of network.
The user dials by dialer, BAS equipment arrives Qualify Phase at the ppp state machine, can give certificate server with user's account and authenticate, and obtain user's parameter information (such as the IP that distributes to the user, name server (DNS) etc.) from certificate server.Certificate server can be built-in, also can be outside autonomous device, for example: remote authentication dialing user server (RemoteAuthentication Dial In User Service is called for short RADIUS) server.If the use radius server, BAS equipment will pass to radius server to user account information by the radius protocol message.Radius server is responsible for receiving user's authentication request, finishes checking according to account information, and the required configuration information of user is returned to BAS.When state machine arrives network layer protocol phase, will give client the relevant option of network layer protocol (comprising information such as IP address).
But one of defective of prior art is: owing to reasons such as link or operating systems, some the time, though user's PC still has legal IP address, access device (BAS) thinks that the user rolls off the production line, and has deleted user's list item; In this case,, initiatively discharge the IP on the PC, initiate dhcp process then again, trigger access device and rebulid connection, otherwise the user can't accesses network for the user unless the user participates in by manual.
Two of the defective of prior art is: operator can not distribute the address for PPPOE user with existing Dynamic Host Configuration Protocol server, is difficult to accomplish unified distribution and management are carried out in reach the standard grade user's address of PPPOE dial user and DHCP.
Summary of the invention
Main purpose of the present invention is to provide the method for a kind of triggering to the IP address distribution, making access device is that the IP that user's PC has had connects, discharge original IP earlier and obtain IP again and need not the user, reduce the manual of user and participate in, accelerate networking speed from access device.
Another object of the present invention is to provide a kind of is the method for PPPOE user's distributing IP address from Dynamic Host Configuration Protocol server, makes operator insert the user's IP address unified management to PPPOE user and non-PPPOE, reduces cost.
The object of the present invention is achieved like this:
Utilize the address allocation procedure of non-DHCP message triggering to the user, specifically comprise two classes: ARP message (or IP message) triggers and utilizes the PPPOE message to trigger.
1) the ARP message triggers, and promptly triggers user's address allocation procedure by the ARP message, thereby makes the user obtain network access authority.Concrete method is: the ARP processing module is received Client-initiated ARP message, and judges user property; If managed user, and there is not the list item of User IP correspondence in local ARP list item, then trigger the connection management module and start identifying procedure, and the physical message that inserts according to the user judges whether to allow access network; If allow to insert, then, obtain specific I P for the user from Dynamic Host Configuration Protocol server by No. 50 attribute of DHCP message OPTION field, this IP is the source IP in the user's message; If successfully obtain IP, then give access privilege, otherwise, do not give access rights.
Above-mentioned triggering address allocation procedure is equally applicable to the IP message, if packet forwarding module is not found this user's forwarding information, then triggers the connection management module, and adopts in the same way and to be user's distributing IP, connects.
In order to guarantee to discharge described IP address behind the user offline,,, and issue Dynamic Host Configuration Protocol server then by equipment structure DHCP RELEASE message if the user does not initiatively initiate the DHCPRELEASE message.
2) the PPPOE message triggers, and promptly inserts dhcp process in the verification process of PPP, and the dhcp client built-in by BAS obtains the address from DHCP; Concrete method is: the user initiates the PPPOE process, enter Qualify Phase through behind the LCP, in the process that checking is authorized, seek the address, carry parameters such as Dynamic Host Configuration Protocol server and gateway to the address administration module, the address administration module is then according to these information, and the notice dhcp client is initiated dhcp process; After dhcp client successfully obtains IP, the IP address and other network parameters that obtain are responded to the address administration module; Arrive the PPP module through modules such as connection managements again, when the PPP process arrived network layer protocol phase, the user will obtain parameter informations such as IP.
Above-mentioned dhcp process also can be postponed till network layer protocol phase and carries out, and this process need realizes that independently the dhcp client module finishes.
Equally, behind user's off-line, need to construct DHCP RELEASE message and issue DHCPSERVER.
The process that the present invention makes the user obtain the IP address does not need the participation of subscription client, and client has just been sent the ARP message, and has obtained response, just can accesses network; Triggering by ARP message (or IP message) is user's distributing IP, and quick-recovery user's connection has soon increased user satisfaction, has reduced operator's maintenance cost simultaneously.For the PPPOE dial user, operator can use the more extensive and easy to operate Dynamic Host Configuration Protocol server of application to be user's distributing IP address, broken through by radius server is the restriction of PPPOE user's distributing IP address, under the situation of using local authentication (verification process is realized in the module of BAS device interior), PPPOE user can use public Dynamic Host Configuration Protocol server with non-PPPOE user, and need not independent management, reduced operation cost, convenient management.
Description of drawings
Fig. 1 is local area network building schematic diagram commonly used;
Fig. 2 is typical PPPoE networking schematic diagram;
Fig. 3 consults schematic flow sheet for PPPoE;
Fig. 4 is the DHCP service networking schematic diagram in the typical same subnet;
Fig. 5 is that the DHCP in the same subnet consults one of flow chart;
Fig. 6 is that the DHCP in the same subnet consults two of flow chart;
Fig. 7 for typically stride subnet DHCP service networking schematic diagram;
Fig. 8 consults flow process 1 for the DHCP that typically strides subnet;
Fig. 9 consults flow process 2 for the DHCP that typically strides subnet;
Figure 10 triggers address acquisition process flow chart for ARP message of the present invention;
Figure 11 is an ARP message address dispose procedure flow chart of the present invention;
Figure 12 triggers address acquisition process flow chart for PPPoE message of the present invention;
Figure 13 is a PPPoE of the present invention address dispose procedure flow chart.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing and specific embodiment:
The present invention utilizes the address allocation procedure of non-DHCP message triggering to the user, and comprise two classes: ARP message (or IP message) triggers and the PPPOE message triggers.
1) the ARP message triggers
Referring to Figure 10,11, the ARP message triggers, and has promptly obtained the dynamic subscriber of address for those, for some reason, on the network equipment, there is not this user's information, it is generally acknowledged that such user is not by authentication, the IP that is obtained is illegal, does not have the authority of accesses network.And the IP address of user's equipment (being generally PC) does not discharge, so user's equipment can be directly to the destination device transmitting IP packet, if there is not the ARP table of gateway in the arp cache of subscriber equipment this locality, under the situation of the equipment of visiting the non-same network segment, subscriber equipment can send the MAC Address that the ARP message is found out gateway.On network organization, BAS equipment is exactly the gateway device of user's equipment.If BAS does not handle the ARP message, or respond the arp response message simply, and do not trigger user's last line process, the user can't obtain network access authority forever so.
Under the superincumbent situation, the present invention can realize triggering by the ARP message user's address allocation procedure, thereby makes the user obtain network access authority.Concrete flow process is as follows:
ARP processing module among the step 10:BAS is received Client-initiated ARP message, judges user property;
Step 11: if described user is managed user, and the list item that does not have this User IP correspondence in the list item of ARP module, the ARP module is sent IP, the MAC notification of information of carrying the user to the connection management module, by the checking of connection management module notice, authorization and accounting module (Authentication, Authorization, and Accounting is called for short AAA) start authentication to the user; If there has been the list item of this User IP correspondence in the ARP module, the identifying procedure of not notifying the connection management module to carry out the user just simply abandons the ARP message or the ARP message is responded;
Step 12: the module that connection management module notice is finished the dhcp client function is sought source IP address in the user ARP message for the user to Dynamic Host Configuration Protocol server; Dhcp client functional module structure DHCP request message, and in No. 50 attribute of message OPTION field, insert described IP address, and obtain specific I P for this user from Dynamic Host Configuration Protocol server;
Step 13: if the dhcp client functional module is not the source IP address the user ARP message from the IP address that Dynamic Host Configuration Protocol server obtains, the dhcp client functional module is sent out to Dynamic Host Configuration Protocol server and is discharged message recovery IP, notifies the failure of connection management module applied address simultaneously; Execution in step 15;
Step 14: if the IP that the dhcp client functional module is obtained from Dynamic Host Configuration Protocol server then notifies the connection management module's address to obtain success with the source IP address unanimity the user ARP message;
Step 15: described IP obtains success and then allows this customer access network; Otherwise do not allow this customer access network.
The process of obtaining the IP address to the user does not need the participation of subscription client, and client has just been sent the ARP message, and has obtained response, just can accesses network.If BAS does not provide this function, the user has only the manual earlier IP (by DHCP RELEASE message) that discharges client computer, just can reach the standard grade by dhcp process again.
Referring to Figure 11, for address after guaranteeing user offline discharges, if the user does not initiatively initiate the DHCPRELEASE message, construct DHCP RELEASE message by equipment and issue Dynamic Host Configuration Protocol server, specifically be to construct and send DHCP RELEASE message in the present embodiment by the connection management module.
Refer again to Figure 10,11, trigger address allocation procedure, be equally applicable to the IP message,, trigger the connection management module, adopt and be in the same way to connect user's distributing IP if do not find this user's forwarding information at packet forwarding module by the ARP message.
Concrete execution in step comprises:
Message forwarding capability module in the step 20:BAS equipment receives Client-initiated IP message, searches user's forwarding information;
Step 21: if do not find this user's forwarding information, then message forwarding capability module is sent the authentication notification of startup to the user to the connection management module, carries user's IP address and MAC information in this notice at least; If the discovery forwarding information then carries out message forwarding according to this forwarding information;
Step 22: the module that connection management module notice is finished the dhcp client function is sought source IP address in the user ARP message for the user to Dynamic Host Configuration Protocol server; Dhcp client functional module structure DHCP request message, and in No. 50 attribute of message OPTION field, insert described IP address, and obtain specific I P for this user from Dynamic Host Configuration Protocol server;
Step 23: if the dhcp client functional module is not the source IP address the user ARP message from the IP address that Dynamic Host Configuration Protocol server obtains, the dhcp client functional module is sent out to Dynamic Host Configuration Protocol server and is discharged message recovery IP, notifies the failure of connection management module applied address simultaneously; Execution in step 25;
Step 24: if the IP that the dhcp client functional module is obtained from Dynamic Host Configuration Protocol server then notifies the connection management module's address to obtain success with the source IP address unanimity the user ARP message;
Step 25: described IP obtains success and then allows this customer access network; Otherwise do not allow this customer access network.
2) the PPPOE message triggers the address acquisition process
The PPPOE dialing is present comparatively popular access way.Its address obtains in network layer protocol phase (NCP), and obtaining means generally is to specify by RADIUS SERVER, or distributes from local pool, does not have dhcp process.
Referring to Figure 12,13, the present invention inserts dhcp process in the verification process of PPP, and the dhcp client built-in by BAS obtains the address from DHCP.Flow process is as follows: the user initiates the PPPOE process, through behind the LCP, enter Qualify Phase, in the process that checking is authorized, seek the address to the address administration module, carry parameters such as Dynamic Host Configuration Protocol server and gateway, the address administration module is according to these information, and the notice dhcp client is initiated dhcp process.Dynamic Host Configuration Protocol server can be device interior (certain software module that refers to the BAS device interior) also can be other network Dynamic Host Configuration Protocol server equipment, even can by through Relay to other networks (i.e. DHCP message to receiving, adopt the method for replacing out of Memory in purpose IP and the message, the DHCP message is redefined specific Dynamic Host Configuration Protocol server), after dhcp client successfully obtains IP, the IP address and other network parameters that obtain are responded to address administration.Arrive the PPP module through modules such as connection managements again, when the PPP process arrived network layer protocol phase, the user will obtain parameter informations such as IP.
Concrete execution in step comprises:
Step 30: the user initiates the PPPOE process, enters Qualify Phase through behind the LCP, and the address administration module in BAS equipment is sent the request of seeking the address in the process that checking is authorized, and carries the relevant parameter of Dynamic Host Configuration Protocol server and gateway in this request at least;
Step 31: the address administration module is according to the relevant parameter of Dynamic Host Configuration Protocol server and gateway, and the notice dhcp client is initiated dhcp process;
After step 32:DHCP client is successfully obtained IP, the IP address that obtains and the parameter of other networks are responded to the address administration module;
Step 33: the connection management module will be responded to the PPP module the BAS equipment from IP address and other network parameter information that the address administration module is obtained, and when the PPP process arrived network layer protocol phase, the user can obtain the IP parameter information.
Dhcp process recited above is to carry out in network layer protocol phase by the independent module of dhcp client that realizes, and, described Dynamic Host Configuration Protocol server can be the Dynamic Host Configuration Protocol server of inside or external network, or is taken over (relay) Dynamic Host Configuration Protocol server to other networks.
Certainly, dhcp process also can be postponed till network layer protocol phase and carries out, and this is relevant with concrete design, but all needs the module of a relatively independent realization dhcp client to finish dhcp process.Behind user's off-line, the same with above-mentioned method, all to construct DHCP RELEASE message and issue Dynamic Host Configuration Protocol server.
It should be noted that at last: above embodiment only in order to the explanation the present invention and and unrestricted technical scheme described in the invention; Therefore, although this specification has been described in detail the present invention with reference to each above-mentioned embodiment,, those of ordinary skill in the art should be appreciated that still and can make amendment or be equal to replacement the present invention; And all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.

Claims (7)

1, a kind of method that IP address is distributed that triggers, it is characterized in that: BAS equipment is analyzed user's non-DHCP message, and triggers the allocation process of DHCP service end to IP address according to analysis result.
2, triggering according to claim 1 is to the method for IP address distribution, and it is characterized in that: described user's message is the ARP message, and concrete triggering is handled and comprised:
ARP processing module among the step 10:BAS is responsible for receiving Client-initiated ARP message, and judges attribute of user;
Step 11: if described user is managed user, and the list item that does not have this User IP correspondence in the list item of ARP module, the ARP module is sent IP, the MAC notification of information of carrying the user to the connection management module, by the authentication of connection management module notice AAA module startup to the user; Otherwise the identifying procedure of not notifying the connection management module to carry out the user just simply abandons the ARP message or the ARP message is responded;
Step 12: the module that connection management module notice is finished the dhcp client function is sought source IP address in the user ARP message for the user to Dynamic Host Configuration Protocol server; Dhcp client functional module structure DHCP request message, and in No. 50 attribute of message OPTION field, insert described IP address, and obtain specific I P for this user from Dynamic Host Configuration Protocol server;
Step 13: if the dhcp client functional module is not the source IP address the user ARP message from the IP address that Dynamic Host Configuration Protocol server obtains, the dhcp client functional module is sent out to Dynamic Host Configuration Protocol server and is discharged message recovery IP, notifies the failure of connection management module applied address simultaneously; Execution in step 15;
Step 14: if the IP that the dhcp client functional module is obtained from Dynamic Host Configuration Protocol server then notifies the connection management module's address to obtain success with the source IP address unanimity the user ARP message;
Step 15: described IP obtains success and then allows this customer access network; Otherwise do not allow this customer access network.
3, triggering according to claim 1 is to the method for IP address distribution, and it is characterized in that: described user's message is the IP message, and concrete triggering is handled and comprised:
Message forwarding capability module in the step 20:BAS equipment receives Client-initiated IP message, searches user's forwarding information;
Step 21: if do not find this user's forwarding information, then message forwarding capability module is sent the authentication notification of startup to the user to the connection management module, carries user's IP address and MAC information in this notice at least; If the discovery forwarding information then carries out message forwarding according to this forwarding information;
Step 22: the module that connection management module notice is finished the dhcp client function is sought source IP address in the User IP message for the user to Dynamic Host Configuration Protocol server; Dhcp client functional module structure DHCP request message, and in No. 50 attribute of message OPTION field, insert described IP address, and obtain specific I P for this user from Dynamic Host Configuration Protocol server;
Step 23: if the dhcp client functional module is not the source IP address the User IP message from the IP address that Dynamic Host Configuration Protocol server obtains, the dhcp client functional module is sent out to Dynamic Host Configuration Protocol server and is discharged message recovery IP, notifies the failure of connection management module applied address simultaneously; Execution in step 25;
Step 24: if the IP that the dhcp client functional module is obtained from Dynamic Host Configuration Protocol server then notifies the connection management module's address to obtain success with 2P address, the source unanimity the user ARP message;
Step 25: described IP obtains success and then allows this customer access network; Otherwise do not allow this customer access network.
4, triggering according to claim 1 is to the method for IP address distribution, and it is characterized in that: for the PPPOE message that the user sends, the dhcp client built-in by BAS obtains the address from DHCP; Specifically comprise:
Step 30: the user initiates the PPPOE process, enters Qualify Phase through behind the LCP, and the address administration module in BAS equipment is sent the request of seeking the address in the process that checking is authorized, and carries the relevant parameter of Dynamic Host Configuration Protocol server and gateway in this request at least;
Step 31: the address administration module is according to the relevant parameter of Dynamic Host Configuration Protocol server and gateway, and the notice dhcp client is initiated dhcp process;
After step 32:DHCP client is successfully obtained IP, the IP address that obtains and the parameter of other networks are responded to the address administration module;
Step 33: the connection management module will be responded to the PPP module the BAS equipment from IP address and other network parameter information that the address administration module is obtained, and when the PPP process arrived network layer protocol phase, the user can obtain the IP parameter information.
5, triggering according to claim 4 is characterized in that the method that IP address distributes: described dhcp process is carried out in network layer protocol phase by the independent module of dhcp client that realizes.
6, triggering according to claim 4 is to the method for IP address distribution, and it is characterized in that: described Dynamic Host Configuration Protocol server is the Dynamic Host Configuration Protocol server of inside or external network, or for being taken over the Dynamic Host Configuration Protocol server of other networks.
7, the method for IP address being distributed according to claim 2 or 3 or 4 described triggerings, it is characterized in that: described method also further comprises: behind the user offline, if initiatively initiating DHCP RELEASE message, the user do not discharge the address, the module structure DHCP RELEASE message of realizing the dhcp client function in the BAS equipment sends to Dynamic Host Configuration Protocol server, guarantees that the address discharges.
CNB031783090A 2003-07-07 2003-07-07 Method for triggering user IP address assignment Expired - Lifetime CN100370768C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031783090A CN100370768C (en) 2003-07-07 2003-07-07 Method for triggering user IP address assignment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031783090A CN100370768C (en) 2003-07-07 2003-07-07 Method for triggering user IP address assignment

Publications (2)

Publication Number Publication Date
CN1567887A true CN1567887A (en) 2005-01-19
CN100370768C CN100370768C (en) 2008-02-20

Family

ID=34472736

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031783090A Expired - Lifetime CN100370768C (en) 2003-07-07 2003-07-07 Method for triggering user IP address assignment

Country Status (1)

Country Link
CN (1) CN100370768C (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100442735C (en) * 2005-06-30 2008-12-10 华为技术有限公司 Dynamic configuration insertion terminal realizing method
CN101079887B (en) * 2006-05-22 2010-09-29 株式会社日立制作所 Bag transmitting device, bag transmitting system and bag transmitting method
CN101312415B (en) * 2007-05-22 2011-01-26 晶睿通讯股份有限公司 Method for analyzing network circumstance
CN101453529B (en) * 2007-11-30 2011-03-09 数位联合电信股份有限公司 Method and system for automatic data transmission for tuning dialing rule
CN101409689B (en) * 2008-11-25 2011-05-11 清华大学 Method for exchanging internet address
CN101312416B (en) * 2007-05-22 2011-05-11 晶睿通讯股份有限公司 Method and system for wireless network apparatus connection
CN101431428B (en) * 2007-11-09 2011-07-27 中国电信股份有限公司 Security monitoring service recovery method and system
CN102487396A (en) * 2010-12-02 2012-06-06 中兴通讯股份有限公司 User position determining method and system
US8812691B2 (en) 2006-02-17 2014-08-19 Huawei Technologies Co., Ltd. Method for binding an address of a user terminal in an access equipment
CN107809495A (en) * 2016-09-09 2018-03-16 华为技术有限公司 Address management method and device
CN111447294A (en) * 2020-02-29 2020-07-24 新华三信息安全技术有限公司 Message forwarding method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1123154C (en) * 1996-12-09 2003-10-01 摩托罗拉公司 System, device and method for routine selection dhcp configuration agreement packets
GB2333670B (en) * 1998-01-19 2003-02-12 Ericsson Telefon Ab L M Address allocation
US6393484B1 (en) * 1999-04-12 2002-05-21 International Business Machines Corp. System and method for controlled access to shared-medium public and semi-public internet protocol (IP) networks
GB0106919D0 (en) * 2001-03-20 2001-05-09 Marconi Comm Ltd Access networks

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100442735C (en) * 2005-06-30 2008-12-10 华为技术有限公司 Dynamic configuration insertion terminal realizing method
US8812691B2 (en) 2006-02-17 2014-08-19 Huawei Technologies Co., Ltd. Method for binding an address of a user terminal in an access equipment
CN101079887B (en) * 2006-05-22 2010-09-29 株式会社日立制作所 Bag transmitting device, bag transmitting system and bag transmitting method
CN101312415B (en) * 2007-05-22 2011-01-26 晶睿通讯股份有限公司 Method for analyzing network circumstance
CN101312416B (en) * 2007-05-22 2011-05-11 晶睿通讯股份有限公司 Method and system for wireless network apparatus connection
CN101431428B (en) * 2007-11-09 2011-07-27 中国电信股份有限公司 Security monitoring service recovery method and system
CN101453529B (en) * 2007-11-30 2011-03-09 数位联合电信股份有限公司 Method and system for automatic data transmission for tuning dialing rule
CN101409689B (en) * 2008-11-25 2011-05-11 清华大学 Method for exchanging internet address
CN102487396A (en) * 2010-12-02 2012-06-06 中兴通讯股份有限公司 User position determining method and system
CN102487396B (en) * 2010-12-02 2015-04-01 中兴通讯股份有限公司 User position determining method and system
CN107809495A (en) * 2016-09-09 2018-03-16 华为技术有限公司 Address management method and device
US10893019B2 (en) 2016-09-09 2021-01-12 Huawei Technologies Co., Ltd. Address management method and apparatus
CN107809495B (en) * 2016-09-09 2021-06-22 华为技术有限公司 Address management method and device
CN111447294A (en) * 2020-02-29 2020-07-24 新华三信息安全技术有限公司 Message forwarding method and device

Also Published As

Publication number Publication date
CN100370768C (en) 2008-02-20

Similar Documents

Publication Publication Date Title
EP1876754B1 (en) Method system and server for implementing dhcp address security allocation
CN1213567C (en) Concentrated network equipment managing method
CN1495631A (en) Internetwork protocol address distribution equipment and method
CN1553691A (en) High-capacity wide-band inserting method and system
CN101043331A (en) System and method for distributing address for network equipment
CN1889484A (en) Identification insertion system and identification inserting method thereof
US20110202670A1 (en) Method, device and system for identifying ip session
CN1722661A (en) Verification System, network line concentrator, authentication method and authentication procedure
CN1713629A (en) Realization of user login name and IP address binding
EP2838242B9 (en) Method and apparatus for preventing network-side media access control address from being counterfeited
CN1404265A (en) Dynamic main machine allocation protocal electronic deception with modulator-demodulator unit
CN1805396A (en) Method for implementing network access through broadband router
CN1567887A (en) Method for triggering user IP address assignment
CN1992637A (en) Wimax network control and management system and method
CN1496641A (en) Method for connection of data terminal devices to data network
CN100346601C (en) Access server with function of collecting communication statistics information
CN1835514A (en) Management method of broadband access of DHCP customer's terminal mode
CN1744597A (en) Method for host use obtaining IP address parameters in IPV6 network
CN1848799A (en) Method for realizing virtual special network
CN1310410A (en) service login
CN1228943C (en) User authentication management method in Ethernet broadband access system
CN1738269A (en) Method to allocate protocol relay address table and server address pool for synchronization dynamic host machine
CN1248455C (en) Customer access management system for wideband network
CN100344094C (en) Method for realizing authority charging to multi address user in IPv6 network
CN1798024A (en) Method and device for implementing multicast authentication and fee charging

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
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20080220