CN1549546B - Apparatus and method for realizing PPPOE user dynamic obtaining IP address utilizing DHCP protocol - Google Patents

Apparatus and method for realizing PPPOE user dynamic obtaining IP address utilizing DHCP protocol Download PDF

Info

Publication number
CN1549546B
CN1549546B CN 03113446 CN03113446A CN1549546B CN 1549546 B CN1549546 B CN 1549546B CN 03113446 CN03113446 CN 03113446 CN 03113446 A CN03113446 A CN 03113446A CN 1549546 B CN1549546 B CN 1549546B
Authority
CN
China
Prior art keywords
dhcp
pppoe
pseudo
module
user
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.)
Expired - Fee Related
Application number
CN 03113446
Other languages
Chinese (zh)
Other versions
CN1549546A (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.)
Global Innovation Polymerization LLC
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 03113446 priority Critical patent/CN1549546B/en
Publication of CN1549546A publication Critical patent/CN1549546A/en
Application granted granted Critical
Publication of CN1549546B publication Critical patent/CN1549546B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The present invention uses a false DHCP CLIENT entity as a distribution agent for configurating attribute for all PPPOE user networks in a creative way on the base of the prior standard PPPOE service in a broadband access network equipment, coordinately uses a DHCP RELAY agent entity as an agent for a user interface at the corresponding user side, thereby configurating attribute for acquiring the needed network from exterior DHCP SERVER for all the PPPOE users. A false DHCP CLIENT end stationed in the broadband access network equipment uses a standard DHCP protocol through the network interface or a module interface to interact with the DHCP RELAY entity. The DHCP RELAY entity then uses the standard DHCP protocol to dynamically acquire IP addresses for the broadband accessed PPPOE users from the exterior DHCP SERVER. The invention does not need to respectively perform independent configuration, management for an IP address pool of each broadband accessed server, reduces the management load; can track the user information of the PPPOE service, facilitate to perform statistics, monitor and manage the used dynamic IP address, the usable dynamic IP address or the like of the PPPOE user service.

Description

