Information transmission method and device, related equipment and storage medium

By setting multiple PLAT-side IPv6 address prefixes in the DNS server, the difficulty of CLAT obtaining IPv6 address prefixes in multi-PLAT deployment scenarios is solved, the conversion between IPv4 and IPv6 addresses is realized, and communication between the terminal and the business server is ensured.

CN118802834APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310721916.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-16
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In a 464XLAT scenario where multiple PLATs are deployed, it is difficult for CLAT to obtain the prefixes of IPv6 addresses on multiple PLAT sides, resulting in the inability to convert between IPv4 addresses and IPv6 addresses, thus affecting the communication between the terminal and the service server.

Method used

By setting multiple PLAT-side IPv6 address prefixes in the DNS server, CLAT can obtain multiple PLAT-side IPv6 address prefixes from the DNS server and perform network address translation to achieve conversion between IPv4 addresses and IPv6 addresses.

Benefits of technology

It realizes the transmission of IPv6 address prefixes and network address translation, which relieves the configuration management pressure of CLAT and ensures communication between the terminal and the business server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802834A_ABST
    Figure CN118802834A_ABST
Patent Text Reader

Abstract

The invention discloses an information transmission method and device, a first function, a second function and a storage medium. The method comprises the steps that a first function sends first information to a second function, the first information is used for requesting first address information of a first network protocol corresponding to a first domain name and first prefix information of a second network protocol, the first function at least supports network address translation, and the second function is at least used for domain name system (DNS) query; and receiving second information sent by the second function, the second information comprising first address information of a first network protocol corresponding to the first domain name and first prefix information of a second network protocol, and the second information being used for network address translation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network transmission technology, and in particular to an information transmission method, apparatus, related equipment and storage medium. Background Art

[0002] In recent years, with the continuous development of Internet Protocol Version 6 (IPv6) technology and the continuous advancement of IPv6 transformation, the global IPv6 traffic has increased significantly. As the proportion of IPv6 traffic continues to increase, IPv6 single stack technology is also developing continuously.

[0003] In the development of IPv6 single stack technology, the 464XLAT (English full name can be expressed as IPv4-IPv6-IPv4Translation) conversion scenario has received more and more attention; 464XLAT is a conversion technology between Internet Protocol version 4 (IPv4) addresses and IPv6 addresses. At present, for 464XLAT conversion scenarios, single operator side translation (PLAT) is usually deployed.

[0004] As the transformation work continues to advance, the 464XLAT scenario of multi-PLAT deployment has been proposed. However, the related technology lacks a network address translation solution for multi-PLAT deployment. Summary of the invention

[0005] To solve related technical problems, the embodiments of the present application provide an information transmission method, apparatus, related equipment and storage medium.

[0006] The technical solution of the embodiment of the present application is implemented as follows:

[0007] The embodiment of the present application provides an information transmission method, which is applied to a first function, including:

[0008] Sending first information to a second function, the first information being used to request first address information of a first network protocol and first prefix information of a second network protocol corresponding to a first domain name, the first function at least supporting network address translation, and the second function at least being used for Domain Name System (DNS) query;

[0009] Second information sent by the second function is received, where the second information includes first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, and the second information is used for network address translation.

[0010] In the above solution, communication with the second function is performed based on the DNS protocol.

[0011] In the above solution, sending the first information to the second function includes:

[0012] A DNS request is sent to the second function, the DNS request including the first information.

[0013] In the above scheme, the first information includes at least third information and fourth information, the third information represents the first domain name, and the fourth information is used to indicate that the requested DNS resource record is a first resource record, and the first resource record includes at least one first network protocol address information and each first network protocol address information corresponding to the second network protocol prefix information.

[0014] In the above scheme, the first information at least includes third information, fifth information and sixth information, the third information represents the first domain name, the fifth information is used to indicate that the requested DNS resource record is a second resource record, the second resource record includes at least one address information of a first network protocol, and the sixth information is used to request the first prefix information of the second network protocol corresponding to the first domain name.

[0015] In the above solution, sending the first information to the second function includes:

[0016] receiving seventh information sent by a terminal, wherein the seventh information is used to request first address information of a first network protocol corresponding to the first domain name,

[0017] Sending eighth information to the second function, where the eighth information is used to request second address information of a second network protocol corresponding to the first domain name;

[0018] When it is determined that the second function has not found the second address information of the second network protocol corresponding to the first domain name, the first information is sent to the second function.

[0019] In the above scheme, the method further includes:

[0020] The first address information and the first prefix information are concatenated to obtain second address information of the second network protocol corresponding to the first domain name.

[0021] In the above scheme, the method further includes:

[0022] A mapping relationship between the first address information and the first prefix information is saved.

[0023] The embodiment of the present application further provides an information transmission method, which is applied to the second function, including:

[0024] receiving first information sent by a first function, the first information being used to request first address information of a first network protocol and second prefix information of a second network protocol corresponding to a first domain name, the second function being at least used for DNS query, and the first function at least supporting network address translation;

[0025] Sending second information to the first function, the second information including first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, the second information being used for network address translation.

[0026] In the above solution, communication with the first function is performed based on the DNS protocol.

[0027] In the above solution, the receiving the first information sent by the first function includes:

[0028] A DNS request sent by the first function is received, where the DNS request includes the first information.

[0029] In the above scheme, the first information includes at least third information and fourth information, the third information represents the first domain name, and the fourth information is used to indicate that the requested DNS resource record is a first resource record, and the first resource record includes at least one first network protocol address information and each first network protocol address information corresponding to the second network protocol prefix information.

[0030] In the above scheme, the first information at least includes third information, fifth information and sixth information, the third information represents the first domain name, the fifth information is used to indicate that the requested DNS resource record is a second resource record, the second resource record includes at least one address information of a first network protocol, and the sixth information is used to request the first prefix information of the second network protocol corresponding to the first domain name.

[0031] In the above scheme, the method further includes:

[0032] Receive eighth information sent by the first function, where the eighth information is used to request second address information of a second network protocol corresponding to the first domain name.

[0033] The embodiment of the present application further provides an information transmission device, which is set in the first function, including:

[0034] A first sending unit, configured to send first information to a second function, wherein the first information is used to request first address information of a first network protocol and first prefix information of a second network protocol corresponding to a first domain name, wherein the first function at least supports network address translation, and the second function is at least used for DNS query;

