CN103856572B - A kind of method and home gateway of terminal device renewed treaty IP address - Google Patents

A kind of method and home gateway of terminal device renewed treaty IP address Download PDF

Info

Publication number
CN103856572B
CN103856572B CN201210504312.7A CN201210504312A CN103856572B CN 103856572 B CN103856572 B CN 103856572B CN 201210504312 A CN201210504312 A CN 201210504312A CN 103856572 B CN103856572 B CN 103856572B
Authority
CN
China
Prior art keywords
address
home gateway
dhcp
terminal device
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210504312.7A
Other languages
Chinese (zh)
Other versions
CN103856572A (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.)
ZTE Corp
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 CN201210504312.7A priority Critical patent/CN103856572B/en
Publication of CN103856572A publication Critical patent/CN103856572A/en
Application granted granted Critical
Publication of CN103856572B publication Critical patent/CN103856572B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The embodiment of the present invention provides the method and home gateway of a kind of terminal device renewed treaty IP address, this method comprises: the IP address of terminal device is distributed by the dynamic host configuration protocol DHCP server being located in access net, home gateway (BRG) and access net (NLRG) between disconnecting when, the dhcp message response function of the home gateway starting configuration, execute operations described below: receive terminal device transmission DHCP renew request message after, the home gateway to the terminal device send DHCP renew response message.In the embodiment of the present invention, after disconnecting between home gateway and access net, the dhcp message response function of home gateway starting configuration, after the DHCP for receiving terminal device transmission renews request message, IP address is sent to terminal device and renews message, to guarantee that terminal device can continue to normal use IP address.

Description

