CN112866439A - Data processing method, device and system - Google Patents

Data processing method, device and system Download PDF

Info

Publication number
CN112866439A
CN112866439A CN202110361583.0A CN202110361583A CN112866439A CN 112866439 A CN112866439 A CN 112866439A CN 202110361583 A CN202110361583 A CN 202110361583A CN 112866439 A CN112866439 A CN 112866439A
Authority
CN
China
Prior art keywords
ipv6
ipv4
address
port
virtual
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.)
Pending
Application number
CN202110361583.0A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110361583.0A priority Critical patent/CN112866439A/en
Publication of CN112866439A publication Critical patent/CN112866439A/en
Pending legal-status Critical Current

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

Landscapes

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

Abstract

The invention discloses a data processing method, a device and a system, which relate to the field of information security, wherein the method comprises the following steps: receiving IPv6 request data from an IPv6 client through a virtual IPv6 port; converting the IPv6 request data into IPv4 request data according to a preset format conversion relation, wherein the format conversion relation is used for indicating the corresponding relation among a virtual IPv6 port address, an IPv6 client address, a virtual IPv4 port address and an IPv4 server address; the IPv4 request data are sent to the IPv4 server through the virtual IPv4 port, and IPv4 return information corresponding to the IPv4 request data from the IPv4 server is received through the virtual IPv4 port; and converting the IPv4 return information into IPv6 return information according to the format conversion relationship, and sending the IPv6 return information to the IPv6 client through the virtual IPv6 port. By the method and the device, the experience of the user can be improved.

Description

