WO2011160587A1 - 一种双栈终端连接网络的方法及系统 - Google Patents

一种双栈终端连接网络的方法及系统 Download PDF

Info

Publication number
WO2011160587A1
WO2011160587A1 PCT/CN2011/076126 CN2011076126W WO2011160587A1 WO 2011160587 A1 WO2011160587 A1 WO 2011160587A1 CN 2011076126 W CN2011076126 W CN 2011076126W WO 2011160587 A1 WO2011160587 A1 WO 2011160587A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
domain name
connection
service
terminal
Prior art date
Application number
PCT/CN2011/076126
Other languages
English (en)
French (fr)
Inventor
丁欣
琚凯
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011160587A1 publication Critical patent/WO2011160587A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/686Types of network addresses using dual-stack hosts, e.g. in Internet protocol version 4 [IPv4]/Internet protocol version 6 [IPv6] networks

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and system for connecting a network with a dual stack terminal of IPv4 (Internet Protocol Version 4)/Internet Protocol Version 6 (IPv6).
  • IPv4 Internet Protocol Version 4
  • IPv6 Internet Protocol Version 6
  • IP Internet Protocol
  • IPv6 Internet Engineering Steering Group
  • the IPv6 address uses a 128-bit address length, and can provide an address with almost unlimited.
  • the IPv6 protocol has the following advantages over the IPv4 protocol:
  • the automatic device configuration capability provided by the IPv6 protocol can be automatically Identifying new devices on the access network and enabling automatic configuration is essential for mobile and wireless access users; many new security features are supported in the IPv6 suite of protocols, such as: system-to-system authentication operations, encryption-based Data transfer, etc.;
  • the definition of packet priority in the IPv6 protocol can better support real-time applications; the multicast communication mechanism in the IPv6 protocol can provide a point-to-multipoint communication process while fully utilizing network resources.
  • IPv6 is the development direction of the network.
  • IPv4 networks and IPv6 networks will coexist for a long time.
  • the terminal needs to connect and use IPv4 and IPv6 at any time according to the needs of users. network of.
  • the terminal needs to access a service application whose address type is unknown, it can only determine whether the current connection type matches the service by whether the access is successful. If the question is successful, you need to reset the connection to another type of network. Moreover, whether it is connected to IPv6 by IPv4 reset network or IPv4 reset network to IPv4, the end user needs to participate. Affect the efficiency of the terminal connection network. Summary of the invention
  • the technical problem to be solved by the present invention is to provide a method and system for a terminal to connect to a network, which can automatically select whether to reset the network connection according to the analysis result of the service domain name.
  • the present invention provides a method for connecting a network to a dual-stack terminal, including:
  • the dual-stack terminal connected to the first network sends the service domain name requested by the user to the domain name system server for domain name resolution, and maintains the connection with the first network or the weight according to the analysis result of the service domain name returned by the domain name system server.
  • the network is connected to the second network.
  • the first network is a pre-configured network that is preferentially connected.
  • the above method has the following features:
  • the first network is an IPv4 network
  • the second network is an IPv6 network
  • the first network is an IPv6 network
  • the second network is an IPv4 network
  • the foregoing method further has the following features: the step of the terminal maintaining the connection with the first network or resetting the network connection to the second network according to the parsing result of the service domain name returned by the domain name system server includes:
  • the step of connecting the reset network to the second network includes:
  • the terminal initiates a Packet Data Protocol (PDP) activation request to the second network, and establishes a connection to the second network after the second network successfully responds to the PDP activation request.
  • PDP Packet Data Protocol
  • the foregoing method further has the following features: the method further includes: after maintaining the connection with the first network or resetting the network connection to the second network, the terminal returns the service domain name according to the domain name system server As a result of the analysis, the currently connected network attempts to access the service requested by the user; if the service is available, the access to the service is started.
  • the present invention further provides a dual-stack terminal, including: a connection module and a domain name resolution module, where:
  • the connection module is configured to: connect to the first network; to maintain a connection with the first network or reset the network connection to the second network according to the parsing result of the service domain name requested by the domain name system server for the user to request access;
  • the domain name resolution module is configured to: send the service domain name requested by the user to the domain name system server for domain name resolution, and receive the parsing result of the service domain name returned by the domain name system server, and send the result to the connection module.
  • the dual stack terminal further has the following features:
  • the first network is a pre-set preferentially connected network
  • the connection module is configured to: determine whether the type of the IP address of the service in the domain name resolution result is a type supported by the first network, and if yes, maintain a connection with the first network, if not, The network is connected to the second network.
  • the dual stack terminal further has the following features:
  • the connection module is configured to reset the network connection to the second network in the following manner: initiate a PDP activation request to the second network, and establish a connection to the second network after the second network successfully responds to the PDP activation request To reset the network connection to the second network.
  • the dual stack terminal further has the following features:
  • the dual-stack terminal further includes a service requesting module, configured to: according to the parsing result of the service domain name returned by the domain name system server, try to access the service requested by the user through the currently connected network, if the service is available, Start accessing the business.
  • a service requesting module configured to: according to the parsing result of the service domain name returned by the domain name system server, try to access the service requested by the user through the currently connected network, if the service is available, Start accessing the business.
  • the method for connecting a network to a terminal and the dual-stack terminal provided by the invention can automatically select whether to reset the network connection according to the parsing result of the domain name, without the user's own participation, and obviously improve The efficiency with which the terminal connects to the network.
  • FIG. 1 is a schematic diagram of a dual stack terminal according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for a terminal to connect to a network according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for a terminal to connect to a network according to Embodiment 1 of the present invention
  • the main purpose of the present invention is to provide a policy for automatically selecting an IPv4/IPv6 dual-stack terminal to connect to a network, so that the same terminal supporting the IPv4 protocol and the IPv6 protocol can determine whether the current network connection can support the current data connection of the user according to the same terminal.
  • the dual-stack terminal of the present invention supports the IPv4 protocol and the IPv6 protocol, and includes: a domain name resolution module 10 and a connection module 11. among them,
  • connection module 10 is configured to: connect to the first network; and maintain a connection with the first network or reset the network connection to the second network according to the parsing result of the service domain name returned by the domain name system server;
  • the domain name resolution module 11 is configured to send the service domain name requested by the user to the Domain Name System (DNS) server for domain name resolution, and after receiving the analysis result of the service domain name returned by the DNS server, The analysis result is sent to the connection module 10;
  • DNS Domain Name System
  • the system of the present invention can automatically select whether to reset the network connection according to the analysis result of the service domain name, without the user's own participation, and obviously improve the efficiency of the terminal connecting the network.
  • the first network may be a pre-set preferentially connected network, and may be an IPv4 network, Can be an IPv6 network;
  • the connection module 10 is configured to: determine whether the type of the IP address of the service in the domain name resolution result is a type supported by the first network, and if yes, maintain a connection with the first network, if not, Reset the network connection to the second network.
  • the current connection is an IPv4 network.
  • the IP address type supported by the IPv4 network is A. If the IP address of the service parsed by the domain name is AAAA, the type of the IP address of the service is determined by the type of the network that is currently connected. Inconsistent, you need to reset the network connection to the IPv6 network.
  • connection module 10 is configured to: initiate a PDP activation request to the second network, and after the second network successfully responds to the PDP activation request, establish a connection to the second network, and try to use the second network. Access the service that the user requests to access, that is, reset the network connection to the second network.
  • the dual-stack terminal further includes a service requesting module (not shown) configured to attempt to access the service requested by the user through the currently connected network according to the parsing result of the service domain name returned by the domain name system server. And if the service is unavailable, waiting for further instructions from the user; if the service is available, starting to access the service.
  • a service requesting module (not shown) configured to attempt to access the service requested by the user through the currently connected network according to the parsing result of the service domain name returned by the domain name system server. And if the service is unavailable, waiting for further instructions from the user; if the service is available, starting to access the service.
  • the network in which the preferential connection is set to be an IPv4 network or an IPv6 network may be set in advance on the terminal, and the dual-stack terminal may first connect to a preset network, such as an IPv4 network; Upon receiving the user requesting the access service, the terminal may automatically reset the network connection to the IPv4/IPv6 network according to the result of the DNS server parsing the IP address of the service.
  • the method of the present invention may include the following steps:
  • Step 20 After the terminal is connected to the first network, the service domain name requested by the user is sent to the DNS server for domain name resolution.
  • the first network may be an IPv4 network or an IPv6 network.
  • Step 21 The terminal returns according to the DNS server. As a result of parsing the service domain name, maintaining a connection with the first network or resetting the network connection to the second network.
  • Step 21 may further include the following steps:
  • the terminal determines whether the type of the IP address of the service in the domain name resolution result is a type supported by the currently connected first network (for example, an IPv4 network), and if not, resets the network connection to the second network (for example, IPv6 network).
  • the currently connected first network for example, an IPv4 network
  • IPv6 network for example, IPv6 network
  • the step of resetting the network connection to the second network further includes:
  • the terminal determines that the type of the IP address of the service is inconsistent with the type supported by the currently connected IPv4 network (type A)
  • the terminal initiates a PDP activation request to the IPv6 network, and after receiving the successful response of the IPv6 network to the PDP activation request, the terminal establishes The connection to the IPv6 network.
  • the terminal may also wait for the user's instruction, if the IP address of the accessed service is unreachable, in the process of attempting to access the service requested by the user through the currently connected network, according to the user.
  • the instruction performs subsequent processing operations; if the service is available, access to the service begins.
  • This embodiment is a process in which the terminal connects to the network to use the service when the dual-stack terminal is preferentially connected to the IPv4 network, and the process diagram is as shown in FIG. 3, which specifically includes the following steps:
  • Step 301 According to the operator's request or the user's own setting, when the terminal initiates the network connection, the terminal first initiates a PDP activation request for connecting to the IPv4 network, and establishes an IPv4 network connection after the network successfully responds.
  • Step 302 After receiving the service requested by the user, the terminal sends the domain name of the service to the DNS server. After the DNS server performs DNS resolution on the domain name of the service, the terminal returns the analysis result to the terminal.
  • Step 303 The terminal determines, according to the result of the DNS resolution, whether the peer IP address of the service is in the IPv4 format, that is, whether it is consistent with the currently established PDP connection type.
  • the method of judging is: when the terminal sends a query request to the DNS server, it specifies that the requested address type is an address type supported by the IPv4 network, that is, queries the DNS server for the resource record of type A, and saves each domain name in the DNS server. There are several resource records, if the domain name has An IPv4 address, then the domain name has an A type resource record in the DNS, and the content is the IPv4 address of the domain name. Then, according to whether the returned response message includes the corresponding resource record, the judgment is made; or, when the query request is sent to the DNS server, the requested address type is not specified, and the judgment is based on the type of the address included in the returned response message. For example, check the length of the address. If the peer is found to be an address type supported by the IPv4 network, go to step 304. Otherwise, go to step 305.
  • Step 304 The peer end attempts to access the peer service through the current IPv4 connection, because the peer IP address type is consistent with the currently established PDP connection type.
  • Step 305 The terminal needs to reset the network connection because the peer address type is inconsistent with the currently established PDP connection type, so the terminal initiates a PDP activation request to the IPv6 network, and establishes an IPv6 connection after the network successfully responds.
  • Step 306 The terminal starts to try to access the peer service through the newly established IPv6 connection.
  • This embodiment is a process in which the terminal connects to the network to use the service when the dual-stack terminal is preferentially connected to the IPv6 network, and the process diagram is as shown in FIG. 4, which specifically includes the following steps:
  • Step 401 According to the operator's request or the user's own setting, when the terminal initiates the network connection, the terminal first initiates an IPv6 connection PDP activation request, and establishes an IPv6 connection after the network successfully responds.
  • Step 402 After receiving the service requested by the user, the terminal sends the domain name of the service to the DNS server. After the DNS server performs DNS resolution on the domain name of the service, the terminal returns the analysis result to the terminal.
  • Step 403 Determine, according to the result of the DNS resolution, whether the peer address of the service is in the IPv6 format, that is, whether it is consistent with the currently established PDP connection type.
  • the specific method of the judgment is: when the terminal sends a query request to the DNS server, the terminal specifies that the requested address type is an address type supported by the IPv6 network, that is, queries the DNS server for the resource record of the AAAA type, and then according to whether the returned response message includes The resource record is used for judgment; or, when the query request is sent to the DNS server, the requested address type is not specified, and the judgment is performed according to the address included in the returned response message, for example, checking the length of the address, if If the peer end is the address type supported by the IPv6 network, then the process proceeds to step 404. Otherwise, the process proceeds to step 405.
  • Step 404 The peer end attempts to access the peer service through the current IPv6 connection, because the peer IP address type is consistent with the currently established PDP connection type.
  • Step 405 The terminal needs to reset the network connection because the peer address type is inconsistent with the currently established PDP connection type, so the terminal initiates a PDP activation request to the IPv4 network, and establishes an IPv4 connection after the network successfully responds.
  • Step 406 The terminal starts to try to access the peer service through the newly established IPv4 connection.
  • a method for connecting a network to a terminal and a dual-stack terminal according to an embodiment of the present invention can automatically select whether to reset a network connection according to a parsing result of a domain name, without requiring the user's own participation, and obviously improve the terminal connection network. effectiveness.

