CN111385203B - Data transmission method, device and equipment based on hybrid cloud and storage medium - Google Patents

Data transmission method, device and equipment based on hybrid cloud and storage medium Download PDF

Info

Publication number
CN111385203B
CN111385203B CN202010194531.4A CN202010194531A CN111385203B CN 111385203 B CN111385203 B CN 111385203B CN 202010194531 A CN202010194531 A CN 202010194531A CN 111385203 B CN111385203 B CN 111385203B
Authority
CN
China
Prior art keywords
data packet
client
mobile gateway
address
cloud server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010194531.4A
Other languages
Chinese (zh)
Other versions
CN111385203A (en
Inventor
林振钦
朱晓辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongpu Software Co Ltd
Original Assignee
Dongpu Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongpu Software Co Ltd filed Critical Dongpu Software Co Ltd
Priority to CN202010194531.4A priority Critical patent/CN111385203B/en
Publication of CN111385203A publication Critical patent/CN111385203A/en
Application granted granted Critical
Publication of CN111385203B publication Critical patent/CN111385203B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Abstract

The invention relates to the field of routing distribution, and discloses a data transmission method, a data transmission device, data transmission equipment and a data transmission storage medium based on a hybrid cloud, which are used for solving the problem of network delay when a user uses a network. The data transmission method based on the hybrid cloud comprises the following steps: trying to receive a first data packet sent by a private cloud server, caching the first data packet in a client if the first data packet is successfully received, and receiving a second data packet sent by a public cloud server and caching the second data packet in the client if the first data packet is not successfully received; detecting connection information between the client and the mobile gateway according to a preset Internet packet detector; when the connection state between the client and the mobile gateway is communication, accessing the mobile gateway through the target access IP address; when the connection state between the client and the mobile gateway is not connected, sending a service request to the mobile gateway through the public cloud server; and receiving a reply data packet sent by the mobile gateway.

Description

Data transmission method, device and equipment based on hybrid cloud and storage medium
Technical Field
The present invention relates to the field of routing distribution, and in particular, to a data transmission method, apparatus, device, and storage medium based on a hybrid cloud.
Background
With the continuous development of technology, mobile applications have gradually penetrated into various industries, and the speed of network connection rate in mobile applications is one of the standards for judging the excellence of mobile applications. Since the mobile application network is more complex than the conventional telecommunication network, the network influence factors of the mobile application are many, such as: in order to further improve user experience, the internet public can build a data center in different places to solve the disaster tolerance problem of different places machine rooms, such as the moving speed, the geographical position and the weather condition of a user. In addition, in order to solve the problem of network delay caused by network access across operators, a machine room generally has network entries of multiple operators at the same time, and at this time, when a mobile application accesses a service server, a local Domain Name System (DNS) is usually used to query a local DNS server, and the queried entry Internet Protocol (IP) address is returned by the local DNS server of the operator, and finally, the mobile application directly accesses the obtained IP address.
In the prior art, once a scene of cross-operator occurs, because the service quality policy of an operator can perform degradation processing on the network access traffic of other operators, the network delay of network transmission between the cross-operators is high, and a situation that the service is unavailable when the service is located in a special area exists.
Disclosure of Invention
The invention mainly aims to solve the problem of network delay when a user uses a network.
The invention provides a data transmission method based on a hybrid cloud in a first aspect, which comprises the following steps: trying to receive a first data packet sent by a private cloud server, if the first data packet is successfully received, caching the first data packet in a client, if the first data packet is not successfully received, receiving a second data packet sent by a public cloud server, and caching the second data packet in the client, wherein the first data packet and the second data packet are both a target Internet Protocol (IP) address list carrying access mobile gateways, and the target IP address list comprises target IP addresses at different delay moments; detecting connection information between the client and the mobile gateway according to a preset Internet packet detector, wherein the connection information is used for indicating whether the connection state between the client and the mobile gateway is connected or not; when the connection state between the client and the mobile gateway is communication, accessing the mobile gateway through a target access IP address, wherein the target access IP address is the IP address with the shortest delay time in the target IP addresses with different delay times; when the connection state between the client and the mobile gateway is not connected, sending a service request to the mobile gateway through a public cloud server; and receiving a reply data packet sent by the mobile gateway, wherein the reply data packet is reply service data acquired by the mobile gateway in a service server according to the service request.
Optionally, in a first implementation manner of the first aspect of the present invention, the detecting, by a preset internet packet explorer, connection information between the client and the mobile gateway, where the connection information is used to indicate whether a connection state between the client and the mobile gateway is connected includes: sending a display-back request message to the mobile gateway through the client based on a preset Internet packet explorer; judging whether the client receives the echoing response message, wherein the echoing response message is a response message made by the private cloud server according to the echoing request message; if the client receives the echoing response message, the detected connection information indicates that the connection state between the client and the mobile gateway is connected; and if the client does not receive the echo response message, the detected connection message indicates that the connection state between the client and the mobile gateway is disconnected.
Optionally, in a second implementation manner of the first aspect of the present invention, when the connection state between the client and the mobile gateway is connected, the accessing the mobile gateway through a target access IP address, where the target access IP address is an IP address with a shortest delay time among the target IP addresses with different delay times, includes: when the connection state between the client and the mobile gateway is communication, obtaining delay moments of a plurality of target IP addresses in a target IP address list; screening out the shortest delay time from the delay times of the target IP addresses, and taking the target IP address corresponding to the shortest delay time as a target access IP address; and accessing the mobile gateway through the target access IP address, wherein the target access IP address is the IP address with the shortest delay time in the target IP addresses with different delay times.
Optionally, in a third implementation manner of the first aspect of the present invention, when the connection state between the client and the mobile gateway is not connected, the sending, by the public cloud server, the service request to the mobile gateway includes: when the connection state between the client and the mobile gateway is not communicated, receiving a third data packet sent by a public cloud server, and caching the third data packet in the client, wherein the third data packet carries an IP address of a preset proxy server, and the public cloud server comprises the preset proxy server; based on the IP address of the preset proxy server, accessing the preset proxy server through the client and sending a service request to the preset proxy server; and forwarding the service request to the mobile gateway by the preset proxy server.
Optionally, in a fourth implementation manner of the first aspect of the present invention, when the connection state between the client and the mobile gateway is not connected, receiving a third data packet sent by a public cloud server, and caching the third data packet in the client, where the third data packet carries an IP address of a preset proxy server, where the public cloud server includes the preset proxy server and includes: when the connection state between the client and the mobile gateway is not communicated, accessing a public cloud server based on the IP address of the client, wherein the public cloud server comprises a preset proxy server; in the public cloud server, acquiring an IP address of a preset proxy server according to a preset proxy server domain name cached in the client and a preset mapping relation, wherein the preset mapping relation is a mapping relation between the preset proxy server domain name and the IP address corresponding to the preset proxy server; and receiving a third data packet sent by the preset proxy server, and caching the third data packet in the client, wherein the third data packet carries the IP address of the preset proxy server.
Optionally, in a fifth implementation manner of the first aspect of the present invention, in the attempting to receive a first data packet sent by a private cloud server, if the first data packet is successfully received, the first data packet is cached in a client, if the first data packet is not successfully received, a second data packet sent by a public cloud server is received, and the second data packet is cached in the client, where the first data packet and the second data packet are both target Internet Protocol (IP) address lists carrying access mobile gateways, and the target IP address lists include target IP addresses at different delay times, and before the target IP addresses, the method further includes: the method comprises the steps of accessing a cloud server through a client, creating a data packet in the cloud server according to a service request of the client, wherein the cloud server is a private cloud server or a public cloud server, and the data packet is a first data packet or a second data packet.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the accessing, by a client, a cloud server, and creating a data packet in the cloud server according to a service request of the client, where the cloud server is a private cloud server or a public cloud server, and the data packet is a first data packet or a second data packet, includes: the method comprises the steps of obtaining an IP address of a cloud server cached in a client, and accessing the cloud server based on the IP address of the cloud server, wherein the cloud server is a private cloud server or a public cloud server; acquiring a service request of the client; and inquiring the target IP address in the cloud server according to the corresponding relation between a preset mobile gateway domain name and the IP address of the mobile gateway and the corresponding relation between the service request and the preset mobile gateway domain name, and creating a data packet carrying the target IP address, wherein the data packet is a first data packet or a second data packet.
The second aspect of the present invention provides a data transmission device based on a hybrid cloud, including: the system comprises a cache module, a first data packet and a second data packet, wherein the cache module is used for trying to receive the first data packet sent by a private cloud server, caching the first data packet in a client if the first data packet is successfully received, receiving the second data packet sent by a public cloud server if the first data packet is not successfully received, and caching the second data packet in the client, the first data packet and the second data packet are both a target internet connection IP address list carrying access to a mobile gateway, and the target IP address list comprises target IP addresses at different delay moments; the detection module is used for detecting the connection information between the client and the mobile gateway according to a preset Internet packet detector, wherein the connection information is used for indicating whether the connection state between the client and the mobile gateway is connected or not; the first access module is used for accessing the mobile gateway through a target access IP address when the connection state between the client and the mobile gateway is communication, wherein the target access IP address is the IP address with the shortest delay time in the target IP addresses with different delay times; the second access module is used for sending a service request to the mobile gateway through a public cloud server when the connection state between the client and the mobile gateway is not connected; and the receiving module is used for receiving a reply data packet sent by the mobile gateway, wherein the reply data packet is reply service data acquired by the mobile gateway in a service server according to the service request.
Optionally, in a first implementation manner of the second aspect of the present invention, the detection module is specifically configured to: sending a display-back request message to the mobile gateway through the client based on a preset Internet packet explorer; judging whether the client receives the echoing response message, wherein the echoing response message is a response message made by the private cloud server according to the echoing request message; if the client receives the echoing response message, the detected connection information indicates that the connection state between the client and the mobile gateway is connected; and if the client does not receive the echo response message, the detected connection message indicates that the connection state between the client and the mobile gateway is disconnected.
Optionally, in a second implementation manner of the second aspect of the present invention, the first access module is specifically configured to: when the connection state between the client and the mobile gateway is communication, obtaining delay moments of a plurality of target IP addresses in a target IP address list; screening out the shortest delay time from the delay times of the target IP addresses, and taking the target IP address corresponding to the shortest delay time as a target access IP address; and accessing the mobile gateway through the target access IP address, wherein the target access IP address is the IP address with the shortest delay time in the target IP addresses with different delay times.
Optionally, in a third implementation manner of the second aspect of the present invention, the second access module includes: the cache unit is used for receiving a third data packet sent by a public cloud server when the connection state between the client and the mobile gateway is not communicated, and caching the third data packet in the client, wherein the third data packet carries an IP address of a preset proxy server, and the public cloud server comprises the preset proxy server; a sending unit, configured to access the preset proxy server through the client based on the IP address of the preset proxy server, and send a service request to the preset proxy server; and the forwarding unit is used for forwarding the service request to the mobile gateway by the preset proxy server.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the cache unit is specifically configured to: when the connection state between the client and the mobile gateway is not communicated, accessing a public cloud server based on the IP address of the client, wherein the public cloud server comprises a preset proxy server; in the public cloud server, acquiring an IP address of a preset proxy server according to a preset proxy server domain name cached in the client and a preset mapping relation, wherein the preset mapping relation is a mapping relation between the preset proxy server domain name and the IP address corresponding to the preset proxy server; and receiving a third data packet sent by the preset proxy server, and caching the third data packet in the client, wherein the third data packet carries the IP address of the preset proxy server.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the hybrid cloud-based data transmission apparatus further includes: the access module is used for accessing the cloud server through the client and creating a data packet in the cloud server according to a service request of the client, the cloud server is a private cloud server or a public cloud server, and the data packet is a first data packet or a second data packet.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the access module is specifically configured to: the method comprises the steps of obtaining an IP address of a cloud server cached in a client, and accessing the cloud server based on the IP address of the cloud server, wherein the cloud server is a private cloud server or a public cloud server; acquiring a service request of the client; and inquiring the target IP address in the cloud server according to the corresponding relation between a preset mobile gateway domain name and the IP address of the mobile gateway and the corresponding relation between the service request and the preset mobile gateway domain name, and creating a data packet carrying the target IP address, wherein the data packet is a first data packet or a second data packet.
A third aspect of the present invention provides a data transmission device based on a hybrid cloud, including: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the hybrid cloud-based data transfer device to perform the hybrid cloud-based data transfer method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the hybrid cloud-based data transmission method described above.
In the technical scheme provided by the invention, a first data packet sent by a private cloud server is tried to be received, if the first data packet is successfully received, the first data packet is cached in a client, if the first data packet is not successfully received, a second data packet sent by a public cloud server is received, the second data packet is cached in the client, the first data packet and the second data packet are both a target Internet Protocol (IP) address list carrying an access mobile gateway, and the target IP address list comprises target IP addresses at different delay moments; detecting connection information between the client and the private cloud server according to a preset Internet packet detector, wherein the connection information is used for indicating whether the connection state between the client and the private cloud server is connected or not; when the connection state between the client and the private cloud server is communicated, accessing the mobile gateway through a target access IP address, wherein the target access IP address is the IP address with the shortest delay time in the target IP addresses with different delay times; when the connection state between the client and the private cloud server is not connected, a service request is sent to the mobile gateway through a public cloud server; and receiving a reply data packet sent by the mobile gateway, wherein the reply data packet is reply service data acquired by the mobile gateway in a service server according to the service request. In the embodiment of the invention, the IP address of the mobile gateway to be accessed by the client is acquired by accessing the public cloud server or the private cloud server in different modes, so that the time for the client to acquire the IP address of the mobile gateway is reduced, and the network delay of network transmission among operators is reduced.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a data transmission method based on a hybrid cloud according to an embodiment of the present invention;
fig. 2 is a schematic diagram of another embodiment of a data transmission method based on a hybrid cloud according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an embodiment of a hybrid cloud-based data transmission apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another embodiment of the data transmission device based on the hybrid cloud in the embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a data transmission device based on a hybrid cloud in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a data transmission method, a data transmission device, data transmission equipment and a data transmission storage medium based on a hybrid cloud.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, an embodiment of the data transmission method based on a hybrid cloud in the embodiment of the present invention includes:
101. trying to receive a first data packet sent by a private cloud server, caching the first data packet in a client if the first data packet is successfully received, receiving a second data packet sent by a public cloud server if the first data packet is not successfully received, caching the second data packet in the client, wherein the first data packet and the second data packet are both a target Internet Protocol (IP) address list carrying access mobile gateways, and the target IP address list comprises target IP addresses at different delay times;
it is to be understood that the execution subject of the present invention may be a data transmission device based on a hybrid cloud, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a terminal as an execution subject.
The method comprises the steps that a terminal receives a first data packet which is sent by a private cloud server and carries a target internet interconnection IP address list for accessing a mobile gateway, if the first data packet is successfully received, the first data packet is cached in a client, if the first data packet is not successfully received, a second data packet sent by a public cloud server is received, the second data packet is cached in the client, wherein the target IP address list comprises target IP addresses at different delay moments, and the target IP addresses are IP addresses needing to be accessed in a client service request.
It should be noted that private clouds are built for individual use by a single user, thus providing the most effective control over data, security and quality of service. Private clouds can be deployed within the firewall of an enterprise data center or they can be deployed in a secure hosting site. The private cloud server transfers the data processing process from the personal terminal computer to the data center in the local area network by using a stable and private transmission channel of the local area network, and a user can share and flexibly use the computing capacity. The private cloud server is equivalent to a computer without a screen display device, the mobile application client is equivalent to a remote desktop of the computer, a user accesses the private cloud server through the mobile application client, different users can be interconnected through the mobile application client, and the private cloud servers of different users can also interact.
The terminal receives a first data packet sent by a private cloud server or a second data packet sent by a public cloud server, the two data packets respectively comprise a plurality of target IP addresses of which the client needs to access the mobile gateway, the IP addresses are IP addresses capable of accessing the mobile gateway, the mobile gateway is also called an internet connector or a protocol converter, the mobile gateway realizes the effect of network interconnection on a network layer, is only used for interconnection of two networks with different high-level protocols, is a computer system or equipment serving as a conversion task, and can realize the purpose of accessing the target IP addresses by the client through the mobile gateway.
102. Detecting connection information between the client and the mobile gateway according to a preset Internet packet detector, wherein the connection information is used for indicating whether the connection state between the client and the mobile gateway is connected or not;
and the terminal detects whether the connection state between the client and the mobile gateway is connected or not according to a preset Internet packet detector.
Here, the terminal probes connection information between the client and the mobile gateway using a preset internet packet finder (PING). PING is a program for testing network connection amount, which works in a service command of an application layer in a TCP/IP network architecture, and mainly sends a response request message of internet message control protocol (ICMP) to a specific destination host, and detects a network connection state between a local host and the destination host according to the sending and receiving conditions of the response request message. The PING is mainly based on the principle that firstly, the local host sends a playback request message to the target host, the target host returns a playback response message to the local host after receiving the playback request message, and if the local host receives the playback response message, the PING is successful, which indicates that the connection state between the local host and the target host is connected. Wherein, the time of the host computer waiting for the message to be sent is not more than 1 second.
It should be noted that PING success does not necessarily mean that the TCP/IP configuration is correct, and a large number of packet exchange operations may be performed between the local host and the destination host until the TCP/IP configuration is determined to be correct. If the PING is successfully executed and the network between the local host and the destination host is still unavailable, the software configuration of the network system is incorrect, and the successful PING only ensures that a connected physical path exists between the current host and the destination host.
103. When the connection state between the client and the mobile gateway is communication, accessing the mobile gateway through a target access IP address, wherein the target access IP address is the IP address with the shortest delay time in the target IP addresses with different delay times;
and when the connection state between the client and the mobile gateway is connected, the terminal accesses the mobile gateway through the IP address with the shortest delay time in the target IP addresses with different delay times, namely the target access IP address.
It can be understood that when the connection state between the client and the mobile gateway is connected, it indicates that the client can use the mobile gateway accessed through the target IP address, that is, it indicates that the route from the operator to the self-established machine room is smooth, and the terminal can select the target access IP address from the target IP address list and access the mobile gateway through the target access IP address. The reason that the mobile gateway is accessed by using the target access IP address is that after the terminal acquires a plurality of IP addresses with different delay moments, the IP address with shorter delay moment is selected, so that the time for the client to acquire the IP address of the mobile gateway is shortened, the client can access the mobile gateway more quickly and effectively, and the efficiency for the client to access the mobile gateway is improved.
104. When the connection state between the client and the mobile gateway is not connected, sending a service request to the mobile gateway through the public cloud server;
and when the connection state between the client and the mobile gateway is not connected, the terminal sends a service request to the mobile gateway through the public cloud server.
When the connection state between the client and the mobile gateway is not connected, the client cannot use the obtained target IP address to access the mobile gateway, namely, the route from the operator to the self-built machine room is not connected, at this time, the terminal accesses the preset proxy server in the public cloud server through the client, sends a service request of the client for accessing the target IP address to the preset proxy server, and finally forwards the service request to the accessed mobile gateway through the preset proxy server.
It is to be understood that the public cloud generally refers to a cloud that can be used by a third party provider for a user, and is generally available through the internet, and the core attribute of the public cloud is a shared resource service. The public cloud is used as a supporting platform, and can integrate upstream service providers and downstream end users to build a new value chain and an ecosystem. The public cloud server is a cloud computing server which transfers a data processing process from a personal computer or a server to a large-sized cloud computing center by using the transmission capability of a high-speed internet, and provides a user with computing power and storage power, and the user can use the computing power as well as electric power, tap water and other public facilities and can charge according to the usage amount.
105. And receiving a reply data packet sent by the mobile gateway, wherein the reply data packet is reply service data acquired by the mobile gateway in the service server according to the service request.
And the terminal receives a reply data packet sent by the mobile gateway, wherein the reply data packet is reply service data acquired by the mobile gateway in the service server according to the service request.
After the mobile gateway receives a service request of a client for accessing a target IP address, the mobile gateway forwards the service request to a corresponding service server, acquires required service data in the service server according to the service request, returns the inquired service data to the mobile gateway by the service server, and finally returns the inquired service data to the client by the mobile gateway, so that the process of accessing the target IP address through the client once is completed.
In the method, two different cloud computing are utilized to obtain the target IP address of the mobile gateway, one is a public cloud, the other is a private cloud, the whole solution and technical architecture including private cloud and public cloud services are called as a hybrid cloud, the hybrid cloud is connected between the private cloud and the public cloud through an internet private line or a VPN (virtual private network), the private cloud and the public cloud are changed into a complete internal network, the data security of the private cloud is guaranteed, the product function of the public cloud and the flexibility of computing resources can be utilized, and the method is the most typical cloud computing deployment scheme.
In the embodiment of the invention, the IP address of the mobile gateway to be accessed by the client is acquired by accessing the public cloud server or the private cloud server in different modes, so that the time for the client to acquire the IP address of the mobile gateway is reduced, and the network delay of network transmission among operators is reduced.
Referring to fig. 2, another embodiment of the data transmission method based on the hybrid cloud according to the embodiment of the present invention includes:
201. accessing a cloud server through a client, and creating a data packet in the cloud server according to a service request of the client, wherein the cloud server is a private cloud server or a public cloud server, and the data packet is a first data packet or a second data packet;
the terminal accesses the cloud server through the client and creates a data packet in the cloud server according to a service request of the client, wherein the cloud server is a private cloud server or a public cloud server, and the data packet is a first data packet or a second data packet. Specifically, the method comprises the following steps: firstly, a terminal acquires an IP address of a cloud server cached in a client, and accesses the cloud server based on the IP address of the cloud server, wherein the cloud server is a private cloud server or a public cloud server; secondly, the terminal acquires a service request of the client; and finally, the terminal inquires a target IP address in the cloud server according to the corresponding relation between the preset mobile gateway domain name and the IP address of the mobile gateway and the corresponding relation between the service request and the preset mobile gateway domain name, and creates a data packet carrying the target IP address, wherein the data packet is a first data packet or a second data packet.
It should be noted that, in the process of accessing the mobile gateway, a client has a conversion between a server domain name and a server IP address, each server domain name corresponds to one server IP address, and a system displaying a mapping relationship between the server domain name and the corresponding server IP address is a Domain Name System (DNS), and a DNS service is used to convert the domain name into the corresponding IP address when a network request is made, so that a user can access the internet more conveniently without remembering an IP character string that can be directly read by a machine, and therefore, a terminal can access a cloud server through the IP address of the cloud server cached in the client. The cloud server refers to a private cloud server or a public cloud server, and the terminal generates a first data packet in the private cloud server and generates a second data packet in the public cloud server.
The terminal obtains a service request of the client, that is, a target IP address that the client needs to access, where the target IP address is an IP address of a mobile gateway that needs to pass through in the process of accessing the service server, and the service server may refer to a website corresponding to a service enterprise, for example: tencent official website, Baiteng network, etc. When a client needs to access a service server, a conversion between networks needs to be performed through a mobile gateway, that is, the mobile gateway is essentially an IP address of one network to another network, such as: setting a network A and a network B to exist, wherein the IP address range of the network A is 192.168.1.1-192.168.1.254, and the subnet mask is 255.255.255.0; the IP address range of the network B is "192.168.2.1 to 192.168.2.254", the subnet mask is 255.255.255.0, and TCP/IP communication between the two networks is not possible without a router, and even if the two networks are connected to the same switch (or hub), the TCP/IP protocol determines that the hosts in the two networks are in different networks according to the subnet mask (255.255.255.0). Communication between the two networks must be accomplished through a gateway. Therefore, when accessing the service server, the IP address of the mobile gateway needs to be determined in advance. In addition, when the client accesses each service server, a corresponding mobile gateway is provided, a corresponding relation table between the service request and the domain name of the preset mobile gateway exists, the terminal can inquire the corresponding preset mobile gateway domain name, and the service request is an instruction that the client needs to access a certain target service server.
202. Trying to receive a first data packet sent by a private cloud server, caching the first data packet in a client if the first data packet is successfully received, receiving a second data packet sent by a public cloud server if the first data packet is not successfully received, caching the second data packet in the client, wherein the first data packet and the second data packet are both a target Internet Protocol (IP) address list carrying access mobile gateways, and the target IP address list comprises target IP addresses at different delay times;
the terminal tries to receive a first data packet which is sent by a private cloud server and carries a target internet interconnection IP address list for accessing a mobile gateway, if the first data packet is successfully received, the first data packet is cached in a client, if the first data packet is not successfully received, a second data packet sent by a public cloud server is received, the second data packet is cached in the client, and the target IP address list comprises target IP addresses at different delay moments.
The terminal receives a first data packet sent by the private cloud server, the first data packet comprises a plurality of target IP addresses of a client needing to access the mobile gateway, the IP addresses are IP addresses capable of accessing the mobile gateway, the mobile gateway is also called an internet connector or a protocol converter, the mobile gateway realizes the effect of network interconnection on a network layer, is only used for the interconnection of two networks with different high-level protocols, is a computer system or equipment serving as a conversion task, and can realize the purpose of accessing the target IP addresses by the client through the mobile gateway. It should be noted that, when there is an abnormality in the network between the private cloud server and the client, the client may receive the second data packet sent by the public server, so as to obtain multiple IP addresses that need to access the mobile gateway.
In addition, a target IP address list is carried in the first data packet and the second data packet, the target IP address list comprises a plurality of target IP addresses with different delay times, the terminal detects the connectivity and the connection speed of the target IP addresses, the target access IP addresses with the best return availability are screened out, and the mobile gateway is accessed by using the target access IP addresses.
203. Detecting connection information between the client and the mobile gateway according to a preset Internet packet detector, wherein the connection information is used for indicating whether the connection state between the client and the mobile gateway is connected or not;
and the terminal detects whether the connection state between the client and the mobile gateway is connected or not according to a preset Internet packet detector. Specifically, the method comprises the following steps: firstly, the terminal sends a playback request message to a mobile gateway through a client based on a preset Internet packet explorer; secondly, the terminal judges whether the client receives a redisplay response message, wherein the redisplay response message is a response message made by the private cloud server according to the redisplay request message; if the client receives the echo response message, the connection information detected by the terminal is that the connection state between the client and the mobile gateway is connected; if the client does not receive the echo response message, the connection message detected by the terminal is that the connection state between the client and the mobile gateway is disconnected.
The terminal judges whether the mobile gateway and the client are in a connected state or not by receiving a echoing response message responded by the mobile gateway, wherein the echoing response message and the echoing request message are both encapsulated in an IP packet, the IP protocol is a connectionless unreliable data packet protocol and cannot ensure that data is sent to the client, so that the network ensures the mutual transmission of the data by means of an Internet Control Message Protocol (ICMP), and when the transmitted data packet is abnormal, the ICMP encapsulates abnormal information in the IP packet and then transmits the abnormal information back to the source host.
For example, the following steps are carried out: the terminal sends a playback request message with the survival period of TTL 1 to the mobile gateway through the client, once a router is encountered in the process of transmitting the message, the value of TTL becomes 0, so the router will drop the data packet and then generate an error type (overtime) echo response message to return to the client, at this time the client will obtain the IP of the first routing node and the related connection information, secondly, the terminal sends a message of requesting for showing back with TTL 2 to the mobile gateway through the client, repeats the above steps, the client knows the IP of the second routing node and the relevant connection information, if the relevant connection information of one router is not received, the connection state between the client and the mobile gateway is disconnected.
204. When the connection state between the client and the mobile gateway is communication, accessing the mobile gateway through a target access IP address, wherein the target access IP address is the IP address with the shortest delay time in the target IP addresses with different delay times;
and when the connection state between the client and the mobile gateway is connected, the terminal accesses the mobile gateway through the IP address with the shortest delay time in the target IP addresses with different delay times, namely the target access IP address. Specifically, the method comprises the following steps: when the connection state between the client and the mobile gateway is communication, the terminal firstly acquires delay time of a plurality of target IP addresses in a target IP address list; then the terminal screens out the shortest delay time from the delay times of a plurality of target IP addresses, and takes the target IP address corresponding to the shortest delay time as a target access IP address; and finally, the terminal accesses the mobile gateway through a target access IP address, wherein the target access IP address is the IP address with the shortest delay time in the target IP addresses with different delay times.
It can be understood that when the connection state between the client and the mobile gateway is connected, it indicates that the client can use the mobile gateway accessed through the target IP address, that is, it indicates that the route from the operator to the self-established machine room is smooth, and the terminal can select the target access IP address from the target IP address list and access the mobile gateway through the target access IP address. The reason that the mobile gateway is accessed by using the target access IP address is that after the terminal acquires a plurality of IP addresses with different delay moments, the IP address corresponding to the shorter delay moment is selected, so that the time for the client to acquire the IP address of the mobile gateway is reduced, the client can access the mobile gateway more quickly and effectively, and the efficiency for the client to access the mobile gateway is improved.
For example, the following steps are carried out: when the client receives the target IP address list for accessing the mobile gateway, the obtained information is as follows: "64 bytes from 111.13.101.208: icmp _ seq ═ 0ttl ═ 49time ═ 31.092ms, and "64 bytes from 111.13.101.208: icmp _ seq ═ 1ttl ═ 49time ═ 33.967ms, and "64 byte from 111.13.101.208: icmp _ seq ═ 2ttl ═ 49time ═ 32.905ms, "64 bytes from 111.13.101.208: icmp _ seq ═ 3ttl ═ 49time ═ 35.164ms, "64 bytes from 111.13.101.208: icmp _ seq ═ 4ttl ═ 49time ═ 39.879ms ", so that the information in the target IP address list can be specified: the IP addresses of the accessed mobile gateways are the same, but the delay time of the IP address of each accessed mobile gateway is different, so that the terminal screens out an optimal delay time with the shortest delay time from a plurality of times, namely the IP address of the corresponding mobile gateway is the target access IP address when the time is 31.092.
205. When the connection state between the client and the mobile gateway is not connected, sending a service request to the mobile gateway through the public cloud server;
and when the connection state between the client and the mobile gateway is not connected, the terminal sends a service request to the mobile gateway through the public cloud server. Specifically, the method comprises the following steps: when the connection state between the client and the mobile gateway is not communicated, the first terminal receives a third data packet which carries an IP address of a preset proxy server and is sent by a public cloud server, and caches the third data packet in the client, wherein the public cloud server comprises the preset proxy server; secondly, the terminal accesses the preset proxy server through the client based on the IP address of the preset proxy server and sends a service request to the preset proxy server; and finally, the terminal forwards the service request to the mobile gateway through a preset proxy server.
The preset proxy server is referred to herein as nginnx, which is a high performance hypertext transfer protocol HTTP and reverse proxy web server. When the nginnx is used as the proxy server, the nginnx can directly support the external service of the hypertext preprocessor PHP program inside the nginnx, and can also support the external service of the PHP program as the HTTP proxy service. The client forwards the service request of the client to the mobile gateway through the preset proxy server, so as to realize the purpose that the client accesses the service server.
Here, the terminal receives a third data packet which carries an IP address of the preset proxy server and is sent by the public cloud server, and caches the third data packet in the client, where the public cloud server includes the preset proxy server, specifically: when the connection state between the client and the mobile gateway is not connected, accessing a public cloud server based on the IP address of the client, wherein the public cloud server comprises a preset proxy server; in a public cloud server, acquiring an IP address of a preset proxy server according to a preset proxy server domain name cached in a client and a preset mapping relation, wherein the preset mapping relation is the mapping relation between the preset proxy server domain name and the IP address of the corresponding preset proxy server; and receiving a third data packet sent by the preset proxy server, and caching the third data packet in the client, wherein the third data packet carries the IP address of the preset proxy server.
The preset mapping relationship here refers to a mapping relationship between a preset proxy server domain name and an IP address of a corresponding preset proxy server, and the corresponding relationship between the preset mobile gateway domain name and the IP address of the mobile gateway in the synchronization step 201 is the same, and all the mapping relationships can be resolved through a DNS system to find the mapping relationship between the preset proxy server domain name and the IP address of the corresponding preset proxy server, such as: the preset proxy server domain name is: the IP address of the corresponding preset proxy server is as follows: https:// www.tencent.com/.
206. And receiving a reply data packet sent by the mobile gateway, wherein the reply data packet is reply service data acquired by the mobile gateway in the service server according to the service request.
And the terminal receives a reply data packet sent by the mobile gateway, wherein the reply data packet is reply service data acquired by the mobile gateway in the service server according to the service request.
After the mobile gateway receives a service request of a client for accessing a target IP address, the mobile gateway forwards the service request to a corresponding service server, acquires required service data in the service server according to the service request, returns the inquired service data to the mobile gateway by the service server, and finally returns the inquired service data to the client by the mobile gateway, so that the process of accessing the target IP address through the client once is completed.
In the application, two different cloud computing are utilized to obtain the target IP address, one is a public cloud, the other is a private cloud, the whole solution and technical architecture including private cloud and public cloud services are called as a hybrid cloud, the hybrid cloud is connected between the private cloud and the public cloud through an internet private line or a VPN (virtual private network), the private cloud and the public cloud are changed into a complete internal network, the security of private cloud data is guaranteed, the product functions of the public cloud and the flexibility of computing resources can be utilized, and the cloud computing deployment scheme is the most typical cloud computing deployment scheme. When the client cannot be connected with the corresponding mobile gateway IP address through the private cloud server so as to achieve the purpose of accessing the service server, the terminal forwards the service requirement of the client through a preset proxy server in the public cloud server so as to achieve the purpose of accessing the service server by the client.
In the embodiment of the invention, the IP address of the mobile gateway to be accessed by the client is acquired by accessing the public cloud server or the private cloud server in different modes, so that the time for the client to acquire the IP address of the mobile gateway is reduced, and the network delay of network transmission among operators is reduced.
With reference to fig. 3, the data transmission method based on the hybrid cloud in the embodiment of the present invention is described above, and a data transmission device based on the hybrid cloud in the embodiment of the present invention is described below, where an embodiment of the data transmission device based on the hybrid cloud in the embodiment of the present invention includes:
the cache module 301 is configured to attempt to receive a first data packet sent by a private cloud server, cache the first data packet in a client if the first data packet is successfully received, receive a second data packet sent by a public cloud server if the first data packet is not successfully received, and cache the second data packet in the client, where the first data packet and the second data packet are both a target Internet Protocol (IP) address list carrying access to a mobile gateway, and the target IP address list includes target IP addresses at different delay times;
a detection module 302, configured to detect connection information between the client and the mobile gateway according to a preset internet packet finder, where the connection information is used to indicate whether a connection state between the client and the mobile gateway is connected;
the first access module 303 is configured to access the mobile gateway through a target access IP address when the connection state between the client and the mobile gateway is connected, where the target access IP address is an IP address with the shortest delay time among target IP addresses with different delay times;
the second access module 304 is configured to send a service request to the mobile gateway through the public cloud server when the connection state between the client and the mobile gateway is not connected;
the receiving module 305 is configured to receive a reply data packet sent by the mobile gateway, where the reply data packet is reply service data acquired by the mobile gateway in the service server according to the service request.
In the embodiment of the invention, the IP address of the mobile gateway to be accessed by the client is acquired by accessing the public cloud server or the private cloud server in different modes, so that the time for the client to acquire the IP address of the mobile gateway is reduced, and the network delay of network transmission among operators is reduced.
Referring to fig. 4, another embodiment of the data transmission apparatus based on a hybrid cloud according to the embodiment of the present invention includes:
the cache module 301 is configured to attempt to receive a first data packet sent by a private cloud server, cache the first data packet in a client if the first data packet is successfully received, receive a second data packet sent by a public cloud server if the first data packet is not successfully received, and cache the second data packet in the client, where the first data packet and the second data packet are both a target Internet Protocol (IP) address list carrying access to a mobile gateway, and the target IP address list includes target IP addresses at different delay times;
a detection module 302, configured to detect connection information between the client and the mobile gateway according to a preset internet packet finder, where the connection information is used to indicate whether a connection state between the client and the mobile gateway is connected;
the first access module 303 is configured to access the mobile gateway through a target access IP address when the connection state between the client and the mobile gateway is connected, where the target access IP address is an IP address with the shortest delay time among target IP addresses with different delay times;
the second access module 304 is configured to send a service request to the mobile gateway through the public cloud server when the connection state between the client and the mobile gateway is not connected;
the receiving module 305 is configured to receive a reply data packet sent by the mobile gateway, where the reply data packet is reply service data acquired by the mobile gateway in the service server according to the service request.
Optionally, the detection module 302 may be further specifically configured to:
based on a preset Internet packet search device, sending a display request message to a mobile gateway through a client;
judging whether the client receives a redisplay response message, wherein the redisplay response message is a response message made by the private cloud server according to the redisplay request message;
if the client receives the echo response message, the detected connection information indicates that the connection state between the client and the mobile gateway is connected;
if the client end does not receive the echo response message, the detected connection message is that the connection state between the client end and the mobile gateway is disconnected.
Optionally, the first access module 303 may be further specifically configured to:
when the connection state between the client and the mobile gateway is communication, obtaining delay time of a plurality of target IP addresses in a target IP address list;
screening out the optimal delay time with the shortest delay time from the delay times of the target IP addresses, and taking the target IP address corresponding to the optimal delay time as a target access IP address;
and accessing the mobile gateway through the target access IP address, wherein the target access IP address is the IP address with the shortest delay time in the target IP addresses with different delay times.
Optionally, the second access module 304 includes:
the caching unit 3041, configured to receive a third data packet sent by the public cloud server and cache the third data packet in the client when the connection state between the client and the mobile gateway is not connected, where the third data packet carries an IP address of a preset proxy server, and the public cloud server includes the preset proxy server;
a sending unit 3042, configured to access, through the client, the preset proxy server based on the preset proxy server IP address, and send a service request to the preset proxy server;
a forwarding unit 3043, configured to forward the service request to the mobile gateway by the preset proxy server.
Optionally, the cache unit 3041 may also be specifically configured to:
when the connection state between the client and the mobile gateway is not connected, accessing a public cloud server based on the IP address of the client, wherein the public cloud server comprises a preset proxy server;
in a public cloud server, acquiring an IP address of a preset proxy server according to a preset proxy server domain name cached in a client and a preset mapping relation, wherein the preset mapping relation is the mapping relation between the preset proxy server domain name and the IP address of the corresponding preset proxy server;
and receiving a third data packet sent by the preset proxy server, and caching the third data packet in the client, wherein the third data packet carries the IP address of the preset proxy server.
Optionally, the data transmission apparatus based on the hybrid cloud further includes:
the access module 306 is configured to access the cloud server through the client, and create a data packet in the cloud server according to a service request of the client, where the cloud server is a private cloud server or a public cloud server, and the data packet is a first data packet or a second data packet.
Optionally, the access module 306 may be further specifically configured to:
the method comprises the steps of obtaining an IP address of a cloud server cached in a client, and accessing the cloud server based on the IP address of the cloud server, wherein the cloud server is a private cloud server or a public cloud server;
acquiring a service request of a client;
according to the corresponding relation between the preset mobile gateway domain name and the IP address of the mobile gateway and the corresponding relation between the service request and the preset mobile gateway domain name, a target IP address is inquired in the cloud server, and a data packet carrying the target IP address is created, wherein the data packet is a first data packet or a second data packet.
In the embodiment of the invention, the IP address of the mobile gateway to be accessed by the client is acquired by accessing the public cloud server or the private cloud server in different modes, so that the time for the client to acquire the IP address of the mobile gateway is reduced, and the network delay of network transmission among operators is reduced.
Fig. 3 and 4 describe the hybrid cloud-based data transmission apparatus in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the hybrid cloud-based data transmission device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 5 is a schematic structural diagram of a hybrid cloud-based data transmission apparatus 500 according to an embodiment of the present invention, where the hybrid cloud-based data transmission apparatus 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations for the hybrid cloud-based data transmission apparatus 500. Still further, the processor 510 may be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the hybrid cloud-based data transmission device 500.
The hybrid cloud-based data transmission device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 531, such as Windows server, Mac OS X, Unix, Linux, FreeBSD, and so forth. Those skilled in the art will appreciate that the hybrid cloud based data transfer device architecture illustrated in fig. 5 does not constitute a limitation of hybrid cloud based data transfer devices and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, which may also be a volatile computer-readable storage medium, having stored therein instructions, which, when executed on a computer, cause the computer to perform the steps of the hybrid cloud-based data transmission method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A data transmission method based on a hybrid cloud is characterized by comprising the following steps:
trying to receive a first data packet sent by a private cloud server, if the first data packet is successfully received, caching the first data packet in a client, if the first data packet is not successfully received, receiving a second data packet sent by a public cloud server, and caching the second data packet in the client, wherein the first data packet and the second data packet both carry a target Internet Protocol (IP) address list used for accessing a mobile gateway, and the target IP address list comprises target IP addresses at different delay moments;
detecting connection information between the client and the mobile gateway according to a preset Internet packet detector, wherein the connection information is used for indicating whether the connection state between the client and the mobile gateway is connected or not;
when the connection state between the client and the mobile gateway is communication, accessing the mobile gateway through a target access IP address, wherein the target access IP address is the IP address with the shortest delay time in the target IP addresses with different delay times;
when the connection state between the client and the mobile gateway is not connected, sending a service request to the mobile gateway through a public cloud server;
and receiving a reply data packet sent by the mobile gateway, wherein the reply data packet is reply service data acquired by the mobile gateway in a service server according to the service request.
2. The hybrid cloud-based data transmission method according to claim 1, wherein the detecting connection information between the client and the mobile gateway according to a preset internet packet finder, the connection information indicating whether a connection state between the client and the mobile gateway is connected comprises:
sending a display-back request message to the mobile gateway through the client based on a preset Internet packet explorer;
judging whether the client receives a playback response message, wherein the playback response message is a response message made by the private cloud server according to the playback request message;
if the client receives the echoing response message, the detected connection information indicates that the connection state between the client and the mobile gateway is connected;
and if the client does not receive the echo response message, the detected connection message indicates that the connection state between the client and the mobile gateway is disconnected.
3. The hybrid cloud-based data transmission method according to claim 1, wherein when the connection state between the client and the mobile gateway is connected, accessing the mobile gateway through a target access IP address, where the target access IP address is an IP address with the shortest delay time among the target IP addresses with different delay times, comprises:
when the connection state between the client and the mobile gateway is communication, obtaining delay moments of a plurality of target IP addresses in a target IP address list;
screening out the shortest delay time from the delay times of the target IP addresses, and taking the target IP address corresponding to the shortest delay time as a target access IP address;
and accessing the mobile gateway through the target access IP address, wherein the target access IP address is the IP address with the shortest delay time in the target IP addresses with different delay times.
4. The hybrid cloud-based data transmission method according to claim 1, wherein the sending, by the public cloud server, the service request to the mobile gateway when the connection state between the client and the mobile gateway is not connected comprises:
when the connection state between the client and the mobile gateway is not communicated, receiving a third data packet sent by a public cloud server, and caching the third data packet in the client, wherein the third data packet carries an IP address of a preset proxy server, and the public cloud server comprises the preset proxy server;
based on the IP address of the preset proxy server, accessing the preset proxy server through the client and sending a service request to the preset proxy server;
and forwarding the service request to the mobile gateway by the preset proxy server.
5. The hybrid cloud-based data transmission method according to claim 4, wherein when the connection state between the client and the mobile gateway is not connected, a third data packet sent by a public cloud server is received and cached in the client, the third data packet carries an IP address of a preset proxy server, and the public cloud server including the preset proxy server includes:
when the connection state between the client and the mobile gateway is not communicated, accessing a public cloud server based on the IP address of the client, wherein the public cloud server comprises a preset proxy server;
in the public cloud server, acquiring an IP address of a preset proxy server according to a preset proxy server domain name cached in the client and a preset mapping relation, wherein the preset mapping relation is a mapping relation between the preset proxy server domain name and the IP address corresponding to the preset proxy server;
and receiving a third data packet sent by the preset proxy server, and caching the third data packet in the client, wherein the third data packet carries the IP address of the preset proxy server.
6. The hybrid cloud-based data transmission method according to claim 5, wherein before the attempting to receive a first data packet sent by a private cloud server, if the first data packet is successfully received, the first data packet is cached in a client, if the first data packet is not successfully received, a second data packet sent by the public cloud server is received, and the second data packet is cached in the client, where the first data packet and the second data packet are both target Internet Protocol (IP) address lists carrying access mobile gateways, and the target IP address lists include target IP addresses at different delay times, the method further includes:
the method comprises the steps of accessing a cloud server through a client, creating a data packet in the cloud server according to a service request of the client, wherein the cloud server is a private cloud server or a public cloud server, and the data packet is a first data packet or a second data packet.
7. The hybrid cloud-based data transmission method according to claim 6, wherein the accessing a cloud server by a client and creating a data packet in the cloud server according to a service request of the client, wherein the cloud server is a private cloud server or a public cloud server, and the data packet is a first data packet or a second data packet includes:
the method comprises the steps of obtaining an IP address of a cloud server cached in a client, and accessing the cloud server based on the IP address of the cloud server, wherein the cloud server is a private cloud server or a public cloud server;
acquiring a service request of the client;
and inquiring the target IP address in the cloud server according to the corresponding relation between a preset mobile gateway domain name and the IP address of the mobile gateway and the corresponding relation between the service request and the preset mobile gateway domain name, and creating a data packet carrying the target IP address, wherein the data packet is a first data packet or a second data packet.
8. A hybrid cloud-based data transmission device, the hybrid cloud-based data transmission device comprising:
the system comprises a cache module, a first data packet and a second data packet, wherein the cache module is used for trying to receive the first data packet sent by a private cloud server, caching the first data packet in a client if the first data packet is successfully received, receiving the second data packet sent by a public cloud server if the first data packet is not successfully received, and caching the second data packet in the client, the first data packet and the second data packet both carry a target Internet Protocol (IP) address list used for accessing a mobile gateway, and the target IP address list comprises target IP addresses at different delay moments;
the detection module is used for detecting the connection information between the client and the mobile gateway according to a preset Internet packet detector, wherein the connection information is used for indicating whether the connection state between the client and the mobile gateway is connected or not;
the first access module is used for accessing the mobile gateway through a target access IP address when the connection state between the client and the mobile gateway is communication, wherein the target access IP address is the IP address with the shortest delay time in the target IP addresses with different delay times;
the second access module is used for sending a service request to the mobile gateway through a public cloud server when the connection state between the client and the mobile gateway is not connected;
and the receiving module is used for receiving a reply data packet sent by the mobile gateway, wherein the reply data packet is reply service data acquired by the mobile gateway in a service server according to the service request.
9. A hybrid cloud-based data transmission device, the hybrid cloud-based data transmission device comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invokes the instructions in the memory to cause the hybrid cloud-based data transfer device to perform the hybrid cloud-based data transfer method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the hybrid cloud-based data transmission method according to any one of claims 1 to 7.
CN202010194531.4A 2020-03-19 2020-03-19 Data transmission method, device and equipment based on hybrid cloud and storage medium Active CN111385203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010194531.4A CN111385203B (en) 2020-03-19 2020-03-19 Data transmission method, device and equipment based on hybrid cloud and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010194531.4A CN111385203B (en) 2020-03-19 2020-03-19 Data transmission method, device and equipment based on hybrid cloud and storage medium

Publications (2)

Publication Number Publication Date
CN111385203A CN111385203A (en) 2020-07-07
CN111385203B true CN111385203B (en) 2022-02-22

Family

ID=71218830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010194531.4A Active CN111385203B (en) 2020-03-19 2020-03-19 Data transmission method, device and equipment based on hybrid cloud and storage medium

Country Status (1)

Country Link
CN (1) CN111385203B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202688A (en) * 2020-09-22 2021-01-08 临沂大学 Data evacuation method and system suitable for cloud data center network
CN112272241B (en) * 2020-11-19 2023-09-19 金蝶云科技有限公司 Cloud computing message sending method and related device
CN113098925B (en) * 2021-03-06 2022-03-11 郑州信大捷安信息技术股份有限公司 Method and system for realizing dynamic proxy based on F-Stack and Nginx
CN115242700B (en) * 2021-04-23 2024-03-22 网联清算有限公司 Communication transmission method, device and system
CN113239026B (en) * 2021-04-29 2022-08-16 上海德衡数据科技有限公司 Cloud server and cloud data processing method based on same
CN113472598B (en) * 2021-08-31 2022-02-25 阿里云计算有限公司 Cloud service method, electronic device, and computer-readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427481A (en) * 2012-01-12 2012-04-25 易云捷讯科技(北京)有限公司 System for managing cloud computing service and cloud computing management method
CN104902005A (en) * 2015-04-13 2015-09-09 中国联合网络通信集团有限公司 Method and system for resource scheduling in hybrid cloud, and private cloud
US10326710B1 (en) * 2015-09-02 2019-06-18 Amazon Technologies, Inc. Propagating access rules on virtual networks in provider network environments

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101711048B (en) * 2009-11-13 2012-02-08 西安电子科技大学 Method for choosing gateway in integrating process of mobile self-organization network and Internet
CN103634314B (en) * 2013-11-28 2017-06-16 新华三技术有限公司 A kind of service access control method and equipment based on virtual router VSR
CN105100043B (en) * 2014-05-07 2018-11-13 三竹资讯股份有限公司 Message transmission device and method suitable for individuals and organizations
US9787499B2 (en) * 2014-09-19 2017-10-10 Amazon Technologies, Inc. Private alias endpoints for isolated virtual networks
CN105406987B (en) * 2015-10-22 2016-12-21 广州云晫信息科技有限公司 A kind of outer net client accesses privately owned desktop method
US10129177B2 (en) * 2016-05-23 2018-11-13 Cisco Technology, Inc. Inter-cloud broker for hybrid cloud networks
CN107295008A (en) * 2017-08-01 2017-10-24 广东云下汇金科技有限公司 A kind of connection method for building up under enterprise's mixing cloud computing environment
CN108551464B (en) * 2018-03-08 2020-12-22 网宿科技股份有限公司 Connection establishment and data transmission method, device and system of hybrid cloud
CN108777640B (en) * 2018-06-04 2020-08-07 腾讯科技(深圳)有限公司 Server detection method, device, system and storage medium
CN110875913A (en) * 2018-09-03 2020-03-10 阿里巴巴集团控股有限公司 Data transmission method and system
CN109561171B (en) * 2019-01-22 2021-11-16 北京百度网讯科技有限公司 Configuration method and device of virtual private cloud service
CN110071918B (en) * 2019-04-19 2020-10-09 北京那镁克科技有限公司 Data communication method and device based on hybrid cloud

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427481A (en) * 2012-01-12 2012-04-25 易云捷讯科技(北京)有限公司 System for managing cloud computing service and cloud computing management method
CN104902005A (en) * 2015-04-13 2015-09-09 中国联合网络通信集团有限公司 Method and system for resource scheduling in hybrid cloud, and private cloud
US10326710B1 (en) * 2015-09-02 2019-06-18 Amazon Technologies, Inc. Propagating access rules on virtual networks in provider network environments

Also Published As

Publication number Publication date
CN111385203A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN111385203B (en) Data transmission method, device and equipment based on hybrid cloud and storage medium
EP3643051B1 (en) Dns resolution using link-level capacity of destination systems
US10212124B2 (en) Facilitating content accessibility via different communication formats
CN109889618B (en) Method and system for processing DNS request
CN105164990B (en) Method of network node functionality operating in a network node, client device
EP1430651B1 (en) Adaptive node selection
US10263950B2 (en) Directing clients based on communication format
US8458303B2 (en) Utilizing a gateway for the assignment of internet protocol addresses to client devices in a shared subset
WO2013184941A1 (en) Method of seamless integration and independent evolution of information-centric networking via software defined networking
EP3289728B1 (en) Distribution of internal routes for virtual networking
EP2343867A1 (en) System and method of reducing intranet traffic on bottleneck links in a telecommunications network
WO2019080592A1 (en) Method and device for sending messages
CN103986638A (en) Method and device for binding multiple public network links for ADVPN tunnel
US20210044678A1 (en) Optimized quic fallback on access networks and endpoints
Barré et al. Implementation and evaluation of the Shim6 protocol in the Linux kernel
Cisco IPv6: Providing IPv6 Services over an IPv4 Backbone Using Tunnels
CN112887185B (en) Communication method and device of overlay network
Cisco Using the Web Browser
Cisco Configuring the CSS Domain Name Service
Paul et al. Optimization of core network router for telecommunication exchange
Pittner CUSTOMIZING APPLICATION HEADERS FOR IMPROVED WARFIGHTING COMMUNICATIONS
Bruneo et al. A Cloud-Based Overlay Networking for the Internet of Things: Quantitative
CN116647538A (en) Connecting device capable of accessing different intranet services
CN114466011A (en) Metadata service request method, device, equipment and medium
Jin et al. Design and implementation of optimal route selection mechanism for outbound connections on IPv6 multihoming environment

Legal Events

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