[go: up one dir, main page]

CN103856436B - Method, home gateway and the Internet of selecting network by user equipment layer protocol - Google Patents

Method, home gateway and the Internet of selecting network by user equipment layer protocol Download PDF

Info

Publication number
CN103856436B
CN103856436B CN201210495079.0A CN201210495079A CN103856436B CN 103856436 B CN103856436 B CN 103856436B CN 201210495079 A CN201210495079 A CN 201210495079A CN 103856436 B CN103856436 B CN 103856436B
Authority
CN
China
Prior art keywords
home gateway
addresses
response messages
ipv4
user equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210495079.0A
Other languages
Chinese (zh)
Other versions
CN103856436A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201210495079.0A priority Critical patent/CN103856436B/en
Publication of CN103856436A publication Critical patent/CN103856436A/en
Application granted granted Critical
Publication of CN103856436B publication Critical patent/CN103856436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method, home gateway and the Internet of selecting network by user equipment layer protocol, home gateway obtains that dns server returns, corresponding with the domain name carried in the address lookup request that user equipment is sent IPV4 addresses and IPV6 addresses;Whether home gateway detection connects with IPV4 addresses and IPV6 addresses;Home gateway returns to the address that can be connected in IPV4 addresses and IPV6 addresses with home gateway to user equipment.Method, home gateway and the Internet of the selecting network by user equipment layer protocol of the present invention, it is whether reachable by the IPv4 addresses and IPv6 addresses of detecting operator DNS return, so as to determine to select that network communication protocol to be communicated to user equipment, can be achieved to ensure the intelligent selection of network layer protocol stack the connectedness of communication, ensure user network experience and the Internet, applications it is normal reachable.

Description