Description

一种双栈终端连接网络的方法及系统
技术领域
本发明涉及通信领域, 尤其涉及一种网际协议版本 4 ( IPv4 , Internet Protocol Version 4 ) /网际协议版本 6 ( IPv6, Internet Protocol Version 6 )双栈 终端连接网络的方法及系统。 背景技术
目前在全球广泛应用的互联网是以 IPv4协议为基础, IP地址以 32位表 示, 理论上有大约 40亿个, 实际上由于各种限制只有一半地址可用。 而且, 考虑到未来几年由于 3G终端、 网际协议(IP ) 电话、 家庭网络等的发展, 对 IP地址的需求会大幅增加,专业机构预测大概在 2011年上半年,全球 IPv4 地址会分配完毕。
1994年 11 月 7 日因特网工程组 ( IESG, Internet Engineering Steering Group )正式通过将 IPv6作为标准研究。 IPv6地址釆用 128位地址长度, 几 乎可以不受限制的提供地址, 除了解决 IPv4地址数目有限的缺陷, IPv6协议 相对于 IPv4协议还具备如下几方面优势: IPv6协议提供的自动设备配置能力 可自动识别接入网络新的设备并可进行自动配置, 对于移动和无线接入的用 户是非常必要的; IPv6协议族中支持许多新的安全性功能, 例如: 系统到系 统的认证操作、 基于加密的数据传送等; IPv6协议中分组优先级的定义能更 好的支持实时应用程序; IPv6协议中的多播通信机制可在充分利用网络资源 前提下提供点到多点的通信过程。
通过以上趋势可以看出, IPv6是网络的发展方向。 而在相当长的一段时 间内, IPv4网络和 IPv6网络将长期共存, 与之相对应的, 为了保证终端用户 可以同时使用 IPv4和 IPv6网络,终端需要根据用户的需要, 随时连接并使用 IPv4和 IPv6的网络。
在现有技术中, 如果终端需要访问一个地址类型未知的业务应用, 只能 通过是否访问成功来判断当前的连接类型是否与该业务相匹配, 如果不能访 问成功, 则需要重置连接到另一种类型的网络, 而且, 无论是由 IPv4重置网 络连接到 IPv6,还是由 IPv6重置网络连接到 IPv4, 都需要终端用户本人的参 与, 这显然会影响终端连接网络的效率。 发明内容
本发明要解决的技术问题是提供一种终端连接网络的方法及系统, 可根 据业务域名的解析结果自动选择是否重置网络连接。
为了解决上述技术问题, 本发明提供了一种双栈终端连接网络的方法, 包括:
连接至第一网络的双栈终端, 将用户请求访问的业务域名发送给域名系 统服务器进行域名解析, 根据域名系统服务器返回的对所述业务域名的解析 结果, 保持与第一网络的连接或者重置网络连接到第二网络。
可选地, 上述方法还具有下面特点: 所述第一网络为预先设置的优先连 接的网络。
可选地, 上述方法还具有下面特点:
所述第一网络为 IPv4网络, 所述第二网络为 IPv6网络; 或者
所述第一网络为 IPv6网络, 所述第二网络为 IPv4网络。
可选步地, 上述方法还具有下面特点: 所述终端根据域名系统服务器返 回的对所述业务域名的解析结果, 保持与第一网络的连接或者重置网络连接 到第二网络的步骤包括:
所述终端判断所述域名解析结果中的业务的 IP地址的类型是否为所述第 一网络支持的类型, 如果是, 则保持与第一网络的连接, 如果不是, 则重置 网络连接到第二网络。
可选地, 上述方法还具有下面特点: 所述重置网络连接到第二网络的步 骤包括:
所述终端向第二网络发起分组数据协议 ( PDP )激活请求, 在所述第二 网络成功响应所述 PDP激活请求后, 建立到第二网络的连接。 可选地, 上述方法还具有下面特点: 所述方法还包括, 在保持与第一网 络的连接或者重置网络连接到第二网络后, 所述终端根据域名系统服务器返 回的对所述业务域名的解析结果, 通过当前连接的网络尝试访问用户请求访 问的业务; 若所述业务可用, 则开始访问所述业务。
为了解决上述问题, 本发明还提供了一种双栈终端, 包括: 连接模块和 域名解析模块, 其中:
所述连接模块设置为: 连接至第一网络; 用于根据域名系统服务器返回 的对用户请求访问的业务域名的解析结果, 保持与第一网络的连接或者重置 网络连接到第二网络;
所述域名解析模块设置为: 将用户请求访问的业务域名发送给域名系统 服务器进行域名解析, 以及接收所述域名系统服务器返回的对所述业务域名 的解析结果, 发送给所述连接模块。
可选地, 上述双栈终端还具有下面特点:
所述第一网络为预先设置的优先连接的网络;
所述连接模块是设置为: 判断所述域名解析结果中的业务的 IP地址的类 型是否为所述第一网络支持的类型, 如果是, 则保持与第一网络的连接, 如 果不是, 则重置网络连接到第二网络。
可选地, 上述双栈终端还具有下面特点:
所述连接模块是设置为以如下方式重置网络连接到第二网络: 向第二网 络发起 PDP激活请求,在所述第二网络成功响应所述 PDP激活请求后,建立 到第二网络的连接, 以重置网络连接到第二网络。
可选地, 上述双栈终端还具有下面特点:
所述双栈终端还包括业务请求模块, 其设置为: 根据域名系统服务器返 回的对所述业务域名的解析结果, 通过当前连接的网络尝试访问用户请求访 问的业务, 若所述业务可用, 则开始访问所述业务。
本发明提供的一种终端连接网络的方法及双栈终端, 可以根据域名的解 析结果自动选择是否重置网络连接, 而不需要用户本人的参与, 明显提高了 终端连接网络的效率。 附图概述
图 1为本发明的实施方式的双栈终端的示意图;
图 2为本发明的实施方式的终端连接网络的方法的流程图;
图 3为本发明实施例一的终端连接网络的方法的流程图;
图 4为本发明实施例二的终端连接网络的方法的流程图。 本发明的较佳实施方式
本发明的主要目的在于提供一种 IPv4/IPv6 双栈终端自动选择连接网络 的策略方法,使支持 IPv4协议和 IPv6协议的同一终端能根据其判断当前的网 络连接是否可以支持用户当前需要数据连接的业务功能, 并自动调整网络连 接。
为了更好地理解本发明, 下面结合附图和具体实施例对本发明作进一步 地描述。
图 1为本发明的双栈终端的示意图, 本发明的双栈终端支持 IPv4协议和 IPv6协议, 包括: 域名解析模块 10和连接模块 11。 其中,
连接模块 10, 设置为: 连接至第一网络; 以及根据域名系统服务器返回 的对所述业务域名的解析结果, 保持与第一网络的连接或者重置网络连接到 第二网络;
域名解析模块 11 , 设置为将用户请求访问的业务域名发送给域名系统 ( Domain Name System, 简称 DNS )服务器进行域名解析, 以及接收到 DNS 服务器返回的对所述业务域名的解析结果后, 将所述解析结果发送给连接模 块 10;
这样, 本发明的系统即可根据业务域名的解析结果自动选择是否重置网 络连接, 而不需要用户本人的参与, 明显提高了终端连接网络的效率。
所述第一网络可以为预先设置的优先连接的网络, 可以为 IPv4网络, 也 可以为 IPv6网络;
所述连接模块 10是设置为: 判断所述域名解析结果中的业务的 IP地址 的类型是否为所述第一网络支持的类型, 如果是, 则保持与第一网络的连接, 如果不是, 则重置网络连接到第二网络。
例如, 当前连接的是 IPv4网络, IPv4网络支持的 IP地址类型为 A类型, 若域名解析出的业务的 IP地址为 AAAA类型, 则判断该业务的 IP地址的类 型与当前连接的网络支持的类型不一致, 则需要重置网络连接到 IPv6网络。
较佳地, 所述连接模块 10是设置为: 向第二网络发起 PDP激活请求, 在所述第二网络成功响应所述 PDP激活请求后, 建立到第二网络的连接, 通 过第二网络尝试访问用户请求访问的业务, 即重置网络连接到第二网络。
较佳地, 所述双栈终端还包括业务请求模块(未图示) , 其设置为根据 域名系统服务器返回的对所述业务域名的解析结果, 通过当前连接的网络尝 试访问用户请求访问的业务, 若所述业务不可用, 则等待用户的进一步指令; 若所述业务可用, 则开始访问所述业务。
图 2为本发明的终端连接网络的方法的流程图, 可以事先在终端上设置 优先连接的网络是 IPv4网络还是 IPv6网络,双栈终端可以据此先连接到预设 的网络, 例如 IPv4网络; 在接收到用户请求访问业务时, 终端可以根据 DNS 服务器对该业务的 IP地址解析的结果,自动重置网络连接到 IPv4/ IPv6网络。 如图 2所示, 本发明的方法可以包括下面步骤:
步骤 20、 终端连接第一网络后, 将用户请求访问的业务域名发送给 DNS 服务器进行域名解析; 所述第一网络可以是 IPv4网络, 也可以是 IPv6网络, 步骤 21、 终端根据 DNS服务器返回的对所述业务域名的解析结果, 保 持与第一网络的连接或者重置网络连接到第二网络。
这样, 本发明的方法即可根据业务域名的解析结果自动选择是否重置网 络连接, 而不需要用户本人的参与, 明显提高了终端连接网络的效率。 其中, 步骤 21还可以包括下面步骤:
终端判断所述域名解析结果中的业务的 IP地址的类型是否为当前连接的 第一网络(例如, 为 IPv4网络)支持的类型, 若不是, 则重置网络连接到第 二网络(例如, 为 IPv6网络) 。
具体地, 重置网络连接到第二网络的步骤还包括:
终端若判断业务的 IP地址的类型与当前连接的 IPv4网络所支持的类型 ( A类型) 不一致, 则向 IPv6网络发起 PDP激活请求, 在接收到 IPv6网络 成功响应所述 PDP激活请求后 , 建立到 IPv6网络的连接。
较佳地, 终端还可以在通过当前连接的网络尝试访问用户请求访问的业 务的过程中, 若发现所述业务不可用, 例如所访问业务的 IP地址不可达, 则 等待用户的指令, 根据用户指令进行后续的处理操作; 若所述业务可用, 则 开始访问所述业务。
下面结合两个具体实施例对本发明的技术方案作进一步详细阐述。
实施例一
该实施例是在双栈终端优先连接 IPv4网络的情况下, 终端连接网络使用 业务的过程, 其流程示意图如图 3所示, 具体包括以下步骤:
步骤 301 , 按照运营商的要求或者用户自己的设置, 终端在发起网络连 接时, 首先发起连接 IPv4 网络的 PDP激活请求, 并在网络成功响应后建立 IPv4网络连接。
步骤 302, 终端接收到用户请求访问的业务后, 将该业务的域名发送给 DNS服务器, DNS服务器对该业务的域名进行 DNS解析后, 将解析结果返 回给终端。
步骤 303 ,终端根据 DNS解析的结果,判断该业务的对端 IP地址是否釆 用 IPv4形式, 即是否与当前建立的 PDP连接类型相一致。
判断的方法是: 终端在向 DNS服务器发出查询请求时, 指定所请求的地 址类型为 IPv4网络支持的地址类型, 即向 DNS服务器查询 A类型的资源记 录, 在 DNS服务器中对每一个域名都保存有若干条资源记录, 如果该域名有 一个 IPv4地址, 那么该域名在 DNS中就有一条 A类型的资源记录, 其中的 内容就是该域名的 IPv4地址。 然后根据返回的响应消息中是否包含相应的资 源记录来进行判断; 或者, 在向 DNS服务器发出查询请求时, 不指定所请求 的地址类型, 而根据返回的响应消息中包含的地址类型来进行判断, 比如检 查该地址的长度, 如果发现对端就是釆用 IPv4网络支持的地址类型, 则跳转 步骤 304, 否则, 跳转步骤 305。
步骤 304, 由于对端 IP地址类型与当前建立的 PDP连接类型相一致, 终 端开始尝试通过当前的 IPv4连接访问对端业务。
步骤 305, 由于对端地址类型与当前建立的 PDP连接类型不一致, 终端 需要重置网络连接,于是终端向 IPv6网络发起 PDP激活请求,在网络成功响 应后建立 IPv6连接。
步骤 306, 终端开始尝试通过新建立的 IPv6连接访问对端业务。
实施例二
该实施例是在双栈终端优先连接 IPv6网络的情况下, 终端连接网络使用 业务的过程, 其流程示意图如图 4所示, 具体包括以下步骤:
步骤 401 , 按照运营商的要求或者用户自己的设置, 终端在发起网络连 接时, 首先发起 IPv6连接 PDP激活请求, 并在网络成功响应后建立 IPv6连 接。
步骤 402, 终端接收到用户请求访问的业务后, 将该业务的域名发送给 DNS服务器, DNS服务器对该业务的域名进行 DNS解析后, 将解析结果返 回给终端。
步骤 403 , 根据 DNS解析的结果, 判断该业务的对端地址是否釆用 IPv6 形式, 即是否与当前建立的 PDP连接类型相一致。
判断的具体方法是: 终端在向 DNS服务器发出查询请求时, 指定所请求 的地址类型为 IPv6网络支持的地址类型, 即向 DNS服务器查询 AAAA类型 的资源记录, 再根据返回的响应消息中是否包含这一资源记录来进行判断; 或者, 在向 DNS服务器发出查询请求时, 不指定所请求的地址类型, 而根据 返回的响应消息中包含的地址来进行判断, 比如检查该地址的长度, 如果发 现对端就是釆用 IPv6网络支持的地址类型, 则跳转步骤 404, 否则, 跳转步 骤 405。
步骤 404, 由于对端 IP地址类型与当前建立的 PDP连接类型相一致, 终 端开始尝试通过当前的 IPv6连接访问对端业务。
步骤 405, 由于对端地址类型与当前建立的 PDP连接类型不一致, 终端 需要重置网络连接,于是终端向 IPv4网络发起 PDP激活请求,在网络成功响 应后建立 IPv4连接。
步骤 406 , 终端开始尝试通过新建立的 IPv4连接访问对端业务。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。
以上仅为本发明的优选实施例, 当然, 本发明还可有其他多种实施例, 在不背离本发明精神及其实质的情况下, 熟悉本领域的技术人员当可根据本 发明作出各种相应的改变和变形, 但这些相应的改变和变形都应属于本发明 所附的权利要求的保护范围。
工业实用性 本发明实施方式提供的一种终端连接网络的方法及双栈终端, 可以根据 域名的解析结果自动选择是否重置网络连接, 而不需要用户本人的参与, 明 显提高了终端连接网络的效率。

