[go: up one dir, main page]

CN110225150B - Method, system and storage medium for communication between different network protocols - Google Patents

Method, system and storage medium for communication between different network protocols Download PDF

Info

Publication number
CN110225150B
CN110225150B CN201910568348.3A CN201910568348A CN110225150B CN 110225150 B CN110225150 B CN 110225150B CN 201910568348 A CN201910568348 A CN 201910568348A CN 110225150 B CN110225150 B CN 110225150B
Authority
CN
China
Prior art keywords
accessed
server
domain name
client
record
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
CN201910568348.3A
Other languages
Chinese (zh)
Other versions
CN110225150A (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.)
Zhongxing Keyuan Beijing Information Technology Co ltd
Original Assignee
Zhongxing Keyuan Beijing Information Technology 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 Zhongxing Keyuan Beijing Information Technology Co ltd filed Critical Zhongxing Keyuan Beijing Information Technology Co ltd
Priority to CN201910568348.3A priority Critical patent/CN110225150B/en
Publication of CN110225150A publication Critical patent/CN110225150A/en
Application granted granted Critical
Publication of CN110225150B publication Critical patent/CN110225150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/251Translation of Internet protocol [IP] addresses between different IP versions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

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

Abstract

The invention discloses a communication method and device among different network protocols, a storage medium and a processor. The first DNS server implements the method and comprises the following steps: a first DNS server receives a first domain name query request sent by a client, wherein the domain name of a service end to be accessed in the first domain name query request corresponds to the address of the service end to be accessed; and when the server to be accessed does not inquire a first record consistent with the network where the first domain name inquiry request is located in the first DNS, the first DNS returns the IP address of the protocol conversion system to the client, wherein the first record is the address of the server to be accessed. The invention solves the technical problem that the client can not randomly access all the service terminals corresponding to the IPv4 or IPv6 addresses in the IPv4 and IPv6 networks in the prior art, so that the configuration of the DNS is simple and quick, and the IPv4 addresses are saved.

Description