[0035] The first receiving unit is used to receive second information sent by the second function, where the second information includes first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, and the second information is used for network address translation.

[0036] The embodiment of the present application further provides an information transmission device, which is set in the second function, including:

[0037] a second receiving unit, configured to receive first information sent by a first function, wherein the first information is used to request first address information of a first network protocol corresponding to a first domain name and second prefix information of a second network protocol, wherein the second function is at least used for DNS query, and the first function at least supports network address translation;

[0038] The second sending unit is used to send second information to the first function, where the second information includes first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, and the second information is used for network address translation.

[0039] The embodiment of the present application further provides a first function, including: a first processor and a first communication interface; wherein,

[0040] The first communication interface is used to send first information to the second function, the first information is used to request first address information of the first network protocol and first prefix information of the second network protocol corresponding to the first domain name, the first function at least supports network address translation, and the second function is at least used for DNS query; receive second information sent by the second function, the second information includes the first address information of the first network protocol and the first prefix information of the second network protocol corresponding to the first domain name, and the second information is used for network address translation.

[0041] The embodiment of the present application also provides a second function, including: a second processor and a second communication interface; wherein,

[0042] The second communication interface is used to receive first information sent by the first function, the first information is used to request first address information of the first network protocol and second prefix information of the second network protocol corresponding to the first domain name, the second function is at least used for DNS query, and the first function at least supports network address translation; send second information to the first function, the second information includes first address information of the first network protocol and first prefix information of the second network protocol corresponding to the first domain name, and the second information is used for network address translation.

[0043] The embodiment of the present application further provides a first function, including: a first processor and a first memory for storing a computer program that can be run on the processor,

[0044] Wherein, the first processor is used to execute the steps of any method of the above-mentioned first function side when running the computer program.

[0045] The embodiment of the present application further provides a second function, including: a second processor and a second memory for storing a computer program that can be run on the processor,

[0046] Wherein, when the second processor is used to run the computer program, it executes the steps of any method of the second functional side mentioned above.

[0047] An embodiment of the present application also provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements the steps of any of the methods on the first functional side described above, or implements the steps of any of the methods on the second functional side described above.

[0048] The information transmission method, apparatus, related equipment and storage medium provided by the embodiment of the present application, the first function sends first information to the second function, the first information is used to request the first address information of the first network protocol and the first prefix information of the second network protocol corresponding to the first domain name, the first function at least supports network address translation, and the second function is at least used for DNS query; the second function sends second information to the first function, the second information includes the first address information of the first network protocol and the first prefix information of the second network protocol corresponding to the first domain name, and the second information is used for network address translation. The technical solution provided by the embodiment of the present application, by setting the prefixes of the second network protocol (IPv6) on the PLAT side of multiple PLATs in the second function, enables the first function to obtain the address of the first network protocol (such as IPv4) and the prefix of the second network protocol (such as IPv6) on the PLAT side from the second function, so that the conversion between the two network protocol addresses is performed according to the obtained IPv4 address and the prefix of the IPv6 address, so as to realize the transmission of the prefix of the IPv6 address. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a structural diagram of a 464XLAT scenario;

[0050] Figure 2 It is a structural diagram of the data plane in a 464XLAT scenario;

[0051] Figure 3 It is a flow chart of a method for information transmission in a 464XLAT scenario;

[0052] Figure 4 It is a structural diagram of another 464XLAT scenario;

[0053] Figure 5This is a schematic diagram of the first information transmission method flow in an embodiment of the present application;

[0054] Figure 6 This is a flow chart of a second information transmission method according to an embodiment of the present application;

[0055] Figure 7 This is a schematic diagram of the third information transmission method flow in an embodiment of the present application;

[0056] Figure 8 This is a flowchart of the first method for performing a DNS query in the application example of this application;

[0057] Fig. 9 This is a schematic diagram of the structure of a resource record in the application example of this application;

[0058] Fig.10 This is a flow chart of the second method for performing DNS query in the application example of this application;

[0059] Fig.11 This is a schematic diagram of the structure of an information transmission device according to an embodiment of the present application;

[0060] Fig.12 This is a schematic diagram of the structure of another information transmission device according to an embodiment of the present application;

[0061] Fig.13 This is a schematic diagram of the first functional structure of an embodiment of the present application;

[0062] Fig.14 This is a schematic diagram of the second functional structure of the embodiment of the present application;

[0063] Fig.15 This is a schematic diagram of the information transmission system structure of an embodiment of the present application. DETAILED DESCRIPTION

[0064] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0065] In the related art, in the 464XLAT conversion scenario of single PLAT deployment, such as Figure 1As shown, the fixed network scenario includes at least a terminal, a user-side translation (CLAT), a wireless router, a PLAT, and a service server; wherein, the CLAT is deployed on a home gateway (such as a user terminal device (CPE, Customer Premise Equipment)), the PLAT is deployed in the operator network, the service server is located in the IPv4 public network, and the terminal is located in the IPv4 private network. In the home scenario, the wireless router usually does not support IPv6, so that the terminal is assigned an IPv4 private address. When the terminal accesses a service server that only supports IPv4, since the operator network passed through supports IPV6, it is necessary to complete a stateless NAT46 conversion (i.e., a conversion from an IPv4 address to an IPv6 address) on the CLAT side, and complete a stateful NAT64 conversion (i.e., a conversion from an IPv6 address to an IPv4 address) on the PLAT side. Accordingly, in the process of the service server returning a message to the terminal, it is necessary to complete a stateful NAT64 conversion on the PLAT side, and complete a stateless NAT46 conversion on the CLAT.

[0066] Specifically, Figure 2 As shown, taking the terminal access service server Server1 as an example, CLAT can obtain the prefix of the IPv6 address on the CLAT side (which can be expressed as clat-prefix in English) through the prefix allocation function (such as DHCPV6-PD (the full name in English can be expressed as DHCPv6 Prefix Delegation)). The prefix of the IPv6 address on the CLAT side is used to convert the IPv4 private address into the IPv6 source address during the stateless NAT46 conversion. In addition, CLAT can also obtain the prefix of the IPv6 address on the PLAT side through manual configuration or Discovery-Heuristic technology. The prefix of the IPv6 address on the PLAT side is used to convert the IPv4 destination address into the IPv6 destination address during the stateless NAT46 conversion. After completing the NAT46 conversion, CLAT transmits the converted IPv6 message to PLAT. For the source address in the IPv6 message, PLAT converts the IPv6 source address into an IPv4 public address through stateful NAT64; for the destination address in the IPv6 message, PLAT can directly remove the prefix of the IPv6 address to obtain the IPv4 destination address.

