WO2021057889A1 - 一种数据处理方法、装置、电子设备及存储介质 - Google Patents

一种数据处理方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2021057889A1
WO2021057889A1 PCT/CN2020/117647 CN2020117647W WO2021057889A1 WO 2021057889 A1 WO2021057889 A1 WO 2021057889A1 CN 2020117647 W CN2020117647 W CN 2020117647W WO 2021057889 A1 WO2021057889 A1 WO 2021057889A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
network protocol
protocol version
data
data request
Prior art date
Application number
PCT/CN2020/117647
Other languages
English (en)
French (fr)
Inventor
刘明飞
Original Assignee
北京金山云网络技术有限公司
北京金山云科技有限公司
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 北京金山云网络技术有限公司, 北京金山云科技有限公司 filed Critical 北京金山云网络技术有限公司
Publication of WO2021057889A1 publication Critical patent/WO2021057889A1/zh

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/22Parsing or analysis of headers
    • 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

Definitions

  • This application relates to the field of cloud computing technology, and in particular to a data processing method, device, electronic equipment, and storage medium.
  • Cloud computing server also known as cloud server or cloud host, is a computing unit in cloud computing scenarios.
  • the specific processing process of cloud tenants providing services to users through cloud computing servers is as follows: the user terminal of the user sends a data request carrying the business address of the cloud tenant to the gateway device, and the gateway device can forward the data request to the business address The corresponding cloud computing server. After receiving the data request, the cloud computing server determines the response data of the data request, and then sends the response data to the gateway device, so that the gateway device can send the response data to the user terminal.
  • the gateway device cannot perform data processing on the received data of different network protocol versions. To process. For example, when updating the network protocol version, a large number of basic devices need to be updated one by one, which requires a long update time. If during the update period, the user terminal and the cloud computing server perform data processing based on different network protocol versions, the gateway device cannot process the received data of different network protocol versions.
  • the purpose of the embodiments of the present application is to provide a data processing method, device, electronic device, and storage medium, so as to realize the processing of data of multiple network protocol versions.
  • the specific technical solutions are as follows:
  • a data processing method which is applied to a gateway device, and the method includes:
  • the response data is converted into a message of the first network protocol version, and the converted response data is sent to the user terminal.
  • the data request also carries the cloud tenant identifier of the cloud tenant to which the first address belongs, and before determining the second address corresponding to the first address according to the pre-stored correspondence between the first address and the second address, it further includes:
  • the cloud tenant identifier determines whether the data request needs to be converted to the network protocol version
  • the step of determining the second address corresponding to the first address according to the pre-stored correspondence between the first address and the second address is performed.
  • the first network protocol version is IPv6, and the second network protocol version is IPv4.
  • a data processing method which is applied to a cloud computing server, and the method includes:
  • response data of the data request where the response data is a message of the second network protocol version
  • the response data is sent to the gateway device, so that the gateway device converts the response data into a message of the first network protocol version, and sends the converted response data to the user terminal.
  • the method further includes:
  • the address registration request carries the first address to be registered, and the network protocol version of the first address is the first network protocol version;
  • the corresponding relationship between the first address and the second address is sent to the gateway device, so that when the gateway device receives a data request sent by the user terminal that carries the first address, it determines according to the corresponding relationship between the first address and the second address The second address corresponding to the first address.
  • the first network protocol version is IPv6, and the second network protocol version is IPv4.
  • a data processing system which includes: a user terminal, a gateway device, and a cloud computing server;
  • the user terminal is configured to send a data request carrying a first address to the gateway device, and the data request is a message of the first network protocol version;
  • the gateway device is configured to, when receiving a data request carrying the first address, determine the second address corresponding to the first address according to the pre-stored correspondence between the first address and the second address; convert the data request to the second address The network protocol version of the message containing the second address, and the converted data request is sent to the cloud computing server according to the second address;
  • the cloud computing server is set to receive the data request sent by the gateway device; obtain response data of the data request, and the response data is a message of the second network protocol version; and send the response data to the gateway device;
  • the gateway device is also configured to convert the response data into a message of the first network protocol version, and send the converted response data to the user terminal.
  • the data request also carries the cloud tenant identification of the cloud tenant to which the first address belongs
  • the gateway device is also set to determine whether the data request needs to be processed based on the pre-stored correspondence between the cloud tenant and the conversion authority, and the cloud tenant identification.
  • Network protocol version conversion if it is necessary to perform network protocol version conversion on the data request, the step of determining the second address corresponding to the first address is performed according to the pre-stored correspondence between the first address and the second address.
  • the cloud computing server is further configured to: receive an address registration request from the cloud tenant, the address registration request carries the first address to be registered, and the network protocol version of the first address is the first network protocol version; and the cloud tenant is assigned the first address Second address, the corresponding relationship between the first address and the second address is obtained, and the network protocol version of the second address is the second network protocol version; the corresponding relationship between the first address and the second address is sent to the gateway device, so that the gateway device is When receiving a data request carrying the first address sent by the user terminal, the second address corresponding to the first address is determined according to the correspondence between the first address and the second address.
  • the first network protocol version is IPv6, and the second network protocol version is IPv4.
  • a data processing device which is applied to a gateway device, and the device includes:
  • the first receiving module is configured to receive a data request carrying a first address sent by a user terminal, and the data request is a message of the first network protocol version;
  • the determining module is configured to determine the second address corresponding to the first address according to the pre-stored correspondence between the first address and the second address;
  • the first conversion module is configured to convert the data request into a message containing the second address of the second network protocol version, and send the converted data request to the cloud computing server according to the second address;
  • the second receiving module is configured to receive response data based on the converted data request sent by the cloud computing server, and the response data is a message of the second network protocol version;
  • the second conversion module is configured to convert the response data into a message of the first network protocol version, and send the converted response data to the user terminal.
  • the device further includes:
  • the judgment module is set to judge whether the data request needs to be networked according to the pre-stored correspondence between the cloud tenant and the conversion authority, and the cloud tenant identification when the data request also carries the cloud tenant identification of the cloud tenant to which the first address belongs Protocol version conversion;
  • the determining module is further configured to determine the second address corresponding to the first address according to the pre-stored correspondence relationship between the first address and the second address when the network protocol version conversion needs to be performed on the data request.
  • the first network protocol version is IPv6, and the second network protocol version is IPv4.
  • a data processing device which is applied to a cloud computing server, and the device includes:
  • the first receiving module is configured to receive a data request carrying a second address sent by the gateway device, and the data request is a message of the second network protocol version;
  • the obtaining module is configured to obtain response data of the data request from the second address, and the response data is a message of the second network protocol version;
  • the sending module is configured to send the response data to the gateway device, so that the gateway device converts the response data into a message of the first network protocol version, and sends the converted response data to the user terminal.
  • the device further includes:
  • the second receiving module is configured to receive the address registration request of the cloud tenant
  • the allocation module is configured to allocate the first address and the second address to the cloud tenant, and obtain the corresponding relationship between the first address and the second address, the network protocol version of the first address is the first network protocol version, and the network protocol version of the second address Is the second network protocol version;
  • the sending module is further configured to send the corresponding relationship between the first address and the second address to the gateway device, so that when the gateway device receives a data request carrying the first address sent by the user terminal, it is based on the first address and the second address.
  • the correspondence relationship of the addresses determines the second address corresponding to the first address.
  • the first network protocol version is IPv6, and the second network protocol version is IPv4.
  • an electronic device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
  • Memory set to store computer programs
  • the processor is configured to implement the method steps of the first aspect or the second aspect when executing the program stored in the memory.
  • a computer-readable storage medium is provided, and a computer program is stored in the computer-readable storage medium.
  • the computer program is executed by a processor, the method steps of the first aspect or the second aspect are implemented.
  • a computer program product containing instructions which when run on a computer, causes the computer to execute the method of the first aspect or the second aspect.
  • an executable program code is provided, and the executable program code is configured to be executed to execute the method of the first aspect or the second aspect.
  • the gateway device After the gateway device receives the data request carrying the first address sent by the user terminal, it can determine the second address corresponding to the first address according to the correspondence between the first address and the second address. Address, where the data request is a message of the first network protocol version; then, the gateway device can convert the data request into a message of the second network protocol version containing the second address, and the converted data request is based on the second address Send to cloud computing server.
  • the cloud computing server may determine the response data of the converted data request, and send the response data to the gateway device, where the response data is a message of the second network protocol version.
  • the gateway device may convert the response data into a message of the first network protocol version, and send the converted response data to the user terminal.
  • the gateway device can convert the network protocol version of the data after receiving the data of different network protocol versions, it is convenient for cloud computing servers, user terminals and other devices that perform data analysis based on different network protocol versions to perform data processing. Therefore, it can Realize the data processing of multiple network protocol versions, reducing the communication barriers between the cloud computing server and the user terminal.
  • FIG. 1 is a schematic diagram of a data processing system provided by an embodiment of the application
  • FIG. 2 is a schematic diagram of a data processing method provided by an embodiment of the application.
  • FIG. 3 is a schematic diagram of a data processing method provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of a data processing method provided by an embodiment of this application.
  • FIG. 5 is a schematic diagram of a data processing method provided by an embodiment of this application.
  • FIG. 6 is a schematic structural diagram of a data processing device provided by an embodiment of this application.
  • FIG. 7 is a schematic structural diagram of a data processing device provided by an embodiment of this application.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • an embodiment of the present application provides a data processing method, which is applied to a gateway device in a data processing system, and the data processing system further includes a user terminal and a cloud computing server.
  • FIG. 1 it is a schematic diagram of a data processing system provided by an embodiment of this application.
  • the system includes a user terminal 110, a gateway device 120, and a cloud computing server 130.
  • user terminals include electronic devices used by users of cloud tenants.
  • Cloud tenants such as video sites “small videos” and shopping sites “quick shopping”.
  • Cloud tenant users can be Internet users who browse videos on video websites or browse shopping.
  • Internet users of the goods on the website user terminals such as mobile phones, tablet computers and other electronic devices.
  • Cloud tenants can provide users with business IP addresses (Internet Protocol Address) generated based on a certain network protocol version, and network protocol versions such as IPv6 (Internet Protocol Version 6, Internet Protocol Version 6), IPv4 (Internet Protocol Version) 4. Internet Protocol version 4).
  • IPv6 Internet Protocol Version 6, Internet Protocol Version 6
  • IPv4 Internet Protocol Version 4
  • the user terminal can obtain the data provided by the cloud tenant by accessing the service IP address provided by the cloud tenant.
  • the gateway device can forward the data request sent by the user terminal to the cloud computing server, and send the response data of the data request determined by the cloud computing server to the user terminal.
  • the gateway Equipment such as routers and switches.
  • the specific processing process of a data processing method applied to a gateway device includes:
  • Step 201 Receive a data request carrying a first address sent by a user terminal.
  • the data request is a message of the first network protocol version.
  • two different network protocol versions are involved.
  • the network protocol version on the user terminal side is called the first network protocol version
  • the network protocol version on the cloud computing server side is called the first network protocol version.
  • Two network protocol version is involved.
  • the user terminal may use its own IP address as the source address and the service IP address as the destination address. Then, the user terminal may generate a data request carrying the source address and the destination address based on the first network protocol, and thus, the data request is a message of the first network protocol version.
  • the user terminal can send the data request to the gateway device that maintains a communication connection with the user terminal.
  • the gateway device may parse the data request based on the first network protocol to obtain the destination address of the data request as the first address.
  • the first network protocol version is IPv6, and the mobile phone can use its own IP address as the source address.
  • the business IP address is used as the destination address, where the business IP address is for example: 2401:1d40:f21:2900::19.
  • the mobile phone can generate a data request carrying the source address and the destination address based on IPv6.
  • the mobile phone can send the data request to the gateway device that maintains a communication connection with the mobile phone.
  • the gateway device can parse the data request based on IPv6 to obtain the destination address of the data request as the first address.
  • Step 202 Determine a second address corresponding to the first address according to the pre-stored correspondence between the first address and the second address.
  • the corresponding relationship between the first address and the second address may be pre-stored in the gateway device, and the corresponding relationship may be pre-issued by the cloud computing server to each gateway device, or it may be a staff member of the data processing system at each gateway device.
  • the pre-stored in the device is not specifically limited in the embodiment of the present application.
  • the network protocol version of the first address is the first network protocol version
  • the network protocol version of the second address is the second network protocol version.
  • the cloud computing server may receive the address registration request of the cloud tenant, and obtain the address of the first network protocol version to be registered carried in the address registration request as the first address, and then, The cloud computing server may allocate the address of the second network protocol version to the cloud tenant as the second address. Then, the cloud computing server may correspondingly store the first address and the second address to obtain the correspondence between the first address and the second address. After that, the cloud computing server can send the corresponding relationship to the gateway device.
  • the gateway device parses the data request to obtain the first address, it can determine the second address corresponding to the first address based on the correspondence relationship.
  • Step 203 Convert the data request into a message containing the second address of the second network protocol version, and send the converted data request to the cloud computing server according to the second address.
  • the gateway device can convert the data request of the first network protocol version into the message of the second network protocol version to obtain the converted data request.
  • the source address is the second address
  • the destination address is the cloud computing server's address. Then, the gateway device may send the converted data request to the cloud computing server according to the second address, so that the cloud computing server determines the response data of the data request.
  • the specific processing process of the cloud computing server determining the response data of the data request will be described in detail later.
  • the gateway device can convert the IPv6 version of the data request into the IPv4 version of the message to obtain the converted data request, and the source address in the converted data request The second address is 120.24.89.120, and the target address is the access address of the cloud computing server 10.33.10.2. Then, the gateway device may send the IPv4 version data request to the cloud computing server.
  • the gateway device can convert the message of the first network protocol version into the message of the second network protocol version through any network protocol version conversion method in the prior art.
  • the conversion method is not specifically limited.
  • Step 204 Receive response data based on the converted data request sent by the cloud computing server.
  • the response data is a message of the second network protocol version.
  • Step 205 Convert the response data into a message of the first network protocol version, and send the converted response data to the user terminal.
  • the gateway device After the gateway device receives the response data sent by the cloud computing server, the gateway device can convert the response data of the second network protocol version into the response data of the first network protocol version, and then the gateway device can send the converted response to the user terminal data.
  • the gateway device may parse the response data based on IPv4, and obtain that the source address of the response data is the access address of the cloud computing server, and the destination address is the second address. Then, the gateway device can determine the first address corresponding to the second address according to the correspondence between the first address and the second address, use the first address as the source address of the converted response data, and use the user terminal IP address as the converted The destination address of the response data. After that, the gateway device may convert the IPv4 response data into IPv6 response data, and the source address in the converted IPv6 response data is the first address.
  • the gateway device may receive the data request carrying the first address sent by the user terminal, and determine the second address corresponding to the first address according to the pre-stored correspondence between the first address and the second address. Then, the gateway device may convert the data request into a message containing the second address of the second network protocol version, and send the converted data request to the cloud computing server according to the second address. After that, the gateway device may receive the response data of the data request sent by the cloud computing server, convert the response data into a message of the first network protocol version, and send the converted response data to the user terminal. Based on the foregoing processing, the gateway device can realize the conversion between the message of the first network protocol version and the message of the second network protocol version, and provide support capabilities of different network protocols without changing the current network device.
  • the user terminal In the process of the user terminal sending data request and receiving response data, for the user terminal, the user terminal always performs data interaction based on the first network protocol.
  • the network protocol of the received message through the gateway device The version is converted, and the service of communication access based on the first network protocol is provided for users without changing the current network configuration.
  • IPv6 protocol support capabilities provide users with IaaS (Infrasturcture as a Service, infrastructure as a service) based on IPv6 communication.
  • IaaS Infrasturcture as a Service, infrastructure as a service
  • IPv6 business access can be provided without the need to transform existing business networks.
  • the second network protocol version is IPv6, and the first network protocol version is IPv4.
  • the first network protocol version and the second network protocol version may also be other different network protocol versions, and the specific network protocol version is not limited.
  • the gateway device can pre-store the corresponding relationship between cloud tenants and conversion permissions, and the user terminal can generate a data request carrying the cloud tenant identifier, so that the gateway device can determine whether it is correct for cloud tenants with different network configurations.
  • the data belonging to the cloud tenant requests the network protocol version conversion, as shown in Figure 3.
  • the specific processing process includes:
  • Step 301 Determine whether a network protocol version conversion is required for the data request according to the pre-stored correspondence between the cloud tenant and the conversion authority, and the cloud tenant identifier.
  • the corresponding relationship between cloud tenants and conversion authority can be issued by the cloud computing server to each gateway device in the data processing system, and the corresponding relationship can also be pre-stored in each gateway device by the staff of the data processing system
  • the embodiments of this application do not make specific limitations.
  • the gateway device can determine the conversion authority corresponding to the cloud tenant to which the cloud tenant identity belongs based on the pre-stored correspondence between the cloud tenant and the conversion authority, and the cloud tenant identifier. If the conversion authority indicates that the data request needs to be converted to the network protocol version, the gateway device Step 302 can be performed. If the conversion authority indicates that there is no need to perform network protocol version conversion on the data request, the gateway device may perform step 306.
  • Step 302 Determine a second address corresponding to the first address according to the pre-stored correspondence between the first address and the second address.
  • Step 303 Convert the data request into a message containing the second address of the second network protocol version, and send the converted data request to the cloud computing server.
  • Step 304 Receive response data based on the converted data request sent by the cloud computing server.
  • Step 305 Convert the response data into a message of the first network protocol version, and send the converted response data to the user terminal.
  • Step 306 Send the data request to the cloud computing server according to the first address.
  • step 302 to step 305 For the specific processing process of step 302 to step 305, refer to step 202 to step 205, which will not be repeated here.
  • the gateway device can determine whether the data request needs to be converted to the network protocol version based on the pre-stored correspondence between the cloud tenant and the conversion authority, and the cloud tenant identifier. When it is necessary to perform network protocol version conversion on the data request, determine the second address corresponding to the first address, and convert the data request from the message of the first network protocol version to the message of the second network protocol version, according to the second address Send the converted data request to the cloud computing server; when there is no need to perform network protocol version conversion on the data request, send the data request to the cloud computing server according to the first address. In this way, the gateway device can implement data processing for data requests belonging to different cloud tenants according to the network configuration of the cloud tenant to which they belong.
  • an embodiment of the present application also provides a data processing method, which is applied to a cloud computing server in a data processing system, and the data processing system further includes a user terminal and a gateway device.
  • a data processing method which is applied to a cloud computing server in a data processing system
  • the data processing system further includes a user terminal and a gateway device.
  • the specific processing process of a data processing method applied to a cloud computing server includes:
  • Step 401 Receive a data request carrying a second address sent by a gateway device.
  • the data request is a message of the second network protocol version.
  • the cloud computing server may receive the data request carrying the second address sent by the gateway device, and then the cloud computing server may parse the data request based on the second network protocol to obtain the second address of the data request.
  • the cloud computing server may receive the data request carrying the second address sent by the network device, and then the cloud computing server may parse the data request based on the second network protocol IPv4 to obtain the second address 120.24.89.120.
  • Step 402 Obtain response data of the data request.
  • the response data is a message of the second network protocol version.
  • the cloud computing server can parse to obtain the data identifier of the data requested by the data request, and then the cloud computing server can determine the data to which the data identifier belongs as the response data of the data request.
  • the cloud computing server may be composed of a cloud virtual machine and a cloud physical machine
  • the cloud computing server may obtain the response data of the data request through the network device corresponding to the second address.
  • Step 403 Send the response data to the gateway device, so that the gateway device converts the response data into a message of the first network protocol version, and sends the converted response data to the user terminal.
  • the cloud computing server may receive the data request carrying the second address sent by the gateway device, and then the cloud computing server may obtain the response data of the data request, and the response data is a message of the second network protocol version.
  • the cloud computing server may send the response data to the gateway device, so that the gateway device converts the response data into a message of the first network protocol version, and sends the converted response data to the user terminal. Therefore, there is no need to change the current network equipment of the cloud computing server.
  • the cloud computing server performs data processing such as parsing data requests and sending response data based on the second network protocol, thereby converting messages of different network protocol versions through the gateway device, which can support Provide cloud tenants with different network protocols.
  • the cloud tenant needs to register the IP address through the cloud computing server, as shown in Figure 5, the specific processing process includes:
  • Step 501 Receive a cloud tenant's address registration request.
  • the address registration request carries the first address to be registered.
  • the staff of a cloud tenant can log in to the cloud computing console and perform a preset operation to send an address registration request to the cloud computing server.
  • the preset operation can be to fill in the registration information on the preset registration page in the cloud computing console.
  • the registration information such as the cloud tenant ID, the first address of the address to be registered, and the preset operation may also be to click the icon used to indicate the registered address requested in the preset control page.
  • the cloud computing server may receive the address registration request of the cloud tenant.
  • Step 502 Allocate a second address to the cloud tenant, and obtain the corresponding relationship between the first address and the second address.
  • the network protocol version of the first address is the first network protocol version
  • the network protocol version of the second address is the second network protocol version
  • the cloud computing server can assign an address whose network protocol version is the second network protocol version to the cloud tenant as the second address. Then, the cloud computing server can store the first address and the second address correspondingly to obtain the first address and the second address. Correspondence.
  • the cloud computing server can allocate addresses with the network protocol version of the second network protocol version to cloud tenants in various ways.
  • the cloud computing server can be stored in a pre-stored manner.
  • the address pool at least one address is randomly selected, wherein the network protocol version of the addresses included in the address pool are all the second network protocol version.
  • the cloud computing server may generate an address whose network protocol version is the second network protocol version according to a preset address generation rule.
  • the number of the second address may be one or multiple, and the embodiment of the present application does not specifically limit it.
  • Step 503 Send the corresponding relationship between the first address and the second address to the gateway device, so that when the gateway device receives the data request sent by the user terminal that carries the first address, it will respond according to the correspondence between the first address and the second address. Relationship, determine the second address corresponding to the first address.
  • the cloud computing server may receive the address registration request of the cloud tenant, and obtain the first address to be registered carried in the address registration request. Then, the cloud computing server may allocate a second address to the cloud tenant to obtain the first address and Correspondence of the second address. After that, the cloud computing server can send the correspondence to the gateway device, so that when the gateway device receives the data request carrying the first address, it can determine the second address corresponding to the first address based on the correspondence, and provide the cloud tenant with One-to-many IP address mapping to achieve network protocol version conversion.
  • the cloud tenant can bind the first address with the cloud computing resources of the cloud tenant while registering the first address. Therefore, the address registration request can also carry the resource identifier of the cloud computing resource to be bound.
  • the cloud computing server may correspondingly store the first address, the second address, and the resource identifier of the cloud computing resource to be bound. Therefore, it is convenient for the cloud computing server to subsequently determine the cloud computing resources provided for the cloud tenant according to the second address carried in the data request, and provide services to the user based on the determined cloud computing resources.
  • the cloud computing server used for the management server to register the IP address in the embodiment of the present application may also be referred to as the cloud computing registration management server.
  • the first network protocol version is IPv6, and the second network protocol version is IPv4.
  • an embodiment of the present application also provides a data processing system.
  • the system may include: a user terminal 110, a gateway device 120, and a cloud computing server 130;
  • the user terminal 110 is configured to send a data request carrying a first address to the gateway device, and the data request is a message of the first network protocol version;
  • the gateway device 120 is configured to, when receiving a data request carrying the first address, determine the second address corresponding to the first address according to the pre-stored correspondence between the first address and the second address; convert the data request to the first address 2.
  • the cloud computing server 130 is configured to receive a data request sent by the gateway device 120; obtain response data of the data request, where the response data is a message of the second network protocol version; and send the response data to the gateway device 120;
  • the gateway device 120 is further configured to convert the response data into a message of the first network protocol version, and send the converted response data to the user terminal 110.
  • the data request also carries the cloud tenant identification of the cloud tenant to which the first address belongs.
  • the gateway device 120 is also set to determine whether a data request is required based on the pre-stored correspondence between the cloud tenant and the conversion authority, and the cloud tenant identification. Perform network protocol version conversion; if it is necessary to perform network protocol version conversion on the data request, perform the step of determining the second address corresponding to the first address according to the pre-stored correspondence between the first address and the second address.
  • the cloud computing server 130 is further configured to: receive an address registration request from a cloud tenant, the address registration request carries a first address to be registered, and the network protocol version of the first address is the first network protocol version; and the cloud tenant is assigned The second address, the corresponding relationship between the first address and the second address is obtained, and the network protocol version of the second address is the second network protocol version; the corresponding relationship between the first address and the second address is sent to the gateway device 120, so that the gateway When receiving the data request carrying the first address sent by the user terminal, the device 120 determines the second address corresponding to the first address according to the correspondence between the first address and the second address.
  • the first network protocol version is IPv6, and the second network protocol version is IPv4.
  • an embodiment of the present application also provides a data processing device, which is applied to a gateway device in a data processing system.
  • the data processing system further includes a user terminal and a cloud computing server.
  • the device includes :
  • the first receiving module 610 is configured to receive a data request carrying a first address sent by a user terminal, and the data request is a message of the first network protocol version;
  • the determining module 620 is configured to determine the second address corresponding to the first address according to the pre-stored correspondence between the first address and the second address;
  • the first conversion module 630 is configured to convert the data request into a message containing the second address of the second network protocol version, and send the converted data request to the cloud computing server according to the second address;
  • the second receiving module 640 is configured to receive response data based on the converted data request sent by the cloud computing server, and the response data is a message of the second network protocol version;
  • the second conversion module 650 is configured to convert the response data into a message of the first network protocol version, and send the converted response data to the user terminal.
  • the device further includes:
  • the judgment module is set to judge whether the data request needs to be networked according to the pre-stored correspondence between the cloud tenant and the conversion authority, and the cloud tenant identification when the data request also carries the cloud tenant identification of the cloud tenant to which the first address belongs Protocol version conversion;
  • the determining module 620 is further configured to determine the second address corresponding to the first address according to the pre-stored correspondence between the first address and the second address when the network protocol version conversion needs to be performed on the data request.
  • the first network protocol version is IPv6, and the second network protocol version is IPv4.
  • the gateway device after the gateway device receives the data request carrying the first address sent by the user terminal, it can determine the second address corresponding to the first address according to the correspondence between the first address and the second address , Where the data request is a message of the first network protocol version; then, the gateway device can convert the data request into a message of the second network protocol version containing the second address, and send the converted data request according to the second address To cloud computing server.
  • the cloud computing server may determine the response data of the converted data request, and send the response data to the gateway device, where the response data is a message of the second network protocol version.
  • the gateway device may convert the response data into a message of the first network protocol version, and send the converted response data to the user terminal.
  • the gateway device can convert the network protocol version of the data after receiving the data of different network protocol versions, it is convenient for cloud computing servers, user terminals and other devices that perform data analysis based on different network protocol versions to perform data processing. Therefore, it can Realize the data processing of multiple network protocol versions, reducing the communication barriers between the cloud computing server and the user terminal.
  • the embodiments of the present application also provide a data processing device, which is applied to a cloud computing server.
  • the data processing system further includes a user terminal and a gateway device. As shown in FIG. 7, the device includes:
  • the first receiving module 710 is configured to receive a data request carrying a second address sent by the gateway device, and the data request is a message of the second network protocol version;
  • the obtaining module 720 is configured to obtain response data of the data request from the second address, and the response data is a message of the second network protocol version;
  • the sending module 730 is configured to send the response data to the gateway device, so that the gateway device converts the response data into a message of the first network protocol version, and sends the converted response data to the user terminal.
  • the device further includes:
  • the second receiving module is configured to receive the address registration request of the cloud tenant
  • the allocation module is configured to allocate the first address and the second address to the cloud tenant, and obtain the corresponding relationship between the first address and the second address, the network protocol version of the first address is the first network protocol version, and the network protocol version of the second address Is the second network protocol version;
  • the sending module 730 is further configured to send the corresponding relationship between the first address and the second address to the gateway device, so that when the gateway device receives a data request carrying the first address sent by the user terminal, it is based on the first address and the first address.
  • the correspondence between the two addresses determines the second address corresponding to the first address.
  • the first network protocol version is IPv6, and the second network protocol version is IPv4.
  • the gateway device after the gateway device receives the data request carrying the first address sent by the user terminal, it can determine the second address corresponding to the first address according to the correspondence between the first address and the second address , Where the data request is a message of the first network protocol version; then, the gateway device can convert the data request into a message of the second network protocol version containing the second address, and send the converted data request according to the second address To cloud computing server.
  • the cloud computing server may determine the response data of the converted data request, and send the response data to the gateway device, where the response data is a message of the second network protocol version.
  • the gateway device may convert the response data into a message of the first network protocol version, and send the converted response data to the user terminal.
  • the gateway device can convert the network protocol version of the data after receiving the data of different network protocol versions, it is convenient for cloud computing servers, user terminals and other devices that perform data analysis based on different network protocol versions to perform data processing. Therefore, it can Realize the data processing of multiple network protocol versions, reducing the communication barriers between the cloud computing server and the user terminal.
  • the embodiment of the present application also provides an electronic device, as shown in FIG. 8, including a processor 801, a communication interface 802, a memory 803, and a communication bus 804.
  • the processor 801, the communication interface 802, and the memory 803 pass through the communication bus 804. Complete the communication between each other,
  • the memory 803 is set to store computer programs
  • the processor 801 is configured to implement the steps of any of the aforementioned data processing methods when executing the program stored in the memory 803.
  • the communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the communication interface is used for communication between the above-mentioned electronic device and other devices.
  • the memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage.
  • NVM non-Volatile Memory
  • the memory may also be at least one storage device located far away from the foregoing processor.
  • the above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the gateway device may, after receiving the data request carrying the first address sent by the user terminal, determine the second address corresponding to the first address according to the correspondence between the first address and the second address. Address, where the data request is a message of the first network protocol version; then, the gateway device can convert the data request into a message of the second network protocol version containing the second address, and the converted data request is based on the second address Send to cloud computing server.
  • the cloud computing server may determine the response data of the converted data request, and send the response data to the gateway device, where the response data is a message of the second network protocol version.
  • the gateway device may convert the response data into a message of the first network protocol version, and send the converted response data to the user terminal.
  • the gateway device can convert the network protocol version of the data after receiving the data of different network protocol versions, it is convenient for cloud computing servers, user terminals and other devices that perform data analysis based on different network protocol versions to perform data processing. Therefore, it can Realize data processing of multiple network protocol versions.
  • a computer-readable storage medium stores a computer program.
  • the steps of any of the foregoing data processing methods are implemented. .
  • an executable program code is also provided, and the executable program code is configured to be executed to execute any data processing method in the foregoing embodiments.
  • the computer may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Abstract