Method, system and storage medium for communication between different network protocols
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a system, and a storage medium for communication between different network protocols.
Background
At present, as the exhaustion of the IPv4 address begins to use the IPv6 network to replace the IPv4 network, the situation that the IPv4 and the IPv6 coexist at the same time often exists in the transition phase of replacement, and the problem that the IPv4 and the IPv6 are incompatible when the user (client) uses the IPv4 or IPv6 network also exists. Operators or service providers begin to deploy dual stacks and provide dual stack services to solve the problem of IPv6 networks, but the two stacks of dual stack services are IPv4 and IPv6, respectively, and since the two networks of IPv4 and IPv6 are also independent and not communicated with each other, there is still a technical problem of incompatibility.
The prior art adopts a stateless translation technology and a stateful translation technology when solving the problem of intercommunication compatibility of the IPv4 and the IPv6, the stateless translation technology mainly realizes the address mapping relationship by means of a mapping algorithm and the like, the stateful translation technology mainly realizes the address mapping relationship by a dynamically established mapping table, and the dynamic mapping table needs to be established, maintained and managed by a certain means.
With the recent great improvement of hardware technology level, the processing capacity of the protocol conversion platform is increased by hundreds times, the advantage that the load of the protocol conversion platform can be reduced by fixing the mapping relation is not existed, the reuse of the above methods is not suitable, and various defects exist, specifically as follows:
1) when the problem of intercommunication between IPv4 and IPv6 networks is solved, no matter the stateless translation or stateful translation adopts an address mapping method, the configuration rule of the address mapping method in DNS is complex and tedious, and a one-to-one mapping relation is also needed, the address capacity of IPv6 is large and IPv4 is small, the one-to-one mapping relation needs a corresponding number of IPv4 addresses, a large number of IPv4 addresses are wasted, and the aim of solving the exhaustion of IPv4 addresses cannot be achieved.
2) The problem of nesting of IPv4/IPv6 applications cannot be solved only by simply performing network layer conversion.
Aiming at the technical problem that the client cannot randomly access all IPv4 addresses or corresponding service terminals of IPv6 addresses in IPv4 and IPv6 networks in the prior art, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a communication method, a communication device, a storage medium and a processor among different network protocols, which aim to solve the problems in the prior art.
According to an aspect of the embodiments of the present invention, there is provided a method for communication between different network protocols, including: a method for communication between different network protocols, comprising: a first domain name query request sent by a client is received by a first DNS server, wherein the domain name of a service end to be accessed is in the first domain name query request, and the domain name of the service end to be accessed corresponds to the address of the service end to be accessed; and when the server to be accessed is not inquired in the first DNS server to obtain a first record consistent with the network where the first domain name inquiry request is located, the first DNS server returns the IP address of the protocol conversion system to the client, wherein the first record is the address of the server to be accessed.
Further, after receiving the first domain name query request sent by the client, the first DNS server includes: and judging whether the server to be accessed can query a first record consistent with the network where the first domain name query request is located in the first DNS according to the domain name of the server to be accessed.
Further, after judging whether the server to be accessed can query the first record consistent with the network where the first domain name query request is located in the first DNS server according to the domain name of the server to be accessed, the method includes: and when the server to be accessed inquires a first record consistent with the network where the first domain name inquiry request is located in the first DNS, the first DNS returns the IP address of the server to be accessed to the client, and the client accesses the server to be accessed.
Further, after judging whether the server to be accessed can query the first record consistent with the network where the first domain name query request is located by the first DNS server according to the domain name of the server to be accessed, the method includes: and under the condition that the server to be accessed does not inquire the first record which is consistent with the network where the first domain name inquiry request is located in the first DNS, judging whether the server to be accessed can inquire the first record which is inconsistent with the network where the first domain name inquiry request is located in the first DNS according to the domain name of the server to be accessed.
Further, after judging whether the server to be accessed can query the first record inconsistent with the network where the first domain name query request is located in the first DNS server according to the domain name of the server to be accessed, the method includes: and when the server to be accessed inquires a first record which is inconsistent with the network where the first domain name inquiry request is located in the first DNS server, the first DNS server returns the IP address of the protocol conversion system to the client.
According to an aspect of the embodiments of the present invention, there is provided another method for communication between different network protocols, including: a client sends a first domain name query request to a first DNS server; and the client receives the IP address of the protocol conversion system returned by the first DNS server.
Further, after receiving the IP address of the protocol conversion system returned by the first DNS server, the client includes: and the client sends an access request to the protocol conversion system according to the IP address of the protocol conversion system.
According to an aspect of the embodiments of the present invention, there is provided another method for communication between different network protocols, including: the protocol conversion system receives an access request sent by a client, wherein the access request comprises a domain name of a service end to be accessed; the protocol conversion system sends a second domain name query request to a second DNS server, wherein the second domain name query request comprises the domain name of the server to be accessed; the protocol conversion system receives a second record returned by the second DNS server, wherein the second record comprises a domain name of a service end to be accessed and an IP address of the service end to be accessed, the IP address of the service end to be accessed corresponds to the domain name of the service end to be accessed, and the IP address of the service end to be accessed and the IP address of the client belong to different network protocols; and the protocol conversion system accesses the server according to the second record.
Further, the first record is an a record or an AAAA record; the second record is an A record or an AAAA record, and the IP address is an IPv4 address or an IPv6 address.
According to an aspect of an embodiment of the present invention, there is provided another communication system between different network protocols, including: a first receiving unit, configured to receive, by a first DNS server, a first domain name query request sent by a client, where a domain name of a server to be accessed in the first domain name query request corresponds to an address of the server to be accessed; and the first processing unit is used for returning the IP address of the protocol conversion system to the client by the first DNS server under the condition that the server to be accessed does not inquire a first record which is consistent with the network where the first domain name inquiry request is located in the first DNS server, wherein the first record is the address of the server to be accessed.
According to another aspect of the embodiments of the present invention, there is also provided a communication system between different network protocols, including: the first sending unit is used for sending a first domain name query request to a first DNS server by a client; and the second receiving unit is used for receiving the IP address of the protocol conversion system returned by the first DNS by the client.
Further, the communication system further includes a second sending unit, configured to send, by the client, the first access request to the protocol conversion system according to the IP address of the protocol conversion system.
According to another aspect of the embodiments of the present invention, there is also provided a communication system between different network protocols, including: a third receiving unit, configured to receive, by a protocol conversion system, a first access request sent by a client, where a domain name of a server to be accessed is to be accessed in the first access request; a third sending unit, configured to send, by the protocol conversion system, a second domain name query request to a second DNS server, where the second domain name query request includes a domain name of the server to be accessed; a fourth receiving unit, configured to receive, by a protocol conversion system, a second record returned by the second DNS server, where the second record includes a domain name of a service end to be accessed and an IP address of the service end to be accessed, the IP address of the service end to be accessed corresponds to the domain name of the service end to be accessed, and the IP address of the service end to be accessed and the IP address of the client belong to different network protocols; and the second processing unit is used for the protocol conversion system to access the server according to the second record.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium having a program stored thereon, the program being operable to perform the method described above.
According to another aspect of the embodiments of the present invention, there is also provided a processor, which is executed with the program to perform the above-mentioned method.
According to the embodiment of the invention, the DNS server is adopted to direct the access request with the service end domain name sent by the client to the protocol conversion system, the protocol conversion system accesses the service end and returns the information to the client inconsistent with the network where the service end is located, and the client cannot randomly access the service end corresponding to the IPv4 address or the IPv6 address in the IPv4 and IPv6 networks, so that the configuration of the DNS is simple and quick, the IPv4 address is saved, and the processing efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of an alternative method of communication between different network protocols in accordance with an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative method of communication between different network protocols in accordance with an embodiment of the present invention;
FIG. 3 is a flow chart of an alternative method of communication between different network protocols in accordance with an embodiment of the present invention;
FIG. 4 is a flow chart of an alternative method of communication between different network protocols in accordance with an embodiment of the present invention;
FIG. 5 is a flow chart of an alternative method of communication between different network protocols in accordance with an embodiment of the present invention;
FIG. 6 is a schematic diagram of an alternative communication system between different network protocols in accordance with an embodiment of the present invention;
FIG. 7 is a schematic diagram of an alternative communication system between different network protocols in accordance with an embodiment of the present invention;
fig. 8 is a schematic diagram of an alternative communication system between different network protocols in accordance with an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present invention, there is provided an embodiment of a method of communication between different network protocols, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that illustrated herein.
The noun meanings appearing in the following examples are explained below:
the client may be, but is not limited to: various network devices and intelligent terminal devices such as mobile phones, computers, internet of things terminals and the like.
The service end can be, but is not limited to, websites such as government enterprises, finance, colleges and universities, media, e-commerce and videos and various app application service systems corresponding to the websites.
Fig. 1 is a flowchart of a communication method between different network protocols according to an embodiment of the present invention, and as shown in fig. 1, a first DNS server implements the method including the following steps:
step S102, a first DNS server receives a first domain name query request sent by a client, wherein the domain name of a service end to be accessed in the first domain name query request corresponds to the address of the service end to be accessed;
step S104, when the server to be accessed is not queried in the first DNS server for the first record consistent with the network where the first domain name query request is located, the first DNS server returns the IP address of the protocol conversion system to the client, where the first record is the address of the server to be accessed.
The client in the above steps may be in an IPv4 network or an IPv6 network, the number of the first DNS servers may be one or more, different numbers of the first DNS servers are set according to different scales, and the IP address of the protocol conversion system may be fixed or non-fixed.
There may be several situations when a user in a certain network needs to access a server: the first case is that the network protocol of the network where the user is located is the same as that of the service end, for example, all IPv4 networks or all IPv6 networks. The second case is that the network protocol of the network where the user is located is different from that of the server, for example, the client is in an IPv4 network, and the server is in an IPv6 network, and the third case is that the network protocol of the network where the user is located is different from that of the outer chain returned by the server, that is, the nesting problem.
Although the prior art can solve the problem of network intercommunication between the client in the IPv6 network and the IPv4 by adopting an address mapping method, the problem of network intercommunication between the client and the IPv6 when the client is in the IPv4 network is difficult to solve, a large amount of IPv4 addresses are wasted, and the more difficult problem of nesting of IPv4/IPv6 applications is solved.
The embodiment of the invention does not need the address mapping method in the prior art and does not need to preset the address mapping relation table, when a user in a certain network needs to access a service end, the user directly accesses the service end under the first condition, and feeds back a record to a client through the DNS server under the second condition, wherein the record can be a fixed IP address of a protocol conversion platform and is not a record corresponding to the IP address of the service end to be accessed, and when the user does not have a network protocol, the DNS after accessing the DNS points the record fed back to the user to a protocol conversion system, so that the user directly accesses the protocol conversion system to replace the direct access of the service end. If the information returned by the accessed server side contains the IP address corresponding to the network protocol inconsistent with the client side, the nesting problem in the third situation is solved, in the situation, the processing mode is similar to that in the second situation, the DNS directs the record fed back to the user to the protocol conversion system, and the user directly accesses the protocol conversion system to replace the nested server side. The invention solves the technical problem that the client can not randomly access all IPv4 addresses or corresponding service ends of IPv6 addresses in IPv4 and IPv6 networks in the prior art, so that the configuration of DNS is simple and quick, IPv4 addresses are saved, and the processing efficiency is improved. For example, the local DNS46 receives a DNS request for an IPv4 client; the local DNS46 looks up a and AAAA records from the DNS request; when the AAAA record is found but the A record is not found, the local DNS46 takes the IPv4 address of the translation gateway in the IPv4 network of the user as the A record and returns the A record to the IPv4 client according to the preset data, so that the intercommunication problem of the IPv4/IPv6 incompatible networks is solved, and the problem that the IPv4/IPv6 applications are mutually nested, which is difficult to solve by the existing conversion technology, in the process of the evolution from the IPv4 to the IPv6 is solved.
In order to distinguish a second situation in which the network protocol of the network where the user is located is different from the network where the server is located, so as to facilitate subsequent processing, after step S102, it may be further determined whether the first DNS server has the first record corresponding to the network where the first domain name query request is located according to the domain name of the server to be accessed.
In an optional implementation manner, it is first determined, according to a domain name of the service to be accessed, whether the first record that is consistent with a network where the first domain name query request is located can be queried by the service to be accessed in the first DNS server, and when the first record that is consistent with the network where the first domain name query request is located is queried by the service to be accessed in the first DNS server, the first DNS server returns an IP address of the service to be accessed to the client, and the client accesses the service to be accessed. For example, a user under an IPv4 network wants to access a service end of IPv4, and the first DNS server returns an IPv4 address of the service end to be accessed to the user (client).
When the network protocol of the network where the second user is located is different from that of the server, after determining whether the first DNS server of the server to be accessed can query the first record that is consistent with the network where the first domain name query request is located according to the domain name of the server to be accessed, the first DNS server also queries the first record that is consistent with the network where the first domain name query request is located, but queries the first record that is inconsistent with the network where the first domain name query request is located, for example, querying whether the first DNS server has a server IPv6 address under the IPv6 network corresponding to the query request sent by the IPv6 user, and when the IPv6 address of the server is not queried (consistent), but the IPv4 address of the server is queried (inconsistent), the first DNS server returns the IP address of the protocol conversion system to the IPv6 client. In an optional implementation manner, when the to-be-accessed server does not query the first record consistent with the network where the first domain name query request is located in the first DNS server, it is determined whether the to-be-accessed server can query the first record inconsistent with the network where the first domain name query request is located in the first DNS server according to the domain name of the to-be-accessed server. After judging whether the server to be accessed can query the first record inconsistent with the network where the first domain name query request is located in the first DNS server according to the domain name of the server to be accessed, in an optional implementation manner, when the server to be accessed queries the first record inconsistent with the network where the first domain name query request is located in the first DNS server, the first DNS server returns the IP address of the protocol conversion system to the client.
The switching platform under the preset condition and the specific condition is set in the DNS through the embodiment, so that the problem of intercommunication of two incompatible networks of IPv4/IPv6 is solved, and the processing efficiency is improved.
In the first case, that is, when the server to be accessed queries the first DNS server for the first record corresponding to the network where the first domain name query request is located, in an optional implementation, the first DNS server returns the IP address of the server to be accessed, and the client accesses the server to be accessed.
In this embodiment, another communication method between different network protocols is provided, as shown in fig. 2, the method implemented by the client includes the following steps:
step S202, a client sends a first domain name query request to a first DNS server;
step S204, the client receives the IP address of the protocol conversion system returned by the first DNS server;
step S206, the client sends a first access request to the protocol conversion system according to the IP address of the protocol conversion system.
In the step S202, the first domain name query request sent by the client is a request for accessing the service end to be accessed, when the service end to be accessed is in the second case and the third case, the DNS server replaces the record (the IP address of the service end to be accessed) returned to the client with the fixed IP address of the protocol conversion system, that is, the IP address of the protocol conversion system is returned, and then the client sends the first access request with the domain name of the service end to be accessed to the protocol conversion platform, and at this time, the protocol conversion platform receives the request, converts the domain name, and then accesses the corresponding service end. For example, a user (client) is in an IPv6 network to access a service end of IPv4, at this time, the client sends a first domain name query request to a first DNS server, the first DNS server does not query an IPv6 address corresponding to the service end, at this time, the DNS server returns an IP address of a protocol conversion system to the client, the client receives the IP address of the protocol conversion system returned by the first DNS server, the client accesses the protocol conversion system according to the IP address of the protocol conversion system, and sends a domain name of the service end to be accessed to the protocol conversion system through an 80 port, and the service end is accessed through the protocol conversion system.
Through the steps, the technical problem that the client cannot randomly access all IPv4 addresses or corresponding service ends of IPv6 addresses in IPv4 and IPv6 networks is solved, the problem of IPv4 address waste is saved, the processing efficiency is improved, and the problem of IPv4 and IPv6 address nesting is solved.
In this embodiment, another communication method between different network protocols is provided, as shown in fig. 3, the protocol conversion system implements the method including the following steps:
step S302, a protocol conversion system receives a first access request sent by a client through a network port in the same network with the client, wherein the first access request comprises a domain name of a server to be accessed;
step S304, the protocol conversion system sends a second domain name query request to a second DNS server, wherein the second domain name query request comprises the domain name of the service end to be accessed;
step S306, the protocol conversion system receives a second record returned by the second DNS server, the second record comprises a domain name of the service end to be accessed and an IP address of the service end to be accessed, the IP address of the service end to be accessed corresponds to the domain name of the service end to be accessed, and the IP address of the service end to be accessed and the IP address of the client belong to different network protocols;
step S308, the protocol conversion system forwards the received client access request to the server through the network port in the same network as the server according to the second record, and returns the response content received from the server to the client through the network port in the same network as the client.
After the client, the DNS and the server are established in the protocol conversion system through the process, the protocol conversion system can record and store the log information in the conversion process in a log file, and then can send standard log information to the log system through a Syslog protocol according to requirements. The log information includes the mapping relation of source address, source port number, destination address, destination port number and other information belonging to two different network protocols.
In the above step, when the client access server is in the second or third condition, the first DNS server transfers the access request of the client to the protocol conversion system, the protocol conversion system receives the first access request with the server domain name, the protocol conversion system converts the domain name and then sends the second domain name query request to the DNS server again from the different side, and the DNS server returns the record with the IP address of the server to be accessed. For example, when a user is in an IPv6 network and needs to access a server of an IPv4 website, a corresponding AAAA record is searched in a first DNS server, and if the record is not found, the DNS server returns an IP address of a protocol conversion system as the AAAA record to the user, the user (client) accesses the protocol conversion system and sends a request with a domain name of the server to be accessed to the protocol conversion system, the request is converted by the protocol conversion system, the protocol conversion system accesses the DNS server again, the DNS server returns an a record to the protocol conversion system, and the protocol conversion system accesses the server according to the a record.
Through the steps, the technical problem that the client cannot randomly access the IPv4 address or the corresponding service end of the IPv6 address in the IPv4 and IPv6 networks is solved, the problem of IPv4 address waste is solved, the processing efficiency is improved, and the problem of IPv4 and IPv6 address nesting is solved.
In an alternative embodiment, the first record is an a record or an AAAA record; the second record is an a record or an AAAA record.
The following describes the above whole process with reference to fig. 4 by taking the client in the IPv4 network as an example:
1) a local DNS46 (a first DNS server) receives a DNS domain name query and analysis request of an IPv4 client, and searches A and AAAA records according to the DNS request;
2) if A is found, the query analysis result is directly returned to the IPv4 client no matter whether AAAA records exist or not.
3) The IPv4 client side directly sends an access request to a corresponding IPv4 server side in the IPv4 network according to the received A record;
4) when the AAAA record is found but the A record is not found, the local DNS46 returns the IPv4 address of the protocol conversion system (translation gateway) in the IPv4 network of the user as the A record to the IPv4 client according to the preset data;
5) other various query results, DNS46, return the results directly to the IPv4 client.
6) The IPv4 client sends an access request to the protocol conversion system (translation gateway) according to the received a record.
7) The protocol conversion system sends a DNS request at the IPv6 side according to the domain name in the received information;
8) the DNS6 receives a second domain name query request of the protocol conversion system, searches for the AAAA record according to the request, and then returns the searched AAAA record to the protocol conversion system;
9) the protocol conversion system sends an access request to a corresponding IPv6 server according to the received AAAA record;
10) after receiving the access request, the IPv6 server returns the result to the protocol conversion system;
11) after receiving the response, the protocol conversion system returns the response to the IPv4 client side on the IPv4 side;
12) if other links are nested in the returned result, the above process is repeated.
The embodiment can solve the technical problem that all clients in the IPv4 network randomly access all corresponding service terminals of IPv4 addresses or IPv6 addresses, does not need to pre-configure a complex DNS mapping table, saves IPv4 addresses and improves efficiency.
The following describes the above whole process with reference to fig. 5 by taking the client in the IPv6 network as an example:
1) a local DNS46 (a first DNS server) receives a DNS domain name query and analysis request of an IPv6 client, and searches A and AAAA records according to the DNS request;
2) if the AAAA is found, the query analysis result is directly returned to the IPv4 client no matter whether the A record exists or not.
3) The IPv6 client side directly sends an access request to a corresponding IPv6 server side in the IPv6 network according to the received AAAA record;
4) when the A record is found but the AAAA record is not found, the local DNS46 returns the IPv6 address of the protocol conversion system (translation gateway) in the IPv6 network of the user as the AAAA record to the IPv6 client according to the preset data;
5) other various query results, DNS46, return the results directly to the IPv6 client.
6) The IPv6 client sends an access request to the translation gateway based on the received AAAA record.
7) The translation gateway sends a DNS request at the IPv4 side according to the domain name in the received information;
8) the DNS4 receives a second domain name query request of the translation gateway for the DNA, searches an A record according to the request, and then returns the searched A record to the translation gateway;
9) the translation gateway sends an access request to a corresponding IPv4 server according to the received A record;
10) after the IPv4 server receives the access request, the result is returned to the translation gateway;
11) after receiving the response, the translation gateway returns the response to the IPv6 client side on the IPv6 side;
12) if other links are nested in the returned result, the above process is repeated.
The embodiment can solve the technical problem that all clients in the IPv6 network randomly access all corresponding servers with IPv4 addresses or IPv6 addresses, and does not need to pre-configure a complex DNS mapping table.
The embodiment of the invention also provides a communication system among different network protocols, and the system can realize the functions through the receiving unit and the processing unit. It should be noted that, a communication system between different network protocols according to the embodiment of the present invention may be used to execute a communication method between different network protocols provided by the embodiment of the present invention, and a communication method between different network protocols according to the embodiment of the present invention may also be executed by a communication system between different network protocols provided by the embodiment of the present invention.
Fig. 6 is a schematic diagram of a communication system between different network protocols according to an embodiment of the invention. As shown in fig. 6, a communication system between different network protocols includes:
a first receiving unit 62, configured to receive, by a first DNS server, a first domain name query request sent by a client, where a domain name of a service end to be accessed in the first domain name query request corresponds to an address of the service end to be accessed;
the first processing unit 64 is configured to process that, when the to-be-accessed server does not query a first record corresponding to the network where the first domain name query request is located in the first DNS server, the first DNS server returns an IP address of the protocol conversion system to the client, where the first record is an address of the to-be-accessed server.
The embodiment of the invention also provides another communication system among different network protocols, and the system can realize the functions through the sending unit and the receiving unit. It should be noted that, another communication system between different network protocols according to the embodiment of the present invention may be used to execute another communication method between different network protocols provided by the embodiment of the present invention, and another communication method between different network protocols according to the embodiment of the present invention may also be executed by another communication system between different network protocols provided by the embodiment of the present invention.
Fig. 7 is a schematic diagram of another communication system between different network protocols according to an embodiment of the invention. As shown in fig. 7, another communication system between different network protocols includes:
a first sending unit 72, configured to send a first domain name query request to a first DNS server by a client;
a second receiving unit 74, configured to receive, by the client, the IP address of the protocol conversion system returned by the first DNS server;
a second sending unit 76, configured to send the first access request to the protocol conversion system according to the IP address of the protocol conversion system.
The embodiment of the invention also provides another communication system among different network protocols, and the system can realize the functions through the receiving unit, the processing unit and the sending unit. It should be noted that, another communication system between different network protocols according to the embodiment of the present invention may be used to execute another communication method between different network protocols provided by the embodiment of the present invention, and another communication method between different network protocols according to the embodiment of the present invention may also be executed by another communication system between different network protocols provided by the embodiment of the present invention.
Fig. 8 is a schematic diagram of another communication system between different network protocols according to an embodiment of the invention. As shown in fig. 8, another communication system between different network protocols includes:
a third receiving unit 82, configured to receive, by the protocol conversion system, an access request sent by a client, where a domain name of a server to be accessed is in the access request;
a third sending unit 84, configured to send, by the protocol conversion system, a second domain name query request to a second DNS server, where the second domain name query request includes a domain name of the server to be accessed;
a fourth receiving unit 86, configured to receive, by the protocol conversion system, a second record returned by the second DNS server, where the second record includes a domain name of the service end to be accessed and an IP address of the service end to be accessed, the IP address of the service end to be accessed corresponds to the domain name of the service end to be accessed, and the IP address of the service end to be accessed and the IP address of the client belong to different network protocols;
and a second processing unit 88, configured to enable the protocol conversion system to access the server according to the second record.
In the present embodiment, a storage medium is provided, which includes a stored program, wherein, when the program runs, a device on which the storage medium is controlled to execute the method.
In this embodiment, a processor is provided, the processor comprising a program of the processor, wherein the program controls a device in which the processor is located to perform the above method when the program runs.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The above embodiment of the communication system between different network protocols corresponds to a communication method between different network protocols, so the beneficial effects are not described again.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit may be a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements should also be considered as the protection scope of the present invention.

