CN110839046B - Multi-protocol intercommunication method and system - Google Patents

Multi-protocol intercommunication method and system Download PDF

Info

Publication number
CN110839046B
CN110839046B CN201911224601.XA CN201911224601A CN110839046B CN 110839046 B CN110839046 B CN 110839046B CN 201911224601 A CN201911224601 A CN 201911224601A CN 110839046 B CN110839046 B CN 110839046B
Authority
CN
China
Prior art keywords
protocol
ipv4
ipv6
message
packet
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
CN201911224601.XA
Other languages
Chinese (zh)
Other versions
CN110839046A (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.)
Reyzar Technology Co ltd
Original Assignee
Reyzar 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 Reyzar Technology Co ltd filed Critical Reyzar Technology Co ltd
Priority to CN201911224601.XA priority Critical patent/CN110839046B/en
Publication of CN110839046A publication Critical patent/CN110839046A/en
Application granted granted Critical
Publication of CN110839046B publication Critical patent/CN110839046B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

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

Abstract

The invention provides a multi-protocol intercommunication method and a multi-protocol intercommunication system, which are applied to a processing device, wherein the processing device comprises a load balancing module, a reverse proxy module and a network address conversion module, the load balancing module receives request information sent by a client, the request information comprises a communication protocol type, a first IPv6 protocol message and a second IPv6 protocol message, and the first IPv6 protocol message and the second IPv6 protocol message are different types of communication protocol messages; when the communication protocol type is a first protocol, the load balancing module sends a first IPv6 protocol message to the reverse proxy module; when the communication protocol type is the second protocol, the load balancing module sends the second IPv6 protocol message to the network address conversion module, wherein the communication protocol type is the application layer protocol type.

Description