本申请实施例提供了一种数据处理方法、装置、电子设备及存储介质,该方法应用于网关设备,包括:接收用户终端发送的携带有第一地址的数据请求,数据请求为第一网络协议版本的报文;根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址;将数据请求转换为第二网络协议版本的包含第二地址的报文,并根据第二地址将转换后的数据请求发送至云计算服务器,以使云计算服务器确定转换后的数据请求的响应数据;接收云计算服务器发送的响应数据,响应数据为第二网络协议版本的报文;将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。采用本申请实施例提供的技术方案,能够处理多种网络协议版本的数据。

Description

一种数据处理方法、装置、电子设备及存储介质
本申请要求于2019年9月26日提交中国专利局、申请号为201910916628.9、发明名称为“一种数据处理方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及云计算技术领域,特别是涉及一种数据处理方法、装置、电子设备及存储介质。
背景技术
云计算服务器,又称云服务器或云主机,是云计算场景下的计算单元。
相关技术中,云租户通过云计算服务器为用户提供服务的具体处理过程为:用户的用户终端发送携带有云租户的业务地址的数据请求至网关设备,网关设备可以将该数据请求转发至业务地址相应的云计算服务器。云计算服务器在接收到数据请求后,确定数据请求的响应数据,再将响应数据发送至网关设备,这样,网关设备可以将响应数据发送至用户终端。
然而,上述处理过程中,用户终端与云计算服务器之间基于同一网络协议版本进行数据处理,如果二者基于不同的网络协议版本进行数据处理,网关设备无法对接收到的不同网络协议版本的数据进行处理。例如,在进行网络协议版本更新时,需要逐一更新数量庞大的基础设备,所需更新时间长。如果在更新期间内,用户终端与云计算服务器基于不同的网络协议版本进行数据处理,网关设备无法对接收到的不同网络协议版本的数据进行处理。
发明内容
本申请实施例的目的在于提供一种数据处理方法、装置、电子设备及存储介质,以实现处理多种网络协议版本的数据。具体技术方案如下:
第一方面,提供了一种数据处理方法,应用于网关设备,该方法包括:
接收用户终端发送的携带有第一地址的数据请求,数据请求为第一网络协议版本的报文;
根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的 第二地址;
将数据请求转换为第二网络协议版本的包含第二地址的报文,并根据第二地址将转换后的数据请求发送至云计算服务器;
接收云计算服务器发送的基于转换后的数据请求的响应数据,响应数据为第二网络协议版本的报文;
将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
可选的,数据请求还携带有第一地址所属云租户的云租户标识,根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址之前,还包括:
根据预先存储的云租户和转换权限的对应关系、云租户标识,判断是否需要对数据请求进行网络协议版本转换;
如果需要对数据请求进行网络协议版本转换,则执行根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址步骤。
可选的,第一网络协议版本为IPv6,第二网络协议版本为IPv4。
第二方面,提供了一种数据处理方法,应用于云计算服务器,该方法包括:
接收网关设备发送的数据请求,数据请求为第二网络协议版本的报文;
获取数据请求的响应数据,响应数据为第二网络协议版本的报文;
将响应数据发送至网关设备,以使网关设备将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
可选的,该方法还包括:
接收云租户的地址注册请求,地址注册请求携带有待注册的第一地址,第一地址的网络协议版本为第一网络协议版本;
为云租户分配第二地址,得到第一地址和第二地址的对应关系,第二地址的网络协议版本为第二网络协议版本;
将第一地址和第二地址的对应关系发送至网关设备,以使网关设备在接收到用户终端发送的携带有第一地址的数据请求时,根据第一地址和第二地址的对应关系,确定第一地址对应的第二地址。
可选的,第一网络协议版本为IPv6,第二网络协议版本为IPv4。
第三方面,提供了一种数据处理系统,该系统包括:用户终端、网关设备及云计算服务器;
用户终端,设置为向网关设备发送携带有第一地址的数据请求,数据请求为第一网络协议版本的报文;
网关设备,设置为当接收到携带有第一地址的数据请求时,根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址;将数据请求转换为第二网络协议版本的包含第二地址的报文,并根据第二地址将转换后的数据请求发送至云计算服务器;
云计算服务器,设置为接收网关设备发送的数据请求;获取数据请求的响应数据,响应数据为第二网络协议版本的报文;将响应数据发送至网关设备;
网关设备,还设置为将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
可选的,数据请求还携带有第一地址所属云租户的云租户标识,网关设备,还设置为根据预先存储的云租户和转换权限的对应关系、云租户标识,判断是否需要对数据请求进行网络协议版本转换;如果需要对数据请求进行网络协议版本转换,则执行根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址步骤。
可选的,云计算服务器,还设置为:接收云租户的地址注册请求,地址注册请求携带有待注册的第一地址,第一地址的网络协议版本为第一网络协议版本;为云租户分配第二地址,得到第一地址和第二地址的对应关系,第二地址的网络协议版本为第二网络协议版本;将第一地址和第二地址的对应关系发送至网关设备,以使网关设备在接收到用户终端发送的携带有第一地址的数据请求时,根据第一地址和第二地址的对应关系,确定第一地址对应 的第二地址。
可选的,第一网络协议版本为IPv6,第二网络协议版本为IPv4。
第四方面,提供了一种数据处理装置,应用于网关设备,该装置包括:
第一接收模块,设置为接收用户终端发送的携带有第一地址的数据请求,数据请求为第一网络协议版本的报文;
确定模块,设置为根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址;
第一转换模块,设置为将数据请求转换为第二网络协议版本的包含第二地址的报文,并根据第二地址将转换后的数据请求发送至云计算服务器;
第二接收模块,设置为接收云计算服务器发送的基于转换后的数据请求的响应数据,响应数据为第二网络协议版本的报文;
第二转换模块,设置为将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
可选的,该装置还包括:
判断模块,设置为在数据请求还携带有第一地址所属云租户的云租户标识的情况下,根据预先存储的云租户和转换权限的对应关系、云租户标识,判断是否需要对数据请求进行网络协议版本转换;
确定模块,还设置为当需要对数据请求进行网络协议版本转换时,根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址。
可选的,第一网络协议版本为IPv6,第二网络协议版本为IPv4。
第五方面,提供了一种数据处理装置,应用于云计算服务器,该装置包括:
第一接收模块,设置为接收网关设备发送的携带有第二地址的数据请求,数据请求为第二网络协议版本的报文;
获取模块,设置为从第二地址处获取数据请求的响应数据,响应数据为第二网络协议版本的报文;
发送模块,设置为将响应数据发送至网关设备,以使网关设备将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
可选的,该装置还包括:
第二接收模块,设置为接收云租户的地址注册请求;
分配模块,设置为为云租户分配第一地址和第二地址,得到第一地址和第二地址的对应关系,第一地址的网络协议版本为第一网络协议版本,第二地址的网络协议版本为第二网络协议版本;
发送模块,还设置为将第一地址和第二地址的对应关系发送至网关设备,以使网关设备在接收到用户终端发送的携带有第一地址的数据请求时,根据第一地址和第二地址的对应关系,确定第一地址对应的第二地址。
可选的,第一网络协议版本为IPv6,第二网络协议版本为IPv4。
第六方面,提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
存储器,设置为存放计算机程序;
处理器,设置为执行存储器上所存放的程序时,实现第一方面,或第二方面的方法步骤。
第七方面,提供了一种计算机可读存储介质,计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现第一方面,或第二方面的方法步骤。
第八方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面,或第二方面的方法。
第九方面,提供了一种可执行程序代码,所述可执行程序代码设置为被运行以执行上述第一方面,或第二方面的方法。
采用本申请实施例提供的数据处理方法,网关设备接收到用户终端发送的携带有第一地址的数据请求后,可以根据第一地址与第二地址的对应关系, 确定第一地址对应的第二地址,其中,数据请求为第一网络协议版本的报文;然后,网关设备可以将数据请求转换为第二网络协议版本的包含第二地址的报文,根据第二地址将转换后的数据请求发送至云计算服务器。云计算服务器可以确定转换后的数据请求的响应数据,将响应数据发送至网关设备,其中,响应数据为第二网络协议版本的报文。网关设备可以将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
由于网关设备能够在接收到不同网络协议版本的数据后,对数据的网络协议版本进行转换,从而便于云计算服务器、用户终端等基于不同网络协议版本进行数据解析的设备进行数据处理,因此,能够实现多种网络协议版本的数据处理,降低了云计算服务器与用户终端之间的通信障碍。
当然,实施本申请的任一产品或方法并不一定需要同时达到以上所述的所有优点。
附图说明
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种数据处理系统的示意图;
图2为本申请实施例提供的一种数据处理方法的示意图;
图3为本申请实施例提供的一种数据处理方法的示意图;
图4为本申请实施例提供的一种数据处理方法的示意图;
图5为本申请实施例提供的一种数据处理方法的示意图;
图6为本申请实施例提供的一种数据处理装置的结构示意图;
图7为本申请实施例提供的一种数据处理装置的结构示意图;
图8为本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
第一方面,本申请实施例提供了一种数据处理方法,该方法应用于数据处理系统中的网关设备,数据处理系统还包括用户终端和云计算服务器。如图1所示,为本申请实施例提供的一种数据处理系统的示意图,该系统包括用户终端110、网关设备120及云计算服务器130。
其中,用户终端包括云租户的用户所使用的电子设备,云租户例如视频网站“小视频”、购物网站“快捷购”,云租户的用户可以是浏览视频网站中视频的互联网用户,或者浏览购物网站中商品的互联网用户,用户终端例如手机、平板电脑等电子设备。云租户可以为用户提供基于某一网络协议版本生成的业务IP地址(Internet Protocol Address,网际协议地址),网络协议版本例如IPv6(Internet Protocol Version 6,互联网协议第6版)、IPv4(Internet Protocol Version 4,互联网协议第4版)。用户终端可以通过访问云租户提供的业务IP地址的方式获取云租户提供的数据。
网关设备作为数据处理系统中能够提供数据转换服务的数据中转站,可以将用户终端发送的数据请求转发至云计算服务器,以及将云计算服务器确定出的数据请求的响应数据发送至用户终端,网关设备例如路由器、交换机。
如图2所示,本申请实施例提供的一种应用于网关设备的数据处理方法的具体处理过程包括:
步骤201,接收用户终端发送的携带有第一地址的数据请求。
其中,数据请求为第一网络协议版本的报文。本发明所示实施例中,涉及到两种不同的网络协议版本,为了区分描述,将用户终端侧的网络协议版本称为第一网络协议版本,将云计算服务器侧的网络协议版本称为第二网络协议版本。
举例来说,当云租户的用户通过用户终端,访问云租户提供的第一网络协议版本的业务IP地址时,用户终端可以将自身的IP地址作为源地址、将该业务IP地址作为目的地址。然后,用户终端可以基于第一网络协议,生成携带有源地址、目的地址的数据请求,由此,数据请求为第一网络协议版本的报文。
之后,用户终端可以将该数据请求发送至与该与用户终端保持通信连接的网关设备。在接收到用户终端发送的数据请求后,网关设备可以基于第一网络协议对数据请求进行解析,得到数据请求的目的地址,作为第一地址。
例如,当云租户“小视频”的用户通过手机访问云租户“小视频”提供的IPv6的业务IP地址时,第一网络协议版本为IPv6,手机可以将自身的IP地址作为源地址,将该业务IP地址作为目的地址,其中,业务IP地址例如:2401:1d40:f21:2900::19。然后,手机可以基于IPv6,生成携带有源地址、目的地址的数据请求。之后,手机可以将该数据请求发送至与该手机保持通信连接的网关设备。在接收到手机发送的数据请求后,网关设备可以基于IPv6对数据请求进行解析,得到数据请求的目的地址,作为第一地址。
步骤202,根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址。
其中,网关设备中可以预先存储有第一地址与第二地址的对应关系,该对应关系可以是由云计算服务器预先下发至各网关设备的,也可以是数据处理系统的工作人员在各网关设备中预先存储的,本申请实施例不作具体限定。
第一地址的网络协议版本为第一网络协议版本,第二地址的网络协议版本为第二网络协议版本。以云计算服务器下发上述对应关系为例来说,云计算服务器可以接收云租户的地址注册请求,获取地址注册请求携带的待注册的第一网络协议版本的地址,作为第一地址,然后,云计算服务器可以为云租户分配第二网络协议版本的地址,作为第二地址,然后,云计算服务器可以对应存储第一地址和第二地址,得到第一地址和第二地址的对应关系。之后,云计算服务器可以将该对应关系发送至网关设备。
这样,网关设备在解析数据请求得到第一地址之后,能够基于该对应关系确定第一地址对应的第二地址。
步骤203,将数据请求转换为第二网络协议版本的包含第二地址的报文,并根据第二地址将转换后的数据请求发至云计算服务器。
网关设备可以将第一网络协议版本的数据请求转换为第二网络协议版本的报文,得到转换后的数据请求,转换后的数据请求中源地址为第二地址,目的地址为云计算服务器的访问地址。然后,网关设备可以根据第二地址将转换后的数据请求发送至云计算服务器,以使云计算服务器确定数据请求的响应数据。云计算服务器确定数据请求的响应数据的具体处理过程后续会进行详细说明。
例如,第一网络协议版本为IPv6,第二网络协议版本为IPv4,网关设备可以将IPv6版本的数据请求转换为IPv4版本的报文,得到转换后的数据请求,转换后的数据请求中源地址为第二地址120.24.89.120,目标的地址为云计算服务器的访问地址10.33.10.2。然后,网关设备可以将IPv4版本的数据请求发送至云计算服务器。
本申请实施例中,网关设备可以通过现有技术中任一网络协议版本转换方式,将第一网络协议版本的报文转换为第二网络协议版本的报文,本申请实施例对网络协议版本转换方式不作具体限定。
步骤204,接收云计算服务器发送的基于转换后的数据请求的响应数据。
其中,响应数据为第二网络协议版本的报文。
步骤205,将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
在网关设备接收到云计算服务器发送的响应数据后,网关设备可以将第二网络协议版本的响应数据转换为第一网络协议版本的响应数据,然后,网关设备可以向用户终端发送转换后的响应数据。
例如,网关设备可以基于IPv4解析响应数据,得到响应数据的源地址为云计算服务器的访问地址,目的地址为第二地址。然后,网关设备可以根据第一地址与第二地址的对应关系,确定第二地址对应的第一地址,将第一地址作为转换后的响应数据的源地址,将用户终端IP地址作为转换后的响应数据的目的地址。之后,网关设备可以将IPv4的响应数据转换为IPv6的响应数据,转 换后的IPv6的响应数据中源地址为第一地址。
本申请实施例中,网关设备可以接收用户终端发送的携带有第一地址的数据请求,根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址。然后,网关设备可以将数据请求转换为第二网络协议版本的包含第二地址的报文,并根据第二地址将转换后的数据请求发送至云计算服务器。之后,网关设备可以接收云计算服务器发送的数据请求的响应数据,将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。基于上述处理,网关设备可以实现第一网络协议版本的报文与第二网络协议版本的报文之间的转换,在不改变当前网络设备的前提下,提供不同网络协议的支持能力。
相关技术中,为满足将基于IPv4通信更新换代为基于IPv6通信这一需求,对交换机、路由器等网络基础设施进行改造,需要耗费大量时间与资金。而应用本申请实施例,如果第一网络协议版本为IPv6,第二网络协议版本为IPv4,无需对网络基础设施进行硬件改造,即能满足支持IPv6通信的能力,节省了时间及资金。
在用户终端发送数据请求与接收响应数据的过程中,对于用户终端来说,用户终端始终基于第一网络协议进行数据交互,对于云租户来说,通过网关设备对接收到的报文的网络协议版本进行转换,实现了在无需更改当前网络配置的情况下,为用户提供基于第一网络协议进行通信访问的服务。
与此同时,对于云计算服务器,在不改变技术网络设备的前提下,提供IPv6协议的支持能力,为用户提供基于IPv6通信的IaaS(Infrasturcture as a Service,基础设施即服务)。对于云租户来说,在无需改造已有业务网络的前提下,即可提供IPv6业务访问。
或者,其他实施方式中,第二网络协议版本为IPv6,第一网络协议版本为IPv4。或者,第一网络协议版本和第二网络协议版本也可以为其他不同的网络协议版本,具体网络协议版本不做限定。
可选的,由于云计算服务器所服务的各云租户的网络配置不同,因此, 可能存在需要对属于某一云租户的数据请求进行网络协议版本的转换,不需要对属于另一云租户的数据请求进行网络协议版本的转换的情况。针对这种情况,网关设备中可以预先存储有云租户和转换权限的对应关系,用户终端可以生成携带有云租户标识的数据请求,以便网关设备能够针对具有不同网络配置的云租户,确定是否对属于该云租户的数据请求进行网络协议版本的转换,如图3所示,具体处理过程包括:
步骤301,根据预先存储的云租户和转换权限的对应关系、云租户标识,判断是否需要对数据请求进行网络协议版本转换。
其中,云租户和转换权限的对应关系可以是由云计算服务器下发至数据处理系统中的各网关设备中的,该对应关系也可以由数据处理系统的工作人员在各网关设备中预先存储的,本申请实施例不作具体限定。
网关设备可以根据预先存储的云租户和转换权限的对应关系、云租户标识,确定云租户标识所属云租户对应的转换权限,如果该转换权限表示需要对数据请求进行网络协议版本转换,则网关设备可以执行步骤302。如果该转换权限表示无需对数据请求进行网络协议版本转换,则网关设备可以执行步骤306。
步骤302,根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址。
步骤303,将数据请求转换为第二网络协议版本的包含第二地址的报文,并将转换后的数据请求发至云计算服务器。
步骤304,接收云计算服务器发送的基于转换后的数据请求的响应数据。
步骤305,将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
步骤306,根据第一地址向云计算服务器发送该数据请求。
步骤302~步骤305的具体处理过程可参照步骤202~步骤205,此处不再赘述。
本申请实施例中,网关设备可以根据预先存储的云租户和转换权限的对 应关系、云租户标识,判断是否需要对数据请求进行网络协议版本转换。当需要对数据请求进行网络协议版本转换时,确定第一地址对应的第二地址,并将数据请求由第一网络协议版本的报文转换为第二网络协议版本的报文,根据第二地址向云计算服务器发送转换后的数据请求;当无需对数据请求进行网络协议版本转换,根据第一地址向云计算服务器发送数据请求。由此,网关设备可以实现针对属于不同云租户的数据请求,按照其所属云租户的网络配置进行数据处理。
第二方面,本申请实施例还提供了一种数据处理方法,该方法应用于数据处理系统中的云计算服务器,数据处理系统还包括用户终端和网关设备。云计算服务器、用户终端以及网关设备的具体说明可以参照第一方面中相关设备的说明,此处不再赘述。
如图4所示,本申请实施例提供的一种应用于云计算服务器的数据处理方法的具体处理过程包括:
步骤401,接收网关设备发送的携带有第二地址的数据请求。
其中,数据请求为第二网络协议版本的报文。
云计算服务器可以接收网关设备发送的携带有第二地址的数据请求,然后,云计算服务器可以基于第二网络协议对数据请求进行解析,得到数据请求的第二地址。
例如,云计算服务器可以接收网络设备发送的携带有第二地址的数据请求,然后,云计算服务器可以基于第二网络协议IPv4对数据请求进行解析,得到第二地址120.24.89.120。
步骤402,获取数据请求的响应数据。
其中,响应数据为第二网络协议版本的报文。
在基于第二网络协议对数据请求进行解析的同时,云计算服务器可以解析得到数据请求所请求数据的数据标识,然后,云计算服务器可以将该数据标识所属的数据确定为数据请求的响应数据。
在一种可行的实现方式中,由于云计算服务器可以由云虚拟机和云物理 机组成,云计算服务器可以通过第二地址对应的网络设备,获取数据请求的响应数据。
步骤403,将响应数据发送至网关设备,以使网关设备将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
本申请实施例中,云计算服务器可以接收网关设备发送的携带有第二地址的数据请求,然后,云计算服务器可以获取数据请求的响应数据,响应数据为第二网络协议版本的报文,之后,云计算服务器可以将响应数据发送至网关设备,以使网关设备将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。由此,无需改变云计算服务器的当前网络设备,云计算服务器基于第二网络协议进行解析数据请求、发送响应数据等数据处理,从而通过网关设备对不同网络协议版本的报文进行转换,能够支持提供不同网络协议的云租户。
可选的,在云租户提供IP地址以为用户提供服务之前,云租户需要通过云计算服务器注册IP地址,如图5所示,具体处理过程包括:
步骤501,接收云租户的地址注册请求。
其中,地址注册请求携带有待注册的第一地址。
举例来说,云租户的工作人员可以登录云计算控制台,执行预设操作,以向云计算服务器发送地址注册请求,其中,预设操作可以是在云计算控制台中预设注册页面填写注册信息,注册信息例如云租户标识、待注册地址的第一地址,预设操作也可以是点击预设控制页面中用于表示请求注册地址的图标。
然后,云计算服务器可以接收到云租户的地址注册请求。
步骤502,为云租户分配第二地址,得到第一地址和第二地址的对应关系。
其中,第一地址的网络协议版本为第一网络协议版本,第二地址的网络协议版本为第二网络协议版本。
云计算服务器可以为云租户分配网络协议版本为第二网络协议版本的地址,作为第二地址,然后,云计算服务器可以对应存储第一地址和第二地址, 得到第一地址和第二地址的对应关系。
本申请实施例中,云计算服务器为云租户分配网络协议版本为第二网络协议版本的地址的方式可以是多种多样的,在一种可行的实现方式中,云计算服务器可以在预先存储的地址池中,随机选取至少一个地址,其中,地址池包含的地址的网络协议版本均为第二网络协议版本。在另一种可行的实现方式中,云计算服务器可以按照预设的地址生成规则,生成网络协议版本为第二网络协议版本的地址。
本申请实施例中,第二地址的个数可以为一个,也可以为多个,本申请实施例不作具体限定。
步骤503,将第一地址和第二地址的对应关系发送至网关设备,以使网关设备在接收到用户终端发送的携带有第一地址的数据请求时,根据第一地址和第二地址的对应关系,确定第一地址对应的第二地址。
本申请实施例中,云计算服务器可以接收云租户的地址注册请求,获取地址注册请求携带的有待注册的第一地址,然后,云计算服务器可以为云租户分配第二地址,得到第一地址和第二地址的对应关系。之后,云计算服务器可以将该对应关系发送至网关设备,以便网关设备在接收到携带有第一地址的数据请求时,能够基于该对应关系确定第一地址对应的第二地址,为云租户提供一对多的IP地址映射,从而实现网络协议版本的转换。
本申请实施例中,云租户可以在注册第一地址的同时,绑定第一地址和云租户的云计算资源,由此,地址注册请求还可以携带有待绑定的云计算资源的资源标识,云计算服务器可以对应存储第一地址、第二地址和有待绑定的云计算资源的资源标识。由此,便于云计算服务器后续根据数据请求携带的第二地址,确定为云租户提供的云计算资源,基于确定出的云计算资源为用户提供服务。
为了便于区分,本申请实施例中用于管理服务器注册IP地址的云计算服务器也可以称为云计算注册管理服务器。
可选的,第一网络协议版本为IPv6,第二网络协议版本为IPv4。
第三方面,本申请实施例还提供了一种数据处理系统,如图1所示,该系统可以包括:用户终端110、网关设备120及云计算服务器130;
用户终端110,设置为向网关设备发送携带有第一地址的数据请求,数据请求为第一网络协议版本的报文;
网关设备120,设置为当接收到携带有第一地址的数据请求时,根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址;将数据请求转换为第二网络协议版本的包含第二地址的报文,并根据第二地址将转换后的数据请求发送至云计算服务器130;
云计算服务器130,设置为接收网关设备120发送的数据请求;获取数据请求的响应数据,响应数据为第二网络协议版本的报文;将响应数据发送至网关设备120;
网关设备120,还设置为将响应数据转换为第一网络协议版本的报文,并向用户终端110发送转换后的响应数据。
可选的,数据请求还携带有第一地址所属云租户的云租户标识,网关设备120,还设置为根据预先存储的云租户和转换权限的对应关系、云租户标识,判断是否需要对数据请求进行网络协议版本转换;如果需要对数据请求进行网络协议版本转换,则执行根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址步骤。
可选的,云计算服务器130,还设置为:接收云租户的地址注册请求,地址注册请求携带有待注册的第一地址,第一地址的网络协议版本为第一网络协议版本;为云租户分配第二地址,得到第一地址和第二地址的对应关系,第二地址的网络协议版本为第二网络协议版本;将第一地址和第二地址的对应关系发送至网关设备120,以使网关设备120在接收到用户终端发送的携带有第一地址的数据请求时,根据第一地址和第二地址的对应关系,确定第一地址对应的第二地址。
可选的,第一网络协议版本为IPv6,第二网络协议版本为IPv4。
第四方面,本申请实施例还提供了一种数据处理装置,该装置应用于数据处理系统中的网关设备,数据处理系统还包括用户终端和云计算服务器,如图6所示,该装置包括:
第一接收模块610,设置为接收用户终端发送的携带有第一地址的数据请求,数据请求为第一网络协议版本的报文;
确定模块620,设置为根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址;
第一转换模块630,设置为将数据请求转换为第二网络协议版本的包含第二地址的报文,并根据第二地址将转换后的数据请求发送至云计算服务器;
第二接收模块640,设置为接收云计算服务器发送的基于转换后的数据请求的响应数据,响应数据为第二网络协议版本的报文;
第二转换模块650,设置为将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
可选的,该装置还包括:
判断模块,设置为在数据请求还携带有第一地址所属云租户的云租户标识的情况下,根据预先存储的云租户和转换权限的对应关系、云租户标识,判断是否需要对数据请求进行网络协议版本转换;
确定模块620,还设置为当需要对数据请求进行网络协议版本转换时,根据预先存储的第一地址与第二地址的对应关系,确定第一地址对应的第二地址。
可选的,第一网络协议版本为IPv6,第二网络协议版本为IPv4。
本申请实施例提供的数据处理装置,网关设备接收到用户终端发送的携带有第一地址的数据请求后,可以根据第一地址与第二地址的对应关系,确定第一地址对应的第二地址,其中,数据请求为第一网络协议版本的报文;然后,网关设备可以将数据请求转换为第二网络协议版本的包含第二地址的报文,根据第二地址将转换后的数据请求发送至云计算服务器。云计算服务器可以确定转换后的数据请求的响应数据,将响应数据发送至网关设备,其 中,响应数据为第二网络协议版本的报文。网关设备可以将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
由于网关设备能够在接收到不同网络协议版本的数据后,对数据的网络协议版本进行转换,从而便于云计算服务器、用户终端等基于不同网络协议版本进行数据解析的设备进行数据处理,因此,能够实现多种网络协议版本的数据处理,降低了云计算服务器与用户终端之间的通信障碍。
第五方面,本申请实施例还提供了一种数据处理装置,应用于云计算服务器,数据处理系统还包括用户终端和网关设备,如图7所示,该装置包括:
第一接收模块710,设置为接收网关设备发送的携带有第二地址的数据请求,数据请求为第二网络协议版本的报文;
获取模块720,设置为从第二地址处获取数据请求的响应数据,响应数据为第二网络协议版本的报文;
发送模块730,设置为将响应数据发送至网关设备,以使网关设备将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
可选的,该装置还包括:
第二接收模块,设置为接收云租户的地址注册请求;
分配模块,设置为为云租户分配第一地址和第二地址,得到第一地址和第二地址的对应关系,第一地址的网络协议版本为第一网络协议版本,第二地址的网络协议版本为第二网络协议版本;
发送模块730,还设置为将第一地址和第二地址的对应关系发送至网关设备,以使网关设备在接收到用户终端发送的携带有第一地址的数据请求时,根据第一地址和第二地址的对应关系,确定第一地址对应的第二地址。
可选的,第一网络协议版本为IPv6,第二网络协议版本为IPv4。
本申请实施例提供的数据处理装置,网关设备接收到用户终端发送的携带有第一地址的数据请求后,可以根据第一地址与第二地址的对应关系,确 定第一地址对应的第二地址,其中,数据请求为第一网络协议版本的报文;然后,网关设备可以将数据请求转换为第二网络协议版本的包含第二地址的报文,根据第二地址将转换后的数据请求发送至云计算服务器。云计算服务器可以确定转换后的数据请求的响应数据,将响应数据发送至网关设备,其中,响应数据为第二网络协议版本的报文。网关设备可以将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
由于网关设备能够在接收到不同网络协议版本的数据后,对数据的网络协议版本进行转换,从而便于云计算服务器、用户终端等基于不同网络协议版本进行数据解析的设备进行数据处理,因此,能够实现多种网络协议版本的数据处理,降低了云计算服务器与用户终端之间的通信障碍。
本申请实施例还提供了一种电子设备,如图8所示,包括处理器801、通信接口802、存储器803和通信总线804,其中,处理器801,通信接口802,存储器803通过通信总线804完成相互间的通信,
存储器803,设置为存放计算机程序;
处理器801,设置为执行存储器803上所存放的程序时,实现上述任一种数据处理方法的步骤。
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
通信接口用于上述电子设备与其他设备之间的通信。
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
本申请实施例提供的电子设备,网关设备可以在接收到用户终端发送的携带有第一地址的数据请求后,可以根据第一地址与第二地址的对应关系,确定第一地址对应的第二地址,其中,数据请求为第一网络协议版本的报文;然后,网关设备可以将数据请求转换为第二网络协议版本的包含第二地址的报文,根据第二地址将转换后的数据请求发送至云计算服务器。云计算服务器可以确定转换后的数据请求的响应数据,将响应数据发送至网关设备,其中,响应数据为第二网络协议版本的报文。网关设备可以将响应数据转换为第一网络协议版本的报文,并向用户终端发送转换后的响应数据。
由于网关设备能够在接收到不同网络协议版本的数据后,对数据的网络协议版本进行转换,从而便于云计算服务器、用户终端等基于不同网络协议版本进行数据解析的设备进行数据处理,因此,能够实现多种网络协议版本的数据处理。
在本申请提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现上述任一数据处理方法的步骤。
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一数据处理方法。
在本申请提供的又一实施例中,还提供了一种可执行程序代码,所述可执行程序代码设置为被运行以执行上述实施例中任一数据处理方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形 式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。