A kind of method and home gateway of terminal device renewed treaty IP address
Technical field
The present embodiments relate to the communications field more particularly to a kind of methods and home network of terminal device renewed treaty IP address It closes.
Background technique
Home gateway is the equipment between access network and home network, as shown in Figure 1, home gateway is mainly responsible for Exchanging between home network internal data and internet data and transformation.
As shown in Fig. 2, in NLRG(Network Located Residential Gateway, network side residence gateway) Scene in, the equipment for accessing network side provides private net address for home network.This mode can will be big on home gateway Part three-layer network function is transferred in the equipment of access network side, to simplify the complexity of the hardware and software of home gateway Degree reduces hardware cost, concentrates progress software release upgrade and more quick deployment new business.
In the scene of NLRG, home gateway is BRG(Bridge Residential Gateway, bridge type residence network It closes).Home network device can be IPTV(Internet Protocol Television, Internet television), home network Storage server (NAS) etc.;User equipment can be the equipment such as computer, mobile phone;Family's subnet equipment can be smart home net Network equipment, domestic safety monitoring network equipment etc..
In the scene of NLRG, the IP address inside home network is distributed by the equipment of access net side, if BRG Uplink WAN(Wide Area Network, wide area network) interface and access net side connection (such as xDSL, xPON, Ethernet, The connection types such as WiFi/3G/LTE) there is abnormal interrupt, then the home network device of user expires in dynamic IP addressing rental Afterwards, renewed treaty operation cannot be carried out from the DHCP Server in access network, so that original business inside home network can be interrupted. At this time, it will be interrupted inside home network based on the connection that IP agreement is communicated, cause the home network in user's use Internal data disconnecting is lost, the inconvenience for causing user to use even with user data.
Summary of the invention
The embodiment of the present invention provides the method and home gateway of a kind of terminal device renewed treaty IP address, home gateway with connect After entering the disconnecting between network, realize that the IP address of terminal device is renewed a contract.
The embodiment of the present invention provides a kind of method of terminal device renewed treaty IP address, and the IP address of terminal device is connect by being located at Dynamic host configuration protocol DHCP server distribution in networking, this method comprises:
When disconnecting between home gateway (BRG) and access net (NLRG), home gateway starting configuration Dhcp message response function executes operations described below:
Receive terminal device transmission DHCP renew request message after, the home gateway is sent to the terminal device DHCP renews response message.
It is preferred: the operation executed after the home gateway starting dhcp message response function further include:
After the DHCP request message for receiving terminal device transmission, the home gateway checks the IP address and medium of storage Access control MAC addresses mapping table distributes IP address corresponding with the MAC Address of the terminal device for the terminal device.
Preferred: the home gateway stores the IP address and the mode of MAC Address mapping table includes:
The home gateway passes through IP address described in the record storage dhcp message and MAC Address mapping table, Huo Zhesuo The IP address and MAC that the Dynamic Host Configuration Protocol server in access net is sent are received before stating disconnecting of the home gateway between access net Address mapping table.
It is preferred: the operation executed after the home gateway starting dhcp message response function further include: in the family When disconnecting between gateway and access net, be arranged the IP address information of the home gateway for access net in Dynamic Host Configuration Protocol server IP address information.
It is preferred: this method further include:
After the connection between the home gateway and access net restores, the home gateway is closed the dhcp message and is rung Function is answered, and Dynamic Host Configuration Protocol server of the dhcp message response record into the access net is sent.
The embodiment of the present invention provides a kind of home gateway, comprising:
Starting module starts the DynamicHost of configuration when for the home gateway and accessing the disconnecting between net Configuration protocol DHCP message response function;
DHCP renews module, for the home gateway receive terminal device transmission DHCP renew request message after, DHCP, which is sent, to the terminal device renews response message.
Preferably, the home gateway further include:
Memory module, for storing IP address and medium access control MAC Address mapping table;
IP distribution module checks institute after receiving the DHCP request message that terminal device is sent for the home gateway The IP address and MAC Address mapping table of memory module storage are stated, with the MAC of the terminal device for terminal device distribution The corresponding IP address in location.
Preferably, the home gateway further include:
Setup module, after starting the dhcp message response function for the starting module, in home gateway and access When disconnecting between net, the IP address that the home gateway is arranged is the IP address of Dynamic Host Configuration Protocol server in access is netted.
Preferably, the memory module includes:
Record sub module, for passing through IP address described in the record storage dhcp message and MAC Address mapping table;Or
Receiving submodule, for being received in access net before the disconnecting between the home gateway and access net The IP address and MAC Address mapping table that Dynamic Host Configuration Protocol server is sent.
Preferably, the home gateway further include:
Closedown module, for closing the dhcp message after connection between the home gateway and access net restores Response function, and Dynamic Host Configuration Protocol server of the dhcp message response record into the access net is sent.
Preferably, home gateway described in the home gateway is bridge type residence gateway BRG
In the embodiment of the present invention, after the disconnecting between home gateway and access net, home gateway starting configuration Dhcp message response function, after the DHCP for receiving terminal device transmission renews request message, with sending IP to terminal device Location renews message, to guarantee that terminal device can continue to normal use IP address.
Detailed description of the invention
Fig. 1 is the schematic diagram that home network is connect with access network by home gateway;
Fig. 2 is home network and access network connection schematic diagram under NLRG scene;
Fig. 3 is the flow diagram of the method for terminal device renewed treaty IP address provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of the method for terminal device renewed treaty IP address provided in an embodiment of the present invention;
Fig. 5 and Fig. 6 is the schematic diagram of the method for the terminal device renewed treaty IP address that the embodiment of the present invention one provides;
Fig. 7 and Fig. 8 is the schematic diagram of the method for the terminal device renewed treaty IP address that the embodiment of the present invention one provides;
Fig. 9 and Figure 10 is the structural schematic diagram of home gateway provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
The embodiment of the present invention provides a kind of method of terminal device renewed treaty IP address, and the IP address of terminal device is by access net Interior Dynamic Host Configuration Protocol server distribution, as shown in figure 3, this method comprises:
Step 301, when disconnecting between home gateway and access net, the dynamic master of home gateway starting configuration Machine configuration protocol DHCP message response function.
Step 302, it is with accessing the IP for netting interior DHCP server that the IP address of the home gateway, which is arranged, in home gateway Location.
Step 303, after the DHCP that home gateway receives terminal device transmission renews request message, Xiang Suoshu terminal device It sends DHCP and renews response message.
Preferably, the home gateway, which starts the operation executed after dhcp message response function, to include:
Step 304, it after the home gateway receives the DHCP request Request message that terminal device is sent, checks and deposits The IP address and medium access control MAC Address mapping table of storage, with the MAC of the terminal device for terminal device distribution The corresponding IP address in location.
It is to be appreciated that step 303 and 304 It is not necessary to precedence relationship, sequencing herein be only easy for distinguish not Same step.
Preferably, the home gateway stores the IP address and the mode of MAC Address mapping table includes but is not limited to:
The home gateway passes through IP address described in the record storage dhcp message and MAC Address mapping table, Huo Zhesuo State home gateway access net between disconnecting before receive access net in DHCP Server send IP address and MAC Address mapping table.The IP address and MAC Address mapping table can also be pre-configured in home gateway by user.
Preferably, this method can also include:
Step 305, after the connection between the home gateway and access net restores, described in the home gateway closing Dhcp message response function, and DHCP Server of the dhcp message response record into the access net is sent.Subsequent terminal The dhcp message of equipment is handled by NLRG.
Preferably, the DHCP that the home gateway is sent renews the rental period that IP address is carried in response message, the rent The rental period of the IP address of the DHCP Server setting in the access net can be less than with the time.
Below by the specific embodiment method that the embodiment of the present invention will be further explained provides.As shown in connection with fig. 4, wherein Home gateway is by taking BRG as an example, and the DHCP Server in access net is for being arranged in NLRG.
Embodiment one
In the present embodiment, the DHCP Server IP of NLRG is 192.168.1.1, address pool: 192.168.1.2- 192.168.1.254 the IP address rental period 14 hours;The DHCP ServerIP of BRG be 192.168.1.1, address pool: 192.168.1.2-192.168.1.254 the IP address rental period 10 minutes.
As shown in figure 5, NLRG runs DHCP service when the connection between BRG and NLRG is normal, BRG closes DHCP service. Subscriber terminal equipment to request at NLRT and obtains IP address by BRG.The MAC Address of subscriber terminal equipment PC is 00:00: 00:00:00:11, obtaining dynamic IP from NLRG is 192.168.1.2, and the rental period is 14 hours.
After BRG detects that wan interface interrupts, start itself DHCP Server, as shown in fig. 6, between BRG and NLRG Disconnecting initiates RENEW message after the T1 timer that the dhcp address of user PC is rented expires, and BRG is renewed to user PC, Renew the time 10 minutes.Herein, it is preferred that BRG stores IP/MAC table, i.e. IP address and MAC Address mapping table, the IP/MAC table It can be obtained by the record to dhcp message, especially DHCP request and response message.
After the wan interface of BRG restores, BRG closes DHCP Server;It is restored to state shown in Fig. 4.The DHCP of user PC After the T1 timer of address lease expires, RENEW message is initiated, NLRG renews or redistribute IP address to user PC.
Embodiment two
In the present embodiment, the DHCP Server IP of NLRG is 192.168.1.1, address pool: 192.168.1.2- 192.168.1.254 the IP address rental period 14 hours;The DHCP ServerIP of BRG be 192.168.1.1, address pool: 192.168.1.2-192.168.1.254 the IP address rental period 10 minutes.
As shown in fig. 7, NLRG runs DHCP service when the connection between BRG and NLRG is normal, BRG closes DHCP service. Subscriber terminal equipment to request at NLRT and obtains IP address by BRG.The MAC Address of subscriber terminal equipment PC is 00:00: 00:00:00:11, obtaining dynamic IP from NLRG is 192.168.1.2, and the rental period is 14 hours.
After BRG detects that wan interface interrupts, start itself DHCP Server, as shown in figure 8, between BRG and NLRG Disconnecting initiates RENEW message after the T1 timer that the dhcp address of user PC is rented expires, and BRG is renewed to user PC, Renew the time 10 minutes.Herein, it is preferred that BRG stores IP address and MAC Address mapping table, the mapping table can be by following Mode obtains: when the connection between BRG and NLRG is normal, NLRG sends all information of DHCP to BRG, by IP address and MAC Location mapping table is sent to BRG.
After the wan interface of BRG restores, BRG closes DHCP Server;It is restored to state shown in Fig. 6.The DHCP of user PC After the T1 timer of address lease expires, RENEW message is initiated, NLRG renews or redistribute IP address to user PC.
In the embodiment of the present invention, after the disconnecting between home gateway and access net, home gateway starting configuration Dhcp message response function sends IP address to terminal device after the DHCP Review message for receiving terminal device transmission Message is renewed, to guarantee that terminal device can continue to normal use IP address.Moreover, home gateway can also store IP address With MAC Address mapping table, IP address can be distributed for the terminal device newly accessed according to the mapping table home gateway.
Based on technical concept identical with above method embodiment, the embodiment of the present invention also provides a kind of home gateway, such as Shown in Fig. 9, comprising:
Starting module 10 starts the dynamic master of configuration when for the home gateway and accessing the disconnecting between net Machine configuration protocol DHCP message response function;
DHCP renews module 20, and the DHCP for receiving terminal device transmission for the home gateway renews request message Afterwards, Xiang Suoshu terminal device sends DHCP and renews response message.
Preferably, as shown in Figure 10, the home gateway further include:
Memory module 30, for storing IP address and medium access control MAC Address mapping table;
IP distribution module 40, after the DHCP Request message that terminal device is sent is received for the home gateway, The IP address and MAC Address mapping table of the memory module storage are checked, for terminal device distribution and the terminal device The corresponding IP address of MAC Address.
Preferably, home gateway further include: setup module 50 starts the dhcp message for the starting module 10 After response function, the IP address that the home gateway is arranged is the IP address of DHCPserver in access is netted.
Preferably, the memory module 40 includes:
Record sub module, for passing through IP address described in the record storage dhcp message and MAC Address mapping table;Or
Receiving submodule, for being received in access net before the disconnecting between the home gateway and access net The IP address and MAC Address mapping table that DHCP Server is sent.
Preferably, the home gateway further include:
Closedown module 60, for closing the DHCP and disappearing after the connection between the home gateway and access net restores Response function is ceased, and DHCPServer of the dhcp message response record into the access net is sent.
Preferably, the home gateway is BRG.
In the embodiment of the present invention, after the disconnecting between home gateway and access net, home gateway starting configuration Dhcp message response function sends IP address to terminal device after the DHCP Review message for receiving terminal device transmission Message is renewed, to guarantee that terminal device can continue to normal use IP address.Moreover, home gateway can also store IP address With MAC Address mapping table, IP address can be distributed for the terminal device newly accessed according to the mapping table home gateway.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program Related hardware is completed, and described program can store in computer readable storage medium, such as read-only memory, disk or CD Deng.Optionally, one or more integrated circuits can be used also to realize in all or part of the steps of above-described embodiment.Accordingly Ground, each module/unit in above-described embodiment can take the form of hardware realization, can also use the shape of software function module Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.