[0067] It should be noted that stateless network address translation means that the translation state of the second network address (such as the translation state between IPv4 address and IPv6 address) does not need to be maintained during the address translation process. Instead, the translation state is carried in the network address or CLAT / PLAT configuration information. In other words, there is no need to save the mapping relationship between the two network addresses. Figure 2In the stateless NAT46 conversion process, CLAT obtains the converted IPV6 source address (specifically, clat-prefix::192.168.1.100) by concatenating the prefix of the IPv6 address on the CLAT side (which can be expressed as clat-prefix in English) and the IPv4 private address (specifically, 192.168.1.100). Stateful network address translation means that the conversion status of two network addresses (such as the conversion status between IPv4 address and IPv6 address) needs to be maintained during the address translation process, that is, the mapping relationship between the two network addresses needs to be saved, such as Figure 2 During the stateful NAT64 conversion process, PLAT can remove the prefix (expressed as plat-prefix in English) of the IPv6 address on the PLAT side from the IPv6 source address (specifically, plat-prefix::192.168.1.100), and select an unused IPv4 address from the pre-configured address pool as the converted IPv4 public address (specifically, 202.0.1.100), and at the same time, save the mapping relationship between the above IPv4 public address and the IPv6 address.

[0068] In the above process, CLAT also needs to support the DNS Proxy function so that the terminal can provide the destination address of the service server when the terminal accesses the service server. Specifically, the process of information transmission between the terminal and CLAT, such as Figure 3 As shown, the following steps are included:

[0069] Step 301: The terminal sends a DNS4 request (which can be expressed as DNS4 Query in English) to CLAT;

[0070] The DNS4 request carries a domain name (which can be expressed as Name in English) and a resource record type (Type); the DNS4 request is used to request an IPV4 destination address corresponding to the domain name.

[0071] Step 302: After receiving the DNS4 request, the CLAT sends a first DNS request (first DNS Query) to a DNS server (which can be expressed as DNS Server in English);

[0072] The first DNS request carries a domain name and a resource record type, and the first DNS request is used to request an IPv6 destination address corresponding to the domain name.

[0073] Step 303: CLAT determines that the DNS server has not queried the IPv6 destination address corresponding to the domain name, and executes step 304;

[0074] Here, the CLAT can determine that the DNS server has not queried the IPv6 destination address corresponding to the domain name based on the response returned by the DNS server to the first DNS request. In addition, if the response returned by the DNS server to the first DNS request has not been received within a preset time, the CLAT can also determine that the DNS server has not queried the IPv6 destination address corresponding to the domain name.

[0075] Step 304: CLAT sends a second DNS request (which can be expressed as a second DNS Query in English) to the DNS server;

[0076] The second DNS request carries the domain name and resource record type information, and the second DNS request is used to request the IPv4 destination address corresponding to the domain name.

[0077] Step 305: After receiving the second DNS request, the DNS server returns a DNS response (which can be expressed as DNS Response in English) to the CLAT;

[0078] The DNS response carries the domain name and the IPv4 destination address corresponding to the domain name.

[0079] Step 306: After receiving the DNS response, the CLAT transparently transmits the DNS response to the terminal.

[0080] At present, with the continuous development of IPv6 technology, a new 464XLAT scenario has been proposed, that is, the 464XLAT scenario with multiple PLAT deployment, which includes at least a terminal, CLAT, a wireless router, at least two PLATs and a service server. Figure 4 As shown in the figure, in the above scenario, PLAT is no longer deployed in the operator network, but is deployed by each content provider (ICP, Internet Content Provider). However, when there are multiple PLATs and each PLAT is deployed by a different ICP, the workload of manually configuring the prefixes of all PLAT-side IPv6 addresses to each CLAT (the number may be hundreds of millions) is huge and difficult to implement. In addition, the Discovery-Heuristic technology is currently unable to obtain the prefixes of the IPv6 addresses on the PLAT side in a multi-PLAT scenario.

[0081] In summary, in the related art, in the 464XLAT scenario with multiple PLAT deployments, since CLAT has difficulty in obtaining the prefixes of the IPv6 addresses on the multiple PLAT sides, subsequent conversion between IPv4 addresses and IPv6 addresses cannot be achieved, which results in the inability of the terminal to communicate with the service server.

[0082] Based on this, in various embodiments of the present application, by setting the prefixes of the second network protocol (IPv6) of multiple PLAT sides in the second function, the CLAT can obtain the prefixes of the IPv6 addresses of multiple PLAT sides from the DNS server, thereby realizing the transmission of the prefixes of the IPv6 addresses, and at the same time, greatly alleviating the configuration management pressure of the CLAT. In this way, the CLAT can subsequently convert between different network protocol addresses based on the prefixes of the acquired IPv6 addresses.

[0083] The present application embodiment provides an information transmission method, which is applied to a first function, such as Figure 5 As shown, the method includes:

[0084] Step 501: Sending first information to a second function, wherein the first information is used to request first address information of a first network protocol and first prefix information of a second network protocol corresponding to a first domain name, wherein the first function at least supports network address translation, and the second function is at least used for DNS query;

[0085] Step 502: Receive second information sent by the second function, wherein the second information includes first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, and the second information is used for network address translation.

[0086] Among them, in actual application, the first function can be called CLAT, and the embodiment of the present application does not limit the name of the first function, as long as its function is realized. The first function can be deployed according to different scenarios, such as deployed on a home gateway in a home scenario and deployed on a terminal in a mobile scenario. The embodiment of the present application does not limit the deployment method of the first function. In addition, the second function can be called a DNS server, and the embodiment of the present application does not limit the name of the second function, as long as its function is realized.

[0087] It should be noted that in the 464XLAT scenario of multi-PLAT deployment, conversion between different network protocol addresses will be involved, such as conversion between IPv4 addresses and IPV6 addresses. In the above scenario, the first network protocol includes IPv4, and the second network protocol includes IPv6.

[0088] In actual application, before step 501, the first function can act as a DNS proxy server to query the destination address on the service server side for the terminal, so that the terminal can subsequently access the service server based on the destination address obtained by the query; wherein, DNS proxy means that the terminal and the second function communicate through the proxy server, so the first function also needs to support the DNS proxy function, so that the terminal and the second function can communicate through the first function. At the same time, when the first function determines that the destination address on the service server side is not stored locally, the first function can send the first information to the second function so as to obtain the destination address on the service server side.