Claims (15)

  1. 一种数据处理方法,其中,所述方法应用于网关设备,所述方法包括:
    接收用户终端发送的携带有第一地址的数据请求,所述数据请求为第一网络协议版本的报文;
    根据预先存储的第一地址与第二地址的对应关系,确定所述第一地址对应的第二地址;
    将所述数据请求转换为第二网络协议版本的包含所述第二地址的报文,并根据所述第二地址将转换后的数据请求发送至云计算服务器;
    接收所述云计算服务器发送的基于所述转换后的数据请求的响应数据,所述响应数据为所述第二网络协议版本的报文;
    将所述响应数据转换为所述第一网络协议版本的报文,并向所述用户终端发送转换后的响应数据。
  2. 根据权利要求1所述的方法,其中,所述数据请求还携带有第一地址所属云租户的云租户标识,所述根据预先存储的第一地址与第二地址的对应关系,确定所述第一地址对应的第二地址之前,还包括:
    根据预先存储的云租户和转换权限的对应关系、所述云租户标识,判断是否需要对所述数据请求进行网络协议版本转换;
    如果需要对所述数据请求进行网络协议版本转换,则执行所述根据预先存储的第一地址与第二地址的对应关系,确定所述第一地址对应的第二地址步骤。
  3. 根据权利要求1或2所述的方法,其中,所述第一网络协议版本为IPv6,所述第二网络协议版本为IPv4。
  4. 一种数据处理方法,其中,所述方法应用于云计算服务器,所述方法包括:
    接收网关设备发送的数据请求,所述数据请求为第二网络协议版本的报 文;
    获取所述数据请求的响应数据,所述响应数据为所述第二网络协议版本的报文;
    将所述响应数据发送至所述网关设备,以使所述网关设备将所述响应数据转换为第一网络协议版本的报文,并向所述用户终端发送转换后的响应数据。
  5. 根据权利要求4所述的方法,其中,所述方法还包括:
    接收云租户的地址注册请求,所述地址注册请求携带有待注册的第一地址,所述第一地址的网络协议版本为第一网络协议版本;
    为所述云租户分配第二地址,得到第一地址和第二地址的对应关系,所述第二地址的网络协议版本为第二网络协议版本;
    将所述第一地址和第二地址的对应关系发送至网关设备,以使所述网关设备在接收到用户终端发送的携带有第一地址的数据请求时,根据所述第一地址和第二地址的对应关系,确定所述第一地址对应的第二地址。
  6. 根据权利要求4或5所述的方法,其中,所述第一网络协议版本为IPv6,所述第二网络协议版本为IPv4。
  7. 一种数据处理装置,其中,所述装置应用于网关设备,所述装置包括:
    第一接收模块,设置为接收用户终端发送的携带有第一地址的数据请求,所述数据请求为第一网络协议版本的报文;
    确定模块,设置为根据预先存储的第一地址与第二地址的对应关系,确定所述第一地址对应的第二地址;
    第一转换模块,设置为将所述数据请求转换为第二网络协议版本的包含所述第二地址的报文,并根据所述第二地址将转换后的数据请求发送至云计算服务器;
    第二接收模块,设置为接收所述云计算服务器发送的基于所述转换后的 数据请求的响应数据,所述响应数据为所述第二网络协议版本的报文;
    第二转换模块,设置为将所述响应数据转换为所述第一网络协议版本的报文,并向所述用户终端发送转换后的响应数据。
  8. 根据权利要求7所述的装置,其中,所述装置还包括:
    判断模块,设置为在所述数据请求还携带有第一地址所属云租户的云租户标识的情况下,根据预先存储的云租户和转换权限的对应关系、所述云租户标识,判断是否需要对所述数据请求进行网络协议版本转换;
    所述确定模块,还设置为当需要对所述数据请求进行网络协议版本转换时,根据预先存储的第一地址与第二地址的对应关系,确定所述第一地址对应的第二地址。
  9. 根据权利要求7或8所述的装置,其中,所述第一网络协议版本为IPv6,所述第二网络协议版本为IPv4。
  10. 一种数据处理装置,其中,所述装置应用于云计算服务器,所述装置包括:
    第一接收模块,设置为接收网关设备发送的携带有第二地址的数据请求,所述数据请求为第二网络协议版本的报文;
    获取模块,设置为从所述第二地址处获取所述数据请求的响应数据,所述响应数据为所述第二网络协议版本的报文;
    发送模块,设置为将所述响应数据发送至所述网关设备,以使所述网关设备将所述响应数据转换为第一网络协议版本的报文,并向所述用户终端发送转换后的响应数据。
  11. 根据权利要求10所述的装置,其中,所述装置还包括:
    第二接收模块,设置为接收云租户的地址注册请求;
    分配模块,设置为为所述云租户分配第一地址和第二地址,得到第一地址和第二地址的对应关系,所述第一地址的网络协议版本为第一网络协议版 本,所述第二地址的网络协议版本为第二网络协议版本;
    所述发送模块,还设置为将所述第一地址和第二地址的对应关系发送至网关设备,以使所述网关设备在接收到用户终端发送的携带有第一地址的数据请求时,根据所述第一地址和第二地址的对应关系,确定所述第一地址对应的第二地址。
  12. 根据权利要求10或11所述的装置,其中,所述第一网络协议版本为IPv6,所述第二网络协议版本为IPv4。
  13. 一种电子设备,其中,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
    存储器,设置为存放计算机程序;
    处理器,设置为执行存储器上所存放的程序时,实现权利要求1-3,或权利要求4-6任一所述的方法步骤。
  14. 一种计算机可读存储介质,其中,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-3,或权利要求4-6任一所述的方法步骤。
  15. 一种可执行程序代码,其中,所述可执行程序代码设置为被运行以执行权利要求1-3,或权利要求4-6任一所述的方法步骤。
