CN101883155B - WAN side information acquisition method and device of home gateway - Google Patents

WAN side information acquisition method and device of home gateway Download PDF

Info

Publication number
CN101883155B
CN101883155B CN201010176492.1A CN201010176492A CN101883155B CN 101883155 B CN101883155 B CN 101883155B CN 201010176492 A CN201010176492 A CN 201010176492A CN 101883155 B CN101883155 B CN 101883155B
Authority
CN
China
Prior art keywords
information
wan side
obtain manner
obtaining
mode
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
CN201010176492.1A
Other languages
Chinese (zh)
Other versions
CN101883155A (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 CN201010176492.1A priority Critical patent/CN101883155B/en
Publication of CN101883155A publication Critical patent/CN101883155A/en
Priority to PCT/CN2011/074322 priority patent/WO2011144036A1/en
Application granted granted Critical
Publication of CN101883155B publication Critical patent/CN101883155B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2834Switching of information between an external network and a home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements

Abstract

The invention discloses a WAN side information acquisition method of home gateway, which comprises the following steps of: A, automatically selecting a WAN side information acquisition mode; and B, according to the selected acquisition mode, acquiring the corresponding information of a WAN side. The invention further discloses a WAN side information acquisition device of the home gateway. Through automatically selecting the WAN side information acquisition mode, the invention lowers the complexity for accessing and acquiring IPv6 related information by configuring WAN, and improves user experience.

Description

A kind of home gateway obtains the method and apparatus of WAN side information
Technical field
The present invention relates to network service art field, particularly relate to the method and apparatus that a kind of home gateway obtains WAN (WideArea Network, wide area network) side information.
Background technology
Along with IPv4 (Internet Protocol Version 4, network protocol version 4) address exhausts and uses IP (Internet Protocol, procotol) equipment of address is more and more, there is Next Generation Internet protocol IP v6 (Internet Protocol Version 6, network protocol version six).The design of IPv6 is considered to the revolutionary step of IPv4, its is inherited, retains, revises, improves and has expanded IPv4 agreement, can increase dramatically IP network quantity, have huge address space and the remarkable features such as network security, not only can meet the demand of the Internet develop rapidly, and by the access way of plug and play, the authentication of network layer and encryption, the support of service quality and Mobile IP is become to the optimal selection of structure Next Generation Internet network.
At present, for home gateway that home network and Internet are coupled together, after supporting IPv6, the means of obtaining WAN side information on interface have diversity.As the obtain manner of address can pass through DHCPv6 client (Dynamic Host Configuration Protocol Version 6 client, DynamicHost arranges protocol edition 6 client service) mode obtain, also can carry out stateless address according to prefix information in router advertisement and automatically configure, can also pass through manual configuration; The obtain manner of DNS (Domain Name System, domain name system) can obtain by DHCPv6client, also can, by the DNS acquisition of information in router advertisement, can also pass through manual configuration; The obtaining of default gateway can come in router advertisement, also can manual configuration.
But, prior art is when obtaining WAN side information, every kind of information is all by user's manual configuration or manually specify obtain manner, and much information obtain manner combines and configures WAN to user and connect and to bring very large difficulty, require user to understand the configuring condition of upstream network environment, otherwise probably because configuration error obtains less than WAN side information, thereby cause network failure.
Summary of the invention
The problem to be solved in the present invention is to provide the method and apparatus that a kind of home gateway obtains WAN side information, with overcome in prior art due to user's manual configuration information or manually appointed information obtain manner cause obtaining the defect less than WAN side information.
For achieving the above object, technical scheme of the present invention provides a kind of home gateway to obtain the method for WAN side information, said method comprising the steps of: A, automatically select the obtain manner of WAN side information; B, according to the obtain manner of selecting, obtain information corresponding to WAN side.
Further, in described steps A, comprise: A1, the priority of multiple obtain manner is set; A2, according to the priority arranging, select the high obtain manner of priority.
Further, described steps A 1, comprising: the priority of multiple obtain manner is set according to the M in router advertisement and O field, specifically comprises: when the M field in router advertisement is a, arrange that by DHCPv6, to obtain the priority of mode of address the highest; When the M field in router advertisement is b, the prefix information providing is set carries out stateless address automatically the priority of the mode of configuration is the highest according to router advertisement; When the O field in router advertisement is c, arrange that by DHCPv6, to obtain the priority of mode of DNS information the highest; When the O field in router advertisement is d, arrange that according to router advertisement, to obtain the priority of mode of DNS information the highest; The value of described a be 0 or the value of 1, b be 0 the value of 1, c be 0 or the value of 1, d be 0 or 1, and a and b be different values, c and d are different values.
Further, when the M field in router advertisement and/or O field change, the priority that multiple obtain manner is set according to the M field after changing and/or O field.
Further, after described step B, comprising: C, judge that whether information corresponding to described WAN side is obtained successfully, if so, finishes; Otherwise go to step D; D, judge whether all obtain manners were all selected, if so, go to step E; Otherwise go to step A, select lower a kind of obtain manner; E, judge whether to arrange circulation and select, if so, go to step A; Otherwise finish.
Further, before described steps A, comprising: the obtaining mode of F, judgement WAN side information, fully automatic mode, goes to step A if; Otherwise go to step G; Described fully automatic mode is that the information of all WAN sides is all selected obtain manner automatically; G, the information of the WAN side of automatic selection obtain manner is gone to step to A, carry out the selection of obtain manner; To the information of remaining WAN side by user's manual configuration or manually specify obtain manner.
Further, after described step G, comprising: when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, if the obtaining mode of WAN side information is semi-automatic pattern, finish obtaining of described information; If the obtaining mode of WAN side information is the semi-automatic pattern with correction capability, go to step A, automatically select the obtain manner of described information; Described semi-automatic pattern is that the information of part WAN side is selected obtain manner automatically, the information of remaining WAN side is by user's manual configuration or manually specify obtain manner, and when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, finish obtaining of described information; The information that the described semi-automatic pattern with correction capability is part WAN side is selected obtain manner automatically, the information of remaining WAN side is by user's manual configuration or manually specify obtain manner, and when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, automatically select the obtain manner of described information.
Further, described WAN side information comprises: global address, DNS, default route.
The device that technical scheme of the present invention also provides a kind of home gateway to obtain WAN side information, described device comprises: obtain manner selected cell, for automatically selecting the obtain manner of WAN side information; Information acquisition unit, the obtain manner for according to selecting, obtains information corresponding to WAN side.
Further, described device also comprises pattern configurations unit, and for configuring the obtaining mode of the information of described WAN side, described obtaining mode comprises fully automatic mode, semi-automatic pattern, with the semi-automatic pattern of correction capability; Described fully automatic mode is that the information of all WAN sides is all selected obtain manner automatically; Described semi-automatic pattern is that the information of part WAN side is selected obtain manner automatically, the information of remaining WAN side is by user's manual configuration or manually specify obtain manner, and when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, finish obtaining of described information; The information that the described semi-automatic pattern with correction capability is part WAN side is selected obtain manner automatically, the information of remaining WAN side is by user's manual configuration or manually specify obtain manner, and when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, automatically select the obtain manner of described information.
Further, described information acquisition unit comprises: router advertisement processing module, for obtain information corresponding to WAN side by router advertisement mode; DHCPv6 client module, for obtaining information corresponding to WAN side by DHCP mode.
Compared with prior art, beneficial effect of the present invention is as follows:
The present invention, by automatically selecting the obtain manner of WAN side information, has reduced configuration WAN and has connected the complexity of obtaining IPv6 relevant information, has promoted user's experience.
Accompanying drawing explanation
Fig. 1 is the method flow diagram that a kind of home gateway of the present invention obtains WAN side information;
Fig. 2 is the flow chart of the processing procedure of the present invention under the obtaining mode of different WAN side information;
Fig. 3 is the structural representation that a kind of home gateway of the present invention obtains the device of WAN side information;
Fig. 4 is the networking diagram of a kind of home gateway system of the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used for illustrating the present invention, but are not used for limiting the scope of the invention.
As shown in Figure 1, described WAN side information comprises global address, DNS, default route to the method flow that a kind of home gateway of the present invention obtains WAN side information.With reference to Fig. 1, the present invention includes following steps:
Step s101, selects the obtain manner of WAN side information automatically.First the priority of multiple obtain manner is set, then according to the priority arranging, selects the high obtain manner of priority.In the process of priority that multiple obtain manner is set, the priority of multiple obtain manner can be set according to the M in router advertisement and O field, for example: when the M field in router advertisement is a, arrange that by DHCPv6, to obtain the priority of mode of address the highest; When the M field in router advertisement is b, the prefix information providing is set carries out stateless address automatically the priority of the mode of configuration is the highest according to router advertisement; When the O field in router advertisement is c, arrange that by DHCPv6, to obtain the priority of mode of DNS information the highest; When the O field in router advertisement is d, arrange that according to router advertisement, to obtain the priority of mode of DNS information the highest; Wherein, the value of described a be 0 or the value of 1, b be 0 the value of 1, c be 0 or the value of 1, d be 0 or 1, and a and b be different values, c and d are different values.And, when the M field in router advertisement and/or O field change, the priority that can multiple obtain manner be set according to the M field after changing and/or O field.
Step s102, the obtain manner according to selecting, obtains information corresponding to WAN side.
Step s103, judges that whether information corresponding to WAN side is obtained successfully, if so, finishes; Otherwise go to step s104.
Step s104, judges whether all obtain manners were all selected, and if so, goes to step s105; Otherwise go to step s101, select lower a kind of obtain manner.
Step s105, judges whether to arrange circulation and selects, and if so, goes to step s101; Otherwise finish.
The present invention, before step s101, also comprises the process of the obtaining mode of judgement WAN side information, and the obtaining mode of this WAN side information comprises fully automatic mode, semi-automatic pattern, with the semi-automatic pattern of correction capability; Described fully automatic mode is that the information of all WAN sides is all selected obtain manner automatically; Described semi-automatic pattern is that the information of part WAN side is selected obtain manner automatically, the information of remaining WAN side is by user's manual configuration or manually specify obtain manner, and when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, finish obtaining of described information; The information that the described semi-automatic pattern with correction capability is part WAN side is selected obtain manner automatically, the information of remaining WAN side is by user's manual configuration or manually specify obtain manner, and when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, automatically select the obtain manner of described information.The processing procedure of the present invention under the obtaining mode of different WAN side information as shown in Figure 2, comprises the following steps:
Step s201, the obtaining mode of judgement WAN side information.Fully automatic mode, goes to step s208 if; Semi-automatic pattern, goes to step s202 if; With the semi-automatic pattern of correction capability, go to step s205 if.
Step s202, determines whether automatically to select the information of the WAN side of obtain manner, if so, goes to step s208; Otherwise go to step s203.
Step s203, by user's manual configuration or manually specify obtain manner.
Step s204, when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, finishes obtaining of described information;
Step s205, determines whether automatically to select the information of the WAN side of obtain manner, if so, goes to step s208; Otherwise go to step s206.
Step s206, by user's manual configuration or manually specify obtain manner.
Step s207, when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, goes to step s208.
Step s208, selects the obtain manner of WAN side information automatically.
The device that a kind of home gateway of the present invention obtains WAN side information as shown in Figure 3, described device comprises pattern configurations unit 31, obtain manner selected cell 32 and information acquisition unit 33, and wherein obtain manner selected cell 32 is connected with information acquisition unit 33 with pattern configurations unit 31 respectively.
Pattern configurations unit 31 is for configuring the obtaining mode of the information of WAN side, and described obtaining mode comprises fully automatic mode, semi-automatic pattern, with the semi-automatic pattern of correction capability.Fully automatic mode is that the information of all WAN sides is all selected obtain manner automatically; Semi-automatic pattern is that the information of part WAN side is selected obtain manner automatically, the information of remaining WAN side is by user's manual configuration or manually specify obtain manner, and when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, finish obtaining of described information; The information that is part WAN side with the semi-automatic pattern of correction capability is selected obtain manner automatically, the information of remaining WAN side is by user's manual configuration or manually specify obtain manner, and when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, automatically select the obtain manner of described information.
Obtain manner selected cell 32 is for automatically selecting the obtain manner of WAN side information.The main configuration of being responsible for receiving user, carries out obtaining of WAN side information according to user's configuration control information acquiring unit 33 according to the mode of appointment simultaneously; And provide query interface for the inquiry of other modules, and notice is concerned about the module of WAN side information updating while having information updating at every turn.
Information acquisition unit 33 is obtained information corresponding to WAN side for the obtain manner according to selecting, and it comprises router advertisement processing module 331 and DHCPv6 client module 332.
Router advertisement processing module 331 is for obtaining information corresponding to WAN side by router advertisement mode.Mainly there are two functions: (1) provides the information of M and O field in router advertisement to obtain manner selected cell 32, notice obtain manner selected cell 32 in time when changing.Two, obtaining of appointed information carried out in the control of response obtain manner selected cell 32, and information is returned to obtain manner selected cell 32.If can not get corresponding information, also notify in time obtain manner selected cell 32.
DHCPv6 client module 332 is for obtaining information corresponding to WAN side by DHCP mode.Major function is: obtaining of appointed information carried out in the control of response obtain manner selected cell 32, and information is returned to obtain manner selected cell 32.If can not get corresponding information, also notify in time obtain manner selected cell 32.
When adopting the home gateway shown in Fig. 3 to obtain the device of WAN side information, the method that the embodiment of the present invention is obtained WAN side information to home gateway under the obtaining mode three kinds of WAN side information is respectively elaborated.
1, when user selects fully automatic mode, first the information providing according to router advertisement processing module 331, judge the mode that various information can be obtained, if the M field in router advertisement is 1 o'clock, expression can be obtained address by DHCPv6, otherwise represents that the prefix information that need to provide according to router advertisement carries out stateless address and automatically configures; O field in router advertisement is 1 o'clock, and expression can be obtained DNS information by DHCPv6, otherwise expression need to be according to router advertisement; And default route only has a kind of obtain manner, so directly obtain by router advertisement.Then notify router advertisement processing module 331 and DHCPv6 client module 332 to carry out obtaining of appointed information.When router advertisement processing module 331 and DHCPv6 client module 332 can not get the information of appointment, notify in time obtain manner selected cell 32, after 32 decision-makings of obtain manner selected cell, to corresponding information, select other mode, notify again router advertisement processing module 331 and DHCPv6 client module 332 to carry out obtaining of appointed information.Until all methods trials are complete.If configured circulation, attempt, loop trial, otherwise stop obtaining WAN side information.
When the M in router advertisement processing module 331 discovery advertising of routes and O field change, proactive notification obtain manner selected cell 32,32 information that provide according to router advertisement processing module 331 of obtain manner selected cell, again decision-making, and notify router advertisement processing module 331 and DHCPv6client module 332 to carry out obtaining of appointed information.
2,, when user selects semi-automatic pattern, if user has configured the value of corresponding information, directly use this value; If user has configured the obtain manner of information, notify router advertisement processing module 331 and DHCPv6 client module 332 to carry out obtaining of appointed information, if router advertisement processing module 331 and DHCPv6 client module 332 can not get corresponding information, notice is to obtain manner selected cell 32, and obtain manner selected cell 32 still notifies this method that two modules continue user's appointment to obtain.And the information that user is not configured, the information that obtain manner selected cell 32 provides according to router advertisement processing module 331 is judged the mode that various information can be obtained, and notifies router advertisement processing module 331 and DHCPv6 client module 332 to carry out obtaining of appointed information.When router advertisement processing module 331 and DHCPv6 client module 332 can not get the information of appointment, notify in time obtain manner selected cell 32, after 32 decision-makings of obtain manner selected cell, to corresponding information, select other mode, and notify router advertisement processing module 331 and DHCPv6 client module 332 to carry out obtaining of appointed information.Until all methods trials are complete.If configured circulation, attempt, loop trial, otherwise stop obtaining WAN side information.
3, when the semi-automatic pattern of user's select tape correction capability, if user has configured the value of corresponding information, first judge whether user configured value can be used, if can use, the value that user configures, otherwise the information that obtain manner selected cell 32 provides according to router advertisement processing module 331 is judged the mode that various information can be obtained, and notify router advertisement processing module 331 and DHCPv6 client module 332 to carry out obtaining of appointed information.When router advertisement processing module 331 and DHCPv6 client module 332 can not get the information of appointment, notify in time obtain manner selected cell 32, after 32 decision-makings of obtain manner selected cell, to corresponding information, select other mode, and notify router advertisement processing module 331 and DHCPv6 client module 332 to carry out obtaining of appointed information.Until all methods trials are complete.If configured circulation, attempt, loop trial, otherwise stop obtaining this information.
If user has configured the obtain manner of corresponding information, notify router advertisement processing module 331 and DHCPv6 client module 332 to carry out obtaining of appointed information, if router advertisement processing module 331 and DHCPv6 client module 332 can not get corresponding information, notify in time obtain manner selected cell 32, after 32 decision-makings of obtain manner selected cell, to corresponding information, select other mode, and notify router advertisement processing module 331 and DHCPv6 client module 332 to carry out obtaining of appointed information.Until all methods trials are complete.If configured circulation, attempt, loop trial, otherwise stop obtaining this information.
And the information that user is not configured, the information that obtain manner selected cell 32 provides according to router advertisement processing module 331 is judged the mode that various information can be obtained, and notifies router advertisement processing module 331 and DHCPv6 client module 332 to carry out obtaining of appointed information.When router advertisement processing module 331 and DHCPv6 client module 332 can not get the information of appointment, notify in time obtain manner selected cell 32, after 32 decision-makings of obtain manner selected cell, to corresponding information, select other mode, and notify router advertisement processing module 331 and DHCPv6 client module 332 to carry out obtaining of appointed information.Until all methods trials are complete.If configured circulation, attempt, loop trial, otherwise stop obtaining this information.
The networking diagram of a kind of home gateway system of the embodiment of the present invention as shown in Figure 4, comprises BAS Broadband Access Server Bas, DHCPv6 server and three gateways: gateway 1, gateway 2, gateway 3.Native system middle and upper reaches network is used router advertisement to send default route, uses DHCPv6 issue DNS and distributing IP v6 address, and M field and O field in router advertisement are all arranged to 1.Wherein gateway 1 adopts fully automatic mode to obtain the information of WAN side; Gateway 2 adopts semi-automatic pattern, manual configuration default route, and the method for obtaining DNS is DHCPv6 client, all the other are automatic; Gateway 3 adopts the semi-automatic pattern with correction capability, manual configuration a wrong default route, and the method for having selected to obtain DNS is router advertisement mode, all the other are automatic.
When adopting the networking structure shown in Fig. 4 and the home gateway shown in Fig. 3 to obtain the device of WAN side information, the method that a kind of home gateway of the present embodiment obtains WAN side information is as follows:
The process that gateway 1 obtains WAN side information is: router advertisement processing module 331 parses M field and the O field in router advertisement, and information is passed to obtain manner selected cell 32, obtain manner selected cell 32 notice router advertisement processing modules 331 are obtained default route, and notice DHCPv6 client module 332 is obtained address and DNS.These two modules are obtained successfully and afterwards corresponding information are returned to obtain manner selected cell 32, and obtain manner selected cell 32 is in time by the module of these information exchange MS hearts WAN link information.
The process that gateway 2 obtains WAN side information is: first obtain manner selected cell 32 is notified the default route information of manual configuration to the module of being concerned about WAN link information, then obtain manner selected cell 32 notice DHCPv6 client modules are obtained DNS, M field and O field in the last router advertisement parsing according to router advertisement processing module 331, decision-making goes out IPv6 address and adopts the mode of DHCPv6 to obtain, and notice DHCPv6 client module 332 is obtained IPv6 address.These two modules are obtained successfully and afterwards corresponding information are returned to obtain manner selected cell 32, and obtain manner selected cell 32 is concerned about these notices the module of WAN link information in time.
The process that gateway 3 obtains WAN side information is: obtain manner selected cell 32 is judged the incorrect router advertisement processing module 331 of notifying immediately of default route and carried out obtaining of default route, then notifies router advertisement processing module 331 to carry out obtaining of DNS.Now router advertisement processing module 331 can not obtain DNS and notify obtain manner selected cell 32, notifies DHCPv6 client module 332 to carry out obtaining of DNS after 32 decision-makings of obtain manner selected cell.After two modules are obtained appointed information success, corresponding information is returned to obtain manner selected cell 32, obtain manner selected cell 32 is concerned about these notices the module of WAN link information in time.
In the networking structure shown in Fig. 4, in the time of after gateway upstream network changes, the WAN side informational needs of the present embodiment obtains again, now upstream network is used router advertisement to send default gateway, DNS and prefix information, use DHCPv6 issue DNS and address, the M in router advertisement and O field are all arranged to 0.The acquisition methods of the WAN side information of the present embodiment is as follows:
In gateway 1, router advertisement processing module 331 finds that variation has occurred for M field and O field in router advertisement, notice obtain manner selected cell 32, obtain manner selected cell 32 removes and notifies by the DNS obtaining before and address information the module of being concerned about WAN link information, notify router advertisement processing module 331 to obtain DNS simultaneously and carry out stateless address and automatically configure, router advertisement processing module 331 gets after corresponding information, return to obtain manner selected cell 32, the module of obtain manner selected cell 32 notice care in time WAN link information.
In gateway 2, router advertisement processing module 331 finds that variation has occurred for M field and O field in router advertisement, notice obtain manner selected cell 32, obtain manner selected cell 32 is removed IPv6 address before and DNS, and the module of notice care WAN link information, then notify DHCPv6 client module 332 and router advertisement processing module 331 to carry out respectively obtaining of DNS and carry out stateless address automatically configuring.After two modules are obtained appointed information success, corresponding information is returned to obtain manner selected cell 32, the module of obtain manner selected cell 32 notice care in time WAN link information.
In gateway 3, router advertisement processing module 331 finds that variation has occurred for M field and O field in router advertisement, notice obtain manner selected cell 32, obtain manner selected cell 32 is removed IPv6 address before and DNS, and the module of notice care WAN link information, then notify router advertisement processing module 331 to carry out obtaining of DNS and carry out stateless address automatically configuring.Router advertisement processing module 331 returns to obtain manner selected cell 32 by corresponding information after obtaining appointed information success, the module of obtain manner selected cell 32 notice care in time WAN link information.
The present invention, by automatically selecting the obtain manner of WAN side information, has reduced configuration WAN and has connected the complexity of obtaining IPv6 relevant information, has promoted user's experience; When upstream network environment changes simultaneously, can self adaptation adjustment obtain the method for WAN side information, and not need user to change any configuration, improve the adaptive ability of gateway.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, do not departing under the prerequisite of the technology of the present invention principle; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. home gateway obtains a method for WAN side information, it is characterized in that, said method comprising the steps of:
A, automatically select the obtain manner of WAN side information;
B, according to the obtain manner of selecting, obtain information corresponding to WAN side;
Before described steps A, comprising: the process of the obtaining mode of judgement WAN side information, the obtaining mode of described WAN side information comprises fully automatic mode, semi-automatic pattern, with the semi-automatic pattern of correction capability;
Described fully automatic mode is that the information of all WAN sides is all selected obtain manner automatically;
Described semi-automatic pattern is that the information of part WAN side is selected obtain manner automatically, the information of remaining WAN side is by user's manual configuration or manually specify obtain manner, and when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, finish obtaining of described information;
The information that the described semi-automatic pattern with correction capability is part WAN side is selected obtain manner automatically, the information of remaining WAN side is by user's manual configuration or manually specify obtain manner, and when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, automatically select the obtain manner of described information.
2. home gateway as claimed in claim 1 obtains the method for WAN side information, it is characterized in that, in described steps A, comprises:
A1, the priority of multiple obtain manner is set;
A2, according to the priority arranging, select the high obtain manner of priority.
3. home gateway as claimed in claim 2 obtains the method for WAN side information, it is characterized in that, described steps A 1, comprising: the priority of multiple obtain manner is set according to the M in router advertisement and O field, specifically comprises:
When the M field in router advertisement is a, arrange that by DHCPv6, to obtain the priority of mode of address the highest;
When the M field in router advertisement is b, the prefix information providing is set carries out stateless address automatically the priority of the mode of configuration is the highest according to router advertisement;
When the O field in router advertisement is c, arrange that by DHCPv6, to obtain the priority of mode of DNS information the highest;
When the O field in router advertisement is d, arrange that according to router advertisement, to obtain the priority of mode of DNS information the highest;
The value of described a be 0 or the value of 1, b be 0 the value of 1, c be 0 or the value of 1, d be 0 or 1, and a and b be different values, c and d are different values.
4. home gateway as claimed in claim 3 obtains the method for WAN side information, it is characterized in that, and when the M field in router advertisement and/or O field change, the priority that multiple obtain manner is set according to the M field after changing and/or O field.
5. home gateway as claimed in claim 1 obtains the method for WAN side information, it is characterized in that, after described step B, comprising:
C, judge that whether information corresponding to described WAN side is obtained successfully, if so, finishes; Otherwise go to step D;
D, judge whether all obtain manners were all selected, if so, go to step E; Otherwise go to step A, select lower a kind of obtain manner;
E, judge whether to arrange circulation and select, if so, go to step A; Otherwise finish.
6. the home gateway as described in claim 1 to 5 any one obtains the method for WAN side information, it is characterized in that, before described steps A, comprising:
The obtaining mode of F, judgement WAN side information, fully automatic mode, goes to step A if; Otherwise go to step G;
G, the information of the WAN side of automatic selection obtain manner is gone to step to A, carry out the selection of obtain manner; To the information of remaining WAN side by user's manual configuration or manually specify obtain manner.
7. home gateway as claimed in claim 6 obtains the method for WAN side information, it is characterized in that, after described step G, comprising:
When user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, if the obtaining mode of WAN side information is semi-automatic pattern, finish obtaining of described information; If the obtaining mode of WAN side information is the semi-automatic pattern with correction capability, go to step A, automatically select the obtain manner of described information.
8. the home gateway as described in claim 1 to 5 any one obtains the method for WAN side information, it is characterized in that, the type of described WAN side information comprises: global address, DNS and default route.
9. home gateway obtains a device for WAN side information, it is characterized in that, described device comprises:
Obtain manner selected cell, for automatically selecting the obtain manner of WAN side information;
Information acquisition unit, the obtain manner for according to selecting, obtains information corresponding to WAN side;
Described device also comprises pattern configurations unit, and for configuring the obtaining mode of the information of described WAN side, described obtaining mode comprises fully automatic mode, semi-automatic pattern, with the semi-automatic pattern of correction capability;
Described fully automatic mode is that the information of all WAN sides is all selected obtain manner automatically;
Described semi-automatic pattern is that the information of part WAN side is selected obtain manner automatically, the information of remaining WAN side is by user's manual configuration or manually specify obtain manner, and when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, finish obtaining of described information;
The information that the described semi-automatic pattern with correction capability is part WAN side is selected obtain manner automatically, the information of remaining WAN side is by user's manual configuration or manually specify obtain manner, and when user's manual configuration mistake or the failure of the manual appointment of employing obtain manner obtaining information, automatically select the obtain manner of described information.
10. home gateway as claimed in claim 9 obtains the device of WAN side information, it is characterized in that, described information acquisition unit comprises:
Router advertisement processing module, for obtaining information corresponding to WAN side by router advertisement mode;
DHCPv6client module, for obtaining information corresponding to WAN side by DHCP mode.
CN201010176492.1A 2010-05-19 2010-05-19 WAN side information acquisition method and device of home gateway Expired - Fee Related CN101883155B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010176492.1A CN101883155B (en) 2010-05-19 2010-05-19 WAN side information acquisition method and device of home gateway
PCT/CN2011/074322 WO2011144036A1 (en) 2010-05-19 2011-05-19 Method and device for home gateway obtaining wide area network side information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010176492.1A CN101883155B (en) 2010-05-19 2010-05-19 WAN side information acquisition method and device of home gateway

Publications (2)

Publication Number Publication Date
CN101883155A CN101883155A (en) 2010-11-10
CN101883155B true CN101883155B (en) 2014-03-19

Family

ID=43055037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010176492.1A Expired - Fee Related CN101883155B (en) 2010-05-19 2010-05-19 WAN side information acquisition method and device of home gateway

Country Status (2)

Country Link
CN (1) CN101883155B (en)
WO (1) WO2011144036A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883155B (en) * 2010-05-19 2014-03-19 中兴通讯股份有限公司 WAN side information acquisition method and device of home gateway
CN102594940B (en) * 2012-02-20 2014-11-19 烽火通信科技股份有限公司 Method for dynamically configuring IPv6 (internet protocol version 6) for home gateway
CN103581353B (en) * 2012-08-02 2018-06-19 上海斐讯数据通信技术有限公司 The method of automatic configuration and system of gateway device
CN105282026A (en) * 2014-06-23 2016-01-27 国基电子(上海)有限公司 Default gateway selecting system and method
CN111404708B (en) * 2019-01-02 2023-05-09 中国移动通信有限公司研究院 Route configuration method, router and home gateway
CN112272244B (en) * 2020-10-22 2023-02-17 北京自如信息科技有限公司 Router WAN end IPv6 internet mode configuration method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859444A (en) * 2006-03-03 2006-11-08 华为技术有限公司 Automatic configurating method for host address in IPV6 network
WO2008010662A2 (en) * 2006-07-18 2008-01-24 Lg Electronics Inc. Method for pre-configuration of ip address in mobile communication system
CN101465951A (en) * 2007-12-21 2009-06-24 康佳集团股份有限公司 Method and device for dynamically configuring IPv6 of IPv6 set-top box
CN101518022A (en) * 2006-09-20 2009-08-26 三星电子株式会社 Method and apparatus for configuring internet protocol address, information server, and information storage medium storing data format of message therefor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883155B (en) * 2010-05-19 2014-03-19 中兴通讯股份有限公司 WAN side information acquisition method and device of home gateway

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859444A (en) * 2006-03-03 2006-11-08 华为技术有限公司 Automatic configurating method for host address in IPV6 network
WO2008010662A2 (en) * 2006-07-18 2008-01-24 Lg Electronics Inc. Method for pre-configuration of ip address in mobile communication system
CN101518022A (en) * 2006-09-20 2009-08-26 三星电子株式会社 Method and apparatus for configuring internet protocol address, information server, and information storage medium storing data format of message therefor
CN101465951A (en) * 2007-12-21 2009-06-24 康佳集团股份有限公司 Method and device for dynamically configuring IPv6 of IPv6 set-top box

Also Published As

Publication number Publication date
WO2011144036A1 (en) 2011-11-24
CN101883155A (en) 2010-11-10

Similar Documents

Publication Publication Date Title
CN101883155B (en) WAN side information acquisition method and device of home gateway
US20090279454A1 (en) Method for configuring a dhcp server using dhcp option 82
US9749287B2 (en) Interface directionality assignment
EP2316192B1 (en) Incremental and targeted auto-discovery of network devices
CN102594940B (en) Method for dynamically configuring IPv6 (internet protocol version 6) for home gateway
CN102035676B (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
US9455866B2 (en) Auto-configuration of network devices
CN102158407B (en) Address resolution protocol (ARP) table entry configuration method and device
CN105245638A (en) Address distribution method, equipment and system
CN102148879A (en) Port mapping method and device and communication system
WO2016079002A1 (en) Method and system for uniform remote management of network devices
RU2625934C2 (en) Provision of network subscribers with ip addresses
CN106304401B (en) Data tunnel establishment method under public WLAN architecture and AP
EP2822238B1 (en) Method and device for establishing a pseudo wire
CN104509072A (en) Method and apparatus for configuring dhcp client
CN102959906B (en) Routing method and device for host in multi-homing site
CN104754070A (en) Method and device for learning address resolution protocol table entries and network device
US20120269092A1 (en) Auto-configuration of network devices
CN105813055B (en) IP-based loaming method and device
CN105591892B (en) A kind of starting method and apparatus of smooth restarting process
CN107769979B (en) Method for synchronous configuration between routers
EP2736222B1 (en) Service node and inter-service node user protocol message synchronization method
CN102857953B (en) Self-configuration method and device of base station
US20160269198A1 (en) Method for providing overlay network interworking with underlay network and system performing same
JP6406712B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140319

Termination date: 20170519

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