Method, home gateway and the Internet of selecting network by user equipment layer protocol
Technical field
The present invention relates to domain name service technical field, more particularly to a kind of method of selecting network by user equipment layer protocol, Home gateway and Internet.
Background technology
In recent years because IPv4 addresses will exhaust, IPv6 technologies have obtained development at full speed, answering based on IPv6 technologies With also more and more.In order to support IPv6, operator has carried out IPv6 upgrading to core backbone network, and gradually starts Consider to dispose IPv6 in access network, provide the user IPv6 access services.At that time, inevitably IPv6 and IPv4 nets will occur Situation about coexisting, it thus can produce much while support double stack users of IPv4 agreements and IPv6 agreements and double stack application services, This will necessarily be brought such as next problem:When double stack application servers of double stack subscriber to access Internet, can send out simultaneously A and The DNS request of AAAA records, because accessed server is also double stacks, therefore there can be IPv4 and IPv6 addresses in DNS simultaneously Return.Once double stack users normally obtain the IPv6 addresses of server, then can prioritizing selection IPv6 addresses communicated, but existing In net, many times IPv6 networks are unreachable, can not communicate.The reason for being realized yet with software, double stack users will not lead again It is dynamic to switch to normal IPv4 networks.Therefore double stack application servers that internet is netted can not be accessed by double stack users occur Situation.
The content of the invention
In view of this, the invention solves a technical problem be to provide a kind of selecting network by user equipment layer protocol Method, detects whether the IP address returned to user equipment can connect.
Home network is passed through in a kind of method of selecting network by user equipment layer protocol, the address lookup request that user equipment is sent Pass is sent to dns server;The home gateway obtain it is that the dns server returns, with being taken in address lookup request The domain name of band corresponding IPV4 addresses and IPV6 addresses;The home gateway is detected with the IPV4 addresses and IPV6 addresses No connection;The home gateway returns to the user equipment can be with the home network in the IPV4 addresses and IPV6 addresses The logical address of connection.
According to one embodiment of the method for the invention, further, the address lookup request includes:DNS AAAA Query message and A query messages;Wherein, the user equipment supports IPV4 and IPV6 agreements, and the AAAA query messages and A are looked into Ask the domain name that the user equipment access is all carried in message.
According to one embodiment of the method for the invention, further, the dns server obtains and the address lookup IPV6 addresses corresponding to the domain name carried in request and IPV4 addresses, and return to AAAA response messages and A response messages;Wherein, The IPV6 addresses are carried in the AAAA response messages, the A response messages carry the IPV4 addresses.
According to one embodiment of the method for the invention, further, when the home gateway is route type home gateway When, the home gateway receives the address lookup request that the user equipment is sent, and address lookup request is forwarded to The dns server;The home gateway receives the AAAA response messages and A response messages that the DNS is returned, and obtains IPV6 Address and IPV4 addresses;The home gateway judges whether connect with the IPV6 addresses and IPV4 using ping modes;It is described If IPV6 addresses can be connected with the home gateway and the IPV4 addresses can not be connected with the home gateway, The home gateway returns to the AAAA response messages to the user equipment;If the IPV4 addresses and the home gateway It can connect and the IPV6 addresses can not be connected with the home gateway, the home gateway is to the user equipment Return to the A response messages;If the IPV4 addresses and IPV6 addresses can be connected with the home gateway, the family Gateway returns to AAAA response messages and A response messages to the user equipment.
According to one embodiment of the method for the invention, further, when the home gateway is bridge type home gateway When, the address lookup request of the user equipment transmission passes through the home gateway and is sent to the dns server;The family Gateway identifies the AAAA response messages and A response messages that the DNS is returned, from the AAAA response messages and A response messages Middle acquisition IPV6 addresses and IPV4 addresses;If the IPV4 addresses can be connected with the home gateway and the IPV6 Address can not be connected with the home gateway, and the home gateway sends AAAA response messages to the user equipment and A rings Answer message;Wherein, the IPV6 addresses in the AAAA response messages are set to sky by the home gateway, and the A response messages are taken With the IPV4 addresses.If IPV4 the and IPV6 addresses can be connected with the home gateway, the home gateway to The user equipment returns to AAAA response messages and A response messages.
The invention solves technical problem be to provide a kind of home gateway, detect the IP returned to user equipment Whether location can connect.
A kind of home gateway, including:Address acquisition unit, sent for obtaining dns server returns and user equipment Address lookup request in the corresponding IPV4 addresses and IPV6 addresses of the domain name that carries;Address connects judging unit, for examining Whether survey connects with the IPV4 addresses and IPV6 addresses;Address transmitting element, described in being returned to the user equipment IPV4 addresses and the address that can be connected in IPV6 addresses.
According to one embodiment of the home gateway of the present invention, further, the address lookup request includes:DNS's AAAA query messages and A query messages;Wherein, the user equipment supports IPV4 and IPV6 agreements, the AAAA query messages With the domain name that the user equipment access is all carried in A query messages.
According to one embodiment of the home gateway of the present invention, further, the dns server obtains and the address IPV6 addresses corresponding to the domain name carried in inquiry request and IPV4 addresses, and return to AAAA response messages and A response messages;Its In, the IPV6 addresses are carried in the AAAA response messages, the A response messages carry the IPV4 addresses.
According to one embodiment of the home gateway of the present invention, further, when the home gateway is route type family During gateway, the home gateway also includes inquiry request receiving unit, the address lookup sent for receiving the user equipment Request, and address lookup request is forwarded to the dns server;The address acquisition unit receives the DNS and returned AAAA response messages and A response messages, and obtain IPV6 addresses and IPV4 addresses;The address connection judging unit uses Ping modes judge whether connect with the IPV6 addresses and IPV4;If the IPV6 addresses can connect and described IPV4 addresses can not connect, and the address transmitting element returns to the AAAA response messages to the user equipment;It is described If IPV4 addresses can connect and the IPV6 addresses can not connect, the address transmitting element is set to the user It is standby to return to the A response messages;If IPV4 the and IPV6 addresses can connect, the address transmitting element is to the use Family equipment returns to AAAA response messages and A response messages.
According to one embodiment of the home gateway of the present invention, further, when the home gateway is bridge type family During gateway, the address acquisition unit identifies the AAAA response messages and A response messages that the DNS is returned, from the AAAA IPV6 addresses and IPV4 addresses are obtained in response message and A response messages;If the IPV4 addresses can connect and described IPV6 addresses can not connect, and the address transmitting element sends AAAA response messages and A response messages to the user equipment; Wherein, the IPV6 addresses in the AAAA response messages are set to sky by the address transmitting element, and the A response messages carry institute State IPV4 addresses.If IPV4 the and IPV6 addresses can connect, the address transmitting element returns to the user equipment Return AAAA response messages and A response messages.
A kind of Internet, including home gateway as described above.
Method, home gateway and the Internet of the selecting network by user equipment layer protocol of the present invention, transported by detecting Whether reachable the IP address (including IPv4 and IPv6 addresses) that business DNS is returned is sought, so as to determine to select that network communication protocol To be communicated to double stack user equipmenies, without being modified to user terminal, the Intelligent Selection to network layer protocol stack can be achieved Select ensure communication connectedness, ensure user network experience and the Internet, applications it is normal reachable.
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 Some embodiments of the present invention, for those of ordinary skill in the art, without having to pay creative labor, also Other accompanying drawings can be obtained according to these accompanying drawings.
Fig. 1 is the flow chart according to one embodiment of the selecting network by user equipment layer protocol of the present invention;
Fig. 2 is the flow chart according to another embodiment of the selecting network by user equipment layer protocol of the present invention;
Fig. 3 is the flow chart according to another embodiment of the selecting network by user equipment layer protocol of the present invention;
Fig. 4 is the schematic diagram according to one embodiment of the home gateway of the present invention;
Fig. 5 is the schematic diagram according to another embodiment of the home gateway of the present invention.
Embodiment
The present invention is described more fully with reference to the accompanying drawings, wherein illustrating the exemplary embodiment of the present invention.Under The accompanying drawing that face will be combined in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, and shows So, described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on the reality in the present invention Example is applied, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made, is all belonged to In the scope of protection of the invention.
Fig. 1 is the flow chart according to one embodiment of the selecting network by user equipment layer protocol of the present invention.Such as Fig. 1 institutes Show:
Step 102, the address lookup that user equipment is sent asks to be sent to dns server by home gateway.
Step 103, home gateway obtains that dns server returns, corresponding with the domain name carried in address lookup request IPV4 addresses and IPV6 addresses.
Step 104, whether home gateway detection connects with IPV4 addresses and IPV6 addresses.
Step 105, home gateway is returned in IPV4 addresses and IPV6 addresses to user equipment and can connected with home gateway Address.
DNS (Domain Name System) server is the server for performing domain name service, is answered by dns server Answer the inquiry of domain name service.DNS client request one domain name of dns server (Domain Name), dns server returns to this IP address corresponding to Domain Name.
User equipment in the present invention can be that PC, set top box or the others of user need to pass through domain name access Computer of service etc..User equipment can send address lookup request, obtain IP address corresponding with domain name.
According to one embodiment of present invention, address lookup request includes:DNS AAAA query messages and A query messages. User equipment supports IPV4 and IPV6 agreements, and the domain name of user equipment access is all carried in AAAA query messages and A query messages. A query messages obtain IPV4 addresses by domain name, and AAAA query messages obtain IPV6 addresses by domain name.
Dns server obtains corresponding with the domain name carried in address lookup request IPV6 addresses and IPV4 addresses, and returns Return AAAA response messages and A response messages;Wherein, IPV6 addresses are carried in AAAA response messages, can be one or more IPV6 Address.A response messages carry IPV4 addresses, can be one or more IPV4 addresses.
According to one embodiment of present invention, when home gateway is route type home gateway, home gateway receives user The address lookup request that equipment is sent, and address lookup request is forwarded to dns server.Home gateway receives what DNS was returned AAAA response messages and A response messages, and obtain IPV6 addresses and IPV4 addresses;Home gateway using ping modes judge with Whether IPV6 addresses connect with IPV4.
If IPV6 addresses can be connected with home gateway and IPV4 addresses can not be connected with home gateway, family Gateway returns to AAAA response messages to user equipment;If IPV4 addresses can be connected with home gateway and IPV6 addresses with Home gateway can not connect, and home gateway returns to A response messages to user equipment;If IPV4 addresses and IPV6 addresses and family Front yard gateway can connect, and home gateway returns to AAAA response messages and A response messages to user equipment.
Fig. 2 is the flow chart according to another embodiment of the selecting network by user equipment layer protocol of the present invention;Such as Fig. 2 institutes Show:
Step 201, the double stack user equipmenies 21 of family send AAAA and A domain name mappings request to home gateway 22.This family Gateway 22 is route type home gateway.
Step 202, home gateway 22 receives AAAA and A domain name mappings request and is transmitted to operator DNS server 23.
Step 203, the IPv4 addresses of the double stack application server domain names of the backward reference of operator DNS server 23 and IPv6 Location is to home gateway 22.
Step 204, after home gateway 22 receives the IPv4 addresses and IPv6 addresses of the return of operator DNS server 23, Detection of connectivity is carried out to IPv4 and IPv6 addresses.The method of detection can use ICMP (Internet Control Messages Protocol) be internet the two addresses of letter report control protocol mechanism difference ping, see whether can ping lead to.
Step 205, according to test result, the address that return can be sensible responds to the double stacks of family as dns resolution result User equipment 21.
After step 206, the double stack user equipmenies 21 of family receive the address of home gateway return, sent out to application server 24 Send HTTP request.Application server 24 responds HTTP request, and returning result.
By the method, selection of the user to IPv4/IPv6 procotols can be intelligently controlled, so as to ensure communication just Often complete.
According to one embodiment of present invention, the double stack users in Nanjing obtain the route type by being connected with this Nanjing user Behind IPv6 and IPv4 addresses after home gateway detection of connectivity, IPv6 and IPv4 addresses can use, due to default situations Lower IPv6 priority is higher than IPv4, and double stack users preferentially initiate http request to the double stack servers of web using IPv6 addresses and entered Row communication.
And Wuxi user only has IPv4 accesses, examined by the connective of route type home gateway being connected with this Wuxi user Find only have IPv4 addresses can be with after survey, IPv6 cannot, so route type home gateway only returns to IPv4 addresses and used to Wuxi Family, Wuxi user initiate http request to the double stack servers of web by IPv4 addresses and communicated.
According to one embodiment of present invention, when home gateway is bridge type home gateway, the ground of user equipment transmission Location inquiry request passes through home gateway and is sent to dns server;Home gateway identifies the AAAA response messages and A that DNS is returned Response message, IPV6 addresses and IPV4 addresses are obtained from AAAA response messages and A response messages.
If IPV4 addresses can be connected with home gateway and IPV6 addresses can not be connected with home gateway, family Gateway sends AAAA response messages and A response messages to user equipment.Home gateway is by the IPV6 addresses in AAAA response messages Sky is set to, A response messages carry IPV4 addresses.If IPV4 and IPV6 addresses can be connected with home gateway, home gateway AAAA response messages and A response messages are returned to user equipment.
Fig. 3 is the flow chart according to another embodiment of the selecting network by user equipment layer protocol of the present invention;Such as Fig. 3 institutes Show:
Step 301, user equipment 31 initiates to ask the AAAA and A of a certain specific domain name DNS query to dns server 33 Ask;DNS query request normally passes through bridge type home gateway 32, and reaches dns server 33.
Step 302, dns server 33 replys AAAA and A responses according to Query Result respectively, and AAAA records contain domain name Corresponding IPv6 addresses.
Step 303, reply after message reaches bridge type home gateway 32, according to the specific field value of message, identify for AAAA DNS records, and the IPv6 addresses carried in its record are extracted, judge whether this IPv6 address is reachable.
Step 304, if reachable, AAAA records make no modifications, and directly return to user equipment 31;If unreachable, The IPv6 addresses carried in AAAA records are then deleted, an AAAA without IPv6 addresses is returned and records to user equipment 31.
Step 305, after client receives corrected AAAA and A record, if IPv6 addresses are unreachable corresponding to domain name, Then AAAA records do not include IPv6 addresses, thus client can only select IPv4 addresses to initiate communication link to application server 34 Connect.
The present invention extends existing bridge type home gateway, identifies and intercepts and captures DNS response messages corresponding to AAAA inquiries, The IPv6 addresses in AAAA records are extracted, the accessibility of this IPv6 address are verified using ICMPv6 mechanism, according to the result pair AAAA records are appropriately modified, so as to the selection of indirect control user network protocol stack.
According to one embodiment of present invention, whether the message that bridge type home gateway 32 judges to receive is AAAA records DNS messages, if not, without any processing be forwarded directly to user equipment 31.Bridge type home gateway 32 records from AAAA Middle extraction IPv6 addresses, and judge whether IPv6 addresses are reachable using ICMPv6 mechanism, if comprising multiple in AAAA records IPv6 addresses, it is necessary to verified one by one, and the address (i.e. unreachable) that does not pass through to checking deletes it from AAAA records, After verifying, corrected AAAA responses are returned into client.Bridge type home gateway 32 sets caching record, recently Authenticated IPv6 addresses are recorded in cache entries, to improve verification efficiency, it is not necessary to every time using ICMPv6 mechanism Go to verify one by one, it is generally the case that the effective time of cache entries will be longer than DNS ageing time.
According to one embodiment of present invention, the corresponding messages of A can also be handled by identical mechanism.Bridge type Home gateway 32 judge the message that receives whether be A records DNS messages, bridge type home gateway 32 extracts from A records IPv4 addresses, and ICMPv4 mechanism is used, judge whether IPv4 addresses are reachable.
According to one embodiment of present invention, exemplified by by Wuxi, double stack users intend accessing positioned at double stack servers in Nanjing: Wuxi subscription client initiates to ask the AAAA and A of double stack server domain names in Nanjing DNS query to dns server;DNS Request normally passes through bridge type home gateway, and reaches dns server, and dns server replys AAAA respectively according to Query Result With A responses, AAAA records contain IPv6 addresses corresponding to domain name;Reply the bridge type home gateway that message reaches Wuxi user Afterwards, according to the specific field value of message, the DNS records for AAAA are identified, and extract the IPv6 addresses carried in its record, are sentenced Breaking, this IPv6 address is unreachable, then home gateway deletes the IPv6 addresses carried in AAAA records, returns to one without IPv6 The AAAA of location records the client to Wuxi user;After the client of Wuxi user receives corrected AAAA and A record, client End can only select IPv4 addresses to initiate communication connection.
Fig. 4 is the schematic diagram according to one embodiment of the home gateway of the present invention.As shown in Figure 4:Home gateway 41 wraps Include:Address acquisition unit 411, address connection judging unit 412 and address transmitting element 413.Address acquisition unit 411 obtains It is that dns server returns, asked with the address lookup that user equipment is sent in the corresponding IPV4 addresses of the domain name that carries and IPV6 addresses;Whether the connection detection of judging unit 412 in address connects with IPV4 addresses and IPV6 addresses;Address transmitting element 413 IPV4 addresses and the address that can be connected in IPV6 addresses are returned to user equipment.
According to one embodiment of present invention, when home gateway is route type home gateway, address acquisition unit 411 connects AAAA response messages and A response messages that DNS is returned are received, and obtains IPV6 addresses and IPV4 addresses;Address connects judging unit 412 judge whether connect with IPV6 addresses and IPV4 using ping modes.
If IPV6 addresses can connect and IPV4 addresses can not connect, address transmitting element 413 is to user equipment Return to AAAA response messages.If IPV4 addresses can connect and IPV6 addresses can not connect, address transmitting element 413 A response messages are returned to user equipment.If IPV4 and IPV6 addresses can connect, address transmitting element 413 is set to user It is standby to return to AAAA response messages and A response messages.
According to one embodiment of the invention, when home gateway is bridge type home gateway, address acquisition unit 411 identifies Go out DNS return AAAA response messages and A response messages, from AAAA response messages and A response messages obtain IPV6 addresses and IPV4 addresses;If IPV4 addresses can connect and IPV6 addresses can not connect, address transmitting element 413 is set to user Preparation send AAAA response messages and A response messages;Wherein, the IPV6 addresses in AAAA response messages are set to by address transmitting element Sky, A response messages carry IPV4 addresses.If IPV4 and IPV6 addresses can connect, address transmitting element 413 is set to user It is standby to return to AAAA response messages and A response messages.
Bridge type home gateway sets caching record unit, and IPv6 addresses authenticated recently are recorded in cache entries In, to improve verification efficiency, it is not necessary to go to verify one by one using ICMPv6 mechanism every time, it is generally the case that cache entries Effective time to be longer than DNS ageing time.
Fig. 5 is the schematic diagram according to another embodiment of the home gateway of the present invention.As shown in figure 5, home gateway 51 Including inquiry request receiving unit 511, address acquisition unit 512, address connection judging unit 513 and address transmitting element 514. Inquiry request receiving unit 511 receives the address lookup request that user equipment is sent, and address lookup request is forwarded into DNS clothes Business device.
The present invention is solved in current operator deployment IPv6 networks, due to association of the user application under double stack environment View selection acquiescence selection IPv6, so as to cause user network to occur interrupting or unreachable, even if IPv4 is reachable, but program can not be just Often the problem of switching.
Method, home gateway and the Internet of the selecting network by user equipment layer protocol of the present invention, transported by detecting Whether reachable the IP address (including IPv4 and IPv6 addresses) that business DNS is returned is sought, so as to determine to select that network communication protocol To be communicated to double stack user equipmenies, without being modified to user terminal, the Intelligent Selection to network layer protocol stack can be achieved Select ensure communication connectedness, ensure user network experience and the Internet, applications it is normal reachable.
The method and system of the present invention may be achieved in many ways.For example, can by software, hardware, firmware or Software, hardware, firmware any combinations come realize the present invention method and system.The said sequence of the step of for method is only Order described in detail above is not limited in order to illustrate, the step of method of the invention, is especially said unless otherwise It is bright.In addition, in certain embodiments, the present invention can be also embodied as recording program in the recording medium, these programs include For realizing the machine readable instructions of the method according to the invention.Thus, the present invention also covering storage is used to perform according to this hair The recording medium of the program of bright method.
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 (11)

  1. A kind of 1. method of selecting network by user equipment layer protocol, it is characterised in that:
    The address lookup that user equipment is sent asks to be sent to dns server by home gateway;The address lookup request bag Include:DNS AAAA query messages and A query messages;The dns server obtains the domain with being carried in address lookup request IPV6 addresses and IPV4 addresses corresponding to name, and return to AAAA response messages and A response messages;
    The home gateway obtains that the dns server returns, corresponding with the domain name carried in address lookup request IPV4 addresses and IPV6 addresses;
    Whether the home gateway detection connects with the IPV4 addresses and IPV6 addresses;
    The home gateway returns to the user equipment can be with the home gateway in the IPV4 addresses and IPV6 addresses The address of connection;
    Wherein, when the home gateway is bridge type home gateway, if the IPV4 addresses and bridge type home gateway energy Enough connect and IPV6 addresses can not be connected with bridge type home gateway, then send AAAA response messages and A to user equipment Response message, and the IPV6 addresses in AAAA response messages are set to sky, A response messages carry IPV4 addresses.
  2. 2. the method as described in claim 1, it is characterised in that
    The user equipment supports IPV4 and IPV6 agreements, and the use is all carried in the AAAA query messages and A query messages The domain name that family equipment accesses.
  3. 3. method as claimed in claim 2, it is characterised in that:
    The IPV6 addresses are carried in the AAAA response messages, the A response messages carry the IPV4 addresses.
  4. 4. method as claimed in claim 3, it is characterised in that:
    When the home gateway is route type home gateway, the home gateway receives the address that the user equipment is sent and looked into Request is ask, and address lookup request is forwarded to the dns server;
    The home gateway receives the AAAA response messages and A response messages that the DNS is returned, and obtains IPV6 addresses and IPV4 Address;
    The home gateway judges whether connect with the IPV6 addresses and IPV4 using ping modes;
    If the IPV6 addresses can be connected with the home gateway and the IPV4 addresses can not with the home gateway Enough connections, the home gateway return to the AAAA response messages to the user equipment;
    If the IPV4 addresses can be connected with the home gateway and the IPV6 addresses can not with the home gateway Enough connections, the home gateway return to the A response messages to the user equipment;
    If the IPV4 addresses and IPV6 addresses can be connected with the home gateway, the home gateway is to the user Equipment returns to AAAA response messages and A response messages.
  5. 5. method as claimed in claim 3, it is characterised in that:
    When the home gateway is bridge type home gateway, the family is passed through in the address lookup request that the user equipment is sent Front yard gateway is sent to the dns server;
    The home gateway identifies the AAAA response messages and A response messages that the DNS is returned, from the AAAA response messages With acquisition IPV6 addresses and IPV4 addresses in A response messages;
    If IPV4 the and IPV6 addresses can be connected with the home gateway, the home gateway is to the user equipment Return to AAAA response messages and A response messages.
  6. A kind of 6. home gateway, it is characterised in that including:
    Address acquisition unit, for what is carried in address lookup request obtaining dns server return, being sent with user equipment Domain name corresponding IPV4 addresses and IPV6 addresses;
    Whether address connects judging unit, connected with the IPV4 addresses and IPV6 addresses for detecting;
    Address transmitting element, for returning to the IPV4 addresses and the ground that can be connected in IPV6 addresses to the user equipment Location;
    Wherein, the address lookup that user equipment is sent asks to be sent to dns server by home gateway;The address lookup please Ask including:DNS AAAA query messages and A query messages;The dns server is obtained with being carried in address lookup request Domain name corresponding to IPV6 addresses and IPV4 addresses, and return to AAAA response messages and A response messages;When the home gateway is During bridge type home gateway, if the IPV4 addresses can connect and the IPV6 addresses can not connect, the address Transmitting element sends AAAA response messages and A response messages to the user equipment;Wherein, the address transmitting element is by described in IPV6 addresses in AAAA response messages are set to sky, and the A response messages carry the IPV4 addresses.
  7. 7. home gateway as claimed in claim 6, it is characterised in that
    The user equipment supports IPV4 and IPV6 agreements, and the use is all carried in the AAAA query messages and A query messages The domain name that family equipment accesses.
  8. 8. home gateway as claimed in claim 7, it is characterised in that:
    The IPV6 addresses are carried in the AAAA response messages, the A response messages carry the IPV4 addresses.
  9. 9. home gateway as claimed in claim 8, it is characterised in that:
    When the home gateway is route type home gateway, the home gateway also includes inquiry request receiving unit, is used for The address lookup request that the user equipment is sent is received, and address lookup request is forwarded to the dns server;
    The address acquisition unit receives the AAAA response messages and A response messages that the DNS is returned, and obtain IPV6 addresses and IPV4 addresses;
    The address connection judging unit judges whether connect with the IPV6 addresses and IPV4 using ping modes;
    If the IPV6 addresses can connect and the IPV4 addresses can not connect, the address transmitting element is to institute State user equipment and return to the AAAA response messages;
    If the IPV4 addresses can connect and the IPV6 addresses can not connect, the address transmitting element is to institute State user equipment and return to the A response messages;
    If IPV4 the and IPV6 addresses can connect, the address transmitting element returns to AAAA to the user equipment and rung Answer message and A response messages.
  10. 10. home gateway as claimed in claim 8, it is characterised in that:
    When the home gateway is bridge type home gateway, the address acquisition unit identifies the AAAA that the DNS is returned Response message and A response messages, IPV6 addresses and IPV4 addresses are obtained from the AAAA response messages and A response messages;
    If IPV4 the and IPV6 addresses can connect, the address transmitting element returns to AAAA to the user equipment and rung Answer message and A response messages.
  11. A kind of 11. Internet, it is characterised in that:
    Including the home gateway as any one of the claim 6 to 10.