Use the DHCP agreement to realize that PPPOE user dynamically obtains the device and method of IP address
Technical field
The present invention relates in ethernet environment, use PPPOE the user to be carried out broadband access network devices such as the gateway device of Operational Visit control or BAS Broadband Access Server, specifically be a kind of outside DHCP SERVER that relates to by these network equipments configuration, realize that PPPOE user dynamically obtains the device and method of IP address.Relating in particular at ISP provides for the user in the employed BAS Broadband Access Server of broadband access INTERNET, when using PPPOE as authentication business, realizes that by outside DHCP SERVER the user dynamically obtains the device and method of IP address.
Background technology
Along with the development of broadband network technology, broadband access network device emerge in multitudes such as BAS Broadband Access Server (AS), broadband access router.In these network equipments, the user who has modes such as PPPOE, WEBPORTAL mostly inserts.Wherein, in the broadband user in the PPPOE mode inserts, need the butt joint access customer to carry out the distribution and the management of IP address.In present implementation method, these broadband network access devices all pass through the mode of configure user address pool thereon, distribute and management PPPOE user's IP address.
Along with the increase of the access customer volume of ISP, broadband access network will constantly enlarge, and broadband access network equipment also will increase rapidly, will bring the increase to the management work load of broadband access network equipment thus.In this case, distribute and manage the PPPOE user's IP address, will bring following drawback by configure user address pool on broadband network access device:
1. be the IP address management mode in PPPOE user's configuration of IP address pond on each broadband access network equipment, will cause the increase of network management burden because of the increase of broadband access network equipment.
2. this is the IP address management mode in PPPOE user's configuration of IP address pond on each broadband access network equipment, will bring the use of IP address, monitoring and managerial inconvenience because of the dispersiveness of network access equipment.
3. when broadband network equipment supports to utilize outside DHCP SERVER that DHCP user is distributed dynamic IP addressing professional simultaneously, also will use outside DHCP SERVER to distribute the address because of DHCP user, PPPOE user utilizes the situation of local ip pool distributing IP address, brings managerial complexity.
Summary of the invention
In order to reduce work load to the management of broadband access network IP address of equipment pond, centralized monitor and management to PPPOE service-user dynamic IP addressing are provided, DHCP related service and PPPOE business are carried out in unified IP address of using outside DHCPSERVER to provide.
The invention provides a kind of DHCP of use agreement and realize that PPPOE user dynamically obtains the device and method of IP address.Use local IPPOOL to be the following defectives that network parameter was brought such as PPPOE user's distributing IP address in network access equipments such as BAS Broadband Access Server (AS), broadband access router to alleviate ISP operator etc.: (1) needs to support the IP address pool of the broadband network access device of PPPOE business independently to dispose, manage to each respectively, has increased administrative burden; (2) be unfavorable for PPPOE service-user information is followed the tracks of, be unfavorable for the PPPOE customer service is implemented statistics, monitoring and management with information such as dynamic IP addressing, available dynamic IP addressings; (3) be unfavorable for when using outside DHCP SERVER as network configuration parameters such as DHCP CLIENT distributing user IP address, netmask, default gateway, name servers, the PPPOE business can only be used the IP POOL that self disposes, and is unfavorable for unified DHCP related service and the PPPOE business that needs to provide for the user network configuration parameters simultaneously.
The present invention is by resident pseudo-DHCP CLIENT and DHCP RELAY in broadband access network devices such as wideband network access server (AS), broadband access router, thereby realizes using the DHCP agreement dynamically to obtain the IP address from the DHCP SERVER of outside as the PPPOE user of broadband access.
Core of the present invention is: by at wideband network access server (AS), have on the basis of standard P PPOE business in the broadband access network devices such as broadband access router, the pseudo-DHCP CLIENT of creationary use entity is as the assignment agent of network configuration attributes such as all PPPOE user's IP address, the collaborative DHCP RELAY relay agent entity that uses is acted on behalf of the user interface of corresponding PPPOE user side, thereby obtains the required IP address of user for all PPPOE users from outside DHCP SERVER, netmask, default gateway, network configuration attributes such as name server.Reside in pseudo-DHCP CLIENT client in the broadband access network equipment and use DHCP agreement and the DHCP RELAY relay entity of standard mutual by network interface or module interface, it is that the PPPOE user of broadband access dynamically obtains the IP address from the DHCP SERVER of outside that DHCP RELAY relay entity re-uses standard DHCP agreement.
The present invention is achieved in that
A kind of DHCP of use agreement realizes that PPPOE user dynamically obtains the device of IP address, comprises PPPOE business module entity, pseudo-DHCP CLIENT module entity, DHCP RELAY module entity.Module composition and module interactive interface are as shown in Figure 1.
The function of PPPOE business module entity is achieved as follows described:
PPPOE business module entity is externally realized mutual with the standard agreement of PPPOE client by network interface, finish functions such as authentication to PPPOE user, access.From then on see on the interface that PPPOE business module entity is realized the PPPOE authentication access service of standard.
PPPOE business module entity specific function in the present invention is as described below:
(1) PPPOE business module entity is after receiving the event request of obtaining network configuration attributes of PPPOE client, internally the network configuration attributes callback interface that obtains that provides by pseudo-DHCP CLIENT module is realized mutual with pseudo-DHCP CLIENT, the PPPOE user's that will obtain from the PPPOE client association attributes, comprise: user PPPOE session identification (session id), the user's MAC address sign, attribute informations such as PPPOE user name, import pseudo-DHCP CLIENT module into, and ask the IP address that pseudo-DHCP CLIENT module is obtained to be needed, netmask, default gateway, network configuration attributes such as name server.
(2) because the PPPOE business module in the process of obtaining network configuration attributes such as IP address, netmask, default gateway, name server alternately that realizes with pseudo-DHCP CLIENT, needs mutual with the asynchronous network incident of other modules through pseudo-DHCP CLIENT.Also owing to relate to user's access of supporting big flow, multi-user, therefore, the PPPOE business module need adopt the asynchronous event processing mode in the reciprocal process with pseudo-DHCPCLIENT module.
(3) because the PPPOE business module adopts in the reciprocal process with pseudo-DHCP CLIENT module is the asynchronous process mode.Therefore, the PPPOE module need provide request wait timeout measuring ability in the process of the pseudo-DHCP CLIENT module assignment network configuration parameters of request.Behind the request wait timeout timer expiry of network configuration parameters, the PPPOE business module should notify pseudo-DHCPCLIENT module to handle accordingly.
(4) because the PPPOE business module adopts in the reciprocal process with pseudo-DHCP CLIENT module is the asynchronous process mode.Therefore, the PPPOE business module should provide corresponding network configuration parameters to be allocated successfully and distribute the asynchronous readjustment notification interface of failure.Be convenient to pseudo-DHCP CLIENT after network configuration attributes success such as request distributing IP address, netmask, default gateway, name server or failure, notice PPPOE business module is handled accordingly.Under the situation of successfully obtaining network configuration attributes, pseudo-DHCP CLIENT module need be imported the network configuration attributes that obtains into the PPPOE business module.
(5) PPPOE business module entity is after the request of rolling off the production line of receiving the PPPOE client, internally need notify pseudo-DHCP CLIENT module by the releasing network configuration attribute callback interface that pseudo-DHCP CLIENT module provides, the PPPOE user's that will obtain from the PPPOE client association attributes and the network configuration attributes obtained from pseudo-DHCP CLIENT simultaneously, import pseudo-DHCP CLIENT module into, discharge processing so that pseudo-DHCP CLIENT module is carried out corresponding network configuration attributes.
The realization function of pseudo-DHCP CLIENT module entity is as described below:
The basic function of pseudo-DHCP CLIENT module entity is according to obtaining network configuration attributes such as IP address, netmask, default gateway, name server for all PPPOE customer service modules.Its equipment of having used the resident DHCP of having CLIENT carries out the required IP address of network service to DHCP SERVER acquisition request oneself, netmask, default gateway, the function of network configuration attributes such as name server, expanded the use notion of DHCP CLIENT, its objective is association attributes according to the collected PPPOE user of PPPOE business module entity, comprise: user PPPOE session identification (session id), the user's MAC address sign, attribute informations such as PPPOE user name, construct DHCP protocol network packet corresponding to specific PPPOE user, and it is mutual with the DHCP RELAY that resides in this equipment, DHCP RELAY is mutual with outside DHCP SERVER by network interface again, thereby finally the DCHP SERVER from the outside obtains required IP address, netmask, default gateway, network configuration attributes such as name server, and return the PPPOE business module.
The network configuration attributes request callback interface that provides by pseudo-DHCP CLIENT module in PPPOE customer service module drives pseudo-DHCP CLIENT module initiation DHCPDISCOVER protocol network packet, otherwise, obtain requesting users IP address up to pseudo-DHCP CLIENT by DHCP RELAY, netmask, default gateway, after the network configuration attributes such as name server, the successful notice callback interface notice PPPOE business module of the request network configuration parameters that provides by PPPOE customer service module, and import the IP address that obtains into, netmask, default gateway, network configuration attributes such as name server.
Pseudo-DHCP CLIENT module entity specific function in the present invention is as described below:
(1) pseudo-DHCP CLIENT module entity is by providing network configuration attributes request callback interface to PPPOE business module entity, be convenient to the PPPOE business module and initiate the incident that request distributes network configuration attributes such as required IP address, netmask, default gateway, name server to pseudo-DHCP CLIENT module entity, and transmit PPPOE user's association attributes, comprising: attribute informations such as user PPPOE session identification (session id), user's MAC address sign, PPPOE user name.
(2) pseudo-DHCP CLIENT module entity receives that the request that the PPPOE business module is initiated distributes required IP address, netmask, default gateway, after the incident of network configuration attributes such as name server, association attributes according to the PPPOE user of importing into, as: user PPPOE session identification (session id), the user's MAC address sign, attribute informations such as PPPOE user name, create this PPPOE user's DHCP interactive sessions data field, and construct the corresponding DHCPDISCOVER protocol network packet that can identify this specific PPPOE user, and initiate to ask to rent the IP address to outside DHCP SERVER by driving DHCP RELAY, netmask, default gateway, the interactive sessions of network configuration attributes such as name server.
(3) after pseudo-DHCP CLIENT module is initiated the session of request network configuration attributes to DHCP RELAY module, according to PPPOE user's association attributes and the relevant configuration attribute that from DHCP protocol conversation process, obtains, drive the configuration parameter queued session process of pseudo-DHCP CLINET and DHCP REALY by pseudo-DHCP CLIENT.After the overtime or pseudo-DHCP CLIENT of conversation procedure module is received the DHCP protocol events of DHCPDECLINE, the notice callback interface that failure is carried out in the request that pseudo-DHCP CLIENT provides by PPPOE customer service module sends the asynchronous event of asking failure, triggers the PPPOE business and asks failure to be handled accordingly;
(4) otherwise, after pseudo-DHCP CLIENT module is received the DHCPACK protocol events of obtaining the corresponding network configuration parameter, the notice callback interface that the request that pseudo-DHCP CLIENT provides by PPPOE customer service module runs succeeded sends the successful asynchronous notifications incident of request, trigger the PPPOE business and ask accordingly successfully to handle, network configuration attributes such as the IP address that notice transmission is obtained, netmask, default gateway, name server.
(5) in order to guarantee PPPOE user's proper network communication, pseudo-DHCP CLIENT module must be in PPPOE service conversation process, the validity of network configuration attributes such as the IP address that assurance is obtained, netmask, default gateway, name server.Therefore, pseudo-DHCP CLINET must use dhcp state machine timer according to the parameters of returning in the DHCP protocol interaction such as the time of re-renting, and then initiates the request of re-renting to DHCP RELAY in the time of re-renting.And re-renting under the situation of failure, carry out the asynchronous event that failure is asked in the notice callback interface transmission of failing by the request that PPPOE customer service module provides, trigger the PPPOE business and ask the processing of failing accordingly.
(6) in order to make DHCP RELAY module can discern pseudo-DHCP CLIENT user and standard DHCP CLIENT user, so that the protocol data bag that pseudo-DHCP CLIENT sends is handled accordingly (after receiving the response request of outside DHCP SERVER in DHCP RELAY module, should be mutual with pseudo-DHCP CLIENT module, still mutual with outside DHCP CLIENT).Need in the DHCP protocol package that pseudo-DHCPCLIENT sends, stamp pseudo-DHCP CLIENT user's sign.
(7) user ID of the pseudo-DHCP CLIENT that in the DHCP of its transmission protocol package, beaten of pseudo-DHCP CLIENT, can squeeze into mark in the following part or all of DHCP protocol option territory and identify pseudo-DHCP CLIENT user by using, these DHCP option territories comprise: chaddr, Client-identifier, Vendor class identifier, hostname etc.The mark that identifies pseudo-DHCP CLIENT user is determined as required by the designer, as long as pseudo-DHCP CLIENT User Recognition can be come out.
The realization function of DHCP RELAY module entity is as described below:
DHCP RELAY relay agent entity is mainly realized the forwarding capability of the DHCP agreement request/response events network packet of standard.Realize all PPPOE users are obtained from outside DHCP SERVER the function of network configuration attributes such as the required IP address of user, netmask, default gateway, name server for collaborative pseudo-DHCP CLIENT module.Need the network interface of DHCP RELAY relay agent entity agency, thereby obtain the network configuration attributes such as IP address, netmask, default gateway, name server of this user interface place network segment of required coupling for PPPOE user corresponding to the PPPOE user side.
DHCP RELAY relay agent entity specific function in the present invention is as described below:
(1) dynamically obtain the IP address in order to cooperate pseudo-DHCP CLIENT to be embodied as PPPOE user, DHCP RELAY needs and can identify pseudo-DHCP CLIENT user from the DHCP protocol data bag that receives.This can squeeze into mark according to pseudo-DHCP CLIENT and identify pseudo-DHCP CLIENT user in the DHCP protocol option, the DHCP option territory of portability mark comprises: chaddr, Client-identifier, Vendor class identifier, hostname etc.
(2) DHCP RELAY is when realizing the function of basic DHCP RELAY, need according to user's type whether pseudo-DHCP CLIENT user determine whether needs and pseudo-DHCP CLIENT module entity alternately.
(3) to pseudo-DHCP CLIENT user type, DHCP RELAY module entity and pseudo-DHCPCLIENT module inter-entity can realize mutual by the calling interface dual mode of network interface or intermodule.
(4) under the network interface implementation, pseudo-DHCP CLIENT intercepts on the standard port number 68 of DHCP CLIENT, and DHCP RELAY intercepts on the standard port number 67 of DHCP SERVER; When pseudo-DHCP CLIENT when DHCP RELAY sends DHCP protocol data bag, with the IP address of the network interface that uses local loopback address 127.0.0.1 or DHCP RELAY to be acted on behalf of as target ip address, standard port number 67 sends network packet by ICP/IP protocol to DHCPRELAY as target port.Similarly, when DHCP RELAY when pseudo-DHCP CLIENT sends DHCP protocol data bag, to use the IP address of network interface of local loopback address 127.0.0.1 or pseudo-DHCP CLIENT as target ip address, standard port number 68 sends network packet by ICP/IP protocol to pseudo-DHCP CLIENT as target port.
(5) under the calling interface mode of intermodule, pseudo-DHCP CLIENT sends DHCP protocol data bag by the module invokes interface that DHCP RELAY module entity provides to DHCP RELAY; Equally, DHCP RELAY sends network packet by the module invokes interface that pseudo-DHCP CLIENT module entity provides to pseudo-DHCP CLIENT.
The interactive interface of PPPOE business module and pseudo-DHCP CLIENT module realizes that function is as described below:
PPPOE business module entity with pseudo-DHCP CLIENT business module in the present invention, employed interactive interface comprises:
(1) PPPOE business module entity offers the successful notice callback interface that obtains network configuration attributes of pseudo-DHCP CLIENT module.This interface is notified and is imported PPPOE business module entity into after pseudo-DHCP CLIENT module is successfully obtained corresponding PPPOE user's network configuration attributes.
(2) PPPOE business module entity offers the failure notification callback interface that obtains network configuration attributes of pseudo-DHCP CLIENT module.After this interface obtains corresponding PPPOE user's network configuration attributes failure in pseudo-DHCP CLIENT module, notice PPPOE business module entity.
(3) pseudo-DHCP CLIENT module entity offers the callback interface of the acquisition request network configuration attributes of PPPOE business module.When the PPPOE business module obtains network configuration attributes in this interface requests of readjustment, the association attributes that needs the PPPOE user that will obtain from the PPPOE client, comprise: attribute informations such as user PPPOE session identification (session id), user's MAC address sign, PPPOE user name, import pseudo-DHCP CLIENT module into.
(4) pseudo-DHCP CLIENT module entity offers the callback interface of the request releasing network configuration attribute of PPPOE business module.The PPPOE business module is at readjustment during this interface requests releasing network configuration attribute, needs the PPPOE user's that will obtain from the PPPOE client association attributes and the network configuration attributes of obtaining from the DCHPRELAY module, imports pseudo-DHCP CLIENT module into.
The interactive interface of pseudo-DHCP CLIENT module and DHCP RELAY module realizes that function is as described below:
DHCP CLIENT module and DHCP RELAY module can be used two kinds of different interactive modes in the present invention, are respectively: the calling interface of network interaction, intermodule.
To the network interaction mode, there is not direct calling interface between pseudo-DHCP CLIENT and DHCP RELAY, it is realized by the ICP/IP protocol stack of bottom each other.Use the benefit of network interface to be: the degree of coupling of intermodule is little, the independence of module, portable good.But because mutual mutual needs by the ICP/IP protocol stack of bottom, can increase the processing time of system equipment.Therefore,, pass over the execution efficient of code, then can use the interactive interface of network communication mode if lay particular emphasis on the encapsulation of DHCP RELAY module, the versatility of function.At this moment, the destination address of network packet was undertaken by network interface alternately when pseudo-DHCP CLIENT and DHCP RELAY used loopback address 127.0.0.1 or the conduct of this machine address alternately each other.The module interface of pseudo-DHCP CLIENT and DHCPRELAY network interface interactive mode as shown in Figure 6.
To the calling interface mode of intermodule, undertaken alternately by direct calling interface between pseudo-DHCP CLIENT and DHCP RELAY, mutual DHCP protocol data bag is no longer handled by the ICP/IP protocol stack of bottom.Use the benefit of intermodule calling interface mode to be: the degree of coupling height of intermodule, the independence of module, portable bad.But, reduced the processing time of system equipment owing to the mutual mutual ICP/IP protocol stack that does not need by bottom.Therefore, carry out efficient, pass over the shortcomings such as close coupling of the intermodule that brings thus, then can realize mutual by direct synchronization call in pseudo-DHCP CLIENT module and DHCP RELAY intermodule if lay particular emphasis on the code of intermodule.The module interface of pseudo-DHCP CLIENT and DHCP RELAY calling interface interactive mode as shown in Figure 7.
(1) the DHCP request interface that provides to pseudo-DHCP CLIENT module of DHCP RELAY module.This interface is mainly used in pseudo-DHCP CLIENT module and obtains the DHCP protocol interaction request of renting/re-renting network configuration attributes etc. to the transmission of DHCP RELAY module.
(2) pseudo-DHCP CLIENT module is replied interface to the DHCP that DHCP RELAY module provides.This interface is mainly used in DHCP RELAY module and obtains the DHCP protocol interaction response of renting/re-renting network configuration attributes etc. to the transmission of pseudo-DHCP CLIENT module.
A kind of DHCP of use agreement realizes that PPPOE user dynamically obtains the method for IP address, comprises the steps:
First step: the PPPOE business module calls the request interface that obtains network configuration attributes that pseudo-DHCP CLIENT module provides, and drives the session of the initiation request network configuration attributes of pseudo-DHCP CLIENT.
Because the specificity of pseudo-DHCP CLIENT module, the request interface that obtains network configuration attributes that pseudo-DHCP CLIENT module provides is the synchronization call interface of intermodule.
This step can comprise the following steps: again
(1) the PPPOE business module will be mutual with the PPPOE client, and the PPPOE user's who obtains association attributes comprises: attribute informations such as user PPPOE session identification (session id), user's MAC address sign, PPPOE user name.
(2) the PPPOE business module is by calling the request interface that obtains network configuration attributes that pseudo-DHCP CLIENT module provides, and import relevant PPPOE user property into pseudo-DHCP CLIENT module, drive the session of network configuration attributes such as IP address that pseudo-DHCP CLIENT module is initiated to obtain to be needed, netmask, default gateway, name server.
Second step: pseudo-DHCP CLIENT module mutual by with DHCP RELAY module, obtain the professional required network configuration attributes of PPPOE.
Because DHCP RELAY module need need provide support and interface for pseudo-DHCPCLIENT module when realizing basic function.Therefore,, pass over the execution efficient of code, then can use the interactive interface of network communication mode if lay particular emphasis on the encapsulation of DHCP RELAY module, the versatility of function.At this moment, the destination address of network packet was undertaken alternately by network interface when pseudo-DHCP CLIENT and DHCP RELAY used loopback address 127.0.0.1 or the conduct of this machine address alternately each other; Carry out efficient if lay particular emphasis on the code of intermodule, pass over the close coupling of the module of bringing thus, then can realize mutual by direct synchronization call in pseudo-DHCP CLIENT module and DHCP RELAY intermodule.
This step can comprise the following steps: again
(1) pseudo-DHCP CLIENT module is by the PPPOE user of PPPOE business module through obtaining the network configuration attributes request interface and importing into association attributes, construct corresponding D HCP protocol interaction packet, and initiate to rent the session of network configuration attributes to DHCP RELAY.
(2) pseudo-DHCP CLIENT module need be squeezed into pseudo-DHCP CLIENT user mark in the DHCP protocol data bag of being constructed when structure DHCP protocol data bag.Make DHCP RELAY can identify pseudo-DHCP CLIENT user, and pseudo-DHCP CLIENT user is carried out necessary processing.
(3) after DHCP RELAY receives pseudo-DHCP CLIENT module request event,,, set up user data area and write down pseudo-DHCP CLIENT user label as MAC Address according to user ID.
(4) DHCP RELAY initiates corresponding D HCP request event to outside DHCP SERVER then.Receive the response of DHCP SERVER as DHCP RELAY after, according to the user data area index that from the DHCP packet, obtains,, search user data area, and obtain user type as user's MAC address.The interface that pseudo-DHCP CLIENT user's protocol events is provided by pseudo-DHCP CLIENT sends to pseudo-DHCP CLIENT module.
(5) when pseudo-DHCP CLIENT through complete DHCP protocol interaction process, after successfully renting required network configuration attributes, to obtain the notice callback interface notice PPPOE business module of network configuration attributes by the success that PPPOE customer service module provides, and import corresponding network configuration attributes into.
(6) after pseudo-DHCP CLIENT successfully rents required network configuration attributes, the parameters such as rental period that need return according to DHCP SERVER are regularly sent the request of re-renting, and these requests of re-renting are only mutual between pseudo-DHCP CLIENT and DHCP RELAY.
(7) renting/re-renting in the network configuration parameters process as pseudo-DHCP CLEINT, can not successfully obtain required network configuration parameters, will obtain the notice callback interface notice PPPOE business module of network configuration attributes by the failure that the PPPOE business module provides.
Third step: pseudo-DHCP CLIENT module is obtained the notice callback interface of network configuration attributes by the success/failure of calling PPPOE business module entity and providing, and drives PPPOE business module and PPPOE client-side session.
This step can comprise the following steps: again
(1) after the PPPOE business module obtains corresponding successful notification message from the notice callback interface that obtains network configuration attributes, will drive PPPOE business module and PPPOE client-side session process, finally finish access the user.
(2) after the PPPOE business module obtains corresponding failure notification message from the notice callback interface that obtains network configuration attributes, the PPPOE business module stops and this session of PPPOE client with driving.
The 4th step: the PPPOE business module calls the request interface of the releasing network configuration attribute that pseudo-DHCP CLIENT module provides, and drives the session of the initiation releasing network configuration attribute of pseudo-DHCP CLIENT.
This step can comprise the following steps: again
When (1) the PPPOE business module need stop the PPPOE session, need call the request interface of the releasing network configuration attribute that pseudo-DHCPCLIENT module provides.
(2) drive pseudo-DHCP CLIENT module and initiate the corresponding event request that discharges configuration attribute to outside DHCPSERVER, discharge the data field of oneself then by DHCP RELAY module.
(3) the PPPOE business module is when calling the request interface of the releasing network configuration attribute that pseudo-DHCP CLIENT module provides, need be with PPPOE user's association attributes, comprise: attribute informations such as user PPPOE session identification (session id), user's MAC address sign, PPPOE user name, and network configuration attributes such as the IP address that obtains of pseudo-DHCP CLIENT module, netmask, default gateway, name server, import pseudo-DHCP CLIENT module into.
The present invention is by the method for resident pseudo-DHCP CLIENT and DHCP RELAY in broadband access network devices such as wideband network access server (AS), broadband access router, thereby uses the DHCP agreement dynamically to obtain the IP address from the DHCP SERVER of outside as the PPPOE user of broadband access.
Use outside DHCP SERVER to realize the benefit that the dynamic IP addressing of the PPPOE service-user on all broadband access network equipment is distributed to be: (1) does not need respectively the IP address pool of each BAS Broadband Access Server is independently disposed, manages, and reduces administrative burden; (2) can utilize some enhancement function of special-purpose DHCP SERVER systems soft ware, PPPOE service-user information is followed the tracks of, help the PPPOE customer service is implemented statistics, monitoring and management with dynamic IP addressing, available dynamic IP addressing etc.
Description of drawings
Fig. 1 is the PPPOE business is obtained IP from the outside by DHCP modular structure and an interaction figure;
Fig. 2 is the normal sequential chart that PPPOE user obtains network configuration attributes;
Fig. 3 is the sequential chart that pseudo-DHCP CLIENT module is obtained the network configuration attributes failure;
Fig. 4 is the sequential chart that pseudo-DHCP CLIENT module is re-rented the network configuration attributes failure;
Fig. 5 is the access network figure of ISP;
Fig. 6 is the module interface figure of pseudo-DHCP CLIENT and DHCP RELAY network interface interactive mode;
Fig. 7 is the module interface figure of pseudo-DHCP CLIENT and DHCP RELAY calling interface interactive mode.
Embodiment
Processing sequential chart of the present invention is respectively as Fig. 2, Fig. 3, shown in Figure 4.
Fig. 2 obtains the normal process sequential chart of network configuration attributes for PPPOE user.PPPOE client successfully obtains required network configuration attributes by pseudo-DHCP CLIENT module in the reciprocal process with the PPPOE business module, when the PPPOE user offline, discharge the network configuration attributes that obtains by pseudo-DHCP CLIENT module.
Abnormality processing sequential chart when Fig. 3 obtains the network configuration attributes failure for PPPOE user.PPPOE client is in the reciprocal process with the PPPOE business module, can not obtain required network configuration attributes by pseudo-DHCP CLIENT module, pseudo-DHCP CLIENT module drives the PPPOE business module and stops and the PPPOE client-side session by the notice callback interface that obtains the network configuration attributes failure that the PPPOE module provides.
Fig. 4 is the abnormality processing sequential chart of pseudo-DHCP CLIENT module when the processing network configuration attributes is re-rented failure.Pseudo-DHCP CLIENT module by the notice callback interface that obtains the network configuration attributes failure that the PPPOE module provides, drives the PPPOE business module and stops and the PPPOE client-side session when re-renting of processing network configuration attributes failed.
Below described and in certain BAS Broadband Access Server of certain ISP, implemented process of the present invention.As required, this BAS Broadband Access Server need be supported two kinds of access authentication modes to the broadband user at present: a kind of for based on the authentication mode of WEB PORTAL; Another kind is a PPPOE authentification of user mode.Simultaneously, ISP has placed in network needing the DHCPSERVER of distributing IP address service for streamlining management.Requirement uses outside DHCPSERVER to carry out obtaining automatically of network configuration attributes such as IP address to using WEB PORTAL as the user of access authentication mode.Therefore, this BAS Broadband Access Server has been developed the DHCPRELAY module that realizes obtaining from outside DHCP SERVER network configuration attributes such as IP.
In addition, owing to also need network configuration attributes such as user's distributing IP addresses PPPOE is professional, but owing to before the present invention, do not have direct method to realize obtaining required IP address from outside DHCP SERVER.Therefore, these network configuration attributes all are that relevant configuration interface by this equipment obtains.Because PPPOE user's network configuration attributes such as IP can only obtain from this equipment, network configuration attributes management, maintenance work have therefore been increased to relevant PPPOE user on each equipment.The access network figure of ISP is shown in 5.
Enforcement of the present invention not only will reduce network configuration attributes management, maintenance work to relevant PPPOE user on each equipment; Simultaneously, also make the management of network configuration attributes such as PPPOE user and WEBPORTAL user's IP address unite, many benefits are provided.
In order in BAS Broadband Access Server, to use the DHCP agreement dynamically to obtain the IP address as PPPOE user.In BAS Broadband Access Server, use the DHCP agreement as follows as the treatment step that PPPOE user dynamically obtains the IP address:
(1) the PPPOE business module will be mutual with the PPPOE client, and the PPPOE user's who obtains association attributes comprises: attribute informations such as user PPPOE session identification (session id), user's MAC address sign, PPPOE user name.
(2) the PPPOE business module is by calling the request interface that obtains network configuration attributes that pseudo-DHCP CLIENT module provides, and imports relevant PPPOE user property into pseudo-DHCP CLIENT module.
(3) after pseudo-DHCP CLIENT module is received the request of obtaining network configuration attributes of PPPOE module, be the index creation user data area with the user's MAC address, and the relevant user profile of record.
(4) pseudo-DHCP CLIENT constructs the DHCPDISCOVER request data package, and squeezes into pseudo-DHCP CLIENT user ID according to attribute informations such as the user PPPOE session identification of receiving (session id), user's MAC address sign, PPPOE user names.
(5) during pseudo-DHCP CLIENT module structure DHCPDISCOVER request data package, need in the CHADDR territory of request data package, insert PPPOE user's MAC Address; Simultaneously, pseudo-DHCPCLIENT can be chosen in all or part of following DHCP protocol option territory: squeeze into pseudo-DHCP CLIENT user ID among Client-identifier, Vendor class identifier, the hostname etc.How to squeeze into pseudo-DHCP CLIENT user ID and select, as long as can make DHCP RELAY module can uniquely identify pseudo-DHCP CLIENT user by the designer.For the sake of simplicity, only identify pseudo-DHCP CLIENT user in this processing by in the hostname territory, adding " PSEUDO-CLIENT " character string prefix.
(6) pseudo-DHCP CLIENT module sends to DHCP RELAY by the interactive interface that DHCP RELAY module provides with the DHCPDISCOVER request data package.
(7) after DHCP RELAY module is received the request of obtaining network configuration attributes such as IP address, netmask, default gateway, name server of pseudo-DHCP CLIENT module, handle accordingly and reconstruct DHCPDISCOVER packet.
(8) DHCP RELAY module reconstruct DHCPDISCOVER packet.Need insert the IP of agency's PPPOE user side interface during DHCP RELAY module reconstruct DHCPDISCOVER packet, make DHCP SERVER can correctly return User IP and other network configuration attributes of interface IP address phase same network segment therewith.
(9) then, the DHCPDISCOVER packet after DHCP RELAY module is incited somebody to action sends to outside DHCP SERVER by network interface, thereby begins to initiate to ask to outside DHCP SERVER the conversation procedure of network configuration attributes.
(10) after DHCP RELAY module is received the DHCPOFFER response data packet of outside DHCP SERVER, according to index in the packet such as user's MAC address etc., search user data area, after PPPOE user handled accordingly, the interactive interface that provides by pseudo-DHCP CLIENT module was delivered to pseudo-DHCP CLIENT module with the DHCPOFFER response data packet.
(11) pseudo-DHCP CLIENT module is after receiving the DHCPOFFER packet that DHCP RELAY module is imported into, corresponding network configuration attributes is obtained in extraction, and carry out corresponding necessity and handle, as: inspection user's validity, the available outside DHCP SERVER of selection etc.
(12) to legal, effective DHCPOFFER response message, pseudo-DHCP CLIENT is according to PPPOE user property and the network configuration attributes returned, structure DHCPREQUEST request data package, and send to DHCP RELAY.
(13) after DHCP RELAY module is received the DHCPREQUEST packet, according to index in the packet such as user's MAC address etc., search user data area, after PPPOE user is handled accordingly, reconstruct DHCPREQUEST packet is inserted the IP of agency's PPPOE user side interface.Then, send to outside DHCP SERVER by network interface.
(14) if after DHCP RELAY module has been received the DHCPNAK packet that DHCP SERVER returns, according to index in the packet such as user's MAC address etc., search user data area, PPPOE user is handled accordingly, and the interactive interface that provides by pseudo-DHCP CLIENT module is delivered to pseudo-DHCP CLIENT module with the DHCPACK response data packet.Discharge user data area then, finish this DHCP session.
(15) pseudo-DHCP CLIENT module is after receiving the DHCPNAK packet that DHCP RELAY module is imported into, carry out corresponding necessary the processing, as: check user's validity etc., the notice callback interface of network configuration attributes is obtained in the failure that provides by the PPPOE module then, pass to the PPPOE business module, drive the PPPOE module and stop and the PPPOE client-side session, discharge user data area then.
(16) if after DHCP RELAY module has been received the DHCPACK packet that DHCP SERVER returns, according to index in the packet such as user's MAC address etc., search user data area, after PPPOE user handled accordingly, the interactive interface that provides by pseudo-DHCP CLIENT module was delivered to pseudo-DHCP CLIENT module with the DHCPACK response data packet.
(17) pseudo-DHCP CLIENT module is after receiving the DHCPACK packet that DHCP RELAY module is imported into, corresponding network configuration attributes is obtained in extraction, and carry out corresponding necessity and handle, as: check user's validity etc., the notice callback interface of network configuration attributes is obtained in the success that provides by the PPPOE module then, pass to the PPPOE business module, drive PPPOE module and PPPOE client-side session.
(18) after this, pseudo-DHCP CLIENT module is at the PPPOE user who obtains the corresponding network configuration attribute, the rental period association attributes that in DHCPACK message, returns according to outside DHCP SERVER, drive accordingly in this PPPOE state of user machine, regularly carry out the processing of re-renting these network configuration attributes.When pseudo-DHCP CLIENT module after specific PPPOE user's network configuration attributes is re-rented failure, to re-rent the failure notification callback interface by what the PPPOE module provided, pass to the PPPOE business module, driving the PPPOE module stops and the PPPOE client-side session, discharge user data area then, end session.
(19) after the PPPOE module is being received PPPOE user's the message of normal termination PPPOE session, need call the request interface of the releasing network configuration attribute that pseudo-DHCP CLIENT module provides and notify pseudo-DHCP CLIENT module.
(20) pseudo-DHCP CLIENT module is after the request of the releasing network configuration attribute of receiving the PPPOE module, drive pseudo-DHCP CLIENT module structure corresponding D HCPRELEASE packet, and send to DHCP RELAY module, discharge the user data area of oneself then, end session.
DHCP RELAY module is after receiving DHCPRELEASE message, according to index in the packet such as user's MAC address etc., search user data area, after PPPOE user is handled accordingly, reconstruct DHCPRELEASE packet is inserted the IP of agency's PPPOE user side interface.Send to the user data area of outside DHCP SERVER and release oneself then by network interface, end session.