Claims

权 利 要 求 书
1、 一种双栈终端连接网络的方法, 包括:
连接至第一网络的双栈终端, 将用户请求访问的业务域名发送给域名系 统服务器进行域名解析, 根据域名系统服务器返回的对所述业务域名的解析 结果, 保持与第一网络的连接或者重置网络连接到第二网络。
2、 如权利要求 1所述的方法, 其中,
所述第一网络为预先设置的优先连接的网络。
3、 如权利要求 1或 2所述的方法, 其中,
所述第一网络为网际协议版本 4 ( IPv4 )网络, 所述第二网络为(网际协 议版本 6 ) IPv6网络; 或者
所述第一网络为 IPv6网络, 所述第二网络为 IPv4网络。
4、 如权利要求 3所述的方法, 其中, 所述终端根据域名系统服务器返回 的对所述业务域名的解析结果, 保持与第一网络的连接或者重置网络连接到 第二网络的步骤包括:
所述终端判断所述域名解析结果中的业务的 IP地址的类型是否为所述第 一网络支持的类型, 如果是, 则保持与第一网络的连接, 如果不是, 则重置 网络连接到第二网络。
5、 如权利要求 4所述的方法, 其中, 所述重置网络连接到第二网络的步 骤包括:
所述终端向第二网络发起分组数据协议( PDP )激活请求, 在所述第二 网络成功响应所述 PDP激活请求后, 建立到第二网络的连接。
6、 如权利要求 1、 2、 4或 5任一项所述的方法, 所述方法还包括: 在保 持与第一网络的连接或者重置网络连接到第二网络后, 所述终端根据域名系 统服务器返回的对所述业务域名的解析结果, 通过当前连接的网络尝试访问 用户请求访问的业务, 若所述业务可用, 则开始访问所述业务。
7、 一种双栈终端, 包括: 连接模块和域名解析模块, 其中:
所述连接模块设置为: 将所述双栈终端连接至第一网络; 以及根据域名 系统服务器返回的对用户请求访问的业务域名的解析结果, 保持与所述第一 网络的连接或者重置网络连接到第二网络;
所述域名解析模块设置为: 将用户请求访问的业务域名发送给所述域名 系统服务器进行域名解析, 以及接收所述域名系统服务器返回的对所述业务 域名的解析结果, 发送给所述连接模块。
8、 如权利要求 7所述的双栈终端, 其中,
所述第一网络为预先设置的优先连接的网络;
所述连接模块是设置为: 判断所述域名解析结果中的业务的 IP地址的类 型是否为所述第一网络支持的类型, 如果是, 则保持与第一网络的连接, 如 果不是, 则重置网络连接到第二网络。
9、 如权利要求 8所述的双栈终端, 其中,
所述连接模块是设置为以如下方式重置网络连接到第二网络: 向第二网 络发起分组数据协议(PDP )激活请求, 在所述第二网络成功响应所述 PDP 激活请求后, 建立到第二网络的连接, 以重置网络连接到第二网络。
10、 如权利要求 7-9任一项所述的双栈终端, 所述双栈终端还包括: 业务请求模块, 其设置为: 根据所述域名系统服务器返回的对所述业务 域名的解析结果, 通过当前连接的网络尝试访问用户请求访问的业务, 若所 述业务可用, 则开始访问所述业务。
PCT/CN2011/076126 2010-06-25 2011-06-22 一种双栈终端连接网络的方法及系统 WO2011160587A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010220533 2010-06-25
CN201010220533.2 2010-06-25