[0089] Based on this, in one embodiment, sending the first information to the second function includes:

[0090] receiving seventh information sent by a terminal, wherein the seventh information is used to request first address information of a first network protocol corresponding to the first domain name,

[0091] Sending eighth information to the second function, where the eighth information is used to request second address information of a second network protocol corresponding to the first domain name;

[0092] When it is determined that the second function has not found the second address information of the second network protocol corresponding to the first domain name, the first information is sent to the second function.

[0093] In which, in actual application, the seventh information may carry at least the first domain name and the first resource record type, the first resource record type is used to indicate that the requested DNS resource record is a second resource record, and the second resource record contains at least one address information of a first network protocol. For example, when the first resource record type is A, it indicates that the requested DNS resource record is a second resource record.

[0094] In actual application, after receiving the seventh information, the first function may send the eighth information to the second function based on the DNS protocol, wherein the eighth information carries at least the first domain name and the second resource record type, and the second resource record type is used to indicate that the requested DNS resource record is a third resource record, and the third resource record contains at least one second network protocol address information. That is, in one embodiment, communication with the second function is performed based on the DNS protocol.

[0095] Exemplarily, when the second resource record type is AAAA, it indicates that the requested DNS resource record is the third resource record.

[0096] Here, after receiving the eighth information, the second function can search for a resource record matching the second resource record type from locally stored resource records, thereby determining the second address information of the second network protocol corresponding to the first domain name based on the searched resource record.

[0097] If a resource record matching the second resource record type cannot be found from the locally stored resource records, the second function may send the ninth information to the first function to indicate that the second address information of the second network protocol corresponding to the first domain name has not been found, so that the first function can determine based on the ninth information that the second function has not found the second address information of the second network protocol corresponding to the first domain name. Of course, in actual application, the second function may not return the ninth information to the first function. In this case, when the first function does not receive the ninth information within the preset time, it automatically determines that the second function has not found the second address information of the second network protocol corresponding to the first domain name; wherein the value of the preset time can be set as needed, such as 2s.

[0098] In actual application, when it is determined that the second function has not found the second address information of the second network protocol corresponding to the first domain name, the first function can extend the DNS protocol, thereby sending the first information to the second function based on the extended DNS protocol to obtain the first address information of the first network protocol and the first prefix information of the second network protocol; wherein the first prefix information can be understood as the prefix information corresponding to the second address information of the second network protocol.

[0099] Specifically, in one embodiment, sending the first information to the second function includes:

[0100] A DNS request is sent to the second function, the DNS request including the first information.

[0101] In actual application, the DNS protocol can be extended in different ways so that the first function sends the first information based on the extended DNS protocol; specifically, a new first resource record can be added to the DNS protocol, and the first resource record can be called an ANP resource record. The embodiment of the present application does not limit the name of the first resource record as long as its function is implemented.

[0102] Based on this, in one embodiment, the first information includes at least third information and fourth information, the third information represents the first domain name, the fourth information is used to indicate that the requested DNS resource record is a first resource record, and the first resource record includes at least one first network protocol address information and prefix information of the second network protocol corresponding to each first network protocol address information.

[0103] In actual application, when the first resource record is newly added, the first information at least includes the third information and the fourth information; wherein the fourth information may include a third resource record type (such as ANP) to indicate that the requested DNS resource record is a first resource record. In this way, after receiving the first information, the second function can determine the first resource record matching the fourth information from the locally stored resource records, and determine the first address information of the first network protocol and the first prefix information of the second network protocol corresponding to the first domain name from the first resource record.

[0104] Here, if the address information of a first network protocol corresponding to the first domain name and the corresponding prefix information of the second network protocol are determined from the first resource record, then the first function can use the determined information as the first address information of the first network protocol corresponding to the first domain name and the first prefix information of the second network protocol. If at least two address information of the first network protocol corresponding to the first domain name and the prefix information of the second network protocol corresponding to each address information of the first network protocol are determined from the first resource record, the first function can select one address information of the first network protocol from the determined at least two address information of the first network protocol as the first address information of the first network protocol corresponding to the first domain name, and use the corresponding prefix information of the second network protocol as the first prefix information of the second network protocol; wherein, the address information of the first network protocol can be selected by random selection, and the embodiment of the present application does not limit the selection method.

[0105] In actual application, a fourth resource record can be added to the DNS protocol, and the fourth resource record contains prefix information of at least one second network protocol. The fourth resource record can be called an IPv6-Prefix resource record. The name of the fourth resource record in the embodiment of the present application is not limited, as long as its function is realized. At the same time, a bit can be added to a specific field of the fifth resource record in the DNS protocol. The newly added bit is used to indicate whether to request the prefix information of the second network protocol corresponding to the address information of the first network protocol. The fifth resource record can be called an OPT resource record. The embodiment of the present application does not limit the name of the fifth resource record.

[0106] Based on this, in one embodiment, the first information includes at least third information, fifth information and sixth information, the third information represents the first domain name, the fifth information is used to indicate that the requested DNS resource record is a second resource record, the second resource record includes at least one address information of a first network protocol, and the sixth information is used to request the first prefix information of the second network protocol corresponding to the first domain name.

[0107] In actual application, when the fourth resource record is newly added, the first information at least includes the third information, the fifth information and the sixth information; wherein the fifth information may include the first resource record type (such as A) to indicate that the requested DNS resource record is the second resource record; the sixth information may be understood as a newly added bit in the Z field in the fifth resource record, for example, when the value of the sixth information is set to 1, it is used to request the first prefix information of the second network protocol corresponding to the first domain name; for another example, when the value of the sixth information is set to 0, it is used to request the first prefix information of the second network protocol corresponding to the first domain name. The embodiment of the present application does not limit the indication method of the sixth information.

[0108] In this way, after receiving the first information, the second function can determine the second resource record matching the fifth information from the locally stored resource records, and determine the first address information of the first network protocol corresponding to the first domain name from the second resource record. In addition, based on the sixth information, the second function can determine that while requesting the first address information of the first network protocol corresponding to the first domain name, the first prefix information of the second network protocol is also requested. Therefore, the second function can determine the fourth resource record matching the sixth information from the locally stored resource records, and determine the first prefix information of the second network protocol corresponding to the first domain name from the fourth resource record.