Claims (16)

1. one kind is used the DHCP agreement to realize that PPPOE user dynamically obtains the device of IP address, and it is characterized in that: this device comprises:
PPPOE business module entity, by network interface realize with PPPOE client standard agreement mutual, finish authentication, access to PPPOE user, realize the PPPOE authentication access service of standard;
Pseudo-DHCP CLIENT module entity, reside in the broadband access network equipment, association attributes according to the collected PPPOE user of PPPOE business module entity: user PPPOE session identification, the user's MAC address sign, PPPOE attribute of user name information structuring goes out the DHCP protocol network packet corresponding to specific PPPOE user, squeeze into pseudo-DHCP CLIENT user's sign, and mutual with the DHCP RELAY in the resident DHCPCLIENT equipment, for all PPPOE customer service modules are carried out the required IP address of network service to outside DHCP SERVER acquisition request, netmask, default gateway, the name server network configuration attributes;
DHCP RELAY module entity, reside in the broadband access network equipment, be used to the forwarding based on DHCP agreement request/response events network packet of RELAY of the standard that realizes, the entity agency of DHCP RELAY relay agent is corresponding to the network interface of PPPOE user side, described DHCP protocol network packet is carried out corresponding processing of DHCPRELAY and reconstruct, insert the IP of agency's PPPOE user side interface, mutual with described outside DHCP SERVER, obtain this user interface place of required coupling network segment user's network configuration attributes from outside DHCP SERVER.
2. realize according to claim 1 that PPPOE user dynamically obtains the device of IP address, it is characterized in that: the interactive interface of described PPPOE business module and pseudo-DHCP CLIENT module comprises:
PPPOE business module entity offers the successful notice callback interface that pseudo-DHCP CLIENT module is obtained network configuration attributes, be used for after pseudo-DHCP CLIENT module is successfully obtained corresponding PPPOE user's network configuration attributes, notify and import PPPOE business module entity into;
PPPOE business module entity offers the failure notification callback interface that pseudo-DHCP CLIENT module is obtained network configuration attributes, is used for after pseudo-DHCP CLIENT module is obtained corresponding PPPOE user's network configuration attributes failure notice PPPOE business module entity;
Pseudo-DHCP CLIENT module entity offers the callback interface of PPPOE business module acquisition request network configuration attributes, when the PPPOE business module obtains network configuration attributes in this interface requests of readjustment, the PPPOE user's that will obtain from the PPPOE client association attributes imports pseudo-DHCP CLIENT module into;
Pseudo-DHCP CLIENT module entity offers the callback interface of PPPOE business module request releasing network configuration attribute, the PPPOE business module is when this interface requests releasing network configuration attribute of readjustment, the PPPOE user's that will obtain from the PPPOE client association attributes and the network configuration attributes of obtaining from DHCP RELAY module are imported pseudo-DHCP CLIENT module into.
3. realize according to claim 1 that PPPOE user dynamically obtains the device of IP address, it is characterized in that: the interactive interface of described pseudo-DHCP CLIENT module and DHCP RELAY module is a network interaction, realizes by the ICP/IP protocol stack of bottom each other.
4. realize according to claim 1 that PPPOE user dynamically obtains the device of IP address, it is characterized in that: the interactive interface of described pseudo-DHCP CLIENT module and DHCP RELAY module is the calling interface of intermodule, realize comprising alternately by direct synchronization call interface each other:
DHCP RELAY module is used for pseudo-DHCP CLIENT module and obtains the DHCP protocol interaction request of renting/re-renting network configuration attributes to the transmission of DHCP RELAY module to the DHCP request interface that pseudo-DHCP CLIENT module provides;
Pseudo-DHCP CLI ENT module is replied interface to the DHCP that DHCP RELAY module provides, and is used for DHCP RELAY module and obtains the DHCP protocol interaction response of renting/re-renting network configuration attributes to the transmission of pseudo-DHCP CLIENT module.
5. realize according to claim 1 that PPPOE user dynamically obtains the device of IP address, it is characterized in that:
Described PPPOE business module entity is after receiving that the PPPOE client is obtained the request of network configuration attributes incident, internally the network configuration attributes callback interface that obtains that provides by pseudo-DHCP CLIENT module is realized mutual with pseudo-DHCP CLIENT, PPPOE user's association attributes that will obtain from the PPPOE client, import pseudo-DHCP CLIENT module into, and ask pseudo-DHCP CLIENT module to obtain required user's network configuration attributes;
Described PPPOE business module adopts the asynchronous event processing mode in the reciprocal process with pseudo-DHCPCLIENT module;
Described PPPOE business module provides the request wait timeout to detect in the process of the pseudo-DHCP CLIENT module assignment network configuration parameters of request, behind the request wait timeout timer expiry of network configuration parameters, the PPPOE business module should notify pseudo-DHCP CLIENT module to handle accordingly;
Described PPPOE business module provides being allocated successfully of corresponding network configuration parameters and distributes the asynchronous readjustment notification interface of failure, be convenient to pseudo-DHCP CLIENT after configuration attribute success of request distribution network or failure, notice PPPOE business module is to handle accordingly, under the situation of successfully obtaining network configuration attributes, pseudo-DHCP CLIENT module need be imported the network configuration attributes that obtains into the PPPOE business module;
Described PPPOE business module entity is after the request of rolling off the production line of receiving the PPPOE client, internally the releasing network configuration attribute callback interface that provides by pseudo-DHCP CLIENT module is notified pseudo-DHCPCLIENT module, the PPPOE user's that will obtain from the PPPOE client association attributes and the network configuration attributes obtained from pseudo-DHCP CLIENT simultaneously, import pseudo-DHCP CLIENT module into, discharge processing so that pseudo-DHCP CLIENT module is carried out corresponding network configuration attributes.
6. realize according to claim 1 that PPPOE user dynamically obtains the device of IP address, it is characterized in that:
Described pseudo-DHCP CLIENT module entity is by providing network configuration attributes request callback interface to PPPOE business module entity, be convenient to the PPPOE business module and initiate the incident that request distributes required network configuration attributes, and transmit PPPOE user's association attributes to pseudo-DHCP CLIENT module entity;
After described pseudo-DHCP CLIENT module entity receives that the request of PPPOE business module initiation distributes the incident of required network configuration attributes, association attributes according to the PPPOE user of importing into, create this PPPOE user's DHCP interactive sessions data field, and construct the corresponding DHCDISCOVER protocol network packet that can identify this specific PPPOE user, and initiate the interactive sessions that network configuration attributes is rented in request to outside DHCP SERVER by driving DHCP RELAY;
After described pseudo-DHCP CLIENT module is initiated the session of request network configuration attributes to DHCP RELAY module, according to PPPOE user's association attributes and the network of relation configuration attribute that from DHCP protocol conversation process, obtains, drive the configuration parameter queued session process of pseudo-DHCP CLINET and DHCP REALY by pseudo-DHCP CLIENT;
Described pseudo-DHCP CLINET module uses dhcp state machine timer according to the time parameter of re-renting that returns in the DHCP protocol interaction, then initiate the request of re-renting in the time of re-renting to DHCP RELAY, and re-renting under the situation of failure, carry out the asynchronous event that failure is asked in the notice callback interface transmission of failing by the request that PPPOE customer service module provides, trigger the PPPOE business and ask the processing of failing accordingly;
Stamp pseudo-DHCP CLIENT user's sign in the DHCP protocol package that described pseudo-DHCP CLIENT module sends, make DHCP RELAY module can discern pseudo-DHCP CLIENT user and standard DHCPCLIENT user, so that the protocol data bag of pseudo-DHCP CLIENT transmission is handled accordingly.
7. as described in claim 6, realize that PPPOE user dynamically obtains the device of IP address, it is characterized in that:
Described pseudo-DHCP CLIENT module is received the DHCP protocol events of DHCPDECLINE, the notice callback interface that failure is carried out in the request that pseudo-DHCPCLIENT provides by PPPOE customer service module sends the asynchronous event of asking failure, triggers the PPPOE business and asks failure to be handled accordingly;
Described pseudo-DHCP CLIENT module is received the DHCPACK protocol events of obtaining the corresponding network configuration parameter, the notice callback interface that the request that pseudo-DHCP CLIENT provides by PPPOE customer service module runs succeeded sends the successful asynchronous notifications incident of request, trigger the PPPOE business and ask accordingly successfully to handle, the network configuration attributes that notice transmission is obtained.
8. as described in claim 6, realize that PPPOE user dynamically obtains the device of IP address, it is characterized in that:
The user ID of the pseudo-DHCP CLIENT that is beaten in the DHCP protocol package that described pseudo-DHCP CLIENT module sends identifies by squeeze into mark in part or all of DHCP protocol option territory;
Described DHCP protocol option territory comprises: chaddr, Client-identifier, Vendorclass identifier, hostname.
9. realize according to claim 1 that PPPOE user dynamically obtains the device of IP address, it is characterized in that:
Described DHCP RELAY module entity, according to the mark that pseudo-DHCP CLIENT squeezes in the DHCP protocol option, DHCP RELAY relay agent entity identifies pseudo-DHCP CLIENT user from the DHCP protocol data bag that receives;
Whether described DHCP RELAY module entity is pseudo-DHCP CLIENT user according to user type, and whether decision needs mutual with pseudo-DHCP CLIENT module entity;
To pseudo-DHCP CLIENT user type, described DHCP RELAY module entity and pseudo-DHCPCLIENT module inter-entity realize mutual by the calling interface of network interface or intermodule.
10. as described in claim 9, realize that PPPOE user dynamically obtains the device of IP address, it is characterized in that:
When described DHCP RELAY module entity was realized by network interface, pseudo-DHCP CLIENT intercepted on the standard port number of DHCP CLIENT, and DHCP RELAY intercepts on the standard port number of DHCP SERVER;
When pseudo-DHCP CLIENT when DHCP RELAY sends DHCP protocol data bag, with the IP address of the network interface that uses local loopback address or DHCP RELAY to be acted on behalf of as target ip address, the standard port number of DHCP SERVER sends network packet by ICP/IP protocol to DHCP RELAY as target port;
When DHCP RELAY when pseudo-DHCP CLIENT sends DHCP protocol data bag, to use the IP address of network interface of local loopback address or pseudo-DHCP CLIENT as target ip address, DHCP CLIENT standard port number sends network packet by ICP/IP protocol to pseudo-DHCPCLIENT as target port.
11. as described in claim 9, realize that PPPOE user dynamically obtains the device of IP address, it is characterized in that:
When described DHCP RELAY module entity was realized by the calling interface of intermodule, pseudo-DHCPCLIENT sent DHCP protocol data bag by the module invokes interface that DHCP RELAY module entity provides to DHCP RELAY;
DHCP RELAY sends network packet by the module invokes interface that pseudo-DHCP CLIENT module entity provides to pseudo-DHCP CLI ENT.
12. one kind is used the DHCP agreement to realize that PPPOE user dynamically obtains the method for IP address, may further comprise the steps:
First step: the PPPOE business module calls and resides in the request interface that obtains network configuration attributes that the pseudo-DHCPCLIENT module in the broadband access network equipment provides, drive the session of the initiation request network configuration attributes of pseudo-DHCPCLIENT, the request interface that obtains network configuration attributes that described pseudo-DHCP CLIENT module provides is the synchronization call interface of intermodule;
Second step: pseudo-DHCP CLIENT module constructs DHCP protocol network packet corresponding to specific PPPOE user according to the collected PPPOE user's of PPPOE business module association attributes, squeeze into pseudo-DHCP CLIENT user's sign, by with reside in the mutual of DHCP RELAY module in the broadband access network equipment, DHCP RELAY module is carried out corresponding processing of DHCP RELAY and reconstruct to described DHCP protocol network packet, insert the IP of agency's PPPOE user side interface, mutual by network interface and outside DHCP SERVER again, obtain the professional required network configuration attributes of PPPOE from outside DHCP SERVER, the destination address of network packet when pseudo-DHCP CLIENT and DHCP RELAY use the conduct of loopback address or this machine address mutual each other, undertaken alternately by network interface, or realize mutual by direct synchronization call;
Third step: pseudo-DHCP CLIENT module is obtained the notice callback interface of network configuration attributes by the success/failure of calling PPPOE business module entity and providing, and drives PPPOE business module and PPPOE client-side session;
The 4th step: the PPPOE business module calls the request interface of the releasing network configuration attribute that pseudo-DHCP CLIENT module provides, and drives the session of the initiation releasing network configuration attribute of pseudo-DHCP CLIENT.
13. realize that PPPOE user dynamically obtains the method for I P address as described in claim 12, described first step further comprises:
The PPPOE business module will be mutual with the PPPOE client, and the PPPOE user's who obtains association attributes comprises: user PPPOE session identification, user's MAC address sign, PPPOE user name;
The PPPOE business module is by calling the request interface that obtains network configuration attributes that pseudo-DHCP CLIENT module provides, and import relevant PPPOE user property into pseudo-DHCP CLIENT module, drive the session that pseudo-DHCP CLIENT module initiates to obtain the network configuration attributes that comprises IP address, netmask, default gateway, name server that needs.
14. realize that PPPOE user dynamically obtains the method for IP address as described in claim 12, described second step further comprises:
Pseudo-DHCP CLIENT module is by the PPPOE user of PPPOE business module through obtaining the network configuration attributes request interface and importing into association attributes, structure corresponding D HCP protocol interaction packet, and initiate to rent the session of network configuration attributes to DHCP RELAY;
Pseudo-DHCP CLIENT module is when structure DHCP protocol data bag, need in the DHCP protocol data bag of being constructed, squeeze into pseudo-DHCP CLIENT user mark, make DHCP RELAY can identify pseudo-DHCP CLIENT user, and pseudo-DHCP CLIENT user is handled;
After DHCP RELAY receives pseudo-DHCP CLIENT module request event,, set up user data area and write down pseudo-DHCP CLIENT user label according to user ID;
DHCP RELAY initiates corresponding D HCP request event to outside DHCP SERVER then, receive the response of DHCP SERVER as DHCP RELAY after, according to the user data area index that from the DHCP packet, obtains, search user data area, obtain user type, the interface that pseudo-DHCP CLIENT user's protocol events is provided by pseudo-DHCP CLIENT sends to pseudo-DHCP CLIENT module;
When pseudo-DHCP CLIENT is passing through complete DHCP protocol interaction process, after successfully renting required network configuration attributes, to obtain the notice callback interface notice PPPOE business module of network configuration attributes by the success that PPPOE customer service module provides, and import corresponding network configuration attributes into;
After pseudo-DHCP CLIENT successfully rented required network configuration attributes, the rental period relevant parameter that need return according to DHCPSERVER regularly sent the request of re-renting, and these requests of re-renting are only mutual between pseudo-DHCPCLIENT and DHCP RELAY;
When pseudo-DHCP CLEINT is renting/re-renting in the network configuration parameters process, can not successfully obtain required network configuration parameters, will obtain the notice callback interface notice PPPOE business module of network configuration attributes by the failure that the PPPOE business module provides.
15. realize that PPPOE user dynamically obtains the method for IP address as described in claim 12, described third step further comprises:
After the PPPOE business module obtains corresponding successful notification message from the notice callback interface that obtains network configuration attributes, will drive PPPOE business module and PPPOE client-side session process, finally finish access to the user;
After the PPPOE business module obtained corresponding failure notification message from the notice callback interface that obtains network configuration attributes, the PPPOE business module stopped and this session of PPPOE client with driving.
16. realize that PPPOE user dynamically obtains the method for IP address as described in claim 12, described the 4th step further comprises:
When the PPPOE business module need stop the PPPOE session, need call the request interface of the releasing network configuration attribute that pseudo-DHCP CLIENT module provides;
Drive pseudo-DHCP CLIENT module and initiate the corresponding event request that discharges configuration attribute to outside DHCP SERVER, discharge the data field of oneself then by DHCP RELAY module;
The PPPOE business module is when calling the request interface of the releasing network configuration attribute that pseudo-DHCP CLIENT module provides, need be with PPPOE user's association attributes, reach the user network configuration attribute that pseudo-DHCP CLIENT module is obtained, import pseudo-DHCP CLIENT module into.
CN 03113446 2003-05-09 2003-05-09 Apparatus and method for realizing PPPOE user dynamic obtaining IP address utilizing DHCP protocol Expired - Fee Related CN1549546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03113446 CN1549546B (en) 2003-05-09 2003-05-09 Apparatus and method for realizing PPPOE user dynamic obtaining IP address utilizing DHCP protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03113446 CN1549546B (en) 2003-05-09 2003-05-09 Apparatus and method for realizing PPPOE user dynamic obtaining IP address utilizing DHCP protocol