Multi-protocol intercommunication method and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for multi-protocol interworking.
Background
In the process of interacting the IPv6 Protocol packet and the IPv4 Protocol packet, different communication protocols of an application layer, such as HTTP (HyperText Transfer Protocol) and HTTPs (HyperText Transfer Protocol Secure) are all processed in the same manner, so that a processing result cannot meet a requirement, for example, the processing result includes an outer link that cannot process a website page, or a website material cannot be opened, and user experience is poor.
Disclosure of Invention
In view of this, the present invention aims to provide a method and a system for multi-protocol interworking, which process communication protocols of different application layers in different manners, and ensure accuracy of processing results, thereby improving user experience.
In a first aspect, an embodiment of the present invention provides a multi-protocol interworking method, which is applied to a processing device, where the processing device includes a load balancing module, a reverse proxy module, and a network address translation module, and the method includes:
the load balancing module receives request information sent by a client, wherein the request information comprises a communication protocol type and an IPv6 protocol message, the IPv6 protocol message comprises a first IPv6 protocol message and a second IPv6 protocol message, and the first IPv6 protocol message and the second IPv6 protocol message are different types of communication protocol messages;
when the communication protocol type is a first protocol, the load balancing module sends the first IPv6 protocol message to the reverse proxy module;
when the communication protocol type is a second protocol, the load balancing module sends the second IPv6 protocol packet to the network address translation module;
the reverse proxy module converts the first IPv6 protocol message into a first IPv4 protocol message and sends the first IPv4 protocol message to a server, so that the server responds to a first IPv4 protocol response message according to the first IPv4 protocol message;
the reverse proxy module receives the first IPv4 protocol response message sent by the server, converts the first IPv4 protocol response message into a first IPv6 protocol response message, and sends the first IPv6 protocol response message to the client;
the network address conversion module converts the second IPv6 protocol message into a second IPv4 protocol message and sends the second IPv4 protocol message to a server, so that the server responds to a second IPv4 protocol response message according to the second IPv4 protocol message;
the network address conversion module receives the second IPv4 protocol response packet sent by the server, converts the second IPv4 protocol response packet into a second IPv6 protocol response packet, and sends the second IPv6 protocol response packet to the client.
In a second aspect, an embodiment of the present invention provides a multi-protocol interworking system, including a processing device, a client and a server, where the processing device includes a load balancing module, a reverse proxy module and a network address translation module, and the client and the server are respectively connected to the processing device;
the client is configured to send request information to the load balancing module, where the request information includes a communication protocol type and an IPv6 protocol packet, the IPv6 protocol packet includes a first IPv6 protocol packet and a second IPv6 protocol packet, and the first IPv6 protocol packet and the second IPv6 protocol packet are different types of communication protocol packets;
the load balancing module is configured to send the first IPv6 protocol packet to the reverse proxy module when the communication protocol type is a first protocol; under the condition that the communication protocol type is a second protocol, sending the second IPv6 protocol message to the network address translation module;
the reverse proxy module is configured to convert the first IPv6 protocol packet into a first IPv4 protocol packet, and send the first IPv4 protocol packet to a server; receiving the first IPv4 protocol response message sent by the server, converting the first IPv4 protocol response message into a first IPv6 protocol response message, and sending the first IPv6 protocol response message to the client;
the network address conversion module is configured to convert the second IPv6 protocol packet into a second IPv4 protocol packet, send the second IPv4 protocol packet to a server, receive the second IPv4 protocol response packet sent by the server, convert the second IPv4 protocol response packet into a second IPv6 protocol response packet, and send the second IPv6 protocol response packet to the client;
the server is configured to respond to a first IPv4 protocol response packet according to the first IPv4 protocol packet, or respond to a second IPv4 protocol response packet according to the first IPv4 protocol packet.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the steps of the method when executing the computer program.
In a fourth aspect, embodiments of the invention provide a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method as described above.
The embodiment of the invention provides a multi-protocol intercommunication method and a system, which are applied to a processing device, wherein the processing device comprises a load balancing module, a reverse proxy module and a network address conversion module, and comprises the following steps: the load balancing module receives request information sent by a client, wherein the request information comprises a communication protocol type and an IPv6 protocol message, the IPv6 protocol message comprises a first IPv6 protocol message and a second IPv6 protocol message, and the first IPv6 protocol message and the second IPv6 protocol message are different types of communication protocol messages; when the communication protocol type is a first protocol, the load balancing module sends a first IPv6 protocol message to the reverse proxy module; when the communication protocol type is a second protocol, the load balancing module sends a second IPv6 protocol message to the network address translation module; the reverse proxy module converts the first IPv6 protocol message into a first IPv4 protocol message and sends the first IPv4 protocol message to the server, so that the server responds to the first IPv4 protocol response message according to the first IPv4 protocol message; the reverse proxy module receives a first IPv4 protocol response message sent by the server, converts the first IPv4 protocol response message into a first IPv6 protocol response message, and sends the first IPv6 protocol response message to the client; the network address conversion module converts the second IPv6 protocol message into a second IPv4 protocol message and sends the second IPv4 protocol message to the server, so that the server responds to a second IPv4 protocol response message according to the second IPv4 protocol message; the network address conversion module receives a second IPv4 protocol response message sent by the server, converts the second IPv4 protocol response message into a second IPv6 protocol response message, and sends the second IPv6 protocol response message to the client, so that different modes can be adopted for processing aiming at communication protocols of different application layers, the accuracy of a processing result is ensured, and the user experience is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a multi-protocol interworking method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a multi-protocol interworking system according to a second embodiment of the present invention;
FIG. 3 is a schematic view of a processing apparatus according to a second embodiment of the present invention;
fig. 4 is a schematic processing procedure diagram of a load balancing module according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of a processing procedure of a network address translation module according to a second embodiment of the present invention;
fig. 6 is a schematic diagram of a reverse proxy module processing procedure according to a second embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. 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.
For the understanding of the present embodiment, the following detailed description will be given of the embodiment of the present invention.
The first embodiment is as follows:
fig. 1 is a flowchart of a multi-protocol interworking method according to an embodiment of the present invention.
Referring to fig. 1, the method is applied to a processing device, the processing device includes a load balancing module, a reverse proxy module and a network address translation module, and the method includes the following steps:
step S101, a load balancing module receives request information sent by a client, wherein the request information comprises a communication protocol type and an IPv6 protocol message, the IPv6 protocol message comprises a first IPv6 protocol message and a second IPv6 protocol message, and the first IPv6 (Internet protocol version 6) protocol message and the second IPv6 protocol message are different types of communication protocol messages. Wherein, the communication protocol type is an application layer protocol type.
Step S102, when the communication protocol type is a first protocol, the load balancing module sends a first IPv6 protocol message to the reverse proxy module;
step S103, when the communication protocol type is a second protocol, the load balancing module sends a second IPv6 protocol message to the network address translation module;
step S104, the reverse proxy module converts the first IPv6 protocol message into a first IPv4 (Internet protocol version 4) protocol message and sends the first IPv4 protocol message to the server, so that the server responds to the first IPv4 protocol response message according to the first IPv4 protocol message;
step S105, the reverse proxy module receives a first IPv4 protocol response message sent by the server, converts the first IPv4 protocol response message into a first IPv6 protocol response message, and sends the first IPv6 protocol response message to the client;
step S106, the network address conversion module converts the second IPv6 protocol message into a second IPv4 protocol message and sends the second IPv4 protocol message to the server, so that the server responds to a second IPv4 protocol response message according to the second IPv4 protocol message;
step S107, the network address translation module receives a second IPv4 protocol response message sent by the server, translates the second IPv4 protocol response message into a second IPv6 protocol response message, and sends the second IPv6 protocol response message to the client.
In this embodiment, the load balancing module in the processing apparatus identifies which communication protocol type of the application layer is from the request information, and for a first protocol (for example, HTTP), the load balancing module sends a first IPv6 protocol packet to the reverse proxy module; for a second protocol (e.g., HTTPS), the load balancing module sends a second IPv6 protocol message to the network address translation module. Aiming at the problem that in the prior art, communication protocols of different application layers are processed in the same mode, so that the processing result cannot meet the requirement. According to the method and the device, different modules are selected for processing according to the communication protocol type, so that the accuracy of a processing result is guaranteed, and the user experience is improved.
Further, the method comprises the following steps:
step S201, the network address conversion module converts the second IPv6 protocol message into a second IPv4 protocol message, replaces the destination address of the second IPv4 protocol message with the source address of the domain name, takes the IPv4 address of the device as the source address, randomly selects a port as a source port, and establishes a session mapping relation table;
the session mapping table is a mapping relationship between a source address of an IPv6 protocol and a source address of an IPv4 protocol, a mapping relationship between a source port of an IPv6 protocol and a source port of an IPv4 protocol, a mapping relationship between a destination address of an IPv6 protocol and a destination address of an IPv4 protocol, and a mapping relationship between a destination port of an IPv6 protocol and a destination port of an IPv4 protocol.
Here, when selecting a source port, one port may be randomly selected from 1024-.
Further, step S107 includes the steps of:
step S301, according to the source address of the IPv4 protocol, the source port of the IPv4 protocol, the destination address of the IPv4 protocol and the destination port of the IPv4 protocol in the second IPv4 protocol response message, searching the corresponding source address of the IPv6 protocol, the source port of the IPv6 protocol, the destination address of the IPv6 protocol and the destination port of the IPv6 protocol from the session mapping relation table;
step S302, replace the source address of the IPv4 protocol with the destination address of the IPv6 protocol, replace the source port of the IPv4 protocol with the destination port of the IPv6 protocol, replace the destination address of the IPv4 protocol with the source address of the IPv6 protocol, replace the destination port of the IPv4 protocol with the source port of the IPv6 protocol, thereby obtaining a second IPv6 protocol response packet.
Further, the method further comprises:
receiving domain name resolution request information sent by a client, wherein the domain name resolution request information comprises domain name information;
and analyzing the domain name information to obtain the site address information of the IPv6 protocol.
Specifically, the processing device further includes a domain name resolution module, where the domain name resolution module receives domain name resolution request information sent by the client, and according to a VIP (Virtual IP): generally used as an IP address for providing an external service) and a domain name, and the site address information of the IPv6 protocol corresponding to the domain name is resolved. Among them, the VIP is used as an IP (internet protocol) address providing an external service.
Further, step S102 includes:
the load balancing module sends the first IPv6 protocol message to the reverse proxy module through a load balancing algorithm;
the load balancing algorithm comprises at least one of a hash algorithm, a polling algorithm and a weight selection algorithm.
In addition, the processing device also comprises a heartbeat module, the heartbeat module is used for monitoring the heartbeat of the reverse proxy module and the domain name resolution module, and the reverse proxy module and the domain name resolution module send the multicast heartbeat message to the load balancing module at regular time.
The multicast heartbeat message comprises an MAC address of the node machine, and the load balancing module forwards request information according to a load balancing algorithm and the MAC address, so that load sharing and high availability are realized.
Example two:
fig. 2 is a schematic diagram of a multi-protocol interworking system according to a second embodiment of the present invention.
Referring to fig. 2, the system includes: the system comprises a processing device, a client and a server, wherein the processing device comprises a load balancing module, a reverse proxy module and a network address conversion module; the client is connected with the processing device, and the processing device is connected with the server, namely the processing device is respectively connected with the client and the server;
the client is used for sending request information to the load balancing module, the request information comprises a communication protocol type and an IPv6 protocol message, the IPv6 protocol message comprises a first IPv6 protocol message and a second IPv6 protocol message, and the first IPv6 protocol message and the second IPv6 protocol message are different types of communication protocol messages;
the load balancing module is used for sending the first IPv6 protocol message to the reverse proxy module under the condition that the communication protocol type is the first protocol; under the condition that the communication protocol type is a second protocol, sending a second IPv6 protocol message to a network address translation module;
the reverse proxy module is used for converting the first IPv6 protocol message into a first IPv4 protocol message and sending the first IPv4 protocol message to the server; receiving a first IPv4 protocol response message sent by the server, converting the first IPv4 protocol response message into a first IPv6 protocol response message, and sending the first IPv6 protocol response message to the client;
the network address conversion module is used for converting the second IPv6 protocol message into a second IPv4 protocol message, sending the second IPv4 protocol message to the server, receiving a second IPv4 protocol response message sent by the server, converting the second IPv4 protocol response message into a second IPv6 protocol response message, and sending the second IPv6 protocol response message to the client;
and the server is used for responding to the first IPv4 protocol response message according to the first IPv4 protocol message or responding to the second IPv4 protocol response message according to the first IPv4 protocol message.
Further, the network address translation module is specifically configured to:
converting the second IPv6 protocol message into a second IPv4 protocol message, replacing the destination address of the second IPv4 protocol message with the source address of the domain name, taking the IPv4 address of the equipment as the source address, randomly selecting a port as a source port, and establishing a session mapping relation table;
the session mapping table is a mapping relationship between a source address of an IPv6 protocol and a source address of an IPv4 protocol, a mapping relationship between a source port of an IPv6 protocol and a source port of an IPv4 protocol, a mapping relationship between a destination address of an IPv6 protocol and a destination address of an IPv4 protocol, and a mapping relationship between a destination port of an IPv6 protocol and a destination port of an IPv4 protocol.
Further, the network address translation module is specifically configured to:
according to the source address of the IPv4 protocol, the source port of the IPv4 protocol, the destination address of the IPv4 protocol and the destination port of the IPv4 protocol in the second IPv4 protocol response message, searching the corresponding source address of the IPv6 protocol, the source port of the IPv6 protocol, the destination address of the IPv6 protocol and the destination port of the IPv6 protocol from the session mapping relation table;
the source address of the IPv4 protocol is replaced by the destination address of the IPv6 protocol, the source port of the IPv4 protocol is replaced by the destination port of the IPv6 protocol, the destination address of the IPv4 protocol is replaced by the source address of the IPv6 protocol, and the destination port of the IPv4 protocol is replaced by the source port of the IPv6 protocol, so that the second IPv6 protocol response message is obtained.
Fig. 3 is a schematic view of a processing apparatus according to a second embodiment of the present invention.
Referring to fig. 3, the processing apparatus includes a load balancing module, a reverse proxy module, and a network address translation module.
The load balancing module is used for receiving request information sent by a client, wherein the request information comprises a communication protocol type and an IPv6 protocol message, the IPv6 protocol message comprises a first IPv6 protocol message and a second IPv6 protocol message, the first IPv6 protocol message and the second IPv6 protocol message are different types of communication protocol messages, the load balancing module identifies the communication protocol type of an application layer, and then forwards the first IPv6 protocol message and the second IPv6 protocol message according to the communication protocol type.
Fig. 4 is a schematic view of a processing procedure of a load balancing module according to a second embodiment of the present invention.
Referring to fig. 4, the load balancing module is configured to receive request information sent by a client, where the request information includes a communication protocol type and an IPv6 protocol packet, the IPv6 protocol packet includes a first IPv6 protocol packet and a second IPv6 protocol packet, the first IPv6 protocol packet and the second IPv6 protocol packet are different types of communication protocol packets, and the load balancing module identifies the communication protocol type of an application layer and then forwards the first IPv6 protocol packet and the second IPv6 protocol packet according to the communication protocol type. If the communication protocol type is the first protocol, the load balancing module sends the first IPv6 protocol message to the reverse proxy module through a load balancing algorithm; and if the communication protocol type is the second protocol, the load balancing module sends a second IPv6 protocol message to the network address translation module through a load balancing algorithm. The first Protocol is HTTP, and the second Protocol includes but is not limited to HTTPs, PPTP (Point to Point Tunneling Protocol), and RTSP (Real Time Tunneling Protocol, which is an application layer Protocol in a TCP/IP Protocol system).
Fig. 5 is a schematic diagram of a processing procedure of a network address translation module according to a second embodiment of the present invention.
Referring to fig. 5, when the communication protocol type is the second protocol, the load balancing module sends the second IPv6 protocol packet to the network address translation module, where HTTPS is taken as an example:
the network address conversion module converts the second IPv6 protocol message into a second IPv4 protocol message, establishes a session mapping relation table, and sends the second IPv4 protocol message to the server, so that the server responds to a second IPv4 protocol response message according to the second IPv4 protocol message;
the network address translation module receives a second IPv4 protocol response packet sent by the server, translates the second IPv4 protocol response packet into a second IPv6 protocol response packet, that is, according to the source address of the IPv4 protocol, the source port of the IPv4 protocol, the destination address of the IPv4 protocol, and the destination port of the IPv4 protocol in the second IPv4 protocol response packet, searches for the corresponding source address of the IPv6 protocol, the source port of the IPv6 protocol, the destination address of the IPv6 protocol, and the destination port of the IPv6 protocol from the session mapping table; the source address of the IPv4 protocol is replaced by the destination address of the IPv6 protocol, the source port of the IPv4 protocol is replaced by the destination port of the IPv6 protocol, the destination address of the IPv4 protocol is replaced by the source address of the IPv6 protocol, the destination port of the IPv4 protocol is replaced by the source port of the IPv6 protocol, and a second IPv6 protocol response message is sent to the client.
Fig. 6 is a schematic diagram of a reverse proxy module processing procedure according to a second embodiment of the present invention.
Referring to fig. 6, the load balancing module modifies a destination MAC (Media Access Control Address) in the request message to be an MAC of the reverse proxy module, and the reverse proxy module converts the first IPv6 protocol packet into a first IPv4 protocol packet and sends the first IPv4 protocol packet to the server, so that the server responds to the first IPv4 protocol response packet according to the first IPv4 protocol packet; the reverse proxy module receives a first IPv4 protocol response message sent by the server, converts the first IPv4 protocol response message into a first IPv6 protocol response message, and sends the first IPv6 protocol response message to the client.
And after receiving the first IPv4 protocol response message sent by the server, the reverse proxy module carries out identification external link processing according to the first IPv4 protocol response message, namely, the external website on the website is replaced by the internal website link of the website.
The embodiment of the invention provides a multi-protocol intercommunication method and a system, which are applied to a processing device, wherein the processing device comprises a load balancing module, a reverse proxy module and a network address conversion module, and comprises the following steps: the load balancing module receives request information sent by a client, wherein the request information comprises a communication protocol type and an IPv6 protocol message, the IPv6 protocol message comprises a first IPv6 protocol message and a second IPv6 protocol message, and the first IPv6 protocol message and the second IPv6 protocol message are different types of communication protocol messages; when the communication protocol type is a first protocol, the load balancing module sends a first IPv6 protocol message to the reverse proxy module; when the communication protocol type is a second protocol, the load balancing module sends a second IPv6 protocol message to the network address translation module; the reverse proxy module converts the first IPv6 protocol message into a first IPv4 protocol message and sends the first IPv4 protocol message to the server, so that the server responds to the first IPv4 protocol response message according to the first IPv4 protocol message; the reverse proxy module receives a first IPv4 protocol response message sent by the server, converts the first IPv4 protocol response message into a first IPv6 protocol response message, and sends the first IPv6 protocol response message to the client; the network address conversion module converts the second IPv6 protocol message into a second IPv4 protocol message and sends the second IPv4 protocol message to the server, so that the server responds to a second IPv4 protocol response message according to the second IPv4 protocol message; the network address conversion module receives a second IPv4 protocol response message sent by the server, converts the second IPv4 protocol response message into a second IPv6 protocol response message, and sends the second IPv6 protocol response message to the client, so that different modes can be adopted for processing aiming at communication protocols of different application layers, the accuracy of a processing result is ensured, and the user experience is improved.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps of the multi-protocol interworking method provided in the foregoing embodiments are implemented.
Embodiments of the present invention further provide a computer-readable medium having non-volatile program codes executable by a processor, where the computer-readable medium stores a computer program, and the computer program is executed by the processor to perform the steps of the multi-protocol interworking method according to the above embodiments.
The computer program product provided in the embodiment of the present invention includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The functions, if implemented in the form of software functional units 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 removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention.
Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. A multi-protocol interworking method is applied to a processing device, wherein the processing device comprises a load balancing module, a reverse proxy module and a network address translation module, and the method comprises the following steps:
the load balancing module receives request information sent by a client, wherein the request information comprises a communication protocol type and an IPv6 protocol message, the IPv6 protocol message comprises a first IPv6 protocol message and a second IPv6 protocol message, and the first IPv6 protocol message and the second IPv6 protocol message are different types of communication protocol messages;
when the communication protocol type is a first protocol, the load balancing module sends the first IPv6 protocol message to the reverse proxy module;
when the communication protocol type is a second protocol, the load balancing module sends the second IPv6 protocol packet to the network address translation module;
the reverse proxy module converts the first IPv6 protocol message into a first IPv4 protocol message and sends the first IPv4 protocol message to a server, so that the server responds to a first IPv4 protocol response message according to the first IPv4 protocol message;
the reverse proxy module receives the first IPv4 protocol response message sent by the server, converts the first IPv4 protocol response message into a first IPv6 protocol response message, and sends the first IPv6 protocol response message to the client;
after receiving the first IPv4 protocol response message sent by the server, the reverse proxy module performs identification outer link processing according to the first IPv4 protocol response message;
the network address conversion module converts the second IPv6 protocol message into a second IPv4 protocol message, establishes a session mapping relation table, and sends the second IPv4 protocol message to a server, so that the server responds to a second IPv4 protocol response message according to the second IPv4 protocol message;
the network address translation module receives the second IPv4 protocol response packet sent by the server, translates the second IPv4 protocol response packet into a second IPv6 protocol response packet, that is, according to the source address of the IPv4 protocol, the source port of the IPv4 protocol, the destination address of the IPv4 protocol, and the destination port of the IPv4 protocol in the second IPv4 protocol response packet, searches for the corresponding source address of the IPv6 protocol, the source port of the IPv6 protocol, the destination address of the IPv6 protocol, and the destination port of the IPv6 protocol from a session mapping relationship table, replaces the source address of the IPv4 protocol with the destination address of the IPv6 protocol, replaces the source port of the IPv4 protocol with the destination port of the IPv6 protocol, and replaces the destination address of the IPv4 protocol with the source address of the IPv6 protocol, and replaces the destination port of the IPv4 protocol with the destination port of the IPv6 protocol, and sending the second IPv6 protocol response message to the client.
2. The multi-protocol interworking method of claim 1, wherein the method further comprises:
the network address conversion module converts the second IPv6 protocol packet into the second IPv4 protocol packet, replaces the destination address of the second IPv4 protocol packet with the source address of the domain name, uses the IPv4 address of the device as the source address, randomly selects one port as a source port, and establishes a session mapping table;
the session mapping table is a mapping relationship between a source address of the IPv6 protocol and a source address of the IPv4 protocol, a mapping relationship between a source port of the IPv6 protocol and a source port of the IPv4 protocol, a mapping relationship between a destination address of the IPv6 protocol and a destination address of the IPv4 protocol, and a mapping relationship between a destination port of the IPv6 protocol and a destination port of the IPv4 protocol.
3. The multi-protocol interworking method of claim 1, wherein the method further comprises:
receiving domain name resolution request information sent by the client, wherein the domain name resolution request information comprises domain name information;
and analyzing the domain name information to obtain the site address information of the IPv6 protocol.
4. The method according to claim 1, wherein the sending, by the load balancing module, the first IPv6 protocol packet to the reverse proxy module comprises:
the load balancing module sends the first IPv6 protocol message to the reverse proxy module through a load balancing algorithm;
wherein the load balancing algorithm comprises at least one of a hash algorithm, a polling algorithm and a weight selection algorithm.
5. The multi-protocol intercommunication system is characterized by comprising a processing device, a client and a server, wherein the processing device comprises a load balancing module, a reverse proxy module and a network address conversion module, and the client and the server are respectively connected with the processing device;
the client is configured to send request information to the load balancing module, where the request information includes a communication protocol type and an IPv6 protocol packet, the IPv6 protocol packet includes a first IPv6 protocol packet and a second IPv6 protocol packet, and the first IPv6 protocol packet and the second IPv6 protocol packet are different types of communication protocol packets;
the load balancing module is configured to send the first IPv6 protocol packet to the reverse proxy module when the communication protocol type is a first protocol; under the condition that the communication protocol type is a second protocol, sending the second IPv6 protocol message to the network address translation module;
the reverse proxy module is configured to convert the first IPv6 protocol packet into a first IPv4 protocol packet, and send the first IPv4 protocol packet to a server; receiving a first IPv4 protocol response message sent by the server, converting the first IPv4 protocol response message into a first IPv6 protocol response message, and sending the first IPv6 protocol response message to the client; after receiving the first IPv4 protocol response message sent by the server, carrying out identification outer link processing according to the first IPv4 protocol response message;
the network address conversion module is configured to convert the second IPv6 protocol packet into a second IPv4 protocol packet, establish a session mapping table, send the second IPv4 protocol packet to the server, receive a second IPv4 protocol response packet sent by the server, convert the second IPv4 protocol response packet into a second IPv6 protocol response packet, that is, according to the source address of the IPv4 protocol, the source port of the IPv4 protocol, the destination address of the IPv4 protocol, and the destination port of the IPv4 protocol in the second IPv4 protocol response packet, search the corresponding source address of the IPv6 protocol, the source port of the IPv6 protocol, the destination address of the IPv6 protocol, and the destination port of the IPv6 protocol from the session mapping table, replace the source address of the IPv4 protocol with the destination address of the IPv6 protocol, replace the source port of the IPv4 protocol with the destination port of the IPv6 protocol, and replace the destination address of the IPv4 protocol with the source address of the IPv6 protocol, replacing the destination port of the IPv4 protocol with the source port of the IPv6 protocol, and sending the second IPv6 protocol response message to the client;
the server is configured to respond to a first IPv4 protocol response packet according to the first IPv4 protocol packet, or respond to a second IPv4 protocol response packet according to the first IPv4 protocol packet.
6. The multi-protocol interworking system of claim 5, wherein the network address translation module is specifically configured to:
converting the second IPv6 protocol packet into the second IPv4 protocol packet, replacing the destination address of the second IPv4 protocol packet with the source address of the domain name, using the IPv4 address of the device as the source address, randomly selecting a port as a source port, and establishing a session mapping table;
the session mapping table is a mapping relationship between a source address of the IPv6 protocol and a source address of the IPv4 protocol, a mapping relationship between a source port of the IPv6 protocol and a source port of the IPv4 protocol, a mapping relationship between a destination address of the IPv6 protocol and a destination address of the IPv4 protocol, and a mapping relationship between a destination port of the IPv6 protocol and a destination port of the IPv4 protocol.
7. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any of claims 1 to 4 when executing the computer program.
8. A computer-readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1 to 4.
CN201911224601.XA 2019-12-03 2019-12-03 Multi-protocol intercommunication method and system Active CN110839046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911224601.XA CN110839046B (en) 2019-12-03 2019-12-03 Multi-protocol intercommunication method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911224601.XA CN110839046B (en) 2019-12-03 2019-12-03 Multi-protocol intercommunication method and system