PCT/CN2020/117647 2019-09-26 2020-09-25 一种数据处理方法、装置、电子设备及存储介质 WO2021057889A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910916628.9A CN110677405B (zh) 2019-09-26 2019-09-26 一种数据处理方法、装置、电子设备及存储介质
CN201910916628.9 2019-09-26

Publications (1)

Publication Number Publication Date
WO2021057889A1 true WO2021057889A1 (zh) 2021-04-01

Family

ID=69079261

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/117647 WO2021057889A1 (zh) 2019-09-26 2020-09-25 一种数据处理方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN110677405B (zh)
WO (1) WO2021057889A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973111A (zh) * 2021-10-29 2022-01-25 北京天融信网络安全技术有限公司 数据转发方法、装置、网关设备及计算机可读存储介质
CN114363430A (zh) * 2021-12-24 2022-04-15 北京金山云网络技术有限公司 设备的控制方法及装置、系统、存储介质、电子设备
CN114710573A (zh) * 2022-06-07 2022-07-05 石家庄科林电气股份有限公司 一种基于ipv6的配电台区边端设备通信方法及装置
CN116470953A (zh) * 2023-04-26 2023-07-21 中国人民解放军32039部队 全时数据处理方法和装置

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677405B (zh) * 2019-09-26 2021-10-26 北京金山云网络技术有限公司 一种数据处理方法、装置、电子设备及存储介质
CN111901357B (zh) * 2020-08-06 2023-08-11 腾讯科技(深圳)有限公司 远程网络连接方法、系统、计算机设备和存储介质
CN113778499B (zh) * 2020-08-21 2023-09-26 北京京东振世信息技术有限公司 发布服务的方法、装置、设备和计算机可读介质
CN112311774B (zh) * 2020-10-16 2023-05-05 北京金山云网络技术有限公司 一种数据处理方法、装置、电子设备及存储介质
CN112583934B (zh) * 2020-12-28 2023-03-31 深信服科技股份有限公司 数据通信方法、设备及计算机可读存储介质
CN112600935A (zh) * 2020-12-28 2021-04-02 咪咕音乐有限公司 会话保持方法、装置、电子设备及存储介质
CN112839076B (zh) * 2020-12-29 2022-07-05 杭州海康威视系统技术有限公司 数据存储、读取方法、网关、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873450A (zh) * 2012-12-18 2014-06-18 中国电信股份有限公司 网络接入方法与系统
CN106161439A (zh) * 2016-06-30 2016-11-23 联想(北京)有限公司 一种信息处理方法及电子设备
CN108363670A (zh) * 2017-01-26 2018-08-03 华为技术有限公司 一种数据传输的方法、装置、设备和系统
CN108512909A (zh) * 2018-03-14 2018-09-07 日照职业技术学院 一种基于物联网的计算机远程控制系统
US20180375762A1 (en) * 2017-06-21 2018-12-27 Microsoft Technology Licensing, Llc System and method for limiting access to cloud-based resources including transmission between l3 and l7 layers using ipv6 packet with embedded ipv4 addresses and metadata
CN110677405A (zh) * 2019-09-26 2020-01-10 北京金山云网络技术有限公司 一种数据处理方法、装置、电子设备及存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7149225B2 (en) * 2003-03-10 2006-12-12 Cisco Technology, Inc. Arrangement for traversing an IPv4 network by IPv6 mobile nodes via a mobility anchor point
CN101610285B (zh) * 2009-06-15 2012-10-31 北京邮电大学 IPv4与IPv6共存网络中的P2P通信方法
CN103812956A (zh) * 2012-11-14 2014-05-21 中国电信股份有限公司 IPv4/IPv6应用转换方法、装置及智能移动终端
CN105898434A (zh) * 2014-11-19 2016-08-24 北京航天长峰科技工业集团有限公司 不同密级网络信息交换系统
US11343327B2 (en) * 2016-05-05 2022-05-24 Veniam, Inc. Systems and methods for managing vehicle OBD data in a network of moving things, for example including autonomous vehicle data
CN109150788A (zh) * 2017-06-13 2019-01-04 中兴通讯股份有限公司 控制网络数据传输的方法、装置、网关及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873450A (zh) * 2012-12-18 2014-06-18 中国电信股份有限公司 网络接入方法与系统
CN106161439A (zh) * 2016-06-30 2016-11-23 联想(北京)有限公司 一种信息处理方法及电子设备
CN108363670A (zh) * 2017-01-26 2018-08-03 华为技术有限公司 一种数据传输的方法、装置、设备和系统
US20180375762A1 (en) * 2017-06-21 2018-12-27 Microsoft Technology Licensing, Llc System and method for limiting access to cloud-based resources including transmission between l3 and l7 layers using ipv6 packet with embedded ipv4 addresses and metadata
CN108512909A (zh) * 2018-03-14 2018-09-07 日照职业技术学院 一种基于物联网的计算机远程控制系统
CN110677405A (zh) * 2019-09-26 2020-01-10 北京金山云网络技术有限公司 一种数据处理方法、装置、电子设备及存储介质

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973111A (zh) * 2021-10-29 2022-01-25 北京天融信网络安全技术有限公司 数据转发方法、装置、网关设备及计算机可读存储介质
CN113973111B (zh) * 2021-10-29 2023-12-22 珠海天融信网络安全技术有限公司 数据转发方法、装置、网关设备及计算机可读存储介质
CN114363430A (zh) * 2021-12-24 2022-04-15 北京金山云网络技术有限公司 设备的控制方法及装置、系统、存储介质、电子设备
CN114710573A (zh) * 2022-06-07 2022-07-05 石家庄科林电气股份有限公司 一种基于ipv6的配电台区边端设备通信方法及装置
CN116470953A (zh) * 2023-04-26 2023-07-21 中国人民解放军32039部队 全时数据处理方法和装置
CN116470953B (zh) * 2023-04-26 2024-02-23 中国人民解放军32039部队 全时数据处理方法和装置