Publications (2)

Publication Number Publication Date
CN1549546A CN1549546A (en) 2004-11-24
CN1549546B true CN1549546B (en) 2011-06-22

Family

ID=34320083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03113446 Expired - Fee Related CN1549546B (en) 2003-05-09 2003-05-09 Apparatus and method for realizing PPPOE user dynamic obtaining IP address utilizing DHCP protocol

Country Status (1)

Country Link
CN (1) CN1549546B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006155393A (en) * 2004-11-30 2006-06-15 Toshiba Corp Server accommodation device, server accommodation method, and server accommodation program
CN1783780B (en) * 2004-12-04 2010-09-08 华为技术有限公司 Method and device for realizing domain authorization and network authority authorization
CN100450279C (en) * 2005-03-22 2009-01-07 华为技术有限公司 Method for realizing user data management based on wireless system
CN1859437B (en) * 2005-04-30 2010-11-10 华为技术有限公司 Method for obtaining cut-in position information for user terminal and user terminal and relative device
CN100442735C (en) * 2005-06-30 2008-12-10 华为技术有限公司 Dynamic configuration insertion terminal realizing method
CN1980253B (en) * 2005-12-06 2010-12-08 华为技术有限公司 Method an system for obtaining otherplace network DHCPv6 server information
JPWO2007114251A1 (en) * 2006-03-29 2009-08-13 パナソニック株式会社 Communication device, method executed by communication device, and storage medium storing software implementing the method
JP4791252B2 (en) * 2006-05-22 2011-10-12 株式会社日立製作所 Packet transfer device, packet transfer system, user terminal device, and packet transfer method
CN100539595C (en) * 2006-07-18 2009-09-09 Ut斯达康通讯有限公司 A kind of IP address assignment method based on the DHCP extended attribute
CN100426816C (en) * 2006-11-13 2008-10-15 华为技术有限公司 Method and system for sending DHCP message and obtaining configuration information by PPP line
CN101207613B (en) * 2006-12-21 2012-01-04 松下电器产业株式会社 Method, system and apparatus for authentication of striding network area information communication
CN100499528C (en) * 2007-04-25 2009-06-10 华为技术有限公司 DHCP monitoring method and apparatus thereof
CN101304363B (en) * 2007-05-12 2011-12-07 华为技术有限公司 Method for managing conversation connection as well as apparatus and system
CN101388882B (en) * 2007-09-13 2011-09-14 英业达股份有限公司 Network protocol address configuring system and method
CN101442516B (en) * 2007-11-20 2012-04-25 华为技术有限公司 Method, system and apparatus for DHCP authentication
CN101741702B (en) * 2008-11-25 2012-02-29 中兴通讯股份有限公司 Method and device for limiting broadcast of ARP request
CN101699810B (en) * 2009-06-02 2012-02-15 北京研弘科技有限公司 Method for multiple operators to share a set of access server and broadband access network
CN101729559B (en) * 2009-12-03 2012-12-19 中兴通讯股份有限公司 Method and system for realizing backup of DHCP server
CN101751256B (en) * 2009-12-31 2013-09-11 金蝶软件(中国)有限公司 Method and system for exchanging data with third-party system
CN102316028B (en) 2011-08-24 2014-06-04 华为技术有限公司 Method and apparatus for sending internet protocol packet
CN102957760B (en) * 2011-08-30 2016-06-29 华为技术有限公司 The method of assignment of the Internet protocol address, router and system
CN102833363A (en) * 2012-08-20 2012-12-19 大唐移动通信设备有限公司 IP (Internet Protocol) address allocation method, device and system
CN106254574B (en) * 2016-09-09 2019-09-17 新华三技术有限公司 A kind of address distribution method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1437360A (en) * 2002-02-07 2003-08-20 华为技术有限公司 Method for the point-to-point protocol log-on user to obtain Internet protocol address

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1437360A (en) * 2002-02-07 2003-08-20 华为技术有限公司 Method for the point-to-point protocol log-on user to obtain Internet protocol address