Publications (2)

Publication Number Publication Date
CN110839046A CN110839046A (en) 2020-02-25
CN110839046B true CN110839046B (en) 2022-04-22

Family

ID=69578033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911224601.XA Active CN110839046B (en) 2019-12-03 2019-12-03 Multi-protocol intercommunication method and system

Country Status (1)

Country Link
CN (1) CN110839046B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385292B (en) * 2020-03-04 2022-08-16 西安旌旗电子股份有限公司 Descriptor-based protocol message and data interaction method and system
CN112929417B (en) * 2021-01-22 2022-05-27 新华三信息安全技术有限公司 Message processing method and device
CN113194102B (en) * 2021-05-19 2023-11-21 苏州瑞立思科技有限公司 ICMP (information and communication protocol) back message transmission method based on port
CN114285856B (en) * 2021-12-10 2024-04-23 杭州迪普科技股份有限公司 IPV4 external link access method and device
CN116471343B (en) * 2023-06-19 2023-08-15 成都星联芯通科技有限公司 Equipment board card management method, load balancing method, device, server and medium
CN117376358A (en) * 2023-10-12 2024-01-09 曙光云计算集团有限公司 Access request processing method and device and computer equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009941A (en) * 2007-01-15 2007-08-01 中山大学 A method for realizing the communication between the mobile IPv4 node and IPv6 communication node
WO2008069504A1 (en) * 2006-12-04 2008-06-12 Electronics And Telecommunications Research Institute Method for configuring control tunnel and direct tunnel in ipv4 network-based ipv6 service providing system
CN102282821A (en) * 2009-03-03 2011-12-14 华为技术有限公司 Method, network device and system of IPv4-v6 coexistence
CN102447617A (en) * 2010-10-09 2012-05-09 华为技术有限公司 Method, terminals and gateway for transmitting IPv6 (Internet Protocol version 6) message in IPv4 network
CN105450515A (en) * 2015-11-12 2016-03-30 清华大学 General IPv4/IPv6 data translation gateway for application layer protocols and method
CN107682472A (en) * 2017-10-24 2018-02-09 睿哲科技股份有限公司 IPv4 and IPv6 interoperability methods, apparatus and system based on RTSP reverse proxys
CN108881425A (en) * 2018-06-07 2018-11-23 中国科学技术大学 A kind of data package processing method and system
CN109451097A (en) * 2019-01-02 2019-03-08 北京宏图佳都通信设备有限公司 IPv4/IPv6 address conversion system
CN109586962A (en) * 2018-11-29 2019-04-05 睿哲科技股份有限公司 IPv4 is upgraded to processing unit, method and the electronic equipment of the HTTPS exterior chain problem of IPv6
CN110392130A (en) * 2019-08-23 2019-10-29 北京天融信网络安全技术有限公司 Network-based information processing method, electronic equipment and network system
CN110430275A (en) * 2019-08-09 2019-11-08 中国工商银行股份有限公司 Data processing method, system, calculates equipment and medium at device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8509244B2 (en) * 2009-08-14 2013-08-13 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for providing host node awareness for multiple NAT64 environments

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008069504A1 (en) * 2006-12-04 2008-06-12 Electronics And Telecommunications Research Institute Method for configuring control tunnel and direct tunnel in ipv4 network-based ipv6 service providing system
CN101009941A (en) * 2007-01-15 2007-08-01 中山大学 A method for realizing the communication between the mobile IPv4 node and IPv6 communication node
CN102282821A (en) * 2009-03-03 2011-12-14 华为技术有限公司 Method, network device and system of IPv4-v6 coexistence
CN102447617A (en) * 2010-10-09 2012-05-09 华为技术有限公司 Method, terminals and gateway for transmitting IPv6 (Internet Protocol version 6) message in IPv4 network
CN105450515A (en) * 2015-11-12 2016-03-30 清华大学 General IPv4/IPv6 data translation gateway for application layer protocols and method
CN107682472A (en) * 2017-10-24 2018-02-09 睿哲科技股份有限公司 IPv4 and IPv6 interoperability methods, apparatus and system based on RTSP reverse proxys
CN108881425A (en) * 2018-06-07 2018-11-23 中国科学技术大学 A kind of data package processing method and system
CN109586962A (en) * 2018-11-29 2019-04-05 睿哲科技股份有限公司 IPv4 is upgraded to processing unit, method and the electronic equipment of the HTTPS exterior chain problem of IPv6
CN109451097A (en) * 2019-01-02 2019-03-08 北京宏图佳都通信设备有限公司 IPv4/IPv6 address conversion system
CN110430275A (en) * 2019-08-09 2019-11-08 中国工商银行股份有限公司 Data processing method, system, calculates equipment and medium at device
CN110392130A (en) * 2019-08-23 2019-10-29 北京天融信网络安全技术有限公司 Network-based information processing method, electronic equipment and network system

