Background technology
WiMAX is based on an emerging wireless access wide band technology of IEEE 802.16e standard, Fig. 1 is WIMAX network structure in the prior art that provides of the embodiment of the invention, as shown in Figure 1, in the WIMAX network, terminal PC 101 is by subscriber equipment 102(CPE, Customer Premise Equipment) base station 103 with network side connects, and obtains the IP address from network side.
In the prior art, CPE102 can work in two kinds of patterns, be route pattern and bridge mode, when working in bridge mode, CPE102 directly links to each other with terminal PC 101 by interfaces such as Ethernet interface or USB, terminal PC 101 is connected to base station 103 by CPE102, and this moment, terminal PC 101 was obtained the IP address from network side, and CPE102 does not have the IP address.CPE102 can switch (Handover) and idle (Idle) network re-entry under a plurality of base stations, when CPE102 switches or network re-entry during to new base station, if new base station is identical with the ability that former base station is supported, then CPE can connect by Optimizing Flow and new base station, the network re-entry flow process of regulation does not need when to be CPE with new base station connect to carry on an agreement fully, can omit SBC, REG, DSA, the flow processs such as renew IP, the ability of new base station and the support of former base station comprises whether supporting to encrypt herein, whether support ARQ/HARQ, whether support scans the functions such as switching; If new base station is different from the ability that former base station is supported, then CPE102 can't connect by Optimizing Flow and new base station, must connect by complete unoptimizable flow process and new base station.
In the prior art, the CPE102 that works in bridge mode can be connected to terminal PC 101 by Ethernet, when CPE102 just connects with new base station by the unoptimizable flow process, if CPE102 this moment receives the message that requires terminal PC 101 to upgrade the IP address, because it is to connect by Ethernet that CPE is connected with terminal PC, terminal PC 101 can not directly receive the message of upgrading IP, need to be by the CPE102 transfer, but CPE102 and terminal PC 101 do not have mechanism directly to carry out IP at present to be upgraded, and CPE102 can't upgrade its IP address by notification terminal PC102.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with execution mode and accompanying drawing, the present invention is described in further details.At this, exemplary embodiment of the present invention and explanation thereof are used for explanation the present invention, but not as a limitation of the invention.
Embodiment one
Fig. 2 is a kind of WIMAX network lower terminal IP address renewing method flow chart that the embodiment of the invention provides, and as shown in Figure 2, described method comprises:
S201, CPE receive the IP address update request information that requires terminal PC to upgrade the IP address.
In embodiments of the present invention, CPE links to each other with the WIMAX base station, and terminal PC is connected to network by CPE, and obtains the IP address from network side.CPE receives the IP address update request information that requires terminal PC renewal IP address that network side sends, and IP address update request information can be the RNG_RSP message that the base station sends, and is used to indicate the CPE terminal PC and should upgrades the IP address that obtains from Dynamic Host Configuration Protocol server.
S202 is according to the IP address update request Information generation analog DHCP lastest imformation that receives.
In embodiments of the present invention, when CPE can't notification terminal PC upgrades the IP address of oneself, CPE generates an analog DHCP lastest imformation according to the IP address update request information simulation Dynamic Host Configuration Protocol server that receives, the analog DHCP lastest imformation can be DHCP FORCERENEW(RFC3203) message, the IP address that is used for triggering terminal PC is new technological process more.
S203 is sent to terminal PC with the analog DHCP lastest imformation that generates, so that terminal PC is upgraded the IP address according to the analog DHCP lastest imformation.
In embodiments of the present invention, CPE is sent to terminal PC with the analog DHCP lastest imformation that generates, and the IP address of triggering terminal PC is new technological process more.Terminal PC can generate the request of IP address acquisition according to the analog DHCP lastest imformation that receives, and again initiates the DHCP flow process, to obtain new IP address.The request of IP address acquisition can be the DHCP probe message, and the IP address acquisition request that CPE receiving terminal PC generates also is forwarded to the base station with the request of IP address acquisition.
Fig. 3 is a kind of WIMAX network lower terminal IP address renewing method flow chart that the embodiment of the invention provides, be with IP address of terminal update method difference shown in Figure 2, IP address of terminal update method shown in Figure 3 also comprises step S204 between step S201 and S202, judge whether IP address update request information can be sent to terminal PC, if IP address update request information can't be sent to terminal PC, then proceed step S202; If IP address update request information can be sent to terminal PC, then proceed step S205, terminal PC is directly according to update request information updating IP address, IP address.
Fig. 4 is a kind of WIMAX network lower terminal IP address renewing method flow chart that the embodiment of the invention provides, as shown in Figure 4, be that with IP address of terminal update method difference shown in Figure 3 in embodiments of the present invention, IP address of terminal update method shown in Figure 4 also comprises:
S206, judge whether terminal PC is connected with CPE by USB or Ethernet interface, if terminal PC is to be connected with CPE by USB or Ethernet interface, execution in step S207 then, if CPE does not link to each other by USB or Ethernet interface with terminal PC, then CPE and terminal PC can't connect, and flow process finishes, the failure of network re-entry flow process.
S207 judges whether CPE is in bridge mode, if subscriber terminal equipment CPE is in bridge mode, and execution in step S208 then.If subscriber terminal equipment CPE is in route pattern, then update request information in IP address can be sent to terminal PC, execution in step S205, and terminal PC is directly according to update request information updating IP address, IP address.
S208, judge whether CPE just connects by unoptimizable flow process and base station, if CPE just connects by unoptimizable flow process and base station, judge that then IP address lastest imformation can't be sent to terminal PC, continue execution in step S202, generate the analog DHCP lastest imformation according to the IP address lastest imformation that receives; If CPE just connects by Optimizing Flow and base station, then terminal PC need not to upgrade the IP address, and flow process finishes.
A kind of WIMAX network lower terminal IP address renewing method that the embodiment of the invention provides, generate the analog DHCP lastest imformation according to the IP address lastest imformation that receives, overcome when CPE is just connecting by unoptimizable flow process and base station in the prior art, CPE can't notification terminal PC upgrades the problem of its IP address, the IP address of the terminal PC that can upgrade in time.
Embodiment two
Fig. 5 is a kind of subscriber equipment CPE block diagram that the embodiment of the invention provides, and as shown in Figure 5, CPE500 comprises:
Lastest imformation receiving element 501 is used for receiving the IP address update request information that requires terminal PC to upgrade the IP address;
In embodiments of the present invention, IP address of terminal updating device 500 can be CPE, and CPE links to each other with the WIMAX base station, and terminal PC is connected to network by CPE, and obtains the IP address from network side.Lastest imformation receiving element 501 receives the IP address update request information that requires terminal PC renewal IP address that network side sends, IP address update request information can be the RNG_RSP message that the base station sends, and is used to indicate CPE and should upgrades terminal PC from the IP address of Dynamic Host Configuration Protocol server acquisition.
Lastest imformation generation unit 502 is used for according to the IP address update request Information generation analog DHCP lastest imformation that receives;
In embodiments of the present invention, when CPE can't notification terminal PC upgrades the IP address of oneself, lastest imformation generation unit 502 generates an analog DHCP lastest imformation according to the IP address update request information simulation Dynamic Host Configuration Protocol server that receives, the analog DHCP lastest imformation can be DHCPFORCERENEW(RFC3203) message, the IP address that is used for triggering terminal PC is new technological process more.
Lastest imformation transmitting element 503, the analog DHCP lastest imformation that is used for generating is sent to terminal PC, so that terminal PC is upgraded the IP address according to the analog DHCP lastest imformation.
In embodiments of the present invention, lastest imformation transmitting element 503 is sent to terminal PC with the analog DHCP lastest imformation that lastest imformation generation unit 502 generates, and the IP address of triggering terminal PC is new technological process more.Terminal PC can generate the request of IP address acquisition according to the analog DHCP lastest imformation of receiving, again initiates the DHCP flow process, to obtain new IP address.The request of IP address acquisition can be the DHCP probe message, and the IP address acquisition request that CPE receiving terminal PC generates also is forwarded to the base station with the request of IP address acquisition.
Fig. 6 is a kind of CPE block diagram that the embodiment of the invention provides, and as shown in Figure 6, is that with CPE500 difference shown in Figure 5 CPE600 also comprises:
Lastest imformation judging unit 504, be used for judging whether IP address update request information can be sent to terminal PC, if IP address update request information can't be sent to terminal PC, the IP address update request Information generation analog DHCP lastest imformation that is then received by lastest imformation generation unit 502 bases.
Fig. 7 is a kind of CPE block diagram that the embodiment of the invention provides, and as shown in Figure 7, is that with CPE500 difference shown in Figure 5 CPE700 also comprises:
Wired connection judging unit 701, be used for judging whether terminal PC is connected with CPE by USB or Ethernet interface, if terminal PC is to be connected with CPE by USB or Ethernet interface, then judge by bridge mode judging unit 702 whether CPE is in bridge mode, if CPE does not link to each other by USB or Ethernet interface with terminal PC, then CPE and terminal PC can't connect, and flow process finishes, the failure of network re-entry flow process.
Bridge mode judging unit 702 is used for judging whether CPE is in bridge mode, if subscriber terminal equipment CPE is in bridge mode, then connects flow process judging unit 703 and judges whether CPE just connects by unoptimizable flow process and base station; If subscriber terminal equipment CPE is in route pattern, then update request information in IP address can be sent to terminal PC, and terminal PC is directly according to update request information updating IP address, IP address.
Connect flow process judging unit 703, be used for judging whether CPE just connects by unoptimizable flow process and base station, if CPE just connects by unoptimizable flow process and base station, judge that then IP address lastest imformation can't be sent to terminal PC, by lastest imformation generation unit 502 according to the IP address update request Information generation analog DHCP lastest imformation that receives; If CPE just connects by Optimizing Flow and base station, then terminal PC need not to upgrade the IP address, and flow process finishes.
A kind of CPE that the embodiment of the invention provides, generate the analog DHCP lastest imformation according to the IP address lastest imformation that receives, overcome when CPE connects by unoptimizable flow process and base station in the prior art, CPE can't notification terminal PC upgrades the problem of its IP address, the IP address of the terminal PC that can upgrade in time.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is the specific embodiment of the present invention; the protection range that is not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.