Also Published As

Publication number Publication date
CN1549546A (en) 2004-11-24

Similar Documents

Publication Publication Date Title
CN1549546B (en) Apparatus and method for realizing PPPOE user dynamic obtaining IP address utilizing DHCP protocol
CN101304363B (en) Method for managing conversation connection as well as apparatus and system
US7787455B2 (en) Technique for automated MAC address cloning
CN101296203B (en) Device, system and method for automatically configuring application terminal in family network
US6587455B1 (en) Automatic discovery of nodes associated with a virtual subnet
US7263559B2 (en) Method for preventing IP address cheating in dynamic address allocation
CN100579121C (en) Method for securing special line user access network
US7756107B1 (en) Dial-out with dynamic IP address assignment
CN100589498C (en) IP communication system and IP address assignment method thereof
CN101483676B (en) Network for securing special line user to access to network
CN101159758B (en) Classification associated dynamic host machine configuring protocol option distribution method and device
US8005963B2 (en) Method and apparatus for preventing counterfeiting of a network-side media access control address
CN101141439B (en) Method and device of reporting user facility access types and distribution network configuration information
CN101197811A (en) Method for improving server reliability in dynamic main unit configuration protocol under proxy mode
EP0830772A1 (en) Apparatus and method for providing unique identifiers to remote dial-in network clients
EP1906588A1 (en) A method system and apparatus for relating the information associated with user in nass
CN103141072B (en) IP address acquiring method and network access equipment
CN100461693C (en) Network system
Cisco DHCP Server - On-Demand Address Pool Manager
CN101127654A (en) Method and system for association between devices in network
US20030067927A1 (en) Provisioning a media terminal adapter
CN108093091A (en) A kind of method and agent equipment for obtaining host additional information
CN101072243B (en) Report processing method and access device
CN110913029A (en) IPv6 address configuration method in operator
JP2001094599A (en) Information communication system and method for assigning ip address to client using same

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180427

Address after: California, USA

Patentee after: Global innovation polymerization LLC

Address before: 518057 Department of law, Zhongxing building, South Science and technology road, Nanshan District hi tech Industrial Park, Shenzhen

Patentee before: ZTE Corp.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110622