Publications (1)

Publication Number Publication Date
WO2011160587A1 true WO2011160587A1 (zh) 2011-12-29

Family

ID=45370865

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076126 WO2011160587A1 (zh) 2010-06-25 2011-06-22 一种双栈终端连接网络的方法及系统

Country Status (2)

Country Link
CN (1) CN102368789A (zh)
WO (1) WO2011160587A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017000122A1 (zh) * 2015-06-29 2017-01-05 华为技术有限公司 一种双栈地址管理方法及第一网元
RU2612615C2 (ru) * 2012-09-29 2017-03-09 Хуавей Текнолоджиз Ко., Лтд. Способ, устройство и система выделения адреса
CN113766276A (zh) * 2020-06-19 2021-12-07 天翼智慧家庭科技有限公司 基于ip双栈自适应请求的iptv服务的方法与系统
CN116806033A (zh) * 2023-07-26 2023-09-26 福建万物易联网络科技有限公司 移动应用IPv6支持度检测方法及系统
CN113766276B (zh) * 2020-06-19 2024-05-03 天翼数字生活科技有限公司 基于ip双栈自适应请求的iptv服务的方法与系统

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219209A (zh) * 2013-06-03 2014-12-17 中兴通讯股份有限公司 IPv4/IPv6双栈连接网络状态跃迁的方法和装置
CN104852995B (zh) * 2014-02-14 2018-04-06 中国电信股份有限公司 用于访问网络资源的方法、家庭网关和系统
FR3023098A1 (fr) * 2014-06-30 2016-01-01 Orange Procede et systeme de traitement d'une demande de resolution d'un nom d'un serveur, emise par une application cliente sur un reseau de communication.
CN113395364B (zh) 2020-03-11 2023-02-14 华为技术有限公司 一种应用服务器的访问方法及终端
CN115511503A (zh) * 2022-08-29 2022-12-23 北京鑫创数字科技股份有限公司 产品信息追溯方法、装置、设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773988A (zh) * 2004-11-10 2006-05-17 华为技术有限公司 一种服务通用分组无线业务支持节点之间的通讯方法
CN101257389A (zh) * 2007-03-02 2008-09-03 日立通讯技术株式会社 Icmp变换装置
CN101610285A (zh) * 2009-06-15 2009-12-23 北京邮电大学 IPv4与IPv6共存网络中的P2P通信方法
US20100128612A1 (en) * 2008-11-25 2010-05-27 At&T Intellectual Property I, L.P. Diagnosing network problems in an ipv6 dual stack network
CN102088494A (zh) * 2009-12-08 2011-06-08 中兴通讯股份有限公司 一种IPv4/IPv6双栈终端连接网络的方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773988A (zh) * 2004-11-10 2006-05-17 华为技术有限公司 一种服务通用分组无线业务支持节点之间的通讯方法
CN101257389A (zh) * 2007-03-02 2008-09-03 日立通讯技术株式会社 Icmp变换装置
US20100128612A1 (en) * 2008-11-25 2010-05-27 At&T Intellectual Property I, L.P. Diagnosing network problems in an ipv6 dual stack network
CN101610285A (zh) * 2009-06-15 2009-12-23 北京邮电大学 IPv4与IPv6共存网络中的P2P通信方法
CN102088494A (zh) * 2009-12-08 2011-06-08 中兴通讯股份有限公司 一种IPv4/IPv6双栈终端连接网络的方法及系统

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2612615C2 (ru) * 2012-09-29 2017-03-09 Хуавей Текнолоджиз Ко., Лтд. Способ, устройство и система выделения адреса
US9882866B2 (en) 2012-09-29 2018-01-30 Huawei Technologies Co., Ltd. Address allocating method, apparatus, and system
WO2017000122A1 (zh) * 2015-06-29 2017-01-05 华为技术有限公司 一种双栈地址管理方法及第一网元
CN113766276A (zh) * 2020-06-19 2021-12-07 天翼智慧家庭科技有限公司 基于ip双栈自适应请求的iptv服务的方法与系统
CN113766276B (zh) * 2020-06-19 2024-05-03 天翼数字生活科技有限公司 基于ip双栈自适应请求的iptv服务的方法与系统
CN116806033A (zh) * 2023-07-26 2023-09-26 福建万物易联网络科技有限公司 移动应用IPv6支持度检测方法及系统

