[go: up one dir, main page]

CN104702707B - A kind of data processing method and device - Google Patents

A kind of data processing method and device Download PDF

Info

Publication number
CN104702707B
CN104702707B CN201310656606.6A CN201310656606A CN104702707B CN 104702707 B CN104702707 B CN 104702707B CN 201310656606 A CN201310656606 A CN 201310656606A CN 104702707 B CN104702707 B CN 104702707B
Authority
CN
China
Prior art keywords
user equipment
source address
stack
ipv6
domain name
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
CN201310656606.6A
Other languages
Chinese (zh)
Other versions
CN104702707A (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 United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co 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 United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201310656606.6A priority Critical patent/CN104702707B/en
Publication of CN104702707A publication Critical patent/CN104702707A/en
Application granted granted Critical
Publication of CN104702707B publication Critical patent/CN104702707B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/741Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/167Adaptation for transition between two IP versions, e.g. between IPv4 and IPv6

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present invention provides a kind of data processing method and device, is related to the communications field, can shorten the time delay for the user equipment access IPv4 Internet resources for supporting the double stacks of IPv4 and IPv6.Including:Receive the Query Information that user equipment is sent;If the Query Information includes the user equipment source address of IPv6 stacks, the user equipment source address of the IPv6 stacks is extracted;The user equipment source address of the IPv6 stacks is judged whether in the range of default user equipment source address, and the default user equipment source address scope is made of the user equipment source address of the mono- stacks of multiple IPv6;If the user equipment source address of the IPv6 stacks is not in the range of the default user equipment source address, the analysis request of the corresponding AAAA records of the target domain name is parsed using IPv6 stacks, the analysis request of the corresponding A records of the target domain name is parsed using IPv4 stacks.The data processing method and device are used to handle data.

Description

一种数据处理方法及装置A data processing method and device

技术领域technical field

本发明涉及通信领域,尤其涉及一种数据处理方法及装置。The present invention relates to the communication field, in particular to a data processing method and device.

背景技术Background technique

在IPv4(Internet Protocol version4,互联网协议版本4)向IPv6(InternetProtocol version6,互联网协议版本6)过渡时期,城域网中可同时部署IPv4网络和IPv6网络,即IPv4和IPv6共存网络场景,则出现IPv4单栈、IPv6单栈、IPv4和IPv6双栈等类型的用户设备访问IPv4网络、IPv6网络、IPv4和IPv6共存网络等访问方式。双栈(Dual IP Stack)就是在用户设备可以同时使用IPv6和IPv4两个协议栈,且IPv6和IPv4两个协议栈可以并行工作,所述单栈就是用户设备只使用IPv6协议栈或只使用IPv4协议栈。所述协议为在网络中文件传输所使用的传输规则,所述协议栈为网络中各层协议的总和。During the transition period from IPv4 (Internet Protocol version 4, Internet Protocol version 4) to IPv6 (Internet Protocol version 6, Internet Protocol version 6), both IPv4 and IPv6 networks can be deployed in the MAN, that is, in the network scenario where IPv4 and IPv6 coexist, IPv4 Single-stack, IPv6 single-stack, IPv4 and IPv6 dual-stack and other types of user equipment access IPv4 network, IPv6 network, IPv4 and IPv6 coexistence network and other access methods. Dual-stack (Dual IP Stack) means that the user equipment can use both IPv6 and IPv4 protocol stacks at the same time, and the two protocol stacks of IPv6 and IPv4 can work in parallel. The single stack means that the user equipment only uses the IPv6 protocol stack or only uses IPv4 protocol stack. The protocol is the transmission rule used for file transmission in the network, and the protocol stack is the sum of all layers of protocols in the network.

具体的,支持IPv4单栈的用户设备访问IPv4网络资源时,该用户设备向DNS(Domain Name System,域名系统)设备发送查询信息,所述查询信息包括用户设备源地址、目标域名和所述目标域名对应的A(Address,地址)记录的解析请求,DNS设备解析该目标域名对应的A记录的解析请求获得该目标域名对应的IPv4地址并发送给用户设备。所述A记录用于指定域名对应的IPv4地址的DNS记录。Specifically, when a user equipment supporting IPv4 single stack accesses IPv4 network resources, the user equipment sends query information to a DNS (Domain Name System, domain name system) device, and the query information includes the source address of the user equipment, the target domain name, and the target domain name. The resolution request of the A (Address, address) record corresponding to the domain name, and the DNS device resolves the resolution request of the A record corresponding to the target domain name to obtain the IPv4 address corresponding to the target domain name and send it to the user device. The A record is used to specify the DNS record of the IPv4 address corresponding to the domain name.

支持IPv6单栈的用户设备访问IPv6网络资源时,该用户设备向DNS64设备发送查询信息,所述查询信息包括用户设备源地址、目标域名和该目标域名对应的AAAA记录的解析请求,DNS64设备解析该目标域名对应的AAAA记录的解析请求获得该目标域名对应的IPv6地址并发送给用户设备,所述AAAA记录用于指定域名对应的IPv6地址的DNS64记录;当支持IPv6单栈的用户设备访问IPv4网络资源时,该用户设备向DNS64设备发送查询信息,所述查询信息包括该目标域名对应的AAAA记录的解析请求,DNS64设备将该查询信息发送到DNS设备,若DNS设备未设置该目标域名对应的AAAA记录,向DNS64设备返回空消息,DNS64设备生成该目标域名对应的A记录的解析请求,向DNS设备发送所述该目标域名对应的A记录的解析请求,DNS设备解析所述该目标域名对应的A记录的解析请求,获得该目标域名对应的IPv4地址,将该IPv4地址发送给DNS64设备,DNS64设备生成虚拟IPv6地址并发送给用户设备。When a user device that supports IPv6 single stack accesses IPv6 network resources, the user device sends query information to the DNS64 device. The query information includes the source address of the user device, the target domain name, and the resolution request for the AAAA record corresponding to the target domain name, and the DNS64 device resolves The resolution request of the AAAA record corresponding to the target domain name obtains the IPv6 address corresponding to the target domain name and sends it to the user equipment, and the AAAA record is used to specify the DNS64 record of the IPv6 address corresponding to the domain name; when the user equipment supporting IPv6 single stack accesses IPv4 network resources, the user device sends query information to the DNS64 device, the query information includes the resolution request for the AAAA record corresponding to the target domain name, and the DNS64 device sends the query information to the DNS device, if the DNS device is not set to correspond to the target domain name AAAA records, return an empty message to the DNS64 device, the DNS64 device generates a resolution request for the A record corresponding to the target domain name, sends a resolution request for the A record corresponding to the target domain name to the DNS device, and the DNS device resolves the target domain name The resolution request of the corresponding A record obtains the IPv4 address corresponding to the target domain name, and sends the IPv4 address to the DNS64 device, and the DNS64 device generates a virtual IPv6 address and sends it to the user equipment.

支持IPv4和IPv6双栈的用户设备访问IPv4和IPv6共存网络资源时,可以只用DNS解析,即普通的IPv4和IPv6双栈解析。在IPv4和IPv6双栈的用户设备访问IPv4网络资源时,可以采用IPv4栈访问IPv4网络资源,即该用户设备向DNS设备发送查询信息,所述查询信息包括该目标域名对应的A记录的解析请求,DNS设备解析该目标域名对应的A记录的解析请求获得该目标域名对应的IPv4地址并发送给用户设备,该IPv4和IPv6双栈用户设备根据所述解析的IPv4地址通过IPv4栈访问IPv4网络资源。在IPv4和IPv6双栈的用户设备访问IPv6网络资源时,可以采用IPv6栈访问IPv6网络资源,即该用户设备向DNS设备发送查询信息,所述查询信息包括该目标域名对应的AAAA记录的解析请求,DNS设备解析该目标域名对应的AAAA记录的解析请求获得该目标域名对应的IPv6地址并发送给用户设备,该IPv4和IPv6双栈用户设备根据所述解析的IPv6地址通过IPv6栈访问IPv6网络资源。When a user equipment that supports IPv4 and IPv6 dual stacks accesses network resources where IPv4 and IPv6 coexist, it can only use DNS resolution, that is, ordinary IPv4 and IPv6 dual stack resolution. When an IPv4 and IPv6 dual-stack user equipment accesses IPv4 network resources, the IPv4 stack can be used to access IPv4 network resources, that is, the user equipment sends query information to the DNS device, and the query information includes the resolution request for the A record corresponding to the target domain name , the DNS device resolves the resolution request of the A record corresponding to the target domain name to obtain the IPv4 address corresponding to the target domain name and sends it to the user equipment, and the IPv4 and IPv6 dual-stack user equipment accesses IPv4 network resources through the IPv4 stack according to the resolved IPv4 address . When an IPv4 and IPv6 dual-stack user equipment accesses IPv6 network resources, the IPv6 stack can be used to access IPv6 network resources, that is, the user equipment sends query information to the DNS device, and the query information includes a resolution request for the AAAA record corresponding to the target domain name , the DNS device resolves the resolution request of the AAAA record corresponding to the target domain name to obtain the IPv6 address corresponding to the target domain name and sends it to the user equipment, and the IPv4 and IPv6 dual-stack user equipment accesses IPv6 network resources through the IPv6 stack according to the resolved IPv6 address .

现有技术中,在城域网中部署了IPv4和IPv6共存网络,并为了兼顾IPv6单栈用户设备而部署了NAT64(Network Address Translation64,网络地址转换64)设备和DNS64设备,DNS64设备主要应用于IPv6单栈用户设备访问IPv4网络资源或IPv6网络资源,NAT64设备用于将IPv4地址转换为IPv6地址或将IPv6地址转换为IPv4地址。但是,支持IPv4和IPv6双栈的用户设备访问IPv4网络资源时,IPv4和IPv6双栈的用户设备向DNS设备发送查询信息,所述查询信息包括该目标域名对应的A记录的解析请求和该目标域名对应的AAAA记录的解析请求,而该目标域名对应的AAAA记录的解析请求和该目标域名对应的A记录的解析请求被在城域网中部署的DNS64设备截获,该DNS64设备中没有该目标域名对应的AAAA记录,将该目标域名对应的A记录的解析请求发送给DNS设备,DNS设备解析该目标域名对应的A记录的解析请求获得该目标域名对应的IPv4地址,将该目标域名对应的IPv4地址返回给该DNS64设备,该DNS64设备生成一个该目标域名对应的IPv4地址加知名前缀的虚拟IPv6地址,将所述虚拟IPv6地址返回给该用户设备,则用户设备使用该虚拟IPv6地址来访问IPv4网络资源,即用户设备根据虚拟IPv6地址向IPv4网络中的IPv4服务器发送连接请求,所述IPv4服务器可以是目标域名的网站的服务器,由于访问IPv4网络资源需要使用IPv4地址,用户设备首先将虚拟IPv6地址发送给NAT64设备,NAT64设备将虚拟IPv6地址转换为IPv4地址,然后根据所述IPv4地址访问IPv4网络资源。因此,IPv4和IPv6双栈用户设备访问IPv4网络资源时经过IPv6与IPv4的协议转换,即IPv4和IPv6双栈的用户设备访问IPv4网络资源时发生了绕转现象,增加了支持IPv4和IPv6双栈的用户设备访问IPv4网络资源的时延,降低了支持IPv4和IPv6双栈的用户设备访问IPv4网络资源的体验度。In the prior art, an IPv4 and IPv6 coexistence network is deployed in a metropolitan area network, and NAT64 (Network Address Translation64, Network Address Translation 64) equipment and DNS64 equipment are deployed in order to take into account IPv6 single-stack user equipment. DNS64 equipment is mainly used in IPv6 single-stack user equipment accesses IPv4 network resources or IPv6 network resources, and NAT64 equipment is used to convert IPv4 addresses to IPv6 addresses or convert IPv6 addresses to IPv4 addresses. However, when a user equipment supporting IPv4 and IPv6 dual-stack accesses IPv4 network resources, the user equipment of IPv4 and IPv6 dual-stack sends query information to the DNS device, and the query information includes the resolution request of the A record corresponding to the target domain name and the target The resolution request of the AAAA record corresponding to the domain name, and the resolution request of the AAAA record corresponding to the target domain name and the resolution request of the A record corresponding to the target domain name are intercepted by the DNS64 device deployed in the MAN, and the DNS64 device does not have the target The AAAA record corresponding to the domain name, the resolution request of the A record corresponding to the target domain name is sent to the DNS device, and the DNS device resolves the resolution request of the A record corresponding to the target domain name to obtain the IPv4 address corresponding to the target domain name, and the corresponding The IPv4 address is returned to the DNS64 device, and the DNS64 device generates a virtual IPv6 address corresponding to the IPv4 address of the target domain name plus a name prefix, returns the virtual IPv6 address to the user equipment, and the user equipment uses the virtual IPv6 address to access IPv4 network resources, that is, the user equipment sends a connection request to the IPv4 server in the IPv4 network according to the virtual IPv6 address. The IPv6 address is sent to the NAT64 device, and the NAT64 device converts the virtual IPv6 address into an IPv4 address, and then accesses IPv4 network resources according to the IPv4 address. Therefore, when IPv4 and IPv6 dual-stack user equipment accesses IPv4 network resources, it undergoes protocol conversion between IPv6 and IPv4, that is, IPv4 and IPv6 dual-stack user equipment accesses IPv4 network resources. The delay of user equipment accessing IPv4 network resources reduces the experience of user equipment supporting IPv4 and IPv6 dual stack accessing IPv4 network resources.

发明内容Contents of the invention

本发明的实施例提供一种数据处理方法及装置,能够缩短支持IPv4和IPv6双栈的用户设备访问IPv4网络资源的时延。Embodiments of the present invention provide a data processing method and device, which can shorten the time delay for user equipment supporting IPv4 and IPv6 dual stacks to access IPv4 network resources.

为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:

第一方面,提供一种数据处理方法,应用于域名系统DNS设备,包括:In the first aspect, a data processing method is provided, which is applied to Domain Name System (DNS) equipment, including:

接收用户设备发送的查询信息,所述查询信息包括用户设备源地址、目标域名,所述查询信息还包括所述目标域名对应的A记录的解析请求和所述目标域名对应的AAAA记录的解析请求中的至少一个;Receive the query information sent by the user equipment, the query information includes the source address of the user equipment, the target domain name, and the query information also includes the resolution request of the A record corresponding to the target domain name and the resolution request of the AAAA record corresponding to the target domain name at least one of;

若所述查询信息包括IPv6栈的用户设备源地址,提取所述IPv6栈的用户设备源地址;If the query information includes the user equipment source address of the IPv6 stack, extracting the user equipment source address of the IPv6 stack;

判断所述IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内,所述预设的用户设备源地址范围由多个IPv6单栈的用户设备源地址组成;Judging whether the user equipment source address of the IPv6 stack is within a preset user equipment source address range, and the preset user equipment source address range is composed of multiple IPv6 single-stack user equipment source addresses;

若所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内,采用IPv6栈解析所述目标域名对应的AAAA记录的解析请求,采用IPv4栈解析所述目标域名对应的A记录的解析请求。If the user equipment source address of the IPv6 stack is not within the preset user equipment source address range, the IPv6 stack is used to resolve the resolution request of the AAAA record corresponding to the target domain name, and the IPv4 stack is used to resolve the AA corresponding to the target domain name Logged parse requests.

第二方面,提供一种域名系统DNS设备,包括:In the second aspect, a Domain Name System (DNS) device is provided, including:

接收单元,用于接收用户设备发送的查询信息,所述查询信息包括用户设备源地址、目标域名,所述查询信息还包括所述目标域名对应的A记录的解析请求和所述目标域名对应的AAAA记录的解析请求中的至少一个;The receiving unit is configured to receive query information sent by the user equipment, the query information includes the source address of the user equipment, the target domain name, and the query information also includes the resolution request of the A record corresponding to the target domain name and the A record corresponding to the target domain name. At least one of the resolution requests recorded by the AAAA;

提取单元,用于在所述查询信息包括IPv6栈的用户设备源地址时,提取所述IPv6栈的用户设备源地址;An extracting unit, configured to extract the source address of the user equipment of the IPv6 stack when the query information includes the source address of the user equipment of the IPv6 stack;

第一判断单元,用于判断所述IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内,所述预设的用户设备源地址范围由多个IPv6单栈的用户设备源地址组成;The first judging unit is used to judge whether the user equipment source address of the IPv6 stack is within the preset user equipment source address range, and the preset user equipment source address range consists of multiple IPv6 single-stack user equipment source addresses composition;

第一解析单元,用于在所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内时,采用IPv6栈解析所述目标域名对应的AAAA记录的解析请求,采用IPv4栈解析所述目标域名对应的A记录的解析请求。The first parsing unit is configured to use the IPv6 stack to resolve the resolution request of the AAAA record corresponding to the target domain name when the user equipment source address of the IPv6 stack is not within the preset user equipment source address range, and use the IPv4 stack Analyzing the resolution request of the A record corresponding to the target domain name.

本发明的实施例提供一种数据处理方法及装置,所述数据处理方法,包括:接收用户设备发送的查询信息,所述查询信息包括用户设备源地址、目标域名,所述查询信息还包括所述目标域名对应的A记录的解析请求和所述目标域名对应的AAAA记录的解析请求中的至少一个;若所述查询信息包括IPv6栈的用户设备源地址,提取所述IPv6栈的用户设备源地址;判断所述IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内,所述预设的用户设备源地址范围由多个IPv6单栈的用户设备源地址组成;若所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内,采用IPv6栈解析所述目标域名对应的AAAA记录的解析请求,采用IPv4栈解析所述目标域名对应的A记录的解析请求。这样一来,接收用户设备发送的查询信息,若该查询信息包括IPv6栈的用户设备源地址,提取该IPv6栈的用户设备源地址,然后,判断IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内,若所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内,采用IPv6栈解析所述目标域名对应的AAAA记录的解析请求,采用IPv4栈解析所述目标域名对应的A记录的解析请求,相对于现有技术,避免了IPv4和IPv6双栈的用户设备访问IPv4网络资源时发生的绕转问题,有效缩短了支持IPv4和IPv6双栈的用户设备访问IPv4网络资源的时延。Embodiments of the present invention provide a data processing method and device. The data processing method includes: receiving query information sent by user equipment, where the query information includes the source address of the user equipment and the target domain name, and the query information also includes the At least one of the resolution request of the A record corresponding to the target domain name and the resolution request of the AAAA record corresponding to the target domain name; if the query information includes the user equipment source address of the IPv6 stack, extract the user equipment source address of the IPv6 stack address; determine whether the user equipment source address of the IPv6 stack is within the preset user equipment source address range, and the preset user equipment source address range is composed of multiple IPv6 single-stack user equipment source addresses; if the The user equipment source address of the IPv6 stack is not within the preset user equipment source address range, using the IPv6 stack to resolve the resolution request for the AAAA record corresponding to the target domain name, and using the IPv4 stack to resolve the resolution of the A record corresponding to the target domain name ask. In this way, the query information sent by the user equipment is received, if the query information includes the source address of the user equipment of the IPv6 stack, the source address of the user equipment of the IPv6 stack is extracted, and then it is judged whether the source address of the user equipment of the IPv6 stack is within the preset Within the range of the source address of the user equipment, if the source address of the user equipment of the IPv6 stack is not within the range of the preset source address of the user equipment, use the IPv6 stack to resolve the resolution request for the AAAA record corresponding to the target domain name, and use the IPv4 stack to resolve The resolution request of the A record corresponding to the target domain name, compared with the prior art, avoids the circumvention problem that occurs when the IPv4 and IPv6 dual-stack user equipment accesses IPv4 network resources, and effectively shortens the time for users supporting IPv4 and IPv6 dual-stack. Delay for a device to access IPv4 network resources.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例提供一种数据处理方法流程图;Fig. 1 provides a flow chart of a data processing method according to an embodiment of the present invention;

图2为本发明实施例提供另一种数据处理方法流程图;FIG. 2 is a flow chart of another data processing method provided by an embodiment of the present invention;

图3为本发明实施例提供一种域名系统DNS设备结构示意图;FIG. 3 is a schematic structural diagram of a Domain Name System (DNS) device provided by an embodiment of the present invention;

图4为本发明实施例提供另一种域名系统DNS设备结构示意图。FIG. 4 is a schematic structural diagram of another Domain Name System (DNS) device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明实施例提供一种数据处理方法,应用于域名系统DNS设备,如图1所示,包括:An embodiment of the present invention provides a data processing method, which is applied to a Domain Name System (DNS) device, as shown in FIG. 1 , including:

步骤101、接收用户设备发送的查询信息,所述查询信息包括用户设备源地址、目标域名,所述查询信息还包括所述目标域名对应的A记录的解析请求和所述目标域名对应的AAAA记录的解析请求中的至少一个。Step 101: Receive the query information sent by the user equipment, the query information includes the source address of the user equipment, the target domain name, and the query information also includes the resolution request of the A record corresponding to the target domain name and the AAAA record corresponding to the target domain name At least one of the parse requests for .

步骤102、若所述查询信息包括IPv6栈的用户设备源地址,提取所述IPv6栈的用户设备源地址。Step 102, if the query information includes the source address of the user equipment of the IPv6 stack, extract the source address of the user equipment of the IPv6 stack.

首先,判断所述查询信息是否包括IPv6栈的用户设备源地址,若该查询信息不包括IPv6栈的用户设备源地址,采用IPv4栈解析所述目标域名对应的A记录的解析请求,若该查询信息包括IPv6栈的用户设备源地址,则提取所述IPv6栈的用户设备源地址。First, determine whether the query information includes the source address of the user equipment of the IPv6 stack, if the query information does not include the source address of the user equipment of the IPv6 stack, use the IPv4 stack to resolve the resolution request of the A record corresponding to the target domain name, if the query If the information includes the source address of the user equipment of the IPv6 stack, the source address of the user equipment of the IPv6 stack is extracted.

步骤103、判断所述IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内,所述预设的用户设备源地址范围由多个IPv6单栈的用户设备源地址组成。Step 103. Determine whether the user equipment source address of the IPv6 stack is within a preset user equipment source address range, and the preset user equipment source address range is composed of multiple IPv6 single-stack user equipment source addresses.

首先,设置用户设备源地址范围,预设的用户设备源地址范围由多个IPv6单栈的用户设备源地址组成,组成所述预设的用户设备源地址范围的Pv6单栈的用户设备源地址为IPv4地址加第一前缀的IPv6单栈的用户设备源地址,IPv4地址加第二前缀的IPv6单栈的用户设备源地址和IPv6单栈的用户设备源地址段中的任意一种。First, the user equipment source address range is set, the preset user equipment source address range is composed of a plurality of IPv6 single-stack user equipment source addresses, and the user equipment source addresses of the Pv6 single-stack forming the preset user equipment source address range Any one of the IPv4 address plus the first prefix IPv6 single-stack user equipment source address, the IPv4 address plus the second prefix IPv6 single-stack user equipment source address and the IPv6 single-stack user equipment source address segment.

步骤104、若所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内,采用IPv6栈解析所述目标域名对应的AAAA记录的解析请求,采用IPv4栈解析所述目标域名对应的A记录的解析请求。Step 104, if the user equipment source address of the IPv6 stack is not within the preset user equipment source address range, use the IPv6 stack to resolve the resolution request for the AAAA record corresponding to the target domain name, and use the IPv4 stack to resolve the target domain name The parsing request for the corresponding A record.

若所述IPv6栈的用户设备源地址在所述预设的用户设备源地址范围内,采用DNS64解析所述目标域名对应的AAAA记录的解析请求。若所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内,则采用IPv6栈解析所述目标域名对应的AAAA记录的解析请求,采用IPv4栈解析所述目标域名对应的A记录的解析请求。If the user equipment source address of the IPv6 stack is within the preset user equipment source address range, DNS64 is used to resolve the resolution request of the AAAA record corresponding to the target domain name. If the user equipment source address of the IPv6 stack is not within the preset user equipment source address range, the IPv6 stack is used to resolve the resolution request of the AAAA record corresponding to the target domain name, and the IPv4 stack is used to resolve the AAAA record corresponding to the target domain name The parsing request for the A record.

这样一来,接收用户设备发送的查询信息,若该查询信息包括IPv6栈的用户设备源地址,提取该IPv6栈的用户设备源地址,然后,判断IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内,若所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内,采用IPv6栈解析所述目标域名对应的AAAA记录的解析请求,采用IPv4栈解析所述目标域名对应的A记录的解析请求,相对于现有技术,避免了IPv4和IPv6双栈的用户设备访问IPv4网络资源时发生的绕转问题,有效缩短了支持IPv4和IPv6双栈的用户设备访问IPv4网络资源的时延。In this way, the query information sent by the user equipment is received, if the query information includes the source address of the user equipment of the IPv6 stack, the source address of the user equipment of the IPv6 stack is extracted, and then it is judged whether the source address of the user equipment of the IPv6 stack is within the preset Within the range of the source address of the user equipment, if the source address of the user equipment of the IPv6 stack is not within the range of the preset source address of the user equipment, use the IPv6 stack to resolve the resolution request for the AAAA record corresponding to the target domain name, and use the IPv4 stack to resolve The resolution request of the A record corresponding to the target domain name, compared with the prior art, avoids the circumvention problem that occurs when the IPv4 and IPv6 dual-stack user equipment accesses IPv4 network resources, and effectively shortens the time for users supporting IPv4 and IPv6 dual-stack. Delay for a device to access IPv4 network resources.

本发明实施例提供一种数据处理方法,应用于域名系统DNS设备,所述DNS设备具有域名系统64DNS64解析功能、IPv6栈解析功能、IPv4栈解析功能,如图2所示,包括:The embodiment of the present invention provides a data processing method, which is applied to a domain name system DNS device, and the DNS device has a domain name system 64DNS64 resolution function, an IPv6 stack resolution function, and an IPv4 stack resolution function, as shown in FIG. 2 , including:

步骤201、设置用户设备源地址范围。Step 201, setting the source address range of the user equipment.

在DNS设备上设置用户设备源地址范围,预设的用户设备源地址范围由多个IPv6单栈的用户设备源地址组成,具体的,组成所述预设的用户设备源地址范围的Pv6单栈的用户设备源地址为IPv4地址加第一前缀的IPv6单栈的用户设备源地址,IPv4地址加第二前缀的IPv6单栈的用户设备源地址和IPv6单栈的用户设备源地址段中的任意一种。所述第一前缀可以为知名前缀,所述第二前缀可以为DNS设备已知的自定义前缀,即私网地址前缀,实际应用中,所述知名前缀可以为64:FF9B::,所述DNS设备已知的自定义前缀可以为65:FF9B::。The user equipment source address range is set on the DNS device. The preset user equipment source address range is composed of multiple IPv6 single-stack user equipment source addresses. Specifically, the IPv6 single stack that forms the preset user equipment source address range The source address of the user equipment is the user equipment source address of the IPv4 address plus the first prefix of the IPv6 single stack, the source address of the user equipment of the IPv6 single stack of the IPv4 address plus the second prefix and any of the user equipment source addresses of the IPv6 single stack A sort of. The first prefix may be a well-known prefix, and the second prefix may be a custom prefix known to the DNS device, that is, a private network address prefix. In practical applications, the well-known prefix may be 64:FF9B::, the A custom prefix known to the DNS device can be 65:FF9B::.

示例的,假设IPv4地址为10.10.10.10,则IPv4地址加知名前缀的IPv6单栈的用户设备源地址可以为64:FF9B::10.10.10.10。IPv4地址加DNS设备已知的自定义前缀的IPv6单栈的用户设备源地址可以为65:FF9B::10.10.10.10。假设IPv4地址段可以为10.10.0.1到10.10.255.255,则IPv6单栈的用户设备源地址段可以为64:FF9B::10.10.0.1到64:FF9B::10.10.255.255。For example, assuming that the IPv4 address is 10.10.10.10, the source address of the user equipment of the IPv6 single stack with the IPv4 address plus the name prefix may be 64: FF9B::10.10.10.10. The source address of the IPv6 single-stack user equipment of the IPv4 address plus the self-defined prefix known to the DNS device may be 65: FF9B::10.10.10.10. Assuming that the IPv4 address segment may be 10.10.0.1 to 10.10.255.255, the user equipment source address segment of the IPv6 single stack may be 64:FF9B::10.10.0.1 to 64:FF9B::10.10.255.255.

步骤202、接收用户设备发送的查询信息。Step 202, receiving query information sent by the user equipment.

用户可以通过用户设备提供的浏览器输入目标域名,该用户设备向DNS设备发送查询信息,该DNS设备接收用户设备发送的查询信息。所述查询信息包括用户设备源地址、目的地址和目标域名,所述查询信息还包括所述目标域名对应的A记录的解析请求和所述目标域名对应的AAAA记录的解析请求中的至少一个。所述目的地址为该目标域名对应的A记录和该目标域名对应的AAAA记录所在的DNS设备的地址,该用户设备预先设置该DNS设备的地址,所述目标域名为用户设备需要访问的域名,所述目标域名对应的A记录的解析请求为当DNS设备接收到所述查询信息后解析所述目标域名对应的A记录,即将该目标域名映射为该目标域名对应的IPv4地址,或解析所述目标域名对应的AAAA记录,即将该目标域名映射为该目标域名对应的IPv6地址。The user can input the target domain name through the browser provided by the user equipment, and the user equipment sends query information to the DNS device, and the DNS device receives the query information sent by the user equipment. The query information includes user equipment source address, destination address, and target domain name, and the query information also includes at least one of an A record resolution request corresponding to the target domain name and an AAAA record resolution request corresponding to the target domain name. The destination address is the address of the DNS device where the A record corresponding to the target domain name and the AAAA record corresponding to the target domain name are located, the user device presets the address of the DNS device, and the target domain name is the domain name that the user device needs to access, The resolution request of the A record corresponding to the target domain name is to resolve the A record corresponding to the target domain name after the DNS device receives the query information, that is, to map the target domain name to the IPv4 address corresponding to the target domain name, or to resolve the A record corresponding to the target domain name. The AAAA record corresponding to the target domain name is to map the target domain name to the IPv6 address corresponding to the target domain name.

示例的,假设用户通过用户设备提供的浏览器输入目标域名www.bdidu.com来访问百度网站,若用户设备配置了DNS设备的地址,则用户设备根据配置的DNS设备的地址向所述DNS设备发送查询信息,所述查询信息包括用户设备源地址、配置的DNS设备的地址、百度域名和百度域名对应的A记录的解析请求。该DNS设备接收用户设备发送的查询信息,然后,解析所述查询信息,若该DNS设备设置有百度域名对应的A记录的映射关系,根据预先设置的百度域名对应的A记录的映射关系,获得百度的IPv4地址202.108.22.5。For example, assuming that the user enters the target domain name www.bdidu.com through the browser provided by the user equipment to visit the Baidu website, if the user equipment is configured with the address of the DNS device, the user equipment will send the DNS device to the DNS device according to the address of the configured DNS device. Send query information, the query information includes the source address of the user equipment, the address of the configured DNS device, the Baidu domain name and the resolution request of the A record corresponding to the Baidu domain name. The DNS device receives the query information sent by the user equipment, and then analyzes the query information. If the DNS device is provided with the mapping relationship of the A record corresponding to the Baidu domain name, according to the preset mapping relationship of the A record corresponding to the Baidu domain name, obtain Baidu's IPv4 address is 202.108.22.5.

需要说明的是,IPv4单栈的用户设备的查询信息包括目标域名对应的A记录的解析请求,IPv6单栈的用户设备的查询信息包括目标域名对应的AAAA记录的解析请求,IPv4和IPv6双栈的用户设备的查询信息包括目标域名对应的A记录的解析请求和目标域名对应的AAAA记录的解析请求。It should be noted that the query information of the IPv4 single-stack user equipment includes the resolution request of the A record corresponding to the target domain name, the query information of the IPv6 single-stack user equipment includes the resolution request of the AAAA record corresponding to the target domain name, and the IPv4 and IPv6 dual-stack The query information of the user equipment includes the resolution request of the A record corresponding to the target domain name and the resolution request of the AAAA record corresponding to the target domain name.

步骤203、判断查询信息是否包括IPv6栈的用户设备源地址。Step 203, judging whether the query information includes the source address of the user equipment of the IPv6 stack.

DNS设备接收到用户设备发送的查询信息后,判断所述查询信息中携带的用户设备源地址是否包括IPv6栈的用户设备源地址。若该查询信息不包括IPv6栈的用户设备源地址,即用户设备源地址为IPv4栈的用户设备源地址。执行步骤204。若该查询信息包括IPv6栈的用户设备源地址,即用户设备源地址为IPv6栈的用户设备源地址。执行步骤205。After receiving the query information sent by the user equipment, the DNS device judges whether the source address of the user equipment carried in the query information includes the source address of the user equipment of the IPv6 stack. If the query information does not include the source address of the user equipment of the IPv6 stack, that is, the source address of the user equipment is the source address of the user equipment of the IPv4 stack. Execute step 204. If the query information includes the source address of the user equipment of the IPv6 stack, that is, the source address of the user equipment is the source address of the user equipment of the IPv6 stack. Execute step 205.

步骤204、采用IPv4栈解析目标域名对应的A记录的解析请求。Step 204, using the IPv4 stack to resolve the resolution request of the A record corresponding to the target domain name.

IPv4栈的用户设备源地址可以是IPv4单栈的用户设备源地址,还可以是IPv4和IPv6双栈的IPv4栈的用户设备源地址。DNS设备接收到查询信息后,若DNS设备设置有目标域名对应的A记录,采用IPv4栈解析目标域名对应的A记录的解析请求,获得目标域名对应的A记录的映射关系,即该目标域名对应的IPv4地址。The user equipment source address of the IPv4 stack may be the user equipment source address of the IPv4 single stack, or the user equipment source address of the IPv4 stack of the IPv4 and IPv6 dual stack. After the DNS device receives the query information, if the DNS device has an A record corresponding to the target domain name, it uses the IPv4 stack to resolve the resolution request of the A record corresponding to the target domain name, and obtains the mapping relationship of the A record corresponding to the target domain name, that is, the target domain name corresponds to IPv4 address.

本发明实施例假设该查询信息包括IPv6栈的用户设备源地址,执行步骤205。In the embodiment of the present invention, it is assumed that the query information includes the source address of the user equipment of the IPv6 stack, and step 205 is executed.

步骤205、提取IPv6栈的用户设备源地址。Step 205, extracting the user equipment source address of the IPv6 stack.

若所述查询信息包括IPv6栈的用户设备源地址,所述IPv6栈的用户设备源地址可以是IPv6单栈的用户设备源地址,还可以是IPv4和IPv6双栈的IPv6栈的用户设备源地址。If the query information includes the source address of the user equipment of the IPv6 stack, the source address of the user equipment of the IPv6 stack may be the source address of the user equipment of the IPv6 single stack, or the source address of the user equipment of the IPv6 stack of the IPv4 and IPv6 dual stack .

步骤206、判断IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内。Step 206, judging whether the user equipment source address of the IPv6 stack is within a preset range of user equipment source addresses.

IPv6栈的用户设备源地址可以是在预设的用户设备源地址范围内中的任意一种。若所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内,则所述用户设备源地址为IPv4和IPv6双栈的IPv6栈的用户设备源地址,执行步骤207至步骤2010。若所述IPv6栈的用户设备源地址在所述预设的用户设备源地址范围内,执行步骤2011至步骤2012。The user equipment source address of the IPv6 stack may be any one within a preset range of user equipment source addresses. If the user equipment source address of the IPv6 stack is not within the preset user equipment source address range, then the user equipment source address is the user equipment source address of the IPv6 stack of the IPv4 and IPv6 dual stack, and step 207 to step 2010. If the user equipment source address of the IPv6 stack is within the preset user equipment source address range, perform steps 2011 to 2012.

本发明实施例假设所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内,即不在所述预设的用户设备源地址范围内的IPv6栈的用户设备源地址发送的查询信息不属于DNS64解析的范围内,属于IPv4和IPv6双栈解析的范围,具体的执行步骤207至步骤2010。In this embodiment of the present invention, it is assumed that the user equipment source address of the IPv6 stack is not within the preset user equipment source address range, that is, the user equipment source address of the IPv6 stack that is not within the preset user equipment source address range is sent The query information does not belong to the scope of DNS64 analysis, but belongs to the scope of IPv4 and IPv6 dual-stack analysis, specifically execute steps 207 to 2010.

步骤207、采用IPv6栈解析目标域名对应的AAAA记录的解析请求。执行步骤208。Step 207, using the IPv6 stack to resolve the resolution request of the AAAA record corresponding to the target domain name. Execute step 208.

由于IPv4和IPv6双栈的用户设备设置有IPv4栈和IPv6栈,因此IPv4和IPv6双栈的用户设备的查询信息包括所述目标域名对应的A记录的解析请求和所述目标域名对应的AAAA记录的解析请求。DNS设备接收到IPv4和IPv6双栈的用户设备发送的所述查询信息后,若DNS设备设置有所述目标域名对应的AAAA记录,采用IPv6栈解析所述目标域名对应的AAAA记录的解析请求,获得该目标域名对应的AAAA记录的映射关系,即该目标域名对应的IPv6地址。若DNS设备未设置有所述目标域名对应的AAAA记录,则向IPv4和IPv6双栈的用户设备返回解析失败消息。本发明实施例假设DNS设备设置有所述目标域名对应的AAAA记录,获得该目标域名对应的AAAA记录的映射关系,即该目标域名对应的IPv6地址。Since the IPv4 and IPv6 dual-stack user equipment is provided with an IPv4 stack and an IPv6 stack, the query information of the IPv4 and IPv6 dual-stack user equipment includes the resolution request of the A record corresponding to the target domain name and the AAAA record corresponding to the target domain name parse request for . After the DNS device receives the query information sent by the IPv4 and IPv6 dual-stack user equipment, if the DNS device is set with the AAAA record corresponding to the target domain name, the IPv6 stack is used to resolve the resolution request of the AAAA record corresponding to the target domain name, Obtain the mapping relationship of the AAAA record corresponding to the target domain name, that is, the IPv6 address corresponding to the target domain name. If the DNS device is not set with the AAAA record corresponding to the target domain name, a resolution failure message is returned to the IPv4 and IPv6 dual-stack user equipment. In the embodiment of the present invention, it is assumed that the DNS device is set with an AAAA record corresponding to the target domain name, and the mapping relationship of the AAAA record corresponding to the target domain name is obtained, that is, the IPv6 address corresponding to the target domain name.

步骤208、向IPv4和IPv6双栈的用户设备发送目标域名对应的IPv6地址。Step 208, sending the IPv6 address corresponding to the target domain name to the user equipment with dual-stack IPv4 and IPv6.

DNS设备向IPv4和IPv6双栈的用户设备发送所述目标域名对应的IPv6地址。该IPv4和IPv6双栈的用户设备接收所述目标域名对应的IPv6地址,根据该IPv6地址访问目标域名的网站的服务器,使得IPv4和IPv6双栈的用户设备的浏览器显示目标域名的网站的内容。The DNS device sends the IPv6 address corresponding to the target domain name to the IPv4 and IPv6 dual-stack user equipment. The IPv4 and IPv6 dual-stack user equipment receives the IPv6 address corresponding to the target domain name, and accesses the server of the website of the target domain name according to the IPv6 address, so that the browser of the IPv4 and IPv6 dual-stack user equipment displays the content of the website of the target domain name .

步骤209、采用IPv4栈解析目标域名对应的A记录的解析请求。执行步骤2010。Step 209, using the IPv4 stack to resolve the resolution request of the A record corresponding to the target domain name. Execute step 2010.

由于IPv4和IPv6双栈的用户设备设置有IPv4栈和IPv6栈,因此IPv4和IPv6双栈的用户设备的查询信息包括所述目标域名对应的A记录的解析请求和所述目标域名对应的AAAA记录的解析请求。DNS设备接收到IPv4和IPv6双栈的用户设备发送的所述查询信息后,若DNS设备设置有所述目标域名对应的A记录,采用IPv4栈解析所述目标域名对应的A记录的解析请求,获得该目标域名对应的A记录的映射关系,即该目标域名对应的IPv4地址。若DNS设备未设置有所述目标域名对应的A记录,则向IPv4和IPv6双栈的用户设备返回解析失败消息。本发明实施例假设DNS设备设置有所述目标域名对应的A记录,获得该目标域名对应的A记录的映射关系,即该目标域名对应的IPv4地址。Since the IPv4 and IPv6 dual-stack user equipment is provided with an IPv4 stack and an IPv6 stack, the query information of the IPv4 and IPv6 dual-stack user equipment includes the resolution request of the A record corresponding to the target domain name and the AAAA record corresponding to the target domain name parse request for . After the DNS device receives the query information sent by the IPv4 and IPv6 dual-stack user equipment, if the DNS device is set with the A record corresponding to the target domain name, the IPv4 stack is used to resolve the resolution request of the A record corresponding to the target domain name, Obtain the mapping relationship of the A record corresponding to the target domain name, that is, the IPv4 address corresponding to the target domain name. If the A record corresponding to the target domain name is not set in the DNS device, a resolution failure message is returned to the IPv4 and IPv6 dual-stack user equipment. In the embodiment of the present invention, it is assumed that the DNS device is set with an A record corresponding to the target domain name, and the mapping relationship of the A record corresponding to the target domain name is obtained, that is, the IPv4 address corresponding to the target domain name.

步骤2010、向IPv4和IPv6双栈的用户设备发送目标域名对应的IPv4地址。Step 2010, sending the IPv4 address corresponding to the target domain name to the IPv4 and IPv6 dual-stack user equipment.

DNS设备向IPv4和IPv6双栈的用户设备发送所述目标域名对应的IPv4地址。该IPv4和IPv6双栈的用户设备接收所述目标域名对应的IPv4地址,根据该IPv4地址访问目标域名的网站的服务器,使得IPv4和IPv6双栈的用户设备的浏览器显示目标域名的网站的内容。The DNS device sends the IPv4 address corresponding to the target domain name to the IPv4 and IPv6 dual-stack user equipment. The IPv4 and IPv6 dual-stack user equipment receives the IPv4 address corresponding to the target domain name, and accesses the server of the website of the target domain name according to the IPv4 address, so that the browser of the IPv4 and IPv6 dual-stack user equipment displays the content of the website of the target domain name .

需要说明的是,由于IPv4和IPv6双栈的用户设备同时设置有IPv4协议栈和IPv6协议栈,因此当用户通过IPv4和IPv6双栈的用户设备的浏览器输入目标域名后,根据双发优收原则访问网络资源,即所述目标域名的网站的服务器。具体的,IPv4和IPv6双栈的用户设备向DNS设备发送查询信息,所述查询信息包括所述目标域名对应的A记录的解析请求和所述目标域名对应的AAAA记录的解析请求,且IPv4和IPv6双栈的用户设备可能优先选择所述目标域名对应的AAAA记录的解析请求,假设DNS设备设置有所述目标域名对应的A记录和所述目标域名对应的AAAA记录,则所述DNS设备对接收到的所述目标域名对应的A记录的解析请求采用IPv4栈进行解析,获得该目标域名对应的IPv4地址,所述DNS设备对接收到的所述目标域名对应的AAAA记录的解析请求采用IPv6栈解析,获得该目标域名对应的IPv6地址,向IPv4和IPv6双栈的用户设备返回该目标域名对应的IPv4地址和该目标域名对应的IPv6地址,IPv4和IPv6双栈的用户设备根据接收到的该目标域名对应的IPv4地址和该目标域名对应的IPv6地址,优先选择该目标域名对应的IPv6地址访问目标域名的网站的服务器,使得IPv4和IPv6双栈的用户设备的浏览器显示目标域名的网站的内容。若用户通过IPv4和IPv6双栈的用户设备的浏览器输入的目标域名为IPv6目标域名,例如,www.IPv6baidu.com,则查询信息包括所述目标域名对应的AAAA记录的解析请求,向DNS设备发送查询信息,具体的解析过程同理IPv4和IPv6双栈的用户设备发送的目标域名对应的AAAA记录的解析请求的解析过程,在此不再赘述。It should be noted that since the IPv4 and IPv6 dual-stack user equipment is equipped with IPv4 protocol stack and IPv6 protocol stack at the same time, when the user enters the target domain name through the browser of the IPv4 and IPv6 dual-stack user equipment, according to the dual-post and excellent-receive In principle access to network resources, namely the server of the website of the target domain name. Specifically, the IPv4 and IPv6 dual-stack user equipment sends query information to the DNS device, the query information includes the resolution request of the A record corresponding to the target domain name and the resolution request of the AAAA record corresponding to the target domain name, and the IPv4 and IPv6 The IPv6 dual-stack user equipment may preferentially select the resolution request of the AAAA record corresponding to the target domain name. Assuming that the DNS device is set with the A record corresponding to the target domain name and the AAAA record corresponding to the target domain name, the DNS device will The received resolution request for the A record corresponding to the target domain name is resolved using the IPv4 stack to obtain the IPv4 address corresponding to the target domain name, and the DNS device uses IPv6 for the received resolution request for the AAAA record corresponding to the target domain name. Stack analysis, obtain the IPv6 address corresponding to the target domain name, and return the IPv4 address corresponding to the target domain name and the IPv6 address corresponding to the target domain name to the user equipment of IPv4 and IPv6 dual stack, and the user equipment of IPv4 and IPv6 dual stack The IPv4 address corresponding to the target domain name and the IPv6 address corresponding to the target domain name, preferentially select the IPv6 address corresponding to the target domain name to access the server of the website of the target domain name, so that the browser of the IPv4 and IPv6 dual-stack user equipment displays the website of the target domain name Content. If the target domain name input by the user through the browser of the IPv4 and IPv6 dual-stack user equipment is the IPv6 target domain name, for example, www.IPv6baidu.com, then the query information includes the resolution request of the AAAA record corresponding to the target domain name, and sends it to the DNS device Sending query information, the specific parsing process is the same as the parsing process of the parsing request of the AAAA record corresponding to the target domain name sent by the IPv4 and IPv6 dual-stack user equipment, and will not be repeated here.

步骤2011、采用DNS64解析目标域名对应的AAAA记录的解析请求。执行步骤2012。Step 2011, using DNS64 to resolve the resolution request of the AAAA record corresponding to the target domain name. Execute step 2012.

由于IPv6单栈的用户设备设置有IPv6栈,因此IPv6单栈的用户设备的查询信息包括目标域名对应的AAAA记录的解析请求。DNS设备接收到所述查询信息后,若DNS设备设置有所述目标域名对应的AAAA记录,采用DNS64解析所述目标域名对应的AAAA记录的解析请求,获得该目标域名对应的AAAA记录的映射关系,即该目标域名对应的IPv6地址。若DNS设备未设置有所述目标域名对应的AAAA记录,则向IPv6单栈的用户设备返回解析失败消息。Since the IPv6 single-stack user equipment is configured with an IPv6 stack, the query information of the IPv6 single-stack user equipment includes a resolution request for the AAAA record corresponding to the target domain name. After the DNS device receives the query information, if the DNS device is set with the AAAA record corresponding to the target domain name, use DNS64 to resolve the resolution request of the AAAA record corresponding to the target domain name, and obtain the mapping relationship of the AAAA record corresponding to the target domain name , which is the IPv6 address corresponding to the target domain name. If the AAAA record corresponding to the target domain name is not set in the DNS device, a resolution failure message is returned to the IPv6 single-stack user equipment.

当IPv6单栈的用户设备访问IPv4网络资源时,该用户设备向DNS设备发送查询信息,所述查询信息包括该目标域名对应的AAAA记录的解析请求,DNS设备接收该查询信息,未查找到该目标域名对应的AAAA记录,若DNS设备设置有所述目标域名对应的A记录,则解析该目标域名对应的A记录,根据所述目标域名对应的A记录的映射关系获得IPv4地址,根据所述IPv4地址生成一个所述IPv4地址加知名前缀的虚拟IPv6地址,并将所述虚拟IPv6地址发送给用户设备。When an IPv6 single-stack user equipment accesses an IPv4 network resource, the user equipment sends query information to the DNS device, the query information includes a resolution request for the AAAA record corresponding to the target domain name, and the DNS device receives the query information, but does not find the The AAAA record corresponding to the target domain name, if the DNS device is set with the A record corresponding to the target domain name, then resolve the A record corresponding to the target domain name, obtain the IPv4 address according to the mapping relationship of the A record corresponding to the target domain name, according to the The IPv4 address generates a virtual IPv6 address with a name prefix added to the IPv4 address, and sends the virtual IPv6 address to the user equipment.

特别的,DNS设备上设置有DNS64解析功能,在实际应用中,也可以将DNS64解析功能设置在另一个设备上,将DNS功能与DNS64功能分设在两个设备上。那么当支持IPv6单栈的用户设备访问IPv4网络资源时,该用户设备向DNS64设备发送查询信息,所述查询信息包括该目标域名对应的AAAA记录的解析请求,DNS64设备将该查询信息发送到DNS设备,若DNS设备未设置该目标域名对应的AAAA记录,向DNS64设备返回空消息,DNS64设备生成该目标域名对应的A记录的解析请求,向DNS设备发送所述该目标域名对应的A记录的解析请求,DNS设备解析所述该目标域名对应的A记录的解析请求,获得该目标域名对应的IPv4地址,将该IPv4地址发送给DNS64设备,DNS64设备根据所述IPv4地址生成一个所述IPv4地址加知名前缀的虚拟IPv6地址,并发送给用户设备。In particular, the DNS device is provided with a DNS64 resolution function. In practical applications, the DNS64 resolution function may also be provided on another device, and the DNS function and the DNS64 function are separately provided on two devices. Then, when a user equipment supporting IPv6 single stack accesses IPv4 network resources, the user equipment sends query information to the DNS64 device, the query information includes a resolution request for the AAAA record corresponding to the target domain name, and the DNS64 device sends the query information to the DNS device, if the DNS device does not set the AAAA record corresponding to the target domain name, return an empty message to the DNS64 device, and the DNS64 device generates a resolution request for the A record corresponding to the target domain name, and sends the A record corresponding to the target domain name to the DNS device Analyzing the request, the DNS device parses the parsing request of the A record corresponding to the target domain name, obtains the IPv4 address corresponding to the target domain name, and sends the IPv4 address to the DNS64 device, and the DNS64 device generates an IPv4 address according to the IPv4 address Add a virtual IPv6 address with a name prefix and send it to the user equipment.

步骤2012、向IPv6单栈的用户设备发送IPv6地址。Step 2012, sending the IPv6 address to the user equipment of the IPv6 single stack.

IPv6单栈的用户设备接收DNS设备发送的IPv6地址,根据所述IPv6地址访问目标域名对应的IPv6服务器,使得IPv6单栈的用户设备的浏览器显示目标域名的网站的内容。The IPv6 single-stack user equipment receives the IPv6 address sent by the DNS device, and accesses the IPv6 server corresponding to the target domain name according to the IPv6 address, so that the browser of the IPv6 single-stack user equipment displays the content of the website of the target domain name.

当IPv6单栈的用户设备访问IPv4网络资源时,IPv6单栈的用户设备接收DNS设备发送的虚拟IPv6地址,使用该虚拟IPv6地址访问IPv4网络资源,即该用户设备根据虚拟IPv6地址向IPv4网络中的IPv4服务器发送连接请求,与IPv4网络中的IPv4服务器建立TCP(Transmission Control Protocol,传输控制协议)连接,所述IPv4服务器可以是目标域名的网站的服务器。具体的,该用户设备首先将虚拟IPv6地址发送给NAT64设备,NAT64设备将虚拟IPv6地址转换为IPv4地址,然后根据所述IPv4地址访问该目标域名的网站的服务器,该服务器通过NAT64设备向IPv6单栈的用户设备返回所述连接请求,使得IPv6单栈的用户设备的浏览器显示目标域名的网站的内容。When an IPv6 single-stack user equipment accesses IPv4 network resources, the IPv6 single-stack user equipment receives the virtual IPv6 address sent by the DNS device, and uses the virtual IPv6 address to access IPv4 network resources, that is, the user equipment sends information to the IPv4 network according to the virtual IPv6 address. The IPv4 server sends a connection request, and establishes a TCP (Transmission Control Protocol, Transmission Control Protocol) connection with the IPv4 server in the IPv4 network, and the IPv4 server may be a server of the website of the target domain name. Specifically, the user equipment first sends the virtual IPv6 address to the NAT64 device, and the NAT64 device converts the virtual IPv6 address into an IPv4 address, and then accesses the server of the website of the target domain name according to the IPv4 address, and the server sends an IPv6 single address through the NAT64 device. The user equipment of the stack returns the connection request, so that the browser of the user equipment of the IPv6 single stack displays the content of the website of the target domain name.

本发明实施例提供的数据处理方法,应用于域名系统DNS设备,首先,DNS设备设置用户设备源地址范围,然后,接收用户设备发送的查询信息,判断查询信息是否包括IPv6栈的用户设备源地址,若该查询信息不包括IPv6栈的用户设备源地址,采用IPv4栈解析目标域名对应的A记录的解析请求,若该查询信息包括IPv6栈的用户设备源地址,提取IPv6栈的用户设备源地址,再判断IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内,若所述IPv6栈的用户设备源地址在所述预设的用户设备源地址范围内,采用DNS64解析目标域名对应的AAAA记录的解析请求,若所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内,采用IPv6栈解析目标域名对应的AAAA记录的解析请求,采用IPv4栈解析目标域名对应的A记录的解析请求。相对于现有技术,避免了IPv4和IPv6双栈的用户设备访问IPv4网络资源时发生的绕转问题,有效缩短了支持IPv4和IPv6双栈的用户设备访问IPv4网络资源的时延。The data processing method provided by the embodiment of the present invention is applied to the domain name system DNS device. First, the DNS device sets the user equipment source address range, and then receives the query information sent by the user equipment to determine whether the query information includes the user equipment source address of the IPv6 stack. , if the query information does not include the source address of the user equipment of the IPv6 stack, use the IPv4 stack to resolve the resolution request of the A record corresponding to the target domain name; if the query information includes the source address of the user equipment of the IPv6 stack, extract the source address of the user equipment of the IPv6 stack , then determine whether the user equipment source address of the IPv6 stack is within the preset user equipment source address range, if the user equipment source address of the IPv6 stack is within the preset user equipment source address range, DNS64 is used to resolve the target domain name For the resolution request of the corresponding AAAA record, if the user equipment source address of the IPv6 stack is not within the preset user equipment source address range, the IPv6 stack is used to resolve the resolution request of the AAAA record corresponding to the target domain name, and the IPv4 stack is used to resolve the target A resolution request for the A record corresponding to the domain name. Compared with the prior art, it avoids the circumvention problem when the user equipment with IPv4 and IPv6 dual stacks accesses IPv4 network resources, and effectively shortens the time delay for user equipment supporting IPv4 and IPv6 dual stacks to access IPv4 network resources.

本发明实施例提供一种域名系统DNS设备30,如图3所示,包括:An embodiment of the present invention provides a domain name system DNS device 30, as shown in FIG. 3 , including:

接收单元301,用于接收用户设备发送的查询信息,所述查询信息包括用户设备源地址、目标域名,所述查询信息还包括所述目标域名对应的A记录的解析请求和所述目标域名对应的AAAA记录的解析请求中的至少一个。The receiving unit 301 is configured to receive query information sent by the user equipment, the query information includes the source address of the user equipment, the target domain name, and the query information also includes the resolution request of the A record corresponding to the target domain name and the corresponding At least one of the AAAA records resolves the request.

提取单元302,用于在所述查询信息包括IPv6栈的用户设备源地址时,提取所述IPv6栈的用户设备源地址。The extracting unit 302 is configured to extract the source address of the user equipment of the IPv6 stack when the query information includes the source address of the user equipment of the IPv6 stack.

第一判断单元303,用于判断所述IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内,所述预设的用户设备源地址范围由多个IPv6单栈的用户设备源地址组成。The first judging unit 303 is configured to judge whether the user equipment source address of the IPv6 stack is within the preset user equipment source address range, and the preset user equipment source address range is composed of multiple IPv6 single-stack user equipment sources address composition.

第一解析单元304,用于在所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内时,采用IPv6栈解析所述目标域名对应的AAAA记录的解析请求,采用IPv4栈解析所述目标域名对应的A记录的解析请求。The first parsing unit 304 is configured to use the IPv6 stack to resolve the resolution request of the AAAA record corresponding to the target domain name when the user equipment source address of the IPv6 stack is not within the preset user equipment source address range, using IPv4 The stack parses the parsing request of the A record corresponding to the target domain name.

这样一来,DNS设备接收用户设备发送的查询信息,若该查询信息包括IPv6栈的用户设备源地址,提取该IPv6栈的用户设备源地址,然后,判断IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内,若所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内,采用IPv6栈解析所述目标域名对应的AAAA记录的解析请求,采用IPv4栈解析所述目标域名对应的A记录的解析请求,相对于现有技术,避免了IPv4和IPv6双栈的用户设备访问IPv4网络资源时发生的绕转问题,有效缩短了支持IPv4和IPv6双栈的用户设备访问IPv4网络资源的时延。In this way, the DNS device receives the query information sent by the user equipment, if the query information includes the source address of the user equipment of the IPv6 stack, extracts the source address of the user equipment of the IPv6 stack, and then determines whether the source address of the user equipment of the IPv6 stack is in the preset Within the preset user equipment source address range, if the user equipment source address of the IPv6 stack is not within the preset user equipment source address range, the IPv6 stack is used to resolve the resolution request of the AAAA record corresponding to the target domain name, and the IPv4 The stack resolves the resolution request of the A record corresponding to the target domain name. Compared with the existing technology, it avoids the circumvention problem that occurs when the IPv4 and IPv6 dual-stack user equipment accesses IPv4 network resources, and effectively shortens the time for supporting IPv4 and IPv6 dual-stack. The delay for the user equipment to access IPv4 network resources.

如图4所示,所述DNS设备30还包括:As shown in Figure 4, the DNS device 30 also includes:

设置单元305,用于设置所述用户设备源地址范围。The setting unit 305 is configured to set the source address range of the user equipment.

所述DNS设备30还包括:The DNS device 30 also includes:

第二解析单元306,用于在所述IPv6栈的用户设备源地址在所述预设的用户设备源地址范围内时,采用DNS64解析所述目标域名对应的AAAA记录的解析请求。The second parsing unit 306 is configured to use DNS64 to resolve the parsing request of the AAAA record corresponding to the target domain name when the source address of the user equipment of the IPv6 stack is within the range of the preset source address of the user equipment.

组成所述预设的用户设备源地址范围的Pv6单栈的用户设备源地址为IPv4地址加第一前缀的IPv6单栈的用户设备源地址,IPv4地址加第二前缀的IPv6单栈的用户设备源地址和IPv6单栈的用户设备源地址段中的任意一种。The source address of the user equipment source address of the Pv6 single-stack constituting the preset user equipment source address range is the source address of the user equipment of the IPv6 single-stack IPv4 address plus the first prefix, and the user equipment of the IPv6 single-stack of the IPv4 address plus the second prefix Any one of source address and IPv6 single-stack user equipment source address segment.

所述DNS设备30还包括:The DNS device 30 also includes:

第二判断单元307,用于判断所述查询信息是否包括IPv6栈的用户设备源地址。The second judging unit 307 is configured to judge whether the query information includes the user equipment source address of the IPv6 stack.

第三解析单元308,用于在所述查询信息不包括IPv6栈的用户设备源地址时,采用IPv4栈解析所述目标域名对应的A记录的解析请求。The third parsing unit 308 is configured to use the IPv4 stack to parse the parsing request of the A record corresponding to the target domain name when the query information does not include the source address of the user equipment of the IPv6 stack.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described devices and units can refer to the corresponding process in the foregoing method embodiments, and details are not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (10)

1.一种数据处理方法,其特征在于,应用于域名系统DNS设备,包括:1. A data processing method, characterized in that being applied to domain name system DNS equipment, comprising: 接收用户设备发送的查询信息,所述查询信息包括用户设备源地址、目标域名,所述查询信息还包括所述目标域名对应的A记录的解析请求和所述目标域名对应的AAAA记录的解析请求中的至少一个;Receive the query information sent by the user equipment, the query information includes the source address of the user equipment, the target domain name, and the query information also includes the resolution request of the A record corresponding to the target domain name and the resolution request of the AAAA record corresponding to the target domain name at least one of; 若所述查询信息包括IPv6栈的用户设备源地址,提取所述IPv6栈的用户设备源地址;If the query information includes the user equipment source address of the IPv6 stack, extracting the user equipment source address of the IPv6 stack; 判断所述IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内,所述预设的用户设备源地址范围由多个IPv6单栈的用户设备源地址组成;Judging whether the user equipment source address of the IPv6 stack is within a preset user equipment source address range, and the preset user equipment source address range is composed of multiple IPv6 single-stack user equipment source addresses; 若所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内,采用IPv6栈解析所述目标域名对应的AAAA记录的解析请求,采用IPv4栈解析所述目标域名对应的A记录的解析请求。If the user equipment source address of the IPv6 stack is not within the preset user equipment source address range, the IPv6 stack is used to resolve the resolution request of the AAAA record corresponding to the target domain name, and the IPv4 stack is used to resolve the AA corresponding to the target domain name Logged parse requests. 2.根据权利要求1所述的方法,其特征在于,在所述判断所述IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内之前,所述方法还包括:2. method according to claim 1, is characterized in that, before the user equipment source address of described judgment described IPv6 stack is in preset user equipment source address range, described method also comprises: 设置所述用户设备源地址范围。Set the source address range of the user equipment. 3.根据权利要求2所述的方法,其特征在于,3. The method of claim 2, wherein, 在所述判断所述IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内之后,所述方法还包括:After determining whether the user equipment source address of the IPv6 stack is within a preset user equipment source address range, the method further includes: 若所述IPv6栈的用户设备源地址在所述预设的用户设备源地址范围内,采用DNS64解析所述目标域名对应的AAAA记录的解析请求。If the user equipment source address of the IPv6 stack is within the preset user equipment source address range, DNS64 is used to resolve the resolution request of the AAAA record corresponding to the target domain name. 4.根据权利要求1至3任意一项权利要求所述的方法,其特征在于,组成所述预设的用户设备源地址范围的Pv6单栈的用户设备源地址为IPv4地址加第一前缀的IPv6单栈的用户设备源地址,IPv4地址加第二前缀的IPv6单栈的用户设备源地址和IPv6单栈的用户设备源地址段中的任意一种。4. The method according to any one of claims 1 to 3, wherein the user equipment source address of the Pv6 single stack that forms the preset user equipment source address range is an IPv4 address plus a first prefix Any one of the source address of the user equipment of the IPv6 single stack, the source address of the user equipment of the IPv6 single stack of the IPv4 address plus the second prefix, and the source address segment of the user equipment of the IPv6 single stack. 5.根据权利要求1所述的方法,其特征在于,5. The method of claim 1, wherein, 在所述接收用户设备发送的查询信息之后,所述方法还包括:After receiving the query information sent by the user equipment, the method further includes: 判断所述查询信息是否包括IPv6栈的用户设备源地址;Judging whether the query information includes the user equipment source address of the IPv6 stack; 若所述查询信息不包括IPv6栈的用户设备源地址,采用IPv4栈解析所述目标域名对应的A记录的解析请求。If the query information does not include the user equipment source address of the IPv6 stack, the IPv4 stack is used to resolve the resolution request of the A record corresponding to the target domain name. 6.一种域名系统DNS设备,其特征在于,包括:6. A Domain Name System (DNS) device, comprising: 接收单元,用于接收用户设备发送的查询信息,所述查询信息包括用户设备源地址、目标域名,所述查询信息还包括所述目标域名对应的A记录的解析请求和所述目标域名对应的AAAA记录的解析请求中的至少一个;The receiving unit is configured to receive query information sent by the user equipment, the query information includes the source address of the user equipment, the target domain name, and the query information also includes the resolution request of the A record corresponding to the target domain name and the A record corresponding to the target domain name. At least one of the resolution requests recorded by the AAAA; 提取单元,用于在所述查询信息包括IPv6栈的用户设备源地址时,提取所述IPv6栈的用户设备源地址;An extracting unit, configured to extract the source address of the user equipment of the IPv6 stack when the query information includes the source address of the user equipment of the IPv6 stack; 第一判断单元,用于判断所述IPv6栈的用户设备源地址是否在预设的用户设备源地址范围内,所述预设的用户设备源地址范围由多个IPv6单栈的用户设备源地址组成;The first judging unit is used to judge whether the user equipment source address of the IPv6 stack is within the preset user equipment source address range, and the preset user equipment source address range consists of multiple IPv6 single-stack user equipment source addresses composition; 第一解析单元,用于在所述IPv6栈的用户设备源地址不在所述预设的用户设备源地址范围内时,采用IPv6栈解析所述目标域名对应的AAAA记录的解析请求,采用IPv4栈解析所述目标域名对应的A记录的解析请求。The first parsing unit is configured to use the IPv6 stack to resolve the resolution request of the AAAA record corresponding to the target domain name when the user equipment source address of the IPv6 stack is not within the preset user equipment source address range, and use the IPv4 stack Analyzing the resolution request of the A record corresponding to the target domain name. 7.根据权利要求6所述的DNS设备,其特征在于,7. The DNS device according to claim 6, characterized in that, 所述DNS设备还包括:The DNS device also includes: 设置单元,用于设置所述用户设备源地址范围。A setting unit, configured to set the source address range of the user equipment. 8.根据权利要求7所述的DNS设备,其特征在于,8. The DNS device according to claim 7, characterized in that, 所述DNS设备还包括:The DNS device also includes: 第二解析单元,用于在所述IPv6栈的用户设备源地址在所述预设的用户设备源地址范围内时,采用DNS64解析所述目标域名对应的AAAA记录的解析请求。The second parsing unit is configured to use DNS64 to resolve the parsing request of the AAAA record corresponding to the target domain name when the source address of the user equipment of the IPv6 stack is within the range of the preset source address of the user equipment. 9.根据权利要求6至8任意一项权利要求所述的DNS设备,其特征在于,组成所述预设的用户设备源地址范围的Pv6单栈的用户设备源地址为IPv4地址加第一前缀的IPv6单栈的用户设备源地址,IPv4地址加第二前缀的IPv6单栈的用户设备源地址和IPv6单栈的用户设备源地址段中的任意一种。9. The DNS device according to any one of claims 6 to 8, wherein the source address of the user equipment of the Pv6 single stack forming the preset user equipment source address range is an IPv4 address plus a first prefix Any one of the IPv6 single-stack user equipment source address, the IPv4 address plus the second prefix IPv6 single-stack user equipment source address, and the IPv6 single-stack user equipment source address segment. 10.根据权利要求6所述的DNS设备,其特征在于,10. The DNS device according to claim 6, characterized in that, 所述DNS设备还包括:The DNS device also includes: 第二判断单元,用于判断所述查询信息是否包括IPv6栈的用户设备源地址;The second judging unit is used to judge whether the query information includes the user equipment source address of the IPv6 stack; 第三解析单元,用于在所述查询信息不包括IPv6栈的用户设备源地址时,采用IPv4栈解析所述目标域名对应的A记录的解析请求。The third parsing unit is configured to use the IPv4 stack to parse the parsing request of the A record corresponding to the target domain name when the query information does not include the source address of the user equipment of the IPv6 stack.
CN201310656606.6A 2013-12-06 2013-12-06 A kind of data processing method and device Active CN104702707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310656606.6A CN104702707B (en) 2013-12-06 2013-12-06 A kind of data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310656606.6A CN104702707B (en) 2013-12-06 2013-12-06 A kind of data processing method and device

Publications (2)

Publication Number Publication Date
CN104702707A CN104702707A (en) 2015-06-10
CN104702707B true CN104702707B (en) 2018-05-01

Family

ID=53349465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310656606.6A Active CN104702707B (en) 2013-12-06 2013-12-06 A kind of data processing method and device

Country Status (1)

Country Link
CN (1) CN104702707B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395364B (en) * 2020-03-11 2023-02-14 华为技术有限公司 Access method of application server and terminal
CN114143230B (en) * 2020-09-02 2023-07-21 中国移动通信集团安徽有限公司 Method and device for calculating DNS resolution duration of dual-stack users
CN115086273B (en) * 2021-03-16 2024-11-12 中国电信股份有限公司 NAT64 prefix allocation method, device and DNS64 equipment for IPv6 single stack network
CN114422469B (en) * 2022-01-25 2023-10-24 北京天维信通科技有限公司 IPv4/IPv6 flow intelligent scheduling method, device and scheduling system
CN115277635A (en) * 2022-07-20 2022-11-01 北京机沃科技有限公司 Method for acquiring IPv6 address active set through massive domain names

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100474858C (en) * 2004-09-27 2009-04-01 上海贝尔阿尔卡特股份有限公司 Domain name analytic method, domain name server and domain name system
CN102196051B (en) * 2010-03-03 2014-09-10 中国移动通信集团公司 A method, system and device for realizing terminal communication
CN102098355B (en) * 2011-03-25 2013-09-04 清华大学 Cloud service-based IPv6 (internet protocol version 6)/IPv4 (internet protocol version 4) translation method with communication initiated by IPv6 party
CN103167045B (en) * 2011-12-12 2016-05-18 中国电信股份有限公司 Select method, dns server and the DNS management system of network layer protocol
CN103109517B (en) * 2012-09-28 2016-12-07 华为技术有限公司 Method, terminal and the system of a kind of pair of stack terminal access server

Also Published As

Publication number Publication date
CN104702707A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
US10212124B2 (en) Facilitating content accessibility via different communication formats
EP2556438B1 (en) Reverse dns lookup with modified reverse mappings
US9378245B2 (en) Name database server, name resolution system, entry search method and entry search program
CN102546854A (en) Domain name analysis method for building hyper text transport protocol (HTTP) connection for domain name and server
CN103201989B (en) The methods, devices and systems of control data transmission
CN104702707B (en) A kind of data processing method and device
WO2019062593A1 (en) Packet transmission method and device, and computer readable storage medium
CA2945817A1 (en) Geolocation via internet protocol
CN108494751B (en) Method and device for efficiently using IPv4 public address
JP2019176511A (en) Network apparatus
WO2017161965A1 (en) Method, device, and system for dynamic domain name system (dns) redirection
CN115225606A (en) Domain name access method and system of cross-network protocol of container cloud platform
TWI469605B (en) Network address translation system and method
CN103118145A (en) IPv4-over-IPv6 multi-tunnel automatic establishment method based on DNS (domain name system)
JP2017500679A (en) Media resource feedback method, apparatus, program, and recording medium
CN102547553B (en) Method, system and device for accessing service based on wireless application protocol (WAP)
CN102098355A (en) Cloud service-based IPv6 (internet protocol version 6)/IPv4 (internet protocol version 4) translation method with communication initiated by IPv6 party
CN102970387A (en) Domain name resolution method, device and system
CN103581361A (en) Domain name resolution proxy method, device and system
CN104079682B (en) A kind of address conversion method and device based on domain name system DNS
CN103888554B (en) IPv4 and the domain name analytic method and system of IPv6 intercommunications
US20170279937A1 (en) Method and device for translation between ipv4 and ipv6
CN104717312A (en) Method and device for determining network resource access interfaces
WO2016095751A1 (en) Domain name analysis method and apparatus
CN105657077A (en) Network address translation traversal method and network address translation equipment

Legal Events

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