CN104852995B - For accessing method, home gateway and the system of Internet resources - Google Patents
For accessing method, home gateway and the system of Internet resources Download PDFInfo
- Publication number
- CN104852995B CN104852995B CN201410050638.6A CN201410050638A CN104852995B CN 104852995 B CN104852995 B CN 104852995B CN 201410050638 A CN201410050638 A CN 201410050638A CN 104852995 B CN104852995 B CN 104852995B
- Authority
- CN
- China
- Prior art keywords
- ipv6
- domain name
- address resolution
- interface
- ipv4
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention discloses a kind of method, home gateway and system for being used to access Internet resources.Wherein in the method for accessing Internet resources, when home gateway receives the inquiry of the domain name request of user terminal transmission, extract the IPV6 prefix authorizations address that inquiry of the domain name request includes, respectively inquiry request is sent to IPV4 domain name system servers and IPV6 domain name system servers, judge whether to receive IPV6 address resolution information, if receive IPV6 address resolution information, IPV6 address resolution information is then sent to user terminal, IPV6 site resources are preferentially accessed so as to be advantageous to user terminal;If not receiving IPv6 address resolution information in setting time, family terminal can be used not influence the internet usage experience of user by the original IPv4 networks of IPv6 agreement stack addressings.Due to the rhythm of IPV6 evolution and strategy can be controlled by home gateway, therefore network end-to-end can be realized to IPV6 evolution.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of method, home gateway and system for being used to access Internet resources.
Background technology
The Executive Meeting of the State Council held according in December, 2011 " is studied and deployed and accelerates development China's Next Generation Internet production
Industry ", plan before the end of the year 2013, carry out the 6th edition network of IP Internet Protocol commercial pilot on a small scale, form the business of maturation
Pattern and technological evolvement route;2014 to 2015, carry out large scale deployment and commercialization, realize IP Internet Protocol the 4th
Version(Internet Protocol Version4, referred to as:IPV4)With the 6th edition(IPV6)Main flow business intercommunication.Operator passes through
The pilot of several years, at present broadband network formally enter early stage transition stage of the IPv4 networks to IPv6 networks, in the coming years
In, the application in a communication network of IPv6 transitional technologies and popularization will substitute original IPv4 networks quickly.
Required according to the Committee of Development and Reform 2012 " Next Generation Internet scale commercialization demonstration project ", China Telecom has formulated metropolitan area
IPv6 evolution is netted based on the transformation of double stacks, small range pilot DS-LITE(Dual-Stack LITE, double stacks are simplified)Transitional technology
(That is IPv6 encapsulates IPv4 tunneling technique)Strategy.To the end of the year 2013, it is necessary to which the Metropolitan Area Network (MAN) for completing 10 Duo Ge pilots provinces and cities is double
Stack is transformed and building-up work.
Current transition technology be present, for example double stacks can only provide IPv4 the or IPv6 visits of separate single protocol stack
Ask, it is impossible to provide the internetwork exchanging visits of IPv4 and IPv6, exchanging visits needs to dispose NAT device in Metropolitan Area Network (MAN), but enters in Metropolitan Area Network (MAN)
The stateful address conversion of row, can additionally consume a large amount of IPv4 addresses, and tunneling technique only solves IPv4 addresses problem in short supply.
By combing existing network home gateway, the development due to being limited by Metropolitan Area Network (MAN) IPv6 is found, at present the work(of home gateway
The double stacks of basic support can only be accomplished, do not support other transitional technologies also(Including DS-LITE), operator in next step may be to family
Gateway carries out extensive hardware and software upgrading.
Due to CP seldom at present(Content Provider, content supplier)/SP(Service Provider, clothes
Be engaged in provider)The access ability of IPv6 user can be provided, IPv4 considerably long in the period of in still can occupy a large number of users and net
Network flow, therefore CP/SP does not have power to be migrated to IPv6.
The content of the invention
The embodiment of the present invention provides a kind of method, home gateway and system for being used to access Internet resources.Pass through home network
Realize that IPV6 user accesses Internet resources in the double stacks of IPV4/IPV6 in pass.
According to an aspect of the present invention, there is provided a kind of method for accessing Internet resources, including:
When receiving the inquiry of the domain name request of user terminal transmission, before extracting the IPV6 that inquiry of the domain name request includes
Sew authorized address;
The IPV6 prefix authorizations address extracted is subjected to NAT conversions, to obtain corresponding IPV4 public network addresses;
First inquiry request and the second inquiry request are sent respectively to IPV4 domain name system servers and IPV6 domain names system
System server, to obtain IPV4 address resolution information from IPV4 domain name system servers, is obtained from IPV6 domain name system servers
IPV6 address resolution information is obtained, wherein the first inquiry request includes the IPV4 public network addresses being converted to through NAT, the second inquiry
Request includes the IPV6 prefix authorizations address extracted in being asked from inquiry of the domain name;
Judge whether to receive the IPV6 address resolution information that IPV6 domain name system servers are sent;
If the IPV6 address resolution information of IPV6 domain name system servers transmission is received, by IPV6 address resolution information
The user terminal is sent to, so that the user terminal utilizes the IPV6 address resolution message reference IPV6 site resources.
In one embodiment, if the above-mentioned IPV6 address resolution information for receiving the transmission of IPV6 domain name system servers,
The step of IPV6 address resolution information then is sent into the user terminal includes:
If the IPV6 address resolution information of IPV6 domain name system servers transmission is firstly received, by IPV6 address resolution
Information is sent to the user terminal.
In one embodiment, if being firstly received the IPV4 address resolution information of IPV4 domain name system servers transmission,
The IPV6 address resolution for then judging whether that the transmission of IPV6 domain name system servers can be received in predetermined time range is believed
Breath;
If the IPV6 address resolution letter of IPV6 domain name system servers transmission can be received in predetermined time range
Breath, then be sent to the user terminal by IPV6 address resolution information.
In one embodiment, if failing to receive the transmission of IPV6 domain name system servers in predetermined time range
IPV6 address resolution information, then IPV4 address resolution information is converted into IPV6 address resolution transitional informations;
The IPV6 address resolution transitional information is sent to the user terminal, so as to described in user terminal utilization
IPV6 address resolution transitional information accesses IPV4 site resources.
In one embodiment, when carrying out information configuration, asked to Broadband Remote Access Server Sending dialled number;
When receiving the dial request response that the Broadband Remote Access Server is sent, dial request response is extracted
Include for first interface distribution IPV6 prefix authorizations address, be second interface distribution IPV4 public network addresses and
The address of IPV4 domain name system servers and IPV6 domain name system servers;
When detecting that the user terminal is connected with the first interface, the IPV6 prefix authorizations address is sent to
The user terminal.
In one embodiment, first interface is lan interfaces, and second interface is Wide Area Network interface.
According to another aspect of the present invention, there is provided a kind of home gateway for being used to access Internet resources, including first interface,
First extraction unit, NAT converting units, second interface and the first recognition unit, wherein:
First interface, for receiving the inquiry of the domain name request of user terminal transmission;
First extraction unit, when the inquiry of the domain name for receiving user terminal transmission when first interface is asked, extract
The IPV6 prefix authorizations address that inquiry of the domain name request includes;
NAT converting units, the IPV6 prefix authorizations address for that will extract carry out NAT conversions, corresponding to obtain
IPV4 public network addresses;
Second interface, for the first inquiry request and the second inquiry request to be sent respectively into IPV4 domain name system servers
With IPV6 domain name system servers, to obtain IPV4 address resolution information from IPV4 domain name system servers, from IPV6 domain names
System server obtains IPV6 address resolution information, wherein the first inquiry request includes the IPV4 public networks being converted to through NAT
Address, the second inquiry request include the IPV6 prefix authorizations address extracted in being asked from inquiry of the domain name;
First recognition unit, for judging second interface with whether receiving the IPV6 of IPV6 domain name system servers transmission
Location parses information;If second interface receives the IPV6 address resolution information of IPV6 domain name system servers transmission, it indicates that the
IPV6 address resolution information is sent to the user terminal by one interface, so that the user terminal is solved using the IPV6 addresses
Analyse message reference IPV6 site resources.
In one embodiment, the first recognition unit is specifically firstly received IPV6 domain name system servers in second interface
During the IPV6 address resolution information of transmission, IPV6 address resolution information is sent to the user terminal by instruction first interface.
In one embodiment, home gateway also includes the second recognition unit, wherein:
Second recognition unit, for the judged result according to the first recognition unit, if second interface is firstly received IPV4
During the IPV4 address resolution information that domain name system server is sent, judge whether second interface can be in predetermined time range
Receive the IPV6 address resolution information of IPV6 domain name system servers transmission;If second interface can be in predetermined time range
Inside receive the IPV6 address resolution information of IPV6 domain name system servers transmission, it indicates that first interface is by IPV6 address resolution
Information is sent to the user terminal.
In one embodiment, home gateway also includes information conversion unit, wherein:
Information conversion unit, for the judged result according to the second recognition unit, if second interface fails when predetermined
Between in the range of when receiving the IPV6 address resolution information of IPV6 domain name system servers transmission, IPV4 address resolution information is turned
It is changed to IPV6 address resolution transitional informations;The IPV6 address resolution transitional information is sent to the user by instruction first interface
Terminal, so that the user terminal accesses IPV4 site resources using the IPV6 address resolution transitional information.
In one embodiment, home gateway also includes the second extraction unit, wherein:
Second interface is additionally operable to when home gateway carries out information configuration, please to Broadband Remote Access Server Sending dialled number
Ask;
Second extraction unit, for receiving the dial request of the Broadband Remote Access Server transmission when second interface
During response, extract dial request and respond the IPV6 prefix authorizations address distributed for first interface included, be second interface
The IPV4 public network addresses of distribution and the address of IPV4 domain name system servers and IPV6 domain name system servers;Connect first
Mouth is detected when be connected with the user terminal, indicates that the IPV6 prefix authorizations address is sent to the user by first interface
Terminal.
In one embodiment, first interface is lan interfaces, and second interface is Wide Area Network interface.
According to another aspect of the present invention, there is provided a kind of system for accessing Internet resources, including home gateway, IPV4
Domain name system server and IPV6 domain name system servers, wherein:
Home gateway, the home gateway being related to for any of the above-described embodiment;
IPV4 domain name system servers, for when receive home gateway transmission the first inquiry request when, to home network
Close and send IPV4 address resolution information;
IPV6 domain name system servers, for when receive home gateway transmission the second inquiry request when, to home network
Close and send IPV6 address resolution information.
In one embodiment, said system also includes Broadband Remote Access Server, wherein:
Broadband Remote Access Server, for when receiving the dial request of home gateway transmission, being sent out to home gateway
Dial request is sent to respond, wherein dial request response is with including the IPV6 prefix authorizations distributed for the first interface of home gateway
The IPV4 public network addresses and IPV4 domain name system servers and IPV6 domain names system that location, the second interface for home gateway are distributed
The address of system server.
The present invention by the inquiry of the domain name that sends user terminal request and meanwhile be transmitted to IPV4 domain name system servers with
IPV6 domain name system servers, the IPV6 address resolution information of IPV6 domain name system servers transmission is being received, then by IPV6
Address resolution information is sent to user terminal, so that user terminal preferentially accesses IPV6 site resources.Due to family can be passed through
Gateway controls the rhythm of IPV6 evolution and strategy, therefore can realize the network end-to-end to IPV6 evolution.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the schematic diagram that the present invention is used to access method one embodiment of Internet resources.
Fig. 2 is the schematic diagram that the present invention is used to access another embodiment of method of Internet resources.
Fig. 3 is the schematic diagram that the present invention is used to access the another embodiment of method of Internet resources.
Fig. 4 is the schematic diagram of home gateway one embodiment of the present invention.
Fig. 5 is the schematic diagram of another embodiment of home gateway of the present invention.
Fig. 6 is the schematic diagram that the present invention is used to access system one embodiment of Internet resources.
Fig. 7 is the schematic diagram that the present invention is used to access another embodiment of system of Internet resources.
Fig. 8 is present system networking topology schematic diagram.
Fig. 9 is that present system interacts schematic diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Below
Description only actually at least one exemplary embodiment is illustrative, is never used as to the present invention and its application or makes
Any restrictions.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise
Lower obtained every other embodiment, belongs to the scope of protection of the invention.
Unless specifically stated otherwise, the part and positioned opposite, the digital table of step otherwise illustrated in these embodiments
Do not limited the scope of the invention up to formula and numerical value.
Simultaneously, it should be appreciated that for the ease of description, the size of the various pieces shown in accompanying drawing is not according to reality
Proportionate relationship draw.
It may be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable
In the case of, the technology, method and apparatus should be considered as authorizing part for specification.
In shown here and discussion all examples, any occurrence should be construed as merely exemplary, without
It is as limitation.Therefore, the other examples of exemplary embodiment can have different values.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined, then it need not be further discussed in subsequent accompanying drawing in individual accompanying drawing.
Fig. 1 is the schematic diagram that the present invention is used to access method one embodiment of Internet resources.Preferential, the present embodiment
Method and step can be performed by home gateway.
Step 101, when receiving the inquiry of the domain name request of user terminal transmission, extracting inquiry of the domain name request includes
IPV6 prefix authorizations(IPV6Prefix Delegation, referred to as:IPV6PD)Address.
Step 102, the IPV6 prefix authorizations address extracted is subjected to NAT conversions, with obtaining corresponding IPV4 public networks
Location.
Step 103, by the first inquiry request and the second inquiry request be sent respectively to IPV4 domain name system servers and
IPV6 domain name system servers, to obtain IPV4 address resolution information from IPV4 domain name system servers, from IPV6 domain names system
Server of uniting obtains IPV6 address resolution information.
Wherein the first inquiry request includes the IPV4 public network addresses being converted to through NAT, and the second inquiry request includes
The IPV6 prefix authorizations address extracted from inquiry of the domain name request.
Step 104, judge whether to receive the IPV6 address resolution information that IPV6 domain name system servers are sent.
That is, it is judged that whether receive AAAA records.
Step 105, if the IPV6 address resolution information of IPV6 domain name system servers transmission is received, by IPV6 addresses
Parsing information is sent to the user terminal, so that the user terminal utilizes the IPV6 address resolution message reference IPV6 nets
Stand resource.
The method for accessing Internet resources provided based on the above embodiment of the present invention, passes through send user terminal
Inquiry of the domain name request is transmitted to IPV4 domain name system servers and IPV6 domain name system servers simultaneously, is receiving IPV6 domain names
The IPV6 address resolution information that system server is sent, then be sent to user terminal, so as to user by IPV6 address resolution information
Terminal preferentially accesses IPV6 site resources.Due to the rhythm of IPV6 evolution and strategy can be controlled by home gateway, therefore
Network end-to-end can be realized to IPV6 evolution.
Fig. 2 is the schematic diagram that the present invention is used to access another embodiment of method of Internet resources.With embodiment illustrated in fig. 1 phase
Than in the embodiment depicted in figure 2, further to being firstly received IPV6 address resolution information and IPV4 address resolution information
Handled under different situations.Wherein step 201-203 is identical with above-mentioned steps 101-103.
Step 201, when receiving the inquiry of the domain name request of user terminal transmission, extracting inquiry of the domain name request includes
IPV6 prefix authorizations address.
Step 202, the IPV6 prefix authorizations address extracted is subjected to NAT conversions, with obtaining corresponding IPV4 public networks
Location.
Step 203, by the first inquiry request and the second inquiry request be sent respectively to IPV4 domain name system servers and
IPV6 domain name system servers.
Step 204, judge whether to be firstly received the IPV6 address resolution information that IPV6 domain name system servers are sent.If
It is firstly received the IPV6 address resolution information of IPV6 domain name system servers transmission(AAAA is recorded), then step 208 is performed;If
It is firstly received the IPV4 address resolution information of IPV4 domain name system servers transmission(A is recorded), then step 205 is performed.
Step 205, judge whether that the transmission of IPV6 domain name system servers can be received in predetermined time range
IPV6 address resolution information;If the IPV6 of IPV6 domain name system servers transmission can be received in predetermined time range
Location parses information, then performs step 208;If fail to receive the transmission of IPV6 domain name system servers in predetermined time range
IPV6 address resolution information, then perform step 206.
Preferably, predetermined time range can be 50ms.
Step 206, IPV4 address resolution information is converted into IPV6 address resolution transitional informations.
It is, by increasing corresponding prefix to A records, A records are converted into AAAA records.
Step 207, the IPV6 address resolution transitional information is sent to the user terminal, so as to the user terminal
IPV4 site resources are accessed using the IPV6 address resolution transitional information.Afterwards, other steps of the present embodiment are no longer performed.
That is, the AAAA being converted to records are supplied to user terminal, so that IPV6 user is according to the AAAA being converted to
Record access IPV4 websites.
Step 208, IPV6 address resolution information is sent to the user terminal.
AAAA records are sent to the user terminal, so that the user terminal utilizes AAAA record access IPV6 nets
Stand resource.
Fig. 3 is the schematic diagram that the present invention is used to access the another embodiment of method of Internet resources.In this embodiment, family
Gateway obtains relevant configuration information by network side.Wherein:
Step 301, when carrying out information configuration, asked to Broadband Remote Access Server Sending dialled number.
For example, home gateway sends PPPoE to Broadband Remote Access Server(Point to Point Protocol
Over Ethernet, the peer-peer protocol on Ethernet)Dial-up connection is asked.
Step 302, when receiving the dial request response that the Broadband Remote Access Server is sent, dialing is extracted
Request response include for first interface distribution IPV6 prefix authorizations addresses, be second interface distribution IPV4 public networks
Location and the address of IPV4 domain name system servers and IPV6 domain name system servers.
Preferably, it may also include IPV6ND in dial request response(Neighbor Discovery, neighbours have found)Address.
Step 303, when detecting that the user terminal is connected with the first interface, by the IPV6 prefix authorizations
Location is sent to the user terminal.
Preferably, first interface LAN(Local Area Network, LAN)Interface, second interface WAN
(Wide Area Network, wide area network)Interface.
Fig. 4 is the schematic diagram of home gateway one embodiment of the present invention.As shown in figure 4, home gateway includes first interface
401st, the first extraction unit 402, NAT converting units 403, the recognition unit 405 of second interface 404 and first.Wherein:
First interface 401, for receiving the inquiry of the domain name request of user terminal transmission.
First extraction unit 402, when the inquiry of the domain name for receiving user terminal transmission when first interface 401 is asked,
Extract the IPV6 prefix authorizations address that inquiry of the domain name request includes.
NAT converting units 403, the IPV6 prefix authorizations address for that will extract carry out NAT conversions, corresponding to obtain
IPV4 public network addresses.
Second interface 404, for the first inquiry request and the second inquiry request to be sent respectively into IPV4 domain name systems clothes
Business device and IPV6 domain name system servers, to obtain IPV4 address resolution information from IPV4 domain name system servers, from IPV6
Domain name system server obtains IPV6 address resolution information, wherein the first inquiry request includes the IPV4 being converted to through NAT
Public network address, the second inquiry request include the IPV6 prefix authorizations address extracted in being asked from inquiry of the domain name.
First recognition unit 405, for judging whether second interface 404 receives the transmission of IPV6 domain name system servers
IPV6 address resolution information;If second interface 404 receives the IPV6 address resolution information of IPV6 domain name system servers transmission,
Then IPV6 address resolution information is sent to the user terminal by instruction first interface 401, so that the user terminal utilizes institute
State IPV6 address resolution message reference IPV6 site resources.
The home gateway provided based on the above embodiment of the present invention, asked by the inquiry of the domain name for sending user terminal same
When be transmitted to IPV4 domain name system servers and IPV6 domain name system servers, receiving IPV6 domain name system servers send
IPV6 address resolution information, then IPV6 address resolution information is sent to user terminal, so that user terminal preferentially accesses
IPV6 site resources.Due to the rhythm of IPV6 evolution and strategy can be controlled by home gateway, therefore network can be realized
It is end-to-end to IPV6 evolution.
Preferably, first interface is LAN interface, and second interface is wan interface.
Fig. 5 is the schematic diagram of another embodiment of home gateway of the present invention.Compared with embodiment illustrated in fig. 4, real shown in Fig. 5
Apply in example, in addition to the second recognition unit 501, information conversion unit 502.Wherein:
Preferably, the first recognition unit 405 is specifically firstly received IPV6 domain name system servers hair in second interface 404
During the IPV6 address resolution information sent, IPV6 address resolution information is sent to the user terminal by instruction first interface 401.
Second recognition unit 501, for the judged result according to the first recognition unit 405, if second interface 404 connects first
When receiving the IPV4 address resolution information of IPV4 domain name system servers transmission, judge whether second interface 404 can be predetermined
Time range in receive IPV6 domain name system servers transmission IPV6 address resolution information;If second interface 404 can
The IPV6 address resolution information of IPV6 domain name system servers transmission is received in predetermined time range, it indicates that first connects
IPV6 address resolution information is sent to the user terminal by mouth 401.
Preferably, predetermined time range can be 50ms.
Information conversion unit 502, for the judged result according to the second recognition unit 501, if second interface 404 fails
When the IPV6 address resolution information of IPV6 domain name system servers transmission is received in predetermined time range, IPV4 addresses are solved
Analysis information is converted to IPV6 address resolution transitional informations;Instruction first interface 401 sends out the IPV6 address resolution transitional information
The user terminal is given, so that the user terminal accesses IPV4 websites money using the IPV6 address resolution transitional information
Source.
Preferably, home gateway also includes the second extraction unit 503.Wherein:
Second interface 404 is additionally operable to, when home gateway carries out information configuration, send and dial to Broadband Remote Access Server
Number request.
Second extraction unit 503, for receiving dialling for the Broadband Remote Access Server transmission when second interface 404
During number request response, extract that dial request response includes for first interface distribution IPV6 prefix authorizations address, be the
The IPV4 public network addresses of two interface assignments and the address of IPV4 domain name system servers and IPV6 domain name system servers.When
First interface 401 detects when being connected with the user terminal, and instruction first interface 401 sends out the IPV6 prefix authorizations address
Give the user terminal.
Fig. 6 is the schematic diagram that the present invention is used to access system one embodiment of Internet resources.As shown in fig. 6, the system
Including home gateway 601, IPV4 domain name system servers 602 and IPV6 domain name system servers 603.Wherein:
Home gateway 601, it is the home gateway that any embodiment is related in Fig. 4 or Fig. 5.
IPV4 domain name system servers 602, for when receive home gateway 601 transmission the first inquiry request when, to
Home gateway 601 sends IPV4 address resolution information.
IPV6 domain name system servers 603, for when receive home gateway 601 transmission the second inquiry request when, to
Home gateway 602 sends IPV6 address resolution information.
The system for accessing Internet resources provided based on the above embodiment of the present invention, passes through send user terminal
Inquiry of the domain name request is transmitted to IPV4 domain name system servers and IPV6 domain name system servers simultaneously, is receiving IPV6 domain names
The IPV6 address resolution information that system server is sent, then be sent to user terminal, so as to user by IPV6 address resolution information
Terminal preferentially accesses IPV6 site resources.Due to the rhythm of IPV6 evolution and strategy can be controlled by home gateway, therefore
Network end-to-end can be realized to IPV6 evolution.
Fig. 7 is the schematic diagram that the present invention is used to access another embodiment of system of Internet resources.With embodiment illustrated in fig. 6 phase
Than, in the embodiment shown in fig. 7, the system also includes Broadband Remote Access Server 701, wherein:
Broadband Remote Access Server 701, for when receive home gateway 601 transmission dial request when, to family
The request response of the Sending dialled number of gateway 601, wherein dial request response include the IPV6 distributed for the first interface of home gateway
Prefix authorization address, for home gateway second interface distribute IPV4 public network addresses and IPV4 domain name system servers and
The address of IPV6 domain name system servers.
Fig. 8 is present system networking topology schematic diagram, and corresponding information exchange schematic diagram is as shown in Figure 9.Wherein in Fig. 8
In, the mono- stacks of IPv6 only generally are opened for user terminal, IPv4 dotted lines connection purpose is to be user's remote opening under case of emergency
IPv4 protocol stacks, i.e. user are able to access that IPV4 websites in the case where that can not access IPV6 websites, in order to which user is occurring
Accident or it is unpredictable the reason for when, still may have access to IPv4 site resources.
Preferably, home gateway can use embodiment illustrated in fig. 3 to carry out parameter configuration before work.
Step 901, user terminal sends domain name inquiry request to home gateway, and wherein inquiry of the domain name request includes IPV6
Prefix authorization address.
Step 902, home gateway extracts the IPV6 prefix authorizations address that inquiry of the domain name request includes.
Step 903, the IPV6 prefix authorizations address extracted is carried out NAT conversions by home gateway, corresponding to obtain
IPV4 public network addresses.
Step 904a, home gateway send the first inquiry request to IPV4 domain name system servers, wherein the first inquiry please
Seek the IPV4 public network addresses for including being converted to through NAT.
Step 904b, home gateway send the second inquiry request to IPV6 domain name system servers, wherein the second inquiry please
Ask the IPV6 prefix authorizations address including being extracted from inquiry of the domain name request.
Step 905, home gateway judges whether to be firstly received the IPV6 addresses solution of IPV6 domain name system servers transmission
Analyse information.If it is firstly received the IPV6 address resolution information of IPV6 domain name system servers transmission(AAAA is recorded), then perform
Step 907;If it is firstly received the IPV4 address resolution information of IPV4 domain name system servers transmission(A is recorded), then step is performed
Rapid 906.
Step 906, home gateway judges whether that IPV6 domain name system services can be received in predetermined time range
The IPV6 address resolution information that device is sent.If the transmission of IPV6 domain name system servers can be received in predetermined time range
IPV6 address resolution information(AAAA is recorded), then step 907 is performed;If fail to receive IPV6 in predetermined time range
The IPV6 address resolution information that domain name system server is sent, then perform step 909.
Preferably, predetermined time range can be 50ms.
Step 907, IPV6 address resolution information is sent to user terminal by home gateway.
Step 908, user terminal utilizes IPV6 address resolution message reference IPV6 site resources.Afterwards, sheet is no longer performed
Other steps of embodiment.
AAAA records are sent to the user terminal, so that the user terminal utilizes AAAA record access IPV6 nets
Stand resource.
Step 909, IPV4 address resolution information is converted to IPV6 address resolution transitional informations by home gateway.It is,
A records are converted into AAAA records(AAAA records after referred to herein as changing).
Step 910, the IPV6 address resolution transitional information is sent to the user terminal by home gateway.
Step 911, user terminal accesses IPV4 site resources using the IPV6 address resolution transitional information.
The present invention provides mutual to double stacks of Metropolitan Area Network (MAN) on the premise of original telecommunications dual-stack network is not changed for client
Logical function, so as to unaware guides user preferentially to use IPV6 networks, while nor affect on user to make IPV4 networks
With.Due to the rhythm of IPV6 evolution and strategy can be controlled by home gateway, therefore network end-to-end can be realized to IPV6
Evolution.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
Description of the invention provides for the sake of example and description, and is not exhaustively or by the present invention
It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Select and retouch
State embodiment and be to more preferably illustrate the principle and practical application of the present invention, and one of ordinary skill in the art is managed
The present invention is solved so as to design the various embodiments with various modifications suitable for special-purpose.
Claims (14)
- A kind of 1. method for accessing Internet resources, it is characterised in that including:When receiving the inquiry of the domain name request of user terminal transmission, the IPV6 prefixes that extracting inquiry of the domain name request includes are awarded Weigh address;The IPV6 prefix authorizations address extracted is subjected to NAT conversions, to obtain corresponding IPV4 public network addresses;First inquiry request and the second inquiry request are sent respectively to IPV4 domain name system servers and IPV6 domain name systems clothes Business device, to obtain IPV4 address resolution information from IPV4 domain name system servers, is obtained from IPV6 domain name system servers IPV6 address resolution information, wherein the first inquiry request includes the IPV4 public network addresses being converted to through NAT, the second inquiry please Ask the IPV6 prefix authorizations address including being extracted from inquiry of the domain name request;Judge whether to receive the IPV6 address resolution information that IPV6 domain name system servers are sent;If receiving the IPV6 address resolution information of IPV6 domain name system servers transmission, IPV6 address resolution information is sent To the user terminal, so that the user terminal utilizes the IPV6 address resolution message reference IPV6 site resources.
- 2. according to the method for claim 1, it is characterised in thatIf receiving the IPV6 address resolution information of IPV6 domain name system servers transmission, IPV6 address resolution information is sent Include to the step of user terminal:If the IPV6 address resolution information of IPV6 domain name system servers transmission is firstly received, by IPV6 address resolution information It is sent to the user terminal.
- 3. according to the method for claim 2, it is characterised in thatIf being firstly received the IPV4 address resolution information of IPV4 domain name system servers transmission, judging whether can be predetermined Time range in receive IPV6 domain name system servers transmission IPV6 address resolution information;If the IPV6 address resolution information of IPV6 domain name system servers transmission can be received in predetermined time range, IPV6 address resolution information is sent to the user terminal.
- 4. according to the method for claim 3, it is characterised in thatIf failing to receive the IPV6 address resolution information of IPV6 domain name system servers transmission in predetermined time range, IPV4 address resolution information is converted into IPV6 address resolution transitional informations, wherein by increasing phase to IPV4 address resolution information The prefix answered, to obtain IPV6 address resolution transitional informations;The IPV6 address resolution transitional information is sent to the user terminal, so that the user terminal utilizes the IPV6 Address resolution transitional information accesses IPV4 site resources.
- 5. according to the method any one of claim 1-4, it is characterised in that also include:When carrying out information configuration, asked to Broadband Remote Access Server Sending dialled number;When receiving the dial request response that the Broadband Remote Access Server is sent, extract and wrapped in dial request response Include for first interface distribution IPV6 prefix authorizations address, be second interface distribution IPV4 public network addresses and IPV4 domains The address of name system server and IPV6 domain name system servers;When detecting that the user terminal is connected with the first interface, the IPV6 prefix authorizations address is sent to described User terminal.
- 6. according to the method for claim 5, it is characterised in thatFirst interface is lan interfaces;Second interface is Wide Area Network interface.
- 7. a kind of home gateway for being used to access Internet resources, it is characterised in that including first interface, the first extraction unit, NAT Converting unit, second interface and the first recognition unit, wherein:First interface, for receiving the inquiry of the domain name request of user terminal transmission;First extraction unit, when the inquiry of the domain name for receiving user terminal transmission when first interface is asked, extract domain name The IPV6 prefix authorizations address that inquiry request includes;NAT converting units, the IPV6 prefix authorizations address for that will extract carry out NAT conversions, public to obtain corresponding IPV4 Net address;Second interface, for by the first inquiry request and the second inquiry request be sent respectively to IPV4 domain name system servers and IPV6 domain name system servers, to obtain IPV4 address resolution information from IPV4 domain name system servers, from IPV6 domain names system Server of uniting obtains IPV6 address resolution information, wherein the first inquiry request is with including the IPV4 public networks being converted to through NAT Location, the second inquiry request include the IPV6 prefix authorizations address extracted in being asked from inquiry of the domain name;First recognition unit, for judging whether second interface receives the IPV6 addresses solution of IPV6 domain name system servers transmission Analyse information;If second interface receives the IPV6 address resolution information of IPV6 domain name system servers transmission, it indicates that first connects IPV6 address resolution information is sent to the user terminal by mouth, so that the user terminal utilizes the IPV6 address resolution to believe Breath accesses IPV6 site resources.
- 8. home gateway according to claim 7, it is characterised in thatFirst recognition unit is specifically firstly received the IPV6 address resolution of IPV6 domain name system servers transmission in second interface During information, IPV6 address resolution information is sent to the user terminal by instruction first interface.
- 9. home gateway according to claim 8, it is characterised in that also including the second recognition unit, wherein:Second recognition unit, for the judged result according to the first recognition unit, if second interface is firstly received IPV4 domain names During the IPV4 address resolution information that system server is sent, judge whether second interface can receive in predetermined time range The IPV6 address resolution information sent to IPV6 domain name system servers;If second interface can be inscribed in predetermined time range Receive the IPV6 address resolution information of IPV6 domain name system servers transmission, it indicates that first interface is by IPV6 address resolution information It is sent to the user terminal.
- 10. home gateway according to claim 9, it is characterised in that also including information conversion unit, wherein:Information conversion unit, for the judged result according to the second recognition unit, if second interface fails in predetermined time model When the IPV6 address resolution information of IPV6 domain name system servers transmission is received in enclosing, IPV4 address resolution information is converted to IPV6 address resolution transitional informations, wherein by increasing corresponding prefix to IPV4 address resolution information, to obtain IPV6 addresses Parse transitional information;The IPV6 address resolution transitional information is sent to the user terminal by instruction first interface, with toilet State user terminal and access IPV4 site resources using the IPV6 address resolution transitional information.
- 11. according to the home gateway any one of claim 7-10, it is characterised in that also including the second extraction unit, Wherein:Second interface is additionally operable to, when home gateway carries out information configuration, ask to Broadband Remote Access Server Sending dialled number;Second extraction unit, for receiving the dial request response of the Broadband Remote Access Server transmission when second interface When, extract dial request and respond the IPV6 prefix authorizations address distributed for first interface included, be second interface distribution IPV4 public network addresses and the address of IPV4 domain name system servers and IPV6 domain name system servers;Examined in first interface Measure when being connected with the user terminal, it is whole that the IPV6 prefix authorizations address is sent to the user by instruction first interface End.
- 12. home gateway according to claim 11, it is characterised in thatFirst interface is lan interfaces;Second interface is Wide Area Network interface.
- 13. a kind of system for accessing Internet resources, it is characterised in that including home gateway, IPV4 domain name system servers With IPV6 domain name system servers, wherein:Home gateway, the home gateway being related to for any one of claim 7-12;IPV4 domain name system servers, for when receiving the first inquiry request of home gateway transmission, being sent out to home gateway Send IPV4 address resolution information;IPV6 domain name system servers, for when receiving the second inquiry request of home gateway transmission, being sent out to home gateway Send IPV6 address resolution information.
- 14. system according to claim 13, it is characterised in that also including Broadband Remote Access Server, wherein:Broadband Remote Access Server, for when receiving the dial request of home gateway transmission, sending and dialling to home gateway Number request response, wherein dial request response include for home gateway first interface distribution IPV6 prefix authorizations address, The IPV4 public network addresses and IPV4 domain name system servers and IPV6 domain name systems clothes distributed for the second interface of home gateway The address of business device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410050638.6A CN104852995B (en) | 2014-02-14 | 2014-02-14 | For accessing method, home gateway and the system of Internet resources |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410050638.6A CN104852995B (en) | 2014-02-14 | 2014-02-14 | For accessing method, home gateway and the system of Internet resources |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104852995A CN104852995A (en) | 2015-08-19 |
CN104852995B true CN104852995B (en) | 2018-04-06 |
Family
ID=53852344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410050638.6A Active CN104852995B (en) | 2014-02-14 | 2014-02-14 | For accessing method, home gateway and the system of Internet resources |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104852995B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040328A (en) * | 2017-06-12 | 2018-12-18 | 中兴通讯股份有限公司 | request sending method and device, home gateway, storage medium, processor |
CN114143230B (en) * | 2020-09-02 | 2023-07-21 | 中国移动通信集团安徽有限公司 | Dual-stack user DNS analysis duration calculation method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101156147A (en) * | 2004-05-17 | 2008-04-02 | 思科技术公司 | Method and apparatus for handling ipv4 dns ptr queries across ipv4 and ipv6 networks |
CN102368789A (en) * | 2010-06-25 | 2012-03-07 | 中兴通讯股份有限公司 | Method and system for connecting dual-stack terminal to network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8964735B2 (en) * | 2012-05-18 | 2015-02-24 | Rackspace Us, Inc. | Translating media access control (MAC) addresses in a network hierarchy |
-
2014
- 2014-02-14 CN CN201410050638.6A patent/CN104852995B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101156147A (en) * | 2004-05-17 | 2008-04-02 | 思科技术公司 | Method and apparatus for handling ipv4 dns ptr queries across ipv4 and ipv6 networks |
CN102368789A (en) * | 2010-06-25 | 2012-03-07 | 中兴通讯股份有限公司 | Method and system for connecting dual-stack terminal to network |
Also Published As
Publication number | Publication date |
---|---|
CN104852995A (en) | 2015-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103650424B (en) | A kind of implementation method and server of home gateway service function | |
CN103580980B (en) | The method and device thereof that virtual network finds and automatically configures automatically | |
CN101465856B (en) | Method and system for controlling user access | |
CN101425938B (en) | Method and apparatus for network apparatus test | |
CN105025044B (en) | A kind of apparatus control method and system | |
CN100534055C (en) | Method for implementing network access through broadband router | |
JP6085891B2 (en) | Access control method and system, and access point | |
CN104581419A (en) | Dual-network realizing method based on android intelligent set-top box | |
CN102136938B (en) | Method and device for providing user information for carried grade network address translation (CGN) equipment | |
CN103916491B (en) | Dynamic address mapping method and device based on NAT444 architecture | |
CN108259642A (en) | Public service virtual machine access method and device based on private clound | |
CN103220276B (en) | A kind of method of network insertion, gateway and system | |
CN107770012A (en) | A kind of broad band access method, device and virtual broadband RAS system | |
CN104954508B (en) | A kind of system and its auxiliary charging method for DHCP protocol auxiliary charging | |
CN106713039A (en) | Method and device for identifying Ethernet ports and router | |
CN100568826C (en) | A kind of performance test methods of authentication service and device | |
CN104601743A (en) | IP (internet protocol) forwarding IPoE (IP over Ethernet) dual-stack user access control method and equipment based on Ethernet | |
CN104852995B (en) | For accessing method, home gateway and the system of Internet resources | |
CN100365591C (en) | Network address distributing method based on customer terminal | |
CN106911489B (en) | A kind of automatic adaptation method of access device, managing device and system | |
CN113132218A (en) | Home gateway access method, device, system processor and storage medium | |
CN107547467B (en) | Circuit authentication processing method, system and controller | |
CN114979073A (en) | Address information acquisition system, method, electronic device, and storage medium | |
CN108566446A (en) | LAN domain name analytic method, device and system | |
CN108134693A (en) | Networking parameters configuration method, device, router and the storage medium of router |
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 |