Data processing method, device and system
Technical Field
The invention relates to the field of information security, in particular to a data processing method, device and system.
Background
With the development of Internet technology, global Internet based on IPv4(Internet Protocol version 4) Protocol faces the problem of network address depletion, and the gradual replacement of IPv4 by new IPv6 has been a necessary trend. However, because the IPv4 and the IPv6 are incompatible, a long transition period inevitably exists, and the modification of each application system may have time differences.
When an application system of a B/S (Browser/Server) architecture is modified by an IPv6 technology, if a page refers to a link (out-link) of other content, and the referenced application does not support IPv6, an IPv6 user may have slow response, partial content cannot be displayed, partial functions cannot be used, and the like when accessing the website, which is a typical skylight problem of a B/S application system in an IPv6 upgrading and modifying process.
Disclosure of Invention
Accordingly, the present invention is directed to a data processing method, apparatus and system for solving at least one of the above problems.
According to a first aspect of the present invention, there is provided a data processing method, the method comprising:
receiving IPv6 request data from an IPv6 client through a virtual IPv6 port;
converting the IPv6 request data into IPv4 request data according to a preset format conversion relation, wherein the format conversion relation is used for indicating the corresponding relation among a virtual IPv6 port address, an IPv6 client address, a virtual IPv4 port address and an IPv4 server address;
sending the IPv4 request data to an IPv4 server through a virtual IPv4 port, and receiving IPv4 return information corresponding to the IPv4 request data from the IPv4 server through a virtual IPv4 port;
and converting the IPv4 return information into IPv6 return information according to the format conversion relationship, and sending the IPv6 return information to the IPv6 client through the virtual IPv6 port.
According to a second aspect of the present invention, there is provided a data processing apparatus, the apparatus comprising:
an IPv6 port receiving unit for receiving IPv6 request data from an IPv6 client through a virtual Internet protocol version 6IPv6 port;
the first conversion unit is used for converting the IPv6 request data into Internet protocol version 4IPv4 request data according to a preset format conversion relation, and the format conversion relation is used for indicating the corresponding relation among a virtual IPv6 port address, an IPv6 client address, a virtual IPv4 port address and an IPv4 server address;
an IPv4 port sending unit, configured to send the IPv4 request data to an IPv4 server through a virtual IPv4 port;
an IPv4 port receiving unit, configured to receive, through the virtual IPv4 port, IPv4 return information corresponding to the IPv4 request data from the IPv4 server;
a second conversion unit, configured to convert the IPv4 return information into IPv6 return information according to the format conversion relationship;
an IPv6 port sending unit, configured to send the IPv6 return information to the IPv6 client through the virtual IPv6 port.
According to a third aspect of the present invention there is provided a data processing system, the system comprising: the data processing device, the IPv6 client and the IPv4 server are provided.
According to a fourth aspect of the present invention, there is provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the program.
According to a fifth aspect of the invention, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to the technical scheme, IPv6 request data received by a virtual IPv6 port is converted into IPv4 request data through a preset format conversion relation, then the IPv4 request data are sent to an IPv4 server through a virtual IPv4 port, IPv4 return information of an IPv4 server is received through a virtual IPv4 port, then the IPv4 return information is converted into IPv6 return information, and the IPv6 return information is sent to an IPv6 client through a virtual IPv6 port, so that the problem of B/S application system in IPv6 transformation can be solved through IPv4 and IPv6 address conversion, a page can be normally displayed before the IPv6 transformation of an outer chain is not completed, and the experience of a user can be improved.
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 introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow diagram of a data processing method according to an embodiment of the invention;
FIG. 2 is a block diagram of a data processing system according to an embodiment of the present invention;
fig. 3 is a block diagram of the structure of the data processing apparatus 21 according to the embodiment of the present invention;
FIG. 4 is an exemplary architecture diagram of a data processing system according to an embodiment of the present invention;
fig. 5 is a block diagram of the structure of an IPv6 user client according to an embodiment of the present invention;
FIG. 6 is a block diagram of a soft load balancer according to an embodiment of the invention;
FIG. 7 is a block diagram of an IPv4 out-link web server, according to an embodiment of the invention;
FIG. 8 is a data processing flow diagram for an IP address based hybrid deployment based on the system shown in FIG. 4;
fig. 9 is a schematic block diagram of a system configuration of an electronic apparatus 600 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 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.
In view of the skylight problem of the application system of the B/S architecture in the IPv6 upgrading and modifying process, the user experience is poor. Based on this, the embodiment of the present invention provides a data processing scheme, which can solve the skylight problem of the B/S application system in the IPv6 modification through IPv4 and IPv6 address translation, so that a page can be normally displayed before the IPv6 modification is not completed in an external chain, and thus, the user experience can be improved. Embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention, as shown in fig. 1, the method including:
at step 101, IPv6 request data from an IPv6 client is received through a virtual IPv6 (internet protocol version 6) port.
Preferably, the IPv6 request data may be HTTP (HyperText Transfer Protocol) request data, and is used to initiate an HTTP access request to the server.
And 102, converting the IPv6 request data into IPv4(Internet protocol version 4) request data according to a preset format conversion relationship, wherein the format conversion relationship is used for indicating the corresponding relationship among a virtual IPv6 port address, an IPv6 client address, a virtual IPv4 port address and an IPv4 server address.
Specifically, the source address in the IPv6 request data is converted from the IPv6 client address to the virtual IPv4 port address according to the format conversion relationship, and the destination address in the IPv6 request data is converted from the virtual IPv6 port address to the IPv4 server address, so as to generate the IPv4 request data.
And then, the IPv6 client address can be written into the message header of the IPv4 request data, so that the IPv4 server can read the IPv6 client address conveniently.
103, sending the IPv4 request data to an IPv4 server through a virtual IPv4 port, and receiving IPv4 return information corresponding to the IPv4 request data from the IPv4 server through the virtual IPv4 port;
and 104, converting the IPv4 return information into IPv6 return information according to the format conversion relationship, and sending the IPv6 return information to the IPv6 client through the virtual IPv6 port.
The method comprises the steps of converting IPv6 request data received by a virtual IPv6 port into IPv4 request data through a preset format conversion relation, then sending the IPv4 request data to an IPv4 server through a virtual IPv4 port, receiving IPv4 return information of an IPv4 server through a virtual IPv4 port, then converting IPv4 return information into IPv6 return information, and sending the IPv6 return information to an IPv6 client through a virtual IPv6 port, so that the skylight problem of a B/S application system in IPv6 transformation can be solved through IPv4 and IPv6 address conversion, a page can be normally displayed before an outer chain is not subjected to IPv6 transformation, and the experience of a user can be improved.
In one embodiment, prior to step 101, an IPv6 communication link may be established with the IPv6 client through the virtual IPv6 port; and establishing an IPv4 communication link with the IPv4 server through the virtual IPv4 port.
In the embodiment of the invention, the client supports IPv6, and can initiate an HTTP access request to the server through an IPv6 address. The server side is not upgraded and modified, and the web server only supports IPv4, so that the embodiment of the invention can realize the mutual conversion between IPv4< - > IPv6, and realize the intercommunication between the IPv6 client and the IPv4 web server, so that the page can be normally displayed before the outer chain is not modified by the IPv6, and the experience of a user can be improved.
Based on similar inventive concepts, the embodiment of the present invention further provides a data processing system, as shown in fig. 2, the system includes: an IPv6 client 20, a data processing apparatus 21 and an IPv4 server 22, wherein the data processing apparatus 21 is preferably operable to implement the flow in the above method embodiments.
Fig. 3 is a block diagram of the data processing device 21, and as shown in fig. 3, the data processing device 21 includes: an IPv6 port receiving unit 211, a first converting unit 212, an IPv4 port transmitting unit 213, an IPv4 port receiving unit 214, a second converting unit 215, and an IPv6 port transmitting unit 216, wherein:
an IPv6 port receiving unit 211, configured to receive IPv6 request data from an IPv6 client through a virtual IPv6 port.
A first converting unit 212, configured to convert the IPv6 request data into IPv4 request data according to a preset format conversion relationship, where the format conversion relationship is used to indicate a correspondence relationship among a virtual IPv6 port address, an IPv6 client address, a virtual IPv4 port address, and an IPv4 server address.
The first conversion unit is specifically configured to: and converting the source address in the IPv6 request data from the IPv6 client address into a virtual IPv4 port address according to the format conversion relationship, and converting the destination address in the IPv6 request data from a virtual IPv6 port address into an IPv4 server address, so as to generate the IPv4 request data.
An IPv4 port sending unit 213, configured to send the IPv4 request data to the IPv4 server through the virtual IPv4 port.
An IPv4 port receiving unit 214, configured to receive, through the virtual IPv4 port, IPv4 return information corresponding to the IPv4 request data from the IPv4 server.
A second converting unit 215, configured to convert the IPv4 return information into IPv6 return information according to the format conversion relationship.
An IPv6 port sending unit 216, configured to send the IPv6 return information to the IPv6 client through the virtual IPv6 port.
The IPv6 port receiving unit 211 converts IPv6 request data received by a virtual IPv6 port into IPv4 request data through a format conversion relation preset by a first conversion unit 212, then an IPv4 port sending unit 213 sends IPv4 request data to an IPv4 server through a virtual IPv4 port, an IPv4 port receiving unit 214 receives IPv4 return information of the IPv4 server through a virtual IPv4 port, then a second conversion unit 215 converts the IPv4 return information into IPv6 return information, and an IPv6 port sending unit 216 sends the IPv6 return information to an IPv6 client through a virtual IPv6 port, so that the skylight problem of a B/S application system in IPv6 modification can be solved through IPv4 and IPv6 address conversion, and pages can be normally shown before outer chain IPv6 modification, so that the experience of a user can be improved.
In an embodiment, the IPv6 request data may be HTTP request data, and the apparatus further includes: and the address writing unit is used for writing the IPv6 client address into the message header of the IPv4 request data.
In practical operation, the data processing apparatus 21 further includes: an IPv6 communication link establishing unit and an IPv4 communication link establishing unit, wherein:
an IPv6 communication link establishing unit for establishing an IPv6 communication link with the IPv6 client through the virtual IPv6 port;
an IPv4 communication link establishing unit, configured to establish an IPv4 communication link with the IPv4 server through the virtual IPv4 port.
For specific execution processes of the units and the modules, reference may be made to the description in the foregoing method embodiments, and details are not described here again.
In practical operation, the units and the modules may be combined or may be singly arranged, and the present invention is not limited thereto.
For a better understanding of the present invention, embodiments of the present invention are described in detail below in connection with the exemplary system shown in FIG. 4.
FIG. 4 is an exemplary architecture diagram of a data processing system, as shown in FIG. 4, including: IPv6 user client, soft load balancer (having the function of the data processing apparatus 21 described above), IPv4 out-link web server. The IPv6 user client and the soft load balancer establish network connection through IPv6 virtual address, and the soft load balancer and the IPv4 external link Web server establish network connection through IPv4 virtual address.
In the specific implementation process, an IPv6 request of the IPv6 user client is sent to the soft load balancer, the soft load balancer is converted into an IPv4 request and forwarded to the IPv4 external link web server for processing, the web server returns to the soft load balancer after processing the request, and the soft load balancer converts IPv4 information into IPv6 information and returns the IPv6 information to the IPv6 user client. These three sections are described in detail below, respectively.
(1) IPv6 user client
And the IPv6 user client supports the access to the application system through IPv 6. Fig. 5 is a block diagram of the structure of an IPv6 user client, and as shown in fig. 5, the IPv6 user client includes: the IPv6 address unit 11 and the IPv6 are connected with the management unit 12 and the HTTP message management unit 13, wherein:
and the IPv6 address unit 11 communicates with the server side by using an IPv6 protocol. Because the two protocols of IPv4 and IPv6 are incompatible, the IPv6 client cannot communicate with the IPv4 server.
The IPv6 connection management unit 12, after the user client establishes IPv6 connection with the server, the IPv6 connection management unit stores IPv6 connection information, including the source IPv6 address of the client, the source port, and the destination IPv6 address of the server, destination port information, and the like.
The HTTP message management unit 13 stores HTTP message information, and transmits the message to the server via the IPv6 connection management unit.
(2) Soft load balancer
The soft load balancer supports the starting of two types of virtual addresses, namely IPv6 and IPv4, exposes the IPv6 virtual address to the IPv6 user client, establishes IPv6 connection with the client and receives an access request of the client. The IPv4 virtual address is exposed to the IPv4 external link web server, IPv4 connection is established with the web server, and the intercommunication between the IPv6 user client and the IPv4 external link web server is realized through IP address conversion.
Specifically, the soft load balancer establishes connection with an IPv6 user client and an IPv4 external link web server respectively, after receiving a client data message, address conversion is carried out, a source address in the data message is a client IPv6 address, a destination address is a virtual IPv6 address of the soft load balancer, the source address in the converted message is changed into a virtual IPv4 address of the soft load balancer, and the destination address is an IPv4 address of the web server. Meanwhile, the load balancer reads the real IPv6 address of the client, inserts the address into the X-Forwarded-For field in the HTTP header of the data message, and forwards the request to the web server after repackaging. The web server responds to the access request, returns the processing result to the soft load balancer, the soft load balancer receives the returned data packet, carries out address conversion again, the source address in the message before conversion is the IPv4 address of the web server, the destination address is the virtual IPv4 address of the soft load balancer, the source address in the converted message is changed into the virtual IPv6 address of the soft load balancer, the destination address is the IPv6 address of the client, and the data packet is forwarded to the client after conversion is completed.
For example, the client (IPv6 address: 1111:1111:1111:1111:: ABCD) initiates access to an IPv6 virtual address (2222:2222: 2222:: ABCD) of the soft load balancer, the source IP of the data message received by the soft load balancer is the IPv6 address of the client, the destination IP is the virtual IPv6 address of the soft load balancer, and the HTTP header X-Forward-For field of the data message is null. After receiving the data message, the soft load balancer converts the source address in the data message into a virtual IPv4 address (2.2.2.2) of the soft load balancer, converts the destination address into an IPv4 address (1.1.1.1) of the web server, simultaneously reads the real IP (1111:1111:1111:1111: ABCD) of the client, writes an X-Forwarded-For field in the HTTP header of the data message into the IPv6 address, and encapsulates the data message and forwards the data message to the web server. And returning after the web server processes the access request, wherein the source address in the message received by the soft load balancer is the IPv4 address (1.1.1.1) of the web server, and the destination address is the virtual IPv4 address (2.2.2.2) of the soft load balancer. The soft load balancer carries out address translation again, and the source address in the translated message becomes the virtual IPv6 address (2222:2222:2222:2222:: ABCD) of the soft load balancer, and the destination address is the IPv6 address (1111:1111:1111:1111:: ABCD) of the client.
Fig. 6 is a block diagram of a soft load balancer, as shown in fig. 6, including: a user request receiving unit 21, an IPv4 connection managing unit 22, an IPv6 connection managing unit 23, an IP address converting unit 24, and an IP address inserting unit 25, wherein:
the user request receiving unit 21 exposes the virtual IPv6 address to the outside for receiving an HTTP request of an IPv6 user client.
After the IPv4 connection management unit 22 establishes an IPv4 connection between the load balancer and the IPv4 out-link web server, the IPv4 connection management unit stores IPv4 connection information, which includes a source IPv4 address of the load balancer, a source port, a destination IPv4 address of the web server, and destination port information.
The IPv6 connection management unit 23 establishes an IPv6 connection between the load balancer and the IPv6 user client, and then the IPv6 connection management unit stores IPv6 connection information, including the source IPv6 address of the client, source port information, and the destination IPv6 address and destination port of the load balancer.
And the IP address translation unit 24 is used for carrying out address translation on the IPv6 virtual address of the load balancer and the IPv4 real address of the external link web server, and the address is translated into bidirectional translation. The source address in the data message sent to the load balancer by the client is the IPv6 address of the client, the destination address is the virtual IPv6 address of the soft load balancer, the source address in the converted message is changed into the virtual IPv4 address of the soft load balancer, and the destination address is the IPv4 address of the web server. The source address in the data message sent by the web server to the load balancer is the IPv4 address of the web server, the destination address is the virtual IPv4 address of the soft load balancer, the source address in the converted message is changed into the virtual IPv6 address of the soft load balancer, and the destination address is the IPv6 address of the client. The contents of the address translation relationship table are shown in table 1 below:
Figure BDA0003005765960000081
TABLE 1
And the IP address inserting unit 35 is used for inserting the client address into the HTTP message, so that the out-link web server can acquire the real IPv6 client source IP.
(3) IPv4 external link web server
The IPv4 external link web server establishes IPv4 connection with the soft load balancer, receives the access request forwarded by the soft load balancer, returns the processing result to the soft load balancer after the received request is processed, and supports reading a real client IPv6 address from an HTTP packet header of the data message.
Fig. 7 is a block diagram of an IPv4 out-link web server, and as shown in fig. 7, the IPv4 out-link web server includes: the user request receiving unit 31, the IPv4 connection managing unit 32, and the IPv6 address reading unit 33, wherein:
and a user request receiving unit 31, configured to receive a user request forwarded from the soft load balancer.
The IPv4 connection management unit 32 is configured to store IPv4 connection information, which includes a source IPv4 address of the load balancer, a source port, a destination IPv4 address of the web server, and destination port information.
An IPv6 address reading unit 33 for reading the real client IPv6 source address from the user request.
Fig. 8 is a data processing flow chart of the hybrid deployment based on the IP address based on the system shown in fig. 4, and as shown in fig. 8, the flow chart includes:
s101: the IPv6 address unit sends the client HTTP request using the IPv6 address.
S102: the user request receiving unit receives the client request by using the IPv6 virtual address, and the two parties establish an IPv6 connection.
S103: the IP address translation unit translates the IPv6 address in the request into an IPv4 address and establishes a connection with an IPv4 out-link web server.
S104: the IP address insertion unit inserts the client source address into the HTTP message and forwards the client request message to the IPv4 external link web server.
S105: the web server receives the HTTP request of the soft load balancer, and both sides establish an IPv4 connection.
S106: the web server reads the client real IPv6 source address of the HTTP message.
S107: the web server processes the soft load balancer's HTTP request and returns via IPv 4.
S108: the soft load balancer converts the IPv4 target address in the web server return message into an IPv6 address, and forwards the IPv6 address to the client.
S109: and the client receives the returned content of the soft load balancer and displays the webpage content in the out-link window.
In the embodiment of the invention, the IPv6 client initiates an access request to the IPv6 virtual address of the soft load balancer, and both sides establish TCP connection of IPv 6. After the connection is established, the soft load balancer searches for an IP of an external link web server hung under an IPv6 virtual address, then initiates an access request to an IPv4 address of the web server through an IPv4 virtual address through address translation, and the two parties establish TCP connection of IPv 4. At this time, the soft load balancer establishes connection with both sides of the client and the web server, and simultaneously stores the corresponding relation of the two different protocol connections.
After the connection of the two ends is established, the client sends an HTTP data message to an IPv6 virtual address of the soft load balancer through IPv6 connection, after the soft load balancer receives the data message, the source address and the destination address in the data message are converted according to the address conversion relation, the source address in the message before conversion is the IPv6 address of the client, the destination address is the virtual IPv6 address of the soft load balancer, the source address in the message after conversion is changed into the virtual IPv4 address of the soft load balancer, and the destination address is the IPv4 address of the web server. Meanwhile, the IPv6 address of the client is also inserted into the HTTP message header of the request, so that the real IP of the client can be acquired by the web server. After the IP address conversion is completed, the soft load balancer forwards the data message to the web server through the IPv4 connection, and the web server receives and processes the IPv4 request and returns the result to the IPv4 address of the soft load balancer.
After receiving the return message of the web server, the soft load balancer carries out IP address conversion again according to the address conversion relation, the source address in the message before conversion is the IPv4 address of the web server, the destination address is the virtual IPv4 address of the soft load balancer, the source address in the converted message is changed into the virtual IPv6 address of the soft load balancer, and the destination address is the IPv6 address of the client. After the IP address conversion is completed, the soft load balancer forwards the message to the IPv6 client, and the client receives the return message and completes the display of the out-link webpage content on the browser. The normal access from the IPv6 client to the IPv4 server is realized through the address translation function of the soft load balancing server.
The embodiment of the invention solves the typical skylight problem of an application system of a B/S framework in IPv6 transformation by IPv4 and IPv6 address conversion based on a soft load balancer, so that a page can be normally displayed before the outer chain is not transformed by IPv 6. By the embodiment of the invention, the soft load balancer can realize the smooth transition from IPv4 to IPv6 on the premise of not changing the application infrastructure, and the soft load balancer is suitable for the scene of coexistence of IPv4 and IPv 6. When the IPv6 application system of the B/S framework is modified, the terminal user is not aware of the modification, and the modification is not dependent on whether the outer link application is modified or not, so that the decoupling between the application systems is realized, and the experience of the user is improved.
The present embodiment also provides an electronic device, which may be a desktop computer, a tablet computer, a mobile terminal, and the like, but is not limited thereto. In this embodiment, the electronic device may be implemented with reference to the above method embodiments and the data processing apparatus/system embodiments, and the contents thereof are incorporated herein, and repeated descriptions are omitted.
Fig. 9 is a schematic block diagram of a system configuration of an electronic apparatus 600 according to an embodiment of the present invention. As shown in fig. 9, the electronic device 600 may include a central processor 100 and a memory 140; the memory 140 is coupled to the central processor 100. Notably, this diagram is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the data processing functions may be integrated into the central processor 100. The central processor 100 may be configured to control as follows:
receiving IPv6 request data from an IPv6 client through a virtual Internet protocol version 6IPv6 port;
converting the IPv6 request data into Internet protocol version 4IPv4 request data according to a preset format conversion relation, wherein the format conversion relation is used for indicating the corresponding relation among a virtual IPv6 port address, an IPv6 client address, a virtual IPv4 port address and an IPv4 server address;
sending the IPv4 request data to an IPv4 server through a virtual IPv4 port, and receiving IPv4 return information corresponding to the IPv4 request data from the IPv4 server through a virtual IPv4 port;
and converting the IPv4 return information into IPv6 return information according to the format conversion relationship, and sending the IPv6 return information to the IPv6 client through the virtual IPv6 port.
As can be seen from the above description, according to the electronic device provided in the embodiment of the present application, through a preset format conversion relationship, IPv6 request data received by a virtual IPv6 port is converted into IPv4 request data, then the IPv4 request data is sent to an IPv4 server through a virtual IPv4 port, and IPv4 return information of an IPv4 server is received through a virtual IPv4 port, and then the IPv4 return information is converted into IPv6 return information, and the IPv6 return information is sent to an IPv6 client through a virtual IPv6 port, so that a skylight problem of a B/S application system in IPv6 modification can be solved through IPv4 and IPv6 address conversion, so that a page can be normally displayed before an outer link completes IPv6 modification, and a user experience can be improved.
In another embodiment, the data processing apparatus/system may be configured separately from the central processor 100, for example, the data processing apparatus/system may be configured as a chip connected to the central processor 100, and the data processing function is realized by the control of the central processor.
As shown in fig. 9, the electronic device 600 may further include: communication module 110, input unit 120, audio processing unit 130, display 160, power supply 170. It is noted that the electronic device 600 does not necessarily include all of the components shown in FIG. 9; furthermore, the electronic device 600 may also comprise components not shown in fig. 9, which may be referred to in the prior art.
As shown in fig. 9, the central processor 100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, the central processor 100 receiving input and controlling the operation of the various components of the electronic device 600.
The memory 140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 100 may execute the program stored in the memory 140 to realize information storage or processing, etc.
The input unit 120 provides input to the cpu 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used to display an object to be displayed, such as an image or a character. The display may be, for example, an LCD display, but is not limited thereto.
The memory 140 may be a solid state memory such as Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 140 may also be some other type of device. Memory 140 includes buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application/function storage section 142, and the application/function storage section 142 is used to store application programs and function programs or a flow for executing the operation of the electronic device 600 by the central processing unit 100.
The memory 140 may also include a data store 143, the data store 143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage portion 144 of the memory 140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging application, address book application, etc.).
The communication module 110 is a transmitter/receiver 110 that transmits and receives signals via an antenna 111. The communication module (transmitter/receiver) 110 is coupled to the central processor 100 to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and receive audio input from the microphone 132 to implement general telecommunications functions. Audio processor 130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, an audio processor 130 is also coupled to the central processor 100, so that recording on the local can be enabled through a microphone 132, and so that sound stored on the local can be played through a speaker 131.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the data processing method.
In summary, the embodiment of the present invention provides a solution for solving the IPv6 skylight problem in the IPv6 modification process of an application system of a B/S architecture, where an IPv6 request of a client is first forwarded to a soft load balancer, the soft load balancer converts the IPv6 request into an IPv4 request, and then forwards an IPv4 request to an IPv4 address of an external link web server, and a real IPv6 source address of the client is inserted into a request HTTP data header, so that the skylight problems that a response is slow, part of content cannot be displayed, and part of functions cannot be used in IPv6 user access due to the fact that a cited external link system is not upgraded are solved, and user experience is improved.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings. The many features and advantages of the embodiments are apparent from the detailed specification, and thus, it is intended by the appended claims to cover all such features and advantages of the embodiments which fall within the true spirit and scope thereof. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the embodiments of the invention to the exact construction and operation illustrated and described, and accordingly, all suitable modifications and equivalents may be resorted to, falling within the scope thereof.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A method of data processing, the method comprising:
receiving IPv6 request data from an IPv6 client through a virtual Internet protocol version 6IPv6 port;
converting the IPv6 request data into Internet protocol version 4IPv4 request data according to a preset format conversion relation, wherein the format conversion relation is used for indicating the corresponding relation among a virtual IPv6 port address, an IPv6 client address, a virtual IPv4 port address and an IPv4 server address;
sending the IPv4 request data to an IPv4 server through a virtual IPv4 port, and receiving IPv4 return information corresponding to the IPv4 request data from the IPv4 server through a virtual IPv4 port;
and converting the IPv4 return information into IPv6 return information according to the format conversion relationship, and sending the IPv6 return information to the IPv6 client through the virtual IPv6 port.
2. The method of claim 1, wherein prior to receiving the IPv6 request data from the IPv6 client via the virtual IPv6 port, the method further comprises:
establishing an IPv6 communication link with the IPv6 client through the virtual IPv6 port;
and establishing an IPv4 communication link with the IPv4 server through the virtual IPv4 port.
3. The method of claim 1, wherein converting the IPv6 request data into IPv4 request data according to a preset format conversion relationship comprises:
and converting the source address in the IPv6 request data from the IPv6 client address into a virtual IPv4 port address according to the format conversion relationship, and converting the destination address in the IPv6 request data from a virtual IPv6 port address into an IPv4 server address, so as to generate the IPv4 request data.
4. The method as claimed in claim 1, wherein the IPv6 request data is HTTP request data, and after the IPv6 request data is converted into IPv4 request data according to a preset format conversion relationship, the method further comprises:
and writing the IPv6 client address into a message header of the IPv4 request data.
5. A data processing apparatus, characterized in that the apparatus comprises:
an IPv6 port receiving unit for receiving IPv6 request data from an IPv6 client through a virtual Internet protocol version 6IPv6 port;
the first conversion unit is used for converting the IPv6 request data into Internet protocol version 4IPv4 request data according to a preset format conversion relation, and the format conversion relation is used for indicating the corresponding relation among a virtual IPv6 port address, an IPv6 client address, a virtual IPv4 port address and an IPv4 server address;
an IPv4 port sending unit, configured to send the IPv4 request data to an IPv4 server through a virtual IPv4 port;
an IPv4 port receiving unit, configured to receive, through the virtual IPv4 port, IPv4 return information corresponding to the IPv4 request data from the IPv4 server;
a second conversion unit, configured to convert the IPv4 return information into IPv6 return information according to the format conversion relationship;
an IPv6 port sending unit, configured to send the IPv6 return information to the IPv6 client through the virtual IPv6 port.
6. The apparatus of claim 5, further comprising:
an IPv6 communication link establishing unit for establishing an IPv6 communication link with the IPv6 client through the virtual IPv6 port;
an IPv4 communication link establishing unit, configured to establish an IPv4 communication link with the IPv4 server through the virtual IPv4 port.
7. The apparatus according to claim 5, wherein the first conversion unit is specifically configured to:
and converting the source address in the IPv6 request data from the IPv6 client address into a virtual IPv4 port address according to the format conversion relationship, and converting the destination address in the IPv6 request data from a virtual IPv6 port address into an IPv4 server address, so as to generate the IPv4 request data.
8. The apparatus of claim 5, wherein the IPv6 request data is HTTP request data, the apparatus further comprising:
and the address writing unit is used for writing the IPv6 client address into the message header of the IPv4 request data.
9. A data processing system, characterized in that the system comprises: the data processing apparatus according to any of claims 5 to 8, the IPv6 client and the IPv4 server.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the processor executes the program.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202110361583.0A 2021-04-02 2021-04-02 Data processing method, device and system Pending CN112866439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110361583.0A CN112866439A (en) 2021-04-02 2021-04-02 Data processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110361583.0A CN112866439A (en) 2021-04-02 2021-04-02 Data processing method, device and system