Claims (9)

1. the IP address of a kind of method of terminal device renewed treaty IP address, terminal device is matched by the DynamicHost being located in access net Set the distribution of protocol DHCP server, which is characterized in that this method comprises:
When the disconnecting between NLRG is netted in home gateway BRG and access, the dhcp message of the home gateway starting configuration is rung Function is answered, the IP address information that the home gateway is arranged is the IP address information of Dynamic Host Configuration Protocol server in access is netted, and is executed following Operation:
Receive terminal device transmission DHCP renew request message after, the home gateway to the terminal device send DHCP Response message is renewed, the DHCP renews the rental period that IP address is carried in response message, and the rental period is less than described The rental period of the IP address of Dynamic Host Configuration Protocol server setting.
2. the method as described in claim 1, it is characterised in that: executed after the home gateway starting dhcp message response function Operation further include:
After the DHCP request message for receiving terminal device transmission, the home gateway checks the IP address and medium access of storage MAC Address mapping table is controlled, distributes IP address corresponding with the MAC Address of the terminal device for the terminal device.
3. method according to claim 2, it is characterised in that: the home gateway stores the IP address and MAC Address reflects The mode of firing table includes:
The home gateway passes through IP address described in the record storage dhcp message and MAC Address mapping table or the family Front yard gateway receives the IP address and MAC Address that the Dynamic Host Configuration Protocol server in access net is sent before the disconnecting between access net Mapping table.
4. the method as described in claim 1, it is characterised in that: further include:
After the connection between the home gateway and access net restores, the home gateway closes the dhcp message and responds function Can, and Dynamic Host Configuration Protocol server of the dhcp message response record into the access net is sent.
5. a kind of home gateway, it is characterised in that: include:
Starting module starts the dynamic host configuration of configuration when for the home gateway and accessing the disconnecting between net Protocol DHCP messages response function, the IP address that the home gateway is arranged is the IP address of Dynamic Host Configuration Protocol server in access is netted;
DHCP renews module, for the home gateway receive terminal device transmission DHCP renew request message after, to institute It states terminal device transmission DHCP and renews response message, the DHCP renews the rental period for carrying IP address in response message, institute State rental period of the rental period less than the IP address of Dynamic Host Configuration Protocol server setting;
Wherein, the IP address of the terminal device is distributed by the dynamic host configuration protocol DHCP server being located in access net.
6. home gateway as claimed in claim 5, it is characterised in that: further include:
Memory module, for storing IP address and medium access control MAC Address mapping table;
IP distribution module after receiving the DHCP request message that terminal device is sent for the home gateway, checks described deposit The IP address and MAC Address mapping table of module storage are stored up, for the MAC Address pair of terminal device distribution and the terminal device The IP address answered.
7. home gateway as claimed in claim 6, it is characterised in that: the memory module includes:
Record sub module, for passing through IP address described in the record storage dhcp message and MAC Address mapping table;Or
Receiving submodule takes for receiving the DHCP in access net before the disconnecting between the home gateway and access net The IP address and MAC Address mapping table that business device is sent.
8. home gateway as claimed in claim 6, it is characterised in that: further include:
Closedown module, for closing the dhcp message response after connection between the home gateway and access net restores Function, and Dynamic Host Configuration Protocol server of the dhcp message response record into the access net is sent.
9. such as the described in any item home gateways of claim 6-8, it is characterised in that:
The home gateway is bridge type residence gateway BRG.
CN201210504312.7A 2012-11-30 2012-11-30 A kind of method and home gateway of terminal device renewed treaty IP address Active CN103856572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210504312.7A CN103856572B (en) 2012-11-30 2012-11-30 A kind of method and home gateway of terminal device renewed treaty IP address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210504312.7A CN103856572B (en) 2012-11-30 2012-11-30 A kind of method and home gateway of terminal device renewed treaty IP address