Claims (10)

1. A method for communication between different network protocols, comprising:
a first domain name query request sent by a client is received by a first DNS server, wherein the domain name of a service end to be accessed is in the first domain name query request, and the domain name of the service end to be accessed corresponds to the address of the service end to be accessed;
when the server to be accessed is not queried in the first DNS to obtain a first record consistent with the network where the first domain name query request is located, the first DNS returns the IP address of a protocol conversion system to a client, wherein the first record is the address of the server to be accessed;
the protocol conversion system receives a first access request sent by the client through a network port in the same network with the client, wherein the first access request comprises the domain name of the server to be accessed;
the protocol conversion system sends a second domain name query request to a second DNS server, wherein the second domain name query request comprises the domain name of the server to be accessed;
the protocol conversion system receives a second record returned by the second DNS server, the second record comprises the domain name of the service end to be accessed and the IP address of the service end to be accessed, the IP address of the service end to be accessed corresponds to the domain name of the service end to be accessed, the IP address of the service end to be accessed and the IP address of the client belong to different network protocols, and when the client is in an IPv4 network, the service end to be accessed is in an IPv6 network; in the case that the client is in an IPv6 network, the service end to be accessed is in an IPv4 network;
the protocol conversion system forwards the received client access request to the service end to be accessed through the internet access in the same network as the service end to be accessed according to the second record, and returns the response content received from the service end to be accessed to the client through the internet access in the same network as the client;
after the protocol conversion system is communicated with a client, a DNS and a server, the protocol conversion system records log information in the conversion process and stores the log information in a log file, wherein the log information comprises the mapping relation of source address, source port number, destination address and destination port number information belonging to two different network protocols.
2. The method according to claim 1, wherein the first DNS server, after receiving the first domain name query request sent by the client, comprises:
and judging whether the server to be accessed can query a first record consistent with the network where the first domain name query request is located in the first DNS according to the domain name of the server to be accessed.
3. The method according to claim 2, wherein after determining whether the server to be accessed can query a first record in the first DNS server that is consistent with a network where the first domain name query request is located according to the domain name of the server to be accessed, the method comprises:
and when the server to be accessed inquires a first record consistent with the network where the first domain name inquiry request is located in the first DNS, the first DNS returns the IP address of the server to be accessed to the client, and the client accesses the server to be accessed.
4. The method according to claim 2, wherein judging, according to the domain name of the server to be accessed, whether the server to be accessed can query a first record consistent with a network where the first domain name query request is located in the first DNS server comprises:
and under the condition that the server to be accessed does not inquire the first record which is consistent with the network where the first domain name inquiry request is located in the first DNS, judging whether the server to be accessed can inquire the first record which is inconsistent with the network where the first domain name inquiry request is located in the first DNS according to the domain name of the server to be accessed.
5. The method according to claim 4, wherein after determining, according to the domain name of the server to be accessed, whether the server to be accessed can query the first record inconsistent with the network where the first domain name query request is located in the first DNS server comprises:
and when the server to be accessed inquires a first record which is inconsistent with the network where the first domain name inquiry request is located in the first DNS server, the first DNS server returns the IP address of the protocol conversion system to the client.
6. The method of claim 1, wherein the first DNS server, after returning the IP address of the protocol translation system to the client, comprises:
and the client sends an access request to the protocol conversion system according to the IP address of the protocol conversion system.
7. The method according to any one of claims 1 to 6, comprising: the first record is an A record or an AAAA record; the second record is an A record or an AAAA record.
8. A communication system between different network protocols, comprising:
a first receiving unit, configured to receive, by a first DNS server, a first domain name query request sent by a client, where a domain name of a server to be accessed in the first domain name query request corresponds to an address of the server to be accessed;
a first processing unit, configured to process that, when the to-be-accessed server does not have a first record corresponding to a network where the first domain name query request is located in the first DNS server, the first DNS server returns an IP address of a protocol conversion system to a client, where the first record is an address of the to-be-accessed server;
a third receiving unit, configured to receive, by the protocol conversion system, a first access request sent by the client through a network port in the same network as the client, where the first access request includes the domain name of the server to be accessed;
a third sending unit, configured to send, by the protocol conversion system, a second domain name query request to a second DNS server, where the second domain name query request includes a domain name of the server to be accessed;
a fourth receiving unit, configured to receive, by the protocol conversion system, a second record returned by the second DNS server, where the second record includes the domain name of the service end to be accessed and the IP address of the service end to be accessed, and the IP address of the service end to be accessed corresponds to the domain name of the service end to be accessed, and when the client is in an IPv4 network, the service end to be accessed is in an IPv6 network; in the case that the client is in an IPv6 network, the service end to be accessed is in an IPv4 network;
the second processing unit is used for forwarding the received client access request to the service end to be accessed through a network port of the same network as the service end to be accessed by the protocol conversion system according to the second record;
the protocol conversion system returns the response content received from the server to be accessed to the client through the internet access in the same network with the client; after the protocol conversion system is communicated with a client, a DNS and a server, the protocol conversion system records log information in the conversion process and stores the log information in a log file, wherein the log information comprises the mapping relation of source address, source port number, destination address and destination port number information belonging to two different network protocols.
9. A storage medium having a program stored thereon, the program, when executed by a processor, performing the method of any of claims 1 to 6.
10. A processor configured to execute a program stored in a storage medium, the program when executed performing the method of any of claims 1 to 6.
CN201910568348.3A 2019-06-27 2019-06-27 Method, system and storage medium for communication between different network protocols Active CN110225150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910568348.3A CN110225150B (en) 2019-06-27 2019-06-27 Method, system and storage medium for communication between different network protocols

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910568348.3A CN110225150B (en) 2019-06-27 2019-06-27 Method, system and storage medium for communication between different network protocols