CN201210495079.0A 2012-11-28 2012-11-28 Method, home gateway and the Internet of selecting network by user equipment layer protocol Active CN103856436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210495079.0A CN103856436B (en) 2012-11-28 2012-11-28 Method, home gateway and the Internet of selecting network by user equipment layer protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210495079.0A CN103856436B (en) 2012-11-28 2012-11-28 Method, home gateway and the Internet of selecting network by user equipment layer protocol

Publications (2)

Publication Number Publication Date
CN103856436A CN103856436A (en) 2014-06-11
CN103856436B true CN103856436B (en) 2017-12-05

Family

ID=50863659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210495079.0A Active CN103856436B (en) 2012-11-28 2012-11-28 Method, home gateway and the Internet of selecting network by user equipment layer protocol

Country Status (1)

Country Link
CN (1) CN103856436B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472051A (en) * 2014-09-02 2016-04-06 中国电信股份有限公司 Method, device and system for improving domain name resolution reliability
CN106161667A (en) * 2015-04-27 2016-11-23 中国移动通信集团公司 A kind of domain name analytic method and device
CN106664326A (en) * 2015-06-29 2017-05-10 华为技术有限公司 Dual stack address management method and first network element
CN109040328A (en) * 2017-06-12 2018-12-18 中兴通讯股份有限公司 request sending method and device, home gateway, storage medium, processor
TW201939923A (en) * 2018-03-09 2019-10-01 和碩聯合科技股份有限公司 Network inspection method and network device
CN110061888B (en) * 2019-03-18 2021-09-28 北京奇艺世纪科技有限公司 Network protocol type judgment method and device, computer equipment and storage medium
CN113014679B (en) * 2019-12-19 2022-11-01 成都鼎桥通信技术有限公司 Communication method, device and system
CN113132218B (en) * 2019-12-31 2023-10-20 中兴通讯股份有限公司 Home gateway access method, device, system processor and storage medium
CN111245682B (en) * 2020-01-10 2022-02-25 深圳市吉祥腾达科技有限公司 Double-stack DHCPV6 and PPPOEV6 access test platform
CN111917602B (en) * 2020-07-15 2021-11-30 中盈优创资讯科技有限公司 Method and device for detecting availability of IP address and electronic equipment
CN112787936B (en) * 2020-12-25 2023-02-28 深圳创维数字技术有限公司 Playing failure recovery method, device and storage medium in IPv4/IPv6 dual-stack environment
CN120602379A (en) * 2024-02-27 2025-09-05 荣耀终端股份有限公司 Network detection method and electronic equipment
CN119316495B (en) * 2024-12-13 2025-04-04 东莞华松创新科技有限公司 A communication method and system for data communication based on multiple communication protocols

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483635A (en) * 2008-01-10 2009-07-15 华为技术有限公司 Method and apparatus for IP address selection
CN100514927C (en) * 2005-11-28 2009-07-15 日立通讯技术株式会社 DNS server
CN102710804A (en) * 2012-05-10 2012-10-03 中兴通讯股份有限公司 Method for improving reliability of 6RD (IPv6 rapid deployment) network, home gateway and DHCP (dynamic host configuration protocol) server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8769367B2 (en) * 2010-01-28 2014-07-01 Mediatek Inc. Apparatus, method, and system for IP address negotiations

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100514927C (en) * 2005-11-28 2009-07-15 日立通讯技术株式会社 DNS server
CN101483635A (en) * 2008-01-10 2009-07-15 华为技术有限公司 Method and apparatus for IP address selection
CN102710804A (en) * 2012-05-10 2012-10-03 中兴通讯股份有限公司 Method for improving reliability of 6RD (IPv6 rapid deployment) network, home gateway and DHCP (dynamic host configuration protocol) server