[0109] Here, after determining the first address information of the first network protocol and the first prefix information of the second network protocol corresponding to the first domain name, the second function can generate the second information based on the first address information and the first prefix information, and return the second information to the first function based on the DNS protocol.

[0110] In actual application, in step 502, after receiving the second information, the first function may generate tenth information based on the first address information in the second information, and return the tenth information to the terminal, wherein the tenth information includes the first address information. At the same time, the first function may also save the correspondence between the first address information and the first prefix information, so as to subsequently convert the address of the first network protocol to the address of the second network protocol.

[0111] Specifically, in one embodiment, the method may further include:

[0112] A mapping relationship between the first address information and the first prefix information is saved.

[0113] In actual application, after saving the mapping relationship between the first address information and the first prefix information, when the terminal accesses the service server through the first function, the first function can convert the destination address of the first network protocol sent by the terminal into the destination address of the second network protocol based on the saved mapping relationship to achieve network address conversion; wherein, the first function at least supports stateless network address conversion.

[0114] Based on this, in one embodiment, the method may further include:

[0115] The first address information and the first prefix information are concatenated to obtain second address information of the second network protocol corresponding to the first domain name.

[0116] In actual application, when the terminal accesses the service server through the first function, the first function can receive the eleventh information sent by the terminal, and the eleventh information at least includes the destination address of the first network protocol of the service server; when the destination address of the first network protocol of the service server matches the first address information, the first function can concatenate the first address information and the first prefix information to obtain the second address information, that is, the destination address of the second network protocol of the service server. In this way, stateless network address translation is realized.

[0117] Accordingly, the embodiment of the present application provides an information transmission method, which is applied to the second function, such as Figure 6 As shown, the method includes:

[0118] Step 601: Receive first information sent by a first function, the first information is used to request first address information of a first network protocol and second prefix information of a second network protocol corresponding to a first domain name, the second function is at least used for DNS query, and the first function at least supports network address translation;

[0119] Step 602: Send second information to the first function, where the second information includes first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, and the second information is used for network address translation.

[0120] In one embodiment, the receiving the first information sent by the first function includes:

[0121] A DNS request sent by the first function is received, where the DNS request includes the first information.

[0122] In one embodiment, the method may further include:

[0123] Receive eighth information sent by the first function, where the eighth information is used to request second address information of a second network protocol corresponding to the first domain name.

[0124] The present application also provides an information transmission method. Figure 7 As shown, the method includes:

[0125] Step 701: The first function sends a first message to the second function;

[0126] The first information is used to request first address information of a first network protocol and first prefix information of a second network protocol corresponding to a first domain name, the first function at least supports network address translation, and the second function is at least used for DNS query;

[0127] Step 702: After receiving the first information sent by the first function, the second function sends the second information to the first function;

[0128] The second information includes first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, and the second information is used for network address translation.

[0129] Here, it should be noted that the specific processing procedures of the first function and the second function have been described in detail above and will not be repeated here.

[0130] The information transmission method provided by the embodiment of the present application is that the first function sends first information to the second function, the first information is used to request the first address information of the first network protocol and the first prefix information of the second network protocol corresponding to the first domain name, the first function at least supports network address translation, and the second function is at least used for DNS query; the second function sends second information to the first function, the second information includes the first address information of the first network protocol and the first prefix information of the second network protocol corresponding to the first domain name, and the second information is used for network address translation. The technical solution provided by the embodiment of the present application is that by setting the prefixes of the second network protocol (IPv6) on the PLAT side of multiple PLATs on the second function, the first function can obtain the prefixes of the first network protocol (such as IPv4) address and the second network protocol (such as IPv6) address on the PLAT side from the second function, so as to subsequently perform conversion between the two network addresses according to the obtained prefixes of the IPv4 address and the IPv6 address, thereby realizing the transmission of the prefix of the IPv6 address.

[0131] The present application is described in further detail below in conjunction with application examples.

[0132] To address the problem of prefix transmission of IPv6 addresses in multiple PLAT scenarios, by extending the DNS protocol, the DNS server can send the prefixes of IPv6 addresses on multiple PLAT sides to CLAT; in the fixed network scenario, CLAT is deployed on the home gateway; in the mobile scenario, CLAT is deployed on the terminal.

[0133] The following is a detailed description of different DNS protocol extension methods.

[0134] Application Example 1

[0135] In this application example, a new ANP resource record can be defined in the DNS protocol; wherein, the type of the ANP resource record (expressed as TYPE in English) can be defined as ANP, the value (expressed as VALUE in English) can be defined as 20000, and the content includes the A record corresponding to the domain name (i.e. the first domain name mentioned above) (i.e. the first address information mentioned above) and the prefix of the IPv6 address on the PLAT side corresponding to the A record (i.e. the first prefix information mentioned above).

[0136] Based on the extended DNS protocol, the terminal performs DNS query through CLAT, such as Figure 8 As shown, the following steps are included:

[0137] Step 801: The terminal sends a DNS4 Query (ie, the seventh information mentioned above) to the CLAT;

[0138] The DNS4 request carries a domain name (such as www.abc.com) and a first resource record type (such as A); the DNS4 request is used to request the A record corresponding to the domain name.

[0139] Step 802: After receiving the DNS4 request, the CLAT sends a first DNS request (DNS Query in English) (i.e., the eighth information mentioned above) to the DNS server (DNS Server in English);

[0140] The DNS request carries the domain name and the second resource record type (such as AAAA), and the DNS request is used to request the AAAA record corresponding to the domain name, that is, the IPv6 destination address (that is, the second address information mentioned above).

[0141] Step 803: CLAT determines whether the DNS server has queried the AAAA record corresponding to the domain name;

[0142] Here, if CLAT determines that the DNS server has not queried the AAAA record corresponding to the domain name, step 804 is executed; if CLAT determines that the DNS server has queried the AAAA record corresponding to the domain name, the AAAA record corresponding to the domain name is returned to the terminal and the current process ends.

[0143] In actual application, CLAT can determine that the DNS server has not queried the IPv6 source address corresponding to the domain name based on the response returned by the DNS server to the first DNS request. In addition, if the DNS server has not received a response to the first DNS request within a preset time (such as 2s), CLAT can also determine that the DNS server has not queried the IPv6 source address corresponding to the domain name.