Publications (2)

Publication Number Publication Date
CN110225150A CN110225150A (en) 2019-09-10
CN110225150B true CN110225150B (en) 2020-09-15

Family

ID=67815146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910568348.3A Active CN110225150B (en) 2019-06-27 2019-06-27 Method, system and storage medium for communication between different network protocols

Country Status (1)

Country Link
CN (1) CN110225150B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784562B (en) * 2019-10-25 2021-10-01 新华三信息安全技术有限公司 Message forwarding, domain name address query method, device, equipment and medium
CN111225038B (en) * 2019-12-23 2023-04-18 山石网科通信技术股份有限公司 Server access method and device
CN113746929B (en) * 2021-09-08 2022-11-29 北京天融信网络安全技术有限公司 Access request processing method, device, equipment, system and storage medium
CN114745353B (en) * 2022-04-11 2024-06-25 北京英迪瑞讯网络科技有限公司 Flow scheduling method for IPv4 terminal to access IPv4/IPv6 network
CN118827824B (en) * 2023-09-18 2026-01-06 中国移动通信有限公司研究院 IPv6 network access methods, devices, and storage media

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600000A (en) * 2009-06-26 2009-12-09 中国电信股份有限公司 The data communications method and the system of IPv6 user capture IPv4 website
CN102148773A (en) * 2010-02-08 2011-08-10 中国联合网络通信集团有限公司 Method and system for converting IPv6 (Internet Protocol Version 6) protocol and IPv4 (Internet Protocol Version 4) protocol
CN105721622A (en) * 2016-01-21 2016-06-29 重庆邮电大学 Method and device for achieving 6LoWPAN and IPv4 network interconnection
CN106161667A (en) * 2015-04-27 2016-11-23 中国移动通信集团公司 A kind of domain name analytic method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100453050B1 (en) * 2002-05-29 2004-10-15 삼성전자주식회사 Method for communicating data between IPv4 and IPv6 and apparatus thereof
CN105306607A (en) * 2014-05-28 2016-02-03 无锡韩光电器有限公司 Domain name inquiry method and system
CN105227687B (en) * 2014-06-20 2019-05-03 中国电信股份有限公司 The communication means and system of IPv4 user's access IPv6 resource
CN104506665B (en) * 2014-12-03 2017-12-12 中国联合网络通信集团有限公司 Distinguish method and system in a kind of IPv4/IPv6 addresses

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600000A (en) * 2009-06-26 2009-12-09 中国电信股份有限公司 The data communications method and the system of IPv6 user capture IPv4 website
CN102148773A (en) * 2010-02-08 2011-08-10 中国联合网络通信集团有限公司 Method and system for converting IPv6 (Internet Protocol Version 6) protocol and IPv4 (Internet Protocol Version 4) protocol
CN106161667A (en) * 2015-04-27 2016-11-23 中国移动通信集团公司 A kind of domain name analytic method and device
CN105721622A (en) * 2016-01-21 2016-06-29 重庆邮电大学 Method and device for achieving 6LoWPAN and IPv4 network interconnection