Also Published As

Publication number Publication date
CN110677405B (zh) 2021-10-26
CN110677405A (zh) 2020-01-10

Similar Documents

Publication Publication Date Title
WO2021057889A1 (zh) 一种数据处理方法、装置、电子设备及存储介质
EP3886404B1 (en) Domain name server allocation method and device
US11558346B2 (en) Address management method and system, and device
JP6007458B2 (ja) パケット受信方法、ディープ・パケット・インスペクション装置及びシステム
US8489637B2 (en) User-based DNS server access control
US20200169880A1 (en) Network service system and network service method
US10250646B2 (en) Method and device for establishing channel
EP2633667B1 (en) System and method for on the fly protocol conversion in obtaining policy enforcement information
US10708226B2 (en) Domain name resolution
US20100281146A1 (en) Dynamic domain name service system and automatic registration method
US9565161B2 (en) Automatically replacing localhost as hostname in URL with fully qualified domain name or IP address
CN114025021B (zh) 一种跨Kubernetes集群的通信方法、系统、介质和电子设备
WO2017041562A1 (zh) 一种识别终端设备用户身份的方法和装置
CN112995163A (zh) 资源访问的鉴权方法及装置、存储介质、电子设备
US20230300104A1 (en) Apparatus and method to facilitate network address translation service
CN111031148B (zh) 一种地址解析方法、装置及电子设备和存储介质
CN109495362B (zh) 一种接入认证方法及装置
CN112995164B (zh) 资源访问的鉴权方法及装置、存储介质、电子设备
US20120300776A1 (en) Method for creating virtual link, communication network element, and ethernet network system
CN114221959A (zh) 服务共享方法、装置和系统
TW201733314A (zh) 執行請求指令的方法及相關的伺服器
US10680962B2 (en) Method and system for managing traffic of application programs, and terminal device containing the system
CN110198540B (zh) Portal认证方法及装置
WO2017000669A1 (zh) 域名资源记录缓存的集中管控方法、装置和相关设备
WO2023001050A1 (zh) 控制终端接入网络的方法、设备、系统、装置及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20868246

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20868246

Country of ref document: EP

Kind code of ref document: A1