Also Published As

Publication number Publication date
CN110839046A (en) 2020-02-25

Similar Documents

Publication Publication Date Title
CN110839046B (en) Multi-protocol intercommunication method and system
US8214537B2 (en) Domain name system using dynamic DNS and global address management method for dynamic DNS server
US20210243170A1 (en) Methods for processing encrypted domain name server, dns, queries received from user equipment in a telecommunication network
US10355961B2 (en) Network traffic capture analysis
JP4494891B2 (en) Virtual connection with local connection conversion
WO2017030943A1 (en) Enhanced coap group communications with selective responses
CN114301676B (en) Nondestructive asset detection method and device for power monitoring system and storage medium
EP1499088B1 (en) Virtual connectivity with subscribe-notify service
US11683275B2 (en) Device and method for interconnecting two subnetworks
TW201114221A (en) Method and system of smart detection and recovery
US20110235641A1 (en) Communication apparatus, method of controlling the communication apparatus,and program
CN107835198B (en) Method and device for PPTP traversal in IPv4-IPv6 intercommunication scene and electronic equipment
JP2015095789A (en) Communication terminal, communication method and communication program
JP4905376B2 (en) Communication system and communication method corresponding to a plurality of network protocols
CN114745456A (en) Message processing method and device and network address translation equipment
CN111405639B (en) Wireless network connection method and device, readable storage medium and computer equipment
CN110798542A (en) Method and system for acquiring IP address
US20170019845A1 (en) Communication terminal, communication method, and program-containing storage medium
JP2017123580A (en) Communication system and communication device
TWI608749B (en) Method for controlling a client device to access a network device, and associated control apparatus
TWI816176B (en) Method and apparatus for performing internet reachability management with aid of indicator
CN112543191B (en) Load balancing method and device
JP6403225B2 (en) IP address resolution method for relay device, relay device, and program
CN115734227A (en) Method for realizing decentralized APP server IP acquisition technology
JP2016208162A (en) Determination method and information processing 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