Also Published As

Publication number Publication date
CN110225150A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN110225150B (en) Method, system and storage medium for communication between different network protocols
US11356410B2 (en) Packet transmission method and device, and computer readable storage medium
US7787445B2 (en) Methods, systems, and computer program products for routing and processing ENUM queries
US6175867B1 (en) System and method for managing networks addressed via common network addresses
EP2641383B1 (en) DNS server arrangement and method
WO2021078281A1 (en) Message forwarding and domain name address query
US9882866B2 (en) Address allocating method, apparatus, and system
CN103401800B (en) A kind of balancing link load method and apparatus
US20120215747A1 (en) Data uploading method, data downloading method, and data system
US20030126291A1 (en) Method and message distributor for routing requests to a processing node
CN102215273B (en) Method and device for providing external network access for internal network user
CN103618801B (en) Method, equipment and the system of a kind of P2P resource-sharing
CN101171821A (en) System, network device, method and computer program product for active load balancing using nodes of a cluster as authoritative domain name servers
WO2013104172A1 (en) Method for realizing load balancing, dns server, and client
CN103581213A (en) Shared Hosts file application method, equipment and system
CN110769080B (en) Domain name resolution method, related product and computer readable storage medium
CN112235408A (en) Network system, reverse proxy method and reverse proxy server
CN105681249B (en) A network access method and network conversion device
US20080168181A1 (en) Initiating Communication Sessions from a First Computer Network to a Second Computer Network
CN109246024B (en) Method, device, terminal equipment and storage medium for load sharing in networking
CN106027354A (en) Backflow method and device for VPN (Virtual Private Network) client
CN104219257A (en) Web real-time communication method, system, server and client
US20040153502A1 (en) Enhanced DNS server
WO2016044128A1 (en) Discovery of network address allocations and translations in wireless communication systems
CN110677512B (en) Address resolution method and device

Legal Events

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