Publications (2)

Publication Number Publication Date
CN103856572A CN103856572A (en) 2014-06-11
CN103856572B true CN103856572B (en) 2019-04-09

Family

ID=50863776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210504312.7A Active CN103856572B (en) 2012-11-30 2012-11-30 A kind of method and home gateway of terminal device renewed treaty IP address

Country Status (1)

Country Link
CN (1) CN103856572B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375415B (en) * 2016-08-31 2019-10-22 东软集团股份有限公司 The dynamic setting method and device in rental period
CN109660378B (en) * 2017-10-12 2022-04-29 中兴通讯股份有限公司 Method, device, equipment and storage medium for maintaining normal communication of home gateway
CN110661902B (en) * 2019-09-26 2022-06-03 浪潮商用机器有限公司 Method for monitoring client renewal
CN111683161A (en) * 2020-05-18 2020-09-18 新华三技术有限公司 Access method, device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459972A (en) * 2008-12-09 2009-06-17 中兴通讯股份有限公司 Method and access gateway for implementing user access holding in WiMAX system
CN101795449A (en) * 2010-01-07 2010-08-04 杭州华三通信技术有限公司 Wireless network terminal access control method and device thereof
CN102394950A (en) * 2011-12-23 2012-03-28 中国电信股份有限公司 Method and system for IP address distribution of network security terminal under home gateway
CN102647486A (en) * 2012-04-28 2012-08-22 华为技术有限公司 Address distributing method, address distributing equipment and address distributing system
CN102685270A (en) * 2012-05-25 2012-09-19 杭州华三通信技术有限公司 Method and equipment for distributing dynamic addresses

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7530101B2 (en) * 2003-02-21 2009-05-05 Telecom Italia S.P.A. Method and system for managing network access device using a smart card

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459972A (en) * 2008-12-09 2009-06-17 中兴通讯股份有限公司 Method and access gateway for implementing user access holding in WiMAX system
CN101795449A (en) * 2010-01-07 2010-08-04 杭州华三通信技术有限公司 Wireless network terminal access control method and device thereof
CN102394950A (en) * 2011-12-23 2012-03-28 中国电信股份有限公司 Method and system for IP address distribution of network security terminal under home gateway
CN102647486A (en) * 2012-04-28 2012-08-22 华为技术有限公司 Address distributing method, address distributing equipment and address distributing system
CN102685270A (en) * 2012-05-25 2012-09-19 杭州华三通信技术有限公司 Method and equipment for distributing dynamic addresses