[0144] Step 804: CLAT sends a second DNS request (i.e., the first information mentioned above) to the DNS server, where the second DNS request carries the domain name (i.e., the third information mentioned above) and the third resource type (such as ANP) (i.e., the fourth information mentioned above);

[0145] Step 805: After receiving the second DNS request, the DNS server returns a first DNS response (DNS Response in English) (ie, the second information mentioned above) to CLAT. The first DNS response carries the A record corresponding to the domain name and the prefix of the IPv6 address.

[0146] In actual application, the DNS server can query the A record and the prefix of the IPv6 address that match the domain name from the ANP resource record, and generate a first DNS response based on the query result.

[0147] Step 806: After receiving the first DNS response, the CLAT extracts the A record and saves the mapping relationship between the A record and the prefix of the IPv6 address for subsequent translation (which can be understood as conversion) between the IPv4 address and the IPv6 address by the CLAT; then, step 807 is executed;

[0148] Step 807: CLAT sends a second DNS response to the terminal, where the second DNS response carries the domain name and the A record.

[0149] From the above description, it can be seen that when the DNS4 request sent by the terminal reaches CLAT, CLAT initiates a DNS query request for the domain name ANP resource against the service server that only supports IPv4 (which can be expressed as ipv4-only in English); the DNS server responds to the DNS query request and can return the A record and the prefix of the IPv6 address on the PLAT side to CLAT. CLAT sends the A record to the terminal through the DNS query response, and stores the corresponding relationship between the A record and the prefix of the IPv6 address on the PLAT side for subsequent translation from the IPv4 destination address to the IPv6 destination address.

[0150] Application Example 2

[0151] In this application example, a new IPv6-Prefix resource record can be defined in the DNS protocol; wherein the type of the IPv6-Prefix resource record can be defined as V6PREFIX, the value can be defined as 20001, and the content includes the A record corresponding to the domain name.

[0152] In addition, if Fig. 9 As shown, a bit "PR" may be added to the Z field of the OPT resource record included in the DNS protocol to indicate the prefix of the IPv6 address corresponding to the requested A record through PR.

[0153] Based on the extended DNS protocol, the process of DNS query through CLAT is as follows: Fig.10 As shown, the following steps are included:

[0154] Step 1001: The terminal sends a DNS4 request to CLAT;

[0155] The DNS4 request carries a domain name (such as www.abc.com) and a first resource record type (such as A); the DNS4 request is used to request the A record corresponding to the domain name.

[0156] Step 1002: After receiving the DNS4 request, the CLAT sends a first DNS request to the DNS server;

[0157] The DNS request carries the domain name and the second resource record type (AAAA), and the DNS request is used to request the AAAA record corresponding to the domain name, that is, the IPV6 destination address.

[0158] Step 1003: CLAT determines whether the DNS server has queried the AAAA record corresponding to the domain name;

[0159] Here, if CLAT determines that the DNS server has not queried the AAAA record corresponding to the domain name, step 1004 is executed; if CLAT determines that the DNS server has queried the AAAA record corresponding to the domain name, the AAAA record corresponding to the domain name is returned to the terminal and the current process ends.

[0160] In actual application, CLAT can determine that the DNS server has not queried the AAAA record corresponding to the domain name based on the response returned by the DNS server to the first DNS request. In addition, if the DNS server has not received a response to the first DNS request within a preset time (such as 2s), CLAT can also determine that the DNS server has not queried the AAAA record corresponding to the domain name.

[0161] Step 1004: CLAT sends a second DNS request (second DNS Query) to the DNS server, where the second DNS request carries the domain name (i.e., the third information mentioned above), the first resource type (e.g., A) (i.e., the fifth information mentioned above), and PR indication information (e.g., PR=1) (i.e., the sixth information mentioned above);

[0162] In actual application, the PR indication information can be pre-set to 1, indicating that when requesting the A record corresponding to the domain name, the prefix of the IPv6 address corresponding to the A record is also requested; the PR indication information can also be pre-set to 0, indicating that when requesting the A record corresponding to the domain name, the prefix of the IPv6 address corresponding to the A record is also requested.

[0163] Step 1005: After receiving the second DNS request, the DNS server returns a first DNS response to the CLAT. The first DNS response carries the domain name, the corresponding A record, and the prefix of the IPv6 address.

[0164] Here, the DNS server can search for an A record that matches the domain name from the A resource record, and search for a prefix of the IPv6 address that matches the domain name from the IPv6-Prefix resource record to obtain a query result; and generate a first DNS response based on the query result.

[0165] Step 1006: After receiving the first DNS response, the CLAT extracts the A record and saves the mapping relationship between the A record and the prefix of the IPv6 address for subsequent translation between the IPv4 address and the IPv6 address by the CLAT; then, step 1007 is executed;

[0166] Step 1007: CLAT sends a second DNS response to the terminal, where the second DNS response carries the domain name and the A record.

[0167] It can be seen from the above steps 1001 to 1007 that in the 464XLAT scenario where multiple PLATs are deployed, the CLAT can obtain the prefix of the IPv6 address of each PLAT side, and then forward subsequent messages based on the obtained prefix of the IPv6 address.

[0168] In addition, the TXT resource record may be extended in the DNS protocol so that the DNS server returns the prefix of the IPv6 address corresponding to the A record to the CLAT based on the TXT resource record, thereby enabling the CLAT to obtain the prefix of the IPv6 address on each PLAT side.

[0169] In this application example, the prefixes of the IPv6 addresses of multiple PLAT sides are sent to the CLAT by extending the DNS protocol. This can solve the problem of IPv6 address prefix transmission caused by each PLAT being deployed by a different ICP (which can also be understood as the owner) in a multi-PLAT scenario. At the same time, it greatly simplifies the configuration management capabilities of the CPE.

[0170] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides an information transmission device, which is set on the first function, such as Fig.11 As shown, the device comprises:

[0171] A first sending unit 1101 is configured to send first information to a second function, where the first information is used to request first address information of a first network protocol and first prefix information of a second network protocol corresponding to a first domain name, where the first function at least supports network address translation, and the second function is at least used for DNS query;

[0172] The first receiving unit 1102 is used to receive second information sent by the second function, where the second information includes first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, and the second information is used for network address translation.

[0173] In one embodiment, the first sending unit 1101 is used to send a DNS request to the second function, and the DNS request includes the first information.

[0174] In one embodiment, the first sending unit 1101 is configured to:

[0175] receiving seventh information sent by a terminal, wherein the seventh information is used to request first address information of a first network protocol corresponding to the first domain name,