Also Published As

Publication number Publication date
CN102368789A (zh) 2012-03-07

Similar Documents

Publication Publication Date Title
WO2011160587A1 (zh) 一种双栈终端连接网络的方法及系统
EP2863615B1 (en) Method, push system, and relevant devices for setting up push session
WO2011144134A1 (zh) 一种信息推送方法、装置和系统
WO2011017970A1 (zh) 一种基于多模移动终端的资源下载方法和系统
US8151325B1 (en) Optimizing device authentication by discovering internet protocol version authorizations
WO2018192179A1 (zh) Ip地址的分配方法及装置
WO2016192608A2 (zh) 身份认证方法、身份认证系统和相关设备
WO2011147371A1 (zh) 一种实现虚拟机间数据传输的方法和系统
WO2007028300A1 (en) A method for obtaining the home agent information of the mobile node and a system thereof
WO2013075423A1 (zh) 一种快速建立双栈无线连接的方法及无线终端设备
WO2011091667A1 (zh) 一种数据卡及其快速建立拨号连接的方法
WO2013167083A2 (zh) 一种域名服务器的选择方法和设备
WO2013135124A1 (zh) 一种应用层流量优化服务器的方法、设备及系统
WO2014000678A1 (zh) 分组数据网连接建立方法和设备
WO2010102561A1 (zh) 一种数据本地交换方法、装置和系统
WO2012130048A1 (zh) 设备管理系统中对网关进行初始化的方法及装置
WO2013185696A2 (zh) 一种数据处理的方法与设备
JP2015037275A (ja) 移動通信端末
WO2014180302A1 (zh) 一种应用上网处理方法、装置及终端
JP2013509837A (ja) アイデンティティ及びロケーションマッピングの実現方法及びシステム
WO2013163847A1 (zh) 单pdp双栈串行拨号方法和系统
WO2011120365A1 (zh) 多穴终端建立连接的方法和系统
WO2012167659A1 (zh) 受限应用协议中数据通信的方法和装置
WO2017161866A1 (zh) 网络连接方法及装置
WO2014110917A1 (zh) 会话边界控制器地址的获取方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11797618

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11797618

Country of ref document: EP

Kind code of ref document: A1