Publications (1)

Publication Number Publication Date
CN112866439A true CN112866439A (en) 2021-05-28

Family

ID=75992125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110361583.0A Pending CN112866439A (en) 2021-04-02 2021-04-02 Data processing method, device and system

Country Status (1)

Country Link
CN (1) CN112866439A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285856A (en) * 2021-12-10 2022-04-05 杭州迪普科技股份有限公司 IPV4 external link access method and device
CN115022284A (en) * 2022-06-01 2022-09-06 睿哲科技股份有限公司 Method and system for identifying external links in webpage and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208138A (en) * 2014-06-20 2015-12-30 中国电信股份有限公司 Method and system for communication between clients under different versions of Internet protocol
CN105227687A (en) * 2014-06-20 2016-01-06 中国电信股份有限公司 IPv4 user accesses communication means and the system of IPv6 resource
CN109120739A (en) * 2018-08-24 2019-01-01 下代互联网重大应用技术(北京)工程研究中心有限公司 A kind of method, equipment, system and the medium of the address IPv6 access IPv4 resource
CN110971721A (en) * 2019-12-13 2020-04-07 睿哲科技股份有限公司 External link processing method, device, server and storage medium
CN111953700A (en) * 2020-08-18 2020-11-17 中国工商银行股份有限公司 Session keeping method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208138A (en) * 2014-06-20 2015-12-30 中国电信股份有限公司 Method and system for communication between clients under different versions of Internet protocol
CN105227687A (en) * 2014-06-20 2016-01-06 中国电信股份有限公司 IPv4 user accesses communication means and the system of IPv6 resource
CN109120739A (en) * 2018-08-24 2019-01-01 下代互联网重大应用技术(北京)工程研究中心有限公司 A kind of method, equipment, system and the medium of the address IPv6 access IPv4 resource
CN110971721A (en) * 2019-12-13 2020-04-07 睿哲科技股份有限公司 External link processing method, device, server and storage medium
CN111953700A (en) * 2020-08-18 2020-11-17 中国工商银行股份有限公司 Session keeping method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285856A (en) * 2021-12-10 2022-04-05 杭州迪普科技股份有限公司 IPV4 external link access method and device
CN114285856B (en) * 2021-12-10 2024-04-23 杭州迪普科技股份有限公司 IPV4 external link access method and device
CN115022284A (en) * 2022-06-01 2022-09-06 睿哲科技股份有限公司 Method and system for identifying external links in webpage and electronic equipment