Also Published As

Publication number Publication date
CN103856572A (en) 2014-06-11

Similar Documents

Publication Publication Date Title
CN102752389B (en) Configuration method of wireless router based on mobile data network and system thereof
EP2654268B1 (en) Address allocation processing method and apparatus
US10116489B2 (en) Apparatus and method for managing network access device
RU2556468C2 (en) Terminal access authentication method and customer premise equipment
US10534600B2 (en) Method and system for uniform remote management of network devices
CN102594635B (en) Based on the terminal access method of home gateway and system and home gateway
CN103856572B (en) A kind of method and home gateway of terminal device renewed treaty IP address
CN104135460B (en) A kind of push channel keepalive method and push server
JP5403302B2 (en) Method and apparatus for obtaining network setting information
CN103024462B (en) Method for network detection and digital terminal
CN109600292B (en) Method and system for LAC router to initiate L2TP tunnel connection by self dialing number
CN106302839A (en) The distribution method of internet protocol address and device
CN102394948B (en) DHCP (dynamic host configuration protocol) address distribution method and DHCP server
CN104969515A (en) Methods and gateways for processing DNS request
CN104618522A (en) Automatic updating method for IP address of terminal and Ethernet access device
CN106413127A (en) Method and system for connecting relay device with remote network management server, and the relay device
CN103220283A (en) Method, equipment and system for network sharing
CN102572002B (en) Dynamic domain name update method and system
CN102149172A (en) Method, device and system for selecting access gateway
CN109788528B (en) Access point and method and system for opening internet access service thereof
CN103051484B (en) Session service processing method, system and Session Border Controll
CN104754689A (en) Home gateway access management method and system
CN104812019A (en) Wireless network access method, wireless access equipment and wireless control equipment
WO2017161866A1 (en) Network connection method and device
CN101515881A (en) Method, device and system for transmitting initial configuration information of access point equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant