Data transmission method and hybrid cloud system

Through the hybrid cloud server and client working together with the hybrid cloud system, the problem of low speed of offline applications combined with public cloud is solved, and multiple offline applications are quickly accessed to the public cloud, improving the efficiency of function expansion.

CN117675869BActive Publication Date: 2024-12-27ZKTECO CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311683958.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-08
Publication Date
2024-12-27
Estimated Expiration
2043-12-08

AI Technical Summary

Technical Problem

In the prior art, offline applications combined with public clouds have low rates and cannot effectively expand the functions of security equipment.

Method used

Using a hybrid cloud system, through the coordinated work of the hybrid cloud server and the client, the target interface request is generated and mapping and conversion is carried out, so as to achieve rapid access to the public cloud of multiple offline applications and improve data transmission efficiency.

Benefits of technology

It has realized the rapid conversion of multiple offline applications into hybrid cloud services, improved the efficiency of combining public cloud and offline applications, and improved the speed of function expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117675869B_ABST
    Figure CN117675869B_ABST
Patent Text Reader

Abstract

The present application discloses a data transmission method and a hybrid cloud system, which is applied to a hybrid cloud system, and the hybrid cloud system includes a hybrid cloud server and a hybrid cloud client; the hybrid cloud server is deployed in the cloud, connected to the public cloud and connected to each hybrid cloud client; each hybrid cloud client is deployed in the corresponding local area network, and connected to each offline application under the corresponding local area network; the hybrid cloud server can communicate with each offline application through each hybrid cloud client; the method may include the hybrid cloud server sending a first request of a target interface to more than one hybrid cloud client connected to the corresponding offline application, so as to interact with the corresponding offline application through each hybrid cloud client. It can be seen that the present application can provide hybrid cloud services for each offline application by using the hybrid cloud system, and deploying an interface on the hybrid cloud server can help multiple offline applications to combine with the public cloud, and can speed up the process of combining the public cloud with each offline application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a data transmission method and a hybrid cloud system. Background Art

[0002] In order to ensure the safety of users, various manufacturers provide various security devices deployed in the local area network. At the same time, various manufacturers also provide various offline applications that can be deployed in the local area network, so that users can manage various security devices through offline applications. With the rapid development of the Internet of Things, in order to enrich the functions of various security devices, various manufacturers try to combine public clouds with offline applications to expand the functions of various security devices.

[0003] In the existing technology, attempts are made to open the IP addresses of offline applications deployed in the local area network and map external network access to enable offline applications to access the cloud and expand the functions of various security equipment. However, the above method requires processing each offline application one by one according to the public cloud standard, and the speed is relatively low. Summary of the invention

[0004] In view of this, the present application provides a data transmission method and a hybrid cloud system to solve the disadvantage of low rate of offline applications combined with shared cloud in the prior art.

[0005] In order to achieve the above objectives, the proposed solution is as follows:

[0006] A data transmission method is applied to a hybrid cloud system, wherein the hybrid cloud system includes a hybrid cloud server and one or more hybrid cloud clients; the hybrid cloud server is deployed in the cloud, connected to a public cloud and connected to each hybrid cloud client; each hybrid cloud client is deployed in a corresponding local area network and connected to each offline application in the corresponding local area network;

[0007] The method comprises:

[0008] The hybrid cloud server generates a first request corresponding to a target interface, and sends the first request to one or more hybrid cloud clients connected to corresponding offline applications, so as to interact with the corresponding offline applications through each hybrid cloud client, and the target interface corresponds to one or more offline applications.

[0009] Optionally, the hybrid cloud server generates a first request corresponding to the target interface, and sends the first request to one or more hybrid cloud clients connected to the corresponding offline application, including:

[0010] The target interface of the hybrid cloud service receives the business request sent by the front-end service entity, determines the target offline application corresponding to the business request, and generates a first request based on the business request and the target offline application, and sends the first request to the hybrid cloud client connected to the target offline application.

[0011] Optionally, also include:

[0012] After receiving the first request, the hybrid cloud client maps and converts the first request to generate a first message body, sends the first message body to the target offline application, and receives a second request corresponding to the first message body returned by the target offline application, maps and converts the second request to generate a second message body, and returns the second message body to the hybrid cloud server.

[0013] Optionally, the hybrid cloud client performs mapping conversion on the first request to generate a first message body, including:

[0014] The hybrid cloud client determines an application interface corresponding to the first request in the target offline application, determines a parameter mapping template corresponding to the application interface, performs parameter mapping conversion on the first request according to the parameter mapping template, and forms a first message body.

[0015] Optionally, the hybrid cloud client performs mapping conversion on the second request to generate a second message body, including:

[0016] The hybrid cloud client determines a parameter mapping template corresponding to the target interface, and performs parameter mapping conversion on the second request according to the parameter mapping template to form a second message body.

[0017] Optionally, before sending the first message body to the target offline application, the method further includes:

[0018] The hybrid cloud client authenticates the target offline application, and after the target offline application passes the authentication, enters the step of sending the first message body to the target offline application.

[0019] Optionally, also include:

[0020] When a first offline application is newly added in the local area network corresponding to the first hybrid cloud client, the first hybrid cloud client determines all first interfaces in the first offline application that need to be connected to the hybrid cloud server;

[0021] The first hybrid cloud client creates a second interface corresponding to each first interface;

[0022] The first hybrid cloud client determines a mapping conversion method between a first interface and a second interface that have a corresponding relationship.

[0023] Optionally, also include:

[0024] The first hybrid cloud client generates an authentication mode for verifying the first offline application.

[0025] Optionally, also include:

[0026] When a newly added second hybrid cloud client needs to connect to the hybrid cloud server, the second hybrid cloud client shakes hands with the hybrid cloud server through the authorization code issued by the hybrid cloud server.

[0027] A hybrid cloud system, comprising a hybrid cloud server and one or more hybrid cloud clients;

[0028] The hybrid cloud server is deployed in the cloud, connected to the public cloud and connected to each hybrid cloud client;

[0029] Each terminal is deployed in the corresponding local area network;

[0030] Each hybrid cloud client is deployed in the corresponding LAN and connected to each offline application in the corresponding LAN;

[0031] Each interface of the hybrid cloud server interacts with each offline application through each hybrid cloud client.

[0032] It can be seen from the above technical scheme that the data transmission method provided by the present application is applied to a hybrid cloud system, which includes a hybrid cloud server and one or more hybrid cloud clients; the hybrid cloud server is deployed in the cloud, connected to the public cloud and connected to each hybrid cloud client; each hybrid cloud client is deployed in the corresponding local area network and connected to each offline application under the corresponding local area network; based on this, each hybrid cloud client can communicate with the hybrid cloud server located in the cloud, and can also communicate with each offline application in the same local area network, so the hybrid cloud server can communicate with each offline application deployed in each local area network through each hybrid cloud client, and the hybrid cloud server is connected to the public cloud, so the offline application can be connected to the public cloud through the hybrid cloud server and the hybrid cloud client, thereby achieving the purpose of expanding offline applications; on this basis, the method can include the hybrid cloud server generating a first request corresponding to the target interface, and sending the first request to one or more hybrid cloud clients connected to the corresponding offline application, so as to interact with the corresponding offline application through each hybrid cloud client, and the target interface corresponds to more than one offline application. Based on this, the target interface in the hybrid cloud server can be connected to multiple offline applications, and the request of the same interface can be transmitted to multiple offline applications through multiple hybrid cloud clients. By assembling an interface on the hybrid cloud server, multiple offline applications can be quickly converted into hybrid cloud services, which speeds up the efficiency of combining each offline application with the public cloud. It can be seen that the present application can integrate the hybrid cloud server and each hybrid cloud client to provide hybrid cloud services for each offline application, and an interface on the hybrid cloud server can provide public cloud services for multiple offline applications. Deploying an interface on the hybrid cloud server can help multiple offline applications combine with the public cloud, which can speed up the process of combining the public cloud with each offline application. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0034] Figure 1 A system architecture diagram of a hybrid cloud system disclosed in an embodiment of the present application;

[0035] Figure 2 A schematic diagram of deployment of a hybrid cloud system exemplified by an embodiment of the present application;

[0036] Figure 3 A flow chart of a data transmission method disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0038] Next, we will combine Figure 1 and Figure 2 The hybrid cloud system provided by this application is introduced in detail.

[0039] See also Figure 1 It can be found that the hybrid cloud system may include a hybrid cloud server 10 and a hybrid cloud client 20 .

[0040] The hybrid cloud server 10 may be deployed in the cloud and may be composed of more than one server.

[0041] The hybrid cloud server 10 can be connected to a public cloud to provide public cloud services, such as message push, cloud storage, and a cloud application center.

[0042] The hybrid cloud server 10 can be connected to multiple hybrid cloud clients 20.

[0043] Each hybrid cloud client 20 may be deployed in a local area network. Each hybrid cloud client 20 may have a unique corresponding local area network.

[0044] See also Figure 2 It can be found that each front-end service entity can interact with the hybrid cloud server.

[0045] Among them, each front-end service entity can operate under 4G and 5G networks.

[0046] The front-end service entity can be a service entity running on a 2G, 3G, 4G or 5G network, such as a hybrid cloud app or application service.

[0047] Each front-end service subject can be run in each corresponding first terminal, and each first terminal running the front-end service subject is deployed in a 2G, 3G, 4G or 5G network. Front-end service subjects with different functions can be run in the same first terminal.

[0048] Each hybrid cloud client 20 can interact with various offline applications deployed in the corresponding local area network.

[0049] Offline applications can be deployed in a local area network and used to manage the application entities of each corresponding device.

[0050] Each offline application can interact with multiple devices in the same local area network, and multiple devices corresponding to the same offline application can have corresponding specific functions.

[0051] Each offline application can also be run in the corresponding second terminal, and the same second terminal can run multiple offline applications in the same local area network. There can be one or more second terminals running offline applications in the same local area network. Each second terminal running offline applications can be deployed in the corresponding local area network.

[0052] The first terminal refers to a terminal deployed in a 2G, 3G, 4G or 5G network and running a front-end service entity with different functions.

[0053] The second terminal refers to a terminal deployed in a local area network and running offline applications with different functions.

[0054] The first terminal and the second terminal may be terminal devices of the same category, for example, they may be terminal devices such as mobile phones or handheld notebooks.

[0055] There may be multiple offline applications in the same local area network, and the same hybrid cloud client 20 may manage multiple offline applications.

[0056] The hybrid cloud server 10 can interact with multiple hybrid cloud clients 20 in different local area networks.

[0057] The hybrid cloud server 10 may include multiple interfaces.

[0058] Among them, the same interface of the hybrid cloud service end 10 can correspond to offline applications under different local area networks, and each offline application corresponding to the same interface has a target function that matches the corresponding interface.

[0059] For example, each offline application corresponding to the same interface may be an application of the same version but produced at a different time, or may be a different production version of the same application.

[0060] An offline application may have multiple functions and correspond to multiple interfaces of the hybrid cloud server 10 .

[0061] There may be multiple interfaces in the hybrid cloud server 10, each interface may have multiple offline applications corresponding to it, and different interfaces of the hybrid cloud server 10 may correspond to the same offline application.

[0062] The hybrid cloud client 20 may include multiple interfaces.

[0063] Among them, the interface of the hybrid cloud client 20 can correspond to different offline applications under the same local area network, or can correspond to only one offline application.

[0064] Different interfaces of the hybrid cloud client 20 may correspond to the same offline application in the same local area network.

[0065] The hybrid cloud system can form a public cloud access channel for various offline applications under different local area networks.

[0066] The hybrid cloud system is built on an IoT public cloud service base. The shared cloud services provided by the hybrid cloud system include but are not limited to account system, organizational structure, IoT base, device management, etc.

[0067] The data transmission method proposed in this application can be applied to the hybrid cloud system provided above. Figure 3 The data transmission method is introduced in detail, including the following steps:

[0068] Step S1: The hybrid cloud server 10 generates a first request corresponding to a target interface, and sends the first request to one or more hybrid cloud clients 20 connected to corresponding offline applications.

[0069] Specifically, the target interface can be any interface in the hybrid cloud service end 10.

[0070] The hybrid cloud service end 10 may generate a request corresponding to the target interface, and determine the request corresponding to the target interface as the first request.

[0071] The hybrid cloud server 10 can determine the offline application corresponding to the first request as the target offline application, and send the first request to the hybrid cloud client 20 connected to the target offline application, so as to interact with each offline application corresponding to the target interface through each hybrid cloud client.

[0072] Among them, the hybrid cloud server 10 can select an offline application corresponding to the first request from the offline applications corresponding to the target interface.

[0073] Each offline application corresponding to the target interface may have a target function, and the target function may match the target interface.

[0074] There may be multiple target offline applications, and each target offline application may correspond one-to-one to each hybrid cloud client 20 .

[0075] It can be seen from the above technical solution that the data transmission method provided in the embodiment of the present application is applied to a hybrid cloud system, which includes a hybrid cloud server 10 and one or more hybrid cloud clients 20; the hybrid cloud server 10 is deployed in the cloud, connected to the public cloud and connected to each hybrid cloud client 20; each hybrid cloud client 20 is deployed in a corresponding local area network and connected to each offline application under the corresponding local area network; based on this, each hybrid cloud client 20 can communicate with the hybrid cloud server 10 located in the cloud, and can also communicate with each offline application in the same local area network, so the hybrid cloud server 10 It can communicate with each offline application deployed in each local area network through each hybrid cloud client 20, and the hybrid cloud server 10 is connected to the public cloud. Therefore, the offline application can be connected to the public cloud through the hybrid cloud server 10 and the hybrid cloud client 20, thereby achieving the purpose of expanding offline applications; on this basis, the method can include the hybrid cloud server 10 generating a first request corresponding to the target interface, and sending the first request to one or more hybrid cloud clients 20 connected to the corresponding offline application, so as to interact with the corresponding offline application through each hybrid cloud client 20, and the target interface corresponds to more than one offline application. Based on this, the target interface in the hybrid cloud server 10 can be connected to multiple offline applications, and the request of the same interface can be transmitted to multiple offline applications through multiple hybrid cloud clients 20. By assembling one interface in the hybrid cloud server 10, multiple offline applications can be quickly converted into hybrid cloud services, which speeds up the efficiency of combining each offline application with the public cloud. It can be seen that the present application can integrate the hybrid cloud server and various hybrid cloud clients 20 to provide hybrid cloud services for various offline applications, and an interface of the hybrid cloud server can provide public cloud services for multiple offline applications. Deploying an interface on the hybrid cloud server can help multiple offline applications integrate with the public cloud, and can speed up the integration process of the public cloud and various offline applications.

[0076] In some embodiments of the present application, the process of step S1, in which the hybrid cloud server 10 generates a first request corresponding to the target interface and sends the first request to one or more hybrid cloud clients 20 connected to the corresponding offline application, is described in detail, and the steps are as follows:

[0077] S10. The target interface of the hybrid cloud server 10 receives a business request sent by the front-end service entity, determines a target offline application corresponding to the business request, generates a first request based on the business request and the target offline application, and sends the first request to the hybrid cloud client 20 connected to the target offline application.

[0078] Specifically, the hybrid cloud server 10 can receive a business request generated by the front-end service entity in response to a user business call operation, and then determine the target offline application corresponding to the business request, generate a first request, and send the first request to the hybrid cloud client 20 connected to the target offline application.

[0079] A Websocket persistent connection communication link may exist between the hybrid cloud server 10 and the hybrid cloud client 20 , and the first request may be sent to the hybrid cloud client 20 connected to the target offline application via the Websocket persistent connection communication link.

[0080] The hybrid cloud service end 10 can request authentication with the front-end service entity.

[0081] Among them, the public cloud Auth2 authentication system can be used to request authentication of the front-end service entity.

[0082] It can be seen from the above technical solution that this embodiment provides an optional way for a hybrid cloud server 10 to interact with offline applications. Through the above method, the hybrid cloud client 10 can respond to the request of the front-end service subject, and send the first request matching the business request of the front-end service subject to the corresponding target offline applications through each hybrid cloud client.

[0083] In some embodiments of the present application, considering that the message bodies of the data sent by the hybrid cloud client 20 and each offline application are different, direct transfer is prone to failure, so the received request can be mapped and converted to avoid failure. Therefore, after step 10, the hybrid cloud client 20 of the present application can add a mapping conversion process. Next, the mapping conversion process will be described in detail. The steps are as follows:

[0084] S11. The hybrid cloud client 20 maps and converts the first request to generate a first message body, sends the first message body to the target offline application, and receives a second request corresponding to the first message body returned by the target offline application, maps and converts the second request to generate a second message body, and returns the second message body to the hybrid cloud server 10.

[0085] Specifically, the hybrid cloud client 20 may include an interface mapping template.

[0086] The hybrid cloud client 20 can receive the first request through the client interface and determine the application interface of the target offline application corresponding to the first request. The hybrid cloud client 20 can map and convert the first request, and use the data formed after the mapping and conversion as the first message body, and send the first message body to the corresponding application interface of the target offline application.

[0087] Among them, the hybrid cloud client 20 can search for the interface of the offline application that matches the client interface based on the interface mapping template, and search for the interface corresponding to the first request from the interfaces of each offline application as the application interface of the target offline application.

[0088] The hybrid cloud client 20 can receive the second request returned by the target offline application in response to the first message body, and can determine the cloud interface matching the second request based on the interface mapping template, and map and convert the second request to form a second message body, and return the second message body to the cloud interface of the hybrid cloud server 10.

[0089] The cloud interface refers to the interface that matches the second request. The cloud interface may be the same interface as the target interface or may be a different interface.

[0090] The second request may represent the application result corresponding to the first request.

[0091] The interface mapping template may store mapping relationships between various interfaces of the hybrid cloud client 20 and various interfaces of various offline applications.

[0092] It can be seen from the above technical solution that the embodiment of the present application newly adds a mapping conversion process, which can realize indirect interaction between the hybrid cloud server 10 and various offline applications without modifying the offline application interface.

[0093] In some embodiments of the present application, the process of the hybrid cloud client 20 mapping and converting the first request to generate the first message body in step S11 is described in detail, and the steps are as follows:

[0094] S110. The hybrid cloud client 20 determines the application interface corresponding to the first request in the target offline application, determines the parameter mapping template corresponding to the application interface, performs parameter mapping conversion on the first request according to the parameter mapping template, and forms a first message body.

[0095] Specifically, the hybrid cloud client 20 may include a parameter mapping template, and the parameter mapping template may include a parameter mapping method between each interface of each offline application and each interface of the hybrid cloud client 20 .

[0096] The hybrid cloud client 20 may determine the application interface corresponding to the client interface, and perform parameter mapping conversion on the first request based on the parameter mapping mode between the application interface and the client interface found by the parameter mapping template to form a first message body.

[0097] It can be seen from the above technical solution that this embodiment provides an optional method for generating a first message body. Through the above method, the key attributes of the interface can be better extracted. Through each hybrid cloud client 20, a message body with unified attributes can be provided to each offline application, further accelerating the interaction reliability between the hybrid cloud system and each offline application.

[0098] In some embodiments of the present application, the process of the hybrid cloud client 20 performing mapping conversion on the second request and generating the second message body in step S11 is described in detail, and the steps are as follows:

[0099] S111. The hybrid cloud client 20 determines a parameter mapping template corresponding to the target interface, and performs parameter mapping conversion on the second request according to the parameter mapping template to form a second message body.

[0100] Specifically, the hybrid cloud client 20 may include a parameter mapping template, and the parameter mapping template may include parameter mapping methods between various interfaces of various offline applications and various interfaces of the hybrid cloud server 10 .

[0101] The second request may be subjected to parameter mapping conversion based on a parameter mapping template to form a second message body.

[0102] Parameter mapping templates are generally JSON templates, including but not limited to conversions in multiple dimensions such as Request Param, Request Body, Request Header, and Response Body. Each dimension corresponds to a JSON mapping template configuration.

[0103] It can be seen from the above technical solution that this embodiment provides an optional method for generating a second message body. Through the above method, the key attributes of the interface can be better extracted. Through each hybrid cloud client 20, a message body with unified attributes can be provided to the hybrid cloud server 10, further accelerating the interaction reliability between the hybrid cloud system and various offline applications.

[0104] In some embodiments of the present application, in order to ensure information security, an authentication process may be added before sending the first message body to the target offline application. Therefore, before step S11, an authentication process may be added. Next, the authentication process will be described in detail. The steps are as follows:

[0105] S12. The hybrid cloud client 20 authenticates the target offline application. After the target offline application passes the authentication, execute step S11.

[0106] Specifically, the hybrid cloud client 20 may include an authentication template of a corresponding offline application, and may use the authentication template to authenticate the target offline application. After the target offline application passes the authentication, the hybrid cloud client 20 may execute step S11.

[0107] It can be seen from the above technical solution that the hybrid cloud client 20 of the present application adds an authentication process in the process of assisting the hybrid cloud server 10 in interacting with various offline applications, which can further ensure the reliability and security of data transmission.

[0108] In some embodiments of the present application, considering that a new offline application may be added to the local area network and needs to access the public cloud, a communication tunnel may be established between the new offline application and the hybrid cloud client 20 of the corresponding local area network, so that the new offline application can access the public cloud through the hybrid cloud client 20 and the hybrid cloud server 10. Next, the process of establishing a communication tunnel between the offline application and the hybrid cloud client 20 is described in detail, and the steps are as follows:

[0109] S1. When a first offline application is added to the local area network corresponding to the first hybrid cloud client, the first hybrid cloud client determines all first interfaces in the first offline application that need to be connected to the hybrid cloud server 10.

[0110] Specifically, the first offline application may be an offline application that needs to add a hybrid cloud service, and the first hybrid cloud client may be a hybrid cloud client that needs to establish a communication tunnel with the first offline application.

[0111] The first hybrid cloud client and the first offline application are deployed in the same local area network.

[0112] The first hybrid cloud client may determine an interface in the first offline application that needs to have a hybrid cloud service added, and use the interface in the first offline application that needs to have a hybrid cloud service added as the first interface.

[0113] S2. The first hybrid cloud client creates a second interface corresponding to each first interface.

[0114] Specifically, the first hybrid cloud client can create a second interface corresponding to each first interface. During the creation process, the first hybrid cloud client can determine whether there is an authentication template for each second interface. If there is an authentication template for the second interface, the corresponding second interface needs to authenticate the offline application when transmitting the request to the first interface.

[0115] The mapping relationship between each first interface and each second interface may be stored in an interface mapping template of the first hybrid cloud client.

[0116] The correspondence between each second interface and each interface of the hybrid cloud server 10 can be determined, and the correspondence between each second interface and each interface of the hybrid cloud server 10 can be stored in the interface mapping template of the first hybrid cloud client.

[0117] S3. The first hybrid cloud client determines a mapping conversion method between the first interface and the second interface that have a corresponding relationship.

[0118] Specifically, the first hybrid cloud client may determine a parameter mapping mode and an interface mapping mode between a first interface and a second interface having a corresponding relationship, and store the parameter mapping mode in a parameter mapping template and store the interface mapping mode in an interface mapping template.

[0119] It can be seen from the above technical solution that this embodiment provides an optional method for establishing a communication tunnel between an offline application and a hybrid cloud client 20 of a corresponding local area network. Through the above method, interfaces corresponding to the various interfaces of the offline application can be added to the corresponding hybrid cloud client, and the mapping conversion method between the hybrid cloud client and the offline application can be obtained, so that the new offline application can access the public cloud through the hybrid cloud client and the hybrid cloud server.

[0120] In some embodiments of the present application, in order to ensure the security of the hybrid cloud system while establishing a communication tunnel, the first hybrid cloud client can add an authentication mode. During the process of interacting with the first offline application, the first hybrid cloud client can authenticate the first offline application through the authentication mode to ensure the security of the hybrid cloud system. Next, the process of adding the authentication mode to the first hybrid cloud client is described in detail, and the steps are as follows:

[0121] S4. The first hybrid cloud client generates an authentication mode for verifying the first offline application.

[0122] Specifically, the first hybrid cloud client may negotiate with the first offline application to generate an authentication mode, and the authentication mode may include multiple modes, for example, Auth2, Basic auth, No Auth, or other custom auth modes developed by other hybrid cloud clients.

[0123] The first hybrid cloud client may also set permissions for each first interface.

[0124] It can be seen from the above technical solution that this embodiment adds an authentication mode between the first offline application and the first hybrid cloud client. Through the above authentication mode, the first hybrid cloud client can perform permission authentication on the first offline application, further ensuring the security and reliability of the hybrid cloud system.

[0125] In some embodiments of the present application, considering the possibility of adding a new hybrid cloud client during use, the present application can add a process of establishing a new communication tunnel between the hybrid cloud client 20 and the hybrid cloud server 10. Next, the process of adding a new communication tunnel between the hybrid cloud client 20 and the hybrid cloud server 10 will be described in detail. The steps are as follows:

[0126] S1. When a newly added second hybrid cloud client needs to connect to the hybrid cloud server, the second hybrid cloud client shakes hands with the hybrid cloud server 10 through the authorization code issued by the hybrid cloud server.

[0127] Specifically, the second hybrid cloud client may be a hybrid cloud client that needs to establish a new communication tunnel with the hybrid cloud server 10 .

[0128] After the public cloud account is activated, the second hybrid cloud client can receive the authorization code issued by the hybrid cloud server 10.

[0129] The second hybrid cloud client can request the hybrid cloud server 10 to provide a Websocket penetration server and shake hands with the hybrid cloud server 10 to connect.

[0130] It can be seen from the above technical solution that this embodiment provides an optional method for establishing a communication tunnel between a hybrid cloud client 20 and a hybrid cloud server 10. Through the above method, a new hybrid cloud client can be added to the hybrid cloud system, and the new hybrid cloud client can help multiple offline applications to integrate with the public cloud.

[0131] In the hybrid cloud system of the present application, the hybrid cloud server 10 includes a sending module;

[0132] The sending module can be used to generate a first request corresponding to a target interface, and send the first request to one or more hybrid cloud clients connected to corresponding offline applications, so as to interact with the corresponding offline application through each hybrid cloud client, and the target interface corresponds to one or more offline applications.

[0133] Further, the sending module may include a request sending unit;

[0134] The request sending unit can be used to receive a business request sent by a front-end service entity, determine a target offline application corresponding to the business request, and generate a first request based on the business request and the target offline application, and send the first request to a hybrid cloud client connected to the target offline application.

[0135] Further, the hybrid cloud client 20 may include a forwarding module;

[0136] The forwarding module can be used to map and transform the first request to generate a first message body, send the first message body to the target offline application, and receive a second request corresponding to the first message body returned by the target offline application, map and transform the second request to generate a second message body, and return the second message body to the hybrid cloud server.

[0137] Further, the forwarding module may include a first message body generating unit;

[0138] The first message body generating unit may be used to determine an application interface corresponding to the first request in the target offline application, determine a parameter mapping template corresponding to the application interface, perform parameter mapping conversion on the first request according to the parameter mapping template, and form a first message body.

[0139] Further, the forwarding module may also include a second message body generating unit;

[0140] The second message body generating unit may be configured to determine a parameter mapping template corresponding to the target interface, and perform parameter mapping conversion on the second request according to the parameter mapping template to form a second message body.

[0141] Furthermore, the hybrid cloud client may also include an authentication module;

[0142] The authentication unit can be used to authenticate the target offline application.

[0143] Furthermore, the hybrid cloud client may also include a first interface determining unit, a second interface constructing unit, and a mapping conversion mode determining unit;

[0144] The first interface determination unit may be configured to determine, when a first offline application is newly added to the local area network corresponding to the first hybrid cloud client, all first interfaces in the first offline application that need to be connected to the hybrid cloud server;

[0145] The second interface construction unit may be used to create a second interface corresponding to each first interface;

[0146] The mapping conversion mode determining unit may be used to determine a mapping conversion mode between a first interface and a second interface that have a corresponding relationship.

[0147] Further, the hybrid cloud client may also include an authentication mode determination unit;

[0148] The authentication mode determination unit may be configured to generate an authentication mode for verifying the first offline application.

[0149] Further, the hybrid cloud client may also include a handshake connection unit;

[0150] The handshake connection unit can be used to handshake and connect with the hybrid cloud server through the authorization code sent by the hybrid cloud server.

[0151] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0152] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0153] The above description of the disclosed embodiments enables professionals and technicians in the field to implement or use the present application. Various modifications to these embodiments will be apparent to professionals and technicians in the field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. The various embodiments of the present application can be combined with each other. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data transmission method, characterized in that: Applied to a hybrid cloud system, the hybrid cloud system includes a hybrid cloud server and one or more hybrid cloud clients; the hybrid cloud server is deployed in the cloud, connected to the public cloud and connected to each hybrid cloud client; each hybrid cloud client is deployed in a corresponding local area network and connected to each offline application in the corresponding local area network; the hybrid cloud server has multiple interfaces, at least one of which corresponds to an offline application in a different local area network; Each offline application corresponding to the same interface has a target function that matches the interface; The method comprises: The hybrid cloud server generates a first request corresponding to a target interface, and sends the first request to one or more hybrid cloud clients connected to corresponding offline applications, so as to interact with the corresponding offline applications through each hybrid cloud client, and the target interface corresponds to one or more offline applications.

2. The data transmission method according to claim 1, characterized in that: The hybrid cloud server generates a first request corresponding to the target interface, and sends the first request to one or more hybrid cloud clients connected to the corresponding offline application, including: The target interface of the hybrid cloud service receives the business request sent by the front-end service entity, determines the target offline application corresponding to the business request, and generates a first request based on the business request and the target offline application, and sends the first request to the hybrid cloud client connected to the target offline application.

3. The data transmission method according to claim 2, characterized in that: Also includes: After receiving the first request, the hybrid cloud client maps and converts the first request to generate a first message body, sends the first message body to the target offline application, and receives a second request corresponding to the first message body returned by the target offline application, maps and converts the second request to generate a second message body, and returns the second message body to the hybrid cloud server.

4. The data transmission method according to claim 3, characterized in that: The hybrid cloud client performs mapping conversion on the first request to generate a first message body, including: The hybrid cloud client determines an application interface corresponding to the first request in the target offline application, determines a parameter mapping template corresponding to the application interface, performs parameter mapping conversion on the first request according to the parameter mapping template, and forms a first message body.

5. The data transmission method according to claim 3, characterized in that: The hybrid cloud client performs mapping conversion on the second request to generate a second message body, including: The hybrid cloud client determines a parameter mapping template corresponding to the target interface, and performs parameter mapping conversion on the second request according to the parameter mapping template to form a second message body.

6. The data transmission method according to claim 3, characterized in that: Before sending the first message body to the target offline application, the method further includes: The hybrid cloud client authenticates the target offline application, and after the target offline application passes the authentication, enters the step of sending the first message body to the target offline application.

7. The data transmission method according to claim 1, characterized in that: Also includes: When a first offline application is newly added in the local area network corresponding to the first hybrid cloud client, the first hybrid cloud client determines all first interfaces in the first offline application that need to be connected to the hybrid cloud server; The first hybrid cloud client creates a second interface corresponding to each first interface; The first hybrid cloud client determines a mapping conversion method between a first interface and a second interface that have a corresponding relationship.

8. The data transmission method according to claim 7, characterized in that: Also includes: The first hybrid cloud client generates an authentication mode for verifying the first offline application.

9. The data transmission method according to claim 1, characterized in that: Also includes: When a newly added second hybrid cloud client needs to connect to the hybrid cloud server, the second hybrid cloud client shakes hands with the hybrid cloud server through the authorization code issued by the hybrid cloud server.

10. A hybrid cloud system, characterized in that: Including hybrid cloud server and one or more hybrid cloud clients; The hybrid cloud server is deployed in the cloud, connected to the public cloud and connected to each hybrid cloud client; Each hybrid cloud client is deployed in the corresponding LAN and connected to each offline application in the corresponding LAN; The hybrid cloud server is used to generate a first request corresponding to the target interface, and send the first request to one or more hybrid cloud clients connected to the corresponding offline application, so as to interact with the corresponding offline application through each hybrid cloud client, and the target interface corresponds to one or more offline applications; There are multiple interfaces in the hybrid cloud server, at least one interface corresponds to offline applications in different local area networks; Each offline application corresponding to the same interface has a target function matching the interface.