[0176] Sending eighth information to the second function, where the eighth information is used to request second address information of a second network protocol corresponding to the first domain name;

[0177] When it is determined that the second function has not found the second address information of the second network protocol corresponding to the first domain name, the first information is sent to the second function.

[0178] In one embodiment, the device further includes: a processing unit 1103; wherein,

[0179] The processing unit 1103 is used to concatenate the first address information and the first prefix information to obtain second address information of a second network protocol corresponding to the first domain name.

[0180] In one embodiment, the processing unit 1103 is further configured to save a mapping relationship between the first address information and the first prefix information.

[0181] In actual application, the first sending unit 1101 and the first receiving unit 1102 can be implemented by a communication interface in the information transmission device; the processing unit 1103 can be implemented by a processor in the information transmission device.

[0182] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides an information transmission device, which is arranged on a network device, such as Fig.12 As shown, the device comprises:

[0183] The second receiving unit 1201 is used to receive first information sent by a first function, where the first information is used to request first address information of a first network protocol corresponding to a first domain name and second prefix information of a second network protocol, where the second function is at least used for DNS query, and the first function at least supports network address translation;

[0184] The second sending unit 1202 is used to send second information to the first function, where the second information includes first address information of the first network protocol and first prefix information of the second network protocol corresponding to the first domain name, and the second information is used for network address translation.

[0185] In one embodiment, the second receiving unit 1201 is used to receive a DNS request sent by the first function, and the DNS request includes the first information.

[0186] In one embodiment, the second receiving unit 1201 is further used to receive eighth information sent by the first function, where the eighth information is used to request second address information of a second network protocol corresponding to the first domain name.

[0187] In actual application, the second sending unit 1201 and the second receiving unit 1202 can be implemented by a communication interface in an information transmission device.

[0188] It should be noted that: the information transmission device provided in the above embodiment only uses the division of the above program modules as an example when performing information transmission. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the information transmission device provided in the above embodiment and the information transmission method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0189] Based on the hardware implementation of the above program module, and in order to implement the method of the first functional side of the embodiment of the present application, the embodiment of the present application also provides a first function, such as Fig.13 As shown, the first function 1300 includes:

[0190] The first communication interface 1301 is capable of information interaction with the second function;

[0191] A first processor 1302 is connected to the first communication interface 1301 to implement information interaction with the second function, and is used to execute the method provided by one or more technical solutions of the first function side when running the computer program;

[0192] A first memory 1303 , on which the computer program is stored.

[0193] Specifically, the first communication interface 1301 is used to:

[0194] Sending first information to a second function, the first information being used to request first address information of a first network protocol and first prefix information of a second network protocol corresponding to a first domain name, the first function at least supporting network address translation, and the second function at least being used for domain name system DNS query;

[0195] Second information sent by the second function is received, where the second information includes first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, and the second information is used for network address translation.

[0196] In one embodiment, the first communication interface 1301 is used to send a DNS request to the second function, and the DNS request includes the first information.

[0197] In one embodiment, the first communication interface 1301 is used to:

[0198] receiving seventh information sent by a terminal, wherein the seventh information is used to request first address information of a first network protocol corresponding to the first domain name,

[0199] Sending eighth information to the second function, where the eighth information is used to request second address information of a second network protocol corresponding to the first domain name;

[0200] When it is determined that the second function has not found the second address information of the second network protocol corresponding to the first domain name, the first information is sent to the second function.

[0201] In one embodiment, the first processor 1302 is configured to concatenate the first address information and the first prefix information to obtain second address information of a second network protocol corresponding to the first domain name.

[0202] In one embodiment, the first processor 1302 is further configured to store a mapping relationship between the first address information and the first prefix information.

[0203] It should be noted that the specific processing process of the first processor 1302 and the first communication interface 1301 can be understood by referring to the above method.

[0204] Of course, in actual application, the various components in the first function 1300 are coupled together through the bus system 1304. It can be understood that the bus system 1304 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1304 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.13 Various buses are labeled as bus system 1304.

[0205] The first memory 1303 in the embodiment of the present application is used to store various types of data to support the operation of the first function 1300. Examples of such data include: any computer program used to operate on the first function 1300.

[0206] The method disclosed in the above embodiment of the present application can be applied to the first processor 1302, or implemented by the first processor 1302. The first processor 1302 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of the hardware in the first processor 1302 or an instruction in the form of software. The above-mentioned first processor 1302 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 1302 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the first memory 1303. The first processor 1302 reads the information in the first memory 1303 and completes the steps of the above method in combination with its hardware.

[0207] In an exemplary embodiment, the first function 1300 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned method.

[0208] Based on the hardware implementation of the above program module, and in order to implement the method of the second functional side of the embodiment of the present application, the embodiment of the present application also provides a second function, such as Fig.14 As shown, the second function 1400 includes:

[0209] The second communication interface 1401 is capable of information interaction with the first function;

[0210] The second processor 1402 is connected to the second communication interface 1401 to implement information interaction with the first function, and is used to execute the method provided by one or more technical solutions of the second function side when running the computer program;

[0211] A second memory 1403 , on which the computer program is stored.

[0212] Specifically, the second communication interface 1401 is used to:

[0213] receiving first information sent by a first function, the first information being used to request first address information of a first network protocol and second prefix information of a second network protocol corresponding to a first domain name, the second function being at least used for DNS query, and the first function at least supporting network address translation;

[0214] Sending second information to the first function, the second information including first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, the second information being used for network address translation.

[0215] In one embodiment, the second communication interface 1401 is used to receive a DNS request sent by the first function, where the DNS request includes the first information.

[0216] In one embodiment, the second communication interface 1401 is further used to receive eighth information sent by the first function, and the eighth information is used to request second address information of the second network protocol corresponding to the first domain name.

[0217] It should be noted that the specific processing process of the second communication interface 1401 can be understood by referring to the above method.

[0218] Of course, in actual application, the various components in the second function 1400 are coupled together through the bus system 1404. It can be understood that the bus system 1404 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1404 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.14 Various buses are labeled as bus system 1404.

[0219] The second memory 1403 in the embodiment of the present application is used to store various types of data to support the operation of the second function 1400. Examples of such data include: any computer program used to operate on the second function 1400.