Similar Documents

Publication Publication Date Title
US6987961B1 (en) Ethernet emulation using a shared mailbox between two processors in a feature phone
CN111953700B (en) Session keeping method and device
KR100803932B1 (en) Communication apparatus and browser switching method
CN110708393A (en) Method, device and system for transmitting data
CN112866439A (en) Data processing method, device and system
CN112073307B (en) Mail processing method, mail processing device, electronic equipment and computer readable medium
CN104753989A (en) Screen image transmission and playing method and device based on Web-based OS runtime environment
CN112328413B (en) Application service calling method, device and system
CN111371695B (en) Service flow limiting method and device
CN113014510B (en) Data caching method and device in distributed test of inertial navigation system
CN112422485B (en) Communication method and device of transmission control protocol
CN113438251A (en) Protocol conversion method, device and system
CN111581576B (en) Development processing method and device based on micro-service and storage medium
CN113612825A (en) Internet of things message middleware server cluster expansion method and system
JP5931224B2 (en) Data access method and apparatus
EP3896931A1 (en) Spark shuffle-based remote direct memory access system and method
WO2015131380A1 (en) Data processing method and device
JP2002297478A (en) System, apparatus and method for relay of multimedia data
CN114374614A (en) Network topology configuration method and device
JP2006254119A (en) Portable communication terminal cooperation system
CN113159752A (en) Method and device for generating account transfer transaction certificate
CN110581878B (en) Voice data transmission method, device and storage medium
KR100710626B1 (en) Digital processing device and method for having extend structure of data-bus
JP2006293466A (en) Proxy server and program
CN115397033B (en) Wireless communication method, wireless communication device, wireless communication module, medium, and program product

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210528