Also Published As

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

Similar Documents

Publication Publication Date Title
CN103856436B (en) Method, home gateway and the Internet of selecting network by user equipment layer protocol
US8463904B2 (en) System and method of middlebox detection and characterization
JP4417850B2 (en) Communication model, signal, method and apparatus for confirming reachability in a network in which host reachability is obtained by associating a static identifier with a dynamic address
CN103561121B (en) Method and device for analyzing DNS and browser
CN104052832B (en) Method and device for setting IP address of domain name resolution server and server
CN103581351B (en) The method and apparatus of network access
US20100106791A1 (en) PROCESSING METHOD AND DEVICE FOR QinQ TERMINATION CONFIGURATION
US20050229238A1 (en) Method and device to determine the network environment and configure a network gateway
CN102045411A (en) Method, server and system for domain name resolution
CN103167044A (en) Method, device and system for intelligent resolution of domain name system DNS
CN104753965A (en) Web acceleration method and system
EP2677716A1 (en) Access control method, access device and system
CA2559645A1 (en) Open wireless access point detection and identification in a data network
KR20110056291A (en) Device and method for retrieving information from a device
CN106130791B (en) Cache equipment service capability traversal test system and method based on service quality
CN101599857B (en) Method, device and network detection system for detecting number of host computers accessed to sharing
CN114666245A (en) IPv6 single stack support degree determining method of B/S system and related equipment
CN105141712A (en) Method and device for resolving domain name resolution offline
CN103516820B (en) Port mapping method and device based on MAC Address
CN106790502B (en) Load balancing system of IPv4 terminal and IPv6 service intercommunication service based on NAT64 prefix
CN104660728A (en) NAT (network address translator) traversal method based on intelligent home control system
US7599365B1 (en) System and method for detecting a network packet handling device
CN116647538B (en) Connecting device capable of accessing different intranet services
CN114268578B (en) Data transmission method, device, equipment and storage medium for switching line
CN113301592B (en) Network detection method for optimizing internet experience of apple mobile phone by 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