[0220] The method disclosed in the above embodiment of the present application can be applied to the second processor 1402, or implemented by the second processor 1402. The second processor 1402 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the second processor 1402. The above-mentioned second processor 1402 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 1402 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the second memory 1403. The second processor 1402 reads the information in the second memory 1403 and completes the steps of the above method in combination with its hardware.

[0221] In an exemplary embodiment, the second function 1400 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned method.

[0222] It can be understood that the memory (first memory 1303 and second memory 1403) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a ferromagnetic random access memory, a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0223] In order to implement the method provided in the embodiment of the present application, the embodiment of the present application also provides an information transmission system, such as Fig.15 As shown, the system includes: a first function 1501 and a second function 1502.

[0224] Here, it should be noted that the specific processing procedures of the first function 1501 and the second function 1502 have been described in detail above and will not be repeated here.

[0225] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 1303 storing a computer program, the computer program can be executed by the first processor 1302 of the first function 1300 to complete the steps of the first function side method, and for another example, including a second memory 1403 storing a computer program, the computer program can be executed by the third processor 1402 of the second function 1400 to complete the steps of the second function side method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.

[0226] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0227] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0228] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. An information transmission method, characterized in that: Applied to the first function, including: Sending first information to a second function, the first information being used to request first address information of a first network protocol and first prefix information of a second network protocol corresponding to a first domain name, the first function at least supporting network address translation, and the second function at least being used for domain name system DNS query; Second information sent by the second function is received, where the second information includes first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, and the second information is used for network address translation.

2. The method according to claim 1, characterized in that Communicate with the second function based on the DNS protocol.

3. The method according to claim 1, characterized in that The sending the first information to the second function includes: A DNS request is sent to the second function, the DNS request including the first information.

4. The method according to claim 3, characterized in that The first information includes at least third information and fourth information, the third information represents the first domain name, the fourth information is used to indicate that the requested DNS resource record is a first resource record, and the first resource record includes at least one address information of a first network protocol and prefix information of a second network protocol corresponding to each address information of the first network protocol.

5. The method according to claim 3, characterized in that: The first information includes at least third information, fifth information and sixth information, the third information represents the first domain name, the fifth information is used to indicate that the requested DNS resource record is a second resource record, the second resource record includes at least one address information of a first network protocol, and the sixth information is used to request the first prefix information of the second network protocol corresponding to the first domain name.

6. The method according to claim 1, characterized in that The sending the first information to the second function includes: receiving seventh information sent by a terminal, wherein the seventh information is used to request first address information of a first network protocol corresponding to the first domain name, Sending eighth information to the second function, where the eighth information is used to request second address information of a second network protocol corresponding to the first domain name; When it is determined that the second function has not found the second address information of the second network protocol corresponding to the first domain name, the first information is sent to the second function.

7. The method according to claim 1, characterized in that The method further comprises: The first address information and the first prefix information are concatenated to obtain second address information of the second network protocol corresponding to the first domain name.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: A mapping relationship between the first address information and the first prefix information is saved.

9. An information transmission method, characterized in that: Applied to the second function, including: receiving first information sent by a first function, the first information being used to request first address information of a first network protocol and second prefix information of a second network protocol corresponding to a first domain name, the second function being at least used for DNS query, and the first function at least supporting network address translation; Sending second information to the first function, the second information including first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, the second information being used for network address translation.

10. The method according to claim 9, characterized in that Communicate with the first function based on the DNS protocol.

11. The method according to claim 9, characterized in that The receiving the first information sent by the first function includes: A DNS request sent by the first function is received, where the DNS request includes the first information.

12. The method according to claim 11, characterized in that The first information includes at least third information and fourth information, the third information represents the first domain name, the fourth information is used to indicate that the requested DNS resource record is a first resource record, and the first resource record includes at least one address information of a first network protocol and prefix information of a second network protocol corresponding to each address information of the first network protocol.

13. The method according to claim 11, characterized in that The first information includes at least third information, fifth information and sixth information, the third information represents the first domain name, the fifth information is used to indicate that the requested DNS resource record is a second resource record, the second resource record includes at least one address information of a first network protocol, and the sixth information is used to request the first prefix information of the second network protocol corresponding to the first domain name.

14. The method according to any one of claims 9 to 13, characterized in that: The method further comprises: Receive eighth information sent by the first function, where the eighth information is used to request second address information of a second network protocol corresponding to the first domain name.

15. An information transmission device, characterized in that: Set up in the first function, including: A first sending unit, configured to send first information to a second function, wherein the first information is used to request first address information of a first network protocol and first prefix information of a second network protocol corresponding to a first domain name, wherein the first function at least supports network address translation, and the second function is at least used for DNS query; The first receiving unit is used to receive second information sent by the second function, where the second information includes first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, and the second information is used for network address translation.

16. An information transmission device, characterized in that: Settings in the second function include: a second receiving unit, configured to receive first information sent by a first function, wherein the first information is used to request first address information of a first network protocol corresponding to a first domain name and second prefix information of a second network protocol, wherein the second function is at least used for DNS query, and the first function at least supports network address translation; The second sending unit is used to send second information to the first function, where the second information includes first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, and the second information is used for network address translation.

17. A first function, characterized in that, include: A first processor and a first communication interface; wherein, The first communication interface is used to send first information to the second function, the first information is used to request first address information of the first network protocol and first prefix information of the second network protocol corresponding to the first domain name, the first function at least supports network address translation, and the second function is at least used for DNS query; receive second information sent by the second function, the second information includes the first address information of the first network protocol and the first prefix information of the second network protocol corresponding to the first domain name, and the second information is used for network address translation.

18. A second function, characterized in that, include: A second processor and a second communication interface; wherein, The second communication interface is used to receive first information sent by the first function, the first information is used to request first address information of a first network protocol corresponding to a first domain name and second prefix information of a second network protocol, the second function is at least used for DNS query, and the first function at least supports network address translation; Sending second information to the first function, the second information including first address information of a first network protocol and first prefix information of a second network protocol corresponding to the first domain name, the second information being used for network address translation.

19. A first function, characterized in that, include: a first processor and a first memory for storing a computer program executable on the processor, Wherein, when the first processor is used to run the computer program, the steps of the method described in any one of claims 1 to 8 are executed.

20. A second function, characterized in that: include: a second processor and a second memory for storing a computer program executable on the processor, Wherein, when the second processor is used to run the computer program, the steps of the method described in any one of claims 9 to 14 are executed.

21. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 8, or implements the steps of the method according to any one of claims 9 to 14.